summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.ci/scripts/android/build.sh15
-rwxr-xr-x.ci/scripts/android/upload.sh27
-rwxr-xr-x.ci/scripts/format/script.sh2
-rwxr-xr-x.ci/scripts/linux/docker.sh1
-rw-r--r--.ci/scripts/merge/apply-patches-by-label.py20
-rw-r--r--.ci/scripts/windows/scan_dll.py2
-rw-r--r--.ci/scripts/windows/upload.ps16
-rw-r--r--.ci/templates/build-msvc.yml2
-rw-r--r--.codespellrc6
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.yml2
-rw-r--r--.github/workflows/codespell.yml17
-rw-r--r--.github/workflows/verify.yml43
-rw-r--r--.gitignore2
-rw-r--r--.gitmodules12
-rw-r--r--.lgtm.yml13
-rw-r--r--.reuse/dep512
-rw-r--r--CMakeLists.txt126
-rw-r--r--CMakeModules/CopyYuzuFFmpegDeps.cmake4
-rw-r--r--CMakeModules/CopyYuzuQt5Deps.cmake2
-rw-r--r--CMakeModules/CopyYuzuSDLDeps.cmake2
-rw-r--r--CMakeModules/DownloadExternals.cmake6
-rw-r--r--CMakeModules/FindFFmpeg.cmake2
-rw-r--r--CMakeModules/FindLLVM.cmake26
-rw-r--r--CMakeModules/Findhttplib.cmake12
-rw-r--r--CMakeModules/Findinih.cmake19
-rw-r--r--LICENSES/MPL-2.0.txt373
-rw-r--r--README.md4
-rw-r--r--dist/languages/ca.ts1907
-rw-r--r--dist/languages/cs.ts1903
-rw-r--r--dist/languages/da.ts1907
-rw-r--r--dist/languages/de.ts2028
-rw-r--r--dist/languages/el.ts1983
-rw-r--r--dist/languages/es.ts2060
-rw-r--r--dist/languages/fr.ts1965
-rw-r--r--dist/languages/id.ts1901
-rw-r--r--dist/languages/it.ts1957
-rw-r--r--dist/languages/ja_JP.ts2111
-rw-r--r--dist/languages/ko_KR.ts1991
-rw-r--r--dist/languages/nb.ts2726
-rw-r--r--dist/languages/nl.ts3703
-rw-r--r--dist/languages/pl.ts2297
-rw-r--r--dist/languages/pt_BR.ts2277
-rw-r--r--dist/languages/pt_PT.ts2281
-rw-r--r--dist/languages/ru_RU.ts2170
-rw-r--r--dist/languages/sv.ts1965
-rw-r--r--dist/languages/tr_TR.ts2169
-rw-r--r--dist/languages/uk.ts2154
-rw-r--r--dist/languages/vi.ts2029
-rw-r--r--dist/languages/vi_VN.ts2029
-rw-r--r--dist/languages/zh_CN.ts2003
-rw-r--r--dist/languages/zh_TW.ts1929
-rw-r--r--dist/yuzu.manifest6
-rw-r--r--externals/CMakeLists.txt97
m---------externals/SDL0
m---------externals/Vulkan-Headers0
m---------externals/cpp-httplib0
m---------externals/cubeb0
-rw-r--r--externals/demangle/ItaniumDemangle.cpp4
-rw-r--r--externals/demangle/llvm/Demangle/Demangle.h (renamed from externals/demangle/Demangle.h)0
-rw-r--r--externals/demangle/llvm/Demangle/DemangleConfig.h (renamed from externals/demangle/DemangleConfig.h)0
-rw-r--r--externals/demangle/llvm/Demangle/ItaniumDemangle.h (renamed from externals/demangle/ItaniumDemangle.h)0
-rw-r--r--externals/demangle/llvm/Demangle/StringView.h (renamed from externals/demangle/StringView.h)0
-rw-r--r--externals/demangle/llvm/Demangle/Utility.h (renamed from externals/demangle/Utility.h)0
m---------externals/dynarmic0
-rw-r--r--externals/ffmpeg/CMakeLists.txt75
-rw-r--r--externals/glad/CMakeLists.txt2
m---------externals/libadrenotools0
m---------externals/libressl0
-rw-r--r--externals/libusb/CMakeLists.txt2
-rw-r--r--externals/microprofile/microprofile.h8
-rw-r--r--externals/nx_tzdb/CMakeLists.txt101
-rw-r--r--externals/nx_tzdb/ListFilesInDirectory.cmake8
-rw-r--r--externals/nx_tzdb/NxTzdbCreateHeader.cmake46
-rw-r--r--externals/nx_tzdb/include/nx_tzdb.h27
-rw-r--r--externals/nx_tzdb/tzdb_template.h.in18
m---------externals/nx_tzdb/tzdb_to_nx0
-rw-r--r--externals/opus/CMakeLists.txt2
-rw-r--r--externals/stb/stb_dxt.cpp765
-rw-r--r--externals/stb/stb_dxt.h36
m---------externals/vcpkg0
m---------externals/vma/VulkanMemoryAllocator0
-rw-r--r--externals/vma/vma.cpp8
-rw-r--r--src/CMakeLists.txt27
-rw-r--r--src/android/.gitignore65
-rw-r--r--src/android/app/build.gradle.kts270
-rw-r--r--src/android/app/proguard-rules.pro24
-rw-r--r--src/android/app/src/ea/res/drawable/ic_yuzu.xml22
-rw-r--r--src/android/app/src/ea/res/drawable/ic_yuzu_full.xml12
-rw-r--r--src/android/app/src/ea/res/drawable/ic_yuzu_title.xml24
-rw-r--r--src/android/app/src/main/AndroidManifest.xml87
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt571
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt63
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt455
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt139
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/HomeSettingAdapter.kt70
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/LicenseAdapter.kt54
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/SetupAdapter.kt70
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard.kt124
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt100
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/DiskShaderCacheProgress.kt51
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ShaderProgressViewModel.kt31
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ui/ShaderProgressDialogFragment.kt103
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/DocumentProvider.kt341
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractBooleanSetting.kt8
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractFloatSetting.kt8
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractIntSetting.kt8
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractSetting.kt12
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractStringSetting.kt8
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt43
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt36
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt141
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingSection.kt37
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt161
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingsViewModel.kt10
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/StringSetting.kt38
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/DateTimeSetting.kt31
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/HeaderSetting.kt10
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/RunnableSetting.kt13
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt39
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SingleChoiceSetting.kt39
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SliderSetting.kt62
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/StringSingleChoiceSetting.kt59
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SubmenuSetting.kt12
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SwitchSetting.kt62
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt262
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityPresenter.kt90
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityView.kt57
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt339
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragment.kt127
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt539
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentView.kt58
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/DateTimeViewHolder.kt48
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/HeaderViewHolder.kt30
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/RunnableViewHolder.kt38
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SettingViewHolder.kt36
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SingleChoiceViewHolder.kt68
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SliderViewHolder.kt39
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SubmenuViewHolder.kt35
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt48
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/utils/SettingsFile.kt264
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt131
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EarlyAccessFragment.kt89
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt733
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt378
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ImportExportSavesFragment.kt213
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/IndeterminateProgressDialogFragment.kt69
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicenseBottomSheetDialogFragment.kt59
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicensesFragment.kt139
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LongMessageDialogFragment.kt62
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt62
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/PermissionDeniedDialogFragment.kt38
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ResetSettingsDialogFragment.kt30
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt227
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt340
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupWarningDialogFragment.kt86
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/layout/AutofitGridLayoutManager.kt63
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt49
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt119
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeSetting.kt11
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeViewModel.kt36
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/License.kt16
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt11
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/SetupPage.kt19
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/TaskViewModel.kt47
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt1181
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableButton.kt148
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableDpad.kt277
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.kt290
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt169
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt592
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/ThemeProvider.kt11
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/BiMap.kt25
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ControllerMappingHelper.kt70
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DirectoryInitialization.kt37
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DocumentsTree.kt121
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/EmulationMenuSettings.kt50
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/FileUtil.kt332
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt70
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt89
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt154
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverMetadata.kt47
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InputHandler.kt365
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt25
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt40
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/MemoryUtil.kt59
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NfcReader.kt171
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/SerializableHelper.kt44
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt97
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/views/FixedRatioSurfaceView.kt48
-rw-r--r--src/android/app/src/main/jni/CMakeLists.txt27
-rw-r--r--src/android/app/src/main/jni/android_common/android_common.cpp35
-rw-r--r--src/android/app/src/main/jni/android_common/android_common.h12
-rw-r--r--src/android/app/src/main/jni/applets/software_keyboard.cpp277
-rw-r--r--src/android/app/src/main/jni/applets/software_keyboard.h78
-rw-r--r--src/android/app/src/main/jni/config.cpp301
-rw-r--r--src/android/app/src/main/jni/config.h37
-rw-r--r--src/android/app/src/main/jni/default_ini.h511
-rw-r--r--src/android/app/src/main/jni/emu_window/emu_window.cpp79
-rw-r--r--src/android/app/src/main/jni/emu_window/emu_window.h64
-rw-r--r--src/android/app/src/main/jni/id_cache.cpp116
-rw-r--r--src/android/app/src/main/jni/id_cache.h19
-rw-r--r--src/android/app/src/main/jni/native.cpp865
-rw-r--r--src/android/app/src/main/res/anim-ldrtl/anim_pop_settings_fragment_out.xml16
-rw-r--r--src/android/app/src/main/res/anim-ldrtl/anim_settings_fragment_in.xml16
-rw-r--r--src/android/app/src/main/res/anim/anim_pop_settings_fragment_out.xml16
-rw-r--r--src/android/app/src/main/res/anim/anim_settings_fragment_in.xml16
-rw-r--r--src/android/app/src/main/res/anim/anim_settings_fragment_out.xml10
-rw-r--r--src/android/app/src/main/res/animator/menu_slide_in_from_start.xml20
-rw-r--r--src/android/app/src/main/res/animator/menu_slide_out_to_start.xml21
-rw-r--r--src/android/app/src/main/res/drawable-hdpi/ic_stat_notification_logo.pngbin0 -> 46179 bytes
-rw-r--r--src/android/app/src/main/res/drawable-xhdpi/ic_stat_notification_logo.pngbin0 -> 48264 bytes
-rw-r--r--src/android/app/src/main/res/drawable-xhdpi/tv_banner.pngbin0 -> 7764 bytes
-rw-r--r--src/android/app/src/main/res/drawable-xxhdpi/ic_stat_notification_logo.pngbin0 -> 56651 bytes
-rw-r--r--src/android/app/src/main/res/drawable/default_icon.jpgbin0 -> 6285 bytes
-rw-r--r--src/android/app/src/main/res/drawable/dpad_standard.xml24
-rw-r--r--src/android/app/src/main/res/drawable/dpad_standard_cardinal_depressed.xml24
-rw-r--r--src/android/app/src/main/res/drawable/dpad_standard_diagonal_depressed.xml24
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_a.xml22
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_a_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_b.xml22
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_b_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_home.xml21
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_home_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_minus.xml22
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_minus_depressed.xml9
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_plus.xml22
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_plus_depressed.xml9
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_screenshot.xml21
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_screenshot_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_x.xml22
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_x_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_y.xml22
-rw-r--r--src/android/app/src/main/res/drawable/facebutton_y_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/ic_add.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_arrow_forward.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_back.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_cartridge.xml12
-rw-r--r--src/android/app/src/main/res/drawable/ic_cartridge_outline.xml12
-rw-r--r--src/android/app/src/main/res/drawable/ic_check.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_check_circle.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_clear.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_controller.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_diamond.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_discord.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_exit.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_firmware.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_folder_open.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_github.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_icon_bg.xml751
-rw-r--r--src/android/app/src/main/res/drawable/ic_info_outline.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_install.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_key.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_launcher.xml6
-rw-r--r--src/android/app/src/main/res/drawable/ic_log.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_nfc.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_notification.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_options.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_palette.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_pause.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_pip_mute.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_pip_pause.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_pip_play.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_pip_unmute.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_play.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_save.xml10
-rw-r--r--src/android/app/src/main/res/drawable/ic_search.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_settings.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_settings_outline.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_system_update_alt.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_unlock.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_website.xml9
-rw-r--r--src/android/app/src/main/res/drawable/ic_yuzu.xml22
-rw-r--r--src/android/app/src/main/res/drawable/ic_yuzu_full.xml12
-rw-r--r--src/android/app/src/main/res/drawable/ic_yuzu_title.xml24
-rw-r--r--src/android/app/src/main/res/drawable/joystick.xml45
-rw-r--r--src/android/app/src/main/res/drawable/joystick_depressed.xml10
-rw-r--r--src/android/app/src/main/res/drawable/joystick_range.xml38
-rw-r--r--src/android/app/src/main/res/drawable/l_shoulder.xml23
-rw-r--r--src/android/app/src/main/res/drawable/l_shoulder_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/premium_background.xml9
-rw-r--r--src/android/app/src/main/res/drawable/r_shoulder.xml23
-rw-r--r--src/android/app/src/main/res/drawable/r_shoulder_depressed.xml8
-rw-r--r--src/android/app/src/main/res/drawable/selector_cartridge.xml5
-rw-r--r--src/android/app/src/main/res/drawable/selector_settings.xml5
-rw-r--r--src/android/app/src/main/res/drawable/zl_trigger.xml25
-rw-r--r--src/android/app/src/main/res/drawable/zl_trigger_depressed.xml10
-rw-r--r--src/android/app/src/main/res/drawable/zr_trigger.xml25
-rw-r--r--src/android/app/src/main/res/drawable/zr_trigger_depressed.xml10
-rw-r--r--src/android/app/src/main/res/layout-w600dp/activity_main.xml58
-rw-r--r--src/android/app/src/main/res/layout-w600dp/fragment_setup.xml40
-rw-r--r--src/android/app/src/main/res/layout-w600dp/page_setup.xml65
-rw-r--r--src/android/app/src/main/res/layout/activity_emulation.xml9
-rw-r--r--src/android/app/src/main/res/layout/activity_main.xml58
-rw-r--r--src/android/app/src/main/res/layout/activity_settings.xml50
-rw-r--r--src/android/app/src/main/res/layout/card_game.xml67
-rw-r--r--src/android/app/src/main/res/layout/card_home_option.xml60
-rw-r--r--src/android/app/src/main/res/layout/dialog_edit_text.xml23
-rw-r--r--src/android/app/src/main/res/layout/dialog_license.xml64
-rw-r--r--src/android/app/src/main/res/layout/dialog_overlay_adjust.xml67
-rw-r--r--src/android/app/src/main/res/layout/dialog_progress_bar.xml24
-rw-r--r--src/android/app/src/main/res/layout/dialog_slider.xml37
-rw-r--r--src/android/app/src/main/res/layout/fragment_about.xml232
-rw-r--r--src/android/app/src/main/res/layout/fragment_early_access.xml242
-rw-r--r--src/android/app/src/main/res/layout/fragment_emulation.xml86
-rw-r--r--src/android/app/src/main/res/layout/fragment_games.xml34
-rw-r--r--src/android/app/src/main/res/layout/fragment_home_settings.xml34
-rw-r--r--src/android/app/src/main/res/layout/fragment_licenses.xml30
-rw-r--r--src/android/app/src/main/res/layout/fragment_search.xml183
-rw-r--r--src/android/app/src/main/res/layout/fragment_settings.xml14
-rw-r--r--src/android/app/src/main/res/layout/fragment_setup.xml42
-rw-r--r--src/android/app/src/main/res/layout/header_in_game.xml14
-rw-r--r--src/android/app/src/main/res/layout/list_item_setting.xml41
-rw-r--r--src/android/app/src/main/res/layout/list_item_setting_switch.xml53
-rw-r--r--src/android/app/src/main/res/layout/list_item_settings_header.xml14
-rw-r--r--src/android/app/src/main/res/layout/page_setup.xml72
-rw-r--r--src/android/app/src/main/res/menu-w600dp/menu_navigation.xml19
-rw-r--r--src/android/app/src/main/res/menu/menu_in_game.xml24
-rw-r--r--src/android/app/src/main/res/menu/menu_navigation.xml19
-rw-r--r--src/android/app/src/main/res/menu/menu_overlay_options.xml45
-rw-r--r--src/android/app/src/main/res/menu/menu_settings.xml2
-rw-r--r--src/android/app/src/main/res/navigation/emulation_navigation.xml18
-rw-r--r--src/android/app/src/main/res/navigation/home_navigation.xml73
-rw-r--r--src/android/app/src/main/res/values-de/strings.xml332
-rw-r--r--src/android/app/src/main/res/values-es/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-fr/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-it/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-ja/strings.xml335
-rw-r--r--src/android/app/src/main/res/values-ko/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-nb/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-night-v31/themes.xml31
-rw-r--r--src/android/app/src/main/res/values-night/themes.xml9
-rw-r--r--src/android/app/src/main/res/values-night/yuzu_colors.xml37
-rw-r--r--src/android/app/src/main/res/values-pl/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-pt-rBR/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-pt-rPT/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-ru/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-uk/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-v31/themes.xml31
-rw-r--r--src/android/app/src/main/res/values-w600dp/bools.xml4
-rw-r--r--src/android/app/src/main/res/values-w600dp/dimens.xml5
-rw-r--r--src/android/app/src/main/res/values-zh-rCN/strings.xml337
-rw-r--r--src/android/app/src/main/res/values-zh-rTW/strings.xml336
-rw-r--r--src/android/app/src/main/res/values/arrays.xml250
-rw-r--r--src/android/app/src/main/res/values/bools.xml4
-rw-r--r--src/android/app/src/main/res/values/dimens.xml18
-rw-r--r--src/android/app/src/main/res/values/integers.xml101
-rw-r--r--src/android/app/src/main/res/values/strings.xml912
-rw-r--r--src/android/app/src/main/res/values/styles.xml36
-rw-r--r--src/android/app/src/main/res/values/themes.xml51
-rw-r--r--src/android/app/src/main/res/values/yuzu_colors.xml37
-rw-r--r--src/android/app/src/main/res/xml/data_extraction_rules.xml20
-rw-r--r--src/android/app/src/main/res/xml/data_extraction_rules_api_31.xml43
-rw-r--r--src/android/app/src/main/res/xml/locales_config.xml17
-rw-r--r--src/android/app/src/main/res/xml/nfc_tech_filter.xml6
-rw-r--r--src/android/build.gradle.kts22
-rw-r--r--src/android/gradle.properties17
-rw-r--r--src/android/gradle/wrapper/gradle-wrapper.jarbin0 -> 54708 bytes
-rw-r--r--src/android/gradle/wrapper/gradle-wrapper.properties6
-rwxr-xr-xsrc/android/gradlew175
-rw-r--r--src/android/gradlew.bat87
-rw-r--r--src/android/settings.gradle.kts21
-rw-r--r--src/audio_core/audio_core.cpp8
-rw-r--r--src/audio_core/audio_core.h14
-rw-r--r--src/audio_core/audio_in_manager.cpp2
-rw-r--r--src/audio_core/audio_manager.cpp4
-rw-r--r--src/audio_core/audio_out_manager.cpp2
-rw-r--r--src/audio_core/audio_out_manager.h2
-rw-r--r--src/audio_core/audio_render_manager.cpp2
-rw-r--r--src/audio_core/device/audio_buffer.h2
-rw-r--r--src/audio_core/device/audio_buffers.h8
-rw-r--r--src/audio_core/device/device_session.cpp17
-rw-r--r--src/audio_core/device/device_session.h7
-rw-r--r--src/audio_core/in/audio_in.cpp2
-rw-r--r--src/audio_core/in/audio_in_system.cpp11
-rw-r--r--src/audio_core/out/audio_out.cpp2
-rw-r--r--src/audio_core/out/audio_out_system.cpp12
-rw-r--r--src/audio_core/renderer/adsp/adsp.cpp3
-rw-r--r--src/audio_core/renderer/adsp/audio_renderer.cpp24
-rw-r--r--src/audio_core/renderer/adsp/audio_renderer.h5
-rw-r--r--src/audio_core/renderer/adsp/command_list_processor.cpp3
-rw-r--r--src/audio_core/renderer/audio_renderer.cpp2
-rw-r--r--src/audio_core/renderer/behavior/behavior_info.h2
-rw-r--r--src/audio_core/renderer/behavior/info_updater.cpp38
-rw-r--r--src/audio_core/renderer/command/command_buffer.cpp4
-rw-r--r--src/audio_core/renderer/command/command_generator.cpp2
-rw-r--r--src/audio_core/renderer/command/data_source/decode.cpp23
-rw-r--r--src/audio_core/renderer/command/effect/aux_.cpp130
-rw-r--r--src/audio_core/renderer/command/effect/biquad_filter.cpp38
-rw-r--r--src/audio_core/renderer/command/effect/compressor.cpp8
-rw-r--r--src/audio_core/renderer/command/effect/delay.cpp14
-rw-r--r--src/audio_core/renderer/command/effect/i3dl2_reverb.cpp12
-rw-r--r--src/audio_core/renderer/command/effect/light_limiter.cpp12
-rw-r--r--src/audio_core/renderer/command/effect/reverb.cpp23
-rw-r--r--src/audio_core/renderer/command/performance/performance.cpp15
-rw-r--r--src/audio_core/renderer/command/resample/upsample.cpp12
-rw-r--r--src/audio_core/renderer/command/sink/circular_buffer.cpp4
-rw-r--r--src/audio_core/renderer/command/sink/device.cpp5
-rw-r--r--src/audio_core/renderer/effect/effect_info_base.h4
-rw-r--r--src/audio_core/renderer/effect/i3dl2.h3
-rw-r--r--src/audio_core/renderer/effect/reverb.h8
-rw-r--r--src/audio_core/renderer/memory/memory_pool_info.h2
-rw-r--r--src/audio_core/renderer/memory/pool_mapper.cpp2
-rw-r--r--src/audio_core/renderer/mix/mix_context.cpp6
-rw-r--r--src/audio_core/renderer/mix/mix_context.h2
-rw-r--r--src/audio_core/renderer/nodes/node_states.cpp4
-rw-r--r--src/audio_core/renderer/nodes/node_states.h2
-rw-r--r--src/audio_core/renderer/performance/performance_detail.h4
-rw-r--r--src/audio_core/renderer/performance/performance_entry.h4
-rw-r--r--src/audio_core/renderer/performance/performance_frame_header.h4
-rw-r--r--src/audio_core/renderer/splitter/splitter_context.h2
-rw-r--r--src/audio_core/renderer/splitter/splitter_destinations_data.h6
-rw-r--r--src/audio_core/renderer/splitter/splitter_info.h4
-rw-r--r--src/audio_core/renderer/system.cpp59
-rw-r--r--src/audio_core/renderer/system.h4
-rw-r--r--src/audio_core/renderer/system_manager.cpp30
-rw-r--r--src/audio_core/renderer/system_manager.h23
-rw-r--r--src/audio_core/renderer/voice/voice_info.cpp8
-rw-r--r--src/audio_core/renderer/voice/voice_info.h4
-rw-r--r--src/audio_core/renderer/voice/voice_state.h8
-rw-r--r--src/audio_core/sink/cubeb_sink.cpp24
-rw-r--r--src/audio_core/sink/null_sink.h2
-rw-r--r--src/audio_core/sink/sdl2_sink.cpp13
-rw-r--r--src/audio_core/sink/sink_stream.cpp87
-rw-r--r--src/audio_core/sink/sink_stream.h35
-rw-r--r--src/common/CMakeLists.txt34
-rw-r--r--src/common/address_space.h7
-rw-r--r--src/common/address_space.inc4
-rw-r--r--src/common/alignment.h18
-rw-r--r--src/common/announce_multiplayer_room.h2
-rw-r--r--src/common/atomic_helpers.h2
-rw-r--r--src/common/bit_cast.h20
-rw-r--r--src/common/bit_field.h5
-rw-r--r--src/common/bit_util.h6
-rw-r--r--src/common/bounded_threadsafe_queue.h319
-rw-r--r--src/common/concepts.h6
-rw-r--r--src/common/container_hash.h92
-rw-r--r--src/common/demangle.cpp6
-rw-r--r--src/common/div_ceil.h4
-rw-r--r--src/common/dynamic_library.cpp2
-rw-r--r--src/common/dynamic_library.h3
-rw-r--r--src/common/error.cpp3
-rw-r--r--src/common/expected.h60
-rw-r--r--src/common/fiber.cpp2
-rw-r--r--src/common/fixed_point.h2
-rw-r--r--src/common/fs/file.cpp38
-rw-r--r--src/common/fs/fs.cpp41
-rw-r--r--src/common/fs/fs_android.cpp98
-rw-r--r--src/common/fs/fs_android.h65
-rw-r--r--src/common/fs/fs_paths.h1
-rw-r--r--src/common/fs/fs_types.h2
-rw-r--r--src/common/fs/path_util.cpp27
-rw-r--r--src/common/fs/path_util.h9
-rw-r--r--src/common/host_memory.cpp38
-rw-r--r--src/common/input.h125
-rw-r--r--src/common/intrusive_list.h631
-rw-r--r--src/common/intrusive_red_black_tree.h28
-rw-r--r--src/common/logging/backend.cpp42
-rw-r--r--src/common/logging/filter.cpp2
-rw-r--r--src/common/logging/text_formatter.cpp35
-rw-r--r--src/common/logging/text_formatter.h2
-rw-r--r--src/common/logging/types.h202
-rw-r--r--src/common/make_unique_for_overwrite.h8
-rw-r--r--src/common/overflow.h22
-rw-r--r--src/common/polyfill_ranges.h8
-rw-r--r--src/common/polyfill_thread.h123
-rw-r--r--src/common/range_map.h6
-rw-r--r--src/common/ring_buffer.h3
-rw-r--r--src/common/scratch_buffer.h19
-rw-r--r--src/common/settings.cpp58
-rw-r--r--src/common/settings.h64
-rw-r--r--src/common/steady_clock.cpp80
-rw-r--r--src/common/steady_clock.h34
-rw-r--r--src/common/string_util.cpp16
-rw-r--r--src/common/string_util.h11
-rw-r--r--src/common/swap.h12
-rw-r--r--src/common/telemetry.cpp1
-rw-r--r--src/common/thread.h2
-rw-r--r--src/common/time_zone.cpp63
-rw-r--r--src/common/time_zone.h6
-rw-r--r--src/common/tree.h74
-rw-r--r--src/common/typed_address.h315
-rw-r--r--src/common/uuid.cpp2
-rw-r--r--src/common/vector_math.h30
-rw-r--r--src/common/wall_clock.cpp90
-rw-r--r--src/common/wall_clock.h88
-rw-r--r--src/common/windows/timer_resolution.cpp109
-rw-r--r--src/common/windows/timer_resolution.h38
-rw-r--r--src/common/x64/cpu_detect.cpp4
-rw-r--r--src/common/x64/cpu_detect.h1
-rw-r--r--src/common/x64/cpu_wait.cpp51
-rw-r--r--src/common/x64/cpu_wait.h10
-rw-r--r--src/common/x64/native_clock.cpp138
-rw-r--r--src/common/x64/native_clock.h56
-rw-r--r--src/common/x64/rdtsc.cpp39
-rw-r--r--src/common/x64/rdtsc.h37
-rw-r--r--src/common/zstd_compression.cpp2
-rw-r--r--src/core/CMakeLists.txt181
-rw-r--r--src/core/arm/arm_interface.cpp100
-rw-r--r--src/core/arm/arm_interface.h46
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.h29
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_32.cpp97
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_32.h22
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_64.cpp76
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_64.h24
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_cp15.cpp161
-rw-r--r--src/core/arm/dynarmic/arm_exclusive_monitor.cpp73
-rw-r--r--src/core/arm/dynarmic/dynarmic_cp15.cpp161
-rw-r--r--src/core/arm/dynarmic/dynarmic_cp15.h (renamed from src/core/arm/dynarmic/arm_dynarmic_cp15.h)0
-rw-r--r--src/core/arm/dynarmic/dynarmic_exclusive_monitor.cpp73
-rw-r--r--src/core/arm/dynarmic/dynarmic_exclusive_monitor.h (renamed from src/core/arm/dynarmic/arm_exclusive_monitor.h)0
-rw-r--r--src/core/arm/exclusive_monitor.cpp2
-rw-r--r--src/core/constants.cpp27
-rw-r--r--src/core/constants.h2
-rw-r--r--src/core/core.cpp123
-rw-r--r--src/core/core.h46
-rw-r--r--src/core/core_timing.cpp85
-rw-r--r--src/core/core_timing.h12
-rw-r--r--src/core/core_timing_util.h58
-rw-r--r--src/core/cpu_manager.cpp2
-rw-r--r--src/core/crypto/ctr_encryption_layer.h2
-rw-r--r--src/core/crypto/key_manager.cpp8
-rw-r--r--src/core/crypto/key_manager.h5
-rw-r--r--src/core/crypto/xts_encryption_layer.h2
-rw-r--r--src/core/debugger/debugger.cpp7
-rw-r--r--src/core/debugger/gdbstub.cpp108
-rw-r--r--src/core/debugger/gdbstub_arch.cpp18
-rw-r--r--src/core/debugger/gdbstub_arch.h6
-rw-r--r--src/core/device_memory.cpp8
-rw-r--r--src/core/device_memory.h14
-rw-r--r--src/core/file_sys/content_archive.h2
-rw-r--r--src/core/file_sys/control_metadata.cpp12
-rw-r--r--src/core/file_sys/control_metadata.h4
-rw-r--r--src/core/file_sys/ips_layer.cpp8
-rw-r--r--src/core/file_sys/patch_manager.cpp47
-rw-r--r--src/core/file_sys/registered_cache.cpp2
-rw-r--r--src/core/file_sys/registered_cache.h2
-rw-r--r--src/core/file_sys/romfs.cpp6
-rw-r--r--src/core/file_sys/savedata_factory.cpp6
-rw-r--r--src/core/file_sys/submission_package.h1
-rw-r--r--src/core/file_sys/system_archive/time_zone_binary.cpp706
-rw-r--r--src/core/file_sys/vfs.h16
-rw-r--r--src/core/file_sys/vfs_cached.cpp63
-rw-r--r--src/core/file_sys/vfs_cached.h31
-rw-r--r--src/core/file_sys/vfs_concat.cpp167
-rw-r--r--src/core/file_sys/vfs_concat.h28
-rw-r--r--src/core/file_sys/vfs_layered.cpp9
-rw-r--r--src/core/file_sys/vfs_real.cpp232
-rw-r--r--src/core/file_sys/vfs_real.h46
-rw-r--r--src/core/frontend/applets/applet.h14
-rw-r--r--src/core/frontend/applets/cabinet.cpp4
-rw-r--r--src/core/frontend/applets/cabinet.h14
-rw-r--r--src/core/frontend/applets/controller.cpp4
-rw-r--r--src/core/frontend/applets/controller.h6
-rw-r--r--src/core/frontend/applets/error.cpp2
-rw-r--r--src/core/frontend/applets/error.h4
-rw-r--r--src/core/frontend/applets/general_frontend.cpp4
-rw-r--r--src/core/frontend/applets/general_frontend.h8
-rw-r--r--src/core/frontend/applets/mii_edit.cpp2
-rw-r--r--src/core/frontend/applets/mii_edit.h5
-rw-r--r--src/core/frontend/applets/profile_select.cpp5
-rw-r--r--src/core/frontend/applets/profile_select.h19
-rw-r--r--src/core/frontend/applets/software_keyboard.cpp2
-rw-r--r--src/core/frontend/applets/software_keyboard.h5
-rw-r--r--src/core/frontend/applets/web_browser.cpp2
-rw-r--r--src/core/frontend/applets/web_browser.h5
-rw-r--r--src/core/frontend/emu_window.cpp2
-rw-r--r--src/core/frontend/emu_window.h50
-rw-r--r--src/core/frontend/graphics_context.h62
-rw-r--r--src/core/hardware_properties.h28
-rw-r--r--src/core/hid/emulated_console.cpp35
-rw-r--r--src/core/hid/emulated_console.h4
-rw-r--r--src/core/hid/emulated_controller.cpp590
-rw-r--r--src/core/hid/emulated_controller.h114
-rw-r--r--src/core/hid/emulated_devices.cpp126
-rw-r--r--src/core/hid/emulated_devices.h51
-rw-r--r--src/core/hid/hid_types.h7
-rw-r--r--src/core/hid/input_converter.cpp32
-rw-r--r--src/core/hid/input_converter.h10
-rw-r--r--src/core/hid/motion_input.cpp83
-rw-r--r--src/core/hid/motion_input.h36
-rw-r--r--src/core/hle/ipc_helpers.h499
-rw-r--r--src/core/hle/kernel/board/nintendo/nx/k_memory_layout.cpp203
-rw-r--r--src/core/hle/kernel/board/nintendo/nx/k_memory_layout.h4
-rw-r--r--src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp36
-rw-r--r--src/core/hle/kernel/board/nintendo/nx/k_system_control.h4
-rw-r--r--src/core/hle/kernel/code_set.h6
-rw-r--r--src/core/hle/kernel/global_scheduler_context.cpp33
-rw-r--r--src/core/hle/kernel/global_scheduler_context.h29
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp521
-rw-r--r--src/core/hle/kernel/hle_ipc.h412
-rw-r--r--src/core/hle/kernel/init/init_slab_setup.cpp33
-rw-r--r--src/core/hle/kernel/initial_process.h2
-rw-r--r--src/core/hle/kernel/k_address_arbiter.cpp205
-rw-r--r--src/core/hle/kernel/k_address_arbiter.h45
-rw-r--r--src/core/hle/kernel/k_address_space_info.cpp84
-rw-r--r--src/core/hle/kernel/k_address_space_info.h2
-rw-r--r--src/core/hle/kernel/k_affinity_mask.h20
-rw-r--r--src/core/hle/kernel/k_auto_object.cpp4
-rw-r--r--src/core/hle/kernel/k_auto_object.h41
-rw-r--r--src/core/hle/kernel/k_capabilities.cpp358
-rw-r--r--src/core/hle/kernel/k_capabilities.h295
-rw-r--r--src/core/hle/kernel/k_client_port.cpp85
-rw-r--r--src/core/hle/kernel/k_client_port.h24
-rw-r--r--src/core/hle/kernel/k_client_session.cpp15
-rw-r--r--src/core/hle/kernel/k_client_session.h13
-rw-r--r--src/core/hle/kernel/k_code_memory.cpp41
-rw-r--r--src/core/hle/kernel/k_code_memory.h20
-rw-r--r--src/core/hle/kernel/k_condition_variable.cpp177
-rw-r--r--src/core/hle/kernel/k_condition_variable.h26
-rw-r--r--src/core/hle/kernel/k_debug.h4
-rw-r--r--src/core/hle/kernel/k_device_address_space.cpp150
-rw-r--r--src/core/hle/kernel/k_device_address_space.h61
-rw-r--r--src/core/hle/kernel/k_dynamic_page_manager.h19
-rw-r--r--src/core/hle/kernel/k_dynamic_slab_heap.h6
-rw-r--r--src/core/hle/kernel/k_event.cpp8
-rw-r--r--src/core/hle/kernel/k_event.h2
-rw-r--r--src/core/hle/kernel/k_event_info.h5
-rw-r--r--src/core/hle/kernel/k_handle_table.h3
-rw-r--r--src/core/hle/kernel/k_interrupt_manager.cpp2
-rw-r--r--src/core/hle/kernel/k_light_condition_variable.cpp18
-rw-r--r--src/core/hle/kernel/k_light_condition_variable.h6
-rw-r--r--src/core/hle/kernel/k_light_lock.cpp37
-rw-r--r--src/core/hle/kernel/k_light_lock.h8
-rw-r--r--src/core/hle/kernel/k_linked_list.h238
-rw-r--r--src/core/hle/kernel/k_memory_block.h52
-rw-r--r--src/core/hle/kernel/k_memory_block_manager.cpp68
-rw-r--r--src/core/hle/kernel/k_memory_block_manager.h40
-rw-r--r--src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp201
-rw-r--r--src/core/hle/kernel/k_memory_layout.cpp28
-rw-r--r--src/core/hle/kernel/k_memory_layout.h112
-rw-r--r--src/core/hle/kernel/k_memory_manager.cpp51
-rw-r--r--src/core/hle/kernel/k_memory_manager.h48
-rw-r--r--src/core/hle/kernel/k_memory_region.h78
-rw-r--r--src/core/hle/kernel/k_object_name.cpp102
-rw-r--r--src/core/hle/kernel/k_object_name.h88
-rw-r--r--src/core/hle/kernel/k_page_buffer.cpp4
-rw-r--r--src/core/hle/kernel/k_page_buffer.h4
-rw-r--r--src/core/hle/kernel/k_page_group.h2
-rw-r--r--src/core/hle/kernel/k_page_heap.cpp40
-rw-r--r--src/core/hle/kernel/k_page_heap.h48
-rw-r--r--src/core/hle/kernel/k_page_table.cpp944
-rw-r--r--src/core/hle/kernel/k_page_table.h331
-rw-r--r--src/core/hle/kernel/k_page_table_manager.h14
-rw-r--r--src/core/hle/kernel/k_page_table_slab_heap.h15
-rw-r--r--src/core/hle/kernel/k_port.cpp48
-rw-r--r--src/core/hle/kernel/k_port.h28
-rw-r--r--src/core/hle/kernel/k_priority_queue.h168
-rw-r--r--src/core/hle/kernel/k_process.cpp419
-rw-r--r--src/core/hle/kernel/k_process.h242
-rw-r--r--src/core/hle/kernel/k_readable_event.cpp20
-rw-r--r--src/core/hle/kernel/k_readable_event.h2
-rw-r--r--src/core/hle/kernel/k_resource_limit.cpp105
-rw-r--r--src/core/hle/kernel/k_resource_limit.h22
-rw-r--r--src/core/hle/kernel/k_scheduler.cpp93
-rw-r--r--src/core/hle/kernel/k_scheduler.h14
-rw-r--r--src/core/hle/kernel/k_scheduler_lock.h64
-rw-r--r--src/core/hle/kernel/k_scoped_lock.h24
-rw-r--r--src/core/hle/kernel/k_scoped_resource_reservation.h36
-rw-r--r--src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h29
-rw-r--r--src/core/hle/kernel/k_server_port.cpp35
-rw-r--r--src/core/hle/kernel/k_server_port.h16
-rw-r--r--src/core/hle/kernel/k_server_session.cpp86
-rw-r--r--src/core/hle/kernel/k_server_session.h31
-rw-r--r--src/core/hle/kernel/k_session.cpp57
-rw-r--r--src/core/hle/kernel/k_session.h41
-rw-r--r--src/core/hle/kernel/k_session_request.cpp31
-rw-r--r--src/core/hle/kernel/k_session_request.h75
-rw-r--r--src/core/hle/kernel/k_shared_memory.cpp74
-rw-r--r--src/core/hle/kernel/k_shared_memory.h36
-rw-r--r--src/core/hle/kernel/k_shared_memory_info.h21
-rw-r--r--src/core/hle/kernel/k_slab_heap.h3
-rw-r--r--src/core/hle/kernel/k_spin_lock.cpp6
-rw-r--r--src/core/hle/kernel/k_spin_lock.h14
-rw-r--r--src/core/hle/kernel/k_synchronization_object.cpp40
-rw-r--r--src/core/hle/kernel/k_synchronization_object.h27
-rw-r--r--src/core/hle/kernel/k_system_resource.cpp9
-rw-r--r--src/core/hle/kernel/k_system_resource.h10
-rw-r--r--src/core/hle/kernel/k_thread.cpp953
-rw-r--r--src/core/hle/kernel/k_thread.h720
-rw-r--r--src/core/hle/kernel/k_thread_local_page.cpp8
-rw-r--r--src/core/hle/kernel/k_thread_local_page.h31
-rw-r--r--src/core/hle/kernel/k_thread_queue.cpp20
-rw-r--r--src/core/hle/kernel/k_thread_queue.h14
-rw-r--r--src/core/hle/kernel/k_transfer_memory.cpp27
-rw-r--r--src/core/hle/kernel/k_transfer_memory.h26
-rw-r--r--src/core/hle/kernel/k_typed_address.h12
-rw-r--r--src/core/hle/kernel/k_worker_task.h2
-rw-r--r--src/core/hle/kernel/k_worker_task_manager.cpp2
-rw-r--r--src/core/hle/kernel/k_worker_task_manager.h2
-rw-r--r--src/core/hle/kernel/kernel.cpp593
-rw-r--r--src/core/hle/kernel/kernel.h170
-rw-r--r--src/core/hle/kernel/memory_types.h4
-rw-r--r--src/core/hle/kernel/physical_core.cpp41
-rw-r--r--src/core/hle/kernel/physical_core.h37
-rw-r--r--src/core/hle/kernel/service_thread.cpp206
-rw-r--r--src/core/hle/kernel/service_thread.h29
-rw-r--r--src/core/hle/kernel/slab_helpers.h22
-rw-r--r--src/core/hle/kernel/svc.cpp6406
-rw-r--r--src/core/hle/kernel/svc.h528
-rw-r--r--src/core/hle/kernel/svc/svc_activity.cpp66
-rw-r--r--src/core/hle/kernel/svc/svc_address_arbiter.cpp105
-rw-r--r--src/core/hle/kernel/svc/svc_address_translation.cpp50
-rw-r--r--src/core/hle/kernel/svc/svc_cache.cpp98
-rw-r--r--src/core/hle/kernel/svc/svc_code_memory.cpp171
-rw-r--r--src/core/hle/kernel/svc/svc_condition_variable.cpp72
-rw-r--r--src/core/hle/kernel/svc/svc_debug.cpp194
-rw-r--r--src/core/hle/kernel/svc/svc_debug_string.cpp30
-rw-r--r--src/core/hle/kernel/svc/svc_device_address_space.cpp258
-rw-r--r--src/core/hle/kernel/svc/svc_event.cpp120
-rw-r--r--src/core/hle/kernel/svc/svc_exception.cpp137
-rw-r--r--src/core/hle/kernel/svc/svc_info.cpp277
-rw-r--r--src/core/hle/kernel/svc/svc_insecure_memory.cpp35
-rw-r--r--src/core/hle/kernel/svc/svc_interrupt_event.cpp25
-rw-r--r--src/core/hle/kernel/svc/svc_io_pool.cpp71
-rw-r--r--src/core/hle/kernel/svc/svc_ipc.cpp173
-rw-r--r--src/core/hle/kernel/svc/svc_kernel_debug.cpp35
-rw-r--r--src/core/hle/kernel/svc/svc_light_ipc.cpp73
-rw-r--r--src/core/hle/kernel/svc/svc_lock.cpp51
-rw-r--r--src/core/hle/kernel/svc/svc_memory.cpp216
-rw-r--r--src/core/hle/kernel/svc/svc_physical_memory.cpp183
-rw-r--r--src/core/hle/kernel/svc/svc_port.cpp159
-rw-r--r--src/core/hle/kernel/svc/svc_power_management.cpp21
-rw-r--r--src/core/hle/kernel/svc/svc_process.cpp194
-rw-r--r--src/core/hle/kernel/svc/svc_process_memory.cpp320
-rw-r--r--src/core/hle/kernel/svc/svc_processor.cpp25
-rw-r--r--src/core/hle/kernel/svc/svc_query_memory.cpp65
-rw-r--r--src/core/hle/kernel/svc/svc_register.cpp27
-rw-r--r--src/core/hle/kernel/svc/svc_resource_limit.cpp145
-rw-r--r--src/core/hle/kernel/svc/svc_secure_monitor_call.cpp53
-rw-r--r--src/core/hle/kernel/svc/svc_session.cpp127
-rw-r--r--src/core/hle/kernel/svc/svc_shared_memory.cpp130
-rw-r--r--src/core/hle/kernel/svc/svc_synchronization.cpp175
-rw-r--r--src/core/hle/kernel/svc/svc_thread.cpp412
-rw-r--r--src/core/hle/kernel/svc/svc_thread_profiler.cpp60
-rw-r--r--src/core/hle/kernel/svc/svc_tick.cpp27
-rw-r--r--src/core/hle/kernel/svc/svc_transfer_memory.cpp115
-rw-r--r--src/core/hle/kernel/svc_generator.py716
-rw-r--r--src/core/hle/kernel/svc_results.h1
-rw-r--r--src/core/hle/kernel/svc_types.h35
-rw-r--r--src/core/hle/kernel/svc_version.h58
-rw-r--r--src/core/hle/kernel/svc_wrap.h733
-rw-r--r--src/core/hle/service/acc/acc.cpp131
-rw-r--r--src/core/hle/service/acc/acc.h41
-rw-r--r--src/core/hle/service/acc/acc_su.cpp4
-rw-r--r--src/core/hle/service/acc/async_context.cpp10
-rw-r--r--src/core/hle/service/acc/async_context.h8
-rw-r--r--src/core/hle/service/acc/errors.h10
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp7
-rw-r--r--src/core/hle/service/am/am.cpp363
-rw-r--r--src/core/hle/service/am/am.h198
-rw-r--r--src/core/hle/service/am/applet_ae.cpp82
-rw-r--r--src/core/hle/service/am/applet_ae.h14
-rw-r--r--src/core/hle/service/am/applet_oe.cpp42
-rw-r--r--src/core/hle/service/am/applet_oe.h10
-rw-r--r--src/core/hle/service/am/applets/applet_cabinet.cpp29
-rw-r--r--src/core/hle/service/am/applets/applet_cabinet.h7
-rw-r--r--src/core/hle/service/am/applets/applet_controller.cpp24
-rw-r--r--src/core/hle/service/am/applets/applet_controller.h10
-rw-r--r--src/core/hle/service/am/applets/applet_error.cpp7
-rw-r--r--src/core/hle/service/am/applets/applet_error.h1
-rw-r--r--src/core/hle/service/am/applets/applet_general_backend.cpp17
-rw-r--r--src/core/hle/service/am/applets/applet_general_backend.h3
-rw-r--r--src/core/hle/service/am/applets/applet_mii_edit.cpp5
-rw-r--r--src/core/hle/service/am/applets/applet_mii_edit.h1
-rw-r--r--src/core/hle/service/am/applets/applet_profile_select.cpp64
-rw-r--r--src/core/hle/service/am/applets/applet_profile_select.h103
-rw-r--r--src/core/hle/service/am/applets/applet_software_keyboard.cpp5
-rw-r--r--src/core/hle/service/am/applets/applet_software_keyboard.h1
-rw-r--r--src/core/hle/service/am/applets/applet_web_browser.cpp7
-rw-r--r--src/core/hle/service/am/applets/applet_web_browser.h1
-rw-r--r--src/core/hle/service/am/applets/applets.h1
-rw-r--r--src/core/hle/service/am/tcap.cpp22
-rw-r--r--src/core/hle/service/am/tcap.h20
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp46
-rw-r--r--src/core/hle/service/aoc/aoc_u.h25
-rw-r--r--src/core/hle/service/apm/apm.cpp22
-rw-r--r--src/core/hle/service/apm/apm.h3
-rw-r--r--src/core/hle/service/apm/apm_controller.cpp2
-rw-r--r--src/core/hle/service/apm/apm_interface.cpp20
-rw-r--r--src/core/hle/service/apm/apm_interface.h12
-rw-r--r--src/core/hle/service/audio/audctl.cpp6
-rw-r--r--src/core/hle/service/audio/audctl.h4
-rw-r--r--src/core/hle/service/audio/auddbg.cpp21
-rw-r--r--src/core/hle/service/audio/auddbg.h20
-rw-r--r--src/core/hle/service/audio/audin_a.cpp23
-rw-r--r--src/core/hle/service/audio/audin_a.h20
-rw-r--r--src/core/hle/service/audio/audin_u.cpp53
-rw-r--r--src/core/hle/service/audio/audin_u.h14
-rw-r--r--src/core/hle/service/audio/audio.cpp33
-rw-r--r--src/core/hle/service/audio/audio.h3
-rw-r--r--src/core/hle/service/audio/audout_a.cpp25
-rw-r--r--src/core/hle/service/audio/audout_a.h20
-rw-r--r--src/core/hle/service/audio/audout_u.cpp69
-rw-r--r--src/core/hle/service/audio/audout_u.h8
-rw-r--r--src/core/hle/service/audio/audren_a.cpp27
-rw-r--r--src/core/hle/service/audio/audren_a.h20
-rw-r--r--src/core/hle/service/audio/audren_u.cpp103
-rw-r--r--src/core/hle/service/audio/audren_u.h15
-rw-r--r--src/core/hle/service/audio/codecctl.cpp29
-rw-r--r--src/core/hle/service/audio/codecctl.h20
-rw-r--r--src/core/hle/service/audio/errors.h24
-rw-r--r--src/core/hle/service/audio/hwopus.cpp35
-rw-r--r--src/core/hle/service/audio/hwopus.h10
-rw-r--r--src/core/hle/service/bcat/bcat_module.cpp84
-rw-r--r--src/core/hle/service/bcat/bcat_module.h9
-rw-r--r--src/core/hle/service/bpc/bpc.cpp11
-rw-r--r--src/core/hle/service/bpc/bpc.h2
-rw-r--r--src/core/hle/service/btdrv/btdrv.cpp14
-rw-r--r--src/core/hle/service/btdrv/btdrv.h3
-rw-r--r--src/core/hle/service/btm/btm.cpp40
-rw-r--r--src/core/hle/service/btm/btm.h2
-rw-r--r--src/core/hle/service/caps/caps.cpp18
-rw-r--r--src/core/hle/service/caps/caps.h3
-rw-r--r--src/core/hle/service/caps/caps_a.h4
-rw-r--r--src/core/hle/service/caps/caps_c.cpp4
-rw-r--r--src/core/hle/service/caps/caps_c.h6
-rw-r--r--src/core/hle/service/caps/caps_su.cpp4
-rw-r--r--src/core/hle/service/caps/caps_su.h6
-rw-r--r--src/core/hle/service/caps/caps_u.cpp8
-rw-r--r--src/core/hle/service/caps/caps_u.h10
-rw-r--r--src/core/hle/service/erpt/erpt.cpp11
-rw-r--r--src/core/hle/service/erpt/erpt.h7
-rw-r--r--src/core/hle/service/es/es.cpp34
-rw-r--r--src/core/hle/service/es/es.h7
-rw-r--r--src/core/hle/service/eupld/eupld.cpp11
-rw-r--r--src/core/hle/service/eupld/eupld.h7
-rw-r--r--src/core/hle/service/fatal/fatal.cpp20
-rw-r--r--src/core/hle/service/fatal/fatal.h8
-rw-r--r--src/core/hle/service/fgm/fgm.cpp18
-rw-r--r--src/core/hle/service/fgm/fgm.h6
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp16
-rw-r--r--src/core/hle/service/filesystem/filesystem.h2
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp161
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.h41
-rw-r--r--src/core/hle/service/friend/errors.h11
-rw-r--r--src/core/hle/service/friend/friend.cpp52
-rw-r--r--src/core/hle/service/friend/friend.h7
-rw-r--r--src/core/hle/service/glue/arp.cpp45
-rw-r--r--src/core/hle/service/glue/arp.h12
-rw-r--r--src/core/hle/service/glue/bgtc.cpp4
-rw-r--r--src/core/hle/service/glue/bgtc.h2
-rw-r--r--src/core/hle/service/glue/errors.h7
-rw-r--r--src/core/hle/service/glue/glue.cpp23
-rw-r--r--src/core/hle/service/glue/glue.h3
-rw-r--r--src/core/hle/service/glue/glue_manager.cpp16
-rw-r--r--src/core/hle/service/glue/glue_manager.h16
-rw-r--r--src/core/hle/service/glue/notif.cpp14
-rw-r--r--src/core/hle/service/glue/notif.h12
-rw-r--r--src/core/hle/service/grc/grc.cpp9
-rw-r--r--src/core/hle/service/grc/grc.h6
-rw-r--r--src/core/hle/service/hid/controllers/console_sixaxis.cpp15
-rw-r--r--src/core/hle/service/hid/controllers/console_sixaxis.h15
-rw-r--r--src/core/hle/service/hid/controllers/gesture.cpp7
-rw-r--r--src/core/hle/service/hid/controllers/mouse.cpp3
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp88
-rw-r--r--src/core/hle/service/hid/controllers/npad.h25
-rw-r--r--src/core/hle/service/hid/controllers/palma.cpp2
-rw-r--r--src/core/hle/service/hid/controllers/palma.h6
-rw-r--r--src/core/hle/service/hid/controllers/stubbed.cpp2
-rw-r--r--src/core/hle/service/hid/controllers/touchscreen.cpp13
-rw-r--r--src/core/hle/service/hid/errors.h1
-rw-r--r--src/core/hle/service/hid/hid.cpp355
-rw-r--r--src/core/hle/service/hid/hid.h235
-rw-r--r--src/core/hle/service/hid/hidbus.cpp81
-rw-r--r--src/core/hle/service/hid/hidbus.h33
-rw-r--r--src/core/hle/service/hid/hidbus/hidbus_base.cpp7
-rw-r--r--src/core/hle/service/hid/hidbus/hidbus_base.h17
-rw-r--r--src/core/hle/service/hid/hidbus/ringcon.cpp21
-rw-r--r--src/core/hle/service/hid/hidbus/ringcon.h10
-rw-r--r--src/core/hle/service/hid/hidbus/starlink.cpp8
-rw-r--r--src/core/hle/service/hid/hidbus/starlink.h5
-rw-r--r--src/core/hle/service/hid/hidbus/stubbed.cpp9
-rw-r--r--src/core/hle/service/hid/hidbus/stubbed.h5
-rw-r--r--src/core/hle/service/hid/irs.cpp72
-rw-r--r--src/core/hle/service/hid/irs.h44
-rw-r--r--src/core/hle/service/hid/irsensor/image_transfer_processor.cpp29
-rw-r--r--src/core/hle/service/hid/irsensor/image_transfer_processor.h14
-rw-r--r--src/core/hle/service/hle_ipc.cpp531
-rw-r--r--src/core/hle/service/hle_ipc.h408
-rw-r--r--src/core/hle/service/ipc_helpers.h506
-rw-r--r--src/core/hle/service/jit/jit.cpp38
-rw-r--r--src/core/hle/service/jit/jit.h7
-rw-r--r--src/core/hle/service/kernel_helpers.cpp14
-rw-r--r--src/core/hle/service/kernel_helpers.h1
-rw-r--r--src/core/hle/service/lbl/lbl.cpp60
-rw-r--r--src/core/hle/service/lbl/lbl.h6
-rw-r--r--src/core/hle/service/ldn/ldn.cpp96
-rw-r--r--src/core/hle/service/ldn/ldn.h9
-rw-r--r--src/core/hle/service/ldr/ldr.cpp56
-rw-r--r--src/core/hle/service/ldr/ldr.h7
-rw-r--r--src/core/hle/service/lm/lm.cpp16
-rw-r--r--src/core/hle/service/lm/lm.h3
-rw-r--r--src/core/hle/service/mig/mig.cpp9
-rw-r--r--src/core/hle/service/mig/mig.h6
-rw-r--r--src/core/hle/service/mii/mii.cpp38
-rw-r--r--src/core/hle/service/mii/mii.h6
-rw-r--r--src/core/hle/service/mii/mii_manager.cpp35
-rw-r--r--src/core/hle/service/mii/mii_manager.h7
-rw-r--r--src/core/hle/service/mii/types.h60
-rw-r--r--src/core/hle/service/mm/mm_u.cpp26
-rw-r--r--src/core/hle/service/mm/mm_u.h7
-rw-r--r--src/core/hle/service/mnpp/mnpp_app.cpp16
-rw-r--r--src/core/hle/service/mnpp/mnpp_app.h7
-rw-r--r--src/core/hle/service/mutex.cpp46
-rw-r--r--src/core/hle/service/mutex.h31
-rw-r--r--src/core/hle/service/ncm/ncm.cpp14
-rw-r--r--src/core/hle/service/ncm/ncm.h6
-rw-r--r--src/core/hle/service/nfc/common/amiibo_crypto.cpp392
-rw-r--r--src/core/hle/service/nfc/common/amiibo_crypto.h101
-rw-r--r--src/core/hle/service/nfc/common/device.cpp1483
-rw-r--r--src/core/hle/service/nfc/common/device.h146
-rw-r--r--src/core/hle/service/nfc/common/device_manager.cpp708
-rw-r--r--src/core/hle/service/nfc/common/device_manager.h100
-rw-r--r--src/core/hle/service/nfc/mifare_result.h17
-rw-r--r--src/core/hle/service/nfc/mifare_types.h64
-rw-r--r--src/core/hle/service/nfc/mifare_user.cpp400
-rw-r--r--src/core/hle/service/nfc/mifare_user.h52
-rw-r--r--src/core/hle/service/nfc/nfc.cpp176
-rw-r--r--src/core/hle/service/nfc/nfc.h6
-rw-r--r--src/core/hle/service/nfc/nfc_device.cpp273
-rw-r--r--src/core/hle/service/nfc/nfc_device.h77
-rw-r--r--src/core/hle/service/nfc/nfc_interface.cpp394
-rw-r--r--src/core/hle/service/nfc/nfc_interface.h49
-rw-r--r--src/core/hle/service/nfc/nfc_result.h36
-rw-r--r--src/core/hle/service/nfc/nfc_types.h91
-rw-r--r--src/core/hle/service/nfc/nfc_user.cpp365
-rw-r--r--src/core/hle/service/nfc/nfc_user.h52
-rw-r--r--src/core/hle/service/nfp/amiibo_crypto.cpp393
-rw-r--r--src/core/hle/service/nfp/amiibo_crypto.h103
-rw-r--r--src/core/hle/service/nfp/nfp.cpp191
-rw-r--r--src/core/hle/service/nfp/nfp.h2
-rw-r--r--src/core/hle/service/nfp/nfp_device.cpp719
-rw-r--r--src/core/hle/service/nfp/nfp_device.h101
-rw-r--r--src/core/hle/service/nfp/nfp_interface.cpp438
-rw-r--r--src/core/hle/service/nfp/nfp_interface.h50
-rw-r--r--src/core/hle/service/nfp/nfp_result.h31
-rw-r--r--src/core/hle/service/nfp/nfp_types.h231
-rw-r--r--src/core/hle/service/nfp/nfp_user.cpp672
-rw-r--r--src/core/hle/service/nfp/nfp_user.h63
-rw-r--r--src/core/hle/service/ngct/ngct.cpp14
-rw-r--r--src/core/hle/service/ngct/ngct.h7
-rw-r--r--src/core/hle/service/nifm/nifm.cpp65
-rw-r--r--src/core/hle/service/nifm/nifm.h31
-rw-r--r--src/core/hle/service/nim/nim.cpp43
-rw-r--r--src/core/hle/service/nim/nim.h6
-rw-r--r--src/core/hle/service/npns/npns.cpp11
-rw-r--r--src/core/hle/service/npns/npns.h6
-rw-r--r--src/core/hle/service/ns/errors.h5
-rw-r--r--src/core/hle/service/ns/iplatform_service_manager.cpp16
-rw-r--r--src/core/hle/service/ns/iplatform_service_manager.h12
-rw-r--r--src/core/hle/service/ns/ns.cpp73
-rw-r--r--src/core/hle/service/ns/ns.h17
-rw-r--r--src/core/hle/service/ns/pdm_qry.cpp4
-rw-r--r--src/core/hle/service/ns/pdm_qry.h2
-rw-r--r--src/core/hle/service/nvdrv/core/syncpoint_manager.cpp2
-rw-r--r--src/core/hle/service/nvdrv/core/syncpoint_manager.h2
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdevice.h16
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp14
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdisp_disp0.h16
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp37
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h34
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp30
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.h25
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp39
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h42
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp72
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_gpu.h42
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp16
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec.h12
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp24
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h14
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp14
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h14
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_vic.cpp12
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_vic.h12
-rw-r--r--src/core/hle/service/nvdrv/devices/nvmap.cpp30
-rw-r--r--src/core/hle/service/nvdrv/devices/nvmap.h24
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.cpp39
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.h24
-rw-r--r--src/core/hle/service/nvdrv/nvdrv_interface.cpp52
-rw-r--r--src/core/hle/service/nvdrv/nvdrv_interface.h29
-rw-r--r--src/core/hle/service/nvdrv/nvmemp.cpp4
-rw-r--r--src/core/hle/service/nvdrv/nvmemp.h4
-rw-r--r--src/core/hle/service/nvflinger/binder.h43
-rw-r--r--src/core/hle/service/nvflinger/buffer_item.h46
-rw-r--r--src/core/hle/service/nvflinger/buffer_item_consumer.cpp59
-rw-r--r--src/core/hle/service/nvflinger/buffer_item_consumer.h28
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_consumer.cpp213
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_consumer.h43
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_core.cpp115
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_core.h80
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_defs.h21
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_producer.cpp933
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_producer.h90
-rw-r--r--src/core/hle/service/nvflinger/buffer_slot.h38
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.cpp133
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.h60
-rw-r--r--src/core/hle/service/nvflinger/graphic_buffer_producer.cpp18
-rw-r--r--src/core/hle/service/nvflinger/graphic_buffer_producer.h76
-rw-r--r--src/core/hle/service/nvflinger/hos_binder_driver_server.cpp36
-rw-r--r--src/core/hle/service/nvflinger/hos_binder_driver_server.h37
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp335
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h155
-rw-r--r--src/core/hle/service/nvflinger/parcel.h172
-rw-r--r--src/core/hle/service/nvflinger/ui/graphic_buffer.h100
-rw-r--r--src/core/hle/service/nvnflinger/binder.h45
-rw-r--r--src/core/hle/service/nvnflinger/buffer_item.h46
-rw-r--r--src/core/hle/service/nvnflinger/buffer_item_consumer.cpp59
-rw-r--r--src/core/hle/service/nvnflinger/buffer_item_consumer.h28
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp213
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_consumer.h43
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_core.cpp115
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_core.h80
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_defs.h21
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_producer.cpp934
-rw-r--r--src/core/hle/service/nvnflinger/buffer_queue_producer.h90
-rw-r--r--src/core/hle/service/nvnflinger/buffer_slot.h38
-rw-r--r--src/core/hle/service/nvnflinger/buffer_transform_flags.h (renamed from src/core/hle/service/nvflinger/buffer_transform_flags.h)0
-rw-r--r--src/core/hle/service/nvnflinger/consumer_base.cpp133
-rw-r--r--src/core/hle/service/nvnflinger/consumer_base.h60
-rw-r--r--src/core/hle/service/nvnflinger/consumer_listener.h (renamed from src/core/hle/service/nvflinger/consumer_listener.h)0
-rw-r--r--src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp18
-rw-r--r--src/core/hle/service/nvnflinger/graphic_buffer_producer.h76
-rw-r--r--src/core/hle/service/nvnflinger/hos_binder_driver_server.cpp36
-rw-r--r--src/core/hle/service/nvnflinger/hos_binder_driver_server.h37
-rw-r--r--src/core/hle/service/nvnflinger/nvnflinger.cpp334
-rw-r--r--src/core/hle/service/nvnflinger/nvnflinger.h156
-rw-r--r--src/core/hle/service/nvnflinger/parcel.h184
-rw-r--r--src/core/hle/service/nvnflinger/pixel_format.h (renamed from src/core/hle/service/nvflinger/pixel_format.h)0
-rw-r--r--src/core/hle/service/nvnflinger/producer_listener.h (renamed from src/core/hle/service/nvflinger/producer_listener.h)0
-rw-r--r--src/core/hle/service/nvnflinger/status.h (renamed from src/core/hle/service/nvflinger/status.h)0
-rw-r--r--src/core/hle/service/nvnflinger/ui/fence.h (renamed from src/core/hle/service/nvflinger/ui/fence.h)0
-rw-r--r--src/core/hle/service/nvnflinger/ui/graphic_buffer.h100
-rw-r--r--src/core/hle/service/nvnflinger/window.h (renamed from src/core/hle/service/nvflinger/window.h)0
-rw-r--r--src/core/hle/service/olsc/olsc.cpp17
-rw-r--r--src/core/hle/service/olsc/olsc.h7
-rw-r--r--src/core/hle/service/pcie/pcie.cpp9
-rw-r--r--src/core/hle/service/pcie/pcie.h6
-rw-r--r--src/core/hle/service/pctl/pctl_module.cpp56
-rw-r--r--src/core/hle/service/pctl/pctl_module.h7
-rw-r--r--src/core/hle/service/pcv/pcv.cpp51
-rw-r--r--src/core/hle/service/pcv/pcv.h6
-rw-r--r--src/core/hle/service/pm/pm.cpp56
-rw-r--r--src/core/hle/service/pm/pm.h3
-rw-r--r--src/core/hle/service/prepo/prepo.cpp49
-rw-r--r--src/core/hle/service/prepo/prepo.h6
-rw-r--r--src/core/hle/service/psc/psc.cpp29
-rw-r--r--src/core/hle/service/psc/psc.h2
-rw-r--r--src/core/hle/service/ptm/psm.cpp18
-rw-r--r--src/core/hle/service/ptm/psm.h6
-rw-r--r--src/core/hle/service/ptm/ptm.cpp10
-rw-r--r--src/core/hle/service/ptm/ptm.h6
-rw-r--r--src/core/hle/service/ptm/ts.cpp6
-rw-r--r--src/core/hle/service/ptm/ts.h4
-rw-r--r--src/core/hle/service/server_manager.cpp451
-rw-r--r--src/core/hle/service/server_manager.h90
-rw-r--r--src/core/hle/service/service.cpp175
-rw-r--r--src/core/hle/service/service.h69
-rw-r--r--src/core/hle/service/set/set.cpp34
-rw-r--r--src/core/hle/service/set/set.h22
-rw-r--r--src/core/hle/service/set/set_sys.cpp18
-rw-r--r--src/core/hle/service/set/set_sys.h14
-rw-r--r--src/core/hle/service/set/settings.cpp15
-rw-r--r--src/core/hle/service/set/settings.h7
-rw-r--r--src/core/hle/service/sm/sm.cpp113
-rw-r--r--src/core/hle/service/sm/sm.h35
-rw-r--r--src/core/hle/service/sm/sm_controller.cpp22
-rw-r--r--src/core/hle/service/sm/sm_controller.h8
-rw-r--r--src/core/hle/service/sockets/bsd.cpp87
-rw-r--r--src/core/hle/service/sockets/bsd.h87
-rw-r--r--src/core/hle/service/sockets/ethc.cpp42
-rw-r--r--src/core/hle/service/sockets/ethc.h26
-rw-r--r--src/core/hle/service/sockets/sfdnsres.cpp10
-rw-r--r--src/core/hle/service/sockets/sfdnsres.h4
-rw-r--r--src/core/hle/service/sockets/sockets.cpp23
-rw-r--r--src/core/hle/service/sockets/sockets.h8
-rw-r--r--src/core/hle/service/sockets/sockets_translate.cpp2
-rw-r--r--src/core/hle/service/spl/spl_module.cpp36
-rw-r--r--src/core/hle/service/spl/spl_module.h17
-rw-r--r--src/core/hle/service/ssl/ssl.cpp115
-rw-r--r--src/core/hle/service/ssl/ssl.h7
-rw-r--r--src/core/hle/service/time/clock_types.h25
-rw-r--r--src/core/hle/service/time/standard_steady_clock_core.cpp2
-rw-r--r--src/core/hle/service/time/tick_based_steady_clock_core.cpp2
-rw-r--r--src/core/hle/service/time/time.cpp53
-rw-r--r--src/core/hle/service/time/time.h27
-rw-r--r--src/core/hle/service/time/time_manager.cpp34
-rw-r--r--src/core/hle/service/time/time_manager.h4
-rw-r--r--src/core/hle/service/time/time_sharedmemory.cpp24
-rw-r--r--src/core/hle/service/time/time_sharedmemory.h5
-rw-r--r--src/core/hle/service/time/time_zone_content_manager.cpp26
-rw-r--r--src/core/hle/service/time/time_zone_manager.cpp163
-rw-r--r--src/core/hle/service/time/time_zone_manager.h8
-rw-r--r--src/core/hle/service/time/time_zone_service.cpp81
-rw-r--r--src/core/hle/service/time/time_zone_service.h15
-rw-r--r--src/core/hle/service/usb/usb.cpp79
-rw-r--r--src/core/hle/service/usb/usb.h6
-rw-r--r--src/core/hle/service/vi/display/vi_display.cpp12
-rw-r--r--src/core/hle/service/vi/display/vi_display.h8
-rw-r--r--src/core/hle/service/vi/vi.cpp135
-rw-r--r--src/core/hle/service/vi/vi.h24
-rw-r--r--src/core/hle/service/vi/vi_m.cpp10
-rw-r--r--src/core/hle/service/vi/vi_m.h20
-rw-r--r--src/core/hle/service/vi/vi_s.cpp6
-rw-r--r--src/core/hle/service/vi/vi_s.h20
-rw-r--r--src/core/hle/service/vi/vi_u.cpp6
-rw-r--r--src/core/hle/service/vi/vi_u.h20
-rw-r--r--src/core/hle/service/wlan/wlan.cpp186
-rw-r--r--src/core/hle/service/wlan/wlan.h18
-rw-r--r--src/core/internal_network/network.cpp14
-rw-r--r--src/core/internal_network/network.h1
-rw-r--r--src/core/internal_network/network_interface.cpp2
-rw-r--r--src/core/internal_network/socket_proxy.cpp4
-rw-r--r--src/core/internal_network/socket_proxy.h8
-rw-r--r--src/core/internal_network/sockets.h22
-rw-r--r--src/core/loader/deconstructed_rom_directory.cpp2
-rw-r--r--src/core/loader/kip.cpp2
-rw-r--r--src/core/loader/nro.cpp13
-rw-r--r--src/core/loader/nro.h2
-rw-r--r--src/core/loader/nso.cpp4
-rw-r--r--src/core/memory.cpp354
-rw-r--r--src/core/memory.h122
-rw-r--r--src/core/memory/cheat_engine.cpp25
-rw-r--r--src/core/perf_stats.cpp4
-rw-r--r--src/core/reporter.cpp24
-rw-r--r--src/core/reporter.h10
-rw-r--r--src/core/telemetry_session.cpp19
-rw-r--r--src/dedicated_room/yuzu_room.cpp16
-rw-r--r--src/input_common/CMakeLists.txt23
-rw-r--r--src/input_common/drivers/camera.cpp4
-rw-r--r--src/input_common/drivers/camera.h4
-rw-r--r--src/input_common/drivers/gc_adapter.cpp12
-rw-r--r--src/input_common/drivers/gc_adapter.h2
-rw-r--r--src/input_common/drivers/joycon.cpp844
-rw-r--r--src/input_common/drivers/joycon.h125
-rw-r--r--src/input_common/drivers/keyboard.cpp2
-rw-r--r--src/input_common/drivers/mouse.cpp231
-rw-r--r--src/input_common/drivers/mouse.h43
-rw-r--r--src/input_common/drivers/sdl_driver.cpp129
-rw-r--r--src/input_common/drivers/sdl_driver.h2
-rw-r--r--src/input_common/drivers/virtual_amiibo.cpp179
-rw-r--r--src/input_common/drivers/virtual_amiibo.h23
-rw-r--r--src/input_common/drivers/virtual_gamepad.cpp16
-rw-r--r--src/input_common/drivers/virtual_gamepad.h12
-rw-r--r--src/input_common/helpers/joycon_driver.cpp710
-rw-r--r--src/input_common/helpers/joycon_driver.h158
-rw-r--r--src/input_common/helpers/joycon_protocol/calibration.cpp218
-rw-r--r--src/input_common/helpers/joycon_protocol/calibration.h82
-rw-r--r--src/input_common/helpers/joycon_protocol/common_protocol.cpp313
-rw-r--r--src/input_common/helpers/joycon_protocol/common_protocol.h201
-rw-r--r--src/input_common/helpers/joycon_protocol/generic_functions.cpp136
-rw-r--r--src/input_common/helpers/joycon_protocol/generic_functions.h114
-rw-r--r--src/input_common/helpers/joycon_protocol/irs.cpp299
-rw-r--r--src/input_common/helpers/joycon_protocol/irs.h63
-rw-r--r--src/input_common/helpers/joycon_protocol/joycon_types.h808
-rw-r--r--src/input_common/helpers/joycon_protocol/nfc.cpp985
-rw-r--r--src/input_common/helpers/joycon_protocol/nfc.h114
-rw-r--r--src/input_common/helpers/joycon_protocol/poller.cpp374
-rw-r--r--src/input_common/helpers/joycon_protocol/poller.h84
-rw-r--r--src/input_common/helpers/joycon_protocol/ringcon.cpp115
-rw-r--r--src/input_common/helpers/joycon_protocol/ringcon.h38
-rw-r--r--src/input_common/helpers/joycon_protocol/rumble.cpp299
-rw-r--r--src/input_common/helpers/joycon_protocol/rumble.h33
-rw-r--r--src/input_common/helpers/stick_from_buttons.cpp50
-rw-r--r--src/input_common/helpers/udp_protocol.cpp2
-rw-r--r--src/input_common/input_engine.cpp48
-rw-r--r--src/input_common/input_engine.h59
-rw-r--r--src/input_common/input_mapping.cpp18
-rw-r--r--src/input_common/input_poller.cpp135
-rw-r--r--src/input_common/input_poller.h11
-rw-r--r--src/input_common/main.cpp14
-rw-r--r--src/input_common/main.h2
-rw-r--r--src/network/CMakeLists.txt2
-rw-r--r--src/network/packet.h2
-rw-r--r--src/network/room.cpp2
-rw-r--r--src/network/room_member.h16
-rw-r--r--src/shader_recompiler/CMakeLists.txt2
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm.cpp4
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_bitwise_conversion.cpp4
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_image.cpp23
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_instructions.h3
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp80
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp4
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_image.cpp82
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_instructions.h3
-rw-r--r--src/shader_recompiler/backend/glsl/glsl_emit_context.cpp57
-rw-r--r--src/shader_recompiler/backend/glsl/glsl_emit_context.h2
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.cpp2
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp10
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp4
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp55
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_image.cpp65
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_instructions.h4
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp17
-rw-r--r--src/shader_recompiler/backend/spirv/spirv_emit_context.cpp72
-rw-r--r--src/shader_recompiler/backend/spirv/spirv_emit_context.h17
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp14
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.h8
-rw-r--r--src/shader_recompiler/frontend/ir/opcodes.h1
-rw-r--r--src/shader_recompiler/frontend/ir/opcodes.inc7
-rw-r--r--src/shader_recompiler/frontend/ir/type.h31
-rw-r--r--src/shader_recompiler/frontend/ir/value.cpp3
-rw-r--r--src/shader_recompiler/frontend/ir/value.h25
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/integer_funnel_shift.cpp2
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp7
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp8
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate_program.cpp8
-rw-r--r--src/shader_recompiler/host_translate_info.h4
-rw-r--r--src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp4
-rw-r--r--src/shader_recompiler/ir_opt/conditional_barrier_pass.cpp44
-rw-r--r--src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp21
-rw-r--r--src/shader_recompiler/ir_opt/lower_fp64_to_fp32.cpp185
-rw-r--r--src/shader_recompiler/ir_opt/passes.h4
-rw-r--r--src/shader_recompiler/ir_opt/texture_pass.cpp44
-rw-r--r--src/shader_recompiler/object_pool.h4
-rw-r--r--src/shader_recompiler/profile.h7
-rw-r--r--src/shader_recompiler/runtime_info.h5
-rw-r--r--src/shader_recompiler/shader_info.h2
-rw-r--r--src/tests/CMakeLists.txt3
-rw-r--r--src/tests/common/container_hash.cpp44
-rw-r--r--src/tests/common/range_map.cpp20
-rw-r--r--src/tests/common/ring_buffer.cpp2
-rw-r--r--src/tests/common/scratch_buffer.cpp2
-rw-r--r--src/tests/video_core/buffer_base.cpp549
-rw-r--r--src/tests/video_core/memory_tracker.cpp549
-rw-r--r--src/video_core/CMakeLists.txt33
-rw-r--r--src/video_core/buffer_cache/buffer_base.h525
-rw-r--r--src/video_core/buffer_cache/buffer_cache.cpp8
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h1410
-rw-r--r--src/video_core/buffer_cache/buffer_cache_base.h588
-rw-r--r--src/video_core/buffer_cache/memory_tracker_base.h299
-rw-r--r--src/video_core/buffer_cache/word_manager.h485
-rw-r--r--src/video_core/cdma_pusher.h1
-rw-r--r--src/video_core/compatible_formats.cpp20
-rw-r--r--src/video_core/control/channel_state_cache.h2
-rw-r--r--src/video_core/dma_pusher.h8
-rw-r--r--src/video_core/engines/draw_manager.cpp11
-rw-r--r--src/video_core/engines/fermi_2d.cpp16
-rw-r--r--src/video_core/engines/maxwell_3d.cpp29
-rw-r--r--src/video_core/engines/maxwell_3d.h8
-rw-r--r--src/video_core/engines/maxwell_dma.cpp149
-rw-r--r--src/video_core/engines/maxwell_dma.h88
-rw-r--r--src/video_core/engines/sw_blitter/blitter.cpp27
-rw-r--r--src/video_core/fence_manager.h148
-rw-r--r--src/video_core/framebuffer_config.h4
-rw-r--r--src/video_core/fsr.cpp148
-rw-r--r--src/video_core/fsr.h19
-rw-r--r--src/video_core/gpu.cpp35
-rw-r--r--src/video_core/gpu.h4
-rw-r--r--src/video_core/gpu_thread.cpp16
-rw-r--r--src/video_core/gpu_thread.h12
-rw-r--r--src/video_core/host1x/codecs/codec.cpp95
-rw-r--r--src/video_core/host1x/codecs/codec.h8
-rw-r--r--src/video_core/host1x/codecs/h264.cpp8
-rw-r--r--src/video_core/host1x/vic.cpp14
-rw-r--r--src/video_core/host_shaders/CMakeLists.txt35
-rw-r--r--src/video_core/host_shaders/astc_decoder.comp2
-rw-r--r--src/video_core/host_shaders/convert_msaa_to_non_msaa.comp30
-rw-r--r--src/video_core/host_shaders/convert_non_msaa_to_msaa.comp29
-rw-r--r--src/video_core/host_shaders/opengl_fidelityfx_fsr.frag108
-rw-r--r--src/video_core/host_shaders/opengl_fidelityfx_fsr_easu.frag9
-rw-r--r--src/video_core/host_shaders/opengl_fidelityfx_fsr_rcas.frag9
-rw-r--r--src/video_core/host_shaders/opengl_lmem_warmup.comp47
-rw-r--r--src/video_core/host_shaders/opengl_smaa.glsl2
-rw-r--r--src/video_core/host_shaders/vulkan_color_clear.frag14
-rw-r--r--src/video_core/host_shaders/vulkan_color_clear.vert10
-rw-r--r--src/video_core/macro/macro.cpp6
-rw-r--r--src/video_core/memory_manager.cpp104
-rw-r--r--src/video_core/memory_manager.h36
-rw-r--r--src/video_core/query_cache.h141
-rw-r--r--src/video_core/rasterizer_download_area.h16
-rw-r--r--src/video_core/rasterizer_interface.h3
-rw-r--r--src/video_core/renderer_base.cpp1
-rw-r--r--src/video_core/renderer_base.h5
-rw-r--r--src/video_core/renderer_null/null_rasterizer.cpp10
-rw-r--r--src/video_core/renderer_null/null_rasterizer.h9
-rw-r--r--src/video_core/renderer_null/renderer_null.cpp2
-rw-r--r--src/video_core/renderer_opengl/blit_image.cpp3
-rw-r--r--src/video_core/renderer_opengl/gl_buffer_cache.cpp77
-rw-r--r--src/video_core/renderer_opengl/gl_buffer_cache.h41
-rw-r--r--src/video_core/renderer_opengl/gl_buffer_cache_base.cpp9
-rw-r--r--src/video_core/renderer_opengl/gl_compute_pipeline.cpp47
-rw-r--r--src/video_core/renderer_opengl/gl_compute_pipeline.h15
-rw-r--r--src/video_core/renderer_opengl/gl_device.cpp5
-rw-r--r--src/video_core/renderer_opengl/gl_device.h14
-rw-r--r--src/video_core/renderer_opengl/gl_fence_manager.cpp4
-rw-r--r--src/video_core/renderer_opengl/gl_fence_manager.h12
-rw-r--r--src/video_core/renderer_opengl/gl_fsr.cpp101
-rw-r--r--src/video_core/renderer_opengl/gl_fsr.h43
-rw-r--r--src/video_core/renderer_opengl/gl_graphics_pipeline.cpp40
-rw-r--r--src/video_core/renderer_opengl/gl_graphics_pipeline.h7
-rw-r--r--src/video_core/renderer_opengl/gl_query_cache.cpp12
-rw-r--r--src/video_core/renderer_opengl/gl_query_cache.h6
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp83
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h20
-rw-r--r--src/video_core/renderer_opengl/gl_resource_manager.cpp10
-rw-r--r--src/video_core/renderer_opengl/gl_resource_manager.h3
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp25
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.h6
-rw-r--r--src/video_core/renderer_opengl/gl_shader_context.h7
-rw-r--r--src/video_core/renderer_opengl/gl_shader_manager.cpp13
-rw-r--r--src/video_core/renderer_opengl/gl_shader_manager.h3
-rw-r--r--src/video_core/renderer_opengl/gl_staging_buffer_pool.cpp150
-rw-r--r--src/video_core/renderer_opengl/gl_staging_buffer_pool.h95
-rw-r--r--src/video_core/renderer_opengl/gl_stream_buffer.cpp63
-rw-r--r--src/video_core/renderer_opengl/gl_stream_buffer.h51
-rw-r--r--src/video_core/renderer_opengl/gl_texture_cache.cpp299
-rw-r--r--src/video_core/renderer_opengl/gl_texture_cache.h82
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h3
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp90
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.h3
-rw-r--r--src/video_core/renderer_opengl/util_shaders.cpp42
-rw-r--r--src/video_core/renderer_opengl/util_shaders.h15
-rw-r--r--src/video_core/renderer_vulkan/blit_image.cpp126
-rw-r--r--src/video_core/renderer_vulkan/blit_image.h10
-rw-r--r--src/video_core/renderer_vulkan/fixed_pipeline_state.cpp6
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp42
-rw-r--r--src/video_core/renderer_vulkan/pipeline_helper.h15
-rw-r--r--src/video_core/renderer_vulkan/renderer_vulkan.cpp76
-rw-r--r--src/video_core/renderer_vulkan/renderer_vulkan.h8
-rw-r--r--src/video_core/renderer_vulkan/vk_blit_screen.cpp257
-rw-r--r--src/video_core/renderer_vulkan/vk_blit_screen.h37
-rw-r--r--src/video_core/renderer_vulkan/vk_buffer_cache.cpp165
-rw-r--r--src/video_core/renderer_vulkan/vk_buffer_cache.h31
-rw-r--r--src/video_core/renderer_vulkan/vk_buffer_cache_base.cpp9
-rw-r--r--src/video_core/renderer_vulkan/vk_command_pool.cpp4
-rw-r--r--src/video_core/renderer_vulkan/vk_compute_pass.cpp39
-rw-r--r--src/video_core/renderer_vulkan/vk_compute_pass.h14
-rw-r--r--src/video_core/renderer_vulkan/vk_compute_pipeline.cpp20
-rw-r--r--src/video_core/renderer_vulkan/vk_compute_pipeline.h4
-rw-r--r--src/video_core/renderer_vulkan/vk_fence_manager.cpp1
-rw-r--r--src/video_core/renderer_vulkan/vk_fence_manager.h11
-rw-r--r--src/video_core/renderer_vulkan/vk_fsr.cpp148
-rw-r--r--src/video_core/renderer_vulkan/vk_fsr.h1
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp47
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.h5
-rw-r--r--src/video_core/renderer_vulkan/vk_master_semaphore.cpp175
-rw-r--r--src/video_core/renderer_vulkan/vk_master_semaphore.h62
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp48
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.h11
-rw-r--r--src/video_core/renderer_vulkan/vk_present_manager.cpp491
-rw-r--r--src/video_core/renderer_vulkan/vk_present_manager.h91
-rw-r--r--src/video_core/renderer_vulkan/vk_query_cache.cpp15
-rw-r--r--src/video_core/renderer_vulkan/vk_query_cache.h5
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp145
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.h20
-rw-r--r--src/video_core/renderer_vulkan/vk_resource_pool.cpp4
-rw-r--r--src/video_core/renderer_vulkan/vk_scheduler.cpp144
-rw-r--r--src/video_core/renderer_vulkan/vk_scheduler.h12
-rw-r--r--src/video_core/renderer_vulkan/vk_smaa.cpp53
-rw-r--r--src/video_core/renderer_vulkan/vk_smaa.h2
-rw-r--r--src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp105
-rw-r--r--src/video_core/renderer_vulkan/vk_staging_buffer_pool.h4
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.cpp156
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.h41
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.cpp227
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.h42
-rw-r--r--src/video_core/renderer_vulkan/vk_turbo_mode.cpp33
-rw-r--r--src/video_core/renderer_vulkan/vk_turbo_mode.h2
-rw-r--r--src/video_core/renderer_vulkan/vk_update_descriptor.cpp13
-rw-r--r--src/video_core/renderer_vulkan/vk_update_descriptor.h14
-rw-r--r--src/video_core/shader_cache.cpp8
-rw-r--r--src/video_core/shader_environment.cpp16
-rw-r--r--src/video_core/shader_environment.h6
-rw-r--r--src/video_core/surface.cpp5
-rw-r--r--src/video_core/surface.h12
-rw-r--r--src/video_core/texture_cache/descriptor_table.h4
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp68
-rw-r--r--src/video_core/texture_cache/formatter.cpp25
-rw-r--r--src/video_core/texture_cache/formatter.h8
-rw-r--r--src/video_core/texture_cache/image_base.cpp7
-rw-r--r--src/video_core/texture_cache/image_base.h12
-rw-r--r--src/video_core/texture_cache/image_info.cpp163
-rw-r--r--src/video_core/texture_cache/image_info.h11
-rw-r--r--src/video_core/texture_cache/image_view_base.cpp64
-rw-r--r--src/video_core/texture_cache/image_view_base.h9
-rw-r--r--src/video_core/texture_cache/samples_helper.h44
-rw-r--r--src/video_core/texture_cache/slot_vector.h2
-rw-r--r--src/video_core/texture_cache/texture_cache.h691
-rw-r--r--src/video_core/texture_cache/texture_cache_base.h106
-rw-r--r--src/video_core/texture_cache/types.h1
-rw-r--r--src/video_core/texture_cache/util.cpp239
-rw-r--r--src/video_core/texture_cache/util.h35
-rw-r--r--src/video_core/textures/astc.cpp7
-rw-r--r--src/video_core/textures/bcn.cpp87
-rw-r--r--src/video_core/textures/bcn.h17
-rw-r--r--src/video_core/textures/decoders.cpp2
-rw-r--r--src/video_core/textures/texture.cpp21
-rw-r--r--src/video_core/textures/texture.h70
-rw-r--r--src/video_core/textures/workers.cpp15
-rw-r--r--src/video_core/textures/workers.h12
-rw-r--r--src/video_core/transform_feedback.cpp8
-rw-r--r--src/video_core/transform_feedback.h2
-rw-r--r--src/video_core/video_core.cpp2
-rw-r--r--src/video_core/vulkan_common/vulkan_debug_callback.cpp28
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp191
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h91
-rw-r--r--src/video_core/vulkan_common/vulkan_library.cpp18
-rw-r--r--src/video_core/vulkan_common/vulkan_library.h6
-rw-r--r--src/video_core/vulkan_common/vulkan_memory_allocator.cpp175
-rw-r--r--src/video_core/vulkan_common/vulkan_memory_allocator.h28
-rw-r--r--src/video_core/vulkan_common/vulkan_surface.cpp6
-rw-r--r--src/video_core/vulkan_common/vulkan_surface.h9
-rw-r--r--src/video_core/vulkan_common/vulkan_wrapper.cpp52
-rw-r--r--src/video_core/vulkan_common/vulkan_wrapper.h175
-rw-r--r--src/web_service/verify_login.cpp2
-rw-r--r--src/web_service/web_backend.cpp2
-rw-r--r--src/yuzu/CMakeLists.txt17
-rw-r--r--src/yuzu/applets/qt_amiibo_settings.cpp23
-rw-r--r--src/yuzu/applets/qt_amiibo_settings.h16
-rw-r--r--src/yuzu/applets/qt_controller.cpp17
-rw-r--r--src/yuzu/applets/qt_controller.h4
-rw-r--r--src/yuzu/applets/qt_controller.ui8
-rw-r--r--src/yuzu/applets/qt_error.cpp11
-rw-r--r--src/yuzu/applets/qt_error.h2
-rw-r--r--src/yuzu/applets/qt_profile_select.cpp97
-rw-r--r--src/yuzu/applets/qt_profile_select.h13
-rw-r--r--src/yuzu/applets/qt_software_keyboard.cpp2
-rw-r--r--src/yuzu/applets/qt_software_keyboard.h4
-rw-r--r--src/yuzu/applets/qt_web_browser.cpp11
-rw-r--r--src/yuzu/applets/qt_web_browser.h4
-rw-r--r--src/yuzu/bootmanager.cpp109
-rw-r--r--src/yuzu/bootmanager.h36
-rw-r--r--src/yuzu/compatdb.cpp6
-rw-r--r--src/yuzu/configuration/config.cpp119
-rw-r--r--src/yuzu/configuration/config.h10
-rw-r--r--src/yuzu/configuration/configure_audio.cpp15
-rw-r--r--src/yuzu/configuration/configure_audio.ui45
-rw-r--r--src/yuzu/configuration/configure_dialog.cpp7
-rw-r--r--src/yuzu/configuration/configure_dialog.h9
-rw-r--r--src/yuzu/configuration/configure_general.cpp11
-rw-r--r--src/yuzu/configuration/configure_general.h1
-rw-r--r--src/yuzu/configuration/configure_general.ui14
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp196
-rw-r--r--src/yuzu/configuration/configure_graphics.h32
-rw-r--r--src/yuzu/configuration/configure_graphics.ui42
-rw-r--r--src/yuzu/configuration/configure_graphics_advanced.cpp85
-rw-r--r--src/yuzu/configuration/configure_graphics_advanced.h9
-rw-r--r--src/yuzu/configuration/configure_graphics_advanced.ui104
-rw-r--r--src/yuzu/configuration/configure_hotkeys.cpp65
-rw-r--r--src/yuzu/configuration/configure_hotkeys.h4
-rw-r--r--src/yuzu/configuration/configure_input.cpp3
-rw-r--r--src/yuzu/configuration/configure_input_advanced.cpp13
-rw-r--r--src/yuzu/configuration/configure_input_advanced.ui47
-rw-r--r--src/yuzu/configuration/configure_input_player.cpp69
-rw-r--r--src/yuzu/configuration/configure_input_player.h2
-rw-r--r--src/yuzu/configuration/configure_input_player.ui96
-rw-r--r--src/yuzu/configuration/configure_input_player_widget.cpp136
-rw-r--r--src/yuzu/configuration/configure_input_player_widget.h9
-rw-r--r--src/yuzu/configuration/configure_motion_touch.cpp1
-rw-r--r--src/yuzu/configuration/configure_mouse_panning.cpp79
-rw-r--r--src/yuzu/configuration/configure_mouse_panning.h35
-rw-r--r--src/yuzu/configuration/configure_mouse_panning.ui238
-rw-r--r--src/yuzu/configuration/configure_per_game.cpp8
-rw-r--r--src/yuzu/configuration/configure_per_game.h5
-rw-r--r--src/yuzu/configuration/configure_ringcon.cpp107
-rw-r--r--src/yuzu/configuration/configure_ringcon.h14
-rw-r--r--src/yuzu/configuration/configure_ringcon.ui398
-rw-r--r--src/yuzu/configuration/configure_system.cpp43
-rw-r--r--src/yuzu/configuration/configure_system.h3
-rw-r--r--src/yuzu/configuration/configure_system.ui60
-rw-r--r--src/yuzu/configuration/configure_tas.cpp1
-rw-r--r--src/yuzu/configuration/input_profiles.cpp7
-rw-r--r--src/yuzu/debugger/controller.cpp5
-rw-r--r--src/yuzu/debugger/profiler.cpp5
-rw-r--r--src/yuzu/debugger/wait_tree.cpp72
-rw-r--r--src/yuzu/debugger/wait_tree.h36
-rw-r--r--src/yuzu/discord_impl.cpp69
-rw-r--r--src/yuzu/game_list.cpp5
-rw-r--r--src/yuzu/game_list.h2
-rw-r--r--src/yuzu/install_dialog.cpp1
-rw-r--r--src/yuzu/loading_screen.cpp2
-rw-r--r--src/yuzu/main.cpp744
-rw-r--r--src/yuzu/main.h51
-rw-r--r--src/yuzu/multiplayer/direct_connect.cpp21
-rw-r--r--src/yuzu/multiplayer/direct_connect.ui23
-rw-r--r--src/yuzu/multiplayer/lobby.cpp18
-rw-r--r--src/yuzu/multiplayer/lobby.h2
-rw-r--r--src/yuzu/multiplayer/lobby.ui7
-rw-r--r--src/yuzu/multiplayer/state.cpp2
-rw-r--r--src/yuzu/multiplayer/state.h4
-rw-r--r--src/yuzu/multiplayer/validation.h25
-rw-r--r--src/yuzu/qt_common.cpp55
-rw-r--r--src/yuzu/qt_common.h15
-rw-r--r--src/yuzu/startup_checks.cpp6
-rw-r--r--src/yuzu/util/limitable_input_dialog.cpp2
-rw-r--r--src/yuzu/util/overlay_dialog.cpp2
-rw-r--r--src/yuzu/util/overlay_dialog.h2
-rw-r--r--src/yuzu/util/sequence_dialog/sequence_dialog.cpp1
-rw-r--r--src/yuzu/vk_device_info.cpp61
-rw-r--r--src/yuzu/vk_device_info.h36
-rw-r--r--src/yuzu_cmd/config.cpp26
-rw-r--r--src/yuzu_cmd/default_ini.h102
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp52
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.h12
-rw-r--r--src/yuzu_cmd/yuzu.cpp63
-rw-r--r--vcpkg.json17
1497 files changed, 111211 insertions, 50232 deletions
diff --git a/.ci/scripts/android/build.sh b/.ci/scripts/android/build.sh
new file mode 100755
index 000000000..a5fd1ee18
--- /dev/null
+++ b/.ci/scripts/android/build.sh
@@ -0,0 +1,15 @@
+#!/bin/bash -ex
+
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+export NDK_CCACHE="$(which ccache)"
+ccache -s
+
+BUILD_FLAVOR=mainline
+
+cd src/android
+chmod +x ./gradlew
+./gradlew "assemble${BUILD_FLAVOR}Release" "bundle${BUILD_FLAVOR}Release"
+
+ccache -s
diff --git a/.ci/scripts/android/upload.sh b/.ci/scripts/android/upload.sh
new file mode 100755
index 000000000..cfaeff328
--- /dev/null
+++ b/.ci/scripts/android/upload.sh
@@ -0,0 +1,27 @@
+#!/bin/bash -ex
+
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+. ./.ci/scripts/common/pre-upload.sh
+
+REV_NAME="yuzu-${GITDATE}-${GITREV}"
+
+BUILD_FLAVOR=mainline
+
+cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/release/app-${BUILD_FLAVOR}-release.apk" \
+ "artifacts/${REV_NAME}.apk"
+cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}Release"/"app-${BUILD_FLAVOR}-release.aab" \
+ "artifacts/${REV_NAME}.aab"
+
+if [ -n "${ANDROID_KEYSTORE_B64}" ]
+then
+ echo "Signing apk..."
+ base64 --decode <<< "${ANDROID_KEYSTORE_B64}" > ks.jks
+
+ apksigner sign --ks ks.jks \
+ --ks-key-alias "${ANDROID_KEY_ALIAS}" \
+ --ks-pass env:ANDROID_KEYSTORE_PASS "artifacts/${REV_NAME}.apk"
+else
+ echo "No keystore specified, not signing the APK files."
+fi
diff --git a/.ci/scripts/format/script.sh b/.ci/scripts/format/script.sh
index 225bbc972..25b0718f0 100755
--- a/.ci/scripts/format/script.sh
+++ b/.ci/scripts/format/script.sh
@@ -10,7 +10,7 @@ if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dis
fi
# Default clang-format points to default 3.5 version one
-CLANG_FORMAT=${CLANG_FORMAT:-clang-format-12}
+CLANG_FORMAT=${CLANG_FORMAT:-clang-format-15}
$CLANG_FORMAT --version
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
diff --git a/.ci/scripts/linux/docker.sh b/.ci/scripts/linux/docker.sh
index c8bc56c9a..7f6d2ad1b 100755
--- a/.ci/scripts/linux/docker.sh
+++ b/.ci/scripts/linux/docker.sh
@@ -22,6 +22,7 @@ cmake .. \
-DUSE_DISCORD_PRESENCE=ON \
-DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
-DYUZU_USE_BUNDLED_FFMPEG=ON \
+ -DYUZU_ENABLE_LTO=ON \
-GNinja
ninja
diff --git a/.ci/scripts/merge/apply-patches-by-label.py b/.ci/scripts/merge/apply-patches-by-label.py
index 8ddc8ff34..17bb7dc13 100644
--- a/.ci/scripts/merge/apply-patches-by-label.py
+++ b/.ci/scripts/merge/apply-patches-by-label.py
@@ -2,15 +2,12 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Download all pull requests as patches that match a specific label
-# Usage: python download-patches-by-label.py <Label to Match> <Root Path Folder to DL to>
+# Usage: python apply-patches-by-label.py <Label to Match>
-import requests, sys, json, urllib3.request, shutil, subprocess, os, traceback
+import json, requests, subprocess, sys, traceback
tagline = sys.argv[2]
-http = urllib3.PoolManager()
-dl_list = {}
-
def check_individual(labels):
for label in labels:
if (label["name"] == sys.argv[1]):
@@ -18,8 +15,9 @@ def check_individual(labels):
return False
def do_page(page):
- url = 'https://api.github.com/repos/yuzu-emu/yuzu/pulls?page=%s' % page
+ url = f"https://api.github.com/repos/yuzu-emu/yuzu/pulls?page={page}"
response = requests.get(url)
+ response.raise_for_status()
if (response.ok):
j = json.loads(response.content)
if j == []:
@@ -27,13 +25,13 @@ def do_page(page):
for pr in j:
if (check_individual(pr["labels"])):
pn = pr["number"]
- print("Matched PR# %s" % pn)
- print(subprocess.check_output(["git", "fetch", "https://github.com/yuzu-emu/yuzu.git", "pull/%s/head:pr-%s" % (pn, pn), "-f", "--no-recurse-submodules"]))
- print(subprocess.check_output(["git", "merge", "--squash", "pr-%s" % pn]))
- print(subprocess.check_output(["git", "commit", "-m\"Merge %s PR %s\"" % (tagline, pn)]))
+ print(f"Matched PR# {pn}")
+ print(subprocess.check_output(["git", "fetch", "https://github.com/yuzu-emu/yuzu.git", f"pull/{pn}/head:pr-{pn}", "-f", "--no-recurse-submodules"]))
+ print(subprocess.check_output(["git", "merge", "--squash", f"pr-{pn}"]))
+ print(subprocess.check_output(["git", "commit", f"-m\"Merge {tagline} PR {pn}\""]))
try:
- for i in range(1,30):
+ for i in range(1,10):
do_page(i)
except:
traceback.print_exc(file=sys.stdout)
diff --git a/.ci/scripts/windows/scan_dll.py b/.ci/scripts/windows/scan_dll.py
index f374e0d78..a536f7375 100644
--- a/.ci/scripts/windows/scan_dll.py
+++ b/.ci/scripts/windows/scan_dll.py
@@ -40,7 +40,7 @@ def parse_imports(file_name):
def parse_imports_recursive(file_name, path_list=[]):
q = queue.Queue() # create a FIFO queue
- # file_name can be a string or a list for the convience
+ # file_name can be a string or a list for the convenience
if isinstance(file_name, str):
q.put(file_name)
elif isinstance(file_name, list):
diff --git a/.ci/scripts/windows/upload.ps1 b/.ci/scripts/windows/upload.ps1
index 21abcd752..492763420 100644
--- a/.ci/scripts/windows/upload.ps1
+++ b/.ci/scripts/windows/upload.ps1
@@ -26,7 +26,11 @@ $env:BUILD_ZIP = $MSVC_BUILD_ZIP
$env:BUILD_SYMBOLS = $MSVC_BUILD_PDB
$env:BUILD_UPDATE = $MSVC_SEVENZIP
-$BUILD_DIR = ".\build\bin\Release"
+if (Test-Path -Path ".\build\bin\Release") {
+ $BUILD_DIR = ".\build\bin\Release"
+} else {
+ $BUILD_DIR = ".\build\bin\"
+}
# Cleanup unneeded data in submodules
git submodule foreach git clean -fxd
diff --git a/.ci/templates/build-msvc.yml b/.ci/templates/build-msvc.yml
index c379dd757..ceb7e0c32 100644
--- a/.ci/templates/build-msvc.yml
+++ b/.ci/templates/build-msvc.yml
@@ -9,7 +9,7 @@ parameters:
steps:
- script: choco install vulkan-sdk
displayName: 'Install vulkan-sdk'
-- script: refreshenv && mkdir build && cd build && cmake -E env CXXFLAGS="/Gw /GA /Gr /Ob2" cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_POLICY_DEFAULT_CMP0069=NEW -DYUZU_USE_BUNDLED_QT=1 -DYUZU_USE_BUNDLED_SDL2=1 -DYUZU_USE_QT_WEB_ENGINE=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${COMPAT} -DYUZU_TESTS=OFF -DUSE_DISCORD_PRESENCE=ON -DENABLE_QT_TRANSLATION=ON -DDISPLAY_VERSION=${{ parameters['version'] }} -DCMAKE_BUILD_TYPE=Release -DYUZU_CRASH_DUMPS=ON .. && cd ..
+- script: refreshenv && mkdir build && cd build && cmake -E env CXXFLAGS="/Gw /GA /Gr /Ob2" cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_POLICY_DEFAULT_CMP0069=NEW -DYUZU_ENABLE_LTO=ON -DYUZU_USE_BUNDLED_QT=1 -DYUZU_USE_BUNDLED_SDL2=1 -DYUZU_USE_QT_WEB_ENGINE=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${COMPAT} -DYUZU_TESTS=OFF -DUSE_DISCORD_PRESENCE=ON -DENABLE_QT_TRANSLATION=ON -DDISPLAY_VERSION=${{ parameters['version'] }} -DCMAKE_BUILD_TYPE=Release -DYUZU_CRASH_DUMPS=ON .. && cd ..
displayName: 'Configure CMake'
- task: MSBuild@1
displayName: 'Build'
diff --git a/.codespellrc b/.codespellrc
new file mode 100644
index 000000000..01ddd2362
--- /dev/null
+++ b/.codespellrc
@@ -0,0 +1,6 @@
+; SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+; SPDX-License-Identifier: GPL-2.0-or-later
+
+[codespell]
+skip = ./.git,./build,./dist,./Doxyfile,./externals,./LICENSES,./src/android/app/src/main/res
+ignore-words-list = aci,allright,ba,deques,froms,hda,inout,lod,masia,nam,nax,nd,optin,pullrequests,pullrequest,te,transfered,unstall,uscaled,zink
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 1405ccce8..a28f0473f 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -43,7 +43,7 @@ body:
id: log
attributes:
label: Log File
- description: A log file will help our developers to better diagnose and fix the issue.
+ description: A log file will help our developers to better diagnose and fix the issue. Instructions can be found [here](https://yuzu-emu.org/help/reference/log-files).
validations:
required: true
- type: textarea
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
new file mode 100644
index 000000000..d873fb725
--- /dev/null
+++ b/.github/workflows/codespell.yml
@@ -0,0 +1,17 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+# GitHub Action to automate the identification of common misspellings in text files.
+# https://github.com/codespell-project/actions-codespell
+# https://github.com/codespell-project/codespell
+name: codespell
+on: pull_request
+permissions: {}
+jobs:
+ codespell:
+ name: Check for spelling errors
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+ - uses: codespell-project/actions-codespell@master
diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml
index 7cde8380b..bd4141f56 100644
--- a/.github/workflows/verify.yml
+++ b/.github/workflows/verify.yml
@@ -122,3 +122,46 @@ jobs:
with:
name: ${{ env.INDIVIDUAL_EXE }}
path: ${{ env.INDIVIDUAL_EXE }}
+ android:
+ runs-on: ubuntu-latest
+ needs: format
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: recursive
+ - name: set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'adopt'
+ - name: Set up cache
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ ~/.ccache
+ key: ${{ runner.os }}-android-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-android-
+ - name: Query tag name
+ uses: olegtarasov/get-tag@v2.1.2
+ id: tagName
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
+ git -C ./externals/vcpkg/ fetch --all --unshallow
+ - name: Build
+ run: ./.ci/scripts/android/build.sh
+ - name: Copy and sign artifacts
+ env:
+ ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }}
+ ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
+ ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
+ run: ./.ci/scripts/android/upload.sh
+ - name: Upload
+ uses: actions/upload-artifact@v3
+ with:
+ name: android
+ path: artifacts/
diff --git a/.gitignore b/.gitignore
index a5f7248c7..fbadb208b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,8 @@ CMakeSettings.json
# OSX global filetypes
# Created by Finder or Spotlight in directories for various OS functionality (indexing, etc)
.DS_Store
+.DS_Store?
+._*
.AppleDouble
.LSOverride
.Spotlight-V100
diff --git a/.gitmodules b/.gitmodules
index 8e98ee9cb..5a8169b44 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -13,9 +13,6 @@
[submodule "dynarmic"]
path = externals/dynarmic
url = https://github.com/MerryMage/dynarmic.git
-[submodule "libressl"]
- path = externals/libressl
- url = https://github.com/citra-emu/ext-libressl-portable.git
[submodule "libusb"]
path = externals/libusb/libusb
url = https://github.com/libusb/libusb.git
@@ -52,3 +49,12 @@
[submodule "cpp-jwt"]
path = externals/cpp-jwt
url = https://github.com/arun11299/cpp-jwt.git
+[submodule "libadrenotools"]
+ path = externals/libadrenotools
+ url = https://github.com/bylaws/libadrenotools
+[submodule "tzdb_to_nx"]
+ path = externals/nx_tzdb/tzdb_to_nx
+ url = https://github.com/lat9nq/tzdb_to_nx.git
+[submodule "VulkanMemoryAllocator"]
+ path = externals/vma/VulkanMemoryAllocator
+ url = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
diff --git a/.lgtm.yml b/.lgtm.yml
deleted file mode 100644
index 7cd3f9926..000000000
--- a/.lgtm.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-# SPDX-FileCopyrightText: 2020 yuzu Emulator Project
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-path_classifiers:
- library: "externals"
-extraction:
- cpp:
- prepare:
- packages:
- - "libsdl2-dev"
- - "qtmultimedia5-dev"
- - "libtbb-dev"
- - "libjack-jackd2-dev"
diff --git a/.reuse/dep5 b/.reuse/dep5
index 3810f2c41..31178fc4c 100644
--- a/.reuse/dep5
+++ b/.reuse/dep5
@@ -135,3 +135,15 @@ License: GPL-3.0-or-later
Files: .github/ISSUE_TEMPLATE/*
Copyright: 2022 yuzu Emulator Project
License: GPL-2.0-or-later
+
+Files: src/android/app/src/ea/res/*
+Copyright: 2023 yuzu Emulator Project
+License: GPL-3.0-or-later
+
+Files: src/android/app/src/main/res/*
+Copyright: 2023 yuzu Emulator Project
+License: GPL-3.0-or-later
+
+Files: src/android/gradle/wrapper/*
+Copyright: 2023 yuzu Emulator Project
+License: GPL-3.0-or-later
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f91ba950a..f5ef0ef50 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modul
include(DownloadExternals)
include(CMakeDependentOption)
include(CTest)
+include(FetchContent)
# Set bundled sdl2/qt as dependent options.
# OFF by default, but if ENABLE_SDL2 and MSVC are true then ON
@@ -19,7 +20,7 @@ CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" ON
# On Linux system SDL2 is likely to be lacking HIDAPI support which have drawbacks but is needed for SDL motion
CMAKE_DEPENDENT_OPTION(YUZU_USE_EXTERNAL_SDL2 "Compile external SDL2" ON "ENABLE_SDL2;NOT MSVC" OFF)
-option(ENABLE_LIBUSB "Enable the use of LibUSB" ON)
+cmake_dependent_option(ENABLE_LIBUSB "Enable the use of LibUSB" ON "NOT ANDROID" OFF)
option(ENABLE_OPENGL "Enable OpenGL" ON)
mark_as_advanced(FORCE ENABLE_OPENGL)
@@ -48,7 +49,7 @@ option(YUZU_TESTS "Compile tests" "${BUILD_TESTING}")
option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON)
-option(YUZU_ROOM "Compile LDN room server" ON)
+cmake_dependent_option(YUZU_ROOM "Compile LDN room server" ON "NOT ANDROID" OFF)
CMAKE_DEPENDENT_OPTION(YUZU_CRASH_DUMPS "Compile Windows crash dump (Minidump) support" OFF "WIN32" OFF)
@@ -56,15 +57,82 @@ option(YUZU_USE_BUNDLED_VCPKG "Use vcpkg for yuzu dependencies" "${MSVC}")
option(YUZU_CHECK_SUBMODULES "Check if submodules are present" ON)
+option(YUZU_ENABLE_LTO "Enable link-time optimization" OFF)
+
+option(YUZU_DOWNLOAD_TIME_ZONE_DATA "Always download time zone binaries" OFF)
+
CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF)
+# On Android, fetch and compile libcxx before doing anything else
+if (ANDROID)
+ set(CMAKE_SKIP_INSTALL_RULES ON)
+ set(LLVM_VERSION "15.0.6")
+
+ # Note: even though libcxx and libcxxabi have separate releases on the project page,
+ # the separated releases cannot be compiled. Only in-tree builds work. Therefore we
+ # must fetch the source release for the entire llvm tree.
+ FetchContent_Declare(llvm
+ URL "https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVM_VERSION}/llvm-project-${LLVM_VERSION}.src.tar.xz"
+ URL_HASH SHA256=9d53ad04dc60cb7b30e810faf64c5ab8157dadef46c8766f67f286238256ff92
+ TLS_VERIFY TRUE
+ )
+ FetchContent_MakeAvailable(llvm)
+
+ # libcxx has support for most of the range library, but it's gated behind a flag:
+ add_compile_definitions(_LIBCPP_ENABLE_EXPERIMENTAL)
+
+ # Disable standard header inclusion
+ set(ANDROID_STL "none")
+
+ # libcxxabi
+ set(LIBCXXABI_INCLUDE_TESTS OFF)
+ set(LIBCXXABI_ENABLE_SHARED FALSE)
+ set(LIBCXXABI_ENABLE_STATIC TRUE)
+ set(LIBCXXABI_LIBCXX_INCLUDES "${LIBCXX_TARGET_INCLUDE_DIRECTORY}" CACHE STRING "" FORCE)
+ add_subdirectory("${llvm_SOURCE_DIR}/libcxxabi" "${llvm_BINARY_DIR}/libcxxabi")
+ link_libraries(cxxabi_static)
+
+ # libcxx
+ set(LIBCXX_ABI_NAMESPACE "__ndk1" CACHE STRING "" FORCE)
+ set(LIBCXX_CXX_ABI "libcxxabi")
+ set(LIBCXX_INCLUDE_TESTS OFF)
+ set(LIBCXX_INCLUDE_BENCHMARKS OFF)
+ set(LIBCXX_INCLUDE_DOCS OFF)
+ set(LIBCXX_ENABLE_SHARED FALSE)
+ set(LIBCXX_ENABLE_STATIC TRUE)
+ set(LIBCXX_ENABLE_ASSERTIONS FALSE)
+ add_subdirectory("${llvm_SOURCE_DIR}/libcxx" "${llvm_BINARY_DIR}/libcxx")
+ set_target_properties(cxx-headers PROPERTIES INTERFACE_COMPILE_OPTIONS "-isystem${CMAKE_BINARY_DIR}/${LIBCXX_INSTALL_INCLUDE_DIR}")
+ link_libraries(cxx_static cxx-headers)
+endif()
+
if (YUZU_USE_BUNDLED_VCPKG)
+ if (ANDROID)
+ set(ENV{ANDROID_NDK_HOME} "${ANDROID_NDK}")
+ list(APPEND VCPKG_MANIFEST_FEATURES "android")
+
+ if (CMAKE_ANDROID_ARCH_ABI STREQUAL "arm64-v8a")
+ set(VCPKG_TARGET_TRIPLET "arm64-android")
+ # this is to avoid CMake using the host pkg-config to find the host
+ # libraries when building for Android targets
+ set(PKG_CONFIG_EXECUTABLE "aarch64-none-linux-android-pkg-config" CACHE FILEPATH "" FORCE)
+ elseif (CMAKE_ANDROID_ARCH_ABI STREQUAL "x86_64")
+ set(VCPKG_TARGET_TRIPLET "x64-android")
+ set(PKG_CONFIG_EXECUTABLE "x86_64-none-linux-android-pkg-config" CACHE FILEPATH "" FORCE)
+ else()
+ message(FATAL_ERROR "Unsupported Android architecture ${CMAKE_ANDROID_ARCH_ABI}")
+ endif()
+ endif()
+
if (YUZU_TESTS)
list(APPEND VCPKG_MANIFEST_FEATURES "yuzu-tests")
endif()
if (YUZU_CRASH_DUMPS)
list(APPEND VCPKG_MANIFEST_FEATURES "dbghelp")
endif()
+ if (ENABLE_WEB_SERVICE)
+ list(APPEND VCPKG_MANIFEST_FEATURES "web-service")
+ endif()
include(${CMAKE_SOURCE_DIR}/externals/vcpkg/scripts/buildsystems/vcpkg.cmake)
elseif(NOT "$ENV{VCPKG_TOOLCHAIN_FILE}" STREQUAL "")
@@ -189,7 +257,7 @@ endif()
# boost asio's concept usage doesn't play nicely with some compilers yet.
add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS)
if (MSVC)
- add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/std:c++latest>)
+ add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/std:c++20>)
# boost still makes use of deprecated result_of.
add_definitions(-D_HAS_DEPRECATED_RESULT_OF)
@@ -205,9 +273,11 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
# =======================================================================
# Enforce the search mode of non-required packages for better and shorter failure messages
+find_package(Boost 1.79.0 REQUIRED context)
find_package(enet 1.3 MODULE)
find_package(fmt 9 REQUIRED)
-find_package(inih MODULE)
+find_package(inih 52 MODULE COMPONENTS INIReader)
+find_package(LLVM MODULE COMPONENTS Demangle)
find_package(lz4 REQUIRED)
find_package(nlohmann_json 3.8 REQUIRED)
find_package(Opus 1.3 MODULE)
@@ -215,7 +285,7 @@ find_package(ZLIB 1.2 REQUIRED)
find_package(zstd 1.5 REQUIRED)
if (NOT YUZU_USE_EXTERNAL_VULKAN_HEADERS)
- find_package(Vulkan 1.3.238 REQUIRED)
+ find_package(Vulkan 1.3.246 REQUIRED)
endif()
if (ENABLE_LIBUSB)
@@ -240,26 +310,13 @@ endif()
if (ENABLE_WEB_SERVICE)
find_package(cpp-jwt 1.4 CONFIG)
- find_package(httplib 0.11 MODULE)
+ find_package(httplib 0.12 MODULE COMPONENTS OpenSSL)
endif()
if (YUZU_TESTS)
find_package(Catch2 3.0.1 REQUIRED)
endif()
-find_package(Boost 1.73.0 COMPONENTS context)
-if (Boost_FOUND)
- set(Boost_LIBRARIES Boost::boost)
- # Conditionally add Boost::context only if the found Boost package provides it
- # The old version is missing Boost::context, so we want to avoid adding in that case
- # The new version requires adding Boost::context to prevent linking issues
- if (TARGET Boost::context)
- list(APPEND Boost_LIBRARIES Boost::context)
- endif()
-else()
- message(FATAL_ERROR "Boost 1.73.0 or newer not found")
-endif()
-
# boost:asio has functions that require AcceptEx et al
if (MINGW)
find_library(MSWSOCK_LIBRARY mswsock REQUIRED)
@@ -350,12 +407,12 @@ if(ENABLE_QT)
find_package(PkgConfig REQUIRED)
pkg_check_modules(QT_DEP_GLU QUIET glu>=9.0.0)
if (NOT QT_DEP_GLU_FOUND)
- message(FATAL_ERROR "Qt bundled pacakge dependency `glu` not found. \
+ message(FATAL_ERROR "Qt bundled package dependency `glu` not found. \
Perhaps `libglu1-mesa-dev` needs to be installed?")
endif()
pkg_check_modules(QT_DEP_MESA QUIET dri>=20.0.8)
if (NOT QT_DEP_MESA_FOUND)
- message(FATAL_ERROR "Qt bundled pacakge dependency `dri` not found. \
+ message(FATAL_ERROR "Qt bundled package dependency `dri` not found. \
Perhaps `mesa-common-dev` needs to be installed?")
endif()
@@ -432,7 +489,7 @@ if (ENABLE_SDL2)
if (YUZU_USE_BUNDLED_SDL2)
# Detect toolchain and platform
if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64)
- set(SDL2_VER "SDL2-2.0.18")
+ set(SDL2_VER "SDL2-2.28.0")
else()
message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable YUZU_USE_BUNDLED_SDL2 and provide your own.")
endif()
@@ -452,25 +509,18 @@ if (ENABLE_SDL2)
elseif (YUZU_USE_EXTERNAL_SDL2)
message(STATUS "Using SDL2 from externals.")
else()
- find_package(SDL2 2.0.18 REQUIRED)
+ find_package(SDL2 2.26.4 REQUIRED)
endif()
endif()
-# Reexport some targets that are named differently when using the upstream CmakeConfig
-# In order to ALIAS targets to a new name, they first need to be IMPORTED_GLOBAL
-# Dynarmic checks for target `boost` and so we want to make sure it can find it through our system instead of using their external
-if (TARGET Boost::boost)
- set_target_properties(Boost::boost PROPERTIES IMPORTED_GLOBAL TRUE)
- add_library(boost ALIAS Boost::boost)
-endif()
-
# List of all FFmpeg components required
set(FFmpeg_COMPONENTS
avcodec
+ avfilter
avutil
swscale)
-if (UNIX AND NOT APPLE)
+if (UNIX AND NOT APPLE AND NOT ANDROID)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBVA libva)
endif()
@@ -491,8 +541,8 @@ if (APPLE)
find_library(COCOA_LIBRARY Cocoa)
set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${COREVIDEO_LIBRARY})
elseif (WIN32)
- # WSAPoll and SHGetKnownFolderPath (AppData/Roaming) didn't exist before WinNT 6.x (Vista)
- add_definitions(-D_WIN32_WINNT=0x0600 -DWINVER=0x0600)
+ # Target Windows 10
+ add_definitions(-D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00)
set(PLATFORM_LIBRARIES winmm ws2_32 iphlpapi)
if (MINGW)
# PSAPI is the Process Status API
@@ -513,7 +563,7 @@ endif()
# against all the src files. This should be used before making a pull request.
# =======================================================================
-set(CLANG_FORMAT_POSTFIX "-12")
+set(CLANG_FORMAT_POSTFIX "-15")
find_program(CLANG_FORMAT
NAMES clang-format${CLANG_FORMAT_POSTFIX}
clang-format
@@ -579,11 +629,7 @@ function(create_target_directory_groups target_name)
endfunction()
# Prevent boost from linking against libs when building
-add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY
- -DBOOST_SYSTEM_NO_LIB
- -DBOOST_DATE_TIME_NO_LIB
- -DBOOST_REGEX_NO_LIB
-)
+target_link_libraries(Boost::headers INTERFACE Boost::disable_autolinking)
# Adjustments for MSVC + Ninja
if (MSVC AND CMAKE_GENERATOR STREQUAL "Ninja")
add_compile_options(
diff --git a/CMakeModules/CopyYuzuFFmpegDeps.cmake b/CMakeModules/CopyYuzuFFmpegDeps.cmake
index c6231737e..e50696cc0 100644
--- a/CMakeModules/CopyYuzuFFmpegDeps.cmake
+++ b/CMakeModules/CopyYuzuFFmpegDeps.cmake
@@ -3,8 +3,8 @@
function(copy_yuzu_FFmpeg_deps target_dir)
include(WindowsCopyFiles)
- set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
+ set(DLL_DEST "$<TARGET_FILE_DIR:${target_dir}>/")
file(READ "${FFmpeg_PATH}/requirements.txt" FFmpeg_REQUIRED_DLLS)
string(STRIP "${FFmpeg_REQUIRED_DLLS}" FFmpeg_REQUIRED_DLLS)
- windows_copy_files(${target_dir} ${FFmpeg_DLL_DIR} ${DLL_DEST} ${FFmpeg_REQUIRED_DLLS})
+ windows_copy_files(${target_dir} ${FFmpeg_LIBRARY_DIR} ${DLL_DEST} ${FFmpeg_REQUIRED_DLLS})
endfunction(copy_yuzu_FFmpeg_deps)
diff --git a/CMakeModules/CopyYuzuQt5Deps.cmake b/CMakeModules/CopyYuzuQt5Deps.cmake
index ab56de444..b3a65c347 100644
--- a/CMakeModules/CopyYuzuQt5Deps.cmake
+++ b/CMakeModules/CopyYuzuQt5Deps.cmake
@@ -4,7 +4,7 @@
function(copy_yuzu_Qt5_deps target_dir)
include(WindowsCopyFiles)
if (MSVC)
- set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
+ set(DLL_DEST "$<TARGET_FILE_DIR:${target_dir}>/")
set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin")
else()
set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/")
diff --git a/CMakeModules/CopyYuzuSDLDeps.cmake b/CMakeModules/CopyYuzuSDLDeps.cmake
index 7ffdd8a1d..464eed5e9 100644
--- a/CMakeModules/CopyYuzuSDLDeps.cmake
+++ b/CMakeModules/CopyYuzuSDLDeps.cmake
@@ -3,6 +3,6 @@
function(copy_yuzu_SDL_deps target_dir)
include(WindowsCopyFiles)
- set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
+ set(DLL_DEST "$<TARGET_FILE_DIR:${target_dir}>/")
windows_copy_files(${target_dir} ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll)
endfunction(copy_yuzu_SDL_deps)
diff --git a/CMakeModules/DownloadExternals.cmake b/CMakeModules/DownloadExternals.cmake
index 8fe5ba48d..972f5ca74 100644
--- a/CMakeModules/DownloadExternals.cmake
+++ b/CMakeModules/DownloadExternals.cmake
@@ -7,6 +7,7 @@
# prefix_var: name of a variable which will be set with the path to the extracted contents
function(download_bundled_external remote_path lib_name prefix_var)
+set(package_base_url "https://github.com/yuzu-emu/")
set(package_repo "no_platform")
set(package_extension "no_platform")
if (WIN32)
@@ -15,10 +16,13 @@ if (WIN32)
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(package_repo "ext-linux-bin/raw/main/")
set(package_extension ".tar.xz")
+elseif (ANDROID)
+ set(package_repo "ext-android-bin/raw/main/")
+ set(package_extension ".tar.xz")
else()
message(FATAL_ERROR "No package available for this platform")
endif()
-set(package_url "https://github.com/yuzu-emu/${package_repo}")
+set(package_url "${package_base_url}${package_repo}")
set(prefix "${CMAKE_BINARY_DIR}/externals/${lib_name}")
if (NOT EXISTS "${prefix}")
diff --git a/CMakeModules/FindFFmpeg.cmake b/CMakeModules/FindFFmpeg.cmake
index eedf28aea..5cb1f3c8a 100644
--- a/CMakeModules/FindFFmpeg.cmake
+++ b/CMakeModules/FindFFmpeg.cmake
@@ -14,7 +14,7 @@
# FFmpeg_LIBRARIES: aggregate all the paths to the libraries
# FFmpeg_FOUND: True if all components have been found
#
-# This module defines the following targets, which are prefered over variables:
+# This module defines the following targets, which are preferred over variables:
#
# FFmpeg::<component>: Target to use <component> directly, with include path,
# library and dependencies set up. If you are using a static build, you are
diff --git a/CMakeModules/FindLLVM.cmake b/CMakeModules/FindLLVM.cmake
new file mode 100644
index 000000000..efbd0ca46
--- /dev/null
+++ b/CMakeModules/FindLLVM.cmake
@@ -0,0 +1,26 @@
+# SPDX-FileCopyrightText: 2023 Alexandre Bouvier <contact@amb.tf>
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+find_package(LLVM QUIET COMPONENTS CONFIG)
+if (LLVM_FOUND)
+ separate_arguments(LLVM_DEFINITIONS)
+ if (LLVMDemangle IN_LIST LLVM_AVAILABLE_LIBS)
+ set(LLVM_Demangle_FOUND TRUE)
+ endif()
+endif()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(LLVM HANDLE_COMPONENTS CONFIG_MODE)
+
+if (LLVM_FOUND AND LLVM_Demangle_FOUND AND NOT TARGET LLVM::Demangle)
+ add_library(LLVM::Demangle INTERFACE IMPORTED)
+ target_compile_definitions(LLVM::Demangle INTERFACE ${LLVM_DEFINITIONS})
+ target_include_directories(LLVM::Demangle INTERFACE ${LLVM_INCLUDE_DIRS})
+ # prefer shared LLVM: https://github.com/llvm/llvm-project/issues/34593
+ # but use ugly hack because llvm_config doesn't support interface library
+ add_library(_dummy_lib SHARED EXCLUDE_FROM_ALL src/yuzu/main.cpp)
+ llvm_config(_dummy_lib USE_SHARED demangle)
+ get_target_property(LLVM_LIBRARIES _dummy_lib LINK_LIBRARIES)
+ target_link_libraries(LLVM::Demangle INTERFACE ${LLVM_LIBRARIES})
+endif()
diff --git a/CMakeModules/Findhttplib.cmake b/CMakeModules/Findhttplib.cmake
index 861207eb5..48967add9 100644
--- a/CMakeModules/Findhttplib.cmake
+++ b/CMakeModules/Findhttplib.cmake
@@ -6,13 +6,23 @@ include(FindPackageHandleStandardArgs)
find_package(httplib QUIET CONFIG)
if (httplib_CONSIDERED_CONFIGS)
- find_package_handle_standard_args(httplib CONFIG_MODE)
+ find_package_handle_standard_args(httplib HANDLE_COMPONENTS CONFIG_MODE)
else()
find_package(PkgConfig QUIET)
pkg_search_module(HTTPLIB QUIET IMPORTED_TARGET cpp-httplib)
+ if ("-DCPPHTTPLIB_OPENSSL_SUPPORT" IN_LIST HTTPLIB_CFLAGS_OTHER)
+ set(httplib_OpenSSL_FOUND TRUE)
+ endif()
+ if ("-DCPPHTTPLIB_ZLIB_SUPPORT" IN_LIST HTTPLIB_CFLAGS_OTHER)
+ set(httplib_ZLIB_FOUND TRUE)
+ endif()
+ if ("-DCPPHTTPLIB_BROTLI_SUPPORT" IN_LIST HTTPLIB_CFLAGS_OTHER)
+ set(httplib_Brotli_FOUND TRUE)
+ endif()
find_package_handle_standard_args(httplib
REQUIRED_VARS HTTPLIB_INCLUDEDIR
VERSION_VAR HTTPLIB_VERSION
+ HANDLE_COMPONENTS
)
endif()
diff --git a/CMakeModules/Findinih.cmake b/CMakeModules/Findinih.cmake
index b8d38dcff..791befebd 100644
--- a/CMakeModules/Findinih.cmake
+++ b/CMakeModules/Findinih.cmake
@@ -3,14 +3,25 @@
# SPDX-License-Identifier: GPL-3.0-or-later
find_package(PkgConfig QUIET)
-pkg_search_module(INIREADER QUIET IMPORTED_TARGET INIReader)
+pkg_search_module(INIH QUIET IMPORTED_TARGET inih)
+if (INIReader IN_LIST inih_FIND_COMPONENTS)
+ pkg_search_module(INIREADER QUIET IMPORTED_TARGET INIReader)
+ if (INIREADER_FOUND)
+ set(inih_INIReader_FOUND TRUE)
+ endif()
+endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(inih
- REQUIRED_VARS INIREADER_LINK_LIBRARIES
- VERSION_VAR INIREADER_VERSION
+ REQUIRED_VARS INIH_LINK_LIBRARIES
+ VERSION_VAR INIH_VERSION
+ HANDLE_COMPONENTS
)
-if (inih_FOUND AND NOT TARGET inih::INIReader)
+if (inih_FOUND AND NOT TARGET inih::inih)
+ add_library(inih::inih ALIAS PkgConfig::INIH)
+endif()
+
+if (inih_FOUND AND inih_INIReader_FOUND AND NOT TARGET inih::INIReader)
add_library(inih::INIReader ALIAS PkgConfig::INIREADER)
endif()
diff --git a/LICENSES/MPL-2.0.txt b/LICENSES/MPL-2.0.txt
new file mode 100644
index 000000000..14e2f777f
--- /dev/null
+++ b/LICENSES/MPL-2.0.txt
@@ -0,0 +1,373 @@
+Mozilla Public License Version 2.0
+==================================
+
+1. Definitions
+--------------
+
+1.1. "Contributor"
+ means each individual or legal entity that creates, contributes to
+ the creation of, or owns Covered Software.
+
+1.2. "Contributor Version"
+ means the combination of the Contributions of others (if any) used
+ by a Contributor and that particular Contributor's Contribution.
+
+1.3. "Contribution"
+ means Covered Software of a particular Contributor.
+
+1.4. "Covered Software"
+ means Source Code Form to which the initial Contributor has attached
+ the notice in Exhibit A, the Executable Form of such Source Code
+ Form, and Modifications of such Source Code Form, in each case
+ including portions thereof.
+
+1.5. "Incompatible With Secondary Licenses"
+ means
+
+ (a) that the initial Contributor has attached the notice described
+ in Exhibit B to the Covered Software; or
+
+ (b) that the Covered Software was made available under the terms of
+ version 1.1 or earlier of the License, but not also under the
+ terms of a Secondary License.
+
+1.6. "Executable Form"
+ means any form of the work other than Source Code Form.
+
+1.7. "Larger Work"
+ means a work that combines Covered Software with other material, in
+ a separate file or files, that is not Covered Software.
+
+1.8. "License"
+ means this document.
+
+1.9. "Licensable"
+ means having the right to grant, to the maximum extent possible,
+ whether at the time of the initial grant or subsequently, any and
+ all of the rights conveyed by this License.
+
+1.10. "Modifications"
+ means any of the following:
+
+ (a) any file in Source Code Form that results from an addition to,
+ deletion from, or modification of the contents of Covered
+ Software; or
+
+ (b) any new file in Source Code Form that contains any Covered
+ Software.
+
+1.11. "Patent Claims" of a Contributor
+ means any patent claim(s), including without limitation, method,
+ process, and apparatus claims, in any patent Licensable by such
+ Contributor that would be infringed, but for the grant of the
+ License, by the making, using, selling, offering for sale, having
+ made, import, or transfer of either its Contributions or its
+ Contributor Version.
+
+1.12. "Secondary License"
+ means either the GNU General Public License, Version 2.0, the GNU
+ Lesser General Public License, Version 2.1, the GNU Affero General
+ Public License, Version 3.0, or any later versions of those
+ licenses.
+
+1.13. "Source Code Form"
+ means the form of the work preferred for making modifications.
+
+1.14. "You" (or "Your")
+ means an individual or a legal entity exercising rights under this
+ License. For legal entities, "You" includes any entity that
+ controls, is controlled by, or is under common control with You. For
+ purposes of this definition, "control" means (a) the power, direct
+ or indirect, to cause the direction or management of such entity,
+ whether by contract or otherwise, or (b) ownership of more than
+ fifty percent (50%) of the outstanding shares or beneficial
+ ownership of such entity.
+
+2. License Grants and Conditions
+--------------------------------
+
+2.1. Grants
+
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark)
+ Licensable by such Contributor to use, reproduce, make available,
+ modify, display, perform, distribute, and otherwise exploit its
+ Contributions, either on an unmodified basis, with Modifications, or
+ as part of a Larger Work; and
+
+(b) under Patent Claims of such Contributor to make, use, sell, offer
+ for sale, have made, import, and otherwise transfer either its
+ Contributions or its Contributor Version.
+
+2.2. Effective Date
+
+The licenses granted in Section 2.1 with respect to any Contribution
+become effective for each Contribution on the date the Contributor first
+distributes such Contribution.
+
+2.3. Limitations on Grant Scope
+
+The licenses granted in this Section 2 are the only rights granted under
+this License. No additional rights or licenses will be implied from the
+distribution or licensing of Covered Software under this License.
+Notwithstanding Section 2.1(b) above, no patent license is granted by a
+Contributor:
+
+(a) for any code that a Contributor has removed from Covered Software;
+ or
+
+(b) for infringements caused by: (i) Your and any other third party's
+ modifications of Covered Software, or (ii) the combination of its
+ Contributions with other software (except as part of its Contributor
+ Version); or
+
+(c) under Patent Claims infringed by Covered Software in the absence of
+ its Contributions.
+
+This License does not grant any rights in the trademarks, service marks,
+or logos of any Contributor (except as may be necessary to comply with
+the notice requirements in Section 3.4).
+
+2.4. Subsequent Licenses
+
+No Contributor makes additional grants as a result of Your choice to
+distribute the Covered Software under a subsequent version of this
+License (see Section 10.2) or under the terms of a Secondary License (if
+permitted under the terms of Section 3.3).
+
+2.5. Representation
+
+Each Contributor represents that the Contributor believes its
+Contributions are its original creation(s) or it has sufficient rights
+to grant the rights to its Contributions conveyed by this License.
+
+2.6. Fair Use
+
+This License is not intended to limit any rights You have under
+applicable copyright doctrines of fair use, fair dealing, or other
+equivalents.
+
+2.7. Conditions
+
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
+in Section 2.1.
+
+3. Responsibilities
+-------------------
+
+3.1. Distribution of Source Form
+
+All distribution of Covered Software in Source Code Form, including any
+Modifications that You create or to which You contribute, must be under
+the terms of this License. You must inform recipients that the Source
+Code Form of the Covered Software is governed by the terms of this
+License, and how they can obtain a copy of this License. You may not
+attempt to alter or restrict the recipients' rights in the Source Code
+Form.
+
+3.2. Distribution of Executable Form
+
+If You distribute Covered Software in Executable Form then:
+
+(a) such Covered Software must also be made available in Source Code
+ Form, as described in Section 3.1, and You must inform recipients of
+ the Executable Form how they can obtain a copy of such Source Code
+ Form by reasonable means in a timely manner, at a charge no more
+ than the cost of distribution to the recipient; and
+
+(b) You may distribute such Executable Form under the terms of this
+ License, or sublicense it under different terms, provided that the
+ license for the Executable Form does not attempt to limit or alter
+ the recipients' rights in the Source Code Form under this License.
+
+3.3. Distribution of a Larger Work
+
+You may create and distribute a Larger Work under terms of Your choice,
+provided that You also comply with the requirements of this License for
+the Covered Software. If the Larger Work is a combination of Covered
+Software with a work governed by one or more Secondary Licenses, and the
+Covered Software is not Incompatible With Secondary Licenses, this
+License permits You to additionally distribute such Covered Software
+under the terms of such Secondary License(s), so that the recipient of
+the Larger Work may, at their option, further distribute the Covered
+Software under the terms of either this License or such Secondary
+License(s).
+
+3.4. Notices
+
+You may not remove or alter the substance of any license notices
+(including copyright notices, patent notices, disclaimers of warranty,
+or limitations of liability) contained within the Source Code Form of
+the Covered Software, except that You may alter any license notices to
+the extent required to remedy known factual inaccuracies.
+
+3.5. Application of Additional Terms
+
+You may choose to offer, and to charge a fee for, warranty, support,
+indemnity or liability obligations to one or more recipients of Covered
+Software. However, You may do so only on Your own behalf, and not on
+behalf of any Contributor. You must make it absolutely clear that any
+such warranty, support, indemnity, or liability obligation is offered by
+You alone, and You hereby agree to indemnify every Contributor for any
+liability incurred by such Contributor as a result of warranty, support,
+indemnity or liability terms You offer. You may include additional
+disclaimers of warranty and limitations of liability specific to any
+jurisdiction.
+
+4. Inability to Comply Due to Statute or Regulation
+---------------------------------------------------
+
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Software due to
+statute, judicial order, or regulation then You must: (a) comply with
+the terms of this License to the maximum extent possible; and (b)
+describe the limitations and the code they affect. Such description must
+be placed in a text file included with all distributions of the Covered
+Software under this License. Except to the extent prohibited by statute
+or regulation, such description must be sufficiently detailed for a
+recipient of ordinary skill to be able to understand it.
+
+5. Termination
+--------------
+
+5.1. The rights granted under this License will terminate automatically
+if You fail to comply with any of its terms. However, if You become
+compliant, then the rights granted under this License from a particular
+Contributor are reinstated (a) provisionally, unless and until such
+Contributor explicitly and finally terminates Your grants, and (b) on an
+ongoing basis, if such Contributor fails to notify You of the
+non-compliance by some reasonable means prior to 60 days after You have
+come back into compliance. Moreover, Your grants from a particular
+Contributor are reinstated on an ongoing basis if such Contributor
+notifies You of the non-compliance by some reasonable means, this is the
+first time You have received notice of non-compliance with this License
+from such Contributor, and You become compliant prior to 30 days after
+Your receipt of the notice.
+
+5.2. If You initiate litigation against any entity by asserting a patent
+infringement claim (excluding declaratory judgment actions,
+counter-claims, and cross-claims) alleging that a Contributor Version
+directly or indirectly infringes any patent, then the rights granted to
+You by any and all Contributors for the Covered Software under Section
+2.1 of this License shall terminate.
+
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all
+end user license agreements (excluding distributors and resellers) which
+have been validly granted by You or Your distributors under this License
+prior to termination shall survive termination.
+
+************************************************************************
+* *
+* 6. Disclaimer of Warranty *
+* ------------------------- *
+* *
+* Covered Software is provided under this License on an "as is" *
+* basis, without warranty of any kind, either expressed, implied, or *
+* statutory, including, without limitation, warranties that the *
+* Covered Software is free of defects, merchantable, fit for a *
+* particular purpose or non-infringing. The entire risk as to the *
+* quality and performance of the Covered Software is with You. *
+* Should any Covered Software prove defective in any respect, You *
+* (not any Contributor) assume the cost of any necessary servicing, *
+* repair, or correction. This disclaimer of warranty constitutes an *
+* essential part of this License. No use of any Covered Software is *
+* authorized under this License except under this disclaimer. *
+* *
+************************************************************************
+
+************************************************************************
+* *
+* 7. Limitation of Liability *
+* -------------------------- *
+* *
+* Under no circumstances and under no legal theory, whether tort *
+* (including negligence), contract, or otherwise, shall any *
+* Contributor, or anyone who distributes Covered Software as *
+* permitted above, be liable to You for any direct, indirect, *
+* special, incidental, or consequential damages of any character *
+* including, without limitation, damages for lost profits, loss of *
+* goodwill, work stoppage, computer failure or malfunction, or any *
+* and all other commercial damages or losses, even if such party *
+* shall have been informed of the possibility of such damages. This *
+* limitation of liability shall not apply to liability for death or *
+* personal injury resulting from such party's negligence to the *
+* extent applicable law prohibits such limitation. Some *
+* jurisdictions do not allow the exclusion or limitation of *
+* incidental or consequential damages, so this exclusion and *
+* limitation may not apply to You. *
+* *
+************************************************************************
+
+8. Litigation
+-------------
+
+Any litigation relating to this License may be brought only in the
+courts of a jurisdiction where the defendant maintains its principal
+place of business and such litigation shall be governed by laws of that
+jurisdiction, without reference to its conflict-of-law provisions.
+Nothing in this Section shall prevent a party's ability to bring
+cross-claims or counter-claims.
+
+9. Miscellaneous
+----------------
+
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision of this License is held to be
+unenforceable, such provision shall be reformed only to the extent
+necessary to make it enforceable. Any law or regulation which provides
+that the language of a contract shall be construed against the drafter
+shall not be used to construe this License against a Contributor.
+
+10. Versions of the License
+---------------------------
+
+10.1. New Versions
+
+Mozilla Foundation is the license steward. Except as provided in Section
+10.3, no one other than the license steward has the right to modify or
+publish new versions of this License. Each version will be given a
+distinguishing version number.
+
+10.2. Effect of New Versions
+
+You may distribute the Covered Software under the terms of the version
+of the License under which You originally received the Covered Software,
+or under the terms of any subsequent version published by the license
+steward.
+
+10.3. Modified Versions
+
+If you create software not governed by this License, and you want to
+create a new license for such software, you may create and use a
+modified version of this License if you rename the license and remove
+any references to the name of the license steward (except to note that
+such modified license differs from this License).
+
+10.4. Distributing Source Code Form that is Incompatible With Secondary
+Licenses
+
+If You choose to distribute Source Code Form that is Incompatible With
+Secondary Licenses under the terms of this version of the License, the
+notice described in Exhibit B of this License must be attached.
+
+Exhibit A - Source Code Form License Notice
+-------------------------------------------
+
+ This Source Code Form is subject to the terms of the Mozilla Public
+ License, v. 2.0. If a copy of the MPL was not distributed with this
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular
+file, then You may include the notice in a location (such as a LICENSE
+file in a relevant directory) where a recipient would be likely to look
+for such a notice.
+
+You may add additional accurate notices of copyright ownership.
+
+Exhibit B - "Incompatible With Secondary Licenses" Notice
+---------------------------------------------------------
+
+ This Source Code Form is "Incompatible With Secondary Licenses", as
+ defined by the Mozilla Public License, v. 2.0.
diff --git a/README.md b/README.md
index 7f0461e5e..1d5b4626f 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
<h4 align="center"><b>yuzu</b> is the world's most popular, open-source, Nintendo Switch emulator — started by the creators of <a href="https://citra-emu.org" target="_blank">Citra</a>.
<br>
-It is written in C++ with portability in mind, and we actively maintain builds for Windows and Linux.
+It is written in C++ with portability in mind, and we actively maintain builds for Windows, Linux and Android.
</h4>
<p align="center">
@@ -83,5 +83,3 @@ If you wish to support us a different way, please join our [Discord](https://dis
## License
yuzu is licensed under the GPLv3 (or any later version). Refer to the [LICENSE.txt](https://github.com/yuzu-emu/yuzu/blob/master/LICENSE.txt) file.
-
-The [Skyline-Emulator Team](https://github.com/skyline-emu/skyline) may choose to use the code from these contributors under the GPL-3.0-or-later OR MPL-2.0: [FernandoS27](https://github.com/FernandoS27), [lioncash](https://github.com/lioncash), [bunnei](https://github.com/bunnei), [ReinUsesLisp](https://github.com/ReinUsesLisp), [Morph1984](https://github.com/Morph1984), [ogniK5377](https://github.com/ogniK5377), [german77](https://github.com/german77), [ameerj](https://github.com/ameerj), [Kelebek1](https://github.com/Kelebek1) and [lat9nq](https://github.com/lat9nq)
diff --git a/dist/languages/ca.ts b/dist/languages/ca.ts
index bee0882c1..7964da0d2 100644
--- a/dist/languages/ca.ts
+++ b/dist/languages/ca.ts
@@ -372,36 +372,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
+ <source>Output Device:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Dispositiu d&apos;entrada</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Estèreo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Envoltant</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Utilitza el volum global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Configurar volum:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volum:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Silenciar l&apos;àudio quan estigui en segon plà</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -926,102 +951,112 @@ This would ban both their forum username and their IP address.</source>
<translation>Desactivar macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Quan està marcat, yuzu registrarà estadístiques sobre la cache de canonada compilada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Activar informació de shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Quan està marcat, s&apos;executaran els shaders sense canvis de lògica de bucle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Desactivar comprovacions de seguretat de bucles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Depuració</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Activa els serveis d&apos;informes detallats**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Activar registre d&apos;accés al FS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avançat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Mode quiosc (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Activar depuració de la CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Activar alertes de depuració</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Activar Auto-Stub**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Activar tots els tipus de controladors</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Desactivar el Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Això es restablirà automàticament quan es tanqui yuzu.</translation>
</message>
@@ -1036,12 +1071,12 @@ This would ban both their forum username and their IP address.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1091,78 +1126,78 @@ This would ban both their forum username and their IP address.</source>
<translation>Configuració de yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Àudio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Depuració</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Sistema de fitxers</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>General</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Gràfics</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>GràficsAvançat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Tecles d&apos;accés ràpid</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Controls</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Perfils</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Xarxa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Llista de jocs</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1337,46 +1372,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Interfície de memòria ampliada (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Confirmar la sortida mentre s&apos;està executant l&apos;emulació</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Sol·licitar l&apos;usuari en l&apos;arrencada del joc</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Pausa l&apos;emulació quan la finestra està en segon pla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Silenciar l&apos;àudio quan estigui en segon plà</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Ocultar el cursor del ratolí en cas d&apos;inactivitat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Reiniciar tots els paràmetres</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Això restablirà tota la configuració i eliminarà totes les configuracions dels jocs. No eliminarà ni els directoris de jocs, ni els perfils, ni els perfils dels controladors. Procedir?</translation>
</message>
@@ -1415,7 +1440,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Cap</translation>
</message>
@@ -1441,216 +1466,269 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Emulació NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Sense sortida de vídeo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Descodificació de vídeo a la CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Descodificació de vídeo a la GPU (Valor Predeterminat)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Mode pantalla completa:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Finestra sense vores</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Pantalla completa exclusiva</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Relació d&apos;aspecte:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Valor predeterminat (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Forçar 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Forçar 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Estirar a la finestra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Resolució:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filtre d&apos;adaptació de finestra:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Veí més proper</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilineal</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicúbic</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussià</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (només Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Mètode d&apos;anti-aliasing</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Utilitza un color de fons global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Configura un color de fons:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Color de fons:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Assembly Shaders, només NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1675,77 +1753,133 @@ This would ban both their forum username and their IP address.</source>
<translation>Nivell de precisió:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync evita que la pantalla s&apos;esquinci, però algunes tarjetes gràfiques tenen un rendiment menor amb VSync actiu. Mantén-lo actiu si no notes una diferència de rendiment.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Activa la compilació asíncrona de shaders, el qual podria reduir el tartamudeig dels shaders. Aquesta funcionalitat és experimental.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Utilitzar la construcció de shaders asíncrona (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Habilita el temps ràpid de la GPU. Aquesta opció obligarà a la majoria dels jocs a executar-se a la seva resolució nativa més alta.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Utilitzar temps ràpid a la GPU (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Filtrat anisotròpic:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automàtic</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Valor predeterminat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1778,70 +1912,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Restaurar els valors predeterminats</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Acció</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Tecla d&apos;accés ràpid</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Tecla d&apos;accés ràpid del controlador</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Seqüència de tecles en conflicte</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>La seqüència de tecles introduïda ja ha estat assignada a: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Inici+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[esperant]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Invàlid</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Restaurar el valor predeterminat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Esborrar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Seqüència de botons en conflicte</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>La seqüència de botons per defecte ja està assignada a: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>La seqüència de tecles predeterminada ja ha estat assignada a: %1</translation>
</message>
@@ -2133,7 +2262,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Configurar</translation>
</message>
@@ -2159,6 +2288,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Necessita reiniciar yuzu</translation>
</message>
@@ -2178,22 +2309,42 @@ This would ban both their forum username and their IP address.</source>
<translation>Navegació del controlador</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Activar desplaçament del ratolí</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Sensibilitat del ratolí</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Moviment / Tàctil</translation>
</message>
@@ -2305,7 +2456,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Palanca esquerra</translation>
</message>
@@ -2399,14 +2550,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2425,7 +2576,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Més</translation>
</message>
@@ -2438,15 +2589,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2503,236 +2654,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Palanca dreta</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Esborrar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[no establert]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Botó d&apos;inversió</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Botó commutador</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Invertir eixos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Configurar llindar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Esculli un valor entre 0% i 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Configurar llindar giroscopi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Configuració de palanca analògica</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Després de prémer D&apos;acord, primer moveu el joystick horitzontalment i després verticalment.
Per invertir els eixos, primer moveu el joystick verticalment i després horitzontalment.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Centrar eixos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Zona morta: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Rang del modificador: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Controlador Pro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Joycons duals</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon esquerra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon dret</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Portàtil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Controlador de GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Controlador NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Controlador SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Controlador N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Inici / Pausa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Palanca de control</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Sacseja!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[esperant]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Nou perfil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Introdueixi un nom de perfil:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Crear perfil d&apos;entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>El nom de perfil introduït no és vàlid!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Error al crear el perfil d&apos;entrada &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Eliminar perfil d&apos;entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Error al eliminar el perfil d&apos;entrada &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Carregar perfil d&apos;entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Error al carregar el perfil d&apos;entrada &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Guardar perfil d&apos;entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Error al guardar el perfil d&apos;entrada &quot;%1&quot;</translation>
</message>
@@ -2780,7 +2942,7 @@ Per invertir els eixos, primer moveu el joystick verticalment i després horitzo
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Configuració</translation>
</message>
@@ -2816,7 +2978,7 @@ Per invertir els eixos, primer moveu el joystick verticalment i després horitzo
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Provar</translation>
</message>
@@ -2836,77 +2998,77 @@ Per invertir els eixos, primer moveu el joystick verticalment i després horitzo
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Més Informació&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>El número de port té caràcters invàlids</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>El port ha d&apos;estar entre el rang 0 i 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>l&apos;Adreça IP no és vàlida</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Aquest servidor UDP ja existeix</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>No és possible afegir més de 8 servidors</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Provant</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Configurant</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Prova exitosa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>S&apos;han rebut dades des del servidor correctament.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Prova fallida</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>No s&apos;han pogut rebre dades vàlides des del servidor.&lt;br&gt;Si us plau, verifiqui que el servidor està configurat correctament i que la direcció i el port són correctes. </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>La prova del UDP o la configuració de la calibració està en curs.&lt;br&gt;Si us plau, esperi a que acabi el procés.</translation>
</message>
@@ -2987,47 +3149,47 @@ Per invertir els eixos, primer moveu el joystick verticalment i després horitzo
<translation>Desenvolupador</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Complements</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>General</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Gràfics</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Gràfics avanç.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Àudio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Propietats</translation>
</message>
@@ -3234,7 +3396,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3255,33 +3417,90 @@ UUID: %2</source>
<translation>Zona morta: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Restaurar els valors predeterminats</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Esborrar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[no establert]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Invertir eixos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Zona morta: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Configurant</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[esperant]</translation>
</message>
@@ -3586,8 +3805,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Anglès</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3690,54 +3909,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Estèreo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Envoltant</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID de la consola:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Mode de sortida del so</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regenerar</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Els paràmetres del sistema només estan disponibles quan el joc no s&apos;està executant.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Això reemplaçarà la seva Switch virtual actual amb una nova. La seva Switch virtual actual no serà recuperable. Això podria tenir efectes inesperats en els jocs. Això pot fallar si fa servir una partida guardada amb una configuració desactualitzada. Continuar?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Avís</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID de la consola: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3806,7 +3990,7 @@ UUID: %2</source>
<translation>Configuració TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Selecciona el directori de càrrega TAS...</translation>
</message>
@@ -4362,7 +4546,7 @@ Arrossegui els punts per a canviar la posició, o faci doble clic a les cel·les
<translation>Controlador J1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Controlador J1</translation>
</message>
@@ -4375,42 +4559,37 @@ Arrossegui els punts per a canviar la posició, o faci doble clic a les cel·les
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4418,12 +4597,12 @@ Arrossegui els punts per a canviar la posició, o faci doble clic a les cel·les
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4431,535 +4610,560 @@ Arrossegui els punts per a canviar la posició, o faci doble clic a les cel·les
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Es recullen dades anònimes&lt;/a&gt; per ajudar a millorar yuzu. &lt;br/&gt;&lt;br/&gt;Desitja compartir les seves dades d&apos;ús amb nosaltres?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetria</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Carregant Web applet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Desactivar el Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>Desactivar l&apos;Applet Web pot provocar comportaments indefinits i només hauria d&apos;utilitzar-se amb Super Mario 3D All-Stars. Estàs segur de que vols desactivar l&apos;Applet Web?
(Això pot ser reactivat als paràmetres Debug.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>La quantitat de shaders que s&apos;estan compilant actualment</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>El multiplicador d&apos;escala de resolució seleccionat actualment.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Velocitat d&apos;emulació actual. Valors superiors o inferiors a 100% indiquen que l&apos;emulació s&apos;està executant més ràpidament o més lentament que a la Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Quants fotogrames per segon està mostrant el joc actualment. Això variarà d&apos;un joc a un altre i d&apos;una escena a una altra.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Temps que costa emular un fotograma de la Switch, sense tenir en compte la limitació de fotogrames o la sincronització vertical. Per a una emulació òptima, aquest valor hauria de ser com a màxim de 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Esborrar arxius recents</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Continuar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pausar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu està executant un joc</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Advertència format del joc desfasat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Està utilitzant el format de directori de ROM deconstruït per a aquest joc, que és un format desactualitzat que ha sigut reemplaçat per altres, com NCA, NAX, XCI o NSP. Els directoris de ROM deconstruïts careixen d&apos;icones, metadades i suport d&apos;actualitzacions.&lt;br&gt;&lt;br&gt;Per a obtenir una explicació dels diversos formats de Switch que suporta yuzu,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;faci una ullada a la nostra wiki&lt;/a&gt;. Aquest missatge no es tornarà a mostrar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Error carregant la ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>El format de la ROM no està suportat.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>S&apos;ha produït un error inicialitzant el nucli de vídeo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu ha trobat un error mentre executava el nucli de vídeo. Això sol ser causat per controladors de la GPU obsolets, inclosos els integrats. Si us plau, consulti el registre per a més detalls. Per obtenir més informació sobre com accedir al registre, consulti la següent pàgina: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Com carregar el fitxer de registre&lt;/a&gt;. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Error al carregar la ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Si us plau, segueixi &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;la guia d&apos;inici de yuzu&lt;/a&gt; per a bolcar de nou els seus fitxers.&lt;br&gt;Pot consultar la wiki de yuzu wiki&lt;/a&gt; o el Discord de yuzu&lt;/a&gt; per obtenir ajuda.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>S&apos;ha produït un error desconegut. Si us plau, consulti el registre per a més detalls.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Dades de partides guardades</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Dades de mods</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Error obrint la carpeta %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>La carpeta no existeix!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Error obrint la cache transferible de shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>No s&apos;ha pogut crear el directori de la cache dels shaders per aquest títol.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Eliminar entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>S&apos;ha eliminat correctament</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>S&apos;ha eliminat correctament el joc base instal·lat.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>El joc base no està instal·lat a la NAND i no pot ser eliminat.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>S&apos;ha eliminat correctament l&apos;actualització instal·lada.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>No hi ha cap actualització instal·lada per aquest títol.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>No hi ha cap DLC instal·lat per aquest títol.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>S&apos;ha eliminat correctament %1 DLC instal·lat/s.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Desitja eliminar la cache transferible de shaders d&apos;OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Desitja eliminar la cache transferible de shaders de Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Desitja eliminar totes les caches transferibles de shaders?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Desitja eliminar la configuració personalitzada del joc?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Eliminar arxiu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Error eliminant la cache transferible de shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>No existeix una cache de shaders per aquest títol.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>S&apos;ha eliminat correctament la cache transferible de shaders.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>No s&apos;ha pogut eliminar la cache transferible de shaders.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Error al eliminar les caches de shaders transferibles</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Caches de shaders transferibles eliminades correctament.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>No s&apos;ha pogut eliminar el directori de caches de shaders transferibles.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Error eliminant la configuració personalitzada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>No existeix una configuració personalitzada per aquest joc.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>S&apos;ha eliminat correctament la configuració personalitzada del joc.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>No s&apos;ha pogut eliminar la configuració personalitzada del joc.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>La extracció de RomFS ha fallat!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>S&apos;ha produït un error copiant els arxius RomFS o l&apos;usuari ha cancel·lat la operació.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Completa</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Esquelet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Seleccioni el mode de bolcat de RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Si us plau, seleccioni la forma en que desitja bolcar la RomFS.&lt;br&gt;Completa copiarà tots els arxius al nou directori mentre que&lt;br&gt;esquelet només crearà l&apos;estructura de directoris.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>No hi ha suficient espai lliure a %1 per extreure el RomFS. Si us plau, alliberi espai o esculli un altre directori de bolcat a Emulació &gt; Configuració &gt; Sistema &gt; Sistema d&apos;arxius &gt; Carpeta arrel de bolcat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Extraient RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Cancel·la</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Extracció de RomFS completada correctament!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>L&apos;operació s&apos;ha completat correctament.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Error obrint %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Seleccionar directori</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Propietats</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Les propietats del joc no s&apos;han pogut carregar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Executable de Switch (%1);;Tots els Arxius (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Carregar arxiu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Obrir el directori de la ROM extreta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Directori seleccionat invàlid</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>El directori que ha seleccionat no conté un arxiu &apos;main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Arxiu de Switch Instal·lable (*.nca *.nsp *.xci);;Arxiu de Continguts Nintendo (*.nca);;Paquet d&apos;enviament Nintendo (*.nsp);;Imatge de Cartutx NX (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Instal·lar arxius</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n arxiu(s) restants</numerusform><numerusform>%n arxiu(s) restants</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Instal·lant arxiu &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Resultats instal·lació</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Per evitar possibles conflictes, no recomanem als usuaris que instal·lin jocs base a la NAND.
Si us plau, utilitzi aquesta funció només per a instal·lar actualitzacions i DLCs.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n nou(s) arxiu(s) s&apos;ha(n) instal·lat
@@ -4967,7 +5171,7 @@ Si us plau, utilitzi aquesta funció només per a instal·lar actualitzacions i
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n arxiu(s) s&apos;han sobreescrit
@@ -4975,7 +5179,7 @@ Si us plau, utilitzi aquesta funció només per a instal·lar actualitzacions i
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n arxiu(s) no s&apos;han instal·lat
@@ -4983,377 +5187,388 @@ Si us plau, utilitzi aquesta funció només per a instal·lar actualitzacions i
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Aplicació del sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Arxiu del sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Actualització de l&apos;aplicació del sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Paquet de firmware (Tipus A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Paquet de firmware (Tipus B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Joc</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Actualització de joc</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC del joc</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Títol delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Seleccioni el tipus d&apos;instal·lació NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Seleccioni el tipus de títol que desitja instal·lar aquest NCA com a:
(En la majoria dels casos, el valor predeterminat &apos;Joc&apos; està bé.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Ha fallat la instal·lació</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>El tipus de títol seleccionat per el NCA és invàlid.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Arxiu no trobat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Arxiu &quot;%1&quot; no trobat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>D&apos;acord</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Falta el compte de yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Per tal d&apos;enviar un cas de prova de compatibilitat de joc, ha de vincular el seu compte de yuzu.&lt;br&gt;&lt;br/&gt;Per a vincular el seu compte de yuzu, vagi a Emulació &amp; gt; Configuració &amp; gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Error obrint URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>No es pot obrir la URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Gravació TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Sobreescriure l&apos;arxiu del jugador 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Configuració invàlida detectada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>El controlador del mode portàtil no es pot fer servir en el mode acoblat. Es seleccionarà el controlador Pro en el seu lloc.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>L&apos;amiibo actual ha sigut eliminat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>El joc actual no està buscant amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Arxiu Amiibo (%1);; Tots els Arxius (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Carregar Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Error al carregar les dades d&apos;Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Captura de pantalla</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Imatge PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Estat TAS: executant %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Estat TAS: gravant %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Estat TAS: inactiu %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Estat TAS: invàlid</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Parar l&apos;execució</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Iniciar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Parar g&amp;ravació</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>G&amp;ravar</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Construint: %n shader(s)</numerusform><numerusform>Construint: %n shader(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Escala: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Velocitat: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Velocitat: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Joc: %1 FPS (desbloquejat)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Joc: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Fotograma: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU ALTA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTREMA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>ERROR GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>MÉS PROPER</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICÚBIC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIÀ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>SENSE AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Confirmi la clau de rederivació</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5370,37 +5585,37 @@ i opcionalment faci còpies de seguretat.
Això eliminarà els arxius de les claus generats automàticament i tornarà a executar el mòdul de derivació de claus.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Falten fusibles</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation> - Falta BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - Falta BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - Falta PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Falten components de derivació</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Falten les claus d&apos;encriptació. &lt;br&gt;Si us plau, segueixi &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;la guia ràpida de yuzu&lt;/a&gt; per a obtenir totes les seves claus, firmware i jocs.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5409,39 +5624,49 @@ Això pot prendre fins a un minut depenent
del rendiment del seu sistema.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Derivant claus</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Seleccioni el destinatari per a bolcar el RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Si us plau, seleccioni quin RomFS desitja bolcar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Està segur de que vol tancar yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Està segur de que vol aturar l&apos;emulació? Qualsevol progrés no guardat es perdrà.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5453,44 +5678,44 @@ Desitja tancar-lo de totes maneres?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL no disponible!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu no ha estat compilat amb suport per OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Error al inicialitzar OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>La seva GPU no suporta OpenGL, o no té instal·lat els últims controladors gràfics.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Error inicialitzant OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>La seva GPU no suporta OpenGL 4.6, o no té instal·lats els últims controladors gràfics.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>És possible que la seva GPU no suporti una o més extensions necessàries d&apos;OpenGL. Si us plau, asseguris de tenir els últims controladors de la tarjeta gràfica.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Extensions no suportades:&lt;br&gt;%2</translation>
</message>
@@ -5549,117 +5774,122 @@ Desitja tancar-lo de totes maneres?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Eliminar cache de canonada d&apos;OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Eliminar cache de canonada de Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Eliminar totes les caches de canonada</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Eliminar tots els continguts instal·lats</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Bolcar RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Bolcar RomFS a SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Copiar la ID del títol al porta-retalls</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Navegar a l&apos;entrada de GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Propietats</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Escanejar subdirectoris</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Eliminar directori de jocs</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Moure amunt</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Move avall</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Obre ubicació del directori</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Esborrar</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nom</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Compatibilitat</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Complements</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Tipus d&apos;arxiu</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Mida</translation>
</message>
@@ -5730,7 +5960,7 @@ Desitja tancar-lo de totes maneres?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Faci doble clic per afegir un nou directori a la llista de jocs</translation>
</message>
@@ -5743,12 +5973,12 @@ Desitja tancar-lo de totes maneres?</translation>
<translation><numerusform>%1 de %n resultat(s)</numerusform><numerusform>%1 de %n resultat(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filtre:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Introdueixi patró per a filtrar</translation>
</message>
@@ -5838,12 +6068,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5865,111 +6094,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Captura de pantalla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Pantalla Completa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Carregar arxiu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5992,7 +6222,7 @@ Debug Message: </source>
<translation>Instal·lar</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Instal·lar arxius a la NAND</translation>
</message>
@@ -6000,7 +6230,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>El text no pot contenir cap dels següents caràcters
@@ -6075,51 +6305,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Jugadors</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6653,7 +6888,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>INICI/PAUSAR</translation>
</message>
@@ -6702,31 +6937,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[no establert]</translation>
</message>
@@ -6737,14 +6972,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Eix %1%2</translation>
</message>
@@ -6755,264 +6990,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[desconegut]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Esquerra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Dreta</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Avall</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Amunt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Inici</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Cercle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Creu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Cuadrat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Triangle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Compartir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Opcions</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[indefinit]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[invàlid]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Rotació %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Eix %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Eixos %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Moviment %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Botó %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[sense ús]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Més</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Menys</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Inici</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Captura</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Tàctil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Roda</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Enrere</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Endavant</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Tasca</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7381,28 +7674,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Codi d&apos;error: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>S&apos;ha produït un error.
Si us plau, intenti-ho de nou o contacti el desenvolupador del programari.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>S&apos;ha produït un error a %1 a les %2.
Si us plau, intenti-ho de nou o contacti el desenvolupador del programari.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7426,20 +7719,81 @@ Si us plau, intenti-ho de nou o contacti el desenvolupador del programari.</tran
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Seleccioni un usuari:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Usuaris</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Selector de perfil</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Seleccioni un usuari:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7489,51 +7843,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Pila de trucades</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>esperant el mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>té receptors: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>mànec del propietari: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>esperant tots els objectes</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>esperant un dels següents objectes</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>esperat per cap fil</translation>
</message>
@@ -7541,120 +7864,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>executable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>pausat</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>dormint</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>esperant per resposta IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>esperant objectes</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>esperant variable condicional</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>esperant al àrbitre d&apos;adreça</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>esperant reanudar la suspensió</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>esperant</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>inicialitzat</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>acabat</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>desconegut</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>nucli %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processador = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>nucli ideal = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>màscara d&apos;afinitat = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id fil = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioritat = %1(actual) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>últims ticks consecutius = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>no esperant per mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>esperat per fil</translation>
</message>
@@ -7662,7 +7975,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>Arbre d&apos;&amp;espera</translation>
</message>
diff --git a/dist/languages/cs.ts b/dist/languages/cs.ts
index d0f71808d..486a812d9 100644
--- a/dist/languages/cs.ts
+++ b/dist/languages/cs.ts
@@ -372,36 +372,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
+ <source>Output Device:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Vstupní zařízení</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Použít globální hlasitost</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Nastavit hlasitost:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Hlasitost:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -918,102 +943,112 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<translation>Zakázat Makro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Když je zaškrtnuto, yuzu bude logovat statistiky o kompilované mezipaměti pipelinu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Povolit Shader Feedback</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Když je zaškrtnuto, shadery budou exekutovány bez změn logických smyček.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Ladění</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Pokročilé</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Předváděcí (Quest/Kiosk) režim</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Povolit Debug Asserts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Zakázat Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation type="unfinished"/>
</message>
@@ -1028,12 +1063,12 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1083,78 +1118,78 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<translation>Nastavení yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Zvuk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Ladění</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Souborový systém</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Obecné</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafika</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>GrafickyPokročilé</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Zkratky</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Ovládání</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profily</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Síť</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Systém</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Seznam her</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1329,46 +1364,36 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Potvrzovat exit při spuštěné emulaci</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Zeptat se na uživatele při spuštění hry</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Pozastavit emulaci, když je aplikace v pozadí</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Skrýt myš při neaktivitě</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Resetovat všechna nastavení</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Toto vyresetuje všechna nastavení a odstraní konfigurace pro jednotlivé hry. Složky s hrami a profily zůstanou zachovány. Přejete si pokračovat?</translation>
</message>
@@ -1407,7 +1432,7 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Žádné</translation>
</message>
@@ -1433,216 +1458,269 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Režim celé obrazovky:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Okno bez okrajů</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Exkluzivní</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Poměr stran:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Výchozí (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Vynutit 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Vynutit 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Roztáhnout podle okna</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Použít globální barvu pozadí</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Nastavit barvu pozadí:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Barva Pozadí:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1667,77 +1745,133 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<translation>Přesnost:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>V-Sync brání obrazovce před trháním, ale některé grafické karty mají menší výkon se zapnutým V-Sync. Nechte toto zapnuté, pokud si nevšimnete žádných rozdílů ve výkonu.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Zapnout asynchronní kompilaci shaderů, která může snížit zasekávání shaderů. Tato funkce je experimentální. </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anizotropní filtrování:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Výchozí</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1770,70 +1904,65 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<translation>Vrátit výchozí nastavení</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Akce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Zkratka</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Protichůdné klávesové sekvence</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Vložená klávesová sekvence je již přiřazena k: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[čekání]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Vrátit výchozí nastavení</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Vyčistit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Výchozí klávesová sekvence je již přiřazena k: %1</translation>
</message>
@@ -2125,7 +2254,7 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Nastavení</translation>
</message>
@@ -2151,6 +2280,8 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation type="unfinished"/>
</message>
@@ -2170,22 +2301,42 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Povolit naklánění myší</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Citlivost myši</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Pohyb / Dotyk</translation>
</message>
@@ -2297,7 +2448,7 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Levá Páčka</translation>
</message>
@@ -2391,14 +2542,14 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2417,7 +2568,7 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Plus</translation>
</message>
@@ -2430,15 +2581,15 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2495,236 +2646,247 @@ Tato možnost zlepšuje rychlost díky závislosti na sémantice cmpxchg pro zaj
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Pravá páčka</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Vyčistit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[nenastaveno]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Přepnout tlačítko</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Převrátit osy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Namapovat analogovou páčku</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Po stisknutí OK nejprve posuňte joystick horizontálně, poté vertikálně.
Pro převrácení os nejprve posuňte joystick vertikálně, poté horizontálně.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Deadzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Rozsah modifikátoru: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Dual Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Levý Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Pravý Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>V rukou</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Ovladač GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Start / Pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Control Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Shake!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[čekání]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Nový profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Zadejte název profilu:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Vytvořit profil vstupu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Zadaný název profilu není platný!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Nepodařilo se vytvořit profil vstupu &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Odstranit profil vstupu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Nepodařilo se odstranit profil vstupu &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Načíst profil vstupu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Nepodařilo se načíst profil vstupu &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Uložit profil vstupu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Nepodařilo se uložit profil vstupu &quot;%1&quot;</translation>
</message>
@@ -2772,7 +2934,7 @@ Pro převrácení os nejprve posuňte joystick vertikálně, poté horizontáln
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Konfigurovat </translation>
</message>
@@ -2808,7 +2970,7 @@ Pro převrácení os nejprve posuňte joystick vertikálně, poté horizontáln
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Test</translation>
</message>
@@ -2828,77 +2990,77 @@ Pro převrácení os nejprve posuňte joystick vertikálně, poté horizontáln
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Dozvědět se více&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Číslo portu obsahuje neplatné znaky</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Port musí být v rozsahu 0 až 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP adresa není platná</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>UDP server již existuje</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Není možné přidat více než 8 serverů</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testování</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Nastavování</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test byl úspěšný</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Úspěšně jsme získali data ze serveru.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test byl neúspěšný</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Nedostali jsme platná data ze serveru.&lt;br&gt;Prosím zkontrolujte, že váš server je nastaven správně a že adresa a port jsou zadány správně.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Probíhá test UDP nebo konfigurace kalibrace.&lt;br&gt;Prosím vyčkejte na dokončení.</translation>
</message>
@@ -2979,47 +3141,47 @@ Pro převrácení os nejprve posuňte joystick vertikálně, poté horizontáln
<translation>Vývojář</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Doplňky</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Obecné</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Systém</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafika</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Pokroč. grafika</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Zvuk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Vlastnosti</translation>
</message>
@@ -3226,7 +3388,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3247,33 +3409,90 @@ UUID: %2</source>
<translation>Deadzone: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Vrátit výchozí nastavení</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Vymazat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[nenastaveno]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Převrátit osy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Deadzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Nastavování</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[čekání]</translation>
</message>
@@ -3578,8 +3797,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Angličtina (English)</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3682,54 +3901,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID Konzole:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Mód výstupu zvuku</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Přegenerovat</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Systémová nastavení jsou dostupná pouze, pokud hra neběží.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Toto vymění váš virtuální Switch za nový. Váš aktuální virtuální Switch nebude možno navrátit. Tohle může mít nečekané následky ve hrách. Tohle může selhat pokud použijete starý konfig savu. Pokračovat?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Varování</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID Konzole: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3798,7 +3982,7 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation type="unfinished"/>
</message>
@@ -4354,7 +4538,7 @@ Táhněte body pro změnu pozice nebo dvojitě klikněte na buňky tabulky pro z
<translation>Ovladač P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Ovladač P1</translation>
</message>
@@ -4367,42 +4551,37 @@ Táhněte body pro změnu pozice nebo dvojitě klikněte na buňky tabulky pro z
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4410,12 +4589,12 @@ Táhněte body pro změnu pozice nebo dvojitě klikněte na buňky tabulky pro z
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4423,922 +4602,958 @@ Táhněte body pro změnu pozice nebo dvojitě klikněte na buňky tabulky pro z
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymní data jsou sbírána&lt;/a&gt; pro vylepšení yuzu. &lt;br/&gt;&lt;br/&gt;Chcete s námi sdílet anonymní data?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Načítání Web Appletu...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Zakázat Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Počet aktuálně sestavovaných shaderů</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Aktuální emulační rychlost. Hodnoty vyšší než 100% indikují, že emulace běží rychleji nebo pomaleji než na Switchi.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Kolik snímků za sekundu aktuálně hra zobrazuje. Tohle závisí na hře od hry a scény od scény.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Čas potřebný na emulaci framu scény, nepočítá se limit nebo v-sync. Pro plnou rychlost by se tohle mělo pohybovat okolo 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Vymazat poslední soubory</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Pokračovat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pauza</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Varování Zastaralý Formát Hry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Používáte rozbalený formát hry, který je zastaralý a byl nahrazen jinými jako NCA, NAX, XCI, nebo NSP. Rozbalená ROM nemá ikony, metadata, a podporu updatů.&lt;br&gt;&lt;br&gt;Pro vysvětlení všech možných podporovaných typů, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;zkoukni naší wiki&lt;/a&gt;. Tato zpráva se nebude znova zobrazovat.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Chyba při načítání ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Tento formát ROM není podporován.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Nastala chyba při inicializaci jádra videa.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Chyba při načítání ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Pro extrakci souborů postupujte podle &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;rychlého průvodce yuzu&lt;/a&gt;. Nápovědu naleznete na &lt;br&gt;wiki&lt;/a&gt; nebo na Discordu&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Nastala chyba. Koukni do logu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Uložit data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Módovat Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Chyba otevírání složky %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Složka neexistuje!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Chyba při otevírání přenositelné mezipaměti shaderů</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Odebrat položku</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Úspěšně odebráno</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Úspěšně odebrán nainstalovaný základ hry.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Základ hry není nainstalovaný na NAND a nemůže být odstraněn.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Úspěšně odebrána nainstalovaná aktualizace.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Není nainstalovaná žádná aktualizace pro tento titul.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Není nainstalované žádné DLC pro tento titul.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Úspěšně odstraněno %1 nainstalovaných DLC.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Odstranit vlastní konfiguraci hry?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Odstranit soubor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Chyba při odstraňování přenositelné mezipaměti shaderů</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Mezipaměť shaderů pro tento titul neexistuje.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Přenositelná mezipaměť shaderů úspěšně odstraněna</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Nepodařilo se odstranit přenositelnou mezipaměť shaderů</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Chyba při odstraňování vlastní konfigurace hry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Vlastní konfigurace hry pro tento titul neexistuje.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Úspěšně odstraněna vlastní konfigurace hry.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Nepodařilo se odstranit vlastní konfiguraci hry.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Extrakce RomFS se nepovedla!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Nastala chyba při kopírování RomFS souborů, nebo uživatel operaci zrušil.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Plný</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Kostra</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Vyber RomFS Dump Mode</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Vyber jak by si chtěl RomFS vypsat.&lt;br&gt;Plné zkopíruje úplně všechno, ale&lt;br&gt;kostra zkopíruje jen strukturu složky.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Extrahuji RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Zrušit</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Extrakce RomFS se povedla!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Operace byla dokončena úspěšně.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Chyba při otevírání %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Vybraná Složka</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Vlastnosti</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Herní vlastnosti nemohly být načteny.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch Executable (%1);;Všechny soubory (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Načíst soubor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Otevřít složku s extrahovanou ROM</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Vybraná složka je neplatná</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Složka kterou jste vybrali neobsahuje soubor &quot;main&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Instalovatelný soubor pro Switch (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Instalovat Soubory</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Instalování souboru &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Výsledek instalace</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Abychom předešli možným konfliktům, nedoporučujeme uživatelům instalovat základní hry na paměť NAND.
Tuto funkci prosím používejte pouze k instalaci aktualizací a DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Systémová Aplikace</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Systémový archív</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Systémový Update Aplikace</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Firmware-ový baliček (Typu A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Firmware-ový baliček (Typu B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Hra</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Update Hry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Herní DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta Title</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Vyberte typ instalace NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Vyberte typ title-u, který chcete nainstalovat tenhle NCA jako:
(Většinou základní &quot;game&quot; stačí.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Chyba v instalaci</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Tento typ pro tento NCA není platný.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Soubor nenalezen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Soubor &quot;%1&quot; nenalezen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Chybí účet yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Pro přidání recenze kompatibility je třeba mít účet yuzu&lt;br&gt;&lt;br/&gt;Pro nalinkování yuzu účtu jdi do Emulace &amp;gt; Konfigurace &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Chyba při otevírání URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Nelze otevřít URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Zjištěno neplatné nastavení</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Ruční ovladač nelze používat v dokovacím režimu. Bude vybrán ovladač Pro Controller.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Soubor Amiibo (%1);; Všechny Soubory (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Načíst Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Chyba načítání Amiiba</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Pořídit Snímek Obrazovky</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG Image (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Rychlost: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Rychlost: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Hra: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Frame: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMÁLNÍ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU VYSOKÝ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTRÉMNÍ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU ERROR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Potvďte Rederivaci Klíčů</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5355,37 +5570,37 @@ a udělejte si zálohu.
Toto vymaže věechny vaše automaticky generované klíče a znova spustí modul derivace klíčů.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Chybí Fuses</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Chybí BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - Chybí BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - Chybí PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Chybé odvozené komponenty</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5394,39 +5609,49 @@ Tohle může zabrat až minutu
podle výkonu systému.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Derivuji Klíče</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Vyberte Cíl vypsaní RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Vyberte, kterou RomFS chcete vypsat.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Jste si jist, že chcete zavřít yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Jste si jist, že chcete ukončit emulaci? Jakýkolic neuložený postup bude ztracen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5438,44 +5663,44 @@ Opravdu si přejete ukončit tuto aplikaci?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL není k dispozici!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu nebylo sestaveno s OpenGL podporou.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Chyba při inicializaci OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Vaše grafická karta pravděpodobně nepodporuje OpenGL nebo nejsou nainstalovány nejnovější ovladače.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Chyba při inicializaci OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Vaše grafická karta pravděpodobně nepodporuje OpenGL 4.6 nebo nejsou nainstalovány nejnovější ovladače.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>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.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Nepodporované rozšíření:&lt;br&gt;%2</translation>
</message>
@@ -5534,117 +5759,122 @@ Opravdu si přejete ukončit tuto aplikaci?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Odstranit všechen nainstalovaný obsah</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Vypsat RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Zkopírovat ID Titulu do schránky</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Navigovat do GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Vlastnosti</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Prohledat podsložky</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Odstranit složku se hrou</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Posunout nahoru</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Posunout dolů</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Otevřít umístění složky</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Vymazat</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Název</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Kompatibilita</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Modifkace</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Typ-Souboru</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Velikost</translation>
</message>
@@ -5715,7 +5945,7 @@ Opravdu si přejete ukončit tuto aplikaci?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Dvojitým kliknutím přidáte novou složku do seznamu her</translation>
</message>
@@ -5728,12 +5958,12 @@ Opravdu si přejete ukončit tuto aplikaci?</translation>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filtr:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Zadejte filtr</translation>
</message>
@@ -5823,12 +6053,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5850,111 +6079,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Pořídit Snímek Obrazovky</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Celá Obrazovka</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Načíst soubor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5977,7 +6207,7 @@ Debug Message: </source>
<translation>Nainstalovat</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Instalovat soubory na NAND</translation>
</message>
@@ -5985,7 +6215,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation type="unfinished"/>
@@ -6059,51 +6289,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Hráči</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6637,7 +6872,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>START/PAUSE</translation>
</message>
@@ -6686,31 +6921,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[Nenastaveno]</translation>
</message>
@@ -6721,14 +6956,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Osa %1%2</translation>
</message>
@@ -6739,263 +6974,321 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[Neznámá]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Doleva</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Doprava</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Dolů</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Nahoru</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[nepoužito]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Plus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Minus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Capture</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Dotyk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
<translation type="unfinished"/>
</message>
</context>
@@ -7365,28 +7658,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Kód chyby: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Došlo k chybě.
Zkuste to prosím znovu nebo kontaktujte vývojáře softwaru.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>V %1 na %2 došlo k chybě.
Zkuste to prosím znovu nebo kontaktujte vývojáře softwaru.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7410,20 +7703,81 @@ Zkuste to prosím znovu nebo kontaktujte vývojáře softwaru.</translation>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Vyber Uživatele:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Uživatelé</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Profilový Manažer</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Vyber Uživatele:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7473,51 +7827,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Call stack</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>waiting for mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>has waiters: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>owner handle: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>waiting for all objects</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>waiting for one of the following objects</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>čekání bez přiřazeného vlákna</translation>
</message>
@@ -7525,120 +7848,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>spustitelné</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>pauznuto</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>spící</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>čekání na odpověd IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>waiting for objects</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>čekání na proměnnou podmínky</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>waiting for address arbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>čekání na obnovení pozastavení</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>čekání</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>inicializováno</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>ukončeno</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>neznámý</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideální</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>jádro %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>procesor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>ideální jádro = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>affinity mask = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id vlákna = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>priorita = %1(aktuální) / %2(normální)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>last running ticks = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>not waiting for mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>waited by thread</translation>
</message>
@@ -7646,7 +7959,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>Ř&amp;etězec čekání</translation>
</message>
diff --git a/dist/languages/da.ts b/dist/languages/da.ts
index 94f90dcea..082f839cf 100644
--- a/dist/languages/da.ts
+++ b/dist/languages/da.ts
@@ -380,36 +380,61 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Udgangsenhed</translation>
+ <source>Output Device:</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Indgangsenhed</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Benyt global lydstyrke</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Angiv lydstyrke:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Lydstyrke:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Gør lydløs, når i baggrunden</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -934,102 +959,112 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<translation>Deaktivér Makro-JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Når valgt, vil yuzu logføre statistikker om det kompilerede rørlinje-mellemlager</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Aktivér Shader-Tilbagemelding</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Når valgt, eksekverer den shadere, uden loop-logik-forandringer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Deaktivér Loop-sikkerhedskontrol</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Fejlfinding</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Aktivér Vitterlig Rapporteringstjeneste</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Aktivér FS-Tilgangslog</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation>Aktivér dette, for at udgyde den senest genererede lyd-kommandoliste til konsollen. Påvirker kun spil, som gør brug af lyd-renderingen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation>Dump Lydkommandoer Til Konsol**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>Opret Minidump Efter Nedbrud</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avanceret</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk (Rejse)-Tilstand</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Aktivér CPU-Fejlfinding</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Aktivér Fejlfindingshævdelser</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Aktivér Automatisk Stub**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Aktivér Alle Kontrolenhedstyper</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Deaktivér Net-Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>Gør Yuzu i stand til at kontrollere for et funktionelt Vulkan-miljø, når programmet starter op. Deaktivering af dette forårsager problemer med at eksterne programmer ser Yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>Udfør Vulkan-Kontrol Under Opstart</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Dette vil automatisk blive nulstillet, når yuzu lukkes.</translation>
</message>
@@ -1044,12 +1079,12 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<translation>Yuzu kræver en genstart, for at anvende denne indstilling.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Net-applet ikke kompileret</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>MiniDump oprettelse ikke kompileret</translation>
</message>
@@ -1099,78 +1134,78 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<translation>yuzu Konfiguration</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Lyd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Fejlfind</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Filsystem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Generelt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>GrafikAvanceret</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Genvejstaster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Styring</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profiler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Netværk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Spilliste</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Net</translation>
</message>
@@ -1345,46 +1380,36 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Udvidet hukommelsesopsætning (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Bekræft afslutning, mens emulering kører</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Spørg efter bruger, ved opstart af spil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Sæt emulering på pause, når i baggrund</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Gør lydløs, når i baggrunden</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Skjul mus ved inaktivitet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Nulstil Alle Indstillinger</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>dette nulstiller alle indstillinger og fjerner alle pr-spil-konfigurationer. Dette vil ikke slette spilmapper, -profiler, eller input-profiler. Fortsæt?</translation>
</message>
@@ -1423,7 +1448,7 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Ingen</translation>
</message>
@@ -1449,216 +1474,269 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC-emulering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Ingen Video-Output</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>CPU-Video Afkodning</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>GPU-Video Afkodning (Standard)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Fuldskærmstilstand:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Uindrammet Vindue</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Eksklusiv Fuld Skærm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Skærmformat:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Standard (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Tving 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Tving 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Stræk til Vindue</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Opløsning:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0,5X (360p/540p) [EKSPERIMENTEL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0,75X (540p/810p) [EKSPERIMENTEL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Vinduestilpassende Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Nærmeste Nabo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilineær</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bikubisk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gausisk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Superopløsning (Kun Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Anti-Aliaseringsmetode:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Brug global baggrundsfarve</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Angiv baggrundsfarve:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Baggrundsfarve:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Assembly-Shadere, kun NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1683,77 +1761,133 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<translation>Nøjagtighedsniveau</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync forhindrer skærmen i at frynse, men nogle grafikkort har lavere ydeevne med VSync aktiveret. Behold det aktiveret, hvis du ikke bemærker en forskel i ydeevne.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Brug VSync</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Aktiverer asynkron shader-kompilering, hvilket kan reducere shader-stammen. Denne funktion er eksperimentiel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Brug asynkron shader-opbygning (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Aktiverer Hurtig GPU-Tid. Denne valgmulighed vil tvinge de fleste spil, til at køre i deres højeste indbyggede opløsning.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Brug Hurtig GPU-Tid (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anisotropisk Filtrering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation type="unfinished"/>
</message>
@@ -1786,70 +1920,65 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<translation>Gendan Standarder</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Handling</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Genvejstast</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Modstridende Tastesekvens</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Den indtastede tastesekvens er allerede tilegnet: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[venter]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Gendan Standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Ryd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Standard-tastesekvensen er allerede tilegnet: %1</translation>
</message>
@@ -2141,7 +2270,7 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Konfigurér</translation>
</message>
@@ -2167,6 +2296,8 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Kræver genstart af yuzu</translation>
</message>
@@ -2186,22 +2317,42 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Aktivér kig med mus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Mus-følsomhed</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Bevægelse / Berøring</translation>
</message>
@@ -2313,7 +2464,7 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Venstre Styrepind</translation>
</message>
@@ -2407,14 +2558,14 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2433,7 +2584,7 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Plus</translation>
</message>
@@ -2446,15 +2597,15 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2511,236 +2662,247 @@ Dette vil bandlyse både vedkommendes forum-brugernavn og IP-adresse.</translati
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Højre Styrepind</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Ryd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[ikke indstillet]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Funktionsskifteknap</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Omvend akser</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Angiv tærskel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Vælg en værdi imellem 0% og 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Tilsted Analog Pind</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Bevæg, efter tryk på OK, først din styrepind vandret og så lodret.
Bevæg, for at omvende akserne, først din styrepind lodret og så vandret.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Dødzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Forandringsrækkevidde: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro-Styringsenhed</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Dobbelt-Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Venstre Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Højre Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Håndholdt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube-Styringsenhed</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Start / Pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Styrepind</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Pind</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Ryst!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[venter]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Ny Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Indtast et profilnavn:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Opret Input-Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Det angivne profilnavn er ikke gyldigt!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Oprettelse af input-profil &quot;%1&quot; mislykkedes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Slet Input-Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Sletning af input-profil &quot;%1&quot; mislykkedes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Indlæs Input-Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Indlæsning af input-profil &quot;%1&quot; mislykkedes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Gem Input-Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Lagring af input-profil &quot;%1&quot; mislykkedes</translation>
</message>
@@ -2788,7 +2950,7 @@ Bevæg, for at omvende akserne, først din styrepind lodret og så vandret.</tra
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Konfigurér</translation>
</message>
@@ -2824,7 +2986,7 @@ Bevæg, for at omvende akserne, først din styrepind lodret og så vandret.</tra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Afprøv</translation>
</message>
@@ -2844,77 +3006,77 @@ Bevæg, for at omvende akserne, først din styrepind lodret og så vandret.</tra
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Find Ud Af Mere&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Portnummer indeholder ugyldige tegn</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Port skal være imellem 0 and 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP-adresse er ikke gyldig</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Denne UDP-server eksisterer allerede</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Ude af stand til, at tilføje mere end 8 servere</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Afprøvning</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Konfigurér</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Afprøvning Lykkedes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Modtagelse af data fra serveren lykkedes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Afprøvning Mislykkedes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Kunne ikke modtage gyldig data fra serveren.&lt;br&gt;Bekræft venligst, at serveren er opsat korrekt, og at adressen og porten er korrekte.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP-Afprøvnings- eller -kalibreringskonfiguration er i gang.&lt;br&gt;vent venligst på, at de bliver færdige.</translation>
</message>
@@ -2995,47 +3157,47 @@ Bevæg, for at omvende akserne, først din styrepind lodret og så vandret.</tra
<translation>Udvikler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Tilføjelser</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Generelt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Lyd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Egenskaber</translation>
</message>
@@ -3242,7 +3404,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3263,33 +3425,90 @@ UUID: %2</source>
<translation>Dødzone: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Gendan Standarder</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Ryd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[ikke indstillet]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Omvend akser</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Dødzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Konfigurér</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[venter]</translation>
</message>
@@ -3594,8 +3813,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Engelsk</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3698,54 +3917,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Konsol-ID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Lydoutput-tilstand</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regenerér</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Systemindstillinger er kun tilgængelige, når spil ikke kører.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Dette vil erstatte din nuværende virtuelle Switch med en ny. Din nuværende virtuelle Switch vil ikke kunne gendannes. Dette kan have uforudsete konsekvenser i spil. Dette kan fejle, hvis du bruger en forældet konfiguration fra gemte data. Fortsæt?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Advarsel</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Konsol-ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3814,7 +3998,7 @@ UUID: %2</source>
<translation>TAS-Konfiguration</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Vælg TAS-Indlæsningsmappe...</translation>
</message>
@@ -4370,7 +4554,7 @@ Træk punkter, for at skifte position, eller dobbeltklik i tabelceller, for at r
<translation>Styringsenhed P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Styringsenhed P1</translation>
</message>
@@ -4383,42 +4567,37 @@ Træk punkter, for at skifte position, eller dobbeltklik i tabelceller, for at r
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4426,12 +4605,12 @@ Træk punkter, for at skifte position, eller dobbeltklik i tabelceller, for at r
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4439,920 +4618,956 @@ Træk punkter, for at skifte position, eller dobbeltklik i tabelceller, for at r
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonym data indsamles&lt;/a&gt;, for at hjælp med, at forbedre yuzu. &lt;br/&gt;&lt;br/&gt;Kunne du tænke dig, at dele dine brugsdata med os?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetri</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Indlæser Net-Applet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Deaktivér Net-Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Aktuel emuleringshastighed. Værdier højere eller lavere end 100% indikerer, at emulering kører hurtigere eller langsommere end en Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Advarsel, Forældet Spilformat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Fejl under indlæsning af ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>ROM-formatet understøttes ikke.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Der skete en fejl under initialisering af video-kerne.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Fejl ved Åbning af %1 Mappe</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Mappe eksisterer ikke!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>RomFS-Udpakning Mislykkedes!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Der skete en fejl ved kopiering af RomFS-filerne, eller brugeren afbrød opgaven.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Fuld</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Skelet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Vælg RomFS-Nedfældelsestilstand</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Udpakker RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Afbryd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS-Udpakning Lykkedes!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Fuldførelse af opgaven lykkedes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Fejl ved Åbning af %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Vælg Mappe</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Egenskaber</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Spil-egenskaberne kunne ikke indlæses.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch-Eksekverbar (%1);;Alle filer (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Indlæs Fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Åbn Udpakket ROM-Mappe</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Ugyldig Mappe Valgt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Installér fil &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Systemapplikation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Systemarkiv</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Systemapplikationsopdatering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Firmwarepakke (Type A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Firmwarepakke (Type B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Spil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Spilopdatering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Spiludvidelse</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta-Titel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Vælg NCA-Installationstype...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Installation mislykkedes</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Fil ikke fundet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Fil &quot;%1&quot; ikke fundet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Manglende yuzu-Konto</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo-Fil (%1);; Alle Filer (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Indlæs Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Fejl ved indlæsning af Amiibo-data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Optag Skærmbillede</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG-Billede (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Hastighed: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Hastighed: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Spil: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Billede: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5363,76 +5578,86 @@ This will delete your autogenerated key files and re-run the key derivation modu
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Er du sikker på, at du vil lukke yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Er du sikker på, at du vil stoppe emulereingen? Enhver ulagret data, vil gå tabt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5442,44 +5667,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation type="unfinished"/>
</message>
@@ -5538,117 +5763,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Kopiér Titel-ID til Udklipsholder</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Egenskaber</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Ryd</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Navn</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Kompatibilitet</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Tilføjelser</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Filtype</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Størrelse</translation>
</message>
@@ -5719,7 +5949,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation type="unfinished"/>
</message>
@@ -5732,12 +5962,12 @@ Would you like to bypass this and exit anyway?</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation type="unfinished"/>
</message>
@@ -5827,12 +6057,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5854,111 +6083,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Optag Skærmbillede</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Fuldskærm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Indlæs Fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5981,7 +6211,7 @@ Debug Message: </source>
<translation>Installér</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation type="unfinished"/>
</message>
@@ -5989,7 +6219,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation type="unfinished"/>
@@ -6063,51 +6293,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Spillere</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6637,7 +6872,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation type="unfinished"/>
</message>
@@ -6686,31 +6921,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Skift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[ikke indstillet]</translation>
</message>
@@ -6721,14 +6956,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Akse %1%2</translation>
</message>
@@ -6739,263 +6974,321 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[ukendt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Venstre</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Højre</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>ed</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Op</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[ubrugt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Plus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Minus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Hjem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Optag</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Berøring</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
<translation type="unfinished"/>
</message>
</context>
@@ -7365,26 +7658,26 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7404,20 +7697,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Vælg en bruger:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Brugere</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Profilvælger</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Vælg en bruger:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7463,51 +7817,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation type="unfinished"/>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>ventet af ingen tråde</translation>
</message>
@@ -7515,120 +7838,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>sat på pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>slumrer</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>venter på IPC-svar</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>venter på objekter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>idéel</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>kerne %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>idéel kerne = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>tråd-id = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioritet = %1(aktuel) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation type="unfinished"/>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation type="unfinished"/>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>ventet af tråd</translation>
</message>
@@ -7636,7 +7949,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation type="unfinished"/>
</message>
diff --git a/dist/languages/de.ts b/dist/languages/de.ts
index eae45f337..817f03fb8 100644
--- a/dist/languages/de.ts
+++ b/dist/languages/de.ts
@@ -158,7 +158,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="489"/>
<source>Are you sure you would like to &lt;b&gt;kick&lt;/b&gt; %1?</source>
- <translation type="unfinished"/>
+ <translation>Bist du sicher, dass du %1? &lt;b&gt;kicken&lt;/b&gt; möchtest?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="497"/>
@@ -170,7 +170,8 @@ p, li { white-space: pre-wrap; }
<source>Are you sure you would like to &lt;b&gt;kick and ban&lt;/b&gt; %1?
This would ban both their forum username and their IP address.</source>
- <translation type="unfinished"/>
+ <translation>Bist du sicher, dass du %1? kicken und sperren möchtest?
+Dies würde deren Forum Benutzernamen und deren IP-Adresse sperren.</translation>
</message>
</context>
<context>
@@ -240,12 +241,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;Startet das Spiel?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Ja Das Spiel beginnt mit der Video- oder Audioausgabe</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
@@ -270,12 +271,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Ja Das Spiel funktioniert ohne Abstürze.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Nein Das Spiel funktioniert nicht fehlerfrei. (Stürzt ab oder freezed)</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
@@ -285,12 +286,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Ja Das Spiel kann ohne Workarounds abgeschlossen werden.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Nein Spezielle Bereiche des Spieles können nicht abgeschlossen werden.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
@@ -300,17 +301,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Schwerwiegend  Das Spiel hat schwerwiegende graphische Fehler</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Kleinere Das Spiel hat kleinere graphische Fehler</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Keine  Alles wird genau so gerendert wie es auf der Nintendo Switch aussieht</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
@@ -320,17 +321,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Schwerwiegend Das Spiel hat schwerwiegende Audio Fehler</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Kleinere Das Spiel hat kleinere Audio Fehler</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Keine Audio wird perfekt abgespielt</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
@@ -378,36 +379,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Ausgabegerät</translation>
+ <source>Output Device:</source>
+ <translation>Ausgabegerät:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Eingabegerät</translation>
+ <source>Input Device:</source>
+ <translation>Eingabegerät:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Globale Lautstärke verwenden</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Lautstärke:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Lautstärke:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Audio im Hintergrund stummschalten</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -767,7 +793,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="161"/>
<source>Enable Host MMU Emulation (exclusive memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Aktiviere Host MMU Emulation (exlusive memory instructions).</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="168"/>
@@ -914,102 +940,112 @@ This would ban both their forum username and their IP address.</source>
<translation>Macro-JIT deaktivieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
- <source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Deaktiviert Macro-HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
+ <translation>Wenn ausgewählt wird yuzu Log Statistiken über den kompilierte Pipeline Chache sammeln.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Shader-Feedback aktivieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Debugging</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>FS-Zugriffslog aktivieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Erweitert</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk(Quest)-Modus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>CPU Debugging aktivieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>aktiviere Debug-Meldungen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Auto-Stub** aktivieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Deaktiviere die Web Applikation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Dies wird automatisch beim Schließen von yuzu zurückgesetzt.</translation>
</message>
@@ -1024,12 +1060,12 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzu muss neugestartet werden, damit diese Einstellungen übernommen werden können. </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>Web-Applet nicht kompiliert</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1079,78 +1115,78 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzu-Konfiguration</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Debug</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Dateisystem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Allgemein</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>GraphicsAdvanced</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Hotkeys</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Steuerung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Nutzer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Netzwerk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Spieleliste</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1325,46 +1361,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Schließen des Emulators bestätigen, falls ein Spiel läuft</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Beim Spielstart nach Nutzer fragen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Emulation im Hintergrund pausieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Audio im Hintergrund stummschalten</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Mauszeiger verstecken</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Setze alle Einstellungen zurück</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Hierdurch werden alle Einstellungen zurückgesetzt und alle spielspezifischen Konfigurationen gelöscht. Spiel-Ordner, Profile oder Eingabeprofile werden nicht gelöscht. Fortfahren?</translation>
</message>
@@ -1403,7 +1429,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Keiner</translation>
</message>
@@ -1425,220 +1451,273 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="187"/>
<source>Accelerate ASTC texture decoding</source>
- <translation type="unfinished"/>
+ <translation>Beschleunigt ASTC Texturen Decodierung</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>VSync Modus:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC Emulation:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Keine Videoausgabe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>CPU Video Dekodierung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>GPU Video Dekodierung (Standard)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Vollbild Modus:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Rahmenloses Fenster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Exklusiver Vollbildmodus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Seitenverhältnis:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Standard (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>4:3 erzwingen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>21:9 erzwingen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>Erzwinge 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Auf Fenster anpassen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Auflösung:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EXPERIMENTELL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EXPERIMENTELL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [EXPERIMENTELL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
- <translation type="unfinished"/>
+ <translation>Nächste-Nachbarn</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilinear</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bikubisch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
- <translation type="unfinished"/>
+ <translation>Gaussian</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (nur Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Kantenglättungs-Methode:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Verwende Globale FSR Schärfe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Setze FSR Schärfe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>FSR Schärfe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Globale Hintergrundfarbe verwenden</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Hintergrundfarbe:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Hintergrundfarbe:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Assembly Shaders, Nur NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation>SPIR-V (Experimentell, Nur Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>Aus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>Vsync Aus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>Empfohlen</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>An</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>Vsync An</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1663,77 +1742,133 @@ This would ban both their forum username and their IP address.</source>
<translation>Genauigkeit der Emulation:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync verhindert Screen-Tearing, aber manche Grafikkarten haben eine schlechtere Leistung, wenn es aktiviert ist. Wenn du keinen Unterschied merkst, lasse es aktiviert.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>ASTC Rekompression:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>Unkomprimiert (Beste Qualität)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1 (Niedrige Qualität)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3 (Mittlere Qualität)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>Erlaube Asynchrone Präsentation (Nur Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Lässt im Hintergrund die GPU Aufgaben erledigen während diese auf Grafikbefehle wartet, damit diese nicht herunter taktet.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Erzwinge Maximale Taktrate (Vulkan only)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Aktiviere asynchrone ASTC Texturen Dekodierung, welche möglicherweise Ladezeiten stotter verringert. Diese Funktion ist experimentell</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>VSync verwenden</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Dekodiere ASTC-Texturen asynchron (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Nutze asynchrone Shader-Kompilierung. Dies kann Stottern durch Shader reduzieren. Dieses Feature ist experimentell.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
- <translation type="unfinished"/>
+ <translation>Aktiviere asynchrones Shader Kompilieren. (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
+ <translation>Verwende Schnelle GPU-Zeit (Hack)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Vulkan-Pipeline-Cache verwernden</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anisotrope Filterung:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automatisch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1766,70 +1901,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Standardwerte wiederherstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Aktion</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Hotkey</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Controller-Hotkey</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Tastensequenz bereits belegt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Die eingegebene Sequenz ist bereits vergeben an: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[wartet]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Ungültig</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Standardwerte wiederherstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Löschen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Die Standard-Sequenz ist bereits vergeben an: %1</translation>
</message>
@@ -2121,7 +2251,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Konfigurieren</translation>
</message>
@@ -2147,6 +2277,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Erfordet Neustart von yuzu</translation>
</message>
@@ -2166,22 +2298,42 @@ This would ban both their forum username and their IP address.</source>
<translation>Controller-Navigation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Aktiviere direkten JoyCon-Treiber</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Aktiviere direkten Pro Controller-Treiber [EXPERIMENTELL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>Zufällige Amiibo-ID verwenden</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Maus-Panning aktivieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Maus-Empfindlichkeit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Bewegung / Touch</translation>
</message>
@@ -2246,12 +2398,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Verwende globale Eingabe-Konfiguration</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Profil Spieler %1</translation>
</message>
</context>
<context>
@@ -2293,7 +2445,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Linker Analogstick</translation>
</message>
@@ -2387,14 +2539,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2413,7 +2565,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Plus</translation>
</message>
@@ -2426,15 +2578,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2491,236 +2643,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Rechter Analogstick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Löschen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[nicht belegt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Knopf invertieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Taste umschalten</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Turbo Knopf</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Achsen umkehren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Wert zwischen 0% und 100% wählen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>Kalibriere den Sensor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Analog-Stick festlegen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Nach dem Drücken von OK den Joystick zuerst horizontal, dann vertikal bewegen.
Um die Achsen umzukehren, bewege den Joystick zuerst vertikal und dann horizontal.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Achse zentrieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Deadzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Modifikator-Radius: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Zwei Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Linker Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Rechter Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Handheld</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube-Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke-Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>NES Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>SNES Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>N64 Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Start / Pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Analog Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Schütteln!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[wartet]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Neues Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Profilnamen eingeben:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Eingabeprofil erstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Angegebener Profilname ist nicht gültig!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Erstellen des Eingabeprofils &quot;%1&quot; ist fehlgeschlagen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Eingabeprofil löschen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Löschen des Eingabeprofils &quot;%1&quot; ist fehlgeschlagen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Eingabeprofil laden</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Laden des Eingabeprofils &quot;%1&quot; ist fehlgeschlagen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Eingabeprofil speichern</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Speichern des Eingabeprofils &quot;%1&quot; ist fehlgeschlagen</translation>
</message>
@@ -2768,7 +2931,7 @@ Um die Achsen umzukehren, bewege den Joystick zuerst vertikal und dann horizonta
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Einrichtung</translation>
</message>
@@ -2804,7 +2967,7 @@ Um die Achsen umzukehren, bewege den Joystick zuerst vertikal und dann horizonta
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Testen</translation>
</message>
@@ -2824,77 +2987,77 @@ Um die Achsen umzukehren, bewege den Joystick zuerst vertikal und dann horizonta
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Mehr erfahren&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Port-Nummer hat ungültige Zeichen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Port muss zwischen 0 und 65353 liegen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP Adresse ist ungültig</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Dieser UDP-Server existiert bereits</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Es können nicht mehr als 8 Server hinzugefügt werden</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Einrichten</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test erfolgreich</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Daten wurden erfolgreich vom Server empfangen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test fehlgeschlagen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Konnte keine Daten vom Server empfangen.&lt;br&gt;Prüfe bitte, dass der Server korrekt eingerichtet wurde und dass Adresse und Port korrekt sind.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP-Test oder Kalibration wird gerade durchgeführt.&lt;br&gt;Bitte warte einen Moment.</translation>
</message>
@@ -2975,47 +3138,47 @@ Um die Achsen umzukehren, bewege den Joystick zuerst vertikal und dann horizonta
<translation>Entwickler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Add-Ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Allgemeines</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Erw. Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation>Eingabe-Profile</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Einstellungen</translation>
</message>
@@ -3222,7 +3385,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3243,33 +3406,90 @@ UUID: %2</source>
<translation>Deadzone: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Direkter Joycon-Treiber</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Ring-Eingabe aktivieren</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Aktiviere</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Nicht verbunden</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Standardwerte wiederherstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Löschen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[nicht belegt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Achsen umkehren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Deadzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Direkter JoyCon-Treiber ist nicht aktiviert</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Einrichten</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[wartet]</translation>
</message>
@@ -3574,8 +3794,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Englisch</translation>
+ <source>American English</source>
+ <translation>Amerikanisches Englisch</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3675,57 +3895,22 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
+ <translation>Gerätename</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>Unsicheres erweitertes Speicherlayout (8GB DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Konsolen ID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Soundausgabe</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Neu generieren</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Die Systemeinstellungen sind nur verfügbar, wenn kein Spiel aktiv ist.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Dieser Vorgang wird deine momentane &quot;virtuelle Switch&quot; mit einer Neuen ersetzen. Deine momentane &quot;virtuelle Switch&quot; wird nicht wiederherstellbar sein. Dies könnte einige unerwartete Effekte in manchen Spielen mit sich bringen. Zudem könnte der Prozess fehlschlagen, wenn zu alte Daten verwendet werden. Möchtest du den Vorgang fortsetzen?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Warnung</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Konsolen ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3794,9 +3979,9 @@ UUID: %2</source>
<translation>TAS-Konfiguration</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
- <translation type="unfinished"/>
+ <translation>TAS-Lade-Verzeichnis auswählen...</translation>
</message>
</context>
<context>
@@ -4350,7 +4535,7 @@ Ziehe die Punkte mit deiner Maus, um ihre Position zu ändern. Doppelklicke auf
<translation>Controller P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Controller P1</translation>
</message>
@@ -4363,42 +4548,37 @@ Ziehe die Punkte mit deiner Maus, um ihre Position zu ändern. Doppelklicke auf
<translation>Direkt verbinden</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IP-Addresse</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Serveradresse</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 Addresse des Hosts&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Port</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Nickname</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Passwort</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Verbinden</translation>
</message>
@@ -4406,12 +4586,12 @@ Ziehe die Punkte mit deiner Maus, um ihre Position zu ändern. Doppelklicke auf
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Verbinde</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Verbinden</translation>
</message>
@@ -4419,534 +4599,559 @@ Ziehe die Punkte mit deiner Maus, um ihre Position zu ändern. Doppelklicke auf
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonyme Daten werden gesammelt,&lt;/a&gt; um yuzu zu verbessern.&lt;br/&gt;&lt;br/&gt;Möchstest du deine Nutzungsdaten mit uns teilen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetrie</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>Defekte Vulkan-Installation erkannt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Lade Web-Applet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Deaktiviere die Web Applikation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Wie viele Shader im Moment kompiliert werden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Derzeitige Emulations-Geschwindigkeit. Werte höher oder niedriger als 100% zeigen, dass die Emulation scheller oder langsamer läuft als auf einer Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Wie viele Bilder pro Sekunde angezeigt werden variiert von Spiel zu Spiel und von Szene zu Szene. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Zeit, die gebraucht wurde, um einen Switch-Frame zu emulieren, ohne Framelimit oder V-Sync. Für eine Emulation bei voller Geschwindigkeit sollte dieser Wert bei höchstens 16.67ms liegen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Zuletzt geladene Dateien leeren</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Emulierte Maus ist aktiviert</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Fortsetzen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu betreibt ein Speil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Warnung veraltetes Spielformat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Du nutzt eine entpackte ROM-Ordnerstruktur für dieses Spiel, welches ein veraltetes Format ist und von anderen Formaten wie NCA, NAX, XCI oder NSP überholt wurde. Entpackte ROM-Ordner unterstützen keine Icons, Metadaten oder Updates.&lt;br&gt;&lt;br&gt;&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;Unser Wiki&lt;/a&gt; enthält eine Erklärung der verschiedenen Formate, die yuzu unterstützt. Diese Nachricht wird nicht noch einmal angezeigt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>ROM konnte nicht geladen werden!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>ROM-Format wird nicht unterstützt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Beim Initialisieren des Video-Kerns ist ein Fehler aufgetreten.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>ROM konnte nicht geladen werden! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Bitte folge der &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu-Schnellstart-Anleitung&lt;/a&gt; um deine Dateien zu extrahieren.&lt;br&gt;Hilfe findest du im yuzu-Wiki&lt;/a&gt; oder dem yuzu-Discord&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Ein unbekannter Fehler ist aufgetreten. Bitte prüfe die Log-Dateien auf mögliche Fehlermeldungen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-Bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-Bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation>Schließe Software...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Speicherdaten</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod-Daten</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Konnte Verzeichnis %1 nicht öffnen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Verzeichnis existiert nicht!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Fehler beim Öffnen des transferierbaren Shader-Caches</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
- <translation type="unfinished"/>
+ <translation>Fehler beim erstellen des Shader-Cache-Ordner für den ausgewählten Titel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>Fehler beim Entfernen des Inhalts</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>Fehler beim Entfernen des Updates</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>Fehler beim Entfernen des DLCs</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>Installierten Spiele-Content entfernen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>Installierte Spiele-Updates entfernen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>Installierte Spiele-DLCs entfernen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Eintrag entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Erfolgreich entfernt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Das Spiel wurde entfernt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Das Spiel ist nicht im NAND installiert und kann somit nicht entfernt werden.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Das Update wurde entfernt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Es ist kein Update für diesen Titel installiert.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Es sind keine DLC für diesen Titel installiert.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>%1 DLC entfernt. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Transferierbaren OpenGL Shader Cache löschen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Transferierbaren Vulkan Shader Cache löschen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Alle transferierbaren Shader Caches löschen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Spiel-Einstellungen entfernen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation>Cache-Speicher entfernen?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Datei entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Fehler beim Entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Es existiert kein Shader-Cache für diesen Titel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Der transferierbare Shader-Cache wurde entfernt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Konnte den transferierbaren Shader-Cache nicht entfernen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Fehler beim Entfernen des Vulkan-Pipeline-Cache</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Fehler beim Entfernen des Driver-Pipeline-Cache</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Fehler beim Entfernen der transferierbaren Shader Caches</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Fehler beim Entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Es existieren keine Spiel-Einstellungen für dieses Spiel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Die Spiel-Einstellungen wurden entfernt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Die Spiel-Einstellungen konnten nicht entfernt werden.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>RomFS-Extraktion fehlgeschlagen!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Das RomFS konnte wegen eines Fehlers oder Abbruchs nicht kopiert werden.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Komplett</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Nur Ordnerstruktur</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>RomFS Extraktions-Modus auswählen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Bitte wähle, wie das RomFS gespeichert werden soll.&lt;br&gt;&quot;Full&quot; wird alle Dateien des Spiels extrahieren, während &lt;br&gt;&quot;Skeleton&quot; nur die Ordnerstruktur erstellt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
- <translation type="unfinished"/>
+ <translation>Es ist nicht genügend Speicher (%1) vorhanden um das RomFS zu entpacken. Bitte sorge für genügend Speicherplatze oder wähle ein anderes Verzeichnis aus. (Emulation &gt; Konfiguration &gt; System &gt; Dateisystem &gt; Dump Root)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>RomFS wird extrahiert...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Abbrechen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS wurde extrahiert!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Der Vorgang wurde erfolgreich abgeschlossen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation>Verknüpfung erstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Icon erstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Fehler beim Öffnen von %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Verzeichnis auswählen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Einstellungen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Spiel-Einstellungen konnten nicht geladen werden.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch-Programme (%1);;Alle Dateien (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Datei laden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Öffne das extrahierte ROM-Verzeichnis</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Ungültiges Verzeichnis ausgewählt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Das Verzeichnis, das du ausgewählt hast, enthält keine &apos;main&apos;-Datei.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Installierbares Switch-Programm (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submissions Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Dateien installieren</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n Datei verbleibend</numerusform><numerusform>%n Dateien verbleibend</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Datei &quot;%1&quot; wird installiert...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>NAND-Installation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Um Konflikte zu vermeiden, raten wir Nutzern davon ab, Spiele im NAND zu installieren.
Bitte nutze diese Funktion nur zum Installieren von Updates und DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n file was newly installed
@@ -4954,389 +5159,400 @@ Bitte nutze diese Funktion nur zum Installieren von Updates und DLC.</translatio
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Systemanwendung</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Systemarchiv</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Systemanwendungsupdate</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Firmware-Paket (Typ A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Firmware-Paket (Typ B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Spiel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Spiel-Update</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Spiel-DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta-Titel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Wähle den NCA-Installationstyp aus...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Bitte wähle, als was diese NCA installiert werden soll:
(In den meisten Fällen sollte die Standardeinstellung &apos;Spiel&apos; ausreichen.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Installation fehlgeschlagen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Der Titel-Typ, den du für diese NCA ausgewählt hast, ist ungültig.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Datei nicht gefunden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Datei &quot;%1&quot; nicht gefunden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>Hardwareanforderungen nicht erfüllt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation type="unfinished"/>
+ <translation>Dein System erfüllt nicht die empfohlenen Mindestanforderungen der Hardware. Meldung der Komptabilität wurde deaktiviert.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Fehlender yuzu-Account</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Um einen Kompatibilitätsbericht abzuschicken, musst du einen yuzu-Account mit yuzu verbinden.&lt;br&gt;&lt;br/&gt;Um einen yuzu-Account zu verbinden, prüfe die Einstellungen unter Emulation &amp;gt; Konfiguration &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Fehler beim Öffnen der URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>URL &quot;%1&quot; kann nicht geöffnet werden.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>TAS Aufnahme</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Datei von Spieler 1 überschreiben?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Ungültige Konfiguration erkannt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Handheld-Controller können nicht im Dock verwendet werden. Der Pro-Controller wird verwendet.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>Das aktuelle Amiibo wurde entfernt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Fehler</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>Das aktuelle Spiel sucht nicht nach Amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo-Datei (%1);; Alle Dateien (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Amiibo laden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Fehler beim Laden der Amiibo-Daten</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>Die ausgewählte Datei ist keine gültige Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>Die ausgewählte Datei wird bereits verwendet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>Ein unbekannter Fehler ist aufgetreten</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Screenshot aufnehmen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG Bild (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>TAS Zustand: Läuft %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>TAS Zustand: Aufnahme %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>TAS Zustand: Ungültig</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Skalierung: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Geschwindigkeit: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Geschwindigkeit: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Spiel: %1 FPS (Unbegrenzt)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Spiel: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Frame: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU HOCH</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTREM</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU FEHLER</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>DOCKED</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>HANDHELD</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>NÄCHSTER</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BIKUBISCH</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
- <translation type="unfinished"/>
+ <translation>KEIN AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>LAUTSTÄRKE: STUMM</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>LAUTSTÄRKE: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Schlüsselableitung bestätigen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5349,37 +5565,37 @@ This will delete your autogenerated key files and re-run the key derivation modu
Dieser Prozess wird die generierten Schlüsseldateien löschen und die Schlüsselableitung neu starten.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Fuses fehlen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation> - BOOT0 fehlt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - BCPKG2-1-Normal-Main fehlt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - PRODINFO fehlt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Derivationskomponenten fehlen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5387,39 +5603,49 @@ on your system&apos;s performance.</source>
Dies könnte, je nach Leistung deines Systems, bis zu einer Minute dauern.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Schlüsselableitung</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>RomFS wählen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Wähle, welches RomFS du speichern möchtest.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Bist du sicher, dass du yuzu beenden willst?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Bist du sicher, dass du die Emulation stoppen willst? Jeder nicht gespeicherte Fortschritt geht verloren.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5431,44 +5657,44 @@ Möchtest du dies umgehen und sie trotzdem beenden?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL nicht verfügbar!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu wurde nicht mit OpenGL-Unterstützung kompiliert.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Fehler beim Initialisieren von OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Deine Grafikkarte unterstützt kein OpenGL oder du hast nicht den neusten Treiber installiert.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Fehler beim Initialisieren von OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Deine Grafikkarte unterstützt OpenGL 4.6 nicht, oder du benutzt nicht die neuste Treiberversion.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>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.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Nicht unterstützte Erweiterungen:&lt;br&gt;%2</translation>
</message>
@@ -5527,117 +5753,122 @@ Möchtest du dies umgehen und sie trotzdem beenden?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation>Cache-Speicher entfernen</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>OpenGL-Pipeline-Cache entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Vulkan-Pipeline-Cache entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Alle Pipeline-Caches entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Alle installierten Inhalte entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>RomFS speichern</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
- <translation type="unfinished"/>
+ <translation>RomFS nach SDMC dumpen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Title-ID in die Zwischenablage kopieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>GameDB-Eintrag öffnen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation>Verknüpfung erstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Zum Desktop hinzufügen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Eigenschaften</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Unterordner scannen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Spieleverzeichnis entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Nach Oben</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Nach Unten</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Verzeichnis öffnen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Löschen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Name</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Kompatibilität</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Add-ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Dateityp</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Größe</translation>
</message>
@@ -5647,7 +5878,7 @@ Möchtest du dies umgehen und sie trotzdem beenden?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Ingame</source>
- <translation type="unfinished"/>
+ <translation>Im Spiel</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
@@ -5708,7 +5939,7 @@ Möchtest du dies umgehen und sie trotzdem beenden?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Doppelklicke, um einen neuen Ordner zur Spieleliste hinzuzufügen.</translation>
</message>
@@ -5721,12 +5952,12 @@ Möchtest du dies umgehen und sie trotzdem beenden?</translation>
<translation><numerusform>%1 von %n Ergebnis</numerusform><numerusform>%1 von %n Ergebnisse</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Wörter zum Filtern eingeben</translation>
</message>
@@ -5816,12 +6047,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
- <translation type="unfinished"/>
+ <translation>Audio aktivieren / deaktivieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5843,111 +6073,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>Hauptfenster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>Lautstärke verringern</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>Lautstärke erhöhen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Screenshot aufnehmen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>Adaptiven Filter ändern</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>GPU-Genauigkeit ändern</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Emulation fortsetzen/pausieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Vollbild verlassen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>yuzu verlassen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Vollbild</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Datei laden</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Amiibo laden/entfernen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Emulation neustarten</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Emulation stoppen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>TAS aufnehmen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>TAS neustarten</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>TAS starten/stoppen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
- <translation type="unfinished"/>
+ <translation>Aktiviere Bildraten Limitierung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5970,7 +6201,7 @@ Debug Message: </source>
<translation>Installieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Dateien im NAND installieren</translation>
</message>
@@ -5978,10 +6209,10 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
- <translation type="unfinished"/>
+ <translation>Der Text darf keines der folgenden Zeichen enthalten: %1</translation>
</message>
</context>
<context>
@@ -6052,51 +6283,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Leere Räume verbergen</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Volle Räume verbergen</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Lobby aktualisieren</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Passwort zum Joinen benötigt</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Passwort:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Spieler</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Raumname</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Bevorzugtes Spiel</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Host</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Aktualisiere</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Liste aktualisieren</translation>
</message>
@@ -6485,7 +6721,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="24"/>
<source>Unable to find an internet connection. Check your internet settings.</source>
- <translation type="unfinished"/>
+ <translation>Es konnte keine Internetverbindung hergestellt werden. Überprüfe deine Interneteinstellungen.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="26"/>
@@ -6505,7 +6741,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="34"/>
<source>The host of the room has banned you. Speak with the host to unban you or try a different room.</source>
- <translation type="unfinished"/>
+ <translation>Der Ersteller des Raumes hat dich gebannt. Wende dich an den Ersteller, um den Bann aufzuheben oder probiere einen anderen Raum aus.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="37"/>
@@ -6564,7 +6800,7 @@ Please go to Configure -&gt; System -&gt; Network and make a selection.</source>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="69"/>
<source>Joining a room when the game is already running is discouraged and can cause the room feature not to work correctly.
Proceed anyway?</source>
- <translation type="unfinished"/>
+ <translation>Einen Raum beizutreten während das Spiel bereits läuft wird nicht empfohlen und könnte zu Problemen mit dem Raum führen. Trotzdem fortfahren?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="75"/>
@@ -6574,7 +6810,7 @@ Proceed anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="76"/>
<source>You are about to close the room. Any network connections will be closed.</source>
- <translation type="unfinished"/>
+ <translation>Du bist dabei den Raum zu schließen. Jede Verbindung zum Netzwerk wird geschlossen.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="81"/>
@@ -6584,7 +6820,7 @@ Proceed anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="82"/>
<source>You are about to leave the room. Any network connections will be closed.</source>
- <translation type="unfinished"/>
+ <translation>Du bist dabei den Raum zu verlassen. Jede Verbindung zum Netzwerk wird geschlossen.</translation>
</message>
</context>
<context>
@@ -6631,7 +6867,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>START/PAUSE</translation>
</message>
@@ -6680,31 +6916,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Strg</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[nicht gesetzt]</translation>
</message>
@@ -6715,14 +6951,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Achse %1%2</translation>
</message>
@@ -6733,264 +6969,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[unbekannt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Links</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Rechts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Runter</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Hoch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Kreis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Kreuz</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Quadrat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Dreieck</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Teilen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Optionen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[undefiniert]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[ungültig]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Achse %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Achse %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Bewegung %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Knopf %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[unbenutzt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Stick L</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Stick R</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Plus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Minus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Screenshot</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Touch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Mausrad</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Rückwärts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Vorwärts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Aufgabe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7038,7 +7332,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="290"/>
<source>Creation Date</source>
- <translation type="unfinished"/>
+ <translation>Erstellungsdatum</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="307"/>
@@ -7048,7 +7342,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="314"/>
<source>Modification Date</source>
- <translation type="unfinished"/>
+ <translation>Modifizierungsdatum</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="331"/>
@@ -7058,12 +7352,12 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="349"/>
<source>Game Data</source>
- <translation type="unfinished"/>
+ <translation>Spieldaten</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="355"/>
<source>Game Id</source>
- <translation type="unfinished"/>
+ <translation>Spiel ID</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="384"/>
@@ -7083,7 +7377,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="191"/>
<source>No game data present</source>
- <translation type="unfinished"/>
+ <translation>Keine Spieldaten vorhanden</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="231"/>
@@ -7093,12 +7387,12 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="234"/>
<source>The following game data will removed:</source>
- <translation type="unfinished"/>
+ <translation>Die folgenden Spieldaten werden entfernt:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="237"/>
<source>Set nickname and owner:</source>
- <translation type="unfinished"/>
+ <translation>Spitzname und Besitzer festlegen:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="240"/>
@@ -7359,28 +7653,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Fehlercode: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Ein Fehler ist aufgetreten.
Bitte versuche es noch einmal oder kontaktiere den Entwickler der Software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Ein Fehler ist in %1 bei %2 aufgetreten.
Bitte versuche es noch einmal oder kontaktiere den Entwickler der Software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7404,20 +7698,81 @@ Bitte versuche es noch einmal oder kontaktiere den Entwickler der Software.</tra
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Wähle einen Benutzer aus:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Nutzer</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Profil Ersteller</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Profilauswahl</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Profil-Icon Editor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Profil-Spitzname Editor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>Wer wird die Punkte erhalten?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>Wer verwendet den Nintendo eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>Wer macht den Einkauf?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>Wer postet?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Wähle einen Nutzer aus, den du mit dem Nintendo Account verknüpfen willst.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>Für welchen Nutzer sollen die Einstellungen geändert werden?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>Daten für welchen Nutzer formatieren?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>Welcher Nutzer wird auf eine andere Konsole übertragen?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Wähle einen Benutzer aus:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7467,51 +7822,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Stack aufrufen</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>Warten auf Mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>has waiters: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>owner handle: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>Warten auf alle Objekte</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>Warten auf eines der folgenden Objekte</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>von keinem Thread pausiert</translation>
</message>
@@ -7519,120 +7843,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>lauffähig</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>pausiert</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>schläft</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>Warten auf IPC-Antwort</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>Warten auf Objekte</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>wartet auf condition variable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>Warten auf den Adressarbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>warten auf Fortsetzen nach Unterbrechung</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>warten</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>initialisiert</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>beendet</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>unbekannt</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation>PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>Kern %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>Prozessor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>ideal core = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>Affinitätsmaske = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>Thread-ID = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>Priorität = %1(aktuell) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>Letzte laufende Ticks = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>nicht auf Mutex warten</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>gewartet von Thread</translation>
</message>
@@ -7640,7 +7954,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Wait Tree</translation>
</message>
diff --git a/dist/languages/el.ts b/dist/languages/el.ts
index 09e3ff297..2d16da565 100644
--- a/dist/languages/el.ts
+++ b/dist/languages/el.ts
@@ -25,7 +25,13 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;yuzu is an experimental open-source emulator for the Nintendo Switch licensed under GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;This software should not be used to play games you have not legally obtained.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Το yuzu είναι ένας πειραματικός εξομοιωτής ανοιχτού κώδικα για το Nintendo Switch κάτω από την άδεια χρήσης GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&apos;MS Shell Dlg 2&apos;; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Αυτό το λογισμικό δεν πρέπει να χρησιμοποιείται για την αναπαραγωγή παιχνιδιών που δεν έχετε αποκτήσει νόμιμα.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="130"/>
@@ -35,7 +41,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="146"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:7pt;&quot;&gt;&amp;quot;Nintendo Switch&amp;quot; is a trademark of Nintendo. yuzu is not affiliated with Nintendo in any way.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:7pt;&quot;&gt;Το &amp;quot;Nintendo Switch&amp;quot; είναι ένα εμπορικό σήμα της Nintendo. Ο yuzu δε συνδέεται με την Nintendo με κανέναν τρόπο.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:7pt;&quot;&gt;Το &amp;quot;Nintendo Switch&amp;quot; είναι ένα εμπορικό σήμα της Nintendo. Το yuzu δεν συνδέεται με την Nintendo με κανέναν τρόπο.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
</context>
<context>
@@ -68,7 +74,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="57"/>
<source>OK</source>
- <translation>OK</translation>
+ <translation>Εντάξει</translation>
</message>
</context>
<context>
@@ -76,95 +82,97 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Παράθυρο Δωματίου</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="40"/>
<source>Send Chat Message</source>
- <translation type="unfinished"/>
+ <translation>Αποστολή Μηνύματος Συνομιλίας</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="47"/>
<source>Send Message</source>
- <translation type="unfinished"/>
+ <translation>Αποστολή Μηνύματος</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="181"/>
<source>Members</source>
- <translation type="unfinished"/>
+ <translation>Μέλη</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="318"/>
<source>%1 has joined</source>
- <translation type="unfinished"/>
+ <translation>Ο %1 έχει συνδεθεί</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="321"/>
<source>%1 has left</source>
- <translation type="unfinished"/>
+ <translation>Ο %1 αποχώρησε</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="324"/>
<source>%1 has been kicked</source>
- <translation type="unfinished"/>
+ <translation>Ο %1 έχει διωχθεί</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="327"/>
<source>%1 has been banned</source>
- <translation type="unfinished"/>
+ <translation>Ο %1 έχει αποκλειστεί</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="330"/>
<source>%1 has been unbanned</source>
- <translation type="unfinished"/>
+ <translation>Ο %1 έχει καταργηθεί από τους αποκλεισμένους</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="446"/>
<source>View Profile</source>
- <translation type="unfinished"/>
+ <translation>Εμφάνιση Προφίλ</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="459"/>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="469"/>
<source>Block Player</source>
- <translation type="unfinished"/>
+ <translation>Αποκλεισμός Παίχτη</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="470"/>
<source>When you block a player, you will no longer receive chat messages from them.&lt;br&gt;&lt;br&gt;Are you sure you would like to block %1?</source>
- <translation type="unfinished"/>
+ <translation>Όταν αποκλείετε έναν παίκτη, δεν θα λαμβάνετε πλέον μηνύματα συνομιλίας από αυτόν. Είστε βέβαιοι ότι θέλετε να αποκλείσετε τον %1;</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="483"/>
<source>Kick</source>
- <translation type="unfinished"/>
+ <translation>Διώξιμο</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="484"/>
<source>Ban</source>
- <translation type="unfinished"/>
+ <translation>Αποκλεισμός</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="488"/>
<source>Kick Player</source>
- <translation type="unfinished"/>
+ <translation>Διώξιμο Παίχτη</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="489"/>
<source>Are you sure you would like to &lt;b&gt;kick&lt;/b&gt; %1?</source>
- <translation type="unfinished"/>
+ <translation>Είστε βέβαιοι ότι θέλετε να &lt;b&gt;διώξετε&lt;/b&gt; τον %1;</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="497"/>
<source>Ban Player</source>
- <translation type="unfinished"/>
+ <translation>Αποκλεισμός Παίκτη</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="498"/>
<source>Are you sure you would like to &lt;b&gt;kick and ban&lt;/b&gt; %1?
This would ban both their forum username and their IP address.</source>
- <translation type="unfinished"/>
+ <translation>Είστε βέβαιοι ότι θέλετε να &lt;b&gt;διώξετε και να αποκλείσετε&lt;/b&gt; τον %1;
+
+Αυτό θα απαγόρευε τόσο το όνομα χρήστη του φόρουμ όσο και τη διεύθυνση IP τους.</translation>
</message>
</context>
<context>
@@ -172,12 +180,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Παράθυρο Δωματίου</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="27"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Περιγραφή Δωματίου</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="47"/>
@@ -187,7 +195,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="57"/>
<source>Leave Room</source>
- <translation>Αποχωρήσει από το δωμάτιο</translation>
+ <translation>Αποχώρηση Δωματίου</translation>
</message>
</context>
<context>
@@ -200,7 +208,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="87"/>
<source>Disconnected</source>
- <translation type="unfinished"/>
+ <translation>Αποσυνδεμένο</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
@@ -213,7 +221,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="20"/>
<source>Report Compatibility</source>
- <translation>Αναφορά συμβατότητας</translation>
+ <translation>Αναφορά Συμβατότητας</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="27"/>
@@ -224,12 +232,12 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/compatdb.ui" line="271"/>
<location filename="../../src/yuzu/compatdb.ui" line="330"/>
<source>Report Game Compatibility</source>
- <translation>Αναφορά συμβατότητας παιχνιδιού</translation>
+ <translation>Αναφορά Συμβατότητας Παιχνιδιού</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="36"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Should you choose to submit a test case to the &lt;/span&gt;&lt;a href=&quot;https://yuzu-emu.org/game/&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;yuzu Compatibility List&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, The following information will be collected and displayed on the site:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Hardware Information (CPU / GPU / Operating System)&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Which version of yuzu you are running&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;The connected yuzu account&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Αν επιλέξετε να υποβάλλετε μια υπόθεση για τεστ στη &lt;/span&gt;&lt;a href=&quot;https://yuzu-emu.org/game/&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;Λίστα Συμβατότητας του yuzu&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, Οι ακόλουθες πληροφορίες θα μαζευτούν και θα προβληθούν στο site:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Πληροφορίες Υλικού (CPU / GPU / Λειτουργικό Σύστημα)&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Ποιά έκδοση του yuzu τρέχετε &lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Τον συνδεδεμένο λογαριασμό yuzu&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Εάν επιλέξετε να υποβάλετε μια υπόθεση δοκιμής στη &lt;/span&gt;&lt;a href=&quot;https://yuzu-emu.org/game/&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;Λίστα Συμβατότητας του yuzu&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, Οι ακόλουθες πληροφορίες θα συλλεχθούν και θα προβληθούν στον ιστότοπο:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Πληροφορίες Υλικού (CPU / GPU / Λειτουργικό Σύστημα)&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Ποιά έκδοση του yuzu τρέχετε &lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Τον συνδεδεμένο λογαριασμό yuzu&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
@@ -372,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
+ <source>Output Device:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Συσκευή Εισόδου</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Μονοφωνικό</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Στέρεοφωνικό</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Χρήση καθολικής έντασης ήχου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Ένταση ήχου:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Ένταση:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Σίγαση ήχου όταν βρίσκεται στο παρασκήνιο</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -918,102 +951,112 @@ This would ban both their forum username and their IP address.</source>
<translation>Απενεργοποίηση του Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Ενεργοποίηση Shader Feedback</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Όταν είναι επιλεγμένο, εκτελεί shaders χωρίς αλλαγές στη λογική του βρόχου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Απενεργοποίηση των ελέγχων ασφαλείας βρόχου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Εντοπισμός Σφαλμάτων</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>Δημιουργία Minidump μετά από κατάρρευση</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Προχωρημένα</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Ενεργοποίηση Εντοπισμού Σφαλμάτων CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Ενεργοποίηση Βεβαιώσεων Εντοπισμού Σφαλμάτων</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Ενεργοποίηση Auto-Stub**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>Επιτρέπει στο yuzu να ελέγχει για ένα λειτουργικό περιβάλλον Vulkan κατά την εκκίνηση του προγράμματος. Απενεργοποιήστε το αν αυτό προκαλεί προβλήματα με τα εξωτερικά προγράμματα που βλέπουν το yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>Εκτέλεση ελέγχου Vulkan κατά την εκκίνηση</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Αυτό θα μηδενιστεί αυτόματα όταν το yuzu κλείσει.</translation>
</message>
@@ -1028,12 +1071,12 @@ This would ban both their forum username and their IP address.</source>
<translation>το yuzu πρέπει να επανεκκινηθεί για να εφαρμοστεί αυτή η ρύθμιση.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Το web applet δεν έχει συσταθεί</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>Δημιουργία MiniDump που δεν έχει συσταθεί</translation>
</message>
@@ -1083,78 +1126,78 @@ This would ban both their forum username and their IP address.</source>
<translation>Διαμόρφωση yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Ήχος</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Αποσφαλμάτωση</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Σύστημα Αρχείων</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Γενικά</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Γραφικά</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Πλήκτρα Συντόμευσης</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Χειρισμός</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Τα προφίλ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Δίκτυο</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Σύστημα</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Λίστα Παιχνιδιών</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Ιστός</translation>
</message>
@@ -1329,46 +1372,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Διάταξη εκτεταμένης μνήμης (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Επιβεβαίωση εξόδου κατά την εκτέλεση εξομοίωσης</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Επιλογή χρήστη κατά την εκκίνηση παιχνιδιού</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Παύση εξομοίωσης όταν βρίσκεται στο παρασκήνιο</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Σίγαση ήχου όταν βρίσκεται στο παρασκήνιο</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Απόκρυψη δρομέα ποντικιού στην αδράνεια</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Επαναφορά Όλων των Ρυθμίσεων</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Επαναφέρει όλες τις ρυθμίσεις και καταργεί όλες τις επιλογές ανά παιχνίδι. Δεν θα διαγράψει καταλόγους παιχνιδιών, προφίλ ή προφίλ εισόδου. Συνέχιση;</translation>
</message>
@@ -1407,7 +1440,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Κανένα</translation>
</message>
@@ -1433,216 +1466,269 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Εξομοίωση NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Χωρίς Έξοδο Βίντεο</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Αποκωδικοποίηση Βίντεο CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Αποκωδικοποίηση Βίντεο GPU (Προεπιλογή)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Λειτουργία Πλήρους Οθόνης:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Παραθυροποιημένο Χωρίς Όρια</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Αποκλειστική Πλήρης Οθόνη</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Αναλογία Απεικόνισης:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Προεπιλογή (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Επιβολή 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Επιβολή 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>Επιβολή 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Επέκταση στο Παράθυρο</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Ανάλυση:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [ΠΕΙΡΑΜΑΤΙΚΟ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [ΠΕΙΡΑΜΑΤΙΚΟ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Φίλτρο Προσαρμογής Παραθύρου:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Πλησιέστερος Γείτονας</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Διγραμμικό</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Δικυβικό</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussian</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (μόνο Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Μέθοδος Anti-Aliasing:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Χρησιμοποιήστε καθολικό χρώμα φόντου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Ορισμός χρώματος φόντου:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Χρώμα Φόντου:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Shaders Γλώσσας Μηχανής, μόνο NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1667,77 +1753,133 @@ This would ban both their forum username and their IP address.</source>
<translation>Επίπεδο Ακρίβειας:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>Το VSync αποτρέπει το &quot;σκίσιμο&quot; της οθόνης, αλλά ορισμένες κάρτες γραφικών έχουν χαμηλότερη απόδοση με ενεργοποιημένο το VSync. Διατηρήστε το ενεργοποιημένο εάν δεν παρατηρείτε διαφορά απόδοσης.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Χρήση VSync</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Ενεργοποιεί τη σύνταξη ασύγχρονων shader, η οποία μπορεί να μειώσει το shader stutter. Αυτή η δυνατότητα είναι πειραματική.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Χρήση ασύγχρονης σύνταξης σκίασης (Τέχνασμα)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Ενεργοποιεί τον Γοργό Ρυθμό GPU. Αυτή η επιλογή θα αναγκάσει τα περισσότερα παιχνίδια να εκτελούνται στην υψηλότερη εγγενή τους ανάλυση.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Χρήση Γοργού Ρυθμού GPU (Τέχνασμα)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>Ενεργοποιεί περιστασιακές εκκαθαρίσεις των ρυθμιστικών διαύλων. Αυτή η επιλογή θα αναγκάσει τους μη τροποποιημένους ρυθμιστικούς διαύλους να εκκαθαριστούν, πράγμα που μπορεί να κοστίσει σε απόδοση.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>Χρήση περιστασιακών εκκαθαρίσεων ρυθμιστικού διαύλου (Hack)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Ανισοτροπικό Φιλτράρισμα:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Αυτόματα</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Προεπιλεγμένο</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1770,70 +1912,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Επαναφορά Προεπιλογών</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Δράση</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Πλήκτρο Συντόμευσης</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Πλήκτρο Συντόμευσης Χειριστηρίου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Αντικρουόμενη Ακολουθία Πλήκτρων</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Η εισαγόμενη ακολουθία πλήκτρων έχει ήδη αντιστοιχιστεί στο: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[αναμονή]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Μη Έγκυρο</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Επαναφορά Προκαθορισμένων</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Καθαρισμός</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Αντικρουόμενη Ακολουθία Κουμπιών</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>Η προεπιλεγμένη ακολουθία κουμπιών έχει ήδη αντιστοιχιστεί στο: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Η προεπιλεγμένη ακολουθία πλήκτρων έχει ήδη αντιστοιχιστεί στο: %1</translation>
</message>
@@ -2125,7 +2262,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Διαμόρφωση</translation>
</message>
@@ -2151,6 +2288,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Απαιτεί επανεκκίνηση του yuzu</translation>
</message>
@@ -2170,22 +2309,42 @@ This would ban both their forum username and their IP address.</source>
<translation>Πλοήγηση χειριστηρίου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Ενεργοποιήστε τη μετατόπιση του ποντικιού</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Ευαισθησία ποντικιού</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation type="unfinished"/>
</message>
@@ -2297,7 +2456,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Αριστερό Stick</translation>
</message>
@@ -2391,14 +2550,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2417,7 +2576,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Συν</translation>
</message>
@@ -2430,15 +2589,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2495,236 +2654,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Δεξιός Μοχλός</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Καθαρισμός</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[άδειο]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Κουμπί αντιστροφής</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Κουμπί εναλλαγής</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Αντιστροφή άξονα</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Ορισμός ορίου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Επιλέξτε μια τιμή μεταξύ 0% και 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>Εναλλαγή αξόνων</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Ρύθμιση κατωφλίου γυροσκοπίου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Χαρτογράφηση Αναλογικού Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Αφού πατήσετε OK, μετακινήστε πρώτα το joystick σας οριζόντια και μετά κατακόρυφα.
Για να αντιστρέψετε τους άξονες, μετακινήστε πρώτα το joystick κατακόρυφα και μετά οριζόντια.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Κεντρικός άξονας</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Νεκρή Ζώνη: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Εύρος Τροποποιητή: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Διπλά Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Αριστερό Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Δεξί Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Handheld</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Χειριστήριο GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Χειριστήριο NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Χειριστήριο SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Χειριστήριο N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[αναμονή]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Νέο Προφίλ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Εισαγάγετε ένα όνομα προφίλ:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Δημιουργία Προφίλ Χειρισμού</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Το όνομα του προφίλ δεν είναι έγκυρο!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Η δημιουργία του προφίλ χειρισμού &quot;%1&quot; απέτυχε</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Διαγραφή Προφίλ Χειρισμού</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Η διαγραφή του προφίλ χειρισμού &quot;%1&quot; απέτυχε</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Φόρτωση Προφίλ Χειρισμού</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Η φόρτωση του προφίλ χειρισμού &quot;%1&quot; απέτυχε</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Αποθήκευση Προφίλ Χειρισμού</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Η αποθήκευση του προφίλ χειρισμού &quot;%1&quot; απέτυχε</translation>
</message>
@@ -2772,7 +2942,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Διαμόρφωση</translation>
</message>
@@ -2784,7 +2954,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="85"/>
<source>CemuhookUDP Config</source>
- <translation type="unfinished"/>
+ <translation>CemuhookUDP Config</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="91"/>
@@ -2808,7 +2978,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Τεστ</translation>
</message>
@@ -2828,77 +2998,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Ο αριθμός θύρας έχει μη έγκυρους χαρακτήρες</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Η θύρα πρέπει να ανήκει στο εύρος 0 και 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>Η διεύθυνση IP δεν είναι έγκυρη</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Αυτός ο διακομιστής UDP υπάρχει ήδη</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Δεν είναι δυνατή η προσθήκη περισσότερων από 8 διακομιστών</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Δοκιμή</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Διαμόρφωση</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Τεστ Επιτυχές</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Λήφθηκαν με επιτυχία δεδομένα από τον διακομιστή.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Η Δοκιμή Απέτυχε</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Δεν ήταν δυνατή η λήψη έγκυρων δεδομένων από τον διακομιστή.&lt;br&gt;Βεβαιωθείτε ότι ο διακομιστής έχει ρυθμιστεί σωστά και ότι η διεύθυνση και η θύρα είναι σωστές.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Η δοκιμή UDP ή η διαμόρφωση βαθμονόμησης είναι σε εξέλιξη.&lt;br&gt;Παρακαλώ περιμένετε να τελειώσουν.</translation>
</message>
@@ -2979,47 +3149,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>Προγραμματιστής</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Πρόσθετα</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Γενικά</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Σύστημα</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Γραφικά</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Προχ. Γραφικά</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Ήχος</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Ιδιότητες</translation>
</message>
@@ -3226,7 +3396,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3247,33 +3417,90 @@ UUID: %2</source>
<translation>Νεκρή Ζώνη: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Επαναφορά Προεπιλογών</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Καθαρισμός</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[μη ορισμένο]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Αντιστροφή άξονα</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Νεκρή Ζώνη: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Διαμόρφωση</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[αναμονή]</translation>
</message>
@@ -3578,8 +3805,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Αγγλικά</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3682,54 +3909,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Μονοφωνικό</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Στέρεοφωνικό</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Λειτουργία εξόδου ήχου</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Εκ Νέου Αντικατάσταση</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Οι ρυθμίσεις συστήματος είναι διαθέσιμες μόνο όταν το παιχνίδι δεν εκτελείται.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Αυτό θα αντικαταστήσει το τρέχων εικονικό σας Switch με ένα νέο, και το παλιό δεν θα είναι πια ανακτήσιμο. Αυτό μπορεί να έχει απροσδόκητα αποτελέσματα στα παιχνίδια. Επίσης, μπορεί να αποτύχει εάν χρησιμοποιείτε ένα ξεπερασμένο μέσο αποθήκευσης παιχνιδιού. Συνέχιση;</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Προσοχή</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Console ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3798,7 +3990,7 @@ UUID: %2</source>
<translation>Ρυθμίσεις TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation type="unfinished"/>
</message>
@@ -4353,7 +4545,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation type="unfinished"/>
</message>
@@ -4366,42 +4558,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4409,12 +4596,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4422,95 +4609,105 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Τηλεμετρία</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Πόσα καρέ ανά δευτερόλεπτο εμφανίζει το παιχνίδι αυτή τη στιγμή. Αυτό διαφέρει από παιχνίδι σε παιχνίδι και από σκηνή σε σκηνή.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Συνέχεια</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Παύση</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Μη μεταφρασμένη συμβολοσειρά
@@ -4518,829 +4715,855 @@ Drag points to change position, or double-click table cells to edit values.</sou
Για μια εξήγηση των διαφόρων μορφών Switch που υποστηρίζει το yuzu,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt; δείτε το wiki μας &lt;/a&gt;. Αυτό το μήνυμα δεν θα εμφανιστεί ξανά.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Σφάλμα κατά τη φόρτωση της ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Εμφανίστηκε ένα απροσδιόριστο σφάλμα. Ανατρέξτε στο αρχείο καταγραφής για περισσότερες λεπτομέρειες.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Αποθήκευση δεδομένων</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Ο φάκελος δεν υπάρχει!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Αφαίρεση Αρχείου</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Επιλογή λειτουργίας απόρριψης RomFS </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Μη αποθηκευμένη μετάφραση.
Παρακαλούμε επιλέξτε τον τρόπο με τον οποίο θα θέλατε να γίνει η απόρριψη της RomFS.&lt;br&gt;
Η επιλογή Πλήρης θα αντιγράψει όλα τα αρχεία στο νέο κατάλογο, ενώ η επιλογή &lt;br&gt; Σκελετός θα δημιουργήσει μόνο τη δομή του καταλόγου.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Ακύρωση</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Η επέμβαση ολοκληρώθηκε με επιτυχία.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Επιλογή καταλόγου</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Ιδιότητες</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Φόρτωση αρχείου</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Αποτελέσματα εγκατάστασης</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Εφαρμογή συστήματος</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Παιχνίδι</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Ενημέρωση παιχνιδιού</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC παιχνιδιού</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Επιλέξτε τον τύπο εγκατάστασης NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Το αρχείο δεν βρέθηκε</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Το αρχείο &quot;%1&quot; δεν βρέθηκε</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Σφάλμα κατα το άνοιγμα του URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Αδυναμία ανοίγματος του URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Σφάλμα</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Φόρτωση Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Σφάλμα φόρτωσης δεδομένων Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>Το επιλεγμένο αρχείο δεν αποτελεί έγκυρο amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>Το επιλεγμένο αρχείο χρησιμοποιείται ήδη</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Λήψη στιγμιότυπου οθόνης</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Εικόνα PBG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Έναρξη</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Κλίμακα: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Ταχύτητα: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Ταχύτητα: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Καρέ: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5351,76 +5574,86 @@ This will delete your autogenerated key files and re-run the key derivation modu
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Λείπει το BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- Λείπει το BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- Λείπει το PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Είστε σίγουροι ότι θέλετε να κλείσετε το yuzu;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5430,44 +5663,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>Το OpenGL δεν είναι διαθέσιμο!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Σφάλμα κατα την αρχικοποίηση του OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation type="unfinished"/>
</message>
@@ -5526,117 +5759,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Καταργήστε Όλη την Κρυφή μνήμη του Pipeline</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Καταργήστε Όλο το Εγκατεστημένο Περιεχόμενο</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Απόθεση του RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Απόθεση του RomFS στο SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Αντιγραφή του Title ID στο Πρόχειρο</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Μεταβείτε στην καταχώρηση GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Ιδιότητες</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Σκανάρισμα Υποφακέλων</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Αφαίρεση Φακέλου Παιχνιδιών</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Μετακίνηση Επάνω</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Μετακίνηση Κάτω</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Ανοίξτε την Τοποθεσία Καταλόγου</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Καθαρισμός</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Όνομα</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Συμβατότητα</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Πρόσθετα</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Τύπος αρχείου</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Μέγεθος</translation>
</message>
@@ -5707,7 +5945,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Διπλο-κλικ για προσθήκη νεου φακέλου στη λίστα παιχνιδιών</translation>
</message>
@@ -5720,12 +5958,12 @@ Would you like to bypass this and exit anyway?</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Φίλτρο:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Εισαγάγετε μοτίβο για φιλτράρισμα</translation>
</message>
@@ -5775,7 +6013,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="139"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Περιγραφή Δωματίου</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
@@ -5815,12 +6053,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5842,111 +6079,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Λήψη στιγμιότυπου οθόνης</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Πλήρη Οθόνη</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Φόρτωση αρχείου</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5969,7 +6207,7 @@ Debug Message: </source>
<translation>Εγκατάσταση</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation type="unfinished"/>
</message>
@@ -5977,7 +6215,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation type="unfinished"/>
@@ -6051,51 +6289,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6628,7 +6871,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation type="unfinished"/>
</message>
@@ -6677,31 +6920,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[μη ορισμένο]</translation>
</message>
@@ -6712,14 +6955,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Άξονας%1%2</translation>
</message>
@@ -6730,264 +6973,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[άγνωστο]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Αριστερά</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Δεξιά</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Κάτω</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Πάνω</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>Χ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Υ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[άδειο]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Συν</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Μείον</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Αρχική</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Στιγμιότυπο</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7356,26 +7657,26 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7395,20 +7696,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Επιλογή Χρήστη </translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Χρήστες</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation type="unfinished"/>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Επιλογή Χρήστη </translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7458,51 +7820,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Κλήση stack</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>αναμονή για όλα τα αντικείμενα</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation type="unfinished"/>
</message>
@@ -7510,120 +7841,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>αναμονή αντικειμένων</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>πυρήνας %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>επεξεργαστής = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>προτεραιότητα = %1(τρέχον) / %2(κανονικό)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation type="unfinished"/>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation type="unfinished"/>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation type="unfinished"/>
</message>
@@ -7631,7 +7952,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation type="unfinished"/>
</message>
diff --git a/dist/languages/es.ts b/dist/languages/es.ts
index c4025d9c4..f57671af8 100644
--- a/dist/languages/es.ts
+++ b/dist/languages/es.ts
@@ -29,9 +29,9 @@ p, li { white-space: pre-wrap; }
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;yuzu es un emulador experimental código abierto de Nintendo Switch licenciada bajo GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;yuzu es un emulador experimental de código abierto de Nintendo Switch licenciada bajo GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&apos;MS Shell Dlg 2&apos;; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Este software no debe ser utilizado para jugar a juegos que no se hayan obtenido legalmente.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Este software no debe ser utilizado para jugar a juegos que no se hayan obtenido de forma legal.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="130"/>
@@ -380,36 +380,61 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Dispositivo de salida</translation>
+ <source>Output Device:</source>
+ <translation>Dispositivo de salida:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Dispositivo de entrada</translation>
+ <source>Input Device:</source>
+ <translation>Dispositivo de entrada:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Método de salida de sonido:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Estéreo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Envolvente</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Usar volumen global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Ajustar volumen:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volumen:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Silenciar audio en segundo plano</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -784,7 +809,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="161"/>
<source>Enable Host MMU Emulation (exclusive memory instructions)</source>
- <translation>Habilitar Emulacion MMU del anfitrión (Instrucciones de memoria exclusiva)</translation>
+ <translation>Activar emulación MMU del anfitrión (Instrucciones de memoria exclusiva)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="168"/>
@@ -800,7 +825,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="174"/>
<source>Enable recompilation of exclusive memory instructions</source>
- <translation>Habilitar recompilación de las instrucciones de memoria exclusiva</translation>
+ <translation>Activar recompilación de las instrucciones de memoria exclusiva</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="181"/>
@@ -808,12 +833,15 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Esta optimización acelera los accesos a la memoria al permitir que los accesos no válidos tengan éxito.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Activarlo reduce la sobrecarga de todos los accesos a la memoria y no tiene ningún impacto en los programas que no acceden a la memoria no válida.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Activar fallbacks para accesos inválidos de memoria</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -861,7 +889,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="104"/>
<source>When checked, the max size of the log increases from 100 MB to 1 GB</source>
- <translation>Cuando se marque, el tamaño maximo del registro aumenta de 100 MB a 1 GB</translation>
+ <translation>Al activarlo, el tamaño máximo del registro aumenta de 100 MB a 1 GB.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="107"/>
@@ -886,7 +914,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="149"/>
<source>When checked, the graphics API enters a slower debugging mode</source>
- <translation>Cuando esté marcado, la API gráfica entrará en un modo de depuración más lento.</translation>
+ <translation>Al activarlo, la API gráfica entrará en un modo de depuración más lento.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="152"/>
@@ -896,7 +924,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="159"/>
<source>When checked, it enables Nsight Aftermath crash dumps</source>
- <translation>Cuando esté marcado, activará los volcados de los fallos Nsight Aftermath</translation>
+ <translation>Al activarlo, se habilitan los volcados Nsight Aftermath de bloqueos o errores.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="162"/>
@@ -906,17 +934,17 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="172"/>
<source>When checked, it will dump all the original assembler shaders from the disk shader cache or game as found</source>
- <translation>Al activarlo, esto volcará todos los sombreadores originales del ensamblador de la caché de sombreadores en disco o del juego encontrado</translation>
+ <translation>Al activarlo, se volcarán todos los shaders del ensamblador original de la caché de sombreadores en disco o del juego tal y como se encuentren.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="175"/>
<source>Dump Game Shaders</source>
- <translation>Volcar sombreadores del juego</translation>
+ <translation>Volcar shaders del juego</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="185"/>
<source>When checked, it will dump all the macro programs of the GPU</source>
- <translation>Cuando esté activado, se volcarán todos los programas macro de la GPU</translation>
+ <translation>Al activarlo, se volcarán todos los programas macro de la GPU.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="188"/>
@@ -926,7 +954,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="198"/>
<source>When checked, it disables the macro Just In Time compiler. Enabling this makes games run slower</source>
- <translation>Cuando esté marcado, se desactiva el compilador de macro Just In Time. Activar esto hace que los juegos se ejecuten más lento.</translation>
+ <translation>Al activarlo, se desactiva el compilador de macro Just In Time. Activar esto hace que los juegos se ejecuten más lento.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="201"/>
@@ -934,102 +962,112 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<translation>Desactivar macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Al activarlo, desactiva las funciones de macro HLE. Activar esto hace que los juegos se ejecuten más lento.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Desactivar Macro HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
- <translation>Cuando esté marcado, yuzu hará un registro de las estadísticas del caché de tubería compilado </translation>
+ <translation>Al activarlo, yuzu realizará un registro de estadísticas del caché de canalización compilado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Activar información de shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
- <translation>Cuando esté marcado, se ejecutarán los shaders sin cambios de bucles lógicos.</translation>
+ <translation>Al activarlo, se ejecutarán los shaders sin cambios en bucles lógicos.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Desactivar comprobaciones de seguridad de bucles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Depuración</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Activar servicios de reporte detallados**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Activar registro de acceso FS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation>Activa esta opción para mostrar en la consola la última lista de comandos de audio generada. Solo afecta a los juegos que utilizan el renderizador de audio.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation>Volcar comandos de audio a la consola**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>Crear mini volcado tras un crash</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avanzado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Modo quiosco (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Activar depuración de la CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Activar alertas de depuración</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Activar Auto-Stub**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
- <translation>Habilitar todo tipo de controles</translation>
+ <translation>Activar todos los tipos de controladores</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Desactivar Web applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation>Permite que yuzu compruebe si el entorno de Vulkan funciona cuando el programa se inicia. Desactiva esto si está causando problemas con los programas externos ligados a yuzu.</translation>
+ <translation>Permite a yuzu comprobar si el entorno de Vulkan funciona cuando el programa se inicia. Desactiva esto si está causando problemas con los programas externos ligados a yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>Realizar comprobación de Vulkan al ejecutar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Esto se reiniciará automáticamente cuando yuzu se cierre.</translation>
</message>
@@ -1044,12 +1082,12 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<translation>Para aplicar estos ajustes es necesario reiniciar yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>La web applet no se ha compilado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>La creación del mini volcado no se ha compilado</translation>
</message>
@@ -1099,78 +1137,78 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<translation>Configuración de yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Depuración</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Sistema de archivos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>General</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Gráficos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Gráficosavanzados</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Teclas de acceso rápido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Controles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Perfiles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Red</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Lista de juegos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1345,46 +1383,36 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Interfaz de memoria extendida (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Confirmar salida mientras se ejecuta la emulación</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Mostrar usuario actual al abrir el juego</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Pausar emulación cuando la ventana esté en segundo plano</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Silenciar audio cuando esté en segundo plano</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Ocultar el cursor en caso de inactividad.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Reiniciar todos los ajustes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Esto reiniciará y eliminará todas las configuraciones de los juegos. No eliminará ni los directorios de juego, ni los perfiles, ni los perfiles de los mandos. ¿Continuar?</translation>
</message>
@@ -1423,7 +1451,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Ninguno</translation>
</message>
@@ -1435,7 +1463,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="173"/>
<source>Use disk pipeline cache</source>
- <translation>Usar caché de shaders de tubería</translation>
+ <translation>Usar caché de canalización en disco</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="180"/>
@@ -1449,216 +1477,272 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>Modo VSync:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (VSync) no pierde frames ni muestra tearing, pero está limitado por la tasa de refresco de la pantalla.
+FIFO Relaxed es similar a FIFO, pero permite el tearing tan pronto como se recupera de una ralentización.
+Mailbox puede tener una latencia más baja que FIFO y no causa tearing, pero podría hacer perder frames.
+Inmediato (sin sincronización) sólo muestra lo que está disponible y puede mostrar tearing.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Emulación NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Sin salida de vídeo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Decodificación de vídeo en la CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Decodificación de vídeo en GPU (Por defecto)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Modo pantalla completa:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Ventana sin bordes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Pantalla completa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Relación de aspecto:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Valor predeterminado (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Forzar a 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Forzar a 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>Forzar 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Ajustar a la ventana</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Resolución:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>x0.5 (360p/540p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>x0.75 (540p/810p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>x1 (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>x1.5 (1080p/1620p) [EXPERIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>x2 (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>x3 (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>x4 (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>x5 (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>x6 (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>x7 (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>x8 (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filtro adaptable de ventana:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Vecino más próximo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilineal</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicúbico</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussiano</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (Solo Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Método de Anti-Aliasing:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Usar nitidez global FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Ajustar nitidez FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>Nitidez FSR:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Usar el color de fondo global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Establecer el color de fondo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Color de fondo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
- <translation>GLASM (Assembly shaders, sólo NVIDIA)</translation>
+ <translation>GLASM (Shaders de ensamblado, sólo NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Experimental, sólo Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>Desactivado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>VSync Desactivado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>Recomendado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>Activado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>VSync Activado</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1683,77 +1767,134 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<translation>Nivel de precisión: </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>El VSync evita que la pantalla se distorsione, pero algunas tarjetas gráficas tienen un menor rendimiento con el VSync activado. Mantenlo activado si no notas diferencias en el rendimiento.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>Recompresión ASTC:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>Sin compresión (Calidad óptima)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1 (Calidad baja)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3 (Calidad media)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>Activar presentación asíncrona (sólo Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Ejecuta los procesos en segundo plano mientras espera las instrucciones gráficas para evitar que la GPU reduzca su velocidad de reloj.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Forzar relojes máximos (sólo Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Activa la decodificación de texturas asíncrona de ASTC, lo cuál podría reducir la duración de los parones. Esta función es experimental.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Usar VSync</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Decodificar texturas ASTC de manera asíncrona (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>Usa una limpieza reactiva en vez de una limpieza predictiva, permitiendo así una sincronización de memoria más precisa.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>Activar Limpieza Reactiva</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Activa la compilación de shaders en modo asíncrono, lo que puede reducir la sobrecarga de shaders. Esta función es experimental.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Usar la construcción de shaders asíncronos (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Activa el tiempo rápido de GPU. Esta opción hará que muchos juegos estén forzados a ejecutarse en su resolución nativa máxima.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Usar tiempo rápido en la GPU (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>Activa el flujo de búferes pesado. Esta opción forzará el flujo de los búferes no modificados, lo que puede afectar al rendimiento.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Activa la caché de canalización específica del fabricante de la GPU. Esta opción puede mejorar significativamente el tiempo de carga de sombreadores en los casos en los que el controlador de Vulkan no almacena internamente archivos de caché de canalización.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>Utilizar flujos de búferes pesados (Hack)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Usar caché de canalización de Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>Activa las canalizaciones de cómputo, que son necesarias en algunos juegos. Esta opción sólo está para los drivers propietarios de AMD, y puede colgarse si se activa.
+Las canalizaciones de cómputo están siempre activadas en los otros drivers.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>Activar canalizaciones de cómputo (sólo Intel Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Filtrado anisotrópico:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automático</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Valor predeterminado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>x2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>x4</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>x8</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>x16</translation>
</message>
@@ -1786,70 +1927,65 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<translation>Restaurar valores predeterminados</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Acción</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Tecla de acceso rápido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Teclas de atajo del control</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Combinación de teclas en conflicto</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>La combinación de teclas introducida ya ha sido asignada a: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[esperando]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>No válido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Restaurar valor predeterminado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Eliminar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Secuencia de botones en conflicto</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>La secuencia de botones por defecto ya esta asignada a: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>La combinación de teclas predeterminada ya ha sido asignada a: %1</translation>
</message>
@@ -2141,7 +2277,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Configurar</translation>
</message>
@@ -2167,6 +2303,8 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Requiere reiniciar yuzu</translation>
</message>
@@ -2186,22 +2324,42 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<translation>Navegación de controles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Activar driver directo JoyCon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Activar driver directo Pro Controller [EXPERIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>Permite usos ilimitados del mismo Amiibo en juegos que, de otra manera, sólo te permiten usarlo una vez.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>Usar un ID de Amiibo aleatorio</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Activar desplazamiento del ratón</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Sensibilidad del ratón</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Movimiento / táctil</translation>
</message>
@@ -2221,57 +2379,57 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Perfiles de entrada</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 1</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 3</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 4</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 5</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 6</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 7</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador 8</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Utilizar la configuración global de entrada</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil del jugador %1</translation>
</message>
</context>
<context>
@@ -2313,7 +2471,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Palanca izquierda</translation>
</message>
@@ -2407,14 +2565,14 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2433,7 +2591,7 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Más</translation>
</message>
@@ -2446,15 +2604,15 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2511,236 +2669,247 @@ Esto banearía su nombre del foro y su dirección IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Palanca derecha</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Borrar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[no definido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Invertir botón</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Alternar botón</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Botón turbo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Invertir ejes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Configurar umbral</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Seleccione un valor entre 0% y 100%.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>Alternar ejes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Configurar umbral del Giroscopio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>Calibrar sensor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Configuración de palanca analógico</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Después de pulsar OK, mueve primero el joystick de manera horizontal, y luego verticalmente.
Para invertir los ejes, mueve primero el joystick de manera vertical, y luego horizontalmente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Centrar ejes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Punto muerto: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Rango del modificador: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Controlador Pro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Joycons duales</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon izquierdo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon derecho</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Portátil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Controlador de GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Controlador NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Controlador SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Controlador N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Inicio / Pausa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Palanca de control</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>¡Agita!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[esperando]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Nuevo perfil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Introduce un nombre de perfil:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Crear perfil de entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>¡El nombre de perfil introducido no es válido!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Error al crear el perfil de entrada &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Eliminar perfil de entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Error al eliminar el perfil de entrada &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Cargar perfil de entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Error al cargar el perfil de entrada &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Guardar perfil de entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Error al guardar el perfil de entrada &quot;%1&quot;</translation>
</message>
@@ -2788,7 +2957,7 @@ Para invertir los ejes, mueve primero el joystick de manera vertical, y luego ho
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Configurar</translation>
</message>
@@ -2824,7 +2993,7 @@ Para invertir los ejes, mueve primero el joystick de manera vertical, y luego ho
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Probar</translation>
</message>
@@ -2844,77 +3013,77 @@ Para invertir los ejes, mueve primero el joystick de manera vertical, y luego ho
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Más información&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>El número del puerto tiene caracteres que no son válidos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>El puerto debe estar en un rango entre 0 y 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>Dirección IP no válida</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Este servidor UDP ya existe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>No es posible añadir más de 8 servidores</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Probando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Configurando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Prueba existosa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Se han recibido con éxito los datos del servidor.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Prueba fallida</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>No se han podido recibir datos válidos del servidor.&lt;br&gt;Por favor, verifica que el servidor esté configurado correctamente y que la dirección y el puerto sean correctos.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>La prueba de UDP o la configuración de la calibración está en curso.&lt;br&gt;Por favor, espera a que termine el proceso.</translation>
</message>
@@ -2995,47 +3164,47 @@ Para invertir los ejes, mueve primero el joystick de manera vertical, y luego ho
<translation>Desarrollador</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Extras / Add-Ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>General</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Gráficos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Gráficos avanz.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Perfiles de entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Propiedades</translation>
</message>
@@ -3243,8 +3412,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>Parámetros del sensor Ring</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Parámetros del sensor Ring virtual</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3264,33 +3433,90 @@ UUID: %2</translation>
<translation>Punto muerto: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Driver directo del JoyCon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Activar entrada del Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Activar</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Valor del sensor Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>No conectado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Restaurar valores predeterminados</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Limpiar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[no definido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Invertir ejes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Punto muerto: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Error al activar la entrada del Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>El driver directo JoyCon no está activo.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Configurando</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>El dispositivo de entrada actual no soporta el control Ring.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>El dispositivo de entrada actual no tiene el Ring incorporado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Resultado inesperado del driver %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[esperando]</translation>
</message>
@@ -3595,8 +3821,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Inglés (english)</translation>
+ <source>American English</source>
+ <translation>Inglés estadounidense</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3696,57 +3922,22 @@ UUID: %2</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Estéreo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Envolvente</translation>
+ <translation>Nombre del dispositivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID de la consola:</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>Interfaz de memoria extendida no segura (8GB DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Método de salida de sonido:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regenerar</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Los ajustes del sistema sólo se encuentran disponibles cuando no se esté ejecutando ningún juego.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Esto reemplazará tu Switch virtual con una nueva. Tu Switch virtual actual no será recuperable. Esto podría causar efectos inesperados en determinados juegos. Si usas un archivo de guardado de configuración obsoleto, esto podría fallar. ¿Continuar?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Advertencia</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID de consola: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Aviso: &quot;%1&quot; no es un idioma válido para la región &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3815,7 +4006,7 @@ UUID: %2</translation>
<translation>Configuración TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Selecciona el directorio de carga TAS...</translation>
</message>
@@ -4371,7 +4562,7 @@ Arrastra los puntos para cambiar de posición, o haz doble clic en las celdas de
<translation>Controlador J1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Controlador J1</translation>
</message>
@@ -4384,42 +4575,37 @@ Arrastra los puntos para cambiar de posición, o haz doble clic en las celdas de
<translation>Conexión directa</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>Dirección IP</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Dirección del Servidor</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Dirección IPv4 del anfitrión&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Dirección del servidor del anfitrión&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Puerto</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Número de puerto en el que el anfitrión está trabajando&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Apodo</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Contraseña</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Conectar</translation>
</message>
@@ -4427,12 +4613,12 @@ Arrastra los puntos para cambiar de posición, o haz doble clic en las celdas de
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Conectando</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Conectar</translation>
</message>
@@ -4440,535 +4626,560 @@ Arrastra los puntos para cambiar de posición, o haz doble clic en las celdas de
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Los datos de uso anónimos se recogen&lt;/a&gt; para ayudar a mejorar yuzu. &lt;br/&gt;&lt;br/&gt;¿Deseas compartir tus datos de uso con nosotros?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetría </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>Se ha detectado una instalación corrupta de Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>La inicialización de Vulkan ha fallado durante la ejecución. Haz clic &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;aquí para más información sobre como arreglar el problema&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Cargando Web applet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Desactivar Web applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>Deshabilitar el Applet Web puede causar comportamientos imprevistos y debería solo ser usado con Super Mario 3D All-Stars. ¿Estas seguro que quieres deshabilitar el Applet Web?
(Puede ser reactivado en las configuraciones de Depuración.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>La cantidad de shaders que se están construyendo actualmente</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>El multiplicador de escala de resolución seleccionado actualmente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>La velocidad de emulación actual. Los valores superiores o inferiores al 100% indican que la emulación se está ejecutando más rápido o más lento que en una Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>La cantidad de fotogramas por segundo que se está mostrando el juego actualmente. Esto variará de un juego a otro y de una escena a otra.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Tiempo que lleva emular un fotograma de la Switch, sin tener en cuenta la limitación de fotogramas o sincronización vertical. Para una emulación óptima, este valor debería ser como máximo de 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Eliminar archivos recientes</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>El ratón emulado está activado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>La entrada de un ratón real y la panoramización del ratón son incompatibles. Por favor, desactive el ratón emulado en la configuración avanzada de entrada para permitir así la panoramización del ratón.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Continuar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pausar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu está ejecutando un juego</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Advertencia: formato del juego obsoleto</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Está utilizando el formato de directorio de ROM deconstruido para este juego, que es un formato desactualizado que ha sido reemplazado por otros, como los NCA, NAX, XCI o NSP. Los directorios de ROM deconstruidos carecen de íconos, metadatos y soporte de actualizaciones.&lt;br&gt;&lt;br&gt;Para ver una explicación de los diversos formatos de Switch que soporta yuzu,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;echa un vistazo a nuestra wiki&lt;/a&gt;. Este mensaje no se volverá a mostrar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>¡Error al cargar la ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>El formato de la ROM no es compatible.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Se ha producido un error al inicializar el núcleo de video.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu ha encontrado un error al ejecutar el núcleo de video. Esto suele ocurrir al no tener los controladores de la GPU actualizados, incluyendo los integrados. Por favor, revisa el registro para más detalles. Para más información sobre cómo acceder al registro, por favor, consulta la siguiente página: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Como cargar el archivo de registro&lt;/a&gt;. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>¡Error al cargar la ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Por favor, sigue &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;la guía de inicio rápido de yuzu&lt;/a&gt; para revolcar los archivos.&lt;br&gt;Puedes consultar la wiki de yuzu&lt;/a&gt; o el Discord de yuzu&lt;/a&gt; para obtener ayuda.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Error desconocido. Por favor, consulte el archivo de registro para ver más detalles.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Cerrando software...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Datos de guardado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Datos de mods</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Error al abrir la carpeta %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>¡La carpeta no existe!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Error al abrir el caché transferible de shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>No se pudo crear el directorio de la caché de los shaders para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation>Error al eliminar el contenido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>Error al eliminar la actualización</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>Error al eliminar el DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation>¿Eliminar el contenido del juego instalado?</translation>
+ <translation>¿Eliminar contenido del juego instalado?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation>¿Eliminar la actualización del juego instalado?</translation>
+ <translation>¿Eliminar actualización del juego instalado?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>¿Eliminar el DLC del juego instalado?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Eliminar entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Se ha eliminado con éxito</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Se ha eliminado con éxito el juego base instalado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>El juego base no está instalado en el NAND y no se puede eliminar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Se ha eliminado con éxito la actualización instalada.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>No hay ninguna actualización instalada para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>No hay ningún DLC instalado para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Se ha eliminado con éxito %1 DLC instalado(s).</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>¿Deseas eliminar el caché transferible de shaders de OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>¿Deseas eliminar el caché transferible de shaders de Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>¿Deseas eliminar todo el caché transferible de shaders?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>¿Deseas eliminar la configuración personalizada del juego?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Eliminar archivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Error al eliminar la caché de shaders transferibles</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>No existe caché de shaders para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>El caché de shaders transferibles se ha eliminado con éxito.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>No se ha podido eliminar la caché de shaders transferibles.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Error al eliminar la caché de canalización del controlador Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>No se ha podido eliminar la caché de canalización del controlador.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Error al eliminar las cachés de shaders transferibles</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Cachés de shaders transferibles eliminadas con éxito.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>No se ha podido eliminar el directorio de cachés de shaders transferibles.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Error al eliminar la configuración personalizada del juego</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>No existe una configuración personalizada para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Se eliminó con éxito la configuración personalizada del juego.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>No se ha podido eliminar la configuración personalizada del juego.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>¡La extracción de RomFS ha fallado!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Se ha producido un error al copiar los archivos RomFS o el usuario ha cancelado la operación.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Completo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>En secciones</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Elegir método de volcado de RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Por favor, selecciona el método en que quieres volcar el RomFS.&lt;br&gt;Completo copiará todos los archivos al nuevo directorio &lt;br&gt; mientras que en secciones solo creará la estructura del directorio.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>No hay suficiente espacio en %1 para extraer el RomFS. Por favor, libera espacio o elige otro directorio de volcado en Emulación &gt; Configuración &gt; Sistema &gt; Sistema de archivos &gt; Raíz de volcado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Extrayendo RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Cancelar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>¡La extracción RomFS ha tenido éxito!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>La operación se completó con éxito.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Crear acceso directo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Esto creará un acceso directo a la AppImage actual. Esto puede no funcionar bien si se actualiza. ¿Continuar?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>No se puede crear un acceso directo en el escritorio. La ruta &quot;%1&quot; no existe.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>No se puede crear un acceso directo en el menú de aplicaciones. La ruta &quot;%1&quot; no existe y no se puede crear.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Crear icono</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>No se puede crear el archivo de icono. La ruta &quot;%1&quot; no existe y no se ha podido crear.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Iniciar %1 con el Emulador yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Error al crear un acceso directo en %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Se ha creado un acceso directo a %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Error al intentar abrir %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Seleccionar directorio</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Propiedades</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>No se pueden cargar las propiedades del juego.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Ejecutable de Switch (%1);;Todos los archivos (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Cargar archivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Abrir el directorio de la ROM extraída</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Directorio seleccionado no válido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>El directorio que ha seleccionado no contiene ningún archivo &apos;main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Archivo de Switch Instalable (*.nca *.nsp *.xci);;Archivo de contenidos de Nintendo (*.nca);;Paquete de envío de Nintendo (*.nsp);;Imagen de cartucho NX (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Instalar archivos</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n archivo(s) restantes</numerusform><numerusform>%n archivo(s) restantes</numerusform><numerusform>%n archivo(s) restantes</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Instalando el archivo &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Instalar resultados</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Para evitar posibles conflictos, no se recomienda a los usuarios que instalen juegos base en el NAND.
Por favor, utiliza esta función sólo para instalar actualizaciones y DLCs.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n archivo(s) recién instalado/s
@@ -4977,7 +5188,7 @@ Por favor, utiliza esta función sólo para instalar actualizaciones y DLCs.</tr
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n archivo(s) recién sobreescrito/s
@@ -4986,7 +5197,7 @@ Por favor, utiliza esta función sólo para instalar actualizaciones y DLCs.</tr
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n archivo(s) no se instaló/instalaron
@@ -4995,377 +5206,388 @@ Por favor, utiliza esta función sólo para instalar actualizaciones y DLCs.</tr
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Aplicación del sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Archivo del sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Actualización de la aplicación del sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Paquete de firmware (Tipo A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Paquete de firmware (Tipo B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Juego</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Actualización de juego</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC del juego</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Titulo delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Seleccione el tipo de instalación NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Seleccione el tipo de título en el que deseas instalar este NCA como:
(En la mayoría de los casos, el &apos;Juego&apos; predeterminado está bien).</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Fallo en la instalación</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>El tipo de título que seleccionó para el NCA no es válido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Archivo no encontrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Archivo &quot;%1&quot; no encontrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>Aceptar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>No se cumplen los requisitos de hardware</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation>El sistema no cumple los requisitos de hardware recomendados. Los informes de compatibilidad se han desactivado.</translation>
+ <translation>El sistema no cumple con los requisitos de hardware recomendados. Los informes de compatibilidad se han desactivado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Falta la cuenta de Yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Para enviar un caso de prueba de compatibilidad de juegos, debes vincular tu cuenta de yuzu.&lt;br&gt;&lt;br/&gt; Para vincular tu cuenta de yuzu, ve a Emulación &amp;gt; Configuración &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Error al abrir la URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>No se puede abrir la URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Grabación TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>¿Sobrescribir archivo del jugador 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Configuración no válida detectada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>El controlador del modo portátil no puede ser usado en el modo sobremesa. Se seleccionará el controlador Pro en su lugar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>El amiibo actual ha sido eliminado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>El juego actual no está buscando amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Archivo amiibo (%1);; Todos los archivos (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Cargar amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Error al cargar los datos Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>El archivo seleccionado no es un amiibo válido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>El archivo seleccionado ya se encuentra en uso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>Ha ocurrido un error inesperado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Captura de pantalla</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Imagen PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Estado TAS: ejecutando %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Estado TAS: grabando %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Estado TAS: inactivo %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Estado TAS: nulo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Parar de ejecutar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Iniciar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Pausar g&amp;rabación</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>G&amp;rabar</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Creando: %n shader(s)</numerusform><numerusform>Construyendo: %n shader(s)</numerusform><numerusform>Construyendo: %n shader(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Escalado: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Velocidad: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Velocidad: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Juego: %1 FPS (desbloqueado)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Juego: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Fotogramas: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU ALTA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTREMA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU ERROR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>SOBREMESA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>PORTÁTIL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>PRÓXIMO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICÚBICO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIANO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>NO AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>VOLUMEN: SILENCIO</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>VOLUMEN: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Confirmar la clave de rederivación</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5382,37 +5604,37 @@ es lo que quieres hacer si es necesario.
Esto eliminará los archivos de las claves generadas automáticamente y volverá a ejecutar el módulo de derivación de claves.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Faltan fuses</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Falta BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - Falta BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - Falta PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Faltan componentes de derivación</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Faltan las claves de encriptación. &lt;br&gt;Por favor, sigue &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;la guía rápida de yuzu&lt;/a&gt; para obtener todas tus claves, firmware y juegos.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5421,39 +5643,49 @@ Esto puede llevar unos minutos dependiendo
del rendimiento de su sistema.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Obtención de claves</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>Desencriptación del Sistema de Archivos Fallida</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>Las claves de encriptación no han podido desencriptar el firmware. &lt;br&gt;Por favor, siga&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;la guía de inicio rápido de yuzu&lt;/a&gt; para obtener todas tus claves, firmware y juegos.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Selecciona el destinatario para volcar el RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Por favor, seleccione los RomFS que deseas volcar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>¿Estás seguro de que quieres cerrar yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>¿Estás seguro de que quieres detener la emulación? Cualquier progreso no guardado se perderá.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5465,44 +5697,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>¡OpenGL no está disponible!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Los contextos compartidos de OpenGL no son compatibles.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu no ha sido compilado con soporte de OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>¡Error al inicializar OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Tu GPU no soporta OpenGL, o no tienes instalados los últimos controladores gráficos.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>¡Error al iniciar OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Tu GPU no soporta OpenGL 4.6, o no tienes instalado el último controlador de la tarjeta gráfica.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>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.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Extensiones no soportadas:&lt;br&gt;%2</translation>
</message>
@@ -5537,7 +5769,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="541"/>
<source>Open Transferable Pipeline Cache</source>
- <translation>Abrir caché transferible de shaders en tubería</translation>
+ <translation>Abrir caché de canalización de shaders transferibles</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="543"/>
@@ -5561,117 +5793,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
- <translation>Eliminar caché en tubería de OpenGL</translation>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation>Eliminar caché de canalización de OpenGL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
- <translation>Eliminar caché en tubería de Vulkan</translation>
+ <translation>Eliminar caché de canalización de Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
- <translation>Eliminar todas las cachés en tubería</translation>
+ <translation>Eliminar todas las cachés de canalización</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Eliminar todo el contenido instalado</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Volcar RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Volcar RomFS a SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Copiar la ID del título al portapapeles</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Ir a la sección de bases de datos del juego</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Crear Acceso directo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Añadir al Escritorio</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Añadir al menú de Aplicaciones</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Propiedades</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Escanear subdirectorios</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Eliminar directorio de juegos</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Mover hacia arriba</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Mover hacia abajo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Abrir ubicación del directorio</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Limpiar</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nombre</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Compatibilidad</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Extras/Add-ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Tipo de archivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Tamaño</translation>
</message>
@@ -5686,7 +5923,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Game starts, but crashes or major glitches prevent it from being completed.</source>
- <translation>El juego se inicia, pero los bloqueos o fallos importantes impiden que se pueda completar.</translation>
+ <translation>El juego se inicia, pero se bloquea o se producen fallos importantes que impiden completarlo.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
@@ -5742,7 +5979,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Haz doble clic para agregar un nuevo directorio a la lista de juegos.</translation>
</message>
@@ -5755,12 +5992,12 @@ Would you like to bypass this and exit anyway?</source>
<translation><numerusform>%1 de %n resultado(s)</numerusform><numerusform>%1 de %n resultado(s)</numerusform><numerusform>%1 de %n resultado(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Búsqueda:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Introduce un patrón para buscar</translation>
</message>
@@ -5795,7 +6032,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="101"/>
<source>(Leave blank for open game)</source>
- <translation>(Dejar en blanco para juego libre)</translation>
+ <translation>(Dejar vacío para crear sala abierta)</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="118"/>
@@ -5815,7 +6052,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
<source>Load Previous Ban List</source>
- <translation>Cargar lista de vetos anterior</translation>
+ <translation>Cargar lista de vetos anteriores</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="184"/>
@@ -5851,12 +6088,11 @@ Mensaje de depuración: </translation>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>Activar/Desactivar audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5878,111 +6114,112 @@ Mensaje de depuración: </translation>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>Ventana principal</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>Bajar volumen del audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>Subir volumen del audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Captura de pantalla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>Cambiar filtro adaptable</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>Cambiar a modo sobremesa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>Cambiar precisión de GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Continuar/Pausar emulación</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Salir de pantalla completa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>Cerrar yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Pantalla completa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Cargar archivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Cargar/Eliminar Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Reiniciar emulación</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Detener emulación</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>Grabar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>Reiniciar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>Iniciar/detener TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>Alternar barra de filtro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>Alternar limite de fotogramas</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>Alternar desplazamiento del ratón</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>Alternar barra de estado</translation>
</message>
@@ -6005,7 +6242,7 @@ Mensaje de depuración: </translation>
<translation>Instalar</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Instalar archivos al NAND...</translation>
</message>
@@ -6013,7 +6250,7 @@ Mensaje de depuración: </translation>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>El texto no puede tener ninguno de estos caracteres:
@@ -6088,51 +6325,56 @@ Mensaje de depuración: </translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Ocultar salas vacías</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Ocultar salas llenas</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Actualizar lobby</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Contraseña necesaria para unirse</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Contraseña:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Jugadores</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Nombre de sala</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Juego preferente</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Anfitrión</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Actualizando</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Actualizar lista</translation>
</message>
@@ -6312,7 +6554,7 @@ Mensaje de depuración: </translation>
<message>
<location filename="../../src/yuzu/main.ui" line="291"/>
<source>&amp;Direct Connect to Room</source>
- <translation>&amp;Conexión directa a la sala</translation>
+ <translation>&amp;Conexión directa a una sala</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="299"/>
@@ -6537,7 +6779,7 @@ Mensaje de depuración: </translation>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="32"/>
<source>Creating a room failed. Please retry. Restarting yuzu might be necessary.</source>
- <translation>La creación de la sala ha fallado. Por favor reintente. Reiniciar yuzu puede ser necesario.</translation>
+ <translation>Error al crear una sala. Por favor, inténtalo de nuevo. Puede que sea necesario reiniciar yuzu.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="34"/>
@@ -6670,7 +6912,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>INICIO/PAUSAR</translation>
</message>
@@ -6719,31 +6961,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[no definido]</translation>
</message>
@@ -6754,14 +6996,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Eje %1%2</translation>
</message>
@@ -6772,264 +7014,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[desconocido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Izquierda</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Derecha</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Abajo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Arriba</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Comenzar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Círculo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Cruz</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Cuadrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Triángulo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Compartir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Opciones</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[sin definir]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[inválido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Rotación %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Eje %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Eje %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Movimiento %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Botón %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[no usado]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Palanca L</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Palanca R</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Más</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Menos</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Inicio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Captura</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Táctil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Rueda</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Atrás</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Adelante</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Tarea</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3Rotación %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3Axis %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Botón %4</translation>
</message>
</context>
<context>
@@ -7398,28 +7698,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Código de error: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Ha ocurrido un error.
Por favor, inténtalo de nuevo o contacta con el desarrollador del software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Ha ocurrido un error en %1 a las %2
Por favor, inténtalo de nuevo o contacta con el desarrollador del software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7443,20 +7743,81 @@ Por favor, inténtalo de nuevo o contacta con el desarrollador del software.</tr
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Seleccione un usuario:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Usuarios</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Creador de perfil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Selector de perfil</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Editor de icono de perfil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Editor de nombre de perfil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>¿Quién recibirá los puntos?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>¿Quién va a utilizar Nintendo eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>¿Quién está haciendo la compra?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>¿Quién está publicando esto?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Elige un usuario para vincularlo a una Cuenta Nintendo.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>¿Para qué usuario desea cambiar la configuración?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>¿Para qué usuario se borrarán sus datos?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>¿Qué usuario será transferido a otra consola?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>¿A qué usuario se le enviarán los datos de guardado?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Seleccione un usuario:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7506,51 +7867,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Llamadas acumuladas</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>esperando al mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>tiene receptores: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>manejo del propietario: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>esperando a todos los objetos</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>esperando a uno de los siguientes objetos</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>esperado por ningún hilo</translation>
</message>
@@ -7558,120 +7888,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>ejecutable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>en pausa</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>reposando</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>esperando respuesta IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>esperando objetos</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>esperando variable condicional</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>esperando al árbitro de dirección</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>esperando a reanudar</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>esperando</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>inicializado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>terminado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>desconocido</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation>PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>núcleo %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>procesador = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>núcleo ideal = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>máscara de afinidad = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id de hilo = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioridad = %1(presente) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>últimos ticks consecutivos = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>no esperando al mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>esperado por el hilo</translation>
</message>
@@ -7679,7 +7999,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Árbol de espera</translation>
</message>
diff --git a/dist/languages/fr.ts b/dist/languages/fr.ts
index d7d94dd30..0046c3128 100644
--- a/dist/languages/fr.ts
+++ b/dist/languages/fr.ts
@@ -127,7 +127,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="446"/>
<source>View Profile</source>
- <translation>Voir le profile</translation>
+ <translation>Voir le profil</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="459"/>
@@ -381,36 +381,61 @@ Cela bannirait à la fois son nom d&apos;utilisateur du forum et son adresse IP.
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Périphérique de sortie</translation>
+ <source>Output Device:</source>
+ <translation>Périphérique de sortie :</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Périphérique d&apos;entrée</translation>
+ <source>Input Device:</source>
+ <translation>Périphérique d&apos;entrée :</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Mode de sortie sonore :</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stéréo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Utiliser le volume global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Régler le volume :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volume :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Couper le son en arrière-plan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -936,102 +961,112 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<translation>Désactiver les macros JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Lorsque coché, désactive les fonctions macro HLE. L&apos;activer ralentit les jeux</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Désactiver les macros HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Lorsque la case est cochée, yuzu enregistrera les journaux de statistiques à propos de la cache de pipeline compilée</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Activer le retour d&apos;information des shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Lorsque la case est cochée, exécuter les shaders sans changer la boucle de logique</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Désactiver les vérifications de boucle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Débogage</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Activer les services de rapport verbeux**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Activer la journalisation des accès du système de fichiers</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation>Activez cette option pour afficher la dernière liste de commandes audio générée sur la console. N&apos;affecte que les jeux utilisant le moteur de rendu audio.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation>Déversez les commandes audio à la console**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>Crée un Minidump après un crash</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avancé</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Mode Kiosk (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Activer le Débogage CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Activer les assertions de débogage</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Activer l&apos;Auto-Stub**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Activer tous les types de contrôleurs</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Désactiver l&apos;applet web</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>Active yuzu pour chercher pour un environnement Vulkan fonctionnel quand le programme démarre. Desactiver ceci si cela cause des problèmes avec des programmes externes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>Performe un check de Vulkan au démarrage</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Ces options seront réinitialisées automatiquement lorsque yuzu fermera.</translation>
</message>
@@ -1046,12 +1081,12 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<translation>yuzu doit redémarrer pour appliquer ce paramètre.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Applet Web non compilé</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>Création de MiniDump non compilé</translation>
</message>
@@ -1101,78 +1136,78 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<translation>Configuration de yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Son</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Débogage</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Système de fichiers</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Général</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Vidéo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Graphismes avancés</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Raccourcis clavier</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Contrôles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profils</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Réseau</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Système</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Liste des jeux</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1347,46 +1382,36 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Disposition de la mémoire étendue (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Confirmer la sortie pendent l&apos;émulation en cours</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Demander un utilisateur au lancement d&apos;un jeu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Mettre en pause l’émulation lorsque mis en arrière-plan </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Couper le son en arrière-plan</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Cacher la souris en cas d&apos;inactivité</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Réinitialiser tous les paramètres</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Ceci réinitialise tout les paramètres et supprime toutes les configurations par jeu. Cela ne va pas supprimer les répertoires de jeu, les profils, ou les profils d&apos;entrée. Continuer ?</translation>
</message>
@@ -1425,7 +1450,7 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Aucune</translation>
</message>
@@ -1451,216 +1476,272 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>Mode VSync :</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (VSync) ne perd pas de trames ni ne présente de déchirures, mais est limité par le taux de rafraîchissement de l&apos;écran.
+FIFO Relaxé est similaire à FIFO mais autorise les déchirures lorsqu&apos;il récupère d&apos;un ralentissement.
+Mailbox peut avoir une latence plus faible que FIFO et ne présente pas de déchirures, mais peut perdre des trames.
+Immédiat (sans synchronisation) présente simplement ce qui est disponible et peut présenter des déchirures.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Émulation NVDEC</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Pas de sortie vidéo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Décodage Vidéo sur le CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Décodage Vidéo sur le GPU (par défaut)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Mode Plein écran :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Fenêtré sans bordure</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Plein écran exclusif</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Format :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Par défaut (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Forcer le 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Forcer le 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
- <translation>Forcer 16:10</translation>
+ <translation>Forcer le 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Étirer à la fenêtre</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Résolution :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EXPÉRIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EXPÉRIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [EXPÉRIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filtre de fenêtre adaptatif</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Plus proche voisin</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilinéaire</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicubique</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussien</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (Vulkan seulement)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Méthode d&apos;anticrénelage :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation>Utiliser la netteté FSR globale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation>Définir la netteté FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation>Netteté FSR :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Utiliser une couleur d&apos;arrière-plan globale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Définir la couleur d&apos;arrière-plan :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Couleur de L’arrière plan :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Shaders en Assembleur, NVIDIA Seulement)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation>SPIR-V (Expérimental, Mesa seulement)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>Désactivé</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>VSync Désactivée</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>Recommandé</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>Activé</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>VSync Activée</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1685,77 +1766,134 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<translation>Niveau de Précision :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>La VSync empêche les déchirements de l&apos;image, mais cela peut causer des baisses de performances sur certaines cartes graphiques. Gardez la activée si vous ne voyez pas de différence.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>Recompression ASTC :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Utiliser VSync</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>Non compressé (Meilleure qualité)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1 (Basse qualité)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3 (Qualité moyenne)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>Activer la présentation asynchrone (uniquement pour Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>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&apos;horloge.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Forcer la fréquence d&apos;horloge maximale (Vulkan uniquement)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Active le décodage asynchrone de textures ASTC, qui peut réduire les saccades de chargement. Cette fonctionnalité est expérimentale.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Décoder les textures ASTC de manière asynchrone (Hack)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>Utilise le vidage réactif à la place du vidage prédictif. Permet une synchronisation de mémoire plus précise.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>Activer le Vidage Réactif</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Active la compilation de shaders asynchrone, qui peut réduire les saccades des shaders. Cette fonctionnalité est expérimentale.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Utiliser la compilation asynchrone des shaders (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Active le Temps GPU Rapide. Cette option forcera la plupart des jeux à utiliser leur plus grande résolution native.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Utiliser le Temps GPU Rapide (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>Active les vidages de tampon pessimistes. Cette option va forcer les tampons non-modifiés à être vidé, cela peut affecter la performance.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Active le cache de pipeline spécifique au fournisseur de GPU. Cette option peut améliorer considérablement le temps de chargement du shader dans les cas où le pilote Vulkan ne stocke pas les fichiers de cache du pipeline en interne.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>Utiliser des vidages de tampon pessimistes (Hack)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Utiliser le cache de pipeline Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>Activer les pipelines de calcul, requis par certains jeux. Ce paramètre n&apos;existe que pour les pilotes propriétaires Intel et peut provoquer des plantages s&apos;il est activé.
+Les pipelines de calcul sont toujours activés sur tous les autres pilotes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>Activer les pipelines de calcul (uniquement pour Intel Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Filtrage anisotropique :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automatique</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Défaut</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1788,70 +1926,65 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<translation>Restaurer les défauts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Action</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Raccourci clavier</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Raccourci Manette</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Séquence de touches conflictuelle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>La séquence de touches entrée est déjà attribuée à : %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[En attente]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Invalide</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Rétablir les défauts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Effacer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Séquence de bouton conflictuelle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>La séquence de bouton par défaut est déjà assignée à : %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>La séquence de touches par défaut est déjà attribuée à : %1</translation>
</message>
@@ -2143,7 +2276,7 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Configurer</translation>
</message>
@@ -2169,6 +2302,8 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Nécessite de redémarrer yuzu</translation>
</message>
@@ -2188,22 +2323,42 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<translation>Manette de navigation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Activer le pilote JoyCon direct</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Activer le pilote Pro Controller direct [EXPERIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>Permet des utilisations illimitées du même Amiibo dans des jeux qui vous limitent à une seule utilisation.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>Utiliser un ID d&apos;Amiibo aléatoire</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Activer le mouvement panorama avec la souris</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Sensibilité de la souris</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>La motion / Toucher</translation>
</message>
@@ -2315,7 +2470,7 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Stick Gauche</translation>
</message>
@@ -2409,14 +2564,14 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2435,7 +2590,7 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Plus</translation>
</message>
@@ -2448,15 +2603,15 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2513,236 +2668,247 @@ Cette option améliore la vitesse en réduisant la précision des instructions f
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Stick Droit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Effacer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[non défini]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Inverser les boutons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Bouton d&apos;activation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Bouton Turbo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Inverser l&apos;axe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Définir le seuil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Choisissez une valeur entre 0% et 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>Basculer les axes</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Définir le seuil du gyroscope</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>Calibrer le capteur</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Mapper le stick analogique</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Après avoir appuyé sur OK, bougez d&apos;abord votre joystick horizontalement, puis verticalement.
Pour inverser les axes, bougez d&apos;abord votre joystick verticalement, puis horizontalement.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Axe central</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Zone morte : %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Modification de la course : %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Deux Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon de gauche</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon de droit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Mode Portable</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Manette GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poké Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Manette NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Manette SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Manette N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Start / Pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Stick de contrôle </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Secouez !</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[en attente]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Nouveau Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Entrez un nom de profil :</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Créer un profil d&apos;entrée </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Le nom de profil donné est invalide !</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Échec de la création du profil d&apos;entrée &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Supprimer le profil d&apos;entrée</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Échec de la suppression du profil d&apos;entrée &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Charger le profil d&apos;entrée</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Échec du chargement du profil d&apos;entrée &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Sauvegarder le profil d&apos;entrée</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Échec de la sauvegarde du profil d&apos;entrée &quot;%1&quot;</translation>
</message>
@@ -2790,7 +2956,7 @@ Pour inverser les axes, bougez d&apos;abord votre joystick verticalement, puis h
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Configurer</translation>
</message>
@@ -2826,7 +2992,7 @@ Pour inverser les axes, bougez d&apos;abord votre joystick verticalement, puis h
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Tester</translation>
</message>
@@ -2846,77 +3012,77 @@ Pour inverser les axes, bougez d&apos;abord votre joystick verticalement, puis h
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Plus d&apos;informations&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Le numéro de port contient des caractères invalides</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Le port doit être entre 0 et 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>L&apos;adresse IP n&apos;est pas valide</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Ce serveur UDP existe déjà</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Impossible d&apos;ajouter plus de 8 serveurs</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Essai</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Configuration</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test réussi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Données reçues du serveur avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test échoué</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Impossible de recevoir des données valides du serveur.&lt;br&gt;Veuillez vérifier que le serveur est correctement configuré et que l&apos;adresse et le port sont corrects.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Le test UDP ou la configuration de l&apos;étalonnage est en cours.&lt;br&gt;Veuillez attendre qu&apos;ils se terminent.</translation>
</message>
@@ -2997,47 +3163,47 @@ Pour inverser les axes, bougez d&apos;abord votre joystick verticalement, puis h
<translation>Développeur</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Extensions</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Général</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Système</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Graphiques</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Adv. Graphiques</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation>Profils d&apos;entrée</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Propriétés</translation>
</message>
@@ -3245,8 +3411,8 @@ UUID : %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>Paramètres du Capteur de l&apos;Anneau</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Paramètres du capteur de l&apos;anneau virtuel</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3266,33 +3432,90 @@ UUID : %2</translation>
<translation>Zone morte : 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Pilote Joycon direct</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Activer la saisie de l&apos;anneau</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Activer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Valeur du capteur de l&apos;anneau</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Non connecté</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Restaurer les défauts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Effacer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[non défini]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Inverser l&apos;axe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Zone morte : %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Erreur lors de l&apos;activation de la saisie de l&apos;anneau</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Le pilote direct Joycon n&apos;est pas activé</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Configuration</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>Le périphérique mappé actuel ne prend pas en charge le contrôleur en anneau</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>L&apos;appareil actuellement mappé n&apos;a pas d&apos;anneau attaché</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Résultat de pilote inattendu %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[En attente]</translation>
</message>
@@ -3597,8 +3820,8 @@ UUID : %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Anglais</translation>
+ <source>American English</source>
+ <translation>Anglais Américain</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3698,57 +3921,22 @@ UUID : %2</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stéréo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID de la Console :</translation>
+ <translation>Nom de l&apos;appareil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Mode de sortie Audio</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>Disposition de mémoire étendue non sécurisée (8 Go de DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regénérer</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Les paramètres systèmes ne sont accessibles que lorsque le jeu n&apos;est pas en cours.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Ceci remplacera la Switch virtuelle actuelle par une nouvelle. La Switch actuelle ne sera plus récupérable. cela peut entrainer des effets non désirés pendant le jeu. Ceci peut échouer si une configuration de sauvegarde périmée est utilisée. Continuer ?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Avertissement</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID de la Console : 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Attention: &quot;%1&quot; n&apos;est pas une langue valide pour la région &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3817,7 +4005,7 @@ UUID : %2</translation>
<translation>Configuration du TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Sélectionner le dossier de chargement du TAS...</translation>
</message>
@@ -4373,7 +4561,7 @@ Faites glisser les points pour modifier la position ou double-cliquez sur les ce
<translation>Contrôleur joueur 1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Contrôleur joueur 1</translation>
</message>
@@ -4386,42 +4574,37 @@ Faites glisser les points pour modifier la position ou double-cliquez sur les ce
<translation>Connexion directe</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>Adresse IP</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Adresse du serveur</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Adresse IPv4 de l&apos;hôte&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Adresse du serveur de l&apos;hôte&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Port</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Numéro de port sur lequel l&apos;hôte écoute&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Surnom</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Mot de passe</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Connecter</translation>
</message>
@@ -4429,12 +4612,12 @@ Faites glisser les points pour modifier la position ou double-cliquez sur les ce
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Connexion</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Connecter</translation>
</message>
@@ -4442,923 +4625,959 @@ Faites glisser les points pour modifier la position ou double-cliquez sur les ce
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Des données anonymes sont collectées&lt;/a&gt; pour aider à améliorer yuzu. &lt;br/&gt;&lt;br/&gt;Voulez-vous partager vos données d&apos;utilisations avec nous ?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Télémétrie</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>Installation Vulkan Cassée Détectée</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>L&apos;initialisation de Vulkan a échoué lors du démarrage.&lt;br&gt;&lt;br&gt;Cliquez &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;ici pour obtenir des instructions pour résoudre le problème&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Chargement du Web Applet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Désactiver l&apos;applet web</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>La désactivation de l&apos;applet Web peut entraîner un comportement indéfini et ne doit être utilisée qu&apos;avec Super Mario 3D All-Stars. Voulez-vous vraiment désactiver l&apos;applet Web ?
(Cela peut être réactivé dans les paramètres de débogage.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>La quantité de shaders en cours de construction</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>Le multiplicateur de mise à l&apos;échelle de résolution actuellement sélectionné.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Valeur actuelle de la vitesse de l&apos;émulation. Des valeurs plus hautes ou plus basses que 100% indique que l&apos;émulation fonctionne plus vite ou plus lentement qu&apos;une véritable Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Combien d&apos;image par seconde le jeu est en train d&apos;afficher. Ceci vas varier de jeu en jeu et de scènes en scènes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Temps pris pour émuler une image par seconde de la switch, sans compter le limiteur d&apos;image par seconde ou la synchronisation verticale. Pour une émulation à pleine vitesse, ceci devrait être au maximum à 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Effacer les fichiers récents</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>La souris émulée est activée</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>La saisie réelle de la souris et le panoramique de la souris sont incompatibles. Veuillez désactiver la souris émulée dans les paramètres avancés d&apos;entrée pour permettre le panoramique de la souris.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Continuer</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu exécute un jeu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Avertissement : Le Format de jeu est dépassé</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Vous utilisez un format de ROM déconstruite pour ce jeu, qui est donc un format dépassé qui à été remplacer par d&apos;autre. Par exemple les formats NCA, NAX, XCI, ou NSP. Les destinations de ROM déconstruites manque des icônes, des métadonnée et du support de mise à jour.&lt;br&gt;&lt;br&gt;Pour une explication des divers formats Switch que yuzu supporte, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;Regardez dans le wiki&lt;/a&gt;. Ce message ne sera pas montré une autre fois.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Erreur lors du chargement de la ROM !</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Le format de la ROM n&apos;est pas supporté.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Une erreur s&apos;est produite lors de l&apos;initialisation du noyau dédié à la vidéo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu a rencontré une erreur en exécutant le cœur vidéo. Cela est généralement causé par des pilotes graphiques trop anciens. Veuillez consulter les logs pour plus d&apos;informations. Pour savoir comment accéder aux logs, veuillez vous référer à la page suivante : &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Comment partager un fichier de log &lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Erreur lors du chargement de la ROM ! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Veuillez suivre &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;le guide de démarrage rapide yuzu&lt;/a&gt; pour retransférer vos fichiers.&lt;br&gt;Vous pouvez vous référer au wiki yuzu&lt;/a&gt; ou le Discord yuzu&lt;/a&gt; pour de l&apos;assistance.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Une erreur inconnue est survenue. Veuillez consulter le journal des logs pour plus de détails.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Fermeture du logiciel...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Enregistrer les données</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Donnés du Mod</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Erreur dans l&apos;ouverture du dossier %1.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Le dossier n&apos;existe pas !</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Erreur lors de l&apos;ouverture des Shader Cache Transferable</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Impossible de créer le dossier de cache du shader pour ce jeu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation>Erreur en enlevant le contenu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>Erreur en enlevant la Mise à Jour</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>Erreur en enlevant le DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation>Enlever les données des jeux installés ?</translation>
+ <translation>Enlever les données du jeu installé ?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>Enlever la mise à jour du jeu installé ?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>Enlever le DLC du jeu installé ?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Supprimer l&apos;entrée</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Supprimé avec succès</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Suppression du jeu de base installé avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Le jeu de base n&apos;est pas installé dans la NAND et ne peut pas être supprimé.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Suppression de la mise à jour installée avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Il n&apos;y a pas de mise à jour installée pour ce titre.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Il n&apos;y a pas de DLC installé pour ce titre.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Suppression de %1 DLC installé(s) avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Supprimer la Cache OpenGL de Shader Transférable?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Supprimer la Cache Vulkan de Shader Transférable?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Supprimer Toutes les Caches de Shader Transférable?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Supprimer la configuration personnalisée du jeu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation>Supprimer le stockage du cache ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Supprimer fichier</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Erreur lors de la suppression du cache de shader transférable</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Un shader cache pour ce titre n&apos;existe pas.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Suppression du cache de shader transférable avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Échec de la suppression du cache de shader transférable.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Erreur lors de la suppression du cache de pipeline de pilotes Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Échec de la suppression du cache de pipeline de pilotes.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Erreur durant la Suppression des Caches de Shader Transférable</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Suppression des caches de shader transférable effectuée avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Impossible de supprimer le dossier de la cache de shader transférable.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Erreur lors de la suppression de la configuration personnalisée</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Il n&apos;existe pas de configuration personnalisée pour ce titre.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Suppression de la configuration de jeu personnalisée avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Échec de la suppression de la configuration personnalisée du jeu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>L&apos;extraction de la RomFS a échoué !</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Une erreur s&apos;est produite lors de la copie des fichiers RomFS ou l&apos;utilisateur a annulé l&apos;opération.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Plein</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Squelette</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Sélectionnez le mode d&apos;extraction de la RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Veuillez sélectionner la manière dont vous souhaitez que le fichier RomFS soit extrait.&lt;br&gt;Full copiera tous les fichiers dans le nouveau répertoire, tandis que&lt;br&gt;skeleton créera uniquement la structure de répertoires.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>Il n&apos;y a pas assez d&apos;espace libre dans %1 pour extraire la RomFS. Veuillez libérer de l&apos;espace ou sélectionner un autre dossier d&apos;extraction dans Émulation &gt; Configurer &gt; Système &gt; Système de fichiers &gt; Extraire la racine</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Extraction de la RomFS ...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Annuler</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Extraction de la RomFS réussi !</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>L&apos;opération s&apos;est déroulée avec succès.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Créer un raccourci</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Cela créera un raccourci vers l&apos;AppImage actuelle. Cela peut ne pas fonctionner correctement si vous mettez à jour. Continuer ?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Impossible de créer un raccourci sur le bureau. Le chemin &quot;%1&quot; n&apos;existe pas.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Impossible de créer un raccourci dans le menu des applications. Le chemin &quot;%1&quot; n&apos;existe pas et ne peut pas être créé.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Créer une icône</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Impossible de créer le fichier d&apos;icône. Le chemin &quot;%1&quot; n&apos;existe pas et ne peut pas être créé.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Démarrer %1 avec l&apos;émulateur Yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Impossible de créer un raccourci vers %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Création réussie d&apos;un raccourci vers %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Erreur lors de l&apos;ouverture %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Sélectionner un répertoire</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Propriétés</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Les propriétés du jeu n&apos;ont pas pu être chargées.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Exécutable Switch (%1);;Tous les fichiers (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Charger un fichier</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Ouvrir le dossier des ROM extraites</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Destination sélectionnée invalide</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Le répertoire que vous avez sélectionné ne contient pas de fichier &quot;main&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Fichier Switch installable (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Installer les fichiers</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n fichier restant</numerusform><numerusform>%n fichiers restants</numerusform><numerusform>%n fichiers restants</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Installation du fichier &quot;%1&quot; ...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Résultats d&apos;installation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Pour éviter d&apos;éventuels conflits, nous déconseillons aux utilisateurs d&apos;installer des jeux de base sur la NAND.
Veuillez n&apos;utiliser cette fonctionnalité que pour installer des mises à jour et des DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n fichier a été nouvellement installé</numerusform><numerusform>%n fichiers ont été nouvellement installés</numerusform><numerusform>%n fichiers ont été nouvellement installés</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n fichier a été écrasé</numerusform><numerusform>%n fichiers ont été écrasés</numerusform><numerusform>%n fichiers ont été écrasés</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n fichier n&apos;a pas pu être installé</numerusform><numerusform>%n fichiers n&apos;ont pas pu être installés</numerusform><numerusform>%n fichiers n&apos;ont pas pu être installés</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Application Système</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Archive Système</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Mise à jour de l&apos;application système</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Paquet micrologiciel (Type A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Paquet micrologiciel (Type B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Jeu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Mise à jour de jeu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC de jeu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Titre Delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Sélectionner le type d&apos;installation du NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Veuillez sélectionner le type de titre auquel vous voulez installer ce NCA :
(Dans la plupart des cas, le titre par défaut : &apos;Jeu&apos; est correct.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Échec de l&apos;installation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Le type de titre que vous avez sélectionné pour le NCA n&apos;est pas valide.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Fichier non trouvé</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Fichier &quot;%1&quot; non trouvé</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>Éxigences matérielles non respectées</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation>Votre système ne correspond pas aux éxigences matérielles. Les rapports de comptabilité ont été désactivés.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Compte yuzu manquant</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Pour soumettre un test de compatibilité pour un jeu, vous devez lier votre compte yuzu.&lt;br&gt;&lt;br/&gt;Pour lier votre compte yuzu, aller à Emulation &amp;gt; Configuration&amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Erreur lors de l&apos;ouverture de l&apos;URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Impossible d&apos;ouvrir l&apos;URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Enregistrement TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Écraser le fichier du joueur 1 ?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Configuration invalide détectée</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Contrôleur portable ne peut pas être utilisé en mode téléviseur. La manette Pro sera sélectionnée.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>L&apos;amiibo actuel a été retiré</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Erreur</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>Le jeu actuel ne cherche pas d&apos;amiibos.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Fichier Amiibo (%1);; Tous les fichiers (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Charger un Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Erreur lors du chargement des données Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>Le fichier choisi n&apos;est pas un amiibo valide</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>Le fichier sélectionné est déjà utilisé</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>Une erreur inconnue s&apos;est produite</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Capture d&apos;écran</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Image PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>État du TAS : En cours d&apos;exécution %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>État du TAS : Enregistrement %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>État du TAS : Inactif %1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>État du TAS : Invalide</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Stopper l&apos;exécution</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Stopper l&apos;en&amp;registrement</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>En&amp;registrer</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Compilation: %n shader</numerusform><numerusform>Compilation : %n shaders</numerusform><numerusform>Compilation : %n shaders</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Échelle : %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Vitesse : %1% / %2% </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Vitesse : %1% </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Jeu : %1 IPS (Débloqué)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Jeu : %1 FPS </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Frame : %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU HAUT</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTRÊME</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU ERREUR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>MODE TV</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>PORTABLE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>PLUS PROCHE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINÉAIRE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICUBIQUE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIEN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>AUCUN AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>VOLUME: MUET</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>VOLUME: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Confirmer la réinstallation de la clé</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5375,37 +5594,37 @@ et éventuellement faites des sauvegardes.
Cela supprimera vos fichiers de clé générés automatiquement et ré exécutera le module d&apos;installation de clé.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Fusibles manquants</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- BOOT0 manquant</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- BCPKG2-1-Normal-Main manquant</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- PRODINFO manquant</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Composants de dérivation manquants</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Les clés de chiffrement sont manquantes. &lt;br&gt;Veuillez suivre &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;le guide de démarrage rapide yuzu&lt;/a&gt; pour obtenir tous vos clés, firmware et jeux.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5414,39 +5633,49 @@ Cela peut prendre jusqu&apos;à une minute en fonction
des performances de votre système.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Installation des clés</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>Échec du déchiffrement de l&apos;archive système.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>Les clés de chiffrement n&apos;ont pas réussi à déchiffrer le firmware. &lt;br&gt;Veuillez suivre &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;le guide de démarrage rapide du yuzu&lt;/a&gt; pour obtenir toutes vos clés, firmware et jeux.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Sélectionner la cible d&apos;extraction du RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Veuillez sélectionner quel RomFS vous voulez extraire.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Êtes vous sûr de vouloir fermer yuzu ?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Êtes-vous sûr d&apos;arrêter l&apos;émulation ? Tout progrès non enregistré sera perdu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5458,44 +5687,44 @@ Voulez-vous ignorer ceci and quitter quand même ?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL n&apos;est pas disponible !</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Les contextes OpenGL partagés ne sont pas pris en charge.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu n&apos;a pas été compilé avec le support OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Erreur lors de l&apos;initialisation d&apos;OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Votre GPU peut ne pas prendre en charge OpenGL, ou vous n&apos;avez pas les derniers pilotes graphiques.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Erreur lors de l&apos;initialisation d&apos;OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Votre GPU peut ne pas prendre en charge OpenGL 4.6 ou vous ne disposez pas du dernier pilote graphique: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>Votre GPU peut ne pas prendre en charge une ou plusieurs extensions OpenGL requises. Veuillez vous assurer que vous disposez du dernier pilote graphique.&lt;br&gt;&lt;br&gt;GL Renderer :&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Extensions non prises en charge :&lt;br&gt;%2</translation>
</message>
@@ -5554,117 +5783,122 @@ Voulez-vous ignorer ceci and quitter quand même ?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation>Supprimer le stockage du cache</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Supprimer la Cache de Pipeline OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Supprimer la Cache de Pipeline Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Supprimer Toutes les Caches de Pipeline</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Supprimer tout le contenu installé</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Extraire la RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Décharger RomFS vers SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Copier l&apos;ID du titre dans le Presse-papiers</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Accédez à l&apos;entrée GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Créer un raccourci</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Ajouter au bureau</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Ajouter au menu des applications</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Propriétés</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Scanner les sous-dossiers</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Supprimer le répertoire du jeu</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Monter</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Descendre</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Ouvrir l&apos;emplacement du répertoire</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Effacer</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nom</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Compatibilité</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Extensions</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Type de fichier</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Taille</translation>
</message>
@@ -5735,7 +5969,7 @@ Voulez-vous ignorer ceci and quitter quand même ?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Double-cliquez pour ajouter un nouveau dossier à la liste de jeux</translation>
</message>
@@ -5748,12 +5982,12 @@ Voulez-vous ignorer ceci and quitter quand même ?</translation>
<translation><numerusform>%1 sur %n résultat</numerusform><numerusform>%1 sur %n résultats</numerusform><numerusform>%1 sur %n résultats</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filtre :</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Entrez un motif à filtrer</translation>
</message>
@@ -5844,12 +6078,11 @@ Message de débogage : </translation>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>Désactiver/Activer le Son</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5871,111 +6104,112 @@ Message de débogage : </translation>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>Fenêtre Principale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>Baisser le volume audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>Augmenter le volume audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Prendre une capture d&apos;ecran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>Modifier le filtre d&apos;adaptation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>Changer le mode de la station d&apos;accueil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>Modifier la précision du GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Continuer/Suspendre l&apos;Émulation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Quitter le plein écran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>Quitter yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Plein écran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Charger un fichier</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Charger/Supprimer un Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Redémarrer l&apos;Émulation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Arrêter l&apos;Émulation</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>Enregistrement TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>Réinitialiser le TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>Démarrer/Arrêter le TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>Activer la barre de filtre</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>Activer la limite de fréquence d&apos;images</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>Activer le panoramique de la souris</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>Activer la barre d&apos;état</translation>
</message>
@@ -5998,7 +6232,7 @@ Message de débogage : </translation>
<translation>Installer</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Installer des fichiers sur la NAND</translation>
</message>
@@ -6006,7 +6240,7 @@ Message de débogage : </translation>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>Le texte ne peut contenir aucun des caractères suivants :
@@ -6081,51 +6315,56 @@ Message de débogage : </translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Masquer les salons vides</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Masquer les salons complets</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Rafraichir le menu</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Mot de passe requis pour rejoindre</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Mot de passe:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Joueurs</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Nom du salon</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Jeu préféré</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Hôte</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Rafraîchissement</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Rafraîchir la liste</translation>
</message>
@@ -6663,7 +6902,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>Démarrer/Pause </translation>
</message>
@@ -6712,31 +6951,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Maj</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[non défini]</translation>
</message>
@@ -6747,14 +6986,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Axe %1%2</translation>
</message>
@@ -6765,264 +7004,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[inconnu]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Gauche</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Droite</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Bas</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Haut</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Cercle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Croix</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Carré</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Triangle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Partager</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Options</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[non défini]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[invalide]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Chapeau %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Axe %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Axe %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Mouvement %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Bouton %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[inutilisé]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Stick Gauche</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Stick Droit</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Plus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Moins</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Capturer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Tactile</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Molette</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Reculer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Avancer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Tâche</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3Chapeau %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3Axe %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Bouton %4</translation>
</message>
</context>
<context>
@@ -7391,28 +7688,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Code d&apos;erreur : %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Une erreur s&apos;est produite.
Veuillez essayer à nouveau ou contactez le développeur du logiciel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Une erreur s&apos;est produite le %1 à %2.
Veuillez essayer à nouveau ou contactez le développeur du logiciel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7436,20 +7733,81 @@ Veuillez essayer à nouveau ou contactez le développeur du logiciel.</translati
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Choisir un utilisateur :</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Utilisateurs</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Créateur de profil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Sélecteur de profil</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Éditeur d&apos;icônes de profil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Éditeur de surnom de profil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>Qui recevra les points ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>Qui utilise le Nintendo eShop ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>Qui effectue cet achat ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>Qui publie ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Sélectionnez un utilisateur à associer à un compte Nintendo.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>Modifier les paramètres pour quel utilisateur ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>Formater les données pour quel utilisateur ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>Quel utilisateur sera transféré sur une autre console ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>Envoyer les données de sauvegarde pour quel utilisateur ?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Choisir un utilisateur :</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7499,51 +7857,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Pile d&apos;exécution</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>en attente du &quot;mutex&quot; 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>En attente : %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>propriétaire de la manche : 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>en attente de tous les objets</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>en attente d&apos;un des objets suivants</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>attendu par aucun thread</translation>
</message>
@@ -7551,120 +7878,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>runnable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>en pause</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>en veille</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>en attente de réponse IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>En attente d&apos;objets</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>en attente de la variable conditionnelle</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>En attente de l&apos;adresse arbitre</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>waiting for suspend resume</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>en attente</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>initialisé</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>terminated</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>inconnu</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation>PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>idéal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>cœur %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>Processeur = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>Cœur idéal = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>masque d&apos;affinité = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id du fil = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>priorité = %1(courant) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>dernier tick en cours = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>en attente du &quot;mutex&quot;</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>attendu par un fil</translation>
</message>
@@ -7672,7 +7989,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Wait Tree</translation>
</message>
diff --git a/dist/languages/id.ts b/dist/languages/id.ts
index e50f6388c..eefc9de49 100644
--- a/dist/languages/id.ts
+++ b/dist/languages/id.ts
@@ -372,36 +372,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
+ <source>Output Device:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Perangkat Masukan</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Pakai volume global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Atur volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Bisukan audio saat berada di background</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -893,102 +918,112 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<translation>Matikan Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Saat dinyalakan, yuzu akan mencatat statstik tentang pipeline cache yang disusun</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Nyalakan Umpan Balik Shader</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Saat dinyalakan, akan menjalankan shader tanpa perubahan logika loop</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Matikan cek keamanan Loop</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Pengawakutuan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Nyalakan Layanan Laporan Bertele-tele**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Nyalakan Log Akses FS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Lanjutan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Mode Kiosk (Pencarian)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Nyalakan Pengawakutuan CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Nyalakan Awakutu Assert</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Aktifkan Semua Jenis Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Matikan Applet Web</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Ini akan diatur ulang secara otomatis ketika yuzu ditutup.</translation>
</message>
@@ -1003,12 +1038,12 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1058,78 +1093,78 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<translation>Komfigurasi yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Awakutu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Sistem berkas</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Umum</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>GrafisLanjutan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Pintasan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Kendali</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Jaringan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Sistem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Daftar Permainan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Jejaring</translation>
</message>
@@ -1304,46 +1339,36 @@ Memungkinkan berbagai macam optimasi IR.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Tata letak memori yang diperluas (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Konfirmasi jika ingin keluar saat emulasi berjalan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Tanyakan pengguna ketika memulai permainan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Jeda pengemulasian ketika berada di latar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Bisukan audio saat berada di background</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Sembunyikan mouse saat tidak aktif</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Atur Ulang Semua Pengaturan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation type="unfinished"/>
</message>
@@ -1382,7 +1407,7 @@ Memungkinkan berbagai macam optimasi IR.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Tak ada</translation>
</message>
@@ -1408,216 +1433,269 @@ Memungkinkan berbagai macam optimasi IR.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Emulasi NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Tidak ada Keluaran Suara</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Penguraian Video menggunakan CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Penguraian Video menggunakan GPU (Bawaan)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Mode Layar Penuh:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Layar Tanpa Batas</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Layar Penuh Eksklusif</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Rasio Aspek:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Bawaan (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Paksa 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Paksa 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Regangkan ke Layar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Resolusi:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EKSPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EKSPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filter Menyelaraskan dengan Layar:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Nearest Neighbor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Biliner</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bikubik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussian</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Metode Anti-Aliasing:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Gunakan warna latar global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Setel warna latar:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Warna Latar:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Shader perakit, hanya NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1642,77 +1720,133 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<translation>Tingkat Akurasi:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync mencegah robekan layar, tapi beberapa kartu grafis memiliki performa yang lebih rendah dengan VSnyc dinyalakan. Biarkan menyala jika anda tidak memerhatikan perbedaan performa.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anisotropic Filtering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Otomatis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Bawaan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1745,70 +1879,65 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<translation>Kembalikan ke Semula</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Tindakan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Pintasan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Urutan Tombol yang Konflik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Urutan tombol yang dimasukkan sudah menerap ke: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[menunggu]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Kembalikan ke Semula</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Bersihkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Urutan tombol bawaan sudah diterapkan ke: %1</translation>
</message>
@@ -2100,7 +2229,7 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Konfigurasi</translation>
</message>
@@ -2126,6 +2255,8 @@ Memungkinkan berbagai macam optimasi IR.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Memerlukan mengulang yuzu</translation>
</message>
@@ -2145,22 +2276,42 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Nyalakan geseran tetikus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Sensitivitas mouse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Gerakan / Sentuhan</translation>
</message>
@@ -2272,7 +2423,7 @@ Memungkinkan berbagai macam optimasi IR.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Stik Kiri</translation>
</message>
@@ -2366,14 +2517,14 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2392,7 +2543,7 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Tambah</translation>
</message>
@@ -2405,15 +2556,15 @@ Memungkinkan berbagai macam optimasi IR.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2470,236 +2621,247 @@ Memungkinkan berbagai macam optimasi IR.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Stik Kanan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Bersihkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[belum diatur]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Balikkan tombol</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Atur tombol</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Balikkan poros</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Atur batasan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Pilih sebuah angka diantara 0% dan 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Petakan Stik Analog</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Setelah menekan OK, pertama gerakkan joystik secara mendatar, lalu tegak lurus.
Untuk membalikkan sumbu, pertama gerakkan joystik secara tegak lurus, lalu mendatar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Titik Mati: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Rentang Pengubah: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Kontroler Pro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Joycon Dual</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon Kiri</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon Kanan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Jinjing</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Kontroler GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Kontroler NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Kontroler SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Kontroler N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Mulai / Jeda</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Stik Kendali</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Getarkan!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[menunggu]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Profil Baru</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Masukkan nama profil:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Ciptakan Profil Masukan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Nama profil yang diberi tidak sah!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Gagal membuat profil masukan &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Hapus Profil Masukan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Gagal menghapus profil masukan &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Muat Profil Masukan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Gagal memuat profil masukan &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Simpat Profil Masukan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Gagal menyimpan profil masukan &quot;%1&quot;</translation>
</message>
@@ -2747,7 +2909,7 @@ Untuk membalikkan sumbu, pertama gerakkan joystik secara tegak lurus, lalu menda
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Konfigurasi</translation>
</message>
@@ -2783,7 +2945,7 @@ Untuk membalikkan sumbu, pertama gerakkan joystik secara tegak lurus, lalu menda
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Uji coba</translation>
</message>
@@ -2803,77 +2965,77 @@ Untuk membalikkan sumbu, pertama gerakkan joystik secara tegak lurus, lalu menda
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Pelajari lebih lanjut&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Terdapat karakter tidak sah di angka port</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Port harus berada dalam jangkauan 0 dan 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>Alamat IP tidak sah</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Server UDP ini sudah ada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Tidak dapat menambah lebih dari 8 server</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Menguji</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Mengkonfigur</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Tes Berhasil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Berhasil menerima data dari server.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Uji coba Gagal</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Tidak dapat menerima data yang sah dari server.&lt;br&gt;Mohon periksa bahwa server telah diatur dengan benar dan alamat dan port sudah sesuai.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Uji coba UDP atau kalibrasi konfigurasi sedang berjalan.&lt;br&gt;Mohon tunggu hingga selesai.</translation>
</message>
@@ -2954,47 +3116,47 @@ Untuk membalikkan sumbu, pertama gerakkan joystik secara tegak lurus, lalu menda
<translation>Pengembang</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Pengaya (Add-On)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Umum</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Sistem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Ljtan. Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Properti</translation>
</message>
@@ -3201,7 +3363,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3222,33 +3384,90 @@ UUID: %2</source>
<translation>Titik Mati: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Kembalikan ke Semula</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Bersihkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[belum diatur]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Balikkan poros</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Titik Mati: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Mengkonfigur</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[menunggu]</translation>
</message>
@@ -3553,8 +3772,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Inggris</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3657,54 +3876,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID Konsol:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Mode keluaran suara</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Hasilkan Ulang</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Pengaturan sistem hanya tersedia saat permainan tidak dijalankan.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Ini akan mengganti Switch virtual Anda dengan yang baru. Switch virtual Anda saat ini tidak akan bisa dipulihkan. Ini mungkin akan menyebabkan kesan tak terkira di dalam permainan. Ini juga mungkin akan gagal jika Anda menggunakan simpanan konfigurasi yang lawas. Lanjutkan?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Peringatan</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID Konsol: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3773,7 +3957,7 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation type="unfinished"/>
</message>
@@ -4328,7 +4512,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>Kontroler P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>%Kontroler P1</translation>
</message>
@@ -4341,42 +4525,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4384,12 +4563,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4397,924 +4576,960 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Data anonim dikumpulkan&lt;/a&gt; untuk membantu yuzu. &lt;br/&gt;&lt;br/&gt;Apa Anda ingin membagi data penggunaan dengan kami?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetri</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Memuat Applet Web...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Matikan Applet Web</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Jumlah shader yang sedang dibuat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>Pengali skala resolusi yang terpilih.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Kecepatan emulasi saat ini. Nilai yang lebih tinggi atau rendah dari 100% menandakan pengemulasian berjalan lebih cepat atau lambat dibanding Switch aslinya.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Berapa banyak frame per second (bingkai per detik) permainan akan ditampilkan. Ini akan berubah dari berbagai permainan dan pemandangan.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Waktu yang diperlukan untuk mengemulasikan bingkai Switch, tak menghitung pembatas bingkai atau v-sync. Agar emulasi berkecepatan penuh, ini harus 16.67 mdtk.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Bersihkan Berkas Baru-baru Ini</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Lanjutkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Jeda</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu sedang menjalankan game</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Peringatan Format Permainan yang Usang</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Anda menggunakan format direktori ROM yang sudah didekonstruksi untuk permainan ini, yang mana itu merupakan format lawas yang sudah tergantikan oleh yang lain seperti NCA, NAX, XCI, atau NSP. Direktori ROM yang sudah didekonstruksi kekurangan ikon, metadata, dan dukungan pembaruan.&lt;br&gt;&lt;br&gt;Untuk penjelasan berbagai format Switch yang didukung yuzu, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;periksa wiki kami&lt;/a&gt;. Pesan ini tidak akan ditampilkan lagi.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Kesalahan ketika memuat ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Format ROM tak didukung.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Terjadi kesalahan ketika menginisialisasi inti video.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu telah mengalami error saat menjalankan inti video. Ini biasanya disebabkan oleh pemicu piranti (driver) GPU yang usang, termasuk yang terintegrasi. Mohon lihat catatan untuk informasi lebih rinci. Untuk informasi cara mengakses catatan, mohon lihat halaman berikut: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Cara Mengupload Berkas Catatan&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Terjadi kesalahan yang tak diketahui. Mohon lihat catatan untuk informasi lebih rinci.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Simpan Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Gagal Membuka Folder %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Folder tak ada!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Gagal Ketika Membuka Tembolok Shader yang Dapat Ditransfer</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Hapus Masukan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Tidak ada DLC yang terinstall untuk judul ini.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Hapus File</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Kesalahan Menghapus Transferable Shader Cache</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Cache shader bagi judul ini tidak ada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Kesalahan Menghapus Konfigurasi Buatan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Pengekstrakan RomFS Gagal!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Terjadi kesalahan ketika menyalin berkas RomFS atau dibatalkan oleh pengguna.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Penuh</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Skeleton</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Pilih Mode Dump RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Mohon pilih cara RomFS akan di-dump.&lt;br&gt;FPenuh akan menyalin seluruh berkas ke dalam direktori baru sementara &lt;br&gt;jerangkong hanya akan menciptakan struktur direktorinya saja.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Mengekstrak RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Batal</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Pengekstrakan RomFS Berhasil!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Operasi selesai dengan sukses,</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Gagal membuka %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Pilih Direktori</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Properti</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Properti permainan tak dapat dimuat.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Eksekutabel Switch (%1);;Semua Berkas (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Muat Berkas</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Buka Direktori ROM Terekstrak</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Direktori Terpilih Tidak Sah</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Direktori yang Anda pilih tak memiliki berkas &apos;utama.&apos;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Install File</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Memasang berkas &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Hasil Install</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n file(s) baru diinstall
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n file(s) telah ditimpa
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n file(s) gagal di install
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Aplikasi Sistem</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Arsip Sistem</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Pembaruan Aplikasi Sistem</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Paket Perangkat Tegar (Tipe A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Paket Perangkat Tegar (Tipe B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Permainan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Pembaruan Permainan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC Permainan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Judul Delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Pilih Tipe Pemasangan NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Mohon pilih jenis judul yang Anda ingin pasang sebagai NCA ini:
(Dalam kebanyakan kasus, pilihan bawaan &apos;Permainan&apos; tidak apa-apa`.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Gagal Memasang</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Jenis judul yang Anda pilih untuk NCA tidak sah.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Berkas tak ditemukan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Berkas &quot;%1&quot; tak ditemukan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Akun yuzu Hilang</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Agar dapat mengirimkan berkas uju kompatibilitas permainan, Anda harus menautkan akun yuzu Anda.&lt;br&gt;&lt;br/&gt;TUntuk mennautkan akun yuzu Anda, pergi ke Emulasi &amp;gt; Konfigurasi &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Kesalahan saat membuka URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Tidak dapat membuka URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Rekaman TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Timpa file pemain 1? </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Konfigurasi tidak sah terdeteksi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Kontroller jinjing tidak bisa digunakan dalam mode dock. Kontroller Pro akan dipilih</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Berkas Amiibo (%1);; Semua Berkas (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Muat Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Gagal memuat data Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Tangkapan Layar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Berkas PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Status TAS: Berjalan %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Status TAS: Merekam %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Status TAS: Diam %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Status TAS: Tidak Valid</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Matikan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Mulai</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Berhenti Mer&amp;ekam</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>R&amp;ekam</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Membangun: %n shader(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Skala: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Kecepatan: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Kecepatan: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Permainan: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Frame: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU TINGGI</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EKSTRIM</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>KESALAHAN GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>NEAREST</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICUBIC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>TANPA AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5325,76 +5540,86 @@ This will delete your autogenerated key files and re-run the key derivation modu
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Kehilangan BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- Kehilangan BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- Kehilangan PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Apakah anda yakin ingin menutup yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5404,44 +5629,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL tidak tersedia!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Terjadi kesalahan menginisialisasi OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>VGA anda mungkin tidak mendukung OpenGL, atau anda tidak memiliki pemacu piranti (driver) grafis terbaharu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Terjadi kesalahan menginisialisasi OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>VGA anda mungkin tidak mendukung OpenGL 4.6, atau anda tidak memiliki pemacu piranti (driver) grafis terbaharu.&lt;br&gt;&lt;br&gt;Pemuat GL:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>VGA anda mungkin tidak mendukung satu atau lebih ekstensi OpenGL. Mohon pastikan bahwa anda memiliki pemacu piranti (driver) grafis terbaharu.&lt;br&gt;&lt;br&gt;Pemuat GL:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Ekstensi yang tidak didukung:&lt;br&gt;%2</translation>
</message>
@@ -5500,117 +5725,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Properti</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Bersihkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nama</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Kompatibilitas</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Pengaya (Add-On)</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Ukuran</translation>
</message>
@@ -5681,7 +5911,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation type="unfinished"/>
</message>
@@ -5694,12 +5924,12 @@ Would you like to bypass this and exit anyway?</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation type="unfinished"/>
</message>
@@ -5789,12 +6019,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5816,111 +6045,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Tangkapan Layar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Muat Berkas</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5943,7 +6173,7 @@ Debug Message: </source>
<translation>Install</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Install File ke NAND</translation>
</message>
@@ -5951,7 +6181,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation type="unfinished"/>
@@ -6025,51 +6255,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Pemain</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6599,7 +6834,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation type="unfinished"/>
</message>
@@ -6648,31 +6883,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[belum diatur]</translation>
</message>
@@ -6683,14 +6918,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation type="unfinished"/>
</message>
@@ -6701,263 +6936,321 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Kiri</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Kanan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Bawah</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Atas</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Mulai</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Gerakan %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Tambah</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Kurang</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Tangkapan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Sentuh</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
<translation type="unfinished"/>
</message>
</context>
@@ -7327,26 +7620,26 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7366,20 +7659,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Pengguna</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation type="unfinished"/>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7425,51 +7779,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation type="unfinished"/>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation type="unfinished"/>
</message>
@@ -7477,120 +7800,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation type="unfinished"/>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation type="unfinished"/>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation type="unfinished"/>
</message>
@@ -7598,7 +7911,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation type="unfinished"/>
</message>
diff --git a/dist/languages/it.ts b/dist/languages/it.ts
index b41728cb7..ab3aa7611 100644
--- a/dist/languages/it.ts
+++ b/dist/languages/it.ts
@@ -380,36 +380,61 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Dispositivo di output</translation>
+ <source>Output Device:</source>
+ <translation>Dispositivo di output:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Dispositivo di input</translation>
+ <source>Input Device:</source>
+ <translation>Dispositivo di input:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Modalità di output del suono:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Usa il volume globale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Imposta il volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Silenzia l&apos;audio quando la finestra è in background</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -922,102 +947,112 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<translation>Disabilita JIT macro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Quando l&apos;opzione è selezionata, disabilita le funzioni HLE delle macro. Abilitare questa opzione rende i giochi più lenti</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Disabilita HLE macro</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Debug</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Abilita log di accesso al FS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>Crea Minidump dopo un arresto anomalo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avanzate</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Modalità Kiosk (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Abilita il debug della CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Abilita le asserzioni di debug</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Abilita stub automatico**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Abilita tutti i tipi di controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Disabilita l&apos;applet web</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>Esegui controllo di Vulkan all&apos;avvio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**L&apos;opzione verrà automaticamente ripristinata alla chiusura di yuzu.</translation>
</message>
@@ -1032,12 +1067,12 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<translation>yuzu dev&apos;essere riavviato affinché questa opzione venga applicata.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Applet web non compilato</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>Creazione MiniDump non compilata</translation>
</message>
@@ -1087,78 +1122,78 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<translation>Configurazione di yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Debug</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Filesystem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Generale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafica</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Grafica avanzata</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Scorciatoie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Comandi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profili</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Rete</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Lista dei giochi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1333,46 +1368,36 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Layout di memoria esteso (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Richiedi conferma di uscire mentre l&apos;emulazione è in corso</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Richiedi utente all&apos;avvio di un gioco</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Metti in pausa l&apos;emulazione quando la finestra è in background</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Silenzia l&apos;audio quando la finestra è in background</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Nascondi il puntatore del mouse se inattivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Ripristina tutte le impostazioni</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Tutte le impostazioni verranno ripristinate e tutte le configurazioni dei giochi verranno rimosse. Le cartelle di gioco, i profili e i profili di input non saranno cancellati. Vuoi procedere?</translation>
</message>
@@ -1411,7 +1436,7 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Nessuno</translation>
</message>
@@ -1437,216 +1462,269 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Emulazione NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Nessun output video</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Decodifica video CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Decodifica video GPU (predefinita)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Modalità schermo intero:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Finestra senza bordi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Esclusivamente a schermo intero</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Rapporto d&apos;aspetto:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Predefinito (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Forza 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Forza 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>Forza 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Allunga a finestra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Risoluzione:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [SPERIMENTALE]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [SPERIMENTALE]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [SPERIMENTALE]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filtro di adattamento alla finestra:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Nearest neighbor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilineare</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicubico</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussiano</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (solo Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Metodo di anti-aliasing:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation>Usa la nitidezza FSR globale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation>Imposta la nitidezza FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation>Nitidezza FSR:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Usa il colore di sfondo globale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Imposta il colore di sfondo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Colore dello sfondo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (shader assembly, solo NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation>SPIR-V (sperimentale, solo Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1671,77 +1749,133 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<translation>Livello di accuratezza:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>Il VSync evita il tearing dello schermo, ma alcune schede video hanno prestazioni peggiori quando il VSync è abilitato. Lascialo abilitato se non noti una differenza nelle prestazioni.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Utilizza VSync</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Esegue del lavoro in background durante l&apos;attesa dei comandi grafici per evitare che la GPU diminuisca la sua velocità di clock.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Forza clock massimi (solo Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Abilita la decodifica asincrona delle texture ASTC, che può ridurre gli scatti durante il caricamento. Questa funzione è sperimentale.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Decodifica le texture ASTC in maniera asincrona (espediente)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Abilita la compilazione degli shader asincrona, che può ridurre gli scatti causati dagli shader. Questa funzione è sperimentale.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Utilizza la compilazione asincrona degli shader (espediente)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Utilizza la cache delle pipeline di Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Filtro anisotropico:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automatico</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Predefinito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1771,73 +1905,68 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<message>
<location filename="../../src/yuzu/configuration/configure_hotkeys.ui" line="52"/>
<source>Restore Defaults</source>
- <translation>Ripristina predefiniti</translation>
+ <translation>Ripristina predefinite</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Azione</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Scorciatoia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Scorciatoia del controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Sequenza di tasti in conflitto</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>La sequenza di tasti inserita è già assegnata a: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[in attesa]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Non valido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
- <translation>Ripristina predefinito</translation>
+ <translation>Ripristina predefinita</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Cancella</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Sequenza di pulsanti in conflitto</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>La sequenza di pulsanti predefinita è già assegnata a: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>La sequenza di tasti predefinita è già assegnata a: %1</translation>
</message>
@@ -2129,7 +2258,7 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Configura</translation>
</message>
@@ -2155,6 +2284,8 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Richiede il riavvio di yuzu</translation>
</message>
@@ -2174,22 +2305,42 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<translation>Navigazione con il controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Abilita il driver Joycon diretto</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Abilita il driver Pro Controller diretto [SPERIMENTALE]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Abilita il mouse panning</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Sensibilità del mouse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Movimento/tocco</translation>
</message>
@@ -2301,7 +2452,7 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Levetta sinistra</translation>
</message>
@@ -2395,14 +2546,14 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2421,7 +2572,7 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Più</translation>
</message>
@@ -2434,15 +2585,15 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2499,236 +2650,247 @@ Questo bannerà sia il suo nome utente del forum che il suo indirizzo IP.</trans
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Levetta destra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Cancella</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[non impost.]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Inverti pulsante</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Premi il pulsante</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Inverti asse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Imposta soglia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Scegli un valore compreso tra 0% e 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Mappa la levetta analogica</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Dopo aver premuto OK, prima muovi la levetta orizzontalmente, e poi verticalmente.
Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalmente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Centra asse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Zona morta: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Modifica raggio: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Due Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon sinistro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon destro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Portatile</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Controller GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poké Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Controller NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Controller SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Controller N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Avvia / Metti in pausa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Levetta di Controllo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>Levetta C</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Scuoti!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[in attesa]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Nuovo profilo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Inserisci un nome profilo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Crea un profilo di input</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Il nome profilo inserito non è valido!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Impossibile creare il profilo di input &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Elimina un profilo di input</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Impossibile eliminare il profilo di input &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Carica un profilo di input</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Impossibile caricare il profilo di input &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Salva un profilo di Input</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Impossibile creare il profilo di input &quot;%1&quot;</translation>
</message>
@@ -2776,7 +2938,7 @@ Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalme
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Configura</translation>
</message>
@@ -2793,7 +2955,7 @@ Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalme
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="91"/>
<source>You may use any Cemuhook compatible UDP input source to provide motion and touch input.</source>
- <translation>Dovresti utilizzare qualsiasi sorgente di ingresso UDP compatibile con Cemuhook per fornire input di movimento e tocco.</translation>
+ <translation>Puoi utilizzare una qualsiasi sorgente di ingresso UDP compatibile con Cemuhook per fornire input di movimento e tocco.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="134"/>
@@ -2812,7 +2974,7 @@ Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalme
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Test</translation>
</message>
@@ -2832,77 +2994,77 @@ Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalme
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Per saperne di più&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Il numero di porta contiene caratteri non validi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>La valore della porta deve essere compreso tra 0 e 65353 inclusi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>Indirizzo IP non valido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Questo server UDP esiste già</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Impossibile aggiungere più di 8 server</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Configurando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test riuscito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Ricevuti con successo dati dal server.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test fallito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Impossibile ricevere dati validi dal server.&lt;br&gt; Verificare che il server sia impostato correttamente e che indirizzo e porta siano corretti.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>È in corso il test UDP o la configurazione della calibrazione,&lt;br&gt; attendere che finiscano.</translation>
</message>
@@ -2983,47 +3145,47 @@ Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalme
<translation>Sviluppatore</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Add-on</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Generale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafica</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Grafica (Avanzate)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation>Profili di input</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Proprietà</translation>
</message>
@@ -3169,7 +3331,7 @@ Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalme
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="298"/>
<source>Error creating user image directory</source>
- <translation>Errore durante la creazione della cartella delle immagini dell&apos;utente</translation>
+ <translation>Impossibile creare la cartella delle immagini dell&apos;utente</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="299"/>
@@ -3189,7 +3351,7 @@ Per invertire gli assi, prima muovi la levetta verticalmente, e poi orizzontalme
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="314"/>
<source>Error resizing user image</source>
- <translation>Errore durante il ridimensionamento dell&apos;immagine utente</translation>
+ <translation>Impossibile ridimensionare l&apos;immagine utente</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="315"/>
@@ -3231,7 +3393,7 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3252,33 +3414,90 @@ UUID: %2</translation>
<translation>Zona morta: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Driver Joycon diretto</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Abilita Ring-Con</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Abilita</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Non connesso</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Ripristina valori predefiniti</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Cancella</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[non impost.]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Inverti asse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Zona morta: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Impossibile abilitare il Ring-Con</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Il driver Joycon diretto non è abilitato</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Configurando</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>L&apos;attuale dispositivo mappato non supporta il Ring-Con</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>L&apos;attuale dispositivo mappato non è collegato a un Ring-Con</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Risultato imprevisto del driver: %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[in attesa]</translation>
</message>
@@ -3583,8 +3802,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Inglese (English)</translation>
+ <source>American English</source>
+ <translation>Inglese americano</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3687,54 +3906,19 @@ UUID: %2</translation>
<translation>Nome del dispositivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID Console:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Modalità di output del sonoro</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Rigenera</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Le impostazioni di sistema sono disponibili solamente quando il gioco non è in esecuzione.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Questo rimpiazzerà la tua Switch virtuale con una nuova. La tua Switch virtuale non sarà recuperabile. Questo potrebbe avere effetti indesiderati nei giochi. Questo potrebbe fallire, se usi un salvataggio non aggiornato. Desideri continuare?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Attenzione</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID Console: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Attenzione: &quot;%1&quot; non è una lingua valida per la regione &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3777,7 +3961,7 @@ UUID: %2</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="77"/>
<source>Pause execution during loads</source>
- <translation type="unfinished"/>
+ <translation>Metti in pausa l&apos;esecuzione durante i caricamenti</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="91"/>
@@ -3803,7 +3987,7 @@ UUID: %2</translation>
<translation>Configurazione TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Seleziona la cartella di caricamento TAS...</translation>
</message>
@@ -4359,7 +4543,7 @@ Trascina i punti per cambiare posizione, oppure clicca due volte la cella in tab
<translation>Controller G1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Controller G1</translation>
</message>
@@ -4372,42 +4556,37 @@ Trascina i punti per cambiare posizione, oppure clicca due volte la cella in tab
<translation>Collegamento diretto</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>Indirizzo IP</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Indirizzo del server</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Indirizzo IPv4 dell&apos;host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Indirizzo del server dell&apos;host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Porta</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Numero della porta sulla quale l&apos;host è in ascolto&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Nickname</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Password</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Connetti</translation>
</message>
@@ -4415,12 +4594,12 @@ Trascina i punti per cambiare posizione, oppure clicca due volte la cella in tab
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Connessione in corso</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Connetti</translation>
</message>
@@ -4428,534 +4607,559 @@ Trascina i punti per cambiare posizione, oppure clicca due volte la cella in tab
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Vengono raccolti dati anonimi&lt;/a&gt; per aiutarci a migliorare yuzu. &lt;br/&gt;&lt;br/&gt;Desideri condividere i tuoi dati di utilizzo con noi?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetria</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>Rilevata installazione di Vulkan non funzionante</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>L&apos;inizializzazione di Vulkan è fallita durante l&apos;avvio.&lt;br&gt;&lt;br&gt;Clicca &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;qui per istruzioni su come risolvere il problema&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Caricamento dell&apos;applet web...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Disabilita l&apos;applet web</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Il numero di shaders al momento in costruzione</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Velocità corrente dell&apos;emulazione. Valori più alti o più bassi di 100% indicano che l&apos;emulazione sta funzionando più velocemente o lentamente rispetto a una Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Il numero di fotogrammi al secondo che il gioco visualizza attualmente. Può variare in base al gioco e alla situazione.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Tempo necessario per emulare un fotogramma della Switch, senza tenere conto del limite al framerate o del V-Sync. Per un&apos;emulazione alla massima velocità, il valore non dovrebbe essere superiore a 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Cancella i file recenti</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Continua</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pausa</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Formato del gioco obsoleto</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Stai usando una cartella con dentro una ROM decostruita come formato per avviare questo gioco, è un formato obsoleto ed è stato sostituito da altri come NCA, NAX, XCI o NSP. Le ROM decostruite non hanno icone, metadata e non supportano gli aggiornamenti. &lt;br&gt;&lt;br&gt;Per una spiegazione sui vari formati di Switch che yuzu supporta, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;controlla la nostra wiki&lt;/a&gt;. Questo messaggio non verrà più mostrato.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Errore nel caricamento della ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Il formato della ROM non è supportato.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>È stato riscontrato un errore nell&apos;inizializzazione del core video.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Errore nel caricamento della ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Segui &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;la guida introduttiva di yuzu&lt;/a&gt; per rifare il dump dei file.&lt;br&gt;Puoi fare riferimento alla wiki di yuzu&lt;/a&gt; o al server Discord di yuzu&lt;/a&gt; per assistenza.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Si è verificato un errore sconosciuto. Visualizza il log per maggiori dettagli.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation>Chiusura del software in corso...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Dati di salvataggio</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Dati delle mod</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
- <translation>Errore nell&apos;apertura della cartella %1</translation>
+ <translation>Impossibile aprire la cartella %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>La cartella non esiste!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
- <translation>Errore nell&apos;apertura della cache trasferibile degli shader</translation>
+ <translation>Impossibile aprire la cache trasferibile degli shader</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Impossibile creare la cartella della cache degli shader per questo titolo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation>Errore nella rimozione del contentuto</translation>
+ <translation>Impossibile rimuovere il contentuto</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation>Errore nella rimozione dell&apos;aggiornamento</translation>
+ <translation>Impossibile rimuovere l&apos;aggiornamento</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation>Errore nella rimozione del DLC</translation>
+ <translation>Impossibile rimuovere il DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation>Rimuovere il contenuto del gioco installato?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>Rimuovere l&apos;aggiornamento installato?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>Rimuovere il DLC installato?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Rimuovi voce</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Rimozione completata</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Il gioco base installato è stato rimosso con successo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Il gioco base non è installato su NAND e non può essere rimosso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Aggiornamento rimosso con successo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Non c&apos;è alcun aggiornamento installato per questo gioco.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Non c&apos;è alcun DLC installato per questo gioco.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>%1 DLC rimossi con successo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Vuoi rimuovere la cache trasferibile degli shader OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Vuoi rimuovere la cache trasferibile degli shader Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Vuoi rimuovere tutte le cache trasferibili degli shader?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Rimuovere la configurazione personalizzata del gioco?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Rimuovi file</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
- <translation>Errore nella rimozione della cache trasferibile degli shader</translation>
+ <translation>Impossibile rimuovere la cache trasferibile degli shader</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Per questo titolo non esiste una cache degli shader.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>La cache trasferibile degli shader è stata rimossa con successo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Impossibile rimuovere la cache trasferibile degli shader.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Impossibile rimuovere la cache delle pipeline del driver Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Impossibile rimuovere la cache delle pipeline del driver.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
- <translation>Errore nella rimozione delle cache trasferibili degli shader</translation>
+ <translation>Impossibile rimuovere le cache trasferibili degli shader</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Le cache trasferibili degli shader sono state rimosse con successo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Impossibile rimuovere la cartella della cache trasferibile degli shader.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
- <translation>Errore nella rimozione della configurazione personalizzata</translation>
+ <translation>Impossibile rimuovere la configurazione personalizzata</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Non esiste una configurazione personalizzata per questo gioco.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>La configurazione personalizzata del gioco è stata rimossa con successo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Impossibile rimuovere la configurazione personalizzata del gioco.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Estrazione RomFS fallita!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>C&apos;è stato un errore nella copia dei file del RomFS o l&apos;operazione è stata annullata dall&apos;utente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Completa</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Cartelle</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Seleziona la modalità di estrazione della RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Seleziona come vorresti estrarre la RomFS. &lt;br&gt;La modalità Completa copierà tutti i file in una nuova cartella mentre&lt;br&gt;la modalità Cartelle creerà solamente le cartelle e le sottocartelle.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Estrazione RomFS in corso...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Annulla</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Estrazione RomFS riuscita!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>L&apos;operazione è stata completata con successo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation>Crea scorciatoia</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation>Verrà creata una scorciatoia all&apos;AppImage attuale. Potrebbe non funzionare correttamente se effettui un aggiornamento. Vuoi continuare?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation>Impossibile creare la scorciatoia sul desktop. Il percorso &quot;%1&quot; non esiste.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation>Impossibile creare la scorciatoia nel menù delle applicazioni. Il percorso &quot;%1&quot; non esiste e non può essere creato.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation>Crea icona</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation>Impossibile creare il file dell&apos;icona. Il percorso &quot;%1&quot; non esiste e non può essere creato.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation>Avvia %1 con l&apos;emulatore yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation>Impossibile creare la scorciatoia in %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation>Scorciatoia creata con successo in %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
- <translation>Errore nell&apos;apertura di %1</translation>
+ <translation>Impossibile aprire %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Seleziona cartella</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Proprietà</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Non è stato possibile caricare le proprietà del gioco.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Eseguibile Switch (%1);;Tutti i file (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Carica file</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Apri cartella ROM estratta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Cartella selezionata non valida</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>La cartella che hai selezionato non contiene un file &quot;main&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>File installabili Switch (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Installa file</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n file rimanente</numerusform><numerusform>%n file rimanenti</numerusform><numerusform>%n file rimanenti</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Installazione del file &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Risultati dell&apos;installazione</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Per evitare possibli conflitti, sconsigliamo di installare i giochi base su NAND.
Usa questa funzione solo per installare aggiornamenti e DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n nuovo file è stato installato
@@ -4964,7 +5168,7 @@ Usa questa funzione solo per installare aggiornamenti e DLC.</translation>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n file è stato sovrascritto
@@ -4973,7 +5177,7 @@ Usa questa funzione solo per installare aggiornamenti e DLC.</translation>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n file non è stato installato a causa di errori
@@ -4982,378 +5186,389 @@ Usa questa funzione solo per installare aggiornamenti e DLC.</translation>
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Applicazione di sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Archivio di sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Aggiornamento di un&apos;applicazione di sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Pacchetto firmware (tipo A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Pacchetto firmware (tipo B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Gioco</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Aggiornamento di gioco</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Titolo delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Seleziona il tipo di installazione NCA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Seleziona il tipo del file NCA da installare:
(Nella maggior parte dei casi, il valore predefinito &apos;Gioco&apos; va bene.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Installazione fallita</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Il tipo che hai selezionato per l&apos;NCA non è valido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>File non trovato</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>File &quot;%1&quot; non trovato</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>Requisiti hardware non soddisfatti</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation>Il tuo sistema non soddisfa i requisiti hardware consigliati. La funzionalità di segnalazione della compatibilità è stata disattivata.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Account di yuzu non trovato</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Per segnalare la compatibilità di un gioco, devi collegare il tuo account yuzu. &lt;br&gt;&lt;br/&gt;Per collegare il tuo account yuzu, vai su Emulazione &amp;gt;
Configurazione &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
- <translation>Errore aprendo l&apos;URL</translation>
+ <translation>Impossibile aprire l&apos;URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
- <translation>Impossibile aprire l&apos;URL &quot;% 1&quot;.</translation>
+ <translation>Non è stato possibile aprire l&apos;URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Vuoi sovrascrivere il file del giocatore 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Trovata configurazione invalida</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Il controller portatile non può essere utilizzato in modalità dock. Verrà selezionato il controller Pro.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>L&apos;Amiibo corrente è stato rimosso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Errore</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>File Amiibo (%1);; Tutti i file (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Carica Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
- <translation>Errore nel caricamento dei dati dell&apos;Amiibo</translation>
+ <translation>Impossibile caricare i dati dell&apos;Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>Il file selezionato non è un Amiibo valido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>Il file selezionato è già in uso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>Si è verificato un errore sconosciuto</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Cattura screenshot</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Immagine PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Interrompi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Avvia</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Interrompi r&amp;egistrazione</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>R&amp;egistra</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Compilazione di %n shader</numerusform><numerusform>Compilazione di %n shader</numerusform><numerusform>Compilazione di %n shader</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
- <translation type="unfinished"/>
+ <translation>Risoluzione: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Velocità: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Velocità: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Gioco: %1 FPS (Sbloccati)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Gioco: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Frame: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMALE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU ALTA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU ESTREMA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>ERRORE GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>DOCK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>PORTATILE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>NEAREST</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEARE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICUBICO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIANO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>NO AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>VOLUME: MUTO</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>VOLUME: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Conferma ri-derivazione chiavi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5370,37 +5585,37 @@ e facoltativamente fai dei backup.
Questo eliminerà i tuoi file di chiavi autogenerati e ri-avvierà il processo di derivazione delle chiavi.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Fusi mancanti</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation> - BOOT0 mancante</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - BCPKG2-1-Normal-Main mancante</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- PRODINFO mancante</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Componenti di derivazione mancanti</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Chiavi di crittografia mancanti. &lt;br&gt;Segui &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;la guida introduttiva di yuzu&lt;/a&gt; per ottenere tutte le tue chiavi, il tuo firmware e i tuoi giochi.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5409,39 +5624,49 @@ Questa operazione potrebbe durare fino a un minuto in
base alle prestazioni del tuo sistema.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Derivazione chiavi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Seleziona Target dell&apos;Estrazione del RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Seleziona quale RomFS vorresti estrarre.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Sei sicuro di voler chiudere yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Sei sicuro di voler arrestare l&apos;emulazione? Tutti i progressi non salvati verranno perduti.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5453,44 +5678,44 @@ Desideri uscire comunque?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL non disponibile!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation>Gli shared context di OpenGL non sono supportati.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
- <translation>yuzu non è stato compilato con il supporto OpenGL.</translation>
+ <translation>yuzu è stato compilato senza il supporto a OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Errore durante l&apos;inizializzazione di OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>La tua GPU potrebbe non supportare OpenGL, o non hai installato l&apos;ultima versione dei driver video.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Errore durante l&apos;inizializzazione di OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>La tua GPU potrebbe non supportare OpenGL 4.6, o non hai installato l&apos;ultima versione dei driver video.&lt;br&gt;&lt;br&gt;Renderer GL:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>La tua GPU potrebbe non supportare una o più estensioni OpenGL richieste. Assicurati di aver installato i driver video più recenti.&lt;br&gt;&lt;br&gt;Renderer GL:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Estensioni non supportate:&lt;br&gt;%2</translation>
</message>
@@ -5549,117 +5774,122 @@ Desideri uscire comunque?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Rimuovi la cache delle pipeline OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Rimuovi la cache delle pipeline Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Rimuovi tutte le cache delle pipeline</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Rimuovi tutti i contenuti installati</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Estrai RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Estrai RomFS su SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Copia il Title ID negli Appunti</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Vai alla pagina di GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation>Crea scorciatoia</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation>Aggiungi al desktop</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation>Aggiungi al menù delle applicazioni</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Proprietà</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Scansiona le sottocartelle</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Rimuovi cartella dei giochi</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Sposta in alto</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Sposta in basso</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Apri cartella</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Cancella</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nome</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Compatibilità</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Add-on</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Tipo di file</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Dimensione</translation>
</message>
@@ -5674,7 +5904,7 @@ Desideri uscire comunque?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Game starts, but crashes or major glitches prevent it from being completed.</source>
- <translation>Il gioco parte, ma presenta degli arresti anomali o dei glitch importanti che ne impediscono il completamento.</translation>
+ <translation>Il gioco parte, ma non può essere completato a causa di arresti anomali o di glitch importanti.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
@@ -5730,7 +5960,7 @@ Desideri uscire comunque?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Clicca due volte per aggiungere una nuova cartella alla lista dei giochi</translation>
</message>
@@ -5743,12 +5973,12 @@ Desideri uscire comunque?</translation>
<translation><numerusform>%1 di %n risultato</numerusform><numerusform>%1 di %n risultati</numerusform><numerusform>%1 di %n risultati</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filtro:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Inserisci pattern per filtrare</translation>
</message>
@@ -5839,12 +6069,11 @@ Messaggio di debug:</translation>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>Attiva/disattiva l&apos;audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5866,111 +6095,112 @@ Messaggio di debug:</translation>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>Finestra principale</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>Abbassa il volume dell&apos;audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>Alza il volume dell&apos;audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Cattura screenshot</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>Cambia filtro di adattamento</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>Cambia modalità console</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>Cambia accuratezza GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Continua/Metti in pausa l&apos;emulazione</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Esci dalla modalità schermo intero</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>Esci da yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Schermo intero</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Carica file</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Carica/Rimuovi Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Riavvia l&apos;emulazione</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Arresta l&apos;emulazione</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>Registra TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>Reimposta TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>Avvia/interrompi TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>Mostra/nascondi la barra del filtro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>Attiva/disattiva il limite del framerate</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>Attiva/disattiva il mouse panning</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>Mostra/nascondi la barra di stato</translation>
</message>
@@ -5993,7 +6223,7 @@ Messaggio di debug:</translation>
<translation>Installa</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Installa file su NAND</translation>
</message>
@@ -6001,7 +6231,7 @@ Messaggio di debug:</translation>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>Il testo non può contenere i seguenti caratteri:
@@ -6076,51 +6306,56 @@ Messaggio di debug:</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Nascondi stanze vuote</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Nascondi stanze piene</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Aggiorna lobby</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Password richiesta per entrare</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Password:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Giocatori</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Nome stanza</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Gioco preferito</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Host</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Aggiornamento in corso</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Aggiorna lista</translation>
</message>
@@ -6657,7 +6892,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>AVVIA/PAUSA</translation>
</message>
@@ -6706,31 +6941,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[non impost.]</translation>
</message>
@@ -6741,14 +6976,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Asse %1%2</translation>
</message>
@@ -6759,264 +6994,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[sconosciuto]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Sinistra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Destra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Giù</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Su</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Cerchio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Croce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Quadrato</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Triangolo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Condividi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Opzioni</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[non valido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Asse %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Asse %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Pulsante %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[inutilizzato]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Levetta L</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Levetta R</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Più</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Meno</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Cattura</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Touch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Rotella</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Indietro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Avanti</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
+ <translation>Extra</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Pulsante %4</translation>
</message>
</context>
<context>
@@ -7385,28 +7678,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Codice di errore: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Si è verificato un errore.
Riprova o contatta gli sviluppatori del programma.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Si è verificato un errore su %1 a %2.
Riprova o contatta gli sviluppatori del programma.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7430,20 +7723,81 @@ Riprova o contatta gli sviluppatori del programma.</translation>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Seleziona un utente:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Utenti</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Selettore profili</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Seleziona un utente:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7493,51 +7847,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Stack chiamata</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>attende il mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>ha dei waiter: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>proprietario handle: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>attende tutti gli oggetti</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>attende uno dei seguenti oggetti</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>atteso da nessun thread</translation>
</message>
@@ -7545,120 +7868,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>eseguibile</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>in pausa</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>dormendo</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>attende una risposta dell&apos;IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>attende degli oggetti</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>aspettando la condition variable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>attende un indirizzo arbitro</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>in attesa di riprendere la sospensione</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>attendere</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>inizializzato</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>terminato</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>sconosciuto</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideale</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>core %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processore = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>core ideale = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>affinity mask = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id thread = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>priorità = %1(corrente) / %2(normale)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>Ultimi ticks in esecuzione = %1.</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>Non in attesa per la sincronizzazione dei processi concorrenti aka Mutex.</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>atteso dal thread</translation>
</message>
@@ -7666,7 +7979,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Wait Tree</translation>
</message>
diff --git a/dist/languages/ja_JP.ts b/dist/languages/ja_JP.ts
index 59f4aa738..282855584 100644
--- a/dist/languages/ja_JP.ts
+++ b/dist/languages/ja_JP.ts
@@ -380,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>出力デバイス</translation>
+ <source>Output Device:</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>入力デバイス</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>モノラル</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>ステレオ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>サラウンド</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>共通設定を使用</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>カスタム設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>音量:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>非アクティブ時にサウンドをミュート</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -513,7 +538,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="85"/>
<source>Unsafe CPU Optimization Settings</source>
- <translation>CPU最適化設定</translation>
+ <translation>不安定なCPU最適化設定</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="91"/>
@@ -808,12 +833,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;この最適化により、無効なメモリアクセスを成功させることで、メモリアクセスを高速化することができます。&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;有効にすると、すべてのメモリアクセスのオーバーヘッドが減少するうえ、無効なメモリにアクセスしないプログラムには影響はありません。&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>無効なメモリアクセスに対するフォールバックを有効にする</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -934,102 +962,112 @@ This would ban both their forum username and their IP address.</source>
<translation>Macro JITを無効化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>有効化すると、マクロHLE機能を無効にします。これを有効にすると、ゲームの動作が遅くなります</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Macro HLE を無効化</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>チェックすると、コンパイルしたパイプラインキャッシュの統計情報をロギングします</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>シェーダフィードバックの有効j化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>チェックすると、ループロジックを変更せずにシェーダーを実行します。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>ループ安全性チェックの無効化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>デバッグ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>詳細なレポートサービスの有効化**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>FSアクセスログの有効化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation>これを有効にすると、最新のオーディオコマンドリストがコンソールに出力されます。オーディオレンダラーを使用するゲームにのみ影響します。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>クラッシュ時にミニダンプを生成</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>高度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk (Quest) Mode</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>CPUデバッグの有効化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>デバッグアサートの有効化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>自動スタブの有効化**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>すべてのコントローラタイプを有効にする</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Webアプレットの無効化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation type="unfinished"/>
+ <translation>プログラム起動時にyuzuがVulkan環境が動作しているかどうかを確認するようにします。外部プログラムがyuzuを参照する際に問題がある場合は、これを無効にしてください。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
- <translation type="unfinished"/>
+ <translation>スタートアップ時にVulkanのチェックを実行する</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>** yuzuを終了したときに自動的にリセットされます。</translation>
</message>
@@ -1044,12 +1082,12 @@ This would ban both their forum username and their IP address.</source>
<translation>この設定を適用するには yuzu を再起動する必要があります.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>ウェブアプレットがコンパイルされていません</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1099,78 +1137,78 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzuの設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>サウンド</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>デバッグ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>ファイルシステム</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>全般</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>グラフィック</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>拡張グラフィック</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>ホットキー</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>操作</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>プロファイル</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>ネットワーク</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>システム</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>ゲームリスト</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1345,46 +1383,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>拡張メモリレイアウト(6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
- <translation>エミュレーション停止時に確認</translation>
+ <translation>エミュレーションの停止を確認</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>ゲーム起動時に確認を表示</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>非アクティブ時にエミュレーションを一時停止</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>非アクティブ時にサウンドをミュート</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>非アクティブ時にマウスカーソルを隠す</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>すべての設定をリセット</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>すべての設定がリセットされ、ゲームごとの設定もすべて削除されます。ゲームディレクトリ、プロファイル、入力プロファイルは削除されません。続行しますか?</translation>
</message>
@@ -1423,7 +1451,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>なし</translation>
</message>
@@ -1449,216 +1477,269 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>垂直同期:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC エミュレーション:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>ビデオ出力しない</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>ビデオをCPUでデコード</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>ビデオをGPUでデコード (デフォルト)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>全画面モード:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>ボーダーレスウィンドウ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>排他的フルスクリーン</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>アスペクト比:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>デフォルト (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
- <translation>強制的に 4:3 にする</translation>
+ <translation>強制 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
- <translation>強制的に 21:9 にする</translation>
+ <translation>強制 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
- <translation type="unfinished"/>
+ <translation>強制 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>ウィンドウに合わせる</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>解像度:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [実験的]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [実験的]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [実験的]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
- <translation>ウィンドウ アダプティング フィルター:</translation>
+ <translation>ウィンドウ アダプティング フィルター:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Nearest Neighbor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilinear</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicubic</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussian</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (Vulkan のみ)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>アンチエイリアス方式:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>共通設定を使用</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>FSR シャープネスを設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>FSR シャープネス:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>共通設定を使用</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>背景色の設定:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>背景色:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (アセンブリシェーダ、NVIDIA のみ)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (実験的, Mesa のみ)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1683,77 +1764,133 @@ This would ban both their forum username and their IP address.</source>
<translation>精度:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSyncは画面のちらつきを防ぎますが、一部のグラフィックカードではパフォーマンスが低下します。パフォーマンス低下を感じない限り、有効のままにしてください。</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>非同期プレゼンテーション (Vulkan のみ)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>GPUのクロックスピードを下げないように、グラフィックコマンドを待っている間、バックグラウンドで作業を実行させます。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>最大クロック強制 (Vulkan のみ)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>非同期ASTCテクスチャーデコードを有効にし、ロード時間のスタッターを減らすことができます。この機能は実験的なものです。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>VSyncを使用</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>ASTCテクスチャを非同期でデコードする(ハック)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>非同期でのシェーダーのコンパイルを有効にします。シェーダーのスタッターが減少する場合があります。この機能は実験的です。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>非同期でのシェーダー構築を使用 (ハック)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>高速なGPUタイミングを有効にします。このオプションは、ほとんどのゲームをその最高のネイティブ解像度で実行することを強制します。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
- <translation>高速なGPUタイミングを有効化(ハック)</translation>
+ <translation>高速なGPUタイミング(ハック)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>悲観的なバッファフラッシュを有効にします. このオプションは, 変更されていないバッファを強制的にフラッシュさせるので, パフォーマンスが低下する可能性があります.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>GPU ベンダー固有のパイプラインキャッシュを有効にします。このオプションは、Vulkanドライバがパイプラインキャッシュファイルを内部に保存していない場合に、シェーダのロード時間を大幅に改善することができます。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>悲観的なバッファフラッシュを使用 (ハック)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Vulkan パイプラインキャッシュを使用</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>異方性フィルタリング:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>自動</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>デフォルト</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1786,70 +1923,65 @@ This would ban both their forum username and their IP address.</source>
<translation>デフォルトに戻す</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>操作</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>ホットキー</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>コントローラホットキー</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>入力された組合せの衝突</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>入力された組合せは既に次の操作に割り当てられています:%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[入力待ち]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>無効</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>デフォルトに戻す</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>消去</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>ボタンが競合しています</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>デフォルトのボタン配列はすでに %1 に割り当てられています。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>デフォルトの組合せはすでに %1 に割り当てられています。</translation>
</message>
@@ -2141,7 +2273,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>設定</translation>
</message>
@@ -2167,6 +2299,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>yuzuの再起動が必要</translation>
</message>
@@ -2186,22 +2320,42 @@ This would ban both their forum username and their IP address.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>マウス感度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>モーション / タッチ</translation>
</message>
@@ -2221,47 +2375,47 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>入力プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー1 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー2 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー3 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー4 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー5 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー6 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー7 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー8 プロファイル</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
@@ -2271,7 +2425,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>プレイヤー%1 プロファイル</translation>
</message>
</context>
<context>
@@ -2313,7 +2467,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Lスティック</translation>
</message>
@@ -2407,14 +2561,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2433,7 +2587,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>+</translation>
</message>
@@ -2446,15 +2600,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2511,236 +2665,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Rスティック</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>クリア</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[未設定]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>ボタンを反転</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>軸を反転</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>しきい値を設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>0%から100%の間の値を選択してください</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>ジャイロのしきい値を設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>センサーを補正</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>アナログスティックをマップ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>OKを押した後、スティックを水平方向に動かし、次に垂直方向に動かしてください。
軸を反転させる場合、 最初に垂直方向に動かし、次に水平方向に動かしてください。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>デッドゾーン:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>変更範囲:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Proコントローラ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Joy-Con(L/R)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joy-Con(L)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joy-Con(R)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>携帯モード</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>ゲームキューブコントローラ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>モンスターボールプラス</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>ファミコン・コントローラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>スーパーファミコン・コントローラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>ニンテンドウ64・コントローラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>メガドライブ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>スタート/ ポーズ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>Cスティック</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>振ってください</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[待機中]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>新規プロファイル</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>プロファイル名を入力:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>入力プロファイルを作成</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>プロファイル名が無効です!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>入力プロファイル &quot;%1&quot; の作成に失敗しました</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>入力プロファイルを削除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>入力プロファイル &quot;%1&quot; の削除に失敗しました</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>入力プロファイルをロード</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>入力プロファイル &quot;%1&quot; のロードに失敗しました</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>入力プロファイルをセーブ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>入力プロファイル &quot;%1&quot; のセーブに失敗しました</translation>
</message>
@@ -2788,7 +2953,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>設定</translation>
</message>
@@ -2824,7 +2989,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>テスト</translation>
</message>
@@ -2844,77 +3009,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;さらに詳しく&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>ポート番号に無効な文字が含まれています</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>ポート番号は0から65353の間で設定してください</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IPアドレスが無効です</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>このUDPサーバはすでに存在してます</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>8個以上のサーバを追加することはできません</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>テスト中</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>設定中</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>テスト成功</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>サーバーからのデータ受信に成功しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>テスト失敗</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>有効なデータを受信できませんでした。&lt;br&gt;サーバーが正しくセットアップされ、アドレスとポートが正しいことを確認してください。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDPテストまたはキャリブレーション実行中です。&lt;br&gt;完了までお待ちください。</translation>
</message>
@@ -2995,47 +3160,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>開発元</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>アドオン</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>全般</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>システム</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>グラフィック</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>高度なグラフィック</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>サウンド</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>入力プロファイル</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>プロパティ</translation>
</message>
@@ -3214,7 +3379,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="332"/>
<source>Delete this user? All of the user&apos;s save data will be deleted.</source>
- <translation type="unfinished"/>
+ <translation>このユーザを削除しますか? このユーザのすべてのセーブデータが削除されます.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="344"/>
@@ -3225,7 +3390,8 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="360"/>
<source>Name: %1
UUID: %2</source>
- <translation type="unfinished"/>
+ <translation>名称: %1
+UUID: %2</translation>
</message>
</context>
<context>
@@ -3242,8 +3408,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>センサーパラメータ</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>仮想リングセンサー パラメータ</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3263,33 +3429,90 @@ UUID: %2</source>
<translation>デッドゾーン:0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>有効</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>接続なし</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>デフォルトに戻す</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>クリア</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[未設定]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>軸を反転</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>デッドゾーン:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>設定中</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[入力待ち]</translation>
</message>
@@ -3590,92 +3813,92 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="324"/>
<source>Japanese (日本語)</source>
- <translation>Japanese (日本語)</translation>
+ <translation>日本語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>English</translation>
+ <source>American English</source>
+ <translation>アメリカ英語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
<source>French (français)</source>
- <translation>French (français)</translation>
+ <translation>フランス語 (français)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="339"/>
<source>German (Deutsch)</source>
- <translation>German (Deutsch)</translation>
+ <translation>ドイツ語 (Deutsch)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="344"/>
<source>Italian (italiano)</source>
- <translation>Italian (italiano)</translation>
+ <translation>イタリア語 (italiano)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="349"/>
<source>Spanish (español)</source>
- <translation>Spanish (español)</translation>
+ <translation>スペイン語 (español)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="354"/>
<source>Chinese</source>
- <translation>Chinese</translation>
+ <translation>中国語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="359"/>
<source>Korean (한국어)</source>
- <translation>Korean (한국어)</translation>
+ <translation>韓国語 (한국어)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="364"/>
<source>Dutch (Nederlands)</source>
- <translation>Dutch (Nederlands)</translation>
+ <translation>オランダ語 (Nederlands)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="369"/>
<source>Portuguese (português)</source>
- <translation>Portuguese (português)</translation>
+ <translation>ポルトガル語 (português)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="374"/>
<source>Russian (Русский)</source>
- <translation>Russian (Русский)</translation>
+ <translation>ロシア語 (Русский)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="379"/>
<source>Taiwanese</source>
- <translation>Taiwanese</translation>
+ <translation>台湾語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="384"/>
<source>British English</source>
- <translation>British English</translation>
+ <translation>イギリス英語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="389"/>
<source>Canadian French</source>
- <translation>Canadian French</translation>
+ <translation>カナダフランス語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="394"/>
<source>Latin American Spanish</source>
- <translation>Latin American Spanish</translation>
+ <translation>ラテンアメリカスペイン語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="399"/>
<source>Simplified Chinese</source>
- <translation>Simplified Chinese</translation>
+ <translation>簡体字中国語</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="404"/>
<source>Traditional Chinese (正體中文)</source>
- <translation>Traditional Chinese (正體中文)</translation>
+ <translation>繁体字中国語 (正體中文)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="409"/>
<source>Brazilian Portuguese (português do Brasil)</source>
- <translation>Brazilian Portuguese (português do Brasil)</translation>
+ <translation>ブラジルポルトガル語 (português do Brasil)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="417"/>
@@ -3695,57 +3918,22 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
+ <translation>デバイス名</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>モノラル</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>不安定な拡張メモリレイアウト (8GB DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>ステレオ</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>サラウンド</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>コンソールID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>サウンド出力モード</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>再作成</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>システム設定はゲーム未実行時にのみ変更できます。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>仮想Switchコンソールを再作成しようとしています。現在使用中の仮想Switchコンソールを後から復旧させることはできません。ゲームに予期せぬ影響を与える可能性があり、古い設定などを使うと失敗するかもしれませんが、それでも続行しますか?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>警告</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>コンソールID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3814,7 +4002,7 @@ UUID: %2</source>
<translation>TAS 設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>TAS ロードディレクトリを選択...</translation>
</message>
@@ -4054,7 +4242,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="82"/>
<source>Show Compatibility List</source>
- <translation type="unfinished"/>
+ <translation>互換性リストを表示</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="89"/>
@@ -4064,12 +4252,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="96"/>
<source>Show Size Column</source>
- <translation type="unfinished"/>
+ <translation>サイズ列を表示</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="103"/>
<source>Show File Types Column</source>
- <translation type="unfinished"/>
+ <translation>ファイルタイプ列を表示</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="112"/>
@@ -4370,7 +4558,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>Controller P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Controller P1</translation>
</message>
@@ -4383,42 +4571,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>ダイレクト接続</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IPアドレス</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>サーバアドレス</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;ホストのIPv4アドレス&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>ポート</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;ホストの待ち受けポート番号&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>ニックネーム</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>パスワード</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>接続</translation>
</message>
@@ -4426,12 +4609,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>接続中</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>接続</translation>
</message>
@@ -4439,926 +4622,962 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
- <translation>yuzuを改善するための&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;匿名データが収集されました&lt;/a&gt;。&lt;br/&gt;&lt;br/&gt;統計情報データを共有しますか?</translation>
+ <translation>yuzuの改善に役立てるため、&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;匿名データが収集されます&lt;/a&gt;。&lt;br/&gt;&lt;br/&gt;統計情報を共有しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>テレメトリ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>壊れたVulkanのインストールが検出されました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
- <translation>ブート時にVulkanの初期化に失敗しました。&lt;br&gt;&lt;br&gt;この問題を解決するための手順は&lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;こちら&lt;/a&gt;。</translation>
+ <translation>起動時にVulkanの初期化に失敗しました。&lt;br&gt;&lt;br&gt;この問題を解決するための手順は&lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;こちら&lt;/a&gt;。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Webアプレットをロード中...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Webアプレットの無効化</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>Webアプレットを無効にすると、未定義の動作になる可能性があるため、スーパーマリオ3Dオールスターズでのみ使用するようにしてください。本当にWebアプレットを無効化しますか?
(デバッグ設定で再度有効にすることができます)。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>ビルド中のシェーダー数</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>現在選択されている解像度の倍率。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>現在のエミュレーション速度。値が100%より高いか低い場合、エミュレーション速度がSwitchより速いか遅いことを示します。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>ゲームが現在表示している1秒あたりのフレーム数。これはゲームごと、シーンごとに異なります。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Switchフレームをエミュレートするのにかかる時間で、フレームリミットやV-Syncは含まれません。フルスピードエミュレーションの場合、最大で16.67ミリ秒になります。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>最近のファイルをクリア(&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>再開(&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>中断(&amp;P)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzuはゲームを起動しています</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>古いゲームフォーマットの警告</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>このゲームでは、分解されたROMディレクトリフォーマットを使用しています。これは、NCA、NAX、XCI、またはNSPなどに取って代わられた古いフォーマットです。分解されたROMディレクトリには、アイコン、メタデータ、およびアップデートサポートがありません。&lt;br&gt;&lt;br&gt;yuzuがサポートするSwitchフォーマットの説明については、&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;wikiをチェックしてください&lt;/a&gt;。このメッセージは二度と表示されません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>ROMロード中にエラーが発生しました!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>このROMフォーマットはサポートされていません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>ビデオコア初期化中にエラーが発生しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzuは、ビデオコアの実行中にエラーが発生しました。これは通常、内蔵GPUも含め、古いGPUドライバが原因です。詳しくはログをご覧ください。ログへのアクセス方法については、以下のページをご覧ください:&lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;ログファイルのアップロード方法について&lt;/a&gt;。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>ROMのロード中にエラー! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzuクイックスタートガイド&lt;/a&gt;を参照してファイルを再ダンプしてください。&lt;br&gt;またはyuzu wiki及び&lt;/a&gt;yuzu Discord&lt;/a&gt;を参照するとよいでしょう。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>不明なエラーが発生しました。詳細はログを確認して下さい。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>データのセーブ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Modデータ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>”%1”フォルダを開けませんでした</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>フォルダが存在しません!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>シェーダキャッシュを開けませんでした</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>このタイトル用のシェーダキャッシュディレクトリの作成に失敗しました</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>コンテンツの削除エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation type="unfinished"/>
+ <translation>アップデートの削除エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation type="unfinished"/>
+ <translation>DLC の削除エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>インストールされたゲームのコンテンツを削除しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation type="unfinished"/>
+ <translation>インストールされたゲームのアップデートを削除しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
- <translation type="unfinished"/>
+ <translation>インストールされたゲームの DLC を削除しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>エントリ削除</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>削除しました</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>インストールされたゲームを正常に削除しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>ゲームはNANDにインストールされていないため、削除できません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>インストールされたアップデートを正常に削除しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>このタイトルのアップデートはインストールされていません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>このタイトルにはDLCがインストールされていません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>%1にインストールされたDLCを正常に削除しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>転送可能なOpenGLシェーダキャッシュを削除しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>転送可能なVulkanシェーダキャッシュを削除しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>転送可能なすべてのシェーダキャッシュを削除しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>このタイトルのカスタム設定を削除しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>ファイル削除</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>転送可能なシェーダーキャッシュの削除エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>このタイトル用のシェーダキャッシュは存在しません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>転送可能なシェーダーキャッシュが正常に削除されました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>転送可能なシェーダーキャッシュを削除できませんでした。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>転送可能なシェーダキャッシュの削除エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>転送可能なシェーダキャッシュを正常に削除しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>転送可能なシェーダキャッシュディレクトリの削除に失敗しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>カスタム設定の削除エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>このタイトルのカスタム設定は存在しません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>カスタム設定を正常に削除しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>カスタム設定の削除に失敗しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
- <translation>RomFSの解析に失敗しました!</translation>
+ <translation>RomFSの抽出に失敗しました!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>RomFSファイルをコピー中にエラーが発生したか、ユーザー操作によりキャンセルされました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>フル</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>スケルトン</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>RomFSダンプモードの選択</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>RomFSのダンプ方法を選択してください。&lt;br&gt;”完全”はすべてのファイルが新しいディレクトリにコピーされます。&lt;br&gt;”スケルトン”はディレクトリ構造を作成するだけです。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>%1 に RomFS を展開するための十分な空き領域がありません。Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root で、空き容量を確保するか、別のダンプディレクトリを選択してください。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
- <translation>RomFSを解析中...</translation>
+ <translation>RomFSを抽出中...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>キャンセル</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
- <translation>RomFS解析成功!</translation>
+ <translation>RomFS抽出成功!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>操作は成功しました。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>ショートカットを作成</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>アイコンを作成</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>”%1”を開けませんでした</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>ディレクトリの選択</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>プロパティ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>ゲームプロパティをロード出来ませんでした。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch実行ファイル (%1);;すべてのファイル (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>ファイルのロード</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>展開されているROMディレクトリを開く</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>無効なディレクトリが選択されました</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>選択されたディレクトリに”main”ファイルが見つかりませんでした。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>インストール可能なスイッチファイル (*.nca *.nsp *.xci);;任天堂コンテンツアーカイブ (*.nca);;任天堂サブミッションパッケージ (*.nsp);;NXカートリッジイメージ (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>ファイルのインストール</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>残り %n ファイル</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>&quot;%1&quot;ファイルをインストールしています・・・</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>インストール結果</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>競合を避けるため、NANDにゲーム本体をインストールすることはお勧めしません。
この機能は、アップデートやDLCのインストールにのみ使用してください。</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n ファイルが新たにインストールされました
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n ファイルが上書きされました
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n ファイルのインストールに失敗しました
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>システムアプリケーション</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>システムアーカイブ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>システムアプリケーションアップデート</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>ファームウェアパッケージ(Type A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>ファームウェアパッケージ(Type B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>ゲーム</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>ゲームアップデート</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>ゲームDLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>差分タイトル</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>NCAインストール種別を選択・・・</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>インストールするNCAタイトル種別を選択して下さい:
(ほとんどの場合、デフォルトの”ゲーム”で問題ありません。)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>インストール失敗</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>選択されたNCAのタイトル種別が無効です。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>ファイルが存在しません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>ファイル”%1”が存在しません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>yuzuアカウントが存在しません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>ゲームの互換性テストケースを送信するには、yuzuアカウントをリンクする必要があります。&lt;br&gt;&lt;br/&gt;yuzuアカウントをリンクするには、エミュレーション > 設定 > Web から行います。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>URLオープンエラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>URL&quot;%1&quot;を開けません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation> TAS 記録中</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>プレイヤー1のファイルを上書きしますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>無効な設定を検出しました</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>携帯コントローラはドックモードで使用できないため、Proコントローラが選択されます。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>現在の amiibo は削除されました</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>現在のゲームはamiiboを要求しません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>amiiboファイル (%1);;すべてのファイル (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>amiiboのロード</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>amiiboデータ読み込み中にエラーが発生しました</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>スクリーンショットのキャプチャ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG画像 (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>TAS 状態: 実行中 %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>TAS 状態: 記録中 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>TAS 状態: アイドル %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>TAS 状態: 無効</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>実行停止(&amp;S)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>実行(&amp;S)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>記録停止(&amp;R)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>記録(&amp;R)</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
- <translation><numerusform>構築中: %n シェーダー</numerusform></translation>
+ <translation><numerusform>構築中: %n 個のシェーダー</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>拡大率: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>速度:%1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>速度:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Game: %1 FPS(制限解除)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>ゲーム:%1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>フレーム:%1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU HIGH</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTREME</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU ERROR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>DOCKED</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>HANDHELD</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>NEAREST</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICUBIC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>NO AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>音量: ミュート</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>音量: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>キーの再取得確認</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5375,37 +5594,37 @@ This will delete your autogenerated key files and re-run the key derivation modu
実行すると、自動生成された鍵ファイルが削除され、鍵生成モジュールが再実行されます。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>ヒューズがありません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation> - BOOT0がありません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - BCPKG2-1-Normal-Mainがありません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - PRODINFOがありません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>派生コンポーネントがありません</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>暗号化キーがありません。&lt;br&gt;キー、ファームウェア、ゲームを取得するには&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu クイックスタートガイド&lt;/a&gt;を参照ください。&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5414,39 +5633,49 @@ on your system&apos;s performance.</source>
1分以上かかります。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>派生キー</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>RomFSダンプターゲットの選択</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>ダンプしたいRomFSを選択して下さい。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>yuzuを終了しますか?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>エミュレーションを停止しますか?セーブされていない進行状況は失われます。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5458,44 +5687,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGLは使用できません!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzuはOpenGLサポート付きでコンパイルされていません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>OpenGL初期化エラー</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>GPUがOpenGLをサポートしていないか、グラフィックスドライバーが最新ではありません。</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>OpenGL4.6初期化エラー!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>GPUがOpenGL4.6をサポートしていないか、グラフィックスドライバーが最新ではありません。&lt;br&gt;&lt;br&gt;GL レンダラ:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>GPUが1つ以上の必要なOpenGL拡張機能をサポートしていない可能性があります。最新のグラフィックドライバを使用していることを確認してください。&lt;br&gt;&lt;br&gt;GL レンダラ:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;サポートされていない拡張機能:&lt;br&gt;%2</translation>
</message>
@@ -5554,117 +5783,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>OpenGLパイプラインキャッシュを削除</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Vulkanパイプラインキャッシュを削除</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>すべてのパイプラインキャッシュを削除</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>全てのインストールされているコンテンツを削除</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>RomFSをダンプ</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>RomFSをSDMCにダンプ</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>タイトルIDをクリップボードへコピー</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>GameDBエントリを表示</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>ショートカットを作成</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>デスクトップに追加</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>アプリケーションメニューに追加</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>プロパティ</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>サブフォルダをスキャンする</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>ゲームディレクトリを削除する</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ 上へ移動</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ 下へ移動</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>ディレクトリの場所を開く</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>クリア</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>ゲーム名</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>互換性</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>アドオン</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>ファイル種別</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>ファイルサイズ</translation>
</message>
@@ -5694,7 +5928,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Playable</source>
- <translation type="unfinished"/>
+ <translation>プレイ可</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
@@ -5735,7 +5969,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>新しいゲームリストフォルダを追加するにはダブルクリックしてください。</translation>
</message>
@@ -5748,12 +5982,12 @@ Would you like to bypass this and exit anyway?</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>フィルター:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>フィルターパターンを入力</translation>
</message>
@@ -5773,7 +6007,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="51"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>優先ゲーム</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="61"/>
@@ -5808,7 +6042,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
<source>Load Previous Ban List</source>
- <translation type="unfinished"/>
+ <translation>以前の BAN リストをロード</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="184"/>
@@ -5844,12 +6078,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>音声ミュート/解除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5871,111 +6104,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>メイン画面</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>音量を下げる</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>音量を上げる</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>スクリーンショットを撮る</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>アダプティングフィルターの変更</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>ドックモードを変更</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>GPU精度を変更</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>エミュレーションの一時停止/再開</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>フルスクリーンをやめる</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>yuzuを終了</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>フルスクリーン</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>ファイルのロード</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>読み込み/解除 Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>エミュレーションをリスタート</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>エミュレーションをやめる</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>TAS 記録</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>TAS リセット</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>TAS 開始/停止</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>フィルタバー切り替え</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>フレームレート制限切り替え</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>ステータスバー切り替え</translation>
</message>
@@ -5998,7 +6232,7 @@ Debug Message: </source>
<translation>インストール</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>ファイルをNANDへインストール</translation>
</message>
@@ -6006,7 +6240,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>テキストに以下の文字を含めることはできません:
@@ -6081,51 +6315,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>空のルームを隠す</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>満室のルームを隠す</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>ロビー更新</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>参加にはパスワードが必要です。</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>パスワード:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>プレイヤー</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>ルーム名</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>優先ゲーム</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>ホスト</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>更新中</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>リスト更新</translation>
</message>
@@ -6200,7 +6439,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="127"/>
<source>&amp;Multiplayer</source>
- <translation type="unfinished"/>
+ <translation>マルチプレイヤー (&amp;M)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="138"/>
@@ -6290,27 +6529,27 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="270"/>
<source>&amp;Browse Public Game Lobby</source>
- <translation type="unfinished"/>
+ <translation>公開ゲームロビーを参照 (&amp;B)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="278"/>
<source>&amp;Create Room</source>
- <translation type="unfinished"/>
+ <translation>ルームを作成 (&amp;C)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="286"/>
<source>&amp;Leave Room</source>
- <translation type="unfinished"/>
+ <translation>ルームを退出 (&amp;L)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="291"/>
<source>&amp;Direct Connect to Room</source>
- <translation type="unfinished"/>
+ <translation>ルームに直接接続 (&amp;D)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="299"/>
<source>&amp;Show Current Room</source>
- <translation type="unfinished"/>
+ <translation>現在のルームを表示 (&amp;S)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="307"/>
@@ -6662,7 +6901,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>スタート/ ポーズ</translation>
</message>
@@ -6711,31 +6950,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[未設定]</translation>
</message>
@@ -6746,16 +6985,16 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
- <translation>軸 %1%2</translation>
+ <translation>スティック %1%2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="60"/>
@@ -6764,264 +7003,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[不明]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>左</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>右</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>下</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>上</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>開始</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>マル</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>バツ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>四角</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>三角</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Share</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Options</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[未定義]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[無効]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2ボタン %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[未使用]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>L スティック</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>R スティック</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>+</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>HOME</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>キャプチャ</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>タッチの設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>ホイール</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>後ろ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>前</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7029,17 +7326,17 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="14"/>
<source>Amiibo Settings</source>
- <translation type="unfinished"/>
+ <translation>Amiibo 設定</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="169"/>
<source>Amiibo Info</source>
- <translation type="unfinished"/>
+ <translation>Amiibo 情報</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="177"/>
<source>Series</source>
- <translation type="unfinished"/>
+ <translation>シリーズ</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="197"/>
@@ -7054,7 +7351,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="242"/>
<source>Amiibo Data</source>
- <translation type="unfinished"/>
+ <translation>Amiibo データ</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="250"/>
@@ -7069,32 +7366,32 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="290"/>
<source>Creation Date</source>
- <translation type="unfinished"/>
+ <translation>作成日時</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="307"/>
<source>dd/MM/yyyy</source>
- <translation type="unfinished"/>
+ <translation>yyyy/MM/dd</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="314"/>
<source>Modification Date</source>
- <translation type="unfinished"/>
+ <translation>更新日時</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="331"/>
<source>dd/MM/yyyy </source>
- <translation type="unfinished"/>
+ <translation>yyyy/MM/dd</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="349"/>
<source>Game Data</source>
- <translation type="unfinished"/>
+ <translation>ゲームデータ</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="355"/>
<source>Game Id</source>
- <translation type="unfinished"/>
+ <translation>ゲームID</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="384"/>
@@ -7109,7 +7406,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="413"/>
<source>File Path</source>
- <translation type="unfinished"/>
+ <translation>ファイルパス</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="191"/>
@@ -7390,28 +7687,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>エラーコード: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>エラーが発生しました。
もう一度試すか、開発者に報告してください。</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>%1の%2でエラーが発生しました。
再試行するか、ソフトウェアの開発者に連絡してください。</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7435,20 +7732,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>ユーザー選択:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>ユーザー</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>プロファイル選択</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>ユーザー選択:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7498,51 +7856,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Call stack</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>waiting for mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>has waiters: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>owner handle: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>waiting for all objects</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>waiting for one of the following objects</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>waited by no thread</translation>
</message>
@@ -7550,120 +7877,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>runnable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>paused</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>sleeping</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>waiting for IPC reply</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>waiting for objects</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>waiting for condition variable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>waiting for address arbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>waiting for suspend resume</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>waiting</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>initialized</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>terminated</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>unknown</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>core %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>ideal core = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>affinity mask = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>thread id = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>priority = %1(current) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>last running ticks = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>not waiting for mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>waited by thread</translation>
</message>
@@ -7671,7 +7988,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Wait Tree</translation>
</message>
diff --git a/dist/languages/ko_KR.ts b/dist/languages/ko_KR.ts
index 120ec1c21..573d5e77b 100644
--- a/dist/languages/ko_KR.ts
+++ b/dist/languages/ko_KR.ts
@@ -380,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>출력 장치</translation>
+ <source>Output Device:</source>
+ <translation>출력 장치:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>입력 장치</translation>
+ <source>Input Device:</source>
+ <translation>입력 장치:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>소리 출력 모드:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>모노</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>스테레오</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>서라운드</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>전역 볼륨 설정 사용</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>볼륨 설정:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>볼륨:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>백그라운드에서 오디오 음소거</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -809,12 +834,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;이 최적화는 유효하지 않은 메모리 접속에 성공하도록 허용하여 메모리 접속 속도를 높입니다.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;이를 활성화하면 모든 메모리 접속의 오버헤드가 줄어들고 유효하지 않은 메모리에 접속하지 않는 프로그램에는 영향을 미치지 않습니다.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>유효하지 않은 메모리 접속에 대한 폴백 활성화</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -935,102 +963,112 @@ This would ban both their forum username and their IP address.</source>
<translation>Macro JIT 비활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>선택하면 매크로 HLE 기능이 비활성화됩니다. 이 기능을 활성화하면 게임 실행 속도가 느려짐</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>매크로 HLE 비활성화</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>선택하면 yuzu는 컴파일된 파이프라인 캐시에 대한 통계를 기록합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>셰이더 피드백 활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>체크 시 루프 로직 변경 없이 셰이더 실행</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>루프 안전 검사 비활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>디버깅</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>자세한 리포팅 서비스 활성화**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>FS 액세스 로그 활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation>이 옵션을 활성화하면 가장 최근에 생성된 오디오 명령어 목록을 콘솔에 출력할 수 있습니다. 오디오 렌더러를 사용하는 게임에만 영향을 줍니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation>콘솔에 오디오 명령어 덤프</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>충돌후 미니덤프 생성</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>고급</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk (Quest) 모드</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>CPU 디버깅 활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>디버그 에러 검출 활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>자동 스텁 활성화**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>모든 컨트롤러 유형 활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>웹 애플릿 비활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>프로그램 시작시 yuzu가 Vulkan 환경을 확인할 수 있도록 합니다. 외부 프로그램에서 유자를 보는 데 문제가 있는 경우 이 기능을 비활성화합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>시작시 Vulkan 검사 수행</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Yuzu가 종료되면 자동으로 재설정됩니다.</translation>
</message>
@@ -1045,12 +1083,12 @@ This would ban both their forum username and their IP address.</source>
<translation>이 설정을 적용하려면 yuzu를 다시 시작해야 합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>웹 애플릿이 컴파일되지 않음</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>MiniDump 생성이 컴파일되지 않음</translation>
</message>
@@ -1100,78 +1138,78 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzu 설정</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>오디오</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>디버그</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>파일 시스템</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>일반</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>그래픽</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>그래픽 고급</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>단축키</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>조작</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>프로필</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>네트워크</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>시스템</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>게임 목록</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>웹</translation>
</message>
@@ -1346,46 +1384,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>확장 메모리 레이아웃(6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>에뮬레이터가 작동 중일 때 종료 시 확인</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>게임 부팅시 유저 선택 화면 표시</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>백그라운드에 있을 시 에뮬레이션 일시중지</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>백그라운드에서 오디오 음소거</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>비활성 상태일 때 마우스 숨기기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>모든 설정 초기화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>모든 환경 설정과 게임별 맞춤 설정이 초기화됩니다. 게임 디렉토리나 프로필, 또는 입력 프로필은 삭제되지 않습니다. 진행하시겠습니까?</translation>
</message>
@@ -1424,7 +1452,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>없음</translation>
</message>
@@ -1450,216 +1478,269 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>VSync 모드:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC 에뮬레이션:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>비디오 출력 없음</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>CPU 비디오 디코딩</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>GPU 비디오 디코딩(기본값)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>전체 화면 모드:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>경계 없는 창 모드</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>독점 전체화면 모드</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>화면비:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>기본 (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>강제 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>강제 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>강제 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>창에 맞게 늘림</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>해상도:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [실험적]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [실험적]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [실험적]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>윈도우 적응형 필터:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Nearest Neighbor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>이중선형</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>고등차수보간</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>가우시안</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ 슈퍼 해상도 (Vulkan 전용)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>안티에일리어싱 방식:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation>글로벌 FSR 선명도 사용</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation>FSR 선명도 설정</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation>FSR 선명도:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>전역 배경색 사용</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>배경색 설정:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>배경색:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM(어셈블리 셰이더, NVIDIA 전용)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (실험적, Mesa 전용)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1684,77 +1765,134 @@ This would ban both their forum username and their IP address.</source>
<translation>정확도 수준:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>수직 동기화는 화면 찢어짐 현상을 예방하지만, 몇몇의 그래픽카드는 수직 동기화로 인해 성능이 감소합니다. 성능의 변화를 느끼지 않는다면 활성화하는 것이 좋습니다.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>ASTC 재압축:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>수직 동기화 사용</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>비압축(최고 품질)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1(저품질)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3(중간 품질)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>비동기 프레젠테이션 활성화(Vulkan만 해당)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>실행은 GPU가 클럭 속도를 낮추지 않도록 그래픽 명령을 기다리는 동안 백그라운드에서 작동합니다.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>강제 최대 클록 (Vulkan 전용)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>로드 시간 끊김을 줄일 수 있는 비동기 ASTC 텍스처 디코딩을 활성화합니다. 이 기능은 실험적입니다.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>ASTC 텍스처를 비동기식으로 디코딩(해킹)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>예측 플러싱 대신 반응형 플러싱 를 사용합니다. 보다 정확한 메모리 동기화를 허용합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>반응형 플러싱 활성화</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>비동기 셰이더 컴파일을 활성화하여 셰이더의 버벅임을 감소시킬 수 있습니다. 이 기능은 실험적 기능입니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>비동기식 셰이더 빌드 사용(Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>빠른 GPU 시간을 활성화합니다. 이 옵션을 사용하면 대부분의 게임이 가장 높은 기본 해상도에서 실행됩니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>빠른 GPU 시간 사용(Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>비관적 버퍼 플러시를 활성화합니다. 이 옵션은 수정되지 않은 버퍼를 강제로 비우므로 성능이 저하될 수 있습니다.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>GPU 공급업체별 파이프라인 캐시를 활성화합니다. 이 옵션은 Vulkan 드라이버가 파이프라인 캐시 파일을 내부에 저장하지 않는 경우 셰이더 로딩 시간을 크게 개선할 수 있습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>비관적 버퍼 플러시 사용(Hack)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Vulkan 파이프라인 캐시 사용</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>일부 게임에 필요한 컴퓨팅 파이프라인을 활성화합니다. 이 설정은 인텔 독점 드라이버에만 존재하며 활성화된 경우 충돌이 발생할 수 있습니다.
+컴퓨팅 파이프라인은 다른 모든 드라이버에서 항상 활성화됩니다.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>컴퓨팅 파이프라인 활성화(Intel Vulkan만 해당)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>비등방성 필터링:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>자동</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>기본값</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1787,70 +1925,65 @@ This would ban both their forum username and their IP address.</source>
<translation>초기화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>액션</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>단축키</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>컨트롤러 단축키</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>키 시퀀스 충돌</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>입력한 키 시퀀스가 %1에 이미 할당되었습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[대기중]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>유효하지않음</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>초기화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>비우기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>키 시퀀스 충돌</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>기본 키 시퀀스가 %1에 이미 할당되었습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>기본 키 시퀀스가 %1에 이미 할당되었습니다.</translation>
</message>
@@ -2142,7 +2275,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>설정</translation>
</message>
@@ -2168,6 +2301,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>yuzu를 다시 시작해야 합니다.</translation>
</message>
@@ -2187,22 +2322,42 @@ This would ban both their forum username and their IP address.</source>
<translation>컨트롤러 탐색</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>다이렉트 JoyCon 드라이버 활성화</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>다이렉트 Pro 컨트롤러 드라이버 활성화[실험적] </translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>마우스 패닝 활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>마우스 감도</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>모션 컨트롤/ 터치</translation>
</message>
@@ -2222,57 +2377,57 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>입력 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 1 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 2 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 3 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 4 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 5 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 6 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 7 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 8 프로파일</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>글로벌 입력 구성 사용</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>플레이어 %1 프로파일</translation>
</message>
</context>
<context>
@@ -2314,7 +2469,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>L 스틱</translation>
</message>
@@ -2408,14 +2563,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2434,7 +2589,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>+</translation>
</message>
@@ -2447,15 +2602,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2512,236 +2667,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>R 스틱</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>초기화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[설정 안 됨]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>버튼 반전</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>토글 버튼</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>축 뒤집기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>임계값 설정</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>0%에서 100% 안의 값을 고르세요</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>axis 토글</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>자이로 임계값 설정</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>아날로그 스틱 맵핑</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>OK 버튼을 누른 후에 먼저 조이스틱을 수평으로 움직이고, 그 다음 수직으로 움직이세요.
축을 뒤집으려면 수직으로 먼저 움직인 뒤에 수평으로 움직이세요.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>중심축</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>데드존: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>수정자 범위: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>프로 컨트롤러</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>듀얼 조이콘</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>왼쪽 조이콘</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>오른쪽 조이콘</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>휴대 모드</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube 컨트롤러</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>몬스터볼 Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>NES 컨트롤러</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>SNES 컨트롤러</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>N64 컨트롤러</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>세가 제네시스</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>시작 / 일시중지</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>컨트롤 스틱</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>흔드세요!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[대기중]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>새 프로필</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>프로필 이름을 입력하세요:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>입력 프로필 생성</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>해당 프로필 이름은 사용할 수 없습니다!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; 입력 프로필 생성 실패</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>입력 프로필 삭제</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; 입력 프로필 삭제 실패</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>입력 프로필 불러오기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; 입력 프로필 불러오기 실패</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>입력 프로필 저장</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; 입력 프로필 저장 실패</translation>
</message>
@@ -2789,7 +2955,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>설정</translation>
</message>
@@ -2825,7 +2991,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>테스트</translation>
</message>
@@ -2845,77 +3011,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;자세히 알아보기&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>포트 번호에 유효하지 않은 글자가 있습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>포트 번호는 0부터 65353까지이어야 합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP 주소가 유효하지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>해당 UDP 서버는 이미 존재합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>8개보다 많은 서버를 추가하실 수는 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>테스트 중</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>설정 중</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>테스트 성공</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>서버에서 성공적으로 데이터를 받았습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>테스트 실패</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>서버에서 유효한 데이터를 수신할 수 없습니다.&lt;br&gt;서버가 올바르게 설정되어 있고 주소와 포트가 올바른지 확인하십시오.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP 테스트와 교정 설정이 진행 중입니다.&lt;br&gt;끝날 때까지 기다려주세요.</translation>
</message>
@@ -2996,47 +3162,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>개발자</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>부가 기능</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>일반</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>시스템</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>그래픽</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>고급 그래픽</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>오디오</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>입력 프로파일</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>속성</translation>
</message>
@@ -3244,8 +3410,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>링 센서 매개변수</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3265,33 +3431,90 @@ UUID: %2</translation>
<translation>데드존: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>기본값으로 초기화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>초기화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[설정 안 됨]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>축 뒤집기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>데드존: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>설정 중</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[대기중]</translation>
</message>
@@ -3596,8 +3819,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>영어 (English)</translation>
+ <source>American English</source>
+ <translation>미국 영어</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3697,57 +3920,22 @@ UUID: %2</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>모노</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>스테레오</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>서라운드</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>콘솔 ID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>소리 출력 모드:</translation>
+ <translation>장치 이름</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>재생성</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>시스템 설정은 게임이 꺼져 있을 때만 수정 가능합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>현재 사용하는 가상 Switch를 새로운 가상 Switch로 교체 합니다. 기존의 가상 Switch는 복구가 불가능해집니다. 게임에 예상치 못한 영향을 끼칠 수도 있습니다. 오래된 게임 설정을 사용할 경우 실패할 수도 있습니다. 계속하시겠습니까?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>경고</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>콘솔 ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>경고: &quot;%1&quot;은(는) 지역 &quot;%2&quot;에 유효한 언어가 아님</translation>
</message>
</context>
<context>
@@ -3816,7 +4004,7 @@ UUID: %2</translation>
<translation>TAS 설정</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>TAS 로드 디렉토리 선택...</translation>
</message>
@@ -4372,7 +4560,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>컨트롤러 P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>컨트롤러 P1(&amp;C)</translation>
</message>
@@ -4385,42 +4573,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>직접 연결</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IP 주소</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;호스트의 IPv4 주소&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>포트</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;호스트가 수신 대기 중인 포트 번호&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>별명</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>비밀번호</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>연결</translation>
</message>
@@ -4428,12 +4611,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>연결중</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>연결</translation>
</message>
@@ -4441,926 +4624,962 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>yuzu를 개선하기 위해 &lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;익명 데이터가 수집됩니다.&lt;/a&gt; &lt;br/&gt;&lt;br/&gt;사용 데이터를 공유하시겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>원격 측정</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>망가진 Vulkan 설치 감지됨</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>부팅하는 동안 Vulkan 초기화에 실패했습니다.&lt;br&gt;&lt;br&gt;문제 해결 지침을 보려면 &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;여기&lt;/a&gt;를 클릭하세요.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>웹 애플릿을 로드하는 중...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>웹 애플릿 비활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>웹 애플릿을 비활성화하면 정의되지 않은 동작이 발생할 수 있으며 Super Mario 3D All-Stars에서만 사용해야 합니다. 웹 애플릿을 비활성화하시겠습니까?
(디버그 설정에서 다시 활성화할 수 있습니다.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>현재 생성중인 셰이더의 양</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>현재 선택된 해상도 배율입니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>현재 에뮬레이션 속도. 100%보다 높거나 낮은 값은 에뮬레이션이 Switch보다 빠르거나 느린 것을 나타냅니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>게임이 현재 표시하고 있는 초당 프레임 수입니다. 이것은 게임마다 다르고 장면마다 다릅니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>프레임 제한이나 수직 동기화를 계산하지 않고 Switch 프레임을 에뮬레이션 하는 데 걸린 시간. 최대 속도로 에뮬레이트 중일 때에는 대부분 16.67 ms 근처입니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>Clear Recent Files(&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>재개(&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>일시중지(&amp;P)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu가 게임을 실행중입니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>오래된 게임 포맷 경고</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>이 게임 파일은 &apos;분해된 ROM 디렉토리&apos;라는 오래된 포맷을 사용하고 있습니다. 해당 포맷은 NCA, NAX, XCI 또는 NSP와 같은 다른 포맷으로 대체되었으며 분해된 ROM 디렉토리에는 아이콘, 메타 데이터 및 업데이트가 지원되지 않습니다.&lt;br&gt;&lt;br&gt;yuzu가 지원하는 다양한 Switch 포맷에 대한 설명은 &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;위키를 확인하세요.&lt;/a&gt; 이 메시지는 다시 표시되지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>ROM 로드 중 오류 발생!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>지원되지 않는 롬 포맷입니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>비디오 코어를 초기화하는 동안 오류가 발생했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>비디오 코어를 실행하는 동안 yuzu에 오류가 발생했습니다. 이것은 일반적으로 통합 드라이버를 포함하여 오래된 GPU 드라이버로 인해 발생합니다. 자세한 내용은 로그를 참조하십시오. 로그 액세스에 대한 자세한 내용은 &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;로그 파일 업로드 방법&lt;/a&gt; 페이지를 참조하세요.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>ROM 불러오는 중 오류 발생! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;파일들을 다시 덤프하기 위해&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu 빠른 시작 가이드&lt;/a&gt; 를 따라주세요.&lt;br&gt;도움이 필요할 시 yuzu 위키&lt;/a&gt; 를 참고하거나 yuzu 디스코드&lt;/a&gt; 를 이용해보세요.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>알 수 없는 오류가 발생했습니다. 자세한 내용은 로그를 참고하십시오.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64비트)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32비트)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>소프트웨어를 닫는 중...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>세이브 데이터</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>모드 데이터</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>%1 폴더 열기 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>폴더가 존재하지 않습니다!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>전송 가능한 셰이더 캐시 열기 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>이 타이틀에 대한 셰이더 캐시 디렉토리를 생성하지 못했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation>콘텐츠 제거 중 오류 발생</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>업데이트 제거 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>DLC 제거 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation>설치된 게임 콘텐츠를 제거하겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>설치된 게임 업데이트를 제거하겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>설치된 게임 DLC를 제거하겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>항목 제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>삭제 완료</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>설치된 기본 게임을 성공적으로 제거했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>기본 게임은 NAND에 설치되어 있지 않으며 제거 할 수 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>설치된 업데이트를 성공적으로 제거했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>이 타이틀에 대해 설치된 업데이트가 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>이 타이틀에 설치된 DLC가 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>설치된 %1 DLC를 성공적으로 제거했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>OpenGL 전송 가능한 셰이더 캐시를 삭제하시겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Vulkan 전송 가능한 셰이더 캐시를 삭제하시겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>모든 전송 가능한 셰이더 캐시를 삭제하시겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>사용자 지정 게임 구성을 제거 하시겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>파일 제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>전송 가능한 셰이더 캐시 제거 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>이 타이틀에 대한 셰이더 캐시가 존재하지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>전송 가능한 셰이더 캐시를 성공적으로 제거했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>전송 가능한 셰이더 캐시를 제거하지 못했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Vulkan 드라이버 파이프라인 캐시 제거 오류</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>드라이버 파이프라인 캐시를 제거하지 못했습니다.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>전송 가능한 셰이더 캐시 제거 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>전송 가능한 셰이더 캐시를 성공적으로 제거했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>전송 가능한 셰이더 캐시 디렉토리를 제거하지 못했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>사용자 지정 구성 제거 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>이 타이틀에 대한 사용자 지정 구성이 존재하지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>사용자 지정 게임 구성을 성공적으로 제거했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>사용자 지정 게임 구성을 제거하지 못했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>RomFS 추출 실패!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>RomFS 파일을 복사하는 중에 오류가 발생했거나 사용자가 작업을 취소했습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>전체</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>뼈대</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>RomFS 덤프 모드 선택</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>RomFS 덤프 방법을 선택하십시오.&lt;br&gt;전체는 모든 파일을 새 디렉토리에 복사하고&lt;br&gt;뼈대는 디렉토리 구조 만 생성합니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>%1에 RomFS를 추출하기에 충분한 여유 공간이 없습니다. 공간을 확보하거나 에뮬레이견 &gt; 설정 &gt; 시스템 &gt; 파일시스템 &gt; 덤프 경로에서 다른 덤프 디렉토리를 선택하십시오.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>RomFS 추출 중...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>취소</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS 추출이 성공했습니다!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>작업이 성공적으로 완료되었습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>바로가기 만들기</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>현재 AppImage에 대한 바로 가기가 생성됩니다. 업데이트하면 제대로 작동하지 않을 수 있습니다. 계속합니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>바탕 화면에 바로가기를 만들 수 없습니다. 경로 &quot;%1&quot;이(가) 존재하지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>애플리케이션 메뉴에서 바로가기를 만들 수 없습니다. 경로 &quot;%1&quot;이(가) 존재하지 않으며 생성할 수 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>아이콘 만들기</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>아이콘 파일을 만들 수 없습니다. 경로 &quot;%1&quot;이(가) 존재하지 않으며 생성할 수 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>yuzu 에뮬레이터로 %1 시작</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>%1에서 바로가기를 만들기 실패</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>%1 바로가기를 성공적으로 만듬</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>%1 열기 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>경로 선택</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>속성</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>게임 속성을 로드 할 수 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch 실행파일 (%1);;모든 파일 (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>파일 로드</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>추출된 ROM 디렉토리 열기</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>잘못된 디렉토리 선택</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>선택한 디렉토리에 &apos;main&apos;파일이 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>설치 가능한 Switch 파일 (*.nca *.nsp *.xci);;Nintendo 컨텐츠 아카이브 (*.nca);;Nintendo 서브미션 패키지 (*.nsp);;NX 카트리지 이미지 (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>파일 설치</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n개의 파일이 남음</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>파일 &quot;%1&quot; 설치 중...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>설치 결과</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>충돌을 피하기 위해, 낸드에 베이스 게임을 설치하는 것을 권장하지 않습니다.
이 기능은 업데이트나 DLC를 설치할 때에만 사용해주세요.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n개의 파일이 새로 설치되었습니다.
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n개의 파일을 덮어썼습니다.
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n개의 파일을 설치하지 못했습니다.
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>시스템 애플리케이션</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>시스템 아카이브</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>시스템 애플리케이션 업데이트</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>펌웨어 패키지 (A타입)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>펌웨어 패키지 (B타입)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>게임</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>게임 업데이트</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>게임 DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>델타 타이틀</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>NCA 설치 유형 선택...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>이 NCA를 설치할 타이틀 유형을 선택하세요:
(대부분의 경우 기본값인 &apos;게임&apos;이 괜찮습니다.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>설치 실패</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>NCA 타이틀 유형이 유효하지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>파일을 찾을 수 없음</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>파일 &quot;%1&quot;을 찾을 수 없습니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>하드웨어 요구 사항이 충족되지 않음</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation>시스템이 권장 하드웨어 요구 사항을 충족하지 않습니다. 호환성 보고가 비활성화되었습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>yuzu 계정 누락</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>게임 호환성 테스트 결과를 제출하려면 yuzu 계정을 연결해야합니다.&lt;br&gt;&lt;br/&gt;yuzu 계정을 연결하려면 에뮬레이션 &amp;gt; 설정 &amp;gt; 웹으로 가세요.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>URL 열기 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>URL &quot;%1&quot;을 열 수 없습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>TAS 레코딩</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>플레이어 1의 파일을 덮어쓰시겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>유효하지 않은 설정 감지</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>휴대 모드용 컨트롤러는 거치 모드에서 사용할 수 없습니다. 프로 컨트롤러로 대신 선택됩니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>현재 amiibo가 제거되었습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>현재 게임은 amiibo를 찾고 있지 않습니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo 파일 (%1);; 모든 파일 (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Amiibo 로드</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Amiibo 데이터 로드 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>선택한 파일은 유효한 amiibo가 아닙니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>선택한 파일은 이미 사용 중입니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>알수없는 오류가 발생했습니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>스크린샷 캡처</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG 이미지 (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>TAS 상태: %1/%2 실행 중</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>TAS 상태: 레코딩 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>TAS 상태: 유휴 %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>TAS 상태: 유효하지 않음</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>실행 중지(&amp;S)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>시작(&amp;S)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>레코딩 중지(&amp;e)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>레코드(&amp;R)</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>빌드중: %n개 셰이더</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>스케일: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>속도: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>속도: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>게임: %1 FPS (제한없음)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>게임: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>프레임: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU 보통</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU 높음</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU 굉장함</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU 오류</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>거치 모드</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>휴대 모드</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>NEAREST</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICUBIC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>AA 없음</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>볼륨: 음소거</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>볼륨: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>키 재생성 확인</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5377,37 +5596,37 @@ This will delete your autogenerated key files and re-run the key derivation modu
자동 생성되었던 키 파일들이 삭제되고 키 생성 모듈이 다시 실행됩니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>fuses 누락</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation> - BOOT0 누락</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - BCPKG2-1-Normal-Main 누락</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - PRODINFO 누락</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>파생 구성 요소 누락</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>암호화 키가 없습니다. &lt;br&gt;모든 키, 펌웨어 및 게임을 얻으려면 &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu 빠른 시작 가이드&lt;/a&gt;를 따르세요.&lt;br&gt;&lt;br&gt; &lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5416,39 +5635,49 @@ on your system&apos;s performance.</source>
소요될 수 있습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>파생 키</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>시스템 아카이브 암호 해독 실패</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>RomFS 덤프 대상 선택</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>덤프할 RomFS를 선택하십시오.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>yuzu를 닫으시겠습니까?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>에뮬레이션을 중지하시겠습니까? 모든 저장되지 않은 진행 상황은 사라집니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5460,44 +5689,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL을 사용할 수 없습니다!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>OpenGL 공유 컨텍스트는 지원되지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu는 OpenGL 지원으로 컴파일되지 않았습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>OpenGL을 초기화하는 동안 오류가 발생했습니다!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>사용하시는 GPU가 OpenGL을 지원하지 않거나, 최신 그래픽 드라이버가 설치되어 있지 않습니다.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>OpenGL 4.6 초기화 중 오류 발생!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>사용하시는 GPU가 OpenGL 4.6을 지원하지 않거나 최신 그래픽 드라이버가 설치되어 있지 않습니다. &lt;br&gt;&lt;br&gt;GL 렌더링 장치:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>사용하시는 GPU가 1개 이상의 OpenGL 확장 기능을 지원하지 않습니다. 최신 그래픽 드라이버가 설치되어 있는지 확인하세요. &lt;br&gt;&lt;br&gt;GL 렌더링 장치:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;지원하지 않는 확장 기능:&lt;br&gt;%2</translation>
</message>
@@ -5556,117 +5785,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>OpenGL 파이프라인 캐시 제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Vulkan 파이프라인 캐시 제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>모든 파이프라인 캐시 제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>설치된 모든 컨텐츠 제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>RomFS를 덤프</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>RomFS를 SDMC로 덤프</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>클립보드에 타이틀 ID 복사</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>GameDB 항목으로 이동</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>바로가기 만들기</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>데스크톱에 추가</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>애플리케이션 메뉴에 추가</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>속성</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>하위 폴더 스캔</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>게임 디렉토리 제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ 위로 이동</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ 아래로 이동</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>디렉토리 위치 열기</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>초기화</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>이름</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>호환성</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>부가 기능</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>파일 형식</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>크기</translation>
</message>
@@ -5737,7 +5971,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>더블 클릭하여 게임 목록에 새 폴더 추가</translation>
</message>
@@ -5750,12 +5984,12 @@ Would you like to bypass this and exit anyway?</source>
<translation><numerusform>%1 중의 %n 결과</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>필터:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>검색 필터 입력</translation>
</message>
@@ -5846,12 +6080,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>오디오 음소거/음소거 해제</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5873,111 +6106,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>메인 윈도우</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>오디오 볼륨 낮추기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>오디오 볼륨 키우기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>스크린샷 캡처</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>적응형 필터 변경</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>독 모드 변경</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>GPU 정확성 변경</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>재개/에뮬레이션 일시중지</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>전체화면 종료</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>yuzu 종료</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>전체화면</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>파일 로드</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Amiibo 로드/제거</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>에뮬레이션 재시작</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>에뮬레이션 중단</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>TAS 기록</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>TAS 리셋</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>TAS 시작/멈춤</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>상태 표시줄 전환</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>프레임속도 제한 토글</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>마우스 패닝 활성화</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>상태 표시줄 전환</translation>
</message>
@@ -6000,7 +6234,7 @@ Debug Message: </source>
<translation>설치</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>NAND에 파일 설치</translation>
</message>
@@ -6008,7 +6242,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>텍스트는 다음 문자를 포함할 수 없습니다:
@@ -6083,51 +6317,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>빈 방 숨기기</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>전체 방 숨기기</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>로비 새로 고침</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>입장시 비밀번호가 필요합니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>비밀번호:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>플레이어</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>방 이름</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>선호하는 게임</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>호스트</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>새로 고치는 중</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>새로 고침 목록</translation>
</message>
@@ -6665,7 +6904,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>시작/일시중지</translation>
</message>
@@ -6714,31 +6953,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[설정 안 됨]</translation>
</message>
@@ -6749,14 +6988,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>축 %1%2</translation>
</message>
@@ -6767,264 +7006,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[알 수 없음]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>왼쪽</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>오른쪽</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>아래</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>위</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>동그라미</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>엑스</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>네모</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>세모</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Share</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Options</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[설정안됨]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[유효하지않음]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2방향키 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Axis %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Axis %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2모션 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2버튼 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[미사용]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>L 스틱</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>R 스틱</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Plus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Minus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>홈</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>캡쳐</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>터치</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>휠</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>뒤로가기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>앞으로가기</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Task</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3방향키%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3Axis %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3버튼%4</translation>
</message>
</context>
<context>
@@ -7393,28 +7690,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>에러 코드: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>오류가 발생했습니다.
다시 시도해 보시거나 해당 소프트웨어 개발자에게 연락하십시오.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>%2에서 %1에 대한 오류가 발생했습니다.
다시 시도해 보시거나 해당 소프트웨어 개발자에게 문의 하십시오.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7438,20 +7735,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>사용자를 선택하세요:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>사용자</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>프로필 생성기</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>프로필 선택</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>프로필 아이콘 에디터</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>프로필 이름 에디터</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>누가 포인트를 받을까요?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>누가 Nintendo eShop을 사용하고 있습니까?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>누가 이 구매를 하고 있습니까?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>누가 게시하고 있습니까?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Nintendo 계정에 연결할 사용자를 선택하십시오.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>어떤 사용자의 설정을 변경하시겠습니까?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>어떤 사용자의 데이터를 포맷하시겠습니까?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>어떤 사용자가 다른 본체로 이전되나요?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>어떤 사용자의 저장 데이터를 보내시겠습니까?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>사용자를 선택하세요:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7501,51 +7859,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>콜 스택</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>뮤텍스 0x%1을 기다립니다</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>대기: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>소유자 핸들: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>모든 개체를 기다립니다</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>다음 개체 중 하나를 기다리는 중입니다</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>스레드를 기다리고 있지 않습니다</translation>
</message>
@@ -7553,120 +7880,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>실행 가능</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>일시중지</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>수면중</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>IPC 회신을 기다립니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>개체를 기다립니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>조건 변수를 기다립니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>주소 결정인을 기다립니다</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>보류 재개를 기다리는 중</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>기다리는 중</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>초기화됨</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>종료됨</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>알 수 없음</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>이상적</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>코어 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>프로세서 = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>이상적인 코어 = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>선호도 마스크 = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>스레드 아이디 = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>우선순위 = %1(현재) / %2(일반)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>마지막 실행 틱 = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>뮤텍스를 기다리지 않음</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>스레드에서 기다림</translation>
</message>
@@ -7674,7 +7991,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>대기 트리(&amp;W)</translation>
</message>
diff --git a/dist/languages/nb.ts b/dist/languages/nb.ts
index 105fab761..f6f79ca02 100644
--- a/dist/languages/nb.ts
+++ b/dist/languages/nb.ts
@@ -25,12 +25,18 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;yuzu is an experimental open-source emulator for the Nintendo Switch licensed under GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;This software should not be used to play games you have not legally obtained.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;yuzu er en eksperimentell åpen kildekode emulator til Nintendo Switch lisensiert under GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&apos;MS Shell Dlg 2&apos;; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Denne programvaren skal ikke brukes til å spille spill du ikke eier lovlig.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="130"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Website&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Source Code&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Contributors&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/LICENSE.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;License&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Nettside&lt;/span&gt;&lt;/a&gt;|&lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Kildekode&lt;/span&gt;&lt;/a&gt;|&lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Bidragsytere&lt;/span&gt;&lt;/a&gt;|&lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/license.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Lisens&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="146"/>
@@ -76,95 +82,97 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Rom Vindu</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="40"/>
<source>Send Chat Message</source>
- <translation type="unfinished"/>
+ <translation>Send Chat Melding</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="47"/>
<source>Send Message</source>
- <translation type="unfinished"/>
+ <translation>Send Melding</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="181"/>
<source>Members</source>
- <translation type="unfinished"/>
+ <translation>Medlemmer</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="318"/>
<source>%1 has joined</source>
- <translation type="unfinished"/>
+ <translation>%1 ble med</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="321"/>
<source>%1 has left</source>
- <translation type="unfinished"/>
+ <translation>%1 har forlatt</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="324"/>
<source>%1 has been kicked</source>
- <translation type="unfinished"/>
+ <translation>%1 har blitt sparket</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="327"/>
<source>%1 has been banned</source>
- <translation type="unfinished"/>
+ <translation>%1 har blitt utestengt</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="330"/>
<source>%1 has been unbanned</source>
- <translation type="unfinished"/>
+ <translation>%1 har fått opphevet utestengelsen</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="446"/>
<source>View Profile</source>
- <translation type="unfinished"/>
+ <translation>Vis Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="459"/>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="469"/>
<source>Block Player</source>
- <translation type="unfinished"/>
+ <translation>Blokker Spiller</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="470"/>
<source>When you block a player, you will no longer receive chat messages from them.&lt;br&gt;&lt;br&gt;Are you sure you would like to block %1?</source>
- <translation type="unfinished"/>
+ <translation>Når du blokkerer en spiller vil du ikke lengere kunne motta chat meldinger fra dem.&lt;br&gt;&lt;br&gt;Er du sikker på at du vil blokkere %1?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="483"/>
<source>Kick</source>
- <translation type="unfinished"/>
+ <translation>Spark ut</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="484"/>
<source>Ban</source>
- <translation type="unfinished"/>
+ <translation>Bannlys</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="488"/>
<source>Kick Player</source>
- <translation type="unfinished"/>
+ <translation>Spark Ut Spiller</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="489"/>
<source>Are you sure you would like to &lt;b&gt;kick&lt;/b&gt; %1?</source>
- <translation type="unfinished"/>
+ <translation>Er du sikker på at du vil &lt;b&gt;spake ut&lt;/b&gt; %1?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="497"/>
<source>Ban Player</source>
- <translation type="unfinished"/>
+ <translation>Bannlys Spiller</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="498"/>
<source>Are you sure you would like to &lt;b&gt;kick and ban&lt;/b&gt; %1?
This would ban both their forum username and their IP address.</source>
- <translation type="unfinished"/>
+ <translation>Er du sikker på at du vil &lt;b&gt;sparke ut og bannlyse&lt;/b&gt; %1?
+
+Dette vil bannlyse både deres forum brukernavn og deres IP adresse.</translation>
</message>
</context>
<context>
@@ -172,22 +180,22 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Rom Vindu</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="27"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Rom Beskrivelse</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="47"/>
<source>Moderation...</source>
- <translation type="unfinished"/>
+ <translation>Moderasjon...</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="57"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Forlat Rommet</translation>
</message>
</context>
<context>
@@ -200,12 +208,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="87"/>
<source>Disconnected</source>
- <translation type="unfinished"/>
+ <translation>Frakoblet</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
<source>%1 - %2 (%3/%4 members) - connected</source>
- <translation type="unfinished"/>
+ <translation>%1 - %2 (%3/%4 medlemmer) - tilkoblet</translation>
</message>
</context>
<context>
@@ -234,102 +242,102 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Starter spillet?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Ja Spillet begynner å sende ut video eller lyd</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Nei Spillet kommer ikke forbi &quot;Starter...&quot; skjermen</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Ja Spillet kommer forbi introen/menyen og inn i spillet</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Nei Spillet kræsjer eller fryser mens den laster eller mens man bruker menyen</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Kommer spillet til spillingen?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Ja Spillet fungerer uten noen kræsj</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Nei Spillet kræsjer eller fryser under spilling</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Fungerer spillet uten å kræsje, fryse eller låse seg under spilling?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Ja Spillet kan bli fullført uten noen omveier</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Nei Spillet kommer ikke forbi et vist punkt</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Er spillet fullstendig spillbart fra start til slutt?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Større Spillet har større grafiske problemer</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Mindre Spillet har mindre grafiske problemer</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Ingen Alt er gjengitt slik det ser ut på Nintendo Switch</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Har spillet noen grafiske glicher?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Større Spillet har større lydproblemer</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Mindre Spillet har mindre lydproblemer</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Ingen Lyden spilles av perfekt</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any audio glitches / missing effects?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Har spillet noen glicher med lyd / manglende effekter?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="389"/>
@@ -372,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation type="unfinished"/>
+ <source>Output Device:</source>
+ <translation>Utgangsenhet:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Inndataenhet</translation>
+ <source>Input Device:</source>
+ <translation>Inngangsenhet:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Lydutgangsmodus:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Bruk globalt volum</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Sett volum:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volum:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Demp lyden når yuzu kjører i bakgrunnen</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -412,37 +445,37 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="14"/>
<source>Configure Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Konfigurer Infrarødt Kamera</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="26"/>
<source>Select where the image of the emulated camera comes from. It may be a virtual camera or a real camera.</source>
- <translation type="unfinished"/>
+ <translation>Velg hvor bildet for the emulerte kameraet kommer fra. Det kan være et virituelt kamera eller et ekte kamera.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="52"/>
<source>Camera Image Source:</source>
- <translation type="unfinished"/>
+ <translation>Kilde For Kamerabilde</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="71"/>
<source>Input device:</source>
- <translation type="unfinished"/>
+ <translation>Inngangsenhet:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="96"/>
<source>Preview</source>
- <translation type="unfinished"/>
+ <translation>Forhåndsvisning</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="108"/>
<source>Resolution: 320*240</source>
- <translation type="unfinished"/>
+ <translation>Oppløsning: 320*240</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="115"/>
<source>Click to preview</source>
- <translation type="unfinished"/>
+ <translation>Klikk for å forhåndsvise</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="140"/>
@@ -495,7 +528,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="57"/>
<source>Paranoid (disables most optimizations)</source>
- <translation type="unfinished"/>
+ <translation>Paranoid (deaktiverer de fleste optimaliseringer)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="68"/>
@@ -594,7 +627,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="166"/>
<source>Ignore global monitor</source>
- <translation type="unfinished"/>
+ <translation>Ignorer global overvåkning</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="191"/>
@@ -622,7 +655,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="31"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;For debugging only.&lt;/span&gt;&lt;br/&gt;If you&apos;re not sure what these do, keep all of these enabled. &lt;br/&gt;These settings, when disabled, only take effect when CPU Debugging is enabled. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Kun for feilsøking.&lt;/span&gt;&lt;br/&gt;Hvis du ikke vet hva disse gjør, behold alle disse aktivert. &lt;br/&gt;Disse innstillingene, når deaktivert, Trer bare i kraft når CPU feilsøking er aktivert. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="41"/>
@@ -631,72 +664,86 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it inlines accesses to PageTable::pointers into emitted code.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to go through the Memory::Read/Memory::Write functions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Denne optimaliseringen gir raskere minnetilgang for gjesteprogrammet.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ved å aktivere den innbygger tilgang til PageTable::pointere i utstedt kode.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Deaktivering av dette tvinger alle minnetilganger til å gå gjennom funksjonene Memory::Read/Memory::Write.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="48"/>
<source>Enable inline page tables</source>
- <translation type="unfinished"/>
+ <translation>Aktiver innebygde sidetabeller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="55"/>
<source>
&lt;div&gt;This optimization avoids dispatcher lookups by allowing emitted basic blocks to jump directly to other basic blocks if the destination PC is static.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Denne optimaliseringen unngår dispatcher-oppslag ved å la utsendte grunnblokker hoppe direkte til andre grunnblokker hvis destinasjons-PC-en er statisk.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="60"/>
<source>Enable block linking</source>
- <translation type="unfinished"/>
+ <translation>Aktiver kobling av blokker </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="67"/>
<source>
&lt;div&gt;This optimization avoids dispatcher lookups by keeping track potential return addresses of BL instructions. This approximates what happens with a return stack buffer on a real CPU.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Denne optimaliseringen unngår dispatcher-oppslag ved å holde oversikt over potensielle returadresser for BL-instruksjoner. Dette er tilnærmet hva som skjer med en returbuffer på en ekte CPU.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="72"/>
<source>Enable return stack buffer</source>
- <translation type="unfinished"/>
+ <translation>Aktiver returstabelbuffer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="79"/>
<source>
&lt;div&gt;Enable a two-tiered dispatch system. A faster dispatcher written in assembly has a small MRU cache of jump destinations is used first. If that fails, dispatch falls back to the slower C++ dispatcher.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Aktiver et todelt utsendingssystem. En raskere utsender skrevet i assembly har en liten MRU-cache med hoppdestinasjoner som brukes først. Hvis det mislykkes, faller utsendelsen tilbake til den tregere C++ utsenderen.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="84"/>
<source>Enable fast dispatcher</source>
- <translation type="unfinished"/>
+ <translation>Aktiver rask avsender</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="91"/>
<source>
&lt;div&gt;Enables an IR optimization that reduces unnecessary accesses to the CPU context structure.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Muliggjør en IR-optimalisering som reduserer unødvendige tilganger til CPU-kontekststrukturen.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="96"/>
<source>Enable context elimination</source>
- <translation type="unfinished"/>
+ <translation>Aktiver Konteksteliminering</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="103"/>
<source>
&lt;div&gt;Enables IR optimizations that involve constant propagation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Muliggjør IR-optimaliseringer som innebærer konstant utbredelse.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="108"/>
<source>Enable constant propagation</source>
- <translation type="unfinished"/>
+ <translation>Aktiver konstant utbredelse</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="115"/>
@@ -718,12 +765,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;When enabled, a misalignment is only triggered when an access crosses a page boundary.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;When disabled, a misalignment is triggered on all misaligned accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Når dette er aktivert, utløses en feiljustering bare når en tilgang krysser en sidegrense.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Når dette er deaktivert, utløses en feiljustering på alle feiljusterte tilganger.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="133"/>
<source>Enable misalignment check reduction</source>
- <translation type="unfinished"/>
+ <translation>Aktiver reduksjon av feiljusteringskontroll</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="140"/>
@@ -783,12 +833,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Denne optimaliseringen gir raskere minnetilgang ved å la ugyldige minnetilganger lykkes.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Aktivering av det reduserer overhead for alle minnetilganger og har ingen innvirkning på programmer som ikke har tilgang til ugyldig minne.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Aktiver tilbakefall for ugyldige minnetilganger</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -801,7 +854,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="15"/>
<source>Debugger</source>
- <translation type="unfinished"/>
+ <translation>Feilsøker</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="23"/>
@@ -871,162 +924,172 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="159"/>
<source>When checked, it enables Nsight Aftermath crash dumps</source>
- <translation type="unfinished"/>
+ <translation>Når avhuket, aktiverer Nsight Aftermath kræsjdumper</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="162"/>
<source>Enable Nsight Aftermath</source>
- <translation type="unfinished"/>
+ <translation>Aktiver Nsight Aftermath</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="172"/>
<source>When checked, it will dump all the original assembler shaders from the disk shader cache or game as found</source>
- <translation type="unfinished"/>
+ <translation>Når det er merket av, vil det dumpe alle de originale assembler shaders fra disk shader cache eller spillet som funnet</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="175"/>
<source>Dump Game Shaders</source>
- <translation type="unfinished"/>
+ <translation>Dump Spill Shadere</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="185"/>
<source>When checked, it will dump all the macro programs of the GPU</source>
- <translation type="unfinished"/>
+ <translation>Når det er merket av, vil det dumpe alle makroprogrammene til GPUen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="188"/>
<source>Dump Maxwell Macros</source>
- <translation type="unfinished"/>
+ <translation>Dump Maxwell Makroer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="198"/>
<source>When checked, it disables the macro Just In Time compiler. Enabling this makes games run slower</source>
- <translation type="unfinished"/>
+ <translation>Når den er merket av, deaktiverer den makrokompilatoren Just In Time. Aktivering av dette gjør at spill kjører saktere</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="201"/>
<source>Disable Macro JIT</source>
- <translation type="unfinished"/>
+ <translation>Deaktiver Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Når det er merket av, deaktiverer det makro HLE-funksjonene. Aktivering av dette gjør at spillene kjører saktere</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Deaktiver Macro HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
- <translation type="unfinished"/>
+ <translation>Når det er merket av, vil yuzu logge statistikk om den kompilerte rørledningsbufferen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Slå på shader-tilbakemelding</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Når dette er på kjører shader-e uten endring i løkkelogikk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
- <translation type="unfinished"/>
+ <translation>Deaktive Loop sikkerhetssjekker</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Feilsøking</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
- <translation type="unfinished"/>
+ <translation>Aktiver Verbose Reporting Services**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
- <translation type="unfinished"/>
+ <translation>Aktiver FS Tilgangs Logg</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Aktiver dette for å sende den siste genererte lydkommandolisten til konsollen. Påvirker bare spill som bruker lydrenderen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
- <translation type="unfinished"/>
+ <translation>Dump Lydkommandoer Til Konsollen**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Lag Minidump Etter Kræsj</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avansert</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
- <translation type="unfinished"/>
+ <translation>Kiosk (Quest) Modus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Slå på prosessorfeilsøking</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
- <translation type="unfinished"/>
+ <translation>Aktiver Feilsøkingsoppgaver</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
- <translation type="unfinished"/>
+ <translation>Aktiver Auto-Stub**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
- <translation type="unfinished"/>
+ <translation>Aktiver Alle Kontrollertyper</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Slå av web-applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation type="unfinished"/>
+ <translation>Gjør det mulig for yuzu å se etter et fungerende Vulkan-miljø når programmet starter opp. Deaktiver dette hvis dette forårsaker problemer ved at eksterne programmer ser yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
- <translation type="unfinished"/>
+ <translation>Utfør Vulkan-Sjekk Ved Oppstart</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Dette blir automatisk tilbakestilt når yuzu lukkes.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="35"/>
<source>Restart Required</source>
- <translation type="unfinished"/>
+ <translation>Omstart Nødvendig</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="36"/>
<source>yuzu is required to restart in order to apply this setting.</source>
- <translation type="unfinished"/>
+ <translation>yuzu må startes på nytt for å bruke denne innstillingen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>Web-applet ikke kompilert</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>MiniDump-opprettelse ikke kompilert</translation>
</message>
</context>
<context>
@@ -1074,78 +1137,78 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzu Konfigurasjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Lyd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Feilsøk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Filsystem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Generelt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafikk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
- <translation type="unfinished"/>
+ <translation>AvnsertGrafikk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Hurtigtaster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Kontrollere</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profiler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Nettverk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Spill Liste</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Nett</translation>
</message>
@@ -1224,7 +1287,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="168"/>
<source>Mod Load Root</source>
- <translation type="unfinished"/>
+ <translation>Modifikasjonlastingsopprinnelsen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="175"/>
@@ -1239,7 +1302,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="209"/>
<source>Cache Game List Metadata</source>
- <translation type="unfinished"/>
+ <translation>Mellomlagre Spillistens Metadata</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="216"/>
@@ -1247,7 +1310,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="135"/>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="140"/>
<source>Reset Metadata Cache</source>
- <translation type="unfinished"/>
+ <translation>Tilbakestill Mellomlagringen for Metadata</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="93"/>
@@ -1267,7 +1330,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="102"/>
<source>Select Dump Directory...</source>
- <translation type="unfinished"/>
+ <translation>Velg Dump-Katalog</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="105"/>
@@ -1277,7 +1340,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="132"/>
<source>The metadata cache is already empty.</source>
- <translation type="unfinished"/>
+ <translation>Mellomlagringen for metadata er allerede tom.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="136"/>
@@ -1287,7 +1350,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="141"/>
<source>The metadata cache couldn&apos;t be deleted. It might be in use or non-existent.</source>
- <translation type="unfinished"/>
+ <translation>Mellomlagringen for metadata kunne ikke slettes. Den kan være i bruk eller ikke-eksisterende.</translation>
</message>
</context>
<context>
@@ -1320,46 +1383,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Utvidet minneutforming (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Bekreft lukking mens emuleringen kjører</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Spør om bruker når et spill starter</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Paus emulering når yuzu kjører i bakgrunnen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Demp lyden når yuzu kjører i bakgrunnen</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Gjem mus under inaktivitet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Tilbakestill alle innstillinger</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Dette tilbakestiller alle innstillinger og fjerner alle spillinnstillinger. Spillmapper, profiler og inndataprofiler blir ikke slettet. Fortsett?</translation>
</message>
@@ -1398,7 +1451,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Ingen</translation>
</message>
@@ -1410,7 +1463,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="173"/>
<source>Use disk pipeline cache</source>
- <translation type="unfinished"/>
+ <translation>Bruk diskens rørledningsmellomlagring</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="180"/>
@@ -1424,216 +1477,272 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>VSync Modus:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (VSync) slipper ikke bilder eller viser tearing, men er begrenset av skjermoppdateringsfrekvensen.
+FIFO Relaxed ligner på FIFO, men tillater riving etter hvert som den kommer seg etter en oppbremsing.
+Mailbox kan ha lavere ventetid enn FIFO og river ikke, men kan slippe rammer.
+Umiddelbar (ingen synkronisering) presenterer bare det som er tilgjengelig og kan vise riving.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC-emulering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Ingen videoutdata</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Prosessorvideodekoding</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>GPU-videodekoding (standard)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Fullskjermmodus:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Rammeløst vindu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Eksklusiv fullskjerm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Størrelsesforhold:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Standard (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Tving 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Tving 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
- <translation type="unfinished"/>
+ <translation>Tving 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Strekk til Vindu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Oppløsning:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EKSPERIMENTELL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EKSPERIMENTELL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [EXPERIMENTELL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
- <translation type="unfinished"/>
+ <translation>Vindustilpasningsfilter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Nærmeste nabo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilineær</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bikubisk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussisk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (kun med Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Anti-aliasing–metode:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Bruk global FSR skarphet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Sett FSR skarphet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>FSR Skarphet:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Bruk global bakgrunnsfarge</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Velg bakgrunnsfarge:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Bakgrunnsfarge:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (assembly-shader-e, kun med NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Eksperimentell, Kun Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>Av</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>VSync Av</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>Anbefalt</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>På</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>VSync På</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1658,77 +1767,134 @@ This would ban both their forum username and their IP address.</source>
<translation>Nøyaktighetsnivå:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync hindrer skjermen fra å brytes, men noen grafikkort har lavere ytelse med VSync på. Behold det på hvis du ikke legger merke til forskjell i ytelse.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>ASTC rekomprimering:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>Ukomprimert (beste kvalitet)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1 (Lav kvalitet)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3 (Medium kvalitet)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>Aktiver asynkron presentasjon (kun Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Kjører arbeid i bakgrunnen mens den venter på grafikkommandoer for å forhindre at GPU-en senker klokkehastigheten.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Tving maksikal klokkehastighet (kun Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Aktiverer asynkron ASTC-teksturavkoding, noe som kan redusere hakking i lastetiden. Denne funksjonen er eksperimentell.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Dekode ASTC-teksturer asynkront (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>Bruker reaktiv tømming i stedet for prediktiv tømming. Tillater en mer nøyaktig synkronisering av minnet.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>Aktiver Reaktiv Tømming</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Slår på asynkron shader-kompilering, som kan redusere shader-hakking. Denne funksjonaliteten er eksperimentell.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Bruk asynkron shader-bygging (hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
- <translation type="unfinished"/>
+ <translation>Aktiverer rask GPU-tid. Dette alternativet vil tvinge de fleste spill til å kjøre med sin høyeste opprinnelige oppløsning.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
- <translation type="unfinished"/>
+ <translation>Bruk Rask GPU-Tid (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Aktiverer GPU-leverandørspesifikk rørledningsbuffer. Dette alternativet kan forbedre shader-innlastingstiden betydelig i tilfeller der Vulkan-driveren ikke lagrer rørledningsbufferfiler internt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Bruk Vulkan rørledningsbuffer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>Aktiver beregningsrørledninger, kreves av noen spill. Denne innstillingen finnes bare for Intel-proprietære drivere, og kan krasje hvis den er aktivert.
+Beregningsrørledninger er alltid aktivert på alle andre drivere.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>Aktiver beregningsrørledninger (kun Intel Vulkan)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anisotropisk filtrering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automatisk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1761,70 +1927,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Gjenopprett Standardverdier</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Handling</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Hurtigtast</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Kontrollerhurtigtast</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Mostridende tastesekvens</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Den inntastede tastesekvensen er allerede tildelt til: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Hjem+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[venter]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Ugyldig</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Gjenopprett Standardverdi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Fjern</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Motstridende knappesekvens</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>Standardknappesekvensen er allerede tildelt til: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Standardtastesekvensen er allerede tildelt til: %1</translation>
</message>
@@ -2116,19 +2277,19 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Konfigurer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2609"/>
<source>Ring Controller</source>
- <translation type="unfinished"/>
+ <translation>Ring-Kontroller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2623"/>
<source>Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Infrarødt Kamera</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2640"/>
@@ -2142,6 +2303,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Krever omstart av yuzu</translation>
</message>
@@ -2161,22 +2324,42 @@ This would ban both their forum username and their IP address.</source>
<translation>Kontrollernavigasjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Aktiver driver for direkte JoyCon tilkobling</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Aktiver driver for direkte Pro Controller tilkobling (EKSPERIMENTELL)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>Tillater ubegrenset bruk av samme Amiibo i spill som ellers ville begrenset deg til én bruk.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>Bruk tilfeldig Amiibo ID</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Slå på musepanorering</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Musesensitivitet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Bevegelse / Touch</translation>
</message>
@@ -2196,57 +2379,57 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Inndataprofiler</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 1 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 2 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 3 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 4 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 5 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 6 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 7 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller 8 Profil</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Bruk global inndatakonfigurasjon</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Spiller %1 profile</translation>
</message>
</context>
<context>
@@ -2288,7 +2471,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Venstre Pinne</translation>
</message>
@@ -2382,14 +2565,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2403,12 +2586,12 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1456"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1495"/>
<source>Capture</source>
- <translation type="unfinished"/>
+ <translation>Opptak</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Pluss</translation>
</message>
@@ -2421,15 +2604,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2486,236 +2669,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Høyre Pinne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Fjern</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[ikke satt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Inverter knapp</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Veksle knapp</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Turbo-Knapp</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Inverter akse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Set grense</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Velg en verdi mellom 0% og 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
- <translation type="unfinished"/>
+ <translation>veksle akse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
- <translation type="unfinished"/>
+ <translation>Angi gyroterskel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>Kalibrer sensor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
- <translation type="unfinished"/>
+ <translation>Kartlegg Analog Spak</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Etter du har trykker på OK, flytt først stikken horisontalt, og så vertikalt.
For å invertere aksene, flytt først stikken vertikalt, og så horistonalt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Senterakse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Dødsone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Modifikatorområde: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro-Kontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Doble Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Venstre Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Høyre Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Håndholdt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube-kontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>NES-kontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>SNES-kontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>N64-kontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Start / paus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Kontrollstikke</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-stikke</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Rist!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[venter]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Ny Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Skriv inn et profilnavn:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Lag inndataprofil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Det oppgitte profilenavnet er ugyldig!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Klarte ikke lage inndataprofil &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Slett inndataprofil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Klarte ikke slette inndataprofil &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Last inn inndataprofil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Klarte ikke laste inn inndataprofil &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Lagre inndataprofil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Klarte ikke lagre inndataprofil &quot;%1&quot;</translation>
</message>
@@ -2763,14 +2957,14 @@ For å invertere aksene, flytt først stikken vertikalt, og så horistonalt.</tr
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Konfigurer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="57"/>
<source>Touch from button profile:</source>
- <translation type="unfinished"/>
+ <translation>Trykk fra knappens profil:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="85"/>
@@ -2799,7 +2993,7 @@ For å invertere aksene, flytt først stikken vertikalt, og så horistonalt.</tr
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Test</translation>
</message>
@@ -2819,77 +3013,77 @@ For å invertere aksene, flytt først stikken vertikalt, og så horistonalt.</tr
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Lær Mer&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Portnummeret har ugyldige tegn</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Porten må være i intervallet 0 til 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP-adressen er ugyldig</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Denne UDP-tjeneren eksisterer allerede</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Kan ikke legge til mer enn 8 tjenere</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testing</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Konfigurering</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test Vellykket</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Mottatt data fra serveren vellykket.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test Feilet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Kunne ikke motta gyldig data fra serveren.&lt;br&gt;Vennligst bekreft at serveren er satt opp riktig og at adressen og porten er riktige.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP-Test eller kalibrasjonskonfigurering er i fremgang.&lt;br&gt;Vennligst vent for dem til å bli ferdig.</translation>
</message>
@@ -2970,47 +3164,47 @@ For å invertere aksene, flytt først stikken vertikalt, og så horistonalt.</tr
<translation>Utvikler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Tillegg</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Generelt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafikk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Avn. Grafikk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Lyd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Inndataprofiler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Egenskaper</translation>
</message>
@@ -3189,7 +3383,7 @@ For å invertere aksene, flytt først stikken vertikalt, og så horistonalt.</tr
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="332"/>
<source>Delete this user? All of the user&apos;s save data will be deleted.</source>
- <translation type="unfinished"/>
+ <translation>Slett denne brukeren? Alle brukerens lagrede data vil bli slettet.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="344"/>
@@ -3200,7 +3394,8 @@ For å invertere aksene, flytt først stikken vertikalt, og så horistonalt.</tr
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="360"/>
<source>Name: %1
UUID: %2</source>
- <translation type="unfinished"/>
+ <translation>Navn: %1
+UUID: %2</translation>
</message>
</context>
<context>
@@ -3208,29 +3403,29 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="14"/>
<source>Configure Ring Controller</source>
- <translation type="unfinished"/>
+ <translation>Konfigurer Ring-Kontroller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="26"/>
<source>If you want to use this controller configure player 1 as right controller and player 2 as dual joycon before starting the game to allow this controller to be detected properly.</source>
- <translation type="unfinished"/>
+ <translation>Hvis du vil bruke denne kontrolleren, må du konfigurere spiller 1 som høyre kontroller og spiller 2 som dobbel joycon før du starter spillet, slik at denne kontrolleren kan oppdages riktig.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation type="unfinished"/>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Parametre For Virituell Ringsensor</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="123"/>
<source>Pull</source>
- <translation type="unfinished"/>
+ <translation>Dra</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="133"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="172"/>
<source>Push</source>
- <translation type="unfinished"/>
+ <translation>Skyv</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="206"/>
@@ -3238,33 +3433,90 @@ UUID: %2</source>
<translation>Dødsone: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Driver For Direkte JoyCon Tilkobling</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Aktiver Ringinndata</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Aktiver</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Sensorverdier For Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Ikke Tilkoblet</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Gjenopprett Standardverdier</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Fjern</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[ikke satt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Inverter akse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Dødsone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Feil ved aktivering av ringinndata</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Driver for direkte JoyCon tilkobling er ikke aktivert</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Konfigurering</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>Den gjeldende tilordnede enheten støtter ikke ringkontrolleren.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>Den gjeldende kartlagte enheten har ikke en ring festet</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Uventet driverresultat %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[venter]</translation>
</message>
@@ -3569,8 +3821,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Engelsk</translation>
+ <source>American English</source>
+ <translation>Amerikans Engelsk</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3665,62 +3917,27 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="431"/>
<source>RNG Seed</source>
- <translation type="unfinished"/>
+ <translation>Frø For Tilfeldig Nummergenerering</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
+ <translation>Enhetsnavn</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Konsoll-ID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Lydutgangsmodus</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>Usikkert utvidet minneoppsett (8 GB DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regenerer</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Systeminnstillinger er bare tilgjengelige når ingen spill kjører.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Dette vil erstatte din nåværende virtuelle Switch med en ny en. Din nåværende virtuelle Switch vil ikke kunne bli gjenopprettet. Dette kan ha uventede effekter i spill. Dette kan feile om du bruker en utdatert lagret-spill konfigurasjon. Fortsette? </translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Advarsel</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Konsoll-ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Advarsel: &quot;%1&quot; er ikke et gyldig språk for region &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3758,7 +3975,7 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="67"/>
<source>Loop script</source>
- <translation type="unfinished"/>
+ <translation>Loop script</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="77"/>
@@ -3789,7 +4006,7 @@ UUID: %2</source>
<translation>TAS-konfigurasjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Velg TAS-lastemappe...</translation>
</message>
@@ -3799,12 +4016,12 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="14"/>
<source>Configure Touchscreen Mappings</source>
- <translation type="unfinished"/>
+ <translation>Konfigurer Kartlegging av Berøringsskjerm</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="22"/>
<source>Mapping:</source>
- <translation type="unfinished"/>
+ <translation>Kartlegging:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="48"/>
@@ -4009,7 +4226,7 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="31"/>
<source>Note: Changing language will apply your configuration.</source>
- <translation type="unfinished"/>
+ <translation>Merk: Hvis du endrer språk, brukes konfigurasjonen din.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="43"/>
@@ -4029,7 +4246,7 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="82"/>
<source>Show Compatibility List</source>
- <translation type="unfinished"/>
+ <translation>Vis Kompabilitetsliste</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="89"/>
@@ -4039,12 +4256,12 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="96"/>
<source>Show Size Column</source>
- <translation type="unfinished"/>
+ <translation>Vis Kolonne For Størrelse</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="103"/>
<source>Show File Types Column</source>
- <translation type="unfinished"/>
+ <translation>Vis Kolonne For Filtype</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="112"/>
@@ -4107,7 +4324,7 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/configuration/configure_vibration.ui" line="23"/>
<source>Press any controller button to vibrate the controller.</source>
- <translation type="unfinished"/>
+ <translation>Trykk hvilken som helst knapp for å vibrere kontrolleren</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_vibration.ui" line="30"/>
@@ -4228,7 +4445,7 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="118"/>
<source>Web Service configuration can only be changed when a public room isn&apos;t being hosted.</source>
- <translation type="unfinished"/>
+ <translation>Webtjenestekonfigurasjonen kan bare endres når et offentlig rom ikke blir arangert.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="128"/>
@@ -4300,13 +4517,13 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="118"/>
<source>Token was not verified. The change to your token has not been saved.</source>
- <translation type="unfinished"/>
+ <translation>Token ble ikke bekreftet. Endringen av tokenet ditt er ikke lagret.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="141"/>
<source>Unverified, please click Verify before saving configuration</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Ubekreftet, klikk på Bekreft før du lagrer konfigurasjonen.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="147"/>
@@ -4318,7 +4535,7 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="164"/>
<source>Verified</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Bekreftet</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="169"/>
@@ -4334,7 +4551,7 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="172"/>
<source>Verification failed. Check that you have entered your token correctly, and that your internet connection is working.</source>
- <translation type="unfinished"/>
+ <translation>Bekreftelsen mislyktes. Kontroller at du har tastet inn tokenet ditt riktig, og at internettforbindelsen din fungerer.</translation>
</message>
</context>
<context>
@@ -4345,9 +4562,9 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<translation>Kontroller P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
- <translation type="unfinished"/>
+ <translation>&amp;Controller P1</translation>
</message>
</context>
<context>
@@ -4355,600 +4572,622 @@ Dra punkter for å endre posisjon, eller dobbelttrykk på tabellfelter for å re
<message>
<location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="14"/>
<source>Direct Connect</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
+ <translation>Direkte Tilkobling</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Server Adresse</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server addressen til verten&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Port</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Portnummeret verten lytter på&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Kallenavn</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Passord</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Koble Til</translation>
</message>
</context>
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
- <translation type="unfinished"/>
+ <translation>Kobler Til</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Koble Til</translation>
</message>
</context>
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonym data blir samlet inn&lt;/a&gt;for å hjelpe til med å forbedre yuzu.&lt;br/&gt;&lt;br/&gt;Vil du dele din bruksdata med oss?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetri</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
- <translation type="unfinished"/>
+ <translation>Ødelagt Vulkan-installasjon oppdaget</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
- <translation type="unfinished"/>
+ <translation>Vulkan-initialisering mislyktes under oppstart.&lt;br&gt;&lt;br&gt;Klikk&lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;her for instruksjoner for å løse problemet&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Laster web-applet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Slå av web-applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
- <translation type="unfinished"/>
+ <translation>Deaktivering av webappleten kan føre til udefinert oppførsel og bør bare brukes med Super Mario 3D All-Stars. Er du sikker på at du vil deaktivere webappleten?
+(Dette kan aktiveres på nytt i feilsøkingsinnstillingene).</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Antall shader-e som bygges for øyeblikket</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>Den valgte oppløsningsskaleringsfaktoren.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Nåværende emuleringshastighet. Verdier høyere eller lavere en 100% indikerer at emuleringen kjører raskere eller tregere enn en Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Hvor mange bilder per sekund spiller viser. Dette vil variere fra spill til spill og scene til scene.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Tid det tar for å emulere et Switch bilde. Teller ikke med bildebegrensing eller v-sync. For full-hastighet emulering burde dette være 16.67 ms. på det høyeste.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
- <translation type="unfinished"/>
+ <translation>&amp;Tøm Nylige Filer</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Emulert mus er aktivert</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>Ekte museinndata og musepanning er inkompatible. Deaktiver den emulerte musen i avanserte innstillinger for inndata for å tillate musepanning.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
- <translation type="unfinished"/>
+ <translation>&amp;Fortsett</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Paus</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>Et spill kjører i yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Advarsel: Utdatert Spillformat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Du bruker en dekonstruert ROM-mappe for dette spillet, som er et utdatert format som har blitt erstattet av andre formater som NCA, NAX, XCI, eller NSP. Dekonstruerte ROM-mapper mangler ikoner, metadata, og oppdateringsstøtte.&lt;br&gt;&lt;br&gt;For en forklaring på diverse Switch-formater som yuzu støtter,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;sjekk vår wiki&lt;/a&gt;. Denne meldingen vil ikke bli vist igjen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Feil under innlasting av ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Dette ROM-formatet er ikke støttet.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>En feil oppstod under initialisering av videokjernen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu har oppdaget en feil under kjøring av videokjernen. Dette er vanligvis forårsaket av utdaterte GPU-drivere, inkludert for integrert grafikk. Vennligst sjekk loggen for flere detaljer. For mer informasjon om å finne loggen, besøk følgende side: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Uploadd the Log File&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Feil under lasting av ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
- <translation type="unfinished"/>
+ <translation>%1&lt;br&gt;Vennligst følg &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;hurtigstartsguiden&lt;/a&gt; for å redumpe filene dine. &lt;br&gt;Du kan henvise til yuzu wikien&lt;/a&gt; eller yuzu Discorden&lt;/a&gt; for hjelp.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>En ukjent feil oppstod. Se loggen for flere detaljer.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Lukker programvare...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Lagre Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Feil Under Åpning av %1 Mappen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Mappen eksisterer ikke!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
- <translation type="unfinished"/>
+ <translation>Feil ved åpning av overførbar shaderbuffer</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
- <translation type="unfinished"/>
+ <translation>Kunne ikke opprette shader cache-katalogen for denne tittelen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>Feil ved fjerning av innhold</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation type="unfinished"/>
+ <translation>Feil ved fjerning av oppdatering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation type="unfinished"/>
+ <translation>Feil ved fjerning av DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>Fjern Innstallert Spillinnhold?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation type="unfinished"/>
+ <translation>Fjern Installert Spilloppdatering?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
- <translation type="unfinished"/>
+ <translation>Fjern Installert Spill DLC?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Fjern oppføring</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Fjerning lykkes</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
- <translation type="unfinished"/>
+ <translation>Vellykket fjerning av det installerte basisspillet.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Grunnspillet er ikke installert i NAND og kan ikke bli fjernet.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Fjernet vellykket den installerte oppdateringen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Det er ingen oppdatering installert for denne tittelen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Det er ingen DLC installert for denne tittelen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Fjernet vellykket %1 installerte DLC-er.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
- <translation type="unfinished"/>
+ <translation>Slette OpenGL Overførbar Shaderbuffer?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
- <translation type="unfinished"/>
+ <translation>Slette Vulkan Overførbar Shaderbuffer?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
- <translation type="unfinished"/>
+ <translation>Slette Alle Overførbare Shaderbuffere?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Fjern Tilpasset Spillkonfigurasjon?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation>Fjerne Hurtiglagringen?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Fjern Fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Feil under fjerning av overførbar shader cache</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
- <translation type="unfinished"/>
+ <translation>En shaderbuffer for denne tittelen eksisterer ikke.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Lykkes i å fjerne den overførbare shader cachen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Feil under fjerning av den overførbare shader cachen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Feil ved fjerning av Vulkan Driver-Rørledningsbuffer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Kunne ikke fjerne driverens rørledningsbuffer.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
- <translation type="unfinished"/>
+ <translation>Feil ved fjerning av overførbare shaderbuffere</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
- <translation type="unfinished"/>
+ <translation>Vellykket fjerning av overførbare shaderbuffere.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
- <translation type="unfinished"/>
+ <translation>Feil ved fjerning av overførbar shaderbuffer katalog.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Feil Under Fjerning Av Tilpasset Konfigurasjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>En tilpasset konfigurasjon for denne tittelen finnes ikke.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Fjernet vellykket den tilpassede spillkonfigurasjonen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Feil under fjerning av den tilpassede spillkonfigurasjonen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Utvinning av RomFS Feilet!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Det oppstod en feil under kopiering av RomFS filene eller så kansellerte brukeren operasjonen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Fullstendig</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Skjelett</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Velg RomFS Dump Modus</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Velg hvordan du vil dumpe RomFS.&lt;br&gt;Fullstendig vil kopiere alle filene til en ny mappe mens &lt;br&gt;skjelett vil bare skape mappestrukturen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
- <translation type="unfinished"/>
+ <translation>Det er ikke nok ledig plass på %1 til å pakke ut RomFS. Vennligst frigjør plass eller velg en annen dump-katalog under Emulering &gt; Konfigurer &gt; System &gt; Filsystem &gt; Dump Root.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Utvinner RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Avbryt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS Utpakking lyktes!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Operasjonen fullført vellykket.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Lag Snarvei</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Dette vil opprette en snarvei til gjeldende AppImage. Dette fungerer kanskje ikke bra hvis du oppdaterer. Fortsette?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Kan ikke opprette snarvei på skrivebordet. Stien &quot;%1&quot; finnes ikke.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Kan ikke opprette snarvei i applikasjonsmenyen. Stien &quot;%1&quot; finnes ikke og kan ikke opprettes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Lag Ikon</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Kan ikke opprette ikonfil. Stien &quot;%1&quot; finnes ikke og kan ikke opprettes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Start %1 med yuzu-emulatoren</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Mislyktes i å opprette en snarvei ved %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Opprettet en snarvei til %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Feil ved åpning av %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Velg Mappe</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Egenskaper</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Spillets egenskaper kunne ikke bli lastet inn.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch Kjørbar Fil (%1);;Alle Filer (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Last inn Fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Åpne Utpakket ROM Mappe</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Ugyldig Mappe Valgt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Mappen du valgte inneholder ikke en &apos;main&apos; fil.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Installerbar Switch-Fil (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xcI)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Installer Filer</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n fil gjenstår</numerusform><numerusform>%n filer gjenstår</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Installerer fil &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Insallasjonsresultater</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
- <translation type="unfinished"/>
+ <translation>For å unngå mulige konflikter fraråder vi brukere å installere basisspill på NAND.
+Bruk kun denne funksjonen til å installere oppdateringer og DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n fil ble nylig installert
-</numerusform><numerusform>%n filer ble nylig installert
+</numerusform><numerusform>%n fil(er) ble nylig installert
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n fil ble overskrevet
@@ -4956,7 +5195,7 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n fil ble ikke installert
@@ -4964,377 +5203,388 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Systemapplikasjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Systemarkiv</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Systemapplikasjonsoppdatering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Firmware Pakke (Type A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Firmware-Pakke (Type B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Spill</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Spilloppdatering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Spill tilleggspakke</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta Tittel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Velg NCA Installasjonstype...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Vennligst velg typen tittel du vil installere denne NCA-en som:
(I de fleste tilfellene, standarden &apos;Spill&apos; fungerer.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Feil under Installasjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Titteltypen du valgte for NCA-en er ugyldig.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Fil ikke funnet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Filen &quot;%1&quot; ikke funnet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
- <translation type="unfinished"/>
+ <translation>Krav til maskinvare ikke oppfylt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation type="unfinished"/>
+ <translation>Systemet ditt oppfyller ikke de anbefalte maskinvarekravene. Kompatibilitetsrapportering er deaktivert.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Mangler yuzu Bruker</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>For å sende inn et testtilfelle for spillkompatibilitet, må du linke yuzu-brukeren din.&lt;br&gt;&lt;br/&gt;For å linke yuzu-brukeren din, gå til Emulasjon &amp;gt; Konfigurasjon &amp;gt; Nett.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Feil under åpning av URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Kunne ikke åpne URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>TAS-innspilling</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Overskriv filen til spiller 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Ugyldig konfigurasjon oppdaget</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Håndholdt kontroller kan ikke brukes i dokket modus. Pro-kontroller vil bli valgt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>Den valgte amiibo-en har blitt fjernet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Feil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>Det kjørende spillet sjekker ikke for amiibo-er</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo-Fil (%1);; Alle Filer (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Last inn Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Feil ved lasting av Amiibo data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
- <translation type="unfinished"/>
+ <translation>Den valgte filen er ikke en gyldig amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
- <translation type="unfinished"/>
+ <translation>Den valgte filen er allerede i bruk</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
- <translation type="unfinished"/>
+ <translation>En ukjent feil oppso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Ta Skjermbilde</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG Bilde (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>TAS-tilstand: Kjører %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>TAS-tilstand: Spiller inn %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>TAS-tilstand: Venter %1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>TAS-tilstand: Ugyldig</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Stopp kjøring</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
- <translation type="unfinished"/>
+ <translation>Stopp innspilling (&amp;E)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
- <translation type="unfinished"/>
+ <translation>Spill inn (%E)</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Bygger: %n shader</numerusform><numerusform>Bygger: %n shader-e</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Skala: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Hastighet: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Hastighet: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Spill: %1 FPS (ubegrenset)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Spill: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Ramme: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU HØY</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EKSTREM</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU FEIL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
- <translation type="unfinished"/>
+ <translation>FORANKRET</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
- <translation type="unfinished"/>
+ <translation>HÅNDHOLDT</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>NÆRMESTE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEÆR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BIKUBISK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSISK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>INGEN AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>VOLUM: DEMPET</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>VOLUM: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Bekreft Nøkkel-Redirevasjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5351,37 +5601,37 @@ og eventuelt lag backups.
Dette vil slette dine autogenererte nøkkel-filer og kjøre nøkkel-derivasjonsmodulen på nytt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Mangler fuses</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Mangler BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- Mangler BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- Mangler PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Derivasjonskomponenter Mangler</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Krypteringsnøkler mangler. &lt;br&gt;Vennligst følg &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzus oppstartsguide&lt;/a&gt; for å få alle nøklene, fastvaren og spillene dine.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5390,39 +5640,49 @@ Dette kan ta opp til et minutt avhengig
av systemytelsen din.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Deriverer Nøkler</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>Dekryptering av systemarkiv mislyktes</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>Krypteringsnøkler klarte ikke å dekryptere firmware. &lt;br&gt;Vennligst følg &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;quickstartguiden for yuzu &lt;/a&gt; for å få alle nøkler, firmware og spill.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Velg RomFS Dump-Mål</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Vennligst velg hvilken RomFS du vil dumpe.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Er du sikker på at du vil lukke yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Er du sikker på at du vil stoppe emulasjonen? All ulagret fremgang vil bli tapt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5434,44 +5694,44 @@ Vil du overstyre dette og lukke likevel?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL ikke tilgjengelig!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Delte OpenGL-kontekster støttes ikke.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu har ikke blitt kompilert med OpenGL-støtte.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Feil under initialisering av OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Det kan hende at GPU-en din ikke støtter OpenGL, eller at du ikke har den nyeste grafikkdriveren.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Feil under initialisering av OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Det kan hende at GPU-en din ikke støtter OpenGL 4.6, eller at du ikke har den nyeste grafikkdriveren.&lt;br&gt;&lt;br&gt;GL-renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>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.&lt;br&gt;&lt;br&gt;GL-renderer: &lt;br&gt;%1&lt;br&gt;&lt;br&gt;Ikke-støttede utvidelser:&lt;br&gt;%2</translation>
</message>
@@ -5486,12 +5746,12 @@ Vil du overstyre dette og lukke likevel?</translation>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="534"/>
<source>Start Game</source>
- <translation type="unfinished"/>
+ <translation>Start Spill</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="536"/>
<source>Start Game without Custom Configuration</source>
- <translation type="unfinished"/>
+ <translation>Star Spill Uten Tilpasset Konfigurasjon</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="538"/>
@@ -5506,7 +5766,7 @@ Vil du overstyre dette og lukke likevel?</translation>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="541"/>
<source>Open Transferable Pipeline Cache</source>
- <translation type="unfinished"/>
+ <translation>Åpne Overførbar Rørledningsbuffer</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="543"/>
@@ -5530,117 +5790,122 @@ Vil du overstyre dette og lukke likevel?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
- <translation type="unfinished"/>
+ <source>Remove Cache Storage</source>
+ <translation>Fjern Hurtiglagring</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation>Fjer OpenGL Rørledningsbuffer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
- <translation type="unfinished"/>
+ <translation>Fjern Vulkan Rørledningsbuffer</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
- <translation type="unfinished"/>
+ <translation>Fjern Alle Rørledningsbuffere</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Fjern All Installert Innhold</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Dump RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
- <translation type="unfinished"/>
+ <translation>Dump RomFS til SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Kopier Tittel-ID til Utklippstavle</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Naviger til GameDB-oppføring</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>lag Snarvei</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Legg Til På Skrivebordet</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Legg Til Applikasjonsmenyen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Egenskaper</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Skann Undermapper</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Fjern Spillmappe</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Flytt Opp</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Flytt Ned</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Åpne Spillmappe</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Fjern</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Navn</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Kompatibilitet</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Tilleggsprogrammer</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Fil Type</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Størrelse</translation>
</message>
@@ -5650,12 +5915,12 @@ Vil du overstyre dette og lukke likevel?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Ingame</source>
- <translation type="unfinished"/>
+ <translation>i Spillet</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Game starts, but crashes or major glitches prevent it from being completed.</source>
- <translation type="unfinished"/>
+ <translation>Spillet starter, men krasjer eller større feil gjør at det ikke kan fullføres.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
@@ -5665,17 +5930,17 @@ Vil du overstyre dette og lukke likevel?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
<source>Game can be played without issues.</source>
- <translation type="unfinished"/>
+ <translation>Spillet kan spilles uten problemer.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Playable</source>
- <translation type="unfinished"/>
+ <translation>Spillbart</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Game functions with minor graphical or audio glitches and is playable from start to finish.</source>
- <translation type="unfinished"/>
+ <translation>Spillet fungerer med mindre grafiske eller lydfeil og kan spilles fra start til slutt.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
@@ -5685,7 +5950,7 @@ Vil du overstyre dette og lukke likevel?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
<source>Game loads, but is unable to progress past the Start Screen.</source>
- <translation type="unfinished"/>
+ <translation>Spillet lastes inn, men kan ikke gå videre forbi startskjermen.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="156"/>
@@ -5711,7 +5976,7 @@ Vil du overstyre dette og lukke likevel?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Dobbeltrykk for å legge til en ny mappe i spillisten</translation>
</message>
@@ -5724,14 +5989,14 @@ Vil du overstyre dette og lukke likevel?</translation>
<translation><numerusform>%1 of %n resultat</numerusform><numerusform>%1 of %n resultater</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
- <translation type="unfinished"/>
+ <translation>Angi mønster for å filtrere</translation>
</message>
</context>
<context>
@@ -5739,22 +6004,22 @@ Vil du overstyre dette og lukke likevel?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="14"/>
<source>Create Room</source>
- <translation type="unfinished"/>
+ <translation>Opprett Rom</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="37"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Romnavn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="51"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Foretrukket spill</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="61"/>
<source>Max Players</source>
- <translation type="unfinished"/>
+ <translation>Maks Spillere</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="91"/>
@@ -5764,42 +6029,42 @@ Vil du overstyre dette og lukke likevel?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="101"/>
<source>(Leave blank for open game)</source>
- <translation type="unfinished"/>
+ <translation>(La stå tomt for åpent spill)</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="118"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Passord</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="125"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Port</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="139"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Rombeskrivelse</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
<source>Load Previous Ban List</source>
- <translation type="unfinished"/>
+ <translation>Last inn tidligere forbudsliste</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="184"/>
<source>Public</source>
- <translation type="unfinished"/>
+ <translation>Offentlig</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="189"/>
<source>Unlisted</source>
- <translation type="unfinished"/>
+ <translation>Ikke oppført</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="197"/>
<source>Host Room</source>
- <translation type="unfinished"/>
+ <translation>Bli vertskap for et rom</translation>
</message>
</context>
<context>
@@ -5813,18 +6078,18 @@ Vil du overstyre dette og lukke likevel?</translation>
<location filename="../../src/yuzu/multiplayer/host_room.cpp" line="183"/>
<source>Failed to announce the room to the public lobby. In order to host a room publicly, you must have a valid yuzu account configured in Emulation -&gt; Configure -&gt; Web. If you do not want to publish a room in the public lobby, then select Unlisted instead.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Kunne ikke annonsere rommet til den offentlige lobbyen. For å være vert for et rom offentlig, må du ha en gyldig yuzu-konto konfigurert i Emulering -&gt; Konfigurer -&gt; Web. Hvis du ikke vil publisere et rom i den offentlige lobbyen, velger du ikke oppført i stedet.
+Feilmelding:</translation>
</message>
</context>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
- <translation type="unfinished"/>
+ <translation>Lyd av/på</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5846,113 +6111,114 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
- <translation type="unfinished"/>
+ <translation>Hovedvindu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
- <translation type="unfinished"/>
+ <translation>Lydvolum Ned</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
- <translation type="unfinished"/>
+ <translation>Lydvolum Opp</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Ta Skjermbilde</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
- <translation type="unfinished"/>
+ <translation>Endre tilpasningsfilter</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
- <translation type="unfinished"/>
+ <translation>Endre forankret modus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
- <translation type="unfinished"/>
+ <translation>Endre GPU-nøyaktighet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
- <translation type="unfinished"/>
+ <translation>Fortsett/Pause Emuleringen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
- <translation type="unfinished"/>
+ <translation>Avslutt fullskjerm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
- <translation type="unfinished"/>
+ <translation>Avslutt yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Fullskjerm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Last inn Fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Last/Fjern Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
- <translation type="unfinished"/>
+ <translation>Omstart Emuleringen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
- <translation type="unfinished"/>
+ <translation>Stopp Emuleringen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
- <translation type="unfinished"/>
+ <translation>Spill inn TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
- <translation type="unfinished"/>
+ <translation>Tilbakestill TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
- <translation type="unfinished"/>
+ <translation>Start/Stopp TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
- <translation type="unfinished"/>
+ <translation>Veksle Filterlinje</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
- <translation type="unfinished"/>
+ <translation>Veksle Bildefrekvensgrense</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
- <translation type="unfinished"/>
+ <translation>Veksle Muspanorering</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
- <translation type="unfinished"/>
+ <translation>Veksle Statuslinje</translation>
</message>
</context>
<context>
@@ -5965,7 +6231,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/install_dialog.cpp" line="32"/>
<source>Installing an Update or DLC will overwrite the previously installed one.</source>
- <translation type="unfinished"/>
+ <translation>Installering av en oppdatering eller DLC vil overskrive den tidligere installerte.</translation>
</message>
<message>
<location filename="../../src/yuzu/install_dialog.cpp" line="36"/>
@@ -5973,7 +6239,7 @@ Debug Message: </source>
<translation>Installer</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Installer filer til NAND</translation>
</message>
@@ -5981,7 +6247,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>Teksten kan ikke inneholde noen av de følgende tegnene:
@@ -6031,78 +6297,83 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="14"/>
<source>Public Room Browser</source>
- <translation type="unfinished"/>
+ <translation>Nettleser for offentlige rom</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="32"/>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="39"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Kallenavn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="59"/>
<source>Filters</source>
- <translation type="unfinished"/>
+ <translation>Filtre</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="66"/>
<source>Search</source>
- <translation type="unfinished"/>
+ <translation>Søk</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="76"/>
<source>Games I Own</source>
- <translation type="unfinished"/>
+ <translation>Spill Jeg Eier</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Gjem Tomme Rom</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
- <translation type="unfinished"/>
+ <translation>Gjem Fulle Rom</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
- <translation type="unfinished"/>
+ <translation>Oppdater Lobbyen</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
- <translation type="unfinished"/>
+ <translation>Passord Kreves For Å Delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
- <translation type="unfinished"/>
+ <translation>Passord:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Spillere</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Romnavn</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Foretrukket spill</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
- <translation type="unfinished"/>
+ <translation>Vert</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Oppdaterer</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
- <translation type="unfinished"/>
+ <translation>Oppdater liste</translation>
</message>
</context>
<context>
@@ -6140,7 +6411,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="86"/>
<source>&amp;Debugging</source>
- <translation type="unfinished"/>
+ <translation>Feilsøking (&amp;D)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="91"/>
@@ -6175,7 +6446,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="127"/>
<source>&amp;Multiplayer</source>
- <translation type="unfinished"/>
+ <translation>Flerspiller (&amp;M)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="138"/>
@@ -6200,12 +6471,12 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="183"/>
<source>L&amp;oad File...</source>
- <translation type="unfinished"/>
+ <translation>Last inn fil... (&amp;O)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="188"/>
<source>Load &amp;Folder...</source>
- <translation type="unfinished"/>
+ <translation>Last inn mappe (&amp;F)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="193"/>
@@ -6230,12 +6501,12 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="219"/>
<source>&amp;About yuzu</source>
- <translation type="unfinished"/>
+ <translation>Om yuzu (&amp;A)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="227"/>
<source>Single &amp;Window Mode</source>
- <translation type="unfinished"/>
+ <translation>Énvindusmodus (&amp;W)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="232"/>
@@ -6245,7 +6516,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="243"/>
<source>Display D&amp;ock Widget Headers</source>
- <translation type="unfinished"/>
+ <translation>Vis Overskrifter for Dock Widget (&amp;O)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="251"/>
@@ -6265,27 +6536,27 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="270"/>
<source>&amp;Browse Public Game Lobby</source>
- <translation type="unfinished"/>
+ <translation>Bla gjennom den offentlige spillobbyen (&amp;B)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="278"/>
<source>&amp;Create Room</source>
- <translation type="unfinished"/>
+ <translation>Opprett Rom (&amp;C)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="286"/>
<source>&amp;Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Forlat Rommet (&amp;L)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="291"/>
<source>&amp;Direct Connect to Room</source>
- <translation type="unfinished"/>
+ <translation>Direkte Tilkobling Til Rommet (&amp;D)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="299"/>
<source>&amp;Show Current Room</source>
- <translation type="unfinished"/>
+ <translation>Vis nåværende rom (&amp;S)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="307"/>
@@ -6295,52 +6566,52 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="315"/>
<source>&amp;Restart</source>
- <translation type="unfinished"/>
+ <translation>Omstart (&amp;R)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="323"/>
<source>Load/Remove &amp;Amiibo...</source>
- <translation type="unfinished"/>
+ <translation>Last/Fjern Amiibo (&amp;A)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="331"/>
<source>&amp;Report Compatibility</source>
- <translation type="unfinished"/>
+ <translation>Rapporter kompatibilitet (&amp;R)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="339"/>
<source>Open &amp;Mods Page</source>
- <translation type="unfinished"/>
+ <translation>Åpne Modifikasjonssiden (&amp;M)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="344"/>
<source>Open &amp;Quickstart Guide</source>
- <translation type="unfinished"/>
+ <translation>Åpne Hurtigstartsguiden (&amp;Q)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="349"/>
<source>&amp;FAQ</source>
- <translation type="unfinished"/>
+ <translation>&amp;FAQ</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="354"/>
<source>Open &amp;yuzu Folder</source>
- <translation type="unfinished"/>
+ <translation>Åpne &amp;yuzu Mappen</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="362"/>
<source>&amp;Capture Screenshot</source>
- <translation type="unfinished"/>
+ <translation>Ta Skjermbilde (&amp;C)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="367"/>
<source>&amp;Configure TAS...</source>
- <translation type="unfinished"/>
+ <translation>Konfigurer TAS (&amp;C)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="378"/>
<source>Configure C&amp;urrent Game...</source>
- <translation type="unfinished"/>
+ <translation>Konfigurer Gjeldende Spill (&amp;U)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="389"/>
@@ -6350,12 +6621,12 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="397"/>
<source>&amp;Reset</source>
- <translation type="unfinished"/>
+ <translation>Tilbakestill (&amp;R)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="405"/>
<source>R&amp;ecord</source>
- <translation type="unfinished"/>
+ <translation>Spill inn (%E)</translation>
</message>
</context>
<context>
@@ -6363,7 +6634,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/debugger/profiler.cpp" line="50"/>
<source>&amp;MicroProfile</source>
- <translation type="unfinished"/>
+ <translation>Mikroprofil (&amp;M)</translation>
</message>
</context>
<context>
@@ -6371,48 +6642,48 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="6"/>
<source>Moderation</source>
- <translation type="unfinished"/>
+ <translation>Moderasjon</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="20"/>
<source>Ban List</source>
- <translation type="unfinished"/>
+ <translation>Utestengelsesliste</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="41"/>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="73"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Oppdaterer</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="51"/>
<source>Unban</source>
- <translation type="unfinished"/>
+ <translation>Fjern Utestengning</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="40"/>
<source>Subject</source>
- <translation type="unfinished"/>
+ <translation>Emne</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="41"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Type</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="83"/>
<source>Forum Username</source>
- <translation type="unfinished"/>
+ <translation>Forum Brukernavn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="88"/>
<source>IP Address</source>
- <translation type="unfinished"/>
+ <translation>IP Adresse</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="95"/>
<source>Refresh</source>
- <translation type="unfinished"/>
+ <translation>Oppdater</translation>
</message>
</context>
<context>
@@ -6420,17 +6691,17 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="90"/>
<source>Current connection status</source>
- <translation type="unfinished"/>
+ <translation>Gjeldende tilkoblingsstatus</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="117"/>
<source>Not Connected. Click here to find a room!</source>
- <translation type="unfinished"/>
+ <translation>Ikke tilkoblet. Klikk her for å finne et rom!</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="123"/>
<source>Not Connected</source>
- <translation type="unfinished"/>
+ <translation>Ikke Tilkoblet</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="129"/>
@@ -6440,7 +6711,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="136"/>
<source>New Messages Received</source>
- <translation type="unfinished"/>
+ <translation>Nye meldinger mottatt</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="207"/>
@@ -6451,7 +6722,8 @@ Debug Message: </source>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="208"/>
<source>Failed to update the room information. Please check your Internet connection and try hosting the room again.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Kunne ikke oppdatere rominformasjonen. Kontroller Internett-tilkoblingen din og prøv å være vert for rommet på nytt.
+Feilsøkingsmelding:</translation>
</message>
</context>
<context>
@@ -6459,135 +6731,138 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="11"/>
<source>Username is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Brukernavnet er ikke gyldig. Må være mellom 4 og 20 alfanumeriske karakterer.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="13"/>
<source>Room name is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Romnavnet er ikke gyldig. Må være mellom 4 og 20 alfanumeriske karakterer.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="15"/>
<source>Username is already in use or not valid. Please choose another.</source>
- <translation type="unfinished"/>
+ <translation>Brukernavnet er i bruk eller ikke gyldig. Vennligs velg et annet.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="17"/>
<source>IP is not a valid IPv4 address.</source>
- <translation type="unfinished"/>
+ <translation>IP er ikke en gyldig IPv4 adresse.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="19"/>
<source>Port must be a number between 0 to 65535.</source>
- <translation type="unfinished"/>
+ <translation>Porten må være et nummer mellom 0 og 65535.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="20"/>
<source>You must choose a Preferred Game to host a room. If you do not have any games in your game list yet, add a game folder by clicking on the plus icon in the game list.</source>
- <translation type="unfinished"/>
+ <translation>Du må velge et foretrukket spill for å være vert for et rom. Hvis du ikke har noen spill i spillelisten din ennå, kan du legge til en spillmappe ved å klikke på plussikonet i spillelisten.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="24"/>
<source>Unable to find an internet connection. Check your internet settings.</source>
- <translation type="unfinished"/>
+ <translation>Finner ikke en internettforbindelse. Sjekk internettinnstillingene dine.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="26"/>
<source>Unable to connect to the host. Verify that the connection settings are correct. If you still cannot connect, contact the room host and verify that the host is properly configured with the external port forwarded.</source>
- <translation type="unfinished"/>
+ <translation>Kan ikke koble til verten. Kontroller at tilkoblingsinnstillingene er riktige. Hvis du fortsatt ikke kan koble til, kontakt romverten og kontroller at verten er riktig konfigurert med den eksterne porten videresendt.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="30"/>
<source>Unable to connect to the room because it is already full.</source>
- <translation type="unfinished"/>
+ <translation>Kan ikke koble til rommet fordi det allerede er fullt.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="32"/>
<source>Creating a room failed. Please retry. Restarting yuzu might be necessary.</source>
- <translation type="unfinished"/>
+ <translation>Opprettelse av rom mislyktes. Vennligst prøv på nytt. Det kan være nødvendig å starte yuzu på nytt.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="34"/>
<source>The host of the room has banned you. Speak with the host to unban you or try a different room.</source>
- <translation type="unfinished"/>
+ <translation>Verten for rommet har utestengt deg. Snakk med verten for å oppheve utestengingen eller prøv et annet rom.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="37"/>
<source>Version mismatch! Please update to the latest version of yuzu. If the problem persists, contact the room host and ask them to update the server.</source>
- <translation type="unfinished"/>
+ <translation>Feil versjon! Vennligst oppdater til den nyeste versjonen av yuzu. Hvis problemet vedvarer, kontakt romverten og be dem om å oppdatere serveren.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="39"/>
<source>Incorrect password.</source>
- <translation type="unfinished"/>
+ <translation>Feil passord.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="40"/>
<source>An unknown error occurred. If this error continues to occur, please open an issue</source>
- <translation type="unfinished"/>
+ <translation>Det oppstod en ukjent feil. Hvis denne feilen fortsetter å oppstå, vennligst åpne et problem.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="43"/>
<source>Connection to room lost. Try to reconnect.</source>
- <translation type="unfinished"/>
+ <translation>Forbindelsen til rommet er brutt. Prøv å koble til igjen.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="45"/>
<source>You have been kicked by the room host.</source>
- <translation type="unfinished"/>
+ <translation>Du har blitt sparket av romverten.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="47"/>
<source>IP address is already in use. Please choose another.</source>
- <translation type="unfinished"/>
+ <translation>IP-adressen er allerede i bruk. Vennligst velg en annen.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="49"/>
<source>You do not have enough permission to perform this action.</source>
- <translation type="unfinished"/>
+ <translation>Du har ikke tilstrekkelig tillatelse til å utføre denne handlingen.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="50"/>
<source>The user you are trying to kick/ban could not be found.
They may have left the room.</source>
- <translation type="unfinished"/>
+ <translation>Brukeren du prøver å utestenge ble ikke funnet.
+De kan ha forlatt rommet.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="52"/>
<source>No valid network interface is selected.
Please go to Configure -&gt; System -&gt; Network and make a selection.</source>
- <translation type="unfinished"/>
+ <translation>Ingen gyldig nettverksgrensesnitt er valgt.
+Gå til Konfigurer -&gt; System -&gt; Nettverk og gjør et valg.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="68"/>
<source>Game already running</source>
- <translation type="unfinished"/>
+ <translation>Spillet kjører allerede</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="69"/>
<source>Joining a room when the game is already running is discouraged and can cause the room feature not to work correctly.
Proceed anyway?</source>
- <translation type="unfinished"/>
+ <translation>Å bli med i et rom når spillet allerede er i gang frarådes og kan føre til at romfunksjonen ikke fungerer som den skal.
+Fortsette likevel?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="75"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Forlat Rommet</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="76"/>
<source>You are about to close the room. Any network connections will be closed.</source>
- <translation type="unfinished"/>
+ <translation>Du er i ferd med å lukke rommet. Eventuelle nettverkstilkoblinger vil bli stengt.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="81"/>
<source>Disconnect</source>
- <translation type="unfinished"/>
+ <translation>Koble Fra</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="82"/>
<source>You are about to leave the room. Any network connections will be closed.</source>
- <translation type="unfinished"/>
+ <translation>Du er i ferd med å forlate rommet. Eventuelle nettverkstilkoblinger vil bli stengt.</translation>
</message>
</context>
<context>
@@ -6634,7 +6909,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>START/PAUS</translation>
</message>
@@ -6644,17 +6919,17 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/lobby_p.h" line="236"/>
<source>%1 is not playing a game</source>
- <translation type="unfinished"/>
+ <translation>%1 spiller ikke et spill</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby_p.h" line="238"/>
<source>%1 is playing %2</source>
- <translation type="unfinished"/>
+ <translation>%1 spiller %2</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="142"/>
<source>Not playing a game</source>
- <translation type="unfinished"/>
+ <translation>Spiller ikke et spill</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="244"/>
@@ -6683,31 +6958,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[ikke satt]</translation>
</message>
@@ -6718,14 +6993,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Akse %1%2</translation>
</message>
@@ -6736,264 +7011,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[ukjent]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Venstre</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Høyre</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Ned</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Opp</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Sirkel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Kryss</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Firkant</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Trekant</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Del</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Instillinger</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[udefinert]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
- <translation type="unfinished"/>
+ <translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[ugyldig]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
- <translation type="unfinished"/>
+ <translation>%1%2Hat %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Akse %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Akse %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Bevegelse %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Knapp %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[ubrukt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Venstre Stikke</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Høyre Stikke</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Pluss</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Minus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Hjem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Opptak</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Touch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Hjul</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Bakover</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Fremover</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
- <translation type="unfinished"/>
+ <translation>oppgave</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Ekstra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3Hat %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3Akse %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Knapp %4</translation>
</message>
</context>
<context>
@@ -7001,22 +7334,22 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="14"/>
<source>Amiibo Settings</source>
- <translation type="unfinished"/>
+ <translation>Amiibo Innstillinger</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="169"/>
<source>Amiibo Info</source>
- <translation type="unfinished"/>
+ <translation>Amiibo Info</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="177"/>
<source>Series</source>
- <translation type="unfinished"/>
+ <translation>Serie</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="197"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>TypeType</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="217"/>
@@ -7026,52 +7359,52 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="242"/>
<source>Amiibo Data</source>
- <translation type="unfinished"/>
+ <translation>Amiibo Data</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="250"/>
<source>Custom Name</source>
- <translation type="unfinished"/>
+ <translation>Tilpasset Navn</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="270"/>
<source>Owner</source>
- <translation type="unfinished"/>
+ <translation>Eier</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="290"/>
<source>Creation Date</source>
- <translation type="unfinished"/>
+ <translation>Skapelsesdato</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="307"/>
<source>dd/MM/yyyy</source>
- <translation type="unfinished"/>
+ <translation>dd/MM/yyyy</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="314"/>
<source>Modification Date</source>
- <translation type="unfinished"/>
+ <translation>Modifiseringsdato</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="331"/>
<source>dd/MM/yyyy </source>
- <translation type="unfinished"/>
+ <translation>dd/MM/yyyy </translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="349"/>
<source>Game Data</source>
- <translation type="unfinished"/>
+ <translation>Spilldata</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="355"/>
<source>Game Id</source>
- <translation type="unfinished"/>
+ <translation>Spillid</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="384"/>
<source>Mount Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Monter Amiibo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="390"/>
@@ -7081,32 +7414,32 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="413"/>
<source>File Path</source>
- <translation type="unfinished"/>
+ <translation>Filbane</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="191"/>
<source>No game data present</source>
- <translation type="unfinished"/>
+ <translation>Ingen spilldata til stede</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="231"/>
<source>The following amiibo data will be formatted:</source>
- <translation type="unfinished"/>
+ <translation>Følgende amiibo-data vil bli formatert:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="234"/>
<source>The following game data will removed:</source>
- <translation type="unfinished"/>
+ <translation>Følgende spilldata vil bli fjernet:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="237"/>
<source>Set nickname and owner:</source>
- <translation type="unfinished"/>
+ <translation>Angi kallenavn og eier:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="240"/>
<source>Do you wish to restore this amiibo?</source>
- <translation type="unfinished"/>
+ <translation>Ønsker du å gjenopprette denne amiiboen?</translation>
</message>
</context>
<context>
@@ -7114,7 +7447,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="14"/>
<source>Controller Applet</source>
- <translation type="unfinished"/>
+ <translation>Applet for kontroller</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="129"/>
@@ -7362,27 +7695,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Feilkode: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>En feil har oppstått.
Vennligst prøv igjen eller kontakt programmets utvikler.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
- <translation type="unfinished"/>
+ <translation>Det oppstod en feil på %1 ved %2.
+Prøv igjen eller kontakt utvikleren av programvaren.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7406,20 +7740,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Velg en bruker:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Brukere</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Profilskaper</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Profilvelger</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Redigering av profilikon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Redigering av kallenavn</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>Hvem vil motta poengene?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>Hvem bruker Nintendo eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>Hvem foretar dette kjøpet?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>Hvem legger ut?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Velg en bruker for å koble til en Nintendo-konto.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>Endre innstillinger for hvilken bruker?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>Formater data for hvilken bruker?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>Hvilken bruker vil bli overført til en annen konsoll?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>Send lagrede data for hvilken bruker?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Velg en bruker:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7469,182 +7864,141 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>venter på alle objekter</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>venter på ett av de følgende objektene</translation>
+ <translation>Anropsstabel</translation>
</message>
</context>
<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
- <translation type="unfinished"/>
+ <translation>ventet på ingen tråd</translation>
</message>
</context>
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
- <translation type="unfinished"/>
+ <translation>kjørbar</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>pauset</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>sover</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>venter på IPC-svar</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>venter på objekter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
- <translation type="unfinished"/>
+ <translation>venter på tilstandsvariabel</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
- <translation type="unfinished"/>
+ <translation>venter på adresseforhandler</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
- <translation type="unfinished"/>
+ <translation>venter på gjenopptakelse av suspensjon</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>venter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
- <translation type="unfinished"/>
+ <translation>initialisert</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
- <translation type="unfinished"/>
+ <translation>terminert</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>ukjent</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideell</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>kjerne %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>prosessor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>ideell Kjerne = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
- <translation type="unfinished"/>
+ <translation>affinitetsmaske = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>tråd id = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioritet = %1(nåværende) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation type="unfinished"/>
+ <translation>siste løpende tick = %1</translation>
</message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
- <translation type="unfinished"/>
+ <translation>ventet med tråd</translation>
</message>
</context>
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
- <translation type="unfinished"/>
+ <translation>Ventetre (&amp;W)</translation>
</message>
</context>
</TS> \ No newline at end of file
diff --git a/dist/languages/nl.ts b/dist/languages/nl.ts
index 280e974cb..b2fe2669e 100644
--- a/dist/languages/nl.ts
+++ b/dist/languages/nl.ts
@@ -25,7 +25,13 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;yuzu is an experimental open-source emulator for the Nintendo Switch licensed under GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;This software should not be used to play games you have not legally obtained.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;yuzu is een experimentele open-source emulator voor de Nintendo Switch met een licentie onder GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&apos;MS Shell Dlg 2&apos;; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Deze software mag niet worden gebruikt om spellen te spelen die je niet legaal hebt verkregen.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="130"/>
@@ -48,17 +54,17 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="24"/>
<source>Cancel</source>
- <translation>Annuleren</translation>
+ <translation>Annuleer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="43"/>
<source>Touch the top left corner &lt;br&gt;of your touchpad.</source>
- <translation>Raak de linkerbovenhoek &lt;br&gt; van uw touchpad aan.</translation>
+ <translation>Raak de linkerbovenhoek &lt;br&gt; van je touchpad aan.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="46"/>
<source>Now touch the bottom right corner &lt;br&gt;of your touchpad.</source>
- <translation>klik nu op toets &lt;br&gt; op je toetsenbord</translation>
+ <translation>Raak nu de rechterbenedenhoek &lt;br&gt;van je touchpad aan.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="49"/>
@@ -76,17 +82,17 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Kamerraam</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="40"/>
<source>Send Chat Message</source>
- <translation>Stuur Chatbericht</translation>
+ <translation>Verzend Chatbericht</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="47"/>
<source>Send Message</source>
- <translation>Stuur Bericht</translation>
+ <translation>Verzend Bericht</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="181"/>
@@ -106,7 +112,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="324"/>
<source>%1 has been kicked</source>
- <translation>%1 is verwijderd</translation>
+ <translation>%1 is kicked</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="327"/>
@@ -116,55 +122,57 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="330"/>
<source>%1 has been unbanned</source>
- <translation>%1&apos;s ban is ongedaan gemaakt</translation>
+ <translation>Ban van %1 is ongedaan gemaakt</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="446"/>
<source>View Profile</source>
- <translation>Profiel Bekijken</translation>
+ <translation>Bekijk Profiel</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="459"/>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="469"/>
<source>Block Player</source>
- <translation>Speler Blokkeren</translation>
+ <translation>Blokkeer Speler</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="470"/>
<source>When you block a player, you will no longer receive chat messages from them.&lt;br&gt;&lt;br&gt;Are you sure you would like to block %1?</source>
- <translation type="unfinished"/>
+ <translation>Als je een speler blokkeert, ontvang je geen chatberichten meer van ze.&lt;br&gt;&lt;br&gt;Weet je zeker dat je %1 wilt blokkeren?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="483"/>
<source>Kick</source>
- <translation>Verwijderen</translation>
+ <translation>Kick</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="484"/>
<source>Ban</source>
- <translation>Verwijderen</translation>
+ <translation>Ban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="488"/>
<source>Kick Player</source>
- <translation>Speler verwijderen</translation>
+ <translation>Kick Speler</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="489"/>
<source>Are you sure you would like to &lt;b&gt;kick&lt;/b&gt; %1?</source>
- <translation>Weet je zeker dat je %1 wil &lt;b&gt;verwijderen&lt;/b&gt;?</translation>
+ <translation>Weet je zeker dat je %1 wil &lt;b&gt;kicken&lt;/b&gt;?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="497"/>
<source>Ban Player</source>
- <translation>Speler Verbannen</translation>
+ <translation>Ban Speler</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="498"/>
<source>Are you sure you would like to &lt;b&gt;kick and ban&lt;/b&gt; %1?
This would ban both their forum username and their IP address.</source>
- <translation type="unfinished"/>
+ <translation>Weet je zeker dat je %1 wilt &lt;b&gt;kicken en bannen&lt;/b&gt;?
+
+Dit zou zowel hun forum gebruikersnaam als hun IP-adres verbannen.</translation>
</message>
</context>
<context>
@@ -172,12 +180,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Kamervenster</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="27"/>
<source>Room Description</source>
- <translation>Kamer Beschrijving</translation>
+ <translation>Kamerbeschrijving</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="47"/>
@@ -187,7 +195,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="57"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Verlaat Kamer</translation>
</message>
</context>
<context>
@@ -200,12 +208,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="87"/>
<source>Disconnected</source>
- <translation type="unfinished"/>
+ <translation>Verbinding verbroken</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
<source>%1 - %2 (%3/%4 members) - connected</source>
- <translation type="unfinished"/>
+ <translation>%1 - %2 (%3/%4 leden) - verbonden</translation>
</message>
</context>
<context>
@@ -224,112 +232,112 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/compatdb.ui" line="271"/>
<location filename="../../src/yuzu/compatdb.ui" line="330"/>
<source>Report Game Compatibility</source>
- <translation>Rapporteer Game Compatibiliteit</translation>
+ <translation>Rapporteer Spelcompatibiliteit</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="36"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Should you choose to submit a test case to the &lt;/span&gt;&lt;a href=&quot;https://yuzu-emu.org/game/&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;yuzu Compatibility List&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, The following information will be collected and displayed on the site:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Hardware Information (CPU / GPU / Operating System)&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Which version of yuzu you are running&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;The connected yuzu account&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Als je kiest een test case op te sturen naar de &lt;/span&gt;&lt;a href=&quot;https://yuzu-emu.org/game/&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;yuzu compatibiliteitslijst&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, zal de volgende informatie worden verzameld en getoond op de site:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Hardware Informatie (CPU / GPU / Besturingssysteem)&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Welke versie van yuzu je draait&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Het verbonden yuzu account&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;Als je kiest een test case op te sturen naar de &lt;/span&gt;&lt;a href=&quot;https://yuzu-emu.org/game/&quot;&gt;&lt;span style=&quot; font-size:10pt; text-decoration: underline; color:#0000ff;&quot;&gt;yuzu-compatibiliteitslijst&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:10pt;&quot;&gt;, zal de volgende informatie worden verzameld en getoond op de site:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Hardware-informatie (CPU / GPU / Besturingssysteem)&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Welke versie van yuzu je draait&lt;/li&gt;&lt;li style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Het verbonden yuzu-account&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Start het spel op?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Ja Het spel begint video of audio te produceren</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Nee Het spel komt niet voorbij het &quot;Starten...&quot; scherm</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Ja Het spel komt voorbij het intro/menu en begint met het spel</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Nee Het spel loopt vast tijdens het laden of gebruik van het menu</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Bereikt het spel de gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Ja Het spel werkt zonder crashes</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Nee Het spel loopt vast of loopt vast tijdens het spelen</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Werkt het spel zonder te crashen, te bevriezen of vast te lopen tijdens het spelen?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Ja Het spel kan zonder omwegen worden uitgespeeld</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Nee Het spel kan niet verder dan een bepaald gebied</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is het spel volledig speelbaar van begin tot eind?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Major Het spel heeft aanzienlijke grafische fouten</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Minor Het spel heeft lichte grafische fouten</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Geen Alles wordt weergegeven zoals het eruit ziet op de Nintendo Switch</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Heeft het spel grafische glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Major Het spel heeft aanzienlijke audiofouten</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Minor Het spel heeft lichte audiofouten</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Geen Audio wordt perfect afgespeeld</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any audio glitches / missing effects?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Heeft het spel audio-glitches / ontbrekende effecten?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="389"/>
@@ -363,45 +371,70 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="14"/>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="20"/>
<source>Audio</source>
- <translation>Geluid</translation>
+ <translation>Audio</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="28"/>
<source>Output Engine:</source>
- <translation>Output Engine:</translation>
+ <translation>Uitvoer-engine:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation type="unfinished"/>
+ <source>Output Device:</source>
+ <translation>Uitvoerapparaat:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Invoer Apparaat</translation>
+ <source>Input Device:</source>
+ <translation>Invoerapparaat:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Geluidsuitvoermodus:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Gebruik globaal volume</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
- <translation>stel volume in:</translation>
+ <translation>Stel volume in:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Demp audio op de achtergrond</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -412,37 +445,37 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="14"/>
<source>Configure Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Configureer Infraroodcamera</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="26"/>
<source>Select where the image of the emulated camera comes from. It may be a virtual camera or a real camera.</source>
- <translation type="unfinished"/>
+ <translation>Selecteer waar het beeld van de geëmuleerde camera vandaan komt. Het kan een virtuele camera of een echte camera zijn.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="52"/>
<source>Camera Image Source:</source>
- <translation type="unfinished"/>
+ <translation>Camera Beeldbron:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="71"/>
<source>Input device:</source>
- <translation type="unfinished"/>
+ <translation>Invoerapparaat:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="96"/>
<source>Preview</source>
- <translation type="unfinished"/>
+ <translation>Preview</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="108"/>
<source>Resolution: 320*240</source>
- <translation type="unfinished"/>
+ <translation>Resolutie: 320*240</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="115"/>
<source>Click to preview</source>
- <translation type="unfinished"/>
+ <translation>Klik om een preview te zien</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="140"/>
@@ -475,7 +508,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="34"/>
<source>Accuracy:</source>
- <translation>Accuratie:</translation>
+ <translation>Nauwkeurigheid:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="42"/>
@@ -495,7 +528,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="57"/>
<source>Paranoid (disables most optimizations)</source>
- <translation type="unfinished"/>
+ <translation>Paranoid (schakelt de meeste optimalisaties uit)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="68"/>
@@ -505,7 +538,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="85"/>
<source>Unsafe CPU Optimization Settings</source>
- <translation>Onveilige CPU optimalisatie instellingen</translation>
+ <translation>Onveilige CPU-optimalisatie-instellingen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="91"/>
@@ -518,8 +551,7 @@ This would ban both their forum username and their IP address.</source>
&lt;div&gt;This option improves speed by reducing accuracy of fused-multiply-add instructions on CPUs without native FMA support.&lt;/div&gt;
</source>
<translation>
-&lt;div&gt;Deze optie verbeterd de prestatie door de accuratie van fused-multiply-add instructies te verminderen op CPU&apos;s zonder native FMA support.&lt;/div&gt;
-</translation>
+&lt;div&gt;Deze optie verbeterd de prestatie door de accuratie van fused-multiply-add-instructies te verminderen op CPU&apos;s zonder native FMA support.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="106"/>
@@ -545,13 +577,12 @@ This would ban both their forum username and their IP address.</source>
&lt;div&gt;This option improves the speed of 32 bits ASIMD floating-point functions by running with incorrect rounding modes.&lt;/div&gt;
</source>
<translation>
-&lt;div&gt;Deze optie verbetert de snelheid of 32-bit ASIMD floating-point functies door incorrecte afronding modellen te gebruiken.&lt;/div&gt;
-</translation>
+&lt;div&gt;Deze optie verbetert de snelheid of 32-bit ASIMD floating-point functies door incorrecte afronding modellen te gebruiken.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="130"/>
<source>Faster ASIMD instructions (32 bits only)</source>
- <translation type="unfinished"/>
+ <translation>Snellere ASIMD-instructies (alleen 32-bits)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="137"/>
@@ -564,36 +595,38 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="142"/>
<source>Inaccurate NaN handling</source>
- <translation>Onnauwkeurige verwerking van NaN</translation>
+ <translation>Onnauwkeurige NaN-verwerking</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="149"/>
<source>
&lt;div&gt;This option improves speed by eliminating a safety check before every memory read/write in guest. Disabling it may allow a game to read/write the emulator's memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+&lt;div&gt;Deze optie verbetert de snelheid door het elimineren van een veiligheidscontrole voor elk geheugen lezen/schrijven in de gast. Door deze optie uit te schakelen kan een spel het geheugen van de emulator lezen/schrijven.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="154"/>
<source>Disable address space checks</source>
- <translation type="unfinished"/>
+ <translation>Schakel adresruimtecontroles uit</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="161"/>
<source>
&lt;div&gt;This option improves speed by relying only on the semantics of cmpxchg to ensure safety of exclusive access instructions. Please note this may result in deadlocks and other race conditions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+&lt;div&gt;Deze optie verbetert de snelheid door alleen de semantiek van cmpxchg te gebruiken om de veiligheid van exclusieve toegangsinstructies te garanderen. Dit kan resulteren in deadlocks en andere &quot;race conditions&quot;.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="166"/>
<source>Ignore global monitor</source>
- <translation type="unfinished"/>
+ <translation>Negeer globale monitor</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="191"/>
<source>CPU settings are available only when game is not running.</source>
- <translation>CPU settings zijn alleen toegankelijk als er geen spel draait</translation>
+ <translation>CPU-instellingen zijn alleen toegankelijk als er geen spel draait.</translation>
</message>
</context>
<context>
@@ -601,13 +634,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="14"/>
<source>Form</source>
- <translation>Formulier</translation>
+ <translation>Vorm</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="17"/>
<source>CPU</source>
- <translation>CPU
-</translation>
+ <translation>CPU</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="25"/>
@@ -617,7 +649,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="31"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;For debugging only.&lt;/span&gt;&lt;br/&gt;If you&apos;re not sure what these do, keep all of these enabled. &lt;br/&gt;These settings, when disabled, only take effect when CPU Debugging is enabled. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Alleen voor debugging.&lt;/span&gt;&lt;br/&gt; Als u niet zeker weet wat deze doen, laat ze dan allemaal ingeschakeld. &lt;br/&gt;Deze instellingen, indien uitgeschakeld, hebben alleen effect wanneer CPU Debugging is ingeschakeld.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="41"/>
@@ -627,14 +659,14 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to go through the Memory::Read/Memory::Write functions.&lt;/div&gt;
</source>
<translation>
-&lt;div style=&quot;white-space: nowrap&quot;&gt;Deze optimazie versneld geheugen toegang door het gastprogramma.&lt;/div&gt;
-&lt;div style=&quot;white-space: nowrap&quot;&gt;Door dit aan te leggen geeft toegang tot PageTable::pointers in uitgezonden code.&lt;/div&gt;
-&lt;div style=&quot;white-space: nowrap&quot;&gt;Door dit uit te leggen forceerd u alle geheugen toegang door Memory::Read/Memory::Write functies te gaan.&lt;/div&gt;</translation>
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Deze optimalisatie versnelt exclusieve geheugentoegang door het gastprogramma.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Inschakelen zorgt ervoor dat exclusieve geheugenlees/schrijfacties van de gast rechtstreeks in het geheugen plaatsvinden en gebruik maken van de MMU van de host.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Uitschakelen forceert het gebruik van Software MMU-emulatie voor alle exclusieve geheugentoepassingen.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="48"/>
<source>Enable inline page tables</source>
- <translation>Schakel inlijne pagina tafles in</translation>
+ <translation>Schakel inline paginatabellen in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="55"/>
@@ -647,7 +679,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="60"/>
<source>Enable block linking</source>
- <translation>Schakel block linking in</translation>
+ <translation>Schakel blocklinking in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="67"/>
@@ -655,13 +687,12 @@ This would ban both their forum username and their IP address.</source>
&lt;div&gt;This optimization avoids dispatcher lookups by keeping track potential return addresses of BL instructions. This approximates what happens with a return stack buffer on a real CPU.&lt;/div&gt;
</source>
<translation>
-&lt;div&gt;Deze optimalisatie vermijdt het opzoeken van dispatchers door potentiële retouradressen van BL-instructies bij te houden. Dit benadert wat er gebeurt met een retourstackbuffer op een echte CPU.&lt;/div&gt;</translation>
+&lt;div&gt;Deze optimalisatie vermijdt dispatcher lookups door potentiële terugkeeradressen van BL-instructies bij te houden. Dit benadert wat er gebeurt met een return stack buffer op een echte CPU.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="72"/>
<source>Enable return stack buffer</source>
- <translation>Return-stackbuffer inschakelen
- </translation>
+ <translation>Schakel return-stackbuffer in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="79"/>
@@ -674,7 +705,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="84"/>
<source>Enable fast dispatcher</source>
- <translation>Shakel snelle dispatcher in</translation>
+ <translation>Schakel snelle dispatcher in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="91"/>
@@ -687,7 +718,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="96"/>
<source>Enable context elimination</source>
- <translation>Shakel context eliminatie in</translation>
+ <translation>Schakel context eliminatie in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="103"/>
@@ -700,7 +731,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="108"/>
<source>Enable constant propagation</source>
- <translation>Constante verspreiding inschakelen</translation>
+ <translation>Schakel constante verspreiding in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="115"/>
@@ -713,7 +744,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="120"/>
<source>Enable miscellaneous optimizations</source>
- <translation>Diverse optimalisaties inschakelen</translation>
+ <translation>Schakel diverse optimalisaties in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="127"/>
@@ -728,7 +759,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="133"/>
<source>Enable misalignment check reduction</source>
- <translation>Schakel verkeerde uitlijning vermindering in</translation>
+ <translation>Schakel verkeerde uitlijningsvermindering in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="140"/>
@@ -738,14 +769,14 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
<translation>
-&lt;div style=&quot;white-space: nowrap&quot;&gt;Deze optimazie versneld geheugen toegang door het gastprogramma.&lt;/div&gt;
-&lt;div style=&quot;white-space: nowrap&quot;&gt;Door dit aan te leggen geeft toegang tot PageTable::pointers in uitgezonden code.&lt;/div&gt;
-&lt;div style=&quot;white-space: nowrap&quot;&gt;Door dit uit te leggen forceerd u alle geheugen toegang door Memory::Read/Memory::Write functies te gaan.&lt;/div&gt;</translation>
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Deze optimalisatie versnelt exclusieve geheugentoegang door het gastprogramma.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Inschakelen zorgt ervoor dat geheugenlees/schrijfacties rechtstreeks in het geheugen plaatsvinden en gebruik maken van de MMU van de host.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Uitschakelen forceert het gebruik van Software MMU-emulatie voor alle exclusieve geheugentoepassingen.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="147"/>
<source>Enable Host MMU Emulation (general memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Schakel Host MMU-emulatie in (algemene geheugeninstructies)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="154"/>
@@ -754,12 +785,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest exclusive memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all exclusive memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Deze optimalisatie versnelt exclusieve geheugentoegang door het gastprogramma.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Inschakelen zorgt ervoor dat exclusieve geheugenlees/schrijfacties van de gast rechtstreeks in het geheugen plaatsvinden en gebruik maken van de MMU van de host.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Uitschakelen forceert het gebruik van Software MMU-emulatie voor alle exclusieve geheugentoepassingen.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="161"/>
<source>Enable Host MMU Emulation (exclusive memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Schakel Host MMU-emulatie in (exclusieve geheugeninstructies)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="168"/>
@@ -767,12 +801,14 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up exclusive memory accesses by the guest program.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of fastmem failure of exclusive memory accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Deze optimalisatie versnelt exclusieve geheugentoegang door het gastprogramma.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Het inschakelen ervan vermindert de overhead van fastmem falen van exclusieve geheugentoegang.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="174"/>
<source>Enable recompilation of exclusive memory instructions</source>
- <translation type="unfinished"/>
+ <translation>Schakel hercompilatie van exclusieve geheugeninstructies in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="181"/>
@@ -780,12 +816,14 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Deze optimalisering versnelt geheugentoepassingen door ongeldige geheugentoepassingen te laten slagen.&lt;/div&gt;
+&lt;div style=&quot;white-space: nowrap&quot;&gt;Het inschakelen ervan vermindert de overhead van alle geheugentoepassingen en heeft geen invloed op programma&apos;s die geen ongeldig geheugen gebruiken.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Schakel fallbacks in voor ongeldige geheugentoegang</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -798,12 +836,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="15"/>
<source>Debugger</source>
- <translation type="unfinished"/>
+ <translation>Debugger</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="23"/>
<source>Enable GDB Stub</source>
- <translation>GDB Stub Aanzetten</translation>
+ <translation>Schakel GDB Stub in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="43"/>
@@ -823,12 +861,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="87"/>
<source>Show Log in Console</source>
- <translation>Laat Log Venster Zien</translation>
+ <translation>Toon Login-console</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="94"/>
<source>Open Log Location</source>
- <translation>Open Log Locatie</translation>
+ <translation>Open Loglocatie</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="104"/>
@@ -838,7 +876,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="107"/>
<source>Enable Extended Logging**</source>
- <translation>Activeer Uitgebreid Loggen**</translation>
+ <translation>Schakel Uitgebreid Loggen** in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="117"/>
@@ -848,7 +886,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="125"/>
<source>Arguments String</source>
- <translation>Argumenten Rij</translation>
+ <translation>Argumentenrij</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="140"/>
@@ -863,42 +901,42 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="152"/>
<source>Enable Graphics Debugging</source>
- <translation>Grafische foutopsporing inschakelen</translation>
+ <translation>Schakel Graphics Foutopsporing in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="159"/>
<source>When checked, it enables Nsight Aftermath crash dumps</source>
- <translation type="unfinished"/>
+ <translation>Indien aangevinkt schakelt het Nsight Aftermath crashdumps in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="162"/>
<source>Enable Nsight Aftermath</source>
- <translation type="unfinished"/>
+ <translation>Schakel Nsight Aftermath in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="172"/>
<source>When checked, it will dump all the original assembler shaders from the disk shader cache or game as found</source>
- <translation type="unfinished"/>
+ <translation>Indien aangevinkt, zal het alle originele assembler shaders van de disk shader cache of het gevonden spel dumpen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="175"/>
<source>Dump Game Shaders</source>
- <translation type="unfinished"/>
+ <translation>Dump Spel-shaders</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="185"/>
<source>When checked, it will dump all the macro programs of the GPU</source>
- <translation type="unfinished"/>
+ <translation>Indien aangevinkt, worden alle macroprogramma&apos;s van de GPU gedumpt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="188"/>
<source>Dump Maxwell Macros</source>
- <translation type="unfinished"/>
+ <translation>Dump Maxwell-macro&apos;s</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="198"/>
<source>When checked, it disables the macro Just In Time compiler. Enabling this makes games run slower</source>
- <translation>Indien aangevinkt, wordt de macro Just In Time-compiler uitgeschakeld. Als u dit inschakelt, worden games langzamer</translation>
+ <translation>Indien aangevinkt, wordt de macro Just In Time-compiler uitgeschakeld. Als je dit inschakelt, worden spellen langzamer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="201"/>
@@ -906,124 +944,134 @@ This would ban both their forum username and their IP address.</source>
<translation>Schakel Macro JIT uit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Indien aangevinkt, schakelt het de macro HLE functies uit. Inschakelen maakt spellen langzamer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Schakel Macro HLE uit</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
- <translation type="unfinished"/>
+ <translation>Indien aangevinkt, zal yuzu statistieken registreren over de gecompileerde pijplijn-cache</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
- <translation type="unfinished"/>
+ <translation>Schakel Shader Feedback in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
- <translation type="unfinished"/>
+ <translation>Indien aangevinkt, voert het shaders uit zonder wijzigingen in de luslogica</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
- <translation type="unfinished"/>
+ <translation>Schakel Lusveiligheidscontroles uit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Debugging</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
- <translation type="unfinished"/>
+ <translation>Schakel Verbose Reporting Services** in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
- <translation type="unfinished"/>
+ <translation>Schakel FS-toegangslogboek in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Zet dit aan om de laatst gegenereerde audio commandolijst naar de console te sturen. Alleen van invloed op spellen die de audio renderer gebruiken.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
- <translation type="unfinished"/>
+ <translation>Dump Audio-opdrachten naar Console**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Maak Minidump na Crash</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Geavanceerd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
- <translation>Kiosk (Quest) Modus</translation>
+ <translation>Kiosk-modus (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
- <translation type="unfinished"/>
+ <translation>Schakel CPU-foutopsporing in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
- <translation>Schakel Debug asserties in</translation>
+ <translation>Schakel Debug-asserts in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
- <translation type="unfinished"/>
+ <translation>Schakel Auto-Stub** in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
- <translation type="unfinished"/>
+ <translation>Schakel Alle Controler-soorten in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
- <translation type="unfinished"/>
+ <translation>Schakel Webapplet uit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation type="unfinished"/>
+ <translation>Laat yuzu controleren op een werkende Vulkan-omgeving wanneer het programma opstart. Schakel dit uit als dit problemen veroorzaakt met externe programma&apos;s die yuzu zien.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
- <translation type="unfinished"/>
+ <translation>Voer Vulkan-controle bij het opstarten uit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Deze optie wordt automatisch gereset wanneer yuzu is gesloten.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="35"/>
<source>Restart Required</source>
- <translation type="unfinished"/>
+ <translation>Herstart Vereist</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="36"/>
<source>yuzu is required to restart in order to apply this setting.</source>
- <translation type="unfinished"/>
+ <translation>yuzu moet opnieuw opstarten om deze instelling toe te passen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>Webapplet niet gecompileerd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>MiniDump-creatie niet gecompileerd</translation>
</message>
</context>
<context>
@@ -1031,12 +1079,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_controller.ui" line="14"/>
<source>Configure Debug Controller</source>
- <translation>Debug-controller configureren</translation>
+ <translation>Configureer Debug-controller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_controller.ui" line="40"/>
<source>Clear</source>
- <translation>Verwijder</translation>
+ <translation>Wis</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_controller.ui" line="47"/>
@@ -1049,7 +1097,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_tab.ui" line="14"/>
<source>Form</source>
- <translation>Formulier</translation>
+ <translation>Vorm</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_tab.ui" line="17"/>
@@ -1060,8 +1108,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_tab.cpp" line="17"/>
<source>CPU</source>
- <translation>CPU
-</translation>
+ <translation>CPU</translation>
</message>
</context>
<context>
@@ -1069,81 +1116,81 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure.ui" line="20"/>
<source>yuzu Configuration</source>
- <translation>yuzu Configuratie</translation>
+ <translation>yuzu-configuratie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
- <translation>Geluid</translation>
+ <translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Debug</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Bestandssysteem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Algemeen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
- <translation>Grafisch</translation>
+ <translation>Graphics</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
- <translation>GeAdvanceerdeGrafisch</translation>
+ <translation>Geavanceerde Graphics</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Sneltoetsen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Bediening</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profielen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
- <translation type="unfinished"/>
+ <translation>Netwerk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Systeem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
- <translation>Game Lijst</translation>
+ <translation>Spellijst</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1163,7 +1210,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="25"/>
<source>Storage Directories</source>
- <translation>Opslag Folders</translation>
+ <translation>Opslagmappen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="31"/>
@@ -1182,12 +1229,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="51"/>
<source>SD Card</source>
- <translation>SD Kaart</translation>
+ <translation>SD-kaart</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="84"/>
<source>Gamecard</source>
- <translation>Gamekaart</translation>
+ <translation>Spelkaart</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="90"/>
@@ -1197,7 +1244,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="100"/>
<source>Inserted</source>
- <translation>Ingevoerd</translation>
+ <translation>Geplaatst</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="107"/>
@@ -1207,7 +1254,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="124"/>
<source>Patch Manager</source>
- <translation>Patch Beheer</translation>
+ <translation>Patch-beheer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="152"/>
@@ -1237,7 +1284,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="209"/>
<source>Cache Game List Metadata</source>
- <translation>Cache Spel Lijst Metadata</translation>
+ <translation>Cache Metagegevens van Spellijst</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.ui" line="216"/>
@@ -1245,37 +1292,37 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="135"/>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="140"/>
<source>Reset Metadata Cache</source>
- <translation>Herstel Metadata Cache</translation>
+ <translation>Herstel Metagegevenscache</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="93"/>
<source>Select Emulated NAND Directory...</source>
- <translation>Selecteer Geëmuleerde NAND Folder</translation>
+ <translation>Selecteer Geëmuleerde NAND-map...</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="96"/>
<source>Select Emulated SD Directory...</source>
- <translation>Selecteer Geëmuleerde SD Folder</translation>
+ <translation>Selecteer Geëmuleerde SD-map...</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="99"/>
<source>Select Gamecard Path...</source>
- <translation>Selecteer Gamekaart Pad</translation>
+ <translation>Selecteer Spelkaartpad...</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="102"/>
<source>Select Dump Directory...</source>
- <translation>Selecteer Dump Folder</translation>
+ <translation>Selecteer Dump-map...</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="105"/>
<source>Select Mod Load Directory...</source>
- <translation>Selecteer Mod Laad Folder</translation>
+ <translation>Selecteer Mod-laadmap...</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="132"/>
<source>The metadata cache is already empty.</source>
- <translation>De metadata cache is al leeg.</translation>
+ <translation>De metagegevenscache is al leeg.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="136"/>
@@ -1285,7 +1332,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_filesystem.cpp" line="141"/>
<source>The metadata cache couldn&apos;t be deleted. It might be in use or non-existent.</source>
- <translation>De metadata cache kon niet worden verwijderd. Het wordt mogelijk gebruikt of bestaat niet.</translation>
+ <translation>De metagegevenscache kon niet worden verwijderd. Het wordt mogelijk gebruikt of bestaat niet.</translation>
</message>
</context>
<context>
@@ -1304,7 +1351,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="35"/>
<source>Limit Speed Percent</source>
- <translation>Limiteer Snelheid Percentage</translation>
+ <translation>Beperk Snelheidspercentage</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="42"/>
@@ -1314,50 +1361,40 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="60"/>
<source>Multicore CPU Emulation</source>
- <translation>Multicore CPU Emulatie</translation>
+ <translation>Multicore CPU-emulatie</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Bevestig sluiten terwijl emulatie nog bezig is</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
- <translation>Vraag voor gebruiker bij het opstartten van het spel.</translation>
+ <translation>Vraag aan gebruiker bij opstarten van het spel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
- <translation>Pauzeer Emulatie wanneer yuzu op de achtergrond openstaat</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation type="unfinished"/>
+ <translation>Emulatie onderbreken op de achtergrond</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
- <translation>Verstop muis wanneer inactief</translation>
+ <translation>Verberg muis wanneer inactief</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
- <translation>Reset alle instellingen</translation>
+ <translation>Reset Alle Instellingen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Hiermee worden alle instellingen gereset en alle configuraties per game verwijderd. Hiermee worden gamedirectory&apos;s, profielen of invoerprofielen niet verwijderd. Doorgaan?</translation>
</message>
@@ -1372,17 +1409,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="17"/>
<source>Graphics</source>
- <translation>Grafisch</translation>
+ <translation>Graphics</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="25"/>
<source>API Settings</source>
- <translation>API instellingen</translation>
+ <translation>API-instellingen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="64"/>
<source>Shader Backend:</source>
- <translation type="unfinished"/>
+ <translation>Shader Backend:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="92"/>
@@ -1396,7 +1433,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Geen</translation>
</message>
@@ -1408,242 +1445,298 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="173"/>
<source>Use disk pipeline cache</source>
- <translation type="unfinished"/>
+ <translation>Gebruik schijfpijplijn-cache</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="180"/>
<source>Use asynchronous GPU emulation</source>
- <translation>Gebruik asynchroon GPU emulatie</translation>
+ <translation>Gebruik asynchrone GPU-emulatie</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="187"/>
<source>Accelerate ASTC texture decoding</source>
- <translation type="unfinished"/>
+ <translation>Versnel ASTC-textuurdecodering</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>VSync-modus:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (VSync) dropt geen frames en vertoont geen scheuren, maar wordt beperkt door de vernieuwingsfrequentie van het scherm.
+FIFO Relaxed is vergelijkbaar met FIFO, maar staat scheuren toe wanneer het zich herstelt van een vertraging.
+Mailbox kan een lagere latentie hebben dan FIFO en scheurt niet, maar kan frames droppen.
+Immediate (geen synchronisatie) presenteert gewoon wat beschikbaar is en kan scheuren vertonen.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
- <translation type="unfinished"/>
+ <translation>NVDEC-emulatie:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
- <translation type="unfinished"/>
+ <translation>Geen Video-uitvoer</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
- <translation type="unfinished"/>
+ <translation>CPU Videodecodering</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
- <translation type="unfinished"/>
+ <translation>GPU Videodecodering (Standaard)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Volledig scherm modus:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
- <translation>BoordLoos Venster</translation>
+ <translation>Randloos Venster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Exclusief Volledig Scherm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Aspect Ratio:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Standaart (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Forceer 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Forceer 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
- <translation type="unfinished"/>
+ <translation>Forceer 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
- <translation>Rek naar Venster</translation>
+ <translation>Uitrekken naar Venster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
- <translation type="unfinished"/>
+ <translation>Resolutie:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
- <translation type="unfinished"/>
+ <translation>0.5X (360p/540p) [EXPERIMENTEEL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
- <translation type="unfinished"/>
+ <translation>0.75X (540p/810p) [EXPERIMENTEEL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
- <translation type="unfinished"/>
+ <translation>1X (720p/1080p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [EXPERIMENTEEL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
- <translation type="unfinished"/>
+ <translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
- <translation type="unfinished"/>
+ <translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
- <translation type="unfinished"/>
+ <translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
- <translation type="unfinished"/>
+ <translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
- <translation type="unfinished"/>
+ <translation>6X (4320p/6480p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
- <translation type="unfinished"/>
+ <translation>Window Adapting Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
- <translation type="unfinished"/>
+ <translation>Nearest Neighbor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
- <translation type="unfinished"/>
+ <translation>Bilinear</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
- <translation type="unfinished"/>
+ <translation>Bicubic</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
- <translation type="unfinished"/>
+ <translation>Gaussian</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
- <translation type="unfinished"/>
+ <translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
- <translation type="unfinished"/>
+ <translation>Antialiasing-methode:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
- <translation type="unfinished"/>
+ <translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Gebruik globale FSR-scherpte</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Stel FSR-scherpte in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>FSR-scherpte:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Gebruik globale achtergrondkleur</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Gebruik achtergrondkleur:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Achtergrondkleur:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
- <translation type="unfinished"/>
+ <translation>GLASM (Assembly Shaders, alleen NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Experimenteel, alleen Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>Uit</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>VSync Uit</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>Aanbevolen</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>Aan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>VSync Aan</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="14"/>
<source>Form</source>
- <translation>Formulier</translation>
+ <translation>Vorm</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="17"/>
<source>Advanced</source>
- <translation>Gedadvanceerd</translation>
+ <translation>Geavanceerd</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="25"/>
@@ -1656,77 +1749,134 @@ This would ban both their forum username and their IP address.</source>
<translation>Nauwkeurigheidsniveau:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync voorkomt dat het scherm beweegt, maar sommige grafische kaarten geven lagere prestaties wanneer VSync is ingeschakeld. Hou het aan als je geen prestatie verschil merkt. </translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>Schakel asynchrone presentatie in (alleen Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Werkt op de achtergrond terwijl er wordt gewacht op grafische opdrachten om te voorkomen dat de GPU zijn kloksnelheid verlaagt.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Forceer maximale klokken (alleen Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Maakt asynchrone ASTC-textuurdecodering mogelijk, waardoor de laadtijd minder stottert. Deze functie is experimenteel.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Decodeer ASTC-texturen asynchroon (Hack)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>Gebruikt reactieve flushing in plaats van predictieve flushing. Maakt een nauwkeuriger synchronisatie van het geheugen mogelijk.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>Schakel Reactive Flushing In</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Laat shaders asynchroon compileren, wat haperingen kunnen verminderen. Deze instelling is experimenteel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
- <translation type="unfinished"/>
+ <translation>Gebruik asynchrone shaderbouw (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
- <translation type="unfinished"/>
+ <translation>Schakelt Snelle GPU-tijd in. Deze optie forceert de meeste games om op hun hoogste native resolutie te draaien.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
- <translation type="unfinished"/>
+ <translation>Gebruik Snelle GPU-tijd (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Schakelt GPU-leverancier-specifieke pijplijn-cache in. Deze optie kan de laadtijd van shaders aanzienlijk verbeteren in gevallen waarin het Vulkan-stuurprogramma de pijplijncachebestanden niet intern opslaat.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Gebruik Vulkan-pijplijn-cache</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>Schakel compute pipelines in, vereist door sommige games. Deze instelling bestaat alleen voor Intel-eigen drivers, en kan crashen indien ingeschakeld.
+Compute pipelines is altijd ingeschakeld bij alle andere drivers.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>Schakel Compute Pipelines in (alleen Intel Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anisotrope Filtering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
- <translation type="unfinished"/>
+ <translation>Automatisch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Standaard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1736,7 +1886,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_hotkeys.ui" line="14"/>
<source>Hotkey Settings</source>
- <translation>Sneltoets Instellingen</translation>
+ <translation>Sneltoets-instellingen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_hotkeys.ui" line="17"/>
@@ -1746,7 +1896,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_hotkeys.ui" line="25"/>
<source>Double-click on a binding to change it.</source>
- <translation>Dubbel-klik op een binding om het te veranderen.</translation>
+ <translation>Dubbelklik op een instelling om deze te wijzigen.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_hotkeys.ui" line="45"/>
@@ -1759,70 +1909,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Standaard Herstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Actie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Sneltoets</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
- <translation type="unfinished"/>
+ <translation>Controller-sneltoets</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
- <translation>Ongeldige Toets Volgorde</translation>
+ <translation>Ongeldige Toetsvolgorde</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>De ingevoerde toetsencombinatie is al in gebruik door: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[aan het wachten]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
- <translation type="unfinished"/>
+ <translation>Ongeldig</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Standaard Herstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
- <translation>Verwijder</translation>
+ <translation>Wis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
- <translation type="unfinished"/>
+ <translation>Conflicterende Knoppencombinatie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
- <translation type="unfinished"/>
+ <translation>De standaard knoppencombinatie is al toegewezen aan: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>De ingevoerde toetsencombinatie is al in gebruik door: %1</translation>
</message>
@@ -1891,17 +2036,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input.ui" line="138"/>
<source>Console Mode</source>
- <translation>Console ID:</translation>
+ <translation>Console-modus:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input.ui" line="159"/>
<source>Docked</source>
- <translation>GeDocked</translation>
+ <translation>Docked</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input.ui" line="169"/>
<source>Handheld</source>
- <translation>Mobiel</translation>
+ <translation>Handheld</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input.ui" line="179"/>
@@ -1977,7 +2122,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input.ui" line="537"/>
<source>Clear</source>
- <translation>Verwijder</translation>
+ <translation>Wis</translation>
</message>
</context>
<context>
@@ -1990,7 +2135,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="74"/>
<source>Joycon Colors</source>
- <translation>Joycon Kleuren</translation>
+ <translation>Joycon-kleuren</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="125"/>
@@ -2007,7 +2152,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="1955"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2241"/>
<source>L Body</source>
- <translation>L lichaam</translation>
+ <translation>L-lichaam</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="219"/>
@@ -2019,7 +2164,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2010"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2296"/>
<source>L Button</source>
- <translation>L Knop</translation>
+ <translation>L-knop</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="295"/>
@@ -2031,7 +2176,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2086"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2372"/>
<source>R Body</source>
- <translation>R lichaam</translation>
+ <translation>R-lichaam</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="350"/>
@@ -2043,7 +2188,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2141"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2427"/>
<source>R Button</source>
- <translation>R Knop</translation>
+ <translation>R-knop</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="411"/>
@@ -2083,7 +2228,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2533"/>
<source>Emulated Devices</source>
- <translation type="unfinished"/>
+ <translation>Geëmuleerde Apparaten</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2545"/>
@@ -2103,30 +2248,30 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2588"/>
<source>Advanced</source>
- <translation>Gedadvanceerd</translation>
+ <translation>Geavanceerd</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2595"/>
<source>Debug Controller</source>
- <translation>Debug Controller</translation>
+ <translation>Debug-controller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Configureer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2609"/>
<source>Ring Controller</source>
- <translation type="unfinished"/>
+ <translation>Ring Controller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2623"/>
<source>Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Infraroodcamera</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2640"/>
@@ -2136,45 +2281,67 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2652"/>
<source>Emulate Analog with Keyboard Input</source>
- <translation>Emuleer Anolooge invoer met toetsenbord</translation>
+ <translation>Emuleer Analoog met Toetsenbordinvoer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
- <translation type="unfinished"/>
+ <translation>Vereist het herstarten van yuzu</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2668"/>
<source>Enable XInput 8 player support (disables web applet)</source>
- <translation type="unfinished"/>
+ <translation>Schakel ondersteuning voor XInput 8-speler in (schakelt webapplet uit)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2681"/>
<source>Enable UDP controllers (not needed for motion)</source>
- <translation type="unfinished"/>
+ <translation>Schakel UDP-controllers in (niet nodig voor beweging)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2694"/>
<source>Controller navigation</source>
- <translation type="unfinished"/>
+ <translation>Controller-navigering</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Schakel JoyCon-driver in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Schakel Pro Controller-driver in [EXPERIMENTEEL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>Maakt onbeperkt gebruik van dezelfde Amiibo mogelijk in spellen die je anders zou beperken tot één gebruik.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>Gebruik willekeurige Amiibo-ID</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
- <translation>Schakel muis panning in</translation>
+ <translation>Schakel muispanning in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
- <translation>Muis Gevoeligheid</translation>
+ <translation>Muisgevoeligheid</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Beweging / Touch</translation>
</message>
@@ -2184,67 +2351,67 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="14"/>
<source>Form</source>
- <translation>Formulier</translation>
+ <translation>Vorm</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="17"/>
<source>Graphics</source>
- <translation>Grafisch</translation>
+ <translation>Graphics</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Invoerprofielen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 1 </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 3</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 4</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 5</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 6</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 7</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler 8</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Gebruik globale invoerconfiguratie</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Profiel Speler %1 </translation>
</message>
</context>
<context>
@@ -2257,12 +2424,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="63"/>
<source>Connect Controller</source>
- <translation>Verbindt Controller</translation>
+ <translation>Verbind Controller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="100"/>
<source>Input Device</source>
- <translation>Invoer Apparaat</translation>
+ <translation>Invoerapparaat</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="137"/>
@@ -2286,7 +2453,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Linker Stick</translation>
</message>
@@ -2298,7 +2465,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2564"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2603"/>
<source>Up</source>
- <translation>Boven:</translation>
+ <translation>Omhoog</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="403"/>
@@ -2309,7 +2476,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2634"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2673"/>
<source>Left</source>
- <translation>Links:</translation>
+ <translation>Links</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="452"/>
@@ -2320,7 +2487,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2683"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2722"/>
<source>Right</source>
- <translation>Rechts:</translation>
+ <translation>Rechts</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="534"/>
@@ -2330,7 +2497,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2765"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2804"/>
<source>Down</source>
- <translation>Beneden:</translation>
+ <translation>Omlaag</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="604"/>
@@ -2338,7 +2505,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2835"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2874"/>
<source>Pressed</source>
- <translation>Ingedrukt:</translation>
+ <translation>Ingedrukt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="653"/>
@@ -2346,13 +2513,13 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2884"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2923"/>
<source>Modifier</source>
- <translation>Modificatie:</translation>
+ <translation>Modificator</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="702"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2933"/>
<source>Range</source>
- <translation>Berijk</translation>
+ <translation>Bereik</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="735"/>
@@ -2370,7 +2537,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="802"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="3030"/>
<source>Modifier Range: 0%</source>
- <translation>Bewerk Range: 0%</translation>
+ <translation>Modificatorbereik: 0%</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="848"/>
@@ -2380,14 +2547,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2406,28 +2573,28 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
- <translation>Plus:</translation>
+ <translation>Plus</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1575"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1614"/>
<source>Home</source>
- <translation>Home:</translation>
+ <translation>Home</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
- <translation>R:</translation>
+ <translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2456,7 +2623,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2151"/>
<source>Face Buttons</source>
- <translation>Gezicht Knoppen</translation>
+ <translation>Gezichtsknoppen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2209"/>
@@ -2484,238 +2651,249 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Rechter Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
- <translation>Verwijder</translation>
+ <translation>Wis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[niet ingesteld]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
- <translation type="unfinished"/>
+ <translation>Knop omkeren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
- <translation>Shakel Knop</translation>
+ <translation>Schakel-knop</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Turbo-knop</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
- <translation>Spiegel As</translation>
+ <translation>Spiegel as</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
- <translation type="unfinished"/>
+ <translation>Stel drempel in</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
- <translation type="unfinished"/>
+ <translation>Kies een waarde tussen 0% en 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
- <translation type="unfinished"/>
+ <translation>Schakel as</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
- <translation type="unfinished"/>
+ <translation>Stel gyro-drempel in</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>Kalibreer sensor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
- <translation>Zet Analoge Stick</translation>
+ <translation> Analoge Stick Toewijzen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
- <translation>Na OK in te drukken, beweeg je joystick eerst horizontaal en dan verticaal.
-Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.</translation>
+ <translation>Nadat je op OK hebt gedrukt, beweeg je de joystick eerst horizontaal en vervolgens verticaal.
+Om de assen om te keren, beweeg je de joystick eerst verticaal en vervolgens horizontaal.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
- <translation type="unfinished"/>
+ <translation>Midden as</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Deadzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
- <translation>Bewerk Range: %1%</translation>
+ <translation>Modificatorbereik: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Twee Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Linker Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Rechter Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
- <translation>Mobiel</translation>
+ <translation>Handheld</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
- <translation>GameCube Controller</translation>
+ <translation>GameCube-controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
- <translation type="unfinished"/>
+ <translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
- <translation type="unfinished"/>
+ <translation>NES-controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
- <translation type="unfinished"/>
+ <translation>SNES-controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
- <translation type="unfinished"/>
+ <translation>N64-controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
- <translation type="unfinished"/>
+ <translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
- <translation>Start / Pauze</translation>
+ <translation>Begin / Onderbreken</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Control Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
- <translation>Shudden!</translation>
+ <translation>Schud!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[aan het wachten]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Nieuw Profiel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
- <translation>Voer nieuwe gebruikersnaam in:</translation>
+ <translation>Voer een profielnaam in:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
- <translation>Creëer een nieuw Invoer Profiel</translation>
+ <translation>Maak Invoerprofiel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
- <translation>De ingevoerde Profiel naam is niet geldig</translation>
+ <translation>De ingevoerde profielnaam is niet geldig!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
- <translation>Het is mislukt om Invoer Profiel &quot;%1 te Creëer</translation>
+ <translation>Kon invoerprofiel &quot;%1&quot; niet maken</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
- <translation>Verwijder invoer profiel</translation>
+ <translation>Verwijder Invoerprofiel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
- <translation>Het is mislukt om Invoer Profiel &quot;%1 te Verwijderen</translation>
+ <translation>Kon invoerprofiel &quot;%1&quot; niet verwijderen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
- <translation>Laad invoer profiel</translation>
+ <translation>Laad Invoerprofiel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
- <translation>Het is mislukt om Invoer Profiel &quot;%1 te Laden</translation>
+ <translation>Kon invoerprofiel &quot;%1&quot; niet laden</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
- <translation>Sla Invoer profiel op</translation>
+ <translation>Sla Invoerprofiel op</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
- <translation>Het is mislukt om Invoer Profiel &quot;%1 Op te slaan</translation>
+ <translation>Kon invoerprofiel &quot;%1&quot; niet opslaan</translation>
</message>
</context>
<context>
@@ -2723,12 +2901,12 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_input_profile_dialog.ui" line="14"/>
<source>Create Input Profile</source>
- <translation>Maak Invoer Profiel</translation>
+ <translation>Maak Invoerprofiel</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_profile_dialog.ui" line="40"/>
<source>Clear</source>
- <translation>Verwijder</translation>
+ <translation>Wis</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_profile_dialog.ui" line="47"/>
@@ -2751,7 +2929,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="23"/>
<source>UDP Calibration:</source>
- <translation>UDP Calibratie:</translation>
+ <translation>UDP-calibratie:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="30"/>
@@ -2761,24 +2939,24 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Configureer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="57"/>
<source>Touch from button profile:</source>
- <translation type="unfinished"/>
+ <translation>Raak van knop-profiel:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="85"/>
<source>CemuhookUDP Config</source>
- <translation>CemuhookUDP Configuratie</translation>
+ <translation>CemuhookUDP-configuratie</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="91"/>
<source>You may use any Cemuhook compatible UDP input source to provide motion and touch input.</source>
- <translation>U kunt elke Cemuhook-compatibele UDP-invoerbron gebruiken voor bewegings- en aanraakinvoer.</translation>
+ <translation>Je kunt elke Cemuhook-compatibele UDP-invoerbron gebruiken om beweging en aanraking in te voeren.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="134"/>
@@ -2793,11 +2971,11 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="188"/>
<source>Learn More</source>
- <translation>Leer Meer</translation>
+ <translation>Meer Info</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Test</translation>
</message>
@@ -2809,87 +2987,87 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="247"/>
<source>Remove Server</source>
- <translation>Externe Server</translation>
+ <translation>Verwijder Server</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="87"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Learn More&lt;/span&gt;&lt;/a&gt;</source>
- <translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Leer Meer&lt;/span&gt;&lt;/a&gt;</translation>
+ <translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Meer Info&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
- <translation>Yuzu</translation>
+ <translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Poortnummer bevat ongeldige tekens</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Poort moet in bereik 0 en 65353 zijn</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
- <translation>IP adress is niet geldig</translation>
+ <translation>IP-adress is niet geldig</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
- <translation>Deze UDP server bestaat al</translation>
+ <translation>Deze UDP-server bestaat al</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Kan niet meer dan 8 servers toevoegen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Configureren</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
- <translation>Test Succesvol</translation>
+ <translation>Test Succesvol</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>De data van de server is succesvol ontvangen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test Gefaald</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
- <translation>Kan niet de juiste data van de server ontvangen.&lt;br&gt;Verifieer dat de server is goed opgezet en dat het adres en poort correct zijn.</translation>
+ <translation>Kan niet de juiste data van de server ontvangen.&lt;br&gt;Controleer of de server correct is ingesteld en of het adres en de poort correct zijn.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
- <translation>UDP Test of calibratie configuratie is bezig.&lt;br&gt;Wacht alstublieft totdat het voltooid is.</translation>
+ <translation>UDP-test of kalibratieconfiguratie is bezig.&lt;br&gt;Wacht tot ze klaar zijn.</translation>
</message>
</context>
<context>
@@ -2897,12 +3075,12 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_network.ui" line="14"/>
<source>Form</source>
- <translation>Formulier</translation>
+ <translation>Vorm</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_network.ui" line="17"/>
<source>Network</source>
- <translation type="unfinished"/>
+ <translation>Netwerk</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_network.ui" line="25"/>
@@ -2912,7 +3090,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_network.ui" line="34"/>
<source>Network Interface</source>
- <translation type="unfinished"/>
+ <translation>Netwerkinterface</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_network.cpp" line="15"/>
@@ -2940,7 +3118,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_per_game.ui" line="92"/>
<source>Title ID</source>
- <translation>Titel ID</translation>
+ <translation>Titel-ID</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_per_game.ui" line="129"/>
@@ -2968,47 +3146,47 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<translation>Ontwikkelaar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Add-Ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Algemeen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Systeem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
- <translation>Grafisch</translation>
+ <translation>Graphics</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
- <translation>Adv. Grafisch</translation>
+ <translation>Adv. Graphics</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
- <translation>Geluid</translation>
+ <translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Invoerprofielen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Eigenschappen</translation>
</message>
@@ -3023,7 +3201,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_per_game_addons.ui" line="14"/>
<source>Form</source>
- <translation>Formulier</translation>
+ <translation>Vorm</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_per_game_addons.ui" line="17"/>
@@ -3033,7 +3211,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_per_game_addons.cpp" line="46"/>
<source>Patch Name</source>
- <translation>Patch Naam</translation>
+ <translation>Patch-naam</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_per_game_addons.cpp" line="47"/>
@@ -3056,7 +3234,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.ui" line="25"/>
<source>Profile Manager</source>
- <translation>Profiel Beheer</translation>
+ <translation>Profielbeheer</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.ui" line="42"/>
@@ -3071,12 +3249,12 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.ui" line="116"/>
<source>Set Image</source>
- <translation>Selecteer Afbeelding</translation>
+ <translation>Stel Afbeelding In</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.ui" line="136"/>
<source>Add</source>
- <translation>Voeg Toe</translation>
+ <translation>Toevoegen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.ui" line="146"/>
@@ -3091,7 +3269,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.ui" line="168"/>
<source>Profile management is available only when game is not running.</source>
- <translation>Profiel beheer is alleen beschikbaar wanneer het spel niet bezig is.</translation>
+ <translation>Profielbeheer is alleen beschikbaar wanneer het spel niet bezig is.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="55"/>
@@ -3104,7 +3282,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="73"/>
<source>Enter Username</source>
- <translation>Voer een Gebruikersnaam in</translation>
+ <translation>Voer Gebruikersnaam in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="139"/>
@@ -3124,12 +3302,12 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="271"/>
<source>Select User Image</source>
- <translation>Selecteer gebruiker&apos;s foto</translation>
+ <translation>Selecteer Gebruikersfoto</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="272"/>
<source>JPEG Images (*.jpg *.jpeg)</source>
- <translation>JPEG foto&apos;s (*.jpg *.jpeg)</translation>
+ <translation>JPEG-foto&apos;s (*.jpg *.jpeg)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="281"/>
@@ -3174,12 +3352,12 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="314"/>
<source>Error resizing user image</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het aanpassen van grootte van gebruikersafbeelding</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="315"/>
<source>Unable to resize image</source>
- <translation type="unfinished"/>
+ <translation>Kon de grootte van de afbeelding niet wijzigen</translation>
</message>
</context>
<context>
@@ -3187,7 +3365,7 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="332"/>
<source>Delete this user? All of the user&apos;s save data will be deleted.</source>
- <translation type="unfinished"/>
+ <translation>Deze gebruiker verwijderen? Alle opgeslagen gegevens van de gebruiker worden verwijderd.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="344"/>
@@ -3198,7 +3376,8 @@ Om de assen te spiegelen, beweek je joystick eerst verticaal en dan horizontaal.
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="360"/>
<source>Name: %1
UUID: %2</source>
- <translation type="unfinished"/>
+ <translation>Naam: %1
+UUID: %2</translation>
</message>
</context>
<context>
@@ -3206,29 +3385,29 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="14"/>
<source>Configure Ring Controller</source>
- <translation type="unfinished"/>
+ <translation>Configureer Ring-controller</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="26"/>
<source>If you want to use this controller configure player 1 as right controller and player 2 as dual joycon before starting the game to allow this controller to be detected properly.</source>
- <translation type="unfinished"/>
+ <translation>Als je deze controller wilt gebruiken, configureer dan speler 1 als rechter controller en speler 2 als dual joycon voordat je het spel start, zodat deze controller goed wordt gedetecteerd.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation type="unfinished"/>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Parameters Virtuele Ringsensor</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="123"/>
<source>Pull</source>
- <translation type="unfinished"/>
+ <translation>Trek</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="133"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="172"/>
<source>Push</source>
- <translation type="unfinished"/>
+ <translation>Duw</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="206"/>
@@ -3236,33 +3415,90 @@ UUID: %2</source>
<translation>Deadzone: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Direct Joycon-driver</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Schakel Ringinvoer in</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Inschakelen</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Ringsensorwaarde</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Niet verbonden</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Standaard Herstellen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
- <translation>Verwijder</translation>
+ <translation>Wis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[niet ingesteld]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
- <translation>Spiegel As</translation>
+ <translation>Spiegel as</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Deadzone: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Fout tijdens inschakelen van ringinvoer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Direct Joycon-driver niet ingeschakeld</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Configureren</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>Het huidige apparaat ondersteunt de ringcontroller niet</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>Het huidige apparaat heeft geen ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Onverwacht driverresultaat %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[aan het wachten]</translation>
</message>
@@ -3292,7 +3528,7 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="41"/>
<source>Auto</source>
- <translation>Automatisch</translation>
+ <translation>Auto</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="46"/>
@@ -3553,12 +3789,12 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="313"/>
<source>Time Zone:</source>
- <translation>Tijd Zone:</translation>
+ <translation>Tijdzone:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="320"/>
<source>Note: this can be overridden when region setting is auto-select</source>
- <translation>Noot: dit kan worden overschreven wanneer de regio instelling op automatisch selecteren staat.</translation>
+ <translation>Opmerking: dit kan worden overschreven wanneer de regio-instelling automatisch wordt geselecteerd</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="324"/>
@@ -3567,8 +3803,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Engels (English)</translation>
+ <source>American English</source>
+ <translation>Amerikaans-Engels</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3593,7 +3829,7 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="354"/>
<source>Chinese</source>
- <translation>Chinees (正體中文 / 简体中文)</translation>
+ <translation>Chinees</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="359"/>
@@ -3623,17 +3859,17 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="384"/>
<source>British English</source>
- <translation>Brits Engels</translation>
+ <translation>Brits-Engels</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="389"/>
<source>Canadian French</source>
- <translation>Canadees Frans</translation>
+ <translation>Canadees-Frans</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="394"/>
<source>Latin American Spanish</source>
- <translation>Latijns Amerikaans Spaans</translation>
+ <translation>Latijns-Amerikaans Spaans</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="399"/>
@@ -3648,12 +3884,12 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="409"/>
<source>Brazilian Portuguese (português do Brasil)</source>
- <translation type="unfinished"/>
+ <translation>Braziliaans-Portugees (português do Brasil)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="417"/>
<source>Custom RTC</source>
- <translation>Handmatige RTC</translation>
+ <translation>Aangepaste RTC</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="424"/>
@@ -3668,57 +3904,22 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
+ <translation>Apparaatnaam</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Console ID:</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>Onveilige uitgebreide geheugenindeling (8GB DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Geluid uitvoer mode</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Herstel</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Systeeminstellingen zijn enkel toegankelijk wanneer er geen game draait.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Dit vervangt je huidige virtuele Switch met een nieuwe. Je huidige virtuele Switch kan dan niet meer worden hersteld. Dit kan onverwachte effecten hebben in spellen. Dit werkt niet als je een oude config savegame gebruikt. Doorgaan?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Waarschuwing</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Console ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Waarschuwing: &quot;%1&quot; is geen geldige taal voor regio &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3726,47 +3927,47 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="11"/>
<source>TAS</source>
- <translation type="unfinished"/>
+ <translation>TAS</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="17"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Reads controller input from scripts in the same format as TAS-nx scripts.&lt;br/&gt;For a more detailed explanation, please consult the &lt;a href=&quot;https://yuzu-emu.org/help/feature/tas/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;help page&lt;/span&gt;&lt;/a&gt; on the yuzu website.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Leest controller-invoer van scripts in hetzelfde formaat als TAS-nx-scripts.&lt;br/&gt;Voor een meer gedetailleerde uitleg kunt u de&lt;a href=&quot;https://yuzu-emu.org/help/feature/tas/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;help-pagina&lt;/span&gt;&lt;/a&gt;op de yuzu-website raadplegen.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="27"/>
<source>To check which hotkeys control the playback/recording, please refer to the Hotkey settings (Configure -&gt; General -&gt; Hotkeys).</source>
- <translation type="unfinished"/>
+ <translation>Om te controleren welke sneltoetsen het afspelen/opnemen regelen, raadpleeg de sneltoetsinstellingen (Configuratie -&gt; Algemeen -&gt; Sneltoetsen).</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="37"/>
<source>WARNING: This is an experimental feature.&lt;br/&gt;It will not play back scripts frame perfectly with the current, imperfect syncing method.</source>
- <translation type="unfinished"/>
+ <translation>WAARSCHUWING: Dit is een experimentele functie.&lt;br/&gt;Met de huidige, onvolmaakte synchronisatiemethode worden scripts niet perfect afgespeeld.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="54"/>
<source>Settings</source>
- <translation type="unfinished"/>
+ <translation>Instellingen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="60"/>
<source>Enable TAS features</source>
- <translation type="unfinished"/>
+ <translation>Schakel TAS-functies in</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="67"/>
<source>Loop script</source>
- <translation type="unfinished"/>
+ <translation>Lus script</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="77"/>
<source>Pause execution during loads</source>
- <translation type="unfinished"/>
+ <translation>Onderbreek de uitvoering tijdens ladingen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="91"/>
<source>Script Directory</source>
- <translation type="unfinished"/>
+ <translation>Script-map</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.ui" line="97"/>
@@ -3784,12 +3985,12 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_tas.cpp" line="19"/>
<source>TAS Configuration</source>
- <translation type="unfinished"/>
+ <translation>TAS-configuratie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
- <translation type="unfinished"/>
+ <translation>Selecteer TAS-laadmap...</translation>
</message>
</context>
<context>
@@ -3797,12 +3998,12 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="14"/>
<source>Configure Touchscreen Mappings</source>
- <translation>Touchscreen Mappings Configureren</translation>
+ <translation>Configureer Touchscreen-toewijzingen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="22"/>
<source>Mapping:</source>
- <translation>Mapping:</translation>
+ <translation>Toewijzing:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="48"/>
@@ -3817,14 +4018,14 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="74"/>
<source>Rename</source>
- <translation>Hernoemen</translation>
+ <translation>Hernoem</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="92"/>
<source>Click the bottom area to add a point, then press a button to bind.
Drag points to change position, or double-click table cells to edit values.</source>
- <translation>Klik in de onderste vlakte op een punt toe te voegen, daarna druk op een knop om het te verbinden.
-Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen om de waardes te veranderen.</translation>
+ <translation>Klik op het onderste gebied om een punt toe te voegen en druk vervolgens op een knop om toe te wijzen.
+Versleep punten om de positie te veranderen, of dubbelklik op tabelcellen om waarden te bewerken.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.ui" line="116"/>
@@ -3866,7 +4067,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="206"/>
<source>Delete profile %1?</source>
- <translation>Verwijder Profiel %1?</translation>
+ <translation>Verwijder profiel %1?</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="219"/>
@@ -3894,22 +4095,22 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_touchscreen_advanced.ui" line="26"/>
<source>Warning: The settings in this page affect the inner workings of yuzu&apos;s emulated touchscreen. Changing them may result in undesirable behavior, such as the touchscreen partially or not working. You should only use this page if you know what you are doing.</source>
- <translation>Waarschuwing: Instellingen in deze pagina hebben invloed op de interne werking van yuzu&apos;s geemuleerde touchscreen. Veranderingen kunnen ongewenste resultaten hebben, zoals ervoor zorgen dat het touchscreen half of niet werkt. Gebruik deze pagina enkel als je weet wat je doet.</translation>
+ <translation>Waarschuwing: De instellingen in deze pagina beïnvloeden de innerlijke werking van yuzu&apos;s geëmuleerde touchscreen. Het veranderen ervan kan leiden tot ongewenst gedrag, zoals het gedeeltelijk of niet werken van het touchscreen. Je moet deze pagina alleen gebruiken als je weet wat je doet.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touchscreen_advanced.ui" line="52"/>
<source>Touch Parameters</source>
- <translation>Touch Parameters</translation>
+ <translation>Aanraakparameters</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touchscreen_advanced.ui" line="71"/>
<source>Touch Diameter Y</source>
- <translation>Touch Diameter Y</translation>
+ <translation>Aanraakdiameter Y</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touchscreen_advanced.ui" line="91"/>
<source>Touch Diameter X</source>
- <translation>Touch Diameter X</translation>
+ <translation>Aanraakdiameter X</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touchscreen_advanced.ui" line="98"/>
@@ -3919,7 +4120,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_touchscreen_advanced.ui" line="132"/>
<source>Restore Defaults</source>
- <translation>Herstel Standaardwaardes</translation>
+ <translation>Herstel Standaardwaarden</translation>
</message>
</context>
<context>
@@ -3934,37 +4135,37 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="21"/>
<source>Small (32x32)</source>
- <translation type="unfinished"/>
+ <translation>Klein (32x32)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="22"/>
<source>Standard (64x64)</source>
- <translation type="unfinished"/>
+ <translation>Standaard (64x64)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="23"/>
<source>Large (128x128)</source>
- <translation type="unfinished"/>
+ <translation>Groot (128x128)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="24"/>
<source>Full Size (256x256)</source>
- <translation type="unfinished"/>
+ <translation>Volledige Grootte (256x256)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="29"/>
<source>Small (24x24)</source>
- <translation type="unfinished"/>
+ <translation>Klein (24x24)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="30"/>
<source>Standard (48x48)</source>
- <translation type="unfinished"/>
+ <translation>Standaard (48x48)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="31"/>
<source>Large (72x72)</source>
- <translation type="unfinished"/>
+ <translation>Groot (72x72)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="36"/>
@@ -3974,17 +4175,17 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="37"/>
<source>Filetype</source>
- <translation type="unfinished"/>
+ <translation>Bestandstype</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="38"/>
<source>Title ID</source>
- <translation>Titel ID</translation>
+ <translation>Titel-ID</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="39"/>
<source>Title Name</source>
- <translation type="unfinished"/>
+ <translation>Titelnaam</translation>
</message>
</context>
<context>
@@ -4007,12 +4208,12 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="31"/>
<source>Note: Changing language will apply your configuration.</source>
- <translation>Notitie: De taal veranderen past uw configuratie toe.</translation>
+ <translation>Opmerking: Als je de taal wijzigt, wordt je configuratie toegepast.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="43"/>
<source>Interface language:</source>
- <translation>Interface taal:</translation>
+ <translation>Interfacetaal:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="57"/>
@@ -4022,47 +4223,47 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="74"/>
<source>Game List</source>
- <translation>Game Lijst</translation>
+ <translation>Spellijst</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="82"/>
<source>Show Compatibility List</source>
- <translation type="unfinished"/>
+ <translation>Toon Compatibiliteitslijst</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="89"/>
<source>Show Add-Ons Column</source>
- <translation>Toon Add-Ons Kolom</translation>
+ <translation>Toon Kolom Add-Ons</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="96"/>
<source>Show Size Column</source>
- <translation type="unfinished"/>
+ <translation>Toon Kolomgrootte</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="103"/>
<source>Show File Types Column</source>
- <translation type="unfinished"/>
+ <translation>Toon Kolom Bestandstypen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="112"/>
<source>Game Icon Size:</source>
- <translation type="unfinished"/>
+ <translation>Grootte Spelicoon:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="126"/>
<source>Folder Icon Size:</source>
- <translation type="unfinished"/>
+ <translation>Grootte Mapicoon:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="140"/>
<source>Row 1 Text:</source>
- <translation>Rij 1 Text:</translation>
+ <translation>Rij 1 Tekst:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="154"/>
<source>Row 2 Text:</source>
- <translation>Rij 2 Text:</translation>
+ <translation>Rij 2 Tekst:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="171"/>
@@ -4072,12 +4273,12 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="179"/>
<source>Ask Where To Save Screenshots (Windows Only)</source>
- <translation type="unfinished"/>
+ <translation>Vraag waar schermafbeeldingen moeten worden opgeslagen (alleen Windows)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="188"/>
<source>Screenshots Path: </source>
- <translation type="unfinished"/>
+ <translation>Schermafbeeldingspad:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="198"/>
@@ -4087,7 +4288,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="96"/>
<source>Select Screenshots Path...</source>
- <translation type="unfinished"/>
+ <translation>Selecteer Schermafbeeldingspad...</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.cpp" line="225"/>
@@ -4100,12 +4301,12 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_vibration.ui" line="14"/>
<source>Configure Vibration</source>
- <translation type="unfinished"/>
+ <translation>Configureer Trilling</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_vibration.ui" line="23"/>
<source>Press any controller button to vibrate the controller.</source>
- <translation type="unfinished"/>
+ <translation>Druk op een willekeurige knop om de controller te laten trillen.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_vibration.ui" line="30"/>
@@ -4167,12 +4368,12 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_vibration.ui" line="503"/>
<source>Settings</source>
- <translation type="unfinished"/>
+ <translation>Instellingen</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_vibration.ui" line="509"/>
<source>Enable Accurate Vibration</source>
- <translation type="unfinished"/>
+ <translation>Schakel Nauwkeurige Trillingen In</translation>
</message>
</context>
<context>
@@ -4190,12 +4391,12 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="25"/>
<source>yuzu Web Service</source>
- <translation>yuzu Web Service</translation>
+ <translation>yuzu-webservice</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="31"/>
<source>By providing your username and token, you agree to allow yuzu to collect additional usage data, which may include user identifying information.</source>
- <translation>Door je gebruikersnaam en token te geven, ga je akkoord dat yuzu extra gebruiksdata verzameld, waaronder mogelijk gebruikersidentificatie-informatie.</translation>
+ <translation>Door je gebruikersnaam en token op te geven, ga je ermee akkoord dat yuzu aanvullende gebruiksgegevens verzamelt, die informatie ter identificatie van de gebruiker kunnen bevatten.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="49"/>
@@ -4226,7 +4427,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="118"/>
<source>Web Service configuration can only be changed when a public room isn&apos;t being hosted.</source>
- <translation type="unfinished"/>
+ <translation>De configuratie van de webservice kan alleen worden gewijzigd als er geen openbare ruimte wordt gehost.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="128"/>
@@ -4236,17 +4437,17 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="134"/>
<source>Share anonymous usage data with the yuzu team</source>
- <translation>Deel anonieme gebruiksdata met het yuzu team</translation>
+ <translation>Deel anonieme gebruiksdata met het yuzu-team</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="141"/>
<source>Learn more</source>
- <translation>Leer meer</translation>
+ <translation>Meer info</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="150"/>
<source>Telemetry ID:</source>
- <translation>Telemetrie ID:</translation>
+ <translation>Telemetrie-ID:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="166"/>
@@ -4256,17 +4457,17 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="180"/>
<source>Discord Presence</source>
- <translation>Discord Presence</translation>
+ <translation>Aanwezigheid in Discord</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="186"/>
<source>Show Current Game in your Discord Status</source>
- <translation>Toon huidige game in je Discord status</translation>
+ <translation>Toon huidige game in uw Discord-status</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="68"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Learn more&lt;/span&gt;&lt;/a&gt;</source>
- <translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Leer meer&lt;/span&gt;&lt;/a&gt;</translation>
+ <translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Meer info&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="72"/>
@@ -4282,7 +4483,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="80"/>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="125"/>
<source>Telemetry ID: 0x%1</source>
- <translation>Telemetrie ID: 0x%1</translation>
+ <translation>Telemetrie-ID: 0x%1</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="91"/>
@@ -4304,7 +4505,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="141"/>
<source>Unverified, please click Verify before saving configuration</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Niet geverifieerd, klik op Verifiëren voordat je de configuratie opslaat</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="147"/>
@@ -4316,7 +4517,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="164"/>
<source>Verified</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Geverifiëerd</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="169"/>
@@ -4332,7 +4533,7 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="172"/>
<source>Verification failed. Check that you have entered your token correctly, and that your internet connection is working.</source>
- <translation>Verificatie mislukt. Check dat uw token correct is en dat uw internet werkt.</translation>
+ <translation>Verificatie mislukt. Controleer of je je token correct hebt ingevoerd en of je internetverbinding werkt.</translation>
</message>
</context>
<context>
@@ -4340,12 +4541,12 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/debugger/controller.cpp" line="20"/>
<source>Controller P1</source>
- <translation type="unfinished"/>
+ <translation>Controller P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
- <translation type="unfinished"/>
+ <translation>&amp;Controller P1</translation>
</message>
</context>
<context>
@@ -4353,980 +4554,1019 @@ Sleep punten om positie te veranderen, of dubbel klik één van de tabel cellen
<message>
<location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="14"/>
<source>Direct Connect</source>
- <translation type="unfinished"/>
+ <translation>Directe Verbinding</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Serveradres</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Serveradres van de host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Poort</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Poortnummer waarop de host luistert&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Gebruikersnaam</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Wachtwoord</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Verbind</translation>
</message>
</context>
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
- <translation type="unfinished"/>
+ <translation>Verbinden</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Verbind</translation>
</message>
</context>
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Annonieme gegevens worden verzameld&lt;/a&gt; om yuzu te helpen verbeteren. &lt;br/&gt;&lt;br/&gt; Zou je jouw gebruiksgegevens met ons willen delen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetrie</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
- <translation type="unfinished"/>
+ <translation>Beschadigde Vulkan-installatie gedetecteerd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
- <translation type="unfinished"/>
+ <translation>Vulkan-initialisatie mislukt tijdens het opstarten.&lt;br&gt;&lt;br&gt;Klik &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;hier voor instructies om het probleem op te lossen&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Web Applet Laden...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
- <translation type="unfinished"/>
+ <translation>Schakel Webapplet uit</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
- <translation type="unfinished"/>
+ <translation>Het uitschakelen van de webapplet kan leiden tot ongedefinieerd gedrag en mag alleen gebruikt worden met Super Mario 3D All-Stars. Weet je zeker dat je de webapplet wilt uitschakelen?
+(Deze kan opnieuw worden ingeschakeld in de Debug-instellingen).</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
- <translation type="unfinished"/>
+ <translation>Het aantal shaders dat momenteel wordt gebouwd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
- <translation type="unfinished"/>
+ <translation>De huidige geselecteerde resolutieschaalmultiplier.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
- <translation>Huidige emulatie snelheid. Waardes hoger of lager dan 100% betekent dat de emulatie sneller of langzamer loopt dan de Switch.</translation>
+ <translation>Huidige emulatiesnelheid. Waarden hoger of lager dan 100% geven aan dat de emulatie sneller of langzamer werkt dan een Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
- <translation>Hoeveel frames per seconde de game op dit moment weergeeft. Dit zal veranderen van game naar game en van scène naar scène.</translation>
+ <translation>Hoeveel beelden per seconde het spel momenteel weergeeft. Dit varieert van spel tot spel en van scène tot scène.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
- <translation>Tijd gebruikt om een frame van de Switch te emuleren, waarbij framelimiteren of v-sync niet wordt meegerekend. Voor emulatie op volledige snelheid zou dit maximaal 16.67 ms zijn.</translation>
+ <translation>Tijd die nodig is om een Switch-beeld te emuleren, beeldbeperking of v-sync niet meegerekend. Voor emulatie op volle snelheid mag dit maximaal 16,67 ms zijn.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
- <translation type="unfinished"/>
+ <translation>&amp;Wis Recente Bestanden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Geëmuleerde muis is ingeschakeld</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>Echte muisinvoer en muispanning zijn niet compatibel. Schakel de geëmuleerde muis uit in de geavanceerde invoerinstellingen om muispanning mogelijk te maken.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
- <translation type="unfinished"/>
+ <translation>&amp;Doorgaan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
- <translation>&amp;Pauzeren</translation>
+ <translation>&amp;Onderbreken</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
- <translation type="unfinished"/>
+ <translation>yuzu is een spel aan het uitvoeren</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
- <translation>Waarschuwing Verouderd Spel Formaat</translation>
+ <translation>Waarschuwing Verouderd Spelformaat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
- <translation>Je gebruikt gedeconstrueerd ROM map formaat voor dit Spel, dit is een verouderd formaat en is vervangen door formaten zoals NCA, NAX, XCI of NSP. Gedeconstrueerd ROM map heeft geen iconen, metadata en update understeuning.&lt;br&gt;&lt;br&gt;Voor een uitleg over welke Switch formaten yuzu ondersteund, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;kijk op onze wiki&lt;/a&gt;. Dit bericht word niet nog een keer weergegeven.</translation>
+ <translation>Je gebruikt het gedeconstrueerde ROM-mapformaat voor dit spel, wat een verouderd formaat is dat vervangen is door andere zoals NCA, NAX, XCI, of NSP. Deconstructed ROM-mappen missen iconen, metadata, en update-ondersteuning.&lt;br&gt;&lt;br&gt;Voor een uitleg van de verschillende Switch-formaten die yuzu ondersteunt,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt; bekijk onze wiki&lt;/a&gt;. Dit bericht wordt niet meer getoond.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Fout tijdens het laden van een ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
- <translation>Het formaat van de ROM is niet ondersteunt.</translation>
+ <translation>Het ROM-formaat wordt niet ondersteund.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Er is een fout opgetreden tijdens het initialiseren van de videokern.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
- <translation type="unfinished"/>
+ <translation>yuzu is een fout tegengekomen tijdens het uitvoeren van de videokern. Dit wordt meestal veroorzaakt door verouderde GPU-drivers, inclusief geïntegreerde. Zie het logboek voor meer details. Voor meer informatie over toegang tot het log, zie de volgende pagina: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Hoe upload je het logbestand&lt;/a&gt;. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
- <translation type="unfinished"/>
+ <translation>Fout tijdens het laden van ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
- <translation type="unfinished"/>
+ <translation>%1&lt;br&gt;Volg de &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu snelstartgids&lt;/a&gt; om je bestanden te redumpen.&lt;br&gt;Je kunt de yuzu-wiki&lt;/a&gt;of de yuzu-Discord&lt;/a&gt; raadplegen voor hulp.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Een onbekende fout heeft plaatsgevonden. Kijk in de log voor meer details.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
- <translation type="unfinished"/>
+ <translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
- <translation type="unfinished"/>
+ <translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
- <translation type="unfinished"/>
+ <translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Software sluiten...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Save Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
- <translation>Fout tijdens het openen van %1 folder</translation>
+ <translation>Fout tijdens het openen van %1 map</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
- <translation>Folder bestaat niet!</translation>
+ <translation>Map bestaat niet!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
- <translation>Fout Bij Het Openen Van Overdraagbare Shader Cache</translation>
+ <translation>Fout bij het openen van overdraagbare shader-cache</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
- <translation type="unfinished"/>
+ <translation>Kon de shader-cache-map voor dit spel niet aanmaken.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het verwijderen van de inhoud</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het verwijderen van de update</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het verwijderen van DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>Geïnstalleerde Spelinhoud Verwijderen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation type="unfinished"/>
+ <translation>Geïnstalleerde Spel-update Verwijderen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
- <translation type="unfinished"/>
+ <translation>Geïnstalleerde Spel-DLC Verwijderen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Invoer</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
- <translation type="unfinished"/>
+ <translation>Met Succes Verwijderd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
- <translation type="unfinished"/>
+ <translation>Het geïnstalleerde basisspel is succesvol verwijderd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
- <translation type="unfinished"/>
+ <translation>Het basisspel is niet geïnstalleerd in de NAND en kan niet worden verwijderd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
- <translation type="unfinished"/>
+ <translation>De geïnstalleerde update is succesvol verwijderd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
- <translation type="unfinished"/>
+ <translation>Er is geen update geïnstalleerd voor dit spel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
- <translation type="unfinished"/>
+ <translation>Er is geen DLC geïnstalleerd voor dit spel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
- <translation type="unfinished"/>
+ <translation>%1 geïnstalleerde DLC met succes verwijderd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
- <translation type="unfinished"/>
+ <translation>Overdraagbare OpenGL-shader-cache Verwijderen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
- <translation type="unfinished"/>
+ <translation>Overdraagbare Vulkan-shader-cache Verwijderen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
- <translation type="unfinished"/>
+ <translation>Alle Overdraagbare Shader-caches Verwijderen?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
+ <translation>Aangepaste Spelconfiguratie Verwijderen?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Bestand</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het verwijderen van Overdraagbare Shader-cache</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
- <translation>Er bestaat geen shader cache voor deze game</translation>
+ <translation>Er bestaat geen shader-cache voor dit spel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
- <translation type="unfinished"/>
+ <translation>De overdraagbare shader-cache is verwijderd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
- <translation type="unfinished"/>
+ <translation>Kon de overdraagbare shader-cache niet verwijderen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Fout bij het verwijderen van Pijplijn-cache van Vulkan-driver</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Kon de pijplijn-cache van de driver niet verwijderen.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het verwijderen van overdraagbare shader-caches</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
- <translation type="unfinished"/>
+ <translation>De overdraagbare shader-caches zijn verwijderd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
- <translation type="unfinished"/>
+ <translation>Kon de overdraagbare shader-cache-map niet verwijderen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het verwijderen van aangepaste configuratie</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Er bestaat geen aangepaste configuratie voor dit spel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
- <translation type="unfinished"/>
+ <translation>De aangepaste spelconfiguratie is verwijderd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
- <translation type="unfinished"/>
+ <translation>Kon de aangepaste spelconfiguratie niet verwijderen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
- <translation>RomFS Extractie Mislukt!</translation>
+ <translation>RomFS-extractie Mislukt!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
- <translation>Er was een fout tijdens het kopiëren van de RomFS bestanden of de gebruiker heeft de operatie geannuleerd.</translation>
+ <translation>Er is een fout opgetreden bij het kopiëren van de RomFS-bestanden of de gebruiker heeft de bewerking geannuleerd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
- <translation>Vol</translation>
+ <translation>Volledig</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Skelet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
- <translation>Selecteer RomFS Dump Mode</translation>
+ <translation>Selecteer RomFS-dumpmodus</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
- <translation>Selecteer alstublieft hoe je de RomFS wilt dumpen.&lt;br&gt;Volledig kopieërd alle bestanden in een map terwijl &lt;br&gt; skelet maakt alleen het map structuur.</translation>
+ <translation>Selecteer hoe je de RomFS gedumpt wilt hebben.&lt;br&gt;Volledig zal alle bestanden naar de nieuwe map kopiëren, terwijl &lt;br&gt;Skelet alleen de mapstructuur zal aanmaken.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
- <translation type="unfinished"/>
+ <translation>Er is niet genoeg vrije ruimte op %1 om de RomFS uit te pakken. Maak ruimte vrij of kies een andere dumpmap bij Emulatie &gt; Configuratie &gt; Systeem &gt; Bestandssysteem &gt; Dump Root.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>RomFS uitpakken...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Annuleren</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
- <translation>RomFS Extractie Geslaagd!</translation>
+ <translation>RomFS-extractie Geslaagd!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
- <translation>De operatie is succesvol voltooid.</translation>
+ <translation>De bewerking is succesvol voltooid.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Maak Snelkoppeling</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Dit maakt een snelkoppeling naar de huidige AppImage. Dit werkt mogelijk niet goed als je een update uitvoert. Doorgaan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Kan geen snelkoppeling op het bureaublad maken. Pad &quot;%1&quot; bestaat niet.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Kan geen snelkoppeling maken in toepassingen menu. Pad &quot;%1&quot; bestaat niet en kan niet worden aangemaakt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Maak Icoon</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Kan geen icoonbestand maken. Pad &quot;%1&quot; bestaat niet en kan niet worden aangemaakt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Voer %1 uiit met de yuzu-emulator</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Er is geen snelkoppeling gemaakt op %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Succesvol een snelkoppeling naar %1 gemaakt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Fout bij openen %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Selecteer Map</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Eigenschappen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
- <translation>De eigenschappen van de game kunnen niet geladen worden.</translation>
+ <translation>De speleigenschappen kunnen niet geladen worden.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
- <translation>Switch Executable (%1);;Alle bestanden (*.*)</translation>
+ <translation>Switch Executable (%1);;Alle Bestanden (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Laad Bestand</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
- <translation>Open Gedecomprimeerd ROM Map</translation>
+ <translation>Open Uitgepakte ROM-map</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Ongeldige Map Geselecteerd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
- <translation>De map die je hebt geselecteerd bevat geen &apos;main&apos; bestand.</translation>
+ <translation>De map die je hebt geselecteerd bevat geen &apos;main&apos;-bestand.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
- <translation type="unfinished"/>
+ <translation>Installeerbaar Switch-bestand (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
- <translation type="unfinished"/>
+ <translation>Installeer Bestanden</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n bestand(en) resterend</numerusform><numerusform>%n bestand(en) resterend</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Bestand &quot;%1&quot; Installeren...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
- <translation type="unfinished"/>
+ <translation>Installeerresultaten</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
- <translation type="unfinished"/>
+ <translation>Om mogelijke conflicten te voorkomen, raden we gebruikers af om basisgames te installeren op de NAND.
+Gebruik deze functie alleen om updates en DLC te installeren.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n bestand(en) zijn recent geïnstalleerd
+</numerusform><numerusform>%n bestand(en) zijn recent geïnstalleerd
+</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n bestand(en) werden overschreven
+</numerusform><numerusform>%n bestand(en) werden overschreven
+</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%n bestand(en) niet geïnstalleerd
+</numerusform><numerusform>%n bestand(en) niet geïnstalleerd
+</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
- <translation>Systeem Applicatie</translation>
+ <translation>Systeemapplicatie</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
- <translation>Systeem Archief</translation>
+ <translation>Systeemarchief</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
- <translation>Systeem Applicatie Update</translation>
+ <translation>Systeemapplicatie-update</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
- <translation>Filmware Pakket (Type A)</translation>
+ <translation>Filmware-pakket (Type A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
- <translation>Filmware Pakket (Type B)</translation>
+ <translation>Filmware-pakket (Type B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
- <translation>Game</translation>
+ <translation>Spel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
- <translation>Game Update</translation>
+ <translation>Spelupdate</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
- <translation>Game DLC</translation>
+ <translation>Spel-DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta Titel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
- <translation>Selecteer NCA Installatie Type...</translation>
+ <translation>Selecteer NCA-installatiesoort...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
- <translation>Selecteer het type titel hoe je wilt dat deze NCA installeerd:
-(In de meeste gevallen is de standaard &apos;Game&apos; juist.)</translation>
+ <translation>Selecteer het type titel waarin je deze NCA wilt installeren:
+(In de meeste gevallen is de standaard &quot;Spel&quot; prima).</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Installatie Mislukt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
- <translation>Het type title dat je hebt geselecteerd voor de NCA is ongeldig.</translation>
+ <translation>Het soort title dat je hebt geselecteerd voor de NCA is ongeldig.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Bestand niet gevonden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Bestand &quot;%1&quot; niet gevonden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
- <translation type="unfinished"/>
+ <translation>Er is niet voldaan aan de hardwarevereisten</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation type="unfinished"/>
+ <translation>Je systeem voldoet niet aan de aanbevolen hardwarevereisten. Compatibiliteitsrapportage is uitgeschakeld.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
- <translation>Je yuzu account mist</translation>
+ <translation>yuzu-account Ontbreekt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
- <translation>Om game campatibiliteit te raporteren, moet je je yuzu account koppelen.&lt;br&gt;&lt;br/&gt; Om je yuzu account te koppelen, ga naar Emulatie &amp;gt; Configuratie &amp;gt; Web.</translation>
+ <translation>Om een spelcompatibiliteitstest in te dienen, moet je je yuzu-account koppelen.&lt;br&gt;&lt;br/&gt;Om je yuzu-account te koppelen, ga naar Emulatie &amp;gt; Configuratie &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
- <translation type="unfinished"/>
+ <translation>Fout bij het openen van URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
- <translation type="unfinished"/>
+ <translation>Kan de URL &quot;%1&quot; niet openen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
- <translation type="unfinished"/>
+ <translation>TAS-opname</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
- <translation type="unfinished"/>
+ <translation>Het bestand van speler 1 overschrijven?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
- <translation type="unfinished"/>
+ <translation>Ongeldige configuratie gedetecteerd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
- <translation type="unfinished"/>
+ <translation>Handheld-controller kan niet gebruikt worden in docked-modus. Pro controller wordt geselecteerd.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
- <translation type="unfinished"/>
+ <translation>De huidige amiibo is verwijderd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
- <translation type="unfinished"/>
+ <translation>Fout</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
- <translation type="unfinished"/>
+ <translation>Het huidige spel is niet op zoek naar amiibo&apos;s</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
- <translation>Amiibo Bestand (%1);; Alle Bestanden (*.*)</translation>
+ <translation>Amiibo-bestand (%1);; Alle Bestanden (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Laad Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
- <translation>Fout tijdens het laden van de Amiibo data</translation>
+ <translation>Fout tijdens het laden van de Amiibo-gegevens</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
- <translation type="unfinished"/>
+ <translation>Het geselecteerde bestand is geen geldige amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
- <translation type="unfinished"/>
+ <translation>Het geselecteerde bestand is al in gebruik</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
- <translation type="unfinished"/>
+ <translation>Er is een onbekende fout opgetreden</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
- <translation>Screenshot Vastleggen</translation>
+ <translation>Leg Schermafbeelding Vast</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
- <translation>PNG afbeelding (*.png)</translation>
+ <translation>PNG-afbeelding (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
- <translation type="unfinished"/>
+ <translation>TAS-status: %1/%2 In werking</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
- <translation type="unfinished"/>
+ <translation>TAS-status: %1 Aan het opnemen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
- <translation type="unfinished"/>
+ <translation>TAS-status: %1/%2 Inactief</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
- <translation type="unfinished"/>
+ <translation>TAS-status: Ongeldig</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
- <translation type="unfinished"/>
+ <translation>&amp;Stop Uitvoering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
- <translation type="unfinished"/>
+ <translation>Stop Opname</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
- <translation type="unfinished"/>
+ <translation>Opnemen</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>Bouwen: %n shader(s)</numerusform><numerusform>Bouwen: %n shader(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
- <translation type="unfinished"/>
+ <translation>Schaal: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Snelheid: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Snelheid: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
- <translation type="unfinished"/>
+ <translation>Spel: %1 FPS (Ontgrendeld)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Game: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Frame: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
- <translation type="unfinished"/>
+ <translation>GPU NORMAAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
- <translation type="unfinished"/>
+ <translation>GPU HOOG</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
- <translation type="unfinished"/>
+ <translation>GPU EXTREEM</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
- <translation type="unfinished"/>
+ <translation>GPU FOUT</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
- <translation type="unfinished"/>
+ <translation>DOCKED</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
- <translation type="unfinished"/>
+ <translation>HANDHELD</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
- <translation type="unfinished"/>
+ <translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
- <translation type="unfinished"/>
+ <translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
- <translation type="unfinished"/>
+ <translation>NEAREST</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
- <translation type="unfinished"/>
+ <translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
- <translation type="unfinished"/>
+ <translation>BICUBIC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
- <translation type="unfinished"/>
+ <translation>GAUSSIAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
- <translation type="unfinished"/>
+ <translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
- <translation type="unfinished"/>
+ <translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
- <translation type="unfinished"/>
+ <translation>GEEN AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
- <translation type="unfinished"/>
+ <translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>VOLUME: GEDEMPT</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>VOLUME: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
- <translation>Bevestig Sleutel Herafleiding</translation>
+ <translation>Bevestig Sleutelherhaling</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5334,137 +5574,148 @@ Please make sure this is what you want
and optionally make backups.
This will delete your autogenerated key files and re-run the key derivation module.</source>
- <translation>Je bent op het punt al je sleutels geforceerd opnieuw te verkrijgen.
-Als je niet weet wat dit doet of wat je aan het doen bent,
-dit is potentieel een vernietigende actie.
-Zorg ervoor dat je zeker weet dat dit is wat je wilt doen
-en optioneel maak backups.
+ <translation>Je staat op het punt om al je sleutels te forceren.
+Als je niet weet wat dit betekent of wat je doet,
+is dit een potentieel destructieve actie.
+Zorg ervoor dat dit is wat je wilt
+en maak eventueel back-ups.
-Dit zal je automatisch gegenereerde sleutel bestanden verwijderen en de sleutel verkrijger module opnieuw starten</translation>
+Dit zal je automatisch gegenereerde sleutelbestanden verwijderen en de sleutelafleidingsmodule opnieuw uitvoeren.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
- <translation type="unfinished"/>
+ <translation>Missing fuses</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
- <translation type="unfinished"/>
+ <translation> - BOOT0 Ontbreekt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
- <translation type="unfinished"/>
+ <translation> - BCPKG2-1-Normal-Main Ontbreekt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
- <translation type="unfinished"/>
+ <translation> - PRODINFO Ontbreekt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
- <translation type="unfinished"/>
+ <translation>Afleidingscomponenten ontbreken</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
- <translation type="unfinished"/>
+ <translation>Encryptiesleutels ontbreken. &lt;br&gt;Volg &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;de yuzu-snelstartgids&lt;/a&gt; om al je sleutels, firmware en spellen te krijgen.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
- <translation>Dit zal misschien een paar minuten duren gebaseerd
-op je systeem&apos;s performatie.</translation>
+ <translation>Sleutels afleiden...
+Dit kan tot een minuut duren,
+afhankelijk van de prestaties van je systeem.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
- <translation>Sleutels afleiden</translation>
+ <translation>Sleutels Afleiden</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>Decryptie van Systeemarchief Mislukt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>Encryptiesleutels zijn mislukt om firmware te decoderen. &lt;br&gt;Volg &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;de yuzu-snelstartgids&lt;/a&gt; om al je sleutels, firmware en games te krijgen.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
- <translation>Selecteer RomFS Dump Doel</translation>
+ <translation>Selecteer RomFS-dumpdoel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Selecteer welke RomFS je zou willen dumpen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Weet je zeker dat je yuzu wilt sluiten?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
- <translation>Weet je zeker dat je de emulatie wilt stoppen? Alle onopgeslagen voortgang will verloren gaan.</translation>
+ <translation>Weet je zeker dat je de emulatie wilt stoppen? Alle niet opgeslagen voortgang zal verloren gaan.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
<translation>De momenteel actieve toepassing heeft yuzu gevraagd om niet af te sluiten.
-Wilt u dit omzeilen en toch afsluiten?</translation>
+Wil je toch afsluiten?</translation>
</message>
</context>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
- <translation type="unfinished"/>
+ <translation>OpenGL niet beschikbaar!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>OpenGL gedeelde contexten worden niet ondersteund.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
- <translation type="unfinished"/>
+ <translation>yuzu is niet gecompileerd met OpenGL-ondersteuning.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
- <translation type="unfinished"/>
+ <translation>Fout tijdens het initialiseren van OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
- <translation type="unfinished"/>
+ <translation>Je GPU ondersteunt mogelijk geen OpenGL, of je hebt niet de laatste grafische stuurprogramma.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
- <translation type="unfinished"/>
+ <translation>Fout tijdens het initialiseren van OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
- <translation type="unfinished"/>
+ <translation>Je GPU ondersteunt mogelijk OpenGL 4.6 niet, of je hebt niet het laatste grafische stuurprogramma.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
- <translation type="unfinished"/>
+ <translation>Je GPU ondersteunt mogelijk een of meer vereiste OpenGL-extensies niet. Zorg ervoor dat je het laatste grafische stuurprogramma hebt.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Ondersteunde extensies:&lt;br&gt;%2</translation>
</message>
</context>
<context>
@@ -5472,32 +5723,32 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="532"/>
<source>Favorite</source>
- <translation type="unfinished"/>
+ <translation>Favoriet</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="534"/>
<source>Start Game</source>
- <translation type="unfinished"/>
+ <translation>Start Spel</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="536"/>
<source>Start Game without Custom Configuration</source>
- <translation type="unfinished"/>
+ <translation>Start Spel zonder Aangepaste Configuratie</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="538"/>
<source>Open Save Data Location</source>
- <translation>Open Locatie Van Save Gegevens </translation>
+ <translation>Open Locatie van Save-data</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="539"/>
<source>Open Mod Data Location</source>
- <translation>Open Mod Data Locatie</translation>
+ <translation>Open Locatie van Mod-data</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="541"/>
<source>Open Transferable Pipeline Cache</source>
- <translation type="unfinished"/>
+ <translation>Open Overdraagbare Pijplijn-cache</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="543"/>
@@ -5507,131 +5758,136 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="544"/>
<source>Remove Installed Update</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Geïnstalleerde Update</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="545"/>
<source>Remove All Installed DLC</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Alle Geïnstalleerde DLC&apos;s</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="546"/>
<source>Remove Custom Configuration</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Aangepaste Configuraties</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation>Verwijder OpenGL-pijplijn-cache</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Vulkan-pijplijn-cache</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Alle Pijplijn-caches</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
- <translation type="unfinished"/>
+ <translation>Verwijder Alle Geïnstalleerde Inhoud</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Dump RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
- <translation type="unfinished"/>
+ <translation>Dump RomFS naar SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
- <translation>Kopieer Titel ID naar Klembord</translation>
+ <translation>Kopiëer Titel-ID naar Klembord</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
- <translation>Navigeer naar GameDB inzending</translation>
+ <translation>Navigeer naar GameDB-invoer</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Maak Snelkoppeling</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Toevoegen aan Bureaublad</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Toevoegen aan menu Toepassingen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Eigenschappen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
- <translation>Scan Subfolders</translation>
+ <translation>Scan Submappen</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
- <translation>Verwijder Game Directory</translation>
+ <translation>Verwijder Spelmap</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
- <translation type="unfinished"/>
+ <translation>▲ Omhoog</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
- <translation type="unfinished"/>
+ <translation>▼ Omlaag</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
- <translation>Open Directory Locatie</translation>
+ <translation>Open Maplocatie</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Verwijder</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Naam</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Compatibiliteit</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
- <translation>Toevoegingen</translation>
+ <translation>Add-ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
- <translation>Bestands type</translation>
+ <translation>Bestandssoort</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Grootte</translation>
</message>
@@ -5641,12 +5897,12 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Ingame</source>
- <translation type="unfinished"/>
+ <translation>In het spel</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Game starts, but crashes or major glitches prevent it from being completed.</source>
- <translation type="unfinished"/>
+ <translation>Het spel start, maar crashes of grote glitches voorkomen dat het wordt voltooid.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
@@ -5656,17 +5912,17 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
<source>Game can be played without issues.</source>
- <translation type="unfinished"/>
+ <translation>Het spel kan zonder problemen gespeeld worden.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Playable</source>
- <translation type="unfinished"/>
+ <translation>Speelbaar</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Game functions with minor graphical or audio glitches and is playable from start to finish.</source>
- <translation type="unfinished"/>
+ <translation>Het spel werkt met kleine grafische of audiofouten en is speelbaar van begin tot eind.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
@@ -5676,17 +5932,17 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
<source>Game loads, but is unable to progress past the Start Screen.</source>
- <translation type="unfinished"/>
+ <translation>Het spel wordt geladen, maar komt niet verder dan het startscherm.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="156"/>
<source>Won&apos;t Boot</source>
- <translation>Start Niet</translation>
+ <translation>Start niet op</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="156"/>
<source>The game crashes when attempting to startup.</source>
- <translation>De Game crasht wanneer hij probeert op te starten.</translation>
+ <translation>Het spel loopt vast bij het opstarten.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="157"/>
@@ -5696,15 +5952,15 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="157"/>
<source>The game has not yet been tested.</source>
- <translation>Deze Game is nog niet getest.</translation>
+ <translation>Het spel is nog niet getest.</translation>
</message>
</context>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
- <translation>Dubbel-klik om een ​​nieuwe map toe te voegen aan de lijst met games</translation>
+ <translation>Dubbel-klik om een ​​nieuwe map toe te voegen aan de spellijst</translation>
</message>
</context>
<context>
@@ -5712,17 +5968,17 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message numerus="yes">
<location filename="../../src/yuzu/game_list.cpp" line="86"/>
<source>%1 of %n result(s)</source>
- <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
+ <translation><numerusform>%1 van %n resultaat(en)</numerusform><numerusform>%1 van %n resultaat(en)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
- <translation>Voer patroon in om te filteren:</translation>
+ <translation>Voer patroon in om te filteren</translation>
</message>
</context>
<context>
@@ -5730,22 +5986,22 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="14"/>
<source>Create Room</source>
- <translation type="unfinished"/>
+ <translation>Maak Kamer</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="37"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Kamernaam</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="51"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Voorkeursspel</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="61"/>
<source>Max Players</source>
- <translation type="unfinished"/>
+ <translation>Maximum Spelers</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="91"/>
@@ -5755,42 +6011,42 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="101"/>
<source>(Leave blank for open game)</source>
- <translation type="unfinished"/>
+ <translation>(Laat leeg voor open spel)</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="118"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Wachtwoord</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="125"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Poort</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="139"/>
<source>Room Description</source>
- <translation>Kamer Beschrijving</translation>
+ <translation>Kamerbeschrijving</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
<source>Load Previous Ban List</source>
- <translation type="unfinished"/>
+ <translation>Laad Vorige Banlijst</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="184"/>
<source>Public</source>
- <translation type="unfinished"/>
+ <translation>Openbaar</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="189"/>
<source>Unlisted</source>
- <translation type="unfinished"/>
+ <translation>Niet Vermeld</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="197"/>
<source>Host Room</source>
- <translation type="unfinished"/>
+ <translation>Hostkamer</translation>
</message>
</context>
<context>
@@ -5798,24 +6054,24 @@ Wilt u dit omzeilen en toch afsluiten?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.cpp" line="182"/>
<source>Error</source>
- <translation type="unfinished"/>
+ <translation>Fout</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.cpp" line="183"/>
<source>Failed to announce the room to the public lobby. In order to host a room publicly, you must have a valid yuzu account configured in Emulation -&gt; Configure -&gt; Web. If you do not want to publish a room in the public lobby, then select Unlisted instead.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Het is niet gelukt om de kamer aan te kondigen in de openbare lobby. Om een kamer openbaar te hosten, moet je een geldige yuzu-account geconfigureerd hebben in Emulatie -&gt; Configuratie -&gt; Web. Als je geen kamer wilt publiceren in de openbare lobby, selecteer dan in plaats daarvan Niet Vermeld.
+Debug-bericht: </translation>
</message>
</context>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
- <translation type="unfinished"/>
+ <translation>Audio Dempen/Dempen Opheffen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5837,113 +6093,114 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
- <translation type="unfinished"/>
+ <translation>Hoofdvenster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
- <translation type="unfinished"/>
+ <translation>Audiovolume Omlaag</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
- <translation type="unfinished"/>
+ <translation>Audiovolume Omhoog</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
- <translation>Screenshot Vastleggen</translation>
+ <translation>Leg Schermafbeelding Vast</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
- <translation type="unfinished"/>
+ <translation>Wijzig Aanpassingsfilter</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
- <translation type="unfinished"/>
+ <translation>Wijzig Docked-modus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
- <translation type="unfinished"/>
+ <translation>Wijzig GPU-nauwkeurigheid</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
- <translation type="unfinished"/>
+ <translation>Emulatie Doorgaan/Onderbreken</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
- <translation type="unfinished"/>
+ <translation>Volledig Scherm Afsluiten</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
- <translation type="unfinished"/>
+ <translation>yuzu afsluiten</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Volledig Scherm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Laad Bestand</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Laad/Verwijder Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
- <translation type="unfinished"/>
+ <translation>Herstart Emulatie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
- <translation type="unfinished"/>
+ <translation>Stop Emulatie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
- <translation type="unfinished"/>
+ <translation>TAS Opname</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
- <translation type="unfinished"/>
+ <translation>TAS Reset</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
- <translation type="unfinished"/>
+ <translation>TAS Start/Stop</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
- <translation type="unfinished"/>
+ <translation>Schakel Filterbalk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
- <translation type="unfinished"/>
+ <translation>Schakel Frameratelimiet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
- <translation type="unfinished"/>
+ <translation>Schakel Muispanning</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
- <translation type="unfinished"/>
+ <translation>Schakel Statusbalk</translation>
</message>
</context>
<context>
@@ -5951,20 +6208,20 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/install_dialog.cpp" line="29"/>
<source>Please confirm these are the files you wish to install.</source>
- <translation type="unfinished"/>
+ <translation>Bevestig dat dit de bestanden zijn die je wilt installeren.</translation>
</message>
<message>
<location filename="../../src/yuzu/install_dialog.cpp" line="32"/>
<source>Installing an Update or DLC will overwrite the previously installed one.</source>
- <translation type="unfinished"/>
+ <translation>Het installeren van een Update of DLC overschrijft de eerder geïnstalleerde.</translation>
</message>
<message>
<location filename="../../src/yuzu/install_dialog.cpp" line="36"/>
<source>Install</source>
- <translation>Installeren</translation>
+ <translation>Installeer</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Installeer Bestanden naar NAND</translation>
</message>
@@ -5972,10 +6229,11 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
- <translation type="unfinished"/>
+ <translation>De tekst kan geen van de volgende tekens bevatten:
+%1</translation>
</message>
</context>
<context>
@@ -5983,12 +6241,12 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/loading_screen.ui" line="84"/>
<source>Loading Shaders 387 / 1628</source>
- <translation>Shaders Laden 387 / 1628</translation>
+ <translation>Shaders Laden 387 / 1628</translation>
</message>
<message>
<location filename="../../src/yuzu/loading_screen.ui" line="121"/>
<source>Loading Shaders %v out of %m</source>
- <translation>%v Shaders Laden van de %m</translation>
+ <translation>Shaders Laden %v van %m</translation>
</message>
<message>
<location filename="../../src/yuzu/loading_screen.ui" line="135"/>
@@ -6003,7 +6261,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/loading_screen.cpp" line="84"/>
<source>Loading Shaders %1 / %2</source>
- <translation>Shaders Laden %1 / %2</translation>
+ <translation>Shaders Laden %1 / %2</translation>
</message>
<message>
<location filename="../../src/yuzu/loading_screen.cpp" line="85"/>
@@ -6021,78 +6279,83 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="14"/>
<source>Public Room Browser</source>
- <translation type="unfinished"/>
+ <translation>Browser voor Openbare Ruimten</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="32"/>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="39"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Gebruikersnaam</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="59"/>
<source>Filters</source>
- <translation type="unfinished"/>
+ <translation>Filters</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="66"/>
<source>Search</source>
- <translation type="unfinished"/>
+ <translation>Zoek</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="76"/>
<source>Games I Own</source>
- <translation type="unfinished"/>
+ <translation>Spellen die ik bezit</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Verberg Lege Kamers</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
- <translation type="unfinished"/>
+ <translation>Verberg Volle Kamers</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
- <translation type="unfinished"/>
+ <translation>Vernieuw Lobby</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
- <translation type="unfinished"/>
+ <translation>Wachtwoord vereist om toegang te krijgen</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
- <translation type="unfinished"/>
+ <translation>Wachtwoord:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Spelers</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Kamernaam</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Voorkeursspel</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
- <translation type="unfinished"/>
+ <translation>Host</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Vernieuwen</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
- <translation type="unfinished"/>
+ <translation>Vernieuw Lijst</translation>
</message>
</context>
<context>
@@ -6110,7 +6373,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="48"/>
<source>&amp;Recent Files</source>
- <translation type="unfinished"/>
+ <translation>&amp;Recente Bestanden</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="66"/>
@@ -6125,57 +6388,57 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="81"/>
<source>&amp;Reset Window Size</source>
- <translation type="unfinished"/>
+ <translation>&amp;Herstel Venstergrootte</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="86"/>
<source>&amp;Debugging</source>
- <translation type="unfinished"/>
+ <translation>&amp;Debuggen</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="91"/>
<source>Reset Window Size to &amp;720p</source>
- <translation type="unfinished"/>
+ <translation>Herstel Venstergrootte naar &amp;720p</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="94"/>
<source>Reset Window Size to 720p</source>
- <translation type="unfinished"/>
+ <translation>Herstel Venstergrootte naar 720p</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="99"/>
<source>Reset Window Size to &amp;900p</source>
- <translation type="unfinished"/>
+ <translation>Herstel Venstergrootte naar &amp;900p</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="102"/>
<source>Reset Window Size to 900p</source>
- <translation type="unfinished"/>
+ <translation>Herstel Venstergrootte naar 900p</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="107"/>
<source>Reset Window Size to &amp;1080p</source>
- <translation type="unfinished"/>
+ <translation>Herstel Venstergrootte naar &amp;1080p</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="110"/>
<source>Reset Window Size to 1080p</source>
- <translation type="unfinished"/>
+ <translation>Herstel Venstergrootte naar 1080p</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="127"/>
<source>&amp;Multiplayer</source>
- <translation type="unfinished"/>
+ <translation>&amp;Multiplayer</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="138"/>
<source>&amp;Tools</source>
- <translation type="unfinished"/>
+ <translation>&amp;Tools</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="142"/>
<source>&amp;TAS</source>
- <translation type="unfinished"/>
+ <translation>&amp;TAS</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="157"/>
@@ -6185,17 +6448,17 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="178"/>
<source>&amp;Install Files to NAND...</source>
- <translation type="unfinished"/>
+ <translation>&amp;Installeer Bestanden naar NAND...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="183"/>
<source>L&amp;oad File...</source>
- <translation type="unfinished"/>
+ <translation>L&amp;aad Bestand...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="188"/>
<source>Load &amp;Folder...</source>
- <translation type="unfinished"/>
+ <translation>Laad &amp;Map...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="193"/>
@@ -6205,7 +6468,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="201"/>
<source>&amp;Pause</source>
- <translation>&amp;Pauzeren</translation>
+ <translation>&amp;Onderbreken</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="209"/>
@@ -6215,122 +6478,122 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="214"/>
<source>&amp;Reinitialize keys...</source>
- <translation type="unfinished"/>
+ <translation>&amp;Herinitialiseer toetsen...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="219"/>
<source>&amp;About yuzu</source>
- <translation type="unfinished"/>
+ <translation>&amp;Over yuzu</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="227"/>
<source>Single &amp;Window Mode</source>
- <translation type="unfinished"/>
+ <translation>Modus Enkel Venster</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="232"/>
<source>Con&amp;figure...</source>
- <translation type="unfinished"/>
+ <translation>Con&amp;figureer...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="243"/>
<source>Display D&amp;ock Widget Headers</source>
- <translation type="unfinished"/>
+ <translation>Toon Dock Widget Kopteksten</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="251"/>
<source>Show &amp;Filter Bar</source>
- <translation type="unfinished"/>
+ <translation>Toon &amp;Filterbalk</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="259"/>
<source>Show &amp;Status Bar</source>
- <translation type="unfinished"/>
+ <translation>Toon &amp;Statusbalk</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="262"/>
<source>Show Status Bar</source>
- <translation>Laat status balk zien</translation>
+ <translation>Toon Statusbalk</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="270"/>
<source>&amp;Browse Public Game Lobby</source>
- <translation type="unfinished"/>
+ <translation>&amp;Bladeren door Openbare Spellobby</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="278"/>
<source>&amp;Create Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Maak Kamer</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="286"/>
<source>&amp;Leave Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Verlaat Kamer</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="291"/>
<source>&amp;Direct Connect to Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Directe Verbinding met Kamer</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="299"/>
<source>&amp;Show Current Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Toon Huidige Kamer</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="307"/>
<source>F&amp;ullscreen</source>
- <translation type="unfinished"/>
+ <translation>Volledig Scherm</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="315"/>
<source>&amp;Restart</source>
- <translation type="unfinished"/>
+ <translation>&amp;Herstart</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="323"/>
<source>Load/Remove &amp;Amiibo...</source>
- <translation type="unfinished"/>
+ <translation>Laad/Verwijder &amp;Amiibo...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="331"/>
<source>&amp;Report Compatibility</source>
- <translation type="unfinished"/>
+ <translation>&amp;Rapporteer Compatibiliteit</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="339"/>
<source>Open &amp;Mods Page</source>
- <translation type="unfinished"/>
+ <translation>Open &amp;Mod-pagina</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="344"/>
<source>Open &amp;Quickstart Guide</source>
- <translation type="unfinished"/>
+ <translation>Open &amp;Snelstartgids</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="349"/>
<source>&amp;FAQ</source>
- <translation type="unfinished"/>
+ <translation>&amp;FAQ</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="354"/>
<source>Open &amp;yuzu Folder</source>
- <translation type="unfinished"/>
+ <translation>Open &amp;yuzu-map</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="362"/>
<source>&amp;Capture Screenshot</source>
- <translation type="unfinished"/>
+ <translation>&amp;Leg Schermafbeelding Vast</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="367"/>
<source>&amp;Configure TAS...</source>
- <translation type="unfinished"/>
+ <translation>&amp;Configureer TAS...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="378"/>
<source>Configure C&amp;urrent Game...</source>
- <translation type="unfinished"/>
+ <translation>Configureer Huidig Spel...</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="389"/>
@@ -6340,12 +6603,12 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="397"/>
<source>&amp;Reset</source>
- <translation type="unfinished"/>
+ <translation>&amp;Herstel</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="405"/>
<source>R&amp;ecord</source>
- <translation type="unfinished"/>
+ <translation>Opnemen</translation>
</message>
</context>
<context>
@@ -6353,7 +6616,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/debugger/profiler.cpp" line="50"/>
<source>&amp;MicroProfile</source>
- <translation type="unfinished"/>
+ <translation>&amp;MicroProfile</translation>
</message>
</context>
<context>
@@ -6361,48 +6624,48 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="6"/>
<source>Moderation</source>
- <translation type="unfinished"/>
+ <translation>Moderatie</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="20"/>
<source>Ban List</source>
- <translation type="unfinished"/>
+ <translation>Banlijst</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="41"/>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="73"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Vernieuwen</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="51"/>
<source>Unban</source>
- <translation type="unfinished"/>
+ <translation>Ontban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="40"/>
<source>Subject</source>
- <translation type="unfinished"/>
+ <translation>Onderwerp</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="41"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Soort</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="83"/>
<source>Forum Username</source>
- <translation type="unfinished"/>
+ <translation>Forum Gebruikersnaam</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="88"/>
<source>IP Address</source>
- <translation type="unfinished"/>
+ <translation>IP-adres</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="95"/>
<source>Refresh</source>
- <translation type="unfinished"/>
+ <translation>Vernieuw</translation>
</message>
</context>
<context>
@@ -6410,17 +6673,17 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="90"/>
<source>Current connection status</source>
- <translation type="unfinished"/>
+ <translation>Huidige verbindingsstatus</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="117"/>
<source>Not Connected. Click here to find a room!</source>
- <translation type="unfinished"/>
+ <translation>Niet Verbonden. Klik hier om een kamer te vinden!</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="123"/>
<source>Not Connected</source>
- <translation type="unfinished"/>
+ <translation>Niet Verbonden</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="129"/>
@@ -6430,18 +6693,19 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="136"/>
<source>New Messages Received</source>
- <translation type="unfinished"/>
+ <translation>Nieuwe Berichten Ontvangen</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="207"/>
<source>Error</source>
- <translation type="unfinished"/>
+ <translation>Fout</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="208"/>
<source>Failed to update the room information. Please check your Internet connection and try hosting the room again.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Het is niet gelukt om de kamerinformatie bij te werken. Controleer je internetverbinding en probeer de kamer opnieuw te hosten.
+Debug-bericht: </translation>
</message>
</context>
<context>
@@ -6449,135 +6713,138 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="11"/>
<source>Username is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Gebruikersnaam is niet geldig. Moet bestaan uit 4 tot 20 alfanumerieke tekens.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="13"/>
<source>Room name is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Kamernaam is niet geldig. Moet bestaan uit 4 tot 20 alfanumerieke tekens.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="15"/>
<source>Username is already in use or not valid. Please choose another.</source>
- <translation type="unfinished"/>
+ <translation>Gebruikersnaam is al in gebruik of niet geldig. Kies een andere.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="17"/>
<source>IP is not a valid IPv4 address.</source>
- <translation type="unfinished"/>
+ <translation>IP is geen geldig IPv4-adres.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="19"/>
<source>Port must be a number between 0 to 65535.</source>
- <translation type="unfinished"/>
+ <translation>De poort moet een getal zijn tussen 0 en 65535.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="20"/>
<source>You must choose a Preferred Game to host a room. If you do not have any games in your game list yet, add a game folder by clicking on the plus icon in the game list.</source>
- <translation type="unfinished"/>
+ <translation>Je moet een Voorkeursspel kiezen om een kamer te hosten. Als je nog geen spellen in je spellenlijst hebt, voeg dan een spellenmap toe door op het plus-icoon in de spellenlijst te klikken.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="24"/>
<source>Unable to find an internet connection. Check your internet settings.</source>
- <translation type="unfinished"/>
+ <translation>Kan geen internetverbinding vinden. Controleer je Internetinstellingen.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="26"/>
<source>Unable to connect to the host. Verify that the connection settings are correct. If you still cannot connect, contact the room host and verify that the host is properly configured with the external port forwarded.</source>
- <translation type="unfinished"/>
+ <translation>Kan geen verbinding maken met de host. Controleer of de verbindingsinstellingen correct zijn. Als je nog steeds geen verbinding kunt maken, neem dan contact op met de ruimtehost en controleer of de host correct is geconfigureerd met de externe poort doorgestuurd.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="30"/>
<source>Unable to connect to the room because it is already full.</source>
- <translation type="unfinished"/>
+ <translation>Kan geen verbinding maken met de kamer omdat deze al vol is.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="32"/>
<source>Creating a room failed. Please retry. Restarting yuzu might be necessary.</source>
- <translation type="unfinished"/>
+ <translation>Het aanmaken van een kamer is mislukt. Probeer het opnieuw. Het herstarten van yuzu kan nodig zijn.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="34"/>
<source>The host of the room has banned you. Speak with the host to unban you or try a different room.</source>
- <translation type="unfinished"/>
+ <translation>De host van de kamer heeft je verbannen. Praat met de host om je ban op te heffen of probeer een andere kamer.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="37"/>
<source>Version mismatch! Please update to the latest version of yuzu. If the problem persists, contact the room host and ask them to update the server.</source>
- <translation type="unfinished"/>
+ <translation>Versie komt niet overeen! Update naar de laatste versie van yuzu. Als het probleem aanhoudt, neem dan contact op met de room host en vraag hen om de server bij te werken.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="39"/>
<source>Incorrect password.</source>
- <translation type="unfinished"/>
+ <translation>Verkeerd wachtwoord.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="40"/>
<source>An unknown error occurred. If this error continues to occur, please open an issue</source>
- <translation type="unfinished"/>
+ <translation>Er is een onbekende fout opgetreden. Als deze fout zich blijft voordoen, open dan een ticket</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="43"/>
<source>Connection to room lost. Try to reconnect.</source>
- <translation type="unfinished"/>
+ <translation>Verbinding met kamer verloren. Probeer opnieuw verbinding te maken.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="45"/>
<source>You have been kicked by the room host.</source>
- <translation type="unfinished"/>
+ <translation>Je bent gekickt door de kamerhost.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="47"/>
<source>IP address is already in use. Please choose another.</source>
- <translation type="unfinished"/>
+ <translation>Het IP-adres is al in gebruik. Kies een ander.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="49"/>
<source>You do not have enough permission to perform this action.</source>
- <translation type="unfinished"/>
+ <translation>Je hebt niet genoeg rechten om deze actie uit te voeren.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="50"/>
<source>The user you are trying to kick/ban could not be found.
They may have left the room.</source>
- <translation type="unfinished"/>
+ <translation>De gebruiker die je probeert te kicken/bannen kon niet gevonden worden.
+Ze kunnen de ruimte hebben verlaten.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="52"/>
<source>No valid network interface is selected.
Please go to Configure -&gt; System -&gt; Network and make a selection.</source>
- <translation type="unfinished"/>
+ <translation>Er is geen geldige netwerkinterface geselecteerd.
+Ga naar Configuratie -&gt; Systeem -&gt; Netwerk en maak een selectie.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="68"/>
<source>Game already running</source>
- <translation type="unfinished"/>
+ <translation>Het spel draait al</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="69"/>
<source>Joining a room when the game is already running is discouraged and can cause the room feature not to work correctly.
Proceed anyway?</source>
- <translation type="unfinished"/>
+ <translation>Het wordt afgeraden om aan een kamer deel te nemen als het spel al bezig is en kan ervoor zorgen dat de kamerfunctie niet correct werkt.
+Toch doorgaan?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="75"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Verlaat Kamer</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="76"/>
<source>You are about to close the room. Any network connections will be closed.</source>
- <translation type="unfinished"/>
+ <translation>Je staat op het punt de kamer te sluiten. Alle netwerkverbindingen worden afgesloten.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="81"/>
<source>Disconnect</source>
- <translation type="unfinished"/>
+ <translation>Verbinding Verbreken</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="82"/>
<source>You are about to leave the room. Any network connections will be closed.</source>
- <translation type="unfinished"/>
+ <translation>Je staat op het punt de kamer te verlaten. Alle netwerkverbindingen worden afgesloten.</translation>
</message>
</context>
<context>
@@ -6585,7 +6852,7 @@ Proceed anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="63"/>
<source>Error</source>
- <translation type="unfinished"/>
+ <translation>Fout</translation>
</message>
</context>
<context>
@@ -6614,15 +6881,19 @@ Proceed anyway?</source>
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:18pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:18pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
</context>
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
- <translation type="unfinished"/>
+ <translation>START/ONDERBREKEN</translation>
</message>
</context>
<context>
@@ -6630,70 +6901,70 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/lobby_p.h" line="236"/>
<source>%1 is not playing a game</source>
- <translation type="unfinished"/>
+ <translation>%1 speelt geen spel</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby_p.h" line="238"/>
<source>%1 is playing %2</source>
- <translation type="unfinished"/>
+ <translation>%1 speelt %2</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="142"/>
<source>Not playing a game</source>
- <translation type="unfinished"/>
+ <translation>Geen spel aan het spelen</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="244"/>
<source>Installed SD Titles</source>
- <translation>Geïnstalleerde SD Titels</translation>
+ <translation>Geïnstalleerde SD-titels</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="252"/>
<source>Installed NAND Titles</source>
- <translation>Geïnstalleerde NAND Titels</translation>
+ <translation>Geïnstalleerde NAND-titels</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="260"/>
<source>System Titles</source>
- <translation>Systeem Titels</translation>
+ <translation>Systeemtitels</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="303"/>
<source>Add New Game Directory</source>
- <translation>Voeg Nieuwe Game Map Toe</translation>
+ <translation>Voeg Nieuwe Spelmap Toe</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="326"/>
<source>Favorites</source>
- <translation type="unfinished"/>
+ <translation>Favorieten</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[niet aangegeven]</translation>
</message>
@@ -6704,14 +6975,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Axis %1%2</translation>
</message>
@@ -6722,264 +6993,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[onbekend]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
- <translation>Links:</translation>
+ <translation>Links</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
- <translation>Rechts:</translation>
+ <translation>Rechts</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
- <translation>Beneden:</translation>
+ <translation>Omlaag</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
- <translation>Boven:</translation>
+ <translation>Omhoog</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
- <translation>R:</translation>
+ <translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
- <translation type="unfinished"/>
+ <translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
- <translation type="unfinished"/>
+ <translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
- <translation type="unfinished"/>
+ <translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
- <translation type="unfinished"/>
+ <translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
- <translation type="unfinished"/>
+ <translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
- <translation type="unfinished"/>
+ <translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
- <translation type="unfinished"/>
+ <translation>Cirkel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
- <translation type="unfinished"/>
+ <translation>Kruis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
- <translation type="unfinished"/>
+ <translation>Vierkant</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
- <translation type="unfinished"/>
+ <translation>Driehoek</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
- <translation type="unfinished"/>
+ <translation>Deel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
- <translation type="unfinished"/>
+ <translation>Opties</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
- <translation type="unfinished"/>
+ <translation>[ongedefinieerd]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
- <translation type="unfinished"/>
+ <translation>[ongeldig]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
- <translation type="unfinished"/>
+ <translation>%1%2Hat %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
- <translation type="unfinished"/>
+ <translation>%1%2As %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
- <translation type="unfinished"/>
+ <translation>%1%2As %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
- <translation type="unfinished"/>
+ <translation>%1%2Beweging %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
- <translation type="unfinished"/>
+ <translation>%1%2Knop %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[ongebruikt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Stick L</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Stick R</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Plus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Min</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
- <translation>Home:</translation>
+ <translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Vastleggen</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Touch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
- <translation type="unfinished"/>
+ <translation>Wiel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
- <translation type="unfinished"/>
+ <translation>Achteruit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
- <translation type="unfinished"/>
+ <translation>Vooruit</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
- <translation type="unfinished"/>
+ <translation>Taak</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
- <translation type="unfinished"/>
+ <translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3Hat %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3As %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Knop %4</translation>
</message>
</context>
<context>
@@ -6987,22 +7316,22 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="14"/>
<source>Amiibo Settings</source>
- <translation type="unfinished"/>
+ <translation>Amiibo-instellingen</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="169"/>
<source>Amiibo Info</source>
- <translation type="unfinished"/>
+ <translation>Amiibo-info</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="177"/>
<source>Series</source>
- <translation type="unfinished"/>
+ <translation>Serie</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="197"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Soort</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="217"/>
@@ -7012,52 +7341,52 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="242"/>
<source>Amiibo Data</source>
- <translation type="unfinished"/>
+ <translation>Amiibo-gegevens</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="250"/>
<source>Custom Name</source>
- <translation type="unfinished"/>
+ <translation>Aangepaste Naam</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="270"/>
<source>Owner</source>
- <translation type="unfinished"/>
+ <translation>Eigenaar</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="290"/>
<source>Creation Date</source>
- <translation type="unfinished"/>
+ <translation>Aanmaakdatum</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="307"/>
<source>dd/MM/yyyy</source>
- <translation type="unfinished"/>
+ <translation>dd/MM/yyyy</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="314"/>
<source>Modification Date</source>
- <translation type="unfinished"/>
+ <translation>Modificatiedatum</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="331"/>
<source>dd/MM/yyyy </source>
- <translation type="unfinished"/>
+ <translation>dd/MM/yyyy </translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="349"/>
<source>Game Data</source>
- <translation type="unfinished"/>
+ <translation>Spelgegevens</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="355"/>
<source>Game Id</source>
- <translation type="unfinished"/>
+ <translation>Spel-ID</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="384"/>
<source>Mount Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Gebruik Amiibo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="390"/>
@@ -7067,32 +7396,32 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="413"/>
<source>File Path</source>
- <translation type="unfinished"/>
+ <translation>Bestandspad</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="191"/>
<source>No game data present</source>
- <translation type="unfinished"/>
+ <translation>Geen spelgegevens aanwezig</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="231"/>
<source>The following amiibo data will be formatted:</source>
- <translation type="unfinished"/>
+ <translation>De volgende amiibo-gegevens worden zo geformatteerd:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="234"/>
<source>The following game data will removed:</source>
- <translation type="unfinished"/>
+ <translation>De volgende spelgegevens worden verwijderd:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="237"/>
<source>Set nickname and owner:</source>
- <translation type="unfinished"/>
+ <translation>Stel gebruikersnaam en eigenaar in:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="240"/>
<source>Do you wish to restore this amiibo?</source>
- <translation type="unfinished"/>
+ <translation>Wil je deze amiibo herstellen?</translation>
</message>
</context>
<context>
@@ -7100,27 +7429,27 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="14"/>
<source>Controller Applet</source>
- <translation type="unfinished"/>
+ <translation>Controller Applet</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="129"/>
<source>Supported Controller Types:</source>
- <translation type="unfinished"/>
+ <translation>Ondersteunde Controller-typen:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="282"/>
<source>Players:</source>
- <translation type="unfinished"/>
+ <translation>Spelers:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="300"/>
<source>1 - 8</source>
- <translation type="unfinished"/>
+ <translation>1 - 8</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="418"/>
<source>P4</source>
- <translation type="unfinished"/>
+ <translation>P4</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="514"/>
@@ -7184,59 +7513,59 @@ p, li { white-space: pre-wrap; }
<location filename="../../src/yuzu/applets/qt_controller.ui" line="1881"/>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="2078"/>
<source>Use Current Config</source>
- <translation type="unfinished"/>
+ <translation>Gebruik Huidige Configuratie</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="615"/>
<source>P2</source>
- <translation type="unfinished"/>
+ <translation>P2</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="812"/>
<source>P1</source>
- <translation type="unfinished"/>
+ <translation>P1</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="932"/>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="2303"/>
<location filename="../../src/yuzu/applets/qt_controller.cpp" line="430"/>
<source>Handheld</source>
- <translation>Mobiel</translation>
+ <translation>Handheld</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="1126"/>
<source>P3</source>
- <translation type="unfinished"/>
+ <translation>P3</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="1363"/>
<source>P7</source>
- <translation type="unfinished"/>
+ <translation>P7</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="1560"/>
<source>P8</source>
- <translation type="unfinished"/>
+ <translation>P8</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="1757"/>
<source>P5</source>
- <translation type="unfinished"/>
+ <translation>P5</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="1958"/>
<source>P6</source>
- <translation type="unfinished"/>
+ <translation>P6</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="2272"/>
<source>Console Mode</source>
- <translation>Console ID:</translation>
+ <translation>Console-ID:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="2293"/>
<source>Docked</source>
- <translation>GeDocked</translation>
+ <translation>Docked</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="2313"/>
@@ -7262,7 +7591,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="2432"/>
<source>Create</source>
- <translation type="unfinished"/>
+ <translation>Maak</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.ui" line="2467"/>
@@ -7317,63 +7646,69 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_controller.cpp" line="434"/>
<source>GameCube Controller</source>
- <translation>GameCube Controller</translation>
+ <translation>GameCube-controller</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.cpp" line="443"/>
<source>Poke Ball Plus</source>
- <translation type="unfinished"/>
+ <translation>Poke Ball Plus</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.cpp" line="447"/>
<source>NES Controller</source>
- <translation type="unfinished"/>
+ <translation>NES-controller</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.cpp" line="451"/>
<source>SNES Controller</source>
- <translation type="unfinished"/>
+ <translation>SNES-controller</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.cpp" line="455"/>
<source>N64 Controller</source>
- <translation type="unfinished"/>
+ <translation>N64-controller</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_controller.cpp" line="459"/>
<source>Sega Genesis</source>
- <translation type="unfinished"/>
+ <translation>Sega Genesis</translation>
</message>
</context>
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
- <translation type="unfinished"/>
+ <translation>Foutcode: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
- <translation type="unfinished"/>
+ <translation>Er is een fout opgetreden.
+Probeer het opnieuw of neem contact op met de software-ontwikkelaar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
- <translation type="unfinished"/>
+ <translation>Er is een fout opgetreden op %1 bij %2.
+Probeer het opnieuw of neem contact op met de software-ontwikkelaar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
%2</source>
- <translation type="unfinished"/>
+ <translation>Er is een fout opgetreden.
+
+%1
+
+%2</translation>
</message>
</context>
<context>
@@ -7387,19 +7722,80 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Selecteer een gebruiker:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Gebruikers</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Profielmaker</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
- <translation>Profiel keuzeschakelaar</translation>
+ <translation>Profielkiezer</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Profielicoon-editor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Profielnaam-editor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>Wie krijgt de punten?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>Wie gebruikt de Nintendo eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>Wie doet deze aankoop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>Wie post er?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Selecteer een gebruiker om te koppelen aan een Nintendo-account.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>Instellingen wijzigen voor welke gebruiker?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>Formatteer gegevens voor welke gebruiker?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>Welke gebruiker wordt overgezet naar een andere console?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>Gegevens verzenden voor welke gebruiker?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Selecteer een gebruiker:</translation>
</message>
</context>
<context>
@@ -7407,12 +7803,12 @@ Please try again or contact the developer of the software.</source>
<message>
<location filename="../../src/yuzu/applets/qt_software_keyboard.ui" line="14"/>
<source>Software Keyboard</source>
- <translation>Software Toetsenbord</translation>
+ <translation>Softwaretoetsenbord</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_software_keyboard.ui" line="199"/>
<source>Enter Text</source>
- <translation type="unfinished"/>
+ <translation>Voer Tekst In</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_software_keyboard.ui" line="479"/>
@@ -7421,7 +7817,11 @@ Please try again or contact the developer of the software.</source>
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:26pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:26pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_software_keyboard.cpp" line="403"/>
@@ -7440,188 +7840,147 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/util/sequence_dialog/sequence_dialog.cpp" line="10"/>
<source>Enter a hotkey</source>
- <translation>Voer een hotkey in</translation>
+ <translation>Voer een sneltoets in</translation>
</message>
</context>
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Call stack</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>wachten op mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>heeft wachtende: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>eigenaar handvat: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>wachten op alle objecten</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>wachten op een van de volgende objecten</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
- <translation>wachtend door geen draad</translation>
+ <translation>wachtend door geen thread</translation>
</message>
</context>
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>uitvoerbaar</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
- <translation>gepauzeerd</translation>
+ <translation>onderbroken</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>slapen</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
- <translation>wachten op IPC antwoord</translation>
+ <translation>wachten op IPC-antwoord</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>wachten op objecten</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>wachten op conditie variabele</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>wachten op adres arbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
- <translation type="unfinished"/>
+ <translation>wachtend op hervatten onderbreking</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>aan het wachten</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
- <translation>geinitialiseerd</translation>
+ <translation>geïnitialiseerd</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>beëindigd</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>onbekend</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideaal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>kern %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>ideale kern = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>affiniteit masker = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
- <translation>draad id = %1</translation>
+ <translation>thread-id = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioriteit = %1(huidige) / %2(normaal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>laatste lopende ticks = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>Niet wachtend op mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
- <translation>Wachtend door draad</translation>
+ <translation>wachtend door thread</translation>
</message>
</context>
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
- <translation type="unfinished"/>
+ <translation>&amp;Wait Tree</translation>
</message>
</context>
</TS> \ No newline at end of file
diff --git a/dist/languages/pl.ts b/dist/languages/pl.ts
index c198f0381..19132bf95 100644
--- a/dist/languages/pl.ts
+++ b/dist/languages/pl.ts
@@ -82,7 +82,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Okno pokoju</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="40"/>
@@ -180,7 +180,7 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="14"/>
<source>Room Window</source>
- <translation type="unfinished"/>
+ <translation>Okno pokoju</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="27"/>
@@ -213,7 +213,7 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
<source>%1 - %2 (%3/%4 members) - connected</source>
- <translation type="unfinished"/>
+ <translation>%1 - %2 (%3/%4 członków) - połączono</translation>
</message>
</context>
<context>
@@ -242,102 +242,102 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Czy gra się uruchamia?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Tak, gra zaczyna pokazywać obraz lub słychać dźwięk.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Nie, gra nie przechodzi przez ekran &quot;Ładowania...&quot;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Tak, gra przechodzi przez intro/ekran główny oraz do rozgrywki.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Nie, gra zawiesza się podczas ładowania lub poruszania się w menu.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Czy gra dociera do rozgrywki?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Tak, gra działa bezawaryjnie.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Nie, gra się zawiesza podczas rozgrywki.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Czy gra działa bezawaryjnie podczas rozgrywki?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Tak, gra może być ukończona bez żadnych obejść.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Nie, w grze nie można przejść do określonego obszaru.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Czy gra jest kompletnie grywalna od początku aż do jej końca?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Poważne, gra posiada poważne problemy graficzne.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Drobne, gra zawiera drobne błędy graficzne.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Żadnych, Wszystko jest renderowane tak jak wygląda na Nintendo Switchu.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Czy gra posiada jakieś błędy graficzne?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Poważne, gra posiada poważne problemy dźwiękowe.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Drobne, gra zawiera drobne błędy dźwiękowe.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Żadnych, Dźwięk jest odtwarzany perfekcyjnie.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any audio glitches / missing effects?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Czy gra posiada jakiekolwiek błędy dźwiękowe/brakujące efekty?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="389"/>
@@ -380,36 +380,61 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Urządzenie Wyjściowe</translation>
+ <source>Output Device:</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Urządzenie Wejściowe</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Użyj globalnej głośności </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Ustaw głośność:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Głośność:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Wyciszaj audio gdy yuzu działa w tle</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -425,12 +450,12 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="26"/>
<source>Select where the image of the emulated camera comes from. It may be a virtual camera or a real camera.</source>
- <translation type="unfinished"/>
+ <translation>Wybierz skąd zdjęcie emulowanej kamery pochodzi. Może być to wirtualna lub prawdziwa kamera. </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="52"/>
<source>Camera Image Source:</source>
- <translation type="unfinished"/>
+ <translation>Źródło zdjęcia kamery:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="71"/>
@@ -440,7 +465,7 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="96"/>
<source>Preview</source>
- <translation type="unfinished"/>
+ <translation>Podgląd</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="108"/>
@@ -450,7 +475,7 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="115"/>
<source>Click to preview</source>
- <translation type="unfinished"/>
+ <translation>Kliknij aby obejrzeć podgląd</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="140"/>
@@ -503,7 +528,7 @@ To zbanuje jego/jej nick na forum, oraz jego/jej adres IP.</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="57"/>
<source>Paranoid (disables most optimizations)</source>
- <translation type="unfinished"/>
+ <translation>Paranoiczne (wyłącza większość optymalizacji)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="68"/>
@@ -592,12 +617,13 @@ Wyłączenie tej opcji może pozwolić grze na zapis lub odczyt pamięci emulato
<source>
&lt;div&gt;This option improves speed by relying only on the semantics of cmpxchg to ensure safety of exclusive access instructions. Please note this may result in deadlocks and other race conditions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ta opcja poprawia szybkość, opierając się wyłącznie na semantyce cmpxchg w celu zapewnienia bezpieczeństwa instrukcji dostępu wyłącznego. Należy pamiętać, że może to spowodować awarie gier.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="166"/>
<source>Ignore global monitor</source>
- <translation type="unfinished"/>
+ <translation>Ignoruj ogólne monitorowanie</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="191"/>
@@ -760,7 +786,7 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="147"/>
<source>Enable Host MMU Emulation (general memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Włącz emulację MMU gościa (ogólne instrukcje pamięci)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="154"/>
@@ -769,12 +795,16 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest exclusive memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all exclusive memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ta optymalizacja przyspiesza wyłączny dostęp do pamięci przez program gościa.
+ &lt;div style=&quot;white-space: nowrap&quot;&gt; Włączenie tej opcji powoduje, że wyłączne odczyty/zapisy pamięci gościa są wykonywane bezpośrednio w pamięci i korzystają z MMU hosta .&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Wyłączenie tej opcji wymusza, aby wszystkie wyłączne dostępy do pamięci korzystały z programowej emulacji MMU.&lt;/div&gt;
+</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="161"/>
<source>Enable Host MMU Emulation (exclusive memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Włącz emulację Host MMU (ekskluzywne instrukcje dotyczące pamięci)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="168"/>
@@ -782,12 +812,14 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up exclusive memory accesses by the guest program.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of fastmem failure of exclusive memory accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ta optymalizacja przyspiesza wyłączny dostęp do pamięci przez program gościa.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Włączenie go zmniejsza narzut związany z awarią fastmem w przypadku wyłącznego dostępu do pamięci.&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="174"/>
<source>Enable recompilation of exclusive memory instructions</source>
- <translation type="unfinished"/>
+ <translation>Włącz rekompilację wyłącznych instrukcji pamięci</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="181"/>
@@ -795,12 +827,15 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ta optymalizacja przyspiesza dostęp do pamięci, umożliwiając pomyślne uzyskanie nieprawidłowego dostępu do pamięci.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Włączenie zmniejsza narzut wszystkich dostępów do pamięci i nie ma wpływu na programy, które nie uzyskują dostępu do nieprawidłowej pamięci.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Włącz rezerwę dla nieprawidłowych dostępów do pamięci</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -813,7 +848,7 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="15"/>
<source>Debugger</source>
- <translation type="unfinished"/>
+ <translation>Debuger</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="23"/>
@@ -903,12 +938,12 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="185"/>
<source>When checked, it will dump all the macro programs of the GPU</source>
- <translation type="unfinished"/>
+ <translation>Kiedy jest zaznaczone, będą zrzucane wszystkie makro programy GPU</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="188"/>
<source>Dump Maxwell Macros</source>
- <translation type="unfinished"/>
+ <translation>Zrzuć Makra Maxwell</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="198"/>
@@ -921,124 +956,134 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
<translation>Wyłącz Makro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Kiedy jest zaznaczone, wyłączane są funkcje makra HLE. Włączenie tego powoduje spadek wydajności w grach.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Wyłącz makra HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Po zaznaczeniu, yuzu będzie rejestrować statystyki dotyczące skompilowanej pamięci podręcznej.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Włącz funkcję Feedbacku Shaderów</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Gdy zaznaczone, używa shaderów bez zmian logicznych pętli</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Wyłącz Zapętlanie sprawdzania bezpieczeństwa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Debugowanie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Włącz Pełne Usługi Raportowania**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Włącz dziennik Dostępu FS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Włącz tę opcję, aby wyświetlić ostatnio wygenerowaną listę poleceń dźwiękowych na konsoli. Wpływa tylko na gry korzystające z renderera dźwięku.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
- <translation type="unfinished"/>
+ <translation>Zrzuć polecenia audio do konsoli**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Utwórz mini zrzut po awarii</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Zaawansowane</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Tryb Kiosk (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Włącz Debugowanie CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Włącz potwierdzenia debugowania</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Włącz Auto-Stub**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
- <translation type="unfinished"/>
+ <translation>Włącz wszystkie Typy Kontrolerów</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Wyłącz Aplet internetowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation type="unfinished"/>
+ <translation>Umożliwia yuzu sprawdzanie działającego środowiska Vulkan podczas uruchamiania programu. Wyłącz to, jeśli powoduje to problemy z zewnętrznymi programami widzącymi yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
- <translation type="unfinished"/>
+ <translation>Przeprowadź sprawdzanie uruchamiania Vulkana</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**To zresetuje się automatycznie po wyłączeniu yuzu.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="35"/>
<source>Restart Required</source>
- <translation type="unfinished"/>
+ <translation>Ponowne uruchomienie jest wymagane</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="36"/>
<source>yuzu is required to restart in order to apply this setting.</source>
- <translation type="unfinished"/>
+ <translation>yuzu wymaga ponownego uruchomienia w przypadku zastosowania tego ustawienia.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>Aplet sieciowy nie został skompilowany</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>Tworzenie mini zrzutów nie zostało skompilowane</translation>
</message>
</context>
<context>
@@ -1086,78 +1131,78 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
<translation>Ustawienia yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Dźwięk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Wyszukiwanie usterek</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>System plików</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Ogólne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafika</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Zaawansowana grafika</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Skróty klawiszowe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Sterowanie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profile</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Sieć</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Lista Gier</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1332,46 +1377,36 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Potwierdź wyjście podczas emulacji</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Pytaj o użytkownika podczas uruchamiania gry</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Wstrzymaj emulację w tle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Wyciszaj audio gdy yuzu działa w tle</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Ukryj mysz przy braku aktywności</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Resetuj wszystkie ustawienia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Spowoduje to zresetowanie wszystkich ustawień i usunięcie wszystkich konfiguracji gier. Nie spowoduje to usunięcia katalogów gier, profili ani profili wejściowych. Kontynuować?</translation>
</message>
@@ -1410,7 +1445,7 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Żadny</translation>
</message>
@@ -1436,216 +1471,269 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Emulacja NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Brak wyjścia wideo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Dekodowanie Wideo przez CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Dekodowanie Wideo przez GPU (Domyślne)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Tryb Pełnoekranowy:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>W oknie (Bezramkowy)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Exclusive Fullscreen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Format obrazu:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Domyślne (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Wymuś 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Wymuś 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
- <translation type="unfinished"/>
+ <translation>Wymuś 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Rozciągnij do Okna</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Rozdzielczość:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EKSPERYMENTALNE]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EKSPERYMENTALNE]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filtr Adaptującego Okna:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Najbliższy Sąsiad</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilinearny</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bikubiczny</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gauss</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Rozdzielczość (Tylko Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Metoda Anty-Aliasingu:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Użyj globalnej ostrości FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Ustaw ostrość FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>Ostrość FSR:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Ustaw globalny kolor tła</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Ustaw kolor tła:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Kolor tła</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Zgromadzone Shadery, tylko NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Eksperymentalne, Tylko Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1670,78 +1758,133 @@ Gdy ta opcja jest włączona, niedopasowanie jest uruchamiane tylko wtedy, gdy d
<translation>Precyzja:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync zapobiega rozwarstwianiu obrazu, ale niektóre karty graficzne mogą działać wolniej używając VSync.
-Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Uruchamia pracę w tle podczas oczekiwania na komendy graficzne aby GPU nie obniżało taktowania.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Wymuś maksymalne zegary (Tylko Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Używaj VSync</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Włącza asynchroniczną kompilację shaderów, co może zmniejszyć zacinanie się shaderów. Ta funkcja jest eksperymentalna.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Użyj asynchronicznego budowania shaderów (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Włącza Szybszy Czas GPU. Ta opcja zmusza większość gier do wyświetlania w swojej najwyższej natywnej rozdzielczości.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Użyj Szybszego Czasu GPU (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Włącza pamięć podręczną strumienia specyficzną dla dostawcy GPU. Ta opcja może znacznie skrócić czas ładowania modułu cieniującego w przypadkach, gdy sterownik Vulkan nie przechowuje wewnętrznie plików pamięci podręcznej strumienia.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Użyj pamięci podręcznej strumienia dla Vulkana</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Filtrowanie anizotropowe:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automatyczne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Domyślne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1774,70 +1917,65 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
<translation>Przywróć domyślne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Akcja</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Skrót klawiszowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Skrót Klawiszowy Kontrolera</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Sprzeczna sekwencja klawiszy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Wprowadzona sekwencja klawiszy jest już przypisana do: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Menu+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[oczekiwanie]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Nieprawidłowe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Przywróć ustawienia domyślne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Wyczyść</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Sprzeczna Sekwencja Przycisków</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>Domyślna sekwencja przycisków już jest przypisana do: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Domyślna sekwencja klawiszy jest już przypisana do: %1</translation>
</message>
@@ -2129,19 +2267,19 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Konfiguruj</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2609"/>
<source>Ring Controller</source>
- <translation type="unfinished"/>
+ <translation>Kontroler Ring</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2623"/>
<source>Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Kamera podczerwieni</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2640"/>
@@ -2155,6 +2293,8 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Należy zrestartować yuzu</translation>
</message>
@@ -2174,22 +2314,42 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
<translation>Nawigacja Kontrolerem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Włącz panoramowanie myszą</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Czułość myszy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Ruch / Dotyk</translation>
</message>
@@ -2209,57 +2369,57 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Profil wejściowy</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 1</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 3</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 4</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 5</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 6</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 7</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>Profil gracza 8</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Użyj globalnej konfiguracji wejściowej</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Profil %1 gracza</translation>
</message>
</context>
<context>
@@ -2301,7 +2461,7 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Lewa gałka</translation>
</message>
@@ -2395,14 +2555,14 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2421,7 +2581,7 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Plus</translation>
</message>
@@ -2434,15 +2594,15 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2499,236 +2659,247 @@ Pozostaw tą funkcję włączoną, jeśli nie widać różnicy w wydajności.</t
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Prawa gałka</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Wyczyść</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[nie ustawione]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Odwróć przycisk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Przycisk Toggle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Odwróć oś</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Ustaw próg</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Wybierz wartość od 0% do 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
- <translation type="unfinished"/>
+ <translation>Przełącz oś</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Ustaw próg gyro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Przypisz Drążek Analogowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Po naciśnięciu OK, najpierw przesuń joystick w poziomie, a następnie w pionie.
Aby odwrócić osie, najpierw przesuń joystick pionowo, a następnie poziomo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
- <translation type="unfinished"/>
+ <translation>Środkowa oś</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Martwa strefa: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Zasięg Modyfikatora: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Para Joyconów</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Lewy Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Prawy Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Handheld</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Kontroler GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Kontroler NES/Pegasus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Kontroler SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Kontroler N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Mega Drive</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Start / Pauza</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Lewa gałka</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-gałka</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Potrząśnij!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[oczekiwanie]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Nowy profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Wpisz nazwę profilu:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Utwórz profil wejściowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Podana nazwa profilu jest nieprawidłowa!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Nie udało się utworzyć profilu wejściowego &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Usuń profil wejściowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Nie udało się usunąć profilu wejściowego &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Załaduj profil wejściowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Nie udało się wczytać profilu wejściowego &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Zapisz profil wejściowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Nie udało się zapisać profilu wejściowego &quot;%1&quot;</translation>
</message>
@@ -2776,7 +2947,7 @@ Aby odwrócić osie, najpierw przesuń joystick pionowo, a następnie poziomo.</
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Konfiguruj</translation>
</message>
@@ -2812,7 +2983,7 @@ Aby odwrócić osie, najpierw przesuń joystick pionowo, a następnie poziomo.</
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Test</translation>
</message>
@@ -2832,77 +3003,77 @@ Aby odwrócić osie, najpierw przesuń joystick pionowo, a następnie poziomo.</
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Dowiedz się więcej&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Port zawiera nieprawidłowe znaki</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Port musi być w zakresie 0-65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>Adres IP nie jest prawidłowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Ten serwer UDP już istnieje</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Nie można dodać więcej niż 8 serwerów</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testowanie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Konfigurowanie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test Udany</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Pomyślnie odebrano dane z serwera.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test nieudany</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Nie można odebrać poprawnych danych z serwera.&lt;br&gt;Sprawdź, czy serwer jest poprawnie skonfigurowany, a adres i port są prawidłowe.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Trwa konfiguracja testu UDP lub kalibracji.&lt;br&gt;Poczekaj na zakończenie.</translation>
</message>
@@ -2983,47 +3154,47 @@ Aby odwrócić osie, najpierw przesuń joystick pionowo, a następnie poziomo.</
<translation>Deweloper</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Dodatki</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Ogólne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafika</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Zaaw. Grafika</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Dźwięk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Profil wejściowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Właściwości</translation>
</message>
@@ -3202,7 +3373,7 @@ Aby odwrócić osie, najpierw przesuń joystick pionowo, a następnie poziomo.</
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="332"/>
<source>Delete this user? All of the user&apos;s save data will be deleted.</source>
- <translation type="unfinished"/>
+ <translation>Czy usunąć tego użytkownika? Wszystkie dane zapisu użytkownika zostaną usunięte.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="344"/>
@@ -3213,7 +3384,8 @@ Aby odwrócić osie, najpierw przesuń joystick pionowo, a następnie poziomo.</
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="360"/>
<source>Name: %1
UUID: %2</source>
- <translation type="unfinished"/>
+ <translation>Nazwa: %1
+UUID: %2</translation>
</message>
</context>
<context>
@@ -3226,24 +3398,24 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="26"/>
<source>If you want to use this controller configure player 1 as right controller and player 2 as dual joycon before starting the game to allow this controller to be detected properly.</source>
- <translation type="unfinished"/>
+ <translation>Jeżeli zamierzasz używać tego kontrolera, skonfiguruj Gracza 1 jako prawy kontroler oraz Gracza 2 jako podwójnego JoyCona przed uruchomieniem gry aby zezwolić temu kontrolerowi na jego poprawne wykrycie.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="123"/>
<source>Pull</source>
- <translation type="unfinished"/>
+ <translation>Ciągnij</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="133"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="172"/>
<source>Push</source>
- <translation type="unfinished"/>
+ <translation>Pchaj</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="206"/>
@@ -3251,33 +3423,90 @@ UUID: %2</source>
<translation>Martwa strefa: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Przywróć domyślne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Wyczyść</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[nie ustawione]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Odwróć oś</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Martwa strefa: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Konfigurowanie</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[oczekiwanie]</translation>
</message>
@@ -3582,8 +3811,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Angielski (English)</translation>
+ <source>American English</source>
+ <translation>Angielski Amerykański</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3683,57 +3912,22 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Indentyfikator konsoli:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Tryb wyjścia dźwięku</translation>
+ <translation>Nazwa urządzenia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Wygeneruj ponownie</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Ustawienia systemu są dostępne tylko wtedy, gdy gra nie jest uruchomiona.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>To zamieni twojego obecnego Switch&apos;a z nowym. Twojego obecnego Switch&apos;a nie będzie można przywrócić. To może wywołać nieoczekiwane problemy w grach. To może nie zadziałać, jeśli używasz nieaktualnej konfiguracji zapisu gry. Kontynuować?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Ostrzeżenie</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Identyfikator konsoli: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Uwaga: &quot;%1&quot; nie jest poprawnym językiem dla regionu &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3802,7 +3996,7 @@ UUID: %2</source>
<translation>Konfiguracja TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Wybierz Ścieżkę Załadowania TAS-a</translation>
</message>
@@ -4042,7 +4236,7 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="82"/>
<source>Show Compatibility List</source>
- <translation type="unfinished"/>
+ <translation>Pokaż listę kompatybilności</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="89"/>
@@ -4052,12 +4246,12 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="96"/>
<source>Show Size Column</source>
- <translation type="unfinished"/>
+ <translation>Pokaż kolumnę rozmiarów</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="103"/>
<source>Show File Types Column</source>
- <translation type="unfinished"/>
+ <translation>Pokaż kolumnę typów plików</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="112"/>
@@ -4241,7 +4435,7 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="118"/>
<source>Web Service configuration can only be changed when a public room isn&apos;t being hosted.</source>
- <translation type="unfinished"/>
+ <translation>Konfigurację usług sieciowych można tylko zmienić kiedy pokój publiczny nie jest hostowany.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="128"/>
@@ -4319,7 +4513,7 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="141"/>
<source>Unverified, please click Verify before saving configuration</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Niezweryfikowany, kliknij proszę przycisk Weryfikacji przed zapisaniem konfiguracji</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="147"/>
@@ -4331,7 +4525,7 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="164"/>
<source>Verified</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Zweryfikowany</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="169"/>
@@ -4358,7 +4552,7 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<translation>Kontroler P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Kontroler P1</translation>
</message>
@@ -4368,45 +4562,40 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<message>
<location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="14"/>
<source>Direct Connect</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>Adres IP</translation>
+ <translation>Bezpośrednie połączenie</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Adres IPv4 hosta&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Port</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Numer portu, na którym nasłuchuje host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Nick</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Hasło</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Połącz</translation>
</message>
@@ -4414,12 +4603,12 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Łączenie</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Połącz</translation>
</message>
@@ -4427,536 +4616,561 @@ Przeciągnij punkty, aby zmienić pozycję, lub kliknij dwukrotnie komórki tabe
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Dane anonimowe są gromadzone&lt;/a&gt; aby ulepszyć yuzu. &lt;br/&gt;&lt;br/&gt;Czy chcesz udostępnić nam swoje dane o użytkowaniu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetria</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
- <translation type="unfinished"/>
+ <translation>Wykryto uszkodzoną instalację Vulkana</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
- <translation type="unfinished"/>
+ <translation>Inicjalizacja Vulkana nie powiodła się podczas uruchamiania.&lt;br&gt;&lt;br&gt;Kliknij&lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;tutaj aby uzyskać instrukcje dotyczące rozwiązania tego problemu&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Ładowanie apletu internetowego...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Wyłącz Aplet internetowy</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>Wyłączanie web appletu może doprowadzić do nieokreślonych zachowań - wyłączyć applet należy jedynie grając w Super Mario 3D All-Stars. Na pewno chcesz wyłączyć web applet?
(Można go ponownie włączyć w ustawieniach debug.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Ilość budowanych shaderów</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>Obecnie wybrany mnożnik rozdzielczości.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Aktualna prędkość emulacji. Wartości większe lub niższe niż 100% wskazują, że emulacja działa szybciej lub wolniej niż Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Ile klatek na sekundę gra aktualnie wyświetla. To będzie się różnić w zależności od gry, od sceny do sceny.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Czas potrzebny do emulacji klatki na sekundę Switcha, nie licząc ograniczania klatek ani v-sync. Dla emulacji pełnej szybkości powinno to wynosić co najwyżej 16,67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Usuń Ostatnie pliki</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Kontynuuj</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pauza</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu jest w trakcie gry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>OSTRZEŻENIE! Nieaktualny format gry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Używasz zdekonstruowanego formatu katalogu ROM dla tej gry, który jest przestarzałym formatem, który został zastąpiony przez inne, takie jak NCA, NAX, XCI lub NSP. W zdekonstruowanych katalogach ROM brakuje ikon, metadanych i obsługi aktualizacji.&lt;br&gt;&lt;br&gt; Aby znaleźć wyjaśnienie różnych formatów Switch obsługiwanych przez yuzu,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt; sprawdź nasze wiki&lt;/a&gt;. Ta wiadomość nie pojawi się ponownie.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Błąd podczas wczytywania ROMu!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Ten format ROMu nie jest wspierany.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Wystąpił błąd podczas inicjowania rdzenia wideo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu napotkał błąd podczas uruchamiania rdzenia wideo. Jest to zwykle spowodowane przestarzałymi sterownikami GPU, w tym zintegrowanymi. Więcej szczegółów znajdziesz w pliku log. Więcej informacji na temat dostępu do log-u można znaleźć na następującej stronie: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Jak przesłać plik log&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Błąd podczas wczytywania ROMu! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Postępuj zgodnie z&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu quickstart guide&lt;/a&gt; aby zrzucić ponownie swoje pliki.&lt;br&gt;Możesz odwołać się do wiki yuzu&lt;/a&gt;lub discord yuzu &lt;/a&gt; po pomoc.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Wystąpił nieznany błąd. Więcej informacji można znaleźć w pliku log.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Zamykanie aplikacji...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Zapis danych</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Dane modów</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Błąd podczas otwarcia folderu %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Folder nie istnieje!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Błąd podczas otwierania przenośnej pamięci podręcznej Shaderów.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Nie udało się stworzyć ścieżki shaderów dla tego tytułu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>Błąd podczas usuwania zawartości</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation type="unfinished"/>
+ <translation>Błąd podczas usuwania aktualizacji</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation type="unfinished"/>
+ <translation>Błąd podczas usuwania dodatków</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>Czy usunąć zainstalowaną zawartość gry?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation type="unfinished"/>
+ <translation>Czy usunąć zainstalowaną aktualizację gry?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
- <translation type="unfinished"/>
+ <translation>Czy usunąć zainstalowane dodatki gry?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Usuń wpis</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Pomyślnie usunięto</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Pomyślnie usunięto zainstalowaną grę.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Gra nie jest zainstalowana w NAND i nie może zostać usunięta.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Pomyślnie usunięto zainstalowaną łatkę.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Brak zainstalowanych łatek dla tego tytułu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Brak zainstalowanych DLC dla tego tytułu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Pomyślnie usunięto %1 zainstalowane DLC.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Usunąć Transferowalne Shadery OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Usunąć Transferowalne Shadery Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Usunąć Wszystkie Transferowalne Shadery?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Usunąć niestandardową konfigurację gry?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Usuń plik</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Błąd podczas usuwania przenośnej pamięci podręcznej Shaderów.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Pamięć podręczna Shaderów dla tego tytułu nie istnieje.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Pomyślnie usunięto przenośną pamięć podręczną Shaderów.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Nie udało się usunąć przenośnej pamięci Shaderów.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Błąd podczas usuwania pamięci podręcznej strumienia sterownika Vulkana</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Błąd podczas usuwania pamięci podręcznej strumienia sterownika.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Błąd podczas usuwania Transferowalnych Shaderów</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Pomyślnie usunięto transferowalne shadery.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Nie udało się usunąć ścieżki transferowalnych shaderów.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Błąd podczas usuwania niestandardowej konfiguracji</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Niestandardowa konfiguracja nie istnieje dla tego tytułu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Pomyślnie usunięto niestandardową konfiguracje gry.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Nie udało się usunąć niestandardowej konfiguracji gry.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Wypakowanie RomFS nieudane!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Wystąpił błąd podczas kopiowania plików RomFS lub użytkownik anulował operację.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Pełny</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Szkielet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Wybierz tryb zrzutu RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Proszę wybrać w jaki sposób chcesz, aby zrzut pliku RomFS został wykonany. &lt;br&gt;Pełna kopia ze wszystkimi plikami do nowego folderu, gdy &lt;br&gt;skielet utworzy tylko strukturę folderu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>Nie ma wystarczająco miejsca w %1 aby wyodrębnić RomFS.
Zwolnij trochę miejsca, albo zmień ścieżkę zrzutu RomFs w Emulacja&gt; Konfiguruj&gt; System&gt; System Plików&gt; Źródło Zrzutu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Wypakowywanie RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Anuluj</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Wypakowanie RomFS zakończone pomyślnie!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Operacja zakończona sukcesem.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Utwórz skrót</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Utworzy to skrót do obecnego AppImage. Może nie działać dobrze po aktualizacji. Kontynuować?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Nie można utworzyć skrótu na pulpicie. Ścieżka &quot;%1&quot; nie istnieje.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Nie można utworzyć skrótu w menu aplikacji. Ścieżka &quot;%1&quot; nie istnieje oraz nie może być utworzona.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Utwórz ikonę</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Nie można utworzyć pliku ikony. Ścieżka &quot;%1&quot; nie istnieje oraz nie może być utworzona.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Włącz %1 z emulatorem yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Nie udało się utworzyć skrótu pod %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Pomyślnie utworzono skrót do %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Błąd podczas otwierania %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Wybierz folder...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Właściwości</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Właściwości tej gry nie mogły zostać załadowane.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Plik wykonywalny Switcha (%1);;Wszystkie pliki (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Załaduj plik...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Otwórz folder wypakowanego ROMu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Wybrano niewłaściwy folder</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Folder wybrany przez ciebie nie zawiera &apos;głownego&apos; pliku.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Instalacyjne pliki Switch&apos;a (*.nca *.nsp *.xci);;Archiwum zawartości Nintendo (*.nca);;Pakiet poddany Nintendo (*.nsp);;Obraz z kartridża NX (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Zainstaluj pliki</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>1 plik został</numerusform><numerusform>%n plików zostało</numerusform><numerusform>%n plików zostało</numerusform><numerusform>%n plików zostało</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Instalowanie pliku &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Wynik instalacji</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Aby uniknąć ewentualnych konfliktów, odradzamy użytkownikom instalowanie gier na NAND.
Proszę, używaj tej funkcji tylko do instalowania łatek i DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>1 nowy plik został zainstalowany
@@ -4966,389 +5180,400 @@ Proszę, używaj tej funkcji tylko do instalowania łatek i DLC.</translation>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>1 plik został nadpisany</numerusform><numerusform>%n plików zostało nadpisane</numerusform><numerusform>%n plików zostało nadpisane</numerusform><numerusform>%n plików zostało nadpisane</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>1 pliku nie udało się zainstalować</numerusform><numerusform>%n plików nie udało się zainstalować</numerusform><numerusform>%n plików nie udało się zainstalować</numerusform><numerusform>%n plików nie udało się zainstalować</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Aplikacja systemowa</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Archiwum systemu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Aktualizacja aplikacji systemowej</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Paczka systemowa (Typ A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Paczka systemowa (Typ B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Gra</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Aktualizacja gry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Dodatek do gry</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Tytuł Delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Wybierz typ instalacji NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Wybierz typ tytułu, do którego chcesz zainstalować ten NCA, jako:
(W większości przypadków domyślna &quot;gra&quot; jest w porządku.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Instalacja nieudana</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Typ tytułu wybrany dla NCA jest nieprawidłowy.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Nie znaleziono pliku</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Nie znaleziono pliku &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
- <translation type="unfinished"/>
+ <translation>Wymagania sprzętowe nie są spełnione</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation type="unfinished"/>
+ <translation>Twój system nie spełnia rekomendowanych wymagań sprzętowych. Raportowanie kompatybilności zostało wyłączone.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Brakuje konta Yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Aby przesłać test zgodności gry, musisz połączyć swoje konto yuzu.&lt;br&gt;&lt;br/&gt; Aby połączyć swoje konto yuzu, przejdź do opcji Emulacja &amp;gt; Konfiguracja &amp;gt; Sieć.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Błąd otwierania adresu URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Nie można otworzyć adresu URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Nagrywanie TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Nadpisać plik gracza 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Wykryto nieprawidłową konfigurację</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Nie można używać kontrolera handheld w trybie zadokowanym. Zostanie wybrany kontroler Pro.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>Amiibo zostało &quot;zdjęte&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Błąd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>Ta gra nie szuka amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Plik Amiibo (%1);;Wszyskie pliki (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Załaduj Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Błąd podczas ładowania pliku danych Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
- <translation type="unfinished"/>
+ <translation>Wybrany plik nie jest poprawnym amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
- <translation type="unfinished"/>
+ <translation>Wybrany plik jest już w użyciu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
- <translation type="unfinished"/>
+ <translation>Wystąpił nieznany błąd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Zrób zrzut ekranu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Obrazek PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Status TAS: Działa %1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Status TAS: Nagrywa %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Status TAS: Bezczynny %1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Status TAS: Niepoprawny</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Wyłącz</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Przestań N&amp;agrywać</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>N&amp;agraj</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Budowanie shadera</numerusform><numerusform>Budowanie: %n shaderów</numerusform><numerusform>Budowanie: %n shaderów</numerusform><numerusform>Budowanie: %n shaderów</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Skala: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Prędkość: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Prędkość: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Gra: %1 FPS (Odblokowane)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Gra: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Klatka: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMALNE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU WYSOKIE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EKSTREMALNE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>BŁĄD GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>TRYB ZADOKOWANY</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>TRYB PRZENOŚNY</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>Zero</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>NAJBLIŻSZY</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEARNY</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BIKUBICZNY</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>BEZ AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Potwierdź ponowną aktywacje klucza</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5365,37 +5590,37 @@ i opcjonalnie tworzyć kopie zapasowe.
Spowoduje to usunięcie wygenerowanych automatycznie plików kluczy i ponowne uruchomienie modułu pochodnego klucza.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Brakujące bezpieczniki</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation> - Brak BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - Brak BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - Brak PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Brak komponentów wyprowadzania</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Brakuje elementów, które mogą uniemożliwić zakończenie wyprowadzania kluczy. &lt;br&gt;Postępuj zgodnie z &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu quickstart guide&lt;/a&gt; aby zdobyć wszystkie swoje klucze i gry.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5404,39 +5629,49 @@ Zależnie od tego może potrwać do minuty
na wydajność twojego systemu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Wyprowadzanie kluczy...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Wybierz cel zrzutu RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Proszę wybrać RomFS, jakie chcesz zrzucić.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Czy na pewno chcesz zamknąć yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Czy na pewno chcesz zatrzymać emulację? Wszystkie niezapisane postępy zostaną utracone.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5448,44 +5683,44 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL niedostępny!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Współdzielone konteksty OpenGL nie są obsługiwane.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu nie zostało skompilowane z obsługą OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Błąd podczas inicjowania OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Twoja karta graficzna może nie obsługiwać OpenGL lub nie masz najnowszych sterowników karty graficznej.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Błąd podczas inicjowania OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Twoja karta graficzna może nie obsługiwać OpenGL 4.6 lub nie masz najnowszych sterowników karty graficznej.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>Twoja karta graficzna może nie obsługiwać co najmniej jednego wymaganego rozszerzenia OpenGL. Upewnij się, że masz najnowsze sterowniki karty graficznej&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Nieobsługiwane rozszerzenia:&lt;br&gt;%2</translation>
</message>
@@ -5544,117 +5779,122 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Usuń Pamięć Podręczną Pipeline OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Usuń Pamięć Podręczną Pipeline Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Usuń całą pamięć podręczną Pipeline</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Usuń całą zainstalowaną zawartość</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Zrzuć RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Zrzuć RomFS do SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Kopiuj identyfikator gry do schowka</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Nawiguj do wpisu kompatybilności gry</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Utwórz skrót</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Dodaj do pulpitu</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Dodaj do menu aplikacji</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Właściwości</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Skanuj podfoldery</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Usuń katalog gier</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Przenieś w górę</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Przenieś w dół</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Otwórz lokalizacje katalogu</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Wyczyść</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nazwa gry</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Kompatybilność</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Dodatki</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Typ pliku</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Rozmiar</translation>
</message>
@@ -5664,12 +5904,12 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Ingame</source>
- <translation type="unfinished"/>
+ <translation>W grze</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Game starts, but crashes or major glitches prevent it from being completed.</source>
- <translation type="unfinished"/>
+ <translation>Gra uruchamia się, ale awarie lub poważne błędy uniemożliwiają jej ukończenie.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
@@ -5679,17 +5919,17 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
<source>Game can be played without issues.</source>
- <translation type="unfinished"/>
+ <translation>Można grać bez problemów.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Playable</source>
- <translation type="unfinished"/>
+ <translation>Grywalna</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Game functions with minor graphical or audio glitches and is playable from start to finish.</source>
- <translation type="unfinished"/>
+ <translation>Gra działa z drobnymi błędami graficznymi lub dźwiękowymi oraz jest grywalna od początku aż do końca.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
@@ -5699,7 +5939,7 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
<source>Game loads, but is unable to progress past the Start Screen.</source>
- <translation type="unfinished"/>
+ <translation>Gra się ładuje, ale nie może przejść przez ekran początkowy.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="156"/>
@@ -5725,7 +5965,7 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Kliknij podwójnie aby dodać folder do listy gier</translation>
</message>
@@ -5738,12 +5978,12 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<translation><numerusform>1 z %n rezultatów</numerusform><numerusform>%1 z %n rezultatów</numerusform><numerusform>%1 z %n rezultatów</numerusform><numerusform>%1 z %n rezultatów</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Wpisz typ do filtra</translation>
</message>
@@ -5778,7 +6018,7 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="101"/>
<source>(Leave blank for open game)</source>
- <translation type="unfinished"/>
+ <translation>(Zostaw puste dla otwartej gry)</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="118"/>
@@ -5798,7 +6038,7 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
<source>Load Previous Ban List</source>
- <translation type="unfinished"/>
+ <translation>Załaduj poprzednią listę banów</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="184"/>
@@ -5808,12 +6048,12 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="189"/>
<source>Unlisted</source>
- <translation type="unfinished"/>
+ <translation>Nie katalogowany</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="197"/>
<source>Host Room</source>
- <translation type="unfinished"/>
+ <translation>Pokój hosta</translation>
</message>
</context>
<context>
@@ -5827,18 +6067,18 @@ Czy chcesz to ominąć i mimo to wyjść?</translation>
<location filename="../../src/yuzu/multiplayer/host_room.cpp" line="183"/>
<source>Failed to announce the room to the public lobby. In order to host a room publicly, you must have a valid yuzu account configured in Emulation -&gt; Configure -&gt; Web. If you do not want to publish a room in the public lobby, then select Unlisted instead.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Nie udało się ogłosić pokoju w publicznym lobby. Aby udostępnić pokój publicznie, musisz mieć ważne konto yuzu skonfigurowane w Emulacja -&gt; Konfiguruj... -&gt; Sieć. Jeśli nie chcesz publikować pokoju w publicznym lobby, zamiast tego wybierz opcję Niepubliczny.
+Komunikat debugowania:</translation>
</message>
</context>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>Wycisz/Odcisz Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5860,113 +6100,114 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
- <translation type="unfinished"/>
+ <translation>Okno główne</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
- <translation type="unfinished"/>
+ <translation>Zmniejsz głośność dźwięku</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
- <translation type="unfinished"/>
+ <translation>Zwiększ głośność dźwięku</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Zrób zrzut ekranu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
- <translation type="unfinished"/>
+ <translation>Zmień filtr adaptacyjny</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
- <translation type="unfinished"/>
+ <translation>Zmień tryb dokowania</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
- <translation type="unfinished"/>
+ <translation>Zmień dokładność GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Kontynuuj/Zatrzymaj Emulację</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Wyłącz Pełny Ekran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>Wyjdź z yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Pełny ekran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Załaduj plik...</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Załaduj/Usuń Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Zrestartuj Emulację</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Zatrzymaj Emulację</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
- <translation type="unfinished"/>
+ <translation>Nagrywanie TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
- <translation type="unfinished"/>
+ <translation>Reset TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
- <translation type="unfinished"/>
+ <translation>TAS Start/Stop</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
- <translation type="unfinished"/>
+ <translation>Pokaż pasek filtrowania</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
- <translation type="unfinished"/>
+ <translation>Przełącz limit liczby klatek na sekundę</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
- <translation type="unfinished"/>
+ <translation>Włącz przesuwanie myszką</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
- <translation type="unfinished"/>
+ <translation>Przełącz pasek stanu</translation>
</message>
</context>
<context>
@@ -5987,7 +6228,7 @@ Debug Message: </source>
<translation>Zainstaluj</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Zainstaluj pliki na NAND</translation>
</message>
@@ -5995,7 +6236,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>Tekst nie może zawierać tych znaków:
@@ -6045,7 +6286,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="14"/>
<source>Public Room Browser</source>
- <translation type="unfinished"/>
+ <translation>Przeglądarka publicznych pokoi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="32"/>
@@ -6061,7 +6302,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="66"/>
<source>Search</source>
- <translation type="unfinished"/>
+ <translation>Szukaj</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="76"/>
@@ -6070,51 +6311,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Ukryj Pełne Pokoje</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Odśwież Lobby</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Aby dołączyć, potrzebne jest hasło</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Hasło:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Gracze</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Nazwa Pokoju</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Preferowana Gra</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Host</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Odświeżam</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Odśwież listę</translation>
</message>
@@ -6189,7 +6435,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="127"/>
<source>&amp;Multiplayer</source>
- <translation type="unfinished"/>
+ <translation>&amp;Multiplayer</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="138"/>
@@ -6279,27 +6525,27 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="270"/>
<source>&amp;Browse Public Game Lobby</source>
- <translation type="unfinished"/>
+ <translation>&amp;Przeglądaj publiczne lobby gier</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="278"/>
<source>&amp;Create Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Utwórz Pokój</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="286"/>
<source>&amp;Leave Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Wyjdź z Pokoju</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="291"/>
<source>&amp;Direct Connect to Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Bezpośrednie połączenie z pokojem</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="299"/>
<source>&amp;Show Current Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Pokaż bieżący pokój</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="307"/>
@@ -6390,7 +6636,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="20"/>
<source>Ban List</source>
- <translation type="unfinished"/>
+ <translation>Lista banów</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="41"/>
@@ -6401,22 +6647,22 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="51"/>
<source>Unban</source>
- <translation type="unfinished"/>
+ <translation>Unban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="40"/>
<source>Subject</source>
- <translation type="unfinished"/>
+ <translation>Temat</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="41"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Typ</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="83"/>
<source>Forum Username</source>
- <translation type="unfinished"/>
+ <translation>Nazwa użytkownika forum</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="88"/>
@@ -6434,12 +6680,12 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="90"/>
<source>Current connection status</source>
- <translation type="unfinished"/>
+ <translation>Bieżący stan połączenia</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="117"/>
<source>Not Connected. Click here to find a room!</source>
- <translation type="unfinished"/>
+ <translation>Nie połączono. Kliknij tutaj aby znaleźć pokój!</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="123"/>
@@ -6465,7 +6711,8 @@ Debug Message: </source>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="208"/>
<source>Failed to update the room information. Please check your Internet connection and try hosting the room again.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Nie udało się zaktualizować informacji o pokoju. Sprawdź swoje połączenie internetowe i spróbuj ponownie zahostować pokój.
+Komunikat debugowania:</translation>
</message>
</context>
<context>
@@ -6498,7 +6745,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="20"/>
<source>You must choose a Preferred Game to host a room. If you do not have any games in your game list yet, add a game folder by clicking on the plus icon in the game list.</source>
- <translation type="unfinished"/>
+ <translation>Aby hostować pokój, musisz wybrać preferowaną grę. Jeżeli nie posiadasz żadnej gry w twojej liście gier, dodaj folder z grami poprzez kliknięcie ikonki plusa w liście gier.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="24"/>
@@ -6508,7 +6755,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="26"/>
<source>Unable to connect to the host. Verify that the connection settings are correct. If you still cannot connect, contact the room host and verify that the host is properly configured with the external port forwarded.</source>
- <translation type="unfinished"/>
+ <translation>Nie można nawiązać połączenia z hostem. Sprawdź czy ustawienia sieciowe są poprawne. Jeżeli wciąż nie będziesz mógł nawiązać połączenia, skontaktuj się z hostem pokoju oraz sprawdźcie czy host ma poprawne skonfigurowane przekazywanie portów.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="30"/>
@@ -6533,12 +6780,12 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="39"/>
<source>Incorrect password.</source>
- <translation type="unfinished"/>
+ <translation>Niepoprawne hasło.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="40"/>
<source>An unknown error occurred. If this error continues to occur, please open an issue</source>
- <translation type="unfinished"/>
+ <translation>Wystąpił nieznany błąd. Jeśli ten błąd będzie się powtarzał, otwórz problem</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="43"/>
@@ -6558,7 +6805,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="49"/>
<source>You do not have enough permission to perform this action.</source>
- <translation type="unfinished"/>
+ <translation>Nie masz wystarczających uprawnień żeby przeprowadzić tę czynność.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="50"/>
@@ -6571,18 +6818,20 @@ Możliwe, że opuścił/a pokój.</translation>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="52"/>
<source>No valid network interface is selected.
Please go to Configure -&gt; System -&gt; Network and make a selection.</source>
- <translation type="unfinished"/>
+ <translation>Nie wybrano prawidłowego interfejsu sieciowego.
+Przejdź do Konfiguruj... -&gt; System -&gt; Sieć i dokonaj wyboru.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="68"/>
<source>Game already running</source>
- <translation type="unfinished"/>
+ <translation>Gra już działa</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="69"/>
<source>Joining a room when the game is already running is discouraged and can cause the room feature not to work correctly.
Proceed anyway?</source>
- <translation type="unfinished"/>
+ <translation>Dołączanie do pokoju, gdy gra jest już uruchomiona, jest odradzane i może spowodować nieprawidłowe działanie funkcji pokoju.
+Czy kontynuować mimo to?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="75"/>
@@ -6649,7 +6898,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>START/PAUZA</translation>
</message>
@@ -6698,31 +6947,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[nie ustawione]</translation>
</message>
@@ -6733,14 +6982,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Oś %1%2</translation>
</message>
@@ -6751,264 +7000,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[nieznane]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Lewo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Prawo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Dół</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Góra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Kółko</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Krzyż</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Kwadrat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Trójkąt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Udostępnij</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Opcje</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[niezdefiniowane]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[niepoprawne]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Drążek %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Oś %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Oś %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Ruch %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Przycisk %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[nieużywane]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Plus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Minus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Zrzut ekranu</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Dotyk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Kółko</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Do tyłu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Do przodu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Zadanie</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Dodatkowe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7016,22 +7323,22 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="14"/>
<source>Amiibo Settings</source>
- <translation type="unfinished"/>
+ <translation>Ustawienia Amiibo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="169"/>
<source>Amiibo Info</source>
- <translation type="unfinished"/>
+ <translation>Informacje o Amiibo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="177"/>
<source>Series</source>
- <translation type="unfinished"/>
+ <translation>Seria</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="197"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Typ</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="217"/>
@@ -7041,52 +7348,52 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="242"/>
<source>Amiibo Data</source>
- <translation type="unfinished"/>
+ <translation>Dane Amiibo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="250"/>
<source>Custom Name</source>
- <translation type="unfinished"/>
+ <translation>Niestandardowa Nazwa</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="270"/>
<source>Owner</source>
- <translation type="unfinished"/>
+ <translation>Właściciel</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="290"/>
<source>Creation Date</source>
- <translation type="unfinished"/>
+ <translation>Data Utworzenia</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="307"/>
<source>dd/MM/yyyy</source>
- <translation type="unfinished"/>
+ <translation>dd/MM/yyyy</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="314"/>
<source>Modification Date</source>
- <translation type="unfinished"/>
+ <translation>Data Modyfikacji</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="331"/>
<source>dd/MM/yyyy </source>
- <translation type="unfinished"/>
+ <translation>dd/MM/yyyy </translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="349"/>
<source>Game Data</source>
- <translation type="unfinished"/>
+ <translation>Dane gry</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="355"/>
<source>Game Id</source>
- <translation type="unfinished"/>
+ <translation>ID Gry</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="384"/>
<source>Mount Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Zamontuj Amiibo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="390"/>
@@ -7096,32 +7403,32 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="413"/>
<source>File Path</source>
- <translation type="unfinished"/>
+ <translation>Ścieżka pliku</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="191"/>
<source>No game data present</source>
- <translation type="unfinished"/>
+ <translation>Brak danych gry</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="231"/>
<source>The following amiibo data will be formatted:</source>
- <translation type="unfinished"/>
+ <translation>Następujące dane amiibo zostaną sformatowane:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="234"/>
<source>The following game data will removed:</source>
- <translation type="unfinished"/>
+ <translation>Następujące dane gry zostaną usunięte:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="237"/>
<source>Set nickname and owner:</source>
- <translation type="unfinished"/>
+ <translation>Ustaw nick oraz właściciela:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="240"/>
<source>Do you wish to restore this amiibo?</source>
- <translation type="unfinished"/>
+ <translation>Czy chcesz odnowić to amiibo?</translation>
</message>
</context>
<context>
@@ -7377,28 +7684,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Kod błędu: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Wystąpił błąd.
Spróbuj ponownie lub skontaktuj się z twórcą oprogramowania.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Wystąpił błąd w %1 o %2.
Spróbuj ponownie lub skontaktuj się z twórcą oprogramowania.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7422,20 +7729,81 @@ Spróbuj ponownie lub skontaktuj się z twórcą oprogramowania.</translation>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Wybierz użytkownika:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Użytkownicy</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Wybór profilu</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Wybierz użytkownika:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7485,51 +7853,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Stos wywołań</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>czekam na mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>ma oczekujących: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>uchwyt właściciela: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>czekam na wszystkie objekty</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>oczekiwanie na jeden z następujących obiektów</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>czekam bez żadnego wątku</translation>
</message>
@@ -7537,120 +7874,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>Jakoś działa</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>Spauzowana</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>spanie</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>czekam na odpowiedź IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>oczekiwanie na obiekty</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>oczekiwanie na zmienną warunkową</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>czekam na arbitra adresu</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>czekam na zawieszenie wznowienia</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>oczekiwanie</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>zainicjowano</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>zakończony</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>nieznany</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>Idealnie</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>rdzeń %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>procesor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>idealny rdzeń = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>maska powinowactwa = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>identyfikator wątku = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>piorytet = %1(obecny) / %2(normalny)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>ostatnie działające kleszcze = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>nie czekam na mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>czekanie na wątek</translation>
</message>
@@ -7658,7 +7985,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Drzewo Czekania</translation>
</message>
diff --git a/dist/languages/pt_BR.ts b/dist/languages/pt_BR.ts
index 0fb30e3fa..a81ba4c22 100644
--- a/dist/languages/pt_BR.ts
+++ b/dist/languages/pt_BR.ts
@@ -213,7 +213,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
<source>%1 - %2 (%3/%4 members) - connected</source>
- <translation type="unfinished"/>
+ <translation>%1 - %2 (%3/%4 membros) - conectado</translation>
</message>
</context>
<context>
@@ -242,102 +242,102 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo inicializa?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Sim. O jogo começou por vídeo ou áudio.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Não O Jogo não passou da tela de inicialização &quot;Launching...&quot;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Sim O Jogo passou da tela de menu/introdução e começou o gameplay</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Não O jogo travou e/ou apresentou falhas graves durante o carregamento ou utilizando o menu </translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo chega a gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Sim O jogo funciona sem crashes</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Não O jogo crasha ou congela durante a gameplay</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo funciona sem crashar, congelar ou travar durante a gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Sim O jogo pode ser concluído sem o uso de soluções alternativas</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Não Não é possível progredir no jogo a partir de uma certa área</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo é completamente jogável do início ao fim?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Graves O jogo tem graves erros gráficos</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Pequenos O jogo tem pequenos erros gráficos</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Nenhum Tudo é renderizado como no Nintendo Switch</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo tem alguma falha gráfica?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Graves O jogo tem graves erros de áudio</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Pequenas O jogo tem pequenos erros de áudio</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Nenhuma O áudio é reproduzido perfeitamente</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any audio glitches / missing effects?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo tem alguma falha no áudio / efeitos ausentes?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="389"/>
@@ -380,36 +380,61 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Dispositivo de Saída</translation>
+ <source>Output Device:</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Dispositivo de Entrada</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Estéreo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Usar volume global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Definir volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Silenciar audio quando a janela ficar em segundo plano</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -808,12 +833,15 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Esta otimização acelera os acessos à memória ao permitir que acessos inválidos à memória sejam bem-sucedidos.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ativá-la reduz a sobrecarga de todos os acessos à memória e não tem impacto em programas que não tem acessos inválidos à memória.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Permitir fallbacks para acessos inválidos à memória</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -934,124 +962,134 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Desativar macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Quando marcado, desabilita as funções do macro HLE. Habilitar esta opção faz com que os jogos rodem mais lentamente</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Desabilitar o Macro HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Quando ativado, o yuzu registrará estatísticas sobre o cache de pipeline compilado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Ativar Feedback de Shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Quando ativado, executa shaders sem mudanças de lógica de loop</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Desativar verificação de segurança de loops</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Depuração</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Ativar serviços de relatório detalhado**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Ativar acesso de registro FS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Habilite essa opção para gravar a última saída da lista de comandos de áudio para o console. Somente afetará jogos que utilizam o renderizador de áudio.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
- <translation type="unfinished"/>
+ <translation>Despejar comandos de áudio no console**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Criar um despejo resumido após uma falha</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avançado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Modo quiosque (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Ativar depuração de CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Ativar asserções de depuração</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Ativar auto-esboço**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Ativar todos os tipos de controles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Desativar o applet da web</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation type="unfinished"/>
+ <translation>Permite que o yuzu procure por um ambiente Vulkan funcional quando o programa iniciar. Desabilite essa opção se estiver causando conflitos com programas externos visualizando o yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
- <translation type="unfinished"/>
+ <translation>Executar checagem do Vulkan na inicialização</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Isto será restaurado automaticamente assim que o yuzu for fechado.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="35"/>
<source>Restart Required</source>
- <translation type="unfinished"/>
+ <translation>É necessário reiniciar</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="36"/>
<source>yuzu is required to restart in order to apply this setting.</source>
- <translation type="unfinished"/>
+ <translation>Será necessário reiniciar o yuzu para aplicar as configurações.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>Applet Web não compilado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>Criação do mini despejo não compilada</translation>
</message>
</context>
<context>
@@ -1099,78 +1137,78 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Configurações do yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Áudio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Depuração</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Sistema de arquivos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Geral</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Gráficos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>GráficosAvançado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Teclas de atalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Controles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Perfis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Rede</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Lista de jogos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Rede</translation>
</message>
@@ -1345,46 +1383,36 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Layout de memória extendida (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Confirmar saída quando a emulação estiver em execução</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Escolher um usuário ao iniciar um jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Pausar emulação quando a janela ficar em segundo plano</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Silenciar audio quando a janela ficar em segundo plano</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Esconder cursor do mouse quando em inatividade</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Redefinir todas as configurações</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Isto restaura todas as configurações e exclui as configurações individuais de todos os jogos. As pastas de jogos, perfis de jogos e perfis de controles não serão excluídos. Deseja prosseguir?</translation>
</message>
@@ -1423,7 +1451,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Nenhum</translation>
</message>
@@ -1449,216 +1477,269 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Emulação NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Sem saída de vídeo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Decodificação de vídeo pela CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Decodificação de vídeo pela GPU (Padrão)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Modo de tela cheia:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Janela em tela cheia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Tela cheia exclusiva</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Proporção de tela:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Padrão (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Forçar 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Forçar 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
- <translation type="unfinished"/>
+ <translation>Forçar 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Esticar para a janela</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Resolução:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [EXPERIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filtro de adaptação de janela:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Vizinho mais próximo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilinear</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicúbico</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussiano</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (somente Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Método de Anti-Aliasing</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Usar FSR Sharpness global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Definir FSR Sharpness</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>FSR Sharpness:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Usar cor de fundo global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Configurar cor de fundo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Cor de fundo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Shaders Assembly, apenas NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Experimental, Somente Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1683,77 +1764,133 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Nível de precisão:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>A sincronização vertical (VSync) evita que as imagens do jogo pareçam cortadas, porém algumas placas gráficas apresentam redução de desempenho quando estiver ativa. Deixe-a ativada se você não reparar alguma diferença de desempenho.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Executa trabalho em segundo plano aguardando pelos comandos gráficos para evitar a GPU de reduzir seu clock.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Forçar clock máximo (somente Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Habilitar decodificação assíncrona de texturas ASTC, isso pode reduzir interrupções no tempo de carga. Essa funcionalidade é experimental.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Decodificação assíncrona de texturas ASTC (Hack)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Realiza a compilação de shaders de forma assíncrona, o que pode reduzir engasgos de shaders. Esta opção é experimental.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Usar compilação assíncrona de shaders (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Ativa um tempo de resposta rápido da GPU. Esta opção forçará a maioria dos jogos a rodar em sua resolução nativa mais alta.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Usar tempo de resposta rápido da GPU (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Habilita cache de pipeline específico do fabricante. Essa opção pode melhorar o tempo de carga dos shaders significativamente nos casos onde o driver do Vulkan não armazena os arquivos cache de pipeline internamente.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Utilizar cache de pipeline do Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Filtragem anisotrópica:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automático</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Padrão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1786,70 +1923,65 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Restaurar padrões</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Ação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Atalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Atalho do controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Combinação de teclas já utilizada</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>A sequência de teclas pressionada já esta atribuída para: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[aguardando]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Inválido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Restaurar padrão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Sequência de botões conflitante</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>A sequência de botões padrão já está vinculada a %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>A sequência de teclas padrão já esta atribuida para: %1</translation>
</message>
@@ -2141,7 +2273,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Configurar</translation>
</message>
@@ -2153,7 +2285,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2623"/>
<source>Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Câmera infravermelha</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2640"/>
@@ -2167,6 +2299,8 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Requer reiniciar o yuzu</translation>
</message>
@@ -2186,22 +2320,42 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Navegação com controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Habilitar driver direto do JoyCon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Habilitar driver direto do Pro Controller [EXPERIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Ativar o giro do mouse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Sensibilidade do mouse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Movimento/toque</translation>
</message>
@@ -2221,57 +2375,57 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Perfis de controle</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 1</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 3</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 4</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 5</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 6</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 7</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 8</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Usar configuração global de controles</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador %1</translation>
</message>
</context>
<context>
@@ -2313,7 +2467,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Analógico esquerdo</translation>
</message>
@@ -2407,14 +2561,14 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2433,7 +2587,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Mais</translation>
</message>
@@ -2446,15 +2600,15 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2511,236 +2665,247 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Analógico direito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[não definido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Inverter botão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Alternar pressionamento do botão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Botão Turbo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Inverter eixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Definir limite</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Escolha um valor entre 0% e 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
- <translation type="unfinished"/>
+ <translation>Alternar eixos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Definir limite do giroscópio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Mapear analógico</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Após pressionar OK, mova o seu direcional analógico primeiro horizontalmente e depois verticalmente.
Para inverter os eixos, mova seu analógico primeiro verticalmente e depois horizontalmente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Eixo central</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Zona morta: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Alcance de modificador: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Par de Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon Esquerdo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon Direito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Portátil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Controle de GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Controle NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Controle SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Controle N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Mega Drive</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Iniciar / Pausar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Direcional de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Balance!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[esperando]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Novo perfil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Insira um nome para o perfil:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Criar perfil de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>O nome de perfil inserido não é válido!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Falha ao criar o perfil de controle &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Excluir perfil de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Falha ao excluir o perfil de controle &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Carregar perfil de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Falha ao carregar o perfil de controle &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Salvar perfil de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Falha ao salvar o perfil de controle &quot;%1&quot;</translation>
</message>
@@ -2788,7 +2953,7 @@ Para inverter os eixos, mova seu analógico primeiro verticalmente e depois hori
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Configurar</translation>
</message>
@@ -2824,7 +2989,7 @@ Para inverter os eixos, mova seu analógico primeiro verticalmente e depois hori
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Teste</translation>
</message>
@@ -2844,77 +3009,77 @@ Para inverter os eixos, mova seu analógico primeiro verticalmente e depois hori
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Saiba mais&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>O número da porta tem caracteres inválidos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>A porta tem que estar entre 0 e 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>O endereço IP não é válido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Este servidor UDP já existe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Não é possível adicionar mais de 8 servidores</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Configurando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Teste bem-sucedido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation> Dados foram recebidos do servidor com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>O teste falhou</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Não foi possível receber dados válidos do servidor.&lt;br&gt;Verifique se o servidor foi configurado corretamente e o endereço e porta estão corretos.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Um teste UDP ou configuração de calibração está em curso no momento.&lt;br&gt;Aguarde até a sua conclusão.</translation>
</message>
@@ -2995,47 +3160,47 @@ Para inverter os eixos, mova seu analógico primeiro verticalmente e depois hori
<translation>Desenvolvedor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Adicionais</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Geral</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Gráficos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Gráf. avançados</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Áudio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Perfis de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Propriedades</translation>
</message>
@@ -3214,7 +3379,7 @@ Para inverter os eixos, mova seu analógico primeiro verticalmente e depois hori
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="332"/>
<source>Delete this user? All of the user&apos;s save data will be deleted.</source>
- <translation type="unfinished"/>
+ <translation>Excluir esse usuário? Todos os dados salvos desse usuário serão removidos.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="344"/>
@@ -3225,7 +3390,8 @@ Para inverter os eixos, mova seu analógico primeiro verticalmente e depois hori
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="360"/>
<source>Name: %1
UUID: %2</source>
- <translation type="unfinished"/>
+ <translation>Nome: %1
+UUID: %2</translation>
</message>
</context>
<context>
@@ -3242,7 +3408,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation>Parâmetros do Sensor de Anel</translation>
</message>
<message>
@@ -3263,33 +3429,90 @@ UUID: %2</source>
<translation>Zona morta: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Driver Direto do Joycon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Habilitar Controle de Anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Habilitar</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Valor do Sensor de Anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Não conectado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Restaurar padrões</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[não definido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Inverter eixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Zona morta: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Erro habilitando controle de anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Driver direto do Joycon não está habilitado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Configurando</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>O dispositivo atualmente mapeado não suporta o controle de anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>O dispositivo mapeado não tem um anel conectado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Resultado inesperado do driver %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[aguardando]</translation>
</message>
@@ -3594,8 +3817,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Inglês (English)</translation>
+ <source>American English</source>
+ <translation>Inglês Americano</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3695,57 +3918,22 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Estéreo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID do console:</translation>
+ <translation>Nome do Dispositivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Modo de saída de som</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regerar</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>As configurações de sistema são acessíveis apenas quando não houver nenhum jogo em execução.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Isto substituirá o seu Switch virtual atual por um novo. O seu Switch virtual atual não poderá ser recuperado. Isto pode causar efeitos inesperados em jogos. Isto pode falhar caso você use um jogo salvo com configurações desatualizadas registradas nele. Continuar?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Aviso</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID do console: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Aviso: &quot;%1&quot; não é um idioma válido para a região &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3814,7 +4002,7 @@ UUID: %2</source>
<translation>Configurar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Selecionar diretório de carregamento TAS</translation>
</message>
@@ -4054,7 +4242,7 @@ Mova os pontos para mudar a posição, ou clique duas vezes nas células da tabe
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="82"/>
<source>Show Compatibility List</source>
- <translation type="unfinished"/>
+ <translation>Exibir Lista de Compatibilidade</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="89"/>
@@ -4064,12 +4252,12 @@ Mova os pontos para mudar a posição, ou clique duas vezes nas células da tabe
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="96"/>
<source>Show Size Column</source>
- <translation type="unfinished"/>
+ <translation>Exibir Coluna Tamanho</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="103"/>
<source>Show File Types Column</source>
- <translation type="unfinished"/>
+ <translation>Exibir Coluna Tipos de Arquivos</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="112"/>
@@ -4253,7 +4441,7 @@ Mova os pontos para mudar a posição, ou clique duas vezes nas células da tabe
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="118"/>
<source>Web Service configuration can only be changed when a public room isn&apos;t being hosted.</source>
- <translation type="unfinished"/>
+ <translation>Configuração de Serviço Web só podem ser alteradas quando uma sala pública não está sendo hospedada.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="128"/>
@@ -4331,7 +4519,7 @@ Mova os pontos para mudar a posição, ou clique duas vezes nas células da tabe
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="141"/>
<source>Unverified, please click Verify before saving configuration</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Não verificado, por favor clique sobre Verificar antes de salvar as configurações</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="147"/>
@@ -4343,7 +4531,7 @@ Mova os pontos para mudar a posição, ou clique duas vezes nas células da tabe
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="164"/>
<source>Verified</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Verificado</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="169"/>
@@ -4370,7 +4558,7 @@ Mova os pontos para mudar a posição, ou clique duas vezes nas células da tabe
<translation>Controle J1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Controle J1</translation>
</message>
@@ -4380,594 +4568,614 @@ Mova os pontos para mudar a posição, ou clique duas vezes nas células da tabe
<message>
<location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="14"/>
<source>Direct Connect</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
+ <translation>Conexão Direta</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Endereço do Servidor</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Endereço do servidor que fará a hospedagem&lt;/p&gt;&lt;/body&gt;&lt;/html&gt; </translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Porta</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Número da porta que o servidor de hospedagem está escutando&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Apelido</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Senha</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Conectar</translation>
</message>
</context>
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
- <translation type="unfinished"/>
+ <translation>Conectando</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Conectar</translation>
</message>
</context>
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Dados anônimos são recolhidos&lt;/a&gt; para ajudar a melhorar o yuzu. &lt;br/&gt;&lt;br/&gt;Gostaria de compartilhar os seus dados de uso conosco?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetria</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
- <translation type="unfinished"/>
+ <translation>Detectada Instalação Defeituosa do Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
- <translation type="unfinished"/>
+ <translation>A inicialização do Vulkan falhou durante a carga do programa. &lt;br&gt;&lt;br&gt;Clique &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;aqui para instruções de como resolver o problema&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Carregando applet web...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Desativar o applet da web</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>A desativação do applet da web pode causar comportamento inesperado e deve apenas ser usada com Super Mario 3D All-Stars. Você deseja mesmo desativar o applet da web?
(Ele pode ser reativado nas configurações de depuração.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>A quantidade de shaders sendo construídos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>O atualmente multiplicador de escala de resolução selecionado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Velocidade atual de emulação. Valores maiores ou menores que 100% indicam que a emulação está rodando mais rápida ou lentamente que em um Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Quantos quadros por segundo o jogo está exibindo atualmente. Isto irá variar de jogo para jogo e cena para cena.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Tempo que leva para emular um quadro do Switch, sem considerar o limitador de taxa de quadros ou a sincronização vertical. Um valor menor ou igual a 16.67 ms indica que a emulação está em velocidade plena.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Limpar arquivos recentes</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Mouse emulado está habilitado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>Controle de mouse real e controle panorâmico do mouse são incompatíveis. Por favor desabilite a emulação do mouse em configurações avançadas de controles para permitir o controle panorâmico do mouse.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Continuar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pausar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu está rodando um jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Aviso - formato de jogo desatualizado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Você está usando neste jogo o formato de ROM desconstruída e extraída em uma pasta, que é um formato desatualizado que foi substituído por outros, como NCA, NAX, XCI ou NSP. Pastas desconstruídas de ROMs não possuem ícones, metadados e suporte a atualizações.&lt;br&gt;&lt;br&gt;Para saber mais sobre os vários formatos de ROMs de Switch compatíveis com o yuzu, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;confira a nossa wiki&lt;/a&gt;. Esta mensagem não será exibida novamente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Erro ao carregar a ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>O formato da ROM não é suportado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Ocorreu um erro ao inicializar o núcleo de vídeo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu encontrou um erro enquanto rodando o núcleo de vídeo. Normalmente isto é causado por drivers de GPU desatualizados, incluindo integrados. Por favor veja o registro para mais detalhes. Para mais informações em acesso ao registro por favor veja a seguinte página: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Como fazer envio de arquivo de registro&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Erro ao carregar a ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Por favor, siga &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;o guia de início rápido&lt;/a&gt; para reextrair os seus arquivos.&lt;br&gt;Você pode consultar a wiki do yuzu&lt;/a&gt; ou o Discord do yuzu&lt;/a&gt; para obter ajuda.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Ocorreu um erro desconhecido. Consulte o registro para mais detalhes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Encerrando software...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Dados de jogos salvos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Dados de mods</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Erro ao abrir a pasta %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>A pasta não existe!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Erro ao abrir o cache de shaders transferível</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Falha ao criar o diretório de cache de shaders para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>Erro ao Remover Conteúdos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation type="unfinished"/>
+ <translation>Erro ao Remover Atualização</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation type="unfinished"/>
+ <translation>Erro ao Remover DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>Remover Conteúdo Instalado do Jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation type="unfinished"/>
+ <translation>Remover Atualização Instalada do Jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
- <translation type="unfinished"/>
+ <translation>Remover DLC Instalada do Jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Remover item</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Removido com sucesso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>O jogo base foi removido com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>O jogo base não está instalado na NAND e não pode ser removido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>A atualização instalada foi removida com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Não há nenhuma atualização instalada para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Não há nenhum DLC instalado para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>%1 DLC(s) instalados foram removidos com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Apagar o cache de shaders transferível do OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Apagar o cache de shaders transferível do Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Apagar todos os caches de shaders transferíveis?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Remover configurações customizadas do jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Remover arquivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Erro ao remover cache de shaders transferível</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Não existe um cache de shaders para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>O cache de shaders transferível foi removido com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Falha ao remover o cache de shaders transferível.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Erro ao Remover Cache de Pipeline do Driver Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Falha ao remover o pipeline de cache do driver.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Erro ao remover os caches de shaders transferíveis</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Os caches de shaders transferíveis foram removidos com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Falha ao remover o diretório do cache de shaders transferível.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Erro ao remover as configurações customizadas do jogo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Não há uma configuração customizada para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>As configurações customizadas do jogo foram removidas com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Falha ao remover as configurações customizadas do jogo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Falha ao extrair RomFS!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Houve um erro ao copiar os arquivos RomFS ou o usuário cancelou a operação.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Extração completa</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Apenas estrutura</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Selecione o modo de extração do RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Selecione a forma como você gostaria que o RomFS seja extraído.&lt;br&gt;&quot;Extração completa&quot; copiará todos os arquivos para a nova pasta, enquanto que &lt;br&gt;&quot;Apenas estrutura&quot; criará apenas a estrutura de pastas.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>Não há espaço suficiente em %1 para extrair o RomFS. Por favor abra espaço ou selecione um diretório diferente em Emulação &gt; Configurar &gt; Sistema &gt; Sistema de arquivos &gt; Extrair raiz</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Extraindo RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Cancelar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Extração do RomFS concluida!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>A operação foi concluída com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Criar Atalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Isso irá criar um atalho para o AppImage atual. Isso pode não funcionar corretamente se você fizer uma atualização. Continuar?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível criar um atalho na área de trabalho. O caminho &quot;%1&quot; não existe.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível criar um atalho no menu de aplicativos. O caminho &quot;%1&quot; não existe e não pode ser criado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Criar Ícone</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível criar o arquivo de ícone. O caminho &quot;%1&quot; não existe e não pode ser criado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Iniciar %1 com o Emulador yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Falha ao criar um atalho em %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Atalho criado com sucesso em %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Erro ao abrir %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Selecionar pasta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Propriedades</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>As propriedades do jogo não puderam ser carregadas.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Executável do Switch (%1);;Todos os arquivos (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Carregar arquivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Abrir pasta da ROM extraída</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Pasta inválida selecionada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>A pasta que você selecionou não contém um arquivo &apos;main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Arquivo de Switch instalável (*.nca *.nsp *.xci);; Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Instalar arquivos</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n arquivo restante</numerusform><numerusform>%n arquivo(s) restante(s)</numerusform><numerusform>%n arquivo(s) restante(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Instalando arquivo &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Resultados da instalação</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Para evitar possíveis conflitos, desencorajamos que os usuários instalem os jogos base na NAND.
Por favor, use esse recurso apenas para instalar atualizações e DLCs.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n arquivo(s) instalado(s)
@@ -4976,7 +5184,7 @@ Por favor, use esse recurso apenas para instalar atualizações e DLCs.</transla
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n arquivo(s) sobrescrito(s)
@@ -4985,7 +5193,7 @@ Por favor, use esse recurso apenas para instalar atualizações e DLCs.</transla
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n arquivo(s) não instalado(s)
@@ -4994,377 +5202,388 @@ Por favor, use esse recurso apenas para instalar atualizações e DLCs.</transla
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Aplicativo do sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Arquivo do sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Atualização de aplicativo do sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Pacote de firmware (tipo A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Pacote de firmware (tipo B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Atualização de jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC de jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Título delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Selecione o tipo de instalação do NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Selecione o tipo de título como o qual você gostaria de instalar este NCA:
(Na maioria dos casos, o padrão &apos;Jogo&apos; serve bem.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Falha ao instalar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>O tipo de título que você selecionou para o NCA é inválido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Arquivo não encontrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Arquivo &quot;%1&quot; não encontrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
- <translation type="unfinished"/>
+ <translation>Requisitos de hardware não atendidos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation type="unfinished"/>
+ <translation>Seu sistema não atende os requisitos de harwdare. O relatório de compatibilidade foi desabilitado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Conta do yuzu faltando</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Para enviar um caso de teste de compatibilidade de jogo, você precisa entrar com a sua conta do yuzu.&lt;br&gt;&lt;br/&gt;Para isso, vá para Emulação &amp;gt; Configurar... &amp;gt; Rede.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Erro ao abrir URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Não foi possível abrir o URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Gravando TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Sobrescrever arquivo do jogador 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Configuração inválida detectada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>O controle portátil não pode ser usado no modo encaixado na base. O Pro Controller será selecionado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>O amiibo atual foi removido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Erro</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>O jogo atual não está procurando amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Arquivo Amiibo (%1);; Todos os arquivos (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Carregar Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Erro ao carregar dados do Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
- <translation type="unfinished"/>
+ <translation>O arquivo selecionado não é um amiibo válido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
- <translation type="unfinished"/>
+ <translation>O arquivo selecionado já está em uso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
- <translation type="unfinished"/>
+ <translation>Ocorreu um erro desconhecido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Capturar tela</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Imagem PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Situação TAS: Rodando %1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Situação TAS: Gravando %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Situação TAS: Repouso %1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Situação TAS: Inválido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Parar de rodar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Iniciar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Parar G&amp;ravação</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>G&amp;ravação</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Compilando: %n shader(s)</numerusform><numerusform>Compilando: %n shader(s)</numerusform><numerusform>Compilando: %n shader(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Escala: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Velocidade: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Velocidade: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Jogo: %1 FPS (Desbloqueado)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Jogo: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Quadro: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU ALTA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTREMA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>ERRO DE GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
- <translation type="unfinished"/>
+ <translation>ANCORADO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
- <translation type="unfinished"/>
+ <translation>PORTÁTIL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>VIZINHO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICÚBICO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIANO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>Sem AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>VOLUME: MUDO</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>VOLUME: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Confirmar rederivação de chave</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5381,37 +5600,37 @@ e opcionalmente faça cópias de segurança.
Isto excluirá o seus arquivos de chaves geradas automaticamente, e reexecutar o módulo de derivação de chaves.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Faltando fusíveis</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation> - Faltando BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - Faltando BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - Faltando PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Faltando componentes de derivação</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Chaves de encriptação faltando. &lt;br&gt;Por favor, siga &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;o guia de início rápido&lt;/a&gt; para extrair suas chaves, firmware e jogos. &lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5420,39 +5639,49 @@ Isto pode demorar até um minuto, dependendo
do desempenho do seu sistema.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Derivando chaves</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Selecionar alvo de extração do RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Selecione qual RomFS você quer extrair.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Você deseja mesmo fechar o yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Deseja mesmo parar a emulação? Qualquer progresso não salvo será perdido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5464,44 +5693,44 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL não disponível!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Shared contexts do OpenGL não são suportados.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>O yuzu não foi compilado com suporte para OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Erro ao inicializar o OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Sua GPU pode não suportar OpenGL, ou você não possui o driver gráfico mais recente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Erro ao inicializar o OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Sua GPU pode não suportar o OpenGL 4.6, ou você não possui os drivers gráficos mais recentes.&lt;br&gt;&lt;br&gt;Renderizador GL:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>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.&lt;br&gt;&lt;br&gt;Renderizador GL:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Extensões não suportadas:&lt;br&gt;%2</translation>
</message>
@@ -5560,117 +5789,122 @@ Deseja ignorar isso e sair mesmo assim?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Remover cache de pipeline do OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Remover cache de pipeline do Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Remover todos os caches de pipeline</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Remover todo o conteúdo instalado</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Extrair RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Extrair RomFS para SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Copiar ID do título para a área de transferência</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Abrir artigo do jogo no GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Criar Atalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation>Adicionar à Área de Trabalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation>Adicionar ao Menu de Aplicativos</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Propriedades</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Examinar subpastas</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Remover pasta de jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Mover para cima</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Mover para baixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Abrir local da pasta</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nome</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Compatibilidade</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Adicionais</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Tipo de arquivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Tamanho</translation>
</message>
@@ -5741,7 +5975,7 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Clique duas vezes para adicionar uma pasta à lista de jogos</translation>
</message>
@@ -5754,12 +5988,12 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<translation><numerusform>%1 de %n resultado(s)</numerusform><numerusform>%1 de %n resultado(s)</numerusform><numerusform>%1 de %n resultado(s)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filtro:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Digite o padrão para filtrar</translation>
</message>
@@ -5774,17 +6008,17 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="37"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Nome da Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="51"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Jogo Preferencial</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="61"/>
<source>Max Players</source>
- <translation type="unfinished"/>
+ <translation>Máximo de Jogadores</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="91"/>
@@ -5794,17 +6028,17 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="101"/>
<source>(Leave blank for open game)</source>
- <translation type="unfinished"/>
+ <translation>(Deixe em branco para um jogo aberto)</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="118"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Senha</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="125"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Porta</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="139"/>
@@ -5814,22 +6048,22 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
<source>Load Previous Ban List</source>
- <translation type="unfinished"/>
+ <translation>Carregar Lista de Banimento Anterior</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="184"/>
<source>Public</source>
- <translation type="unfinished"/>
+ <translation>Público</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="189"/>
<source>Unlisted</source>
- <translation type="unfinished"/>
+ <translation>Não listado</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="197"/>
<source>Host Room</source>
- <translation type="unfinished"/>
+ <translation>Hospedar Sala</translation>
</message>
</context>
<context>
@@ -5843,18 +6077,18 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<location filename="../../src/yuzu/multiplayer/host_room.cpp" line="183"/>
<source>Failed to announce the room to the public lobby. In order to host a room publicly, you must have a valid yuzu account configured in Emulation -&gt; Configure -&gt; Web. If you do not want to publish a room in the public lobby, then select Unlisted instead.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Falha ao anunciar a sala ao lobby público. Para hospedar uma sala pública você deve ter configurado uma conta válida do yuzu em Emulação -&gt; Configurações -&gt; Web. Se você não quer publicar uma sala no lobby público seleciona a opção Não listado.
+Mensagem de depuração:</translation>
</message>
</context>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
- <translation type="unfinished"/>
+ <translation>Mutar/Desmutar Áudio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5876,113 +6110,114 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
- <translation type="unfinished"/>
+ <translation>Janela Principal</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
- <translation type="unfinished"/>
+ <translation>Volume Menos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
- <translation type="unfinished"/>
+ <translation>Volume Mais</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Capturar Tela</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
- <translation type="unfinished"/>
+ <translation>Alterar Filtro de Adaptação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
- <translation type="unfinished"/>
+ <translation>Alterar Modo de Ancoragem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
- <translation type="unfinished"/>
+ <translation>Alterar Precisão da GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
- <translation type="unfinished"/>
+ <translation>Continuar/Pausar Emulação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
- <translation type="unfinished"/>
+ <translation>Sair da Tela Cheia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
- <translation type="unfinished"/>
+ <translation>Sair do yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Tela Cheia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Carregar Arquivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Carregar/Remover Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
- <translation type="unfinished"/>
+ <translation>Reiniciar Emulação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
- <translation type="unfinished"/>
+ <translation>Parar Emulação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
- <translation type="unfinished"/>
+ <translation>Gravar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
- <translation type="unfinished"/>
+ <translation>Reiniciar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
- <translation type="unfinished"/>
+ <translation>Iniciar/Parar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
- <translation type="unfinished"/>
+ <translation>Alternar Barra de Filtro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
- <translation type="unfinished"/>
+ <translation>Alternar Limite de Quadros por Segundo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
- <translation type="unfinished"/>
+ <translation>Alternar o Giro do Mouse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
- <translation type="unfinished"/>
+ <translation>Alternar Barra de Status</translation>
</message>
</context>
<context>
@@ -6003,7 +6238,7 @@ Debug Message: </source>
<translation>Instalar</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Instalar arquivos para a NAND</translation>
</message>
@@ -6011,7 +6246,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>O texto não pode conter nenhum dos seguintes caracteres:
@@ -6061,78 +6296,83 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="14"/>
<source>Public Room Browser</source>
- <translation type="unfinished"/>
+ <translation>Navegador de Salas Públicas</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="32"/>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="39"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Apelido</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="59"/>
<source>Filters</source>
- <translation type="unfinished"/>
+ <translation>Filtros</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="66"/>
<source>Search</source>
- <translation type="unfinished"/>
+ <translation>Pesquisar</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="76"/>
<source>Games I Own</source>
- <translation type="unfinished"/>
+ <translation>Meus Jogos</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Esconder Salas Vazias</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
- <translation type="unfinished"/>
+ <translation>Esconder Salas Cheias</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
- <translation type="unfinished"/>
+ <translation>Atualizar Lobby</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
- <translation type="unfinished"/>
+ <translation>Senha Necessária para Entrar</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
- <translation type="unfinished"/>
+ <translation>Senha:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Jogadores</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Nome da Sala</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Jogo Preferencial</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
- <translation type="unfinished"/>
+ <translation>Anfitrião</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Atualizando</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
- <translation type="unfinished"/>
+ <translation>Atualizar Lista</translation>
</message>
</context>
<context>
@@ -6205,7 +6445,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="127"/>
<source>&amp;Multiplayer</source>
- <translation type="unfinished"/>
+ <translation>&amp;Multijogador</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="138"/>
@@ -6295,27 +6535,27 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="270"/>
<source>&amp;Browse Public Game Lobby</source>
- <translation type="unfinished"/>
+ <translation>&amp;Navegar no Lobby de Salas Públicas</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="278"/>
<source>&amp;Create Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Criar Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="286"/>
<source>&amp;Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Sai&amp;r da Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="291"/>
<source>&amp;Direct Connect to Room</source>
- <translation type="unfinished"/>
+ <translation>Conectar &amp;Diretamente Numa Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="299"/>
<source>&amp;Show Current Room</source>
- <translation type="unfinished"/>
+ <translation>Exibir &amp;Sala Atual</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="307"/>
@@ -6401,48 +6641,48 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="6"/>
<source>Moderation</source>
- <translation type="unfinished"/>
+ <translation>Moderação</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="20"/>
<source>Ban List</source>
- <translation type="unfinished"/>
+ <translation>Lista de Banimentos</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="41"/>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="73"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Atualizando</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="51"/>
<source>Unban</source>
- <translation type="unfinished"/>
+ <translation>Desbanir</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="40"/>
<source>Subject</source>
- <translation type="unfinished"/>
+ <translation>Assunto</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="41"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Tipo</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="83"/>
<source>Forum Username</source>
- <translation type="unfinished"/>
+ <translation>Nome de Usuário do Fórum</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="88"/>
<source>IP Address</source>
- <translation type="unfinished"/>
+ <translation>Endereço IP</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="95"/>
<source>Refresh</source>
- <translation type="unfinished"/>
+ <translation>Atualizar</translation>
</message>
</context>
<context>
@@ -6450,17 +6690,17 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="90"/>
<source>Current connection status</source>
- <translation type="unfinished"/>
+ <translation>Status da conexão atual</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="117"/>
<source>Not Connected. Click here to find a room!</source>
- <translation type="unfinished"/>
+ <translation>Não conectado. Clique aqui para procurar uma sala!</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="123"/>
<source>Not Connected</source>
- <translation type="unfinished"/>
+ <translation>Não Conectado</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="129"/>
@@ -6470,7 +6710,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="136"/>
<source>New Messages Received</source>
- <translation type="unfinished"/>
+ <translation>Novas Mensagens Recebidas</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="207"/>
@@ -6481,7 +6721,8 @@ Debug Message: </source>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="208"/>
<source>Failed to update the room information. Please check your Internet connection and try hosting the room again.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Falha ao atualizar as informações da sala. Por favor verifique sua conexão com a internet e tente hospedar a sala novamente.
+Mensagem de Depuração:</translation>
</message>
</context>
<context>
@@ -6489,67 +6730,67 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="11"/>
<source>Username is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Nome de usuário inválido. Deve conter de 4 a 20 caracteres alfanuméricos.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="13"/>
<source>Room name is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Nome da sala inválido. Deve conter de 4 a 20 caracteres alfanuméricos.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="15"/>
<source>Username is already in use or not valid. Please choose another.</source>
- <translation type="unfinished"/>
+ <translation>Nome de usuário já está em uso ou não é válido. Por favor escolha outro nome de usuário.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="17"/>
<source>IP is not a valid IPv4 address.</source>
- <translation type="unfinished"/>
+ <translation>O endereço IP não é um endereço IPv4 válido.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="19"/>
<source>Port must be a number between 0 to 65535.</source>
- <translation type="unfinished"/>
+ <translation>Porta deve ser um número entre 0 e 65535.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="20"/>
<source>You must choose a Preferred Game to host a room. If you do not have any games in your game list yet, add a game folder by clicking on the plus icon in the game list.</source>
- <translation type="unfinished"/>
+ <translation>Você deve escolher um Jogo Preferível para hospedar uma sala. Se você não possui nenhum jogo na sua lista ainda, adicione um diretório de jogos clicando no ícone de mais na lista de jogos.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="24"/>
<source>Unable to find an internet connection. Check your internet settings.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível encontrar uma conexão com a internet. Verifique suas configurações de internet.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="26"/>
<source>Unable to connect to the host. Verify that the connection settings are correct. If you still cannot connect, contact the room host and verify that the host is properly configured with the external port forwarded.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível conectar no host. Verifique que as configurações de conexão estão corretas. Se você ainda não conseguir conectar, entre em contato com o anfitrião da sala e verifique que o host está configurado corretamente com a porta externa redirecionada.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="30"/>
<source>Unable to connect to the room because it is already full.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível conectar na sala porque a mesma está cheia.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="32"/>
<source>Creating a room failed. Please retry. Restarting yuzu might be necessary.</source>
- <translation type="unfinished"/>
+ <translation>Erro ao criar a sala. Por favor tente novamente. Reiniciar o yuzu pode ser necessário.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="34"/>
<source>The host of the room has banned you. Speak with the host to unban you or try a different room.</source>
- <translation type="unfinished"/>
+ <translation>O anfitrião da sala baniu você. Fale com o anfitrião para que ele remova seu banimento ou tente uma sala diferente.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="37"/>
<source>Version mismatch! Please update to the latest version of yuzu. If the problem persists, contact the room host and ask them to update the server.</source>
- <translation type="unfinished"/>
+ <translation>Versão não compatível! Por favor atualize o yuzu para a última versão. Se o problema persistir entre em contato com o anfitrião da sala e peça que atualize o servidor.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="39"/>
<source>Incorrect password.</source>
- <translation type="unfinished"/>
+ <translation>Senha inválda.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="40"/>
@@ -6559,7 +6800,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="43"/>
<source>Connection to room lost. Try to reconnect.</source>
- <translation type="unfinished"/>
+ <translation>Conexão com a sala encerrada. Tente reconectar.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="45"/>
@@ -6664,7 +6905,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>INICIAR/PAUSAR</translation>
</message>
@@ -6713,31 +6954,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[não definido]</translation>
</message>
@@ -6748,14 +6989,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Eixo %1%2</translation>
</message>
@@ -6766,264 +7007,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[desconhecido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Esquerda</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Direita</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Baixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Cima</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Círculo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Cruz</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Quadrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Triângulo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Compartilhar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Opções</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[indefinido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[inválido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Direcional %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Eixo %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Eixo %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Movimentação %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Botão %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[não utilizado]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Mais</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Menos</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Botão Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Capturar</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Toque</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Volante</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Para trás</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Para a frente</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Tarefa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7046,7 +7345,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="197"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Tipo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="217"/>
@@ -7392,28 +7691,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Código de erro: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Ocorreu um erro.
Tente novamente ou entre em contato com o desenvolvedor do software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Ocorreu um erro em %1 até %2.
Tente novamente ou entre em contato com o desenvolvedor do software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7437,20 +7736,81 @@ Tente novamente ou entre em contato com o desenvolvedor do software.</translatio
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Selecione um usuário:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Usuários</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Seletor de perfil</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Selecione um usuário:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7500,51 +7860,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Pilha de chamadas</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>esperando pelo mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>possui os waiters %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>manejo de proprietário: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>esperando por todos os objetos</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>esperando por um dos seguintes objetos</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>não aguardando pelo thread</translation>
</message>
@@ -7552,120 +7881,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>rodável</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>pausado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>dormindo</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>esperando para resposta do IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>esperando por objetos</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>aguardando por variável da condição</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>esperando para endereção o árbitro</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>esperando pra suspender o resumo</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>aguardando</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>inicializado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>terminado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>desconhecido</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation>PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>núcleo %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processador = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>núcleo ideal = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>máscara de afinidade = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>thread id = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioridade = %1(atual) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>últimos ticks executados = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>não aguardando para mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>aguardado pelo thread</translation>
</message>
@@ -7673,7 +7992,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Árvore de espera</translation>
</message>
diff --git a/dist/languages/pt_PT.ts b/dist/languages/pt_PT.ts
index 4b6c2ec45..0a526cb12 100644
--- a/dist/languages/pt_PT.ts
+++ b/dist/languages/pt_PT.ts
@@ -4,7 +4,7 @@
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="14"/>
<source>About yuzu</source>
- <translation>Sobre Yuzu</translation>
+ <translation>Sobre o yuzu</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="72"/>
@@ -213,7 +213,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
<source>%1 - %2 (%3/%4 members) - connected</source>
- <translation type="unfinished"/>
+ <translation>%1 - %2 (%3/%4 membros) - conectado</translation>
</message>
</context>
<context>
@@ -242,102 +242,102 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo inicializa?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Sim. O jogo começou por vídeo ou áudio.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Não. O Jogo não passou da tela de inicialização &quot;Launching...&quot;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Sim O Jogo passou da tela de menu/introdução e começou o gameplay</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Não O jogo travou e/ou apresentou falhas graves durante o carregamento ou utilizando o menu </translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo chega a gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Sim O jogo funciona sem crashes</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Não O jogo crasha ou congela durante a gameplay</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo funciona sem crashar, congelar ou travar durante a gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Sim O jogo pode ser concluido sem o uso de soluções alternativas</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Não Não é possível progredir no jogo a partir de uma certa área</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo é completamente jogável do início ao fim?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Grave O jogo tem grandes erros gráficos</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Pequenos O jogo tem pequenos erros gráficos</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Nenhum Tudo é renderizado como no Nintendo Switch</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo tem alguma falha gráfica?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Graves O jogo tem graves erros de áudio</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Pequenos O jogo tem pequenos erros de audio</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Nenhum O áudio é reproduzido perfeitamente</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any audio glitches / missing effects?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;O jogo tem alguma falha no áudio / efeitos ausentes?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="389"/>
@@ -380,36 +380,61 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Dispositivo de saída</translation>
+ <source>Output Device:</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Dispositivo de Entrada</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Estéreo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Usar volume global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Definir volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volume:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Silenciar audio quando a janela ficar em segundo plano</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -798,12 +823,15 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Esta otimização acelera os acessos à memória ao permitir que acessos inválidos à memória sejam bem-sucedidos.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ativá-la reduz a sobrecarga de todos os acessos à memória e não tem impacto em programas que não tem acessos inválidos à memória&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Permitir fallbacks para acessos inválidos à memória</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -924,124 +952,134 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Desactivar Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Quando marcado, desabilita as funções do macro HLE. Habilitar esta opção faz com que os jogos rodem mais lentamente</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Desabilitar o Macro HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Quando ativado, o yuzu registrará estatísticas sobre o cache de pipeline compilado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Ativar Feedback de Shaders</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>Quando ativado, executa shaders sem mudanças de lógica de loop</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Desativar verificação de segurança de loops</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Depuração</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Ativar serviços de relatório detalhado**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>Ativar acesso de registro FS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Habilite essa opção para gravar a última saída da lista de comandos de áudio para o console. Somente afetará jogos que utilizam o renderizador de áudio.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
- <translation type="unfinished"/>
+ <translation>Despejar comandos de áudio no console**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Criar um despejo resumido após uma falha</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avançado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Modo Quiosque (Quest)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Ativar depuração de CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Ativar asserções de depuração</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Ativar auto-esboço**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Ativar todos os tipos de controles</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Desativar Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation type="unfinished"/>
+ <translation>Permite que o yuzu procure por um ambiente Vulkan funcional quando o programa iniciar. Desabilite essa opção se estiver causando conflitos com programas externos visualizando o yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
- <translation type="unfinished"/>
+ <translation>Executar checagem do Vulkan na inicialização</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Isto será restaurado automaticamente assim que o yuzu for fechado.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="35"/>
<source>Restart Required</source>
- <translation type="unfinished"/>
+ <translation>É necessário reiniciar</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="36"/>
<source>yuzu is required to restart in order to apply this setting.</source>
- <translation type="unfinished"/>
+ <translation>Será necessário reiniciar o yuzu para aplicar as configurações.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>Applet Web não compilado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>Criação do mini despejo não compilada</translation>
</message>
</context>
<context>
@@ -1089,78 +1127,78 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Configuração yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Depurar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Sistema de Ficheiros</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Geral</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Gráficos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>GráficosAvançados</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Teclas de Atalhos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Controlos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Perfis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Rede</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Lista de Jogos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Rede</translation>
</message>
@@ -1335,46 +1373,36 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Layout de memória extendida (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Confirme a saída enquanto a emulação está em execução</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Solicitar para o utilizador na inicialização do jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Pausar o emulador quando estiver em segundo plano</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Silenciar audio quando a janela ficar em segundo plano</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Esconder rato quando inactivo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Restaurar todas as configurações</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Isto restaura todas as configurações e remove as configurações específicas de cada jogo. As pastas de jogos, perfis de jogos e perfis de controlo não serão removidos. Continuar?</translation>
</message>
@@ -1413,7 +1441,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Nenhum</translation>
</message>
@@ -1439,216 +1467,269 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Emulação NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Sem saída de vídeo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Decodificação de vídeo pela CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Decodificação de vídeo pela GPU (Padrão)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Tela Cheia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Janela sem bordas</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Tela cheia exclusiva</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Proporção do Ecrã:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Padrão (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Forçar 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Forçar 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
- <translation type="unfinished"/>
+ <translation>Forçar 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Esticar à Janela</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Resolução:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [EXPERIMENTAL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [EXPERIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Filtro de adaptação de janela:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Vizinho mais próximo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilinear</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicúbico</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gaussiano</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (somente Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Método de Anti-Aliasing</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Usar FSR Sharpness global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Definir FSR Sharpness</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>FSR Sharpness:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Usar cor de fundo global</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Definir cor de fundo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Cor de fundo:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Shaders Assembly, apenas NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Experimental, Somente Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1673,77 +1754,133 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Nível de Precisão:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>O Vsync previne cortes na imagem, mas algumas placas gráficas têm performance mais baixa com o Vsync activo. Mantém-no activo se não notares diferença na performance.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Executa trabalho em segundo plano aguardando pelos comandos gráficos para evitar a GPU de reduzir seu clock.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Forçar clock máximo (somente Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Habilitar decodificação assíncrona de texturas ASTC, isso pode reduzir interrupções no tempo de carga. Essa funcionalidade é experimental.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Decodificação assíncrona de texturas ASTC (Hack)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Activa a compilação de shader assíncrona, podendo reduzir o engasgue do shader. Esta função é experimental.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Usar compilação assíncrona de shaders (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Ativa um tempo de resposta rápido da GPU. Esta opção forçará a maioria dos jogos a rodar em sua resolução nativa mais alta.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Usar tempo de resposta rápido da GPU (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Habilita cache de pipeline específico do fabricante. Essa opção pode melhorar o tempo de carga dos shaders significativamente nos casos onde o driver do Vulkan não armazena os arquivos cache de pipeline internamente.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Utilizar cache de pipeline do Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Filtro Anisotrópico:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Automático</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Padrão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1776,70 +1913,65 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Restaurar Padrões</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Ação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Tecla de Atalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Atalho do controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Sequência de teclas em conflito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>A sequência de teclas inserida já está atribuída a: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[em espera]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Inválido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Restaurar Padrão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Sequência de botões conflitante</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>A sequência de botões padrão já está vinculada a %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>A sequência de teclas padrão já está atribuída a: %1</translation>
</message>
@@ -2131,7 +2263,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Configurar</translation>
</message>
@@ -2143,7 +2275,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2623"/>
<source>Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Câmera infravermelha</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2640"/>
@@ -2157,6 +2289,8 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Requer reiniciar o yuzu</translation>
</message>
@@ -2176,22 +2310,42 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<translation>Navegação com controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Habilitar driver direto do JoyCon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Habilitar driver direto do Pro Controller [EXPERIMENTAL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Ativar o giro do mouse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Sensibilidade do rato</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Movimento / Toque</translation>
</message>
@@ -2211,57 +2365,57 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Perfis de controle</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 1</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 3</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 4</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 5</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 6</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 7</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador 8</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Usar configuração global de controles</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Perfil do Jogador %1</translation>
</message>
</context>
<context>
@@ -2303,7 +2457,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Analógico Esquerdo</translation>
</message>
@@ -2397,14 +2551,14 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2423,7 +2577,7 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Mais</translation>
</message>
@@ -2436,15 +2590,15 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2501,236 +2655,247 @@ Isto banirá tanto o nome de usuário do fórum como o endereço IP.</translatio
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Analógico Direito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[não definido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Inverter botão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Alternar pressionamento do botão</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Botão Turbo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Inverter eixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Definir limite</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Escolha um valor entre 0% e 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
- <translation type="unfinished"/>
+ <translation>Alternar eixos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Definir limite do giroscópio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Mapear analógicos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Após pressionar OK, mova o seu analógico primeiro horizontalmente e depois verticalmente.
Para inverter os eixos, mova o seu analógico primeiro verticalmente e depois horizontalmente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Eixo central</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Ponto Morto: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Modificador de Alcance: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Comando Pro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Joycons Duplos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon Esquerdo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon Direito</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Portátil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Controlador de depuração</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Controle NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Controle SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Controle N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Mega Drive</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Iniciar / Pausar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Direcional de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Abane!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[em espera]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Novo Perfil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Introduza um novo nome de perfil:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Criar perfil de controlo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>O nome de perfil dado não é válido!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Falha ao criar o perfil de controlo &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Apagar Perfil de Controlo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Falha ao apagar o perfil de controlo &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Carregar perfil de controlo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Falha ao carregar o perfil de controlo &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Guardar perfil de controlo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Falha ao guardar o perfil de controlo &quot;%1&quot;</translation>
</message>
@@ -2778,7 +2943,7 @@ Para inverter os eixos, mova o seu analógico primeiro verticalmente e depois ho
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Configurar</translation>
</message>
@@ -2814,7 +2979,7 @@ Para inverter os eixos, mova o seu analógico primeiro verticalmente e depois ho
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Testar</translation>
</message>
@@ -2834,77 +2999,77 @@ Para inverter os eixos, mova o seu analógico primeiro verticalmente e depois ho
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Saber Mais&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>O número da porta tem caracteres inválidos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>A porta tem que estar entre 0 e 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>O endereço IP não é válido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Este servidor UDP já existe</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Não é possível adicionar mais de 8 servidores</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Configurando</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Teste Bem-Sucedido</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Dados recebidos do servidor com êxito.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Teste Falhou</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Não foi possível receber dados válidos do servidor.&lt;br&gt;Por favor verifica que o servidor está configurado correctamente e o endereço e porta estão correctos.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Teste UDP ou configuração de calibragem em progresso.&lt;br&gt; Por favor espera que termine.</translation>
</message>
@@ -2985,47 +3150,47 @@ Para inverter os eixos, mova o seu analógico primeiro verticalmente e depois ho
<translation>Desenvolvedor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Add-Ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Geral</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Gráficos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Gráficos Avç.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Audio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Perfis de controle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Propriedades</translation>
</message>
@@ -3204,7 +3369,7 @@ Para inverter os eixos, mova o seu analógico primeiro verticalmente e depois ho
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="332"/>
<source>Delete this user? All of the user&apos;s save data will be deleted.</source>
- <translation type="unfinished"/>
+ <translation>Excluir esse usuário? Todos os dados salvos desse usuário serão removidos.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="344"/>
@@ -3215,7 +3380,8 @@ Para inverter os eixos, mova o seu analógico primeiro verticalmente e depois ho
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="360"/>
<source>Name: %1
UUID: %2</source>
- <translation type="unfinished"/>
+ <translation>Nome: %1
+UUID: %2</translation>
</message>
</context>
<context>
@@ -3232,8 +3398,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>Parâmetros do sensor do anel</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Parâmetros do Sensor de Anel</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3253,33 +3419,90 @@ UUID: %2</source>
<translation>Ponto Morto: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Driver Direto do Joycon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Habilitar Controle de Anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Habilitar</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Valor do Sensor de Anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Não conectado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Restaurar Padrões</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[não definido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Inverter eixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Ponto Morto: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Erro habilitando controle de anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Driver direto do Joycon não está habilitado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Configurando</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>O dispositivo atualmente mapeado não suporta o controle de anel</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>O dispositivo mapeado não tem um anel conectado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Resultado inesperado do driver %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[em espera]</translation>
</message>
@@ -3584,8 +3807,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Inglês</translation>
+ <source>American English</source>
+ <translation>Inglês Americano</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3685,57 +3908,22 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Estéreo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID da consola:</translation>
+ <translation>Nome do Dispositivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Modo de saída de som</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regenerar</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>As configurações do sistema estão disponíveis apenas quando o jogo não está em execução.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Isto substituirá o seu Switch virtual actual por um novo. Seu Switch virtual actual não será recuperável. Isso pode ter efeitos inesperados nos jogos. Isto pode falhar, se você usar uma gravação de jogo de configuração desatualizado. Continuar?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Aviso</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID da Consola: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Aviso: &quot;%1&quot; não é um idioma válido para a região &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3804,7 +3992,7 @@ UUID: %2</source>
<translation>Configurar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Selecionar diretório de carregamento TAS</translation>
</message>
@@ -4044,7 +4232,7 @@ Arrasta os pontos para mudar a posição, ou dá duplo-clique nas células da ta
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="82"/>
<source>Show Compatibility List</source>
- <translation type="unfinished"/>
+ <translation>Exibir Lista de Compatibilidade</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="89"/>
@@ -4054,12 +4242,12 @@ Arrasta os pontos para mudar a posição, ou dá duplo-clique nas células da ta
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="96"/>
<source>Show Size Column</source>
- <translation type="unfinished"/>
+ <translation>Exibir Coluna Tamanho</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="103"/>
<source>Show File Types Column</source>
- <translation type="unfinished"/>
+ <translation>Exibir Coluna Tipos de Arquivos</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="112"/>
@@ -4243,7 +4431,7 @@ Arrasta os pontos para mudar a posição, ou dá duplo-clique nas células da ta
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="118"/>
<source>Web Service configuration can only be changed when a public room isn&apos;t being hosted.</source>
- <translation type="unfinished"/>
+ <translation>Configuração de Serviço Web só podem ser alteradas quando uma sala pública não está sendo hospedada.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="128"/>
@@ -4321,7 +4509,7 @@ Arrasta os pontos para mudar a posição, ou dá duplo-clique nas células da ta
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="141"/>
<source>Unverified, please click Verify before saving configuration</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Não verificado, por favor clique sobre Verificar antes de salvar as configurações</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="147"/>
@@ -4333,7 +4521,7 @@ Arrasta os pontos para mudar a posição, ou dá duplo-clique nas células da ta
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="164"/>
<source>Verified</source>
<comment>Tooltip</comment>
- <translation type="unfinished"/>
+ <translation>Verificado</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.cpp" line="169"/>
@@ -4360,7 +4548,7 @@ Arrasta os pontos para mudar a posição, ou dá duplo-clique nas células da ta
<translation>Comando J1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Comando J1</translation>
</message>
@@ -4370,982 +4558,1013 @@ Arrasta os pontos para mudar a posição, ou dá duplo-clique nas células da ta
<message>
<location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="14"/>
<source>Direct Connect</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
+ <translation>Conexão Direta</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Endereço do Servidor</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Endereço do host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt; </translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Porta</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Número da porta que o servidor de hospedagem está escutando&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Apelido</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Senha</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Conectar</translation>
</message>
</context>
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
- <translation type="unfinished"/>
+ <translation>Conectando</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Conectar</translation>
</message>
</context>
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Dados anônimos são coletados&lt;/a&gt;para ajudar a melhorar o yuzu.&lt;br/&gt;&lt;br/&gt;Gostaria de compartilhar seus dados de uso conosco?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetria</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
- <translation type="unfinished"/>
+ <translation>Detectada Instalação Defeituosa do Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
- <translation type="unfinished"/>
+ <translation>A inicialização do Vulkan falhou durante a carga do programa. &lt;br&gt;&lt;br&gt;Clique &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;aqui para instruções de como resolver o problema&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>A Carregar o Web Applet ...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Desativar Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>A desativação do applet da web pode causar comportamento inesperado e deve apenas ser usada com Super Mario 3D All-Stars. Você deseja mesmo desativar o applet da web?
(Ele pode ser reativado nas configurações de depuração.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Quantidade de shaders a serem construídos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>O atualmente multiplicador de escala de resolução selecionado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Velocidade da emulação actual. Valores acima ou abaixo de 100% indicam que a emulação está sendo executada mais depressa ou mais devagar do que a Switch</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Quantos quadros por segundo o jogo está exibindo de momento. Isto irá variar de jogo para jogo e de cena para cena.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Tempo gasto para emular um frame da Switch, sem contar o a limitação de quadros ou o v-sync. Para emulação de velocidade máxima, esta deve ser no máximo 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Limpar arquivos recentes</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Mouse emulado está habilitado</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>Controle de mouse real e controle panorâmico do mouse são incompatíveis. Por favor desabilite a emulação do mouse em configurações avançadas de controles para permitir o controle panorâmico do mouse.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Continuar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Pausa</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu está rodando um jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Aviso de Formato de Jogo Desactualizado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Você está usando o formato de directório ROM desconstruído para este jogo, que é um formato desactualizado que foi substituído por outros, como NCA, NAX, XCI ou NSP. Os directórios de ROM não construídos não possuem ícones, metadados e suporte de actualização.&lt;br&gt;&lt;br&gt;Para uma explicação dos vários formatos de Switch que o yuzu suporta,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;Verifique a nossa Wiki&lt;/a&gt;. Esta mensagem não será mostrada novamente.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Erro ao carregar o ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>O formato do ROM não é suportado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Ocorreu um erro ao inicializar o núcleo do vídeo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu encontrou um erro enquanto rodando o núcleo de vídeo. Normalmente isto é causado por drivers de GPU desatualizados, incluindo integrados. Por favor veja o registro para mais detalhes. Para mais informações em acesso ao registro por favor veja a seguinte página: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Como fazer envio de arquivo de registro&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Erro ao carregar a ROM! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Por favor, siga &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;a guia de início rápido do yuzu&lt;/a&gt; para fazer o redespejo dos seus arquivos.&lt;br&gt;Você pode consultar a wiki do yuzu&lt;/a&gt; ou o Discord do yuzu&lt;/a&gt; para obter ajuda.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Ocorreu um erro desconhecido. Por favor, veja o log para mais detalhes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Encerrando software...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Save Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod Data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Erro ao abrir a pasta %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>A Pasta não existe!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Erro ao abrir os Shader Cache transferíveis</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Falha ao criar o diretório de cache de shaders para este título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>Erro Removendo Conteúdos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation type="unfinished"/>
+ <translation>Erro ao Remover Atualização</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation type="unfinished"/>
+ <translation>Erro Removendo DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>Remover Conteúdo Instalado do Jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation type="unfinished"/>
+ <translation>Remover Atualização Instalada do Jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
- <translation type="unfinished"/>
+ <translation>Remover DLC Instalada do Jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Remover Entrada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Removido com Sucesso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Removida a instalação do jogo base com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>O jogo base não está instalado no NAND e não pode ser removido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Removida a actualização instalada com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Não há actualização instalada neste título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Não há DLC instalado neste título.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Removido DLC instalado %1 com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Apagar o cache de shaders transferível do OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Apagar o cache de shaders transferível do Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Apagar todos os caches de shaders transferíveis?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Remover Configuração Personalizada do Jogo?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Remover Ficheiro</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Error ao Remover Cache de Shader Transferível</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>O Shader Cache para este titulo não existe.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Removido a Cache de Shader Transferível com Sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Falha ao remover a cache de shader transferível.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Erro ao Remover Cache de Pipeline do Driver Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Falha ao remover o pipeline de cache do driver.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Erro ao remover os caches de shaders transferíveis</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Os caches de shaders transferíveis foram removidos com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Falha ao remover o diretório do cache de shaders transferível.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Erro ao Remover Configuração Personalizada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Não existe uma configuração personalizada para este titúlo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Removida a configuração personalizada do jogo com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Falha ao remover a configuração personalizada do jogo.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>A Extração de RomFS falhou!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Houve um erro ao copiar os arquivos RomFS ou o usuário cancelou a operação.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Cheio</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Esqueleto</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Selecione o modo de despejo do RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Por favor, selecione a forma como você gostaria que o RomFS fosse despejado&lt;br&gt;Full irá copiar todos os arquivos para o novo diretório enquanto&lt;br&gt;skeleton criará apenas a estrutura de diretórios.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>Não há espaço suficiente em %1 para extrair o RomFS. Por favor abra espaço ou selecione um diretório diferente em Emulação &gt; Configurar &gt; Sistema &gt; Sistema de arquivos &gt; Extrair raiz</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Extraindo o RomFS ...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Cancelar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Extração de RomFS Bem-Sucedida!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>A operação foi completa com sucesso.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Criar Atalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Isso irá criar um atalho para o AppImage atual. Isso pode não funcionar corretamente se você fizer uma atualização. Continuar?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível criar um atalho na área de trabalho. O caminho &quot;%1&quot; não existe.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível criar um atalho no menu de aplicativos. O caminho &quot;%1&quot; não existe e não pode ser criado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Criar Ícone</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível criar o arquivo de ícone. O caminho &quot;%1&quot; não existe e não pode ser criado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Iniciar %1 com o Emulador Yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Falha ao criar um atalho em %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Atalho criado com sucesso em %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Erro ao abrir %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Selecione o Diretório</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Propriedades</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>As propriedades do jogo não puderam ser carregadas.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Executáveis Switch (%1);;Todos os Ficheiros (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Carregar Ficheiro</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Abrir o directório ROM extraído</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Diretório inválido selecionado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>O diretório que você selecionou não contém um arquivo &apos;Main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Ficheiro Switch Instalável (*.nca *.nsp *.xci);;Arquivo de Conteúdo Nintendo (*.nca);;Pacote de Envio Nintendo (*.nsp);;Imagem de Cartucho NX (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Instalar Ficheiros</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Instalando arquivo &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Instalar Resultados</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Para evitar possíveis conflitos, desencorajamos que os utilizadores instalem os jogos base na NAND.
Por favor, use esse recurso apenas para instalar atualizações e DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Aplicação do sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Arquivo do sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Atualização do aplicativo do sistema</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Pacote de Firmware (Tipo A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Pacote de Firmware (Tipo B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Actualização do Jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC do Jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Título Delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Selecione o tipo de instalação do NCA ...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Por favor, selecione o tipo de título que você gostaria de instalar este NCA como:
(Na maioria dos casos, o padrão &apos;Jogo&apos; é suficiente).</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Falha na instalação</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>O tipo de título que você selecionou para o NCA é inválido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Arquivo não encontrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Arquivo &quot;%1&quot; não encontrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
- <translation type="unfinished"/>
+ <translation>Requisitos de hardware não atendidos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation type="unfinished"/>
+ <translation>Seu sistema não atende os requisitos de harwdare. O relatório de compatibilidade foi desabilitado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Conta Yuzu Ausente</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Para enviar um caso de teste de compatibilidade de jogos, você deve vincular sua conta yuzu.&lt;br&gt;&lt;br/&gt;Para vincular sua conta yuzu, vá para Emulação &amp;gt; Configuração &amp;gt; Rede.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Erro ao abrir URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Não foi possível abrir o URL &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Gravando TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Sobrescrever arquivo do jogador 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Configação inválida detectada</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>O comando portátil não pode ser usado no modo encaixado na base. O Pro controller será selecionado.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>O amiibo atual foi removido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Erro</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>O jogo atual não está procurando amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Arquivo Amiibo (%1);; Todos os Arquivos (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Carregar Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Erro ao carregar dados do Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
- <translation type="unfinished"/>
+ <translation>O arquivo selecionado não é um amiibo válido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
- <translation type="unfinished"/>
+ <translation>O arquivo selecionado já está em uso</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
- <translation type="unfinished"/>
+ <translation>Ocorreu um erro desconhecido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Captura de Tela</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Imagem PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Situação TAS: Rodando %1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Situação TAS: Gravando %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Situação TAS: Repouso %1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Situação TAS: Inválido</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Parar de rodar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Começar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>Parar G&amp;ravação</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>G&amp;ravação</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Escala: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Velocidade: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Velocidade: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Jogo: %1 FPS (Desbloqueado)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Jogo: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Quadro: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU ALTA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTREMA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>ERRO DE GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
- <translation type="unfinished"/>
+ <translation>ANCORADO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
- <translation type="unfinished"/>
+ <translation>PORTÁTIL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>VIZINHO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICÚBICO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSSIANO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>Sem AA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>VOLUME: MUDO</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>VOLUME: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Confirme a rederivação da chave</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5362,37 +5581,37 @@ e opcionalmente faça backups.
Isso irá excluir os seus arquivos de chave gerados automaticamente e executará novamente o módulo de derivação de chave.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Fusíveis em Falta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- BOOT0 em Falta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- BCPKG2-1-Normal-Main em Falta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- PRODINFO em Falta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Componentes de Derivação em Falta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Chaves de encriptação faltando. &lt;br&gt;Por favor, siga &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;o guia de início rápido&lt;/a&gt; para extrair suas chaves, firmware e jogos. &lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5401,39 +5620,49 @@ Isto pode demorar até um minuto, dependendo
do desempenho do seu sistema.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Derivando Chaves</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Selecione o destino de despejo do RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Por favor, selecione qual o RomFS que você gostaria de despejar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Tem a certeza que quer fechar o yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Tem a certeza de que quer parar a emulação? Qualquer progresso não salvo será perdido.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5445,44 +5674,44 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL não está disponível!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Shared contexts do OpenGL não são suportados.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu não foi compilado com suporte OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Erro ao inicializar OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>O seu GPU pode não suportar OpenGL, ou não tem os drivers gráficos mais recentes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Erro ao inicializar o OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>O teu GPU pode não suportar OpenGL 4.6, ou não tem os drivers gráficos mais recentes.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>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.&lt;br&gt;&lt;br&gt;Renderizador GL:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Extensões não suportadas:&lt;br&gt;%2</translation>
</message>
@@ -5541,117 +5770,122 @@ Deseja ignorar isso e sair mesmo assim?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Remover cache de pipeline do OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Remover cache de pipeline do Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Remover todos os caches de pipeline</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Remover Todos os Conteúdos Instalados</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Despejar RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Extrair RomFS para SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Copiar título de ID para a área de transferência</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Navegue para a Entrada da Base de Dados de Jogos</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Criar Atalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation>Adicionar à Área de Trabalho</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation>Adicionar ao Menu de Aplicativos</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Propriedades</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Examinar Sub-pastas</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Remover diretório do Jogo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Mover para Cima</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Mover para Baixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Abrir Localização do diretório</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Limpar</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Nome</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Compatibilidade</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Add-ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Tipo de Arquivo</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Tamanho</translation>
</message>
@@ -5722,7 +5956,7 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Clique duas vezes para adicionar uma nova pasta à lista de jogos</translation>
</message>
@@ -5735,12 +5969,12 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filtro:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Digite o padrão para filtrar</translation>
</message>
@@ -5755,17 +5989,17 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="37"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Nome da Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="51"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Jogo Preferencial</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="61"/>
<source>Max Players</source>
- <translation type="unfinished"/>
+ <translation>Máximo de Jogadores</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="91"/>
@@ -5775,17 +6009,17 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="101"/>
<source>(Leave blank for open game)</source>
- <translation type="unfinished"/>
+ <translation>(Deixe em branco para um jogo aberto)</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="118"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Senha</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="125"/>
<source>Port</source>
- <translation type="unfinished"/>
+ <translation>Porta</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="139"/>
@@ -5795,22 +6029,22 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
<source>Load Previous Ban List</source>
- <translation type="unfinished"/>
+ <translation>Carregar Lista de Banimento Anterior</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="184"/>
<source>Public</source>
- <translation type="unfinished"/>
+ <translation>Público</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="189"/>
<source>Unlisted</source>
- <translation type="unfinished"/>
+ <translation>Não listado</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="197"/>
<source>Host Room</source>
- <translation type="unfinished"/>
+ <translation>Hospedar Sala</translation>
</message>
</context>
<context>
@@ -5824,18 +6058,18 @@ Deseja ignorar isso e sair mesmo assim?</translation>
<location filename="../../src/yuzu/multiplayer/host_room.cpp" line="183"/>
<source>Failed to announce the room to the public lobby. In order to host a room publicly, you must have a valid yuzu account configured in Emulation -&gt; Configure -&gt; Web. If you do not want to publish a room in the public lobby, then select Unlisted instead.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Falha ao anunciar a sala ao lobby público. Para hospedar uma sala pública você deve ter configurado uma conta válida do yuzu em Emulação -&gt; Configurações -&gt; Web. Se você não quer publicar uma sala no lobby público seleciona a opção Não listado.
+Mensagem de depuração:</translation>
</message>
</context>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
- <translation type="unfinished"/>
+ <translation>Mutar/Desmutar Áudio</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5857,113 +6091,114 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
- <translation type="unfinished"/>
+ <translation>Janela Principal</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
- <translation type="unfinished"/>
+ <translation>Volume Menos</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
- <translation type="unfinished"/>
+ <translation>Volume Mais</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Captura de Tela</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
- <translation type="unfinished"/>
+ <translation>Alterar Filtro de Adaptação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
- <translation type="unfinished"/>
+ <translation>Alterar Modo de Ancoragem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
- <translation type="unfinished"/>
+ <translation>Alterar Precisão da GPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
- <translation type="unfinished"/>
+ <translation>Continuar/Pausar Emulação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
- <translation type="unfinished"/>
+ <translation>Sair da Tela Cheia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
- <translation type="unfinished"/>
+ <translation>Sair do yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Tela Cheia</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Carregar Ficheiro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Carregar/Remover Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
- <translation type="unfinished"/>
+ <translation>Reiniciar Emulação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
- <translation type="unfinished"/>
+ <translation>Parar Emulação</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
- <translation type="unfinished"/>
+ <translation>Gravar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
- <translation type="unfinished"/>
+ <translation>Reiniciar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
- <translation type="unfinished"/>
+ <translation>Iniciar/Parar TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
- <translation type="unfinished"/>
+ <translation>Alternar Barra de Filtro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
- <translation type="unfinished"/>
+ <translation>Alternar Limite de Quadros por Segundo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
- <translation type="unfinished"/>
+ <translation>Alternar o Giro do Mouse</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
- <translation type="unfinished"/>
+ <translation>Alternar Barra de Status</translation>
</message>
</context>
<context>
@@ -5984,7 +6219,7 @@ Debug Message: </source>
<translation>Instalar</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Instalar Ficheiros no NAND</translation>
</message>
@@ -5992,7 +6227,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>O texto não pode conter nenhum dos seguintes caracteres:
@@ -6042,78 +6277,83 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="14"/>
<source>Public Room Browser</source>
- <translation type="unfinished"/>
+ <translation>Navegador de Salas Públicas</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="32"/>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="39"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Apelido</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="59"/>
<source>Filters</source>
- <translation type="unfinished"/>
+ <translation>Filtros</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="66"/>
<source>Search</source>
- <translation type="unfinished"/>
+ <translation>Pesquisar</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="76"/>
<source>Games I Own</source>
- <translation type="unfinished"/>
+ <translation>Meus Jogos</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Esconder Salas Vazias</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
- <translation type="unfinished"/>
+ <translation>Esconder Salas Cheias</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
- <translation type="unfinished"/>
+ <translation>Atualizar Lobby</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
- <translation type="unfinished"/>
+ <translation>Senha Necessária para Entrar</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
- <translation type="unfinished"/>
+ <translation>Senha:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Jogadores</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
- <translation type="unfinished"/>
+ <translation>Nome da Sala</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
- <translation type="unfinished"/>
+ <translation>Jogo Preferencial</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
- <translation type="unfinished"/>
+ <translation>Anfitrião</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Atualizando</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
- <translation type="unfinished"/>
+ <translation>Atualizar Lista</translation>
</message>
</context>
<context>
@@ -6186,7 +6426,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="127"/>
<source>&amp;Multiplayer</source>
- <translation type="unfinished"/>
+ <translation>&amp;Multijogador</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="138"/>
@@ -6276,27 +6516,27 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="270"/>
<source>&amp;Browse Public Game Lobby</source>
- <translation type="unfinished"/>
+ <translation>&amp;Navegar no Lobby de Salas Públicas</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="278"/>
<source>&amp;Create Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Criar Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="286"/>
<source>&amp;Leave Room</source>
- <translation type="unfinished"/>
+ <translation>&amp;Sair da Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="291"/>
<source>&amp;Direct Connect to Room</source>
- <translation type="unfinished"/>
+ <translation>Conectar &amp;Diretamente Numa Sala</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="299"/>
<source>&amp;Show Current Room</source>
- <translation type="unfinished"/>
+ <translation>Exibir &amp;Sala Atual</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="307"/>
@@ -6382,48 +6622,48 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="6"/>
<source>Moderation</source>
- <translation type="unfinished"/>
+ <translation>Moderação</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="20"/>
<source>Ban List</source>
- <translation type="unfinished"/>
+ <translation>Lista de Banimentos</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="41"/>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="73"/>
<source>Refreshing</source>
- <translation type="unfinished"/>
+ <translation>Atualizando</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.ui" line="51"/>
<source>Unban</source>
- <translation type="unfinished"/>
+ <translation>Desbanir</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="40"/>
<source>Subject</source>
- <translation type="unfinished"/>
+ <translation>Assunto</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="41"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Tipo</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="83"/>
<source>Forum Username</source>
- <translation type="unfinished"/>
+ <translation>Nome de Usuário do Fórum</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="88"/>
<source>IP Address</source>
- <translation type="unfinished"/>
+ <translation>Endereço IP</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/moderation_dialog.cpp" line="95"/>
<source>Refresh</source>
- <translation type="unfinished"/>
+ <translation>Atualizar</translation>
</message>
</context>
<context>
@@ -6431,17 +6671,17 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="90"/>
<source>Current connection status</source>
- <translation type="unfinished"/>
+ <translation>Status da conexão atual</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="117"/>
<source>Not Connected. Click here to find a room!</source>
- <translation type="unfinished"/>
+ <translation>Não conectado. Clique aqui para procurar uma sala!</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="123"/>
<source>Not Connected</source>
- <translation type="unfinished"/>
+ <translation>Não Conectado</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="129"/>
@@ -6451,7 +6691,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="136"/>
<source>New Messages Received</source>
- <translation type="unfinished"/>
+ <translation>Novas Mensagens Recebidas</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="207"/>
@@ -6462,7 +6702,8 @@ Debug Message: </source>
<location filename="../../src/yuzu/multiplayer/state.cpp" line="208"/>
<source>Failed to update the room information. Please check your Internet connection and try hosting the room again.
Debug Message: </source>
- <translation type="unfinished"/>
+ <translation>Falha ao atualizar as informações da sala. Por favor verifique sua conexão com a internet e tente hospedar a sala novamente.
+Mensagem de Depuração:</translation>
</message>
</context>
<context>
@@ -6470,67 +6711,67 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="11"/>
<source>Username is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Nome de usuário inválido. Deve conter de 4 a 20 caracteres alfanuméricos.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="13"/>
<source>Room name is not valid. Must be 4 to 20 alphanumeric characters.</source>
- <translation type="unfinished"/>
+ <translation>Nome da sala inválido. Deve conter de 4 a 20 caracteres alfanuméricos.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="15"/>
<source>Username is already in use or not valid. Please choose another.</source>
- <translation type="unfinished"/>
+ <translation>Nome de usuário já está em uso ou não é válido. Por favor escolha outro nome de usuário.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="17"/>
<source>IP is not a valid IPv4 address.</source>
- <translation type="unfinished"/>
+ <translation>O endereço IP não é um endereço IPv4 válido.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="19"/>
<source>Port must be a number between 0 to 65535.</source>
- <translation type="unfinished"/>
+ <translation>Porta deve ser um número entre 0 e 65535.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="20"/>
<source>You must choose a Preferred Game to host a room. If you do not have any games in your game list yet, add a game folder by clicking on the plus icon in the game list.</source>
- <translation type="unfinished"/>
+ <translation>Você deve escolher um Jogo Preferível para hospedar uma sala. Se você não possui nenhum jogo na sua lista ainda, adicione um diretório de jogos clicando no ícone de mais na lista de jogos.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="24"/>
<source>Unable to find an internet connection. Check your internet settings.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível encontrar uma conexão com a internet. Verifique suas configurações de internet.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="26"/>
<source>Unable to connect to the host. Verify that the connection settings are correct. If you still cannot connect, contact the room host and verify that the host is properly configured with the external port forwarded.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível conectar no host. Verifique que as configurações de conexão estão corretas. Se você ainda não conseguir conectar, entre em contato com o anfitrião da sala e verifique que o host está configurado corretamente com a porta externa redirecionada.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="30"/>
<source>Unable to connect to the room because it is already full.</source>
- <translation type="unfinished"/>
+ <translation>Não foi possível conectar na sala porque a mesma está cheia.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="32"/>
<source>Creating a room failed. Please retry. Restarting yuzu might be necessary.</source>
- <translation type="unfinished"/>
+ <translation>Erro ao criar a sala. Por favor tente novamente. Reiniciar o yuzu pode ser necessário.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="34"/>
<source>The host of the room has banned you. Speak with the host to unban you or try a different room.</source>
- <translation type="unfinished"/>
+ <translation>O anfitrião da sala baniu você. Fale com o anfitrião para que ele remova seu banimento ou tente uma sala diferente.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="37"/>
<source>Version mismatch! Please update to the latest version of yuzu. If the problem persists, contact the room host and ask them to update the server.</source>
- <translation type="unfinished"/>
+ <translation>Versão não compatível! Por favor atualize o yuzu para a última versão. Se o problema persistir entre em contato com o anfitrião da sala e peça que atualize o servidor.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="39"/>
<source>Incorrect password.</source>
- <translation type="unfinished"/>
+ <translation>Senha inválda.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="40"/>
@@ -6540,7 +6781,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="43"/>
<source>Connection to room lost. Try to reconnect.</source>
- <translation type="unfinished"/>
+ <translation>Conexão com a sala encerrada. Tente reconectar.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="45"/>
@@ -6645,7 +6886,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>INICIAR/PAUSAR</translation>
</message>
@@ -6694,31 +6935,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[não configurado]</translation>
</message>
@@ -6729,14 +6970,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Eixo %1%2</translation>
</message>
@@ -6747,264 +6988,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[Desconhecido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Esquerda</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Direita</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Baixo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Cima</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Começar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Círculo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Cruz</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Quadrado</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Triângulo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Compartilhar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Opções</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[indefinido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[inválido]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Direcional %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Eixo %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Eixo %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Movimentação %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Botão %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[sem uso]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Mais</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Menos</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Capturar</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Toque</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Volante</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Para trás</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Para a frente</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Tarefa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7027,7 +7326,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="197"/>
<source>Type</source>
- <translation type="unfinished"/>
+ <translation>Tipo</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="217"/>
@@ -7373,28 +7672,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Código de erro: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Ocorreu um erro.
Tente novamente ou entre em contato com o desenvolvedor do software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Ocorreu um erro em %1 até %2.
Tente novamente ou entre em contato com o desenvolvedor do software.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7418,20 +7717,81 @@ Tente novamente ou entre em contato com o desenvolvedor do software.</translatio
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Selecione um usuário:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Utilizadores</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Seleccionador de Perfil</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Selecione um usuário:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7481,51 +7841,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Pilha de Chamadas</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>esperando por mutex 0x% 1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>has waiters: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>owner handle: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>esperando por todos os objetos</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>esperando por todos os objectos</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>esperado por nenhuma thread</translation>
</message>
@@ -7533,120 +7862,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>executável</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>pausado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>dormindo</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>aguardando resposta do IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>esperando por objectos</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>A espera da variável de condição</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>esperando pelo árbitro de endereço</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>esperando pra suspender o resumo</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>aguardando</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>inicializado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>terminado</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>desconhecido</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation>PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>núcleo %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processador = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>núcleo ideal =% 1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>máscara de afinidade =% 1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id do segmento =% 1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioridade =%1(atual) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>últimos tiques em execução =%1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>não esperar por mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>esperado por thread</translation>
</message>
@@ -7654,7 +7973,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Árvore de espera</translation>
</message>
diff --git a/dist/languages/ru_RU.ts b/dist/languages/ru_RU.ts
index 801532b20..672fa78b0 100644
--- a/dist/languages/ru_RU.ts
+++ b/dist/languages/ru_RU.ts
@@ -380,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Устройство вывода</translation>
+ <source>Output Device:</source>
+ <translation>Устройство вывода:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Устройство ввода</translation>
+ <source>Input Device:</source>
+ <translation>Устройство ввода:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Режим вывода звука:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Моно</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Стерео</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Объёмный звук</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Использовать общую громкость</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Установить громкость:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Громкость:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Заглушить звук в фоновом режиме</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -526,20 +551,22 @@ This would ban both their forum username and their IP address.</source>
&lt;div&gt;This option improves speed by reducing accuracy of fused-multiply-add instructions on CPUs without native FMA support.&lt;/div&gt;
</source>
<translation>
- &lt;div&gt;Эта опция повышает скорость, уменьшая точность сложенных умноженных инструкций на ЦП без поддержки FMA.&lt;/div&gt;
+ &lt;div&gt;Эта опция повышает скорость за счет снижения точности инструкций fused-multiply-add на ЦП без встроенной поддержки FMA.&lt;/div&gt;
</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="106"/>
<source>Unfuse FMA (improve performance on CPUs without FMA)</source>
- <translation>Не использовать FMA (улучшает производительность на ЦП без FMA)</translation>
+ <translation>Отключить FMA (улучшает производительность на ЦП без FMA)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="113"/>
<source>
&lt;div&gt;This option improves the speed of some approximate floating-point functions by using less accurate native approximations.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Эта опция повышает скорость некоторых приближенных функций с плавающей точкой за счет использования менее точных нативных приближений&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="118"/>
@@ -551,48 +578,56 @@ This would ban both their forum username and their IP address.</source>
<source>
&lt;div&gt;This option improves the speed of 32 bits ASIMD floating-point functions by running with incorrect rounding modes.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Эта опция повышает скорость работы 32-битных ASIMD-функций с плавающей запятой, работая с неправильными режимами округления.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="130"/>
<source>Faster ASIMD instructions (32 bits only)</source>
- <translation>Более быстрые инструкции ASIMD (только 32 бит)</translation>
+ <translation>Ускоренные инструкции ASIMD (только 32 бит)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="137"/>
<source>
&lt;div&gt;This option improves speed by removing NaN checking. Please note this also reduces accuracy of certain floating-point instructions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Эта опция повышает скорость, удаляя проверку NaN. Обратите внимание, что это также снижает точность некоторых инструкций с плавающей точкой.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="142"/>
<source>Inaccurate NaN handling</source>
- <translation>Неправильная обработка NaN</translation>
+ <translation>Неточная обработка NaN</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="149"/>
<source>
&lt;div&gt;This option improves speed by eliminating a safety check before every memory read/write in guest. Disabling it may allow a game to read/write the emulator's memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Эта опция повышает скорость за счет исключения проверки безопасности перед каждым чтением/записью памяти в гостевом режиме. Отключение этой опции может позволить игре читать/записывать память эмулятора.
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="154"/>
<source>Disable address space checks</source>
- <translation type="unfinished"/>
+ <translation>Отключить проверку адресного пространства</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="161"/>
<source>
&lt;div&gt;This option improves speed by relying only on the semantics of cmpxchg to ensure safety of exclusive access instructions. Please note this may result in deadlocks and other race conditions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Эта опция повышает скорость, полагаясь только на семантику cmpxchg для обеспечения безопасности инструкций исключительного доступа. Обратите внимание, что это может привести к полным зависаниям и другим условиям гонки.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="166"/>
<source>Ignore global monitor</source>
- <translation type="unfinished"/>
+ <translation>Игнорировать глобальный мониторинг</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="191"/>
@@ -629,79 +664,95 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it inlines accesses to PageTable::pointers into emitted code.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to go through the Memory::Read/Memory::Write functions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Эта оптимизация ускоряет доступ гостевой программы к памяти.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt; Включение этой оптимизации встраивает доступ к указателям PageTable::pointers в эмулируемый код.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Отключение этой функции заставляет все обращения к памяти проходить через функции Memory::Read/Memory::Write.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="48"/>
<source>Enable inline page tables</source>
- <translation type="unfinished"/>
+ <translation>Включить встроенные таблицы страниц</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="55"/>
<source>
&lt;div&gt;This optimization avoids dispatcher lookups by allowing emitted basic blocks to jump directly to other basic blocks if the destination PC is static.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Эта оптимизация позволяет избежать поиска диспетчера, позволяя эмитированным базовым блокам переходить непосредственно к другим базовым блокам, если конечный ПК статичен.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="60"/>
<source>Enable block linking</source>
- <translation type="unfinished"/>
+ <translation>Разрешить связывание блоков</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="67"/>
<source>
&lt;div&gt;This optimization avoids dispatcher lookups by keeping track potential return addresses of BL instructions. This approximates what happens with a return stack buffer on a real CPU.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Эта оптимизация позволяет избежать поиска диспетчера, отслеживая потенциальные адреса возврата инструкций BL. Это приближено к тому, что происходит с буфером стека возврата на реальном ЦП.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="72"/>
<source>Enable return stack buffer</source>
- <translation type="unfinished"/>
+ <translation>Включить буфер стека возврата</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="79"/>
<source>
&lt;div&gt;Enable a two-tiered dispatch system. A faster dispatcher written in assembly has a small MRU cache of jump destinations is used first. If that fails, dispatch falls back to the slower C++ dispatcher.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Включите двухуровневую систему диспетчеризации. Сначала используется более быстрый диспетчер, написанный на ассемблере и имеющий небольшой кэш MRU для мест назначения переходов. Если он не справляется, диспетчеризация возвращается к более медленному диспетчеру на C++.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="84"/>
<source>Enable fast dispatcher</source>
- <translation type="unfinished"/>
+ <translation>Включить быстрый диспетчер</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="91"/>
<source>
&lt;div&gt;Enables an IR optimization that reduces unnecessary accesses to the CPU context structure.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Включает IR-оптимизацию, которая уменьшает ненужные обращения к структуре контекста ЦП.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="96"/>
<source>Enable context elimination</source>
- <translation type="unfinished"/>
+ <translation>Включить исключение контекста</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="103"/>
<source>
&lt;div&gt;Enables IR optimizations that involve constant propagation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Включает IR-оптимизацию, которая включает распространение констант.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="108"/>
<source>Enable constant propagation</source>
- <translation type="unfinished"/>
+ <translation>Включить распространение констант</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="115"/>
<source>
&lt;div&gt;Enables miscellaneous IR optimizations.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Включает различные IR-оптимизации.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="120"/>
@@ -714,12 +765,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;When enabled, a misalignment is only triggered when an access crosses a page boundary.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;When disabled, a misalignment is triggered on all misaligned accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Если функция включена, смещение срабатывает только тогда, когда доступ пересекает границу страницы.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Если отключено, смещение срабатывает при всех смещенных доступах.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="133"/>
<source>Enable misalignment check reduction</source>
- <translation type="unfinished"/>
+ <translation>Включить уменьшение проверки несоосности</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="140"/>
@@ -728,12 +782,16 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Эта оптимизация ускоряет доступ гостевой программы к памяти.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt; Включение этой оптимизации приводит к тому, что чтение/запись гостевой памяти производится непосредственно в память и использует MMU хоста.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Отключение этой функции заставляет все обращения к памяти использовать программную эмуляцию MMU.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="147"/>
<source>Enable Host MMU Emulation (general memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Включить эмуляцию MMU хоста (инструкции общей памяти)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="154"/>
@@ -742,12 +800,16 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest exclusive memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all exclusive memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Эта оптимизация ускоряет доступ гостевой программы к эксклюзивной памяти.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Включение этой оптимизации приводит к тому, что чтение/запись в эксклюзивную память гостя выполняется непосредственно в память и использует MMU хоста.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt; Отключение этой функции заставляет все эксклюзивные доступы к памяти использовать эмуляцию программного MMU.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="161"/>
<source>Enable Host MMU Emulation (exclusive memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Включить эмуляцию MMU хоста (инструкции исключительной памяти)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="168"/>
@@ -755,12 +817,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up exclusive memory accesses by the guest program.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of fastmem failure of exclusive memory accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Эта оптимизация ускоряет обращение гостевой программы к исключительной памяти.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ее включение снижает накладные расходы, связанные с отказом fastmem при доступе к исключительной памяти.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="174"/>
<source>Enable recompilation of exclusive memory instructions</source>
- <translation type="unfinished"/>
+ <translation>Разрешить перекомпиляцию инструкций исключительной памяти</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="181"/>
@@ -768,12 +833,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Эта оптимизация ускоряет обращение к памяти, позволяя успешное обращение к недопустимой памяти.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Включение этой оптимизации снижает накладные расходы на все обращения к памяти и не влияет на программы, которые не обращаются к недопустимой памяти.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Включить запасные варианты для недопустимых обращений к памяти</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -856,7 +924,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="159"/>
<source>When checked, it enables Nsight Aftermath crash dumps</source>
- <translation type="unfinished"/>
+ <translation>Если включено, включает дампы крашей Nsight Aftermath</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="162"/>
@@ -876,7 +944,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="185"/>
<source>When checked, it will dump all the macro programs of the GPU</source>
- <translation type="unfinished"/>
+ <translation>Если включено, будет дампить все макропрограммы ГП</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="188"/>
@@ -886,110 +954,120 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="198"/>
<source>When checked, it disables the macro Just In Time compiler. Enabling this makes games run slower</source>
- <translation type="unfinished"/>
+ <translation>Если включено, отключает компилятор макроса Just In Time. Включение этого параметра замедляет работу игр</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="201"/>
<source>Disable Macro JIT</source>
- <translation>Отключить Макрос JIT</translation>
+ <translation>Отключить макрос JIT</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Если флажок установлен, он отключает функции макроса HLE. Включение этого параметра замедляет работу игр</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Выключить макрос HLE</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Если включено, yuzu будет записывать статистику о скомпилированном кэше конвейера</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Включить обратную связь о шейдерах</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
- <translation type="unfinished"/>
+ <translation>Если включено, шейдеры выполняются без изменения логики цикла</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
- <translation type="unfinished"/>
+ <translation>Отключить проверку безопасности цикла</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Отладка</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
- <translation type="unfinished"/>
+ <translation>Включить службу отчётов в развернутом виде**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
- <translation type="unfinished"/>
+ <translation>Включить журнал доступа к ФС</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Включите эту опцию, чтобы вывести на консоль последний сгенерированный список аудиокоманд. Влияет только на игры, использующие аудио рендерер.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
- <translation type="unfinished"/>
+ <translation>Дамп аудиокоманд в консоль**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Создавать мини-дамп после краша</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Расширенные</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Режим киоска (Квест)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Включить отладку ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
- <translation type="unfinished"/>
+ <translation>Включить отладочные утверждения</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
- <translation type="unfinished"/>
+ <translation>Включить автоподставку**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Включить все типы контроллеров</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Отключить веб-апплет</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>Позволяет yuzu проверять наличие рабочей среды Vulkan при запуске программы. Отключите эту опцию, если это вызывает проблемы с тем, что внешние программы видят yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>Выполнять проверку Vulkan при запуске</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Это будет автоматически сброшено после закрытия yuzu.</translation>
</message>
@@ -1004,14 +1082,14 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzu необходимо перезапустить, чтобы применить эту настройку.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Веб-апплет не скомпилирован</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>Создание мини-дампа не скомпилировано</translation>
</message>
</context>
<context>
@@ -1059,78 +1137,78 @@ This would ban both their forum username and their IP address.</source>
<translation>Параметры yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Звук</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Отладка</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Файловая система</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Общие</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Графика</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>ГрафикаРасширенные</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Горячие клавиши</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Управление</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Профили</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Сеть</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Система</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Список игр</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Сеть</translation>
</message>
@@ -1305,46 +1383,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Расширенная компоновка памяти (6 ГБ DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Подтверждать выход во время эмуляции</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Спрашивать пользователя при запуске игры</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Приостанавливать эмуляцию в фоновом режиме</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Заглушить звук в фоновом режиме</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Спрятать мышь при неактивности</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Сбросить все настройки</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Это сбросит все настройки и удалит все конфигурации под отдельные игры. При этом не будут удалены пути для игр, профили или профили ввода. Продолжить?</translation>
</message>
@@ -1383,7 +1451,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Выкл.</translation>
</message>
@@ -1409,216 +1477,272 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>Режим верт. синхронизации:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (VSync) не пропускает кадры и не имеет разрывов, но ограничен частотой обновления экрана.
+FIFO Relaxed похож на FIFO, но может иметь разрывы при восстановлении после просадок.
+Mailbox может иметь меньшую задержку, чем FIFO, и не имеет разрывов, но может пропускать кадры.
+Моментальный (без синхронизации) просто показывает все кадры и может иметь разрывы.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Эмуляция NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Отсутствие видеовыхода</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Декодирование видео на ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Декодирование видео на ГП (по умолчанию)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Полноэкранный режим:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Окно без границ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Эксклюзивный полноэкранный</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Соотношение сторон:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Стандартное (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Заставить 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Заставить 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>Заставить 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Растянуть до окна</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Разрешение:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [ЭКСПЕРИМЕНТАЛЬНО]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [ЭКСПЕРИМЕНТАЛЬНО]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [ЭКСПЕРИМЕНТАЛЬНО]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Фильтр адаптации окна:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Ближайший сосед</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Билинейный</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Бикубический</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Гаусс</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (Только для Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Метод сглаживания:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation>Использовать глобальную резкость FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation>Установить резкость FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation>Резкость FSR:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Использовать общий фоновый цвет</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Установить фоновый цвет:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Фоновый цвет:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (ассемблерные шейдеры, только для NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Экспериментально, только для Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>Отключена</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>Верт. синхронизация отключена</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>Рекомендуется</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>Включена</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>Верт. синхронизация включена</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1643,77 +1767,134 @@ This would ban both their forum username and their IP address.</source>
<translation>Уровень точности:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>Вертикальная синхронизация предотвращает разрывы экрана, но некоторые видеокарты имеют более низкую производительность при вертикальной синхронизации. Оставляйте включенным если вы не замечаете разницы в производительности.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>Рекомпрессия ASTC:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>Без сжатия (наилучшее качество)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1 (низкое качество)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Использовать вертикальную синхронизацию</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3 (среднее качество)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>Включите асинхронное отображение (только для Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Выполняет работу в фоновом режиме в ожидании графических команд, не позволяя ГП снижать тактовую частоту.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Принудительно заставить максимальную тактовую частоту (только для Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Включает асинхронное декодирование текстур ASTC, что может уменьшить фризы при загрузке. Эта функция является экспериментальной.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Асинхронное декодирование текстур ASTC (Хак)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>Использует реактивную очистку вместо прогнозируемой. Это позволяет более точно синхронизировать память.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>Включить реактивную очистку</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Включает асинхронную компиляцию шейдеров, что уменьшит зависания из-за шейдеров. Функция является экспериментальной.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Использовать асинхронное построение шейдеров (Хак)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Включает функцию Fast GPU Time. Этот параметр заставит большинство игр работать в максимальном родном разрешении.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Включить Fast GPU Time (Хак)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>Включает пессимистическую очистку буферов. Эта опция заставляет промывать немодифицированные буферы, что может снизить производительность.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Включает кэш конвейера, специфичный для производителя ГП. Эта опция может значительно улучшить время загрузки шейдеров в тех случаях, когда драйвер Vulkan не хранит внутренние файлы кэша конвейера.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>Использовать пессимистическую очистку буферов (Хак)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Использовать конвейерный кэш Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>Включить вычислительные конвейеры, требуемые некоторыми играми. Этот параметр существует только для проприетарных драйверов Intel, и при его включении возможны сбои.
+Вычислительные конвейеры всегда включены для всех остальных драйверов.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>Включить вычислительные конвейеры (только для Intel Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Анизотропная фильтрация:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Автоматически</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Стандартная</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1746,70 +1927,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Ввостановить значения по умолчанию.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Действие</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Горячая клавиша</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Горячая клавиша контроллера</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Конфликтующее сочетание клавиш</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Введенное сочетание уже назначено на: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Домой+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[ожидание]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Недопустимо</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Ввостановить значение по умолчанию</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Очистить</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Конфликтующее сочетание кнопок</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>Сочетание кнопок по умолчанию уже назначено на: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Сочетание клавиш по умолчанию уже назначено на: %1</translation>
</message>
@@ -2101,7 +2277,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Настроить</translation>
</message>
@@ -2127,6 +2303,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Требует перезапуск yuzu</translation>
</message>
@@ -2146,22 +2324,42 @@ This would ban both their forum username and their IP address.</source>
<translation>Навигация контроллера</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Включить прямой драйвер JoyCon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Включить прямой драйвер Pro Controller [ЭКСПЕРИМЕНТАЛЬНО]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>Позволяет неограниченно использовать один и тот же Amiibo в играх, которые обычно разрешают только одно использование.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>Использовать случайный идентификатор Amiibo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Включить панорамирование мыши</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Чувствительность мыши</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Движение и сенсор</translation>
</message>
@@ -2181,57 +2379,57 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Профили управления</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 1</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 3</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 4</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 5</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 6</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 7</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока 8</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Использовать глобальную настройку управления</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Профиль игрока %1</translation>
</message>
</context>
<context>
@@ -2273,7 +2471,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Левый мини-джойстик</translation>
</message>
@@ -2367,14 +2565,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2393,7 +2591,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Плюс</translation>
</message>
@@ -2406,15 +2604,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2471,236 +2669,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Правый мини-джойстик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Очистить</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[не задано]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Инвертировать кнопку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Переключить кнопку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Турбо кнопка</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Инвертировать оси</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Установить порог</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Выберите значение между 0% и 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>Переключить оси</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Установить порог гироскопа</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>Калибровка датчика</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Задать аналоговый мини-джойстик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>После нажатия на ОК, двигайте ваш мини-джойстик горизонтально, а затем вертикально.
Чтобы инвертировать оси, сначала двигайте ваш мини-джойстик вертикально, а затем горизонтально.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Центрировать оси</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Мёртвая зона: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Диапазон модификатора: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Контроллер Pro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Двойные Joy-Con&apos;ы</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Левый Joy-Сon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Правый Joy-Сon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Портативный</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Контроллер GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Контроллер NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Контроллер SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Контроллер N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Старт / Пауза</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Мини-джойстик управления</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Джойстик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Встряхните!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[ожидание]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Новый профиль</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Введите имя профиля:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Создать профиль управления</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Заданное имя профиля недействительно!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Не удалось создать профиль управления &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Удалить профиль управления</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Не удалось удалить профиль управления &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Загрузить профиль управления</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Не удалось загрузить профиль управления &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Сохранить профиль управления</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Не удалось сохранить профиль управления &quot;%1&quot;</translation>
</message>
@@ -2748,7 +2957,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Настроить</translation>
</message>
@@ -2784,7 +2993,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Тест</translation>
</message>
@@ -2804,77 +3013,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Узнать больше&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Номер порта содержит недопустимые символы</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Порт должен быть в районе от 0 до 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP-адрес недействителен</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Этот UDP сервер уже существует</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Невозможно добавить более 8 серверов</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Тестирование</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Настройка</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Тест успешен</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Успешно получена информация с сервера</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Тест провален</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Не удалось получить действительные данные с сервера.&lt;br&gt;Убедитесь, что сервер правильно настроен, а также проверьте адрес и порт.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Тест UDP или калибрация в процессе.&lt;br&gt;Пожалуйста, подождите завершения.</translation>
</message>
@@ -2955,47 +3164,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>Разработчик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Дополнения</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Общие</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Система</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Графика</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Расш. Графика</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Звук</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Профили управления</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Свойства</translation>
</message>
@@ -3203,8 +3412,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>Параметры сенсора Ring</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Параметры датчика виртуального Ring</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3224,33 +3433,90 @@ UUID: %2</translation>
<translation>Мёртвая зона: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Прямой драйвер Joycon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Включить ввод Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Включить</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Значение датчика Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Не подключено</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>По умолчанию</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Очистить</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[не задано]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Инвертировать оси</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Мёртвая зона: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Ошибка при включении ввода кольца</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Прямой драйвер Joycon не активен</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Настройка</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>Текущее выбранное устройство не поддерживает контроллер Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>К текущему устройству не прикреплено кольцо</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Неожиданный результат драйвера %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[ожидание]</translation>
</message>
@@ -3555,8 +3821,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Английский (English)</translation>
+ <source>American English</source>
+ <translation>Американский Английский</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3656,57 +3922,22 @@ UUID: %2</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Моно</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Стерео</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Объёмный звук</translation>
+ <translation>Название устройства</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID консоли:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Режим вывода звука</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Перегенерировать</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>Небезопасное расширение компоновки памяти (8 ГБ DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Настройки системы доступны только тогда, когда игра не запущена.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Это заменит ваш текущий виртуальный Switch новым. Ваш текущий виртуальный Switch будет безвозвратно потерян. Это может иметь неожиданные последствия в играх. Может не сработать, если вы используете устаревшую конфигурацию сохраненных игр. Продолжить?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Внимание</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID консоли: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Внимание: язык &quot;%1&quot; не подходит для региона &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3775,7 +4006,7 @@ UUID: %2</translation>
<translation>Настройка TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Выбрать папку загрузки TAS...</translation>
</message>
@@ -4331,7 +4562,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>Контроллер P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>[&amp;C] Контроллер P1</translation>
</message>
@@ -4344,42 +4575,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>Прямое подключение</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IP-адрес</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Адрес сервера</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Адрес сервера хоста&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4-адрес хоста&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Порт</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Номер порта, который прослушивается хостом&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Псевдоним</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Пароль</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Подключиться</translation>
</message>
@@ -4387,12 +4613,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Подключение</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Подключиться</translation>
</message>
@@ -4400,535 +4626,560 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Анонимные данные собираются для того,&lt;/a&gt; чтобы помочь улучшить работу yuzu. &lt;br/&gt;&lt;br/&gt;Хотели бы вы делиться данными об использовании с нами?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Телеметрия</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>Обнаружена поврежденная установка Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>Не удалось выполнить инициализацию Vulkan во время загрузки.&lt;br&gt;&lt;br&gt;Нажмите &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;здесь для получения инструкций по устранению проблемы&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Загрузка веб-апплета...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Отключить веб-апплет</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>Отключение веб-апплета может привести к неожиданному поведению и должно использоваться только с Super Mario 3D All-Stars. Вы уверены, что хотите отключить веб-апплет?
(Его можно снова включить в настройках отладки.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Количество создаваемых шейдеров на данный момент</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>Текущий выбранный множитель масштабирования разрешения.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Текущая скорость эмуляции. Значения выше или ниже 100% указывают на то, что эмуляция идет быстрее или медленнее, чем на Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Количество кадров в секунду в данный момент. Значение будет меняться между играми и сценами.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Время, которое нужно для эмуляции 1 кадра Switch, не принимая во внимание ограничение FPS или вертикальную синхронизацию. Для эмуляции в полной скорости значение должно быть не больше 16,67 мс.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>[&amp;C] Очистить недавние файлы</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Эмулированная мышь включена</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>Ввод реальной мыши и панорамирование мышью несовместимы. Пожалуйста, отключите эмулированную мышь в расширенных настройках ввода, чтобы разрешить панорамирование мышью.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>[&amp;C] Продолжить</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>[&amp;P] Пауза</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>В yuzu запущена игра</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Предупреждение устаревший формат игры</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Для этой игры вы используете разархивированный формат ROM&apos;а, который является устаревшим и был заменен другими, такими как NCA, NAX, XCI или NSP. В разархивированных каталогах ROM&apos;а отсутствуют иконки, метаданные и поддержка обновлений. &lt;br&gt;&lt;br&gt;Для получения информации о различных форматах Switch, поддерживаемых yuzu, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;просмотрите нашу вики&lt;/a&gt;. Это сообщение больше не будет отображаться.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Ошибка при загрузке ROM&apos;а!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Формат ROM&apos;а не поддерживается.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Произошла ошибка при инициализации видеоядра.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu столкнулся с ошибкой при запуске видеоядра. Обычно это вызвано устаревшими драйверами ГП, включая интегрированные. Проверьте журнал для получения более подробной информации. Дополнительную информацию о доступе к журналу смотрите на следующей странице: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Как загрузить файл журнала&lt;/a&gt;. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Ошибка при загрузке ROM&apos;а! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Пожалуйста, следуйте &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;краткому руководству пользователя yuzu&lt;/a&gt; чтобы пере-дампить ваши файлы&lt;br&gt;Вы можете обратиться к вики yuzu&lt;/a&gt; или Discord yuzu&lt;/a&gt; для помощи.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Произошла неизвестная ошибка. Пожалуйста, проверьте журнал для подробностей.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-х битный)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-х битный)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Закрываем программу...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Сохранения</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Данные модов</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Ошибка при открытии папки %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Папка не существует!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Ошибка при открытии переносного кэша шейдеров</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Не удалось создать папку кэша шейдеров для этой игры.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation>Ошибка при удалении содержимого</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>Ошибка при удалении обновлений</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>Ошибка при удалении DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation>Удалить установленное содержимое игр?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>Удалить установленные обновления игры?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>Удалить установленные DLC игры?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Удалить запись</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Успешно удалено</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Установленная игра успешно удалена.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Игра не установлена в NAND и не может быть удалена.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Установленное обновление успешно удалено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Для этой игры не было установлено обновление.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Для этой игры не были установлены DLC.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Установленное DLC %1 было успешно удалено</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Удалить переносной кэш шейдеров OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Удалить переносной кэш шейдеров Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Удалить весь переносной кэш шейдеров?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Удалить пользовательскую настройку игры?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Удалить файл</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Ошибка при удалении переносного кэша шейдеров</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Кэш шейдеров для этой игры не существует.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Переносной кэш шейдеров успешно удалён.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Не удалось удалить переносной кэш шейдеров.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Ошибка при удалении конвейерного кэша Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Не удалось удалить конвейерный кэш шейдеров.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Ошибка при удалении переносного кэша шейдеров</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Переносной кэш шейдеров успешно удален.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Ошибка при удалении папки переносного кэша шейдеров.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Ошибка при удалении пользовательской настройки</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Пользовательская настройка для этой игры не существует.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Пользовательская настройка игры успешно удалена.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Не удалось удалить пользовательскую настройку игры.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Не удалось извлечь RomFS!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Произошла ошибка при копировании файлов RomFS или пользователь отменил операцию.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Полный</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Скелет</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Выберите режим дампа RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Пожалуйста, выберите, как вы хотите выполнить дамп RomFS. &lt;br&gt;Полный скопирует все файлы в новую папку, в то время как &lt;br&gt;скелет создаст только структуру папок.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>В %1 недостаточно свободного места для извлечения RomFS. Пожалуйста, освободите место или выберите другую папку для дампа в Эмуляция &gt; Настройка &gt; Система &gt; Файловая система &gt; Корень дампа</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Извлечение RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Отмена</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Извлечение RomFS прошло успешно!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Операция выполнена.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Создать ярлык</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Это создаст ярлык для текущего AppImage. Он может не работать после обновлений. Продолжить?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Не удается создать ярлык на рабочем столе. Путь &quot;%1&quot; не существует.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Невозможно создать ярлык в меню приложений. Путь &quot;%1&quot; не существует и не может быть создан.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Создать иконку</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Невозможно создать файл иконки. Путь &quot;%1&quot; не существует и не может быть создан.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Запустить %1 с помощью эмулятора yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Не удалось создать ярлык в %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Успешно создан ярлык в %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Ошибка открытия %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Выбрать папку</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Свойства</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Не удалось загрузить свойства игры.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Исполняемый файл Switch (%1);;Все файлы (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Загрузить файл</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Открыть папку извлечённого ROM&apos;а</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Выбрана недопустимая папка</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Папка, которую вы выбрали, не содержит файла &apos;main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Устанавливаемый файл Switch (*.nca, *.nsp, *.xci);;Архив контента Nintendo (*.nca);;Пакет подачи Nintendo (*.nsp);;Образ картриджа NX (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Установить файлы</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>Остался %n файл</numerusform><numerusform>Осталось %n файл(ов)</numerusform><numerusform>Осталось %n файл(ов)</numerusform><numerusform>Осталось %n файл(ов)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Установка файла &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Результаты установки</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Чтобы избежать возможных конфликтов, мы не рекомендуем пользователям устанавливать игры в NAND.
Пожалуйста, используйте эту функцию только для установки обновлений и DLC.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n файл был недавно установлен
@@ -4938,7 +5189,7 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n файл был перезаписан
@@ -4948,7 +5199,7 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n файл не удалось установить
@@ -4958,377 +5209,388 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Системное приложение</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Системный архив</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Обновление системного приложения</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Пакет прошивки (Тип А)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Пакет прошивки (Тип Б)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Игра</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Обновление игры</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC игры</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Дельта-титул</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Выберите тип установки NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Пожалуйста, выберите тип приложения, который вы хотите установить для этого NCA:
(В большинстве случаев, подходит стандартный выбор «Игра».)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Ошибка установки</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Тип приложения, который вы выбрали для NCA, недействителен.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Файл не найден</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Файл &quot;%1&quot; не найден</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>ОК</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>Не удовлетворены системные требования</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation>Ваша система не соответствует рекомендуемым системным требованиям. Отчеты о совместимости были отключены.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Отсутствует аккаунт yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Чтобы отправить отчет о совместимости игры, необходимо привязать свою учетную запись yuzu.&lt;br&gt;&lt;br/&gt;Чтобы привязать свою учетную запись yuzu, перейдите в раздел Эмуляция &amp;gt; Параметры &amp;gt; Сеть.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Ошибка при открытии URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Не удалось открыть URL: &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Запись TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Перезаписать файл игрока 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Обнаружена недопустимая конфигурация</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Портативный контроллер не может быть использован в режиме док-станции. Будет выбран контроллер Pro.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>Текущий amiibo был убран</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Ошибка</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>Текущая игра не ищет amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Файл Amiibo (%1);; Все Файлы (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Загрузить Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Ошибка загрузки данных Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>Выбранный файл не является допустимым amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>Выбранный файл уже используется</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>Произошла неизвестная ошибка</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Сделать скриншот</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Изображение PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Состояние TAS: Выполняется %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Состояние TAS: Записывается %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Состояние TAS: Простой %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Состояние TAS: Неверное</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>[&amp;S] Остановка</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>[&amp;S] Начать</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>[&amp;E] Закончить запись</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>[&amp;E] Запись</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Постройка: %n шейдер</numerusform><numerusform>Постройка: %n шейдер(ов)</numerusform><numerusform>Постройка: %n шейдер(ов)</numerusform><numerusform>Постройка: %n шейдер(ов)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Масштаб: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Скорость: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Скорость: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Игра: %1 FPS (Неограниченно)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Игра: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Кадр: %1 мс</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>ГП НОРМАЛЬНО</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>ГП ВЫСОКО</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>ГП ЭКСТРИМ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>ГП ОШИБКА</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>В ДОК-СТАНЦИИ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>ПОРТАТИВНЫЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>БЛИЖАЙШИЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>БИЛИНЕЙНЫЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>БИКУБИЧЕСКИЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>ГАУСС</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>БЕЗ СГЛАЖИВАНИЯ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>ГРОМКОСТЬ: ЗАГЛУШЕНА</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>ГРОМКОСТЬ: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Подтвердите перерасчет ключа</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5339,43 +5601,43 @@ This will delete your autogenerated key files and re-run the key derivation modu
<translation>Вы собираетесь принудительно пересчитать все ваши ключи.
Если вы не знаете, что это значит или что вы делаете,
это потенциально разрушительное действие.
-Пожалуйста, убедитесь, что это то, что вы хотите
+Пожалуйста, убедитесь, что это то, что вы хотите сделать
и при желании сделайте резервные копии.
Это удалит ваши автоматически сгенерированные файлы ключей и повторно запустит модуль расчета ключей.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Отсутствуют предохранители</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Отсутствует BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- Отсутствует BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- Отсутствует PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Компоненты расчета отсутствуют</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Ключи шифрования отсутствуют. &lt;br&gt;Пожалуйста, следуйте &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;краткому руководству пользователя yuzu&lt;/a&gt;, чтобы получить все ваши ключи, прошивку и игры.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5384,39 +5646,49 @@ on your system&apos;s performance.</source>
от производительности вашей системы.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Получение ключей</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>Не удалось расшифровать системный архив</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>Ключи шифрования не смогли расшифровать прошивку. &lt;br&gt;Пожалуйста, следуйте &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;краткому руководству пользователя yuzu&lt;/a&gt; чтобы получить все ваши ключи, прошивку и игры.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Выберите цель для дампа RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Пожалуйста, выберите, какой RomFS вы хотите сдампить.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Вы уверены, что хотите закрыть yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Вы уверены, что хотите остановить эмуляцию? Любой несохраненный прогресс будет потерян.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5428,44 +5700,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL не доступен!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Общие контексты OpenGL не поддерживаются.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu не был скомпилирован с поддержкой OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Ошибка при инициализации OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Ваш ГП может не поддерживать OpenGL, или у вас установлен устаревший графический драйвер.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Ошибка при инициализации OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Ваш ГП может не поддерживать OpenGL 4.6, или у вас установлен устаревший графический драйвер.&lt;br&gt;&lt;br&gt;Рендерер GL:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>Ваш ГП может не поддерживать одно или несколько требуемых расширений OpenGL. Пожалуйста, убедитесь в том, что у вас установлен последний графический драйвер.&lt;br&gt;&lt;br&gt;Рендерер GL:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Неподдерживаемые расширения:&lt;br&gt;%2</translation>
</message>
@@ -5524,117 +5796,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Удалить кэш конвейера OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Удалить кэш конвейера Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Удалить весь кэш конвейеров</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Удалить все установленное содержимое</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Дамп RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Сдампить RomFS в SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Скопировать ID приложения в буфер обмена</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Перейти к странице GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Создать ярлык</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Добавить на Рабочий стол</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Добавить в меню приложений</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Свойства</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Сканировать подпапки</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Удалить папку с играми</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Переместить вверх</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Переместить вниз</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Открыть расположение папки</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Очистить</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Имя</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Совместимость</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Дополнения</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Тип файла</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Размер</translation>
</message>
@@ -5705,7 +5982,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Нажмите дважды, чтобы добавить новую папку в список игр</translation>
</message>
@@ -5718,12 +5995,12 @@ Would you like to bypass this and exit anyway?</source>
<translation><numerusform>%1 из %n результат(ов)</numerusform><numerusform>%1 из %n результат(ов)</numerusform><numerusform>%1 из %n результат(ов)</numerusform><numerusform>%1 из %n результат(ов)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Поиск:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Введите текст для поиска</translation>
</message>
@@ -5814,12 +6091,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>Включение/отключение звука</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5841,111 +6117,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>Основное окно</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>Уменьшить громкость звука</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>Повысить громкость звука</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Сделать скриншот</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>Изменить адаптирующий фильтр</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>Изменить режим консоли</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>Изменить точность ГП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Продолжение/Пауза эмуляции</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Выйти из полноэкранного режима</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>Выйти из yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Полный экран</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Загрузить файл</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Загрузить/удалить Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Перезапустить эмуляцию</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Остановить эмуляцию</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>Запись TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>Сброс TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>Старт/Стоп TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>Переключить панель поиска</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>Переключить ограничение частоты кадров</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>Переключить панорамирование мыши</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>Переключить панель состояния</translation>
</message>
@@ -5968,7 +6245,7 @@ Debug Message: </source>
<translation>Установить</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Установить файлы в NAND</translation>
</message>
@@ -5976,7 +6253,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>В тексте недопустимы следующие символы:
@@ -6051,51 +6328,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Скрыть пустые комнаты</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Скрыть полные комнаты</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Обновить лобби</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Для входа необходим пароль</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Игроки</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Название комнаты</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Предпочтительная игра</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Хост</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Обновление</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Обновить список</translation>
</message>
@@ -6633,7 +6915,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>СТАРТ/ПАУЗА</translation>
</message>
@@ -6682,31 +6964,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[не задано]</translation>
</message>
@@ -6717,14 +6999,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Ось %1%2</translation>
</message>
@@ -6735,264 +7017,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[неизвестно]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Влево</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Вправо</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Вниз</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Вверх</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Круг</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Крестик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Квадрат</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Треугольник</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Share</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Options</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[не определено]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[недопустимо]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Крест. %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Ось %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Ось %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Движение %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Кнопка %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[не используется]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Левый стик</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Правый стик</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Плюс</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Минус</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Захват</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Сенсор</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Колёсико</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Назад</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Вперёд</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Задача</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Дополнительная</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3Крест. %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3Ось %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Кнопка %4</translation>
</message>
</context>
<context>
@@ -7361,28 +7701,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Код ошибки: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Произошла ошибка.
Пожалуйста, попробуйте еще раз или свяжитесь с разработчиком ПО.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Произошла ошибка на %1 в %2.
Пожалуйста, попробуйте еще раз или свяжитесь с разработчиком ПО.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7406,20 +7746,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Выберите пользователя:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Пользователи</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Создатель профиля</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Выбор профиля</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Редактор иконки профиля</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Редактор никнейма профиля</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>Кто будет получать очки?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>Кто использует Nintendo eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>Кто совершает эту покупку?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>Кто публикует?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Выберите пользователя для привязки к учетной записи Nintendo.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>Изменить настройки для какого пользователя?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>Форматировать данные для какого пользователя?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>Какой пользователь будет переходить на другую консоль?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>Отправить сохранение какому пользователю?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Выберите пользователя:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7469,180 +7870,139 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Стэк вызовов</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
- <translation type="unfinished"/>
+ <translation>не ожидается ни одним потоком</translation>
</message>
</context>
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
- <translation type="unfinished"/>
+ <translation>runnable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
- <translation type="unfinished"/>
+ <translation>paused</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
- <translation type="unfinished"/>
+ <translation>sleeping</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
- <translation type="unfinished"/>
+ <translation>ожидание ответа IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
- <translation type="unfinished"/>
+ <translation>ожидание объектов</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
- <translation type="unfinished"/>
+ <translation>waiting for condition variable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
- <translation type="unfinished"/>
+ <translation>waiting for address arbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
- <translation type="unfinished"/>
+ <translation>waiting for suspend resume</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
- <translation type="unfinished"/>
+ <translation>waiting</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
- <translation type="unfinished"/>
+ <translation>initialized</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
- <translation type="unfinished"/>
+ <translation>terminated</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
- <translation type="unfinished"/>
+ <translation>неизвестно</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
- <translation type="unfinished"/>
+ <translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
- <translation type="unfinished"/>
+ <translation>ядро %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation type="unfinished"/>
+ <translation>процессор = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
- <translation type="unfinished"/>
+ <translation>маска сходства = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
- <translation type="unfinished"/>
+ <translation>идентификатор потока = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
- <translation type="unfinished"/>
+ <translation>приоритет = %1(текущий) / %2(обычный)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation type="unfinished"/>
+ <translation>last running ticks = %1</translation>
</message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
- <translation type="unfinished"/>
+ <translation>ожидается потоком</translation>
</message>
</context>
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>[&amp;W] Дерево ожидания</translation>
</message>
diff --git a/dist/languages/sv.ts b/dist/languages/sv.ts
index 2b9738cb3..7aa5f082e 100644
--- a/dist/languages/sv.ts
+++ b/dist/languages/sv.ts
@@ -122,7 +122,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="330"/>
<source>%1 has been unbanned</source>
- <translation type="unfinished"/>
+ <translation>%1 har haft dess bannlysning upphävd.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="446"/>
@@ -242,22 +242,22 @@ Detta kommer bannlysa både dennes användarnamn på forum samt IP-adress.</tran
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Startar Spelet? &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Ja Spelet öppnar till utmatning av video eller audio</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Nej Spelet öppnar ej förbi &quot;Startar...&quot; skärmen</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Ja Spelet öppnar förbi introt/menyn och in i själva spelandet</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
@@ -380,36 +380,61 @@ Detta kommer bannlysa både dennes användarnamn på forum samt IP-adress.</tran
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
+ <source>Output Device:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Inmatningsenhet</translation>
+ <source>Input Device:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Använd global volym</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Ställ in volym:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Volym:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -914,102 +939,112 @@ avgjord kod.&lt;/div&gt;
<translation>Stäng av Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Felsökning</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Avancerat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk(Quest)-läge</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
- <translation type="unfinished"/>
+ <translation>Avaktivera Webbappletten</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation type="unfinished"/>
</message>
@@ -1024,12 +1059,12 @@ avgjord kod.&lt;/div&gt;
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1079,78 +1114,78 @@ avgjord kod.&lt;/div&gt;
<translation>yuzu Konfigurering</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Ljud</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Debug</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Filsystem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Allmänt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Avancerade grafikinställningar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Snabbknappar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Kontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profiler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Nätverk</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Spellista</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Webb</translation>
</message>
@@ -1325,46 +1360,36 @@ avgjord kod.&lt;/div&gt;
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Utökad minnesöversikt (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Godkänn avslut medans emulering pågår</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Fråga efter användare vid spelstart</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Pausa emulationen när fönstret är i bakgrunden</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Göm mus när inaktiv</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Återställ Alla Inställningar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation type="unfinished"/>
</message>
@@ -1403,7 +1428,7 @@ avgjord kod.&lt;/div&gt;
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Ingen</translation>
</message>
@@ -1429,216 +1454,269 @@ avgjord kod.&lt;/div&gt;
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Bildförhållande:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Standard (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Tvinga 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Tvinga 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Tänj över fönster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Använd global bakgrundsfärg</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Sätt backgrundsfärg:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Bakgrundsfärg:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1663,77 +1741,133 @@ avgjord kod.&lt;/div&gt;
<translation>Noggranhetsnivå:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync hindrar skärmen från tearing, men vissa grafikkort har lägre prestanda med VSync på. Ha det på om du inte noterar någon prestandaskillnad.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Sätt på asynchronous shader-kompilering, vilket kan minska shader stutter. Denna funktion är experimentiell.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anisotropisk filtrering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1766,70 +1900,65 @@ avgjord kod.&lt;/div&gt;
<translation>Återställ till standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Handling</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Snabbtangent</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Motstridig Tangentsekvens</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Den valda tangentsekvensen är redan tilldelad: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[väntar]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Återställ standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Rensa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Standardtangentsekvensen är redan tilldelad: %1</translation>
</message>
@@ -2121,7 +2250,7 @@ avgjord kod.&lt;/div&gt;
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Konfigurera</translation>
</message>
@@ -2147,6 +2276,8 @@ avgjord kod.&lt;/div&gt;
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation type="unfinished"/>
</message>
@@ -2166,22 +2297,42 @@ avgjord kod.&lt;/div&gt;
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Rörelse / Touch</translation>
</message>
@@ -2293,7 +2444,7 @@ avgjord kod.&lt;/div&gt;
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Vänster Spak</translation>
</message>
@@ -2387,14 +2538,14 @@ avgjord kod.&lt;/div&gt;
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2413,7 +2564,7 @@ avgjord kod.&lt;/div&gt;
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Pluss</translation>
</message>
@@ -2426,15 +2577,15 @@ avgjord kod.&lt;/div&gt;
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2491,235 +2642,246 @@ avgjord kod.&lt;/div&gt;
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Höger Spak</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Rensa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[ej angett]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Dödzon: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Modifieringsräckvidd: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Prokontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Dubbla Joycons</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Vänster Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Höger Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Handhållen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube-kontroll</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>NES-kontroll</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>SNES-kontroll</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>N64-kontroll</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[väntar]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Ny profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation type="unfinished"/>
</message>
@@ -2767,7 +2929,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Konfigurera</translation>
</message>
@@ -2803,7 +2965,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Test</translation>
</message>
@@ -2823,77 +2985,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Lär dig mer&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Testar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Konfigurerar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test framgångsrikt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Tog emot data från servern framgångsrikt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test misslyckades</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Kunde inte ta emot giltig data från servern.&lt;br&gt;Var vänlig verifiera att servern är korrekt uppsatt och att adressen och porten är korrekta.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP Test eller kalibreringskonfiguration är igång.&lt;br&gt;Var vänlig vänta för dem att slutföras.</translation>
</message>
@@ -2974,47 +3136,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>Utvecklare</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Tillägg</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Allmänt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Avancerade Grafikinställningar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Ljud</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>egenskaper</translation>
</message>
@@ -3221,20 +3383,20 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="123"/>
<source>Pull</source>
- <translation type="unfinished"/>
+ <translation>Dra</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="133"/>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="172"/>
<source>Push</source>
- <translation type="unfinished"/>
+ <translation>Knuff</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="206"/>
@@ -3242,33 +3404,90 @@ UUID: %2</source>
<translation>Dödzon: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Aktivera</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Återställ till standard</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Rensa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[ej angett]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Dödzon: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Konfigurerar</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[väntar]</translation>
</message>
@@ -3573,8 +3792,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Engelska</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3677,54 +3896,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Konsol-ID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Ljudutgångsläge</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Regenerera</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Systeminställningar är endast tillgängliga när spel inte körs.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Detta kommer att ersätta nuvarande virtuell Switch med en ny. Nuvarande virtuell Switch kommer att permanent tas bort. Detta kan ha oväntade konsekvenser i spel. Detta kan misslyckas om en utdaterad konfig sparning används. Vill du fortsätta?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Varning</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Konsol ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3793,7 +3977,7 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation type="unfinished"/>
</message>
@@ -4349,7 +4533,7 @@ Dra punkter för att ändra position, eller dubbelklicka tabellceller för att r
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation type="unfinished"/>
</message>
@@ -4362,977 +4546,1008 @@ Dra punkter för att ändra position, eller dubbelklicka tabellceller för att r
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Smeknamn</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Lösenord</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Anslut</translation>
</message>
</context>
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
- <translation type="unfinished"/>
+ <translation>Ansluter</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
- <translation type="unfinished"/>
+ <translation>Anslut</translation>
</message>
</context>
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonym data skickas &lt;/a&gt;För att förbättra yuzu. &lt;br/&gt;&lt;br/&gt;Vill du dela med dig av din användarstatistik med oss?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetri</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
- <translation type="unfinished"/>
+ <translation>Felaktig Vulkaninstallation Upptäckt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Laddar WebApplet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
- <translation type="unfinished"/>
+ <translation>Avaktivera Webbappletten</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Mängden shaders som just nu byggs</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Nuvarande emuleringshastighet. Värden över eller under 100% indikerar på att emulationen körs snabbare eller långsammare än en Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Hur många bilder per sekund som spelet just nu visar. Detta varierar från spel till spel och scen till scen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Tid det tar att emulera en Switch bild, utan att räkna med framelimiting eller v-sync. För emulering på full hastighet så ska det vara som mest 16.67 ms. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Emulerad datormus är aktiverad</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Paus</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Varning Föråldrat Spelformat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Du använder det dekonstruerade ROM-formatet för det här spelet. Det är ett föråldrat format som har överträffats av andra som NCA, NAX, XCI eller NSP. Dekonstruerade ROM-kataloger saknar ikoner, metadata och uppdatering.&lt;br&gt;&lt;br&gt;För en förklaring av de olika format som yuzu stöder, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;kolla in vår wiki&lt;/a&gt;. Det här meddelandet visas inte igen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Fel vid laddning av ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>ROM-formatet stöds inte.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Ett fel inträffade vid initiering av videokärnan.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Ett okänt fel har uppstått. Se loggen för mer information.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Spardata</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod-data</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Fel Öppnar %1 Mappen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Mappen finns inte!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Fel Under Öppning Av Överförbar Shadercache</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Ta bort katalog</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Framgångsrikt borttagen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Tog bort det installerade basspelet framgångsrikt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Basspelet är inte installerat i NAND och kan inte tas bort.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Tog bort den installerade uppdateringen framgångsrikt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Det finns ingen uppdatering installerad för denna titel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Det finns inga DLC installerade för denna titel.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Tog framgångsrikt bort den %1 installerade DLCn.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Ta Bort Anpassad Spelkonfiguration?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Radera fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Fel När Överförbar Shader Cache Raderades</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>En shader cache för denna titel existerar inte.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Raderade den överförbara shadercachen framgångsrikt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Misslyckades att ta bort den överförbara shadercache</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Fel När Anpassad Konfiguration Raderades</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>En anpassad konfiguration för denna titel existerar inte.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Tog bort den anpassade spelkonfigurationen framgångsrikt.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Misslyckades att ta bort den anpassade spelkonfigurationen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>RomFS Extraktion Misslyckades!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Det uppstod ett fel vid kopiering av RomFS filer eller användaren avbröt operationen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Full</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Skelett</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Välj RomFS Dump-Läge</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Välj hur du vill att RomFS ska dumpas. &lt;br&gt;Full kommer att kopiera alla filer i den nya katalogen medan &lt;br&gt;skelett bara skapar katalogstrukturen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Extraherar RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Avbryt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS Extraktion Lyckades!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Operationen var lyckad.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Fel under öppning av %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Välj Katalog</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Egenskaper</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Spelegenskaperna kunde inte laddas.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch Körbar (%1);;Alla Filer (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Ladda Fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Öppna Extraherad ROM-Katalog</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Ogiltig Katalog Vald</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Katalogen du har valt innehåller inte en &apos;main&apos;-fil.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Installerbar Switch-fil (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Installera filer</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Installerar Fil &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Installera resultat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Systemapplikation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Systemarkiv</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Systemapplikationsuppdatering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Firmwarepaket (Typ A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Firmwarepaket (Typ B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Spel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Speluppdatering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Spel DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta Titel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Välj NCA-Installationsläge...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Välj vilken typ av titel du vill installera som:
(I de flesta fallen, standard &apos;Spel&apos; är bra.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Misslyckades med Installationen</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Den titeltyp du valt för NCA är ogiltig.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Filen hittades inte</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Filen &quot;%1&quot; hittades inte</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
- <translation type="unfinished"/>
+ <translation> Hårdvarukraven uppfylls ej</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>yuzu Konto hittades inte</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>För att skicka ett spelkompatibilitetstest, du måste länka ditt yuzu-konto.&lt;br&gt;&lt;br/&gt;För att länka ditt yuzu-konto, gå till Emulering &amp;gt, Konfigurering &amp;gt, Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Fel när URL öppnades</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Oförmögen att öppna URL:en &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
- <translation type="unfinished"/>
+ <translation>TAS Inspelning</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
- <translation type="unfinished"/>
+ <translation>Överskriv spelare 1:s fil?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
- <translation type="unfinished"/>
+ <translation>Ogiltig konfiguration upptäckt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
- <translation type="unfinished"/>
+ <translation>Den aktuella amiibon har avlägsnats</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Fel</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
- <translation type="unfinished"/>
+ <translation>Det aktuella spelet letar ej efter amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo Fil (%1);; Alla Filer (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Ladda Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Fel vid laddning av Amiibodata</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
- <translation type="unfinished"/>
+ <translation>Den valda filen är inte en giltig amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
- <translation type="unfinished"/>
+ <translation>Den valda filen är redan använd</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
- <translation type="unfinished"/>
+ <translation>Ett okänt fel har inträffat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Skärmdump</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG Bild (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
- <translation type="unfinished"/>
+ <translation>TAStillstånd: pågående %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
- <translation type="unfinished"/>
+ <translation>TAStillstånd: spelar in %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
- <translation type="unfinished"/>
+ <translation>TAStillstånd: inaktiv %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
- <translation type="unfinished"/>
+ <translation>TAStillstånd: ogiltigt</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Hastighet: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Hastighet: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Spel: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Ruta: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Bekräfta Nyckel Rederivering</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5349,37 +5564,37 @@ och eventuellt göra säkerhetskopior.
Detta raderar dina autogenererade nyckelfiler och kör nyckelderivationsmodulen.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Saknade säkringar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Saknar BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- Saknar BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- Saknar PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Deriveringsdelar saknas</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5388,39 +5603,49 @@ Detta kan ta upp till en minut beroende
på systemets prestanda.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Härleda Nycklar</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Välj RomFS Dumpa Mål</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Välj vilken RomFS du vill dumpa.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Är du säker på att du vill stänga yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Är du säker på att du vill stoppa emuleringen? Du kommer att förlora osparade framsteg.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5432,44 +5657,44 @@ Vill du strunta i detta och avsluta ändå?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL inte tillgängligt!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu har inte komilerats med OpenGL support.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Fel under initialisering av OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation type="unfinished"/>
</message>
@@ -5528,117 +5753,122 @@ Vill du strunta i detta och avsluta ändå?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Ta Bort Allt Installerat Innehåll</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Dumpa RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Kopiera Titel ID till Urklipp</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Navigera till GameDB-sida</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Egenskaper</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Skanna Underkataloger</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Radera Spelkatalog</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Flytta upp</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Flytta ner</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Öppna Sökvägsplats</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Rensa</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Namn</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Kompatibilitet</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Add-Ons</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Filtyp</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Storlek</translation>
</message>
@@ -5709,7 +5939,7 @@ Vill du strunta i detta och avsluta ändå?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Dubbelklicka för att lägga till en ny mapp i spellistan.</translation>
</message>
@@ -5722,12 +5952,12 @@ Vill du strunta i detta och avsluta ändå?</translation>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filter:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Ange mönster för att filtrera</translation>
</message>
@@ -5767,7 +5997,7 @@ Vill du strunta i detta och avsluta ändå?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="118"/>
<source>Password</source>
- <translation type="unfinished"/>
+ <translation>Lösenord</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="125"/>
@@ -5817,12 +6047,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5844,111 +6073,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Skärmdump</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Fullskärm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Ladda Fil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5971,7 +6201,7 @@ Debug Message: </source>
<translation>Installera</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Installera filer till NAND</translation>
</message>
@@ -5979,7 +6209,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation type="unfinished"/>
@@ -6034,7 +6264,7 @@ Debug Message: </source>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="32"/>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="39"/>
<source>Nickname</source>
- <translation type="unfinished"/>
+ <translation>Smeknamn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="59"/>
@@ -6053,51 +6283,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Spelare</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6627,7 +6862,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>START/PAUSE</translation>
</message>
@@ -6676,31 +6911,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[inte inställd]</translation>
</message>
@@ -6711,14 +6946,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Axel %1%2</translation>
</message>
@@ -6729,264 +6964,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[okänd]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Vänster</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Höger</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Ner</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Upp</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Cirkel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Kors</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Fyrkant</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Triangel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Dela</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Val</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[odefinerad]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[felaktig]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Hatt %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Axel %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Axel %3,%4%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Rörelse %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Knapp %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[oanvänd]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Pluss</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Minus</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Hem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Fånga</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Touch</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Hjul</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Bakåt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Framåt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Åtgärd</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Extra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -7355,28 +7648,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Felkod: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Ett fel har inträffat.
Vänligen försök igen eller kontakta utvecklaren av programvaran.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Ett fel har inträffat på %1 vid %2.
Vänligen försök igen eller kontakta utvecklaren av programvaran.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7400,20 +7693,81 @@ Vänligen försök igen eller kontakta utvecklaren av programvaran.</translation
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Välj en användare:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Användare</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Profilväljare</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Välj en användare:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7459,51 +7813,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Samtal stack</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>väntar på mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>har waiters: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>ägarhandtag: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>väntar på alla föremål</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>väntar på ett av följande föremål</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>Ej väntad av någon tråd</translation>
</message>
@@ -7511,120 +7834,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>pausad</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>sovande</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>väntar på IPC svar</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>väntar på föremål</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>väntar för skickvariabel</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>väntar på adressbryter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>väntar</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>initialiserad</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>avslutad</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>okänd</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>kärna %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>idealisk kärna = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>affinitetsmask = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>tråd-id = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>prioritet = %1(nuvarande) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>sista springande fästingar = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>väntar inte på mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>väntade med tråd</translation>
</message>
@@ -7632,7 +7945,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation type="unfinished"/>
</message>
diff --git a/dist/languages/tr_TR.ts b/dist/languages/tr_TR.ts
index 4ec3b0bbc..8a1ebdc7e 100644
--- a/dist/languages/tr_TR.ts
+++ b/dist/languages/tr_TR.ts
@@ -242,97 +242,97 @@ Bu işlem onların hem forum kullanıcı adını hem de IP adresini banlar.</tra
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Oyun açılıyor mu?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Evet Oyun açılıyor ve ses ve/veya görüntü çıktısı veriyor</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Hayır Oyun &quot;Başlatılıyor...&quot; ekranında takılı kalıyor</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Evet Oyun, ana menü/intro bölümü geçildikten sonra asıl oyuna başlatılabiliyor.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Hayır Oyun yüklenirken veya ana menüdeyken takılı kalıyor.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Oyun, oynanma aşamasına gelebiliyor mu?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Evet Oyundayken takılı kalma yaşanmıyor.</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Hayır Oyun, oyundayken donuyor veya çöküyor</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Oyun, oynanış sırasında takılmadan veya çökmeden oynanabiliyor mu?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Evet Oyun, herhangi bir kısmı atlanmadan bitirilebiliyor</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Hayır Oyun belirli bölgelerde takılı kalıyor veya çalışmıyor</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Oyun, baştan sona oynanıp bitirilebiliyor mu?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Büyük Oyunda bariz grafik hataları mevcut</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Küçük Oyunda ufak tefek grafik hataları mevcut</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Yok Oyun, bir Nintendo Switch&apos;de nasıl görünüyorsa aynı görünüyor</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Oyunda herhangi bir grafik hatası var mı?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Büyük Oyunda bariz ses hataları mevcut</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Küçük Oyunda ufak tefek ses hataları mevcut</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Yok Oyun sesi mükemmel duyuluyor</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
@@ -380,36 +380,61 @@ Bu işlem onların hem forum kullanıcı adını hem de IP adresini banlar.</tra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Çıkış Cihazı</translation>
+ <source>Output Device:</source>
+ <translation>Çıkış Cihazı:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Giriş Cihazı</translation>
+ <source>Input Device:</source>
+ <translation>Giriş Cihazı:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Ses Çıkış Modu:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Global sesi kullan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Sesi ayarla:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Ses:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Arka plandayken sesi kapat</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -590,7 +615,9 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<source>
&lt;div&gt;This option improves speed by relying only on the semantics of cmpxchg to ensure safety of exclusive access instructions. Please note this may result in deadlocks and other race conditions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Bu ayar, özel erişim talimatlarının güvenliğini sağlayarak hızı artırmak adına yalnızca semantik cmpxchg kullanır. Kullanılması çıkmaz döngülere ya da başka yarışma durumlarına sebep olabilir.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="166"/>
@@ -757,7 +784,7 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="147"/>
<source>Enable Host MMU Emulation (general memory instructions)</source>
- <translation> Host MMU Emülasyonunu Etkinleştir (genel bellek talimatları)</translation>
+ <translation> Ana Bilgisayar MMU Emülasyonunu Etkinleştir (genel bellek talimatları)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="154"/>
@@ -775,7 +802,7 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="161"/>
<source>Enable Host MMU Emulation (exclusive memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Ana Bilgisayar MMU Emülasyonunu Etkinleştir (özel bellek talimatları)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="168"/>
@@ -783,12 +810,15 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up exclusive memory accesses by the guest program.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of fastmem failure of exclusive memory accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Bu optimizasyon, misafir uygulamanın özel talimat erişim hızını artırır.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Kullanılırsa, fastmem sebepli özel hafıza erişim hatalarıyla oluşan yükü azaltır.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="174"/>
<source>Enable recompilation of exclusive memory instructions</source>
- <translation type="unfinished"/>
+ <translation>Özel hafıza talimatlarının yeniden derlenmesini etkinleştir</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="181"/>
@@ -796,12 +826,15 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Bu optimizasyon, geçersiz hafıza erişim isteklerine izin vererek genel hafıza erişim hızını artırır.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Kullanılırsa, bütün hafıza erişim yükünü azaltır. Hatalı hafıza erişimi yapmayan uygulamalar etkilenmez.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Hatalı hafıza erişimleri için yedeği etkinleştir</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -894,22 +927,22 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="172"/>
<source>When checked, it will dump all the original assembler shaders from the disk shader cache or game as found</source>
- <translation type="unfinished"/>
+ <translation>Kullanılırsa, asıl assembler shader dosyaları diskten shader önbelleği ya da oyun bulundukça dump&apos;lanır</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="175"/>
<source>Dump Game Shaders</source>
- <translation type="unfinished"/>
+ <translation>Oyun Shader&apos;larını Dump&apos;la</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="185"/>
<source>When checked, it will dump all the macro programs of the GPU</source>
- <translation type="unfinished"/>
+ <translation>Kullanılırsa, GPU&apos;daki bütün makro uygulamalar dump&apos;lanır</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="188"/>
<source>Dump Maxwell Macros</source>
- <translation type="unfinished"/>
+ <translation>Maxwell Makro&apos;larını Dump&apos;la</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="198"/>
@@ -922,102 +955,112 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<translation>Macro JIT&apos;i devre dışı bırak</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Kullanılırsa makro HLE işlevselliği kapatılır. Bu seçeneği açmak oyunların yavaşlamasına sebep olur</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Makro HLE&apos;yi Kapat</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Etkinleştirildiğinde, yuzu derlenen pipeline cache istatistiklerini log&apos;a kaydeder.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Shader Geribildirimini Etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>İşaretlendiğinde shaderları döngü mantık değişimleri olmaksızın uygular</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>Döngü güvenliği kontrolünü devre dışı bırak</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Hata ayıklama</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>Detaylı Raporlama Hizmetini Etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>FS Erişim Kaydını Etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Bu seçenek açıksa son oluşturulan ses komutları konsolda gösterilir. Sadece ses işleyicisi kullanan oyunları etkiler.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation>Konsola Ses Komutlarını Aktar**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Çöküş Sonrası Küçük Dump Oluştur</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Gelişmiş</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk (Quest) Modu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>CPU Hata Ayıklama Modu&apos;nu Etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>Hata Ayıklama Assert&apos;lerini Etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>Auto-Stub&apos;ı Etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Bütün Kontrolcü Türlerini Etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Web Uygulamasını Devre Dışı Bırak</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
- <translation type="unfinished"/>
+ <translation>Bu seçenek, program açılırken Vulkan ortam işlevselliğini kontrol etmesini sağlar. Diğer programlar yuzu&apos;yu görmekte sorun yaşıyorsa bu seçeneği kapatın.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
- <translation type="unfinished"/>
+ <translation>Açılırken Vulkan Taraması Yap</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Bu yuzu kapandığında otomatik olarak eski haline dönecektir.</translation>
</message>
@@ -1032,14 +1075,14 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<translation>yuzu&apos;nun bu ayarı uygulayabilmesi için yeniden başlatılması gereklidir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
- <translation type="unfinished"/>
+ <translation>Web uygulaması derlenmemiş</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>Küçük Dump oluşumu derlenmemiş</translation>
</message>
</context>
<context>
@@ -1087,78 +1130,78 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<translation>yuzu Yapılandırması</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Ses</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Hata Ayıklama</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Dosya sistemi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Genel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Grafikler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Gelişmiş Grafik Ayarları</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Kısayollar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Kontroller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Profiller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Ağ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Sistem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Oyun Listesi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1333,46 +1376,36 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Artırılmış hafıza düzeni (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Emülasyon devam ederken çıkışı onaylayın</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Oyun başlatılırken kullanıcı verisi iste</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Arka plana alındığında emülasyonu duraklat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Arka plandayken sesi kapat</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Hareketsizlik durumunda imleci gizle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Tüm Ayarları Sıfırla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Bu seçenek tüm genel ve oyuna özgü ayarları silecektir. Oyun dizinleri, profiller ve giriş profilleri silinmeyecektir. Devam etmek istiyor musunuz?</translation>
</message>
@@ -1411,7 +1444,7 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Yok</translation>
</message>
@@ -1437,216 +1470,269 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC emülasyonu:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Video Çıkışı Yok</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>CPU Video Decoding</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>GPU Video Decoding (Varsayılan)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Tam Ekran Modu:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Kenarlıksız Tam Ekran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Ayrılmış Tam Ekran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>En-Boy Oranı:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Varsayılan (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>4:3&apos;e Zorla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>21:9&apos;a Zorla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>16:10&apos;a Zorla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Ekrana Sığdır</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Çözünürlük:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [DENEYSEL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [DENEYSEL]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [DENEYSEL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Pencereye Uyarlı Filtre:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>En Yakın Komşu Algoritması</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Bilinear</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Bicubic</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Gausyen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (Vulkan&apos;a Özel)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Süper Çözünürlük</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Kenar Yumuşatma Yöntemi:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>Evrensel FSR Keskinleştirici Kullan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation type="unfinished"/>
+ <translation>FSR Keskinliğini Ayarla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
- <translation type="unfinished"/>
+ <translation>FSR Keskinliği:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
- <translation type="unfinished"/>
+ <translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Global arka plan rengini kullan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Arka plan rengini ayarla:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Arkaplan Rengi:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Assembly Shaderları, Yalnızca NVIDIA için)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Deneysel, Yalnızca Mesa için)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1671,77 +1757,133 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<translation>Kesinlik Düzeyi:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync ekrandaki yırtılmaları önler fakat bazı ekran kartları VSync etkinleştirildiğinde daha düşük performans verebilir. Eğer bir fark görmüyorsanız etkinleştirin.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>VSync Kullan</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Grafik komutlarını beklerken GPU&apos;nun hızının düşmesini engellemek için arka planda görev yürütür</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>En yüksek hızı zorla (Yalnızca Vulkan için)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Asenkronize ASTC doku çözücüyü aktive eder. Bunu etkinleştirmek takılmaları azaltabilir. Bu özellik deneyseldir.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>ASTC dokularını asenkronize şekilde çöz (Hack)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Asenkronize shader derlemesini aktive eder. Bunu etkinleştirmek takılmaları azaltabilir. Bu özellik deneyseldir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Asenkronize shader derlemesini kullan (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Hızlı GPU Saati&apos;ni etkinleştir. Bu seçenek çoğu oyunu en yüksek gerçek çözünürlükte çalıştırır. </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Hızlı GPU Saati Kullan (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>GPU üreticisine özel pipeline önbelleğini aktive eder. Bu özellik, Vulkan sürücüsünün pipeline önbelleğini depolamadığı zamanlarda shader yüklenme süresini önemli derecede azaltabilir.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Vulkan pipeline önbelleği kullan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Anisotropic Filtering:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Otomatik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Varsayılan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1774,70 +1916,65 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<translation>Varsayılana Döndür</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>İşlem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Kısayol</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Kontrolcü Kısayolu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Tutarsız Anahtar Dizisi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Girilen anahtar dizisi zaten %1&apos;e atanmış.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Ev+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[bekleniyor]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Geçersiz</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Varsayılana Döndür</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Temizle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
- <translation type="unfinished"/>
+ <translation>Tutarsız Tuş Dizisi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>Varsayılan buton dizisi zaten %1&apos;e atanmış.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Varsayılan anahtar dizisi zaten %1&apos;e atanmış.</translation>
</message>
@@ -2129,7 +2266,7 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Yapılandır</translation>
</message>
@@ -2155,6 +2292,8 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Yuzu&apos;yu yeniden başlatmayı gerektirir </translation>
</message>
@@ -2174,22 +2313,42 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<translation>Kontrolcü navigasyonu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Direkt JoyCon sürücüsünü kullan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Direkt Pro Controller sürücüsünü kullan [DENEYSEL]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Mouse ile kaydırmayı etkinleştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Fare hassasiyeti </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Hareket / Dokunmatik</translation>
</message>
@@ -2209,57 +2368,57 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Kontrol Profilleri</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
<source>Player 1 Profile</source>
- <translation type="unfinished"/>
+ <translation>1. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="84"/>
<source>Player 2 Profile</source>
- <translation type="unfinished"/>
+ <translation>2. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="119"/>
<source>Player 3 Profile</source>
- <translation type="unfinished"/>
+ <translation>3. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="154"/>
<source>Player 4 Profile</source>
- <translation type="unfinished"/>
+ <translation>4. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="189"/>
<source>Player 5 Profile</source>
- <translation type="unfinished"/>
+ <translation>5. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="224"/>
<source>Player 6 Profile</source>
- <translation type="unfinished"/>
+ <translation>6. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="259"/>
<source>Player 7 Profile</source>
- <translation type="unfinished"/>
+ <translation>7. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="294"/>
<source>Player 8 Profile</source>
- <translation type="unfinished"/>
+ <translation>8. Oyuncu Profili</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="35"/>
<source>Use global input configuration</source>
- <translation type="unfinished"/>
+ <translation>Evrensel giriş yapılandırmasını kullan</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>%1 . Oyuncu Profili</translation>
</message>
</context>
<context>
@@ -2301,7 +2460,7 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Sol Analog</translation>
</message>
@@ -2395,14 +2554,14 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2421,7 +2580,7 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Artı</translation>
</message>
@@ -2434,15 +2593,15 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2499,236 +2658,247 @@ Bu seçenek belleğe yazma/okuma işlemlerindeki güvenlik kontrolünü kaldıra
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Sağ Analog</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Temizle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[belirlenmedi]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Tuşları ters çevir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Tuşu Aç/Kapa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Turbo tuşu</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Ekseni ters çevir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Alt sınır ayarla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>%0 ve %100 arasında bir değer seçin</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
- <translation type="unfinished"/>
+ <translation>Ekseni aç/kapa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
+ <translation>Gyro alt sınırı ayarla</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Analog Çubuğu Ayarla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Tamama bastıktan sonra, joystikinizi önce yatay sonra dikey olarak hareket ettirin.
Eksenleri ters çevirmek için, önce joystickinizi dikey sonra yatay olarak hareket ettirin.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
- <translation type="unfinished"/>
+ <translation>Ekseni merkezle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Ölü Bölge: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Düzenleyici Aralığı: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>İkili Joyconlar</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Sol Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Sağ Joycon</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Handheld</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube Kontrolcüsü</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>NES Kontrolcüsü</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>SNES Kontrolcüsü</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>N64 Kontrolcüsü</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Başlat / Duraklat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Kontrol Çubuğu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Çubuğu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Salla!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[bekleniyor]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Yeni Profil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Bir profil ismi girin:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Kontrol Profili Oluştur</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Girilen profil ismi geçerli değil!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; kontrol profili oluşturulamadı </translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Kontrol Profilini Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; kontrol profili kaldırılamadı</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Kontrol Profilini Yükle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; kontrol profili yüklenemedi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Kontrol Profilini Kaydet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>&quot;%1&quot; kontrol profili kaydedilemedi</translation>
</message>
@@ -2776,7 +2946,7 @@ Eksenleri ters çevirmek için, önce joystickinizi dikey sonra yatay olarak har
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Yapılandır</translation>
</message>
@@ -2812,7 +2982,7 @@ Eksenleri ters çevirmek için, önce joystickinizi dikey sonra yatay olarak har
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Test</translation>
</message>
@@ -2832,77 +3002,77 @@ Eksenleri ters çevirmek için, önce joystickinizi dikey sonra yatay olarak har
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Daha Fazlası&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Port numarasında geçersiz karakterler var</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Port 0 ila 65353 aralığında olmalıdır</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP adresi geçerli değil</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Bu UDP sunucusu zaten var</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>8&apos;den fazla server eklenemez</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Test Ediliyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Yapılandırılıyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Test Başarılı</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Bilgi başarıyla sunucudan kaldırıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Test Başarısız</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Serverdan geçerli veri alınamadı.&lt;br&gt;Lütfen sunucunun doğru ayarlandığını ya da adres ve portun doğru olduğunu kontrol edin.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP testi ya da yapılandırılması devrede.&lt;br&gt;Lütfen bitmesini bekleyin.</translation>
</message>
@@ -2983,47 +3153,47 @@ Eksenleri ters çevirmek için, önce joystickinizi dikey sonra yatay olarak har
<translation>Geliştirici</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Eklentiler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Genel</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Sistem</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Grafikler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Gelişmiş Grafikler</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Ses</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation type="unfinished"/>
+ <translation>Kontrol Profilleri</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Özellikler</translation>
</message>
@@ -3202,7 +3372,7 @@ Eksenleri ters çevirmek için, önce joystickinizi dikey sonra yatay olarak har
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="332"/>
<source>Delete this user? All of the user&apos;s save data will be deleted.</source>
- <translation type="unfinished"/>
+ <translation>Kullanıcıyı silmek istediğinize emin misiniz? Kayıtlı oyun verileri de birlikte silinecek.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="344"/>
@@ -3213,7 +3383,8 @@ Eksenleri ters çevirmek için, önce joystickinizi dikey sonra yatay olarak har
<location filename="../../src/yuzu/configuration/configure_profile_manager.cpp" line="360"/>
<source>Name: %1
UUID: %2</source>
- <translation type="unfinished"/>
+ <translation>İsim: %1
+UUID: %2</translation>
</message>
</context>
<context>
@@ -3230,8 +3401,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>Ring Sensör Parametreleri</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Sanal Ring Sensör Parametreleri</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3251,33 +3422,90 @@ UUID: %2</source>
<translation>Ölü Bölge: %0</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Direkt Joycon Sürücüsü</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Ring Girişini Aç</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Aç</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Ring Sensör Değeri</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Bağlantı yok</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Varsayılana Döndür</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Temizle</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[belirlenmedi]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Ekseni ters çevir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Ölü Bölge: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Ring giriş hatası</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Direkt Joycon sürücüsü açık değil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Yapılandırılıyor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>Atanmış cihaz ring kontrolünü desteklemiyor</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>Atanmış cihaza ring takılı değil</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Beklenmeyen sürücü sonucu %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[bekleniyor]</translation>
</message>
@@ -3582,8 +3810,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>İngilizce</translation>
+ <source>American English</source>
+ <translation>Amerikan İngilizcesi</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3683,57 +3911,22 @@ UUID: %2</source>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Konsol ID:</translation>
+ <translation>Cihaz İsmi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Ses çıkış modu</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Yeniden oluştur</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Sistem ayarlarına sadece oyun çalışmıyorken erişilebilir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Bu sanal Switchinizi yeni biriyle değiştirir. Geçerli sanal switchiniz geri getirilemez. Bu oyunlarda beklenmeyen etkilere neden olabilir. Eski bir oyun yapılandırma kayıt dosyası kullanıyorsanız bu başarısız olabilir. Devam?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Uyarı</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Konsol ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Hata: &quot;%1&quot; bölgesi için &quot;%2&quot; geçerli bir dil değil</translation>
</message>
</context>
<context>
@@ -3802,7 +3995,7 @@ UUID: %2</source>
<translation>TAS Yapılandırması</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Tas Yükleme Dizini Seçin</translation>
</message>
@@ -4042,7 +4235,7 @@ Noktanın konumunu değiştirmek için sürükleyin ya da sayıların üstüne
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="82"/>
<source>Show Compatibility List</source>
- <translation type="unfinished"/>
+ <translation>Uyumluluk Listesini Göster</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="89"/>
@@ -4052,12 +4245,12 @@ Noktanın konumunu değiştirmek için sürükleyin ya da sayıların üstüne
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="96"/>
<source>Show Size Column</source>
- <translation type="unfinished"/>
+ <translation>Boyut Sütununu Göster</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="103"/>
<source>Show File Types Column</source>
- <translation type="unfinished"/>
+ <translation>Dosya Türü Sütununu Göster</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="112"/>
@@ -4241,7 +4434,7 @@ Noktanın konumunu değiştirmek için sürükleyin ya da sayıların üstüne
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="118"/>
<source>Web Service configuration can only be changed when a public room isn&apos;t being hosted.</source>
- <translation type="unfinished"/>
+ <translation>Web Sunucu ayarları yalnızca halka açık bir oda sunulmuyorken değiştirilebilir.</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="128"/>
@@ -4358,7 +4551,7 @@ Noktanın konumunu değiştirmek için sürükleyin ya da sayıların üstüne
<translation>Kontrolcü O1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Kontrolcü O1</translation>
</message>
@@ -4371,42 +4564,37 @@ Noktanın konumunu değiştirmek için sürükleyin ya da sayıların üstüne
<translation>Direkt Bağlan</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IP Adresi</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Sunucu Adresi</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Ana bilgisayarın IPv4 adresi&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Ana bilgisayarın sunucu adresi&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Port</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Ana bilgisayarın dinlediği port numarası&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Lakap</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Şifre</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Bağlan</translation>
</message>
@@ -4414,12 +4602,12 @@ Noktanın konumunu değiştirmek için sürükleyin ya da sayıların üstüne
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Bağlanılıyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Bağlan</translation>
</message>
@@ -4427,534 +4615,560 @@ Noktanın konumunu değiştirmek için sürükleyin ya da sayıların üstüne
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Yuzuyu geliştirmeye yardımcı olmak için &lt;/a&gt; anonim veri toplandı. &lt;br/&gt;&lt;br/&gt;Kullanım verinizi bizimle paylaşmak ister misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Telemetri</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>Bozuk Vulkan Kurulumu Algılandı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
- <translation type="unfinished"/>
+ <translation>Açılışta Vulkan başlatılırken hata. Hata yardımını görüntülemek için &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;buraya tıklayın&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Web Uygulaması Yükleniyor...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Web Uygulamasını Devre Dışı Bırak</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
- <translation type="unfinished"/>
+ <translation>Web uygulamasını kapatmak bilinmeyen hatalara neden olabileceğinden dolayı sadece Super Mario 3D All-Stars için kapatılması önerilir. Web uygulamasını kapatmak istediğinize emin misiniz?
+(Hata ayıklama ayarlarından tekrar açılabilir)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Şu anda derlenen shader miktarı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>Geçerli seçili çözünürlük ölçekleme çarpanı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Geçerli emülasyon hızı. %100&apos;den yüksek veya düşük değerler emülasyonun bir Switch&apos;den daha hızlı veya daha yavaş çalıştığını gösterir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Oyunun şuanda saniye başına kaç kare gösterdiği. Bu oyundan oyuna ve sahneden sahneye değişiklik gösterir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Bir Switch karesini emüle etmekte geçen zaman, karelimitleme ve v-sync hariç. Tam hız emülasyon için bu en çok 16,67 ms olmalı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>&amp;Son Dosyaları Temizle</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>&amp;Devam Et</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Duraklat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu şu anda bir oyun çalıştırıyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Uyarı, Eski Oyun Formatı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Bu oyun için dekonstrükte ROM formatı kullanıyorsunuz, bu fromatın yerine NCA, NAX, XCI ve NSP formatları kullanılmaktadır. Dekonstrükte ROM formatları ikon, üst veri ve güncelleme desteği içermemektedir.&lt;br&gt;&lt;br&gt;Yuzu&apos;nun desteklediği çeşitli Switch formatları için&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;Wiki&apos;yi ziyaret edin&lt;/a&gt;. Bu mesaj yeniden gösterilmeyecektir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>ROM yüklenirken hata oluştu!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Bu ROM biçimi desteklenmiyor.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Video çekirdeğini başlatılırken bir hata oluştu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu video çekirdeğini çalıştırırken bir hatayla karşılaştı. Bu sorun genellikle eski GPU sürücüleri sebebiyle ortaya çıkar. Daha fazla detay için lütfen log dosyasına bakın. Log dosyasını incelemeye dair daha fazla bilgi için lütfen bu sayfaya ulaşın: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Log dosyası nasıl yüklenir&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>ROM yüklenirken hata oluştu! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Lütfen dosyalarınızı yeniden dump etmek için&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu hızlı başlangıç kılavuzu&apos;nu&lt;/a&gt; takip edin.&lt;br&gt; Yardım için yuzu wiki&lt;/a&gt;veya yuzu Discord&apos;una&lt;/a&gt; bakabilirsiniz.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Bilinmeyen bir hata oluştu. Lütfen daha fazla detay için kütüğe göz atınız.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Yazılım kapatılıyor...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Kayıt Verisi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod Verisi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>%1 klasörü açılırken hata</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Klasör mevcut değil!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Transfer Edilebilir Shader Cache&apos;ini Açarken Bir Hata Oluştu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Bu oyun için shader cache konumu oluşturulamadı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
- <translation type="unfinished"/>
+ <translation>İçerik Kaldırma Hatası</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
- <translation type="unfinished"/>
+ <translation>Güncelleme Kaldırma hatası</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
- <translation type="unfinished"/>
+ <translation>DLC Kaldırma Hatası</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
- <translation type="unfinished"/>
+ <translation>Yüklenmiş Oyun İçeriğini Kaldırmak İstediğinize Emin Misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
- <translation type="unfinished"/>
+ <translation>Yüklenmiş Oyun Güncellemesini Kaldırmak İstediğinize Emin Misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
- <translation type="unfinished"/>
+ <translation>Yüklenmiş DLC&apos;yi Kaldırmak İstediğinize Emin Misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Girdiyi Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Başarıyla Kaldırıldı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Yüklenmiş oyun başarıyla kaldırıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Asıl oyun NAND&apos;de kurulu değil ve kaldırılamaz.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Yüklenmiş güncelleme başarıyla kaldırıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Bu oyun için yüklenmiş bir güncelleme yok.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Bu oyun için yüklenmiş bir DLC yok.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>%1 yüklenmiş DLC başarıyla kaldırıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>OpenGL Transfer Edilebilir Shader Cache&apos;ini Kaldırmak İstediğinize Emin Misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Vulkan Transfer Edilebilir Shader Cache&apos;ini Kaldırmak İstediğinize Emin Misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Tüm Transfer Edilebilir Shader Cache&apos;leri Kaldırmak İstediğinize Emin Misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Oyuna Özel Yapılandırmayı Kaldırmak İstediğinize Emin Misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Dosyayı Sil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Transfer Edilebilir Shader Cache Kaldırılırken Bir Hata Oluştu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Bu oyun için oluşturulmuş bir shader cache yok.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Transfer edilebilir shader cache başarıyla kaldırıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Transfer edilebilir shader cache kaldırılamadı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Vulkan Pipeline Önbelleği Kaldırılırken Hata</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Sürücü pipeline önbelleği kaldırılamadı.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Transfer Edilebilir Shader Cache&apos;ler Kaldırılırken Bir Hata Oluştu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Transfer edilebilir shader cacheler başarıyla kaldırıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Transfer edilebilir shader cache konumu kaldırılamadı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Oyuna Özel Yapılandırma Kaldırılırken Bir Hata Oluştu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Bu oyun için bir özel yapılandırma yok.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Oyuna özel yapılandırma başarıyla kaldırıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Oyuna özel yapılandırma kaldırılamadı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>RomFS Çıkartımı Başarısız!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>RomFS dosyaları kopyalanırken bir hata oluştu veya kullanıcı işlemi iptal etti.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Full</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Çerçeve</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>RomFS Dump Modunu Seçiniz</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Lütfen RomFS&apos;in nasıl dump edilmesini istediğinizi seçin.&lt;br&gt;&quot;Full&quot; tüm dosyaları yeni bir klasöre kopyalarken &lt;br&gt;&quot;skeleton&quot; sadece klasör yapısını oluşturur.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>%1 konumunda RomFS çıkarmaya yetecek alan yok. Lütfen yer açın ya da Emülasyon &gt; Yapılandırma &gt; Sistem &gt; Dosya Sistemi &gt; Dump konumu kısmından farklı bir çıktı konumu belirleyin.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>RomFS çıkartılıyor...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>İptal</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS Çıkartımı Başarılı!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>İşlem başarıyla tamamlandı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Kısayol Oluştur</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Bu seçenek, şu anki AppImage dosyasının kısayolunu oluşturacak. Uygulama güncellenirse kısayol çalışmayabilir. Devam edilsin mi?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Masaüstünde kısayol oluşturulamadı. &quot;%1&quot; dizini yok.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Uygulamalar menüsünde kısayol oluşturulamadı. &quot;%1&quot; dizini yok ve oluşturulamıyor.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Simge Oluştur</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Simge dosyası oluşturulamadı. &quot;%1&quot; dizini yok ve oluşturulamıyor.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>yuzu Emülatörü başlatılırken %1 başlatılsın</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>%1 dizininde kısayol oluşturulamadı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>%1 dizinine kısayol oluşturuldu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>%1 Açılırken Bir Hata Oluştu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Klasör Seç</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Özellikler</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Oyun özellikleri yüklenemedi.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch Çalıştırılabilir Dosyası (%1);;Tüm Dosyalar (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Dosya Aç</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Çıkartılmış ROM klasörünü aç</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Geçersiz Klasör Seçildi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Seçtiğiniz klasör bir &quot;main&quot; dosyası içermiyor.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Yüklenilebilir Switch Dosyası (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submissions Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Dosya Kur</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>%n dosya kaldı</numerusform><numerusform>%n dosya kaldı</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>&quot;%1&quot; dosyası kuruluyor...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Kurulum Sonuçları</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Olası çakışmaları önlemek için oyunları NAND&apos;e yüklememenizi tavsiye ediyoruz.
Lütfen bu özelliği sadece güncelleme ve DLC yüklemek için kullanın.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n dosya güncel olarak yüklendi
@@ -4962,7 +5176,7 @@ Lütfen bu özelliği sadece güncelleme ve DLC yüklemek için kullanın.</tran
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n dosyanın üstüne yazıldı
@@ -4970,7 +5184,7 @@ Lütfen bu özelliği sadece güncelleme ve DLC yüklemek için kullanın.</tran
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n dosya yüklenemedi
@@ -4978,377 +5192,388 @@ Lütfen bu özelliği sadece güncelleme ve DLC yüklemek için kullanın.</tran
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Sistem Uygulaması</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Sistem Arşivi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Sistem Uygulama Güncellemesi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Yazılım Paketi (Tür A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Yazılım Paketi (Tür B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Oyun</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Oyun Güncellemesi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Oyun DLC&apos;si</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta Başlık</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>NCA Kurulum Tipi Seçin...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Lütfen bu NCA dosyası için belirlemek istediğiniz başlık türünü seçiniz:
(Çoğu durumda, varsayılan olan &apos;Oyun&apos; kullanılabilir.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Kurulum Başarısız Oldu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>NCA için seçtiğiniz başlık türü geçersiz</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Dosya Bulunamadı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Dosya &quot;%1&quot; Bulunamadı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>Tamam</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
- <translation type="unfinished"/>
+ <translation>Donanım gereksinimleri karşılanmıyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation type="unfinished"/>
+ <translation>Sisteminiz, önerilen donanım gereksinimlerini karşılamıyor. Uyumluluk raporlayıcı kapatıldı.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Kayıp yuzu Hesabı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Oyun uyumluluk test çalışması göndermek için öncelikle yuzu hesabınla giriş yapmanız gerekiyor.&lt;br&gt;&lt;br/&gt;Yuzu hesabınızla giriş yapmak için, Emülasyon &amp;gt; Yapılandırma &amp;gt; Web&apos;e gidiniz.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>URL açılırken bir hata oluştu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>URL &quot;%1&quot; açılamıyor.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>TAS kayıtta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Oyuncu 1&apos;in dosyasının üstüne yazılsın mı?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Geçersiz yapılandırma tespit edildi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Handheld kontrolcü dock modunda kullanılamaz. Pro kontrolcü seçilecek.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>Amiibo kaldırıldı</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Hata</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>Aktif oyun amiibo beklemiyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo Dosyası (%1);; Tüm Dosyalar (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Amiibo Yükle</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Amiibo verisi yüklenirken hata</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>Seçtiğiniz dosya geçerli bir amiibo değil</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>Seçtiğiniz dosya hali hazırda kullanılıyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
- <translation type="unfinished"/>
+ <translation>Bilinmeyen bir hata oluştu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Ekran Görüntüsü Al</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG görüntüsü (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>TAS durumu: %1%2 çalışıyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>TAS durumu: %1 kaydediliyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>TAS durumu: %1%2 boşta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>TAS durumu: Geçersiz</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;Çalıştırmayı durdur</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Başlat</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>K&amp;aydetmeyi Durdur</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>K&amp;aydet</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Oluşturuluyor: %n shader</numerusform><numerusform>Oluşturuluyor: %n shader</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Ölçek: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Hız %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Hız: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Oyun: %1 FPS (Sınırsız)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Oyun: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Kare: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU YÜKSEK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EKSTREM</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU HATASI</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
- <translation type="unfinished"/>
+ <translation>TAKILI MOD</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
- <translation type="unfinished"/>
+ <translation>TAŞIMA MODU</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>YOK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>EN YAKIN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>BILINEAR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>BICUBIC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>GAUSYEN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>AA YOK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>SES: KAPALI</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>SES: %%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Anahtar Yeniden Türetimini Onayla</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5365,37 +5590,37 @@ ve opsiyonel olarak yedekler alın.
Bu sizin otomatik oluşturulmuş anahtar dosyalarınızı silecek ve anahtar türetme modülünü tekrar çalıştıracak.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Anahtarlar Kayıp</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- BOOT0 Kayıp</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- BCPKG2-1-Normal-Main Kayıp</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- PRODINFO Kayıp</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Türeten Bileşenleri Kayıp</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Şifreleme anahtarları eksik. &lt;br&gt;Lütfen takip edin&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu hızlı başlangıç kılavuzunu&lt;/a&gt;tüm anahtarlarınızı, aygıt yazılımınızı ve oyunlarınızı almada.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5404,39 +5629,49 @@ Bu sistem performansınıza bağlı olarak
bir dakika kadar zaman alabilir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Anahtarlar Türetiliyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>RomFS Dump Hedefini Seçiniz</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Lütfen dump etmek istediğiniz RomFS&apos;i seçiniz.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>yuzu&apos;yu kapatmak istediğinizden emin misiniz?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Emülasyonu durdurmak istediğinizden emin misiniz? Kaydedilmemiş veriler kaybolur.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5448,44 +5683,44 @@ Görmezden gelip kapatmak ister misiniz?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL kullanıma uygun değil!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>OpenGL paylaşılan bağlam desteklenmiyor.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>Yuzu OpenGL desteklememektedir.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>OpenGl başlatılırken bir hata oluştu!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>GPU&apos;nuz OpenGL desteklemiyor veya güncel bir grafik sürücüsüne sahip değilsiniz.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>OpenGl 4.6 başlatılırken bir hata oluştu!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>GPU&apos;nuz OpenGL 4.6&apos;yı desteklemiyor veya güncel bir grafik sürücüsüne sahip değilsiniz.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>GPU&apos;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.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt; Desteklenmeyen Eklentiler:&lt;br&gt;%2</translation>
</message>
@@ -5544,117 +5779,122 @@ Görmezden gelip kapatmak ister misiniz?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>OpenGL Pipeline Cache&apos;ini Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Vulkan Pipeline Cache&apos;ini Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Bütün Pipeline Cache&apos;lerini Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Tüm Yüklenmiş İçeriği Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>RomFS Dump Et</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>RomFS&apos;i SDMC&apos;ye çıkar.</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Title ID&apos;yi Panoya Kopyala</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>GameDB sayfasına yönlendir</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Kısayol Oluştur</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Masaüstüne Ekle</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Uygulamalar Menüsüne Ekl</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Özellikler</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Alt Klasörleri Tara</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Oyun Konumunu Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲Yukarı Git</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼Aşağı Git</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Oyun Dosyası Konumunu Aç</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Temizle</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>İsim</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Uyumluluk</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Eklentiler</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Dosya türü</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Boyut</translation>
</message>
@@ -5664,12 +5904,12 @@ Görmezden gelip kapatmak ister misiniz?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Ingame</source>
- <translation type="unfinished"/>
+ <translation>Oyunda</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="149"/>
<source>Game starts, but crashes or major glitches prevent it from being completed.</source>
- <translation type="unfinished"/>
+ <translation>Oyun başlatılabiliyor, fakat bariz hatalardan veya çökme sorunlarından dolayı bitirilemiyor.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
@@ -5679,17 +5919,17 @@ Görmezden gelip kapatmak ister misiniz?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="151"/>
<source>Game can be played without issues.</source>
- <translation type="unfinished"/>
+ <translation>Oyun sorunsuz bir şekilde oynanabiliyor.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Playable</source>
- <translation type="unfinished"/>
+ <translation>Oynanabilir</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="152"/>
<source>Game functions with minor graphical or audio glitches and is playable from start to finish.</source>
- <translation type="unfinished"/>
+ <translation>Oyun küçük grafik veya ses hatalarıyla çalışıyor ve baştan sona kadar oynanabilir.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
@@ -5699,7 +5939,7 @@ Görmezden gelip kapatmak ister misiniz?</translation>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
<source>Game loads, but is unable to progress past the Start Screen.</source>
- <translation type="unfinished"/>
+ <translation>Oyun açılıyor, fakat ana menüden ileri gidilemiyor.</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="156"/>
@@ -5725,7 +5965,7 @@ Görmezden gelip kapatmak ister misiniz?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Oyun listesine yeni bir klasör eklemek için çift tıklayın.</translation>
</message>
@@ -5738,12 +5978,12 @@ Görmezden gelip kapatmak ister misiniz?</translation>
<translation><numerusform>%n sonucun %1&apos;i</numerusform><numerusform>%n sonucun %1&apos;i</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Filtre:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Filtrelemek için bir düzen giriniz</translation>
</message>
@@ -5833,12 +6073,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>Sesi Sustur/Aç</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5860,111 +6099,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>Ana Pencere</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>Ses Kapa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>Ses Aç</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Ekran Görüntüsü Al</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>Uyarlanan Filtreyi Değiştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
- <translation type="unfinished"/>
+ <translation>Takılı Modu Kullan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>GPU Doğruluğunu Değiştir</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Sürdür/Emülasyonu duraklat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Tam Ekrandan Çık</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>Yuzu&apos;dan çık</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Tam Ekran</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Dosya Aç</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Amiibo Yükle/Kaldır</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Emülasyonu Yeniden Başlat</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Emülasyonu Durdur</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>TAS Kaydet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>TAS Sıfırla</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>TAS Başlat/Durdur</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>Filtre Çubuğunu Aç/Kapa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>FPS Limitini Aç/Kapa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>Mouse ile Kaydırmayı Aç/Kapa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>Durum Çubuğunu Aç/Kapa</translation>
</message>
@@ -5987,7 +6227,7 @@ Debug Message: </source>
<translation>Kur</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>NAND&apos;e Dosya Kur</translation>
</message>
@@ -5995,7 +6235,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>Yazı bu karakterleri içeremez:
@@ -6070,51 +6310,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Boş Odaları Gizle</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Dolu Odaları Gizle</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Lobiyi Yenile</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Katılmak için Gereken Şifre</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Şifre:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Oyuncular</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Oda Adı</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Tercih Edilen Oyun</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Ana bilgisayar</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Yenileniyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Listeyi Yenile</translation>
</message>
@@ -6509,7 +6754,7 @@ Debug Bilgisi:</translation>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="26"/>
<source>Unable to connect to the host. Verify that the connection settings are correct. If you still cannot connect, contact the room host and verify that the host is properly configured with the external port forwarded.</source>
- <translation type="unfinished"/>
+ <translation>Ana bilgisayara bağlanılamadı. Bağlantı ayarlarının doğru olduğundan emin olun. Hala bağlanamıyorsanız, ana bilgisayar yöneticisiyle iletişime geçip sunucunun doğru ayarlandığından ve dış portun yönlendirildiğinden emin olun.</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="30"/>
@@ -6652,7 +6897,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>BAŞLAT/DURAKLAT</translation>
</message>
@@ -6701,31 +6946,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[belirlenmedi]</translation>
</message>
@@ -6736,14 +6981,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Eksen %1%2</translation>
</message>
@@ -6754,264 +6999,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[bilinmeyen]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Sol</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Sağ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Aşağı</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Yukarı</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Yuvarlak</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Çarpı</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Kare</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Üçgen</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Share</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Options</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[belirsiz]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[geçersiz]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Hat %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Eksen %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Eksen %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Hareket %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Tuş %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[kullanılmayan]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>L Çubuğu</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>R Çubuğu</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Artı</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Eksi</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Kaydet</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Dokunmatik</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Fare Tekerleği</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Geri</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>İleri</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
- <translation type="unfinished"/>
+ <translation>Görev</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Ekstra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3Hat %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Tuş %4</translation>
</message>
</context>
<context>
@@ -7019,17 +7322,17 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="14"/>
<source>Amiibo Settings</source>
- <translation type="unfinished"/>
+ <translation>Amiibo Ayarları</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="169"/>
<source>Amiibo Info</source>
- <translation type="unfinished"/>
+ <translation>Amiibo Detayları</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="177"/>
<source>Series</source>
- <translation type="unfinished"/>
+ <translation>Seriler</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="197"/>
@@ -7044,52 +7347,52 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="242"/>
<source>Amiibo Data</source>
- <translation type="unfinished"/>
+ <translation>Amiibo Verisi</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="250"/>
<source>Custom Name</source>
- <translation type="unfinished"/>
+ <translation>Özel İsim</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="270"/>
<source>Owner</source>
- <translation type="unfinished"/>
+ <translation>Sahip</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="290"/>
<source>Creation Date</source>
- <translation type="unfinished"/>
+ <translation>Oluşturulma Tarihi</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="307"/>
<source>dd/MM/yyyy</source>
- <translation type="unfinished"/>
+ <translation>gg/AA/yyyy</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="314"/>
<source>Modification Date</source>
- <translation type="unfinished"/>
+ <translation>Değiştirilme Tarihi</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="331"/>
<source>dd/MM/yyyy </source>
- <translation type="unfinished"/>
+ <translation>gg/AA/yyyy</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="349"/>
<source>Game Data</source>
- <translation type="unfinished"/>
+ <translation>Oyun Verisi</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="355"/>
<source>Game Id</source>
- <translation type="unfinished"/>
+ <translation>Oyun No</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="384"/>
<source>Mount Amiibo</source>
- <translation type="unfinished"/>
+ <translation>Amiibo Tak</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="390"/>
@@ -7099,32 +7402,32 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.ui" line="413"/>
<source>File Path</source>
- <translation type="unfinished"/>
+ <translation>Dosya Adresi</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="191"/>
<source>No game data present</source>
- <translation type="unfinished"/>
+ <translation>Oyun verisi yok</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="231"/>
<source>The following amiibo data will be formatted:</source>
- <translation type="unfinished"/>
+ <translation>Şu amiibo verisi biçimlendirilecek:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="234"/>
<source>The following game data will removed:</source>
- <translation type="unfinished"/>
+ <translation>Şu oyun verisi kaldırılacak:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="237"/>
<source>Set nickname and owner:</source>
- <translation type="unfinished"/>
+ <translation>Kullanıcı adı ve sahip ayarla:</translation>
</message>
<message>
<location filename="../../src/yuzu/applets/qt_amiibo_settings.cpp" line="240"/>
<source>Do you wish to restore this amiibo?</source>
- <translation type="unfinished"/>
+ <translation>Bu amiibo&apos;yu geri yüklemek istediğinize emin misiniz?</translation>
</message>
</context>
<context>
@@ -7380,28 +7683,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Hata Kodu: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Bir hata oluştu.
Lütfen tekrar deneyin ya da yazılımın geliştiricisiyle iletişime geçin.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>%1 %2&apos;de bir hata oluştu.
Lütfen tekrar deneyin ya da yazılımın geliştiricisiyle iletişime geçin.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7425,20 +7728,81 @@ Lütfen tekrar deneyin ya da yazılımın geliştiricisiyle iletişime geçin.</
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Kullanıcı Seç:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Kullanıcılar</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Profil Oluşturucu</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Profil Seçici</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Profil Simgesi Düzenleyici</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Profil Kullanıcı İsmi Düzenleyici</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>Puanları kim kazanacak?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>Nintendo eShop&apos;u kim kullanıyor?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>Bu satın almayı kim gerçekleştiriyor?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>Gönderiyi kim yapıyor?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Nintendo Hesabına bağlanacak bir kullanıcı seçin.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>Hangi kullanıcının ayarları değiştirilsin?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>Hangi kullanıcının verisi biçimlendirilsin?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>Hangi kullanıcı başka bir konsola taşınacak?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>Hangi kullanıcı için kayıtlı veri gönderilsin?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Kullanıcı Seç:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7488,51 +7852,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Çağrı yığını</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>mutex bekleniyor 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>bekleyenler: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>owner handle: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>tüm objeler için bekleniyor</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>bu objeler için bekleniyor</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>hiçbir thread beklemedi</translation>
</message>
@@ -7540,120 +7873,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>çalışabilir</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>duraklatıldı</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>uyuyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>IPC cevabı bekleniyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>objeler bekleniyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>koşul değişkeni bekleniyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>adres belirleyici bekleniyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>askıdaki işlemin sürdürülmesi bekleniyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>bekleniyor</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>başlatıldı</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>sonlandırıldı </translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>bilinmeyen</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>çekirdek %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>işlemci = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>ideal çekirdek = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>affinity mask = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>izlek id: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>öncelik = %1(geçerli) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>son çalışan tickler = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>mutex için beklenmiyor</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>izlek bekledi</translation>
</message>
@@ -7661,7 +7984,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Wait Tree</translation>
</message>
diff --git a/dist/languages/uk.ts b/dist/languages/uk.ts
index 48c77dc80..d82fc1e66 100644
--- a/dist/languages/uk.ts
+++ b/dist/languages/uk.ts
@@ -36,7 +36,7 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="130"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Website&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Source Code&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Contributors&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/LICENSE.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;License&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Веб-сайт&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Вихідний код&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Вкладники&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/LICENSE.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Ліцензія&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Веб-сайт&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Першокод&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Вкладники&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/LICENSE.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Ліцензія&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="146"/>
@@ -172,7 +172,7 @@ p, li { white-space: pre-wrap; }
This would ban both their forum username and their IP address.</source>
<translation>Ви впевнені що бажаєте &lt;b&gt;вигнати і заблокувати&lt;/b&gt; %1?
-Ця дія заблокує ім&apos;я користувача на форумі та IP-адресу.</translation>
+Ця дія заблокує ім&apos;я користувача на форумі та їх IP-адресу.</translation>
</message>
</context>
<context>
@@ -380,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>Пристрій виводу</translation>
+ <source>Output Device:</source>
+ <translation>Пристрій відтворення:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Пристрій вводу</translation>
+ <source>Input Device:</source>
+ <translation>Пристрій вводу:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Режим відстворення звуку:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Моно</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Стерео</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Об&apos;ємний звук</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Використовувати загальну гучність</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Встановити гучність:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Гучність</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Приглушити звук у фоновому режимі</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -526,7 +551,7 @@ This would ban both their forum username and their IP address.</source>
&lt;div&gt;This option improves speed by reducing accuracy of fused-multiply-add instructions on CPUs without native FMA support.&lt;/div&gt;
</source>
<translation>
- &lt;div&gt;Ця опція підвищує швидкість, зменшуючи точність складених помножених інструкцій на ЦП без підтримки FMA.&lt;/div&gt;
+ &lt;div&gt;Ця опція підвищує швидкість за рахунок зниження точності інструкцій fused-multiply-add на ЦП без вбудованої підтримки FMA.&lt;/div&gt;
</translation>
</message>
<message>
@@ -539,7 +564,9 @@ This would ban both their forum username and their IP address.</source>
<source>
&lt;div&gt;This option improves the speed of some approximate floating-point functions by using less accurate native approximations.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ця опція підвищує швидкість деяких наближених функцій з плаваючою точкою за рахунок використання менш точних нативних наближень&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="118"/>
@@ -551,7 +578,9 @@ This would ban both their forum username and their IP address.</source>
<source>
&lt;div&gt;This option improves the speed of 32 bits ASIMD floating-point functions by running with incorrect rounding modes.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ця опція підвищує швидкість роботи 32-бітних ASIMD-функцій із плаваючою комою, працюючи з неправильними режимами округлення.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="130"/>
@@ -563,7 +592,9 @@ This would ban both their forum username and their IP address.</source>
<source>
&lt;div&gt;This option improves speed by removing NaN checking. Please note this also reduces accuracy of certain floating-point instructions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ця опція підвищує швидкість, видаляючи перевірку NaN. Зверніть увагу, що це також знижує точність деяких інструкцій із плаваючою крапкою. &lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="142"/>
@@ -575,24 +606,28 @@ This would ban both their forum username and their IP address.</source>
<source>
&lt;div&gt;This option improves speed by eliminating a safety check before every memory read/write in guest. Disabling it may allow a game to read/write the emulator's memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ця опція підвищує швидкість за рахунок виключення перевірки безпеки перед кожним читанням/записом пам&apos;яті в гостьовому режимі. Вимкнення цієї опції може дозволити грі читати/записувати пам&apos;ять емулятора.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="154"/>
<source>Disable address space checks</source>
- <translation type="unfinished"/>
+ <translation>Вимкнути перевірку адресного простору</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="161"/>
<source>
&lt;div&gt;This option improves speed by relying only on the semantics of cmpxchg to ensure safety of exclusive access instructions. Please note this may result in deadlocks and other race conditions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ця опція підвищує швидкість, покладаючись тільки на семантику cmpxchg для забезпечення безпеки інструкцій виняткового доступу. Зверніть увагу, що це може призвести до повних зависань та інших умов перегонів.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="166"/>
<source>Ignore global monitor</source>
- <translation type="unfinished"/>
+ <translation>Ігнорувати глобальний моніторинг</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="191"/>
@@ -620,7 +655,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="31"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;For debugging only.&lt;/span&gt;&lt;br/&gt;If you&apos;re not sure what these do, keep all of these enabled. &lt;br/&gt;These settings, when disabled, only take effect when CPU Debugging is enabled. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Тільки для налагодження.&lt;/span&gt;&lt;br/&gt;Якщо ви не впевнені в тому, що вони роблять, залиште всі ці параметри увімкненими. &lt;br/&gt;Коли їх вимкнено, ці параметри набувають чинності лише за увімкненого налагодження ЦП. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Тільки для налагодження.&lt;/span&gt;&lt;br/&gt;Якщо ви не впевнені в тому, що вони роблять, залиште всі ці параметри увімкненими. &lt;br/&gt;Коли їх вимкнено, ці параметри набувають чинності лише за ввімкненого налагодження ЦП. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="41"/>
@@ -629,79 +664,95 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it inlines accesses to PageTable::pointers into emitted code.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to go through the Memory::Read/Memory::Write functions.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ця оптимізація прискорює доступ гостьової програми до пам&apos;яті.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Увімкнення цієї оптимізації вбудовує доступ до покажчиків PageTable::pointers в емульований код.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Вимкнення цієї функції змушує всі звернення до пам&apos;яті проходити через функції Memory::Read/Memory::Write.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="48"/>
<source>Enable inline page tables</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути вбудовані таблиці сторінок</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="55"/>
<source>
&lt;div&gt;This optimization avoids dispatcher lookups by allowing emitted basic blocks to jump directly to other basic blocks if the destination PC is static.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ця опція дозволяє уникнути запитів диспетчера, дозволяючи випущеним базовим блокам переходити безпосередньо до інших базових блоків, якщо призначений ПК є статичним.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="60"/>
<source>Enable block linking</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути зв&apos;язування блоків</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="67"/>
<source>
&lt;div&gt;This optimization avoids dispatcher lookups by keeping track potential return addresses of BL instructions. This approximates what happens with a return stack buffer on a real CPU.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Ця опція дозволяє уникнути запитів диспетчера шляхом відстеження потенційних адрес повернення інструкцій BL. Це приблизно те, що відбувається з буфером стека повернення на реальному ЦП. &lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="72"/>
<source>Enable return stack buffer</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути буфер стека повернення</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="79"/>
<source>
&lt;div&gt;Enable a two-tiered dispatch system. A faster dispatcher written in assembly has a small MRU cache of jump destinations is used first. If that fails, dispatch falls back to the slower C++ dispatcher.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Увімкнути дворівневу систему диспетчеризації. Швидший диспетчер, написаний на асемблері, має невеликий MRU-кеш, який використовується першим. Якщо це не вдається, система диспетчеризації повертається до повільнішого диспетчера C++.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="84"/>
<source>Enable fast dispatcher</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути швидшу систему диспетчеризації</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="91"/>
<source>
&lt;div&gt;Enables an IR optimization that reduces unnecessary accesses to the CPU context structure.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Вмикає IR-оптимізацію, яка зменшує непотрібні звернення до структури контексту ЦП.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="96"/>
<source>Enable context elimination</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути вилучення контексту ЦП</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="103"/>
<source>
&lt;div&gt;Enables IR optimizations that involve constant propagation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Вмикає IR-оптимізацію, яка включає поширення констант.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="108"/>
<source>Enable constant propagation</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути постійне поширення</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="115"/>
<source>
&lt;div&gt;Enables miscellaneous IR optimizations.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div&gt;Вмикає різні IR оптимізації.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="120"/>
@@ -714,12 +765,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;When enabled, a misalignment is only triggered when an access crosses a page boundary.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;When disabled, a misalignment is triggered on all misaligned accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Якщо ввімкнено, зміщення запускається лише тоді, коли доступ перетинає межу сторінки.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Якщо вимкнено, зміщення запускається для всіх невирівняних доступів.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="133"/>
<source>Enable misalignment check reduction</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути зменшення перевірки зміщення</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="140"/>
@@ -728,12 +782,16 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ця оптимізація прискорює доступ гостьової програми до пам&apos;яті.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt; Увімкнення цієї оптимізації призводить до того, що читання/запис гостьової пам&apos;яті проводиться безпосередньо в пам&apos;ять і використовує MMU хоста.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Вимкнення цієї функції змушує всі звернення до пам&apos;яті використовувати програмну емуляцію MMU.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="147"/>
<source>Enable Host MMU Emulation (general memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути емуляцію MMU хоста (інструкції загальної пам&apos;яті)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="154"/>
@@ -742,12 +800,16 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest exclusive memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all exclusive memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ця оптимізація прискорює доступ гостьової програми до ексклюзивної пам&apos;яті.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Увімкнення цієї оптимізації призводить до того, що читання/запис в ексклюзивну пам&apos;ять гостя виконується безпосередньо в пам&apos;ять і використовує MMU хоста.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt; Вимкнення цієї функції змушує всі ексклюзивні доступи до пам&apos;яті використовувати емуляцію програмного MMU.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="161"/>
<source>Enable Host MMU Emulation (exclusive memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути емуляцію MMU хоста (інструкції виняткової пам&apos;яті)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="168"/>
@@ -755,12 +817,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up exclusive memory accesses by the guest program.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of fastmem failure of exclusive memory accesses.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ця оптимізація прискорює звернення гостьової програми до виняткової пам&apos;яті.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Її ввімкнення знижує накладні витрати, пов&apos;язані з відмовою fastmem під час доступу до виняткової пам&apos;яті.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="174"/>
<source>Enable recompilation of exclusive memory instructions</source>
- <translation type="unfinished"/>
+ <translation>Дозволити перекомпіляцію інструкцій виняткової пам&apos;яті</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="181"/>
@@ -768,12 +833,15 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;This optimization speeds up memory accesses by allowing invalid memory accesses to succeed.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it reduces the overhead of all memory accesses and has no impact on programs that don't access invalid memory.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Ця оптимізація прискорює звернення до пам&apos;яті, дозволяючи успішне звернення до неприпустимої пам&apos;яті.&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Увімкнення цієї оптимізації знижує накладні витрати на всі звернення до пам&apos;яті та не впливає на програми, які не звертаються до неприпустимої пам&apos;яті.&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="187"/>
<source>Enable fallbacks for invalid memory accesses</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути запасні варіанти для неприпустимих звернень до пам&apos;яті</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="212"/>
@@ -856,7 +924,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="159"/>
<source>When checked, it enables Nsight Aftermath crash dumps</source>
- <translation type="unfinished"/>
+ <translation>Якщо ввімкнено, вмикає дампи крашів Nsight Aftermath</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="162"/>
@@ -876,7 +944,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="185"/>
<source>When checked, it will dump all the macro programs of the GPU</source>
- <translation type="unfinished"/>
+ <translation>Якщо ввімкнено, буде дампити всі макропрограми ГП</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="188"/>
@@ -886,110 +954,120 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="198"/>
<source>When checked, it disables the macro Just In Time compiler. Enabling this makes games run slower</source>
- <translation>Якщо увімкнено, макрос компілятор Just In Time вимикається. Якщо ввімкнути це, ігри будуть працювати повільніше </translation>
+ <translation>Якщо ввімкнено, вимикає компілятор макросу Just In Time. Увімкнення цього параметра уповільнює роботу ігор</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="201"/>
<source>Disable Macro JIT</source>
- <translation>Вимкнути Макрос JIT</translation>
+ <translation>Вимкнути макрос JIT</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>Якщо прапорець встановлено, він вимикає функції макроса HLE. Увімкнення цього параметра уповільнює роботу ігор</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>Вимкнути макрос HLE</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>Якщо увімкнено, yuzu записуватиме статистику про скомпільований кеш конвеєра</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>Увімкнути зворотний зв&apos;язок про шейдери</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
- <translation type="unfinished"/>
+ <translation>Якщо увімкнено, шейдери виконуються без зміни логіки циклу</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
- <translation type="unfinished"/>
+ <translation>Вимкнути перевірку безпеки циклу</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Налагодження</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути службу звітів у розгорнутому вигляді**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути журнал доступу до ФС</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
- <translation type="unfinished"/>
+ <translation>Увімкніть це щоб виводити останній згенерирований список аудіо команд в консоль. Впливає лише на ігри, які використовують аудіо рендерер.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
- <translation type="unfinished"/>
+ <translation>Вивантажувати аудіо команди в консоль**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
- <translation type="unfinished"/>
+ <translation>Створювати міні-дамп після крашу</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Розширені</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Режим кіоску (Квест)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Увімкнути налагодження ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути налагоджувальні припущення</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
- <translation type="unfinished"/>
+ <translation>Увімкнути автопідставку**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>Увімкнути всі типи контролерів</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>Вимкнути веб-аплет</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>Дозволяє yuzu перевіряти наявність робочого середовища Vulkan під час запуску програми. Вимкніть цю опцію, якщо це викликає проблеми з тим, що зовнішні програми бачать yuzu.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>Виконувати перевірку Vulkan під час запуску</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Це буде автоматично скинуто після закриття yuzu.</translation>
</message>
@@ -1001,17 +1079,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.cpp" line="36"/>
<source>yuzu is required to restart in order to apply this setting.</source>
- <translation>yuzu потрібно перезапустити, щоб застосувати це налаштування.</translation>
+ <translation>yuzu необхідно перезапустити, щоб застосувати це налаштування.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Веб-аплет не скомпільовано</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
- <translation type="unfinished"/>
+ <translation>Створення міні-дампа не скомпільовано</translation>
</message>
</context>
<context>
@@ -1059,78 +1137,78 @@ This would ban both their forum username and their IP address.</source>
<translation>Налаштування yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Аудіо</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Налагодження</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Файлова система</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Загальні</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Графіка</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>ГрафікаРозширені</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Гарячі клавіші</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Керування</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Профілі</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Мережа</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Система</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Список ігор</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Мережа</translation>
</message>
@@ -1305,46 +1383,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>Розширене компонування пам&apos;яті (6 ГБ DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Підтверджувати вихід під час емуляції</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Запитувати користувача під час запуску гри</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Призупиняти емуляцію у фоновому режимі</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>Приглушити звук у фоновому режимі</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Приховування миші при бездіяльності</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Скинути всі налаштування</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Це скине всі налаштування і видалить усі конфігурації під окремі ігри. При цьому не будуть видалені шляхи до ігор, профілів або профілів вводу. Продовжити?</translation>
</message>
@@ -1383,7 +1451,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Вимкнено</translation>
</message>
@@ -1409,216 +1477,272 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>Режим верт. синхронізації:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (VSync) не пропускає кадри і не має розривів, але обмежений частотою оновлення екрана.
+FIFO Relaxed схожий на FIFO, але може мати розриви під час відновлення після просідань.
+Mailbox може мати меншу затримку, ніж FIFO, і не має розривів, але може пропускати кадри.
+Моментальний (без синхронізації) просто показує всі кадри і може мати розриви.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Емуляція NVDEC:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Відсутність відеовиходу</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>Декодування відео на ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>Декодування відео на ГП (за замовчуванням)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Повноекранний режим:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Вікно без рамок</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Ексклюзивний повноекранний</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Співвідношення сторін:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>За замовчуванням (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Змусити 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Змусити 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>Змусити 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Розтягнути до вікна</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>Роздільна здатність:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [ЕКСПЕРИМЕНТАЛЬНЕ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [ЕКСПЕРИМЕНТАЛЬНЕ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [ЕКСПЕРИМЕНТАЛЬНО]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>Фільтр адаптації вікна:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>Найближчий сусід</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>Білінійне</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>Бікубічне</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>Гауса</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>ScaleForce</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ Super Resolution (Лише для Vulkan)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>Метод згладжування:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation>Використовувати глобальну різкість FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation>Встановити різкість FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation>Різкість FSR:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Використовувати глобальний фоновий колір</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Встановити фоновий колір:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Фоновий колір:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (асемблерні шейдери, лише для NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
- <translation type="unfinished"/>
+ <translation>SPIR-V (Експериментально, лише для Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>Вимкнено</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>Верт. синхронізацію вимкнено</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>Рекомендовано</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>Увімкнено</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>Верт. синхронізація увімкнена</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1643,77 +1767,134 @@ This would ban both their forum username and their IP address.</source>
<translation>Рівень точності:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>Вертикальна синхронізація запобігає розривам екрана, але деякі відеокарти мають нижчу продуктивність при вертикальній синхронізації. Залишайте увімкненим, якщо ви не помічаєте різниці в продуктивності.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>Рекомпресія ASTC:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>Без стиснення (Найкраща якість)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>ВС1 (Низька якість)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>ВС3 (Середня якість)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>Увімкнути асинхронну презентацію (Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>Виконує роботу у фоновому режимі в очікуванні графічних команд, не даючи змоги ГП знижувати тактову частоту.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>Примусово змусити максимальну тактову частоту (тільки для Vulkan)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>Використувати вертикальну сінхронізацію</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>Включає асинхронне декодування ASTC текстур, що може зменшити зависання під час завантаження. Ця функція є експериментальною.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>Декодувати ASTC текстури асинхронно (хак)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>Використовує реактивне очищення замість прогнозованого. Це дає змогу точніше синхронізувати пам&apos;ять.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>Увімкнути реактивне очищення</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Вмикає асинхронну компіляцію шейдерів, що зменшить зависання через шейдери. Функція є експериментальною.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>Використовувати асинхронну побудову шейдерів (хак)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>Вмикає функцію Fast GPU Time. Цей параметр змусить більшість ігор працювати в максимальній рідній роздільній здатності.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
- <translation>Увімкнути Fast GPU Time (Хак)</translation>
+ <translation>Увімкнути Fast GPU Time (хак)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>Вмикає песимістичне очищення буферів. Ця опція змушує промивати немодифіковані буфери, що може знизити продуктивність.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>Вмикає кеш конвеєра, специфічний для виробника GPU. Ця опція може значно поліпшити час завантаження шейдерів у тих випадках, коли драйвер Vulkan не зберігає внутрішні файли кешу конвеєра.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>Використовувати песимістичне очищення буферів (Хак)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>Використовувати конвеєрний кеш Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>Вмикає обчислювальні конвеєри, які обов&apos;язкові для деяких ігор. Цей параметр існує лише для власних драйверів Intel і може призвести до збоїв, якщо його ввімкнути.
+Обчислювальні конвеєри завжди увімкнені на всіх інших драйверах.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>Увімкнути обчислювальні конвеєри (тільки для Intel Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Анізотропна фільтрація:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>Автоматично</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>За замовчуванням</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1746,70 +1927,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Відновити значення за замовчуванням.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Дія</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Гаряча клавіша</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>Гаряча клавіша контролера</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Конфліктуюча комбінація клавіш</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Введена комбінація вже призначена до: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[очікування]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>Неприпустимо</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Відновити значення за замовчуванням</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Очистити</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>Конфліктуюче поєднання кнопок</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>Типова комбінація кнопок вже призначена до: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Типова комбінація клавіш вже призначена до: %1</translation>
</message>
@@ -2101,7 +2277,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Налаштувати</translation>
</message>
@@ -2127,6 +2303,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Потребує перезапуску yuzu</translation>
</message>
@@ -2146,22 +2324,42 @@ This would ban both their forum username and their IP address.</source>
<translation>Навігація контролера</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>Увімкнути прямий драйвер JoyCon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>Увімкнути прямий драйвер Pro Controller [ЕКСПЕРЕМИНТАЛЬНО]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>Дозволяє необмежено використовувати один і той самий Amiibo в іграх, які зазвичай дозволяють тільки одне використання.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>Використовувати випадкове Amiibo ID</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>Увімкнути панорамування миші</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Чутливість миші</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Рух і сенсор</translation>
</message>
@@ -2181,7 +2379,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="28"/>
<source>Input Profiles</source>
- <translation>Профілі Вводу</translation>
+ <translation>Профілі вводу</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.ui" line="49"/>
@@ -2231,7 +2429,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_per_game.cpp" line="47"/>
<source>Player %1 profile</source>
- <translation type="unfinished"/>
+ <translation>Профіль гравця %1</translation>
</message>
</context>
<context>
@@ -2273,7 +2471,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Лівий міні-джойстик</translation>
</message>
@@ -2367,14 +2565,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2393,7 +2591,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Плюс</translation>
</message>
@@ -2406,15 +2604,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2471,236 +2669,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Правий міні-джойстик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Очистити</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[не задано]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>Інвертувати кнопку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>Переключити кнопку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>Турбо кнопка</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>Інвертувати осі</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>Встановити поріг</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Оберіть значення між 0% і 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>Переключити осі</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>Встановити поріг гіроскопа</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>Калібрувати сенсор</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Задати аналоговий міні-джойстик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Після натискання на ОК, рухайте ваш міні-джойстик горизонтально, а потім вертикально.
Щоб інвертувати осі, спочатку рухайте ваш міні-джойстик вертикально, а потім горизонтально.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>Центрувати осі</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>Мертва зона: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>Діапазон модифікатора: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Контролер Pro</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Подвійні Joy-Con&apos;и</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Лівий Joy-Con</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Правий Joy-Con</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Портативний</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Контролер GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>Poke Ball Plus</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>Контролер NES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>Контролер SNES</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>Контролер N64</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Sega Genesis</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Старт / Пауза</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>Міні-джойстик керування</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Джойстик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Потрусіть!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[очікування]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Новий профіль</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Введіть ім&apos;я профілю:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Створити профіль контролю</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Задане ім&apos;я профілю недійсне!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Не вдалося створити профіль контролю &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Видалити профіль контролю</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Не вдалося видалити профіль контролю &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Завантажити профіль контролю</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Не вдалося завантажити профіль контролю &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Зберегти профіль контролю</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Не вдалося зберегти профіль контролю &quot;%1&quot;</translation>
</message>
@@ -2748,7 +2957,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Налаштувати</translation>
</message>
@@ -2784,7 +2993,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Тест</translation>
</message>
@@ -2804,77 +3013,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Дізнатися більше&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Номер порту містить неприпустимі символи</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Порт повинен бути в районі від 0 до 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>IP-адреса недійсна</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Цей UDP сервер уже існує</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Неможливо додати більше 8 серверів</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Тестування</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Налаштування</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Тест успішний</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Успішно отримано інформацію із сервера</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Тест провалено</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Не вдалося отримати дійсні дані з сервера.&lt;br&gt;Переконайтеся, що сервер правильно налаштований, а також перевірте адресу та порт.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>Тест UDP або калібрація в процесі.&lt;br&gt;Будь ласка, зачекайте завершення.</translation>
</message>
@@ -2955,47 +3164,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>Розробник</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Доповнення</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Загальні</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Система</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>ЦП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Графіка</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Розш. Графіка</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Аудіо</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
- <translation>Профілі Вводу</translation>
+ <translation>Профілі вводу</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Властивості</translation>
</message>
@@ -3203,8 +3412,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>Параметри сенсора Ring</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>Параметри датчика віртуального Ring</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3224,33 +3433,90 @@ UUID: %2</translation>
<translation>Мертва зона: 0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Прямий драйвер Joycon</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>Увімкнути введення Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>Увімкнути</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>Значення датчика Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>Не під&apos;єднано</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>За замовчуванням</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Очистити</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[не задано]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>Інвертувати осі</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>Мертва зона: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>Помилка під час увімкнення введення кільця</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>Прямий драйвер Joycon не активний</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Налаштування</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>Поточний вибраний пристрій не підтримує контролер Ring</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>До поточного пристрою не прикріплено кільце</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>Несподіваний результат драйвера %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[очікування]</translation>
</message>
@@ -3555,8 +3821,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Англійська (English)</translation>
+ <source>American English</source>
+ <translation>Американська Англійська</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3656,57 +3922,22 @@ UUID: %2</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="438"/>
<source>Device Name</source>
- <translation type="unfinished"/>
+ <translation>Назва пристрою</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Моно</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>Небезпечне розширення компонування пам&apos;яті (8 ГБ DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Стерео</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Об&apos;ємний звук</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>Ідентифікатор консолі:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Режим виводу звуку</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Перегенерувати</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Налаштування системи доступні тільки тоді, коли гру не запущено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Це замінить ваш поточний віртуальний Switch новим. Ваш поточний віртуальний Switch буде безповоротно втрачено. Це може мати несподівані наслідки в іграх. Може не спрацювати, якщо ви використовуєте застарілу конфігурацію збережених ігор. Продовжити?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Увага</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>Ідентифікатор консолі: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>Увага: мова &quot;%1&quot; не підходить для регіону &quot;%2&quot;</translation>
</message>
</context>
<context>
@@ -3775,7 +4006,7 @@ UUID: %2</translation>
<translation>Налаштування TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>Обрати папку завантаження TAS...</translation>
</message>
@@ -4331,7 +4562,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>Контролер P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>[&amp;C] Контролер P1</translation>
</message>
@@ -4344,42 +4575,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>Пряме підключення</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IP-адреса</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>Адреса сервера</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 адреса хоста&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Адреса сервера хоста&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>Порт</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Номер порту, який прослуховується хостом&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>Псевдонім</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>Пароль</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>Підключитися</translation>
</message>
@@ -4387,12 +4613,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>Підключення</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>Підключитися</translation>
</message>
@@ -4400,535 +4626,560 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Анонімні дані збираються для того,&lt;/a&gt; щоб допомогти поліпшити роботу yuzu. &lt;br/&gt;&lt;br/&gt;Хотіли б ви ділитися даними про використання з нами?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Телеметрія</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>Виявлено пошкоджену інсталяцію Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>Не вдалося виконати ініціалізацію Vulkan під час завантаження.&lt;br&gt;&lt;br&gt;Натисніть &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;тут для отримання інструкцій щодо усунення проблеми&lt;/a&gt;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>Завантаження веб-аплета...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>Вимкнути веб-аплет</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>Вимкнення веб-апплета може призвести до несподіваної поведінки, і його слід вимикати лише заради Super Mario 3D All-Stars. Ви впевнені, що хочете вимкнути веб-апплет?
(Його можна знову ввімкнути в налаштуваннях налагодження.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>Кількість створюваних шейдерів на цей момент</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>Поточний обраний множник масштабування роздільної здатності.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Поточна швидкість емуляції. Значення вище або нижче 100% вказують на те, що емуляція йде швидше або повільніше, ніж на Switch.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Кількість кадрів на секунду в цей момент. Значення буде змінюватися між іграми та сценами.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Час, який потрібен для емуляції 1 кадру Switch, не беручи до уваги обмеження FPS або вертикальну синхронізацію. Для емуляції в повній швидкості значення має бути не більше 16,67 мс.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>[&amp;C] Очистити нещодавні файли</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>Емульована мишка увімкнена</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>Введення реальної миші та панорамування мишею несумісні. Будь ласка, вимкніть емульовану мишу в розширених налаштуваннях введення, щоб дозволити панорамування мишею.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>[&amp;C] Продовжити</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>[&amp;P] Пауза</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>В yuzu запущено гру</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Попередження застарілий формат гри</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Для цієї гри ви використовуєте розархівований формат ROM&apos;а, який є застарілим і був замінений іншими, такими як NCA, NAX, XCI або NSP. У розархівованих каталогах ROM&apos;а відсутні іконки, метадані та підтримка оновлень. &lt;br&gt;&lt;br&gt;Для отримання інформації про різні формати Switch, підтримувані yuzu, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;перегляньте нашу вікі&lt;/a&gt;. Це повідомлення більше не буде відображатися.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Помилка під час завантаження ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Формат ROM&apos;а не підтримується.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Сталася помилка під час ініціалізації відеоядра.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu зіткнувся з помилкою під час запуску відеоядра. Зазвичай це спричинено застарілими драйверами ГП, включно з інтегрованими. Перевірте журнал для отримання більш детальної інформації. Додаткову інформацію про доступ до журналу дивіться на наступній сторінці: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;Як завантажити файл журналу&lt;/a&gt;. </translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>Помилка під час завантаження ROM&apos;а! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;Будь ласка, дотримуйтесь &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;короткого керівництва користувача yuzu&lt;/a&gt; щоб пере-дампити ваші файли&lt;br&gt;Ви можете звернутися до вікі yuzu&lt;/a&gt; або Discord yuzu&lt;/a&gt; для допомоги</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Сталася невідома помилка. Будь ласка, перевірте журнал для подробиць.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-бітний)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-бітний)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
- <translation type="unfinished"/>
+ <translation>Закриваємо програму...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>Збереження</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Дані модів</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Помилка під час відкриття папки %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Папка не існує!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>Помилка під час відкриття переносного кешу шейдерів</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>Не вдалося створити папку кешу шейдерів для цієї гри.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation>Помилка під час видалення вмісту</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>Помилка під час видалення оновлень</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>Помилка під час видалення DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation>Видалити встановлений вміст ігор?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>Видалити встановлені оновлення гри?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>Видалити встановлені DLC гри?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>Видалити запис</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>Успішно видалено</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>Встановлену гру успішно видалено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>Гру не встановлено в NAND і не може буде видалено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>Встановлене оновлення успішно видалено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>Для цієї гри не було встановлено оновлення.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>Для цієї гри не було встановлено DLC.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>Встановлений DLC %1 було успішно видалено</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>Видалити переносний кеш шейдерів OpenGL?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>Видалити переносний кеш шейдерів Vulkan?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>Видалити весь переносний кеш шейдерів?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>Видалити користувацьке налаштування гри?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>Видалити файл</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>Помилка під час видалення переносного кешу шейдерів</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>Кеш шейдерів для цієї гри не існує.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>Переносний кеш шейдерів успішно видалено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>Не вдалося видалити переносний кеш шейдерів.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>Помилка під час видалення конвеєрного кешу Vulkan</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>Не вдалося видалити конвеєрний кеш шейдерів.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>Помилка під час видалення переносного кешу шейдерів</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>Переносний кеш шейдерів успішно видалено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>Помилка під час видалення папки переносного кешу шейдерів.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>Помилка під час видалення користувацького налаштування</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>Користувацьких налаштувань для цієї гри не існує.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>Користувацьке налаштування гри успішно видалено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>Не вдалося видалити користувацьке налаштування гри.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Не вдалося вилучити RomFS!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Сталася помилка під час копіювання файлів RomFS або користувач скасував операцію.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>Повний</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Скелет</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Виберіть режим дампа RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Будь ласка, виберіть, як ви хочете виконати дамп RomFS &lt;br&gt;Повний скопіює всі файли в нову папку, тоді як &lt;br&gt;скелет створить лише структуру папок.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>В %1 недостатньо вільного місця для вилучення RomFS. Будь ласка, звільніть місце або виберіть іншу папку для дампа в Емуляція &gt; Налаштування &gt; Система &gt; Файлова система &gt; Корінь дампа</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Вилучення RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Скасувати</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Вилучення RomFS пройшло успішно!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Операція завершилася успішно.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Створити ярлик</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
- <translation type="unfinished"/>
+ <translation>Це створить ярлик для поточного AppImage. Він може не працювати після оновлень. Продовжити?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
- <translation type="unfinished"/>
+ <translation>Не вдається створити ярлик на робочому столі. Шлях &quot;%1&quot; не існує.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Неможливо створити ярлик у меню додатків. Шлях &quot;%1&quot; не існує і не може бути створений.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
- <translation type="unfinished"/>
+ <translation>Створити іконку</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
- <translation type="unfinished"/>
+ <translation>Неможливо створити файл іконки. Шлях &quot;%1&quot; не існує і не може бути створений.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
- <translation type="unfinished"/>
+ <translation>Запустити %1 за допомогою емулятора yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
- <translation type="unfinished"/>
+ <translation>Не вдалося створити ярлик у %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
- <translation type="unfinished"/>
+ <translation>Успішно створено ярлик у %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>Помилка відкриття %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Обрати папку</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Властивості</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Не вдалося завантажити властивості гри.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Виконуваний файл Switch (%1);;Усі файли (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Завантажити файл</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Відкрити папку вилученого ROM&apos;а</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Вибрано неприпустиму папку</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Папка, яку ви вибрали, не містить файлу &apos;main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Встановлюваний файл Switch (*.nca, *.nsp, *.xci);;Архів контенту Nintendo (*.nca);;Пакет подачі Nintendo (*.nsp);;Образ картриджа NX (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>Встановити файли</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>Залишився %n файл</numerusform><numerusform>Залишилося %n файл(ів)</numerusform><numerusform>Залишилося %n файл(ів)</numerusform><numerusform>Залишилося %n файл(ів)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Встановлення файлу &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>Результати встановлення</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>Щоб уникнути можливих конфліктів, ми не рекомендуємо користувачам встановлювати ігри в NAND.
Будь ласка, використовуйте цю функцію тільки для встановлення оновлень і завантажуваного контенту.</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>%n файл було нещодавно встановлено
@@ -4938,7 +5189,7 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n файл було перезаписано
@@ -4948,7 +5199,7 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n файл не вдалося встановити
@@ -4958,377 +5209,388 @@ Please, only use this feature to install updates and DLC.</source>
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Системний додаток</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Системний архів</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Оновлення системного додатку</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Пакет прошивки (Тип А)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Пакет прошивки (Тип Б)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Гра</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Оновлення гри</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>DLC до гри</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Дельта-титул</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Виберіть тип установки NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Будь ласка, виберіть тип додатку, який ви хочете встановити для цього NCA:
(У більшості випадків, підходить стандартний вибір &quot;Гра&quot;.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Помилка встановлення</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Тип додатку, який ви вибрали для NCA, недійсний.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Файл не знайдено</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Файл &quot;%1&quot; не знайдено</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>ОК</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>Не задоволені системні вимоги</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation>Ваша система не відповідає рекомендованим системним вимогам. Звіти про сумісність було вимкнено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Відсутній обліковий запис yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Щоб надіслати звіт про сумісність гри, необхідно прив&apos;язати свій обліковий запис yuzu. &lt;br&gt;&lt;br/&gt;Щоб прив&apos;язати свій обліковий запис yuzu, перейдіть у розділ Емуляція &amp;gt; Параметри &amp;gt; Мережа.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>Помилка під час відкриття URL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>Не вдалося відкрити URL: &quot;%1&quot;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>Запис TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>Перезаписати файл гравця 1?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>Виявлено неприпустиму конфігурацію</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>Портативний контролер не може бути використаний у режимі док-станції. Буде обрано контролер Pro.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>Поточний amiibo було прибрано</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>Помилка</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>Поточна гра не шукає amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Файл Amiibo (%1);; Всі Файли (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Завантажити Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Помилка під час завантаження даних Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>Обраний файл не є допустимим amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>Обраний файл уже використовується</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>Виникла невідома помилка</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Зробити знімок екрану</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Зображення PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>Стан TAS: Виконується %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>Стан TAS: Записується %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>Стан TAS: Простий %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>Стан TAS: Неприпустимий</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>[&amp;S] Зупинка</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>[&amp;S] Почати</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>[&amp;E] Закінчити запис</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>[&amp;E] Запис</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>Побудова: %n шейдер</numerusform><numerusform>Побудова: %n шейдер(ів)</numerusform><numerusform>Побудова: %n шейдер(ів)</numerusform><numerusform>Побудова: %n шейдер(ів)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>Масштаб: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Швидкість: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Швидкість: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>Гра: %1 FPS (Необмежено)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Гра: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Кадр: %1 мс</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>ГП НОРМАЛЬНО</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>ГП ВИСОКО</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>ГП ЕКСТРИМ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>ГП ПОМИЛКА</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>В ДОК-СТАНЦІЇ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>ПОРТАТИВНИЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
- <translation type="unfinished"/>
+ <translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>НАЙБЛИЖЧІЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>БІЛІНІЙНИЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>БІКУБІЧНИЙ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>ГАУС</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>SCALEFORCE</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>БЕЗ ЗГЛАДЖУВАННЯ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
- <translation type="unfinished"/>
+ <translation>SMAA</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>ГУЧНІСТЬ: ЗАГЛУШЕНА</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>ГУЧНІСТЬ: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Підтвердіть перерахунок ключа</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5345,37 +5607,37 @@ This will delete your autogenerated key files and re-run the key derivation modu
Це видалить ваші автоматично згенеровані файли ключів і повторно запустить модуль розрахунку ключів.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>Відсутні запобіжники</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- Відсутній BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation>- Відсутній BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation> - Відсутній PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>Компоненти розрахунку відсутні</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>Ключі шифрування відсутні.&lt;br&gt;Будь ласка, дотримуйтесь &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;короткого керівництва користувача yuzu&lt;/a&gt;, щоб отримати всі ваші ключі, прошивку та ігри&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5384,39 +5646,49 @@ on your system&apos;s performance.</source>
від продуктивності вашої системи.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Отримання ключів</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>Не вдалося розшифрувати системний архів</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>Ключі шифрування не змогли розшифрувати прошивку.&lt;br&gt;Будь ласка, дотримуйтесь &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;короткого керівництва користувача yuzu&lt;/a&gt; щоб отримати всі ваші ключі, прошивку та ігри.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Оберіть ціль для дампа RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Будь ласка, виберіть, який RomFS ви хочете здампити.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Ви впевнені, що хочете закрити yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Ви впевнені, що хочете зупинити емуляцію? Будь-який незбережений прогрес буде втрачено.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5428,44 +5700,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL недоступний!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
- <translation type="unfinished"/>
+ <translation>Загальні контексти OpenGL не підтримуються.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu не було зібрано з підтримкою OpenGL.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Помилка під час ініціалізації OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>Ваш ГП може не підтримувати OpenGL, або у вас встановлено застарілий графічний драйвер.</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>Помилка під час ініціалізації OpenGL 4.6!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>Ваш ГП може не підтримувати OpenGL 4.6, або у вас встановлено застарілий графічний драйвер.&lt;br&gt;&lt;br&gt;Рендерер GL:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>Ваш ГП може не підтримувати одне або кілька необхідних розширень OpenGL. Будь ласка, переконайтеся в тому, що у вас встановлено останній графічний драйвер.&lt;br&gt;&lt;br&gt;Рендерер GL:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Розширення, що не підтримуються:&lt;br&gt;%2</translation>
</message>
@@ -5524,117 +5796,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>Видалити кеш конвеєра OpenGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>Видалити кеш конвеєра Vulkan</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>Видалити весь кеш конвеєра </translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>Видалити весь встановлений вміст</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Дамп RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>Здампити RomFS у SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Скопіювати ідентифікатор додатку в буфер обміну</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Перейти до сторінки GameDB</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
- <translation type="unfinished"/>
+ <translation>Створити ярлик</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
- <translation type="unfinished"/>
+ <translation>Додати на Робочий стіл</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
- <translation type="unfinished"/>
+ <translation>Додати до меню застосунків</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Властивості</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>Сканувати підпапки</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>Видалити директорію гри</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ Перемістити вверх</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ Перемістити вниз</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>Відкрити розташування папки</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Очистити</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Назва</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Сумісність</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Доповнення</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Тип файлу</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Розмір</translation>
</message>
@@ -5705,7 +5982,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>Натисніть двічі, щоб додати нову папку до списку ігор</translation>
</message>
@@ -5718,12 +5995,12 @@ Would you like to bypass this and exit anyway?</source>
<translation><numerusform>%1 із %n результат(ів)</numerusform><numerusform>%1 із %n результат(ів)</numerusform><numerusform>%1 із %n результат(ів)</numerusform><numerusform>%1 із %n результат(ів)</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Пошук:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Введіть текст для пошуку</translation>
</message>
@@ -5814,12 +6091,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>Увімкнення/вимкнення звуку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5841,111 +6117,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>Основне вікно</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>Зменшити гучність звуку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>Підвищити гучність звуку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Зробити знімок екрану</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>Змінити адаптуючий фільтр</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>Змінити режим консолі</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>Змінити точність ГП</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>Продовження/Пауза емуляції</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>Вийти з повноекранного режиму</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>Вийти з yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Повний екран</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Завантажити файл</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>Завантажити/видалити Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>Перезапустити емуляцію</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>Зупинити емуляцію</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>Запис TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>Скидання TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>Старт/Стоп TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>Переключити панель пошуку</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>Переключити обмеження частоти кадрів</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>Переключити панорамування миші</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>Переключити панель стану</translation>
</message>
@@ -5968,7 +6245,7 @@ Debug Message: </source>
<translation>Встановити</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>Встановити файли в NAND</translation>
</message>
@@ -5976,7 +6253,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>У тексті неприпустимі такі символи:
@@ -6051,51 +6328,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>Приховати порожні кімнати</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>Приховати повні кімнати</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>Оновити фойє</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>Для входу необхідний пароль</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>Пароль:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Гравці</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>Назва кімнати</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>Переважна гра</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>Хост</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>Оновлення</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>Оновити список</translation>
</message>
@@ -6633,7 +6915,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>СТАРТ/ПАУЗА</translation>
</message>
@@ -6682,31 +6964,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[не задано]</translation>
</message>
@@ -6717,14 +6999,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Ось %1%2</translation>
</message>
@@ -6735,264 +7017,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[невідомо]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Вліво</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Вправо</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Вниз</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Вгору</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Start</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>Кружечок</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>Хрестик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>Квадратик</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Трикутничок</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>Share</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>Options</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[невизначено]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[неприпустимо]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Напр. %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2Ось %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2Ось %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2Рух %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2Кнопка %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[не використаний]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>Лівий стік</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>Правий стік</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Плюс</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Мінус</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>Захоплення</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Сенсор</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>Коліщатко</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>Назад</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>Вперед</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>Задача</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>Додаткова</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3Напр. %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3Вісь %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3Кнопка %4</translation>
</message>
</context>
<context>
@@ -7361,28 +7701,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>Код помилки: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>Сталася помилка.
Будь ласка, спробуйте ще раз або зв&apos;яжіться з розробником ПЗ.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>Сталася помилка на %1 у %2.
Будь ласка, спробуйте ще раз або зв&apos;яжіться з розробником ПЗ.</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7406,20 +7746,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Оберить користувача</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Користувачі</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>Творець профілю</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Вибір профілю</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>Редактор іконки профілю</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>Редактор нікнейма профілю</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>Хто отримуватиме очки?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>Хто використовує Nintendo eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>Хто здійснює цю покупку?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>Хто публікує?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>Виберіть користувача для прив&apos;язки до облікового запису Nintendo.</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>Змінити налаштування для якого користувача?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>Форматувати дані для якого користувача?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>Який користувач буде переходити на іншу консоль?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>Надіслати збереження якому користувачеві?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Оберить користувача</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7469,180 +7870,139 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Стек викликів</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation type="unfinished"/>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
- <translation type="unfinished"/>
+ <translation>не очікується жодним потоком</translation>
</message>
</context>
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
- <translation type="unfinished"/>
+ <translation>runnable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
- <translation type="unfinished"/>
+ <translation>paused</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
- <translation type="unfinished"/>
+ <translation>sleeping</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
- <translation type="unfinished"/>
+ <translation>очікування відповіді IPC</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
- <translation type="unfinished"/>
+ <translation>очікування об&apos;єктів</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
- <translation type="unfinished"/>
+ <translation>waiting for condition variable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
- <translation type="unfinished"/>
+ <translation>waiting for address arbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
- <translation type="unfinished"/>
+ <translation>waiting for suspend resume</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
- <translation type="unfinished"/>
+ <translation>waiting</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
- <translation type="unfinished"/>
+ <translation>initialized</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
- <translation type="unfinished"/>
+ <translation>terminated</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
- <translation type="unfinished"/>
+ <translation>невідомо</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
- <translation type="unfinished"/>
+ <translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
- <translation type="unfinished"/>
+ <translation>ядро %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
- <translation type="unfinished"/>
+ <translation>процесор = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
- <translation type="unfinished"/>
+ <translation>маска подібності = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
- <translation type="unfinished"/>
+ <translation>ідентифікатор потоку = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
- <translation type="unfinished"/>
+ <translation>пріоритет = %1(поточний) / %2(звичайний)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation type="unfinished"/>
+ <translation>last running ticks = %1</translation>
</message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
- <translation type="unfinished"/>
+ <translation>очікується потоком</translation>
</message>
</context>
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>[&amp;W] Дерево очікування</translation>
</message>
diff --git a/dist/languages/vi.ts b/dist/languages/vi.ts
index 66ba533b8..2829ef62a 100644
--- a/dist/languages/vi.ts
+++ b/dist/languages/vi.ts
@@ -25,12 +25,18 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;yuzu is an experimental open-source emulator for the Nintendo Switch licensed under GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;This software should not be used to play games you have not legally obtained.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;yuzu là một phần mềm giả lập thử nghiệm mã nguồn mở cho máy Nintendo Switch, được cấp phép theo giấy phép GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&apos;MS Shell Dlg 2&apos;; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Bạn không được phép sử dụng phần mềm này cho để chơi game mà bạn kiếm được một cách bất hợp pháp.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="130"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Website&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Source Code&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Contributors&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/LICENSE.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;License&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Trang web&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Mã nguồn&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Đóng góp&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/license.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Giấy phép&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="146"/>
@@ -81,90 +87,92 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="40"/>
<source>Send Chat Message</source>
- <translation type="unfinished"/>
+ <translation>Gửi tin nhắn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="47"/>
<source>Send Message</source>
- <translation type="unfinished"/>
+ <translation>Gửi tin nhắn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="181"/>
<source>Members</source>
- <translation type="unfinished"/>
+ <translation>Thành viên</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="318"/>
<source>%1 has joined</source>
- <translation type="unfinished"/>
+ <translation>%1 đã vô</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="321"/>
<source>%1 has left</source>
- <translation type="unfinished"/>
+ <translation>%1 đã thoát</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="324"/>
<source>%1 has been kicked</source>
- <translation type="unfinished"/>
+ <translation>%1 đã bị kick</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="327"/>
<source>%1 has been banned</source>
- <translation type="unfinished"/>
+ <translation>%1 đã bị ban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="330"/>
<source>%1 has been unbanned</source>
- <translation type="unfinished"/>
+ <translation>%1 đã được unban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="446"/>
<source>View Profile</source>
- <translation type="unfinished"/>
+ <translation>Xem hồ sơ</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="459"/>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="469"/>
<source>Block Player</source>
- <translation type="unfinished"/>
+ <translation>Chặn người chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="470"/>
<source>When you block a player, you will no longer receive chat messages from them.&lt;br&gt;&lt;br&gt;Are you sure you would like to block %1?</source>
- <translation type="unfinished"/>
+ <translation>Khi bạn chặn một người chơi, bạn sẽ không còn nhận được tin nhắn từ người chơi đó nữa. Bạn có chắc là muốn chặn %1?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="483"/>
<source>Kick</source>
- <translation type="unfinished"/>
+ <translation>Kick</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="484"/>
<source>Ban</source>
- <translation type="unfinished"/>
+ <translation>Ban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="488"/>
<source>Kick Player</source>
- <translation type="unfinished"/>
+ <translation>Kick người chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="489"/>
<source>Are you sure you would like to &lt;b&gt;kick&lt;/b&gt; %1?</source>
- <translation type="unfinished"/>
+ <translation>Bạn có chắc là bạn muốn &lt;b&gt;kick&lt;/b&gt; %1?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="497"/>
<source>Ban Player</source>
- <translation type="unfinished"/>
+ <translation>Ban người chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="498"/>
<source>Are you sure you would like to &lt;b&gt;kick and ban&lt;/b&gt; %1?
This would ban both their forum username and their IP address.</source>
- <translation type="unfinished"/>
+ <translation>Bạn có chắc là bạn muốn &lt;b&gt;kick và ban&lt;/b&gt; %1?
+
+Điều này sẽ ban tên trên diễn đàn của họ và IP của họ luôn</translation>
</message>
</context>
<context>
@@ -177,17 +185,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="27"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Nội dung phòng chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="47"/>
<source>Moderation...</source>
- <translation type="unfinished"/>
+ <translation>Quản lý...</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="57"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Rời khỏi phòng</translation>
</message>
</context>
<context>
@@ -200,12 +208,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="87"/>
<source>Disconnected</source>
- <translation type="unfinished"/>
+ <translation>Mất kết nối</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
<source>%1 - %2 (%3/%4 members) - connected</source>
- <translation type="unfinished"/>
+ <translation>%1 - %2 (%3/%4 members) - đã kết nối</translation>
</message>
</context>
<context>
@@ -234,102 +242,102 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có chạy lên thành công hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Có Game có xuất ra hình và âm thanh</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Không Game không thể qua khỏi được khúc màn hình &quot;Launching...&quot;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Có Game có thể qua được khúc intro/menu và vô được game</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Không Game crash hoặc đơ khi đang loading hoặc sử dụng menu</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có chạy được tới vô bên trong hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Có Game chạy ổn định, không bị crash</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Không Game crash hoặc đơ trong lúc chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game chạy có ổn định với không crash, đơ hoặc bị kẹt trong lúc chơi hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Có Game có thể hoàn thành mà không cần phải làm gì thêm</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Không Game không thể qua được mốt số khúc</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có chơi được từ đầu đến cuối hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nặng Game bị lỗi hình ảnh nặng</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nhẹ Game bị lỗi hình ảnh nhẹ</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Không lỗi Game nhìn y hệt như trên Nintendo Switch</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có bị lỗi gì về hình ảnh không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nặng Game bị lỗi âm thanh nặng</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nhẹ Game bị lỗi âm thanh nhẹ</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Không lỗi Âm thanh hoạt động hoàn hảo</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any audio glitches / missing effects?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có bị lỗi âm thanh hay lỗi hiệu ứng hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="389"/>
@@ -372,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation type="unfinished"/>
+ <source>Output Device:</source>
+ <translation>Đầu ra hệ thống:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Thiết bị Nhập</translation>
+ <source>Input Device:</source>
+ <translation>Đầu vào thiết bị:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Chế độ đầu ra âm thanh</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Xung quanh</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Sử dụng âm lượng trong cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Âm lượng tuỳ chỉnh:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Âm lượng:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Tắt âm thanh khi chạy nền</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -412,37 +445,37 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="14"/>
<source>Configure Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Chỉnh sửa camera hồng ngoại</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="26"/>
<source>Select where the image of the emulated camera comes from. It may be a virtual camera or a real camera.</source>
- <translation type="unfinished"/>
+ <translation>Chọn hình ảnh từ camera giả lập. Nó có thể là một camera giả hoặc là một camera thật</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="52"/>
<source>Camera Image Source:</source>
- <translation type="unfinished"/>
+ <translation>Camera ảnh gốc:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="71"/>
<source>Input device:</source>
- <translation type="unfinished"/>
+ <translation>Đầu vào thiết bị:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="96"/>
<source>Preview</source>
- <translation type="unfinished"/>
+ <translation>Xem trước</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="108"/>
<source>Resolution: 320*240</source>
- <translation type="unfinished"/>
+ <translation>Độ phân giải: 320*240</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="115"/>
<source>Click to preview</source>
- <translation type="unfinished"/>
+ <translation>Nhấn để xem</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="140"/>
@@ -708,7 +741,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="120"/>
<source>Enable miscellaneous optimizations</source>
- <translation type="unfinished"/>
+ <translation>Bật tối ưu hóa tính năng phụ</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="127"/>
@@ -730,12 +763,16 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Cái này sẽ tăng tốc độ truy cập bộ nhớ bằng cách truy cập dưới dạng chương trình guest&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Khi bật lên sẽ viết/đọc trực tiếp vô bộ nhớ và sử dụng Host MMU&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Tắt cái này đi sẽ ép mọi phương thức truy cập bộ nhớ đi qua Software MMU Emulation&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="147"/>
<source>Enable Host MMU Emulation (general memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Bật Host MMU Emulation (general memory instructions)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="154"/>
@@ -896,102 +933,112 @@ This would ban both their forum username and their IP address.</source>
<translation>Không dùng Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Vá lỗi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Nâng Cao</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Bật Vá Lỗi CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Sẽ tự động thiết lập lại khi tắt yuzu.</translation>
</message>
@@ -1006,12 +1053,12 @@ This would ban both their forum username and their IP address.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1061,78 +1108,78 @@ This would ban both their forum username and their IP address.</source>
<translation>Thiết lập yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Âm thanh</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Gỡ lỗi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Hệ thống tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Chung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Đồ hoạ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Đồ họa Nâng cao</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Phím tắt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Hồ sơ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Mạng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Hệ thống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Danh sách trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1307,46 +1354,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Xác nhận thoát trong khi đang chạy giả lập</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Hiển thị cửa sổ chọn người dùng khi bắt đầu trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Tạm dừng giả lập khi chạy nền</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Ẩn con trỏ chuột khi không dùng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Đặt lại mọi tùy chỉnh</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Quá trình này sẽ thiết lập lại toàn bộ tùy chỉnh và gỡ hết mọi cài đặt cho từng game riêng lẻ. Quá trình này không xóa đường dẫn tới thư mục game, hồ sơ, hay hồ sơ của thiết lập phím. Tiếp tục?</translation>
</message>
@@ -1385,7 +1422,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Trống</translation>
</message>
@@ -1411,216 +1448,269 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Giả lập NVDEC</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Không Video Đầu Ra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Chế độ Toàn màn hình:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Cửa sổ không viền</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Toàn màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Tỉ lệ khung hình:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Mặc định (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Dùng 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Dùng 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Kéo dãn đến cửa sổ phần mềm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Dùng màu nền theo cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Chọn màu nền:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Màu nền:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Assembly Shaders, Chỉ Cho NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1645,77 +1735,133 @@ This would ban both their forum username and their IP address.</source>
<translation>Độ chính xác:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync tránh cho màn hình bị &quot;xước&quot;, tuy nhiên một số cạc đồ hoạ có hiệu năng chậm hơn khi VSync được kích hoạt. Bật chức năng này nếu nó không ảnh hưởng gì đến hiệu năng.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Kích hoạt tính năng tạo shader không đồng bộ nhằm tránh cho trò chơi bị giật khi tạo shader. Tính năng này vẫn đang thử nghiệm.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Tăng Tốc Thời Gian GPU (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Bộ lọc góc nghiêng:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1748,70 +1894,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Khôi phục về mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Hành động</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Phím tắt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Tổ hợp phím bị xung đột</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Tổ hợp phím này đã gán với: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[Chờ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Khôi phục về mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Xóa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Tổ hợp phím này đã gán với: %1</translation>
</message>
@@ -2103,7 +2244,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Thiết lập</translation>
</message>
@@ -2129,6 +2270,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Phải khởi động lại yuzu</translation>
</message>
@@ -2148,22 +2291,42 @@ This would ban both their forum username and their IP address.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Độ nhạy chuột</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Chuyển động / Cảm ứng</translation>
</message>
@@ -2275,7 +2438,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Cần trái</translation>
</message>
@@ -2369,14 +2532,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2395,7 +2558,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Cộng</translation>
</message>
@@ -2408,15 +2571,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2473,236 +2636,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Cần phải</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Bỏ trống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[không đặt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Chọn một giá trị giữa 0% và 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Thiết lập Cần Điều Khiển</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Sau khi bấm OK, di chuyển cần sang ngang, rồi sau đó sang dọc.
Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần sang dọc trước, rồi sang ngang.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Tay cầm Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Joycon đôi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon Trái</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon Phải</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Cầm tay</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Tay cầm GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Bắt đầu / Tạm ngưng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Lắc!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[Chờ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Hồ sơ mới</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Nhập tên hồ sơ:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Tạo Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Tên hồ sơ không hợp lệ!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Quá trình tạo hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Xóa Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Quá trình xóa hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Nạp Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Quá trình nạp hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Lưu Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Quá trình lưu hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
@@ -2750,7 +2924,7 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Thiết lập</translation>
</message>
@@ -2786,7 +2960,7 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Thử nghiệm</translation>
</message>
@@ -2806,77 +2980,77 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Tìm hiểu thêm&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Cổng có kí tự không hợp lệ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Cổng phải từ 0 đến 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>Địa chỉ IP không hợp lệ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Server UDP đã tồn tại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Không thể vượt quá 8 server</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Thử nghiệm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Thử Nghiệm Thành Công</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Nhận được dữ liệu từ server!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Thử Nghiệm Thất Bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Không thể nhận được dữ liệu hợp lệ từ server. &lt;br&gt;Hãy chắc chắn server được thiết lập chính xác, từ địa chỉ lẫn cổng phải được thiết lập đúng.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation type="unfinished"/>
</message>
@@ -2957,47 +3131,47 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
<translation>Nhà Phát Hành</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Bổ Sung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Chung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Hệ thống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Đồ hoạ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Đồ Họa Nâng Cao</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Âm thanh</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Thuộc tính</translation>
</message>
@@ -3204,7 +3378,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3225,33 +3399,90 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Khôi phục về mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Bỏ trống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[không đặt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Cài đặt</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[Chờ]</translation>
</message>
@@ -3556,8 +3787,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Tiếng Anh</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3660,54 +3891,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Xung quanh</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID bàn giao tiếp:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Chế độ đầu ra âm thanh</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Tạo mới</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Cài đặt hệ thống chỉ khả dụng khi trò chơi không chạy.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Điều này sẽ thay thế Switch ảo hiện tại của bạn bằng một cái mới. Switch ảo hiện tại của bạn sẽ không thể phục hồi lại. Điều này có thể gây ra tác dụng không mong muốn trong trò chơi. Điều này có thể thất bại, nếu thiết lập của bản lưu game đã lỗi thời. Tiếp tục?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Chú ý</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID của máy: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3776,7 +3972,7 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation type="unfinished"/>
</message>
@@ -4331,7 +4527,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation type="unfinished"/>
</message>
@@ -4344,42 +4540,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4387,12 +4578,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4400,921 +4591,957 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Dữ liệu ẩn danh được thu thập&lt;/a&gt;để hỗ trợ cải thiện yuzu. &lt;br/&gt;&lt;br/&gt;Bạn có muốn chia sẽ dữ liệu sử dụng cho chúng tôi?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Viễn trắc</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Tốc độ giả lập hiện tại. Giá trị cao hơn hoặc thấp hơn 100% chỉ ra giả lập sẽ chạy nhanh hơn hoặc chậm hơn trên máy Switch</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Có bao nhiêu khung hình trên mỗi giây mà trò chơi đang hiển thị. Điều này sẽ thay đổi từ giữa các trò chơi và các khung cảnh khác nhau.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Thời gian mà giả lập lấy từ khung hình Switch, sẽ không kể đến giới hạn khung hình hoặc v-sync. Đối với tốc độ tối đa mà giả lập nhận được nhiều nhất là ở độ khoảng 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Tạm dừng</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Chú ý định dạng trò chơi đã lỗi thời</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Bạn đang sử dụng định dạng danh mục ROM giải mã cho trò chơi này, và đó là một định dạng lỗi thời đã được thay thế bởi những thứ khác như NCA, NAX, XCI, hoặc NSP. Danh mục ROM giải mã có thể thiếu các icon, metadata, và hỗ trợ cập nhật.&lt;br&gt;&lt;br&gt;Để hiểu thêm về các định dạng khác nhau của Switch mà yuzu hỗ trợ, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;vui lòng kiểm tra trên wiki của chúng tôi&lt;/a&gt;. Thông báo này sẽ không hiển thị lại lần sau.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Lỗi xảy ra khi nạp ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Định dạng ROM này không hỗ trợ.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Đã xảy ra lỗi khi khởi tạo lõi đồ hoạ.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Đã xảy ra lỗi không xác định. Hãy kiểm tra phần báo cáo để biết thêm chi tiết.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Xảy ra lỗi khi mở %1 thư mục</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Thư mục này không tồn tại!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Khai thác RomFS không thành công!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Đã xảy ra lỗi khi sao chép tệp tin RomFS hoặc người dùng đã hủy bỏ hoạt động này.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Sườn</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Chọn chế độ kết xuất RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Vui lòng chọn cách mà bạn muốn RomFS kết xuất.&lt;br&gt;Chế độ Đầy Đủ sẽ sao chép toàn bộ tệp tin vào một danh mục mới trong khi &lt;br&gt;chế độ Sườn chỉ tạo kết cấu danh mục.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Khai thác RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Hủy bỏ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Khai thác RomFS thành công!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Các hoạt động đã hoàn tất thành công.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Chọn danh mục</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Thuộc tính</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Không thể tải thuộc tính của trò chơi.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Thực thi Switch (%1);;Tất cả tệp tin (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Nạp tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Mở danh mục ROM đã trích xuất</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Danh mục đã chọn không hợp lệ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Danh mục mà bạn đã chọn không có chứa tệp tin &apos;main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Những tệp tin Switch cài được (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Đang cài đặt tệp tin &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Ứng dụng hệ thống</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Hệ thống lưu trữ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Cập nhật hệ thống ứng dụng</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Gói phần mềm hệ thống (Loại A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Gói phần mềm (Loại B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Cập nhật trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Nội dung trò chơi có thể tải xuống</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Tiêu đề Delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Chọn cách cài đặt NCA...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Vui lòng chọn loại tiêu đề mà bạn muốn cài đặt NCA này:
(Trong hầu hết trường hợp, chọn mặc định &apos;Game&apos; là tốt nhất.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Cài đặt đã không thành công</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Loại tiêu đề NCA mà bạn chọn nó không hợp lệ.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Không tìm thấy tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Không tìm thấy tệp tin &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Thiếu tài khoản yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Để gửi trường hợp thử nghiệm trò chơi tương thích, bạn phải liên kết tài khoản yuzu.&lt;br&gt;&lt;br/&gt;Để liên kết tải khoản yuzu của bạn, hãy đến Giả lập &amp;gt; Thiết lập &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Tệp tin Amiibo (%1);; Tất cả tệp tin (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Nạp dữ liệu Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Xảy ra lỗi khi nạp dữ liệu Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Chụp ảnh màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Hình ảnh PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Bắt đầu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Tốc độ: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Tốc độ: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Trò chơi: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Khung hình: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Xác nhận mã khóa Rederivation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5331,37 +5558,37 @@ và phải tạo ra một bản sao lưu lại.
Điều này sẽ xóa mã khóa tự động tạo trên tệp tin của bạn và chạy lại mô-đun chiết xuất mã khoá.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5370,39 +5597,49 @@ on your system&apos;s performance.</source>
hệ thống của bạn.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Mã khóa xuất phát</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Chọn thư mục để sao chép RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Vui lòng chọn RomFS mà bạn muốn chiết xuất.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Bạn có chắc chắn muốn đóng yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Bạn có chắc rằng muốn dừng giả lập? Bất kì tiến trình nào chưa được lưu sẽ bị mất.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5414,44 +5651,44 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>Không có sẵn OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Đã xảy ra lỗi khi khởi tạo OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation type="unfinished"/>
</message>
@@ -5510,117 +5747,122 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Kết xuất RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Sao chép ID tiêu đề vào bộ nhớ tạm</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Điều hướng đến mục cơ sở dữ liệu trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Thuộc tính</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Bỏ trống</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Tên</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Độ tương thích</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Tiện ích ngoài</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Loại tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Kích cỡ</translation>
</message>
@@ -5691,7 +5933,7 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation type="unfinished"/>
</message>
@@ -5704,12 +5946,12 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Bộ lọc:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Nhập khuôn để lọc</translation>
</message>
@@ -5759,7 +6001,7 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="139"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Nội dung phòng chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
@@ -5799,12 +6041,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5826,111 +6067,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Chụp ảnh màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Toàn màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Nạp tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5953,7 +6195,7 @@ Debug Message: </source>
<translation>Cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation type="unfinished"/>
</message>
@@ -5961,7 +6203,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation type="unfinished"/>
@@ -6035,51 +6277,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Người chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6551,7 +6798,7 @@ Proceed anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="75"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Rời khỏi phòng</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="76"/>
@@ -6609,7 +6856,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation type="unfinished"/>
</message>
@@ -6658,31 +6905,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[chưa đặt nút]</translation>
</message>
@@ -6693,14 +6940,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Trục %1%2</translation>
</message>
@@ -6711,263 +6958,321 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[không xác định]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Trái</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Phải</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Xuống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Lên</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Bắt đầu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[không sử dụng]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Cộng</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Trừ</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Cảm Ứng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
<translation type="unfinished"/>
</message>
</context>
@@ -7337,26 +7642,26 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7376,20 +7681,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Chọn một người dùng:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Người Dùng</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Chọn hồ sơ</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Chọn một người dùng:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7435,51 +7801,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Chùm cuộc gọi</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>chờ đợi loại trừ lẫn nhau 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>có chờ đợi: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>chủ điều khiển: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>chờ đợi toàn bộ đối tượng</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>chờ đợi một đối tượng đang theo dõi</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>chờ đợi bởi vì không có luồng</translation>
</message>
@@ -7487,120 +7822,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>tạm dừng</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>ngủ</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>đang đợi IPC phản hồi</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>đang đợi đối tượng</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>chờ đợi địa chỉ người đứng giữa</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>lõi %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>bộ xử lý = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>lõi lý tưởng = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>che đậy tánh giống nhau = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id luồng = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>quyền ưu tiên = %1(hiện tại) / %2(bình thường)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>các tick chạy cuối cùng = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>không đợi mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>đợi vì luồng</translation>
</message>
@@ -7608,7 +7933,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation type="unfinished"/>
</message>
diff --git a/dist/languages/vi_VN.ts b/dist/languages/vi_VN.ts
index a4a8e8b8a..c09edc5d6 100644
--- a/dist/languages/vi_VN.ts
+++ b/dist/languages/vi_VN.ts
@@ -25,12 +25,18 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:12pt;&quot;&gt;yuzu is an experimental open-source emulator for the Nintendo Switch licensed under GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;This software should not be used to play games you have not legally obtained.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;yuzu là một phần mềm giả lập thử nghiệm mã nguồn mở cho máy Nintendo Switch, được cấp phép theo giấy phép GPLv3.0+.&lt;/span&gt;&lt;/p&gt;
+&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&apos;MS Shell Dlg 2&apos;; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:&apos;MS Shell Dlg 2&apos;; font-size:12pt;&quot;&gt;Bạn không được phép sử dụng phần mềm này cho để chơi game mà bạn kiếm được một cách bất hợp pháp.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="130"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Website&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Source Code&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Contributors&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/LICENSE.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;License&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://yuzu-emu.org/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Trang web&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Mã nguồn&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/graphs/contributors&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Đóng góp&lt;/span&gt;&lt;/a&gt; | &lt;a href=&quot;https://github.com/yuzu-emu/yuzu/blob/master/license.txt&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#039be5;&quot;&gt;Giấy phép&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/aboutdialog.ui" line="146"/>
@@ -81,90 +87,92 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="40"/>
<source>Send Chat Message</source>
- <translation type="unfinished"/>
+ <translation>Tin nhắn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.ui" line="47"/>
<source>Send Message</source>
- <translation type="unfinished"/>
+ <translation>Gửi tin nhắn</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="181"/>
<source>Members</source>
- <translation type="unfinished"/>
+ <translation>Thành viên</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="318"/>
<source>%1 has joined</source>
- <translation type="unfinished"/>
+ <translation>%1 đã vô</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="321"/>
<source>%1 has left</source>
- <translation type="unfinished"/>
+ <translation>%1 đã thoát</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="324"/>
<source>%1 has been kicked</source>
- <translation type="unfinished"/>
+ <translation>%1 đã bị kick</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="327"/>
<source>%1 has been banned</source>
- <translation type="unfinished"/>
+ <translation>%1 đã bị ban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="330"/>
<source>%1 has been unbanned</source>
- <translation type="unfinished"/>
+ <translation>%1 đã được unban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="446"/>
<source>View Profile</source>
- <translation type="unfinished"/>
+ <translation>Xem hồ sơ</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="459"/>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="469"/>
<source>Block Player</source>
- <translation type="unfinished"/>
+ <translation>Chặn người chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="470"/>
<source>When you block a player, you will no longer receive chat messages from them.&lt;br&gt;&lt;br&gt;Are you sure you would like to block %1?</source>
- <translation type="unfinished"/>
+ <translation>Khi bạn chặn một người chơi, bạn sẽ không còn nhận được tin nhắn từ người chơi đó nữa.&lt;br&gt;&lt;br&gt;Bạn có chắc là muốn chặn %1?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="483"/>
<source>Kick</source>
- <translation type="unfinished"/>
+ <translation>Kick</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="484"/>
<source>Ban</source>
- <translation type="unfinished"/>
+ <translation>Ban</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="488"/>
<source>Kick Player</source>
- <translation type="unfinished"/>
+ <translation>Kick người chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="489"/>
<source>Are you sure you would like to &lt;b&gt;kick&lt;/b&gt; %1?</source>
- <translation type="unfinished"/>
+ <translation>Bạn có chắc là bạn muốn &lt;b&gt;kick&lt;/b&gt; %1?</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="497"/>
<source>Ban Player</source>
- <translation type="unfinished"/>
+ <translation>Ban người chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/chat_room.cpp" line="498"/>
<source>Are you sure you would like to &lt;b&gt;kick and ban&lt;/b&gt; %1?
This would ban both their forum username and their IP address.</source>
- <translation type="unfinished"/>
+ <translation>Bạn có chắc là bạn muốn &lt;b&gt;kick và ban&lt;/b&gt; %1?
+
+Điều này sẽ ban tên trên diễn đàn của họ và IP của họ luôn</translation>
</message>
</context>
<context>
@@ -177,17 +185,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="27"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Nội dung phòng chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="47"/>
<source>Moderation...</source>
- <translation type="unfinished"/>
+ <translation>Quản lý...</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.ui" line="57"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Rời khỏi phòng</translation>
</message>
</context>
<context>
@@ -200,12 +208,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="87"/>
<source>Disconnected</source>
- <translation type="unfinished"/>
+ <translation>Mất kết nối</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/client_room.cpp" line="100"/>
<source>%1 - %2 (%3/%4 members) - connected</source>
- <translation type="unfinished"/>
+ <translation>%1 - %2 (%3/%4 members) - đã kết nối</translation>
</message>
</context>
<context>
@@ -234,102 +242,102 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="77"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game boot?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có chạy lên thành công hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="100"/>
<source>Yes The game starts to output video or audio</source>
- <translation type="unfinished"/>
+ <translation>Có Game có xuất ra hình và âm thanh</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="107"/>
<source>No The game doesn&apos;t get past the &quot;Launching...&quot; screen</source>
- <translation type="unfinished"/>
+ <translation>Không Game không thể qua khỏi được khúc màn hình &quot;Launching...&quot;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="124"/>
<source>Yes The game gets past the intro/menu and into gameplay</source>
- <translation type="unfinished"/>
+ <translation>Có Game có thể qua được khúc intro/menu và vô được game</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="131"/>
<source>No The game crashes or freezes while loading or using the menu</source>
- <translation type="unfinished"/>
+ <translation>Không Game crash hoặc đơ khi đang loading hoặc sử dụng menu</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có chạy được tới vô bên trong hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation type="unfinished"/>
+ <translation>Có Game chạy ổn định, không bị crash</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation type="unfinished"/>
+ <translation>Không Game crash hoặc đơ trong lúc chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game work without crashing, freezing or locking up during gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game chạy có ổn định với không crash, đơ hoặc bị kẹt trong lúc chơi hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation type="unfinished"/>
+ <translation>Có Game có thể hoàn thành mà không cần phải làm gì thêm</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation type="unfinished"/>
+ <translation>Không Game không thể qua được mốt số khúc</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Is the game completely playable from start to finish?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có chơi được từ đầu đến cuối hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="280"/>
<source>Major The game has major graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nặng Game bị lỗi hình ảnh nặng</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="287"/>
<source>Minor The game has minor graphical errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nhẹ Game bị lỗi hình ảnh nhẹ</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="294"/>
<source>None Everything is rendered as it looks on the Nintendo Switch</source>
- <translation type="unfinished"/>
+ <translation>Không lỗi Game nhìn y hệt như trên Nintendo Switch</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="306"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any graphical glitches?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có bị lỗi gì về hình ảnh không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="339"/>
<source>Major The game has major audio errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nặng Game bị lỗi âm thanh nặng</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="346"/>
<source>Minor The game has minor audio errors</source>
- <translation type="unfinished"/>
+ <translation>Lỗi nhẹ Game bị lỗi âm thanh nhẹ</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="353"/>
<source>None Audio is played perfectly</source>
- <translation type="unfinished"/>
+ <translation>Không lỗi Âm thanh hoạt động hoàn hảo</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="365"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game have any audio glitches / missing effects?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Game có bị lỗi âm thanh hay lỗi hiệu ứng hay không?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="389"/>
@@ -372,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation type="unfinished"/>
+ <source>Output Device:</source>
+ <translation>Đầu ra thiết bị:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>Thiết bị Nhập</translation>
+ <source>Input Device:</source>
+ <translation>Đầu vào thiết bị:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>Chế độ đầu ra âm thanh</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>Mono</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>Stereo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>Surround</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>Sử dụng âm lượng trong cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>Âm lượng tuỳ chỉnh:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>Âm lượng:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>Tắt âm thanh khi chạy nền</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -412,37 +445,37 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="14"/>
<source>Configure Infrared Camera</source>
- <translation type="unfinished"/>
+ <translation>Chỉnh sửa camera hồng ngoại</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="26"/>
<source>Select where the image of the emulated camera comes from. It may be a virtual camera or a real camera.</source>
- <translation type="unfinished"/>
+ <translation>Chọn hình ảnh từ camera giả lập. Nó có thể là một camera giả hoặc là một camera thật</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="52"/>
<source>Camera Image Source:</source>
- <translation type="unfinished"/>
+ <translation>Camera ảnh gốc:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="71"/>
<source>Input device:</source>
- <translation type="unfinished"/>
+ <translation>Đầu vào thiết bị:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="96"/>
<source>Preview</source>
- <translation type="unfinished"/>
+ <translation>Xem trước</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="108"/>
<source>Resolution: 320*240</source>
- <translation type="unfinished"/>
+ <translation>Độ phân giải: 320*240</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="115"/>
<source>Click to preview</source>
- <translation type="unfinished"/>
+ <translation>Nhấn để xem</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_camera.ui" line="140"/>
@@ -708,7 +741,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="120"/>
<source>Enable miscellaneous optimizations</source>
- <translation type="unfinished"/>
+ <translation>Bật tối ưu hóa tính năng phụ</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="127"/>
@@ -730,12 +763,16 @@ This would ban both their forum username and their IP address.</source>
&lt;div style=&quot;white-space: nowrap&quot;&gt;Enabling it causes guest memory reads/writes to be done directly into memory and make use of Host's MMU.&lt;/div&gt;
&lt;div style=&quot;white-space: nowrap&quot;&gt;Disabling this forces all memory accesses to use Software MMU Emulation.&lt;/div&gt;
</source>
- <translation type="unfinished"/>
+ <translation>
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Cái này sẽ tăng tốc độ truy cập bộ nhớ bằng cách truy cập dưới dạng chương trình guest&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Khi bật lên sẽ viết/đọc trực tiếp vô bộ nhớ và sử dụng Host MMU&lt;/div&gt;
+ &lt;div style=&quot;white-space: nowrap&quot;&gt;Tắt cái này đi sẽ ép mọi phương thức truy cập bộ nhớ đi qua Software MMU Emulation&lt;/div&gt;
+ </translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="147"/>
<source>Enable Host MMU Emulation (general memory instructions)</source>
- <translation type="unfinished"/>
+ <translation>Bật Host MMU Emulation (general memory instructions)</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu_debug.ui" line="154"/>
@@ -896,102 +933,112 @@ This would ban both their forum username and their IP address.</source>
<translation>Không dùng Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>Vá lỗi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>Nâng Cao</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>Bật Vá Lỗi CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**Sẽ tự động thiết lập lại khi tắt yuzu.</translation>
</message>
@@ -1006,12 +1053,12 @@ This would ban both their forum username and their IP address.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation type="unfinished"/>
</message>
@@ -1061,78 +1108,78 @@ This would ban both their forum username and their IP address.</source>
<translation>Thiết lập yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>Âm thanh</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>Gỡ lỗi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>Hệ thống tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>Chung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>Đồ hoạ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>Đồ họa Nâng cao</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>Phím tắt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>Hồ sơ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>Mạng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>Hệ thống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>Danh sách trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>Web</translation>
</message>
@@ -1307,46 +1354,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>Xác nhận thoát trong khi đang chạy giả lập</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>Hiển thị cửa sổ chọn người dùng khi bắt đầu trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>Tạm dừng giả lập khi chạy nền</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>Ẩn con trỏ chuột khi không dùng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>Đặt lại mọi tùy chỉnh</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>Quá trình này sẽ thiết lập lại toàn bộ tùy chỉnh và gỡ hết mọi cài đặt cho từng game riêng lẻ. Quá trình này không xóa đường dẫn tới thư mục game, hồ sơ, hay hồ sơ của thiết lập phím. Tiếp tục?</translation>
</message>
@@ -1385,7 +1422,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>Trống</translation>
</message>
@@ -1411,216 +1448,269 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>Giả lập NVDEC</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>Không Video Đầu Ra</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>Chế độ Toàn màn hình:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>Cửa sổ không viền</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>Toàn màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>Tỉ lệ khung hình:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>Mặc định (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>Dùng 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>Dùng 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>Kéo dãn đến cửa sổ phần mềm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation type="unfinished"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ Super Resolution</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>Dùng màu nền theo cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>Chọn màu nền:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>Màu nền:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM (Assembly Shaders, Chỉ Cho NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation type="unfinished"/>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1645,77 +1735,133 @@ This would ban both their forum username and their IP address.</source>
<translation>Độ chính xác:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>VSync tránh cho màn hình bị &quot;xước&quot;, tuy nhiên một số cạc đồ hoạ có hiệu năng chậm hơn khi VSync được kích hoạt. Bật chức năng này nếu nó không ảnh hưởng gì đến hiệu năng.</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>Kích hoạt tính năng tạo shader không đồng bộ nhằm tránh cho trò chơi bị giật khi tạo shader. Tính năng này vẫn đang thử nghiệm.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>Tăng Tốc Thời Gian GPU (Hack)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>Bộ lọc góc nghiêng:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>Mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1748,70 +1894,65 @@ This would ban both their forum username and their IP address.</source>
<translation>Khôi phục về mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>Hành động</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>Phím tắt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>Tổ hợp phím bị xung đột</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>Tổ hợp phím này đã gán với: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[Chờ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>Khôi phục về mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>Xóa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>Tổ hợp phím này đã gán với: %1</translation>
</message>
@@ -2103,7 +2244,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>Thiết lập</translation>
</message>
@@ -2129,6 +2270,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>Phải khởi động lại yuzu</translation>
</message>
@@ -2148,22 +2291,42 @@ This would ban both their forum username and their IP address.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>Độ nhạy chuột</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>Chuyển động / Cảm ứng</translation>
</message>
@@ -2275,7 +2438,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>Cần trái</translation>
</message>
@@ -2369,14 +2532,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2395,7 +2558,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>Cộng</translation>
</message>
@@ -2408,15 +2571,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2473,236 +2636,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>Cần phải</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>Bỏ trống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[không đặt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>Chọn một giá trị giữa 0% và 100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>Thiết lập Cần Điều Khiển</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>Sau khi bấm OK, di chuyển cần sang ngang, rồi sau đó sang dọc.
Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần sang dọc trước, rồi sang ngang.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Tay cầm Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>Joycon đôi</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>Joycon Trái</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>Joycon Phải</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>Cầm tay</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>Tay cầm GameCube</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>Bắt đầu / Tạm ngưng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C-Stick</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>Lắc!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[Chờ]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>Hồ sơ mới</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>Nhập tên hồ sơ:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>Tạo Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>Tên hồ sơ không hợp lệ!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>Quá trình tạo hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>Xóa Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>Quá trình xóa hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>Nạp Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>Quá trình nạp hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>Lưu Hồ Sơ Phím</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>Quá trình lưu hồ sơ phím &quot;%1&quot; thất bại</translation>
</message>
@@ -2750,7 +2924,7 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>Cài đặt</translation>
</message>
@@ -2786,7 +2960,7 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>Thử nghiệm</translation>
</message>
@@ -2806,77 +2980,77 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;Tìm hiểu thêm&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>Cổng có kí tự không hợp lệ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>Cổng phải từ 0 đến 65353</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>Địa chỉ IP không hợp lệ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>Server UDP đã tồn tại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>Không thể vượt quá 8 server</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>Thử nghiệm</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>Cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>Thử Nghiệm Thành Công</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>Nhận được dữ liệu từ server!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>Thử Nghiệm Thất Bại</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>Không thể nhận được dữ liệu hợp lệ từ server. &lt;br&gt;Hãy chắc chắn server được thiết lập chính xác, từ địa chỉ lẫn cổng phải được thiết lập đúng.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation type="unfinished"/>
</message>
@@ -2957,47 +3131,47 @@ Nếu muốn đảo ngược hướng cần điều khiển, di chuyển cần s
<translation>Nhà Phát Hành</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>Bổ Sung</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>Tổng Quan</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>Hệ Thống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>Đồ Họa</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>Đồ Họa Nâng Cao</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>Âm Thanh</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>Thuộc tính</translation>
</message>
@@ -3204,7 +3378,7 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
+ <source>Virtual Ring Sensor Parameters</source>
<translation type="unfinished"/>
</message>
<message>
@@ -3225,33 +3399,90 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>Khôi phục về mặc định</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>Bỏ trống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[không đặt]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>Cài đặt</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[Chờ]</translation>
</message>
@@ -3556,8 +3787,8 @@ UUID: %2</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>Tiếng Anh</translation>
+ <source>American English</source>
+ <translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3660,54 +3891,19 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>Mono</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>Stereo</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>Surround</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>ID bàn giao tiếp:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>Chế độ đầu ra âm thanh</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>Tạo mới</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>Cài đặt hệ thống chỉ khả dụng khi trò chơi không chạy.</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>Điều này sẽ thay thế Switch ảo hiện tại của bạn sang một cái mới. Switch ảo hiện tại của bạn sẽ không thể hồi phục lại. Điều này có thể gây ra tác dụng không mong muốn trong trò chơi. Điều này có thể gây thất bại, nếu bạn đang sử dụng thiết lập lưu trữ đã lỗi thời. Tiếp tục?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>Chú ý</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>ID của máy: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation type="unfinished"/>
</message>
</context>
<context>
@@ -3776,7 +3972,7 @@ UUID: %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation type="unfinished"/>
</message>
@@ -4331,7 +4527,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation type="unfinished"/>
</message>
@@ -4344,42 +4540,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation type="unfinished"/>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4387,12 +4578,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation type="unfinished"/>
</message>
@@ -4400,921 +4591,957 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Dữ liệu ẩn danh được thu thập&lt;/a&gt;để hỗ trợ cải thiện yuzu. &lt;br/&gt;&lt;br/&gt;Bạn có muốn chia sẽ dữ liệu sử dụng cho chúng tôi?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>Viễn trắc</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>Tốc độ giả lập hiện tại. Giá trị cao hơn hoặc thấp hơn 100% chỉ ra giả lập sẽ chạy nhanh hơn hoặc chậm hơn trên máy Switch</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>Có bao nhiêu khung hình trên mỗi giây mà trò chơi đang hiển thị. Điều này sẽ thay đổi từ trò chơi này đến trò chơi kia và khung cảnh này đến khung cảnh kia.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>Thời gian mà giả lập lấy từ khung hình Switch, sẽ không kể đến giới hạn khung hình hoặc v-sync. Đối với tốc độ tối đa mà giả lập nhận được nhiều nhất là ở độ khoảng 16.67 ms.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;Tạm dừng</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>Chú ý định dạng trò chơi đã lỗi thời</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>Bạn đang sử dụng định dạng danh mục ROM giải mã cho trò chơi này, và đó là một định dạng lỗi thời đã được thay thế bởi những thứ khác như NCA, NAX, XCI, hoặc NSP. Danh mục ROM giải mã có thể thiếu biểu tượng, metadata, và hỗ trợ cập nhật.&lt;br&gt;&lt;br&gt;Để giải thích về các định dạng khác nhau của Switch mà yuzu hỗ trợ, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;vui lòng kiểm tra trên wiki của chúng tôi&lt;/a&gt;. Thông báo này sẽ không hiển thị lại lần sau.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>Xảy ra lỗi khi đang nạp ROM!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>Định dạng ROM này không hỗ trợ.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>Đã xảy ra lỗi khi khởi tạo lõi video.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>Đã xảy ra lỗi không xác định. Vui lòng kiểm tra sổ ghi chép để biết thêm chi tiết.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>Xảy ra lỗi khi mở %1 thư mục</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>Thư mục này không tồn tại!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>Khai thác RomFS không thành công!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>Đã xảy ra lỗi khi sao chép tệp tin RomFS hoặc người dùng đã hủy bỏ hoạt động này.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>Sườn</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>Chọn chế độ kết xuất RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>Vui lòng chọn RomFS mà bạn muốn kết xuất như thế nào.&lt;br&gt;Đầy đủ sẽ sao chép toàn bộ tệp tin vào một danh mục mới trong khi &lt;br&gt;bộ xương chỉ tạo kết cấu danh mục.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>Khai thác RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>Hủy bỏ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>Khai thác RomFS thành công!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>Các hoạt động đã hoàn tất thành công.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>Chọn danh mục</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>Thuộc tính</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>Thuộc tính của trò chơi không thể nạp được.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Thực thi Switch (%1);;Tất cả tệp tin (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>Nạp tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>Mở danh mục ROM đã trích xuất</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>Danh mục đã chọn không hợp lệ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>Danh mục mà bạn đã chọn không có chứa tệp tin &apos;main&apos;.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>Những tệp tin Switch cài được (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>Đang cài đặt tệp tin &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>Hệ thống ứng dụng</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>Hệ thống lưu trữ</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>Cập nhật hệ thống ứng dụng</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>Gói phần mềm (Loại A)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>Gói phần mềm (Loại B)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>Trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>Cập nhật trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>Nội dung trò chơi có thể tải xuống</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Tiêu đề Delta</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>Chọn loại NCA để cài đặt...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>Vui lòng chọn loại tiêu đề mà bạn muốn cài đặt NCA này:
(Trong hầu hết trường hợp, chọn mặc định &apos;Game&apos; là tốt nhất.)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>Cài đặt đã không thành công</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>Loại tiêu đề NCA mà bạn chọn nó không hợp lệ.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>Không tìm thấy tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>Không tìm thấy &quot;%1&quot; tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>Thiếu tài khoản yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>Để gửi trường hợp thử nghiệm trò chơi tương thích, bạn phải liên kết tài khoản yuzu.&lt;br&gt;&lt;br/&gt;Để liên kết tải khoản yuzu của bạn, hãy đến Giả lập &amp;gt; Thiết lập &amp;gt; Web.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Tệp tin Amiibo (%1);; Tất cả tệp tin (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>Nạp dữ liệu Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>Xảy ra lỗi khi nạp dữ liệu Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>Chụp ảnh màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>Hình ảnh PNG (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>&amp;Bắt đầu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>Tốc độ: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>Tốc độ: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>Trò chơi: %1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>Khung hình: %1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>Xác nhận mã khóa Rederivation</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5331,37 +5558,37 @@ và phải tạo ra một bản sao lưu lại.
Điều này sẽ xóa mã khóa tự động tạo trên tệp tin của bạn và chạy lại mô-đun mã khóa derivation.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5370,39 +5597,49 @@ on your system&apos;s performance.</source>
vào hiệu suất hệ thống của bạn.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>Mã khóa xuất phát</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>Chọn thư mục để sao chép RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>Vui lòng chọn RomFS mà bạn muốn sao chép.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>Bạn có chắc chắn muốn đóng yuzu?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>Bạn có chắc rằng muốn dừng giả lập? Bất kì tiến trình nào chưa được lưu sẽ bị mất.</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5414,44 +5651,44 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>Không có sẵn OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>Đã xảy ra lỗi khi khởi tạo OpenGL!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation type="unfinished"/>
</message>
@@ -5510,117 +5747,122 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
- <source>Remove OpenGL Pipeline Cache</source>
+ <source>Remove Cache Storage</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <source>Remove OpenGL Pipeline Cache</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>Kết xuất RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>Sao chép ID tiêu đề vào bộ nhớ tạm</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>Điều hướng đến mục cơ sở dữ liệu trò chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>Thuộc tính</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>Bỏ trống</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>Tên</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>Tương thích</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>Tiện ích ngoài</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>Loại tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>Kích cỡ</translation>
</message>
@@ -5691,7 +5933,7 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation type="unfinished"/>
</message>
@@ -5704,12 +5946,12 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>Bộ lọc:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>Nhập khuôn để lọc</translation>
</message>
@@ -5759,7 +6001,7 @@ Bạn có muốn bỏ qua yêu cầu đó và thoát luôn không?</translation>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="139"/>
<source>Room Description</source>
- <translation type="unfinished"/>
+ <translation>Nội dung phòng chơi</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/host_room.ui" line="153"/>
@@ -5799,12 +6041,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5826,111 +6067,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>Chụp ảnh màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>Toàn màn hình</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>Nạp tệp tin</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation type="unfinished"/>
</message>
@@ -5953,7 +6195,7 @@ Debug Message: </source>
<translation>Cài đặt</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation type="unfinished"/>
</message>
@@ -5961,7 +6203,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation type="unfinished"/>
@@ -6035,51 +6277,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>Người chơi</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation type="unfinished"/>
</message>
@@ -6551,7 +6798,7 @@ Proceed anyway?</source>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="75"/>
<source>Leave Room</source>
- <translation type="unfinished"/>
+ <translation>Rời khỏi phòng</translation>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/message.cpp" line="76"/>
@@ -6609,7 +6856,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation type="unfinished"/>
</message>
@@ -6658,31 +6905,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[chưa đặt nút]</translation>
</message>
@@ -6693,14 +6940,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Trục %1%2</translation>
</message>
@@ -6711,263 +6958,321 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[không xác định]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>Trái</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>Phải</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>Xuống</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>Lên</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>Bắt đầu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[không sử dụng]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>Cộng</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>Trừ</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>Cảm Ứng</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
<translation type="unfinished"/>
</message>
</context>
@@ -7337,26 +7642,26 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7376,20 +7681,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>Chọn một người dùng:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>Người Dùng</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>Chọn hồ sơ</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation type="unfinished"/>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>Chọn một người dùng:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7435,51 +7801,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Chùm cuộc gọi</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>chờ đợi loại trừ lẫn nhau 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>đã chờ đợi: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>chủ điều khiển: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>chờ đợi toàn bộ đối tượng</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>chờ đợi một đối tượng đang theo dõi</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>chờ đợi bởi vì không có luồng</translation>
</message>
@@ -7487,120 +7822,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>tạm dừng</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>ngủ</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>chờ đợi IPC phản hồi</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>chờ đợi đối tượng</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>chờ đợi địa chỉ người đứng giữa</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation> PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation type="unfinished"/>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>lõi %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>bộ xử lý = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>lõi lý tưởng = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>che đậy tánh giống nhau = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>id luồng = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>quyền ưu tiên = %1(hiện tại) / %2(bình thường)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>lần chạy cuối cùng = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>không có chờ đợi loại trừ lẫn nhau</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>chờ đợi bởi vì có luồng</translation>
</message>
@@ -7608,7 +7933,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation type="unfinished"/>
</message>
diff --git a/dist/languages/zh_CN.ts b/dist/languages/zh_CN.ts
index abbe2b408..50b88e2b4 100644
--- a/dist/languages/zh_CN.ts
+++ b/dist/languages/zh_CN.ts
@@ -267,17 +267,17 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="143"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Does the game reach gameplay?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;游戏是否具有游戏性?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;游戏是否可玩?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="176"/>
<source>Yes The game works without crashes</source>
- <translation>是的,游戏运行时没有崩溃</translation>
+ <translation>没有,游戏运行时没有崩溃</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="183"/>
<source>No The game crashes or freezes during gameplay</source>
- <translation>不,游戏运行时出现卡死或崩溃</translation>
+ <translation>有,游戏运行时出现卡死或崩溃</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="195"/>
@@ -287,12 +287,12 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="228"/>
<source>Yes The game can be finished without any workarounds</source>
- <translation>没有,可以顺利地完成游戏过程</translation>
+ <translation>是的,可以顺利地完成游戏过程</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="235"/>
<source>No The game can&apos;t progress past a certain area</source>
- <translation>有,游戏在特定区段无法继续</translation>
+ <translation>不,游戏在特定区段无法继续</translation>
</message>
<message>
<location filename="../../src/yuzu/compatdb.ui" line="247"/>
@@ -380,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>输出设备</translation>
+ <source>Output Device:</source>
+ <translation>输出设备:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
- <translation>输入设备</translation>
+ <source>Input Device:</source>
+ <translation>输入设备:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>声音输出模式:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>单声道</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>立体声</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>环绕声</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>使用全局音量</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>音量:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>音量:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>模拟器位于后台时静音</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -526,7 +551,7 @@ This would ban both their forum username and their IP address.</source>
&lt;div&gt;This option improves speed by reducing accuracy of fused-multiply-add instructions on CPUs without native FMA support.&lt;/div&gt;
</source>
<translation>
-&lt;div&gt;该选项通过降低积和熔加运算的精度而提高模拟器在不支持 FMA 指令集 CPU 上的运行速度。&lt;/div&gt;</translation>
+&lt;div&gt;该选项通过降低积和熔加运算的精度来提高模拟器在不支持 FMA 指令集 CPU 上的运行速度。&lt;/div&gt;</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_cpu.ui" line="106"/>
@@ -552,7 +577,7 @@ This would ban both their forum username and their IP address.</source>
&lt;div&gt;This option improves the speed of 32 bits ASIMD floating-point functions by running with incorrect rounding modes.&lt;/div&gt;
</source>
<translation>
-&lt;div&gt;该选项通过在不正确的舍入模式下运行,能提高 32 位 ASIMD 浮点函数的运行速度。&lt;/div&gt;
+&lt;div&gt;该选项通过不正确的舍入模式来提高 32 位 ASIMD 浮点函数的运行速度。&lt;/div&gt;
</translation>
</message>
<message>
@@ -931,105 +956,115 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug.ui" line="201"/>
<source>Disable Macro JIT</source>
- <translation>禁用宏 JIT</translation>
+ <translation>禁用宏即时编译</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>启用时,将禁用宏高阶模拟。这会降低游戏运行速度。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>禁用宏高阶模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>选中时,yuzu 将记录有关已编译着色器缓存的统计信息。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>启用着色器反馈</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>启用后,yuzu 在执行着色器时,不会修改循环结构的条件判断</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>禁用循环体安全检查</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>调试选项</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>启用详细报告服务**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>启用文件系统访问记录</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation>启用此选项会将最新的音频命令列表输出到控制台。只影响使用音频渲染器的游戏。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation>将音频命令转储至控制台**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>微型故障转储</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>高级选项</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk (Quest) 模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>启用 CPU 模拟调试</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>启用调试</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>启用自动函数打桩(Auto-Stub)**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>启用其他类型的控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>禁用 Web 应用程序</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>允许 yuzu 在启动时检查 Vulkan 环境是否正常工作。如果是其他程序导致 yuzu 出现相关问题,请禁用此选项。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>启动时进行 Vulkan 检测</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**该选项将在 yuzu 关闭时自动重置。</translation>
</message>
@@ -1044,12 +1079,12 @@ This would ban both their forum username and their IP address.</source>
<translation>重启 yuzu 后才能应用此设置。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Web 应用程序未编译</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>微型转储未编译</translation>
</message>
@@ -1059,7 +1094,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_controller.ui" line="14"/>
<source>Configure Debug Controller</source>
- <translation>调试控制器设置</translation>
+ <translation>控制器调试设置</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_debug_controller.ui" line="40"/>
@@ -1099,78 +1134,78 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzu 设置</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>声音</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>调试</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>文件系统</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>通用</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>图形</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>高级图形选项</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>热键</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>控制</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>用户配置</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>网络</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>系统</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>游戏列表</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>网络</translation>
</message>
@@ -1320,7 +1355,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="14"/>
<source>Form</source>
- <translation>Form</translation>
+ <translation>类型</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="17"/>
@@ -1345,46 +1380,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>扩展的内存布局 (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>在游戏运行时退出需要确认</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>游戏启动时提示选择用户</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>模拟器位于后台时暂停模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>模拟器位于后台时静音</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>自动隐藏鼠标光标</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>重置所有设置项</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>将重置模拟器所有设置并删除所有游戏的单独设置。这不会删除游戏目录、个人文件及输入配置文件。是否继续?</translation>
</message>
@@ -1394,7 +1419,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="14"/>
<source>Form</source>
- <translation>Form</translation>
+ <translation>类型</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="17"/>
@@ -1423,7 +1448,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>无</translation>
</message>
@@ -1449,216 +1474,272 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>垂直同步模式:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (垂直同步)不会掉帧或产生画面撕裂,但受到屏幕刷新率的限制。
+FIFO Relaxed 类似于 FIFO,但允许从低 FPS 恢复时产生撕裂。
+Mailbox 具有比 FIFO 更低的延迟,不会产生撕裂但可能会掉帧。
+Immediate (无同步)只显示可用内容,并可能产生撕裂。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC 模拟方式:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>无视频输出</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>CPU 视频解码</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>GPU 视频解码 (默认)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>全屏模式:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>无边框窗口</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>独占全屏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>屏幕纵横比:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>默认 (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>强制 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>强制 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>强制 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>拉伸窗口</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>画面分辨率:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [实验性]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [实验性]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [实验性]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>窗口滤镜:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>近邻取样</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>双线性过滤</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>双三线过滤</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>高斯模糊</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>强制缩放</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ 超级分辨率锐画技术 (仅限 Vulkan 模式)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ 超级分辨率锐画技术</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>抗锯齿方式:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>快速近似抗锯齿</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation>子像素形态学抗锯齿</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
- <translation>启用全局 FSR 锐化</translation>
+ <translation>使用全局 FSR 锐化度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
- <translation>设置 FSR 锐化</translation>
+ <translation>设置 FSR 锐化度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation>FSR 锐化度:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>使用全局背景颜色</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>设置背景颜色:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>背景颜色:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
- <translation>GLASM(汇编着色器,仅限 NVIDIA 显卡)</translation>
+ <translation>GLASM (汇编着色器,仅限 NVIDIA 显卡)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation>SPIR-V (实验性,仅限 Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>关闭</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>垂直同步关</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>推荐</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>开启</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>垂直同步开</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1683,77 +1764,134 @@ This would ban both their forum username and their IP address.</source>
<translation>精度:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>垂直同步可防止画面产生撕裂感。但启用垂直同步后,某些设备性能可能会有所降低。如果您没有感到性能差异,请保持启用状态。</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>ASTC 纹理重压缩:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>启用垂直同步</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>不压缩 (最高质量)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1 (低质量)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3 (中等质量)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>启用异步帧提交 (仅限 Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>在后台运行的同时等待图形命令,以防止 GPU 降低时钟速度。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>强制最大时钟 (仅限 Vulkan 模式)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>启用异步 ASTC 纹理解码,可能减少加载时的卡顿。实验性功能。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>异步 ASTC 纹理解码 (不稳定)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>使用反应性刷新取代预测性刷新,从而更精确地同步内存。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>启用反应性刷新</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>启用异步着色器编译,这可能会减少着色器卡顿。实验性功能。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>启用异步着色器构建 (不稳定)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>启用快速 GPU 时钟。此选项将强制大多数游戏以其最高分辨率运行。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>启用快速 GPU 时钟 (不稳定)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>启用悲观缓冲区刷新。此选项将强制刷新未修改的缓冲区,可能会降低性能。</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>启用 GPU 供应商专用的管线缓存。在 Vulkan 驱动程序内部不存储管线缓存的情况下,此选项可显著提高着色器加载速度。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>启用悲观缓冲区刷新 (不稳定)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>启用 Vulkan 管线缓存</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>启用某些游戏所需的计算管线。此选项仅适用于英特尔专有驱动程序。如果启用,可能会造成崩溃。
+在其他的驱动程序上将始终启用计算管线。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>启用计算管线 (仅限 Intel 显卡 Vulkan 模式)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>各向异性过滤:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>自动</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>系统默认</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1786,72 +1924,67 @@ This would ban both their forum username and their IP address.</source>
<translation>恢复默认</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>作用</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>热键</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>控制器热键</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>按键冲突</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
- <translation>输入的密钥序列已分配给: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
+ <translation>输入的按键序列已分配给: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[请按键]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>无效</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>恢复默认</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>键位冲突</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>默认的按键序列已分配给: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
- <translation>默认密钥序列已分配给: %1</translation>
+ <translation>默认的按键序列已分配给: %1</translation>
</message>
</context>
<context>
@@ -2141,7 +2274,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>设置</translation>
</message>
@@ -2167,6 +2300,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>需要重启 yuzu</translation>
</message>
@@ -2186,22 +2321,42 @@ This would ban both their forum username and their IP address.</source>
<translation>控制器导航</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>启用 JoyCon 直接驱动</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>启用 Pro Controller 直接驱动 [实验性]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>此选项允许您在游戏中无限使用相同的 Amiibo。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>使用 Amiibo 随机 ID</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>启用鼠标平移</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>鼠标灵敏度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>体感/触摸</translation>
</message>
@@ -2313,7 +2468,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>左摇杆</translation>
</message>
@@ -2407,14 +2562,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2433,7 +2588,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>+</translation>
</message>
@@ -2446,15 +2601,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2511,236 +2666,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>右摇杆</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[未设置]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
- <translation>反转按钮</translation>
+ <translation>反转按键</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
- <translation>切换按键</translation>
+ <translation>切换键</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>连发键</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>体感方向倒置</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>阈值设定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>选择一个介于 0% 和 100% 之间的值</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>切换轴</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>陀螺仪阈值设定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>校准传感器</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>映射摇杆</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>在按下确定后,首先水平移动你的手柄,然后垂直移动它。
如果要使体感方向倒置,首先垂直移动你的手柄,然后水平移动它。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>中心轴</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>摇杆死区:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>摇杆灵敏度:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro Controller</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>双 Joycons 手柄</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>左 Joycon 手柄</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>右 Joycon 手柄</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>掌机模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube 控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>精灵球 PLUS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>NES 控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>SNES 控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>N64 控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>世嘉创世纪</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>开始 / 暂停</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>控制摇杆</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C 摇杆</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>摇动!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[等待中]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
- <translation>保存自定义设置</translation>
+ <translation>新建自定义设置</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>输入配置文件名称:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>新建输入配置文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>输入的配置文件名称无效!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>新建输入配置文件 &quot;%1&quot; 失败</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>删除输入配置文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>删除输入配置文件 &quot;%1&quot; 失败</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>加载输入配置文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>加载输入配置文件 &quot;%1&quot; 失败</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>保存输入配置文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>保存输入配置文件 &quot;%1&quot; 失败</translation>
</message>
@@ -2788,7 +2954,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>设置</translation>
</message>
@@ -2824,7 +2990,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>测试</translation>
</message>
@@ -2844,77 +3010,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;了解更多&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>端口号中包含无效字符</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>端口必须为 0 到 65353 之间</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>无效的 IP 地址</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>此 UDP 服务器已存在</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>最多只能添加 8 个服务器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>测试中</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>配置中</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>测试成功</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>已成功地从服务器获取数据。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>测试失败</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>无法从服务器获取数据。&lt;br&gt;请验证服务器是否正在运行,以及地址和端口是否配置正确。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP 测试或触摸校准正在进行中。&lt;br&gt;请耐心等待。</translation>
</message>
@@ -2995,47 +3161,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>开发商</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>附加项</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>通用</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>系统</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>图形</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>高级图形</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>声音</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation>输入配置文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>属性</translation>
</message>
@@ -3243,8 +3409,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>健身环传感器参数</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>虚拟健身环传感器参数</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3264,33 +3430,90 @@ UUID: %2</translation>
<translation>摇杆死区:0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Joycon 直接驱动</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>启用健身环输入</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>启用</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>健身环传感器参数</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>未连接</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>恢复默认</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[未设置]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>体感方向倒置</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>摇杆死区:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>启用健身环输入时出错</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>未启用 Joycon 直接驱动</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>配置中</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>当前映射的设备不支持健身环控制器</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>当前映射的设备未连接健身环控制器</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>意外的驱动结果: %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[请按键]</translation>
</message>
@@ -3300,7 +3523,7 @@ UUID: %2</translation>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="14"/>
<source>Form</source>
- <translation>Form</translation>
+ <translation>类型</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="17"/>
@@ -3595,8 +3818,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>英语</translation>
+ <source>American English</source>
+ <translation>美式英语</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3699,54 +3922,19 @@ UUID: %2</translation>
<translation>设备名称</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>单声道</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>立体声</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>环绕声</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>设备 ID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>声音输出模式</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>重置 ID</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>不安全的内存布局扩展 (8GB DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>只有当游戏不在运行时,系统设置才可用。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>这将使用一个新的虚拟 Switch 取代你当前的虚拟 Switch。您当前的虚拟 Switch 将无法恢复。在部分游戏中可能会出现意外效果。如果你使用一个过时的配置存档这可能会失败。确定要继续吗?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>警告</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>设备 ID: 0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>警告:“ %1 ”并不是“ %2 ”地区的有效语言</translation>
</message>
</context>
<context>
@@ -3815,7 +4003,7 @@ UUID: %2</translation>
<translation>TAS 设置</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>选择 TAS 载入目录...</translation>
</message>
@@ -3879,7 +4067,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="195"/>
<source>New Profile</source>
- <translation>保存自定义设置</translation>
+ <translation>新建自定义设置</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="195"/>
@@ -4035,7 +4223,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="31"/>
<source>Note: Changing language will apply your configuration.</source>
- <translation>注意: 切换语言将应用您的配置。</translation>
+ <translation>注意: 切换语言将直接应用您当前的配置。</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ui.ui" line="43"/>
@@ -4208,7 +4396,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="14"/>
<source>Form</source>
- <translation>Form</translation>
+ <translation>类型</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_web.ui" line="17"/>
@@ -4371,7 +4559,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>控制器 P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>控制器 P1 (&amp;C)</translation>
</message>
@@ -4384,42 +4572,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>直接连接</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IP 地址</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>服务器地址</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;服务器 IPv4 地址&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;服务器地址&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>端口</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;服务器端口&lt;/p&gt;&lt;/body&gt;</translation>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;服务器端口&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>昵称</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>密码</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>连接</translation>
</message>
@@ -4427,12 +4610,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>连接中</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>连接</translation>
</message>
@@ -4440,926 +4623,962 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;我们收集匿名数据&lt;/a&gt;来帮助改进 yuzu 。&lt;br/&gt;&lt;br/&gt;您愿意和我们分享您的使用数据吗?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>使用数据共享</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>检测到 Vulkan 的安装已损坏</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>Vulkan 初始化失败。&lt;br&gt;&lt;br&gt;点击&lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;这里&lt;/a&gt;获取此问题的相关信息。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>正在加载 Web 应用程序...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>禁用 Web 应用程序</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>禁用 Web 应用程序可能会发生未知的行为,且只能在《超级马里奥 3D 全明星》中使用。您确定要禁用 Web 应用程序吗?
(您可以在调试选项中重新启用它。)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>当前正在构建的着色器数量</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>当前选定的分辨率缩放比例。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
- <translation>当前的模拟速度。高于或低于 100% 的值表示模拟正在运行得比实际 Switch 更快或更慢。</translation>
+ <translation>当前的模拟速度。高于或低于 100% 的值表示运行速度比实际的 Switch 更快或更慢。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>游戏当前运行的帧率。这将因游戏和场景的不同而有所变化。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>在不计算速度限制和垂直同步的情况下,模拟一个 Switch 帧的实际时间。若要进行全速模拟,这个数值不应超过 16.67 毫秒。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>清除最近文件 (&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>已启用模拟鼠标</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>实体鼠标输入与鼠标平移不兼容。请在高级输入设置中禁用模拟鼠标以使用鼠标平移。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>继续 (&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>暂停 (&amp;P)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu 正在运行中</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>过时游戏格式警告</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>目前使用的游戏为解体的 ROM 目录格式,这是一种过时的格式,已被其他格式替代,如 NCA,NAX,XCI 或 NSP。解体的 ROM 目录缺少图标、元数据和更新支持。&lt;br&gt;&lt;br&gt;有关 yuzu 支持的各种 Switch 格式的说明,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;请查看我们的 wiki&lt;/a&gt;。此消息将不会再次出现。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>加载 ROM 时出错!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>该 ROM 格式不受支持。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
- <translation>在初始化视频核心时发生错误。</translation>
+ <translation>初始化视频核心时发生错误</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu 在运行视频核心时发生错误。这可能是由 GPU 驱动程序过旧造成的。有关详细信息,请参阅日志文件。关于日志文件的更多信息,请参考以下页面:&lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;如何上传日志文件&lt;/a&gt;。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>加载 ROM 时出错! %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;请参考&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu 快速导航&lt;/a&gt;以获取相关文件。&lt;br&gt;您可以参考 yuzu 的 wiki 页面&lt;/a&gt;或 Discord 社区&lt;/a&gt;以获得帮助。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>发生了未知错误。请查看日志了解详情。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation>正在关闭…</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>保存数据</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>Mod 数据</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>打开 %1 文件夹时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>文件夹不存在!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>打开可转移着色器缓存时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>为该游戏创建着色器缓存目录时失败。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation>删除内容时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>删除更新时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>删除 DLC 时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation>删除已安装的游戏内容?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>删除已安装的游戏更新?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>删除已安装的游戏 DLC 内容?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>删除项目</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>删除成功</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>成功删除已安装的游戏。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>该游戏未安装于 NAND 中,无法删除。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>成功删除已安装的游戏更新。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>这个游戏没有任何已安装的更新。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>这个游戏没有任何已安装的 DLC 。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>成功删除游戏 %1 安装的 DLC 。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>删除 OpenGL 模式的着色器缓存?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>删除 Vulkan 模式的着色器缓存?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>删除所有的着色器缓存?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>移除自定义游戏设置?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation>移除缓存?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>删除文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>删除着色器缓存时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>这个游戏的着色器缓存不存在。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>成功删除着色器缓存。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>删除着色器缓存失败。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>删除 Vulkan 驱动程序管线缓存时出错</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>删除驱动程序管线缓存失败。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>删除着色器缓存时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>着色器缓存删除成功。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>删除着色器缓存目录失败。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>移除自定义游戏设置时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>这个游戏的自定义设置不存在。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>成功移除自定义游戏设置。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>移除自定义游戏设置失败。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>RomFS 提取失败!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>复制 RomFS 文件时出错,或用户取消了操作。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>完整</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>框架</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>选择 RomFS 转储模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
- <translation>请选择希望 RomFS 转储的方式。&lt;br&gt;“Full” 会将所有文件复制到新目录中,而&lt;br&gt;“Skeleton” 只会创建目录结构。</translation>
+ <translation>请选择 RomFS 转储的方式。&lt;br&gt;“完整” 会将所有文件复制到新目录中,而&lt;br&gt;“框架” 只会创建目录结构。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>%1 没有足够的空间用于提取 RomFS。请保持足够的空间或于模拟—&gt;设置—&gt;系统—&gt;文件系统—&gt;转储根目录中选择一个其他目录。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>正在提取 RomFS...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>取消</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS 提取成功!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>操作成功完成。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation>创建快捷方式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation>这将为当前的游戏创建快捷方式。但在其更新后,快捷方式可能无法正常工作。是否继续?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation>无法在桌面创建快捷方式。路径“ %1 ”不存在。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation>无法在应用程序菜单中创建快捷方式。路径“ %1 ”不存在且无法被创建。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation>创建图标</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation>无法创建图标文件。路径“ %1 ”不存在且无法被创建。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation>使用 yuzu 启动 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation>在 %1 处创建快捷方式时失败</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation>成功地在 %1 处创建快捷方式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>打开 %1 时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>选择目录</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>属性</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>无法加载该游戏的属性信息。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch 可执行文件 (%1);;所有文件 (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>加载文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>打开提取的 ROM 目录</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>选择的目录无效</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>选择的目录不包含 “main” 文件。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
- <translation>可安装的 Switch 文件 (*.nca *.nsp *.xci);;任天堂内容档案 (*.nca);;任天堂应用包 (*.nsp);;NX 卡带镜像 (*.xci)</translation>
+ <translation>可安装 Switch 文件 (*.nca *.nsp *.xci);;任天堂内容档案 (*.nca);;任天堂应用包 (*.nsp);;NX 卡带镜像 (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>安装文件</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>剩余 %n 个文件</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>正在安装文件 &quot;%1&quot;...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>安装结果</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>为了避免可能存在的冲突,我们不建议将游戏本体安装到 NAND 中。
此功能仅用于安装游戏更新和 DLC 。</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>最近安装了 %n 个文件
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n 个文件被覆盖
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n 个文件安装失败
</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>系统应用</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>系统档案</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>系统应用更新</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>固件包 (A型)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>固件包 (B型)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>游戏</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>游戏更新</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>游戏 DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>差量程序</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>选择 NCA 安装类型...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>请选择此 NCA 的程序类型:
(在大多数情况下,选择默认的“游戏”即可。)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>安装失败</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>选择的 NCA 程序类型无效。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>找不到文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>文件 &quot;%1&quot; 未找到</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>确定</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>硬件不满足要求</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
- <translation>您的系统不满足运行 yuzu 推荐的推荐配置。兼容性报告已被禁用。</translation>
+ <translation>您的系统不满足运行 yuzu 的推荐配置。兼容性报告已被禁用。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>未设置 yuzu 账户</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>要提交游戏兼容性测试用例,您必须设置您的 yuzu 帐户。&lt;br&gt;&lt;br/&gt;要设置您的 yuzu 帐户,请转到模拟 &amp;gt; 设置 &amp;gt; 网络。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>打开 URL 时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>无法打开 URL : &quot;%1&quot; 。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>TAS 录制中</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>覆盖玩家 1 的文件?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>检测到无效配置</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>掌机手柄无法在主机模式中使用。将会选择 Pro controller。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>当前的 Amiibo 已被移除。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>错误</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>当前游戏并没有在寻找 Amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo 文件 (%1);; 全部文件 (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>加载 Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>加载 Amiibo 数据时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>选择的文件并不是有效的 amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>选择的文件已在使用中</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>发生了未知错误</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>捕获截图</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG 图像 (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>TAS 状态:正在运行 %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>TAS 状态:正在录制 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>TAS 状态:空闲 %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>TAS 状态:无效</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>停止运行 (&amp;S)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>开始 (&amp;S)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>停止录制 (&amp;E)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>录制 (&amp;E)</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>正在编译 %n 个着色器文件</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>缩放比例: %1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>速度: %1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>速度: %1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
- <translation>游戏: %1 FPS (未锁定)</translation>
+ <translation>FPS: %1 (未锁定)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>FPS: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
- <translation>帧延迟:%1 毫秒</translation>
+ <translation>帧延迟: %1 毫秒</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU NORMAL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU HIGH</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU EXTREME</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU ERROR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
<translation>主机模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
<translation>掌机模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation>无</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>邻近取样</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>双线性过滤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>双三线过滤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>高斯模糊</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>强制缩放</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>抗锯齿关</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>音量: 静音</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>音量: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>确认重新生成密钥</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5375,37 +5594,37 @@ This will delete your autogenerated key files and re-run the key derivation modu
这将删除您自动生成的密钥文件并重新运行密钥生成模块。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>项目丢失</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- 丢失 BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - 丢失 BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- 丢失 PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>组件丢失</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>密钥缺失。&lt;br&gt;请查看&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu 快速导航&lt;/a&gt;以获得你的密钥、固件和游戏。&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5414,39 +5633,49 @@ on your system&apos;s performance.</source>
您的系统性能。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>生成密钥</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>系统固件解密失败</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>当前密钥无法解密系统固件。&lt;br&gt;请查看&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu 快速导航&lt;/a&gt;以获得你的密钥、固件和游戏。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>选择 RomFS 转储目标</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>请选择希望转储的 RomFS。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>您确定要关闭 yuzu 吗?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>您确定要停止模拟吗?未保存的进度将会丢失。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5458,44 +5687,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>OpenGL 模式不可用!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation>不支持 OpenGL 共享上下文。</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu 没有使用 OpenGL 进行编译。</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>初始化 OpenGL 时出错!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>您的 GPU 可能不支持 OpenGL ,或者您没有安装最新的显卡驱动。</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>初始化 OpenGL 4.6 时出错!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>您的 GPU 可能不支持 OpenGL 4.6 ,或者您没有安装最新的显卡驱动。&lt;br&gt;&lt;br&gt;GL 渲染器:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>您的 GPU 可能不支持某些必需的 OpenGL 扩展。请确保您已经安装最新的显卡驱动。&lt;br&gt;&lt;br&gt;GL 渲染器:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;不支持的扩展:&lt;br&gt;%2</translation>
</message>
@@ -5554,117 +5783,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation>移除缓存</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>删除 OpenGL 着色器缓存</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>删除 Vulkan 着色器缓存</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>删除所有着色器缓存</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>删除所有安装的项目</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>转储 RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>转储 RomFS 到 SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>复制游戏 ID 到剪贴板</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>查看兼容性报告</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation>创建快捷方式</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation>添加到桌面</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation>添加到应用程序菜单</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>属性</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>扫描子文件夹</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>移除游戏目录</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ 向上移动</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ 向下移动</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>打开目录位置</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>名称</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>兼容性</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>附加项</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>文件类型</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>大小</translation>
</message>
@@ -5704,7 +5938,7 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
<source>Intro/Menu</source>
- <translation>开场 / 菜单</translation>
+ <translation>开场/菜单</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="155"/>
@@ -5714,12 +5948,12 @@ Would you like to bypass this and exit anyway?</source>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="156"/>
<source>Won&apos;t Boot</source>
- <translation>无法打开</translation>
+ <translation>无法启动</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="156"/>
<source>The game crashes when attempting to startup.</source>
- <translation>在启动游戏时直接崩溃了。</translation>
+ <translation>在启动游戏时直接崩溃。</translation>
</message>
<message>
<location filename="../../src/yuzu/game_list_p.h" line="157"/>
@@ -5735,9 +5969,9 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
- <translation>双击以添加新的游戏文件夹</translation>
+ <translation>双击添加新的游戏文件夹</translation>
</message>
</context>
<context>
@@ -5748,12 +5982,12 @@ Would you like to bypass this and exit anyway?</source>
<translation><numerusform>%1 / %n 个结果</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>搜索:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>搜索游戏</translation>
</message>
@@ -5844,12 +6078,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>开启/关闭静音</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5871,111 +6104,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>主窗口</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>调低音量</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>调高音量</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>捕获截图</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>更改窗口滤镜</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>更改主机运行模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>更改 GPU 精度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>继续/暂停模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>退出全屏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>退出 yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>全屏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>加载文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>加载/移除 Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>重新启动模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>停止模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>TAS 录制</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>重置 TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>TAS 开始/停止</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>切换搜索栏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>切换帧率限制</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>切换鼠标平移</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>切换状态栏</translation>
</message>
@@ -5998,7 +6232,7 @@ Debug Message: </source>
<translation>安装</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>安装文件到 NAND</translation>
</message>
@@ -6006,7 +6240,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>文本中不能包含以下字符:
@@ -6081,51 +6315,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>隐藏空房间</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>隐藏满员的房间</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>刷新游戏大厅</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
- <translation>加入此房间需要密码</translation>
+ <translation>需要密码</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>密码:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>玩家数</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>房间名称</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>首选游戏</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>房主</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>刷新中</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>刷新列表</translation>
</message>
@@ -6663,7 +6902,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>开始/暂停</translation>
</message>
@@ -6712,31 +6951,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[未设置]</translation>
</message>
@@ -6747,14 +6986,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>轴 %1%2</translation>
</message>
@@ -6765,264 +7004,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[未知]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>左</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>右</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>下</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>上</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>开始</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>○</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>╳</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>□</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Δ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>分享</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>选项</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[未指定]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[无效]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Hat 控制器 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2轴 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2轴 %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2体感 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2按键 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[未使用]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>左摇杆</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>右摇杆</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>+</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>Home</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>截图</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>触摸</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>鼠标滚轮</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>后退</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>前进</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>任务键</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>额外按键</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3 控制器 %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3轴 %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3 按键 %4</translation>
</message>
</context>
<context>
@@ -7391,28 +7688,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>错误代码: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>发生了一个错误。
请再试一次或联系开发者。</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>在 %2 处的 %1 上发生了一个错误。
请再试一次或联系开发者。</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7436,20 +7733,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>选择一个用户:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>用户</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>创建用户</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>选择用户</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>修改用户图像</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>修改用户昵称</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>谁将获得黄金点数?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>谁正在使用任天堂 eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>是谁购买了这个?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>谁在发帖?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>选择要链接到任天堂账户的用户。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>要更改哪个用户的设置?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>要为哪个用户格式化数据?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>哪个用户将被转移到另一个控制台?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>要为哪个用户发送保存数据?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>选择一个用户:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7493,57 +7851,26 @@ p, li { white-space: pre-wrap; }
<message>
<location filename="../../src/yuzu/util/sequence_dialog/sequence_dialog.cpp" line="10"/>
<source>Enter a hotkey</source>
- <translation>键入热键</translation>
+ <translation>输入热键</translation>
</message>
</context>
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>调用栈</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>正在等待互斥锁 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>等待中: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>所有者句柄: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>正在等待所有对象</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>正在等待下列对象中的一个</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>没有等待的线程</translation>
</message>
@@ -7551,120 +7878,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>可运行</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
- <translation>暂停</translation>
+ <translation>已暂停</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
- <translation>睡眠</translation>
+ <translation>睡眠中</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>等待 IPC 响应</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>等待对象</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>等待条件变量</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>等待 address arbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>等待挂起的线程</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>等待中</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>初始化完毕</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>线程终止</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>未知</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation>PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>核心 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>处理器 = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>理想核心 = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>关联掩码 = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>线程 ID = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>优先级 = %1 (实时) / %2 (正常)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>最后运行频率 = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>未等待互斥锁</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>等待中的线程</translation>
</message>
@@ -7672,7 +7989,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>等待树 (&amp;W)</translation>
</message>
diff --git a/dist/languages/zh_TW.ts b/dist/languages/zh_TW.ts
index 5ef629e41..a4605917f 100644
--- a/dist/languages/zh_TW.ts
+++ b/dist/languages/zh_TW.ts
@@ -380,36 +380,61 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="42"/>
- <source>Output Device</source>
- <translation>输出设备</translation>
+ <source>Output Device:</source>
+ <translation>輸出裝置:</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_audio.ui" line="56"/>
- <source>Input Device</source>
+ <source>Input Device:</source>
<translation>輸入裝置:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="70"/>
+ <source>Sound Output Mode:</source>
+ <translation>音訊輸出模式:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="78"/>
+ <source>Mono</source>
+ <translation>單聲道</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="83"/>
+ <source>Stereo</source>
+ <translation>立體聲</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="88"/>
+ <source>Surround</source>
+ <translation>環繞音效</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="114"/>
<source>Use global volume</source>
<translation>使用全域音量</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="119"/>
<source>Set volume:</source>
<translation>音量:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="127"/>
<source>Volume:</source>
<translation>音量:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.ui" line="142"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="172"/>
<source>0 %</source>
<translation>0 %</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_audio.ui" line="187"/>
+ <source>Mute audio when in background</source>
+ <translation>模擬器在背景執行時靜音</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_audio.cpp" line="115"/>
<source>%1%</source>
<comment>Volume percentage (e.g. 50%)</comment>
<translation>%1%</translation>
@@ -936,102 +961,112 @@ This would ban both their forum username and their IP address.</source>
<translation>停用 Macro JIT</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <source>When checked, it disables the macro HLE functions. Enabling this makes games run slower</source>
+ <translation>停用macro HLE,將會降低遊戲效能。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="214"/>
+ <source>Disable Macro HLE</source>
+ <translation>停用macro HLE</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
<source>When checked, yuzu will log statistics about the compiled pipeline cache</source>
<translation>啟用時 yuzu 將記錄有關編譯著色器快取的統計資訊。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="211"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="224"/>
<source>Enable Shader Feedback</source>
<translation>啟用著色器回饋</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="218"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
<source>When checked, it executes shaders without loop logic changes</source>
<translation>啟用時 yuzu 在執行著色器時,不會修改循環結構的條件判斷。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="221"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="234"/>
<source>Disable Loop safety checks</source>
<translation>停用循環安全檢查</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="231"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
<source>Debugging</source>
<translation>偵錯</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="237"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="250"/>
<source>Enable Verbose Reporting Services**</source>
<translation>啟用詳細報告服務</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="257"/>
<source>Enable FS Access Log</source>
<translation>啟用檔案系統存取記錄</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="251"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="264"/>
<source>Enable this to output the latest generated audio command list to the console. Only affects games using the audio renderer.</source>
<translation>启用此选项会将最新的音频命令列表输出到控制台。只影响使用音频渲染器的游戏。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="254"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="267"/>
<source>Dump Audio Commands To Console**</source>
<translation>将音频命令转储至控制台**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="274"/>
<source>Create Minidump After Crash</source>
<translation>微型故障转储</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
<source>Advanced</source>
<translation>進階</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="277"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="290"/>
<source>Kiosk (Quest) Mode</source>
<translation>Kiosk (Quest) 模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="284"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="297"/>
<source>Enable CPU Debugging</source>
<translation>啟用 CPU 模擬偵錯</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="291"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="304"/>
<source>Enable Debug Asserts</source>
<translation>啟用偵錯</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="298"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="311"/>
<source>Enable Auto-Stub**</source>
<translation>啟用自動偵錯**</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="318"/>
<source>Enable All Controller Types</source>
<translation>启用其他控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="312"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="325"/>
<source>Disable Web Applet</source>
<translation>停用 Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="319"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="332"/>
<source>Enables yuzu to check for a working Vulkan environment when the program starts up. Disable this if this is causing issues with external programs seeing yuzu.</source>
<translation>允许 yuzu 在启动时检查 Vulkan 环境是否正常工作。如果是其他程序导致 yuzu 出现此问题,请禁用此选项。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="322"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="335"/>
<source>Perform Startup Vulkan Check</source>
<translation>启动时进行 Vulkan 检测</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.ui" line="337"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.ui" line="350"/>
<source>**This will be reset automatically when yuzu closes.</source>
<translation>**當 yuzu 關閉時會自動重設。</translation>
</message>
@@ -1046,12 +1081,12 @@ This would ban both their forum username and their IP address.</source>
<translation>重启 yuzu 后才能应用此设置。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="88"/>
<source>Web applet not compiled</source>
<translation>Web 应用程序未编译</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_debug.cpp" line="95"/>
<source>MiniDump creation not compiled</source>
<translation>小型转储创建未编译</translation>
</message>
@@ -1101,78 +1136,78 @@ This would ban both their forum username and their IP address.</source>
<translation>yuzu 設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="52"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="156"/>
<source>Audio</source>
<translation>音訊</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="154"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="54"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
<source>Debug</source>
<translation>偵錯</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
<source>Filesystem</source>
<translation>檔案系統</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="56"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="150"/>
<source>General</source>
<translation>一般</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="155"/>
<source>Graphics</source>
<translation>圖形</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
<source>GraphicsAdvanced</source>
<translation>進階圖形</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
<source>Hotkeys</source>
<translation>快速鍵</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="157"/>
<source>Controls</source>
<translation>控制</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
<source>Profiles</source>
<translation>設定檔</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
<source>Network</source>
<translation>網路</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
<location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="152"/>
<source>System</source>
<translation>系統</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
<source>Game List</source>
<translation>遊戲清單</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_dialog.cpp" line="66"/>
<source>Web</source>
<translation>網路服務</translation>
</message>
@@ -1347,46 +1382,36 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_general.ui" line="67"/>
- <source>Extended memory layout (6GB DRAM)</source>
- <translation>扩展的内存布局 (6GB DRAM)</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Confirm exit while emulation is running</source>
<translation>退出遊戲時需要確認</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="74"/>
<source>Prompt for user on game boot</source>
<translation>啟動遊戲時提示選擇使用者</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="81"/>
<source>Pause emulation when in background</source>
<translation>模擬器在背景執行時暫停</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="95"/>
- <source>Mute audio when in background</source>
- <translation>模拟器位于后台时静音</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="88"/>
<source>Hide mouse on inactivity</source>
<translation>滑鼠閒置時自動隱藏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.ui" line="144"/>
+ <location filename="../../src/yuzu/configuration/configure_general.ui" line="130"/>
<source>Reset All Settings</source>
<translation>重設所有設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="64"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_general.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_general.cpp" line="65"/>
<source>This reset all settings and remove all per-game configurations. This will not delete game directories, profiles, or input profiles. Proceed?</source>
<translation>這將重設所有遊戲的額外設定,但不會刪除遊戲資料夾、使用者設定檔、輸入設定檔,是否繼續?</translation>
</message>
@@ -1425,7 +1450,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="144"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="535"/>
<source>None</source>
<translation>無</translation>
</message>
@@ -1451,216 +1476,272 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_graphics.ui" line="209"/>
+ <source>VSync Mode:</source>
+ <translation>垂直同步模式:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="216"/>
+ <source>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</source>
+ <translation>FIFO (垂直同步)不会掉帧或产生画面撕裂,但受到屏幕刷新率的限制。
+FIFO Relaxed 类似于 FIFO,但允许从低 FPS 恢复时产生撕裂。
+Mailbox 具有比 FIFO 更低的延迟,不会产生撕裂但可能会掉帧。
+Immediate (无同步)只显示可用内容,并可能产生撕裂。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="247"/>
<source>NVDEC emulation:</source>
<translation>NVDEC 模擬方式:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="255"/>
<source>No Video Output</source>
<translation>無視訊輸出</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="222"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="260"/>
<source>CPU Video Decoding</source>
<translation>CPU 視訊解碼</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="227"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="265"/>
<source>GPU Video Decoding (Default)</source>
<translation>GPU 視訊解碼(預設)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="253"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="291"/>
<source>Fullscreen Mode:</source>
<translation>全螢幕模式:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="299"/>
<source>Borderless Windowed</source>
<translation>無邊框視窗</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="304"/>
<source>Exclusive Fullscreen</source>
<translation>全螢幕獨占</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="292"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="330"/>
<source>Aspect Ratio:</source>
<translation>長寬比:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="338"/>
<source>Default (16:9)</source>
<translation>預設 (16:9)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="305"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="343"/>
<source>Force 4:3</source>
<translation>強制 4:3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="310"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="348"/>
<source>Force 21:9</source>
<translation>強制 21:9</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="315"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="353"/>
<source>Force 16:10</source>
<translation>强制 16:10</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="320"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="358"/>
<source>Stretch to Window</source>
<translation>延伸視窗</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="346"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
<source>Resolution:</source>
<translation>解析度:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="354"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="392"/>
<source>0.5X (360p/540p) [EXPERIMENTAL]</source>
<translation>0.5X (360p/540p) [實驗性]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="359"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="397"/>
<source>0.75X (540p/810p) [EXPERIMENTAL]</source>
<translation>0.75X (540p/810p) [實驗性]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="364"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="402"/>
<source>1X (720p/1080p)</source>
<translation>1X (720p/1080p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="369"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="407"/>
+ <source>1.5X (1080p/1620p) [EXPERIMENTAL]</source>
+ <translation>1.5X (1080p/1620p) [實驗性]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="412"/>
<source>2X (1440p/2160p)</source>
<translation>2X (1440p/2160p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="374"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="417"/>
<source>3X (2160p/3240p)</source>
<translation>3X (2160p/3240p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="422"/>
<source>4X (2880p/4320p)</source>
<translation>4X (2880p/4320p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="384"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="427"/>
<source>5X (3600p/5400p)</source>
<translation>5X (3600p/5400p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="432"/>
<source>6X (4320p/6480p)</source>
<translation>6X (4320p/6480p)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="415"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="437"/>
+ <source>7X (5040p/7560p)</source>
+ <translation>7X (5040p/7560p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="442"/>
+ <source>8X (5760p/8640p)</source>
+ <translation>8X (5760p/8640p)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="468"/>
<source>Window Adapting Filter:</source>
<translation>視窗濾鏡:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="476"/>
<source>Nearest Neighbor</source>
<translation>最近鄰域</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="428"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="481"/>
<source>Bilinear</source>
<translation>雙線性</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="433"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="486"/>
<source>Bicubic</source>
<translation>雙三次</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="438"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="491"/>
<source>Gaussian</source>
<translation>高斯</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="496"/>
<source>ScaleForce</source>
<translation>強制縮放</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="448"/>
- <source>AMD FidelityFX™️ Super Resolution (Vulkan Only)</source>
- <translation>AMD FidelityFX™️ 超高畫質技術 (僅限 Vulkan 模式)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="501"/>
+ <source>AMD FidelityFX™️ Super Resolution</source>
+ <translation>AMD FidelityFX™️ 超級解析度技術</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="474"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="527"/>
<source>Anti-Aliasing Method:</source>
<translation>抗鋸齒方式:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="487"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="540"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="492"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="545"/>
<source>SMAA</source>
<translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="548"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="601"/>
<source>Use global FSR Sharpness</source>
<translation>启用全局 FSR 锐化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="553"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="606"/>
<source>Set FSR Sharpness</source>
<translation>设置 FSR 锐化</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="567"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="620"/>
<source>FSR Sharpness:</source>
<translation>FSR 锐化度:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="634"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="687"/>
<source>100%</source>
<translation>100%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="673"/>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="683"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="726"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="736"/>
<source>Use global background color</source>
<translation>使用全域背景顏色</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="688"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="741"/>
<source>Set background color:</source>
<translation>設定背景顏色:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="696"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.ui" line="749"/>
<source>Background Color:</source>
<translation>背景顏色:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="33"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="94"/>
<source>GLASM (Assembly Shaders, NVIDIA Only)</source>
<translation>GLASM(組合語言著色器,僅限 NVIDIA)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="95"/>
<source>SPIR-V (Experimental, Mesa Only)</source>
<translation>SPIR-V (实验性,仅限 Mesa)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="299"/>
<source>%1%</source>
<comment>FSR sharpening percentage (e.g. 50%)</comment>
<translation>%1%</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="307"/>
+ <source>Off</source>
+ <translation>關閉</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="308"/>
+ <source>VSync Off</source>
+ <translation>垂直同步關</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="310"/>
+ <source>Recommended</source>
+ <translation>推薦</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="313"/>
+ <source>On</source>
+ <translation>開啟</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics.cpp" line="314"/>
+ <source>VSync On</source>
+ <translation>垂直同步開</translation>
+ </message>
</context>
<context>
<name>ConfigureGraphicsAdvanced</name>
@@ -1685,77 +1766,134 @@ This would ban both their forum username and their IP address.</source>
<translation>精度:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="75"/>
- <source>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don&apos;t notice a performance difference.</source>
- <translation>垂直同步可防止畫面撕裂,但啟用後某些顯示卡效能可能會降低。如果您沒有發現效能降低,請保持啟用。</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="90"/>
+ <source>ASTC recompression:</source>
+ <translation>ASTC 纹理重压缩:</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <source>Uncompressed (Best quality)</source>
+ <translation>不压缩 (最高质量)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="78"/>
- <source>Use VSync</source>
- <translation>启用垂直同步</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="103"/>
+ <source>BC1 (Low quality)</source>
+ <translation>BC1 (低质量)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
+ <source>BC3 (Medium quality)</source>
+ <translation>BC3 (中等质量)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="119"/>
+ <source>Enable asynchronous presentation (Vulkan only)</source>
+ <translation>启用异步帧提交 (仅限 Vulkan)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="126"/>
+ <source>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</source>
+ <translation>在后台运行的同时等待图形命令,以防止 GPU 降低时钟速度。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="129"/>
+ <source>Force maximum clocks (Vulkan only)</source>
+ <translation>强制最大时钟 (仅限 Vulkan 模式)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="136"/>
+ <source>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</source>
+ <translation>启用异步 ASTC 纹理解码,可能减少加载时的卡顿。实验性功能。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="139"/>
+ <source>Decode ASTC textures asynchronously (Hack)</source>
+ <translation>异步 ASTC 纹理解码 (不稳定)</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="146"/>
+ <source>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</source>
+ <translation>使用反应性刷新取代预测性刷新,从而更精确地同步内存。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="149"/>
+ <source>Enable Reactive Flushing</source>
+ <translation>启用反应性刷新</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="156"/>
<source>Enables asynchronous shader compilation, which may reduce shader stutter. This feature is experimental.</source>
<translation>啟用非同步著色器編譯,可能會減少著色器不流暢的問題。實驗性功能。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="159"/>
<source>Use asynchronous shader building (Hack)</source>
<translation>使用非同步著色器編譯(不穩定)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="166"/>
<source>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</source>
<translation>啟用快速 GPU 時間。此選項將強制大多數遊戲以其最高解析度執行。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="169"/>
<source>Use Fast GPU Time (Hack)</source>
<translation>使用快速 GPU 時間(不穩定)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="105"/>
- <source>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</source>
- <translation>启用悲观缓冲区刷新。此选项将强制刷新未修改的缓冲区,可能会降低性能。</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="176"/>
+ <source>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.</source>
+ <translation>启用 GPU 专用的管线缓存。在 Vulkan 驱动程序内部不存储管线缓存的情况下,此选项可显著提高着色器加载速度。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="108"/>
- <source>Use pessimistic buffer flushes (Hack)</source>
- <translation>启用悲观缓冲区刷新 (不稳定)</translation>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="179"/>
+ <source>Use Vulkan pipeline cache</source>
+ <translation>启用 Vulkan 管线缓存</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="186"/>
+ <source>Enable compute pipelines, 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.</source>
+ <translation>启用某些游戏所需的计算管线。此选项仅适用于英特尔专有驱动程序。如果启用,可能会造成崩溃。
+在其他的驱动程序上将始终启用计算管线。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="190"/>
+ <source>Enable Compute Pipelines (Intel Vulkan only)</source>
+ <translation>启用计算管线 (仅限 Intel 显卡 Vulkan 模式)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="212"/>
<source>Anisotropic Filtering:</source>
<translation>各向異性過濾:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="138"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="220"/>
<source>Automatic</source>
<translation>自動</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="143"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="225"/>
<source>Default</source>
<translation>預設</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="148"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="230"/>
<source>2x</source>
<translation>2x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="153"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="235"/>
<source>4x</source>
<translation>4x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="158"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="240"/>
<source>8x</source>
<translation>8x</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_graphics_advanced.ui" line="245"/>
<source>16x</source>
<translation>16x</translation>
</message>
@@ -1788,70 +1926,65 @@ This would ban both their forum username and their IP address.</source>
<translation>還原預設值</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Action</source>
<translation>動作</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Hotkey</source>
<translation>快速鍵</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="100"/>
<source>Controller Hotkey</source>
<translation>控制器快捷鍵</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="138"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="164"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="379"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="140"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="168"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="394"/>
<source>Conflicting Key Sequence</source>
<translation>按鍵衝突</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="139"/>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="165"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="141"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="169"/>
<source>The entered key sequence is already assigned to: %1</source>
<translation>輸入的金鑰已指定給:%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="158"/>
- <source>Home+%1</source>
- <translation>Home+%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="172"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="176"/>
<source>[waiting]</source>
<translation>[請按按鍵]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="253"/>
<source>Invalid</source>
<translation>無效</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="343"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="358"/>
<source>Restore Default</source>
<translation>還原預設值</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="344"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="359"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="365"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
<source>Conflicting Button Sequence</source>
<translation>按鍵衝突</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="366"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="381"/>
<source>The default button sequence is already assigned to: %1</source>
<translation>預設的按鍵序列已分配給: %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="380"/>
+ <location filename="../../src/yuzu/configuration/configure_hotkeys.cpp" line="395"/>
<source>The default key sequence is already assigned to: %1</source>
<translation>預設金鑰已指定給:%1</translation>
</message>
@@ -2143,7 +2276,7 @@ This would ban both their forum username and their IP address.</source>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2602"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2616"/>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2630"/>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2743"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2791"/>
<source>Configure</source>
<translation>設定</translation>
</message>
@@ -2169,6 +2302,8 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2659"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2701"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2717"/>
<source>Requires restarting yuzu</source>
<translation>需要重新啟動 yuzu</translation>
</message>
@@ -2188,22 +2323,42 @@ This would ban both their forum username and their IP address.</source>
<translation>控制器导航</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2707"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2710"/>
+ <source>Enable direct JoyCon driver</source>
+ <translation>启用 JoyCon 直接驱动</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2726"/>
+ <source>Enable direct Pro Controller driver [EXPERIMENTAL]</source>
+ <translation>启用 Pro Controller 直接驱动 [实验性]</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2733"/>
+ <source>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</source>
+ <translation>此选项允许您在游戏中无限使用相同的 Amiibo。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2742"/>
+ <source>Use random Amiibo ID</source>
+ <translation>启用 Amiibo 随机 ID</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2755"/>
<source>Enable mouse panning</source>
<translation>啟用滑鼠平移</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2714"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2762"/>
<source>Mouse sensitivity</source>
<translation>滑鼠靈敏度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2720"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2768"/>
<source>%</source>
<translation>%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2736"/>
+ <location filename="../../src/yuzu/configuration/configure_input_advanced.ui" line="2784"/>
<source>Motion / Touch</source>
<translation>體感/觸控</translation>
</message>
@@ -2315,7 +2470,7 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="272"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1287"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1324"/>
<source>Left Stick</source>
<translation>左搖桿</translation>
</message>
@@ -2409,14 +2564,14 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1232"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1271"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1292"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1329"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1287"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1326"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1284"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1321"/>
<source>ZL</source>
<translation>ZL</translation>
</message>
@@ -2435,7 +2590,7 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1526"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1565"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1283"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1320"/>
<source>Plus</source>
<translation>+</translation>
</message>
@@ -2448,15 +2603,15 @@ This would ban both their forum username and their IP address.</source>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1679"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1718"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1286"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1293"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1323"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1330"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1734"/>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="1773"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1285"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1322"/>
<source>ZR</source>
<translation>ZR</translation>
</message>
@@ -2513,236 +2668,247 @@ This would ban both their forum username and their IP address.</source>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_input_player.ui" line="2497"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1288"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1325"/>
<source>Right Stick</source>
<translation>右搖桿</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="361"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="434"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="529"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="624"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="383"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="468"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="566"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="661"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="363"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="533"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="552"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="626"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="385"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="470"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="570"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="589"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="663"/>
<source>[not set]</source>
<translation>[未設定]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="638"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="388"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="414"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="675"/>
<source>Invert button</source>
<translation>無效按鈕</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="629"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="394"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="666"/>
<source>Toggle button</source>
<translation>切換按鍵</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="380"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="580"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="400"/>
+ <source>Turbo button</source>
+ <translation>连发键</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="408"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="617"/>
<source>Invert axis</source>
<translation>方向反轉</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="386"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="420"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Set threshold</source>
<translation>設定閾值</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="390"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="424"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="477"/>
<source>Choose a value between 0% and 100%</source>
<translation>選擇介於 0% 和 100% 之間的值</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="402"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="436"/>
<source>Toggle axis</source>
<translation>切换轴</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="439"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="473"/>
<source>Set gyro threshold</source>
<translation>陀螺仪阈值设定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="485"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="482"/>
+ <source>Calibrate sensor</source>
+ <translation>校准传感器</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="522"/>
<source>Map Analog Stick</source>
<translation>搖桿映射</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="523"/>
<source>After pressing OK, first move your joystick horizontally, and then vertically.
To invert the axes, first move your joystick vertically, and then horizontally.</source>
<translation>按下確定後,先水平再上下移動您的搖桿。
要反轉方向,則先上下再水平移動您的搖桿。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="554"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="591"/>
<source>Center axis</source>
<translation>中心轴</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="662"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1012"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="699"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1049"/>
<source>Deadzone: %1%</source>
<translation>無感帶:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="671"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1017"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="708"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
<source>Modifier Range: %1%</source>
<translation>輕推靈敏度:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="697"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1042"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="734"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
<source>Pro Controller</source>
<translation>Pro 手把</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1046"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
<source>Dual Joycons</source>
<translation>雙 Joycon 手把</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1050"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
<source>Left Joycon</source>
<translation>左 Joycon 手把</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1054"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1091"/>
<source>Right Joycon</source>
<translation>右 Joycon 手把</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1058"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1095"/>
<source>Handheld</source>
<translation>掌機模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1062"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1099"/>
<source>GameCube Controller</source>
<translation>GameCube 手把</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1071"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1108"/>
<source>Poke Ball Plus</source>
<translation>精靈球 PLUS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1075"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1112"/>
<source>NES Controller</source>
<translation>NES 控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1079"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1116"/>
<source>SNES Controller</source>
<translation>SNES 控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1083"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1120"/>
<source>N64 Controller</source>
<translation>N64 控制器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1087"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1124"/>
<source>Sega Genesis</source>
<translation>Mega Drive</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1291"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1328"/>
<source>Start / Pause</source>
<translation>開始 / 暫停</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1294"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1331"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1295"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1332"/>
<source>Control Stick</source>
<translation>控制搖桿</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1296"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1333"/>
<source>C-Stick</source>
<translation>C 搖桿</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1397"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1434"/>
<source>Shake!</source>
<translation>搖動!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1399"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1436"/>
<source>[waiting]</source>
<translation>[等待中]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>New Profile</source>
<translation>新增設定檔</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1488"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1531"/>
<source>Enter a profile name:</source>
<translation>輸入設定檔名稱:</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1496"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1504"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1539"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1547"/>
<source>Create Input Profile</source>
<translation>建立輸入設定檔</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1497"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1540"/>
<source>The given profile name is not valid!</source>
<translation>輸入的設定檔名稱無效!</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1505"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
<source>Failed to create the input profile &quot;%1&quot;</source>
<translation>建立輸入設定檔「%1」失敗</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1525"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1568"/>
<source>Delete Input Profile</source>
<translation>刪除輸入設定檔</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1526"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1569"/>
<source>Failed to delete the input profile &quot;%1&quot;</source>
<translation>刪除輸入設定檔「%1」失敗</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1548"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1591"/>
<source>Load Input Profile</source>
<translation>載入輸入設定檔</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1549"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1592"/>
<source>Failed to load the input profile &quot;%1&quot;</source>
<translation>載入輸入設定檔「%1」失敗</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1574"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1617"/>
<source>Save Input Profile</source>
<translation>儲存輸入設定檔</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="1618"/>
<source>Failed to save the input profile &quot;%1&quot;</source>
<translation>儲存輸入設定檔「%1」失敗</translation>
</message>
@@ -2790,7 +2956,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="46"/>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="243"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="242"/>
<source>Configure</source>
<translation>設定</translation>
</message>
@@ -2826,7 +2992,7 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_motion_touch.ui" line="201"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="266"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="265"/>
<source>Test</source>
<translation>測試</translation>
</message>
@@ -2846,77 +3012,77 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>&lt;a href=&apos;https://yuzu-emu.org/wiki/using-a-controller-or-android-phone-for-motion-or-touch-input&apos;&gt;&lt;span style=&quot;text-decoration: underline; color:#039be5;&quot;&gt;了解更多&lt;/span&gt;&lt;/a&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="169"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="168"/>
<source>%1:%2</source>
<translation>%1:%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="287"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="173"/>
<source>Port number has invalid characters</source>
<translation>連線埠中包含無效字元</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="178"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="177"/>
<source>Port has to be in range 0 and 65353</source>
<translation>連線埠必須為 0 到 65353 之間</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="182"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="181"/>
<source>IP address is not valid</source>
<translation>無效的 IP 位址</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="188"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="187"/>
<source>This UDP server already exists</source>
<translation>此 UDP 伺服器已存在</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="193"/>
<source>Unable to add more than 8 servers</source>
<translation>最多只能新增 8 個伺服器</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="209"/>
<source>Testing</source>
<translation>測試中</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="225"/>
<source>Configuring</source>
<translation>設定中</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="256"/>
<source>Test Successful</source>
<translation>測試成功</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="258"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="257"/>
<source>Successfully received data from the server.</source>
<translation>已成功從伺服器取得資料</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="259"/>
<source>Test Failed</source>
<translation>測試失敗</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="260"/>
<source>Could not receive valid data from the server.&lt;br&gt;Please verify that the server is set up correctly and the address and port are correct.</source>
<translation>無法從伺服器取得有效的資料。&lt;br&gt;請檢查伺服器是否正確設定以及位址和連接埠是否正確。</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="289"/>
+ <location filename="../../src/yuzu/configuration/configure_motion_touch.cpp" line="288"/>
<source>UDP Test or calibration configuration is in progress.&lt;br&gt;Please wait for them to finish.</source>
<translation>UDP 測試或觸控校正進行中。&lt;br&gt;請耐心等候。</translation>
</message>
@@ -2997,47 +3163,47 @@ To invert the axes, first move your joystick vertically, and then horizontally.<
<translation>出版商</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="58"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
<source>Add-Ons</source>
<translation>延伸模組</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
<source>General</source>
<translation>一般</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="60"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
<source>System</source>
<translation>系統</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
<source>CPU</source>
<translation>CPU</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="62"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
<source>Graphics</source>
<translation>圖形</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
<source>Adv. Graphics</source>
<translation>進階圖形</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
<source>Audio</source>
<translation>音訊</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="66"/>
<source>Input Profiles</source>
<translation>输入配置文件</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_per_game.cpp" line="69"/>
<source>Properties</source>
<translation>屬性</translation>
</message>
@@ -3245,8 +3411,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="52"/>
- <source>Ring Sensor Parameters</source>
- <translation>环形传感器参数</translation>
+ <source>Virtual Ring Sensor Parameters</source>
+ <translation>虚拟健身环传感器参数</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="84"/>
@@ -3266,33 +3432,90 @@ UUID: %2</translation>
<translation>無感帶:0%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="248"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="233"/>
+ <source>Direct Joycon Driver</source>
+ <translation>Joycon 直接驱动</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="293"/>
+ <source>Enable Ring Input</source>
+ <translation>启用健身环输入</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="300"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="314"/>
+ <source>Enable</source>
+ <translation>启用</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="307"/>
+ <source>Ring Sensor Value</source>
+ <translation>健身环传感器参数</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="314"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="282"/>
+ <source>Not connected</source>
+ <translation>未连接</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.ui" line="344"/>
<source>Restore Defaults</source>
<translation>還原預設值</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="159"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="168"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="161"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="170"/>
<source>[not set]</source>
<translation>[未設定]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="163"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="172"/>
<source>Invert axis</source>
<translation>方向反轉</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="182"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="238"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="191"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="257"/>
<source>Deadzone: %1%</source>
<translation>無感帶:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="262"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="279"/>
+ <source>Error enabling ring input</source>
+ <translation>启用健身环输入时出错</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="285"/>
+ <source>Direct Joycon driver is not enabled</source>
+ <translation>未启用 Joycon 直接驱动</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="290"/>
+ <source>Configuring</source>
+ <translation>設定中</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="302"/>
+ <source>The current mapped device doesn&apos;t support the ring controller</source>
+ <translation>当前映射的输入设备不支持健身环控制器</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="306"/>
+ <source>The current mapped device doesn&apos;t have a ring attached</source>
+ <translation>当前映射的设备未连接健身环控制器</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="310"/>
+ <source>Unexpected driver result %1</source>
+ <translation>意外的驱动结果: %1</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="333"/>
<source>[waiting]</source>
<translation>[請按按鍵]</translation>
</message>
@@ -3597,8 +3820,8 @@ UUID: %2</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="329"/>
- <source>English</source>
- <translation>英文 (English)</translation>
+ <source>American English</source>
+ <translation>美式英语</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_system.ui" line="334"/>
@@ -3701,54 +3924,19 @@ UUID: %2</translation>
<translation>设备名称</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="446"/>
- <source>Mono</source>
- <translation>單聲道</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="451"/>
- <source>Stereo</source>
- <translation>立體聲</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="456"/>
- <source>Surround</source>
- <translation>環繞音效</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="464"/>
- <source>Console ID:</source>
- <translation>主機 ID:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="471"/>
- <source>Sound output mode</source>
- <translation>聲道</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="526"/>
- <source>Regenerate</source>
- <translation>重新產生</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="484"/>
+ <source>Unsafe extended memory layout (8GB DRAM)</source>
+ <translation>不安全的内存布局扩展 (8GB DRAM)</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.ui" line="551"/>
+ <location filename="../../src/yuzu/configuration/configure_system.ui" line="519"/>
<source>System settings are available only when game is not running.</source>
<translation>僅在遊戲未執行時才能修改使用者設定檔</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="165"/>
- <source>This will replace your current virtual Switch with a new one. Your current virtual Switch will not be recoverable. This might have unexpected effects in games. This might fail, if you use an outdated config savegame. Continue?</source>
- <translation>這會使用新的虛擬 Switch 取代你目前的虛擬 Switch,且將無法還原目前的虛擬 Switch。在部分遊戲中可能會出現意外後果。此動作可能因您使用過時的設定存檔而失敗。確定要繼續嗎?</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="169"/>
- <source>Warning</source>
- <translation>警告</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/configuration/configure_system.cpp" line="177"/>
- <source>Console ID: 0x%1</source>
- <translation>主機 ID:0x%1</translation>
+ <location filename="../../src/yuzu/configuration/configure_system.cpp" line="67"/>
+ <source>Warning: &quot;%1&quot; is not a valid language for region &quot;%2&quot;</source>
+ <translation>警告:“ %1 ”并不是“ %2 ”地区的有效语言。</translation>
</message>
</context>
<context>
@@ -3817,7 +4005,7 @@ UUID: %2</translation>
<translation>TAS 設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="50"/>
+ <location filename="../../src/yuzu/configuration/configure_tas.cpp" line="49"/>
<source>Select TAS Load Directory...</source>
<translation>選擇 TAS 載入資料夾...</translation>
</message>
@@ -4373,7 +4561,7 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>Controller P1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/controller.cpp" line="59"/>
+ <location filename="../../src/yuzu/debugger/controller.cpp" line="58"/>
<source>&amp;Controller P1</source>
<translation>&amp;Controller P1</translation>
</message>
@@ -4386,42 +4574,37 @@ Drag points to change position, or double-click table cells to edit values.</sou
<translation>直接连接</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="33"/>
- <source>IP Address</source>
- <translation>IP 地址</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="56"/>
- <source>IP</source>
- <translation>IP</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="47"/>
+ <source>Server Address</source>
+ <translation>服务器地址</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="63"/>
- <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
- <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;服务器 IPv4 地址&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="54"/>
+ <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
+ <translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;服务器地址&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="73"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="64"/>
<source>Port</source>
<translation>端口</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="80"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="71"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Port number the host is listening on&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;服务器端口&lt;/p&gt;&lt;/body&gt;</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="100"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="97"/>
<source>Nickname</source>
<translation>昵称</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="114"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="111"/>
<source>Password</source>
<translation>密码</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="156"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.ui" line="153"/>
<source>Connect</source>
<translation>连接</translation>
</message>
@@ -4429,12 +4612,12 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>DirectConnectWindow</name>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="127"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="120"/>
<source>Connecting</source>
<translation>连接中</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="132"/>
+ <location filename="../../src/yuzu/multiplayer/direct_connect.cpp" line="125"/>
<source>Connect</source>
<translation>连接</translation>
</message>
@@ -4442,925 +4625,961 @@ Drag points to change position, or double-click table cells to edit values.</sou
<context>
<name>GMainWindow</name>
<message>
- <location filename="../../src/yuzu/main.cpp" line="194"/>
+ <location filename="../../src/yuzu/main.cpp" line="198"/>
<source>&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;Anonymous data is collected&lt;/a&gt; to help improve yuzu. &lt;br/&gt;&lt;br/&gt;Would you like to share your usage data with us?</source>
<translation>我們&lt;a href=&apos;https://yuzu-emu.org/help/feature/telemetry/&apos;&gt;蒐集匿名的資料&lt;/a&gt;以幫助改善 yuzu。&lt;br/&gt;&lt;br/&gt;您願意和我們分享您的使用資料嗎?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="197"/>
+ <location filename="../../src/yuzu/main.cpp" line="201"/>
<source>Telemetry</source>
<translation>遙測</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="421"/>
+ <location filename="../../src/yuzu/main.cpp" line="433"/>
<source>Broken Vulkan Installation Detected</source>
<translation>检测到 Vulkan 的安装已损坏</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="422"/>
+ <location filename="../../src/yuzu/main.cpp" line="434"/>
<source>Vulkan initialization failed during boot.&lt;br&gt;&lt;br&gt;Click &lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;here for instructions to fix the issue&lt;/a&gt;.</source>
<translation>Vulkan 初始化失败。&lt;br&gt;&lt;br&gt;点击&lt;a href=&apos;https://yuzu-emu.org/wiki/faq/#yuzu-starts-with-the-error-broken-vulkan-installation-detected&apos;&gt;这里&lt;/a&gt;获取此问题的相关信息。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="770"/>
+ <location filename="../../src/yuzu/main.cpp" line="825"/>
<source>Loading Web Applet...</source>
<translation>載入 Web Applet...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="817"/>
- <location filename="../../src/yuzu/main.cpp" line="820"/>
+ <location filename="../../src/yuzu/main.cpp" line="875"/>
+ <location filename="../../src/yuzu/main.cpp" line="878"/>
<source>Disable Web Applet</source>
<translation>停用 Web Applet</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="821"/>
+ <location filename="../../src/yuzu/main.cpp" line="879"/>
<source>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.)</source>
<translation>禁用 Web 应用程序可能会导致未知的行为,且只能在《超级马里奥 3D 全明星》中使用。您确定要禁用 Web 应用程序吗?
(您可以在调试选项中重新启用它。)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="928"/>
+ <location filename="../../src/yuzu/main.cpp" line="995"/>
<source>The amount of shaders currently being built</source>
<translation>目前正在建構的著色器數量</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="930"/>
+ <location filename="../../src/yuzu/main.cpp" line="997"/>
<source>The current selected resolution scaling multiplier.</source>
<translation>目前選擇的解析度縮放比例。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="933"/>
+ <location filename="../../src/yuzu/main.cpp" line="1000"/>
<source>Current emulation speed. Values higher or lower than 100% indicate emulation is running faster or slower than a Switch.</source>
<translation>目前的模擬速度。高於或低於 100% 表示比實際 Switch 執行速度更快或更慢。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="936"/>
+ <location filename="../../src/yuzu/main.cpp" line="1003"/>
<source>How many frames per second the game is currently displaying. This will vary from game to game and scene to scene.</source>
<translation>遊戲即時 FPS。會因遊戲和場景的不同而改變。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="940"/>
+ <location filename="../../src/yuzu/main.cpp" line="1007"/>
<source>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.</source>
<translation>在不考慮幀數限制和垂直同步的情況下模擬一個 Switch 畫格的實際時間,若要全速模擬,此數值不得超過 16.67 毫秒。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1063"/>
+ <location filename="../../src/yuzu/main.cpp" line="1157"/>
<source>&amp;Clear Recent Files</source>
<translation>清除最近的檔案(&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1372"/>
+ <location filename="../../src/yuzu/main.cpp" line="1239"/>
+ <source>Emulated mouse is enabled</source>
+ <translation>已启用模拟鼠标</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1240"/>
+ <source>Real mouse input and mouse panning are incompatible. Please disable the emulated mouse in input advanced settings to allow mouse panning.</source>
+ <translation>实体鼠标输入与鼠标平移不兼容。请在高级输入设置中禁用模拟鼠标以使用鼠标平移。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="1462"/>
<source>&amp;Continue</source>
<translation>繼續(&amp;C)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1374"/>
+ <location filename="../../src/yuzu/main.cpp" line="1464"/>
<source>&amp;Pause</source>
<translation>&amp;暫停</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1454"/>
+ <location filename="../../src/yuzu/main.cpp" line="1544"/>
<source>yuzu is running a game</source>
<extracomment>TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the computer from sleeping</extracomment>
<translation>yuzu 正在執行中</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1587"/>
+ <location filename="../../src/yuzu/main.cpp" line="1677"/>
<source>Warning Outdated Game Format</source>
<translation>過時遊戲格式警告</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1588"/>
+ <location filename="../../src/yuzu/main.cpp" line="1678"/>
<source>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.&lt;br&gt;&lt;br&gt;For an explanation of the various Switch formats yuzu supports, &lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;check out our wiki&lt;/a&gt;. This message will not be shown again.</source>
<translation>此遊戲為解構的 ROM 資料夾格式,這是一種過時的格式,已被其他格式取代,如 NCA、NAX、XCI、NSP。解構的 ROM 目錄缺少圖示、中繼資料和更新支援。&lt;br&gt;&lt;br&gt;有關 yuzu 支援的各種 Switch 格式說明,&lt;a href=&apos;https://yuzu-emu.org/wiki/overview-of-switch-game-formats&apos;&gt;請參閱我們的 wiki &lt;/a&gt;。此訊息將不再顯示。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1600"/>
- <location filename="../../src/yuzu/main.cpp" line="1634"/>
+ <location filename="../../src/yuzu/main.cpp" line="1690"/>
+ <location filename="../../src/yuzu/main.cpp" line="1724"/>
<source>Error while loading ROM!</source>
<translation>載入 ROM 時發生錯誤!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1601"/>
+ <location filename="../../src/yuzu/main.cpp" line="1691"/>
<source>The ROM format is not supported.</source>
<translation>此 ROM 格式不支援</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1605"/>
+ <location filename="../../src/yuzu/main.cpp" line="1695"/>
<source>An error occurred initializing the video core.</source>
<translation>初始化視訊核心時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1606"/>
+ <location filename="../../src/yuzu/main.cpp" line="1696"/>
<source>yuzu 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: &lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;How to Upload the Log File&lt;/a&gt;. </source>
<translation>yuzu 在執行視訊核心時發生錯誤。 這可能是 GPU 驅動程序過舊造成的。 詳細資訊請查閱日誌檔案。 關於日誌檔案的更多資訊,請參考以下頁面:&lt;a href=&apos;https://yuzu-emu.org/help/reference/log-files/&apos;&gt;如何上傳日誌檔案&lt;/a&gt;。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1621"/>
+ <location filename="../../src/yuzu/main.cpp" line="1711"/>
<source>Error while loading ROM! %1</source>
<comment>%1 signifies a numeric error code.</comment>
<translation>載入 ROM 時發生錯誤!%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1624"/>
+ <location filename="../../src/yuzu/main.cpp" line="1714"/>
<source>%1&lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to redump your files.&lt;br&gt;You can refer to the yuzu wiki&lt;/a&gt; or the yuzu Discord&lt;/a&gt; for help.</source>
<comment>%1 signifies an error string.</comment>
<translation>%1&lt;br&gt;請參閱 &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu 快速指引&lt;/a&gt;以重新傾印檔案。&lt;br&gt;您可以前往 yuzu 的 wiki&lt;/a&gt; 或 Discord 社群&lt;/a&gt;以獲得幫助。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1635"/>
+ <location filename="../../src/yuzu/main.cpp" line="1725"/>
<source>An unknown error occurred. Please see the log for more details.</source>
<translation>發生未知錯誤,請檢視紀錄了解細節。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(64-bit)</source>
<translation>(64-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1770"/>
+ <location filename="../../src/yuzu/main.cpp" line="1867"/>
<source>(32-bit)</source>
<translation>(32-bit)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1771"/>
+ <location filename="../../src/yuzu/main.cpp" line="1868"/>
<source>%1 %2</source>
<comment>%1 is the title name. %2 indicates if the title is 64-bit or 32-bit</comment>
<translation>%1 %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1829"/>
+ <location filename="../../src/yuzu/main.cpp" line="1926"/>
<source>Closing software...</source>
<translation>正在关闭…</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="1976"/>
+ <location filename="../../src/yuzu/main.cpp" line="2075"/>
<source>Save Data</source>
<translation>儲存資料</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2026"/>
+ <location filename="../../src/yuzu/main.cpp" line="2131"/>
<source>Mod Data</source>
<translation>模組資料</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2039"/>
+ <location filename="../../src/yuzu/main.cpp" line="2144"/>
<source>Error Opening %1 Folder</source>
<translation>開啟資料夾 %1 時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2040"/>
- <location filename="../../src/yuzu/main.cpp" line="2604"/>
+ <location filename="../../src/yuzu/main.cpp" line="2145"/>
+ <location filename="../../src/yuzu/main.cpp" line="2747"/>
<source>Folder does not exist!</source>
<translation>資料夾不存在</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2052"/>
+ <location filename="../../src/yuzu/main.cpp" line="2157"/>
<source>Error Opening Transferable Shader Cache</source>
<translation>開啟通用著色器快取位置時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2053"/>
+ <location filename="../../src/yuzu/main.cpp" line="2158"/>
<source>Failed to create the shader cache directory for this title.</source>
<translation>無法新增此遊戲的著色器快取資料夾。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2104"/>
+ <location filename="../../src/yuzu/main.cpp" line="2209"/>
<source>Error Removing Contents</source>
<translation>删除内容时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2106"/>
+ <location filename="../../src/yuzu/main.cpp" line="2211"/>
<source>Error Removing Update</source>
<translation>删除更新时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2108"/>
+ <location filename="../../src/yuzu/main.cpp" line="2213"/>
<source>Error Removing DLC</source>
<translation>删除 DLC 时出错</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2117"/>
+ <location filename="../../src/yuzu/main.cpp" line="2222"/>
<source>Remove Installed Game Contents?</source>
<translation>删除已安装的游戏内容?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2119"/>
+ <location filename="../../src/yuzu/main.cpp" line="2224"/>
<source>Remove Installed Game Update?</source>
<translation>删除已安装的游戏更新?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2121"/>
+ <location filename="../../src/yuzu/main.cpp" line="2226"/>
<source>Remove Installed Game DLC?</source>
<translation>删除已安装的游戏 DLC 内容?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2127"/>
+ <location filename="../../src/yuzu/main.cpp" line="2232"/>
<source>Remove Entry</source>
<translation>移除項目</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2158"/>
- <location filename="../../src/yuzu/main.cpp" line="2174"/>
- <location filename="../../src/yuzu/main.cpp" line="2205"/>
- <location filename="../../src/yuzu/main.cpp" line="2266"/>
- <location filename="../../src/yuzu/main.cpp" line="2284"/>
- <location filename="../../src/yuzu/main.cpp" line="2307"/>
+ <location filename="../../src/yuzu/main.cpp" line="2263"/>
+ <location filename="../../src/yuzu/main.cpp" line="2279"/>
+ <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2378"/>
+ <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2435"/>
<source>Successfully Removed</source>
<translation>移除成功</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2159"/>
+ <location filename="../../src/yuzu/main.cpp" line="2264"/>
<source>Successfully removed the installed base game.</source>
<translation>成功移除已安裝的遊戲。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2163"/>
+ <location filename="../../src/yuzu/main.cpp" line="2268"/>
<source>The base game is not installed in the NAND and cannot be removed.</source>
<translation>此遊戲並非安裝在內部儲存空間,因此無法移除。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2175"/>
+ <location filename="../../src/yuzu/main.cpp" line="2280"/>
<source>Successfully removed the installed update.</source>
<translation>成功移除已安裝的遊戲更新。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2178"/>
+ <location filename="../../src/yuzu/main.cpp" line="2283"/>
<source>There is no update installed for this title.</source>
<translation>此遊戲沒有已安裝的更新。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2201"/>
+ <location filename="../../src/yuzu/main.cpp" line="2306"/>
<source>There are no DLC installed for this title.</source>
<translation>此遊戲沒有已安裝的 DLC。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2206"/>
+ <location filename="../../src/yuzu/main.cpp" line="2311"/>
<source>Successfully removed %1 installed DLC.</source>
<translation>成功移除遊戲 %1 已安裝的 DLC。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2214"/>
+ <location filename="../../src/yuzu/main.cpp" line="2319"/>
<source>Delete OpenGL Transferable Shader Cache?</source>
<translation>刪除 OpenGL 模式的著色器快取?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2216"/>
+ <location filename="../../src/yuzu/main.cpp" line="2321"/>
<source>Delete Vulkan Transferable Shader Cache?</source>
<translation>刪除 Vulkan 模式的著色器快取?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2218"/>
+ <location filename="../../src/yuzu/main.cpp" line="2323"/>
<source>Delete All Transferable Shader Caches?</source>
<translation>刪除所有的著色器快取?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2220"/>
+ <location filename="../../src/yuzu/main.cpp" line="2325"/>
<source>Remove Custom Game Configuration?</source>
<translation>移除額外遊戲設定?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2226"/>
+ <location filename="../../src/yuzu/main.cpp" line="2327"/>
+ <source>Remove Cache Storage?</source>
+ <translation>移除缓存?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2333"/>
<source>Remove File</source>
<translation>刪除檔案</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2261"/>
- <location filename="../../src/yuzu/main.cpp" line="2269"/>
+ <location filename="../../src/yuzu/main.cpp" line="2373"/>
+ <location filename="../../src/yuzu/main.cpp" line="2381"/>
<source>Error Removing Transferable Shader Cache</source>
<translation>刪除通用著色器快取時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2262"/>
- <location filename="../../src/yuzu/main.cpp" line="2280"/>
+ <location filename="../../src/yuzu/main.cpp" line="2374"/>
+ <location filename="../../src/yuzu/main.cpp" line="2408"/>
<source>A shader cache for this title does not exist.</source>
<translation>此遊戲沒有著色器快取</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2267"/>
+ <location filename="../../src/yuzu/main.cpp" line="2379"/>
<source>Successfully removed the transferable shader cache.</source>
<translation>成功刪除著色器快取。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2270"/>
+ <location filename="../../src/yuzu/main.cpp" line="2382"/>
<source>Failed to remove the transferable shader cache.</source>
<translation>刪除通用著色器快取失敗。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2279"/>
- <location filename="../../src/yuzu/main.cpp" line="2287"/>
+ <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <source>Error Removing Vulkan Driver Pipeline Cache</source>
+ <translation>移除 Vulkan 驱动程序管线缓存时出错</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <source>Failed to remove the driver pipeline cache.</source>
+ <translation>删除驱动程序管线缓存失败。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="2407"/>
+ <location filename="../../src/yuzu/main.cpp" line="2415"/>
<source>Error Removing Transferable Shader Caches</source>
<translation>刪除通用著色器快取時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2285"/>
+ <location filename="../../src/yuzu/main.cpp" line="2413"/>
<source>Successfully removed the transferable shader caches.</source>
<translation>成功刪除通用著色器快取。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2288"/>
+ <location filename="../../src/yuzu/main.cpp" line="2416"/>
<source>Failed to remove the transferable shader cache directory.</source>
<translation>無法刪除著色器快取資料夾。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2301"/>
- <location filename="../../src/yuzu/main.cpp" line="2310"/>
+ <location filename="../../src/yuzu/main.cpp" line="2429"/>
+ <location filename="../../src/yuzu/main.cpp" line="2438"/>
<source>Error Removing Custom Configuration</source>
<translation>移除額外遊戲設定時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2302"/>
+ <location filename="../../src/yuzu/main.cpp" line="2430"/>
<source>A custom configuration for this title does not exist.</source>
<translation>此遊戲沒有額外設定。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2308"/>
+ <location filename="../../src/yuzu/main.cpp" line="2436"/>
<source>Successfully removed the custom game configuration.</source>
<translation>成功移除額外遊戲設定。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2311"/>
+ <location filename="../../src/yuzu/main.cpp" line="2439"/>
<source>Failed to remove the custom game configuration.</source>
<translation>移除額外遊戲設定失敗。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2318"/>
- <location filename="../../src/yuzu/main.cpp" line="2397"/>
+ <location filename="../../src/yuzu/main.cpp" line="2461"/>
+ <location filename="../../src/yuzu/main.cpp" line="2540"/>
<source>RomFS Extraction Failed!</source>
<translation>RomFS 抽取失敗!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2319"/>
+ <location filename="../../src/yuzu/main.cpp" line="2462"/>
<source>There was an error copying the RomFS files or the user cancelled the operation.</source>
<translation>複製 RomFS 檔案時發生錯誤或使用者取消動作。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Full</source>
<translation>全部</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2377"/>
+ <location filename="../../src/yuzu/main.cpp" line="2520"/>
<source>Skeleton</source>
<translation>部分</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2379"/>
+ <location filename="../../src/yuzu/main.cpp" line="2522"/>
<source>Select RomFS Dump Mode</source>
<translation>選擇RomFS傾印模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2380"/>
+ <location filename="../../src/yuzu/main.cpp" line="2523"/>
<source>Please select the how you would like the RomFS dumped.&lt;br&gt;Full will copy all of the files into the new directory while &lt;br&gt;skeleton will only create the directory structure.</source>
<translation>請選擇如何傾印 RomFS。&lt;br&gt;「全部」會複製所有檔案到新資料夾中,而&lt;br&gt;「部分」只會建立資料夾結構。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2398"/>
+ <location filename="../../src/yuzu/main.cpp" line="2541"/>
<source>There is not enough free space at %1 to extract the RomFS. Please free up space or select a different dump directory at Emulation &gt; Configure &gt; System &gt; Filesystem &gt; Dump Root</source>
<translation>%1 沒有足夠的空間用於抽取 RomFS。請確保有足夠的空間或於模擬 &gt; 設定 &gt;系統 &gt;檔案系統 &gt; 傾印根目錄中選擇其他資料夾。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
<source>Extracting RomFS...</source>
<translation>抽取 RomFS 中...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2405"/>
- <location filename="../../src/yuzu/main.cpp" line="2740"/>
+ <location filename="../../src/yuzu/main.cpp" line="2548"/>
+ <location filename="../../src/yuzu/main.cpp" line="2885"/>
<source>Cancel</source>
<translation>取消</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2412"/>
+ <location filename="../../src/yuzu/main.cpp" line="2555"/>
<source>RomFS Extraction Succeeded!</source>
<translation>RomFS 抽取完成!</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2413"/>
+ <location filename="../../src/yuzu/main.cpp" line="2556"/>
<source>The operation completed successfully.</source>
<translation>動作已成功完成</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2457"/>
- <location filename="../../src/yuzu/main.cpp" line="2481"/>
- <location filename="../../src/yuzu/main.cpp" line="2491"/>
- <location filename="../../src/yuzu/main.cpp" line="2573"/>
- <location filename="../../src/yuzu/main.cpp" line="2581"/>
+ <location filename="../../src/yuzu/main.cpp" line="2600"/>
+ <location filename="../../src/yuzu/main.cpp" line="2624"/>
+ <location filename="../../src/yuzu/main.cpp" line="2634"/>
+ <location filename="../../src/yuzu/main.cpp" line="2716"/>
+ <location filename="../../src/yuzu/main.cpp" line="2724"/>
<source>Create Shortcut</source>
<translation>创建快捷方式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2458"/>
+ <location filename="../../src/yuzu/main.cpp" line="2601"/>
<source>This will create a shortcut to the current AppImage. This may not work well if you update. Continue?</source>
<translation>这将为当前的软件镜像创建快捷方式。但在其更新后,快捷方式可能无法正常使用。是否继续?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2482"/>
+ <location filename="../../src/yuzu/main.cpp" line="2625"/>
<source>Cannot create shortcut on desktop. Path &quot;%1&quot; does not exist.</source>
<translation>无法在桌面创建快捷方式。路径“ %1 ”不存在。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2492"/>
+ <location filename="../../src/yuzu/main.cpp" line="2635"/>
<source>Cannot create shortcut in applications menu. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation>无法在应用程序菜单中创建快捷方式。路径“ %1 ”不存在且无法被创建。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2509"/>
+ <location filename="../../src/yuzu/main.cpp" line="2652"/>
<source>Create Icon</source>
<translation>创建图标</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2510"/>
+ <location filename="../../src/yuzu/main.cpp" line="2653"/>
<source>Cannot create icon file. Path &quot;%1&quot; does not exist and cannot be created.</source>
<translation>无法创建图标文件。路径“ %1 ”不存在且无法被创建。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2561"/>
+ <location filename="../../src/yuzu/main.cpp" line="2704"/>
<source>Start %1 with the yuzu Emulator</source>
<translation>使用 yuzu 启动 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2574"/>
+ <location filename="../../src/yuzu/main.cpp" line="2717"/>
<source>Failed to create a shortcut at %1</source>
<translation>在 %1 处创建快捷方式时失败</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2582"/>
+ <location filename="../../src/yuzu/main.cpp" line="2725"/>
<source>Successfully created a shortcut to %1</source>
<translation>成功地在 %1 处创建快捷方式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2603"/>
+ <location filename="../../src/yuzu/main.cpp" line="2746"/>
<source>Error Opening %1</source>
<translation>開啟 %1 時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2612"/>
+ <location filename="../../src/yuzu/main.cpp" line="2755"/>
<source>Select Directory</source>
<translation>選擇資料夾</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2639"/>
+ <location filename="../../src/yuzu/main.cpp" line="2784"/>
<source>Properties</source>
<translation>屬性</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2640"/>
+ <location filename="../../src/yuzu/main.cpp" line="2785"/>
<source>The game properties could not be loaded.</source>
<translation>無法載入遊戲屬性</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2657"/>
+ <location filename="../../src/yuzu/main.cpp" line="2802"/>
<source>Switch Executable (%1);;All Files (*.*)</source>
<comment>%1 is an identifier for the Switch executable file extensions.</comment>
<translation>Switch 執行檔 (%1);;所有檔案 (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2661"/>
+ <location filename="../../src/yuzu/main.cpp" line="2806"/>
<source>Load File</source>
<translation>開啟檔案</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2674"/>
+ <location filename="../../src/yuzu/main.cpp" line="2819"/>
<source>Open Extracted ROM Directory</source>
<translation>開啟已抽取的 ROM 資料夾</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2685"/>
+ <location filename="../../src/yuzu/main.cpp" line="2830"/>
<source>Invalid Directory Selected</source>
<translation>選擇的資料夾無效</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2686"/>
+ <location filename="../../src/yuzu/main.cpp" line="2831"/>
<source>The directory you have selected does not contain a &apos;main&apos; file.</source>
<translation>選擇的資料夾未包含「main」檔案。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2696"/>
+ <location filename="../../src/yuzu/main.cpp" line="2841"/>
<source>Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX Cartridge Image (*.xci)</source>
<translation>可安装的 Switch 檔案 (*.nca *.nsp *.xci);;Nintendo Content Archive (*.nca);;Nintendo Submission Package (*.nsp);;NX 卡帶映像 (*.xci)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2701"/>
+ <location filename="../../src/yuzu/main.cpp" line="2846"/>
<source>Install Files</source>
<translation>安裝檔案</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2748"/>
+ <location filename="../../src/yuzu/main.cpp" line="2892"/>
<source>%n file(s) remaining</source>
<translation><numerusform>剩餘 %n 個檔案</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2750"/>
+ <location filename="../../src/yuzu/main.cpp" line="2894"/>
<source>Installing file &quot;%1&quot;...</source>
<translation>正在安裝檔案「%1」...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2796"/>
- <location filename="../../src/yuzu/main.cpp" line="2810"/>
+ <location filename="../../src/yuzu/main.cpp" line="2940"/>
+ <location filename="../../src/yuzu/main.cpp" line="2954"/>
<source>Install Results</source>
<translation>安裝結果</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2797"/>
+ <location filename="../../src/yuzu/main.cpp" line="2941"/>
<source>To avoid possible conflicts, we discourage users from installing base games to the NAND.
Please, only use this feature to install updates and DLC.</source>
<translation>為了避免潛在的衝突,不建議將遊戲本體安裝至內部儲存空間。
此功能僅用於安裝遊戲更新和 DLC。</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2803"/>
+ <location filename="../../src/yuzu/main.cpp" line="2947"/>
<source>%n file(s) were newly installed
</source>
<translation><numerusform>最近安裝了 %n 個檔案
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2806"/>
+ <location filename="../../src/yuzu/main.cpp" line="2950"/>
<source>%n file(s) were overwritten
</source>
<translation><numerusform>%n 個檔案被取代
</numerusform></translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="2808"/>
+ <location filename="../../src/yuzu/main.cpp" line="2952"/>
<source>%n file(s) failed to install
</source>
<translation><numerusform>%n 個檔案安裝失敗</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2909"/>
+ <location filename="../../src/yuzu/main.cpp" line="3053"/>
<source>System Application</source>
<translation>系統應用程式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2910"/>
+ <location filename="../../src/yuzu/main.cpp" line="3054"/>
<source>System Archive</source>
<translation>系統檔案</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2911"/>
+ <location filename="../../src/yuzu/main.cpp" line="3055"/>
<source>System Application Update</source>
<translation>系統應用程式更新</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2912"/>
+ <location filename="../../src/yuzu/main.cpp" line="3056"/>
<source>Firmware Package (Type A)</source>
<translation>韌體包(A型)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2913"/>
+ <location filename="../../src/yuzu/main.cpp" line="3057"/>
<source>Firmware Package (Type B)</source>
<translation>韌體包(B型)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2914"/>
+ <location filename="../../src/yuzu/main.cpp" line="3058"/>
<source>Game</source>
<translation>遊戲</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2915"/>
+ <location filename="../../src/yuzu/main.cpp" line="3059"/>
<source>Game Update</source>
<translation>遊戲更新</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2916"/>
+ <location filename="../../src/yuzu/main.cpp" line="3060"/>
<source>Game DLC</source>
<translation>遊戲 DLC</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2917"/>
+ <location filename="../../src/yuzu/main.cpp" line="3061"/>
<source>Delta Title</source>
<translation>Delta Title</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2920"/>
+ <location filename="../../src/yuzu/main.cpp" line="3064"/>
<source>Select NCA Install Type...</source>
<translation>選擇 NCA 安裝類型...</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2921"/>
+ <location filename="../../src/yuzu/main.cpp" line="3065"/>
<source>Please select the type of title you would like to install this NCA as:
(In most instances, the default &apos;Game&apos; is fine.)</source>
<translation>請選擇此 NCA 的安裝類型:
(在多數情況下,選擇預設的「遊戲」即可。)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2927"/>
+ <location filename="../../src/yuzu/main.cpp" line="3071"/>
<source>Failed to Install</source>
<translation>安裝失敗</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2928"/>
+ <location filename="../../src/yuzu/main.cpp" line="3072"/>
<source>The title type you selected for the NCA is invalid.</source>
<translation>選擇的 NCA 安裝類型無效。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2963"/>
+ <location filename="../../src/yuzu/main.cpp" line="3107"/>
<source>File not found</source>
<translation>找不到檔案</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="2964"/>
+ <location filename="../../src/yuzu/main.cpp" line="3108"/>
<source>File &quot;%1&quot; not found</source>
<translation>找不到「%1」檔案</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3036"/>
+ <location filename="../../src/yuzu/main.cpp" line="3185"/>
<source>OK</source>
<translation>確定</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3053"/>
- <location filename="../../src/yuzu/main.cpp" line="3072"/>
+ <location filename="../../src/yuzu/main.cpp" line="3211"/>
+ <location filename="../../src/yuzu/main.cpp" line="3230"/>
<source>Hardware requirements not met</source>
<translation>硬件不满足要求</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3054"/>
- <location filename="../../src/yuzu/main.cpp" line="3073"/>
+ <location filename="../../src/yuzu/main.cpp" line="3212"/>
+ <location filename="../../src/yuzu/main.cpp" line="3231"/>
<source>Your system does not meet the recommended hardware requirements. Compatibility reporting has been disabled.</source>
<translation>您的系统不满足运行 yuzu 推荐的推荐配置。兼容性报告已被禁用。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3065"/>
+ <location filename="../../src/yuzu/main.cpp" line="3223"/>
<source>Missing yuzu Account</source>
<translation>未設定 yuzu 帳號</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3066"/>
+ <location filename="../../src/yuzu/main.cpp" line="3224"/>
<source>In order to submit a game compatibility test case, you must link your yuzu account.&lt;br&gt;&lt;br/&gt;To link your yuzu account, go to Emulation &amp;gt; Configuration &amp;gt; Web.</source>
<translation>為了上傳相容性測試結果,您必須登入 yuzu 帳號。&lt;br&gt;&lt;br/&gt;欲登入 yuzu 帳號請至模擬 &amp;gt; 設定 &amp;gt; 網路。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3081"/>
+ <location filename="../../src/yuzu/main.cpp" line="3239"/>
<source>Error opening URL</source>
<translation>開啟 URL 時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3082"/>
+ <location filename="../../src/yuzu/main.cpp" line="3240"/>
<source>Unable to open the URL &quot;%1&quot;.</source>
<translation>無法開啟 URL:「%1」。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3384"/>
+ <location filename="../../src/yuzu/main.cpp" line="3543"/>
<source>TAS Recording</source>
<translation>TAS 錄製</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3385"/>
+ <location filename="../../src/yuzu/main.cpp" line="3544"/>
<source>Overwrite file of player 1?</source>
<translation>覆寫玩家 1 的檔案?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3411"/>
+ <location filename="../../src/yuzu/main.cpp" line="3570"/>
<source>Invalid config detected</source>
<translation>偵測到無效設定</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3412"/>
+ <location filename="../../src/yuzu/main.cpp" line="3571"/>
<source>Handheld controller can&apos;t be used on docked mode. Pro controller will be selected.</source>
<translation>掌機手把無法在主機模式中使用。將會選擇 Pro 手把。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>Amiibo</source>
<translation>Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3553"/>
- <location filename="../../src/yuzu/main.cpp" line="3581"/>
+ <location filename="../../src/yuzu/main.cpp" line="3741"/>
+ <location filename="../../src/yuzu/main.cpp" line="3769"/>
<source>The current amiibo has been removed</source>
<translation>当前的 Amiibo 已被移除。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
<source>Error</source>
<translation>错误</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3558"/>
- <location filename="../../src/yuzu/main.cpp" line="3593"/>
+ <location filename="../../src/yuzu/main.cpp" line="3746"/>
+ <location filename="../../src/yuzu/main.cpp" line="3781"/>
<source>The current game is not looking for amiibos</source>
<translation>当前游戏并没有在寻找 Amiibos</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3564"/>
+ <location filename="../../src/yuzu/main.cpp" line="3752"/>
<source>Amiibo File (%1);; All Files (*.*)</source>
<translation>Amiibo 檔案 (%1);; 所有檔案 (*.*)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3565"/>
+ <location filename="../../src/yuzu/main.cpp" line="3753"/>
<source>Load Amiibo</source>
<translation>開啟 Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3577"/>
+ <location filename="../../src/yuzu/main.cpp" line="3765"/>
<source>Error loading Amiibo data</source>
<translation>載入 Amiibo 資料時發生錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3587"/>
+ <location filename="../../src/yuzu/main.cpp" line="3775"/>
<source>The selected file is not a valid amiibo</source>
<translation>选择的文件并不是有效的 amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3590"/>
+ <location filename="../../src/yuzu/main.cpp" line="3778"/>
<source>The selected file is already on use</source>
<translation>选择的文件已在使用中</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3596"/>
+ <location filename="../../src/yuzu/main.cpp" line="3784"/>
<source>An unknown error occurred</source>
<translation>发生了未知错误</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3648"/>
+ <location filename="../../src/yuzu/main.cpp" line="3836"/>
<source>Capture Screenshot</source>
<translation>截圖</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3649"/>
+ <location filename="../../src/yuzu/main.cpp" line="3837"/>
<source>PNG Image (*.png)</source>
<translation>PNG 圖片 (*.png)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3715"/>
+ <location filename="../../src/yuzu/main.cpp" line="3920"/>
<source>TAS state: Running %1/%2</source>
<translation>TAS 狀態:正在執行 %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3717"/>
+ <location filename="../../src/yuzu/main.cpp" line="3924"/>
<source>TAS state: Recording %1</source>
<translation>TAS 狀態:正在錄製 %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3719"/>
+ <location filename="../../src/yuzu/main.cpp" line="3926"/>
<source>TAS state: Idle %1/%2</source>
<translation>TAS 狀態:閒置 %1/%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3721"/>
+ <location filename="../../src/yuzu/main.cpp" line="3930"/>
<source>TAS State: Invalid</source>
<translation>TAS 狀態:無效</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Stop Running</source>
<translation>&amp;停止執行</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3735"/>
+ <location filename="../../src/yuzu/main.cpp" line="3944"/>
<source>&amp;Start</source>
<translation>開始(&amp;S)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>Stop R&amp;ecording</source>
<translation>停止錄製</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3736"/>
+ <location filename="../../src/yuzu/main.cpp" line="3945"/>
<source>R&amp;ecord</source>
<translation>錄製 (&amp;E)</translation>
</message>
<message numerus="yes">
- <location filename="../../src/yuzu/main.cpp" line="3760"/>
+ <location filename="../../src/yuzu/main.cpp" line="3969"/>
<source>Building: %n shader(s)</source>
<translation><numerusform>正在編譯 %n 個著色器檔案</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3769"/>
+ <location filename="../../src/yuzu/main.cpp" line="3978"/>
<source>Scale: %1x</source>
<comment>%1 is the resolution scaling factor</comment>
<translation>縮放比例:%1x</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3772"/>
+ <location filename="../../src/yuzu/main.cpp" line="3981"/>
<source>Speed: %1% / %2%</source>
<translation>速度:%1% / %2%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3776"/>
+ <location filename="../../src/yuzu/main.cpp" line="3985"/>
<source>Speed: %1%</source>
<translation>速度:%1%</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3780"/>
+ <location filename="../../src/yuzu/main.cpp" line="3989"/>
<source>Game: %1 FPS (Unlocked)</source>
<translation>遊戲: %1 FPS(未限制)</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3783"/>
+ <location filename="../../src/yuzu/main.cpp" line="3992"/>
<source>Game: %1 FPS</source>
<translation>遊戲:%1 FPS</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3785"/>
+ <location filename="../../src/yuzu/main.cpp" line="3994"/>
<source>Frame: %1 ms</source>
<translation>畫格延遲:%1 ms</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3796"/>
+ <location filename="../../src/yuzu/main.cpp" line="4005"/>
<source>GPU NORMAL</source>
<translation>GPU 一般效能</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3801"/>
+ <location filename="../../src/yuzu/main.cpp" line="4010"/>
<source>GPU HIGH</source>
<translation>GPU 高效能</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3806"/>
+ <location filename="../../src/yuzu/main.cpp" line="4015"/>
<source>GPU EXTREME</source>
<translation>GPU 最高效能</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3811"/>
+ <location filename="../../src/yuzu/main.cpp" line="4020"/>
<source>GPU ERROR</source>
<translation>GPU 錯誤</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>DOCKED</source>
- <translation>主机模式</translation>
+ <translation>主機模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3821"/>
+ <location filename="../../src/yuzu/main.cpp" line="4030"/>
<source>HANDHELD</source>
- <translation>掌机模式</translation>
+ <translation>掌機模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3828"/>
+ <location filename="../../src/yuzu/main.cpp" line="4037"/>
<source>OPENGL</source>
<translation>OPENGL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3831"/>
+ <location filename="../../src/yuzu/main.cpp" line="4040"/>
<source>VULKAN</source>
<translation>VULKAN</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3834"/>
+ <location filename="../../src/yuzu/main.cpp" line="4043"/>
<source>NULL</source>
<translation>NULL</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3843"/>
+ <location filename="../../src/yuzu/main.cpp" line="4052"/>
<source>NEAREST</source>
<translation>最近鄰域</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3846"/>
- <location filename="../../src/yuzu/main.cpp" line="3861"/>
+ <location filename="../../src/yuzu/main.cpp" line="4055"/>
+ <location filename="../../src/yuzu/main.cpp" line="4070"/>
<source>BILINEAR</source>
<translation>雙線性</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3849"/>
+ <location filename="../../src/yuzu/main.cpp" line="4058"/>
<source>BICUBIC</source>
<translation>雙三次</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3852"/>
+ <location filename="../../src/yuzu/main.cpp" line="4061"/>
<source>GAUSSIAN</source>
<translation>高斯</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3855"/>
+ <location filename="../../src/yuzu/main.cpp" line="4064"/>
<source>SCALEFORCE</source>
<translation>強制縮放</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3858"/>
+ <location filename="../../src/yuzu/main.cpp" line="4067"/>
<source>FSR</source>
<translation>FSR</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3870"/>
- <location filename="../../src/yuzu/main.cpp" line="3879"/>
+ <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4088"/>
<source>NO AA</source>
<translation>抗鋸齒關</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3873"/>
+ <location filename="../../src/yuzu/main.cpp" line="4082"/>
<source>FXAA</source>
<translation>FXAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3876"/>
+ <location filename="../../src/yuzu/main.cpp" line="4085"/>
<source>SMAA</source>
<translation>SMAA</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3960"/>
+ <location filename="../../src/yuzu/main.cpp" line="4098"/>
+ <source>VOLUME: MUTE</source>
+ <translation>音量: 静音</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4101"/>
+ <source>VOLUME: %1%</source>
+ <comment>Volume percentage (e.g. 50%)</comment>
+ <translation>音量: %1%</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4182"/>
<source>Confirm Key Rederivation</source>
<translation>確認重新產生金鑰</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3961"/>
+ <location filename="../../src/yuzu/main.cpp" line="4183"/>
<source>You are about to force rederive all of your keys.
If you do not know what this means or what you are doing,
this is a potentially destructive action.
@@ -5376,37 +5595,37 @@ This will delete your autogenerated key files and re-run the key derivation modu
這將刪除您自動產生的金鑰檔案並重新執行產生金鑰模組。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3993"/>
+ <location filename="../../src/yuzu/main.cpp" line="4217"/>
<source>Missing fuses</source>
<translation>遺失項目</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3996"/>
+ <location filename="../../src/yuzu/main.cpp" line="4220"/>
<source> - Missing BOOT0</source>
<translation>- 遺失 BOOT0</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="3999"/>
+ <location filename="../../src/yuzu/main.cpp" line="4223"/>
<source> - Missing BCPKG2-1-Normal-Main</source>
<translation> - 遺失 BCPKG2-1-Normal-Main</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4002"/>
+ <location filename="../../src/yuzu/main.cpp" line="4226"/>
<source> - Missing PRODINFO</source>
<translation>- 遺失 PRODINFO</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4006"/>
+ <location filename="../../src/yuzu/main.cpp" line="4231"/>
<source>Derivation Components Missing</source>
<translation>遺失產生元件</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4007"/>
+ <location filename="../../src/yuzu/main.cpp" line="4232"/>
<source>Encryption keys are missing. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)&lt;/small&gt;</source>
<translation>缺少加密金鑰。 &lt;br&gt;請按照&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;《Yuzu快速入門指南》來取得所有金鑰、韌體、遊戲&lt;br&gt;&lt;br&gt;&lt;small&gt;(%1)。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4016"/>
+ <location filename="../../src/yuzu/main.cpp" line="4241"/>
<source>Deriving keys...
This may take up to a minute depending
on your system&apos;s performance.</source>
@@ -5415,39 +5634,49 @@ on your system&apos;s performance.</source>
您的系統效能。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4018"/>
+ <location filename="../../src/yuzu/main.cpp" line="4243"/>
<source>Deriving Keys</source>
<translation>產生金鑰</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4063"/>
+ <location filename="../../src/yuzu/main.cpp" line="4260"/>
+ <source>System Archive Decryption Failed</source>
+ <translation>系统固件解密失败</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4261"/>
+ <source>Encryption keys failed to decrypt firmware. &lt;br&gt;Please follow &lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;the yuzu quickstart guide&lt;/a&gt; to get all your keys, firmware and games.</source>
+ <translation>当前密钥无法解密系统固件。&lt;br&gt;请查看&lt;a href=&apos;https://yuzu-emu.org/help/quickstart/&apos;&gt;yuzu 快速导航&lt;/a&gt;以获得你的密钥、固件和游戏。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/main.cpp" line="4317"/>
<source>Select RomFS Dump Target</source>
<translation>選擇 RomFS 傾印目標</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4064"/>
+ <location filename="../../src/yuzu/main.cpp" line="4318"/>
<source>Please select which RomFS you would like to dump.</source>
<translation>請選擇希望傾印的 RomFS。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4079"/>
+ <location filename="../../src/yuzu/main.cpp" line="4333"/>
<source>Are you sure you want to close yuzu?</source>
<translation>您確定要關閉 yuzu 嗎?</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4080"/>
- <location filename="../../src/yuzu/main.cpp" line="4175"/>
- <location filename="../../src/yuzu/main.cpp" line="4188"/>
+ <location filename="../../src/yuzu/main.cpp" line="4334"/>
+ <location filename="../../src/yuzu/main.cpp" line="4429"/>
+ <location filename="../../src/yuzu/main.cpp" line="4442"/>
<source>yuzu</source>
<translation>yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4176"/>
+ <location filename="../../src/yuzu/main.cpp" line="4430"/>
<source>Are you sure you want to stop the emulation? Any unsaved progress will be lost.</source>
<translation>您確定要停止模擬嗎?未儲存的進度將會遺失。</translation>
</message>
<message>
- <location filename="../../src/yuzu/main.cpp" line="4185"/>
+ <location filename="../../src/yuzu/main.cpp" line="4439"/>
<source>The currently running application has requested yuzu to not exit.
Would you like to bypass this and exit anyway?</source>
@@ -5459,44 +5688,44 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GRenderWindow</name>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="953"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="970"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
<source>OpenGL not available!</source>
<translation>無法使用 OpenGL 模式!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="954"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="955"/>
<source>OpenGL shared contexts are not supported.</source>
<translation>不支持 OpenGL 共享上下文。</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="971"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="972"/>
<source>yuzu has not been compiled with OpenGL support.</source>
<translation>yuzu 未以支援 OpenGL 的方式編譯。</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="995"/>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1015"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
<source>Error while initializing OpenGL!</source>
<translation>初始化 OpenGL 時發生錯誤!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="996"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="997"/>
<source>Your GPU may not support OpenGL, or you do not have the latest graphics driver.</source>
<translation>您的 GPU 可能不支援 OpenGL,或是未安裝最新的圖形驅動程式</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1005"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
<source>Error while initializing OpenGL 4.6!</source>
<translation>初始化 OpenGL 4.6 時發生錯誤!</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1006"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1007"/>
<source>Your GPU may not support OpenGL 4.6, or you do not have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1</source>
<translation>您的 GPU 可能不支援 OpenGL 4.6,或是未安裝最新的圖形驅動程式&lt;br&gt;&lt;br&gt;GL 渲染器:&lt;br&gt;%1</translation>
</message>
<message>
- <location filename="../../src/yuzu/bootmanager.cpp" line="1016"/>
+ <location filename="../../src/yuzu/bootmanager.cpp" line="1017"/>
<source>Your GPU may not support one or more required OpenGL extensions. Please ensure you have the latest graphics driver.&lt;br&gt;&lt;br&gt;GL Renderer:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;Unsupported extensions:&lt;br&gt;%2</source>
<translation>您的 GPU 可能不支援某些必需的 OpenGL 功能。請確保您已安裝最新的圖形驅動程式。&lt;br&gt;&lt;br&gt;GL 渲染器:&lt;br&gt;%1&lt;br&gt;&lt;br&gt;不支援的功能:&lt;br&gt;%2</translation>
</message>
@@ -5555,117 +5784,122 @@ Would you like to bypass this and exit anyway?</source>
</message>
<message>
<location filename="../../src/yuzu/game_list.cpp" line="547"/>
+ <source>Remove Cache Storage</source>
+ <translation>移除缓存</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/game_list.cpp" line="548"/>
<source>Remove OpenGL Pipeline Cache</source>
<translation>刪除 OpenGL 著色器管線快取</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="548"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="549"/>
<source>Remove Vulkan Pipeline Cache</source>
<translation>刪除 Vulkan 著色器管線快取</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="550"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="551"/>
<source>Remove All Pipeline Caches</source>
<translation>刪除所有著色器管線快取</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="551"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<source>Remove All Installed Contents</source>
<translation>移除所有安裝項目</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="552"/>
<location filename="../../src/yuzu/game_list.cpp" line="553"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="554"/>
<source>Dump RomFS</source>
<translation>傾印 RomFS</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="554"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="555"/>
<source>Dump RomFS to SDMC</source>
<translation>傾印 RomFS 到 SDMC</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="555"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="556"/>
<source>Copy Title ID to Clipboard</source>
<translation>複製遊戲 ID 到剪貼簿</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="556"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="557"/>
<source>Navigate to GameDB entry</source>
<translation>檢視遊戲相容性報告</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="558"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="559"/>
<source>Create Shortcut</source>
<translation>创建快捷方式</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="559"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="560"/>
<source>Add to Desktop</source>
<translation>添加到桌面</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="561"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="562"/>
<source>Add to Applications Menu</source>
<translation>添加到应用程序菜单</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="564"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="565"/>
<source>Properties</source>
<translation>屬性</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="644"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="648"/>
<source>Scan Subfolders</source>
<translation>包含子資料夾</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="645"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="649"/>
<source>Remove Game Directory</source>
<translation>移除遊戲資料夾</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="664"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="668"/>
<source>▲ Move Up</source>
<translation>▲ 向上移動</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="665"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="669"/>
<source>▼ Move Down</source>
<translation>▼ 向下移動</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="666"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="670"/>
<source>Open Directory Location</source>
<translation>開啟資料夾位置</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="711"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="715"/>
<source>Clear</source>
<translation>清除</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="775"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="779"/>
<source>Name</source>
<translation>名稱</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="776"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="780"/>
<source>Compatibility</source>
<translation>相容性</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="777"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="781"/>
<source>Add-ons</source>
<translation>延伸模組</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="778"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="782"/>
<source>File type</source>
<translation>檔案格式</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="779"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="783"/>
<source>Size</source>
<translation>大小</translation>
</message>
@@ -5736,7 +5970,7 @@ Would you like to bypass this and exit anyway?</source>
<context>
<name>GameListPlaceholder</name>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="951"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="956"/>
<source>Double-click to add a new folder to the game list</source>
<translation>連點兩下以新增資料夾至遊戲清單</translation>
</message>
@@ -5749,12 +5983,12 @@ Would you like to bypass this and exit anyway?</source>
<translation><numerusform>%1 / %n 個結果</numerusform></translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="791"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="795"/>
<source>Filter:</source>
<translation>搜尋:</translation>
</message>
<message>
- <location filename="../../src/yuzu/game_list.cpp" line="792"/>
+ <location filename="../../src/yuzu/game_list.cpp" line="796"/>
<source>Enter pattern to filter</source>
<translation>輸入文字以搜尋</translation>
</message>
@@ -5845,12 +6079,11 @@ Debug Message: </source>
<context>
<name>Hotkeys</name>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<source>Audio Mute/Unmute</source>
<translation>静音/关闭静音</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="73"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
@@ -5872,111 +6105,112 @@ Debug Message: </source>
<location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Main Window</source>
<translation>主窗口</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
<source>Audio Volume Down</source>
<translation>调低音量</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
<source>Audio Volume Up</source>
<translation>调高音量</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
<source>Capture Screenshot</source>
<translation>截圖</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
<source>Change Adapting Filter</source>
<translation>更改窗口滤镜</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
<source>Change Docked Mode</source>
<translation>更改运行模式</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
<source>Change GPU Accuracy</source>
<translation>更改 GPU 精度</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
<source>Continue/Pause Emulation</source>
<translation>继续/暂停模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
<source>Exit Fullscreen</source>
<translation>退出全屏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
<source>Exit yuzu</source>
<translation>退出 yuzu</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
<source>Fullscreen</source>
<translation>全屏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
<source>Load File</source>
<translation>開啟檔案</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
<source>Load/Remove Amiibo</source>
<translation>加载/移除 Amiibo</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
<source>Restart Emulation</source>
<translation>重新启动模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
<source>Stop Emulation</source>
<translation>停止模拟</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
<source>TAS Record</source>
<translation>TAS 录制</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
<source>TAS Reset</source>
<translation>重设 TAS</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
<source>TAS Start/Stop</source>
<translation>TAS 开始/停止</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
<source>Toggle Filter Bar</source>
<translation>切换搜索栏</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
<source>Toggle Framerate Limit</source>
<translation>切换帧率限制</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
<source>Toggle Mouse Panning</source>
<translation>切换鼠标平移</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/config.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/config.cpp" line="95"/>
<source>Toggle Status Bar</source>
<translation>切换状态栏</translation>
</message>
@@ -5999,7 +6233,7 @@ Debug Message: </source>
<translation>安裝</translation>
</message>
<message>
- <location filename="../../src/yuzu/install_dialog.cpp" line="50"/>
+ <location filename="../../src/yuzu/install_dialog.cpp" line="49"/>
<source>Install Files to NAND</source>
<translation>安裝檔案至內部儲存空間</translation>
</message>
@@ -6007,7 +6241,7 @@ Debug Message: </source>
<context>
<name>LimitableInputDialog</name>
<message>
- <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="61"/>
+ <location filename="../../src/yuzu/util/limitable_input_dialog.cpp" line="59"/>
<source>The text can't contain any of the following characters:
%1</source>
<translation>文字中不能包含以下字元:%1</translation>
@@ -6081,51 +6315,56 @@ Debug Message: </source>
</message>
<message>
<location filename="../../src/yuzu/multiplayer/lobby.ui" line="83"/>
+ <source>Hide Empty Rooms</source>
+ <translation>隐藏空房间</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="90"/>
<source>Hide Full Rooms</source>
<translation>隐藏满员的房间</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.ui" line="103"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.ui" line="110"/>
<source>Refresh Lobby</source>
<translation>刷新游戏大厅</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password Required to Join</source>
<translation>加入此房间需要密码</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="112"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="113"/>
<source>Password:</source>
<translation>密码:</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="215"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
<source>Players</source>
<translation>玩家</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="216"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
<source>Room Name</source>
<translation>房间名称</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="217"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
<source>Preferred Game</source>
<translation>首选游戏</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="218"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="219"/>
<source>Host</source>
<translation>管理</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="225"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="226"/>
<source>Refreshing</source>
<translation>刷新中</translation>
</message>
<message>
- <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="282"/>
+ <location filename="../../src/yuzu/multiplayer/lobby.cpp" line="283"/>
<source>Refresh List</source>
<translation>刷新列表</translation>
</message>
@@ -6200,7 +6439,7 @@ Debug Message: </source>
<message>
<location filename="../../src/yuzu/main.ui" line="127"/>
<source>&amp;Multiplayer</source>
- <translation>多人游戏 (&amp;M)</translation>
+ <translation>多人遊戲 (&amp;M)</translation>
</message>
<message>
<location filename="../../src/yuzu/main.ui" line="138"/>
@@ -6663,7 +6902,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>PlayerControlPreview</name>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1575"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player_widget.cpp" line="1630"/>
<source>START/PAUSE</source>
<translation>開始 / 暫停</translation>
</message>
@@ -6712,31 +6951,31 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="21"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="30"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="41"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="42"/>
<source>Shift</source>
<translation>Shift</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="23"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="32"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="43"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="44"/>
<source>Ctrl</source>
<translation>Ctrl</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="25"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="34"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="45"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="36"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="46"/>
<source>Alt</source>
<translation>Alt</translation>
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="35"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="318"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="384"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="159"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="226"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="389"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="455"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="180"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="248"/>
<source>[not set]</source>
<translation>[未設定]</translation>
</message>
@@ -6747,14 +6986,14 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="54"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="407"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="411"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="415"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="419"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="249"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="253"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="257"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="261"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="478"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="482"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="486"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="490"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="271"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="275"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="279"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="283"/>
<source>Axis %1%2</source>
<translation>Axis %1%2</translation>
</message>
@@ -6765,264 +7004,322 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<location filename="../../src/yuzu/configuration/configure_touch_from_button.cpp" line="66"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="378"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="392"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="422"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="234"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="264"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="449"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="463"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="493"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="242"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="256"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="286"/>
<source>[unknown]</source>
<translation>[未知]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="45"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="56"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="124"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="145"/>
<source>Left</source>
<translation>左</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="47"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="58"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="148"/>
<source>Right</source>
<translation>右</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="49"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="60"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="154"/>
<source>Down</source>
<translation>下</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="51"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="62"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="130"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="151"/>
<source>Up</source>
<translation>上</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="53"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="64"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="65"/>
<source>Z</source>
<translation>Z</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="55"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="66"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="67"/>
<source>R</source>
<translation>R</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="57"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="68"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="69"/>
<source>L</source>
<translation>L</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="59"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="70"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="83"/>
<source>A</source>
<translation>A</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="61"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="72"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="85"/>
<source>B</source>
<translation>B</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="63"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="74"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="87"/>
<source>X</source>
<translation>X</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="65"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="76"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="89"/>
<source>Y</source>
<translation>Y</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="67"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="78"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="91"/>
<source>Start</source>
<translation>開始</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="69"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="80"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="101"/>
<source>L1</source>
<translation>L1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="71"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="82"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="103"/>
<source>L2</source>
<translation>L2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="73"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="84"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="105"/>
<source>L3</source>
<translation>L3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="75"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="86"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="107"/>
<source>R1</source>
<translation>R1</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="77"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="88"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="109"/>
<source>R2</source>
<translation>R2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="79"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="90"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="111"/>
<source>R3</source>
<translation>R3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="81"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="92"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="113"/>
<source>Circle</source>
<translation>○</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="83"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="94"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="115"/>
<source>Cross</source>
<translation>╳</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="85"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="96"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="117"/>
<source>Square</source>
<translation>□</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="87"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="98"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="119"/>
<source>Triangle</source>
<translation>Δ</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="89"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="100"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="121"/>
<source>Share</source>
<translation>分享</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="91"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="102"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="123"/>
<source>Options</source>
<translation>選項</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="93"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="118"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="95"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="139"/>
<source>[undefined]</source>
<translation>[未指定]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="328"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="399"/>
<source>%1%2</source>
<translation>%1%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="332"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="174"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="403"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="196"/>
<source>[invalid]</source>
<translation>[無效]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="342"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="366"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="184"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="208"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="413"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="437"/>
<source>%1%2Hat %3</source>
<translation>%1%2Hat 控制器 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="346"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="369"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="372"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="188"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="211"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="214"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="417"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="440"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="443"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="236"/>
<source>%1%2Axis %3</source>
<translation>%1%2軸 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="352"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="194"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="423"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="216"/>
<source>%1%2Axis %3,%4,%5</source>
<translation>%1%2軸 %3,%4,%5</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="356"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="198"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="427"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="220"/>
<source>%1%2Motion %3</source>
<translation>%1%2體感 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="360"/>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="375"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="202"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="217"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="431"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="446"/>
<source>%1%2Button %3</source>
<translation>%1%2按鈕 %3</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="402"/>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="244"/>
+ <location filename="../../src/yuzu/configuration/configure_ringcon.cpp" line="473"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="266"/>
<source>[unused]</source>
<translation>[未使用]</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="104"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="71"/>
+ <source>ZR</source>
+ <translation>ZR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="73"/>
+ <source>ZL</source>
+ <translation>ZL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="75"/>
+ <source>SR</source>
+ <translation>SR</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="77"/>
+ <source>SL</source>
+ <translation>SL</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="79"/>
+ <source>Stick L</source>
+ <translation>左摇杆</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="81"/>
+ <source>Stick R</source>
+ <translation>右摇杆</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="93"/>
+ <source>Plus</source>
+ <translation>+</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="95"/>
+ <source>Minus</source>
+ <translation>-</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="97"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="125"/>
<source>Home</source>
<translation>HOME</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="106"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="99"/>
+ <source>Capture</source>
+ <translation>截圖</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="127"/>
<source>Touch</source>
<translation>觸控</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="108"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="129"/>
<source>Wheel</source>
<comment>Indicates the mouse wheel</comment>
<translation>滑鼠滾輪</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="110"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="131"/>
<source>Backward</source>
<translation>後退</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="112"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="133"/>
<source>Forward</source>
<translation>前進</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="114"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="135"/>
<source>Task</source>
<translation>任務鍵</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="116"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="137"/>
<source>Extra</source>
<translation>額外按鍵</translation>
</message>
<message>
- <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="170"/>
- <source>%1%2%3</source>
- <translation>%1%2%3</translation>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="192"/>
+ <source>%1%2%3%4</source>
+ <translation>%1%2%3%4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="206"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="230"/>
+ <source>%1%2%3Hat %4</source>
+ <translation>%1%2%3 控制器 %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="210"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="233"/>
+ <source>%1%2%3Axis %4</source>
+ <translation>%1%2%3轴 %4</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="224"/>
+ <location filename="../../src/yuzu/configuration/configure_input_player.cpp" line="239"/>
+ <source>%1%2%3Button %4</source>
+ <translation>%1%2%3 按键 %4</translation>
</message>
</context>
<context>
@@ -7391,28 +7688,28 @@ p, li { white-space: pre-wrap; }
<context>
<name>QtErrorDisplay</name>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="20"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="33"/>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="48"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="27"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="40"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="55"/>
<source>Error Code: %1-%2 (0x%3)</source>
<translation>錯誤碼: %1-%2 (0x%3)</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="24"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="31"/>
<source>An error has occurred.
Please try again or contact the developer of the software.</source>
<translation>發生錯誤。
請再試一次或聯絡開發者。</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="37"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="44"/>
<source>An error occurred on %1 at %2.
Please try again or contact the developer of the software.</source>
<translation>在 %2 處的 %1 上發生錯誤。
請再試一次或聯絡開發者。</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_error.cpp" line="52"/>
+ <location filename="../../src/yuzu/applets/qt_error.cpp" line="59"/>
<source>An error has occurred.
%1
@@ -7436,20 +7733,81 @@ Please try again or contact the developer of the software.</source>
%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="53"/>
- <source>Select a user:</source>
- <translation>選擇一位使用者:</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="83"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="85"/>
<source>Users</source>
<translation>使用者</translation>
</message>
<message>
- <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="123"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="167"/>
+ <source>Profile Creator</source>
+ <translation>创建用户</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="170"/>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="188"/>
<source>Profile Selector</source>
<translation>設定檔選擇</translation>
</message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="173"/>
+ <source>Profile Icon Editor</source>
+ <translation>修改用户图像</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="176"/>
+ <source>Profile Nickname Editor</source>
+ <translation>修改用户昵称</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="198"/>
+ <source>Who will receive the points?</source>
+ <translation>谁将获得黄金点数?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="201"/>
+ <source>Who is using Nintendo eShop?</source>
+ <translation>谁正在使用任天堂 eShop?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="204"/>
+ <source>Who is making this purchase?</source>
+ <translation>是谁购买了这个?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="207"/>
+ <source>Who is posting?</source>
+ <translation>谁在发帖?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="210"/>
+ <source>Select a user to link to a Nintendo Account.</source>
+ <translation>选择要链接到任天堂账户的用户。</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="213"/>
+ <source>Change settings for which user?</source>
+ <translation>要更改哪个用户的设置?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="216"/>
+ <source>Format data for which user?</source>
+ <translation>要为哪个用户格式化数据?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="219"/>
+ <source>Which user will be transferred to another console?</source>
+ <translation>哪个用户将被转移到另一个控制台?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="222"/>
+ <source>Send save data for which user?</source>
+ <translation>要为哪个用户发送保存数据?</translation>
+ </message>
+ <message>
+ <location filename="../../src/yuzu/applets/qt_profile_select.cpp" line="226"/>
+ <source>Select a user:</source>
+ <translation>選擇一位使用者:</translation>
+ </message>
</context>
<context>
<name>QtSoftwareKeyboardDialog</name>
@@ -7499,51 +7857,20 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeCallstack</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="147"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="120"/>
<source>Call stack</source>
<translation>Call stack</translation>
</message>
</context>
<context>
- <name>WaitTreeMutexInfo</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="126"/>
- <source>waiting for mutex 0x%1</source>
- <translation>waiting for mutex 0x%1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="133"/>
- <source>has waiters: %1</source>
- <translation>has waiters: %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="135"/>
- <source>owner handle: 0x%1</source>
- <translation>owner handle: 0x%1</translation>
- </message>
-</context>
-<context>
- <name>WaitTreeObjectList</name>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
- <source>waiting for all objects</source>
- <translation>waiting for all objects</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="229"/>
- <source>waiting for one of the following objects</source>
- <translation>waiting for one of the following objects</translation>
- </message>
-</context>
-<context>
<name>WaitTreeSynchronizationObject</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="185"/>
- <source>[%1] %2 %3</source>
- <translation>[%1] %2 %3</translation>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="158"/>
+ <source>[%1] %2</source>
+ <translation>[%1] %2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="212"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="184"/>
<source>waited by no thread</source>
<translation>waited by no thread</translation>
</message>
@@ -7551,120 +7878,110 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeThread</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="250"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="202"/>
<source>runnable</source>
<translation>runnable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="252"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="204"/>
<source>paused</source>
<translation>paused</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="258"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="210"/>
<source>sleeping</source>
<translation>sleeping</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="261"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="213"/>
<source>waiting for IPC reply</source>
<translation>waiting for IPC reply</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="264"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="216"/>
<source>waiting for objects</source>
<translation>waiting for objects</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="267"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="219"/>
<source>waiting for condition variable</source>
<translation>waiting for condition variable</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="270"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="222"/>
<source>waiting for address arbiter</source>
<translation>waiting for address arbiter</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="273"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="225"/>
<source>waiting for suspend resume</source>
<translation>waiting for suspend resume</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="276"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="228"/>
<source>waiting</source>
<translation>waiting</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="281"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="233"/>
<source>initialized</source>
<translation>initialized</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="284"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="236"/>
<source>terminated</source>
<translation>terminated</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="287"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="239"/>
<source>unknown</source>
<translation>unknown</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="292"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="244"/>
<source> PC = 0x%1 LR = 0x%2</source>
<translation>PC = 0x%1 LR = 0x%2</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="342"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="294"/>
<source>ideal</source>
<translation>ideal</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="345"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="297"/>
<source>core %1</source>
<translation>core %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="349"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="301"/>
<source>processor = %1</source>
<translation>processor = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="351"/>
- <source>ideal core = %1</source>
- <translation>ideal core = %1</translation>
- </message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="353"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="303"/>
<source>affinity mask = %1</source>
<translation>affinity mask = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="354"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="304"/>
<source>thread id = %1</source>
<translation>thread id = %1</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="355"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="305"/>
<source>priority = %1(current) / %2(normal)</source>
<translation>priority = %1(current) / %2(normal)</translation>
</message>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="359"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="309"/>
<source>last running ticks = %1</source>
<translation>last running ticks = %1</translation>
</message>
- <message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="367"/>
- <source>not waiting for mutex</source>
- <translation>未等待 mutex</translation>
- </message>
</context>
<context>
<name>WaitTreeThreadList</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="391"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="325"/>
<source>waited by thread</source>
<translation>waited by thread</translation>
</message>
@@ -7672,7 +7989,7 @@ p, li { white-space: pre-wrap; }
<context>
<name>WaitTreeWidget</name>
<message>
- <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="465"/>
+ <location filename="../../src/yuzu/debugger/wait_tree.cpp" line="399"/>
<source>&amp;Wait Tree</source>
<translation>&amp;Wait Tree</translation>
</message>
diff --git a/dist/yuzu.manifest b/dist/yuzu.manifest
index 10a8df9b5..f2c8639a2 100644
--- a/dist/yuzu.manifest
+++ b/dist/yuzu.manifest
@@ -36,12 +36,6 @@ SPDX-License-Identifier: GPL-2.0-or-later
<application>
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
- <!-- Windows 8.1 -->
- <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
- <!-- Windows 8 -->
- <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
- <!-- Windows 7 -->
- <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
</compatibility>
<trustInfo
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 94dd8bb62..0184289eb 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -8,15 +8,21 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# Disable tests in all externals supporting the standard option name
set(BUILD_TESTING OFF)
+# Build only static externals
+set(BUILD_SHARED_LIBS OFF)
+
+# Skip install rules for all externals
+set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL ON)
+
# xbyak
if ((ARCHITECTURE_x86 OR ARCHITECTURE_x86_64) AND NOT TARGET xbyak::xbyak)
- add_subdirectory(xbyak EXCLUDE_FROM_ALL)
+ add_subdirectory(xbyak)
endif()
# Dynarmic
if ((ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64) AND NOT TARGET dynarmic::dynarmic)
set(DYNARMIC_IGNORE_ASSERTS ON)
- add_subdirectory(dynarmic EXCLUDE_FROM_ALL)
+ add_subdirectory(dynarmic)
add_library(dynarmic::dynarmic ALIAS dynarmic)
endif()
@@ -34,7 +40,7 @@ if (NOT TARGET inih::INIReader)
endif()
# mbedtls
-add_subdirectory(mbedtls EXCLUDE_FROM_ALL)
+add_subdirectory(mbedtls)
target_include_directories(mbedtls PUBLIC ./mbedtls/include)
# MicroProfile
@@ -48,7 +54,7 @@ endif()
# libusb
if (ENABLE_LIBUSB AND NOT TARGET libusb::usb)
- add_subdirectory(libusb EXCLUDE_FROM_ALL)
+ add_subdirectory(libusb)
endif()
# SDL2
@@ -57,8 +63,9 @@ if (YUZU_USE_EXTERNAL_SDL2)
# Yuzu itself needs: Atomic Audio Events Joystick Haptic Sensor Threads Timers
# Since 2.0.18 Atomic+Threads required for HIDAPI/libusb (see https://github.com/libsdl-org/SDL/issues/5095)
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
+ # CPUinfo also required for SDL Audio, at least until 2.28.0 (see https://github.com/libsdl-org/SDL/issues/7809)
set(SDL_UNUSED_SUBSYSTEMS
- CPUinfo File Filesystem
+ File Filesystem
Locale Power Render)
foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS})
string(TOUPPER ${_SUB} _OPT)
@@ -67,18 +74,16 @@ if (YUZU_USE_EXTERNAL_SDL2)
set(HIDAPI ON)
endif()
- set(SDL_STATIC ON)
- set(SDL_SHARED OFF)
if (APPLE)
set(SDL_FILE ON)
endif()
- add_subdirectory(SDL EXCLUDE_FROM_ALL)
+ add_subdirectory(SDL)
endif()
# ENet
if (NOT TARGET enet::enet)
- add_subdirectory(enet EXCLUDE_FROM_ALL)
+ add_subdirectory(enet)
target_include_directories(enet INTERFACE ./enet/include)
add_library(enet::enet ALIAS enet)
endif()
@@ -86,62 +91,39 @@ endif()
# Cubeb
if (ENABLE_CUBEB AND NOT TARGET cubeb::cubeb)
set(BUILD_TESTS OFF)
- add_subdirectory(cubeb EXCLUDE_FROM_ALL)
+ set(BUILD_TOOLS OFF)
+ add_subdirectory(cubeb)
add_library(cubeb::cubeb ALIAS cubeb)
endif()
# DiscordRPC
if (USE_DISCORD_PRESENCE AND NOT TARGET DiscordRPC::discord-rpc)
- add_subdirectory(discord-rpc EXCLUDE_FROM_ALL)
+ set(BUILD_EXAMPLES OFF)
+ add_subdirectory(discord-rpc)
target_include_directories(discord-rpc INTERFACE ./discord-rpc/include)
add_library(DiscordRPC::discord-rpc ALIAS discord-rpc)
endif()
# Sirit
-add_subdirectory(sirit EXCLUDE_FROM_ALL)
+add_subdirectory(sirit)
# httplib
if (ENABLE_WEB_SERVICE AND NOT TARGET httplib::httplib)
- if (NOT WIN32)
- find_package(OpenSSL 1.1)
- if (OPENSSL_FOUND)
- set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
- endif()
- endif()
-
- if (WIN32 OR NOT OPENSSL_FOUND)
- # LibreSSL
- set(LIBRESSL_SKIP_INSTALL ON)
- set(OPENSSLDIR "/etc/ssl/")
- add_subdirectory(libressl EXCLUDE_FROM_ALL)
- target_include_directories(ssl INTERFACE ./libressl/include)
- target_compile_definitions(ssl PRIVATE -DHAVE_INET_NTOP)
- get_directory_property(OPENSSL_LIBRARIES
- DIRECTORY libressl
- DEFINITION OPENSSL_LIBS)
- endif()
-
- add_library(httplib INTERFACE)
- target_include_directories(httplib INTERFACE ./cpp-httplib)
- target_compile_definitions(httplib INTERFACE -DCPPHTTPLIB_OPENSSL_SUPPORT)
- target_link_libraries(httplib INTERFACE ${OPENSSL_LIBRARIES})
- if (WIN32)
- target_link_libraries(httplib INTERFACE crypt32 cryptui ws2_32)
- endif()
- add_library(httplib::httplib ALIAS httplib)
+ set(HTTPLIB_REQUIRE_OPENSSL ON)
+ add_subdirectory(cpp-httplib)
endif()
# cpp-jwt
if (ENABLE_WEB_SERVICE AND NOT TARGET cpp-jwt::cpp-jwt)
- add_library(cpp-jwt INTERFACE)
- target_include_directories(cpp-jwt INTERFACE ./cpp-jwt/include)
- target_compile_definitions(cpp-jwt INTERFACE CPP_JWT_USE_VENDORED_NLOHMANN_JSON)
- add_library(cpp-jwt::cpp-jwt ALIAS cpp-jwt)
+ set(CPP_JWT_BUILD_EXAMPLES OFF)
+ set(CPP_JWT_BUILD_TESTS OFF)
+ set(CPP_JWT_USE_VENDORED_NLOHMANN_JSON OFF)
+ add_subdirectory(cpp-jwt)
endif()
# Opus
if (NOT TARGET Opus::opus)
- add_subdirectory(opus EXCLUDE_FROM_ALL)
+ add_subdirectory(opus)
endif()
# FFMpeg
@@ -155,9 +137,28 @@ endif()
# Vulkan-Headers
if (YUZU_USE_EXTERNAL_VULKAN_HEADERS)
- add_subdirectory(Vulkan-Headers EXCLUDE_FROM_ALL)
+ add_subdirectory(Vulkan-Headers)
endif()
-add_library(demangle STATIC)
-target_include_directories(demangle PUBLIC ./demangle)
-target_sources(demangle PRIVATE demangle/ItaniumDemangle.cpp)
+# TZDB (Time Zone Database)
+add_subdirectory(nx_tzdb)
+
+# VMA
+add_library(vma vma/vma.cpp)
+target_include_directories(vma PUBLIC ./vma/VulkanMemoryAllocator/include)
+target_link_libraries(vma PRIVATE Vulkan::Headers)
+
+if (NOT TARGET LLVM::Demangle)
+ add_library(demangle demangle/ItaniumDemangle.cpp)
+ target_include_directories(demangle PUBLIC ./demangle)
+ add_library(LLVM::Demangle ALIAS demangle)
+endif()
+
+add_library(stb stb/stb_dxt.cpp)
+target_include_directories(stb PUBLIC ./stb)
+
+if (ANDROID)
+ if (ARCHITECTURE_arm64)
+ add_subdirectory(libadrenotools)
+ endif()
+endif()
diff --git a/externals/SDL b/externals/SDL
-Subproject f17058b562c8a1090c0c996b42982721ace9090
+Subproject 491fba1d06a4810645092b2559b9cc94abeb23b
diff --git a/externals/Vulkan-Headers b/externals/Vulkan-Headers
-Subproject 00671c64ba5c488ade22ad572a0ef81d5e64c80
+Subproject 63af1cf1ee906ba4dcd5a324bdd0201d4f4bfd1
diff --git a/externals/cpp-httplib b/externals/cpp-httplib
-Subproject 305a7abcb9b4e9e349843c6d563212e6c1bbbf2
+Subproject 6d963fbe8d415399d65e94db7910bbd22fe3741
diff --git a/externals/cubeb b/externals/cubeb
-Subproject 75d9d125ee655ef80f3bfcd97ae5a805931042b
+Subproject 48689ae7a73caeb747953f9ed664dc71d2f918d
diff --git a/externals/demangle/ItaniumDemangle.cpp b/externals/demangle/ItaniumDemangle.cpp
index 5e078e3e2..b055a2fd7 100644
--- a/externals/demangle/ItaniumDemangle.cpp
+++ b/externals/demangle/ItaniumDemangle.cpp
@@ -11,8 +11,8 @@
// file does not yet support:
// - C++ modules TS
-#include "Demangle.h"
-#include "ItaniumDemangle.h"
+#include "llvm/Demangle/Demangle.h"
+#include "llvm/Demangle/ItaniumDemangle.h"
#include <cassert>
#include <cctype>
diff --git a/externals/demangle/Demangle.h b/externals/demangle/llvm/Demangle/Demangle.h
index 5b673e4e1..5b673e4e1 100644
--- a/externals/demangle/Demangle.h
+++ b/externals/demangle/llvm/Demangle/Demangle.h
diff --git a/externals/demangle/DemangleConfig.h b/externals/demangle/llvm/Demangle/DemangleConfig.h
index a8aef9df1..a8aef9df1 100644
--- a/externals/demangle/DemangleConfig.h
+++ b/externals/demangle/llvm/Demangle/DemangleConfig.h
diff --git a/externals/demangle/ItaniumDemangle.h b/externals/demangle/llvm/Demangle/ItaniumDemangle.h
index 64b35c142..64b35c142 100644
--- a/externals/demangle/ItaniumDemangle.h
+++ b/externals/demangle/llvm/Demangle/ItaniumDemangle.h
diff --git a/externals/demangle/StringView.h b/externals/demangle/llvm/Demangle/StringView.h
index 44d2b18a3..44d2b18a3 100644
--- a/externals/demangle/StringView.h
+++ b/externals/demangle/llvm/Demangle/StringView.h
diff --git a/externals/demangle/Utility.h b/externals/demangle/llvm/Demangle/Utility.h
index 50d05c6b1..50d05c6b1 100644
--- a/externals/demangle/Utility.h
+++ b/externals/demangle/llvm/Demangle/Utility.h
diff --git a/externals/dynarmic b/externals/dynarmic
-Subproject befe547d5631024a70d81d2ccee808bbfcb3854
+Subproject 7da378033a7764f955516f75194856d87bbcd7a
diff --git a/externals/ffmpeg/CMakeLists.txt b/externals/ffmpeg/CMakeLists.txt
index 0baac8e17..0a926e399 100644
--- a/externals/ffmpeg/CMakeLists.txt
+++ b/externals/ffmpeg/CMakeLists.txt
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2021 yuzu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
-if (NOT WIN32)
+if (NOT WIN32 AND NOT ANDROID)
# Build FFmpeg from externals
message(STATUS "Using FFmpeg from externals")
@@ -44,10 +44,12 @@ if (NOT WIN32)
endforeach()
find_package(PkgConfig REQUIRED)
- pkg_check_modules(LIBVA libva)
- pkg_check_modules(CUDA cuda)
- pkg_check_modules(FFNVCODEC ffnvcodec)
- pkg_check_modules(VDPAU vdpau)
+ if (NOT ANDROID)
+ pkg_check_modules(LIBVA libva)
+ pkg_check_modules(CUDA cuda)
+ pkg_check_modules(FFNVCODEC ffnvcodec)
+ pkg_check_modules(VDPAU vdpau)
+ endif()
set(FFmpeg_HWACCEL_LIBRARIES)
set(FFmpeg_HWACCEL_FLAGS)
@@ -121,6 +123,26 @@ if (NOT WIN32)
list(APPEND FFmpeg_HWACCEL_FLAGS --disable-vdpau)
endif()
+ find_program(BASH_PROGRAM bash REQUIRED)
+
+ set(FFmpeg_CROSS_COMPILE_FLAGS "")
+ if (ANDROID)
+ string(TOLOWER "${CMAKE_HOST_SYSTEM_NAME}" FFmpeg_HOST_SYSTEM_NAME)
+ set(TOOLCHAIN "${ANDROID_NDK}/toolchains/llvm/prebuilt/${FFmpeg_HOST_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}")
+ set(SYSROOT "${TOOLCHAIN}/sysroot")
+ set(FFmpeg_CPU "armv8-a")
+ list(APPEND FFmpeg_CROSS_COMPILE_FLAGS
+ --arch=arm64
+ #--cpu=${FFmpeg_CPU}
+ --enable-cross-compile
+ --cross-prefix=${TOOLCHAIN}/bin/aarch64-linux-android-
+ --sysroot=${SYSROOT}
+ --target-os=android
+ --extra-ldflags="--ld-path=${TOOLCHAIN}/bin/ld.lld"
+ --extra-ldflags="-nostdlib"
+ )
+ endif()
+
# `configure` parameters builds only exactly what yuzu needs from FFmpeg
# `--disable-vdpau` is needed to avoid linking issues
set(FFmpeg_CC ${CMAKE_C_COMPILER_LAUNCHER} ${CMAKE_C_COMPILER})
@@ -129,9 +151,8 @@ if (NOT WIN32)
OUTPUT
${FFmpeg_MAKEFILE}
COMMAND
- /bin/bash ${FFmpeg_PREFIX}/configure
+ ${BASH_PROGRAM} ${FFmpeg_PREFIX}/configure
--disable-avdevice
- --disable-avfilter
--disable-avformat
--disable-doc
--disable-everything
@@ -143,15 +164,18 @@ if (NOT WIN32)
--enable-decoder=h264
--enable-decoder=vp8
--enable-decoder=vp9
+ --enable-filter=yadif
--cc="${FFmpeg_CC}"
--cxx="${FFmpeg_CXX}"
${FFmpeg_HWACCEL_FLAGS}
+ ${FFmpeg_CROSS_COMPILE_FLAGS}
WORKING_DIRECTORY
${FFmpeg_BUILD_DIR}
)
unset(FFmpeg_CC)
unset(FFmpeg_CXX)
unset(FFmpeg_HWACCEL_FLAGS)
+ unset(FFmpeg_CROSS_COMPILE_FLAGS)
# Workaround for Ubuntu 18.04's older version of make not being able to call make as a child
# with context of the jobserver. Also helps ninja users.
@@ -197,19 +221,50 @@ if (NOT WIN32)
else()
message(FATAL_ERROR "FFmpeg not found")
endif()
-else(WIN32)
+elseif(ANDROID)
+ # Use yuzu FFmpeg binaries
+ if (ARCHITECTURE_arm64)
+ set(FFmpeg_EXT_NAME "ffmpeg-android-v5.1.LTS-aarch64")
+ elseif (ARCHITECTURE_x86_64)
+ set(FFmpeg_EXT_NAME "ffmpeg-android-v5.1.LTS-x86_64")
+ else()
+ message(FATAL_ERROR "Unsupported architecture for Android FFmpeg")
+ endif()
+ set(FFmpeg_PATH "${CMAKE_BINARY_DIR}/externals/${FFmpeg_EXT_NAME}")
+ download_bundled_external("ffmpeg/" ${FFmpeg_EXT_NAME} "")
+ set(FFmpeg_FOUND YES)
+ set(FFmpeg_INCLUDE_DIR "${FFmpeg_PATH}/include" CACHE PATH "Path to FFmpeg headers" FORCE)
+ set(FFmpeg_LIBRARY_DIR "${FFmpeg_PATH}/lib" CACHE PATH "Path to FFmpeg library directory" FORCE)
+ set(FFmpeg_LDFLAGS "" CACHE STRING "FFmpeg linker flags" FORCE)
+ set(FFmpeg_LIBRARIES
+ ${FFmpeg_LIBRARY_DIR}/libavcodec.so
+ ${FFmpeg_LIBRARY_DIR}/libavdevice.so
+ ${FFmpeg_LIBRARY_DIR}/libavfilter.so
+ ${FFmpeg_LIBRARY_DIR}/libavformat.so
+ ${FFmpeg_LIBRARY_DIR}/libavutil.so
+ ${FFmpeg_LIBRARY_DIR}/libswresample.so
+ ${FFmpeg_LIBRARY_DIR}/libswscale.so
+ ${FFmpeg_LIBRARY_DIR}/libvpx.a
+ ${FFmpeg_LIBRARY_DIR}/libx264.a
+ CACHE PATH "Paths to FFmpeg libraries" FORCE)
+ # exported variables
+ set(FFmpeg_PATH "${FFmpeg_PATH}" PARENT_SCOPE)
+ set(FFmpeg_LDFLAGS "${FFmpeg_LDFLAGS}" PARENT_SCOPE)
+ set(FFmpeg_LIBRARIES "${FFmpeg_LIBRARIES}" PARENT_SCOPE)
+ set(FFmpeg_INCLUDE_DIR "${FFmpeg_INCLUDE_DIR}" PARENT_SCOPE)
+elseif(WIN32)
# Use yuzu FFmpeg binaries
- set(FFmpeg_EXT_NAME "ffmpeg-4.4")
+ set(FFmpeg_EXT_NAME "ffmpeg-5.1.3")
set(FFmpeg_PATH "${CMAKE_BINARY_DIR}/externals/${FFmpeg_EXT_NAME}")
download_bundled_external("ffmpeg/" ${FFmpeg_EXT_NAME} "")
set(FFmpeg_FOUND YES)
set(FFmpeg_INCLUDE_DIR "${FFmpeg_PATH}/include" CACHE PATH "Path to FFmpeg headers" FORCE)
set(FFmpeg_LIBRARY_DIR "${FFmpeg_PATH}/bin" CACHE PATH "Path to FFmpeg library directory" FORCE)
set(FFmpeg_LDFLAGS "" CACHE STRING "FFmpeg linker flags" FORCE)
- set(FFmpeg_DLL_DIR "${FFmpeg_PATH}/bin" CACHE PATH "Path to FFmpeg dll's" FORCE)
set(FFmpeg_LIBRARIES
${FFmpeg_LIBRARY_DIR}/swscale.lib
${FFmpeg_LIBRARY_DIR}/avcodec.lib
+ ${FFmpeg_LIBRARY_DIR}/avfilter.lib
${FFmpeg_LIBRARY_DIR}/avutil.lib
CACHE PATH "Paths to FFmpeg libraries" FORCE)
# exported variables
diff --git a/externals/glad/CMakeLists.txt b/externals/glad/CMakeLists.txt
index 3dfcac2fd..0c8e285a4 100644
--- a/externals/glad/CMakeLists.txt
+++ b/externals/glad/CMakeLists.txt
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2015 Yuri Kunde Schlesner <yuriks@yuriks.net>
# SPDX-License-Identifier: GPL-2.0-or-later
-add_library(glad STATIC
+add_library(glad
src/glad.c
include/KHR/khrplatform.h
include/glad/glad.h
diff --git a/externals/libadrenotools b/externals/libadrenotools
new file mode 160000
+Subproject 5cd3f5c5ceea6d9e9d435ccdd922d9b99e55d10
diff --git a/externals/libressl b/externals/libressl
deleted file mode 160000
-Subproject 8929f818fd748fd31a34fec7c04558399e13014
diff --git a/externals/libusb/CMakeLists.txt b/externals/libusb/CMakeLists.txt
index 6317ea807..6757b59da 100644
--- a/externals/libusb/CMakeLists.txt
+++ b/externals/libusb/CMakeLists.txt
@@ -122,7 +122,7 @@ else() # MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_compile_options(/utf-8)
endif()
- add_library(usb STATIC EXCLUDE_FROM_ALL
+ add_library(usb
libusb/libusb/core.c
libusb/libusb/core.c
libusb/libusb/descriptor.c
diff --git a/externals/microprofile/microprofile.h b/externals/microprofile/microprofile.h
index 639f3618c..8f75a25aa 100644
--- a/externals/microprofile/microprofile.h
+++ b/externals/microprofile/microprofile.h
@@ -1697,7 +1697,13 @@ void MicroProfileFlip()
{
int nTimer = MicroProfileLogTimerIndex(LE);
uint8_t nGroup = pTimerToGroup[nTimer];
- MP_ASSERT(nStackPos < MICROPROFILE_STACK_MAX);
+
+ // To avoid crashing due to OOB memory accesses/asserts
+ // simply skip this iteration
+ // MP_ASSERT(nStackPos < MICROPROFILE_STACK_MAX);
+ if (nStackPos >= MICROPROFILE_STACK_MAX) {
+ break;
+ }
MP_ASSERT(nGroup < MICROPROFILE_MAX_GROUPS);
pGroupStackPos[nGroup]++;
pStack[nStackPos++] = k;
diff --git a/externals/nx_tzdb/CMakeLists.txt b/externals/nx_tzdb/CMakeLists.txt
new file mode 100644
index 000000000..593786250
--- /dev/null
+++ b/externals/nx_tzdb/CMakeLists.txt
@@ -0,0 +1,101 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+set(NX_TZDB_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/include")
+
+add_library(nx_tzdb INTERFACE)
+
+find_program(GIT git)
+find_program(GNU_MAKE make)
+find_program(DATE_PROG date)
+
+set(CAN_BUILD_NX_TZDB true)
+
+if (NOT GIT)
+ set(CAN_BUILD_NX_TZDB false)
+endif()
+if (NOT GNU_MAKE)
+ set(CAN_BUILD_NX_TZDB false)
+endif()
+if (NOT DATE_PROG)
+ set(CAN_BUILD_NX_TZDB false)
+endif()
+if (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR ANDROID)
+ # tzdb_to_nx currently requires a posix-compliant host
+ # MinGW and Android are handled here due to the executable format being different from the host system
+ # TODO (lat9nq): cross-compiling support
+ set(CAN_BUILD_NX_TZDB false)
+endif()
+
+set(NX_TZDB_VERSION "220816")
+set(NX_TZDB_ARCHIVE "${CMAKE_CURRENT_BINARY_DIR}/${NX_TZDB_VERSION}.zip")
+
+set(NX_TZDB_ROMFS_DIR "${CMAKE_CURRENT_BINARY_DIR}/nx_tzdb")
+
+if ((NOT CAN_BUILD_NX_TZDB OR YUZU_DOWNLOAD_TIME_ZONE_DATA) AND NOT EXISTS ${NX_TZDB_ARCHIVE})
+ set(NX_TZDB_DOWNLOAD_URL "https://github.com/lat9nq/tzdb_to_nx/releases/download/${NX_TZDB_VERSION}/${NX_TZDB_VERSION}.zip")
+
+ message(STATUS "Downloading time zone data from ${NX_TZDB_DOWNLOAD_URL}...")
+ file(DOWNLOAD ${NX_TZDB_DOWNLOAD_URL} ${NX_TZDB_ARCHIVE}
+ STATUS NX_TZDB_DOWNLOAD_STATUS)
+ list(GET NX_TZDB_DOWNLOAD_STATUS 0 NX_TZDB_DOWNLOAD_STATUS_CODE)
+ if (NOT NX_TZDB_DOWNLOAD_STATUS_CODE EQUAL 0)
+ message(FATAL_ERROR "Time zone data download failed (status code ${NX_TZDB_DOWNLOAD_STATUS_CODE})")
+ endif()
+
+ file(ARCHIVE_EXTRACT
+ INPUT
+ ${NX_TZDB_ARCHIVE}
+ DESTINATION
+ ${NX_TZDB_ROMFS_DIR})
+elseif (CAN_BUILD_NX_TZDB AND NOT YUZU_DOWNLOAD_TIME_ZONE_DATA)
+ add_subdirectory(tzdb_to_nx)
+ add_dependencies(nx_tzdb x80e)
+
+ set(NX_TZDB_ROMFS_DIR "${NX_TZDB_DIR}")
+endif()
+
+target_include_directories(nx_tzdb
+ INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include
+ INTERFACE ${NX_TZDB_INCLUDE_DIR})
+
+function(CreateHeader ZONE_PATH HEADER_NAME)
+ set(HEADER_PATH "${NX_TZDB_INCLUDE_DIR}/nx_tzdb/${HEADER_NAME}.h")
+ add_custom_command(
+ OUTPUT
+ ${NX_TZDB_INCLUDE_DIR}/nx_tzdb/${HEADER_NAME}.h
+ COMMAND
+ ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/NxTzdbCreateHeader.cmake
+ ${ZONE_PATH}
+ ${HEADER_NAME}
+ ${NX_TZDB_INCLUDE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ DEPENDS
+ tzdb_template.h.in
+ NxTzdbCreateHeader.cmake)
+
+ target_sources(nx_tzdb PRIVATE ${HEADER_PATH})
+endfunction()
+
+CreateHeader(${NX_TZDB_ROMFS_DIR} base)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo zoneinfo)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Africa africa)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/America america)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/America/Argentina america_argentina)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/America/Indiana america_indiana)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/America/Kentucky america_kentucky)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/America/North_Dakota america_north_dakota)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Antarctica antarctica)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Arctic arctic)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Asia asia)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Atlantic atlantic)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Australia australia)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Brazil brazil)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Canada canada)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Chile chile)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Etc etc)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Europe europe)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Indian indian)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Mexico mexico)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/Pacific pacific)
+CreateHeader(${NX_TZDB_ROMFS_DIR}/zoneinfo/US us)
diff --git a/externals/nx_tzdb/ListFilesInDirectory.cmake b/externals/nx_tzdb/ListFilesInDirectory.cmake
new file mode 100644
index 000000000..35a9e726a
--- /dev/null
+++ b/externals/nx_tzdb/ListFilesInDirectory.cmake
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# CMake does not have a way to list the files in a specific directory,
+# so we need this script to do that for us in a platform-agnostic fashion
+
+file(GLOB FILE_LIST LIST_DIRECTORIES false RELATIVE ${CMAKE_SOURCE_DIR} "*")
+execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${FILE_LIST};")
diff --git a/externals/nx_tzdb/NxTzdbCreateHeader.cmake b/externals/nx_tzdb/NxTzdbCreateHeader.cmake
new file mode 100644
index 000000000..8c29e1167
--- /dev/null
+++ b/externals/nx_tzdb/NxTzdbCreateHeader.cmake
@@ -0,0 +1,46 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+set(ZONE_PATH ${CMAKE_ARGV3})
+set(HEADER_NAME ${CMAKE_ARGV4})
+set(NX_TZDB_INCLUDE_DIR ${CMAKE_ARGV5})
+set(NX_TZDB_SOURCE_DIR ${CMAKE_ARGV6})
+
+execute_process(
+ COMMAND ${CMAKE_COMMAND} -P ${NX_TZDB_SOURCE_DIR}/ListFilesInDirectory.cmake
+ WORKING_DIRECTORY ${ZONE_PATH}
+ OUTPUT_VARIABLE FILE_LIST)
+
+set(DIRECTORY_NAME ${HEADER_NAME})
+
+set(FILE_DATA "")
+foreach(ZONE_FILE ${FILE_LIST})
+ if (ZONE_FILE STREQUAL "\n")
+ continue()
+ endif()
+
+ string(APPEND FILE_DATA "{\"${ZONE_FILE}\",\n{")
+
+ file(READ ${ZONE_PATH}/${ZONE_FILE} ZONE_DATA HEX)
+ string(LENGTH "${ZONE_DATA}" ZONE_DATA_LEN)
+ foreach(I RANGE 0 ${ZONE_DATA_LEN} 2)
+ math(EXPR BREAK_LINE "(${I} + 2) % 38")
+
+ string(SUBSTRING "${ZONE_DATA}" "${I}" 2 HEX_DATA)
+ if (NOT HEX_DATA)
+ break()
+ endif()
+
+ string(APPEND FILE_DATA "0x${HEX_DATA},")
+ if (BREAK_LINE EQUAL 0)
+ string(APPEND FILE_DATA "\n")
+ else()
+ string(APPEND FILE_DATA " ")
+ endif()
+ endforeach()
+
+ string(APPEND FILE_DATA "}},\n")
+endforeach()
+
+file(READ ${NX_TZDB_SOURCE_DIR}/tzdb_template.h.in NX_TZDB_TEMPLATE_H_IN)
+file(CONFIGURE OUTPUT ${NX_TZDB_INCLUDE_DIR}/nx_tzdb/${HEADER_NAME}.h CONTENT "${NX_TZDB_TEMPLATE_H_IN}")
diff --git a/externals/nx_tzdb/include/nx_tzdb.h b/externals/nx_tzdb/include/nx_tzdb.h
new file mode 100644
index 000000000..1f7c6069a
--- /dev/null
+++ b/externals/nx_tzdb/include/nx_tzdb.h
@@ -0,0 +1,27 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "nx_tzdb/africa.h"
+#include "nx_tzdb/america.h"
+#include "nx_tzdb/america_argentina.h"
+#include "nx_tzdb/america_indiana.h"
+#include "nx_tzdb/america_kentucky.h"
+#include "nx_tzdb/america_north_dakota.h"
+#include "nx_tzdb/antarctica.h"
+#include "nx_tzdb/arctic.h"
+#include "nx_tzdb/asia.h"
+#include "nx_tzdb/atlantic.h"
+#include "nx_tzdb/australia.h"
+#include "nx_tzdb/base.h"
+#include "nx_tzdb/brazil.h"
+#include "nx_tzdb/canada.h"
+#include "nx_tzdb/chile.h"
+#include "nx_tzdb/etc.h"
+#include "nx_tzdb/europe.h"
+#include "nx_tzdb/indian.h"
+#include "nx_tzdb/mexico.h"
+#include "nx_tzdb/pacific.h"
+#include "nx_tzdb/us.h"
+#include "nx_tzdb/zoneinfo.h"
diff --git a/externals/nx_tzdb/tzdb_template.h.in b/externals/nx_tzdb/tzdb_template.h.in
new file mode 100644
index 000000000..289d002ea
--- /dev/null
+++ b/externals/nx_tzdb/tzdb_template.h.in
@@ -0,0 +1,18 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <cstdint>
+#include <map>
+#include <vector>
+
+namespace NxTzdb {
+
+// clang-format off
+const static std::map<const char*, const std::vector<uint8_t>> @DIRECTORY_NAME@ =
+{
+@FILE_DATA@};
+// clang-format on
+
+} // namespace NxTzdb
diff --git a/externals/nx_tzdb/tzdb_to_nx b/externals/nx_tzdb/tzdb_to_nx
new file mode 160000
+Subproject 212afa2394a74226dcf1b7996a570aae17debb6
diff --git a/externals/opus/CMakeLists.txt b/externals/opus/CMakeLists.txt
index 410ff7c08..d9a03423d 100644
--- a/externals/opus/CMakeLists.txt
+++ b/externals/opus/CMakeLists.txt
@@ -23,7 +23,7 @@ else()
endif()
endif()
-add_library(opus STATIC
+add_library(opus
# CELT sources
opus/celt/bands.c
opus/celt/celt.c
diff --git a/externals/stb/stb_dxt.cpp b/externals/stb/stb_dxt.cpp
new file mode 100644
index 000000000..64f1f3d03
--- /dev/null
+++ b/externals/stb/stb_dxt.cpp
@@ -0,0 +1,765 @@
+// SPDX-FileCopyrightText: fabian "ryg" giesen
+// SPDX-License-Identifier: MIT
+
+// stb_dxt.h - v1.12 - DXT1/DXT5 compressor
+
+#include <stb_dxt.h>
+
+#include <stdlib.h>
+#include <string.h>
+
+#if !defined(STBD_FABS)
+#include <math.h>
+#endif
+
+#ifndef STBD_FABS
+#define STBD_FABS(x) fabs(x)
+#endif
+
+static const unsigned char stb__OMatch5[256][2] = {
+ {0, 0}, {0, 0}, {0, 1}, {0, 1}, {1, 0}, {1, 0}, {1, 0}, {1, 1}, {1, 1},
+ {1, 1}, {1, 2}, {0, 4}, {2, 1}, {2, 1}, {2, 1}, {2, 2}, {2, 2}, {2, 2},
+ {2, 3}, {1, 5}, {3, 2}, {3, 2}, {4, 0}, {3, 3}, {3, 3}, {3, 3}, {3, 4},
+ {3, 4}, {3, 4}, {3, 5}, {4, 3}, {4, 3}, {5, 2}, {4, 4}, {4, 4}, {4, 5},
+ {4, 5}, {5, 4}, {5, 4}, {5, 4}, {6, 3}, {5, 5}, {5, 5}, {5, 6}, {4, 8},
+ {6, 5}, {6, 5}, {6, 5}, {6, 6}, {6, 6}, {6, 6}, {6, 7}, {5, 9}, {7, 6},
+ {7, 6}, {8, 4}, {7, 7}, {7, 7}, {7, 7}, {7, 8}, {7, 8}, {7, 8}, {7, 9},
+ {8, 7}, {8, 7}, {9, 6}, {8, 8}, {8, 8}, {8, 9}, {8, 9}, {9, 8}, {9, 8},
+ {9, 8}, {10, 7}, {9, 9}, {9, 9}, {9, 10}, {8, 12}, {10, 9}, {10, 9}, {10, 9},
+ {10, 10}, {10, 10}, {10, 10}, {10, 11}, {9, 13}, {11, 10}, {11, 10}, {12, 8}, {11, 11},
+ {11, 11}, {11, 11}, {11, 12}, {11, 12}, {11, 12}, {11, 13}, {12, 11}, {12, 11}, {13, 10},
+ {12, 12}, {12, 12}, {12, 13}, {12, 13}, {13, 12}, {13, 12}, {13, 12}, {14, 11}, {13, 13},
+ {13, 13}, {13, 14}, {12, 16}, {14, 13}, {14, 13}, {14, 13}, {14, 14}, {14, 14}, {14, 14},
+ {14, 15}, {13, 17}, {15, 14}, {15, 14}, {16, 12}, {15, 15}, {15, 15}, {15, 15}, {15, 16},
+ {15, 16}, {15, 16}, {15, 17}, {16, 15}, {16, 15}, {17, 14}, {16, 16}, {16, 16}, {16, 17},
+ {16, 17}, {17, 16}, {17, 16}, {17, 16}, {18, 15}, {17, 17}, {17, 17}, {17, 18}, {16, 20},
+ {18, 17}, {18, 17}, {18, 17}, {18, 18}, {18, 18}, {18, 18}, {18, 19}, {17, 21}, {19, 18},
+ {19, 18}, {20, 16}, {19, 19}, {19, 19}, {19, 19}, {19, 20}, {19, 20}, {19, 20}, {19, 21},
+ {20, 19}, {20, 19}, {21, 18}, {20, 20}, {20, 20}, {20, 21}, {20, 21}, {21, 20}, {21, 20},
+ {21, 20}, {22, 19}, {21, 21}, {21, 21}, {21, 22}, {20, 24}, {22, 21}, {22, 21}, {22, 21},
+ {22, 22}, {22, 22}, {22, 22}, {22, 23}, {21, 25}, {23, 22}, {23, 22}, {24, 20}, {23, 23},
+ {23, 23}, {23, 23}, {23, 24}, {23, 24}, {23, 24}, {23, 25}, {24, 23}, {24, 23}, {25, 22},
+ {24, 24}, {24, 24}, {24, 25}, {24, 25}, {25, 24}, {25, 24}, {25, 24}, {26, 23}, {25, 25},
+ {25, 25}, {25, 26}, {24, 28}, {26, 25}, {26, 25}, {26, 25}, {26, 26}, {26, 26}, {26, 26},
+ {26, 27}, {25, 29}, {27, 26}, {27, 26}, {28, 24}, {27, 27}, {27, 27}, {27, 27}, {27, 28},
+ {27, 28}, {27, 28}, {27, 29}, {28, 27}, {28, 27}, {29, 26}, {28, 28}, {28, 28}, {28, 29},
+ {28, 29}, {29, 28}, {29, 28}, {29, 28}, {30, 27}, {29, 29}, {29, 29}, {29, 30}, {29, 30},
+ {30, 29}, {30, 29}, {30, 29}, {30, 30}, {30, 30}, {30, 30}, {30, 31}, {30, 31}, {31, 30},
+ {31, 30}, {31, 30}, {31, 31}, {31, 31},
+};
+static const unsigned char stb__OMatch6[256][2] = {
+ {0, 0}, {0, 1}, {1, 0}, {1, 1}, {1, 1}, {1, 2}, {2, 1}, {2, 2}, {2, 2},
+ {2, 3}, {3, 2}, {3, 3}, {3, 3}, {3, 4}, {4, 3}, {4, 4}, {4, 4}, {4, 5},
+ {5, 4}, {5, 5}, {5, 5}, {5, 6}, {6, 5}, {6, 6}, {6, 6}, {6, 7}, {7, 6},
+ {7, 7}, {7, 7}, {7, 8}, {8, 7}, {8, 8}, {8, 8}, {8, 9}, {9, 8}, {9, 9},
+ {9, 9}, {9, 10}, {10, 9}, {10, 10}, {10, 10}, {10, 11}, {11, 10}, {8, 16}, {11, 11},
+ {11, 12}, {12, 11}, {9, 17}, {12, 12}, {12, 13}, {13, 12}, {11, 16}, {13, 13}, {13, 14},
+ {14, 13}, {12, 17}, {14, 14}, {14, 15}, {15, 14}, {14, 16}, {15, 15}, {15, 16}, {16, 14},
+ {16, 15}, {17, 14}, {16, 16}, {16, 17}, {17, 16}, {18, 15}, {17, 17}, {17, 18}, {18, 17},
+ {20, 14}, {18, 18}, {18, 19}, {19, 18}, {21, 15}, {19, 19}, {19, 20}, {20, 19}, {20, 20},
+ {20, 20}, {20, 21}, {21, 20}, {21, 21}, {21, 21}, {21, 22}, {22, 21}, {22, 22}, {22, 22},
+ {22, 23}, {23, 22}, {23, 23}, {23, 23}, {23, 24}, {24, 23}, {24, 24}, {24, 24}, {24, 25},
+ {25, 24}, {25, 25}, {25, 25}, {25, 26}, {26, 25}, {26, 26}, {26, 26}, {26, 27}, {27, 26},
+ {24, 32}, {27, 27}, {27, 28}, {28, 27}, {25, 33}, {28, 28}, {28, 29}, {29, 28}, {27, 32},
+ {29, 29}, {29, 30}, {30, 29}, {28, 33}, {30, 30}, {30, 31}, {31, 30}, {30, 32}, {31, 31},
+ {31, 32}, {32, 30}, {32, 31}, {33, 30}, {32, 32}, {32, 33}, {33, 32}, {34, 31}, {33, 33},
+ {33, 34}, {34, 33}, {36, 30}, {34, 34}, {34, 35}, {35, 34}, {37, 31}, {35, 35}, {35, 36},
+ {36, 35}, {36, 36}, {36, 36}, {36, 37}, {37, 36}, {37, 37}, {37, 37}, {37, 38}, {38, 37},
+ {38, 38}, {38, 38}, {38, 39}, {39, 38}, {39, 39}, {39, 39}, {39, 40}, {40, 39}, {40, 40},
+ {40, 40}, {40, 41}, {41, 40}, {41, 41}, {41, 41}, {41, 42}, {42, 41}, {42, 42}, {42, 42},
+ {42, 43}, {43, 42}, {40, 48}, {43, 43}, {43, 44}, {44, 43}, {41, 49}, {44, 44}, {44, 45},
+ {45, 44}, {43, 48}, {45, 45}, {45, 46}, {46, 45}, {44, 49}, {46, 46}, {46, 47}, {47, 46},
+ {46, 48}, {47, 47}, {47, 48}, {48, 46}, {48, 47}, {49, 46}, {48, 48}, {48, 49}, {49, 48},
+ {50, 47}, {49, 49}, {49, 50}, {50, 49}, {52, 46}, {50, 50}, {50, 51}, {51, 50}, {53, 47},
+ {51, 51}, {51, 52}, {52, 51}, {52, 52}, {52, 52}, {52, 53}, {53, 52}, {53, 53}, {53, 53},
+ {53, 54}, {54, 53}, {54, 54}, {54, 54}, {54, 55}, {55, 54}, {55, 55}, {55, 55}, {55, 56},
+ {56, 55}, {56, 56}, {56, 56}, {56, 57}, {57, 56}, {57, 57}, {57, 57}, {57, 58}, {58, 57},
+ {58, 58}, {58, 58}, {58, 59}, {59, 58}, {59, 59}, {59, 59}, {59, 60}, {60, 59}, {60, 60},
+ {60, 60}, {60, 61}, {61, 60}, {61, 61}, {61, 61}, {61, 62}, {62, 61}, {62, 62}, {62, 62},
+ {62, 63}, {63, 62}, {63, 63}, {63, 63},
+};
+
+static int stb__Mul8Bit(int a, int b) {
+ int t = a * b + 128;
+ return (t + (t >> 8)) >> 8;
+}
+
+static void stb__From16Bit(unsigned char* out, unsigned short v) {
+ int rv = (v & 0xf800) >> 11;
+ int gv = (v & 0x07e0) >> 5;
+ int bv = (v & 0x001f) >> 0;
+
+ // expand to 8 bits via bit replication
+ out[0] = static_cast<unsigned char>((rv * 33) >> 2);
+ out[1] = static_cast<unsigned char>((gv * 65) >> 4);
+ out[2] = static_cast<unsigned char>((bv * 33) >> 2);
+ out[3] = 0;
+}
+
+static unsigned short stb__As16Bit(int r, int g, int b) {
+ return (unsigned short)((stb__Mul8Bit(r, 31) << 11) + (stb__Mul8Bit(g, 63) << 5) +
+ stb__Mul8Bit(b, 31));
+}
+
+// linear interpolation at 1/3 point between a and b, using desired rounding
+// type
+static int stb__Lerp13(int a, int b) {
+#ifdef STB_DXT_USE_ROUNDING_BIAS
+ // with rounding bias
+ return a + stb__Mul8Bit(b - a, 0x55);
+#else
+ // without rounding bias
+ // replace "/ 3" by "* 0xaaab) >> 17" if your compiler sucks or you really
+ // need every ounce of speed.
+ return (2 * a + b) / 3;
+#endif
+}
+
+// linear interpolation at 1/2 point between a and b
+static int stb__Lerp12(int a, int b) {
+ return (a + b) / 2;
+}
+
+// lerp RGB color
+static void stb__Lerp13RGB(unsigned char* out, unsigned char* p1, unsigned char* p2) {
+ out[0] = (unsigned char)stb__Lerp13(p1[0], p2[0]);
+ out[1] = (unsigned char)stb__Lerp13(p1[1], p2[1]);
+ out[2] = (unsigned char)stb__Lerp13(p1[2], p2[2]);
+}
+
+static void stb__Lerp12RGB(unsigned char* out, unsigned char* p1, unsigned char* p2) {
+ out[0] = (unsigned char)stb__Lerp12(p1[0], p2[0]);
+ out[1] = (unsigned char)stb__Lerp12(p1[1], p2[1]);
+ out[2] = (unsigned char)stb__Lerp12(p1[2], p2[2]);
+}
+
+/****************************************************************************/
+
+static void stb__Eval4Colors(unsigned char* color, unsigned short c0, unsigned short c1) {
+ stb__From16Bit(color + 0, c0);
+ stb__From16Bit(color + 4, c1);
+ stb__Lerp13RGB(color + 8, color + 0, color + 4);
+ stb__Lerp13RGB(color + 12, color + 4, color + 0);
+}
+
+static void stb__Eval3Colors(unsigned char* color, unsigned short c0, unsigned short c1) {
+ stb__From16Bit(color + 0, c0);
+ stb__From16Bit(color + 4, c1);
+ stb__Lerp12RGB(color + 8, color + 0, color + 4);
+}
+
+// The color matching function
+static unsigned int stb__MatchColorsBlock(unsigned char* block, unsigned char* color) {
+ unsigned int mask = 0;
+ int dirr = color[0 * 4 + 0] - color[1 * 4 + 0];
+ int dirg = color[0 * 4 + 1] - color[1 * 4 + 1];
+ int dirb = color[0 * 4 + 2] - color[1 * 4 + 2];
+ int dots[16];
+ int stops[4];
+ int i;
+ int c0Point, halfPoint, c3Point;
+
+ for (i = 0; i < 16; i++)
+ dots[i] = block[i * 4 + 0] * dirr + block[i * 4 + 1] * dirg + block[i * 4 + 2] * dirb;
+
+ for (i = 0; i < 4; i++)
+ stops[i] = color[i * 4 + 0] * dirr + color[i * 4 + 1] * dirg + color[i * 4 + 2] * dirb;
+
+ // think of the colors as arranged on a line; project point onto that line,
+ // then choose next color out of available ones. we compute the crossover
+ // points for "best color in top half"/"best in bottom half" and then the same
+ // inside that subinterval.
+ //
+ // relying on this 1d approximation isn't always optimal in terms of euclidean
+ // distance, but it's very close and a lot faster.
+ // http://cbloomrants.blogspot.com/2008/12/12-08-08-dxtc-summary.html
+
+ c0Point = (stops[1] + stops[3]);
+ halfPoint = (stops[3] + stops[2]);
+ c3Point = (stops[2] + stops[0]);
+
+ for (i = 15; i >= 0; i--) {
+ int dot = dots[i] * 2;
+ mask <<= 2;
+
+ if (dot < halfPoint)
+ mask |= (dot < c0Point) ? 1 : 3;
+ else
+ mask |= (dot < c3Point) ? 2 : 0;
+ }
+
+ return mask;
+}
+
+static unsigned int stb__MatchColorsAlphaBlock(unsigned char* block, unsigned char* color) {
+ unsigned int mask = 0;
+ int dirr = color[0 * 4 + 0] - color[1 * 4 + 0];
+ int dirg = color[0 * 4 + 1] - color[1 * 4 + 1];
+ int dirb = color[0 * 4 + 2] - color[1 * 4 + 2];
+ int dots[16];
+ int stops[3];
+ int i;
+ int c0Point, c2Point;
+
+ for (i = 0; i < 16; i++)
+ dots[i] = block[i * 4 + 0] * dirr + block[i * 4 + 1] * dirg + block[i * 4 + 2] * dirb;
+
+ for (i = 0; i < 3; i++)
+ stops[i] = color[i * 4 + 0] * dirr + color[i * 4 + 1] * dirg + color[i * 4 + 2] * dirb;
+
+ c0Point = (stops[1] + stops[2]);
+ c2Point = (stops[2] + stops[0]);
+
+ for (i = 15; i >= 0; i--) {
+ int dot = dots[i] * 2;
+ mask <<= 2;
+
+ if (block[i * 4 + 3] == 0)
+ mask |= 3;
+ else if (dot < c2Point)
+ mask |= (dot < c0Point) ? 0 : 2;
+ else
+ mask |= (dot < c0Point) ? 1 : 0;
+ }
+
+ return mask;
+}
+
+static void stb__ReorderColors(unsigned short* pmax16, unsigned short* pmin16) {
+ if (*pmin16 < *pmax16) {
+ unsigned short t = *pmin16;
+ *pmin16 = *pmax16;
+ *pmax16 = t;
+ }
+}
+
+static void stb__FinalizeColors(unsigned short* pmax16, unsigned short* pmin16,
+ unsigned int* pmask) {
+ if (*pmax16 < *pmin16) {
+ unsigned short t = *pmin16;
+ *pmin16 = *pmax16;
+ *pmax16 = t;
+ *pmask ^= 0x55555555;
+ }
+}
+
+// The color optimization function. (Clever code, part 1)
+static void stb__OptimizeColorsBlock(unsigned char* block, unsigned short* pmax16,
+ unsigned short* pmin16) {
+ int mind, maxd;
+ unsigned char *minp, *maxp;
+ double magn;
+ int v_r, v_g, v_b;
+ static const int nIterPower = 4;
+ float covf[6], vfr, vfg, vfb;
+
+ // determine color distribution
+ int cov[6];
+ int mu[3], min[3], max[3];
+ int ch, i, iter;
+
+ for (ch = 0; ch < 3; ch++) {
+ const unsigned char* bp = ((const unsigned char*)block) + ch;
+ int muv, minv, maxv;
+
+ muv = minv = maxv = bp[0];
+ for (i = 4; i < 64; i += 4) {
+ muv += bp[i];
+ if (bp[i] < minv)
+ minv = bp[i];
+ else if (bp[i] > maxv)
+ maxv = bp[i];
+ }
+
+ mu[ch] = (muv + 8) >> 4;
+ min[ch] = minv;
+ max[ch] = maxv;
+ }
+
+ // determine covariance matrix
+ for (i = 0; i < 6; i++)
+ cov[i] = 0;
+
+ for (i = 0; i < 16; i++) {
+ int r = block[i * 4 + 0] - mu[0];
+ int g = block[i * 4 + 1] - mu[1];
+ int b = block[i * 4 + 2] - mu[2];
+
+ cov[0] += r * r;
+ cov[1] += r * g;
+ cov[2] += r * b;
+ cov[3] += g * g;
+ cov[4] += g * b;
+ cov[5] += b * b;
+ }
+
+ // convert covariance matrix to float, find principal axis via power iter
+ for (i = 0; i < 6; i++)
+ covf[i] = static_cast<float>(cov[i]) / 255.0f;
+
+ vfr = (float)(max[0] - min[0]);
+ vfg = (float)(max[1] - min[1]);
+ vfb = (float)(max[2] - min[2]);
+
+ for (iter = 0; iter < nIterPower; iter++) {
+ float r = vfr * covf[0] + vfg * covf[1] + vfb * covf[2];
+ float g = vfr * covf[1] + vfg * covf[3] + vfb * covf[4];
+ float b = vfr * covf[2] + vfg * covf[4] + vfb * covf[5];
+
+ vfr = r;
+ vfg = g;
+ vfb = b;
+ }
+
+ magn = STBD_FABS(vfr);
+ if (STBD_FABS(vfg) > magn)
+ magn = STBD_FABS(vfg);
+ if (STBD_FABS(vfb) > magn)
+ magn = STBD_FABS(vfb);
+
+ if (magn < 4.0f) { // too small, default to luminance
+ v_r = 299; // JPEG YCbCr luma coefs, scaled by 1000.
+ v_g = 587;
+ v_b = 114;
+ } else {
+ magn = 512.0 / magn;
+ v_r = (int)(vfr * magn);
+ v_g = (int)(vfg * magn);
+ v_b = (int)(vfb * magn);
+ }
+
+ minp = maxp = block;
+ mind = maxd = block[0] * v_r + block[1] * v_g + block[2] * v_b;
+ // Pick colors at extreme points
+ for (i = 1; i < 16; i++) {
+ int dot = block[i * 4 + 0] * v_r + block[i * 4 + 1] * v_g + block[i * 4 + 2] * v_b;
+
+ if (dot < mind) {
+ mind = dot;
+ minp = block + i * 4;
+ }
+
+ if (dot > maxd) {
+ maxd = dot;
+ maxp = block + i * 4;
+ }
+ }
+
+ *pmax16 = stb__As16Bit(maxp[0], maxp[1], maxp[2]);
+ *pmin16 = stb__As16Bit(minp[0], minp[1], minp[2]);
+ stb__ReorderColors(pmax16, pmin16);
+}
+
+static void stb__OptimizeColorsAlphaBlock(unsigned char* block, unsigned short* pmax16,
+ unsigned short* pmin16) {
+ int mind, maxd;
+ unsigned char *minp, *maxp;
+ double magn;
+ int v_r, v_g, v_b;
+ static const int nIterPower = 4;
+ float covf[6], vfr, vfg, vfb;
+
+ // determine color distribution
+ int cov[6];
+ int mu[3], min[3], max[3];
+ int ch, i, iter;
+
+ for (ch = 0; ch < 3; ch++) {
+ const unsigned char* bp = ((const unsigned char*)block) + ch;
+ int muv = 0, minv = 256, maxv = -1;
+ int num = 0;
+
+ for (i = 0; i < 64; i += 4) {
+ if (bp[3 - ch] == 0) {
+ continue;
+ }
+
+ muv += bp[i];
+ if (bp[i] < minv)
+ minv = bp[i];
+ else if (bp[i] > maxv)
+ maxv = bp[i];
+
+ num++;
+ }
+
+ mu[ch] = num > 0 ? (muv + 8) / num : 0;
+ min[ch] = minv;
+ max[ch] = maxv;
+ }
+
+ // determine covariance matrix
+ for (i = 0; i < 6; i++)
+ cov[i] = 0;
+
+ for (i = 0; i < 16; i++) {
+ if (block[i * 4 + 3] == 0) {
+ continue;
+ }
+
+ int r = block[i * 4 + 0] - mu[0];
+ int g = block[i * 4 + 1] - mu[1];
+ int b = block[i * 4 + 2] - mu[2];
+
+ cov[0] += r * r;
+ cov[1] += r * g;
+ cov[2] += r * b;
+ cov[3] += g * g;
+ cov[4] += g * b;
+ cov[5] += b * b;
+ }
+
+ // convert covariance matrix to float, find principal axis via power iter
+ for (i = 0; i < 6; i++)
+ covf[i] = static_cast<float>(cov[i]) / 255.0f;
+
+ vfr = (float)(max[0] - min[0]);
+ vfg = (float)(max[1] - min[1]);
+ vfb = (float)(max[2] - min[2]);
+
+ for (iter = 0; iter < nIterPower; iter++) {
+ float r = vfr * covf[0] + vfg * covf[1] + vfb * covf[2];
+ float g = vfr * covf[1] + vfg * covf[3] + vfb * covf[4];
+ float b = vfr * covf[2] + vfg * covf[4] + vfb * covf[5];
+
+ vfr = r;
+ vfg = g;
+ vfb = b;
+ }
+
+ magn = STBD_FABS(vfr);
+ if (STBD_FABS(vfg) > magn)
+ magn = STBD_FABS(vfg);
+ if (STBD_FABS(vfb) > magn)
+ magn = STBD_FABS(vfb);
+
+ if (magn < 4.0f) { // too small, default to luminance
+ v_r = 299; // JPEG YCbCr luma coefs, scaled by 1000.
+ v_g = 587;
+ v_b = 114;
+ } else {
+ magn = 512.0 / magn;
+ v_r = (int)(vfr * magn);
+ v_g = (int)(vfg * magn);
+ v_b = (int)(vfb * magn);
+ }
+
+ minp = maxp = NULL;
+ mind = 0x7fffffff;
+ maxd = -0x80000000;
+
+ // Pick colors at extreme points
+ for (i = 0; i < 16; i++) {
+ if (block[i * 4 + 3] == 0) {
+ continue;
+ }
+
+ int dot = block[i * 4 + 0] * v_r + block[i * 4 + 1] * v_g + block[i * 4 + 2] * v_b;
+
+ if (dot < mind) {
+ mind = dot;
+ minp = block + i * 4;
+ }
+
+ if (dot > maxd) {
+ maxd = dot;
+ maxp = block + i * 4;
+ }
+ }
+
+ if (!maxp) {
+ // all alpha, no color
+ *pmin16 = 0xffff;
+ *pmax16 = 0;
+ } else {
+ // endpoint colors found
+ *pmax16 = stb__As16Bit(maxp[0], maxp[1], maxp[2]);
+ *pmin16 = stb__As16Bit(minp[0], minp[1], minp[2]);
+
+ if (*pmax16 == *pmin16) {
+ // modify the endpoints to indicate presence of an alpha block
+ if (*pmax16 > 0) {
+ (*pmax16)--;
+ } else {
+ (*pmin16)++;
+ }
+ }
+
+ stb__ReorderColors(pmax16, pmin16);
+ }
+}
+
+static const float stb__midpoints5[32] = {
+ 0.015686f, 0.047059f, 0.078431f, 0.111765f, 0.145098f, 0.176471f, 0.207843f, 0.241176f,
+ 0.274510f, 0.305882f, 0.337255f, 0.370588f, 0.403922f, 0.435294f, 0.466667f, 0.5f,
+ 0.533333f, 0.564706f, 0.596078f, 0.629412f, 0.662745f, 0.694118f, 0.725490f, 0.758824f,
+ 0.792157f, 0.823529f, 0.854902f, 0.888235f, 0.921569f, 0.952941f, 0.984314f, 1.0f};
+
+static const float stb__midpoints6[64] = {
+ 0.007843f, 0.023529f, 0.039216f, 0.054902f, 0.070588f, 0.086275f, 0.101961f, 0.117647f,
+ 0.133333f, 0.149020f, 0.164706f, 0.180392f, 0.196078f, 0.211765f, 0.227451f, 0.245098f,
+ 0.262745f, 0.278431f, 0.294118f, 0.309804f, 0.325490f, 0.341176f, 0.356863f, 0.372549f,
+ 0.388235f, 0.403922f, 0.419608f, 0.435294f, 0.450980f, 0.466667f, 0.482353f, 0.500000f,
+ 0.517647f, 0.533333f, 0.549020f, 0.564706f, 0.580392f, 0.596078f, 0.611765f, 0.627451f,
+ 0.643137f, 0.658824f, 0.674510f, 0.690196f, 0.705882f, 0.721569f, 0.737255f, 0.754902f,
+ 0.772549f, 0.788235f, 0.803922f, 0.819608f, 0.835294f, 0.850980f, 0.866667f, 0.882353f,
+ 0.898039f, 0.913725f, 0.929412f, 0.945098f, 0.960784f, 0.976471f, 0.992157f, 1.0f};
+
+static unsigned short stb__Quantize5(float x) {
+ unsigned short q;
+ x = x < 0 ? 0 : x > 1 ? 1 : x; // saturate
+ q = (unsigned short)(x * 31);
+ q += (x > stb__midpoints5[q]);
+ return q;
+}
+
+static unsigned short stb__Quantize6(float x) {
+ unsigned short q;
+ x = x < 0 ? 0 : x > 1 ? 1 : x; // saturate
+ q = (unsigned short)(x * 63);
+ q += (x > stb__midpoints6[q]);
+ return q;
+}
+
+// The refinement function. (Clever code, part 2)
+// Tries to optimize colors to suit block contents better.
+// (By solving a least squares system via normal equations+Cramer's rule)
+static int stb__RefineBlock(unsigned char* block, unsigned short* pmax16, unsigned short* pmin16,
+ unsigned int mask) {
+ static const int w1Tab[4] = {3, 0, 2, 1};
+ static const int prods[4] = {0x090000, 0x000900, 0x040102, 0x010402};
+ // ^some magic to save a lot of multiplies in the accumulating loop...
+ // (precomputed products of weights for least squares system, accumulated
+ // inside one 32-bit register)
+
+ float f;
+ unsigned short oldMin, oldMax, min16, max16;
+ int i, akku = 0, xx, xy, yy;
+ int At1_r, At1_g, At1_b;
+ int At2_r, At2_g, At2_b;
+ unsigned int cm = mask;
+
+ oldMin = *pmin16;
+ oldMax = *pmax16;
+
+ if ((mask ^ (mask << 2)) < 4) // all pixels have the same index?
+ {
+ // yes, linear system would be singular; solve using optimal
+ // single-color match on average color
+ int r = 8, g = 8, b = 8;
+ for (i = 0; i < 16; ++i) {
+ r += block[i * 4 + 0];
+ g += block[i * 4 + 1];
+ b += block[i * 4 + 2];
+ }
+
+ r >>= 4;
+ g >>= 4;
+ b >>= 4;
+
+ max16 = static_cast<unsigned short>((stb__OMatch5[r][0] << 11) | (stb__OMatch6[g][0] << 5) |
+ stb__OMatch5[b][0]);
+ min16 = static_cast<unsigned short>((stb__OMatch5[r][1] << 11) | (stb__OMatch6[g][1] << 5) |
+ stb__OMatch5[b][1]);
+ } else {
+ At1_r = At1_g = At1_b = 0;
+ At2_r = At2_g = At2_b = 0;
+ for (i = 0; i < 16; ++i, cm >>= 2) {
+ int step = cm & 3;
+ int w1 = w1Tab[step];
+ int r = block[i * 4 + 0];
+ int g = block[i * 4 + 1];
+ int b = block[i * 4 + 2];
+
+ akku += prods[step];
+ At1_r += w1 * r;
+ At1_g += w1 * g;
+ At1_b += w1 * b;
+ At2_r += r;
+ At2_g += g;
+ At2_b += b;
+ }
+
+ At2_r = 3 * At2_r - At1_r;
+ At2_g = 3 * At2_g - At1_g;
+ At2_b = 3 * At2_b - At1_b;
+
+ // extract solutions and decide solvability
+ xx = akku >> 16;
+ yy = (akku >> 8) & 0xff;
+ xy = (akku >> 0) & 0xff;
+
+ f = 3.0f / 255.0f / static_cast<float>(xx * yy - xy * xy);
+
+ max16 = static_cast<unsigned short>(
+ stb__Quantize5(static_cast<float>(At1_r * yy - At2_r * xy) * f) << 11);
+ max16 |= static_cast<unsigned short>(
+ stb__Quantize6(static_cast<float>(At1_g * yy - At2_g * xy) * f) << 5);
+ max16 |= static_cast<unsigned short>(
+ stb__Quantize5(static_cast<float>(At1_b * yy - At2_b * xy) * f) << 0);
+
+ min16 = static_cast<unsigned short>(
+ stb__Quantize5(static_cast<float>(At2_r * xx - At1_r * xy) * f) << 11);
+ min16 |= static_cast<unsigned short>(
+ stb__Quantize6(static_cast<float>(At2_g * xx - At1_g * xy) * f) << 5);
+ min16 |= static_cast<unsigned short>(
+ stb__Quantize5(static_cast<float>(At2_b * xx - At1_b * xy) * f) << 0);
+ }
+
+ *pmin16 = min16;
+ *pmax16 = max16;
+ stb__ReorderColors(pmax16, pmin16);
+
+ return oldMin != min16 || oldMax != max16;
+}
+
+// Color block compression
+static void stb__CompressColorBlock(unsigned char* dest, unsigned char* block, int alpha,
+ int mode) {
+ unsigned int mask;
+ int i;
+ int refinecount;
+ unsigned short max16, min16;
+ unsigned char color[4 * 4];
+
+ refinecount = (mode & STB_DXT_HIGHQUAL) ? 2 : 1;
+
+ // check if block is constant
+ for (i = 1; i < 16; i++)
+ if (((unsigned int*)block)[i] != ((unsigned int*)block)[0])
+ break;
+
+ if (i == 16 && block[3] == 0 && alpha) { // constant alpha
+ mask = 0xffffffff;
+ max16 = 0;
+ min16 = 0xffff;
+ } else if (i == 16) { // constant color
+ int r = block[0], g = block[1], b = block[2];
+ mask = 0xaaaaaaaa;
+ max16 = static_cast<unsigned short>((stb__OMatch5[r][0] << 11) | (stb__OMatch6[g][0] << 5) |
+ stb__OMatch5[b][0]);
+ min16 = static_cast<unsigned short>((stb__OMatch5[r][1] << 11) | (stb__OMatch6[g][1] << 5) |
+ stb__OMatch5[b][1]);
+ } else if (alpha) {
+ stb__OptimizeColorsAlphaBlock(block, &max16, &min16);
+ stb__Eval3Colors(color, max16, min16);
+ mask = stb__MatchColorsAlphaBlock(block, color);
+ } else {
+ // first step: PCA+map along principal axis
+ stb__OptimizeColorsBlock(block, &max16, &min16);
+ if (max16 != min16) {
+ stb__Eval4Colors(color, max16, min16);
+ mask = stb__MatchColorsBlock(block, color);
+ } else
+ mask = 0;
+
+ // third step: refine (multiple times if requested)
+ for (i = 0; i < refinecount; i++) {
+ unsigned int lastmask = mask;
+
+ if (stb__RefineBlock(block, &max16, &min16, mask)) {
+ if (max16 != min16) {
+ stb__Eval4Colors(color, max16, min16);
+ mask = stb__MatchColorsBlock(block, color);
+ } else {
+ mask = 0;
+ break;
+ }
+ }
+
+ if (mask == lastmask)
+ break;
+ }
+ }
+
+ // write the color block
+ if (!alpha)
+ stb__FinalizeColors(&max16, &min16, &mask);
+
+ dest[0] = (unsigned char)(max16);
+ dest[1] = (unsigned char)(max16 >> 8);
+ dest[2] = (unsigned char)(min16);
+ dest[3] = (unsigned char)(min16 >> 8);
+ dest[4] = (unsigned char)(mask);
+ dest[5] = (unsigned char)(mask >> 8);
+ dest[6] = (unsigned char)(mask >> 16);
+ dest[7] = (unsigned char)(mask >> 24);
+}
+
+// Alpha block compression (this is easy for a change)
+static void stb__CompressAlphaBlock(unsigned char* dest, unsigned char* src, int stride) {
+ int i, dist, bias, dist4, dist2, bits, mask;
+
+ // find min/max color
+ int mn, mx;
+ mn = mx = src[0];
+
+ for (i = 1; i < 16; i++) {
+ if (src[i * stride] < mn)
+ mn = src[i * stride];
+ else if (src[i * stride] > mx)
+ mx = src[i * stride];
+ }
+
+ // encode them
+ dest[0] = (unsigned char)mx;
+ dest[1] = (unsigned char)mn;
+ dest += 2;
+
+ // determine bias and emit color indices
+ // given the choice of mx/mn, these indices are optimal:
+ // http://fgiesen.wordpress.com/2009/12/15/dxt5-alpha-block-index-determination/
+ dist = mx - mn;
+ dist4 = dist * 4;
+ dist2 = dist * 2;
+ bias = (dist < 8) ? (dist - 1) : (dist / 2 + 2);
+ bias -= mn * 7;
+ bits = 0, mask = 0;
+
+ for (i = 0; i < 16; i++) {
+ int a = src[i * stride] * 7 + bias;
+ int ind, t;
+
+ // select index. this is a "linear scale" lerp factor between 0 (val=min)
+ // and 7 (val=max).
+ t = (a >= dist4) ? -1 : 0;
+ ind = t & 4;
+ a -= dist4 & t;
+ t = (a >= dist2) ? -1 : 0;
+ ind += t & 2;
+ a -= dist2 & t;
+ ind += (a >= dist);
+
+ // turn linear scale into DXT index (0/1 are extremal pts)
+ ind = -ind & 7;
+ ind ^= (2 > ind);
+
+ // write index
+ mask |= ind << bits;
+ if ((bits += 3) >= 8) {
+ *dest++ = (unsigned char)mask;
+ mask >>= 8;
+ bits -= 8;
+ }
+ }
+}
+
+void stb_compress_bc1_block(unsigned char* dest, const unsigned char* src, int alpha, int mode) {
+ stb__CompressColorBlock(dest, (unsigned char*)src, alpha, mode);
+}
+
+void stb_compress_bc3_block(unsigned char* dest, const unsigned char* src, int mode) {
+ unsigned char data[16][4];
+ int i;
+
+ stb__CompressAlphaBlock(dest, (unsigned char*)src + 3, 4);
+ dest += 8;
+ // make a new copy of the data in which alpha is opaque,
+ // because code uses a fast test for color constancy
+ memcpy(data, src, 4 * 16);
+ for (i = 0; i < 16; ++i)
+ data[i][3] = 255;
+ src = &data[0][0];
+
+ stb__CompressColorBlock(dest, (unsigned char*)src, 0, mode);
+}
diff --git a/externals/stb/stb_dxt.h b/externals/stb/stb_dxt.h
new file mode 100644
index 000000000..07d1d1de4
--- /dev/null
+++ b/externals/stb/stb_dxt.h
@@ -0,0 +1,36 @@
+// SPDX-FileCopyrightText: fabian "ryg" giesen
+// SPDX-License-Identifier: MIT
+
+// stb_dxt.h - v1.12 - DXT1/DXT5 compressor
+
+#ifndef STB_INCLUDE_STB_DXT_H
+#define STB_INCLUDE_STB_DXT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef STB_DXT_STATIC
+#define STBDDEF static
+#else
+#define STBDDEF extern
+#endif
+
+// compression mode (bitflags)
+#define STB_DXT_NORMAL 0
+#define STB_DXT_DITHER 1 // use dithering. was always dubious, now deprecated. does nothing!
+#define STB_DXT_HIGHQUAL \
+ 2 // high quality mode, does two refinement steps instead of 1. ~30-40% slower.
+
+STBDDEF void stb_compress_bc1_block(unsigned char* dest,
+ const unsigned char* src_rgba_four_bytes_per_pixel, int alpha,
+ int mode);
+
+STBDDEF void stb_compress_bc3_block(unsigned char* dest, const unsigned char* src, int mode);
+
+#define STB_COMPRESS_DXT_BLOCK
+
+#ifdef __cplusplus
+}
+#endif
+#endif // STB_INCLUDE_STB_DXT_H
diff --git a/externals/vcpkg b/externals/vcpkg
-Subproject 9b22b40c6c61bf0da2d46346dd44a11e90972cc
+Subproject cbf56573a987527b39272e88cbdd11389b78c6e
diff --git a/externals/vma/VulkanMemoryAllocator b/externals/vma/VulkanMemoryAllocator
new file mode 160000
+Subproject 0aa3989b8f382f185fdf646cc83a1d16fa31d6a
diff --git a/externals/vma/vma.cpp b/externals/vma/vma.cpp
new file mode 100644
index 000000000..1fe2cf52b
--- /dev/null
+++ b/externals/vma/vma.cpp
@@ -0,0 +1,8 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#define VMA_IMPLEMENTATION
+#define VMA_STATIC_VULKAN_FUNCTIONS 0
+#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
+
+#include <vk_mem_alloc.h> \ No newline at end of file
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c7283e82c..0696201df 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -43,7 +43,7 @@ if (MSVC)
/Zo
/permissive-
/EHsc
- /std:c++latest
+ /std:c++20
/utf-8
/volatile:iso
/Zc:externConstexpr
@@ -51,8 +51,10 @@ if (MSVC)
/Zc:throwingNew
/GT
+ # Modules
+ /experimental:module- # Disable module support explicitly due to conflicts with precompiled headers
+
# External headers diagnostics
- /experimental:external # Enables the external headers options. This option isn't required in Visual Studio 2019 version 16.10 and later
/external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers
/external:W0 # Sets the default warning level to 0 for external headers, effectively turning off warnings for external headers
@@ -83,7 +85,7 @@ if (MSVC)
)
if (USE_CCACHE OR YUZU_USE_PRECOMPILED_HEADERS)
- # when caching, we need to use /Z7 to downgrade debug info to use an older but more cachable format
+ # when caching, we need to use /Z7 to downgrade debug info to use an older but more cacheable format
# Precompiled headers are deleted if not using /Z7. See https://github.com/nanoant/CMakePCHCompiler/issues/21
add_compile_options(/Z7)
else()
@@ -113,6 +115,9 @@ else()
$<$<CXX_COMPILER_ID:Clang>:-Wno-braced-scalar-init>
$<$<CXX_COMPILER_ID:Clang>:-Wno-unused-private-field>
+ $<$<CXX_COMPILER_ID:Clang>:-Werror=shadow-uncaptured-local>
+ $<$<CXX_COMPILER_ID:Clang>:-Werror=implicit-fallthrough>
+ $<$<CXX_COMPILER_ID:Clang>:-Werror=type-limits>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-braced-scalar-init>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-unused-private-field>
)
@@ -126,6 +131,17 @@ else()
add_compile_options("-stdlib=libc++")
endif()
+ # GCC bugs
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ # These diagnostics would be great if they worked, but are just completely broken
+ # and produce bogus errors on external libraries like fmt.
+ add_compile_options(
+ -Wno-array-bounds
+ -Wno-stringop-overread
+ -Wno-stringop-overflow
+ )
+ endif()
+
# Set file offset size to 64 bits.
#
# On modern Unixes, this is typically already the case. The lone exception is
@@ -181,3 +197,8 @@ endif()
if (ENABLE_WEB_SERVICE)
add_subdirectory(web_service)
endif()
+
+if (ANDROID)
+ add_subdirectory(android/app/src/main/jni)
+ target_include_directories(yuzu-android PRIVATE android/app/src/main)
+endif()
diff --git a/src/android/.gitignore b/src/android/.gitignore
new file mode 100644
index 000000000..121cc8484
--- /dev/null
+++ b/src/android/.gitignore
@@ -0,0 +1,65 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# Built application files
+*.apk
+*.ap_
+
+# Files for the ART/Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+out/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+# IntelliJ
+*.iml
+.idea/
+
+# Keystore files
+# Uncomment the following line if you do not want to check your keystore files in.
+#*.jks
+
+# External native build folder generated in Android Studio 2.2 and later
+.externalNativeBuild
+
+# CXX compile cache
+app/.cxx
+
+# Google Services (e.g. APIs or Firebase)
+google-services.json
+
+# Freeline
+freeline.py
+freeline/
+freeline_project_description.json
+
+# fastlane
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots
+fastlane/test_output
+fastlane/readme.md
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
new file mode 100644
index 000000000..bab4f4d0f
--- /dev/null
+++ b/src/android/app/build.gradle.kts
@@ -0,0 +1,270 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+import android.annotation.SuppressLint
+import kotlin.collections.setOf
+import org.jetbrains.kotlin.konan.properties.Properties
+import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
+
+plugins {
+ id("com.android.application")
+ id("org.jetbrains.kotlin.android")
+ id("kotlin-parcelize")
+ kotlin("plugin.serialization") version "1.8.21"
+ id("androidx.navigation.safeargs.kotlin")
+ id("org.jlleitschuh.gradle.ktlint") version "11.4.0"
+}
+
+/**
+ * Use the number of seconds/10 since Jan 1 2016 as the versionCode.
+ * This lets us upload a new build at most every 10 seconds for the
+ * next 680 years.
+ */
+val autoVersion = (((System.currentTimeMillis() / 1000) - 1451606400) / 10).toInt()
+
+@Suppress("UnstableApiUsage")
+android {
+ namespace = "org.yuzu.yuzu_emu"
+
+ compileSdkVersion = "android-33"
+ ndkVersion = "25.2.9519653"
+
+ buildFeatures {
+ viewBinding = true
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+
+ kotlinOptions {
+ jvmTarget = "17"
+ }
+
+ packaging {
+ // This is necessary for libadrenotools custom driver loading
+ jniLibs.useLegacyPackaging = true
+ }
+
+ defaultConfig {
+ // TODO If this is ever modified, change application_id in strings.xml
+ applicationId = "org.yuzu.yuzu_emu"
+ minSdk = 30
+ targetSdk = 33
+ versionName = getGitVersion()
+
+ // If you want to use autoVersion for the versionCode, create a property in local.properties
+ // named "autoVersioned" and set it to "true"
+ val properties = Properties()
+ val versionProperty = try {
+ properties.load(project.rootProject.file("local.properties").inputStream())
+ properties.getProperty("autoVersioned") ?: ""
+ } catch (e: Exception) { "" }
+
+ versionCode = if (versionProperty == "true") {
+ autoVersion
+ } else {
+ 1
+ }
+
+ ndk {
+ @SuppressLint("ChromeOsAbiSupport")
+ abiFilters += listOf("arm64-v8a")
+ }
+
+ buildConfigField("String", "GIT_HASH", "\"${getGitHash()}\"")
+ buildConfigField("String", "BRANCH", "\"${getBranch()}\"")
+ }
+
+ // Define build types, which are orthogonal to product flavors.
+ buildTypes {
+
+ // Signed by release key, allowing for upload to Play Store.
+ release {
+ resValue("string", "app_name_suffixed", "yuzu")
+ signingConfig = signingConfigs.getByName("debug")
+ isMinifyEnabled = true
+ isDebuggable = false
+ proguardFiles(
+ getDefaultProguardFile("proguard-android.txt"),
+ "proguard-rules.pro"
+ )
+ }
+
+ // builds a release build that doesn't need signing
+ // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
+ register("relWithDebInfo") {
+ resValue("string", "app_name_suffixed", "yuzu Debug Release")
+ signingConfig = signingConfigs.getByName("debug")
+ isMinifyEnabled = true
+ isDebuggable = true
+ proguardFiles(
+ getDefaultProguardFile("proguard-android.txt"),
+ "proguard-rules.pro"
+ )
+ versionNameSuffix = "-relWithDebInfo"
+ applicationIdSuffix = ".relWithDebInfo"
+ isJniDebuggable = true
+ }
+
+ // Signed by debug key disallowing distribution on Play Store.
+ // Attaches 'debug' suffix to version and package name, allowing installation alongside the release build.
+ debug {
+ resValue("string", "app_name_suffixed", "yuzu Debug")
+ isDebuggable = true
+ isJniDebuggable = true
+ versionNameSuffix = "-debug"
+ applicationIdSuffix = ".debug"
+ }
+ }
+
+ flavorDimensions.add("version")
+ productFlavors {
+ create("mainline") {
+ dimension = "version"
+ buildConfigField("Boolean", "PREMIUM", "false")
+ }
+
+ create("ea") {
+ dimension = "version"
+ buildConfigField("Boolean", "PREMIUM", "true")
+ applicationIdSuffix = ".ea"
+ }
+ }
+
+ externalNativeBuild {
+ cmake {
+ version = "3.22.1"
+ path = file("../../../CMakeLists.txt")
+ }
+ }
+
+ defaultConfig {
+ externalNativeBuild {
+ cmake {
+ arguments(
+ "-DENABLE_QT=0", // Don't use QT
+ "-DENABLE_SDL2=0", // Don't use SDL
+ "-DENABLE_WEB_SERVICE=0", // Don't use telemetry
+ "-DBUNDLE_SPEEX=ON",
+ "-DANDROID_ARM_NEON=true", // cryptopp requires Neon to work
+ "-DYUZU_USE_BUNDLED_VCPKG=ON",
+ "-DYUZU_USE_BUNDLED_FFMPEG=ON",
+ "-DYUZU_ENABLE_LTO=ON"
+ )
+
+ abiFilters("arm64-v8a", "x86_64")
+ }
+ }
+ }
+}
+
+tasks.getByPath("preBuild").dependsOn("ktlintCheck")
+
+ktlint {
+ version.set("0.47.1")
+ android.set(true)
+ ignoreFailures.set(false)
+ disabledRules.set(
+ setOf(
+ "no-wildcard-imports",
+ "package-name",
+ "import-ordering"
+ )
+ )
+ reporters {
+ reporter(ReporterType.CHECKSTYLE)
+ }
+}
+
+dependencies {
+ implementation("androidx.core:core-ktx:1.10.1")
+ implementation("androidx.appcompat:appcompat:1.6.1")
+ implementation("androidx.recyclerview:recyclerview:1.3.0")
+ implementation("androidx.constraintlayout:constraintlayout:2.1.4")
+ implementation("androidx.fragment:fragment-ktx:1.6.0")
+ implementation("androidx.documentfile:documentfile:1.0.1")
+ implementation("com.google.android.material:material:1.9.0")
+ implementation("androidx.preference:preference:1.2.0")
+ implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")
+ implementation("io.coil-kt:coil:2.2.2")
+ implementation("androidx.core:core-splashscreen:1.0.1")
+ implementation("androidx.window:window:1.1.0")
+ implementation("org.ini4j:ini4j:0.5.4")
+ implementation("androidx.constraintlayout:constraintlayout:2.1.4")
+ implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
+ implementation("androidx.navigation:navigation-fragment-ktx:2.6.0")
+ implementation("androidx.navigation:navigation-ui-ktx:2.6.0")
+ implementation("info.debatty:java-string-similarity:2.0.0")
+ implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
+}
+
+fun getGitVersion(): String {
+ var versionName = "0.0"
+
+ try {
+ versionName = ProcessBuilder("git", "describe", "--always", "--long")
+ .directory(project.rootDir)
+ .redirectOutput(ProcessBuilder.Redirect.PIPE)
+ .redirectError(ProcessBuilder.Redirect.PIPE)
+ .start().inputStream.bufferedReader().use { it.readText() }
+ .trim()
+ .replace(Regex("(-0)?-[^-]+$"), "")
+ } catch (e: Exception) {
+ logger.error("Cannot find git, defaulting to dummy version number")
+ }
+
+ if (System.getenv("GITHUB_ACTIONS") != null) {
+ val gitTag = System.getenv("GIT_TAG_NAME")
+ versionName = gitTag ?: versionName
+ }
+
+ return versionName
+}
+
+fun getGitHash(): String {
+ try {
+ val processBuilder = ProcessBuilder("git", "rev-parse", "--short", "HEAD")
+ processBuilder.directory(project.rootDir)
+ val process = processBuilder.start()
+ val inputStream = process.inputStream
+ val errorStream = process.errorStream
+ process.waitFor()
+
+ return if (process.exitValue() == 0) {
+ inputStream.bufferedReader()
+ .use { it.readText().trim() } // return the value of gitHash
+ } else {
+ val errorMessage = errorStream.bufferedReader().use { it.readText().trim() }
+ logger.error("Error running git command: $errorMessage")
+ "dummy-hash" // return a dummy hash value in case of an error
+ }
+ } catch (e: Exception) {
+ logger.error("$e: Cannot find git, defaulting to dummy build hash")
+ return "dummy-hash" // return a dummy hash value in case of an error
+ }
+}
+
+fun getBranch(): String {
+ try {
+ val processBuilder = ProcessBuilder("git", "rev-parse", "--abbrev-ref", "HEAD")
+ processBuilder.directory(project.rootDir)
+ val process = processBuilder.start()
+ val inputStream = process.inputStream
+ val errorStream = process.errorStream
+ process.waitFor()
+
+ return if (process.exitValue() == 0) {
+ inputStream.bufferedReader()
+ .use { it.readText().trim() } // return the value of gitHash
+ } else {
+ val errorMessage = errorStream.bufferedReader().use { it.readText().trim() }
+ logger.error("Error running git command: $errorMessage")
+ "dummy-hash" // return a dummy hash value in case of an error
+ }
+ } catch (e: Exception) {
+ logger.error("$e: Cannot find git, defaulting to dummy build hash")
+ return "dummy-hash" // return a dummy hash value in case of an error
+ }
+}
diff --git a/src/android/app/proguard-rules.pro b/src/android/app/proguard-rules.pro
new file mode 100644
index 000000000..691e08fd0
--- /dev/null
+++ b/src/android/app/proguard-rules.pro
@@ -0,0 +1,24 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# To get usable stack traces
+-dontobfuscate
+
+# Prevents crashing when using Wini
+-keep class org.ini4j.spi.IniParser
+-keep class org.ini4j.spi.IniBuilder
+-keep class org.ini4j.spi.IniFormatter
+
+# Suppress warnings for R8
+-dontwarn org.bouncycastle.jsse.BCSSLParameters
+-dontwarn org.bouncycastle.jsse.BCSSLSocket
+-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
+-dontwarn org.conscrypt.Conscrypt$Version
+-dontwarn org.conscrypt.Conscrypt
+-dontwarn org.conscrypt.ConscryptHostnameVerifier
+-dontwarn org.openjsse.javax.net.ssl.SSLParameters
+-dontwarn org.openjsse.javax.net.ssl.SSLSocket
+-dontwarn org.openjsse.net.ssl.OpenJSSE
+-dontwarn java.beans.Introspector
+-dontwarn java.beans.VetoableChangeListener
+-dontwarn java.beans.VetoableChangeSupport
diff --git a/src/android/app/src/ea/res/drawable/ic_yuzu.xml b/src/android/app/src/ea/res/drawable/ic_yuzu.xml
new file mode 100644
index 000000000..deb8ba53f
--- /dev/null
+++ b/src/android/app/src/ea/res/drawable/ic_yuzu.xml
@@ -0,0 +1,22 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="200dp"
+ android:height="200dp"
+ android:viewportWidth="500"
+ android:viewportHeight="500">
+ <path
+ android:fillColor="#C6C6C6"
+ android:fillType="nonZero"
+ android:pathData="M262.66,175.11L262.66,375.05C318.54,375.05 363.85,330.29 363.85,275.08C363.85,219.87 318.54,175.11 262.66,175.11M282.43,197.01C318.67,206 344.09,238.19 344.09,275.11C344.09,312.03 318.67,344.22 282.43,353.2L282.43,197.01"
+ android:strokeWidth="1.46"
+ android:strokeColor="#00000000"
+ android:strokeLineCap="butt"
+ android:strokeLineJoin="miter" />
+ <path
+ android:fillColor="#FFDC00"
+ android:fillType="nonZero"
+ android:pathData="M237.31,125.11C181.43,125.11 136.12,169.87 136.12,225.08C136.12,280.29 181.43,325.05 237.31,325.05ZM217.57,147.01L217.57,303.2C189.11,296.16 166.67,274.54 158.84,246.6C151.01,218.65 159,188.71 179.75,168.21C190.16,157.86 203.24,150.53 217.57,147.01"
+ android:strokeWidth="1.46"
+ android:strokeColor="#00000000"
+ android:strokeLineCap="butt"
+ android:strokeLineJoin="miter" />
+</vector>
diff --git a/src/android/app/src/ea/res/drawable/ic_yuzu_full.xml b/src/android/app/src/ea/res/drawable/ic_yuzu_full.xml
new file mode 100644
index 000000000..4ef472876
--- /dev/null
+++ b/src/android/app/src/ea/res/drawable/ic_yuzu_full.xml
@@ -0,0 +1,12 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="155.3dp"
+ android:height="172.55dp"
+ android:viewportWidth="155.3"
+ android:viewportHeight="172.55">
+ <path
+ android:fillColor="#C6C6C6"
+ android:pathData="M86.28,34.51v138a69,69 0,0 0,0 -138M99.76,49.63a55.57,55.57 0,0 1,0 107.8V49.63" />
+ <path
+ android:fillColor="#FFDC00"
+ android:pathData="M69,0a69,69 0,0 0,0 138ZM55.54,15.12v107.8A55.55,55.55 0,0 1,29.75 29.75,55.1 55.1,0 0,1 55.54,15.12" />
+</vector>
diff --git a/src/android/app/src/ea/res/drawable/ic_yuzu_title.xml b/src/android/app/src/ea/res/drawable/ic_yuzu_title.xml
new file mode 100644
index 000000000..29d0cfced
--- /dev/null
+++ b/src/android/app/src/ea/res/drawable/ic_yuzu_title.xml
@@ -0,0 +1,24 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="340.97dp"
+ android:height="389.85dp"
+ android:viewportWidth="340.97"
+ android:viewportHeight="389.85">
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M341,268.68v73c0,14.5 -2.24,25.24 -6.83,32.82 -5.92,10.15 -16.21,15.32 -30.54,15.32S279,384.61 273,374.27c-4.56,-7.64 -6.8,-18.42 -6.8,-32.92V268.68a4.52,4.52 0,0 1,4.51 -4.51H273a4.5,4.5 0,0 1,4.5 4.51v72.5c0,33.53 14.88,37.4 26.07,37.4 12.14,0 26.08,-4.17 26.08,-36.71V268.68a4.52,4.52 0,0 1,4.52 -4.51h2.27A4.5,4.5 0,0 1,341 268.68Z" />
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M246.49,389.85H178.6c-2.35,0 -4.72,-1.88 -4.72,-6.08a8.28,8.28 0,0 1,1.33 -4.48l60.33,-104.47H186a4.51,4.51 0,0 1,-4.51 -4.51v-1.58a4.51,4.51 0,0 1,4.48 -4.51h0.8c58.69,-0.11 59.12,0 59.67,0.07a5.19,5.19 0,0 1,4 5.8,8.69 8.69,0 0,1 -1.33,3.76l-60.6,104.77h58a4.51,4.51 0,0 1,4.51 4.51v2.21A4.51,4.51 0,0 1,246.49 389.85Z" />
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M73.6,268.68v82.06c0,26 -11.8,38.44 -37.12,39.09h-0.12a4.51,4.51 0,0 1,-4.51 -4.51V383a4.51,4.51 0,0 1,4.48 -4.5c18.49,-0.15 26,-8.23 26,-27.9v-2.37A32.34,32.34 0,0 1,59 351.46c-6.39,5.5 -14.5,8.29 -24.07,8.29C12.09,359.75 0,347.34 0,323.86V268.68a4.52,4.52 0,0 1,4.51 -4.51H6.73a4.52,4.52 0,0 1,4.5 4.51v55c0,7.6 1.82,14.22 5,18.18 3.57,4.56 9.17,6.49 18.75,6.49 10.13,0 17.32,-3.76 22,-11.5 3.61,-5.92 5.43,-13.66 5.43,-23V268.68a4.52,4.52 0,0 1,4.51 -4.51h2.22A4.52,4.52 0,0 1,73.6 268.68Z" />
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M163.27,268.68v73c0,14.5 -2.24,25.24 -6.84,32.82 -5.92,10.15 -16.2,15.32 -30.53,15.32s-24.62,-5.23 -30.58,-15.57c-4.56,-7.64 -6.79,-18.42 -6.79,-32.92V268.68A4.51,4.51 0,0 1,93 264.17h2.28a4.51,4.51 0,0 1,4.51 4.51v72.5c0,33.53 14.88,37.4 26.07,37.4 12.14,0 26.08,-4.17 26.08,-36.71V268.68a4.51,4.51 0,0 1,4.51 -4.51h2.27A4.51,4.51 0,0 1,163.27 268.68Z" />
+ <path
+ android:fillColor="#C6C6C6"
+ android:pathData="M181.2,42.83V214.17a85.67,85.67 0,0 0,0 -171.34M197.93,61.6a69,69 0,0 1,0 133.8V61.6" />
+ <path
+ android:fillColor="#FFDC00"
+ android:pathData="M159.78,0a85.67,85.67 0,1 0,0 171.33ZM143.05,18.77v133.8A69,69 0,0 1,111 36.92a68.47,68.47 0,0 1,32 -18.15" />
+</vector>
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 000000000..e31ad69e2
--- /dev/null
+++ b/src/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+SPDX-License-Identifier: GPL-3.0-or-later
+-->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
+ <uses-feature android:name="android.hardware.gamepad" android:required="false" />
+ <uses-feature android:name="android.software.leanback" android:required="false" />
+ <uses-feature android:name="android.hardware.vulkan.version" android:version="0x401000" android:required="true" />
+
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
+ <uses-permission android:name="android.permission.NFC" />
+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
+
+ <application
+ android:name="org.yuzu.yuzu_emu.YuzuApplication"
+ android:label="@string/app_name_suffixed"
+ android:icon="@drawable/ic_launcher"
+ android:allowBackup="true"
+ android:hasFragileUserData="true"
+ android:supportsRtl="true"
+ android:isGame="true"
+ android:localeConfig="@xml/locales_config"
+ android:banner="@drawable/tv_banner"
+ android:extractNativeLibs="true"
+ android:fullBackupContent="@xml/data_extraction_rules"
+ android:dataExtractionRules="@xml/data_extraction_rules_api_31"
+ android:enableOnBackInvokedCallback="true">
+
+ <activity
+ android:name="org.yuzu.yuzu_emu.ui.main.MainActivity"
+ android:exported="true"
+ android:theme="@style/Theme.Yuzu.Splash.Main">
+
+ <!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ <activity
+ android:name="org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity"
+ android:theme="@style/Theme.Yuzu.Main"
+ android:label="@string/preferences_settings"/>
+
+ <activity
+ android:name="org.yuzu.yuzu_emu.activities.EmulationActivity"
+ android:theme="@style/Theme.Yuzu.Main"
+ android:screenOrientation="userLandscape"
+ android:supportsPictureInPicture="true"
+ android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|uiMode"
+ android:exported="true">
+
+ <intent-filter>
+ <action android:name="android.nfc.action.TECH_DISCOVERED" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="application/octet-stream" />
+ </intent-filter>
+
+ <meta-data
+ android:name="android.nfc.action.TECH_DISCOVERED"
+ android:resource="@xml/nfc_tech_filter" />
+ </activity>
+
+ <service android:name="org.yuzu.yuzu_emu.utils.ForegroundService"/>
+
+ <provider
+ android:name=".features.DocumentProvider"
+ android:authorities="${applicationId}.user"
+ android:grantUriPermissions="true"
+ android:exported="true"
+ android:permission="android.permission.MANAGE_DOCUMENTS">
+ <intent-filter>
+ <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
+ </intent-filter>
+ </provider>
+
+ </application>
+
+</manifest>
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt
new file mode 100644
index 000000000..9c32e044c
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt
@@ -0,0 +1,571 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu
+
+import android.app.Dialog
+import android.content.DialogInterface
+import android.os.Bundle
+import android.text.Html
+import android.text.method.LinkMovementMethod
+import android.view.Surface
+import android.view.View
+import android.widget.TextView
+import androidx.annotation.Keep
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import java.lang.ref.WeakReference
+import org.yuzu.yuzu_emu.YuzuApplication.Companion.appContext
+import org.yuzu.yuzu_emu.activities.EmulationActivity
+import org.yuzu.yuzu_emu.utils.DocumentsTree.Companion.isNativePath
+import org.yuzu.yuzu_emu.utils.FileUtil.exists
+import org.yuzu.yuzu_emu.utils.FileUtil.getFileSize
+import org.yuzu.yuzu_emu.utils.FileUtil.isDirectory
+import org.yuzu.yuzu_emu.utils.FileUtil.openContentUri
+import org.yuzu.yuzu_emu.utils.Log.error
+import org.yuzu.yuzu_emu.utils.Log.verbose
+import org.yuzu.yuzu_emu.utils.Log.warning
+import org.yuzu.yuzu_emu.utils.SerializableHelper.serializable
+
+/**
+ * Class which contains methods that interact
+ * with the native side of the Yuzu code.
+ */
+object NativeLibrary {
+ /**
+ * Default controller id for each device
+ */
+ const val Player1Device = 0
+ const val Player2Device = 1
+ const val Player3Device = 2
+ const val Player4Device = 3
+ const val Player5Device = 4
+ const val Player6Device = 5
+ const val Player7Device = 6
+ const val Player8Device = 7
+ const val ConsoleDevice = 8
+
+ /**
+ * Controller type for each device
+ */
+ const val ProController = 3
+ const val Handheld = 4
+ const val JoyconDual = 5
+ const val JoyconLeft = 6
+ const val JoyconRight = 7
+ const val GameCube = 8
+ const val Pokeball = 9
+ const val NES = 10
+ const val SNES = 11
+ const val N64 = 12
+ const val SegaGenesis = 13
+
+ @JvmField
+ var sEmulationActivity = WeakReference<EmulationActivity?>(null)
+
+ init {
+ try {
+ System.loadLibrary("yuzu-android")
+ } catch (ex: UnsatisfiedLinkError) {
+ error("[NativeLibrary] $ex")
+ }
+ }
+
+ @Keep
+ @JvmStatic
+ fun openContentUri(path: String?, openmode: String?): Int {
+ return if (isNativePath(path!!)) {
+ YuzuApplication.documentsTree!!.openContentUri(path, openmode)
+ } else {
+ openContentUri(appContext, path, openmode)
+ }
+ }
+
+ @Keep
+ @JvmStatic
+ fun getSize(path: String?): Long {
+ return if (isNativePath(path!!)) {
+ YuzuApplication.documentsTree!!.getFileSize(path)
+ } else {
+ getFileSize(appContext, path)
+ }
+ }
+
+ @Keep
+ @JvmStatic
+ fun exists(path: String?): Boolean {
+ return if (isNativePath(path!!)) {
+ YuzuApplication.documentsTree!!.exists(path)
+ } else {
+ exists(appContext, path)
+ }
+ }
+
+ @Keep
+ @JvmStatic
+ fun isDirectory(path: String?): Boolean {
+ return if (isNativePath(path!!)) {
+ YuzuApplication.documentsTree!!.isDirectory(path)
+ } else {
+ isDirectory(appContext, path)
+ }
+ }
+
+ /**
+ * Returns true if pro controller isn't available and handheld is
+ */
+ external fun isHandheldOnly(): Boolean
+
+ /**
+ * Changes controller type for a specific device.
+ *
+ * @param Device The input descriptor of the gamepad.
+ * @param Type The NpadStyleIndex of the gamepad.
+ */
+ external fun setDeviceType(Device: Int, Type: Int): Boolean
+
+ /**
+ * Handles event when a gamepad is connected.
+ *
+ * @param Device The input descriptor of the gamepad.
+ */
+ external fun onGamePadConnectEvent(Device: Int): Boolean
+
+ /**
+ * Handles event when a gamepad is disconnected.
+ *
+ * @param Device The input descriptor of the gamepad.
+ */
+ external fun onGamePadDisconnectEvent(Device: Int): Boolean
+
+ /**
+ * Handles button press events for a gamepad.
+ *
+ * @param Device The input descriptor of the gamepad.
+ * @param Button Key code identifying which button was pressed.
+ * @param Action Mask identifying which action is happening (button pressed down, or button released).
+ * @return If we handled the button press.
+ */
+ external fun onGamePadButtonEvent(Device: Int, Button: Int, Action: Int): Boolean
+
+ /**
+ * Handles joystick movement events.
+ *
+ * @param Device The device ID of the gamepad.
+ * @param Axis The axis ID
+ * @param x_axis The value of the x-axis represented by the given ID.
+ * @param y_axis The value of the y-axis represented by the given ID.
+ */
+ external fun onGamePadJoystickEvent(
+ Device: Int,
+ Axis: Int,
+ x_axis: Float,
+ y_axis: Float
+ ): Boolean
+
+ /**
+ * Handles motion events.
+ *
+ * @param delta_timestamp The finger id corresponding to this event
+ * @param gyro_x,gyro_y,gyro_z The value of the accelerometer sensor.
+ * @param accel_x,accel_y,accel_z The value of the y-axis
+ */
+ external fun onGamePadMotionEvent(
+ Device: Int,
+ delta_timestamp: Long,
+ gyro_x: Float,
+ gyro_y: Float,
+ gyro_z: Float,
+ accel_x: Float,
+ accel_y: Float,
+ accel_z: Float
+ ): Boolean
+
+ /**
+ * Signals and load a nfc tag
+ *
+ * @param data Byte array containing all the data from a nfc tag
+ */
+ external fun onReadNfcTag(data: ByteArray?): Boolean
+
+ /**
+ * Removes current loaded nfc tag
+ */
+ external fun onRemoveNfcTag(): Boolean
+
+ /**
+ * Handles touch press events.
+ *
+ * @param finger_id The finger id corresponding to this event
+ * @param x_axis The value of the x-axis.
+ * @param y_axis The value of the y-axis.
+ */
+ external fun onTouchPressed(finger_id: Int, x_axis: Float, y_axis: Float)
+
+ /**
+ * Handles touch movement.
+ *
+ * @param x_axis The value of the instantaneous x-axis.
+ * @param y_axis The value of the instantaneous y-axis.
+ */
+ external fun onTouchMoved(finger_id: Int, x_axis: Float, y_axis: Float)
+
+ /**
+ * Handles touch release events.
+ *
+ * @param finger_id The finger id corresponding to this event
+ */
+ external fun onTouchReleased(finger_id: Int)
+
+ external fun reloadSettings()
+
+ external fun getUserSetting(gameID: String?, Section: String?, Key: String?): String?
+
+ external fun setUserSetting(gameID: String?, Section: String?, Key: String?, Value: String?)
+
+ external fun initGameIni(gameID: String?)
+
+ /**
+ * Gets the embedded icon within the given ROM.
+ *
+ * @param filename the file path to the ROM.
+ * @return a byte array containing the JPEG data for the icon.
+ */
+ external fun getIcon(filename: String): ByteArray
+
+ /**
+ * Gets the embedded title of the given ISO/ROM.
+ *
+ * @param filename The file path to the ISO/ROM.
+ * @return the embedded title of the ISO/ROM.
+ */
+ external fun getTitle(filename: String): String
+
+ external fun getDescription(filename: String): String
+
+ external fun getGameId(filename: String): String
+
+ external fun getRegions(filename: String): String
+
+ external fun getCompany(filename: String): String
+
+ external fun isHomebrew(filename: String): Boolean
+
+ external fun setAppDirectory(directory: String)
+
+ external fun installFileToNand(filename: String): Int
+
+ external fun initializeGpuDriver(
+ hookLibDir: String?,
+ customDriverDir: String?,
+ customDriverName: String?,
+ fileRedirectDir: String?
+ )
+
+ external fun reloadKeys(): Boolean
+
+ external fun initializeEmulation()
+
+ external fun defaultCPUCore(): Int
+
+ /**
+ * Begins emulation.
+ */
+ external fun run(path: String?)
+
+ /**
+ * Begins emulation from the specified savestate.
+ */
+ external fun run(path: String?, savestatePath: String?, deleteSavestate: Boolean)
+
+ // Surface Handling
+ external fun surfaceChanged(surf: Surface?)
+
+ external fun surfaceDestroyed()
+
+ /**
+ * Unpauses emulation from a paused state.
+ */
+ external fun unpauseEmulation()
+
+ /**
+ * Pauses emulation.
+ */
+ external fun pauseEmulation()
+
+ /**
+ * Stops emulation.
+ */
+ external fun stopEmulation()
+
+ /**
+ * Resets the in-memory ROM metadata cache.
+ */
+ external fun resetRomMetadata()
+
+ /**
+ * Returns true if emulation is running (or is paused).
+ */
+ external fun isRunning(): Boolean
+
+ /**
+ * Returns true if emulation is paused.
+ */
+ external fun isPaused(): Boolean
+
+ /**
+ * Mutes emulation sound
+ */
+ external fun muteAudio(): Boolean
+
+ /**
+ * Unmutes emulation sound
+ */
+ external fun unmuteAudio(): Boolean
+
+ /**
+ * Returns true if emulation audio is muted.
+ */
+ external fun isMuted(): Boolean
+
+ /**
+ * Returns the performance stats for the current game
+ */
+ external fun getPerfStats(): DoubleArray
+
+ /**
+ * Notifies the core emulation that the orientation has changed.
+ */
+ external fun notifyOrientationChange(layout_option: Int, rotation: Int)
+
+ enum class CoreError {
+ ErrorSystemFiles,
+ ErrorSavestate,
+ ErrorUnknown
+ }
+
+ private var coreErrorAlertResult = false
+ private val coreErrorAlertLock = Object()
+
+ class CoreErrorDialogFragment : DialogFragment() {
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ val title = requireArguments().serializable<String>("title")
+ val message = requireArguments().serializable<String>("message")
+
+ return MaterialAlertDialogBuilder(requireActivity())
+ .setTitle(title)
+ .setMessage(message)
+ .setPositiveButton(R.string.continue_button, null)
+ .setNegativeButton(R.string.abort_button) { _: DialogInterface?, _: Int ->
+ coreErrorAlertResult = false
+ synchronized(coreErrorAlertLock) { coreErrorAlertLock.notify() }
+ }
+ .create()
+ }
+
+ override fun onDismiss(dialog: DialogInterface) {
+ coreErrorAlertResult = true
+ synchronized(coreErrorAlertLock) { coreErrorAlertLock.notify() }
+ }
+
+ companion object {
+ fun newInstance(title: String?, message: String?): CoreErrorDialogFragment {
+ val frag = CoreErrorDialogFragment()
+ val args = Bundle()
+ args.putString("title", title)
+ args.putString("message", message)
+ frag.arguments = args
+ return frag
+ }
+ }
+ }
+
+ private fun onCoreErrorImpl(title: String, message: String) {
+ val emulationActivity = sEmulationActivity.get()
+ if (emulationActivity == null) {
+ error("[NativeLibrary] EmulationActivity not present")
+ return
+ }
+
+ val fragment = CoreErrorDialogFragment.newInstance(title, message)
+ fragment.show(emulationActivity.supportFragmentManager, "coreError")
+ }
+
+ /**
+ * Handles a core error.
+ *
+ * @return true: continue; false: abort
+ */
+ fun onCoreError(error: CoreError?, details: String): Boolean {
+ val emulationActivity = sEmulationActivity.get()
+ if (emulationActivity == null) {
+ error("[NativeLibrary] EmulationActivity not present")
+ return false
+ }
+
+ val title: String
+ val message: String
+ when (error) {
+ CoreError.ErrorSystemFiles -> {
+ title = emulationActivity.getString(R.string.system_archive_not_found)
+ message = emulationActivity.getString(
+ R.string.system_archive_not_found_message,
+ details.ifEmpty { emulationActivity.getString(R.string.system_archive_general) }
+ )
+ }
+ CoreError.ErrorSavestate -> {
+ title = emulationActivity.getString(R.string.save_load_error)
+ message = details
+ }
+ CoreError.ErrorUnknown -> {
+ title = emulationActivity.getString(R.string.fatal_error)
+ message = emulationActivity.getString(R.string.fatal_error_message)
+ }
+ else -> {
+ return true
+ }
+ }
+
+ // Show the AlertDialog on the main thread.
+ emulationActivity.runOnUiThread(Runnable { onCoreErrorImpl(title, message) })
+
+ // Wait for the lock to notify that it is complete.
+ synchronized(coreErrorAlertLock) { coreErrorAlertLock.wait() }
+
+ return coreErrorAlertResult
+ }
+
+ @Keep
+ @JvmStatic
+ fun exitEmulationActivity(resultCode: Int) {
+ val Success = 0
+ val ErrorNotInitialized = 1
+ val ErrorGetLoader = 2
+ val ErrorSystemFiles = 3
+ val ErrorSharedFont = 4
+ val ErrorVideoCore = 5
+ val ErrorUnknown = 6
+ val ErrorLoader = 7
+
+ val captionId: Int
+ var descriptionId: Int
+ when (resultCode) {
+ ErrorVideoCore -> {
+ captionId = R.string.loader_error_video_core
+ descriptionId = R.string.loader_error_video_core_description
+ }
+ else -> {
+ captionId = R.string.loader_error_encrypted
+ descriptionId = R.string.loader_error_encrypted_roms_description
+ if (!reloadKeys()) {
+ descriptionId = R.string.loader_error_encrypted_keys_description
+ }
+ }
+ }
+
+ val emulationActivity = sEmulationActivity.get()
+ if (emulationActivity == null) {
+ warning("[NativeLibrary] EmulationActivity is null, can't exit.")
+ return
+ }
+
+ val builder = MaterialAlertDialogBuilder(emulationActivity)
+ .setTitle(captionId)
+ .setMessage(
+ Html.fromHtml(
+ emulationActivity.getString(descriptionId),
+ Html.FROM_HTML_MODE_LEGACY
+ )
+ )
+ .setPositiveButton(android.R.string.ok) { _: DialogInterface?, _: Int ->
+ emulationActivity.finish()
+ }
+ .setOnDismissListener { emulationActivity.finish() }
+ emulationActivity.runOnUiThread {
+ val alert = builder.create()
+ alert.show()
+ (alert.findViewById<View>(android.R.id.message) as TextView).movementMethod =
+ LinkMovementMethod.getInstance()
+ }
+ }
+
+ fun setEmulationActivity(emulationActivity: EmulationActivity?) {
+ verbose("[NativeLibrary] Registering EmulationActivity.")
+ sEmulationActivity = WeakReference(emulationActivity)
+ }
+
+ fun clearEmulationActivity() {
+ verbose("[NativeLibrary] Unregistering EmulationActivity.")
+ sEmulationActivity.clear()
+ }
+
+ /**
+ * Logs the Yuzu version, Android version and, CPU.
+ */
+ external fun logDeviceInfo()
+
+ /**
+ * Submits inline keyboard text. Called on input for buttons that result text.
+ * @param text Text to submit to the inline software keyboard implementation.
+ */
+ external fun submitInlineKeyboardText(text: String?)
+
+ /**
+ * Submits inline keyboard input. Used to indicate keys pressed that are not text.
+ * @param key_code Android Key Code associated with the keyboard input.
+ */
+ external fun submitInlineKeyboardInput(key_code: Int)
+
+ /**
+ * Button type for use in onTouchEvent
+ */
+ object ButtonType {
+ const val BUTTON_A = 0
+ const val BUTTON_B = 1
+ const val BUTTON_X = 2
+ const val BUTTON_Y = 3
+ const val STICK_L = 4
+ const val STICK_R = 5
+ const val TRIGGER_L = 6
+ const val TRIGGER_R = 7
+ const val TRIGGER_ZL = 8
+ const val TRIGGER_ZR = 9
+ const val BUTTON_PLUS = 10
+ const val BUTTON_MINUS = 11
+ const val DPAD_LEFT = 12
+ const val DPAD_UP = 13
+ const val DPAD_RIGHT = 14
+ const val DPAD_DOWN = 15
+ const val BUTTON_SL = 16
+ const val BUTTON_SR = 17
+ const val BUTTON_HOME = 18
+ const val BUTTON_CAPTURE = 19
+ }
+
+ /**
+ * Stick type for use in onTouchEvent
+ */
+ object StickType {
+ const val STICK_L = 0
+ const val STICK_R = 1
+ }
+
+ /**
+ * Button states
+ */
+ object ButtonState {
+ const val RELEASED = 0
+ const val PRESSED = 1
+ }
+
+ /**
+ * Result from installFileToNand
+ */
+ object InstallFileToNandResult {
+ const val Success = 0
+ const val SuccessFileOverwritten = 1
+ const val Error = 2
+ const val ErrorBaseGame = 3
+ const val ErrorFilenameExtension = 4
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt
new file mode 100644
index 000000000..04ab6a220
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt
@@ -0,0 +1,63 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu
+
+import android.app.Application
+import android.app.NotificationChannel
+import android.app.NotificationManager
+import android.content.Context
+import java.io.File
+import org.yuzu.yuzu_emu.utils.DirectoryInitialization
+import org.yuzu.yuzu_emu.utils.DocumentsTree
+import org.yuzu.yuzu_emu.utils.GpuDriverHelper
+
+fun Context.getPublicFilesDir(): File = getExternalFilesDir(null) ?: filesDir
+
+class YuzuApplication : Application() {
+ private fun createNotificationChannels() {
+ val emulationChannel = NotificationChannel(
+ getString(R.string.emulation_notification_channel_id),
+ getString(R.string.emulation_notification_channel_name),
+ NotificationManager.IMPORTANCE_LOW
+ )
+ emulationChannel.description = getString(
+ R.string.emulation_notification_channel_description
+ )
+ emulationChannel.setSound(null, null)
+ emulationChannel.vibrationPattern = null
+
+ val noticeChannel = NotificationChannel(
+ getString(R.string.notice_notification_channel_id),
+ getString(R.string.notice_notification_channel_name),
+ NotificationManager.IMPORTANCE_HIGH
+ )
+ noticeChannel.description = getString(R.string.notice_notification_channel_description)
+ noticeChannel.setSound(null, null)
+
+ // Register the channel with the system; you can't change the importance
+ // or other notification behaviors after this
+ val notificationManager = getSystemService(NotificationManager::class.java)
+ notificationManager.createNotificationChannel(emulationChannel)
+ notificationManager.createNotificationChannel(noticeChannel)
+ }
+
+ override fun onCreate() {
+ super.onCreate()
+ application = this
+ documentsTree = DocumentsTree()
+ DirectoryInitialization.start(applicationContext)
+ GpuDriverHelper.initializeDriverParameters(applicationContext)
+ NativeLibrary.logDeviceInfo()
+
+ createNotificationChannels()
+ }
+
+ companion object {
+ var documentsTree: DocumentsTree? = null
+ lateinit var application: YuzuApplication
+
+ val appContext: Context
+ get() = application.applicationContext
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
new file mode 100644
index 000000000..ae665ed2e
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
@@ -0,0 +1,455 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.activities
+
+import android.app.Activity
+import android.app.PendingIntent
+import android.app.PictureInPictureParams
+import android.app.RemoteAction
+import android.content.BroadcastReceiver
+import android.content.Context
+import android.content.Intent
+import android.content.IntentFilter
+import android.content.res.Configuration
+import android.graphics.Rect
+import android.graphics.drawable.Icon
+import android.hardware.Sensor
+import android.hardware.SensorEvent
+import android.hardware.SensorEventListener
+import android.hardware.SensorManager
+import android.os.Build
+import android.os.Bundle
+import android.util.Rational
+import android.view.InputDevice
+import android.view.KeyEvent
+import android.view.MotionEvent
+import android.view.Surface
+import android.view.View
+import android.view.inputmethod.InputMethodManager
+import android.widget.Toast
+import androidx.activity.viewModels
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.WindowCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.WindowInsetsControllerCompat
+import androidx.navigation.fragment.NavHostFragment
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.databinding.ActivityEmulationBinding
+import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting
+import org.yuzu.yuzu_emu.features.settings.model.IntSetting
+import org.yuzu.yuzu_emu.features.settings.model.SettingsViewModel
+import org.yuzu.yuzu_emu.model.Game
+import org.yuzu.yuzu_emu.utils.ControllerMappingHelper
+import org.yuzu.yuzu_emu.utils.ForegroundService
+import org.yuzu.yuzu_emu.utils.InputHandler
+import org.yuzu.yuzu_emu.utils.MemoryUtil
+import org.yuzu.yuzu_emu.utils.NfcReader
+import org.yuzu.yuzu_emu.utils.ThemeHelper
+import kotlin.math.roundToInt
+
+class EmulationActivity : AppCompatActivity(), SensorEventListener {
+ private lateinit var binding: ActivityEmulationBinding
+
+ private var controllerMappingHelper: ControllerMappingHelper? = null
+
+ var isActivityRecreated = false
+ private lateinit var nfcReader: NfcReader
+ private lateinit var inputHandler: InputHandler
+
+ private val gyro = FloatArray(3)
+ private val accel = FloatArray(3)
+ private var motionTimestamp: Long = 0
+ private var flipMotionOrientation: Boolean = false
+
+ private val actionPause = "ACTION_EMULATOR_PAUSE"
+ private val actionPlay = "ACTION_EMULATOR_PLAY"
+ private val actionMute = "ACTION_EMULATOR_MUTE"
+ private val actionUnmute = "ACTION_EMULATOR_UNMUTE"
+
+ private val settingsViewModel: SettingsViewModel by viewModels()
+
+ override fun onDestroy() {
+ stopForegroundService(this)
+ super.onDestroy()
+ }
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ ThemeHelper.setTheme(this)
+
+ settingsViewModel.settings.loadSettings()
+
+ super.onCreate(savedInstanceState)
+
+ binding = ActivityEmulationBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ val navHostFragment =
+ supportFragmentManager.findFragmentById(R.id.fragment_container) as NavHostFragment
+ val navController = navHostFragment.navController
+ navController
+ .setGraph(R.navigation.emulation_navigation, intent.extras)
+
+ isActivityRecreated = savedInstanceState != null
+
+ controllerMappingHelper = ControllerMappingHelper()
+
+ // Set these options now so that the SurfaceView the game renders into is the right size.
+ enableFullscreenImmersive()
+
+ window.decorView.setBackgroundColor(getColor(android.R.color.black))
+
+ nfcReader = NfcReader(this)
+ nfcReader.initialize()
+
+ inputHandler = InputHandler()
+ inputHandler.initialize()
+
+ val memoryUtil = MemoryUtil(this)
+ if (memoryUtil.isLessThan(8, MemoryUtil.Gb)) {
+ Toast.makeText(
+ this,
+ getString(
+ R.string.device_memory_inadequate,
+ memoryUtil.getDeviceRAM(),
+ "8 ${getString(R.string.memory_gigabyte)}"
+ ),
+ Toast.LENGTH_LONG
+ ).show()
+ }
+
+ // Start a foreground service to prevent the app from getting killed in the background
+ val startIntent = Intent(this, ForegroundService::class.java)
+ startForegroundService(startIntent)
+ }
+
+ override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
+ if (event.action == KeyEvent.ACTION_DOWN) {
+ if (keyCode == KeyEvent.KEYCODE_ENTER) {
+ // Special case, we do not support multiline input, dismiss the keyboard.
+ val overlayView: View =
+ this.findViewById(R.id.surface_input_overlay)
+ val im =
+ overlayView.context.getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
+ im.hideSoftInputFromWindow(overlayView.windowToken, 0)
+ } else {
+ val textChar = event.unicodeChar
+ if (textChar == 0) {
+ // No text, button input.
+ NativeLibrary.submitInlineKeyboardInput(keyCode)
+ } else {
+ // Text submitted.
+ NativeLibrary.submitInlineKeyboardText(textChar.toChar().toString())
+ }
+ }
+ }
+ return super.onKeyDown(keyCode, event)
+ }
+
+ override fun onResume() {
+ super.onResume()
+ nfcReader.startScanning()
+ startMotionSensorListener()
+
+ buildPictureInPictureParams()
+ }
+
+ override fun onPause() {
+ super.onPause()
+ nfcReader.stopScanning()
+ stopMotionSensorListener()
+ }
+
+ override fun onUserLeaveHint() {
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
+ if (BooleanSetting.PICTURE_IN_PICTURE.boolean && !isInPictureInPictureMode) {
+ val pictureInPictureParamsBuilder = PictureInPictureParams.Builder()
+ .getPictureInPictureActionsBuilder().getPictureInPictureAspectBuilder()
+ enterPictureInPictureMode(pictureInPictureParamsBuilder.build())
+ }
+ }
+ }
+
+ override fun onNewIntent(intent: Intent) {
+ super.onNewIntent(intent)
+ setIntent(intent)
+ nfcReader.onNewIntent(intent)
+ }
+
+ override fun dispatchKeyEvent(event: KeyEvent): Boolean {
+ if (event.source and InputDevice.SOURCE_JOYSTICK != InputDevice.SOURCE_JOYSTICK &&
+ event.source and InputDevice.SOURCE_GAMEPAD != InputDevice.SOURCE_GAMEPAD
+ ) {
+ return super.dispatchKeyEvent(event)
+ }
+
+ return inputHandler.dispatchKeyEvent(event)
+ }
+
+ override fun dispatchGenericMotionEvent(event: MotionEvent): Boolean {
+ if (event.source and InputDevice.SOURCE_JOYSTICK != InputDevice.SOURCE_JOYSTICK &&
+ event.source and InputDevice.SOURCE_GAMEPAD != InputDevice.SOURCE_GAMEPAD
+ ) {
+ return super.dispatchGenericMotionEvent(event)
+ }
+
+ // Don't attempt to do anything if we are disconnecting a device.
+ if (event.actionMasked == MotionEvent.ACTION_CANCEL) {
+ return true
+ }
+
+ return inputHandler.dispatchGenericMotionEvent(event)
+ }
+
+ override fun onSensorChanged(event: SensorEvent) {
+ val rotation = this.display?.rotation
+ if (rotation == Surface.ROTATION_90) {
+ flipMotionOrientation = true
+ }
+ if (rotation == Surface.ROTATION_270) {
+ flipMotionOrientation = false
+ }
+
+ if (event.sensor.type == Sensor.TYPE_ACCELEROMETER) {
+ if (flipMotionOrientation) {
+ accel[0] = event.values[1] / SensorManager.GRAVITY_EARTH
+ accel[1] = -event.values[0] / SensorManager.GRAVITY_EARTH
+ } else {
+ accel[0] = -event.values[1] / SensorManager.GRAVITY_EARTH
+ accel[1] = event.values[0] / SensorManager.GRAVITY_EARTH
+ }
+ accel[2] = -event.values[2] / SensorManager.GRAVITY_EARTH
+ }
+ if (event.sensor.type == Sensor.TYPE_GYROSCOPE) {
+ // Investigate why sensor value is off by 6x
+ if (flipMotionOrientation) {
+ gyro[0] = -event.values[1] / 6.0f
+ gyro[1] = event.values[0] / 6.0f
+ } else {
+ gyro[0] = event.values[1] / 6.0f
+ gyro[1] = -event.values[0] / 6.0f
+ }
+ gyro[2] = event.values[2] / 6.0f
+ }
+
+ // Only update state on accelerometer data
+ if (event.sensor.type != Sensor.TYPE_ACCELEROMETER) {
+ return
+ }
+ val deltaTimestamp = (event.timestamp - motionTimestamp) / 1000
+ motionTimestamp = event.timestamp
+ NativeLibrary.onGamePadMotionEvent(
+ NativeLibrary.Player1Device,
+ deltaTimestamp,
+ gyro[0],
+ gyro[1],
+ gyro[2],
+ accel[0],
+ accel[1],
+ accel[2]
+ )
+ NativeLibrary.onGamePadMotionEvent(
+ NativeLibrary.ConsoleDevice,
+ deltaTimestamp,
+ gyro[0],
+ gyro[1],
+ gyro[2],
+ accel[0],
+ accel[1],
+ accel[2]
+ )
+ }
+
+ override fun onAccuracyChanged(sensor: Sensor, i: Int) {}
+
+ private fun enableFullscreenImmersive() {
+ WindowCompat.setDecorFitsSystemWindows(window, false)
+
+ WindowInsetsControllerCompat(window, window.decorView).let { controller ->
+ controller.hide(WindowInsetsCompat.Type.systemBars())
+ controller.systemBarsBehavior =
+ WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
+ }
+ }
+
+ private fun PictureInPictureParams.Builder.getPictureInPictureAspectBuilder():
+ PictureInPictureParams.Builder {
+ val aspectRatio = when (IntSetting.RENDERER_ASPECT_RATIO.int) {
+ 0 -> Rational(16, 9)
+ 1 -> Rational(4, 3)
+ 2 -> Rational(21, 9)
+ 3 -> Rational(16, 10)
+ else -> null // Best fit
+ }
+ return this.apply { aspectRatio?.let { setAspectRatio(it) } }
+ }
+
+ private fun PictureInPictureParams.Builder.getPictureInPictureActionsBuilder():
+ PictureInPictureParams.Builder {
+ val pictureInPictureActions: MutableList<RemoteAction> = mutableListOf()
+ val pendingFlags = PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
+
+ if (NativeLibrary.isPaused()) {
+ val playIcon = Icon.createWithResource(this@EmulationActivity, R.drawable.ic_pip_play)
+ val playPendingIntent = PendingIntent.getBroadcast(
+ this@EmulationActivity,
+ R.drawable.ic_pip_play,
+ Intent(actionPlay),
+ pendingFlags
+ )
+ val playRemoteAction = RemoteAction(
+ playIcon,
+ getString(R.string.play),
+ getString(R.string.play),
+ playPendingIntent
+ )
+ pictureInPictureActions.add(playRemoteAction)
+ } else {
+ val pauseIcon = Icon.createWithResource(this@EmulationActivity, R.drawable.ic_pip_pause)
+ val pausePendingIntent = PendingIntent.getBroadcast(
+ this@EmulationActivity,
+ R.drawable.ic_pip_pause,
+ Intent(actionPause),
+ pendingFlags
+ )
+ val pauseRemoteAction = RemoteAction(
+ pauseIcon,
+ getString(R.string.pause),
+ getString(R.string.pause),
+ pausePendingIntent
+ )
+ pictureInPictureActions.add(pauseRemoteAction)
+ }
+
+ if (NativeLibrary.isMuted()) {
+ val unmuteIcon = Icon.createWithResource(
+ this@EmulationActivity,
+ R.drawable.ic_pip_unmute
+ )
+ val unmutePendingIntent = PendingIntent.getBroadcast(
+ this@EmulationActivity,
+ R.drawable.ic_pip_unmute,
+ Intent(actionUnmute),
+ pendingFlags
+ )
+ val unmuteRemoteAction = RemoteAction(
+ unmuteIcon,
+ getString(R.string.unmute),
+ getString(R.string.unmute),
+ unmutePendingIntent
+ )
+ pictureInPictureActions.add(unmuteRemoteAction)
+ } else {
+ val muteIcon = Icon.createWithResource(this@EmulationActivity, R.drawable.ic_pip_mute)
+ val mutePendingIntent = PendingIntent.getBroadcast(
+ this@EmulationActivity,
+ R.drawable.ic_pip_mute,
+ Intent(actionMute),
+ pendingFlags
+ )
+ val muteRemoteAction = RemoteAction(
+ muteIcon,
+ getString(R.string.mute),
+ getString(R.string.mute),
+ mutePendingIntent
+ )
+ pictureInPictureActions.add(muteRemoteAction)
+ }
+
+ return this.apply { setActions(pictureInPictureActions) }
+ }
+
+ fun buildPictureInPictureParams() {
+ val pictureInPictureParamsBuilder = PictureInPictureParams.Builder()
+ .getPictureInPictureActionsBuilder().getPictureInPictureAspectBuilder()
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
+ pictureInPictureParamsBuilder.setAutoEnterEnabled(
+ BooleanSetting.PICTURE_IN_PICTURE.boolean
+ )
+ }
+ setPictureInPictureParams(pictureInPictureParamsBuilder.build())
+ }
+
+ private var pictureInPictureReceiver = object : BroadcastReceiver() {
+ override fun onReceive(context: Context?, intent: Intent) {
+ if (intent.action == actionPlay) {
+ if (NativeLibrary.isPaused()) NativeLibrary.unpauseEmulation()
+ } else if (intent.action == actionPause) {
+ if (!NativeLibrary.isPaused()) NativeLibrary.pauseEmulation()
+ }
+ if (intent.action == actionUnmute) {
+ if (NativeLibrary.isMuted()) NativeLibrary.unmuteAudio()
+ } else if (intent.action == actionMute) {
+ if (!NativeLibrary.isMuted()) NativeLibrary.muteAudio()
+ }
+ buildPictureInPictureParams()
+ }
+ }
+
+ override fun onPictureInPictureModeChanged(
+ isInPictureInPictureMode: Boolean,
+ newConfig: Configuration
+ ) {
+ super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
+ if (isInPictureInPictureMode) {
+ IntentFilter().apply {
+ addAction(actionPause)
+ addAction(actionPlay)
+ addAction(actionMute)
+ addAction(actionUnmute)
+ }.also {
+ registerReceiver(pictureInPictureReceiver, it)
+ }
+ } else {
+ try {
+ unregisterReceiver(pictureInPictureReceiver)
+ } catch (ignored: Exception) {
+ }
+ // Always resume audio, since there is no UI button
+ if (NativeLibrary.isMuted()) NativeLibrary.unmuteAudio()
+ }
+ }
+
+ private fun startMotionSensorListener() {
+ val sensorManager = this.getSystemService(Context.SENSOR_SERVICE) as SensorManager
+ val gyroSensor = sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE)
+ val accelSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)
+ sensorManager.registerListener(this, gyroSensor, SensorManager.SENSOR_DELAY_GAME)
+ sensorManager.registerListener(this, accelSensor, SensorManager.SENSOR_DELAY_GAME)
+ }
+
+ private fun stopMotionSensorListener() {
+ val sensorManager = this.getSystemService(Context.SENSOR_SERVICE) as SensorManager
+ val gyroSensor = sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE)
+ val accelSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)
+
+ sensorManager.unregisterListener(this, gyroSensor)
+ sensorManager.unregisterListener(this, accelSensor)
+ }
+
+ companion object {
+ const val EXTRA_SELECTED_GAME = "SelectedGame"
+
+ fun launch(activity: AppCompatActivity, game: Game) {
+ val launcher = Intent(activity, EmulationActivity::class.java)
+ launcher.putExtra(EXTRA_SELECTED_GAME, game)
+ activity.startActivity(launcher)
+ }
+
+ fun stopForegroundService(activity: Activity) {
+ val startIntent = Intent(activity, ForegroundService::class.java)
+ startIntent.action = ForegroundService.ACTION_STOP
+ activity.startForegroundService(startIntent)
+ }
+
+ private fun areCoordinatesOutside(view: View?, x: Float, y: Float): Boolean {
+ if (view == null) {
+ return true
+ }
+ val viewBounds = Rect()
+ view.getGlobalVisibleRect(viewBounds)
+ return !viewBounds.contains(x.roundToInt(), y.roundToInt())
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt
new file mode 100644
index 000000000..e91277d35
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt
@@ -0,0 +1,139 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.adapters
+
+import android.graphics.Bitmap
+import android.graphics.BitmapFactory
+import android.net.Uri
+import android.text.TextUtils
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.widget.ImageView
+import android.widget.Toast
+import androidx.appcompat.app.AppCompatActivity
+import androidx.documentfile.provider.DocumentFile
+import androidx.lifecycle.ViewModelProvider
+import androidx.lifecycle.lifecycleScope
+import androidx.navigation.findNavController
+import androidx.preference.PreferenceManager
+import androidx.recyclerview.widget.AsyncDifferConfig
+import androidx.recyclerview.widget.DiffUtil
+import androidx.recyclerview.widget.ListAdapter
+import androidx.recyclerview.widget.RecyclerView
+import coil.load
+import kotlinx.coroutines.launch
+import org.yuzu.yuzu_emu.HomeNavigationDirections
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.adapters.GameAdapter.GameViewHolder
+import org.yuzu.yuzu_emu.databinding.CardGameBinding
+import org.yuzu.yuzu_emu.model.Game
+import org.yuzu.yuzu_emu.model.GamesViewModel
+
+class GameAdapter(private val activity: AppCompatActivity) :
+ ListAdapter<Game, GameViewHolder>(AsyncDifferConfig.Builder(DiffCallback()).build()),
+ View.OnClickListener {
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): GameViewHolder {
+ // Create a new view.
+ val binding = CardGameBinding.inflate(LayoutInflater.from(parent.context), parent, false)
+ binding.cardGame.setOnClickListener(this)
+
+ // Use that view to create a ViewHolder.
+ return GameViewHolder(binding)
+ }
+
+ override fun onBindViewHolder(holder: GameViewHolder, position: Int) {
+ holder.bind(currentList[position])
+ }
+
+ override fun getItemCount(): Int = currentList.size
+
+ /**
+ * Launches the game that was clicked on.
+ *
+ * @param view The card representing the game the user wants to play.
+ */
+ override fun onClick(view: View) {
+ val holder = view.tag as GameViewHolder
+
+ val gameExists = DocumentFile.fromSingleUri(
+ YuzuApplication.appContext,
+ Uri.parse(holder.game.path)
+ )?.exists() == true
+ if (!gameExists) {
+ Toast.makeText(
+ YuzuApplication.appContext,
+ R.string.loader_error_file_not_found,
+ Toast.LENGTH_LONG
+ ).show()
+
+ ViewModelProvider(activity)[GamesViewModel::class.java].reloadGames(true)
+ return
+ }
+
+ val preferences = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+ preferences.edit()
+ .putLong(
+ holder.game.keyLastPlayedTime,
+ System.currentTimeMillis()
+ )
+ .apply()
+
+ val action = HomeNavigationDirections.actionGlobalEmulationActivity(holder.game)
+ view.findNavController().navigate(action)
+ }
+
+ inner class GameViewHolder(val binding: CardGameBinding) :
+ RecyclerView.ViewHolder(binding.root) {
+ lateinit var game: Game
+
+ init {
+ binding.cardGame.tag = this
+ }
+
+ fun bind(game: Game) {
+ this.game = game
+
+ binding.imageGameScreen.scaleType = ImageView.ScaleType.CENTER_CROP
+ activity.lifecycleScope.launch {
+ val bitmap = decodeGameIcon(game.path)
+ binding.imageGameScreen.load(bitmap) {
+ error(R.drawable.default_icon)
+ }
+ }
+
+ binding.textGameTitle.text = game.title.replace("[\\t\\n\\r]+".toRegex(), " ")
+
+ binding.textGameTitle.postDelayed(
+ {
+ binding.textGameTitle.ellipsize = TextUtils.TruncateAt.MARQUEE
+ binding.textGameTitle.isSelected = true
+ },
+ 3000
+ )
+ }
+ }
+
+ private class DiffCallback : DiffUtil.ItemCallback<Game>() {
+ override fun areItemsTheSame(oldItem: Game, newItem: Game): Boolean {
+ return oldItem.gameId == newItem.gameId
+ }
+
+ override fun areContentsTheSame(oldItem: Game, newItem: Game): Boolean {
+ return oldItem == newItem
+ }
+ }
+
+ private fun decodeGameIcon(uri: String): Bitmap? {
+ val data = NativeLibrary.getIcon(uri)
+ return BitmapFactory.decodeByteArray(
+ data,
+ 0,
+ data.size,
+ BitmapFactory.Options()
+ )
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/HomeSettingAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/HomeSettingAdapter.kt
new file mode 100644
index 000000000..d3df3bc81
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/HomeSettingAdapter.kt
@@ -0,0 +1,70 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.adapters
+
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.content.ContextCompat
+import androidx.core.content.res.ResourcesCompat
+import androidx.recyclerview.widget.RecyclerView
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.databinding.CardHomeOptionBinding
+import org.yuzu.yuzu_emu.model.HomeSetting
+
+class HomeSettingAdapter(private val activity: AppCompatActivity, var options: List<HomeSetting>) :
+ RecyclerView.Adapter<HomeSettingAdapter.HomeOptionViewHolder>(),
+ View.OnClickListener {
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): HomeOptionViewHolder {
+ val binding =
+ CardHomeOptionBinding.inflate(LayoutInflater.from(parent.context), parent, false)
+ binding.root.setOnClickListener(this)
+ return HomeOptionViewHolder(binding)
+ }
+
+ override fun getItemCount(): Int {
+ return options.size
+ }
+
+ override fun onBindViewHolder(holder: HomeOptionViewHolder, position: Int) {
+ holder.bind(options[position])
+ }
+
+ override fun onClick(view: View) {
+ val holder = view.tag as HomeOptionViewHolder
+ holder.option.onClick.invoke()
+ }
+
+ inner class HomeOptionViewHolder(val binding: CardHomeOptionBinding) :
+ RecyclerView.ViewHolder(binding.root) {
+ lateinit var option: HomeSetting
+
+ init {
+ itemView.tag = this
+ }
+
+ fun bind(option: HomeSetting) {
+ this.option = option
+ binding.optionTitle.text = activity.resources.getString(option.titleId)
+ binding.optionDescription.text = activity.resources.getString(option.descriptionId)
+ binding.optionIcon.setImageDrawable(
+ ResourcesCompat.getDrawable(
+ activity.resources,
+ option.iconId,
+ activity.theme
+ )
+ )
+
+ when (option.titleId) {
+ R.string.get_early_access ->
+ binding.optionLayout.background =
+ ContextCompat.getDrawable(
+ binding.optionCard.context,
+ R.drawable.premium_background
+ )
+ }
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/LicenseAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/LicenseAdapter.kt
new file mode 100644
index 000000000..7006651d0
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/LicenseAdapter.kt
@@ -0,0 +1,54 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.adapters
+
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.appcompat.app.AppCompatActivity
+import androidx.recyclerview.widget.RecyclerView
+import androidx.recyclerview.widget.RecyclerView.ViewHolder
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
+import org.yuzu.yuzu_emu.fragments.LicenseBottomSheetDialogFragment
+import org.yuzu.yuzu_emu.model.License
+
+class LicenseAdapter(private val activity: AppCompatActivity, var licenses: List<License>) :
+ RecyclerView.Adapter<LicenseAdapter.LicenseViewHolder>(),
+ View.OnClickListener {
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): LicenseViewHolder {
+ val binding =
+ ListItemSettingBinding.inflate(LayoutInflater.from(parent.context), parent, false)
+ binding.root.setOnClickListener(this)
+ return LicenseViewHolder(binding)
+ }
+
+ override fun getItemCount(): Int = licenses.size
+
+ override fun onBindViewHolder(holder: LicenseViewHolder, position: Int) {
+ holder.bind(licenses[position])
+ }
+
+ override fun onClick(view: View) {
+ val license = (view.tag as LicenseViewHolder).license
+ LicenseBottomSheetDialogFragment.newInstance(license)
+ .show(activity.supportFragmentManager, LicenseBottomSheetDialogFragment.TAG)
+ }
+
+ inner class LicenseViewHolder(val binding: ListItemSettingBinding) : ViewHolder(binding.root) {
+ lateinit var license: License
+
+ init {
+ itemView.tag = this
+ }
+
+ fun bind(license: License) {
+ this.license = license
+
+ val context = YuzuApplication.appContext
+ binding.textSettingName.text = context.getString(license.titleId)
+ binding.textSettingDescription.text = context.getString(license.descriptionId)
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/SetupAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/SetupAdapter.kt
new file mode 100644
index 000000000..481ddd5a5
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/SetupAdapter.kt
@@ -0,0 +1,70 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.adapters
+
+import android.text.Html
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.content.res.ResourcesCompat
+import androidx.recyclerview.widget.RecyclerView
+import com.google.android.material.button.MaterialButton
+import org.yuzu.yuzu_emu.databinding.PageSetupBinding
+import org.yuzu.yuzu_emu.model.SetupPage
+
+class SetupAdapter(val activity: AppCompatActivity, val pages: List<SetupPage>) :
+ RecyclerView.Adapter<SetupAdapter.SetupPageViewHolder>() {
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SetupPageViewHolder {
+ val binding = PageSetupBinding.inflate(LayoutInflater.from(parent.context), parent, false)
+ return SetupPageViewHolder(binding)
+ }
+
+ override fun getItemCount(): Int = pages.size
+
+ override fun onBindViewHolder(holder: SetupPageViewHolder, position: Int) =
+ holder.bind(pages[position])
+
+ inner class SetupPageViewHolder(val binding: PageSetupBinding) :
+ RecyclerView.ViewHolder(binding.root) {
+ lateinit var page: SetupPage
+
+ init {
+ itemView.tag = this
+ }
+
+ fun bind(page: SetupPage) {
+ this.page = page
+ binding.icon.setImageDrawable(
+ ResourcesCompat.getDrawable(
+ activity.resources,
+ page.iconId,
+ activity.theme
+ )
+ )
+ binding.textTitle.text = activity.resources.getString(page.titleId)
+ binding.textDescription.text =
+ Html.fromHtml(activity.resources.getString(page.descriptionId), 0)
+
+ binding.buttonAction.apply {
+ text = activity.resources.getString(page.buttonTextId)
+ if (page.buttonIconId != 0) {
+ icon = ResourcesCompat.getDrawable(
+ activity.resources,
+ page.buttonIconId,
+ activity.theme
+ )
+ }
+ iconGravity =
+ if (page.leftAlignedIcon) {
+ MaterialButton.ICON_GRAVITY_START
+ } else {
+ MaterialButton.ICON_GRAVITY_END
+ }
+ setOnClickListener {
+ page.buttonAction.invoke()
+ }
+ }
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard.kt
new file mode 100644
index 000000000..e058067c9
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard.kt
@@ -0,0 +1,124 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.applets.keyboard
+
+import android.content.Context
+import android.os.Handler
+import android.os.Looper
+import android.view.KeyEvent
+import android.view.View
+import android.view.WindowInsets
+import android.view.inputmethod.InputMethodManager
+import androidx.annotation.Keep
+import androidx.core.view.ViewCompat
+import java.io.Serializable
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.applets.keyboard.ui.KeyboardDialogFragment
+
+@Keep
+object SoftwareKeyboard {
+ lateinit var data: KeyboardData
+ val dataLock = Object()
+
+ private fun executeNormalImpl(config: KeyboardConfig) {
+ val emulationActivity = NativeLibrary.sEmulationActivity.get()
+ data = KeyboardData(SwkbdResult.Cancel.ordinal, "")
+ val fragment = KeyboardDialogFragment.newInstance(config)
+ fragment.show(emulationActivity!!.supportFragmentManager, KeyboardDialogFragment.TAG)
+ }
+
+ private fun executeInlineImpl(config: KeyboardConfig) {
+ val emulationActivity = NativeLibrary.sEmulationActivity.get()
+
+ val overlayView = emulationActivity!!.findViewById<View>(R.id.surface_input_overlay)
+ val im =
+ overlayView.context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
+ im.showSoftInput(overlayView, InputMethodManager.SHOW_FORCED)
+
+ // There isn't a good way to know that the IMM is dismissed, so poll every 500ms to submit inline keyboard result.
+ val handler = Handler(Looper.myLooper()!!)
+ val delayMs = 500
+ handler.postDelayed(
+ object : Runnable {
+ override fun run() {
+ val insets = ViewCompat.getRootWindowInsets(overlayView)
+ val isKeyboardVisible = insets!!.isVisible(WindowInsets.Type.ime())
+ if (isKeyboardVisible) {
+ handler.postDelayed(this, delayMs.toLong())
+ return
+ }
+
+ // No longer visible, submit the result.
+ NativeLibrary.submitInlineKeyboardInput(KeyEvent.KEYCODE_ENTER)
+ }
+ },
+ delayMs.toLong()
+ )
+ }
+
+ @JvmStatic
+ fun executeNormal(config: KeyboardConfig): KeyboardData {
+ NativeLibrary.sEmulationActivity.get()!!.runOnUiThread { executeNormalImpl(config) }
+ synchronized(dataLock) {
+ dataLock.wait()
+ }
+ return data
+ }
+
+ @JvmStatic
+ fun executeInline(config: KeyboardConfig) {
+ NativeLibrary.sEmulationActivity.get()!!.runOnUiThread { executeInlineImpl(config) }
+ }
+
+ // Corresponds to Service::AM::Applets::SwkbdType
+ enum class SwkbdType {
+ Normal,
+ NumberPad,
+ Qwerty,
+ Unknown3,
+ Latin,
+ SimplifiedChinese,
+ TraditionalChinese,
+ Korean
+ }
+
+ // Corresponds to Service::AM::Applets::SwkbdPasswordMode
+ enum class SwkbdPasswordMode {
+ Disabled,
+ Enabled
+ }
+
+ // Corresponds to Service::AM::Applets::SwkbdResult
+ enum class SwkbdResult {
+ Ok,
+ Cancel
+ }
+
+ @Keep
+ data class KeyboardConfig(
+ var ok_text: String? = null,
+ var header_text: String? = null,
+ var sub_text: String? = null,
+ var guide_text: String? = null,
+ var initial_text: String? = null,
+ var left_optional_symbol_key: Short = 0,
+ var right_optional_symbol_key: Short = 0,
+ var max_text_length: Int = 0,
+ var min_text_length: Int = 0,
+ var initial_cursor_position: Int = 0,
+ var type: Int = 0,
+ var password_mode: Int = 0,
+ var text_draw_type: Int = 0,
+ var key_disable_flags: Int = 0,
+ var use_blur_background: Boolean = false,
+ var enable_backspace_button: Boolean = false,
+ var enable_return_button: Boolean = false,
+ var disable_cancel_button: Boolean = false
+ ) : Serializable
+
+ // Corresponds to Frontend::KeyboardData
+ @Keep
+ data class KeyboardData(var result: Int, var text: String)
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt
new file mode 100644
index 000000000..607a3d506
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/ui/KeyboardDialogFragment.kt
@@ -0,0 +1,100 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.applets.keyboard.ui
+
+import android.app.Dialog
+import android.content.DialogInterface
+import android.os.Bundle
+import android.text.InputFilter
+import android.text.InputType
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.applets.keyboard.SoftwareKeyboard
+import org.yuzu.yuzu_emu.applets.keyboard.SoftwareKeyboard.KeyboardConfig
+import org.yuzu.yuzu_emu.databinding.DialogEditTextBinding
+import org.yuzu.yuzu_emu.utils.SerializableHelper.serializable
+
+class KeyboardDialogFragment : DialogFragment() {
+ private lateinit var binding: DialogEditTextBinding
+ private lateinit var config: KeyboardConfig
+
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ binding = DialogEditTextBinding.inflate(layoutInflater)
+ config = requireArguments().serializable(CONFIG)!!
+
+ // Set up the input
+ binding.editText.hint = config.initial_text
+ binding.editText.isSingleLine = !config.enable_return_button
+ binding.editText.filters =
+ arrayOf<InputFilter>(InputFilter.LengthFilter(config.max_text_length))
+
+ // Handle input type
+ var inputType: Int
+ when (config.type) {
+ SoftwareKeyboard.SwkbdType.Normal.ordinal,
+ SoftwareKeyboard.SwkbdType.Qwerty.ordinal,
+ SoftwareKeyboard.SwkbdType.Unknown3.ordinal,
+ SoftwareKeyboard.SwkbdType.Latin.ordinal,
+ SoftwareKeyboard.SwkbdType.SimplifiedChinese.ordinal,
+ SoftwareKeyboard.SwkbdType.TraditionalChinese.ordinal,
+ SoftwareKeyboard.SwkbdType.Korean.ordinal -> {
+ inputType = InputType.TYPE_CLASS_TEXT
+ if (config.password_mode == SoftwareKeyboard.SwkbdPasswordMode.Enabled.ordinal) {
+ inputType = inputType or InputType.TYPE_TEXT_VARIATION_PASSWORD
+ }
+ }
+ SoftwareKeyboard.SwkbdType.NumberPad.ordinal -> {
+ inputType = InputType.TYPE_CLASS_NUMBER
+ if (config.password_mode == SoftwareKeyboard.SwkbdPasswordMode.Enabled.ordinal) {
+ inputType = inputType or InputType.TYPE_NUMBER_VARIATION_PASSWORD
+ }
+ }
+ else -> {
+ inputType = InputType.TYPE_CLASS_TEXT
+ if (config.password_mode == SoftwareKeyboard.SwkbdPasswordMode.Enabled.ordinal) {
+ inputType = inputType or InputType.TYPE_TEXT_VARIATION_PASSWORD
+ }
+ }
+ }
+ binding.editText.inputType = inputType
+
+ val headerText =
+ config.header_text!!.ifEmpty { resources.getString(R.string.software_keyboard) }
+ val okText =
+ config.ok_text!!.ifEmpty { resources.getString(R.string.submit) }
+
+ return MaterialAlertDialogBuilder(requireContext())
+ .setTitle(headerText)
+ .setView(binding.root)
+ .setPositiveButton(okText) { _, _ ->
+ SoftwareKeyboard.data.result = SoftwareKeyboard.SwkbdResult.Ok.ordinal
+ SoftwareKeyboard.data.text = binding.editText.text.toString()
+ }
+ .setNegativeButton(resources.getString(android.R.string.cancel)) { _, _ ->
+ SoftwareKeyboard.data.result = SoftwareKeyboard.SwkbdResult.Cancel.ordinal
+ }
+ .create()
+ }
+
+ override fun onDismiss(dialog: DialogInterface) {
+ super.onDismiss(dialog)
+ synchronized(SoftwareKeyboard.dataLock) {
+ SoftwareKeyboard.dataLock.notifyAll()
+ }
+ }
+
+ companion object {
+ const val TAG = "KeyboardDialogFragment"
+ const val CONFIG = "keyboard_config"
+
+ fun newInstance(config: KeyboardConfig?): KeyboardDialogFragment {
+ val frag = KeyboardDialogFragment()
+ val args = Bundle()
+ args.putSerializable(CONFIG, config)
+ frag.arguments = args
+ return frag
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/DiskShaderCacheProgress.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/DiskShaderCacheProgress.kt
new file mode 100644
index 000000000..a18efef19
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/DiskShaderCacheProgress.kt
@@ -0,0 +1,51 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.disk_shader_cache
+
+import androidx.annotation.Keep
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.disk_shader_cache.ui.ShaderProgressDialogFragment
+
+@Keep
+object DiskShaderCacheProgress {
+ val finishLock = Object()
+ private lateinit var fragment: ShaderProgressDialogFragment
+
+ private fun prepareDialog() {
+ val emulationActivity = NativeLibrary.sEmulationActivity.get()!!
+ emulationActivity.runOnUiThread {
+ fragment = ShaderProgressDialogFragment.newInstance(
+ emulationActivity.getString(R.string.loading),
+ emulationActivity.getString(R.string.preparing_shaders)
+ )
+ fragment.show(
+ emulationActivity.supportFragmentManager,
+ ShaderProgressDialogFragment.TAG
+ )
+ }
+ synchronized(finishLock) { finishLock.wait() }
+ }
+
+ @JvmStatic
+ fun loadProgress(stage: Int, progress: Int, max: Int) {
+ val emulationActivity = NativeLibrary.sEmulationActivity.get()
+ ?: error("[DiskShaderCacheProgress] EmulationActivity not present")
+
+ when (LoadCallbackStage.values()[stage]) {
+ LoadCallbackStage.Prepare -> prepareDialog()
+ LoadCallbackStage.Build -> fragment.onUpdateProgress(
+ emulationActivity.getString(R.string.building_shaders),
+ progress,
+ max
+ )
+ LoadCallbackStage.Complete -> fragment.dismiss()
+ }
+ }
+
+ // Equivalent to VideoCore::LoadCallbackStage
+ enum class LoadCallbackStage {
+ Prepare, Build, Complete
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ShaderProgressViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ShaderProgressViewModel.kt
new file mode 100644
index 000000000..bf6f0366d
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ShaderProgressViewModel.kt
@@ -0,0 +1,31 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.disk_shader_cache
+
+import androidx.lifecycle.LiveData
+import androidx.lifecycle.MutableLiveData
+import androidx.lifecycle.ViewModel
+
+class ShaderProgressViewModel : ViewModel() {
+ private val _progress = MutableLiveData(0)
+ val progress: LiveData<Int> get() = _progress
+
+ private val _max = MutableLiveData(0)
+ val max: LiveData<Int> get() = _max
+
+ private val _message = MutableLiveData("")
+ val message: LiveData<String> get() = _message
+
+ fun setProgress(progress: Int) {
+ _progress.postValue(progress)
+ }
+
+ fun setMax(max: Int) {
+ _max.postValue(max)
+ }
+
+ fun setMessage(msg: String) {
+ _message.postValue(msg)
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ui/ShaderProgressDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ui/ShaderProgressDialogFragment.kt
new file mode 100644
index 000000000..8a8e0a6e8
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ui/ShaderProgressDialogFragment.kt
@@ -0,0 +1,103 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.disk_shader_cache.ui
+
+import android.app.Dialog
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.appcompat.app.AlertDialog
+import androidx.fragment.app.DialogFragment
+import androidx.lifecycle.ViewModelProvider
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.databinding.DialogProgressBarBinding
+import org.yuzu.yuzu_emu.disk_shader_cache.DiskShaderCacheProgress
+import org.yuzu.yuzu_emu.disk_shader_cache.ShaderProgressViewModel
+
+class ShaderProgressDialogFragment : DialogFragment() {
+ private var _binding: DialogProgressBarBinding? = null
+ private val binding get() = _binding!!
+
+ private lateinit var alertDialog: AlertDialog
+
+ private lateinit var shaderProgressViewModel: ShaderProgressViewModel
+
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ _binding = DialogProgressBarBinding.inflate(layoutInflater)
+ shaderProgressViewModel =
+ ViewModelProvider(requireActivity())[ShaderProgressViewModel::class.java]
+
+ val title = requireArguments().getString(TITLE)
+ val message = requireArguments().getString(MESSAGE)
+
+ isCancelable = false
+ alertDialog = MaterialAlertDialogBuilder(requireActivity())
+ .setView(binding.root)
+ .setTitle(title)
+ .setMessage(message)
+ .create()
+ return alertDialog
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+ shaderProgressViewModel.progress.observe(viewLifecycleOwner) { progress ->
+ binding.progressBar.progress = progress
+ setUpdateText()
+ }
+ shaderProgressViewModel.max.observe(viewLifecycleOwner) { max ->
+ binding.progressBar.max = max
+ setUpdateText()
+ }
+ shaderProgressViewModel.message.observe(viewLifecycleOwner) { msg ->
+ alertDialog.setMessage(msg)
+ }
+ synchronized(DiskShaderCacheProgress.finishLock) {
+ DiskShaderCacheProgress.finishLock.notifyAll()
+ }
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+
+ fun onUpdateProgress(msg: String, progress: Int, max: Int) {
+ shaderProgressViewModel.setProgress(progress)
+ shaderProgressViewModel.setMax(max)
+ shaderProgressViewModel.setMessage(msg)
+ }
+
+ private fun setUpdateText() {
+ binding.progressText.text = String.format(
+ "%d/%d",
+ shaderProgressViewModel.progress.value,
+ shaderProgressViewModel.max.value
+ )
+ }
+
+ companion object {
+ const val TAG = "ProgressDialogFragment"
+ const val TITLE = "title"
+ const val MESSAGE = "message"
+
+ fun newInstance(title: String, message: String): ShaderProgressDialogFragment {
+ val frag = ShaderProgressDialogFragment()
+ val args = Bundle()
+ args.putString(TITLE, title)
+ args.putString(MESSAGE, message)
+ frag.arguments = args
+ return frag
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/DocumentProvider.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/DocumentProvider.kt
new file mode 100644
index 000000000..f3be156b5
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/DocumentProvider.kt
@@ -0,0 +1,341 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// SPDX-License-Identifier: MPL-2.0
+// Copyright © 2023 Skyline Team and Contributors (https://github.com/skyline-emu/)
+
+package org.yuzu.yuzu_emu.features
+
+import android.database.Cursor
+import android.database.MatrixCursor
+import android.os.CancellationSignal
+import android.os.ParcelFileDescriptor
+import android.provider.DocumentsContract
+import android.provider.DocumentsProvider
+import android.webkit.MimeTypeMap
+import java.io.*
+import org.yuzu.yuzu_emu.BuildConfig
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.getPublicFilesDir
+
+class DocumentProvider : DocumentsProvider() {
+ private val baseDirectory: File
+ get() = File(YuzuApplication.application.getPublicFilesDir().canonicalPath)
+
+ companion object {
+ private val DEFAULT_ROOT_PROJECTION: Array<String> = arrayOf(
+ DocumentsContract.Root.COLUMN_ROOT_ID,
+ DocumentsContract.Root.COLUMN_MIME_TYPES,
+ DocumentsContract.Root.COLUMN_FLAGS,
+ DocumentsContract.Root.COLUMN_ICON,
+ DocumentsContract.Root.COLUMN_TITLE,
+ DocumentsContract.Root.COLUMN_SUMMARY,
+ DocumentsContract.Root.COLUMN_DOCUMENT_ID,
+ DocumentsContract.Root.COLUMN_AVAILABLE_BYTES
+ )
+
+ private val DEFAULT_DOCUMENT_PROJECTION: Array<String> = arrayOf(
+ DocumentsContract.Document.COLUMN_DOCUMENT_ID,
+ DocumentsContract.Document.COLUMN_MIME_TYPE,
+ DocumentsContract.Document.COLUMN_DISPLAY_NAME,
+ DocumentsContract.Document.COLUMN_LAST_MODIFIED,
+ DocumentsContract.Document.COLUMN_FLAGS,
+ DocumentsContract.Document.COLUMN_SIZE
+ )
+
+ const val AUTHORITY: String = BuildConfig.APPLICATION_ID + ".user"
+ const val ROOT_ID: String = "root"
+ }
+
+ override fun onCreate(): Boolean {
+ return true
+ }
+
+ /**
+ * @return The [File] that corresponds to the document ID supplied by [getDocumentId]
+ */
+ private fun getFile(documentId: String): File {
+ if (documentId.startsWith(ROOT_ID)) {
+ val file = baseDirectory.resolve(documentId.drop(ROOT_ID.length + 1))
+ if (!file.exists()) {
+ throw FileNotFoundException(
+ "${file.absolutePath} ($documentId) not found"
+ )
+ }
+ return file
+ } else {
+ throw FileNotFoundException("'$documentId' is not in any known root")
+ }
+ }
+
+ /**
+ * @return A unique ID for the provided [File]
+ */
+ private fun getDocumentId(file: File): String {
+ return "$ROOT_ID/${file.toRelativeString(baseDirectory)}"
+ }
+
+ override fun queryRoots(projection: Array<out String>?): Cursor {
+ val cursor = MatrixCursor(projection ?: DEFAULT_ROOT_PROJECTION)
+
+ cursor.newRow().apply {
+ add(DocumentsContract.Root.COLUMN_ROOT_ID, ROOT_ID)
+ add(DocumentsContract.Root.COLUMN_SUMMARY, null)
+ add(
+ DocumentsContract.Root.COLUMN_FLAGS,
+ DocumentsContract.Root.FLAG_SUPPORTS_CREATE or
+ DocumentsContract.Root.FLAG_SUPPORTS_IS_CHILD
+ )
+ add(DocumentsContract.Root.COLUMN_TITLE, context!!.getString(R.string.app_name))
+ add(DocumentsContract.Root.COLUMN_DOCUMENT_ID, getDocumentId(baseDirectory))
+ add(DocumentsContract.Root.COLUMN_MIME_TYPES, "*/*")
+ add(DocumentsContract.Root.COLUMN_AVAILABLE_BYTES, baseDirectory.freeSpace)
+ add(DocumentsContract.Root.COLUMN_ICON, R.drawable.ic_yuzu)
+ }
+
+ return cursor
+ }
+
+ override fun queryDocument(documentId: String?, projection: Array<out String>?): Cursor {
+ val cursor = MatrixCursor(projection ?: DEFAULT_DOCUMENT_PROJECTION)
+ return includeFile(cursor, documentId, null)
+ }
+
+ override fun isChildDocument(parentDocumentId: String?, documentId: String?): Boolean {
+ return documentId?.startsWith(parentDocumentId!!) ?: false
+ }
+
+ /**
+ * @return A new [File] with a unique name based off the supplied [name], not conflicting with any existing file
+ */
+ private fun File.resolveWithoutConflict(name: String): File {
+ var file = resolve(name)
+ if (file.exists()) {
+ var noConflictId =
+ 1 // Makes sure two files don't have the same name by adding a number to the end
+ val extension = name.substringAfterLast('.')
+ val baseName = name.substringBeforeLast('.')
+ while (file.exists())
+ file = resolve("$baseName (${noConflictId++}).$extension")
+ }
+ return file
+ }
+
+ override fun createDocument(
+ parentDocumentId: String?,
+ mimeType: String?,
+ displayName: String
+ ): String {
+ val parentFile = getFile(parentDocumentId!!)
+ val newFile = parentFile.resolveWithoutConflict(displayName)
+
+ try {
+ if (DocumentsContract.Document.MIME_TYPE_DIR == mimeType) {
+ if (!newFile.mkdir()) {
+ throw IOException("Failed to create directory")
+ }
+ } else {
+ if (!newFile.createNewFile()) {
+ throw IOException("Failed to create file")
+ }
+ }
+ } catch (e: IOException) {
+ throw FileNotFoundException("Couldn't create document '${newFile.path}': ${e.message}")
+ }
+
+ return getDocumentId(newFile)
+ }
+
+ override fun deleteDocument(documentId: String?) {
+ val file = getFile(documentId!!)
+ if (!file.delete()) {
+ throw FileNotFoundException("Couldn't delete document with ID '$documentId'")
+ }
+ }
+
+ override fun removeDocument(documentId: String, parentDocumentId: String?) {
+ val parent = getFile(parentDocumentId!!)
+ val file = getFile(documentId)
+
+ if (parent == file || file.parentFile == null || file.parentFile!! == parent) {
+ if (!file.delete()) {
+ throw FileNotFoundException("Couldn't delete document with ID '$documentId'")
+ }
+ } else {
+ throw FileNotFoundException("Couldn't delete document with ID '$documentId'")
+ }
+ }
+
+ override fun renameDocument(documentId: String?, displayName: String?): String {
+ if (displayName == null) {
+ throw FileNotFoundException(
+ "Couldn't rename document '$documentId' as the new name is null"
+ )
+ }
+
+ val sourceFile = getFile(documentId!!)
+ val sourceParentFile = sourceFile.parentFile
+ ?: throw FileNotFoundException(
+ "Couldn't rename document '$documentId' as it has no parent"
+ )
+ val destFile = sourceParentFile.resolve(displayName)
+
+ try {
+ if (!sourceFile.renameTo(destFile)) {
+ throw FileNotFoundException(
+ "Couldn't rename document from '${sourceFile.name}' to '${destFile.name}'"
+ )
+ }
+ } catch (e: Exception) {
+ throw FileNotFoundException(
+ "Couldn't rename document from '${sourceFile.name}' to '${destFile.name}': " +
+ "${e.message}"
+ )
+ }
+
+ return getDocumentId(destFile)
+ }
+
+ private fun copyDocument(
+ sourceDocumentId: String,
+ sourceParentDocumentId: String,
+ targetParentDocumentId: String?
+ ): String {
+ if (!isChildDocument(sourceParentDocumentId, sourceDocumentId)) {
+ throw FileNotFoundException(
+ "Couldn't copy document '$sourceDocumentId' as its parent is not " +
+ "'$sourceParentDocumentId'"
+ )
+ }
+
+ return copyDocument(sourceDocumentId, targetParentDocumentId)
+ }
+
+ override fun copyDocument(sourceDocumentId: String, targetParentDocumentId: String?): String {
+ val parent = getFile(targetParentDocumentId!!)
+ val oldFile = getFile(sourceDocumentId)
+ val newFile = parent.resolveWithoutConflict(oldFile.name)
+
+ try {
+ if (!(
+ newFile.createNewFile() && newFile.setWritable(true) &&
+ newFile.setReadable(true)
+ )
+ ) {
+ throw IOException("Couldn't create new file")
+ }
+
+ FileInputStream(oldFile).use { inStream ->
+ FileOutputStream(newFile).use { outStream ->
+ inStream.copyTo(outStream)
+ }
+ }
+ } catch (e: IOException) {
+ throw FileNotFoundException("Couldn't copy document '$sourceDocumentId': ${e.message}")
+ }
+
+ return getDocumentId(newFile)
+ }
+
+ override fun moveDocument(
+ sourceDocumentId: String,
+ sourceParentDocumentId: String?,
+ targetParentDocumentId: String?
+ ): String {
+ try {
+ val newDocumentId = copyDocument(
+ sourceDocumentId,
+ sourceParentDocumentId!!,
+ targetParentDocumentId
+ )
+ removeDocument(sourceDocumentId, sourceParentDocumentId)
+ return newDocumentId
+ } catch (e: FileNotFoundException) {
+ throw FileNotFoundException("Couldn't move document '$sourceDocumentId'")
+ }
+ }
+
+ private fun includeFile(cursor: MatrixCursor, documentId: String?, file: File?): MatrixCursor {
+ val localDocumentId = documentId ?: file?.let { getDocumentId(it) }
+ val localFile = file ?: getFile(documentId!!)
+
+ var flags = 0
+ if (localFile.isDirectory && localFile.canWrite()) {
+ flags = DocumentsContract.Document.FLAG_DIR_SUPPORTS_CREATE
+ } else if (localFile.canWrite()) {
+ flags = DocumentsContract.Document.FLAG_SUPPORTS_WRITE
+ flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_DELETE
+
+ flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_REMOVE
+ flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_MOVE
+ flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_COPY
+ flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_RENAME
+ }
+
+ cursor.newRow().apply {
+ add(DocumentsContract.Document.COLUMN_DOCUMENT_ID, localDocumentId)
+ add(
+ DocumentsContract.Document.COLUMN_DISPLAY_NAME,
+ if (localFile == baseDirectory) {
+ context!!.getString(R.string.app_name)
+ } else {
+ localFile.name
+ }
+ )
+ add(DocumentsContract.Document.COLUMN_SIZE, localFile.length())
+ add(DocumentsContract.Document.COLUMN_MIME_TYPE, getTypeForFile(localFile))
+ add(DocumentsContract.Document.COLUMN_LAST_MODIFIED, localFile.lastModified())
+ add(DocumentsContract.Document.COLUMN_FLAGS, flags)
+ if (localFile == baseDirectory) {
+ add(DocumentsContract.Root.COLUMN_ICON, R.drawable.ic_yuzu)
+ }
+ }
+
+ return cursor
+ }
+
+ private fun getTypeForFile(file: File): Any {
+ return if (file.isDirectory) {
+ DocumentsContract.Document.MIME_TYPE_DIR
+ } else {
+ getTypeForName(file.name)
+ }
+ }
+
+ private fun getTypeForName(name: String): Any {
+ val lastDot = name.lastIndexOf('.')
+ if (lastDot >= 0) {
+ val extension = name.substring(lastDot + 1)
+ val mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension)
+ if (mime != null) {
+ return mime
+ }
+ }
+ return "application/octect-stream"
+ }
+
+ override fun queryChildDocuments(
+ parentDocumentId: String?,
+ projection: Array<out String>?,
+ sortOrder: String?
+ ): Cursor {
+ var cursor = MatrixCursor(projection ?: DEFAULT_DOCUMENT_PROJECTION)
+
+ val parent = getFile(parentDocumentId!!)
+ for (file in parent.listFiles()!!)
+ cursor = includeFile(cursor, null, file)
+
+ return cursor
+ }
+
+ override fun openDocument(
+ documentId: String?,
+ mode: String?,
+ signal: CancellationSignal?
+ ): ParcelFileDescriptor {
+ val file = documentId?.let { getFile(it) }
+ val accessMode = ParcelFileDescriptor.parseMode(mode)
+ return ParcelFileDescriptor.open(file, accessMode)
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractBooleanSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractBooleanSetting.kt
new file mode 100644
index 000000000..a6e9833ee
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractBooleanSetting.kt
@@ -0,0 +1,8 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+interface AbstractBooleanSetting : AbstractSetting {
+ var boolean: Boolean
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractFloatSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractFloatSetting.kt
new file mode 100644
index 000000000..6fe4bc263
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractFloatSetting.kt
@@ -0,0 +1,8 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+interface AbstractFloatSetting : AbstractSetting {
+ var float: Float
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractIntSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractIntSetting.kt
new file mode 100644
index 000000000..892b7dcfe
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractIntSetting.kt
@@ -0,0 +1,8 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+interface AbstractIntSetting : AbstractSetting {
+ var int: Int
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractSetting.kt
new file mode 100644
index 000000000..258580209
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractSetting.kt
@@ -0,0 +1,12 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+interface AbstractSetting {
+ val key: String?
+ val section: String?
+ val isRuntimeEditable: Boolean
+ val valueAsString: String
+ val defaultValue: Any
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractStringSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractStringSetting.kt
new file mode 100644
index 000000000..0d02c5997
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/AbstractStringSetting.kt
@@ -0,0 +1,8 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+interface AbstractStringSetting : AbstractSetting {
+ var string: String
+}
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
new file mode 100644
index 000000000..d41933766
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
@@ -0,0 +1,43 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+enum class BooleanSetting(
+ override val key: String,
+ override val section: String,
+ override val defaultValue: Boolean
+) : AbstractBooleanSetting {
+ CPU_DEBUG_MODE("cpu_debug_mode", Settings.SECTION_CPU, false),
+ FASTMEM("cpuopt_fastmem", Settings.SECTION_CPU, true),
+ FASTMEM_EXCLUSIVES("cpuopt_fastmem_exclusives", Settings.SECTION_CPU, true),
+ PICTURE_IN_PICTURE("picture_in_picture", Settings.SECTION_GENERAL, true),
+ USE_CUSTOM_RTC("custom_rtc_enabled", Settings.SECTION_SYSTEM, false);
+
+ override var boolean: Boolean = defaultValue
+
+ override val valueAsString: String
+ get() = boolean.toString()
+
+ override val isRuntimeEditable: Boolean
+ get() {
+ for (setting in NOT_RUNTIME_EDITABLE) {
+ if (setting == this) {
+ return false
+ }
+ }
+ return true
+ }
+
+ companion object {
+ private val NOT_RUNTIME_EDITABLE = listOf(
+ PICTURE_IN_PICTURE,
+ USE_CUSTOM_RTC
+ )
+
+ fun from(key: String): BooleanSetting? =
+ BooleanSetting.values().firstOrNull { it.key == key }
+
+ fun clear() = BooleanSetting.values().forEach { it.boolean = it.defaultValue }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt
new file mode 100644
index 000000000..e5545a916
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/FloatSetting.kt
@@ -0,0 +1,36 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+enum class FloatSetting(
+ override val key: String,
+ override val section: String,
+ override val defaultValue: Float
+) : AbstractFloatSetting {
+ // No float settings currently exist
+ EMPTY_SETTING("", "", 0f);
+
+ override var float: Float = defaultValue
+
+ override val valueAsString: String
+ get() = float.toString()
+
+ override val isRuntimeEditable: Boolean
+ get() {
+ for (setting in NOT_RUNTIME_EDITABLE) {
+ if (setting == this) {
+ return false
+ }
+ }
+ return true
+ }
+
+ companion object {
+ private val NOT_RUNTIME_EDITABLE = emptyList<FloatSetting>()
+
+ fun from(key: String): FloatSetting? = FloatSetting.values().firstOrNull { it.key == key }
+
+ fun clear() = FloatSetting.values().forEach { it.float = it.defaultValue }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt
new file mode 100644
index 000000000..4427a7d9d
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt
@@ -0,0 +1,141 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+enum class IntSetting(
+ override val key: String,
+ override val section: String,
+ override val defaultValue: Int
+) : AbstractIntSetting {
+ RENDERER_USE_SPEED_LIMIT(
+ "use_speed_limit",
+ Settings.SECTION_RENDERER,
+ 1
+ ),
+ USE_DOCKED_MODE(
+ "use_docked_mode",
+ Settings.SECTION_SYSTEM,
+ 0
+ ),
+ RENDERER_USE_DISK_SHADER_CACHE(
+ "use_disk_shader_cache",
+ Settings.SECTION_RENDERER,
+ 1
+ ),
+ RENDERER_FORCE_MAX_CLOCK(
+ "force_max_clock",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ RENDERER_ASYNCHRONOUS_SHADERS(
+ "use_asynchronous_shaders",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ RENDERER_REACTIVE_FLUSHING(
+ "use_reactive_flushing",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ RENDERER_DEBUG(
+ "debug",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ RENDERER_SPEED_LIMIT(
+ "speed_limit",
+ Settings.SECTION_RENDERER,
+ 100
+ ),
+ CPU_ACCURACY(
+ "cpu_accuracy",
+ Settings.SECTION_CPU,
+ 0
+ ),
+ REGION_INDEX(
+ "region_index",
+ Settings.SECTION_SYSTEM,
+ -1
+ ),
+ LANGUAGE_INDEX(
+ "language_index",
+ Settings.SECTION_SYSTEM,
+ 1
+ ),
+ RENDERER_BACKEND(
+ "backend",
+ Settings.SECTION_RENDERER,
+ 1
+ ),
+ RENDERER_ACCURACY(
+ "gpu_accuracy",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ RENDERER_RESOLUTION(
+ "resolution_setup",
+ Settings.SECTION_RENDERER,
+ 2
+ ),
+ RENDERER_VSYNC(
+ "use_vsync",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ RENDERER_SCALING_FILTER(
+ "scaling_filter",
+ Settings.SECTION_RENDERER,
+ 1
+ ),
+ RENDERER_ANTI_ALIASING(
+ "anti_aliasing",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ RENDERER_SCREEN_LAYOUT(
+ "screen_layout",
+ Settings.SECTION_RENDERER,
+ Settings.LayoutOption_MobileLandscape
+ ),
+ RENDERER_ASPECT_RATIO(
+ "aspect_ratio",
+ Settings.SECTION_RENDERER,
+ 0
+ ),
+ AUDIO_VOLUME(
+ "volume",
+ Settings.SECTION_AUDIO,
+ 100
+ );
+
+ override var int: Int = defaultValue
+
+ override val valueAsString: String
+ get() = int.toString()
+
+ override val isRuntimeEditable: Boolean
+ get() {
+ for (setting in NOT_RUNTIME_EDITABLE) {
+ if (setting == this) {
+ return false
+ }
+ }
+ return true
+ }
+
+ companion object {
+ private val NOT_RUNTIME_EDITABLE = listOf(
+ RENDERER_USE_DISK_SHADER_CACHE,
+ RENDERER_ASYNCHRONOUS_SHADERS,
+ RENDERER_DEBUG,
+ RENDERER_BACKEND,
+ RENDERER_RESOLUTION,
+ RENDERER_VSYNC
+ )
+
+ fun from(key: String): IntSetting? = IntSetting.values().firstOrNull { it.key == key }
+
+ fun clear() = IntSetting.values().forEach { it.int = it.defaultValue }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingSection.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingSection.kt
new file mode 100644
index 000000000..474f598a9
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingSection.kt
@@ -0,0 +1,37 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+/**
+ * A semantically-related group of Settings objects. These Settings are
+ * internally stored as a HashMap.
+ */
+class SettingSection(val name: String) {
+ val settings = HashMap<String, AbstractSetting>()
+
+ /**
+ * Convenience method; inserts a value directly into the backing HashMap.
+ *
+ * @param setting The Setting to be inserted.
+ */
+ fun putSetting(setting: AbstractSetting) {
+ settings[setting.key!!] = setting
+ }
+
+ /**
+ * Convenience method; gets a value directly from the backing HashMap.
+ *
+ * @param key Used to retrieve the Setting.
+ * @return A Setting object (you should probably cast this before using)
+ */
+ fun getSetting(key: String): AbstractSetting? {
+ return settings[key]
+ }
+
+ fun mergeSection(settingSection: SettingSection) {
+ for (setting in settingSection.settings.values) {
+ putSetting(setting)
+ }
+ }
+}
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
new file mode 100644
index 000000000..88afb2223
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt
@@ -0,0 +1,161 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+import android.text.TextUtils
+import java.util.*
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivityView
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
+
+class Settings {
+ private var gameId: String? = null
+
+ var isLoaded = false
+
+ /**
+ * A HashMap<String></String>, SettingSection> that constructs a new SettingSection instead of returning null
+ * when getting a key not already in the map
+ */
+ class SettingsSectionMap : HashMap<String, SettingSection?>() {
+ override operator fun get(key: String): SettingSection? {
+ if (!super.containsKey(key)) {
+ val section = SettingSection(key)
+ super.put(key, section)
+ return section
+ }
+ return super.get(key)
+ }
+ }
+
+ var sections: HashMap<String, SettingSection?> = SettingsSectionMap()
+
+ fun getSection(sectionName: String): SettingSection? {
+ return sections[sectionName]
+ }
+
+ val isEmpty: Boolean
+ get() = sections.isEmpty()
+
+ fun loadSettings(view: SettingsActivityView? = null) {
+ sections = SettingsSectionMap()
+ loadYuzuSettings(view)
+ if (!TextUtils.isEmpty(gameId)) {
+ loadCustomGameSettings(gameId!!, view)
+ }
+ isLoaded = true
+ }
+
+ private fun loadYuzuSettings(view: SettingsActivityView?) {
+ for ((fileName) in configFileSectionsMap) {
+ sections.putAll(SettingsFile.readFile(fileName, view))
+ }
+ }
+
+ private fun loadCustomGameSettings(gameId: String, view: SettingsActivityView?) {
+ // Custom game settings
+ mergeSections(SettingsFile.readCustomGameSettings(gameId, view))
+ }
+
+ private fun mergeSections(updatedSections: HashMap<String, SettingSection?>) {
+ for ((key, updatedSection) in updatedSections) {
+ if (sections.containsKey(key)) {
+ val originalSection = sections[key]
+ originalSection!!.mergeSection(updatedSection!!)
+ } else {
+ sections[key] = updatedSection
+ }
+ }
+ }
+
+ fun loadSettings(gameId: String, view: SettingsActivityView) {
+ this.gameId = gameId
+ loadSettings(view)
+ }
+
+ fun saveSettings(view: SettingsActivityView) {
+ if (TextUtils.isEmpty(gameId)) {
+ view.showToastMessage(
+ YuzuApplication.appContext.getString(R.string.ini_saved),
+ false
+ )
+
+ for ((fileName, sectionNames) in configFileSectionsMap) {
+ val iniSections = TreeMap<String, SettingSection>()
+ for (section in sectionNames) {
+ iniSections[section] = sections[section]!!
+ }
+
+ SettingsFile.saveFile(fileName, iniSections, view)
+ }
+ } else {
+ // Custom game settings
+ view.showToastMessage(
+ YuzuApplication.appContext.getString(R.string.gameid_saved, gameId),
+ false
+ )
+
+ SettingsFile.saveCustomGameSettings(gameId, sections)
+ }
+ }
+
+ companion object {
+ const val SECTION_GENERAL = "General"
+ const val SECTION_SYSTEM = "System"
+ const val SECTION_RENDERER = "Renderer"
+ const val SECTION_AUDIO = "Audio"
+ const val SECTION_CPU = "Cpu"
+ const val SECTION_THEME = "Theme"
+ const val SECTION_DEBUG = "Debug"
+
+ const val PREF_OVERLAY_INIT = "OverlayInit"
+ const val PREF_CONTROL_SCALE = "controlScale"
+ const val PREF_CONTROL_OPACITY = "controlOpacity"
+ const val PREF_TOUCH_ENABLED = "isTouchEnabled"
+ const val PREF_BUTTON_TOGGLE_0 = "buttonToggle0"
+ const val PREF_BUTTON_TOGGLE_1 = "buttonToggle1"
+ const val PREF_BUTTON_TOGGLE_2 = "buttonToggle2"
+ const val PREF_BUTTON_TOGGLE_3 = "buttonToggle3"
+ const val PREF_BUTTON_TOGGLE_4 = "buttonToggle4"
+ const val PREF_BUTTON_TOGGLE_5 = "buttonToggle5"
+ const val PREF_BUTTON_TOGGLE_6 = "buttonToggle6"
+ const val PREF_BUTTON_TOGGLE_7 = "buttonToggle7"
+ const val PREF_BUTTON_TOGGLE_8 = "buttonToggle8"
+ const val PREF_BUTTON_TOGGLE_9 = "buttonToggle9"
+ const val PREF_BUTTON_TOGGLE_10 = "buttonToggle10"
+ const val PREF_BUTTON_TOGGLE_11 = "buttonToggle11"
+ const val PREF_BUTTON_TOGGLE_12 = "buttonToggle12"
+ const val PREF_BUTTON_TOGGLE_13 = "buttonToggle13"
+ const val PREF_BUTTON_TOGGLE_14 = "buttonToggle14"
+
+ const val PREF_MENU_SETTINGS_JOYSTICK_REL_CENTER = "EmulationMenuSettings_JoystickRelCenter"
+ const val PREF_MENU_SETTINGS_DPAD_SLIDE = "EmulationMenuSettings_DpadSlideEnable"
+ const val PREF_MENU_SETTINGS_HAPTICS = "EmulationMenuSettings_Haptics"
+ const val PREF_MENU_SETTINGS_SHOW_FPS = "EmulationMenuSettings_ShowFps"
+ const val PREF_MENU_SETTINGS_SHOW_OVERLAY = "EmulationMenuSettings_ShowOverlay"
+
+ const val PREF_FIRST_APP_LAUNCH = "FirstApplicationLaunch"
+ const val PREF_THEME = "Theme"
+ const val PREF_THEME_MODE = "ThemeMode"
+ const val PREF_BLACK_BACKGROUNDS = "BlackBackgrounds"
+
+ private val configFileSectionsMap: MutableMap<String, List<String>> = HashMap()
+
+ const val LayoutOption_Unspecified = 0
+ const val LayoutOption_MobilePortrait = 4
+ const val LayoutOption_MobileLandscape = 5
+
+ init {
+ configFileSectionsMap[SettingsFile.FILE_NAME_CONFIG] =
+ listOf(
+ SECTION_GENERAL,
+ SECTION_SYSTEM,
+ SECTION_RENDERER,
+ SECTION_AUDIO,
+ SECTION_CPU
+ )
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingsViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingsViewModel.kt
new file mode 100644
index 000000000..bd9233d62
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/SettingsViewModel.kt
@@ -0,0 +1,10 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+import androidx.lifecycle.ViewModel
+
+class SettingsViewModel : ViewModel() {
+ val settings = Settings()
+}
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
new file mode 100644
index 000000000..6621289fd
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/StringSetting.kt
@@ -0,0 +1,38 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model
+
+enum class StringSetting(
+ override val key: String,
+ override val section: String,
+ override val defaultValue: String
+) : AbstractStringSetting {
+ AUDIO_OUTPUT_ENGINE("output_engine", Settings.SECTION_AUDIO, "auto"),
+ CUSTOM_RTC("custom_rtc", Settings.SECTION_SYSTEM, "0");
+
+ override var string: String = defaultValue
+
+ override val valueAsString: String
+ get() = string
+
+ override val isRuntimeEditable: Boolean
+ get() {
+ for (setting in NOT_RUNTIME_EDITABLE) {
+ if (setting == this) {
+ return false
+ }
+ }
+ return true
+ }
+
+ companion object {
+ private val NOT_RUNTIME_EDITABLE = listOf(
+ CUSTOM_RTC
+ )
+
+ fun from(key: String): StringSetting? = StringSetting.values().firstOrNull { it.key == key }
+
+ fun clear() = StringSetting.values().forEach { it.string = it.defaultValue }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/DateTimeSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/DateTimeSetting.kt
new file mode 100644
index 000000000..bc0bf7788
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/DateTimeSetting.kt
@@ -0,0 +1,31 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractStringSetting
+
+class DateTimeSetting(
+ setting: AbstractSetting?,
+ titleId: Int,
+ descriptionId: Int,
+ val key: String? = null,
+ private val defaultValue: String? = null
+) : SettingsItem(setting, titleId, descriptionId) {
+ override val type = TYPE_DATETIME_SETTING
+
+ val value: String
+ get() = if (setting != null) {
+ val setting = setting as AbstractStringSetting
+ setting.string
+ } else {
+ defaultValue!!
+ }
+
+ fun setSelectedValue(datetime: String): AbstractStringSetting {
+ val stringSetting = setting as AbstractStringSetting
+ stringSetting.string = datetime
+ return stringSetting
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/HeaderSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/HeaderSetting.kt
new file mode 100644
index 000000000..a67001311
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/HeaderSetting.kt
@@ -0,0 +1,10 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+class HeaderSetting(
+ titleId: Int
+) : SettingsItem(null, titleId, 0) {
+ override val type = TYPE_HEADER
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/RunnableSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/RunnableSetting.kt
new file mode 100644
index 000000000..caaab50d8
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/RunnableSetting.kt
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+class RunnableSetting(
+ titleId: Int,
+ descriptionId: Int,
+ val isRuntimeRunnable: Boolean,
+ val runnable: () -> Unit
+) : SettingsItem(null, titleId, descriptionId) {
+ override val type = TYPE_RUNNABLE
+}
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
new file mode 100644
index 000000000..07520849e
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SettingsItem.kt
@@ -0,0 +1,39 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
+
+/**
+ * ViewModel abstraction for an Item in the RecyclerView powering SettingsFragments.
+ * Each one corresponds to a [AbstractSetting] object, so this class's subclasses
+ * should vaguely correspond to those subclasses. There are a few with multiple analogues
+ * and a few with none (Headers, for example, do not correspond to anything in the ini
+ * file.)
+ */
+abstract class SettingsItem(
+ var setting: AbstractSetting?,
+ val nameId: Int,
+ val descriptionId: Int
+) {
+ abstract val type: Int
+
+ val isEditable: Boolean
+ get() {
+ if (!NativeLibrary.isRunning()) return true
+ return setting?.isRuntimeEditable ?: false
+ }
+
+ companion object {
+ const val TYPE_HEADER = 0
+ const val TYPE_SWITCH = 1
+ const val TYPE_SINGLE_CHOICE = 2
+ const val TYPE_SLIDER = 3
+ const val TYPE_SUBMENU = 4
+ const val TYPE_STRING_SINGLE_CHOICE = 5
+ const val TYPE_DATETIME_SETTING = 6
+ const val TYPE_RUNNABLE = 7
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SingleChoiceSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SingleChoiceSetting.kt
new file mode 100644
index 000000000..7306ec458
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SingleChoiceSetting.kt
@@ -0,0 +1,39 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+import org.yuzu.yuzu_emu.features.settings.model.AbstractIntSetting
+
+class SingleChoiceSetting(
+ setting: AbstractIntSetting?,
+ titleId: Int,
+ descriptionId: Int,
+ val choicesId: Int,
+ val valuesId: Int,
+ val key: String? = null,
+ val defaultValue: Int? = null
+) : SettingsItem(setting, titleId, descriptionId) {
+ override val type = TYPE_SINGLE_CHOICE
+
+ val selectedValue: Int
+ get() = if (setting != null) {
+ val setting = setting as AbstractIntSetting
+ setting.int
+ } else {
+ defaultValue!!
+ }
+
+ /**
+ * Write a value to the backing int. If that int was previously null,
+ * initializes a new one and returns it, so it can be added to the Hashmap.
+ *
+ * @param selection New value of the int.
+ * @return the existing setting with the new value applied.
+ */
+ fun setSelectedValue(selection: Int): AbstractIntSetting {
+ val intSetting = setting as AbstractIntSetting
+ intSetting.int = selection
+ return intSetting
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SliderSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SliderSetting.kt
new file mode 100644
index 000000000..92d0167ae
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SliderSetting.kt
@@ -0,0 +1,62 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+import kotlin.math.roundToInt
+import org.yuzu.yuzu_emu.features.settings.model.AbstractFloatSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractIntSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
+import org.yuzu.yuzu_emu.utils.Log
+
+class SliderSetting(
+ setting: AbstractSetting?,
+ titleId: Int,
+ descriptionId: Int,
+ val min: Int,
+ val max: Int,
+ val units: String,
+ val key: String? = null,
+ val defaultValue: Int? = null
+) : SettingsItem(setting, titleId, descriptionId) {
+ override val type = TYPE_SLIDER
+
+ val selectedValue: Int
+ get() {
+ val setting = setting ?: return defaultValue!!
+ return when (setting) {
+ is AbstractIntSetting -> setting.int
+ is AbstractFloatSetting -> setting.float.roundToInt()
+ else -> {
+ Log.error("[SliderSetting] Error casting setting type.")
+ -1
+ }
+ }
+ }
+
+ /**
+ * Write a value to the backing int. If that int was previously null,
+ * initializes a new one and returns it, so it can be added to the Hashmap.
+ *
+ * @param selection New value of the int.
+ * @return the existing setting with the new value applied.
+ */
+ fun setSelectedValue(selection: Int): AbstractIntSetting {
+ val intSetting = setting as AbstractIntSetting
+ intSetting.int = selection
+ return intSetting
+ }
+
+ /**
+ * Write a value to the backing float. If that float was previously null,
+ * initializes a new one and returns it, so it can be added to the Hashmap.
+ *
+ * @param selection New value of the float.
+ * @return the existing setting with the new value applied.
+ */
+ fun setSelectedValue(selection: Float): AbstractFloatSetting {
+ val floatSetting = setting as AbstractFloatSetting
+ floatSetting.float = selection
+ return floatSetting
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/StringSingleChoiceSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/StringSingleChoiceSetting.kt
new file mode 100644
index 000000000..3b6731dcd
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/StringSingleChoiceSetting.kt
@@ -0,0 +1,59 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractStringSetting
+
+class StringSingleChoiceSetting(
+ setting: AbstractSetting?,
+ titleId: Int,
+ descriptionId: Int,
+ val choices: Array<String>,
+ val values: Array<String>?,
+ val key: String? = null,
+ private val defaultValue: String? = null
+) : SettingsItem(setting, titleId, descriptionId) {
+ override val type = TYPE_STRING_SINGLE_CHOICE
+
+ fun getValueAt(index: Int): String? {
+ if (values == null) return null
+ return if (index >= 0 && index < values.size) {
+ values[index]
+ } else {
+ ""
+ }
+ }
+
+ val selectedValue: String
+ get() = if (setting != null) {
+ val setting = setting as AbstractStringSetting
+ setting.string
+ } else {
+ defaultValue!!
+ }
+ val selectValueIndex: Int
+ get() {
+ val selectedValue = selectedValue
+ for (i in values!!.indices) {
+ if (values[i] == selectedValue) {
+ return i
+ }
+ }
+ return -1
+ }
+
+ /**
+ * Write a value to the backing int. If that int was previously null,
+ * initializes a new one and returns it, so it can be added to the Hashmap.
+ *
+ * @param selection New value of the int.
+ * @return the existing setting with the new value applied.
+ */
+ fun setSelectedValue(selection: String): AbstractStringSetting {
+ val stringSetting = setting as AbstractStringSetting
+ stringSetting.string = selection
+ return stringSetting
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SubmenuSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SubmenuSetting.kt
new file mode 100644
index 000000000..8a9d13a92
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SubmenuSetting.kt
@@ -0,0 +1,12 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+class SubmenuSetting(
+ titleId: Int,
+ descriptionId: Int,
+ val menuKey: String
+) : SettingsItem(null, titleId, descriptionId) {
+ override val type = TYPE_SUBMENU
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SwitchSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SwitchSetting.kt
new file mode 100644
index 000000000..90b198718
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SwitchSetting.kt
@@ -0,0 +1,62 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.model.view
+
+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.AbstractSetting
+
+class SwitchSetting(
+ setting: AbstractSetting,
+ titleId: Int,
+ descriptionId: Int,
+ val key: String? = null,
+ val defaultValue: Any? = null
+) : SettingsItem(setting, titleId, descriptionId) {
+ override val type = TYPE_SWITCH
+
+ val isChecked: Boolean
+ get() {
+ if (setting == null) {
+ return defaultValue as Boolean
+ }
+
+ // Try integer setting
+ try {
+ val setting = setting as AbstractIntSetting
+ return setting.int == 1
+ } catch (_: ClassCastException) {
+ }
+
+ // Try boolean setting
+ try {
+ val setting = setting as AbstractBooleanSetting
+ return setting.boolean
+ } catch (_: ClassCastException) {
+ }
+ return defaultValue as Boolean
+ }
+
+ /**
+ * Write a value to the backing boolean. If that boolean was previously null,
+ * initializes a new one and returns it, so it can be added to the Hashmap.
+ *
+ * @param checked Pretty self explanatory.
+ * @return the existing setting with the new value applied.
+ */
+ fun setChecked(checked: Boolean): AbstractSetting {
+ // Try integer setting
+ try {
+ val setting = setting as AbstractIntSetting
+ setting.int = if (checked) 1 else 0
+ return setting
+ } catch (_: ClassCastException) {
+ }
+
+ // Try boolean setting
+ val setting = setting as AbstractBooleanSetting
+ setting.boolean = checked
+ return setting
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt
new file mode 100644
index 000000000..a5af5a7ae
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt
@@ -0,0 +1,262 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui
+
+import android.content.Context
+import android.content.Intent
+import android.os.Bundle
+import android.view.Menu
+import android.view.View
+import android.view.ViewGroup.MarginLayoutParams
+import android.widget.Toast
+import androidx.activity.OnBackPressedCallback
+import androidx.activity.result.ActivityResultLauncher
+import androidx.activity.viewModels
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import com.google.android.material.color.MaterialColors
+import java.io.IOException
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.databinding.ActivitySettingsBinding
+import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting
+import org.yuzu.yuzu_emu.features.settings.model.FloatSetting
+import org.yuzu.yuzu_emu.features.settings.model.IntSetting
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.features.settings.model.SettingsViewModel
+import org.yuzu.yuzu_emu.features.settings.model.StringSetting
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
+import org.yuzu.yuzu_emu.utils.*
+
+class SettingsActivity : AppCompatActivity(), SettingsActivityView {
+ private val presenter = SettingsActivityPresenter(this)
+
+ private lateinit var binding: ActivitySettingsBinding
+
+ private val settingsViewModel: SettingsViewModel by viewModels()
+
+ override val settings: Settings get() = settingsViewModel.settings
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ ThemeHelper.setTheme(this)
+
+ super.onCreate(savedInstanceState)
+
+ binding = ActivitySettingsBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ WindowCompat.setDecorFitsSystemWindows(window, false)
+
+ val launcher = intent
+ val gameID = launcher.getStringExtra(ARG_GAME_ID)
+ val menuTag = launcher.getStringExtra(ARG_MENU_TAG)
+ presenter.onCreate(savedInstanceState, menuTag!!, gameID!!)
+
+ // Show "Back" button in the action bar for navigation
+ setSupportActionBar(binding.toolbarSettings)
+ supportActionBar!!.setDisplayHomeAsUpEnabled(true)
+
+ if (InsetsHelper.getSystemGestureType(applicationContext) !=
+ InsetsHelper.GESTURE_NAVIGATION
+ ) {
+ binding.navigationBarShade.setBackgroundColor(
+ ThemeHelper.getColorWithOpacity(
+ MaterialColors.getColor(
+ binding.navigationBarShade,
+ com.google.android.material.R.attr.colorSurface
+ ),
+ ThemeHelper.SYSTEM_BAR_ALPHA
+ )
+ )
+ }
+
+ onBackPressedDispatcher.addCallback(
+ this,
+ object : OnBackPressedCallback(true) {
+ override fun handleOnBackPressed() = navigateBack()
+ }
+ )
+
+ setInsets()
+ }
+
+ override fun onSupportNavigateUp(): Boolean {
+ navigateBack()
+ return true
+ }
+
+ private fun navigateBack() {
+ if (supportFragmentManager.backStackEntryCount > 0) {
+ supportFragmentManager.popBackStack()
+ } else {
+ finish()
+ }
+ }
+
+ override fun onCreateOptionsMenu(menu: Menu): Boolean {
+ val inflater = menuInflater
+ inflater.inflate(R.menu.menu_settings, menu)
+ return true
+ }
+
+ override fun onSaveInstanceState(outState: Bundle) {
+ // Critical: If super method is not called, rotations will be busted.
+ super.onSaveInstanceState(outState)
+ presenter.saveState(outState)
+ }
+
+ override fun onStart() {
+ super.onStart()
+ presenter.onStart()
+ }
+
+ /**
+ * If this is called, the user has left the settings screen (potentially through the
+ * home button) and will expect their changes to be persisted. So we kick off an
+ * IntentService which will do so on a background thread.
+ */
+ override fun onStop() {
+ super.onStop()
+ presenter.onStop(isFinishing)
+ }
+
+ override fun showSettingsFragment(menuTag: String, addToStack: Boolean, gameId: String) {
+ if (!addToStack && settingsFragment != null) {
+ return
+ }
+
+ val transaction = supportFragmentManager.beginTransaction()
+ if (addToStack) {
+ if (areSystemAnimationsEnabled()) {
+ transaction.setCustomAnimations(
+ R.anim.anim_settings_fragment_in,
+ R.anim.anim_settings_fragment_out,
+ 0,
+ R.anim.anim_pop_settings_fragment_out
+ )
+ }
+ transaction.addToBackStack(null)
+ }
+ transaction.replace(
+ R.id.frame_content,
+ SettingsFragment.newInstance(menuTag, gameId),
+ FRAGMENT_TAG
+ )
+ transaction.commit()
+ }
+
+ private fun areSystemAnimationsEnabled(): Boolean {
+ val duration = android.provider.Settings.Global.getFloat(
+ contentResolver,
+ android.provider.Settings.Global.ANIMATOR_DURATION_SCALE,
+ 1f
+ )
+ val transition = android.provider.Settings.Global.getFloat(
+ contentResolver,
+ android.provider.Settings.Global.TRANSITION_ANIMATION_SCALE,
+ 1f
+ )
+ return duration != 0f && transition != 0f
+ }
+
+ override fun onSettingsFileLoaded() {
+ val fragment: SettingsFragmentView? = settingsFragment
+ fragment?.loadSettingsList()
+ }
+
+ override fun onSettingsFileNotFound() {
+ val fragment: SettingsFragmentView? = settingsFragment
+ fragment?.loadSettingsList()
+ }
+
+ override fun showToastMessage(message: String, is_long: Boolean) {
+ Toast.makeText(
+ this,
+ message,
+ if (is_long) Toast.LENGTH_LONG else Toast.LENGTH_SHORT
+ ).show()
+ }
+
+ override fun onSettingChanged() {
+ presenter.onSettingChanged()
+ }
+
+ fun onSettingsReset() {
+ // Prevents saving to a non-existent settings file
+ presenter.onSettingsReset()
+
+ // Reset the static memory representation of each setting
+ BooleanSetting.clear()
+ FloatSetting.clear()
+ IntSetting.clear()
+ StringSetting.clear()
+
+ // Delete settings file because the user may have changed values that do not exist in the UI
+ val settingsFile = SettingsFile.getSettingsFile(SettingsFile.FILE_NAME_CONFIG)
+ if (!settingsFile.delete()) {
+ throw IOException("Failed to delete $settingsFile")
+ }
+
+ showToastMessage(getString(R.string.settings_reset), true)
+ finish()
+ }
+
+ fun setToolbarTitle(title: String) {
+ binding.toolbarSettingsLayout.title = title
+ }
+
+ private val settingsFragment: SettingsFragment?
+ get() = supportFragmentManager.findFragmentByTag(FRAGMENT_TAG) as SettingsFragment?
+
+ private fun setInsets() {
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.frameContent
+ ) { view: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+ view.updatePadding(
+ left = barInsets.left + cutoutInsets.left,
+ right = barInsets.right + cutoutInsets.right
+ )
+
+ val mlpAppBar = binding.appbarSettings.layoutParams as MarginLayoutParams
+ mlpAppBar.leftMargin = barInsets.left + cutoutInsets.left
+ mlpAppBar.rightMargin = barInsets.right + cutoutInsets.right
+ binding.appbarSettings.layoutParams = mlpAppBar
+
+ val mlpShade = binding.navigationBarShade.layoutParams as MarginLayoutParams
+ mlpShade.height = barInsets.bottom
+ binding.navigationBarShade.layoutParams = mlpShade
+
+ windowInsets
+ }
+ }
+
+ companion object {
+ private const val ARG_MENU_TAG = "menu_tag"
+ private const val ARG_GAME_ID = "game_id"
+ private const val FRAGMENT_TAG = "settings"
+
+ fun launch(context: Context, menuTag: String?, gameId: String?) {
+ val settings = Intent(context, SettingsActivity::class.java)
+ settings.putExtra(ARG_MENU_TAG, menuTag)
+ settings.putExtra(ARG_GAME_ID, gameId)
+ context.startActivity(settings)
+ }
+
+ fun launch(
+ context: Context,
+ launcher: ActivityResultLauncher<Intent>,
+ menuTag: String?,
+ gameId: String?
+ ) {
+ val settings = Intent(context, SettingsActivity::class.java)
+ settings.putExtra(ARG_MENU_TAG, menuTag)
+ settings.putExtra(ARG_GAME_ID, gameId)
+ launcher.launch(settings)
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityPresenter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityPresenter.kt
new file mode 100644
index 000000000..93e677b21
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityPresenter.kt
@@ -0,0 +1,90 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui
+
+import android.content.Context
+import android.os.Bundle
+import android.text.TextUtils
+import java.io.File
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
+import org.yuzu.yuzu_emu.utils.DirectoryInitialization
+import org.yuzu.yuzu_emu.utils.Log
+
+class SettingsActivityPresenter(private val activityView: SettingsActivityView) {
+ val settings: Settings get() = activityView.settings
+
+ private var shouldSave = false
+ private lateinit var menuTag: String
+ private lateinit var gameId: String
+
+ fun onCreate(savedInstanceState: Bundle?, menuTag: String, gameId: String) {
+ this.menuTag = menuTag
+ this.gameId = gameId
+ if (savedInstanceState != null) {
+ shouldSave = savedInstanceState.getBoolean(KEY_SHOULD_SAVE)
+ }
+ }
+
+ fun onStart() {
+ prepareDirectoriesIfNeeded()
+ }
+
+ private fun loadSettingsUI() {
+ if (!settings.isLoaded) {
+ if (!TextUtils.isEmpty(gameId)) {
+ settings.loadSettings(gameId, activityView)
+ } else {
+ settings.loadSettings(activityView)
+ }
+ }
+ activityView.showSettingsFragment(menuTag, false, gameId)
+ activityView.onSettingsFileLoaded()
+ }
+
+ private fun prepareDirectoriesIfNeeded() {
+ val configFile =
+ File(
+ "${DirectoryInitialization.userDirectory}/config/" +
+ "${SettingsFile.FILE_NAME_CONFIG}.ini"
+ )
+ if (!configFile.exists()) {
+ Log.error(
+ "${DirectoryInitialization.userDirectory}/config/" +
+ "${SettingsFile.FILE_NAME_CONFIG}.ini"
+ )
+ Log.error("yuzu config file could not be found!")
+ }
+
+ if (!DirectoryInitialization.areDirectoriesReady) {
+ DirectoryInitialization.start(activityView as Context)
+ }
+ loadSettingsUI()
+ }
+
+ fun onStop(finishing: Boolean) {
+ if (finishing && shouldSave) {
+ Log.debug("[SettingsActivity] Settings activity stopping. Saving settings to INI...")
+ settings.saveSettings(activityView)
+ }
+ NativeLibrary.reloadSettings()
+ }
+
+ fun onSettingChanged() {
+ shouldSave = true
+ }
+
+ fun onSettingsReset() {
+ shouldSave = false
+ }
+
+ fun saveState(outState: Bundle) {
+ outState.putBoolean(KEY_SHOULD_SAVE, shouldSave)
+ }
+
+ companion object {
+ private const val KEY_SHOULD_SAVE = "should_save"
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityView.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityView.kt
new file mode 100644
index 000000000..c186fc388
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityView.kt
@@ -0,0 +1,57 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui
+
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+
+/**
+ * Abstraction for the Activity that manages SettingsFragments.
+ */
+interface SettingsActivityView {
+ /**
+ * Show a new SettingsFragment.
+ *
+ * @param menuTag Identifier for the settings group that should be displayed.
+ * @param addToStack Whether or not this fragment should replace a previous one.
+ */
+ fun showSettingsFragment(menuTag: String, addToStack: Boolean, gameId: String)
+
+ /**
+ * Called by a contained Fragment to get access to the Setting HashMap
+ * loaded from disk, so that each Fragment doesn't need to perform its own
+ * read operation.
+ *
+ * @return A HashMap of Settings.
+ */
+ val settings: Settings
+
+ /**
+ * Called when a load operation completes.
+ */
+ fun onSettingsFileLoaded()
+
+ /**
+ * Called when a load operation fails.
+ */
+ fun onSettingsFileNotFound()
+
+ /**
+ * Display a popup text message on screen.
+ *
+ * @param message The contents of the onscreen message.
+ * @param is_long Whether this should be a long Toast or short one.
+ */
+ fun showToastMessage(message: String, is_long: Boolean)
+
+ /**
+ * End the activity.
+ */
+ fun finish()
+
+ /**
+ * Called by a containing Fragment to tell the Activity that a setting was changed;
+ * unless this has been called, the Activity will not save to disk.
+ */
+ fun onSettingChanged()
+}
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
new file mode 100644
index 000000000..ce0b92c90
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt
@@ -0,0 +1,339 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui
+
+import android.content.Context
+import android.content.DialogInterface
+import android.icu.util.Calendar
+import android.icu.util.TimeZone
+import android.text.format.DateFormat
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import android.widget.TextView
+import androidx.appcompat.app.AlertDialog
+import androidx.appcompat.app.AppCompatActivity
+import androidx.recyclerview.widget.RecyclerView
+import com.google.android.material.datepicker.MaterialDatePicker
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import com.google.android.material.slider.Slider
+import com.google.android.material.timepicker.MaterialTimePicker
+import com.google.android.material.timepicker.TimeFormat
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.databinding.DialogSliderBinding
+import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
+import org.yuzu.yuzu_emu.databinding.ListItemSettingSwitchBinding
+import org.yuzu.yuzu_emu.databinding.ListItemSettingsHeaderBinding
+import org.yuzu.yuzu_emu.features.settings.model.AbstractBooleanSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractFloatSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractIntSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
+import org.yuzu.yuzu_emu.features.settings.model.AbstractStringSetting
+import org.yuzu.yuzu_emu.features.settings.model.FloatSetting
+import org.yuzu.yuzu_emu.features.settings.model.view.*
+import org.yuzu.yuzu_emu.features.settings.ui.viewholder.*
+
+class SettingsAdapter(
+ private val fragmentView: SettingsFragmentView,
+ private val context: Context
+) : RecyclerView.Adapter<SettingViewHolder?>(), DialogInterface.OnClickListener {
+ private var settings: ArrayList<SettingsItem>? = null
+ private var clickedItem: SettingsItem? = null
+ private var clickedPosition: Int
+ private var dialog: AlertDialog? = null
+ private var sliderProgress = 0
+ private var textSliderValue: TextView? = null
+
+ private var defaultCancelListener =
+ DialogInterface.OnClickListener { _: DialogInterface?, _: Int -> closeDialog() }
+
+ init {
+ clickedPosition = -1
+ }
+
+ override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SettingViewHolder {
+ val inflater = LayoutInflater.from(parent.context)
+ return when (viewType) {
+ SettingsItem.TYPE_HEADER -> {
+ HeaderViewHolder(ListItemSettingsHeaderBinding.inflate(inflater), this)
+ }
+
+ SettingsItem.TYPE_SWITCH -> {
+ SwitchSettingViewHolder(ListItemSettingSwitchBinding.inflate(inflater), this)
+ }
+
+ SettingsItem.TYPE_SINGLE_CHOICE, SettingsItem.TYPE_STRING_SINGLE_CHOICE -> {
+ SingleChoiceViewHolder(ListItemSettingBinding.inflate(inflater), this)
+ }
+
+ SettingsItem.TYPE_SLIDER -> {
+ SliderViewHolder(ListItemSettingBinding.inflate(inflater), this)
+ }
+
+ SettingsItem.TYPE_SUBMENU -> {
+ SubmenuViewHolder(ListItemSettingBinding.inflate(inflater), this)
+ }
+
+ SettingsItem.TYPE_DATETIME_SETTING -> {
+ DateTimeViewHolder(ListItemSettingBinding.inflate(inflater), this)
+ }
+
+ SettingsItem.TYPE_RUNNABLE -> {
+ RunnableViewHolder(ListItemSettingBinding.inflate(inflater), this)
+ }
+
+ else -> {
+ // TODO: Create an error view since we can't return null now
+ HeaderViewHolder(ListItemSettingsHeaderBinding.inflate(inflater), this)
+ }
+ }
+ }
+
+ override fun onBindViewHolder(holder: SettingViewHolder, position: Int) {
+ holder.bind(getItem(position))
+ }
+
+ private fun getItem(position: Int): SettingsItem {
+ return settings!![position]
+ }
+
+ override fun getItemCount(): Int {
+ return if (settings != null) {
+ settings!!.size
+ } else {
+ 0
+ }
+ }
+
+ override fun getItemViewType(position: Int): Int {
+ return getItem(position).type
+ }
+
+ fun setSettingsList(settings: ArrayList<SettingsItem>?) {
+ this.settings = settings
+ notifyDataSetChanged()
+ }
+
+ fun onBooleanClick(item: SwitchSetting, position: Int, checked: Boolean) {
+ val setting = item.setChecked(checked)
+ fragmentView.putSetting(setting)
+ fragmentView.onSettingChanged()
+ }
+
+ private fun onSingleChoiceClick(item: SingleChoiceSetting) {
+ clickedItem = item
+ val value = getSelectionForSingleChoiceValue(item)
+ dialog = MaterialAlertDialogBuilder(context)
+ .setTitle(item.nameId)
+ .setSingleChoiceItems(item.choicesId, value, this)
+ .show()
+ }
+
+ fun onSingleChoiceClick(item: SingleChoiceSetting, position: Int) {
+ clickedPosition = position
+ onSingleChoiceClick(item)
+ }
+
+ private fun onStringSingleChoiceClick(item: StringSingleChoiceSetting) {
+ clickedItem = item
+ dialog = MaterialAlertDialogBuilder(context)
+ .setTitle(item.nameId)
+ .setSingleChoiceItems(item.choices, item.selectValueIndex, this)
+ .show()
+ }
+
+ fun onStringSingleChoiceClick(item: StringSingleChoiceSetting, position: Int) {
+ clickedPosition = position
+ onStringSingleChoiceClick(item)
+ }
+
+ fun onDateTimeClick(item: DateTimeSetting, position: Int) {
+ clickedItem = item
+ clickedPosition = position
+ val storedTime = java.lang.Long.decode(item.value) * 1000
+
+ // Helper to extract hour and minute from epoch time
+ val calendar: Calendar = Calendar.getInstance()
+ calendar.timeInMillis = storedTime
+ calendar.timeZone = TimeZone.getTimeZone("UTC")
+
+ var timeFormat: Int = TimeFormat.CLOCK_12H
+ if (DateFormat.is24HourFormat(fragmentView.activityView as AppCompatActivity)) {
+ timeFormat = TimeFormat.CLOCK_24H
+ }
+
+ val datePicker: MaterialDatePicker<Long> = MaterialDatePicker.Builder.datePicker()
+ .setSelection(storedTime)
+ .setTitleText(R.string.select_rtc_date)
+ .build()
+ val timePicker: MaterialTimePicker = MaterialTimePicker.Builder()
+ .setTimeFormat(timeFormat)
+ .setHour(calendar.get(Calendar.HOUR_OF_DAY))
+ .setMinute(calendar.get(Calendar.MINUTE))
+ .setTitleText(R.string.select_rtc_time)
+ .build()
+
+ datePicker.addOnPositiveButtonClickListener {
+ timePicker.show(
+ (fragmentView.activityView as AppCompatActivity).supportFragmentManager,
+ "TimePicker"
+ )
+ }
+ timePicker.addOnPositiveButtonClickListener {
+ var epochTime: Long = datePicker.selection!! / 1000
+ epochTime += timePicker.hour.toLong() * 60 * 60
+ epochTime += timePicker.minute.toLong() * 60
+ val rtcString = epochTime.toString()
+ if (item.value != rtcString) {
+ fragmentView.onSettingChanged()
+ }
+ notifyItemChanged(clickedPosition)
+ val setting = item.setSelectedValue(rtcString)
+ fragmentView.putSetting(setting)
+ clickedItem = null
+ }
+ datePicker.show(
+ (fragmentView.activityView as AppCompatActivity).supportFragmentManager,
+ "DatePicker"
+ )
+ }
+
+ fun onSliderClick(item: SliderSetting, position: Int) {
+ clickedItem = item
+ clickedPosition = position
+ sliderProgress = item.selectedValue
+
+ val inflater = LayoutInflater.from(context)
+ val sliderBinding = DialogSliderBinding.inflate(inflater)
+
+ textSliderValue = sliderBinding.textValue
+ textSliderValue!!.text = sliderProgress.toString()
+ sliderBinding.textUnits.text = item.units
+
+ sliderBinding.slider.apply {
+ valueFrom = item.min.toFloat()
+ valueTo = item.max.toFloat()
+ value = sliderProgress.toFloat()
+ addOnChangeListener { _: Slider, value: Float, _: Boolean ->
+ sliderProgress = value.toInt()
+ textSliderValue!!.text = sliderProgress.toString()
+ }
+ }
+
+ dialog = MaterialAlertDialogBuilder(context)
+ .setTitle(item.nameId)
+ .setView(sliderBinding.root)
+ .setPositiveButton(android.R.string.ok, this)
+ .setNegativeButton(android.R.string.cancel, defaultCancelListener)
+ .setNeutralButton(R.string.slider_default) { dialog: DialogInterface, which: Int ->
+ sliderBinding.slider.value = item.defaultValue!!.toFloat()
+ onClick(dialog, which)
+ }
+ .show()
+ }
+
+ fun onSubmenuClick(item: SubmenuSetting) {
+ fragmentView.loadSubMenu(item.menuKey)
+ }
+
+ override fun onClick(dialog: DialogInterface, which: Int) {
+ when (clickedItem) {
+ is SingleChoiceSetting -> {
+ val scSetting = clickedItem as SingleChoiceSetting
+ val value = getValueForSingleChoiceSelection(scSetting, which)
+ if (scSetting.selectedValue != value) {
+ fragmentView.onSettingChanged()
+ }
+
+ // Get the backing Setting, which may be null (if for example it was missing from the file)
+ val setting = scSetting.setSelectedValue(value)
+ fragmentView.putSetting(setting)
+ closeDialog()
+ }
+
+ is StringSingleChoiceSetting -> {
+ val scSetting = clickedItem as StringSingleChoiceSetting
+ val value = scSetting.getValueAt(which)
+ if (scSetting.selectedValue != value) fragmentView.onSettingChanged()
+ val setting = scSetting.setSelectedValue(value!!)
+ fragmentView.putSetting(setting)
+ closeDialog()
+ }
+
+ is SliderSetting -> {
+ val sliderSetting = clickedItem as SliderSetting
+ if (sliderSetting.selectedValue != sliderProgress) {
+ fragmentView.onSettingChanged()
+ }
+ if (sliderSetting.setting is FloatSetting) {
+ val value = sliderProgress.toFloat()
+ val setting = sliderSetting.setSelectedValue(value)
+ fragmentView.putSetting(setting)
+ } else {
+ val setting = sliderSetting.setSelectedValue(sliderProgress)
+ fragmentView.putSetting(setting)
+ }
+ closeDialog()
+ }
+ }
+ clickedItem = null
+ sliderProgress = -1
+ }
+
+ fun onLongClick(setting: AbstractSetting, position: Int): Boolean {
+ MaterialAlertDialogBuilder(context)
+ .setMessage(R.string.reset_setting_confirmation)
+ .setPositiveButton(android.R.string.ok) { dialog: DialogInterface, which: Int ->
+ when (setting) {
+ is AbstractBooleanSetting -> setting.boolean = setting.defaultValue as Boolean
+ is AbstractFloatSetting -> setting.float = setting.defaultValue as Float
+ is AbstractIntSetting -> setting.int = setting.defaultValue as Int
+ is AbstractStringSetting -> setting.string = setting.defaultValue as String
+ }
+ notifyItemChanged(position)
+ fragmentView.onSettingChanged()
+ }
+ .setNegativeButton(android.R.string.cancel, null)
+ .show()
+
+ return true
+ }
+
+ fun closeDialog() {
+ if (dialog != null) {
+ if (clickedPosition != -1) {
+ notifyItemChanged(clickedPosition)
+ clickedPosition = -1
+ }
+ dialog!!.dismiss()
+ dialog = null
+ }
+ }
+
+ private fun getValueForSingleChoiceSelection(item: SingleChoiceSetting, which: Int): Int {
+ val valuesId = item.valuesId
+ return if (valuesId > 0) {
+ val valuesArray = context.resources.getIntArray(valuesId)
+ valuesArray[which]
+ } else {
+ which
+ }
+ }
+
+ private fun getSelectionForSingleChoiceValue(item: SingleChoiceSetting): Int {
+ val value = item.selectedValue
+ val valuesId = item.valuesId
+ if (valuesId > 0) {
+ val valuesArray = context.resources.getIntArray(valuesId)
+ for (index in valuesArray.indices) {
+ val current = valuesArray[index]
+ if (current == value) {
+ return index
+ }
+ }
+ } else {
+ return value
+ }
+ return -1
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragment.kt
new file mode 100644
index 000000000..70a74c4dd
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragment.kt
@@ -0,0 +1,127 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui
+
+import android.content.Context
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import androidx.fragment.app.Fragment
+import androidx.recyclerview.widget.LinearLayoutManager
+import com.google.android.material.divider.MaterialDividerItemDecoration
+import org.yuzu.yuzu_emu.databinding.FragmentSettingsBinding
+import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+
+class SettingsFragment : Fragment(), SettingsFragmentView {
+ override var activityView: SettingsActivityView? = null
+
+ private val fragmentPresenter = SettingsFragmentPresenter(this)
+ private var settingsAdapter: SettingsAdapter? = null
+
+ private var _binding: FragmentSettingsBinding? = null
+ private val binding get() = _binding!!
+
+ override fun onAttach(context: Context) {
+ super.onAttach(context)
+ activityView = requireActivity() as SettingsActivityView
+ }
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ val menuTag = requireArguments().getString(ARGUMENT_MENU_TAG)
+ val gameId = requireArguments().getString(ARGUMENT_GAME_ID)
+ fragmentPresenter.onCreate(menuTag!!, gameId!!)
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentSettingsBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ settingsAdapter = SettingsAdapter(this, requireActivity())
+ val dividerDecoration = MaterialDividerItemDecoration(
+ requireContext(),
+ LinearLayoutManager.VERTICAL
+ )
+ dividerDecoration.isLastItemDecorated = false
+ binding.listSettings.apply {
+ adapter = settingsAdapter
+ layoutManager = LinearLayoutManager(activity)
+ addItemDecoration(dividerDecoration)
+ }
+ fragmentPresenter.onViewCreated()
+
+ setInsets()
+ }
+
+ override fun onDetach() {
+ super.onDetach()
+ activityView = null
+ if (settingsAdapter != null) {
+ settingsAdapter!!.closeDialog()
+ }
+ }
+
+ override fun showSettingsList(settingsList: ArrayList<SettingsItem>) {
+ settingsAdapter!!.setSettingsList(settingsList)
+ }
+
+ override fun loadSettingsList() {
+ fragmentPresenter.loadSettingsList()
+ }
+
+ override fun loadSubMenu(menuKey: String) {
+ activityView!!.showSettingsFragment(
+ menuKey,
+ true,
+ requireArguments().getString(ARGUMENT_GAME_ID)!!
+ )
+ }
+
+ override fun showToastMessage(message: String?, is_long: Boolean) {
+ activityView!!.showToastMessage(message!!, is_long)
+ }
+
+ override fun putSetting(setting: AbstractSetting) {
+ fragmentPresenter.putSetting(setting)
+ }
+
+ override fun onSettingChanged() {
+ activityView!!.onSettingChanged()
+ }
+
+ private fun setInsets() {
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.listSettings
+ ) { view: View, windowInsets: WindowInsetsCompat ->
+ val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ view.updatePadding(bottom = insets.bottom)
+ windowInsets
+ }
+ }
+
+ companion object {
+ private const val ARGUMENT_MENU_TAG = "menu_tag"
+ private const val ARGUMENT_GAME_ID = "game_id"
+
+ fun newInstance(menuTag: String?, gameId: String?): Fragment {
+ val fragment = SettingsFragment()
+ val arguments = Bundle()
+ arguments.putString(ARGUMENT_MENU_TAG, menuTag)
+ arguments.putString(ARGUMENT_GAME_ID, gameId)
+ fragment.arguments = arguments
+ return fragment
+ }
+ }
+}
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
new file mode 100644
index 000000000..59c1d9d54
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
@@ -0,0 +1,539 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui
+
+import android.content.SharedPreferences
+import android.os.Build
+import android.text.TextUtils
+import androidx.preference.PreferenceManager
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+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.AbstractSetting
+import org.yuzu.yuzu_emu.features.settings.model.BooleanSetting
+import org.yuzu.yuzu_emu.features.settings.model.IntSetting
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.features.settings.model.StringSetting
+import org.yuzu.yuzu_emu.features.settings.model.view.*
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
+import org.yuzu.yuzu_emu.fragments.ResetSettingsDialogFragment
+import org.yuzu.yuzu_emu.utils.ThemeHelper
+
+class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView) {
+ private var menuTag: String? = null
+ private lateinit var gameId: String
+ private var settingsList: ArrayList<SettingsItem>? = null
+
+ private val settingsActivity get() = fragmentView.activityView as SettingsActivity
+ private val settings get() = fragmentView.activityView!!.settings
+
+ private lateinit var preferences: SharedPreferences
+
+ fun onCreate(menuTag: String, gameId: String) {
+ this.gameId = gameId
+ this.menuTag = menuTag
+ }
+
+ fun onViewCreated() {
+ preferences = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+ loadSettingsList()
+ }
+
+ fun putSetting(setting: AbstractSetting) {
+ if (setting.section == null || setting.key == null) {
+ return
+ }
+
+ val section = settings.getSection(setting.section!!)!!
+ if (section.getSetting(setting.key!!) == null) {
+ section.putSetting(setting)
+ }
+ }
+
+ fun loadSettingsList() {
+ if (!TextUtils.isEmpty(gameId)) {
+ settingsActivity.setToolbarTitle("Game Settings: $gameId")
+ }
+ val sl = ArrayList<SettingsItem>()
+ if (menuTag == null) {
+ return
+ }
+ when (menuTag) {
+ SettingsFile.FILE_NAME_CONFIG -> addConfigSettings(sl)
+ Settings.SECTION_GENERAL -> addGeneralSettings(sl)
+ Settings.SECTION_SYSTEM -> addSystemSettings(sl)
+ Settings.SECTION_RENDERER -> addGraphicsSettings(sl)
+ Settings.SECTION_AUDIO -> addAudioSettings(sl)
+ Settings.SECTION_THEME -> addThemeSettings(sl)
+ Settings.SECTION_DEBUG -> addDebugSettings(sl)
+ else -> {
+ fragmentView.showToastMessage("Unimplemented menu", false)
+ return
+ }
+ }
+ settingsList = sl
+ fragmentView.showSettingsList(settingsList!!)
+ }
+
+ private fun addConfigSettings(sl: ArrayList<SettingsItem>) {
+ settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.advanced_settings))
+ sl.apply {
+ add(
+ SubmenuSetting(
+ R.string.preferences_general,
+ 0,
+ Settings.SECTION_GENERAL
+ )
+ )
+ add(
+ SubmenuSetting(
+ R.string.preferences_system,
+ 0,
+ Settings.SECTION_SYSTEM
+ )
+ )
+ add(
+ SubmenuSetting(
+ R.string.preferences_graphics,
+ 0,
+ Settings.SECTION_RENDERER
+ )
+ )
+ add(
+ SubmenuSetting(
+ R.string.preferences_audio,
+ 0,
+ Settings.SECTION_AUDIO
+ )
+ )
+ add(
+ SubmenuSetting(
+ R.string.preferences_debug,
+ 0,
+ Settings.SECTION_DEBUG
+ )
+ )
+ add(
+ RunnableSetting(
+ R.string.reset_to_default,
+ 0,
+ false
+ ) {
+ ResetSettingsDialogFragment().show(
+ settingsActivity.supportFragmentManager,
+ ResetSettingsDialogFragment.TAG
+ )
+ }
+ )
+ }
+ }
+
+ private fun addGeneralSettings(sl: ArrayList<SettingsItem>) {
+ settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_general))
+ sl.apply {
+ add(
+ SwitchSetting(
+ IntSetting.RENDERER_USE_SPEED_LIMIT,
+ R.string.frame_limit_enable,
+ R.string.frame_limit_enable_description,
+ IntSetting.RENDERER_USE_SPEED_LIMIT.key,
+ IntSetting.RENDERER_USE_SPEED_LIMIT.defaultValue
+ )
+ )
+ add(
+ SliderSetting(
+ IntSetting.RENDERER_SPEED_LIMIT,
+ R.string.frame_limit_slider,
+ R.string.frame_limit_slider_description,
+ 1,
+ 200,
+ "%",
+ IntSetting.RENDERER_SPEED_LIMIT.key,
+ IntSetting.RENDERER_SPEED_LIMIT.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.CPU_ACCURACY,
+ R.string.cpu_accuracy,
+ 0,
+ R.array.cpuAccuracyNames,
+ R.array.cpuAccuracyValues,
+ IntSetting.CPU_ACCURACY.key,
+ IntSetting.CPU_ACCURACY.defaultValue
+ )
+ )
+ add(
+ SwitchSetting(
+ BooleanSetting.PICTURE_IN_PICTURE,
+ R.string.picture_in_picture,
+ R.string.picture_in_picture_description,
+ BooleanSetting.PICTURE_IN_PICTURE.key,
+ BooleanSetting.PICTURE_IN_PICTURE.defaultValue
+ )
+ )
+ }
+ }
+
+ private fun addSystemSettings(sl: ArrayList<SettingsItem>) {
+ settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_system))
+ sl.apply {
+ add(
+ SwitchSetting(
+ IntSetting.USE_DOCKED_MODE,
+ R.string.use_docked_mode,
+ R.string.use_docked_mode_description,
+ IntSetting.USE_DOCKED_MODE.key,
+ IntSetting.USE_DOCKED_MODE.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.REGION_INDEX,
+ R.string.emulated_region,
+ 0,
+ R.array.regionNames,
+ R.array.regionValues,
+ IntSetting.REGION_INDEX.key,
+ IntSetting.REGION_INDEX.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.LANGUAGE_INDEX,
+ R.string.emulated_language,
+ 0,
+ R.array.languageNames,
+ R.array.languageValues,
+ IntSetting.LANGUAGE_INDEX.key,
+ IntSetting.LANGUAGE_INDEX.defaultValue
+ )
+ )
+ add(
+ SwitchSetting(
+ BooleanSetting.USE_CUSTOM_RTC,
+ R.string.use_custom_rtc,
+ R.string.use_custom_rtc_description,
+ BooleanSetting.USE_CUSTOM_RTC.key,
+ BooleanSetting.USE_CUSTOM_RTC.defaultValue
+ )
+ )
+ add(
+ DateTimeSetting(
+ StringSetting.CUSTOM_RTC,
+ R.string.set_custom_rtc,
+ 0,
+ StringSetting.CUSTOM_RTC.key,
+ StringSetting.CUSTOM_RTC.defaultValue
+ )
+ )
+ }
+ }
+
+ private fun addGraphicsSettings(sl: ArrayList<SettingsItem>) {
+ settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_graphics))
+ sl.apply {
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_ACCURACY,
+ R.string.renderer_accuracy,
+ 0,
+ R.array.rendererAccuracyNames,
+ R.array.rendererAccuracyValues,
+ IntSetting.RENDERER_ACCURACY.key,
+ IntSetting.RENDERER_ACCURACY.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_RESOLUTION,
+ R.string.renderer_resolution,
+ 0,
+ R.array.rendererResolutionNames,
+ R.array.rendererResolutionValues,
+ IntSetting.RENDERER_RESOLUTION.key,
+ IntSetting.RENDERER_RESOLUTION.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_VSYNC,
+ R.string.renderer_vsync,
+ 0,
+ R.array.rendererVSyncNames,
+ R.array.rendererVSyncValues,
+ IntSetting.RENDERER_VSYNC.key,
+ IntSetting.RENDERER_VSYNC.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_SCALING_FILTER,
+ R.string.renderer_scaling_filter,
+ 0,
+ R.array.rendererScalingFilterNames,
+ R.array.rendererScalingFilterValues,
+ IntSetting.RENDERER_SCALING_FILTER.key,
+ IntSetting.RENDERER_SCALING_FILTER.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_ANTI_ALIASING,
+ R.string.renderer_anti_aliasing,
+ 0,
+ R.array.rendererAntiAliasingNames,
+ R.array.rendererAntiAliasingValues,
+ IntSetting.RENDERER_ANTI_ALIASING.key,
+ IntSetting.RENDERER_ANTI_ALIASING.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_SCREEN_LAYOUT,
+ R.string.renderer_screen_layout,
+ 0,
+ R.array.rendererScreenLayoutNames,
+ R.array.rendererScreenLayoutValues,
+ IntSetting.RENDERER_SCREEN_LAYOUT.key,
+ IntSetting.RENDERER_SCREEN_LAYOUT.defaultValue
+ )
+ )
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_ASPECT_RATIO,
+ R.string.renderer_aspect_ratio,
+ 0,
+ R.array.rendererAspectRatioNames,
+ R.array.rendererAspectRatioValues,
+ IntSetting.RENDERER_ASPECT_RATIO.key,
+ IntSetting.RENDERER_ASPECT_RATIO.defaultValue
+ )
+ )
+ add(
+ SwitchSetting(
+ IntSetting.RENDERER_USE_DISK_SHADER_CACHE,
+ R.string.use_disk_shader_cache,
+ R.string.use_disk_shader_cache_description,
+ IntSetting.RENDERER_USE_DISK_SHADER_CACHE.key,
+ IntSetting.RENDERER_USE_DISK_SHADER_CACHE.defaultValue
+ )
+ )
+ add(
+ SwitchSetting(
+ IntSetting.RENDERER_FORCE_MAX_CLOCK,
+ R.string.renderer_force_max_clock,
+ R.string.renderer_force_max_clock_description,
+ IntSetting.RENDERER_FORCE_MAX_CLOCK.key,
+ IntSetting.RENDERER_FORCE_MAX_CLOCK.defaultValue
+ )
+ )
+ add(
+ SwitchSetting(
+ IntSetting.RENDERER_ASYNCHRONOUS_SHADERS,
+ R.string.renderer_asynchronous_shaders,
+ R.string.renderer_asynchronous_shaders_description,
+ IntSetting.RENDERER_ASYNCHRONOUS_SHADERS.key,
+ IntSetting.RENDERER_ASYNCHRONOUS_SHADERS.defaultValue
+ )
+ )
+ add(
+ SwitchSetting(
+ IntSetting.RENDERER_REACTIVE_FLUSHING,
+ R.string.renderer_reactive_flushing,
+ R.string.renderer_reactive_flushing_description,
+ IntSetting.RENDERER_REACTIVE_FLUSHING.key,
+ IntSetting.RENDERER_REACTIVE_FLUSHING.defaultValue
+ )
+ )
+ }
+ }
+
+ private fun addAudioSettings(sl: ArrayList<SettingsItem>) {
+ settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_audio))
+ sl.apply {
+ add(
+ StringSingleChoiceSetting(
+ StringSetting.AUDIO_OUTPUT_ENGINE,
+ R.string.audio_output_engine,
+ 0,
+ settingsActivity.resources.getStringArray(R.array.outputEngineEntries),
+ settingsActivity.resources.getStringArray(R.array.outputEngineValues),
+ StringSetting.AUDIO_OUTPUT_ENGINE.key,
+ StringSetting.AUDIO_OUTPUT_ENGINE.defaultValue
+ )
+ )
+ add(
+ SliderSetting(
+ IntSetting.AUDIO_VOLUME,
+ R.string.audio_volume,
+ R.string.audio_volume_description,
+ 0,
+ 100,
+ "%",
+ IntSetting.AUDIO_VOLUME.key,
+ IntSetting.AUDIO_VOLUME.defaultValue
+ )
+ )
+ }
+ }
+
+ private fun addThemeSettings(sl: ArrayList<SettingsItem>) {
+ settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_theme))
+ sl.apply {
+ val theme: AbstractIntSetting = object : AbstractIntSetting {
+ override var int: Int
+ get() = preferences.getInt(Settings.PREF_THEME, 0)
+ set(value) {
+ preferences.edit()
+ .putInt(Settings.PREF_THEME, value)
+ .apply()
+ settingsActivity.recreate()
+ }
+ override val key: String? = null
+ override val section: String? = null
+ override val isRuntimeEditable: Boolean = false
+ override val valueAsString: String
+ get() = preferences.getInt(Settings.PREF_THEME, 0).toString()
+ override val defaultValue: Any = 0
+ }
+
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
+ add(
+ SingleChoiceSetting(
+ theme,
+ R.string.change_app_theme,
+ 0,
+ R.array.themeEntriesA12,
+ R.array.themeValuesA12
+ )
+ )
+ } else {
+ add(
+ SingleChoiceSetting(
+ theme,
+ R.string.change_app_theme,
+ 0,
+ R.array.themeEntries,
+ R.array.themeValues
+ )
+ )
+ }
+
+ val themeMode: AbstractIntSetting = object : AbstractIntSetting {
+ override var int: Int
+ get() = preferences.getInt(Settings.PREF_THEME_MODE, -1)
+ set(value) {
+ preferences.edit()
+ .putInt(Settings.PREF_THEME_MODE, value)
+ .apply()
+ ThemeHelper.setThemeMode(settingsActivity)
+ }
+ override val key: String? = null
+ override val section: String? = null
+ override val isRuntimeEditable: Boolean = false
+ override val valueAsString: String
+ get() = preferences.getInt(Settings.PREF_THEME_MODE, -1).toString()
+ override val defaultValue: Any = -1
+ }
+
+ add(
+ SingleChoiceSetting(
+ themeMode,
+ R.string.change_theme_mode,
+ 0,
+ R.array.themeModeEntries,
+ R.array.themeModeValues
+ )
+ )
+
+ val blackBackgrounds: AbstractBooleanSetting = object : AbstractBooleanSetting {
+ override var boolean: Boolean
+ get() = preferences.getBoolean(Settings.PREF_BLACK_BACKGROUNDS, false)
+ set(value) {
+ preferences.edit()
+ .putBoolean(Settings.PREF_BLACK_BACKGROUNDS, value)
+ .apply()
+ settingsActivity.recreate()
+ }
+ override val key: String? = null
+ override val section: String? = null
+ override val isRuntimeEditable: Boolean = false
+ override val valueAsString: String
+ get() = preferences.getBoolean(Settings.PREF_BLACK_BACKGROUNDS, false)
+ .toString()
+ override val defaultValue: Any = false
+ }
+
+ add(
+ SwitchSetting(
+ blackBackgrounds,
+ R.string.use_black_backgrounds,
+ R.string.use_black_backgrounds_description
+ )
+ )
+ }
+ }
+
+ private fun addDebugSettings(sl: ArrayList<SettingsItem>) {
+ settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_debug))
+ sl.apply {
+ add(HeaderSetting(R.string.gpu))
+ add(
+ SingleChoiceSetting(
+ IntSetting.RENDERER_BACKEND,
+ R.string.renderer_api,
+ 0,
+ R.array.rendererApiNames,
+ R.array.rendererApiValues,
+ IntSetting.RENDERER_BACKEND.key,
+ IntSetting.RENDERER_BACKEND.defaultValue
+ )
+ )
+ add(
+ SwitchSetting(
+ IntSetting.RENDERER_DEBUG,
+ R.string.renderer_debug,
+ R.string.renderer_debug_description,
+ IntSetting.RENDERER_DEBUG.key,
+ IntSetting.RENDERER_DEBUG.defaultValue
+ )
+ )
+
+ add(HeaderSetting(R.string.cpu))
+ add(
+ SwitchSetting(
+ BooleanSetting.CPU_DEBUG_MODE,
+ R.string.cpu_debug_mode,
+ R.string.cpu_debug_mode_description,
+ BooleanSetting.CPU_DEBUG_MODE.key,
+ BooleanSetting.CPU_DEBUG_MODE.defaultValue
+ )
+ )
+
+ val fastmem = object : AbstractBooleanSetting {
+ override var boolean: Boolean
+ get() =
+ BooleanSetting.FASTMEM.boolean && BooleanSetting.FASTMEM_EXCLUSIVES.boolean
+ set(value) {
+ BooleanSetting.FASTMEM.boolean = value
+ BooleanSetting.FASTMEM_EXCLUSIVES.boolean = value
+ }
+ override val key: String? = null
+ override val section: String = Settings.SECTION_CPU
+ override val isRuntimeEditable: Boolean = false
+ override val valueAsString: String = ""
+ override val defaultValue: Any = true
+ }
+ add(
+ SwitchSetting(
+ fastmem,
+ R.string.fastmem,
+ 0
+ )
+ )
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentView.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentView.kt
new file mode 100644
index 000000000..1ebe35eaa
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentView.kt
@@ -0,0 +1,58 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui
+
+import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+
+/**
+ * Abstraction for a screen showing a list of settings. Instances of
+ * this type of view will each display a layer of the setting hierarchy.
+ */
+interface SettingsFragmentView {
+ /**
+ * Pass an ArrayList to the View so that it can be displayed on screen.
+ *
+ * @param settingsList The result of converting the HashMap to an ArrayList
+ */
+ fun showSettingsList(settingsList: ArrayList<SettingsItem>)
+
+ /**
+ * Instructs the Fragment to load the settings screen.
+ */
+ fun loadSettingsList()
+
+ /**
+ * @return The Fragment's containing activity.
+ */
+ val activityView: SettingsActivityView?
+
+ /**
+ * Tell the Fragment to tell the containing Activity to show a new
+ * Fragment containing a submenu of settings.
+ *
+ * @param menuKey Identifier for the settings group that should be shown.
+ */
+ fun loadSubMenu(menuKey: String)
+
+ /**
+ * Tell the Fragment to tell the containing activity to display a toast message.
+ *
+ * @param message Text to be shown in the Toast
+ * @param is_long Whether this should be a long Toast or short one.
+ */
+ fun showToastMessage(message: String?, is_long: Boolean)
+
+ /**
+ * Have the fragment add a setting to the HashMap.
+ *
+ * @param setting The (possibly previously missing) new setting.
+ */
+ fun putSetting(setting: AbstractSetting)
+
+ /**
+ * Have the fragment tell the containing Activity that a setting was modified.
+ */
+ fun onSettingChanged()
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/DateTimeViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/DateTimeViewHolder.kt
new file mode 100644
index 000000000..7955532ee
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/DateTimeViewHolder.kt
@@ -0,0 +1,48 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import java.time.Instant
+import java.time.ZoneId
+import java.time.ZonedDateTime
+import java.time.format.DateTimeFormatter
+import java.time.format.FormatStyle
+import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
+import org.yuzu.yuzu_emu.features.settings.model.view.DateTimeSetting
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+class DateTimeViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
+ SettingViewHolder(binding.root, adapter) {
+ private lateinit var setting: DateTimeSetting
+
+ override fun bind(item: SettingsItem) {
+ setting = item as DateTimeSetting
+ binding.textSettingName.setText(item.nameId)
+ if (item.descriptionId != 0) {
+ binding.textSettingDescription.setText(item.descriptionId)
+ binding.textSettingDescription.visibility = View.VISIBLE
+ } else {
+ val epochTime = setting.value.toLong()
+ val instant = Instant.ofEpochMilli(epochTime * 1000)
+ val zonedTime = ZonedDateTime.ofInstant(instant, ZoneId.of("UTC"))
+ val dateFormatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM)
+ binding.textSettingDescription.text = dateFormatter.format(zonedTime)
+ }
+ }
+
+ override fun onClick(clicked: View) {
+ if (setting.isEditable) {
+ adapter.onDateTimeClick(setting, bindingAdapterPosition)
+ }
+ }
+
+ override fun onLongClick(clicked: View): Boolean {
+ if (setting.isEditable) {
+ return adapter.onLongClick(setting.setting!!, bindingAdapterPosition)
+ }
+ return false
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/HeaderViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/HeaderViewHolder.kt
new file mode 100644
index 000000000..f5bcf705c
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/HeaderViewHolder.kt
@@ -0,0 +1,30 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import org.yuzu.yuzu_emu.databinding.ListItemSettingsHeaderBinding
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+class HeaderViewHolder(val binding: ListItemSettingsHeaderBinding, adapter: SettingsAdapter) :
+ SettingViewHolder(binding.root, adapter) {
+
+ init {
+ itemView.setOnClickListener(null)
+ }
+
+ override fun bind(item: SettingsItem) {
+ binding.textHeaderName.setText(item.nameId)
+ }
+
+ override fun onClick(clicked: View) {
+ // no-op
+ }
+
+ override fun onLongClick(clicked: View): Boolean {
+ // no-op
+ return true
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/RunnableViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/RunnableViewHolder.kt
new file mode 100644
index 000000000..5dad5945f
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/RunnableViewHolder.kt
@@ -0,0 +1,38 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
+import org.yuzu.yuzu_emu.features.settings.model.view.RunnableSetting
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+class RunnableViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
+ SettingViewHolder(binding.root, adapter) {
+ private lateinit var setting: RunnableSetting
+
+ override fun bind(item: SettingsItem) {
+ setting = item as RunnableSetting
+ binding.textSettingName.setText(item.nameId)
+ if (item.descriptionId != 0) {
+ binding.textSettingDescription.setText(item.descriptionId)
+ binding.textSettingDescription.visibility = View.VISIBLE
+ } else {
+ binding.textSettingDescription.visibility = View.GONE
+ }
+ }
+
+ override fun onClick(clicked: View) {
+ if (!setting.isRuntimeRunnable && !NativeLibrary.isRunning()) {
+ setting.runnable.invoke()
+ }
+ }
+
+ override fun onLongClick(clicked: View): Boolean {
+ // no-op
+ return true
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SettingViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SettingViewHolder.kt
new file mode 100644
index 000000000..f56460893
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SettingViewHolder.kt
@@ -0,0 +1,36 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import androidx.recyclerview.widget.RecyclerView
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+abstract class SettingViewHolder(itemView: View, protected val adapter: SettingsAdapter) :
+ RecyclerView.ViewHolder(itemView), View.OnClickListener, View.OnLongClickListener {
+
+ init {
+ itemView.setOnClickListener(this)
+ itemView.setOnLongClickListener(this)
+ }
+
+ /**
+ * Called by the adapter to set this ViewHolder's child views to display the list item
+ * it must now represent.
+ *
+ * @param item The list item that should be represented by this ViewHolder.
+ */
+ abstract fun bind(item: SettingsItem)
+
+ /**
+ * Called when this ViewHolder's view is clicked on. Implementations should usually pass
+ * this event up to the adapter.
+ *
+ * @param clicked The view that was clicked on.
+ */
+ abstract override fun onClick(clicked: View)
+
+ abstract override fun onLongClick(clicked: View): Boolean
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SingleChoiceViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SingleChoiceViewHolder.kt
new file mode 100644
index 000000000..e4e321bd3
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SingleChoiceViewHolder.kt
@@ -0,0 +1,68 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.model.view.SingleChoiceSetting
+import org.yuzu.yuzu_emu.features.settings.model.view.StringSingleChoiceSetting
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+class SingleChoiceViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
+ SettingViewHolder(binding.root, adapter) {
+ private lateinit var setting: SettingsItem
+
+ override fun bind(item: SettingsItem) {
+ setting = item
+ binding.textSettingName.setText(item.nameId)
+ binding.textSettingDescription.visibility = View.VISIBLE
+ if (item.descriptionId != 0) {
+ binding.textSettingDescription.setText(item.descriptionId)
+ } else if (item is SingleChoiceSetting) {
+ val resMgr = binding.textSettingDescription.context.resources
+ val values = resMgr.getIntArray(item.valuesId)
+ for (i in values.indices) {
+ if (values[i] == item.selectedValue) {
+ binding.textSettingDescription.text = resMgr.getStringArray(item.choicesId)[i]
+ return
+ }
+ }
+ } else if (item is StringSingleChoiceSetting) {
+ for (i in item.values!!.indices) {
+ if (item.values[i] == item.selectedValue) {
+ binding.textSettingDescription.text = item.choices[i]
+ return
+ }
+ }
+ } else {
+ binding.textSettingDescription.visibility = View.GONE
+ }
+ }
+
+ override fun onClick(clicked: View) {
+ if (!setting.isEditable) {
+ return
+ }
+
+ if (setting is SingleChoiceSetting) {
+ adapter.onSingleChoiceClick(
+ (setting as SingleChoiceSetting),
+ bindingAdapterPosition
+ )
+ } else if (setting is StringSingleChoiceSetting) {
+ adapter.onStringSingleChoiceClick(
+ (setting as StringSingleChoiceSetting),
+ bindingAdapterPosition
+ )
+ }
+ }
+
+ override fun onLongClick(clicked: View): Boolean {
+ if (setting.isEditable) {
+ return adapter.onLongClick(setting.setting!!, bindingAdapterPosition)
+ }
+ return false
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SliderViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SliderViewHolder.kt
new file mode 100644
index 000000000..cc3f39aa5
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SliderViewHolder.kt
@@ -0,0 +1,39 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.model.view.SliderSetting
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+class SliderViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
+ SettingViewHolder(binding.root, adapter) {
+ private lateinit var setting: SliderSetting
+
+ override fun bind(item: SettingsItem) {
+ setting = item as SliderSetting
+ binding.textSettingName.setText(item.nameId)
+ if (item.descriptionId != 0) {
+ binding.textSettingDescription.setText(item.descriptionId)
+ binding.textSettingDescription.visibility = View.VISIBLE
+ } else {
+ binding.textSettingDescription.visibility = View.GONE
+ }
+ }
+
+ override fun onClick(clicked: View) {
+ if (setting.isEditable) {
+ adapter.onSliderClick(setting, bindingAdapterPosition)
+ }
+ }
+
+ override fun onLongClick(clicked: View): Boolean {
+ if (setting.isEditable) {
+ return adapter.onLongClick(setting.setting!!, bindingAdapterPosition)
+ }
+ return false
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SubmenuViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SubmenuViewHolder.kt
new file mode 100644
index 000000000..c545b4174
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SubmenuViewHolder.kt
@@ -0,0 +1,35 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import org.yuzu.yuzu_emu.databinding.ListItemSettingBinding
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.model.view.SubmenuSetting
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+class SubmenuViewHolder(val binding: ListItemSettingBinding, adapter: SettingsAdapter) :
+ SettingViewHolder(binding.root, adapter) {
+ private lateinit var item: SubmenuSetting
+
+ override fun bind(item: SettingsItem) {
+ this.item = item as SubmenuSetting
+ binding.textSettingName.setText(item.nameId)
+ if (item.descriptionId != 0) {
+ binding.textSettingDescription.setText(item.descriptionId)
+ binding.textSettingDescription.visibility = View.VISIBLE
+ } else {
+ binding.textSettingDescription.visibility = View.GONE
+ }
+ }
+
+ override fun onClick(clicked: View) {
+ adapter.onSubmenuClick(item)
+ }
+
+ override fun onLongClick(clicked: View): Boolean {
+ // no-op
+ return true
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt
new file mode 100644
index 000000000..54f531795
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt
@@ -0,0 +1,48 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.ui.viewholder
+
+import android.view.View
+import android.widget.CompoundButton
+import org.yuzu.yuzu_emu.databinding.ListItemSettingSwitchBinding
+import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
+import org.yuzu.yuzu_emu.features.settings.model.view.SwitchSetting
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
+
+class SwitchSettingViewHolder(val binding: ListItemSettingSwitchBinding, adapter: SettingsAdapter) :
+ SettingViewHolder(binding.root, adapter) {
+
+ private lateinit var setting: SwitchSetting
+
+ override fun bind(item: SettingsItem) {
+ setting = item as SwitchSetting
+ binding.textSettingName.setText(item.nameId)
+ if (item.descriptionId != 0) {
+ binding.textSettingDescription.setText(item.descriptionId)
+ binding.textSettingDescription.visibility = View.VISIBLE
+ } else {
+ binding.textSettingDescription.text = ""
+ binding.textSettingDescription.visibility = View.GONE
+ }
+ binding.switchWidget.isChecked = setting.isChecked
+ binding.switchWidget.setOnCheckedChangeListener { _: CompoundButton, _: Boolean ->
+ adapter.onBooleanClick(item, bindingAdapterPosition, binding.switchWidget.isChecked)
+ }
+
+ binding.switchWidget.isEnabled = setting.isEditable
+ }
+
+ override fun onClick(clicked: View) {
+ if (setting.isEditable) {
+ binding.switchWidget.toggle()
+ }
+ }
+
+ override fun onLongClick(clicked: View): Boolean {
+ if (setting.isEditable) {
+ return adapter.onLongClick(setting.setting!!, bindingAdapterPosition)
+ }
+ return false
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/utils/SettingsFile.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/utils/SettingsFile.kt
new file mode 100644
index 000000000..70a52df5d
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/utils/SettingsFile.kt
@@ -0,0 +1,264 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.features.settings.utils
+
+import java.io.*
+import java.util.*
+import org.ini4j.Wini
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.features.settings.model.*
+import org.yuzu.yuzu_emu.features.settings.model.Settings.SettingsSectionMap
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivityView
+import org.yuzu.yuzu_emu.utils.BiMap
+import org.yuzu.yuzu_emu.utils.DirectoryInitialization
+import org.yuzu.yuzu_emu.utils.Log
+
+/**
+ * Contains static methods for interacting with .ini files in which settings are stored.
+ */
+object SettingsFile {
+ const val FILE_NAME_CONFIG = "config"
+
+ private var sectionsMap = BiMap<String?, String?>()
+
+ /**
+ * Reads a given .ini file from disk and returns it as a HashMap of Settings, themselves
+ * effectively a HashMap of key/value settings. If unsuccessful, outputs an error telling why it
+ * failed.
+ *
+ * @param ini The ini file to load the settings from
+ * @param isCustomGame
+ * @param view The current view.
+ * @return An Observable that emits a HashMap of the file's contents, then completes.
+ */
+ private fun readFile(
+ ini: File?,
+ isCustomGame: Boolean,
+ view: SettingsActivityView? = null
+ ): HashMap<String, SettingSection?> {
+ val sections: HashMap<String, SettingSection?> = SettingsSectionMap()
+ var reader: BufferedReader? = null
+ try {
+ reader = BufferedReader(FileReader(ini))
+ var current: SettingSection? = null
+ var line: String?
+ while (reader.readLine().also { line = it } != null) {
+ if (line!!.startsWith("[") && line!!.endsWith("]")) {
+ current = sectionFromLine(line!!, isCustomGame)
+ sections[current.name] = current
+ } else if (current != null) {
+ val setting = settingFromLine(line!!)
+ if (setting != null) {
+ current.putSetting(setting)
+ }
+ }
+ }
+ } catch (e: FileNotFoundException) {
+ Log.error("[SettingsFile] File not found: " + e.message)
+ view?.onSettingsFileNotFound()
+ } catch (e: IOException) {
+ Log.error("[SettingsFile] Error reading from: " + e.message)
+ view?.onSettingsFileNotFound()
+ } finally {
+ if (reader != null) {
+ try {
+ reader.close()
+ } catch (e: IOException) {
+ Log.error("[SettingsFile] Error closing: " + e.message)
+ }
+ }
+ }
+ return sections
+ }
+
+ fun readFile(fileName: String, view: SettingsActivityView?): HashMap<String, SettingSection?> {
+ return readFile(getSettingsFile(fileName), false, view)
+ }
+
+ fun readFile(fileName: String): HashMap<String, SettingSection?> =
+ readFile(getSettingsFile(fileName), false)
+
+ /**
+ * Reads a given .ini file from disk and returns it as a HashMap of SettingSections, themselves
+ * effectively a HashMap of key/value settings. If unsuccessful, outputs an error telling why it
+ * failed.
+ *
+ * @param gameId the id of the game to load it's settings.
+ * @param view The current view.
+ */
+ fun readCustomGameSettings(
+ gameId: String,
+ view: SettingsActivityView?
+ ): HashMap<String, SettingSection?> {
+ return readFile(getCustomGameSettingsFile(gameId), true, view)
+ }
+
+ /**
+ * Saves a Settings HashMap to a given .ini file on disk. If unsuccessful, outputs an error
+ * telling why it failed.
+ *
+ * @param fileName The target filename without a path or extension.
+ * @param sections The HashMap containing the Settings we want to serialize.
+ * @param view The current view.
+ */
+ fun saveFile(
+ fileName: String,
+ sections: TreeMap<String, SettingSection>,
+ view: SettingsActivityView
+ ) {
+ val ini = getSettingsFile(fileName)
+ try {
+ val writer = Wini(ini)
+ val keySet: Set<String> = sections.keys
+ for (key in keySet) {
+ val section = sections[key]
+ writeSection(writer, section!!)
+ }
+ writer.store()
+ } catch (e: IOException) {
+ Log.error("[SettingsFile] File not found: " + fileName + ".ini: " + e.message)
+ view.showToastMessage(
+ YuzuApplication.appContext
+ .getString(R.string.error_saving, fileName, e.message),
+ false
+ )
+ }
+ }
+
+ fun saveCustomGameSettings(gameId: String?, sections: HashMap<String, SettingSection?>) {
+ val sortedSections: Set<String> = TreeSet(sections.keys)
+ for (sectionKey in sortedSections) {
+ val section = sections[sectionKey]
+ val settings = section!!.settings
+ val sortedKeySet: Set<String> = TreeSet(settings.keys)
+ for (settingKey in sortedKeySet) {
+ val setting = settings[settingKey]
+ NativeLibrary.setUserSetting(
+ gameId,
+ mapSectionNameFromIni(
+ section.name
+ ),
+ setting!!.key,
+ setting.valueAsString
+ )
+ }
+ }
+ }
+
+ private fun mapSectionNameFromIni(generalSectionName: String): String? {
+ return if (sectionsMap.getForward(generalSectionName) != null) {
+ sectionsMap.getForward(generalSectionName)
+ } else {
+ generalSectionName
+ }
+ }
+
+ private fun mapSectionNameToIni(generalSectionName: String): String {
+ return if (sectionsMap.getBackward(generalSectionName) != null) {
+ sectionsMap.getBackward(generalSectionName).toString()
+ } else {
+ generalSectionName
+ }
+ }
+
+ fun getSettingsFile(fileName: String): File {
+ return File(
+ DirectoryInitialization.userDirectory + "/config/" + fileName + ".ini"
+ )
+ }
+
+ private fun getCustomGameSettingsFile(gameId: String): File {
+ return File(DirectoryInitialization.userDirectory + "/GameSettings/" + gameId + ".ini")
+ }
+
+ private fun sectionFromLine(line: String, isCustomGame: Boolean): SettingSection {
+ var sectionName: String = line.substring(1, line.length - 1)
+ if (isCustomGame) {
+ sectionName = mapSectionNameToIni(sectionName)
+ }
+ return SettingSection(sectionName)
+ }
+
+ /**
+ * For a line of text, determines what type of data is being represented, and returns
+ * a Setting object containing this data.
+ *
+ * @param line The line of text being parsed.
+ * @return A typed Setting containing the key/value contained in the line.
+ */
+ private fun settingFromLine(line: String): AbstractSetting? {
+ val splitLine = line.split("=".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
+ if (splitLine.size != 2) {
+ return null
+ }
+ val key = splitLine[0].trim { it <= ' ' }
+ val value = splitLine[1].trim { it <= ' ' }
+ if (value.isEmpty()) {
+ return null
+ }
+
+ val booleanSetting = BooleanSetting.from(key)
+ if (booleanSetting != null) {
+ booleanSetting.boolean = value.toBoolean()
+ return booleanSetting
+ }
+
+ val intSetting = IntSetting.from(key)
+ if (intSetting != null) {
+ intSetting.int = value.toInt()
+ return intSetting
+ }
+
+ val floatSetting = FloatSetting.from(key)
+ if (floatSetting != null) {
+ floatSetting.float = value.toFloat()
+ return floatSetting
+ }
+
+ val stringSetting = StringSetting.from(key)
+ if (stringSetting != null) {
+ stringSetting.string = value
+ return stringSetting
+ }
+
+ return null
+ }
+
+ /**
+ * Writes the contents of a Section HashMap to disk.
+ *
+ * @param parser A Wini pointed at a file on disk.
+ * @param section A section containing settings to be written to the file.
+ */
+ private fun writeSection(parser: Wini, section: SettingSection) {
+ // Write the section header.
+ val header = section.name
+
+ // Write this section's values.
+ val settings = section.settings
+ val keySet: Set<String> = settings.keys
+ for (key in keySet) {
+ val setting = settings[key]
+ parser.put(header, setting!!.key, setting.valueAsString)
+ }
+
+ BooleanSetting.values().forEach {
+ if (!keySet.contains(it.key)) {
+ parser.put(header, it.key, it.valueAsString)
+ }
+ }
+ IntSetting.values().forEach {
+ if (!keySet.contains(it.key)) {
+ parser.put(header, it.key, it.valueAsString)
+ }
+ }
+ StringSetting.values().forEach {
+ if (!keySet.contains(it.key)) {
+ parser.put(header, it.key, it.valueAsString)
+ }
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt
new file mode 100644
index 000000000..2ff827c6b
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt
@@ -0,0 +1,131 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.content.ClipData
+import android.content.ClipboardManager
+import android.content.Context
+import android.content.Intent
+import android.net.Uri
+import android.os.Build
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.view.ViewGroup.MarginLayoutParams
+import android.widget.Toast
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import androidx.fragment.app.Fragment
+import androidx.fragment.app.activityViewModels
+import androidx.navigation.findNavController
+import com.google.android.material.transition.MaterialSharedAxis
+import org.yuzu.yuzu_emu.BuildConfig
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.databinding.FragmentAboutBinding
+import org.yuzu.yuzu_emu.model.HomeViewModel
+
+class AboutFragment : Fragment() {
+ private var _binding: FragmentAboutBinding? = null
+ private val binding get() = _binding!!
+
+ private val homeViewModel: HomeViewModel by activityViewModels()
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ enterTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
+ returnTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
+ reenterTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentAboutBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ homeViewModel.setNavigationVisibility(visible = false, animated = true)
+ homeViewModel.setStatusBarShadeVisibility(visible = false)
+
+ binding.toolbarAbout.setNavigationOnClickListener {
+ binding.root.findNavController().popBackStack()
+ }
+
+ binding.imageLogo.setOnLongClickListener {
+ Toast.makeText(
+ requireContext(),
+ R.string.gaia_is_not_real,
+ Toast.LENGTH_SHORT
+ ).show()
+ true
+ }
+
+ binding.buttonContributors.setOnClickListener {
+ openLink(
+ getString(R.string.contributors_link)
+ )
+ }
+ binding.buttonLicenses.setOnClickListener {
+ exitTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
+ binding.root.findNavController().navigate(R.id.action_aboutFragment_to_licensesFragment)
+ }
+
+ binding.textBuildHash.text = BuildConfig.GIT_HASH
+ binding.buttonBuildHash.setOnClickListener {
+ val clipBoard =
+ requireContext().getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
+ val clip = ClipData.newPlainText(getString(R.string.build), BuildConfig.GIT_HASH)
+ clipBoard.setPrimaryClip(clip)
+
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
+ Toast.makeText(
+ requireContext(),
+ R.string.copied_to_clipboard,
+ Toast.LENGTH_SHORT
+ ).show()
+ }
+ }
+
+ binding.buttonDiscord.setOnClickListener { openLink(getString(R.string.support_link)) }
+ binding.buttonWebsite.setOnClickListener { openLink(getString(R.string.website_link)) }
+ binding.buttonGithub.setOnClickListener { openLink(getString(R.string.github_link)) }
+
+ setInsets()
+ }
+
+ private fun openLink(link: String) {
+ val intent = Intent(Intent.ACTION_VIEW, Uri.parse(link))
+ startActivity(intent)
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { _: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+
+ val leftInsets = barInsets.left + cutoutInsets.left
+ val rightInsets = barInsets.right + cutoutInsets.right
+
+ val mlpAppBar = binding.appbarAbout.layoutParams as MarginLayoutParams
+ mlpAppBar.leftMargin = leftInsets
+ mlpAppBar.rightMargin = rightInsets
+ binding.appbarAbout.layoutParams = mlpAppBar
+
+ val mlpScrollAbout = binding.scrollAbout.layoutParams as MarginLayoutParams
+ mlpScrollAbout.leftMargin = leftInsets
+ mlpScrollAbout.rightMargin = rightInsets
+ binding.scrollAbout.layoutParams = mlpScrollAbout
+
+ binding.contentAbout.updatePadding(bottom = barInsets.bottom)
+
+ windowInsets
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EarlyAccessFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EarlyAccessFragment.kt
new file mode 100644
index 000000000..dbc16da4a
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EarlyAccessFragment.kt
@@ -0,0 +1,89 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import androidx.fragment.app.Fragment
+import androidx.fragment.app.activityViewModels
+import androidx.navigation.fragment.findNavController
+import com.google.android.material.transition.MaterialSharedAxis
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.databinding.FragmentEarlyAccessBinding
+import org.yuzu.yuzu_emu.model.HomeViewModel
+
+class EarlyAccessFragment : Fragment() {
+ private var _binding: FragmentEarlyAccessBinding? = null
+ private val binding get() = _binding!!
+
+ private val homeViewModel: HomeViewModel by activityViewModels()
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ enterTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
+ returnTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentEarlyAccessBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ homeViewModel.setNavigationVisibility(visible = false, animated = true)
+ homeViewModel.setStatusBarShadeVisibility(visible = false)
+
+ binding.toolbarAbout.setNavigationOnClickListener {
+ parentFragmentManager.primaryNavigationFragment?.findNavController()?.popBackStack()
+ }
+
+ binding.getEarlyAccessButton.setOnClickListener {
+ openLink(
+ getString(R.string.play_store_link)
+ )
+ }
+
+ setInsets()
+ }
+
+ private fun openLink(link: String) {
+ val intent = Intent(Intent.ACTION_VIEW, Uri.parse(link))
+ startActivity(intent)
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { _: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+
+ val leftInsets = barInsets.left + cutoutInsets.left
+ val rightInsets = barInsets.right + cutoutInsets.right
+
+ val mlpAppBar = binding.appbarEa.layoutParams as ViewGroup.MarginLayoutParams
+ mlpAppBar.leftMargin = leftInsets
+ mlpAppBar.rightMargin = rightInsets
+ binding.appbarEa.layoutParams = mlpAppBar
+
+ binding.scrollEa.updatePadding(
+ left = leftInsets,
+ right = rightInsets,
+ bottom = barInsets.bottom
+ )
+
+ windowInsets
+ }
+}
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
new file mode 100644
index 000000000..09976db62
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
@@ -0,0 +1,733 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.annotation.SuppressLint
+import android.app.AlertDialog
+import android.content.Context
+import android.content.DialogInterface
+import android.content.Intent
+import android.content.SharedPreferences
+import android.content.pm.ActivityInfo
+import android.content.res.Configuration
+import android.graphics.Color
+import android.os.Bundle
+import android.os.Handler
+import android.os.Looper
+import android.util.Rational
+import android.view.*
+import android.widget.TextView
+import androidx.activity.OnBackPressedCallback
+import androidx.activity.result.ActivityResultLauncher
+import androidx.activity.result.contract.ActivityResultContracts
+import androidx.appcompat.widget.PopupMenu
+import androidx.core.content.res.ResourcesCompat
+import androidx.core.graphics.Insets
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.isVisible
+import androidx.fragment.app.Fragment
+import androidx.lifecycle.Lifecycle
+import androidx.lifecycle.lifecycleScope
+import androidx.lifecycle.repeatOnLifecycle
+import androidx.navigation.fragment.navArgs
+import androidx.preference.PreferenceManager
+import androidx.window.layout.FoldingFeature
+import androidx.window.layout.WindowInfoTracker
+import androidx.window.layout.WindowLayoutInfo
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import com.google.android.material.slider.Slider
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.launch
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.activities.EmulationActivity
+import org.yuzu.yuzu_emu.databinding.DialogOverlayAdjustBinding
+import org.yuzu.yuzu_emu.databinding.FragmentEmulationBinding
+import org.yuzu.yuzu_emu.features.settings.model.IntSetting
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
+import org.yuzu.yuzu_emu.overlay.InputOverlay
+import org.yuzu.yuzu_emu.utils.*
+
+class EmulationFragment : Fragment(), SurfaceHolder.Callback {
+ private lateinit var preferences: SharedPreferences
+ private lateinit var emulationState: EmulationState
+ private var emulationActivity: EmulationActivity? = null
+ private var perfStatsUpdater: (() -> Unit)? = null
+
+ private var _binding: FragmentEmulationBinding? = null
+ private val binding get() = _binding!!
+
+ val args by navArgs<EmulationFragmentArgs>()
+
+ private var isInFoldableLayout = false
+
+ private lateinit var onReturnFromSettings: ActivityResultLauncher<Intent>
+
+ override fun onAttach(context: Context) {
+ super.onAttach(context)
+ if (context is EmulationActivity) {
+ emulationActivity = context
+ NativeLibrary.setEmulationActivity(context)
+
+ lifecycleScope.launch(Dispatchers.Main) {
+ lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {
+ WindowInfoTracker.getOrCreate(context)
+ .windowLayoutInfo(context)
+ .collect { updateFoldableLayout(context, it) }
+ }
+ }
+
+ onReturnFromSettings = context.activityResultRegistry.register(
+ "SettingsResult",
+ ActivityResultContracts.StartActivityForResult()
+ ) { updateScreenLayout() }
+ } else {
+ throw IllegalStateException("EmulationFragment must have EmulationActivity parent")
+ }
+ }
+
+ /**
+ * Initialize anything that doesn't depend on the layout / views in here.
+ */
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ // So this fragment doesn't restart on configuration changes; i.e. rotation.
+ retainInstance = true
+ preferences = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+ emulationState = EmulationState(args.game.path)
+ }
+
+ /**
+ * Initialize the UI and start emulation in here.
+ */
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentEmulationBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ binding.surfaceEmulation.holder.addCallback(this)
+ binding.showFpsText.setTextColor(Color.YELLOW)
+ binding.doneControlConfig.setOnClickListener { stopConfiguringControls() }
+
+ // Setup overlay.
+ updateShowFpsOverlay()
+
+ binding.inGameMenu.getHeaderView(0).findViewById<TextView>(R.id.text_game_title).text =
+ args.game.title
+ binding.inGameMenu.setNavigationItemSelectedListener {
+ when (it.itemId) {
+ R.id.menu_pause_emulation -> {
+ if (emulationState.isPaused) {
+ emulationState.run(false)
+ it.title = resources.getString(R.string.emulation_pause)
+ it.icon = ResourcesCompat.getDrawable(
+ resources,
+ R.drawable.ic_pause,
+ requireContext().theme
+ )
+ } else {
+ emulationState.pause()
+ it.title = resources.getString(R.string.emulation_unpause)
+ it.icon = ResourcesCompat.getDrawable(
+ resources,
+ R.drawable.ic_play,
+ requireContext().theme
+ )
+ }
+ true
+ }
+
+ R.id.menu_settings -> {
+ SettingsActivity.launch(
+ requireContext(),
+ onReturnFromSettings,
+ SettingsFile.FILE_NAME_CONFIG,
+ ""
+ )
+ true
+ }
+
+ R.id.menu_overlay_controls -> {
+ showOverlayOptions()
+ true
+ }
+
+ R.id.menu_exit -> {
+ emulationState.stop()
+ requireActivity().finish()
+ true
+ }
+
+ else -> true
+ }
+ }
+
+ setInsets()
+
+ requireActivity().onBackPressedDispatcher.addCallback(
+ requireActivity(),
+ object : OnBackPressedCallback(true) {
+ override fun handleOnBackPressed() {
+ if (binding.drawerLayout.isOpen) {
+ binding.drawerLayout.close()
+ } else {
+ binding.drawerLayout.open()
+ }
+ }
+ }
+ )
+
+ viewLifecycleOwner.lifecycleScope.launch(Dispatchers.Main) {
+ lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {
+ WindowInfoTracker.getOrCreate(requireContext())
+ .windowLayoutInfo(requireActivity())
+ .collect { updateFoldableLayout(requireActivity() as EmulationActivity, it) }
+ }
+ }
+ }
+
+ override fun onConfigurationChanged(newConfig: Configuration) {
+ super.onConfigurationChanged(newConfig)
+ if (emulationActivity?.isInPictureInPictureMode == true) {
+ if (binding.drawerLayout.isOpen) {
+ binding.drawerLayout.close()
+ }
+ if (EmulationMenuSettings.showOverlay) {
+ binding.surfaceInputOverlay.post { binding.surfaceInputOverlay.isVisible = false }
+ }
+ } else {
+ if (EmulationMenuSettings.showOverlay) {
+ binding.surfaceInputOverlay.post { binding.surfaceInputOverlay.isVisible = true }
+ }
+ if (!isInFoldableLayout) {
+ if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {
+ binding.surfaceInputOverlay.orientation = InputOverlay.PORTRAIT
+ } else {
+ binding.surfaceInputOverlay.orientation = InputOverlay.LANDSCAPE
+ }
+ }
+ if (!binding.surfaceInputOverlay.isInEditMode) {
+ refreshInputOverlay()
+ }
+ }
+ }
+
+ override fun onResume() {
+ super.onResume()
+ if (!DirectoryInitialization.areDirectoriesReady) {
+ DirectoryInitialization.start(requireContext())
+ }
+
+ updateScreenLayout()
+
+ emulationState.run(emulationActivity!!.isActivityRecreated)
+ }
+
+ override fun onPause() {
+ if (emulationState.isRunning) {
+ emulationState.pause()
+ }
+ super.onPause()
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+
+ override fun onDetach() {
+ NativeLibrary.clearEmulationActivity()
+ super.onDetach()
+ }
+
+ private fun refreshInputOverlay() {
+ binding.surfaceInputOverlay.refreshControls()
+ }
+
+ private fun resetInputOverlay() {
+ preferences.edit()
+ .remove(Settings.PREF_CONTROL_SCALE)
+ .remove(Settings.PREF_CONTROL_OPACITY)
+ .apply()
+ binding.surfaceInputOverlay.post { binding.surfaceInputOverlay.resetButtonPlacement() }
+ }
+
+ private fun updateShowFpsOverlay() {
+ if (EmulationMenuSettings.showFps) {
+ val SYSTEM_FPS = 0
+ val FPS = 1
+ val FRAMETIME = 2
+ val SPEED = 3
+ perfStatsUpdater = {
+ val perfStats = NativeLibrary.getPerfStats()
+ if (perfStats[FPS] > 0 && _binding != null) {
+ binding.showFpsText.text = String.format("FPS: %.1f", perfStats[FPS])
+ }
+
+ if (!emulationState.isStopped) {
+ perfStatsUpdateHandler.postDelayed(perfStatsUpdater!!, 100)
+ }
+ }
+ perfStatsUpdateHandler.post(perfStatsUpdater!!)
+ binding.showFpsText.text = resources.getString(R.string.emulation_game_loading)
+ binding.showFpsText.visibility = View.VISIBLE
+ } else {
+ if (perfStatsUpdater != null) {
+ perfStatsUpdateHandler.removeCallbacks(perfStatsUpdater!!)
+ }
+ binding.showFpsText.visibility = View.GONE
+ }
+ }
+
+ @SuppressLint("SourceLockedOrientationActivity")
+ private fun updateOrientation() {
+ emulationActivity?.let {
+ it.requestedOrientation = when (IntSetting.RENDERER_SCREEN_LAYOUT.int) {
+ Settings.LayoutOption_MobileLandscape ->
+ ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
+ Settings.LayoutOption_MobilePortrait ->
+ ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT
+ Settings.LayoutOption_Unspecified -> ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
+ else -> ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
+ }
+ }
+ }
+
+ private fun updateScreenLayout() {
+ binding.surfaceEmulation.setAspectRatio(
+ when (IntSetting.RENDERER_ASPECT_RATIO.int) {
+ 0 -> Rational(16, 9)
+ 1 -> Rational(4, 3)
+ 2 -> Rational(21, 9)
+ 3 -> Rational(16, 10)
+ 4 -> null // Stretch
+ else -> Rational(16, 9)
+ }
+ )
+ emulationActivity?.buildPictureInPictureParams()
+ updateOrientation()
+ }
+
+ private fun updateFoldableLayout(
+ emulationActivity: EmulationActivity,
+ newLayoutInfo: WindowLayoutInfo
+ ) {
+ val isFolding =
+ (newLayoutInfo.displayFeatures.find { it is FoldingFeature } as? FoldingFeature)?.let {
+ if (it.isSeparating) {
+ emulationActivity.requestedOrientation =
+ ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
+ if (it.orientation == FoldingFeature.Orientation.HORIZONTAL) {
+ // Restrict emulation and overlays to the top of the screen
+ binding.emulationContainer.layoutParams.height = it.bounds.top
+ binding.overlayContainer.layoutParams.height = it.bounds.top
+ // Restrict input and menu drawer to the bottom of the screen
+ binding.inputContainer.layoutParams.height = it.bounds.bottom
+ binding.inGameMenu.layoutParams.height = it.bounds.bottom
+
+ isInFoldableLayout = true
+ binding.surfaceInputOverlay.orientation = InputOverlay.FOLDABLE
+ refreshInputOverlay()
+ }
+ }
+ it.isSeparating
+ } ?: false
+ if (!isFolding) {
+ binding.emulationContainer.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
+ binding.inputContainer.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
+ binding.overlayContainer.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
+ binding.inGameMenu.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
+ isInFoldableLayout = false
+ updateOrientation()
+ onConfigurationChanged(resources.configuration)
+ }
+ binding.emulationContainer.requestLayout()
+ binding.inputContainer.requestLayout()
+ binding.overlayContainer.requestLayout()
+ binding.inGameMenu.requestLayout()
+ }
+
+ override fun surfaceCreated(holder: SurfaceHolder) {
+ // We purposely don't do anything here.
+ // All work is done in surfaceChanged, which we are guaranteed to get even for surface creation.
+ }
+
+ override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
+ Log.debug("[EmulationFragment] Surface changed. Resolution: " + width + "x" + height)
+ emulationState.newSurface(holder.surface)
+ }
+
+ override fun surfaceDestroyed(holder: SurfaceHolder) {
+ emulationState.clearSurface()
+ }
+
+ private fun showOverlayOptions() {
+ val anchor = binding.inGameMenu.findViewById<View>(R.id.menu_overlay_controls)
+ val popup = PopupMenu(requireContext(), anchor)
+
+ popup.menuInflater.inflate(R.menu.menu_overlay_options, popup.menu)
+
+ popup.menu.apply {
+ findItem(R.id.menu_toggle_fps).isChecked = EmulationMenuSettings.showFps
+ findItem(R.id.menu_rel_stick_center).isChecked = EmulationMenuSettings.joystickRelCenter
+ findItem(R.id.menu_dpad_slide).isChecked = EmulationMenuSettings.dpadSlide
+ findItem(R.id.menu_show_overlay).isChecked = EmulationMenuSettings.showOverlay
+ findItem(R.id.menu_haptics).isChecked = EmulationMenuSettings.hapticFeedback
+ }
+
+ popup.setOnMenuItemClickListener {
+ when (it.itemId) {
+ R.id.menu_toggle_fps -> {
+ it.isChecked = !it.isChecked
+ EmulationMenuSettings.showFps = it.isChecked
+ updateShowFpsOverlay()
+ true
+ }
+
+ R.id.menu_edit_overlay -> {
+ binding.drawerLayout.close()
+ binding.surfaceInputOverlay.requestFocus()
+ startConfiguringControls()
+ true
+ }
+
+ R.id.menu_adjust_overlay -> {
+ adjustOverlay()
+ true
+ }
+
+ R.id.menu_toggle_controls -> {
+ val preferences =
+ PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+ val optionsArray = BooleanArray(15)
+ for (i in 0..14) {
+ optionsArray[i] = preferences.getBoolean("buttonToggle$i", i < 13)
+ }
+
+ val dialog = MaterialAlertDialogBuilder(requireContext())
+ .setTitle(R.string.emulation_toggle_controls)
+ .setMultiChoiceItems(
+ R.array.gamepadButtons,
+ optionsArray
+ ) { _, indexSelected, isChecked ->
+ preferences.edit()
+ .putBoolean("buttonToggle$indexSelected", isChecked)
+ .apply()
+ }
+ .setPositiveButton(android.R.string.ok) { _, _ ->
+ refreshInputOverlay()
+ }
+ .setNegativeButton(android.R.string.cancel, null)
+ .setNeutralButton(R.string.emulation_toggle_all) { _, _ -> }
+ .show()
+
+ // Override normal behaviour so the dialog doesn't close
+ dialog.getButton(AlertDialog.BUTTON_NEUTRAL)
+ .setOnClickListener {
+ val isChecked = !optionsArray[0]
+ for (i in 0..14) {
+ optionsArray[i] = isChecked
+ dialog.listView.setItemChecked(i, isChecked)
+ preferences.edit()
+ .putBoolean("buttonToggle$i", isChecked)
+ .apply()
+ }
+ }
+ true
+ }
+
+ R.id.menu_show_overlay -> {
+ it.isChecked = !it.isChecked
+ EmulationMenuSettings.showOverlay = it.isChecked
+ refreshInputOverlay()
+ true
+ }
+
+ R.id.menu_rel_stick_center -> {
+ it.isChecked = !it.isChecked
+ EmulationMenuSettings.joystickRelCenter = it.isChecked
+ true
+ }
+
+ R.id.menu_dpad_slide -> {
+ it.isChecked = !it.isChecked
+ EmulationMenuSettings.dpadSlide = it.isChecked
+ true
+ }
+
+ R.id.menu_haptics -> {
+ it.isChecked = !it.isChecked
+ EmulationMenuSettings.hapticFeedback = it.isChecked
+ true
+ }
+
+ R.id.menu_reset_overlay -> {
+ binding.drawerLayout.close()
+ resetInputOverlay()
+ true
+ }
+
+ else -> true
+ }
+ }
+
+ popup.show()
+ }
+
+ @SuppressLint("SourceLockedOrientationActivity")
+ private fun startConfiguringControls() {
+ // Lock the current orientation to prevent editing inconsistencies
+ if (IntSetting.RENDERER_SCREEN_LAYOUT.int == Settings.LayoutOption_Unspecified) {
+ emulationActivity?.let {
+ it.requestedOrientation =
+ if (resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT) {
+ ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT
+ } else {
+ ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
+ }
+ }
+ }
+ binding.doneControlConfig.visibility = View.VISIBLE
+ binding.surfaceInputOverlay.setIsInEditMode(true)
+ }
+
+ private fun stopConfiguringControls() {
+ binding.doneControlConfig.visibility = View.GONE
+ binding.surfaceInputOverlay.setIsInEditMode(false)
+ // Unlock the orientation if it was locked for editing
+ if (IntSetting.RENDERER_SCREEN_LAYOUT.int == Settings.LayoutOption_Unspecified) {
+ emulationActivity?.let {
+ it.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
+ }
+ }
+ }
+
+ @SuppressLint("SetTextI18n")
+ private fun adjustOverlay() {
+ val adjustBinding = DialogOverlayAdjustBinding.inflate(layoutInflater)
+ adjustBinding.apply {
+ inputScaleSlider.apply {
+ valueTo = 150F
+ value = preferences.getInt(Settings.PREF_CONTROL_SCALE, 50).toFloat()
+ addOnChangeListener(
+ Slider.OnChangeListener { _, value, _ ->
+ inputScaleValue.text = "${value.toInt()}%"
+ setControlScale(value.toInt())
+ }
+ )
+ }
+ inputOpacitySlider.apply {
+ valueTo = 100F
+ value = preferences.getInt(Settings.PREF_CONTROL_OPACITY, 100).toFloat()
+ addOnChangeListener(
+ Slider.OnChangeListener { _, value, _ ->
+ inputOpacityValue.text = "${value.toInt()}%"
+ setControlOpacity(value.toInt())
+ }
+ )
+ }
+ inputScaleValue.text = "${inputScaleSlider.value.toInt()}%"
+ inputOpacityValue.text = "${inputOpacitySlider.value.toInt()}%"
+ }
+
+ MaterialAlertDialogBuilder(requireContext())
+ .setTitle(R.string.emulation_control_adjust)
+ .setView(adjustBinding.root)
+ .setPositiveButton(android.R.string.ok, null)
+ .setNeutralButton(R.string.slider_default) { _: DialogInterface?, _: Int ->
+ setControlScale(50)
+ setControlOpacity(100)
+ }
+ .show()
+ }
+
+ private fun setControlScale(scale: Int) {
+ preferences.edit()
+ .putInt(Settings.PREF_CONTROL_SCALE, scale)
+ .apply()
+ refreshInputOverlay()
+ }
+
+ private fun setControlOpacity(opacity: Int) {
+ preferences.edit()
+ .putInt(Settings.PREF_CONTROL_OPACITY, opacity)
+ .apply()
+ refreshInputOverlay()
+ }
+
+ private fun setInsets() {
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.inGameMenu
+ ) { v: View, windowInsets: WindowInsetsCompat ->
+ val cutInsets: Insets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+ var left = 0
+ var right = 0
+ if (ViewCompat.getLayoutDirection(v) == ViewCompat.LAYOUT_DIRECTION_LTR) {
+ left = cutInsets.left
+ } else {
+ right = cutInsets.right
+ }
+
+ v.setPadding(left, cutInsets.top, right, 0)
+
+ // Ensure FPS text doesn't get cut off by rounded display corners
+ val sidePadding = resources.getDimensionPixelSize(R.dimen.spacing_xtralarge)
+ if (cutInsets.left == 0) {
+ binding.showFpsText.setPadding(
+ sidePadding,
+ cutInsets.top,
+ cutInsets.right,
+ cutInsets.bottom
+ )
+ } else {
+ binding.showFpsText.setPadding(
+ cutInsets.left,
+ cutInsets.top,
+ cutInsets.right,
+ cutInsets.bottom
+ )
+ }
+ windowInsets
+ }
+ }
+
+ private class EmulationState(private val gamePath: String) {
+ private var state: State
+ private var surface: Surface? = null
+ private var runWhenSurfaceIsValid = false
+
+ init {
+ // Starting state is stopped.
+ state = State.STOPPED
+ }
+
+ @get:Synchronized
+ val isStopped: Boolean
+ get() = state == State.STOPPED
+
+ // Getters for the current state
+ @get:Synchronized
+ val isPaused: Boolean
+ get() = state == State.PAUSED
+
+ @get:Synchronized
+ val isRunning: Boolean
+ get() = state == State.RUNNING
+
+ @Synchronized
+ fun stop() {
+ if (state != State.STOPPED) {
+ Log.debug("[EmulationFragment] Stopping emulation.")
+ NativeLibrary.stopEmulation()
+ state = State.STOPPED
+ } else {
+ Log.warning("[EmulationFragment] Stop called while already stopped.")
+ }
+ }
+
+ // State changing methods
+ @Synchronized
+ fun pause() {
+ if (state != State.PAUSED) {
+ Log.debug("[EmulationFragment] Pausing emulation.")
+
+ NativeLibrary.pauseEmulation()
+
+ state = State.PAUSED
+ } else {
+ Log.warning("[EmulationFragment] Pause called while already paused.")
+ }
+ }
+
+ @Synchronized
+ fun run(isActivityRecreated: Boolean) {
+ if (isActivityRecreated) {
+ if (NativeLibrary.isRunning()) {
+ state = State.PAUSED
+ }
+ } else {
+ Log.debug("[EmulationFragment] activity resumed or fresh start")
+ }
+
+ // If the surface is set, run now. Otherwise, wait for it to get set.
+ if (surface != null) {
+ runWithValidSurface()
+ } else {
+ runWhenSurfaceIsValid = true
+ }
+ }
+
+ // Surface callbacks
+ @Synchronized
+ fun newSurface(surface: Surface?) {
+ this.surface = surface
+ if (runWhenSurfaceIsValid) {
+ runWithValidSurface()
+ }
+ }
+
+ @Synchronized
+ fun clearSurface() {
+ if (surface == null) {
+ Log.warning("[EmulationFragment] clearSurface called, but surface already null.")
+ } else {
+ surface = null
+ Log.debug("[EmulationFragment] Surface destroyed.")
+ when (state) {
+ State.RUNNING -> {
+ state = State.PAUSED
+ }
+
+ State.PAUSED -> Log.warning(
+ "[EmulationFragment] Surface cleared while emulation paused."
+ )
+ else -> Log.warning(
+ "[EmulationFragment] Surface cleared while emulation stopped."
+ )
+ }
+ }
+ }
+
+ private fun runWithValidSurface() {
+ runWhenSurfaceIsValid = false
+ when (state) {
+ State.STOPPED -> {
+ NativeLibrary.surfaceChanged(surface)
+ val emulationThread = Thread({
+ Log.debug("[EmulationFragment] Starting emulation thread.")
+ NativeLibrary.run(gamePath)
+ }, "NativeEmulation")
+ emulationThread.start()
+ }
+
+ State.PAUSED -> {
+ Log.debug("[EmulationFragment] Resuming emulation.")
+ NativeLibrary.surfaceChanged(surface)
+ NativeLibrary.unpauseEmulation()
+ }
+
+ else -> Log.debug("[EmulationFragment] Bug, run called while already running.")
+ }
+ state = State.RUNNING
+ }
+
+ private enum class State {
+ STOPPED, RUNNING, PAUSED
+ }
+ }
+
+ companion object {
+ private val perfStatsUpdateHandler = Handler(Looper.myLooper()!!)
+ }
+}
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
new file mode 100644
index 000000000..5a36ffad4
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
@@ -0,0 +1,378 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.Manifest
+import android.content.ActivityNotFoundException
+import android.content.DialogInterface
+import android.content.Intent
+import android.content.pm.PackageManager
+import android.os.Bundle
+import android.provider.DocumentsContract
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.view.ViewGroup.MarginLayoutParams
+import android.widget.Toast
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.app.ActivityCompat
+import androidx.core.app.NotificationCompat
+import androidx.core.app.NotificationManagerCompat
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import androidx.documentfile.provider.DocumentFile
+import androidx.fragment.app.Fragment
+import androidx.fragment.app.activityViewModels
+import androidx.navigation.fragment.findNavController
+import androidx.recyclerview.widget.LinearLayoutManager
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import com.google.android.material.transition.MaterialSharedAxis
+import org.yuzu.yuzu_emu.BuildConfig
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.adapters.HomeSettingAdapter
+import org.yuzu.yuzu_emu.databinding.FragmentHomeSettingsBinding
+import org.yuzu.yuzu_emu.features.DocumentProvider
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
+import org.yuzu.yuzu_emu.model.HomeSetting
+import org.yuzu.yuzu_emu.model.HomeViewModel
+import org.yuzu.yuzu_emu.ui.main.MainActivity
+import org.yuzu.yuzu_emu.utils.FileUtil
+import org.yuzu.yuzu_emu.utils.GpuDriverHelper
+
+class HomeSettingsFragment : Fragment() {
+ private var _binding: FragmentHomeSettingsBinding? = null
+ private val binding get() = _binding!!
+
+ private lateinit var mainActivity: MainActivity
+
+ private val homeViewModel: HomeViewModel by activityViewModels()
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ reenterTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentHomeSettingsBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ mainActivity = requireActivity() as MainActivity
+
+ val optionsList: MutableList<HomeSetting> = mutableListOf<HomeSetting>().apply {
+ add(
+ HomeSetting(
+ R.string.advanced_settings,
+ R.string.settings_description,
+ R.drawable.ic_settings
+ ) { SettingsActivity.launch(requireContext(), SettingsFile.FILE_NAME_CONFIG, "") }
+ )
+ add(
+ HomeSetting(
+ R.string.open_user_folder,
+ R.string.open_user_folder_description,
+ R.drawable.ic_folder_open
+ ) { openFileManager() }
+ )
+ add(
+ HomeSetting(
+ R.string.preferences_theme,
+ R.string.theme_and_color_description,
+ R.drawable.ic_palette
+ ) { SettingsActivity.launch(requireContext(), Settings.SECTION_THEME, "") }
+ )
+
+ if (GpuDriverHelper.supportsCustomDriverLoading()) {
+ add(
+ HomeSetting(
+ R.string.install_gpu_driver,
+ R.string.install_gpu_driver_description,
+ R.drawable.ic_exit
+ ) { driverInstaller() }
+ )
+ }
+
+ add(
+ HomeSetting(
+ R.string.install_amiibo_keys,
+ R.string.install_amiibo_keys_description,
+ R.drawable.ic_nfc
+ ) { mainActivity.getAmiiboKey.launch(arrayOf("*/*")) }
+ )
+ add(
+ HomeSetting(
+ R.string.install_game_content,
+ R.string.install_game_content_description,
+ R.drawable.ic_system_update_alt
+ ) { mainActivity.installGameUpdate.launch(arrayOf("*/*")) }
+ )
+ add(
+ HomeSetting(
+ R.string.select_games_folder,
+ R.string.select_games_folder_description,
+ R.drawable.ic_add
+ ) {
+ mainActivity.getGamesDirectory.launch(
+ Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).data
+ )
+ }
+ )
+ add(
+ HomeSetting(
+ R.string.manage_save_data,
+ R.string.import_export_saves_description,
+ R.drawable.ic_save
+ ) {
+ ImportExportSavesFragment().show(
+ parentFragmentManager,
+ ImportExportSavesFragment.TAG
+ )
+ }
+ )
+ add(
+ HomeSetting(
+ R.string.install_prod_keys,
+ R.string.install_prod_keys_description,
+ R.drawable.ic_unlock
+ ) { mainActivity.getProdKey.launch(arrayOf("*/*")) }
+ )
+ add(
+ HomeSetting(
+ R.string.install_firmware,
+ R.string.install_firmware_description,
+ R.drawable.ic_firmware
+ ) { mainActivity.getFirmware.launch(arrayOf("application/zip")) }
+ )
+ add(
+ HomeSetting(
+ R.string.share_log,
+ R.string.share_log_description,
+ R.drawable.ic_log
+ ) { shareLog() }
+ )
+ add(
+ HomeSetting(
+ R.string.about,
+ R.string.about_description,
+ R.drawable.ic_info_outline
+ ) {
+ exitTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
+ parentFragmentManager.primaryNavigationFragment?.findNavController()
+ ?.navigate(R.id.action_homeSettingsFragment_to_aboutFragment)
+ }
+ )
+ }
+
+ if (!BuildConfig.PREMIUM) {
+ optionsList.add(
+ 0,
+ HomeSetting(
+ R.string.get_early_access,
+ R.string.get_early_access_description,
+ R.drawable.ic_diamond
+ ) {
+ exitTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
+ parentFragmentManager.primaryNavigationFragment?.findNavController()
+ ?.navigate(R.id.action_homeSettingsFragment_to_earlyAccessFragment)
+ }
+ )
+ }
+
+ binding.homeSettingsList.apply {
+ layoutManager = LinearLayoutManager(requireContext())
+ adapter = HomeSettingAdapter(requireActivity() as AppCompatActivity, optionsList)
+ }
+
+ setInsets()
+ }
+
+ override fun onStart() {
+ super.onStart()
+ exitTransition = null
+ homeViewModel.setNavigationVisibility(visible = true, animated = true)
+ homeViewModel.setStatusBarShadeVisibility(visible = true)
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+
+ private fun openFileManager() {
+ // First, try to open the user data folder directly
+ try {
+ startActivity(getFileManagerIntentOnDocumentProvider(Intent.ACTION_VIEW))
+ return
+ } catch (_: ActivityNotFoundException) {
+ }
+
+ try {
+ startActivity(getFileManagerIntentOnDocumentProvider("android.provider.action.BROWSE"))
+ return
+ } catch (_: ActivityNotFoundException) {
+ }
+
+ // Just try to open the file manager, try the package name used on "normal" phones
+ try {
+ startActivity(getFileManagerIntent("com.google.android.documentsui"))
+ showNoLinkNotification()
+ return
+ } catch (_: ActivityNotFoundException) {
+ }
+
+ try {
+ // Next, try the AOSP package name
+ startActivity(getFileManagerIntent("com.android.documentsui"))
+ showNoLinkNotification()
+ return
+ } catch (_: ActivityNotFoundException) {
+ }
+
+ Toast.makeText(
+ requireContext(),
+ resources.getString(R.string.no_file_manager),
+ Toast.LENGTH_LONG
+ ).show()
+ }
+
+ private fun getFileManagerIntent(packageName: String): Intent {
+ // Fragile, but some phones don't expose the system file manager in any better way
+ val intent = Intent(Intent.ACTION_MAIN)
+ intent.setClassName(packageName, "com.android.documentsui.files.FilesActivity")
+ intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
+ return intent
+ }
+
+ private fun getFileManagerIntentOnDocumentProvider(action: String): Intent {
+ val authority = "${requireContext().packageName}.user"
+ val intent = Intent(action)
+ intent.addCategory(Intent.CATEGORY_DEFAULT)
+ intent.data = DocumentsContract.buildRootUri(authority, DocumentProvider.ROOT_ID)
+ intent.addFlags(
+ Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION or
+ Intent.FLAG_GRANT_PREFIX_URI_PERMISSION or
+ Intent.FLAG_GRANT_WRITE_URI_PERMISSION
+ )
+ return intent
+ }
+
+ private fun showNoLinkNotification() {
+ val builder = NotificationCompat.Builder(
+ requireContext(),
+ getString(R.string.notice_notification_channel_id)
+ )
+ .setSmallIcon(R.drawable.ic_stat_notification_logo)
+ .setContentTitle(getString(R.string.notification_no_directory_link))
+ .setContentText(getString(R.string.notification_no_directory_link_description))
+ .setPriority(NotificationCompat.PRIORITY_HIGH)
+ .setAutoCancel(true)
+ // TODO: Make the click action for this notification lead to a help article
+
+ with(NotificationManagerCompat.from(requireContext())) {
+ if (ActivityCompat.checkSelfPermission(
+ requireContext(),
+ Manifest.permission.POST_NOTIFICATIONS
+ ) != PackageManager.PERMISSION_GRANTED
+ ) {
+ Toast.makeText(
+ requireContext(),
+ resources.getString(R.string.notification_permission_not_granted),
+ Toast.LENGTH_LONG
+ ).show()
+ return
+ }
+ notify(0, builder.build())
+ }
+ }
+
+ private fun driverInstaller() {
+ // Get the driver name for the dialog message.
+ var driverName = GpuDriverHelper.customDriverName
+ if (driverName == null) {
+ driverName = getString(R.string.system_gpu_driver)
+ }
+
+ MaterialAlertDialogBuilder(requireContext())
+ .setTitle(getString(R.string.select_gpu_driver_title))
+ .setMessage(driverName)
+ .setNegativeButton(android.R.string.cancel, null)
+ .setNeutralButton(R.string.select_gpu_driver_default) { _: DialogInterface?, _: Int ->
+ GpuDriverHelper.installDefaultDriver(requireContext())
+ Toast.makeText(
+ requireContext(),
+ R.string.select_gpu_driver_use_default,
+ Toast.LENGTH_SHORT
+ ).show()
+ }
+ .setPositiveButton(R.string.select_gpu_driver_install) { _: DialogInterface?, _: Int ->
+ mainActivity.getDriver.launch(arrayOf("application/zip"))
+ }
+ .show()
+ }
+
+ private fun shareLog() {
+ val file = DocumentFile.fromSingleUri(
+ mainActivity,
+ DocumentsContract.buildDocumentUri(
+ DocumentProvider.AUTHORITY,
+ "${DocumentProvider.ROOT_ID}/log/yuzu_log.txt"
+ )
+ )!!
+ if (file.exists()) {
+ val intent = Intent(Intent.ACTION_SEND)
+ .setDataAndType(file.uri, FileUtil.TEXT_PLAIN)
+ .addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
+ .putExtra(Intent.EXTRA_STREAM, file.uri)
+ startActivity(Intent.createChooser(intent, getText(R.string.share_log)))
+ } else {
+ Toast.makeText(
+ requireContext(),
+ getText(R.string.share_log_missing),
+ Toast.LENGTH_SHORT
+ ).show()
+ }
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { view: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+ val spacingNavigation = resources.getDimensionPixelSize(R.dimen.spacing_navigation)
+ val spacingNavigationRail =
+ resources.getDimensionPixelSize(R.dimen.spacing_navigation_rail)
+
+ val leftInsets = barInsets.left + cutoutInsets.left
+ val rightInsets = barInsets.right + cutoutInsets.right
+
+ binding.scrollViewSettings.updatePadding(
+ top = barInsets.top,
+ bottom = barInsets.bottom
+ )
+
+ val mlpScrollSettings = binding.scrollViewSettings.layoutParams as MarginLayoutParams
+ mlpScrollSettings.leftMargin = leftInsets
+ mlpScrollSettings.rightMargin = rightInsets
+ binding.scrollViewSettings.layoutParams = mlpScrollSettings
+
+ binding.linearLayoutSettings.updatePadding(bottom = spacingNavigation)
+
+ if (ViewCompat.getLayoutDirection(view) == ViewCompat.LAYOUT_DIRECTION_LTR) {
+ binding.linearLayoutSettings.updatePadding(left = spacingNavigationRail)
+ } else {
+ binding.linearLayoutSettings.updatePadding(right = spacingNavigationRail)
+ }
+
+ windowInsets
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ImportExportSavesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ImportExportSavesFragment.kt
new file mode 100644
index 000000000..e1495ee8c
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ImportExportSavesFragment.kt
@@ -0,0 +1,213 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.app.Dialog
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import android.provider.DocumentsContract
+import android.widget.Toast
+import androidx.activity.result.ActivityResultLauncher
+import androidx.activity.result.contract.ActivityResultContracts
+import androidx.appcompat.app.AppCompatActivity
+import androidx.documentfile.provider.DocumentFile
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import java.io.BufferedOutputStream
+import java.io.File
+import java.io.FileOutputStream
+import java.io.FilenameFilter
+import java.time.LocalDateTime
+import java.time.format.DateTimeFormatter
+import java.util.zip.ZipEntry
+import java.util.zip.ZipOutputStream
+import kotlinx.coroutines.CoroutineScope
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.launch
+import kotlinx.coroutines.withContext
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.features.DocumentProvider
+import org.yuzu.yuzu_emu.getPublicFilesDir
+import org.yuzu.yuzu_emu.utils.FileUtil
+
+class ImportExportSavesFragment : DialogFragment() {
+ private val context = YuzuApplication.appContext
+ private val savesFolder =
+ "${context.getPublicFilesDir().canonicalPath}/nand/user/save/0000000000000000"
+
+ // Get first subfolder in saves folder (should be the user folder)
+ private val savesFolderRoot = File(savesFolder).listFiles()?.firstOrNull()?.canonicalPath ?: ""
+ private var lastZipCreated: File? = null
+
+ private lateinit var startForResultExportSave: ActivityResultLauncher<Intent>
+ private lateinit var documentPicker: ActivityResultLauncher<Array<String>>
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ val activity = requireActivity() as AppCompatActivity
+
+ val activityResultRegistry = requireActivity().activityResultRegistry
+ startForResultExportSave = activityResultRegistry.register(
+ "startForResultExportSaveKey",
+ ActivityResultContracts.StartActivityForResult()
+ ) {
+ File(context.getPublicFilesDir().canonicalPath, "temp").deleteRecursively()
+ }
+ documentPicker = activityResultRegistry.register(
+ "documentPickerKey",
+ ActivityResultContracts.OpenDocument()
+ ) {
+ it?.let { uri -> importSave(uri, activity) }
+ }
+ }
+
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ return if (savesFolderRoot == "") {
+ MaterialAlertDialogBuilder(requireContext())
+ .setTitle(R.string.manage_save_data)
+ .setMessage(R.string.import_export_saves_no_profile)
+ .setPositiveButton(android.R.string.ok, null)
+ .show()
+ } else {
+ MaterialAlertDialogBuilder(requireContext())
+ .setTitle(R.string.manage_save_data)
+ .setMessage(R.string.manage_save_data_description)
+ .setNegativeButton(R.string.export_saves) { _, _ ->
+ exportSave()
+ }
+ .setPositiveButton(R.string.import_saves) { _, _ ->
+ documentPicker.launch(arrayOf("application/zip"))
+ }
+ .setNeutralButton(android.R.string.cancel, null)
+ .show()
+ }
+ }
+
+ /**
+ * Zips the save files located in the given folder path and creates a new zip file with the current date and time.
+ * @return true if the zip file is successfully created, false otherwise.
+ */
+ private fun zipSave(): Boolean {
+ try {
+ val tempFolder = File(requireContext().getPublicFilesDir().canonicalPath, "temp")
+ tempFolder.mkdirs()
+ val saveFolder = File(savesFolderRoot)
+ val outputZipFile = File(
+ tempFolder,
+ "yuzu saves - ${
+ LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"))
+ }.zip"
+ )
+ outputZipFile.createNewFile()
+ ZipOutputStream(BufferedOutputStream(FileOutputStream(outputZipFile))).use { zos ->
+ saveFolder.walkTopDown().forEach { file ->
+ val zipFileName =
+ file.absolutePath.removePrefix(savesFolderRoot).removePrefix("/")
+ if (zipFileName == "") {
+ return@forEach
+ }
+ val entry = ZipEntry("$zipFileName${(if (file.isDirectory) "/" else "")}")
+ zos.putNextEntry(entry)
+ if (file.isFile) {
+ file.inputStream().use { fis -> fis.copyTo(zos) }
+ }
+ }
+ }
+ lastZipCreated = outputZipFile
+ } catch (e: Exception) {
+ return false
+ }
+ return true
+ }
+
+ /**
+ * Exports the save file located in the given folder path by creating a zip file and sharing it via intent.
+ */
+ private fun exportSave() {
+ CoroutineScope(Dispatchers.IO).launch {
+ val wasZipCreated = zipSave()
+ val lastZipFile = lastZipCreated
+ if (!wasZipCreated || lastZipFile == null) {
+ withContext(Dispatchers.Main) {
+ Toast.makeText(context, "Failed to export save", Toast.LENGTH_LONG).show()
+ }
+ return@launch
+ }
+
+ withContext(Dispatchers.Main) {
+ val file = DocumentFile.fromSingleUri(
+ context,
+ DocumentsContract.buildDocumentUri(
+ DocumentProvider.AUTHORITY,
+ "${DocumentProvider.ROOT_ID}/temp/${lastZipFile.name}"
+ )
+ )!!
+ val intent = Intent(Intent.ACTION_SEND)
+ .setDataAndType(file.uri, "application/zip")
+ .addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
+ .putExtra(Intent.EXTRA_STREAM, file.uri)
+ startForResultExportSave.launch(Intent.createChooser(intent, "Share save file"))
+ }
+ }
+ }
+
+ /**
+ * Imports the save files contained in the zip file, and replaces any existing ones with the new save file.
+ * @param zipUri The Uri of the zip file containing the save file(s) to import.
+ */
+ private fun importSave(zipUri: Uri, activity: AppCompatActivity) {
+ val inputZip = context.contentResolver.openInputStream(zipUri)
+ // A zip needs to have at least one subfolder named after a TitleId in order to be considered valid.
+ var validZip = false
+ val savesFolder = File(savesFolderRoot)
+ val cacheSaveDir = File("${context.cacheDir.path}/saves/")
+ cacheSaveDir.mkdir()
+
+ if (inputZip == null) {
+ Toast.makeText(context, context.getString(R.string.fatal_error), Toast.LENGTH_LONG)
+ .show()
+ return
+ }
+
+ val filterTitleId =
+ FilenameFilter { _, dirName -> dirName.matches(Regex("^0100[\\dA-Fa-f]{12}$")) }
+
+ try {
+ CoroutineScope(Dispatchers.IO).launch {
+ FileUtil.unzip(inputZip, cacheSaveDir)
+ cacheSaveDir.list(filterTitleId)?.forEach { savePath ->
+ File(savesFolder, savePath).deleteRecursively()
+ File(cacheSaveDir, savePath).copyRecursively(File(savesFolder, savePath), true)
+ validZip = true
+ }
+
+ withContext(Dispatchers.Main) {
+ if (!validZip) {
+ MessageDialogFragment.newInstance(
+ R.string.save_file_invalid_zip_structure,
+ R.string.save_file_invalid_zip_structure_description
+ ).show(activity.supportFragmentManager, MessageDialogFragment.TAG)
+ return@withContext
+ }
+ Toast.makeText(
+ context,
+ context.getString(R.string.save_file_imported_success),
+ Toast.LENGTH_LONG
+ ).show()
+ }
+
+ cacheSaveDir.deleteRecursively()
+ }
+ } catch (e: Exception) {
+ Toast.makeText(context, context.getString(R.string.fatal_error), Toast.LENGTH_LONG)
+ .show()
+ }
+ }
+
+ companion object {
+ const val TAG = "ImportExportSavesFragment"
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/IndeterminateProgressDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/IndeterminateProgressDialogFragment.kt
new file mode 100644
index 000000000..739b26f99
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/IndeterminateProgressDialogFragment.kt
@@ -0,0 +1,69 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.app.Dialog
+import android.os.Bundle
+import android.widget.Toast
+import androidx.appcompat.app.AppCompatActivity
+import androidx.fragment.app.DialogFragment
+import androidx.fragment.app.activityViewModels
+import androidx.lifecycle.ViewModelProvider
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.databinding.DialogProgressBarBinding
+import org.yuzu.yuzu_emu.model.TaskViewModel
+
+class IndeterminateProgressDialogFragment : DialogFragment() {
+ private val taskViewModel: TaskViewModel by activityViewModels()
+
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ val titleId = requireArguments().getInt(TITLE)
+
+ val progressBinding = DialogProgressBarBinding.inflate(layoutInflater)
+ progressBinding.progressBar.isIndeterminate = true
+ val dialog = MaterialAlertDialogBuilder(requireContext())
+ .setTitle(titleId)
+ .setView(progressBinding.root)
+ .create()
+ dialog.setCanceledOnTouchOutside(false)
+
+ taskViewModel.isComplete.observe(this) { complete ->
+ if (complete) {
+ dialog.dismiss()
+ when (val result = taskViewModel.result.value) {
+ is String -> Toast.makeText(requireContext(), result, Toast.LENGTH_LONG).show()
+ is MessageDialogFragment -> result.show(
+ parentFragmentManager,
+ MessageDialogFragment.TAG
+ )
+ }
+ taskViewModel.clear()
+ }
+ }
+
+ if (taskViewModel.isRunning.value == false) {
+ taskViewModel.runTask()
+ }
+ return dialog
+ }
+
+ companion object {
+ const val TAG = "IndeterminateProgressDialogFragment"
+
+ private const val TITLE = "Title"
+
+ fun newInstance(
+ activity: AppCompatActivity,
+ titleId: Int,
+ task: () -> Any
+ ): IndeterminateProgressDialogFragment {
+ val dialog = IndeterminateProgressDialogFragment()
+ val args = Bundle()
+ ViewModelProvider(activity)[TaskViewModel::class.java].task = task
+ args.putInt(TITLE, titleId)
+ dialog.arguments = args
+ return dialog
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicenseBottomSheetDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicenseBottomSheetDialogFragment.kt
new file mode 100644
index 000000000..78419191c
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicenseBottomSheetDialogFragment.kt
@@ -0,0 +1,59 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.google.android.material.bottomsheet.BottomSheetDialogFragment
+import org.yuzu.yuzu_emu.databinding.DialogLicenseBinding
+import org.yuzu.yuzu_emu.model.License
+import org.yuzu.yuzu_emu.utils.SerializableHelper.parcelable
+
+class LicenseBottomSheetDialogFragment : BottomSheetDialogFragment() {
+ private var _binding: DialogLicenseBinding? = null
+ private val binding get() = _binding!!
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = DialogLicenseBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+ BottomSheetBehavior.from<View>(view.parent as View).state =
+ BottomSheetBehavior.STATE_HALF_EXPANDED
+
+ val license = requireArguments().parcelable<License>(LICENSE)!!
+
+ binding.apply {
+ textTitle.setText(license.titleId)
+ textLink.setText(license.linkId)
+ textCopyright.setText(license.copyrightId)
+ textLicense.setText(license.licenseId)
+ }
+ }
+
+ companion object {
+ const val TAG = "LicenseBottomSheetDialogFragment"
+
+ const val LICENSE = "License"
+
+ fun newInstance(
+ license: License
+ ): LicenseBottomSheetDialogFragment {
+ val dialog = LicenseBottomSheetDialogFragment()
+ val bundle = Bundle()
+ bundle.putParcelable(LICENSE, license)
+ dialog.arguments = bundle
+ return dialog
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicensesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicensesFragment.kt
new file mode 100644
index 000000000..b6e9129f7
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicensesFragment.kt
@@ -0,0 +1,139 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.view.ViewGroup.MarginLayoutParams
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import androidx.fragment.app.Fragment
+import androidx.fragment.app.activityViewModels
+import androidx.navigation.findNavController
+import androidx.recyclerview.widget.LinearLayoutManager
+import com.google.android.material.transition.MaterialSharedAxis
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.adapters.LicenseAdapter
+import org.yuzu.yuzu_emu.databinding.FragmentLicensesBinding
+import org.yuzu.yuzu_emu.model.HomeViewModel
+import org.yuzu.yuzu_emu.model.License
+
+class LicensesFragment : Fragment() {
+ private var _binding: FragmentLicensesBinding? = null
+ private val binding get() = _binding!!
+
+ private val homeViewModel: HomeViewModel by activityViewModels()
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ enterTransition = MaterialSharedAxis(MaterialSharedAxis.X, true)
+ returnTransition = MaterialSharedAxis(MaterialSharedAxis.X, false)
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentLicensesBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ homeViewModel.setNavigationVisibility(visible = false, animated = true)
+ homeViewModel.setStatusBarShadeVisibility(visible = false)
+
+ binding.toolbarLicenses.setNavigationOnClickListener {
+ binding.root.findNavController().popBackStack()
+ }
+
+ val licenses = listOf(
+ License(
+ R.string.license_fidelityfx_fsr,
+ R.string.license_fidelityfx_fsr_description,
+ R.string.license_fidelityfx_fsr_link,
+ R.string.license_fidelityfx_fsr_copyright,
+ R.string.license_fidelityfx_fsr_text
+ ),
+ License(
+ R.string.license_cubeb,
+ R.string.license_cubeb_description,
+ R.string.license_cubeb_link,
+ R.string.license_cubeb_copyright,
+ R.string.license_cubeb_text
+ ),
+ License(
+ R.string.license_dynarmic,
+ R.string.license_dynarmic_description,
+ R.string.license_dynarmic_link,
+ R.string.license_dynarmic_copyright,
+ R.string.license_dynarmic_text
+ ),
+ License(
+ R.string.license_ffmpeg,
+ R.string.license_ffmpeg_description,
+ R.string.license_ffmpeg_link,
+ R.string.license_ffmpeg_copyright,
+ R.string.license_ffmpeg_text
+ ),
+ License(
+ R.string.license_opus,
+ R.string.license_opus_description,
+ R.string.license_opus_link,
+ R.string.license_opus_copyright,
+ R.string.license_opus_text
+ ),
+ License(
+ R.string.license_sirit,
+ R.string.license_sirit_description,
+ R.string.license_sirit_link,
+ R.string.license_sirit_copyright,
+ R.string.license_sirit_text
+ ),
+ License(
+ R.string.license_adreno_tools,
+ R.string.license_adreno_tools_description,
+ R.string.license_adreno_tools_link,
+ R.string.license_adreno_tools_copyright,
+ R.string.license_adreno_tools_text
+ )
+ )
+
+ binding.listLicenses.apply {
+ layoutManager = LinearLayoutManager(requireContext())
+ adapter = LicenseAdapter(requireActivity() as AppCompatActivity, licenses)
+ }
+
+ setInsets()
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { _: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+
+ val leftInsets = barInsets.left + cutoutInsets.left
+ val rightInsets = barInsets.right + cutoutInsets.right
+
+ val mlpAppBar = binding.appbarLicenses.layoutParams as MarginLayoutParams
+ mlpAppBar.leftMargin = leftInsets
+ mlpAppBar.rightMargin = rightInsets
+ binding.appbarLicenses.layoutParams = mlpAppBar
+
+ val mlpScrollAbout = binding.listLicenses.layoutParams as MarginLayoutParams
+ mlpScrollAbout.leftMargin = leftInsets
+ mlpScrollAbout.rightMargin = rightInsets
+ binding.listLicenses.layoutParams = mlpScrollAbout
+
+ binding.listLicenses.updatePadding(bottom = barInsets.bottom)
+
+ windowInsets
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LongMessageDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LongMessageDialogFragment.kt
new file mode 100644
index 000000000..b29b627e9
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LongMessageDialogFragment.kt
@@ -0,0 +1,62 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.app.Dialog
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.R
+
+class LongMessageDialogFragment : DialogFragment() {
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ val titleId = requireArguments().getInt(TITLE)
+ val description = requireArguments().getString(DESCRIPTION)
+ val helpLinkId = requireArguments().getInt(HELP_LINK)
+
+ val dialog = MaterialAlertDialogBuilder(requireContext())
+ .setPositiveButton(R.string.close, null)
+ .setTitle(titleId)
+ .setMessage(description)
+
+ if (helpLinkId != 0) {
+ dialog.setNeutralButton(R.string.learn_more) { _, _ ->
+ openLink(getString(helpLinkId))
+ }
+ }
+
+ return dialog.show()
+ }
+
+ private fun openLink(link: String) {
+ val intent = Intent(Intent.ACTION_VIEW, Uri.parse(link))
+ startActivity(intent)
+ }
+
+ companion object {
+ const val TAG = "LongMessageDialogFragment"
+
+ private const val TITLE = "Title"
+ private const val DESCRIPTION = "Description"
+ private const val HELP_LINK = "Link"
+
+ fun newInstance(
+ titleId: Int,
+ description: String,
+ helpLinkId: Int = 0
+ ): LongMessageDialogFragment {
+ val dialog = LongMessageDialogFragment()
+ val bundle = Bundle()
+ bundle.apply {
+ putInt(TITLE, titleId)
+ putString(DESCRIPTION, description)
+ putInt(HELP_LINK, helpLinkId)
+ }
+ dialog.arguments = bundle
+ return dialog
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt
new file mode 100644
index 000000000..2db38fdc2
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt
@@ -0,0 +1,62 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.app.Dialog
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.R
+
+class MessageDialogFragment : DialogFragment() {
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ val titleId = requireArguments().getInt(TITLE)
+ val descriptionId = requireArguments().getInt(DESCRIPTION)
+ val helpLinkId = requireArguments().getInt(HELP_LINK)
+
+ val dialog = MaterialAlertDialogBuilder(requireContext())
+ .setPositiveButton(R.string.close, null)
+ .setTitle(titleId)
+ .setMessage(descriptionId)
+
+ if (helpLinkId != 0) {
+ dialog.setNeutralButton(R.string.learn_more) { _, _ ->
+ openLink(getString(helpLinkId))
+ }
+ }
+
+ return dialog.show()
+ }
+
+ private fun openLink(link: String) {
+ val intent = Intent(Intent.ACTION_VIEW, Uri.parse(link))
+ startActivity(intent)
+ }
+
+ companion object {
+ const val TAG = "MessageDialogFragment"
+
+ private const val TITLE = "Title"
+ private const val DESCRIPTION = "Description"
+ private const val HELP_LINK = "Link"
+
+ fun newInstance(
+ titleId: Int,
+ descriptionId: Int,
+ helpLinkId: Int = 0
+ ): MessageDialogFragment {
+ val dialog = MessageDialogFragment()
+ val bundle = Bundle()
+ bundle.apply {
+ putInt(TITLE, titleId)
+ putInt(DESCRIPTION, descriptionId)
+ putInt(HELP_LINK, helpLinkId)
+ }
+ dialog.arguments = bundle
+ return dialog
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/PermissionDeniedDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/PermissionDeniedDialogFragment.kt
new file mode 100644
index 000000000..3478b9250
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/PermissionDeniedDialogFragment.kt
@@ -0,0 +1,38 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.app.Dialog
+import android.content.DialogInterface
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import android.provider.Settings
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.R
+
+class PermissionDeniedDialogFragment : DialogFragment() {
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ return MaterialAlertDialogBuilder(requireContext())
+ .setPositiveButton(R.string.home_settings) { _: DialogInterface?, _: Int ->
+ openSettings()
+ }
+ .setNegativeButton(android.R.string.cancel, null)
+ .setTitle(R.string.permission_denied)
+ .setMessage(R.string.permission_denied_description)
+ .show()
+ }
+
+ private fun openSettings() {
+ val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
+ val uri = Uri.fromParts("package", requireActivity().packageName, null)
+ intent.data = uri
+ startActivity(intent)
+ }
+
+ companion object {
+ const val TAG = "PermissionDeniedDialogFragment"
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ResetSettingsDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ResetSettingsDialogFragment.kt
new file mode 100644
index 000000000..1b4b93ab8
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ResetSettingsDialogFragment.kt
@@ -0,0 +1,30 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.app.Dialog
+import android.os.Bundle
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity
+
+class ResetSettingsDialogFragment : DialogFragment() {
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ val settingsActivity = requireActivity() as SettingsActivity
+
+ return MaterialAlertDialogBuilder(requireContext())
+ .setTitle(R.string.reset_all_settings)
+ .setMessage(R.string.reset_all_settings_description)
+ .setPositiveButton(android.R.string.ok) { _, _ ->
+ settingsActivity.onSettingsReset()
+ }
+ .setNegativeButton(android.R.string.cancel, null)
+ .show()
+ }
+
+ companion object {
+ const val TAG = "ResetSettingsDialogFragment"
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt
new file mode 100644
index 000000000..f54dccc69
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt
@@ -0,0 +1,227 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.content.Context
+import android.content.SharedPreferences
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.view.inputmethod.InputMethodManager
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import androidx.core.widget.doOnTextChanged
+import androidx.fragment.app.Fragment
+import androidx.fragment.app.activityViewModels
+import androidx.preference.PreferenceManager
+import info.debatty.java.stringsimilarity.Jaccard
+import info.debatty.java.stringsimilarity.JaroWinkler
+import java.util.Locale
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.adapters.GameAdapter
+import org.yuzu.yuzu_emu.databinding.FragmentSearchBinding
+import org.yuzu.yuzu_emu.layout.AutofitGridLayoutManager
+import org.yuzu.yuzu_emu.model.Game
+import org.yuzu.yuzu_emu.model.GamesViewModel
+import org.yuzu.yuzu_emu.model.HomeViewModel
+
+class SearchFragment : Fragment() {
+ private var _binding: FragmentSearchBinding? = null
+ private val binding get() = _binding!!
+
+ private val gamesViewModel: GamesViewModel by activityViewModels()
+ private val homeViewModel: HomeViewModel by activityViewModels()
+
+ private lateinit var preferences: SharedPreferences
+
+ companion object {
+ private const val SEARCH_TEXT = "SearchText"
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentSearchBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ homeViewModel.setNavigationVisibility(visible = true, animated = false)
+ preferences = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+
+ if (savedInstanceState != null) {
+ binding.searchText.setText(savedInstanceState.getString(SEARCH_TEXT))
+ }
+
+ binding.gridGamesSearch.apply {
+ layoutManager = AutofitGridLayoutManager(
+ requireContext(),
+ requireContext().resources.getDimensionPixelSize(R.dimen.card_width)
+ )
+ adapter = GameAdapter(requireActivity() as AppCompatActivity)
+ }
+
+ binding.chipGroup.setOnCheckedStateChangeListener { _, _ -> filterAndSearch() }
+
+ binding.searchText.doOnTextChanged { text: CharSequence?, _: Int, _: Int, _: Int ->
+ if (text.toString().isNotEmpty()) {
+ binding.clearButton.visibility = View.VISIBLE
+ } else {
+ binding.clearButton.visibility = View.INVISIBLE
+ }
+ filterAndSearch()
+ }
+
+ gamesViewModel.apply {
+ searchFocused.observe(viewLifecycleOwner) { searchFocused ->
+ if (searchFocused) {
+ focusSearch()
+ gamesViewModel.setSearchFocused(false)
+ }
+ }
+
+ games.observe(viewLifecycleOwner) { filterAndSearch() }
+ searchedGames.observe(viewLifecycleOwner) {
+ (binding.gridGamesSearch.adapter as GameAdapter).submitList(it)
+ if (it.isEmpty()) {
+ binding.noResultsView.visibility = View.VISIBLE
+ } else {
+ binding.noResultsView.visibility = View.GONE
+ }
+ }
+ }
+
+ binding.clearButton.setOnClickListener { binding.searchText.setText("") }
+
+ binding.searchBackground.setOnClickListener { focusSearch() }
+
+ setInsets()
+ filterAndSearch()
+ }
+
+ private inner class ScoredGame(val score: Double, val item: Game)
+
+ private fun filterAndSearch() {
+ val baseList = gamesViewModel.games.value!!
+ val filteredList: List<Game> = when (binding.chipGroup.checkedChipId) {
+ R.id.chip_recently_played -> {
+ baseList.filter {
+ val lastPlayedTime = preferences.getLong(it.keyLastPlayedTime, 0L)
+ lastPlayedTime > (System.currentTimeMillis() - 24 * 60 * 60 * 1000)
+ }
+ }
+
+ R.id.chip_recently_added -> {
+ baseList.filter {
+ val addedTime = preferences.getLong(it.keyAddedToLibraryTime, 0L)
+ addedTime > (System.currentTimeMillis() - 24 * 60 * 60 * 1000)
+ }
+ }
+
+ R.id.chip_homebrew -> baseList.filter { it.isHomebrew }
+
+ R.id.chip_retail -> baseList.filter { !it.isHomebrew }
+
+ else -> baseList
+ }
+
+ if (binding.searchText.text.toString().isEmpty() &&
+ binding.chipGroup.checkedChipId != View.NO_ID
+ ) {
+ gamesViewModel.setSearchedGames(filteredList)
+ return
+ }
+
+ val searchTerm = binding.searchText.text.toString().lowercase(Locale.getDefault())
+ val searchAlgorithm = if (searchTerm.length > 1) Jaccard(2) else JaroWinkler()
+ val sortedList: List<Game> = filteredList.mapNotNull { game ->
+ val title = game.title.lowercase(Locale.getDefault())
+ val score = searchAlgorithm.similarity(searchTerm, title)
+ if (score > 0.03) {
+ ScoredGame(score, game)
+ } else {
+ null
+ }
+ }.sortedByDescending { it.score }.map { it.item }
+ gamesViewModel.setSearchedGames(sortedList)
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+
+ override fun onSaveInstanceState(outState: Bundle) {
+ super.onSaveInstanceState(outState)
+ if (_binding != null) {
+ outState.putString(SEARCH_TEXT, binding.searchText.text.toString())
+ }
+ }
+
+ private fun focusSearch() {
+ if (_binding != null) {
+ binding.searchText.requestFocus()
+ val imm = requireActivity()
+ .getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager?
+ imm?.showSoftInput(binding.searchText, InputMethodManager.SHOW_IMPLICIT)
+ }
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { view: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+ val extraListSpacing = resources.getDimensionPixelSize(R.dimen.spacing_med)
+ val spacingNavigation = resources.getDimensionPixelSize(R.dimen.spacing_navigation)
+ val spacingNavigationRail =
+ resources.getDimensionPixelSize(R.dimen.spacing_navigation_rail)
+ val chipSpacing = resources.getDimensionPixelSize(R.dimen.spacing_chip)
+
+ binding.constraintSearch.updatePadding(
+ left = barInsets.left + cutoutInsets.left,
+ top = barInsets.top,
+ right = barInsets.right + cutoutInsets.right
+ )
+
+ binding.gridGamesSearch.updatePadding(
+ top = extraListSpacing,
+ bottom = barInsets.bottom + spacingNavigation + extraListSpacing
+ )
+ binding.noResultsView.updatePadding(bottom = spacingNavigation + barInsets.bottom)
+
+ val mlpDivider = binding.divider.layoutParams as ViewGroup.MarginLayoutParams
+ if (ViewCompat.getLayoutDirection(view) == ViewCompat.LAYOUT_DIRECTION_LTR) {
+ binding.frameSearch.updatePadding(left = spacingNavigationRail)
+ binding.gridGamesSearch.updatePadding(left = spacingNavigationRail)
+ binding.noResultsView.updatePadding(left = spacingNavigationRail)
+ binding.chipGroup.updatePadding(
+ left = chipSpacing + spacingNavigationRail,
+ right = chipSpacing
+ )
+ mlpDivider.leftMargin = chipSpacing + spacingNavigationRail
+ mlpDivider.rightMargin = chipSpacing
+ } else {
+ binding.frameSearch.updatePadding(right = spacingNavigationRail)
+ binding.gridGamesSearch.updatePadding(right = spacingNavigationRail)
+ binding.noResultsView.updatePadding(right = spacingNavigationRail)
+ binding.chipGroup.updatePadding(
+ left = chipSpacing,
+ right = chipSpacing + spacingNavigationRail
+ )
+ mlpDivider.leftMargin = chipSpacing
+ mlpDivider.rightMargin = chipSpacing + spacingNavigationRail
+ }
+ binding.divider.layoutParams = mlpDivider
+
+ windowInsets
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt
new file mode 100644
index 000000000..6c4ddaf6b
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt
@@ -0,0 +1,340 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.Manifest
+import android.content.Intent
+import android.os.Build
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.activity.OnBackPressedCallback
+import androidx.activity.result.contract.ActivityResultContracts
+import androidx.annotation.RequiresApi
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.app.NotificationManagerCompat
+import androidx.core.content.ContextCompat
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.isVisible
+import androidx.fragment.app.Fragment
+import androidx.fragment.app.activityViewModels
+import androidx.navigation.findNavController
+import androidx.preference.PreferenceManager
+import androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback
+import com.google.android.material.transition.MaterialFadeThrough
+import java.io.File
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.adapters.SetupAdapter
+import org.yuzu.yuzu_emu.databinding.FragmentSetupBinding
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.model.HomeViewModel
+import org.yuzu.yuzu_emu.model.SetupPage
+import org.yuzu.yuzu_emu.ui.main.MainActivity
+import org.yuzu.yuzu_emu.utils.DirectoryInitialization
+import org.yuzu.yuzu_emu.utils.GameHelper
+
+class SetupFragment : Fragment() {
+ private var _binding: FragmentSetupBinding? = null
+ private val binding get() = _binding!!
+
+ private val homeViewModel: HomeViewModel by activityViewModels()
+
+ private lateinit var mainActivity: MainActivity
+
+ private lateinit var hasBeenWarned: BooleanArray
+
+ companion object {
+ const val KEY_NEXT_VISIBILITY = "NextButtonVisibility"
+ const val KEY_BACK_VISIBILITY = "BackButtonVisibility"
+ const val KEY_HAS_BEEN_WARNED = "HasBeenWarned"
+ }
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ exitTransition = MaterialFadeThrough()
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentSetupBinding.inflate(layoutInflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ mainActivity = requireActivity() as MainActivity
+
+ homeViewModel.setNavigationVisibility(visible = false, animated = false)
+
+ requireActivity().onBackPressedDispatcher.addCallback(
+ viewLifecycleOwner,
+ object : OnBackPressedCallback(true) {
+ override fun handleOnBackPressed() {
+ if (binding.viewPager2.currentItem > 0) {
+ pageBackward()
+ } else {
+ requireActivity().finish()
+ }
+ }
+ }
+ )
+
+ requireActivity().window.navigationBarColor =
+ ContextCompat.getColor(requireContext(), android.R.color.transparent)
+
+ val pages = mutableListOf<SetupPage>()
+ pages.apply {
+ add(
+ SetupPage(
+ R.drawable.ic_yuzu_title,
+ R.string.welcome,
+ R.string.welcome_description,
+ 0,
+ true,
+ R.string.get_started,
+ { pageForward() },
+ false
+ )
+ )
+
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
+ add(
+ SetupPage(
+ R.drawable.ic_notification,
+ R.string.notifications,
+ R.string.notifications_description,
+ 0,
+ false,
+ R.string.give_permission,
+ { permissionLauncher.launch(Manifest.permission.POST_NOTIFICATIONS) },
+ true,
+ R.string.notification_warning,
+ R.string.notification_warning_description,
+ 0,
+ {
+ NotificationManagerCompat.from(requireContext())
+ .areNotificationsEnabled()
+ }
+ )
+ )
+ }
+
+ add(
+ SetupPage(
+ R.drawable.ic_key,
+ R.string.keys,
+ R.string.keys_description,
+ R.drawable.ic_add,
+ true,
+ R.string.select_keys,
+ { mainActivity.getProdKey.launch(arrayOf("*/*")) },
+ true,
+ R.string.install_prod_keys_warning,
+ R.string.install_prod_keys_warning_description,
+ R.string.install_prod_keys_warning_help,
+ { File(DirectoryInitialization.userDirectory + "/keys/prod.keys").exists() }
+ )
+ )
+ add(
+ SetupPage(
+ R.drawable.ic_controller,
+ R.string.games,
+ R.string.games_description,
+ R.drawable.ic_add,
+ true,
+ R.string.add_games,
+ {
+ mainActivity.getGamesDirectory.launch(
+ Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).data
+ )
+ },
+ true,
+ R.string.add_games_warning,
+ R.string.add_games_warning_description,
+ R.string.add_games_warning_help,
+ {
+ val preferences =
+ PreferenceManager.getDefaultSharedPreferences(
+ YuzuApplication.appContext
+ )
+ preferences.getString(GameHelper.KEY_GAME_PATH, "")!!.isNotEmpty()
+ }
+ )
+ )
+ add(
+ SetupPage(
+ R.drawable.ic_check,
+ R.string.done,
+ R.string.done_description,
+ R.drawable.ic_arrow_forward,
+ false,
+ R.string.text_continue,
+ { finishSetup() },
+ false
+ )
+ )
+ }
+
+ binding.viewPager2.apply {
+ adapter = SetupAdapter(requireActivity() as AppCompatActivity, pages)
+ offscreenPageLimit = 2
+ isUserInputEnabled = false
+ }
+
+ binding.viewPager2.registerOnPageChangeCallback(object : OnPageChangeCallback() {
+ var previousPosition: Int = 0
+
+ override fun onPageSelected(position: Int) {
+ super.onPageSelected(position)
+
+ if (position == 1 && previousPosition == 0) {
+ showView(binding.buttonNext)
+ showView(binding.buttonBack)
+ } else if (position == 0 && previousPosition == 1) {
+ hideView(binding.buttonBack)
+ hideView(binding.buttonNext)
+ } else if (position == pages.size - 1 && previousPosition == pages.size - 2) {
+ hideView(binding.buttonNext)
+ } else if (position == pages.size - 2 && previousPosition == pages.size - 1) {
+ showView(binding.buttonNext)
+ }
+
+ previousPosition = position
+ }
+ })
+
+ binding.buttonNext.setOnClickListener {
+ val index = binding.viewPager2.currentItem
+ val currentPage = pages[index]
+
+ // Checks if the user has completed the task on the current page
+ if (currentPage.hasWarning) {
+ if (currentPage.taskCompleted.invoke()) {
+ pageForward()
+ return@setOnClickListener
+ }
+
+ if (!hasBeenWarned[index]) {
+ SetupWarningDialogFragment.newInstance(
+ currentPage.warningTitleId,
+ currentPage.warningDescriptionId,
+ currentPage.warningHelpLinkId,
+ index
+ ).show(childFragmentManager, SetupWarningDialogFragment.TAG)
+ return@setOnClickListener
+ }
+ }
+ pageForward()
+ }
+ binding.buttonBack.setOnClickListener { pageBackward() }
+
+ if (savedInstanceState != null) {
+ val nextIsVisible = savedInstanceState.getBoolean(KEY_NEXT_VISIBILITY)
+ val backIsVisible = savedInstanceState.getBoolean(KEY_BACK_VISIBILITY)
+ hasBeenWarned = savedInstanceState.getBooleanArray(KEY_HAS_BEEN_WARNED)!!
+
+ if (nextIsVisible) {
+ binding.buttonNext.visibility = View.VISIBLE
+ }
+ if (backIsVisible) {
+ binding.buttonBack.visibility = View.VISIBLE
+ }
+ } else {
+ hasBeenWarned = BooleanArray(pages.size)
+ }
+
+ setInsets()
+ }
+
+ override fun onSaveInstanceState(outState: Bundle) {
+ super.onSaveInstanceState(outState)
+ outState.putBoolean(KEY_NEXT_VISIBILITY, binding.buttonNext.isVisible)
+ outState.putBoolean(KEY_BACK_VISIBILITY, binding.buttonBack.isVisible)
+ outState.putBooleanArray(KEY_HAS_BEEN_WARNED, hasBeenWarned)
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+
+ @RequiresApi(Build.VERSION_CODES.TIRAMISU)
+ private val permissionLauncher =
+ registerForActivityResult(ActivityResultContracts.RequestPermission()) {
+ if (!it &&
+ !shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS)
+ ) {
+ PermissionDeniedDialogFragment().show(
+ childFragmentManager,
+ PermissionDeniedDialogFragment.TAG
+ )
+ }
+ }
+
+ private fun finishSetup() {
+ PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext).edit()
+ .putBoolean(Settings.PREF_FIRST_APP_LAUNCH, false)
+ .apply()
+ mainActivity.finishSetup(binding.root.findNavController())
+ }
+
+ private fun showView(view: View) {
+ view.apply {
+ alpha = 0f
+ visibility = View.VISIBLE
+ isClickable = true
+ }.animate().apply {
+ duration = 300
+ alpha(1f)
+ }.start()
+ }
+
+ private fun hideView(view: View) {
+ if (view.visibility == View.INVISIBLE) {
+ return
+ }
+
+ view.apply {
+ alpha = 1f
+ isClickable = false
+ }.animate().apply {
+ duration = 300
+ alpha(0f)
+ }.withEndAction {
+ view.visibility = View.INVISIBLE
+ }
+ }
+
+ fun pageForward() {
+ binding.viewPager2.currentItem = binding.viewPager2.currentItem + 1
+ }
+
+ fun pageBackward() {
+ binding.viewPager2.currentItem = binding.viewPager2.currentItem - 1
+ }
+
+ fun setPageWarned(page: Int) {
+ hasBeenWarned[page] = true
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { view: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+ view.setPadding(
+ barInsets.left + cutoutInsets.left,
+ barInsets.top + cutoutInsets.top,
+ barInsets.right + cutoutInsets.right,
+ barInsets.bottom + cutoutInsets.bottom
+ )
+ windowInsets
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupWarningDialogFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupWarningDialogFragment.kt
new file mode 100644
index 000000000..b2c1d54af
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupWarningDialogFragment.kt
@@ -0,0 +1,86 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.fragments
+
+import android.app.Dialog
+import android.content.DialogInterface
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import androidx.fragment.app.DialogFragment
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import org.yuzu.yuzu_emu.R
+
+class SetupWarningDialogFragment : DialogFragment() {
+ private var titleId: Int = 0
+ private var descriptionId: Int = 0
+ private var helpLinkId: Int = 0
+ private var page: Int = 0
+
+ private lateinit var setupFragment: SetupFragment
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ titleId = requireArguments().getInt(TITLE)
+ descriptionId = requireArguments().getInt(DESCRIPTION)
+ helpLinkId = requireArguments().getInt(HELP_LINK)
+ page = requireArguments().getInt(PAGE)
+
+ setupFragment = requireParentFragment() as SetupFragment
+ }
+
+ override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
+ val builder = MaterialAlertDialogBuilder(requireContext())
+ .setPositiveButton(R.string.warning_skip) { _: DialogInterface?, _: Int ->
+ setupFragment.pageForward()
+ setupFragment.setPageWarned(page)
+ }
+ .setNegativeButton(R.string.warning_cancel, null)
+
+ if (titleId != 0) {
+ builder.setTitle(titleId)
+ } else {
+ builder.setTitle("")
+ }
+ if (descriptionId != 0) {
+ builder.setMessage(descriptionId)
+ }
+ if (helpLinkId != 0) {
+ builder.setNeutralButton(R.string.warning_help) { _: DialogInterface?, _: Int ->
+ val helpLink = resources.getString(R.string.install_prod_keys_warning_help)
+ val intent = Intent(Intent.ACTION_VIEW, Uri.parse(helpLink))
+ startActivity(intent)
+ }
+ }
+
+ return builder.show()
+ }
+
+ companion object {
+ const val TAG = "SetupWarningDialogFragment"
+
+ private const val TITLE = "Title"
+ private const val DESCRIPTION = "Description"
+ private const val HELP_LINK = "HelpLink"
+ private const val PAGE = "Page"
+
+ fun newInstance(
+ titleId: Int,
+ descriptionId: Int,
+ helpLinkId: Int,
+ page: Int
+ ): SetupWarningDialogFragment {
+ val dialog = SetupWarningDialogFragment()
+ val bundle = Bundle()
+ bundle.apply {
+ putInt(TITLE, titleId)
+ putInt(DESCRIPTION, descriptionId)
+ putInt(HELP_LINK, helpLinkId)
+ putInt(PAGE, page)
+ }
+ dialog.arguments = bundle
+ return dialog
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/layout/AutofitGridLayoutManager.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/layout/AutofitGridLayoutManager.kt
new file mode 100644
index 000000000..bdd6ea628
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/layout/AutofitGridLayoutManager.kt
@@ -0,0 +1,63 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.layout
+
+import android.content.Context
+import androidx.recyclerview.widget.GridLayoutManager
+import androidx.recyclerview.widget.RecyclerView
+import androidx.recyclerview.widget.RecyclerView.Recycler
+import org.yuzu.yuzu_emu.R
+
+/**
+ * Cut down version of the solution provided here
+ * https://stackoverflow.com/questions/26666143/recyclerview-gridlayoutmanager-how-to-auto-detect-span-count
+ */
+class AutofitGridLayoutManager(
+ context: Context,
+ columnWidth: Int
+) : GridLayoutManager(context, 1) {
+ private var columnWidth = 0
+ private var isColumnWidthChanged = true
+ private var lastWidth = 0
+ private var lastHeight = 0
+
+ init {
+ setColumnWidth(checkedColumnWidth(context, columnWidth))
+ }
+
+ private fun checkedColumnWidth(context: Context, columnWidth: Int): Int {
+ var newColumnWidth = columnWidth
+ if (newColumnWidth <= 0) {
+ newColumnWidth = context.resources.getDimensionPixelSize(R.dimen.spacing_xtralarge)
+ }
+ return newColumnWidth
+ }
+
+ private fun setColumnWidth(newColumnWidth: Int) {
+ if (newColumnWidth > 0 && newColumnWidth != columnWidth) {
+ columnWidth = newColumnWidth
+ isColumnWidthChanged = true
+ }
+ }
+
+ override fun onLayoutChildren(recycler: Recycler, state: RecyclerView.State) {
+ val width = width
+ val height = height
+ if (columnWidth > 0 && width > 0 && height > 0 &&
+ (isColumnWidthChanged || lastWidth != width || lastHeight != height)
+ ) {
+ val totalSpace: Int = if (orientation == VERTICAL) {
+ width - paddingRight - paddingLeft
+ } else {
+ height - paddingTop - paddingBottom
+ }
+ val spanCount = 1.coerceAtLeast(totalSpace / columnWidth)
+ setSpanCount(spanCount)
+ isColumnWidthChanged = false
+ }
+ lastWidth = width
+ lastHeight = height
+ super.onLayoutChildren(recycler, state)
+ }
+}
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
new file mode 100644
index 000000000..6527c64ab
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
@@ -0,0 +1,49 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+import android.os.Parcelable
+import java.util.HashSet
+import kotlinx.parcelize.Parcelize
+import kotlinx.serialization.Serializable
+
+@Parcelize
+@Serializable
+class Game(
+ val title: String,
+ val description: String,
+ val regions: String,
+ val path: String,
+ val gameId: String,
+ val company: String,
+ val isHomebrew: Boolean
+) : Parcelable {
+ val keyAddedToLibraryTime get() = "${gameId}_AddedToLibraryTime"
+ val keyLastPlayedTime get() = "${gameId}_LastPlayed"
+
+ override fun equals(other: Any?): Boolean {
+ if (other !is Game) {
+ return false
+ }
+
+ return hashCode() == other.hashCode()
+ }
+
+ override fun hashCode(): Int {
+ var result = title.hashCode()
+ result = 31 * result + description.hashCode()
+ result = 31 * result + regions.hashCode()
+ result = 31 * result + path.hashCode()
+ result = 31 * result + gameId.hashCode()
+ result = 31 * result + company.hashCode()
+ result = 31 * result + isHomebrew.hashCode()
+ return result
+ }
+
+ companion object {
+ val extensions: Set<String> = HashSet(
+ listOf("xci", "nsp", "nca", "nro")
+ )
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt
new file mode 100644
index 000000000..1fe42f922
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt
@@ -0,0 +1,119 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+import android.net.Uri
+import androidx.documentfile.provider.DocumentFile
+import androidx.lifecycle.LiveData
+import androidx.lifecycle.MutableLiveData
+import androidx.lifecycle.ViewModel
+import androidx.lifecycle.viewModelScope
+import androidx.preference.PreferenceManager
+import java.util.Locale
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.launch
+import kotlinx.coroutines.withContext
+import kotlinx.serialization.ExperimentalSerializationApi
+import kotlinx.serialization.MissingFieldException
+import kotlinx.serialization.decodeFromString
+import kotlinx.serialization.json.Json
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.utils.GameHelper
+
+@OptIn(ExperimentalSerializationApi::class)
+class GamesViewModel : ViewModel() {
+ private val _games = MutableLiveData<List<Game>>(emptyList())
+ val games: LiveData<List<Game>> get() = _games
+
+ private val _searchedGames = MutableLiveData<List<Game>>(emptyList())
+ val searchedGames: LiveData<List<Game>> get() = _searchedGames
+
+ private val _isReloading = MutableLiveData(false)
+ val isReloading: LiveData<Boolean> get() = _isReloading
+
+ private val _shouldSwapData = MutableLiveData(false)
+ val shouldSwapData: LiveData<Boolean> get() = _shouldSwapData
+
+ private val _shouldScrollToTop = MutableLiveData(false)
+ val shouldScrollToTop: LiveData<Boolean> get() = _shouldScrollToTop
+
+ private val _searchFocused = MutableLiveData(false)
+ val searchFocused: LiveData<Boolean> get() = _searchFocused
+
+ init {
+ // Ensure keys are loaded so that ROM metadata can be decrypted.
+ NativeLibrary.reloadKeys()
+
+ // Retrieve list of cached games
+ val storedGames = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+ .getStringSet(GameHelper.KEY_GAMES, emptySet())
+ if (storedGames!!.isNotEmpty()) {
+ val deserializedGames = mutableSetOf<Game>()
+ storedGames.forEach {
+ val game: Game
+ try {
+ game = Json.decodeFromString(it)
+ } catch (e: MissingFieldException) {
+ return@forEach
+ }
+
+ val gameExists =
+ DocumentFile.fromSingleUri(YuzuApplication.appContext, Uri.parse(game.path))
+ ?.exists()
+ if (gameExists == true) {
+ deserializedGames.add(game)
+ }
+ }
+ setGames(deserializedGames.toList())
+ }
+ reloadGames(false)
+ }
+
+ fun setGames(games: List<Game>) {
+ val sortedList = games.sortedWith(
+ compareBy(
+ { it.title.lowercase(Locale.getDefault()) },
+ { it.path }
+ )
+ )
+
+ _games.postValue(sortedList)
+ }
+
+ fun setSearchedGames(games: List<Game>) {
+ _searchedGames.postValue(games)
+ }
+
+ fun setShouldSwapData(shouldSwap: Boolean) {
+ _shouldSwapData.postValue(shouldSwap)
+ }
+
+ fun setShouldScrollToTop(shouldScroll: Boolean) {
+ _shouldScrollToTop.postValue(shouldScroll)
+ }
+
+ fun setSearchFocused(searchFocused: Boolean) {
+ _searchFocused.postValue(searchFocused)
+ }
+
+ fun reloadGames(directoryChanged: Boolean) {
+ if (isReloading.value == true) {
+ return
+ }
+ _isReloading.postValue(true)
+
+ viewModelScope.launch {
+ withContext(Dispatchers.IO) {
+ NativeLibrary.resetRomMetadata()
+ setGames(GameHelper.getGames())
+ _isReloading.postValue(false)
+
+ if (directoryChanged) {
+ setShouldSwapData(true)
+ }
+ }
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeSetting.kt
new file mode 100644
index 000000000..7049f2fa5
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeSetting.kt
@@ -0,0 +1,11 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+data class HomeSetting(
+ val titleId: Int,
+ val descriptionId: Int,
+ val iconId: Int,
+ val onClick: () -> Unit
+)
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeViewModel.kt
new file mode 100644
index 000000000..263ee7144
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/HomeViewModel.kt
@@ -0,0 +1,36 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+import androidx.lifecycle.LiveData
+import androidx.lifecycle.MutableLiveData
+import androidx.lifecycle.ViewModel
+
+class HomeViewModel : ViewModel() {
+ private val _navigationVisible = MutableLiveData<Pair<Boolean, Boolean>>()
+ val navigationVisible: LiveData<Pair<Boolean, Boolean>> get() = _navigationVisible
+
+ private val _statusBarShadeVisible = MutableLiveData(true)
+ val statusBarShadeVisible: LiveData<Boolean> get() = _statusBarShadeVisible
+
+ var navigatedToSetup = false
+
+ init {
+ _navigationVisible.value = Pair(false, false)
+ }
+
+ fun setNavigationVisibility(visible: Boolean, animated: Boolean) {
+ if (_navigationVisible.value?.first == visible) {
+ return
+ }
+ _navigationVisible.value = Pair(visible, animated)
+ }
+
+ fun setStatusBarShadeVisibility(visible: Boolean) {
+ if (_statusBarShadeVisible.value == visible) {
+ return
+ }
+ _statusBarShadeVisible.value = visible
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/License.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/License.kt
new file mode 100644
index 000000000..f24d5cf34
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/License.kt
@@ -0,0 +1,16 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+import android.os.Parcelable
+import kotlinx.parcelize.Parcelize
+
+@Parcelize
+data class License(
+ val titleId: Int,
+ val descriptionId: Int,
+ val linkId: Int,
+ val copyrightId: Int,
+ val licenseId: Int
+) : Parcelable
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt
new file mode 100644
index 000000000..b4b78e42d
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt
@@ -0,0 +1,11 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+import android.net.Uri
+import android.provider.DocumentsContract
+
+class MinimalDocumentFile(val filename: String, mimeType: String, val uri: Uri) {
+ val isDirectory: Boolean = mimeType == DocumentsContract.Document.MIME_TYPE_DIR
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/SetupPage.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/SetupPage.kt
new file mode 100644
index 000000000..a0c878e1c
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/SetupPage.kt
@@ -0,0 +1,19 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+data class SetupPage(
+ val iconId: Int,
+ val titleId: Int,
+ val descriptionId: Int,
+ val buttonIconId: Int,
+ val leftAlignedIcon: Boolean,
+ val buttonTextId: Int,
+ val buttonAction: () -> Unit,
+ val hasWarning: Boolean,
+ val warningTitleId: Int = 0,
+ val warningDescriptionId: Int = 0,
+ val warningHelpLinkId: Int = 0,
+ val taskCompleted: () -> Boolean = { true }
+)
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/TaskViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/TaskViewModel.kt
new file mode 100644
index 000000000..27ea725a5
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/TaskViewModel.kt
@@ -0,0 +1,47 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.model
+
+import androidx.lifecycle.LiveData
+import androidx.lifecycle.MutableLiveData
+import androidx.lifecycle.ViewModel
+import androidx.lifecycle.viewModelScope
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.launch
+
+class TaskViewModel : ViewModel() {
+ private val _result = MutableLiveData<Any>()
+ val result: LiveData<Any> = _result
+
+ private val _isComplete = MutableLiveData<Boolean>()
+ val isComplete: LiveData<Boolean> = _isComplete
+
+ private val _isRunning = MutableLiveData<Boolean>()
+ val isRunning: LiveData<Boolean> = _isRunning
+
+ lateinit var task: () -> Any
+
+ init {
+ clear()
+ }
+
+ fun clear() {
+ _result.value = Any()
+ _isComplete.value = false
+ _isRunning.value = false
+ }
+
+ fun runTask() {
+ if (_isRunning.value == true) {
+ return
+ }
+ _isRunning.value = true
+
+ viewModelScope.launch(Dispatchers.IO) {
+ val res = task()
+ _result.postValue(res)
+ _isComplete.postValue(true)
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt
new file mode 100644
index 000000000..6251ec783
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt
@@ -0,0 +1,1181 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.overlay
+
+import android.app.Activity
+import android.content.Context
+import android.content.SharedPreferences
+import android.graphics.Bitmap
+import android.graphics.Canvas
+import android.graphics.Point
+import android.graphics.Rect
+import android.graphics.drawable.Drawable
+import android.graphics.drawable.VectorDrawable
+import android.os.Build
+import android.util.AttributeSet
+import android.view.HapticFeedbackConstants
+import android.view.MotionEvent
+import android.view.SurfaceView
+import android.view.View
+import android.view.View.OnTouchListener
+import android.view.WindowInsets
+import androidx.core.content.ContextCompat
+import androidx.preference.PreferenceManager
+import androidx.window.layout.WindowMetricsCalculator
+import kotlin.math.max
+import kotlin.math.min
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.NativeLibrary.ButtonType
+import org.yuzu.yuzu_emu.NativeLibrary.StickType
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.utils.EmulationMenuSettings
+
+/**
+ * Draws the interactive input overlay on top of the
+ * [SurfaceView] that is rendering emulation.
+ */
+class InputOverlay(context: Context, attrs: AttributeSet?) :
+ SurfaceView(context, attrs),
+ OnTouchListener {
+ private val overlayButtons: MutableSet<InputOverlayDrawableButton> = HashSet()
+ private val overlayDpads: MutableSet<InputOverlayDrawableDpad> = HashSet()
+ private val overlayJoysticks: MutableSet<InputOverlayDrawableJoystick> = HashSet()
+
+ private var inEditMode = false
+ private var buttonBeingConfigured: InputOverlayDrawableButton? = null
+ private var dpadBeingConfigured: InputOverlayDrawableDpad? = null
+ private var joystickBeingConfigured: InputOverlayDrawableJoystick? = null
+
+ private lateinit var windowInsets: WindowInsets
+
+ var orientation = LANDSCAPE
+
+ override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
+ super.onLayout(changed, left, top, right, bottom)
+
+ windowInsets = rootWindowInsets
+
+ if (!preferences.getBoolean("${Settings.PREF_OVERLAY_INIT}$orientation", false)) {
+ defaultOverlay()
+ }
+
+ // Load the controls.
+ refreshControls()
+
+ // Set the on touch listener.
+ setOnTouchListener(this)
+
+ // Force draw
+ setWillNotDraw(false)
+
+ // Request focus for the overlay so it has priority on presses.
+ requestFocus()
+ }
+
+ override fun draw(canvas: Canvas) {
+ super.draw(canvas)
+ for (button in overlayButtons) {
+ button.draw(canvas)
+ }
+ for (dpad in overlayDpads) {
+ dpad.draw(canvas)
+ }
+ for (joystick in overlayJoysticks) {
+ joystick.draw(canvas)
+ }
+ }
+
+ override fun onTouch(v: View, event: MotionEvent): Boolean {
+ if (inEditMode) {
+ return onTouchWhileEditing(event)
+ }
+
+ var shouldUpdateView = false
+ val playerIndex =
+ if (NativeLibrary.isHandheldOnly()) {
+ NativeLibrary.ConsoleDevice
+ } else {
+ NativeLibrary.Player1Device
+ }
+
+ for (button in overlayButtons) {
+ if (!button.updateStatus(event)) {
+ continue
+ }
+ NativeLibrary.onGamePadButtonEvent(
+ playerIndex,
+ button.buttonId,
+ button.status
+ )
+ playHaptics(event)
+ shouldUpdateView = true
+ }
+
+ for (dpad in overlayDpads) {
+ if (!dpad.updateStatus(event, EmulationMenuSettings.dpadSlide)) {
+ continue
+ }
+ NativeLibrary.onGamePadButtonEvent(
+ playerIndex,
+ dpad.upId,
+ dpad.upStatus
+ )
+ NativeLibrary.onGamePadButtonEvent(
+ playerIndex,
+ dpad.downId,
+ dpad.downStatus
+ )
+ NativeLibrary.onGamePadButtonEvent(
+ playerIndex,
+ dpad.leftId,
+ dpad.leftStatus
+ )
+ NativeLibrary.onGamePadButtonEvent(
+ playerIndex,
+ dpad.rightId,
+ dpad.rightStatus
+ )
+ playHaptics(event)
+ shouldUpdateView = true
+ }
+
+ for (joystick in overlayJoysticks) {
+ if (!joystick.updateStatus(event)) {
+ continue
+ }
+ val axisID = joystick.joystickId
+ NativeLibrary.onGamePadJoystickEvent(
+ playerIndex,
+ axisID,
+ joystick.xAxis,
+ joystick.realYAxis
+ )
+ NativeLibrary.onGamePadButtonEvent(
+ playerIndex,
+ joystick.buttonId,
+ joystick.buttonStatus
+ )
+ playHaptics(event)
+ shouldUpdateView = true
+ }
+
+ if (shouldUpdateView) {
+ invalidate()
+ }
+
+ if (!preferences.getBoolean(Settings.PREF_TOUCH_ENABLED, true)) {
+ return true
+ }
+
+ val pointerIndex = event.actionIndex
+ val xPosition = event.getX(pointerIndex).toInt()
+ val yPosition = event.getY(pointerIndex).toInt()
+ val pointerId = event.getPointerId(pointerIndex)
+ val motionEvent = event.action and MotionEvent.ACTION_MASK
+ val isActionDown =
+ motionEvent == MotionEvent.ACTION_DOWN || motionEvent == MotionEvent.ACTION_POINTER_DOWN
+ val isActionMove = motionEvent == MotionEvent.ACTION_MOVE
+ val isActionUp =
+ motionEvent == MotionEvent.ACTION_UP || motionEvent == MotionEvent.ACTION_POINTER_UP
+
+ if (isActionDown && !isTouchInputConsumed(pointerId)) {
+ NativeLibrary.onTouchPressed(pointerId, xPosition.toFloat(), yPosition.toFloat())
+ }
+
+ if (isActionMove) {
+ for (i in 0 until event.pointerCount) {
+ val fingerId = event.getPointerId(i)
+ if (isTouchInputConsumed(fingerId)) {
+ continue
+ }
+ NativeLibrary.onTouchMoved(fingerId, event.getX(i), event.getY(i))
+ }
+ }
+
+ if (isActionUp && !isTouchInputConsumed(pointerId)) {
+ NativeLibrary.onTouchReleased(pointerId)
+ }
+
+ return true
+ }
+
+ private fun playHaptics(event: MotionEvent) {
+ if (EmulationMenuSettings.hapticFeedback) {
+ when (event.actionMasked) {
+ MotionEvent.ACTION_DOWN,
+ MotionEvent.ACTION_POINTER_DOWN ->
+ performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY)
+
+ MotionEvent.ACTION_UP,
+ MotionEvent.ACTION_POINTER_UP ->
+ performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY_RELEASE)
+ }
+ }
+ }
+
+ private fun isTouchInputConsumed(track_id: Int): Boolean {
+ for (button in overlayButtons) {
+ if (button.trackId == track_id) {
+ return true
+ }
+ }
+ for (dpad in overlayDpads) {
+ if (dpad.trackId == track_id) {
+ return true
+ }
+ }
+ for (joystick in overlayJoysticks) {
+ if (joystick.trackId == track_id) {
+ return true
+ }
+ }
+ return false
+ }
+
+ private fun onTouchWhileEditing(event: MotionEvent): Boolean {
+ val pointerIndex = event.actionIndex
+ val fingerPositionX = event.getX(pointerIndex).toInt()
+ val fingerPositionY = event.getY(pointerIndex).toInt()
+
+ for (button in overlayButtons) {
+ // Determine the button state to apply based on the MotionEvent action flag.
+ when (event.action and MotionEvent.ACTION_MASK) {
+ MotionEvent.ACTION_DOWN,
+ MotionEvent.ACTION_POINTER_DOWN ->
+ // If no button is being moved now, remember the currently touched button to move.
+ if (buttonBeingConfigured == null &&
+ button.bounds.contains(
+ fingerPositionX,
+ fingerPositionY
+ )
+ ) {
+ buttonBeingConfigured = button
+ buttonBeingConfigured!!.onConfigureTouch(event)
+ }
+
+ MotionEvent.ACTION_MOVE -> if (buttonBeingConfigured != null) {
+ buttonBeingConfigured!!.onConfigureTouch(event)
+ invalidate()
+ return true
+ }
+
+ MotionEvent.ACTION_UP,
+ MotionEvent.ACTION_POINTER_UP -> if (buttonBeingConfigured === button) {
+ // Persist button position by saving new place.
+ saveControlPosition(
+ buttonBeingConfigured!!.buttonId,
+ buttonBeingConfigured!!.bounds.centerX(),
+ buttonBeingConfigured!!.bounds.centerY(),
+ orientation
+ )
+ buttonBeingConfigured = null
+ }
+ }
+ }
+
+ for (dpad in overlayDpads) {
+ // Determine the button state to apply based on the MotionEvent action flag.
+ when (event.action and MotionEvent.ACTION_MASK) {
+ MotionEvent.ACTION_DOWN,
+ MotionEvent.ACTION_POINTER_DOWN ->
+ // If no button is being moved now, remember the currently touched button to move.
+ if (buttonBeingConfigured == null &&
+ dpad.bounds.contains(fingerPositionX, fingerPositionY)
+ ) {
+ dpadBeingConfigured = dpad
+ dpadBeingConfigured!!.onConfigureTouch(event)
+ }
+
+ MotionEvent.ACTION_MOVE -> if (dpadBeingConfigured != null) {
+ dpadBeingConfigured!!.onConfigureTouch(event)
+ invalidate()
+ return true
+ }
+
+ MotionEvent.ACTION_UP,
+ MotionEvent.ACTION_POINTER_UP -> if (dpadBeingConfigured === dpad) {
+ // Persist button position by saving new place.
+ saveControlPosition(
+ dpadBeingConfigured!!.upId,
+ dpadBeingConfigured!!.bounds.centerX(),
+ dpadBeingConfigured!!.bounds.centerY(),
+ orientation
+ )
+ dpadBeingConfigured = null
+ }
+ }
+ }
+
+ for (joystick in overlayJoysticks) {
+ when (event.action) {
+ MotionEvent.ACTION_DOWN,
+ MotionEvent.ACTION_POINTER_DOWN -> if (joystickBeingConfigured == null &&
+ joystick.bounds.contains(
+ fingerPositionX,
+ fingerPositionY
+ )
+ ) {
+ joystickBeingConfigured = joystick
+ joystickBeingConfigured!!.onConfigureTouch(event)
+ }
+
+ MotionEvent.ACTION_MOVE -> if (joystickBeingConfigured != null) {
+ joystickBeingConfigured!!.onConfigureTouch(event)
+ invalidate()
+ }
+
+ MotionEvent.ACTION_UP,
+ MotionEvent.ACTION_POINTER_UP -> if (joystickBeingConfigured != null) {
+ saveControlPosition(
+ joystickBeingConfigured!!.buttonId,
+ joystickBeingConfigured!!.bounds.centerX(),
+ joystickBeingConfigured!!.bounds.centerY(),
+ orientation
+ )
+ joystickBeingConfigured = null
+ }
+ }
+ }
+
+ return true
+ }
+
+ private fun addOverlayControls(orientation: String) {
+ val windowSize = getSafeScreenSize(context)
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_0, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_a,
+ R.drawable.facebutton_a_depressed,
+ ButtonType.BUTTON_A,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_1, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_b,
+ R.drawable.facebutton_b_depressed,
+ ButtonType.BUTTON_B,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_2, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_x,
+ R.drawable.facebutton_x_depressed,
+ ButtonType.BUTTON_X,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_3, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_y,
+ R.drawable.facebutton_y_depressed,
+ ButtonType.BUTTON_Y,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_4, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.l_shoulder,
+ R.drawable.l_shoulder_depressed,
+ ButtonType.TRIGGER_L,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_5, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.r_shoulder,
+ R.drawable.r_shoulder_depressed,
+ ButtonType.TRIGGER_R,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_6, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.zl_trigger,
+ R.drawable.zl_trigger_depressed,
+ ButtonType.TRIGGER_ZL,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_7, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.zr_trigger,
+ R.drawable.zr_trigger_depressed,
+ ButtonType.TRIGGER_ZR,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_8, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_plus,
+ R.drawable.facebutton_plus_depressed,
+ ButtonType.BUTTON_PLUS,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_9, true)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_minus,
+ R.drawable.facebutton_minus_depressed,
+ ButtonType.BUTTON_MINUS,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_10, true)) {
+ overlayDpads.add(
+ initializeOverlayDpad(
+ context,
+ windowSize,
+ R.drawable.dpad_standard,
+ R.drawable.dpad_standard_cardinal_depressed,
+ R.drawable.dpad_standard_diagonal_depressed,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_11, true)) {
+ overlayJoysticks.add(
+ initializeOverlayJoystick(
+ context,
+ windowSize,
+ R.drawable.joystick_range,
+ R.drawable.joystick,
+ R.drawable.joystick_depressed,
+ StickType.STICK_L,
+ ButtonType.STICK_L,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_12, true)) {
+ overlayJoysticks.add(
+ initializeOverlayJoystick(
+ context,
+ windowSize,
+ R.drawable.joystick_range,
+ R.drawable.joystick,
+ R.drawable.joystick_depressed,
+ StickType.STICK_R,
+ ButtonType.STICK_R,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_13, false)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_home,
+ R.drawable.facebutton_home_depressed,
+ ButtonType.BUTTON_HOME,
+ orientation
+ )
+ )
+ }
+ if (preferences.getBoolean(Settings.PREF_BUTTON_TOGGLE_14, false)) {
+ overlayButtons.add(
+ initializeOverlayButton(
+ context,
+ windowSize,
+ R.drawable.facebutton_screenshot,
+ R.drawable.facebutton_screenshot_depressed,
+ ButtonType.BUTTON_CAPTURE,
+ orientation
+ )
+ )
+ }
+ }
+
+ fun refreshControls() {
+ // Remove all the overlay buttons from the HashSet.
+ overlayButtons.clear()
+ overlayDpads.clear()
+ overlayJoysticks.clear()
+
+ // Add all the enabled overlay items back to the HashSet.
+ if (EmulationMenuSettings.showOverlay) {
+ addOverlayControls(orientation)
+ }
+ invalidate()
+ }
+
+ private fun saveControlPosition(sharedPrefsId: Int, x: Int, y: Int, orientation: String) {
+ val windowSize = getSafeScreenSize(context)
+ val min = windowSize.first
+ val max = windowSize.second
+ PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext).edit()
+ .putFloat("$sharedPrefsId-X$orientation", (x - min.x).toFloat() / max.x)
+ .putFloat("$sharedPrefsId-Y$orientation", (y - min.y).toFloat() / max.y)
+ .apply()
+ }
+
+ fun setIsInEditMode(editMode: Boolean) {
+ inEditMode = editMode
+ }
+
+ private fun defaultOverlay() {
+ if (!preferences.getBoolean("${Settings.PREF_OVERLAY_INIT}$orientation", false)) {
+ defaultOverlayByLayout(orientation)
+ }
+
+ resetButtonPlacement()
+ preferences.edit()
+ .putBoolean("${Settings.PREF_OVERLAY_INIT}$orientation", true)
+ .apply()
+ }
+
+ fun resetButtonPlacement() {
+ defaultOverlayByLayout(orientation)
+ refreshControls()
+ }
+
+ private val landscapeResources = arrayOf(
+ R.integer.SWITCH_BUTTON_A_X,
+ R.integer.SWITCH_BUTTON_A_Y,
+ R.integer.SWITCH_BUTTON_B_X,
+ R.integer.SWITCH_BUTTON_B_Y,
+ R.integer.SWITCH_BUTTON_X_X,
+ R.integer.SWITCH_BUTTON_X_Y,
+ R.integer.SWITCH_BUTTON_Y_X,
+ R.integer.SWITCH_BUTTON_Y_Y,
+ R.integer.SWITCH_TRIGGER_ZL_X,
+ R.integer.SWITCH_TRIGGER_ZL_Y,
+ R.integer.SWITCH_TRIGGER_ZR_X,
+ R.integer.SWITCH_TRIGGER_ZR_Y,
+ R.integer.SWITCH_BUTTON_DPAD_X,
+ R.integer.SWITCH_BUTTON_DPAD_Y,
+ R.integer.SWITCH_TRIGGER_L_X,
+ R.integer.SWITCH_TRIGGER_L_Y,
+ R.integer.SWITCH_TRIGGER_R_X,
+ R.integer.SWITCH_TRIGGER_R_Y,
+ R.integer.SWITCH_BUTTON_PLUS_X,
+ R.integer.SWITCH_BUTTON_PLUS_Y,
+ R.integer.SWITCH_BUTTON_MINUS_X,
+ R.integer.SWITCH_BUTTON_MINUS_Y,
+ R.integer.SWITCH_BUTTON_HOME_X,
+ R.integer.SWITCH_BUTTON_HOME_Y,
+ R.integer.SWITCH_BUTTON_CAPTURE_X,
+ R.integer.SWITCH_BUTTON_CAPTURE_Y,
+ R.integer.SWITCH_STICK_R_X,
+ R.integer.SWITCH_STICK_R_Y,
+ R.integer.SWITCH_STICK_L_X,
+ R.integer.SWITCH_STICK_L_Y
+ )
+
+ private val portraitResources = arrayOf(
+ R.integer.SWITCH_BUTTON_A_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_A_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_B_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_B_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_X_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_X_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_Y_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_Y_Y_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_ZL_X_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_ZL_Y_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_ZR_X_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_ZR_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_DPAD_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_DPAD_Y_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_L_X_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_L_Y_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_R_X_PORTRAIT,
+ R.integer.SWITCH_TRIGGER_R_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_PLUS_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_PLUS_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_MINUS_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_MINUS_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_HOME_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_HOME_Y_PORTRAIT,
+ R.integer.SWITCH_BUTTON_CAPTURE_X_PORTRAIT,
+ R.integer.SWITCH_BUTTON_CAPTURE_Y_PORTRAIT,
+ R.integer.SWITCH_STICK_R_X_PORTRAIT,
+ R.integer.SWITCH_STICK_R_Y_PORTRAIT,
+ R.integer.SWITCH_STICK_L_X_PORTRAIT,
+ R.integer.SWITCH_STICK_L_Y_PORTRAIT
+ )
+
+ private val foldableResources = arrayOf(
+ R.integer.SWITCH_BUTTON_A_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_A_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_B_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_B_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_X_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_X_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_Y_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_Y_Y_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_ZL_X_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_ZL_Y_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_ZR_X_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_ZR_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_DPAD_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_DPAD_Y_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_L_X_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_L_Y_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_R_X_FOLDABLE,
+ R.integer.SWITCH_TRIGGER_R_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_PLUS_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_PLUS_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_MINUS_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_MINUS_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_HOME_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_HOME_Y_FOLDABLE,
+ R.integer.SWITCH_BUTTON_CAPTURE_X_FOLDABLE,
+ R.integer.SWITCH_BUTTON_CAPTURE_Y_FOLDABLE,
+ R.integer.SWITCH_STICK_R_X_FOLDABLE,
+ R.integer.SWITCH_STICK_R_Y_FOLDABLE,
+ R.integer.SWITCH_STICK_L_X_FOLDABLE,
+ R.integer.SWITCH_STICK_L_Y_FOLDABLE
+ )
+
+ private fun getResourceValue(orientation: String, position: Int): Float {
+ return when (orientation) {
+ PORTRAIT -> resources.getInteger(portraitResources[position]).toFloat() / 1000
+ FOLDABLE -> resources.getInteger(foldableResources[position]).toFloat() / 1000
+ else -> resources.getInteger(landscapeResources[position]).toFloat() / 1000
+ }
+ }
+
+ private fun defaultOverlayByLayout(orientation: String) {
+ // Each value represents the position of the button in relation to the screen size without insets.
+ preferences.edit()
+ .putFloat(
+ ButtonType.BUTTON_A.toString() + "-X$orientation",
+ getResourceValue(orientation, 0)
+ )
+ .putFloat(
+ ButtonType.BUTTON_A.toString() + "-Y$orientation",
+ getResourceValue(orientation, 1)
+ )
+ .putFloat(
+ ButtonType.BUTTON_B.toString() + "-X$orientation",
+ getResourceValue(orientation, 2)
+ )
+ .putFloat(
+ ButtonType.BUTTON_B.toString() + "-Y$orientation",
+ getResourceValue(orientation, 3)
+ )
+ .putFloat(
+ ButtonType.BUTTON_X.toString() + "-X$orientation",
+ getResourceValue(orientation, 4)
+ )
+ .putFloat(
+ ButtonType.BUTTON_X.toString() + "-Y$orientation",
+ getResourceValue(orientation, 5)
+ )
+ .putFloat(
+ ButtonType.BUTTON_Y.toString() + "-X$orientation",
+ getResourceValue(orientation, 6)
+ )
+ .putFloat(
+ ButtonType.BUTTON_Y.toString() + "-Y$orientation",
+ getResourceValue(orientation, 7)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_ZL.toString() + "-X$orientation",
+ getResourceValue(orientation, 8)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_ZL.toString() + "-Y$orientation",
+ getResourceValue(orientation, 9)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_ZR.toString() + "-X$orientation",
+ getResourceValue(orientation, 10)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_ZR.toString() + "-Y$orientation",
+ getResourceValue(orientation, 11)
+ )
+ .putFloat(
+ ButtonType.DPAD_UP.toString() + "-X$orientation",
+ getResourceValue(orientation, 12)
+ )
+ .putFloat(
+ ButtonType.DPAD_UP.toString() + "-Y$orientation",
+ getResourceValue(orientation, 13)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_L.toString() + "-X$orientation",
+ getResourceValue(orientation, 14)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_L.toString() + "-Y$orientation",
+ getResourceValue(orientation, 15)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_R.toString() + "-X$orientation",
+ getResourceValue(orientation, 16)
+ )
+ .putFloat(
+ ButtonType.TRIGGER_R.toString() + "-Y$orientation",
+ getResourceValue(orientation, 17)
+ )
+ .putFloat(
+ ButtonType.BUTTON_PLUS.toString() + "-X$orientation",
+ getResourceValue(orientation, 18)
+ )
+ .putFloat(
+ ButtonType.BUTTON_PLUS.toString() + "-Y$orientation",
+ getResourceValue(orientation, 19)
+ )
+ .putFloat(
+ ButtonType.BUTTON_MINUS.toString() + "-X$orientation",
+ getResourceValue(orientation, 20)
+ )
+ .putFloat(
+ ButtonType.BUTTON_MINUS.toString() + "-Y$orientation",
+ getResourceValue(orientation, 21)
+ )
+ .putFloat(
+ ButtonType.BUTTON_HOME.toString() + "-X$orientation",
+ getResourceValue(orientation, 22)
+ )
+ .putFloat(
+ ButtonType.BUTTON_HOME.toString() + "-Y$orientation",
+ getResourceValue(orientation, 23)
+ )
+ .putFloat(
+ ButtonType.BUTTON_CAPTURE.toString() + "-X$orientation",
+ getResourceValue(orientation, 24)
+ )
+ .putFloat(
+ ButtonType.BUTTON_CAPTURE.toString() + "-Y$orientation",
+ getResourceValue(orientation, 25)
+ )
+ .putFloat(
+ ButtonType.STICK_R.toString() + "-X$orientation",
+ getResourceValue(orientation, 26)
+ )
+ .putFloat(
+ ButtonType.STICK_R.toString() + "-Y$orientation",
+ getResourceValue(orientation, 27)
+ )
+ .putFloat(
+ ButtonType.STICK_L.toString() + "-X$orientation",
+ getResourceValue(orientation, 28)
+ )
+ .putFloat(
+ ButtonType.STICK_L.toString() + "-Y$orientation",
+ getResourceValue(orientation, 29)
+ )
+ .apply()
+ }
+
+ override fun isInEditMode(): Boolean {
+ return inEditMode
+ }
+
+ companion object {
+ private val preferences: SharedPreferences =
+ PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+
+ const val LANDSCAPE = ""
+ const val PORTRAIT = "_Portrait"
+ const val FOLDABLE = "_Foldable"
+
+ /**
+ * Resizes a [Bitmap] by a given scale factor
+ *
+ * @param context Context for getting the vector drawable
+ * @param drawableId The ID of the drawable to scale.
+ * @param scale The scale factor for the bitmap.
+ * @return The scaled [Bitmap]
+ */
+ private fun getBitmap(context: Context, drawableId: Int, scale: Float): Bitmap {
+ val vectorDrawable = ContextCompat.getDrawable(context, drawableId) as VectorDrawable
+
+ val bitmap = Bitmap.createBitmap(
+ (vectorDrawable.intrinsicWidth * scale).toInt(),
+ (vectorDrawable.intrinsicHeight * scale).toInt(),
+ Bitmap.Config.ARGB_8888
+ )
+
+ val dm = context.resources.displayMetrics
+ val minScreenDimension = min(dm.widthPixels, dm.heightPixels)
+
+ val maxBitmapDimension = max(bitmap.width, bitmap.height)
+ val bitmapScale = scale * minScreenDimension / maxBitmapDimension
+
+ val scaledBitmap = Bitmap.createScaledBitmap(
+ bitmap,
+ (bitmap.width * bitmapScale).toInt(),
+ (bitmap.height * bitmapScale).toInt(),
+ true
+ )
+
+ val canvas = Canvas(scaledBitmap)
+ vectorDrawable.setBounds(0, 0, canvas.width, canvas.height)
+ vectorDrawable.draw(canvas)
+ return scaledBitmap
+ }
+
+ /**
+ * Gets the safe screen size for drawing the overlay
+ *
+ * @param context Context for getting the window metrics
+ * @return A pair of points, the first being the top left corner of the safe area,
+ * the second being the bottom right corner of the safe area
+ */
+ private fun getSafeScreenSize(context: Context): Pair<Point, Point> {
+ // Get screen size
+ val windowMetrics = WindowMetricsCalculator.getOrCreate()
+ .computeCurrentWindowMetrics(context as Activity)
+ var maxY = windowMetrics.bounds.height().toFloat()
+ var maxX = windowMetrics.bounds.width().toFloat()
+ var minY = 0
+ var minX = 0
+
+ // If we have API access, calculate the safe area to draw the overlay
+ var cutoutLeft = 0
+ var cutoutBottom = 0
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
+ val insets = context.windowManager.currentWindowMetrics.windowInsets.displayCutout
+ if (insets != null) {
+ if (insets.boundingRectTop.bottom != 0 &&
+ insets.boundingRectTop.bottom > maxY / 2
+ ) {
+ maxY = insets.boundingRectTop.bottom.toFloat()
+ }
+ if (insets.boundingRectRight.left != 0 &&
+ insets.boundingRectRight.left > maxX / 2
+ ) {
+ maxX = insets.boundingRectRight.left.toFloat()
+ }
+
+ minX = insets.boundingRectLeft.right - insets.boundingRectLeft.left
+ minY = insets.boundingRectBottom.top - insets.boundingRectBottom.bottom
+
+ cutoutLeft = insets.boundingRectRight.right - insets.boundingRectRight.left
+ cutoutBottom = insets.boundingRectTop.top - insets.boundingRectTop.bottom
+ }
+ }
+
+ // This makes sure that if we have an inset on one side of the screen, we mirror it on
+ // the other side. Since removing space from one of the max values messes with the scale,
+ // we also have to account for it using our min values.
+ if (maxX.toInt() != windowMetrics.bounds.width()) minX += cutoutLeft
+ if (maxY.toInt() != windowMetrics.bounds.height()) minY += cutoutBottom
+ if (minX > 0 && maxX.toInt() == windowMetrics.bounds.width()) {
+ maxX -= (minX * 2)
+ } else if (minX > 0) {
+ maxX -= minX
+ }
+ if (minY > 0 && maxY.toInt() == windowMetrics.bounds.height()) {
+ maxY -= (minY * 2)
+ } else if (minY > 0) {
+ maxY -= minY
+ }
+
+ return Pair(Point(minX, minY), Point(maxX.toInt(), maxY.toInt()))
+ }
+
+ /**
+ * Initializes an InputOverlayDrawableButton, given by resId, with all of the
+ * parameters set for it to be properly shown on the InputOverlay.
+ *
+ *
+ * This works due to the way the X and Y coordinates are stored within
+ * the [SharedPreferences].
+ *
+ *
+ * In the input overlay configuration menu,
+ * once a touch event begins and then ends (ie. Organizing the buttons to one's own liking for the overlay).
+ * the X and Y coordinates of the button at the END of its touch event
+ * (when you remove your finger/stylus from the touchscreen) are then stored
+ * within a SharedPreferences instance so that those values can be retrieved here.
+ *
+ *
+ * This has a few benefits over the conventional way of storing the values
+ * (ie. within the yuzu ini file).
+ *
+ * * No native calls
+ * * Keeps Android-only values inside the Android environment
+ *
+ *
+ *
+ * Technically no modifications should need to be performed on the returned
+ * InputOverlayDrawableButton. Simply add it to the HashSet of overlay items and wait
+ * for Android to call the onDraw method.
+ *
+ * @param context The current [Context].
+ * @param windowSize The size of the window to draw the overlay on.
+ * @param defaultResId The resource ID of the [Drawable] to get the [Bitmap] of (Default State).
+ * @param pressedResId The resource ID of the [Drawable] to get the [Bitmap] of (Pressed State).
+ * @param buttonId Identifier for determining what type of button the initialized InputOverlayDrawableButton represents.
+ * @return An [InputOverlayDrawableButton] with the correct drawing bounds set.
+ */
+ private fun initializeOverlayButton(
+ context: Context,
+ windowSize: Pair<Point, Point>,
+ defaultResId: Int,
+ pressedResId: Int,
+ buttonId: Int,
+ orientation: String
+ ): InputOverlayDrawableButton {
+ // Resources handle for fetching the initial Drawable resource.
+ val res = context.resources
+
+ // SharedPreference to retrieve the X and Y coordinates for the InputOverlayDrawableButton.
+ val sPrefs = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+
+ // Decide scale based on button ID and user preference
+ var scale: Float = when (buttonId) {
+ ButtonType.BUTTON_HOME,
+ ButtonType.BUTTON_CAPTURE,
+ ButtonType.BUTTON_PLUS,
+ ButtonType.BUTTON_MINUS -> 0.07f
+
+ ButtonType.TRIGGER_L,
+ ButtonType.TRIGGER_R,
+ ButtonType.TRIGGER_ZL,
+ ButtonType.TRIGGER_ZR -> 0.26f
+
+ else -> 0.11f
+ }
+ scale *= (sPrefs.getInt(Settings.PREF_CONTROL_SCALE, 50) + 50).toFloat()
+ scale /= 100f
+
+ // Initialize the InputOverlayDrawableButton.
+ val defaultStateBitmap = getBitmap(context, defaultResId, scale)
+ val pressedStateBitmap = getBitmap(context, pressedResId, scale)
+ val overlayDrawable =
+ InputOverlayDrawableButton(res, defaultStateBitmap, pressedStateBitmap, buttonId)
+
+ // Get the minimum and maximum coordinates of the screen where the button can be placed.
+ val min = windowSize.first
+ val max = windowSize.second
+
+ // The X and Y coordinates of the InputOverlayDrawableButton on the InputOverlay.
+ // These were set in the input overlay configuration menu.
+ val xKey = "$buttonId-X$orientation"
+ val yKey = "$buttonId-Y$orientation"
+ val drawableXPercent = sPrefs.getFloat(xKey, 0f)
+ val drawableYPercent = sPrefs.getFloat(yKey, 0f)
+ val drawableX = (drawableXPercent * max.x + min.x).toInt()
+ val drawableY = (drawableYPercent * max.y + min.y).toInt()
+ val width = overlayDrawable.width
+ val height = overlayDrawable.height
+
+ // Now set the bounds for the InputOverlayDrawableButton.
+ // This will dictate where on the screen (and the what the size) the InputOverlayDrawableButton will be.
+ overlayDrawable.setBounds(
+ drawableX - (width / 2),
+ drawableY - (height / 2),
+ drawableX + (width / 2),
+ drawableY + (height / 2)
+ )
+
+ // Need to set the image's position
+ overlayDrawable.setPosition(
+ drawableX - (width / 2),
+ drawableY - (height / 2)
+ )
+ val savedOpacity = preferences.getInt(Settings.PREF_CONTROL_OPACITY, 100)
+ overlayDrawable.setOpacity(savedOpacity * 255 / 100)
+ return overlayDrawable
+ }
+
+ /**
+ * Initializes an [InputOverlayDrawableDpad]
+ *
+ * @param context The current [Context].
+ * @param windowSize The size of the window to draw the overlay on.
+ * @param defaultResId The [Bitmap] resource ID of the default state.
+ * @param pressedOneDirectionResId The [Bitmap] resource ID of the pressed state in one direction.
+ * @param pressedTwoDirectionsResId The [Bitmap] resource ID of the pressed state in two directions.
+ * @return the initialized [InputOverlayDrawableDpad]
+ */
+ private fun initializeOverlayDpad(
+ context: Context,
+ windowSize: Pair<Point, Point>,
+ defaultResId: Int,
+ pressedOneDirectionResId: Int,
+ pressedTwoDirectionsResId: Int,
+ orientation: String
+ ): InputOverlayDrawableDpad {
+ // Resources handle for fetching the initial Drawable resource.
+ val res = context.resources
+
+ // SharedPreference to retrieve the X and Y coordinates for the InputOverlayDrawableDpad.
+ val sPrefs = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+
+ // Decide scale based on button ID and user preference
+ var scale = 0.25f
+ scale *= (sPrefs.getInt(Settings.PREF_CONTROL_SCALE, 50) + 50).toFloat()
+ scale /= 100f
+
+ // Initialize the InputOverlayDrawableDpad.
+ val defaultStateBitmap =
+ getBitmap(context, defaultResId, scale)
+ val pressedOneDirectionStateBitmap = getBitmap(context, pressedOneDirectionResId, scale)
+ val pressedTwoDirectionsStateBitmap =
+ getBitmap(context, pressedTwoDirectionsResId, scale)
+
+ val overlayDrawable = InputOverlayDrawableDpad(
+ res,
+ defaultStateBitmap,
+ pressedOneDirectionStateBitmap,
+ pressedTwoDirectionsStateBitmap,
+ ButtonType.DPAD_UP,
+ ButtonType.DPAD_DOWN,
+ ButtonType.DPAD_LEFT,
+ ButtonType.DPAD_RIGHT
+ )
+
+ // Get the minimum and maximum coordinates of the screen where the button can be placed.
+ val min = windowSize.first
+ val max = windowSize.second
+
+ // The X and Y coordinates of the InputOverlayDrawableDpad on the InputOverlay.
+ // These were set in the input overlay configuration menu.
+ val drawableXPercent = sPrefs.getFloat("${ButtonType.DPAD_UP}-X$orientation", 0f)
+ val drawableYPercent = sPrefs.getFloat("${ButtonType.DPAD_UP}-Y$orientation", 0f)
+ val drawableX = (drawableXPercent * max.x + min.x).toInt()
+ val drawableY = (drawableYPercent * max.y + min.y).toInt()
+ val width = overlayDrawable.width
+ val height = overlayDrawable.height
+
+ // Now set the bounds for the InputOverlayDrawableDpad.
+ // This will dictate where on the screen (and the what the size) the InputOverlayDrawableDpad will be.
+ overlayDrawable.setBounds(
+ drawableX - (width / 2),
+ drawableY - (height / 2),
+ drawableX + (width / 2),
+ drawableY + (height / 2)
+ )
+
+ // Need to set the image's position
+ overlayDrawable.setPosition(drawableX - (width / 2), drawableY - (height / 2))
+ val savedOpacity = preferences.getInt(Settings.PREF_CONTROL_OPACITY, 100)
+ overlayDrawable.setOpacity(savedOpacity * 255 / 100)
+ return overlayDrawable
+ }
+
+ /**
+ * Initializes an [InputOverlayDrawableJoystick]
+ *
+ * @param context The current [Context]
+ * @param windowSize The size of the window to draw the overlay on.
+ * @param resOuter Resource ID for the outer image of the joystick (the static image that shows the circular bounds).
+ * @param defaultResInner Resource ID for the default inner image of the joystick (the one you actually move around).
+ * @param pressedResInner Resource ID for the pressed inner image of the joystick.
+ * @param joystick Identifier for which joystick this is.
+ * @param button Identifier for which joystick button this is.
+ * @return the initialized [InputOverlayDrawableJoystick].
+ */
+ private fun initializeOverlayJoystick(
+ context: Context,
+ windowSize: Pair<Point, Point>,
+ resOuter: Int,
+ defaultResInner: Int,
+ pressedResInner: Int,
+ joystick: Int,
+ button: Int,
+ orientation: String
+ ): InputOverlayDrawableJoystick {
+ // Resources handle for fetching the initial Drawable resource.
+ val res = context.resources
+
+ // SharedPreference to retrieve the X and Y coordinates for the InputOverlayDrawableJoystick.
+ val sPrefs = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+
+ // Decide scale based on user preference
+ var scale = 0.3f
+ scale *= (sPrefs.getInt(Settings.PREF_CONTROL_SCALE, 50) + 50).toFloat()
+ scale /= 100f
+
+ // Initialize the InputOverlayDrawableJoystick.
+ val bitmapOuter = getBitmap(context, resOuter, scale)
+ val bitmapInnerDefault = getBitmap(context, defaultResInner, 1.0f)
+ val bitmapInnerPressed = getBitmap(context, pressedResInner, 1.0f)
+
+ // Get the minimum and maximum coordinates of the screen where the button can be placed.
+ val min = windowSize.first
+ val max = windowSize.second
+
+ // The X and Y coordinates of the InputOverlayDrawableButton on the InputOverlay.
+ // These were set in the input overlay configuration menu.
+ val drawableXPercent = sPrefs.getFloat("$button-X$orientation", 0f)
+ val drawableYPercent = sPrefs.getFloat("$button-Y$orientation", 0f)
+ val drawableX = (drawableXPercent * max.x + min.x).toInt()
+ val drawableY = (drawableYPercent * max.y + min.y).toInt()
+ val outerScale = 1.66f
+
+ // Now set the bounds for the InputOverlayDrawableJoystick.
+ // This will dictate where on the screen (and the what the size) the InputOverlayDrawableJoystick will be.
+ val outerSize = bitmapOuter.width
+ val outerRect = Rect(
+ drawableX - (outerSize / 2),
+ drawableY - (outerSize / 2),
+ drawableX + (outerSize / 2),
+ drawableY + (outerSize / 2)
+ )
+ val innerRect =
+ Rect(0, 0, (outerSize / outerScale).toInt(), (outerSize / outerScale).toInt())
+
+ // Send the drawableId to the joystick so it can be referenced when saving control position.
+ val overlayDrawable = InputOverlayDrawableJoystick(
+ res,
+ bitmapOuter,
+ bitmapInnerDefault,
+ bitmapInnerPressed,
+ outerRect,
+ innerRect,
+ joystick,
+ button
+ )
+
+ // Need to set the image's position
+ overlayDrawable.setPosition(drawableX, drawableY)
+ val savedOpacity = preferences.getInt(Settings.PREF_CONTROL_OPACITY, 100)
+ overlayDrawable.setOpacity(savedOpacity * 255 / 100)
+ return overlayDrawable
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableButton.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableButton.kt
new file mode 100644
index 000000000..4a93e0b14
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableButton.kt
@@ -0,0 +1,148 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.overlay
+
+import android.content.res.Resources
+import android.graphics.Bitmap
+import android.graphics.Canvas
+import android.graphics.Rect
+import android.graphics.drawable.BitmapDrawable
+import android.view.MotionEvent
+import org.yuzu.yuzu_emu.NativeLibrary.ButtonState
+
+/**
+ * Custom [BitmapDrawable] that is capable
+ * of storing it's own ID.
+ *
+ * @param res [Resources] instance.
+ * @param defaultStateBitmap [Bitmap] to use with the default state Drawable.
+ * @param pressedStateBitmap [Bitmap] to use with the pressed state Drawable.
+ * @param buttonId Identifier for this type of button.
+ */
+class InputOverlayDrawableButton(
+ res: Resources,
+ defaultStateBitmap: Bitmap,
+ pressedStateBitmap: Bitmap,
+ val buttonId: Int
+) {
+ // The ID value what motion event is tracking
+ var trackId: Int
+
+ // The drawable position on the screen
+ private var buttonPositionX = 0
+ private var buttonPositionY = 0
+
+ val width: Int
+ val height: Int
+
+ private val defaultStateBitmap: BitmapDrawable
+ private val pressedStateBitmap: BitmapDrawable
+ private var pressedState = false
+
+ private var previousTouchX = 0
+ private var previousTouchY = 0
+ var controlPositionX = 0
+ var controlPositionY = 0
+
+ init {
+ this.defaultStateBitmap = BitmapDrawable(res, defaultStateBitmap)
+ this.pressedStateBitmap = BitmapDrawable(res, pressedStateBitmap)
+ trackId = -1
+ width = this.defaultStateBitmap.intrinsicWidth
+ height = this.defaultStateBitmap.intrinsicHeight
+ }
+
+ /**
+ * Updates button status based on the motion event.
+ *
+ * @return true if value was changed
+ */
+ fun updateStatus(event: MotionEvent): Boolean {
+ val pointerIndex = event.actionIndex
+ val xPosition = event.getX(pointerIndex).toInt()
+ val yPosition = event.getY(pointerIndex).toInt()
+ val pointerId = event.getPointerId(pointerIndex)
+ val motionEvent = event.action and MotionEvent.ACTION_MASK
+ val isActionDown =
+ motionEvent == MotionEvent.ACTION_DOWN || motionEvent == MotionEvent.ACTION_POINTER_DOWN
+ val isActionUp =
+ motionEvent == MotionEvent.ACTION_UP || motionEvent == MotionEvent.ACTION_POINTER_UP
+
+ if (isActionDown) {
+ if (!bounds.contains(xPosition, yPosition)) {
+ return false
+ }
+ pressedState = true
+ trackId = pointerId
+ return true
+ }
+
+ if (isActionUp) {
+ if (trackId != pointerId) {
+ return false
+ }
+ pressedState = false
+ trackId = -1
+ return true
+ }
+
+ return false
+ }
+
+ fun setPosition(x: Int, y: Int) {
+ buttonPositionX = x
+ buttonPositionY = y
+ }
+
+ fun draw(canvas: Canvas?) {
+ currentStateBitmapDrawable.draw(canvas!!)
+ }
+
+ private val currentStateBitmapDrawable: BitmapDrawable
+ get() = if (pressedState) pressedStateBitmap else defaultStateBitmap
+
+ fun onConfigureTouch(event: MotionEvent): Boolean {
+ val pointerIndex = event.actionIndex
+ val fingerPositionX = event.getX(pointerIndex).toInt()
+ val fingerPositionY = event.getY(pointerIndex).toInt()
+
+ when (event.action) {
+ MotionEvent.ACTION_DOWN -> {
+ previousTouchX = fingerPositionX
+ previousTouchY = fingerPositionY
+ controlPositionX = fingerPositionX - (width / 2)
+ controlPositionY = fingerPositionY - (height / 2)
+ }
+
+ MotionEvent.ACTION_MOVE -> {
+ controlPositionX += fingerPositionX - previousTouchX
+ controlPositionY += fingerPositionY - previousTouchY
+ setBounds(
+ controlPositionX,
+ controlPositionY,
+ width + controlPositionX,
+ height + controlPositionY
+ )
+ previousTouchX = fingerPositionX
+ previousTouchY = fingerPositionY
+ }
+ }
+ return true
+ }
+
+ fun setBounds(left: Int, top: Int, right: Int, bottom: Int) {
+ defaultStateBitmap.setBounds(left, top, right, bottom)
+ pressedStateBitmap.setBounds(left, top, right, bottom)
+ }
+
+ fun setOpacity(value: Int) {
+ defaultStateBitmap.alpha = value
+ pressedStateBitmap.alpha = value
+ }
+
+ val status: Int
+ get() = if (pressedState) ButtonState.PRESSED else ButtonState.RELEASED
+ val bounds: Rect
+ get() = defaultStateBitmap.bounds
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableDpad.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableDpad.kt
new file mode 100644
index 000000000..8aef6f5a5
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableDpad.kt
@@ -0,0 +1,277 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.overlay
+
+import android.content.res.Resources
+import android.graphics.Bitmap
+import android.graphics.Canvas
+import android.graphics.Rect
+import android.graphics.drawable.BitmapDrawable
+import android.view.MotionEvent
+import org.yuzu.yuzu_emu.NativeLibrary.ButtonState
+
+/**
+ * Custom [BitmapDrawable] that is capable
+ * of storing it's own ID.
+ *
+ * @param res [Resources] instance.
+ * @param defaultStateBitmap [Bitmap] of the default state.
+ * @param pressedOneDirectionStateBitmap [Bitmap] of the pressed state in one direction.
+ * @param pressedTwoDirectionsStateBitmap [Bitmap] of the pressed state in two direction.
+ * @param buttonUp Identifier for the up button.
+ * @param buttonDown Identifier for the down button.
+ * @param buttonLeft Identifier for the left button.
+ * @param buttonRight Identifier for the right button.
+ */
+class InputOverlayDrawableDpad(
+ res: Resources,
+ defaultStateBitmap: Bitmap,
+ pressedOneDirectionStateBitmap: Bitmap,
+ pressedTwoDirectionsStateBitmap: Bitmap,
+ buttonUp: Int,
+ buttonDown: Int,
+ buttonLeft: Int,
+ buttonRight: Int
+) {
+ /**
+ * Gets one of the InputOverlayDrawableDpad's button IDs.
+ *
+ * @return the requested InputOverlayDrawableDpad's button ID.
+ */
+ // The ID identifying what type of button this Drawable represents.
+ val upId: Int
+ val downId: Int
+ val leftId: Int
+ val rightId: Int
+ var trackId: Int
+
+ val width: Int
+ val height: Int
+
+ private val defaultStateBitmap: BitmapDrawable
+ private val pressedOneDirectionStateBitmap: BitmapDrawable
+ private val pressedTwoDirectionsStateBitmap: BitmapDrawable
+
+ private var previousTouchX = 0
+ private var previousTouchY = 0
+ private var controlPositionX = 0
+ private var controlPositionY = 0
+
+ private var upButtonState = false
+ private var downButtonState = false
+ private var leftButtonState = false
+ private var rightButtonState = false
+
+ init {
+ this.defaultStateBitmap = BitmapDrawable(res, defaultStateBitmap)
+ this.pressedOneDirectionStateBitmap = BitmapDrawable(res, pressedOneDirectionStateBitmap)
+ this.pressedTwoDirectionsStateBitmap = BitmapDrawable(res, pressedTwoDirectionsStateBitmap)
+ width = this.defaultStateBitmap.intrinsicWidth
+ height = this.defaultStateBitmap.intrinsicHeight
+ upId = buttonUp
+ downId = buttonDown
+ leftId = buttonLeft
+ rightId = buttonRight
+ trackId = -1
+ }
+
+ fun updateStatus(event: MotionEvent, dpad_slide: Boolean): Boolean {
+ val pointerIndex = event.actionIndex
+ val xPosition = event.getX(pointerIndex).toInt()
+ val yPosition = event.getY(pointerIndex).toInt()
+ val pointerId = event.getPointerId(pointerIndex)
+ val motionEvent = event.action and MotionEvent.ACTION_MASK
+ val isActionDown =
+ motionEvent == MotionEvent.ACTION_DOWN || motionEvent == MotionEvent.ACTION_POINTER_DOWN
+ val isActionUp =
+ motionEvent == MotionEvent.ACTION_UP || motionEvent == MotionEvent.ACTION_POINTER_UP
+ if (isActionDown) {
+ if (!bounds.contains(xPosition, yPosition)) {
+ return false
+ }
+ trackId = pointerId
+ }
+ if (isActionUp) {
+ if (trackId != pointerId) {
+ return false
+ }
+ trackId = -1
+ upButtonState = false
+ downButtonState = false
+ leftButtonState = false
+ rightButtonState = false
+ return true
+ }
+ if (trackId == -1) {
+ return false
+ }
+ if (!dpad_slide && !isActionDown) {
+ return false
+ }
+ for (i in 0 until event.pointerCount) {
+ if (trackId != event.getPointerId(i)) {
+ continue
+ }
+
+ var touchX = event.getX(i)
+ var touchY = event.getY(i)
+ var maxY = bounds.bottom.toFloat()
+ var maxX = bounds.right.toFloat()
+ touchX -= bounds.centerX().toFloat()
+ maxX -= bounds.centerX().toFloat()
+ touchY -= bounds.centerY().toFloat()
+ maxY -= bounds.centerY().toFloat()
+ val axisX = touchX / maxX
+ val axisY = touchY / maxY
+ val oldUpState = upButtonState
+ val oldDownState = downButtonState
+ val oldLeftState = leftButtonState
+ val oldRightState = rightButtonState
+
+ upButtonState = axisY < -VIRT_AXIS_DEADZONE
+ downButtonState = axisY > VIRT_AXIS_DEADZONE
+ leftButtonState = axisX < -VIRT_AXIS_DEADZONE
+ rightButtonState = axisX > VIRT_AXIS_DEADZONE
+ return oldUpState != upButtonState ||
+ oldDownState != downButtonState ||
+ oldLeftState != leftButtonState ||
+ oldRightState != rightButtonState
+ }
+ return false
+ }
+
+ fun draw(canvas: Canvas) {
+ val px = controlPositionX + width / 2
+ val py = controlPositionY + height / 2
+
+ // Pressed up
+ if (upButtonState && !leftButtonState && !rightButtonState) {
+ pressedOneDirectionStateBitmap.draw(canvas)
+ return
+ }
+
+ // Pressed down
+ if (downButtonState && !leftButtonState && !rightButtonState) {
+ canvas.save()
+ canvas.rotate(180f, px.toFloat(), py.toFloat())
+ pressedOneDirectionStateBitmap.draw(canvas)
+ canvas.restore()
+ return
+ }
+
+ // Pressed left
+ if (leftButtonState && !upButtonState && !downButtonState) {
+ canvas.save()
+ canvas.rotate(270f, px.toFloat(), py.toFloat())
+ pressedOneDirectionStateBitmap.draw(canvas)
+ canvas.restore()
+ return
+ }
+
+ // Pressed right
+ if (rightButtonState && !upButtonState && !downButtonState) {
+ canvas.save()
+ canvas.rotate(90f, px.toFloat(), py.toFloat())
+ pressedOneDirectionStateBitmap.draw(canvas)
+ canvas.restore()
+ return
+ }
+
+ // Pressed up left
+ if (upButtonState && leftButtonState && !rightButtonState) {
+ pressedTwoDirectionsStateBitmap.draw(canvas)
+ return
+ }
+
+ // Pressed up right
+ if (upButtonState && !leftButtonState && rightButtonState) {
+ canvas.save()
+ canvas.rotate(90f, px.toFloat(), py.toFloat())
+ pressedTwoDirectionsStateBitmap.draw(canvas)
+ canvas.restore()
+ return
+ }
+
+ // Pressed down right
+ if (downButtonState && !leftButtonState && rightButtonState) {
+ canvas.save()
+ canvas.rotate(180f, px.toFloat(), py.toFloat())
+ pressedTwoDirectionsStateBitmap.draw(canvas)
+ canvas.restore()
+ return
+ }
+
+ // Pressed down left
+ if (downButtonState && leftButtonState && !rightButtonState) {
+ canvas.save()
+ canvas.rotate(270f, px.toFloat(), py.toFloat())
+ pressedTwoDirectionsStateBitmap.draw(canvas)
+ canvas.restore()
+ return
+ }
+
+ // Not pressed
+ defaultStateBitmap.draw(canvas)
+ }
+
+ val upStatus: Int
+ get() = if (upButtonState) ButtonState.PRESSED else ButtonState.RELEASED
+ val downStatus: Int
+ get() = if (downButtonState) ButtonState.PRESSED else ButtonState.RELEASED
+ val leftStatus: Int
+ get() = if (leftButtonState) ButtonState.PRESSED else ButtonState.RELEASED
+ val rightStatus: Int
+ get() = if (rightButtonState) ButtonState.PRESSED else ButtonState.RELEASED
+
+ fun onConfigureTouch(event: MotionEvent): Boolean {
+ val pointerIndex = event.actionIndex
+ val fingerPositionX = event.getX(pointerIndex).toInt()
+ val fingerPositionY = event.getY(pointerIndex).toInt()
+
+ when (event.action) {
+ MotionEvent.ACTION_DOWN -> {
+ previousTouchX = fingerPositionX
+ previousTouchY = fingerPositionY
+ }
+
+ MotionEvent.ACTION_MOVE -> {
+ controlPositionX += fingerPositionX - previousTouchX
+ controlPositionY += fingerPositionY - previousTouchY
+ setBounds(
+ controlPositionX,
+ controlPositionY,
+ width + controlPositionX,
+ height + controlPositionY
+ )
+ previousTouchX = fingerPositionX
+ previousTouchY = fingerPositionY
+ }
+ }
+ return true
+ }
+
+ fun setPosition(x: Int, y: Int) {
+ controlPositionX = x
+ controlPositionY = y
+ }
+
+ fun setBounds(left: Int, top: Int, right: Int, bottom: Int) {
+ defaultStateBitmap.setBounds(left, top, right, bottom)
+ pressedOneDirectionStateBitmap.setBounds(left, top, right, bottom)
+ pressedTwoDirectionsStateBitmap.setBounds(left, top, right, bottom)
+ }
+
+ fun setOpacity(value: Int) {
+ defaultStateBitmap.alpha = value
+ pressedOneDirectionStateBitmap.alpha = value
+ pressedTwoDirectionsStateBitmap.alpha = value
+ }
+
+ val bounds: Rect
+ get() = defaultStateBitmap.bounds
+
+ companion object {
+ const val VIRT_AXIS_DEADZONE = 0.5f
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.kt
new file mode 100644
index 000000000..fb48f584d
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.kt
@@ -0,0 +1,290 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.overlay
+
+import android.content.res.Resources
+import android.graphics.Bitmap
+import android.graphics.Canvas
+import android.graphics.Rect
+import android.graphics.drawable.BitmapDrawable
+import android.view.MotionEvent
+import kotlin.math.atan2
+import kotlin.math.cos
+import kotlin.math.sin
+import kotlin.math.sqrt
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.utils.EmulationMenuSettings
+
+/**
+ * Custom [BitmapDrawable] that is capable
+ * of storing it's own ID.
+ *
+ * @param res [Resources] instance.
+ * @param bitmapOuter [Bitmap] which represents the outer non-movable part of the joystick.
+ * @param bitmapInnerDefault [Bitmap] which represents the default inner movable part of the joystick.
+ * @param bitmapInnerPressed [Bitmap] which represents the pressed inner movable part of the joystick.
+ * @param rectOuter [Rect] which represents the outer joystick bounds.
+ * @param rectInner [Rect] which represents the inner joystick bounds.
+ * @param joystickId The ID value what type of joystick this Drawable represents.
+ * @param buttonId The ID value what type of button this Drawable represents.
+ */
+class InputOverlayDrawableJoystick(
+ res: Resources,
+ bitmapOuter: Bitmap,
+ bitmapInnerDefault: Bitmap,
+ bitmapInnerPressed: Bitmap,
+ rectOuter: Rect,
+ rectInner: Rect,
+ val joystickId: Int,
+ val buttonId: Int
+) {
+ // The ID value what motion event is tracking
+ var trackId = -1
+
+ var xAxis = 0f
+ private var yAxis = 0f
+
+ val width: Int
+ val height: Int
+
+ private var opacity: Int = 0
+
+ private var virtBounds: Rect
+ private var origBounds: Rect
+
+ private val outerBitmap: BitmapDrawable
+ private val defaultStateInnerBitmap: BitmapDrawable
+ private val pressedStateInnerBitmap: BitmapDrawable
+
+ private var previousTouchX = 0
+ private var previousTouchY = 0
+ var controlPositionX = 0
+ var controlPositionY = 0
+
+ private val boundsBoxBitmap: BitmapDrawable
+
+ private var pressedState = false
+
+ // TODO: Add button support
+ val buttonStatus: Int
+ get() =
+ NativeLibrary.ButtonState.RELEASED
+ var bounds: Rect
+ get() = outerBitmap.bounds
+ set(bounds) {
+ outerBitmap.bounds = bounds
+ }
+
+ // Nintendo joysticks have y axis inverted
+ val realYAxis: Float
+ get() = -yAxis
+
+ private val currentStateBitmapDrawable: BitmapDrawable
+ get() = if (pressedState) pressedStateInnerBitmap else defaultStateInnerBitmap
+
+ init {
+ outerBitmap = BitmapDrawable(res, bitmapOuter)
+ defaultStateInnerBitmap = BitmapDrawable(res, bitmapInnerDefault)
+ pressedStateInnerBitmap = BitmapDrawable(res, bitmapInnerPressed)
+ boundsBoxBitmap = BitmapDrawable(res, bitmapOuter)
+ width = bitmapOuter.width
+ height = bitmapOuter.height
+ bounds = rectOuter
+ defaultStateInnerBitmap.bounds = rectInner
+ pressedStateInnerBitmap.bounds = rectInner
+ virtBounds = bounds
+ origBounds = outerBitmap.copyBounds()
+ boundsBoxBitmap.alpha = 0
+ boundsBoxBitmap.bounds = virtBounds
+ setInnerBounds()
+ }
+
+ fun draw(canvas: Canvas?) {
+ outerBitmap.draw(canvas!!)
+ currentStateBitmapDrawable.draw(canvas)
+ boundsBoxBitmap.draw(canvas)
+ }
+
+ fun updateStatus(event: MotionEvent): Boolean {
+ val pointerIndex = event.actionIndex
+ val xPosition = event.getX(pointerIndex).toInt()
+ val yPosition = event.getY(pointerIndex).toInt()
+ val pointerId = event.getPointerId(pointerIndex)
+ val motionEvent = event.action and MotionEvent.ACTION_MASK
+ val isActionDown =
+ motionEvent == MotionEvent.ACTION_DOWN || motionEvent == MotionEvent.ACTION_POINTER_DOWN
+ val isActionUp =
+ motionEvent == MotionEvent.ACTION_UP || motionEvent == MotionEvent.ACTION_POINTER_UP
+
+ if (isActionDown) {
+ if (!bounds.contains(xPosition, yPosition)) {
+ return false
+ }
+ pressedState = true
+ outerBitmap.alpha = 0
+ boundsBoxBitmap.alpha = opacity
+ if (EmulationMenuSettings.joystickRelCenter) {
+ virtBounds.offset(
+ xPosition - virtBounds.centerX(),
+ yPosition - virtBounds.centerY()
+ )
+ }
+ boundsBoxBitmap.bounds = virtBounds
+ trackId = pointerId
+ }
+
+ if (isActionUp) {
+ if (trackId != pointerId) {
+ return false
+ }
+ pressedState = false
+ xAxis = 0.0f
+ yAxis = 0.0f
+ outerBitmap.alpha = opacity
+ boundsBoxBitmap.alpha = 0
+ virtBounds = Rect(
+ origBounds.left,
+ origBounds.top,
+ origBounds.right,
+ origBounds.bottom
+ )
+ bounds = Rect(
+ origBounds.left,
+ origBounds.top,
+ origBounds.right,
+ origBounds.bottom
+ )
+ setInnerBounds()
+ trackId = -1
+ return true
+ }
+
+ if (trackId == -1) return false
+
+ for (i in 0 until event.pointerCount) {
+ if (trackId != event.getPointerId(i)) {
+ continue
+ }
+ var touchX = event.getX(i)
+ var touchY = event.getY(i)
+ var maxY = virtBounds.bottom.toFloat()
+ var maxX = virtBounds.right.toFloat()
+ touchX -= virtBounds.centerX().toFloat()
+ maxX -= virtBounds.centerX().toFloat()
+ touchY -= virtBounds.centerY().toFloat()
+ maxY -= virtBounds.centerY().toFloat()
+ val axisX = touchX / maxX
+ val axisY = touchY / maxY
+ val oldXAxis = xAxis
+ val oldYAxis = yAxis
+
+ // Clamp the circle pad input to a circle
+ val angle = atan2(axisY.toDouble(), axisX.toDouble()).toFloat()
+ var radius = sqrt((axisX * axisX + axisY * axisY).toDouble()).toFloat()
+ if (radius > 1.0f) {
+ radius = 1.0f
+ }
+ xAxis = cos(angle.toDouble()).toFloat() * radius
+ yAxis = sin(angle.toDouble()).toFloat() * radius
+ setInnerBounds()
+ return oldXAxis != xAxis && oldYAxis != yAxis
+ }
+ return false
+ }
+
+ fun onConfigureTouch(event: MotionEvent): Boolean {
+ val pointerIndex = event.actionIndex
+ val fingerPositionX = event.getX(pointerIndex).toInt()
+ val fingerPositionY = event.getY(pointerIndex).toInt()
+
+ when (event.action) {
+ MotionEvent.ACTION_DOWN -> {
+ previousTouchX = fingerPositionX
+ previousTouchY = fingerPositionY
+ controlPositionX = fingerPositionX - (width / 2)
+ controlPositionY = fingerPositionY - (height / 2)
+ }
+
+ MotionEvent.ACTION_MOVE -> {
+ controlPositionX += fingerPositionX - previousTouchX
+ controlPositionY += fingerPositionY - previousTouchY
+ bounds = Rect(
+ controlPositionX,
+ controlPositionY,
+ outerBitmap.intrinsicWidth + controlPositionX,
+ outerBitmap.intrinsicHeight + controlPositionY
+ )
+ virtBounds = Rect(
+ controlPositionX,
+ controlPositionY,
+ outerBitmap.intrinsicWidth + controlPositionX,
+ outerBitmap.intrinsicHeight + controlPositionY
+ )
+ setInnerBounds()
+ bounds = Rect(
+ Rect(
+ controlPositionX,
+ controlPositionY,
+ outerBitmap.intrinsicWidth + controlPositionX,
+ outerBitmap.intrinsicHeight + controlPositionY
+ )
+ )
+ previousTouchX = fingerPositionX
+ previousTouchY = fingerPositionY
+ }
+ }
+ origBounds = outerBitmap.copyBounds()
+ return true
+ }
+
+ private fun setInnerBounds() {
+ var x = virtBounds.centerX() + (xAxis * (virtBounds.width() / 2)).toInt()
+ var y = virtBounds.centerY() + (yAxis * (virtBounds.height() / 2)).toInt()
+ if (x > virtBounds.centerX() + virtBounds.width() / 2) {
+ x =
+ virtBounds.centerX() + virtBounds.width() / 2
+ }
+ if (x < virtBounds.centerX() - virtBounds.width() / 2) {
+ x =
+ virtBounds.centerX() - virtBounds.width() / 2
+ }
+ if (y > virtBounds.centerY() + virtBounds.height() / 2) {
+ y =
+ virtBounds.centerY() + virtBounds.height() / 2
+ }
+ if (y < virtBounds.centerY() - virtBounds.height() / 2) {
+ y =
+ virtBounds.centerY() - virtBounds.height() / 2
+ }
+ val width = pressedStateInnerBitmap.bounds.width() / 2
+ val height = pressedStateInnerBitmap.bounds.height() / 2
+ defaultStateInnerBitmap.setBounds(
+ x - width,
+ y - height,
+ x + width,
+ y + height
+ )
+ pressedStateInnerBitmap.bounds = defaultStateInnerBitmap.bounds
+ }
+
+ fun setPosition(x: Int, y: Int) {
+ controlPositionX = x
+ controlPositionY = y
+ }
+
+ fun setOpacity(value: Int) {
+ opacity = value
+
+ defaultStateInnerBitmap.alpha = value
+ pressedStateInnerBitmap.alpha = value
+
+ if (trackId == -1) {
+ outerBitmap.alpha = value
+ boundsBoxBitmap.alpha = 0
+ } else {
+ outerBitmap.alpha = 0
+ boundsBoxBitmap.alpha = value
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt
new file mode 100644
index 000000000..b0156dca5
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt
@@ -0,0 +1,169 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.ui
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.view.ViewGroup.MarginLayoutParams
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.updatePadding
+import androidx.fragment.app.Fragment
+import androidx.fragment.app.activityViewModels
+import com.google.android.material.color.MaterialColors
+import com.google.android.material.transition.MaterialFadeThrough
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.adapters.GameAdapter
+import org.yuzu.yuzu_emu.databinding.FragmentGamesBinding
+import org.yuzu.yuzu_emu.layout.AutofitGridLayoutManager
+import org.yuzu.yuzu_emu.model.GamesViewModel
+import org.yuzu.yuzu_emu.model.HomeViewModel
+
+class GamesFragment : Fragment() {
+ private var _binding: FragmentGamesBinding? = null
+ private val binding get() = _binding!!
+
+ private val gamesViewModel: GamesViewModel by activityViewModels()
+ private val homeViewModel: HomeViewModel by activityViewModels()
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ enterTransition = MaterialFadeThrough()
+ }
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ _binding = FragmentGamesBinding.inflate(inflater)
+ return binding.root
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ homeViewModel.setNavigationVisibility(visible = true, animated = false)
+
+ binding.gridGames.apply {
+ layoutManager = AutofitGridLayoutManager(
+ requireContext(),
+ requireContext().resources.getDimensionPixelSize(R.dimen.card_width)
+ )
+ adapter = GameAdapter(requireActivity() as AppCompatActivity)
+ }
+
+ binding.swipeRefresh.apply {
+ // Add swipe down to refresh gesture
+ setOnRefreshListener {
+ gamesViewModel.reloadGames(false)
+ }
+
+ // Set theme color to the refresh animation's background
+ setProgressBackgroundColorSchemeColor(
+ MaterialColors.getColor(
+ binding.swipeRefresh,
+ com.google.android.material.R.attr.colorPrimary
+ )
+ )
+ setColorSchemeColors(
+ MaterialColors.getColor(
+ binding.swipeRefresh,
+ com.google.android.material.R.attr.colorOnPrimary
+ )
+ )
+
+ // Make sure the loading indicator appears even if the layout is told to refresh before being fully drawn
+ post {
+ if (_binding == null) {
+ return@post
+ }
+ binding.swipeRefresh.isRefreshing = gamesViewModel.isReloading.value!!
+ }
+ }
+
+ gamesViewModel.apply {
+ // Watch for when we get updates to any of our games lists
+ isReloading.observe(viewLifecycleOwner) { isReloading ->
+ binding.swipeRefresh.isRefreshing = isReloading
+ }
+ games.observe(viewLifecycleOwner) {
+ (binding.gridGames.adapter as GameAdapter).submitList(it)
+ if (it.isEmpty()) {
+ binding.noticeText.visibility = View.VISIBLE
+ } else {
+ binding.noticeText.visibility = View.GONE
+ }
+ }
+ shouldSwapData.observe(viewLifecycleOwner) { shouldSwapData ->
+ if (shouldSwapData) {
+ (binding.gridGames.adapter as GameAdapter).submitList(
+ gamesViewModel.games.value!!
+ )
+ gamesViewModel.setShouldSwapData(false)
+ }
+ }
+
+ // Check if the user reselected the games menu item and then scroll to top of the list
+ shouldScrollToTop.observe(viewLifecycleOwner) { shouldScroll ->
+ if (shouldScroll) {
+ scrollToTop()
+ gamesViewModel.setShouldScrollToTop(false)
+ }
+ }
+ }
+
+ setInsets()
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+
+ private fun scrollToTop() {
+ if (_binding != null) {
+ binding.gridGames.smoothScrollToPosition(0)
+ }
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { view: View, windowInsets: WindowInsetsCompat ->
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
+ val extraListSpacing = resources.getDimensionPixelSize(R.dimen.spacing_large)
+ val spacingNavigation = resources.getDimensionPixelSize(R.dimen.spacing_navigation)
+ val spacingNavigationRail =
+ resources.getDimensionPixelSize(R.dimen.spacing_navigation_rail)
+
+ binding.gridGames.updatePadding(
+ top = barInsets.top + extraListSpacing,
+ bottom = barInsets.bottom + spacingNavigation + extraListSpacing
+ )
+
+ binding.swipeRefresh.setProgressViewEndTarget(
+ false,
+ barInsets.top + resources.getDimensionPixelSize(R.dimen.spacing_refresh_end)
+ )
+
+ val leftInsets = barInsets.left + cutoutInsets.left
+ val rightInsets = barInsets.right + cutoutInsets.right
+ val mlpSwipe = binding.swipeRefresh.layoutParams as MarginLayoutParams
+ if (ViewCompat.getLayoutDirection(view) == ViewCompat.LAYOUT_DIRECTION_LTR) {
+ mlpSwipe.leftMargin = leftInsets + spacingNavigationRail
+ mlpSwipe.rightMargin = rightInsets
+ } else {
+ mlpSwipe.leftMargin = leftInsets
+ mlpSwipe.rightMargin = rightInsets + spacingNavigationRail
+ }
+ binding.swipeRefresh.layoutParams = mlpSwipe
+
+ binding.noticeText.updatePadding(bottom = spacingNavigation)
+
+ windowInsets
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
new file mode 100644
index 000000000..f7d7aed1e
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
@@ -0,0 +1,592 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.ui.main
+
+import android.content.Intent
+import android.net.Uri
+import android.os.Bundle
+import android.view.View
+import android.view.ViewGroup.MarginLayoutParams
+import android.view.WindowManager
+import android.view.animation.PathInterpolator
+import android.widget.Toast
+import androidx.activity.result.contract.ActivityResultContracts
+import androidx.activity.viewModels
+import androidx.appcompat.app.AppCompatActivity
+import androidx.core.content.ContextCompat
+import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
+import androidx.core.view.ViewCompat
+import androidx.core.view.WindowCompat
+import androidx.core.view.WindowInsetsCompat
+import androidx.lifecycle.lifecycleScope
+import androidx.navigation.NavController
+import androidx.navigation.fragment.NavHostFragment
+import androidx.navigation.ui.setupWithNavController
+import androidx.preference.PreferenceManager
+import com.google.android.material.color.MaterialColors
+import com.google.android.material.dialog.MaterialAlertDialogBuilder
+import com.google.android.material.navigation.NavigationBarView
+import java.io.File
+import java.io.FilenameFilter
+import java.io.IOException
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.launch
+import kotlinx.coroutines.withContext
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.activities.EmulationActivity
+import org.yuzu.yuzu_emu.databinding.ActivityMainBinding
+import org.yuzu.yuzu_emu.databinding.DialogProgressBarBinding
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.features.settings.model.SettingsViewModel
+import org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity
+import org.yuzu.yuzu_emu.features.settings.utils.SettingsFile
+import org.yuzu.yuzu_emu.fragments.IndeterminateProgressDialogFragment
+import org.yuzu.yuzu_emu.fragments.LongMessageDialogFragment
+import org.yuzu.yuzu_emu.fragments.MessageDialogFragment
+import org.yuzu.yuzu_emu.model.GamesViewModel
+import org.yuzu.yuzu_emu.model.HomeViewModel
+import org.yuzu.yuzu_emu.utils.*
+
+class MainActivity : AppCompatActivity(), ThemeProvider {
+ private lateinit var binding: ActivityMainBinding
+
+ private val homeViewModel: HomeViewModel by viewModels()
+ private val gamesViewModel: GamesViewModel by viewModels()
+ private val settingsViewModel: SettingsViewModel by viewModels()
+
+ override var themeId: Int = 0
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ val splashScreen = installSplashScreen()
+ splashScreen.setKeepOnScreenCondition { !DirectoryInitialization.areDirectoriesReady }
+
+ settingsViewModel.settings.loadSettings()
+
+ ThemeHelper.setTheme(this)
+
+ super.onCreate(savedInstanceState)
+
+ binding = ActivityMainBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ WindowCompat.setDecorFitsSystemWindows(window, false)
+ window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING)
+
+ window.statusBarColor =
+ ContextCompat.getColor(applicationContext, android.R.color.transparent)
+ window.navigationBarColor =
+ ContextCompat.getColor(applicationContext, android.R.color.transparent)
+
+ binding.statusBarShade.setBackgroundColor(
+ ThemeHelper.getColorWithOpacity(
+ MaterialColors.getColor(
+ binding.root,
+ com.google.android.material.R.attr.colorSurface
+ ),
+ ThemeHelper.SYSTEM_BAR_ALPHA
+ )
+ )
+ if (InsetsHelper.getSystemGestureType(applicationContext) !=
+ InsetsHelper.GESTURE_NAVIGATION
+ ) {
+ binding.navigationBarShade.setBackgroundColor(
+ ThemeHelper.getColorWithOpacity(
+ MaterialColors.getColor(
+ binding.root,
+ com.google.android.material.R.attr.colorSurface
+ ),
+ ThemeHelper.SYSTEM_BAR_ALPHA
+ )
+ )
+ }
+
+ val navHostFragment =
+ supportFragmentManager.findFragmentById(R.id.fragment_container) as NavHostFragment
+ setUpNavigation(navHostFragment.navController)
+ (binding.navigationView as NavigationBarView).setOnItemReselectedListener {
+ when (it.itemId) {
+ R.id.gamesFragment -> gamesViewModel.setShouldScrollToTop(true)
+ R.id.searchFragment -> gamesViewModel.setSearchFocused(true)
+ R.id.homeSettingsFragment -> SettingsActivity.launch(
+ this,
+ SettingsFile.FILE_NAME_CONFIG,
+ ""
+ )
+ }
+ }
+
+ // Prevents navigation from being drawn for a short time on recreation if set to hidden
+ if (!homeViewModel.navigationVisible.value?.first!!) {
+ binding.navigationView.visibility = View.INVISIBLE
+ binding.statusBarShade.visibility = View.INVISIBLE
+ }
+
+ homeViewModel.navigationVisible.observe(this) {
+ showNavigation(it.first, it.second)
+ }
+ homeViewModel.statusBarShadeVisible.observe(this) { visible ->
+ showStatusBarShade(visible)
+ }
+
+ // Dismiss previous notifications (should not happen unless a crash occurred)
+ EmulationActivity.stopForegroundService(this)
+
+ setInsets()
+ }
+
+ fun finishSetup(navController: NavController) {
+ navController.navigate(R.id.action_firstTimeSetupFragment_to_gamesFragment)
+ (binding.navigationView as NavigationBarView).setupWithNavController(navController)
+ showNavigation(visible = true, animated = true)
+ }
+
+ private fun setUpNavigation(navController: NavController) {
+ val firstTimeSetup = PreferenceManager.getDefaultSharedPreferences(applicationContext)
+ .getBoolean(Settings.PREF_FIRST_APP_LAUNCH, true)
+
+ if (firstTimeSetup && !homeViewModel.navigatedToSetup) {
+ navController.navigate(R.id.firstTimeSetupFragment)
+ homeViewModel.navigatedToSetup = true
+ } else {
+ (binding.navigationView as NavigationBarView).setupWithNavController(navController)
+ }
+ }
+
+ private fun showNavigation(visible: Boolean, animated: Boolean) {
+ if (!animated) {
+ if (visible) {
+ binding.navigationView.visibility = View.VISIBLE
+ } else {
+ binding.navigationView.visibility = View.INVISIBLE
+ }
+ return
+ }
+
+ val smallLayout = resources.getBoolean(R.bool.small_layout)
+ binding.navigationView.animate().apply {
+ if (visible) {
+ binding.navigationView.visibility = View.VISIBLE
+ duration = 300
+ interpolator = PathInterpolator(0.05f, 0.7f, 0.1f, 1f)
+
+ if (smallLayout) {
+ binding.navigationView.translationY =
+ binding.navigationView.height.toFloat() * 2
+ translationY(0f)
+ } else {
+ if (ViewCompat.getLayoutDirection(binding.navigationView) ==
+ ViewCompat.LAYOUT_DIRECTION_LTR
+ ) {
+ binding.navigationView.translationX =
+ binding.navigationView.width.toFloat() * -2
+ translationX(0f)
+ } else {
+ binding.navigationView.translationX =
+ binding.navigationView.width.toFloat() * 2
+ translationX(0f)
+ }
+ }
+ } else {
+ duration = 300
+ interpolator = PathInterpolator(0.3f, 0f, 0.8f, 0.15f)
+
+ if (smallLayout) {
+ translationY(binding.navigationView.height.toFloat() * 2)
+ } else {
+ if (ViewCompat.getLayoutDirection(binding.navigationView) ==
+ ViewCompat.LAYOUT_DIRECTION_LTR
+ ) {
+ translationX(binding.navigationView.width.toFloat() * -2)
+ } else {
+ translationX(binding.navigationView.width.toFloat() * 2)
+ }
+ }
+ }
+ }.withEndAction {
+ if (!visible) {
+ binding.navigationView.visibility = View.INVISIBLE
+ }
+ }.start()
+ }
+
+ private fun showStatusBarShade(visible: Boolean) {
+ binding.statusBarShade.animate().apply {
+ if (visible) {
+ binding.statusBarShade.visibility = View.VISIBLE
+ binding.statusBarShade.translationY = binding.statusBarShade.height.toFloat() * -2
+ duration = 300
+ translationY(0f)
+ interpolator = PathInterpolator(0.05f, 0.7f, 0.1f, 1f)
+ } else {
+ duration = 300
+ translationY(binding.navigationView.height.toFloat() * -2)
+ interpolator = PathInterpolator(0.3f, 0f, 0.8f, 0.15f)
+ }
+ }.withEndAction {
+ if (!visible) {
+ binding.statusBarShade.visibility = View.INVISIBLE
+ }
+ }.start()
+ }
+
+ override fun onResume() {
+ ThemeHelper.setCorrectTheme(this)
+ super.onResume()
+ }
+
+ override fun onDestroy() {
+ EmulationActivity.stopForegroundService(this)
+ super.onDestroy()
+ }
+
+ private fun setInsets() =
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { _: View, windowInsets: WindowInsetsCompat ->
+ val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val mlpStatusShade = binding.statusBarShade.layoutParams as MarginLayoutParams
+ mlpStatusShade.height = insets.top
+ binding.statusBarShade.layoutParams = mlpStatusShade
+
+ // The only situation where we care to have a nav bar shade is when it's at the bottom
+ // of the screen where scrolling list elements can go behind it.
+ val mlpNavShade = binding.navigationBarShade.layoutParams as MarginLayoutParams
+ mlpNavShade.height = insets.bottom
+ binding.navigationBarShade.layoutParams = mlpNavShade
+
+ windowInsets
+ }
+
+ override fun setTheme(resId: Int) {
+ super.setTheme(resId)
+ themeId = resId
+ }
+
+ val getGamesDirectory =
+ registerForActivityResult(ActivityResultContracts.OpenDocumentTree()) { result ->
+ if (result == null) {
+ return@registerForActivityResult
+ }
+
+ contentResolver.takePersistableUriPermission(
+ result,
+ Intent.FLAG_GRANT_READ_URI_PERMISSION
+ )
+
+ // When a new directory is picked, we currently will reset the existing games
+ // database. This effectively means that only one game directory is supported.
+ PreferenceManager.getDefaultSharedPreferences(applicationContext).edit()
+ .putString(GameHelper.KEY_GAME_PATH, result.toString())
+ .apply()
+
+ Toast.makeText(
+ applicationContext,
+ R.string.games_dir_selected,
+ Toast.LENGTH_LONG
+ ).show()
+
+ gamesViewModel.reloadGames(true)
+ }
+
+ val getProdKey =
+ registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
+ if (result == null) {
+ return@registerForActivityResult
+ }
+
+ if (FileUtil.getExtension(result) != "keys") {
+ MessageDialogFragment.newInstance(
+ R.string.reading_keys_failure,
+ R.string.install_prod_keys_failure_extension_description
+ ).show(supportFragmentManager, MessageDialogFragment.TAG)
+ return@registerForActivityResult
+ }
+
+ contentResolver.takePersistableUriPermission(
+ result,
+ Intent.FLAG_GRANT_READ_URI_PERMISSION
+ )
+
+ val dstPath = DirectoryInitialization.userDirectory + "/keys/"
+ if (FileUtil.copyUriToInternalStorage(
+ applicationContext,
+ result,
+ dstPath,
+ "prod.keys"
+ )
+ ) {
+ if (NativeLibrary.reloadKeys()) {
+ Toast.makeText(
+ applicationContext,
+ R.string.install_keys_success,
+ Toast.LENGTH_SHORT
+ ).show()
+ gamesViewModel.reloadGames(true)
+ } else {
+ MessageDialogFragment.newInstance(
+ R.string.invalid_keys_error,
+ R.string.install_keys_failure_description,
+ R.string.dumping_keys_quickstart_link
+ ).show(supportFragmentManager, MessageDialogFragment.TAG)
+ }
+ }
+ }
+
+ val getFirmware =
+ registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
+ if (result == null) {
+ return@registerForActivityResult
+ }
+
+ val inputZip = contentResolver.openInputStream(result)
+ if (inputZip == null) {
+ Toast.makeText(
+ applicationContext,
+ getString(R.string.fatal_error),
+ Toast.LENGTH_LONG
+ ).show()
+ return@registerForActivityResult
+ }
+
+ val filterNCA = FilenameFilter { _, dirName -> dirName.endsWith(".nca") }
+
+ val firmwarePath =
+ File(DirectoryInitialization.userDirectory + "/nand/system/Contents/registered/")
+ val cacheFirmwareDir = File("${cacheDir.path}/registered/")
+
+ val task: () -> Any = {
+ var messageToShow: Any
+ try {
+ FileUtil.unzip(inputZip, cacheFirmwareDir)
+ val unfilteredNumOfFiles = cacheFirmwareDir.list()?.size ?: -1
+ val filteredNumOfFiles = cacheFirmwareDir.list(filterNCA)?.size ?: -2
+ messageToShow = if (unfilteredNumOfFiles != filteredNumOfFiles) {
+ MessageDialogFragment.newInstance(
+ R.string.firmware_installed_failure,
+ R.string.firmware_installed_failure_description
+ )
+ } else {
+ firmwarePath.deleteRecursively()
+ cacheFirmwareDir.copyRecursively(firmwarePath, true)
+ getString(R.string.save_file_imported_success)
+ }
+ } catch (e: Exception) {
+ messageToShow = getString(R.string.fatal_error)
+ } finally {
+ cacheFirmwareDir.deleteRecursively()
+ }
+ messageToShow
+ }
+
+ IndeterminateProgressDialogFragment.newInstance(
+ this,
+ R.string.firmware_installing,
+ task
+ ).show(supportFragmentManager, IndeterminateProgressDialogFragment.TAG)
+ }
+
+ val getAmiiboKey =
+ registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
+ if (result == null) {
+ return@registerForActivityResult
+ }
+
+ if (FileUtil.getExtension(result) != "bin") {
+ MessageDialogFragment.newInstance(
+ R.string.reading_keys_failure,
+ R.string.install_amiibo_keys_failure_extension_description
+ ).show(supportFragmentManager, MessageDialogFragment.TAG)
+ return@registerForActivityResult
+ }
+
+ contentResolver.takePersistableUriPermission(
+ result,
+ Intent.FLAG_GRANT_READ_URI_PERMISSION
+ )
+
+ val dstPath = DirectoryInitialization.userDirectory + "/keys/"
+ if (FileUtil.copyUriToInternalStorage(
+ applicationContext,
+ result,
+ dstPath,
+ "key_retail.bin"
+ )
+ ) {
+ if (NativeLibrary.reloadKeys()) {
+ Toast.makeText(
+ applicationContext,
+ R.string.install_keys_success,
+ Toast.LENGTH_SHORT
+ ).show()
+ } else {
+ MessageDialogFragment.newInstance(
+ R.string.invalid_keys_error,
+ R.string.install_keys_failure_description,
+ R.string.dumping_keys_quickstart_link
+ ).show(supportFragmentManager, MessageDialogFragment.TAG)
+ }
+ }
+ }
+
+ val getDriver =
+ registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
+ if (result == null) {
+ return@registerForActivityResult
+ }
+
+ val takeFlags =
+ Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_READ_URI_PERMISSION
+ contentResolver.takePersistableUriPermission(
+ result,
+ takeFlags
+ )
+
+ val progressBinding = DialogProgressBarBinding.inflate(layoutInflater)
+ progressBinding.progressBar.isIndeterminate = true
+ val installationDialog = MaterialAlertDialogBuilder(this)
+ .setTitle(R.string.installing_driver)
+ .setView(progressBinding.root)
+ .show()
+
+ lifecycleScope.launch {
+ withContext(Dispatchers.IO) {
+ // Ignore file exceptions when a user selects an invalid zip
+ try {
+ GpuDriverHelper.installCustomDriver(applicationContext, result)
+ } catch (_: IOException) {
+ }
+
+ withContext(Dispatchers.Main) {
+ installationDialog.dismiss()
+
+ val driverName = GpuDriverHelper.customDriverName
+ if (driverName != null) {
+ Toast.makeText(
+ applicationContext,
+ getString(
+ R.string.select_gpu_driver_install_success,
+ driverName
+ ),
+ Toast.LENGTH_SHORT
+ ).show()
+ } else {
+ Toast.makeText(
+ applicationContext,
+ R.string.select_gpu_driver_error,
+ Toast.LENGTH_LONG
+ ).show()
+ }
+ }
+ }
+ }
+ }
+
+ val installGameUpdate = registerForActivityResult(
+ ActivityResultContracts.OpenMultipleDocuments()
+ ) { documents: List<Uri> ->
+ if (documents.isNotEmpty()) {
+ IndeterminateProgressDialogFragment.newInstance(
+ this@MainActivity,
+ R.string.install_game_content
+ ) {
+ var installSuccess = 0
+ var installOverwrite = 0
+ var errorBaseGame = 0
+ var errorExtension = 0
+ var errorOther = 0
+ var errorTotal = 0
+ lifecycleScope.launch {
+ documents.forEach {
+ when (NativeLibrary.installFileToNand(it.toString())) {
+ NativeLibrary.InstallFileToNandResult.Success -> {
+ installSuccess += 1
+ }
+
+ NativeLibrary.InstallFileToNandResult.SuccessFileOverwritten -> {
+ installOverwrite += 1
+ }
+
+ NativeLibrary.InstallFileToNandResult.ErrorBaseGame -> {
+ errorBaseGame += 1
+ }
+
+ NativeLibrary.InstallFileToNandResult.ErrorFilenameExtension -> {
+ errorExtension += 1
+ }
+
+ else -> {
+ errorOther += 1
+ }
+ }
+ }
+ withContext(Dispatchers.Main) {
+ val separator = System.getProperty("line.separator") ?: "\n"
+ val installResult = StringBuilder()
+ if (installSuccess > 0) {
+ installResult.append(
+ getString(
+ R.string.install_game_content_success_install,
+ installSuccess
+ )
+ )
+ installResult.append(separator)
+ }
+ if (installOverwrite > 0) {
+ installResult.append(
+ getString(
+ R.string.install_game_content_success_overwrite,
+ installOverwrite
+ )
+ )
+ installResult.append(separator)
+ }
+ errorTotal = errorBaseGame + errorExtension + errorOther
+ if (errorTotal > 0) {
+ installResult.append(separator)
+ installResult.append(
+ getString(
+ R.string.install_game_content_failed_count,
+ errorTotal
+ )
+ )
+ installResult.append(separator)
+ if (errorBaseGame > 0) {
+ installResult.append(separator)
+ installResult.append(
+ getString(R.string.install_game_content_failure_base)
+ )
+ installResult.append(separator)
+ }
+ if (errorExtension > 0) {
+ installResult.append(separator)
+ installResult.append(
+ getString(R.string.install_game_content_failure_file_extension)
+ )
+ installResult.append(separator)
+ }
+ if (errorOther > 0) {
+ installResult.append(
+ getString(R.string.install_game_content_failure_description)
+ )
+ installResult.append(separator)
+ }
+ LongMessageDialogFragment.newInstance(
+ R.string.install_game_content_failure,
+ installResult.toString().trim(),
+ R.string.install_game_content_help_link
+ ).show(supportFragmentManager, LongMessageDialogFragment.TAG)
+ } else {
+ LongMessageDialogFragment.newInstance(
+ R.string.install_game_content_success,
+ installResult.toString().trim()
+ ).show(supportFragmentManager, LongMessageDialogFragment.TAG)
+ }
+ }
+ }
+ return@newInstance installSuccess + installOverwrite + errorTotal
+ }.show(supportFragmentManager, IndeterminateProgressDialogFragment.TAG)
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/ThemeProvider.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/ThemeProvider.kt
new file mode 100644
index 000000000..511a6e4fa
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/ThemeProvider.kt
@@ -0,0 +1,11 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.ui.main
+
+interface ThemeProvider {
+ /**
+ * Provides theme ID by overriding an activity's 'setTheme' method and returning that result
+ */
+ var themeId: Int
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/BiMap.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/BiMap.kt
new file mode 100644
index 000000000..9cfda74ee
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/BiMap.kt
@@ -0,0 +1,25 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+class BiMap<K, V> {
+ private val forward: MutableMap<K, V> = HashMap()
+ private val backward: MutableMap<V, K> = HashMap()
+
+ @Synchronized
+ fun add(key: K, value: V) {
+ forward[key] = value
+ backward[value] = key
+ }
+
+ @Synchronized
+ fun getForward(key: K): V? {
+ return forward[key]
+ }
+
+ @Synchronized
+ fun getBackward(key: V): K? {
+ return backward[key]
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ControllerMappingHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ControllerMappingHelper.kt
new file mode 100644
index 000000000..eeefcdf20
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ControllerMappingHelper.kt
@@ -0,0 +1,70 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.view.InputDevice
+import android.view.KeyEvent
+import android.view.MotionEvent
+
+/**
+ * Some controllers have incorrect mappings. This class has special-case fixes for them.
+ */
+class ControllerMappingHelper {
+ /**
+ * Some controllers report extra button presses that can be ignored.
+ */
+ fun shouldKeyBeIgnored(inputDevice: InputDevice, keyCode: Int): Boolean {
+ return if (isDualShock4(inputDevice)) {
+ // The two analog triggers generate analog motion events as well as a keycode.
+ // We always prefer to use the analog values, so throw away the button press
+ keyCode == KeyEvent.KEYCODE_BUTTON_L2 || keyCode == KeyEvent.KEYCODE_BUTTON_R2
+ } else {
+ false
+ }
+ }
+
+ /**
+ * Scale an axis to be zero-centered with a proper range.
+ */
+ fun scaleAxis(inputDevice: InputDevice, axis: Int, value: Float): Float {
+ if (isDualShock4(inputDevice)) {
+ // Android doesn't have correct mappings for this controller's triggers. It reports them
+ // as RX & RY, centered at -1.0, and with a range of [-1.0, 1.0]
+ // Scale them to properly zero-centered with a range of [0.0, 1.0].
+ if (axis == MotionEvent.AXIS_RX || axis == MotionEvent.AXIS_RY) {
+ return (value + 1) / 2.0f
+ }
+ } else if (isXboxOneWireless(inputDevice)) {
+ // Same as the DualShock 4, the mappings are missing.
+ if (axis == MotionEvent.AXIS_Z || axis == MotionEvent.AXIS_RZ) {
+ return (value + 1) / 2.0f
+ }
+ if (axis == MotionEvent.AXIS_GENERIC_1) {
+ // This axis is stuck at ~.5. Ignore it.
+ return 0.0f
+ }
+ } else if (isMogaPro2Hid(inputDevice)) {
+ // This controller has a broken axis that reports a constant value. Ignore it.
+ if (axis == MotionEvent.AXIS_GENERIC_1) {
+ return 0.0f
+ }
+ }
+ return value
+ }
+
+ // Sony DualShock 4 controller
+ private fun isDualShock4(inputDevice: InputDevice): Boolean {
+ return inputDevice.vendorId == 0x54c && inputDevice.productId == 0x9cc
+ }
+
+ // Microsoft Xbox One controller
+ private fun isXboxOneWireless(inputDevice: InputDevice): Boolean {
+ return inputDevice.vendorId == 0x45e && inputDevice.productId == 0x2e0
+ }
+
+ // Moga Pro 2 HID
+ private fun isMogaPro2Hid(inputDevice: InputDevice): Boolean {
+ return inputDevice.vendorId == 0x20d6 && inputDevice.productId == 0x6271
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DirectoryInitialization.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DirectoryInitialization.kt
new file mode 100644
index 000000000..2ee63697e
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DirectoryInitialization.kt
@@ -0,0 +1,37 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.content.Context
+import java.io.IOException
+import org.yuzu.yuzu_emu.NativeLibrary
+
+object DirectoryInitialization {
+ private var userPath: String? = null
+
+ var areDirectoriesReady: Boolean = false
+
+ fun start(context: Context) {
+ if (!areDirectoriesReady) {
+ initializeInternalStorage(context)
+ NativeLibrary.initializeEmulation()
+ areDirectoriesReady = true
+ }
+ }
+
+ val userDirectory: String?
+ get() {
+ check(areDirectoriesReady) { "Directory initialization is not ready!" }
+ return userPath
+ }
+
+ private fun initializeInternalStorage(context: Context) {
+ try {
+ userPath = context.getExternalFilesDir(null)!!.canonicalPath
+ NativeLibrary.setAppDirectory(userPath!!)
+ } catch (e: IOException) {
+ e.printStackTrace()
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DocumentsTree.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DocumentsTree.kt
new file mode 100644
index 000000000..cf226ad94
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DocumentsTree.kt
@@ -0,0 +1,121 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.net.Uri
+import androidx.documentfile.provider.DocumentFile
+import java.io.File
+import java.util.*
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.model.MinimalDocumentFile
+
+class DocumentsTree {
+ private var root: DocumentsNode? = null
+
+ fun setRoot(rootUri: Uri?) {
+ root = null
+ root = DocumentsNode()
+ root!!.uri = rootUri
+ root!!.isDirectory = true
+ }
+
+ fun openContentUri(filepath: String, openMode: String?): Int {
+ val node = resolvePath(filepath) ?: return -1
+ return FileUtil.openContentUri(YuzuApplication.appContext, node.uri.toString(), openMode)
+ }
+
+ fun getFileSize(filepath: String): Long {
+ val node = resolvePath(filepath)
+ return if (node == null || node.isDirectory) {
+ 0
+ } else {
+ FileUtil.getFileSize(YuzuApplication.appContext, node.uri.toString())
+ }
+ }
+
+ fun exists(filepath: String): Boolean {
+ return resolvePath(filepath) != null
+ }
+
+ fun isDirectory(filepath: String): Boolean {
+ val node = resolvePath(filepath)
+ return node != null && node.isDirectory
+ }
+
+ private fun resolvePath(filepath: String): DocumentsNode? {
+ val tokens = StringTokenizer(filepath, File.separator, false)
+ var iterator = root
+ while (tokens.hasMoreTokens()) {
+ val token = tokens.nextToken()
+ if (token.isEmpty()) continue
+ iterator = find(iterator, token)
+ if (iterator == null) return null
+ }
+ return iterator
+ }
+
+ private fun find(parent: DocumentsNode?, filename: String): DocumentsNode? {
+ if (parent!!.isDirectory && !parent.loaded) {
+ structTree(parent)
+ }
+ return parent.children[filename]
+ }
+
+ /**
+ * Construct current level directory tree
+ * @param parent parent node of this level
+ */
+ private fun structTree(parent: DocumentsNode) {
+ val documents = FileUtil.listFiles(YuzuApplication.appContext, parent.uri!!)
+ for (document in documents) {
+ val node = DocumentsNode(document)
+ node.parent = parent
+ parent.children[node.name] = node
+ }
+ parent.loaded = true
+ }
+
+ private class DocumentsNode {
+ var parent: DocumentsNode? = null
+ val children: MutableMap<String?, DocumentsNode> = HashMap()
+ var name: String? = null
+ var uri: Uri? = null
+ var loaded = false
+ var isDirectory = false
+
+ constructor()
+ constructor(document: MinimalDocumentFile) {
+ name = document.filename
+ uri = document.uri
+ isDirectory = document.isDirectory
+ loaded = !isDirectory
+ }
+
+ private constructor(document: DocumentFile, isCreateDir: Boolean) {
+ name = document.name
+ uri = document.uri
+ isDirectory = isCreateDir
+ loaded = true
+ }
+
+ private fun rename(name: String) {
+ if (parent == null) {
+ return
+ }
+ parent!!.children.remove(this.name)
+ this.name = name
+ parent!!.children[name] = this
+ }
+ }
+
+ companion object {
+ fun isNativePath(path: String): Boolean {
+ return if (path.isNotEmpty()) {
+ path[0] == '/'
+ } else {
+ false
+ }
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/EmulationMenuSettings.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/EmulationMenuSettings.kt
new file mode 100644
index 000000000..7e8f058c1
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/EmulationMenuSettings.kt
@@ -0,0 +1,50 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import androidx.preference.PreferenceManager
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+
+object EmulationMenuSettings {
+ private val preferences =
+ PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+
+ var joystickRelCenter: Boolean
+ get() = preferences.getBoolean(Settings.PREF_MENU_SETTINGS_JOYSTICK_REL_CENTER, true)
+ set(value) {
+ preferences.edit()
+ .putBoolean(Settings.PREF_MENU_SETTINGS_JOYSTICK_REL_CENTER, value)
+ .apply()
+ }
+ var dpadSlide: Boolean
+ get() = preferences.getBoolean(Settings.PREF_MENU_SETTINGS_DPAD_SLIDE, true)
+ set(value) {
+ preferences.edit()
+ .putBoolean(Settings.PREF_MENU_SETTINGS_DPAD_SLIDE, value)
+ .apply()
+ }
+ var hapticFeedback: Boolean
+ get() = preferences.getBoolean(Settings.PREF_MENU_SETTINGS_HAPTICS, false)
+ set(value) {
+ preferences.edit()
+ .putBoolean(Settings.PREF_MENU_SETTINGS_HAPTICS, value)
+ .apply()
+ }
+
+ var showFps: Boolean
+ get() = preferences.getBoolean(Settings.PREF_MENU_SETTINGS_SHOW_FPS, false)
+ set(value) {
+ preferences.edit()
+ .putBoolean(Settings.PREF_MENU_SETTINGS_SHOW_FPS, value)
+ .apply()
+ }
+ var showOverlay: Boolean
+ get() = preferences.getBoolean(Settings.PREF_MENU_SETTINGS_SHOW_OVERLAY, true)
+ set(value) {
+ preferences.edit()
+ .putBoolean(Settings.PREF_MENU_SETTINGS_SHOW_OVERLAY, value)
+ .apply()
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/FileUtil.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/FileUtil.kt
new file mode 100644
index 000000000..142af5f26
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/FileUtil.kt
@@ -0,0 +1,332 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.content.Context
+import android.database.Cursor
+import android.net.Uri
+import android.provider.DocumentsContract
+import androidx.documentfile.provider.DocumentFile
+import java.io.BufferedInputStream
+import java.io.File
+import java.io.FileOutputStream
+import java.io.IOException
+import java.io.InputStream
+import java.net.URLDecoder
+import java.util.zip.ZipEntry
+import java.util.zip.ZipInputStream
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.model.MinimalDocumentFile
+
+object FileUtil {
+ const val PATH_TREE = "tree"
+ const val DECODE_METHOD = "UTF-8"
+ const val APPLICATION_OCTET_STREAM = "application/octet-stream"
+ const val TEXT_PLAIN = "text/plain"
+
+ /**
+ * Create a file from directory with filename.
+ * @param context Application context
+ * @param directory parent path for file.
+ * @param filename file display name.
+ * @return boolean
+ */
+ fun createFile(context: Context?, directory: String?, filename: String): DocumentFile? {
+ var decodedFilename = filename
+ try {
+ val directoryUri = Uri.parse(directory)
+ val parent = DocumentFile.fromTreeUri(context!!, directoryUri) ?: return null
+ decodedFilename = URLDecoder.decode(decodedFilename, DECODE_METHOD)
+ var mimeType = APPLICATION_OCTET_STREAM
+ if (decodedFilename.endsWith(".txt")) {
+ mimeType = TEXT_PLAIN
+ }
+ val exists = parent.findFile(decodedFilename)
+ return exists ?: parent.createFile(mimeType, decodedFilename)
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot create file, error: " + e.message)
+ }
+ return null
+ }
+
+ /**
+ * Create a directory from directory with filename.
+ * @param context Application context
+ * @param directory parent path for directory.
+ * @param directoryName directory display name.
+ * @return boolean
+ */
+ fun createDir(context: Context?, directory: String?, directoryName: String?): DocumentFile? {
+ var decodedDirectoryName = directoryName
+ try {
+ val directoryUri = Uri.parse(directory)
+ val parent = DocumentFile.fromTreeUri(context!!, directoryUri) ?: return null
+ decodedDirectoryName = URLDecoder.decode(decodedDirectoryName, DECODE_METHOD)
+ val isExist = parent.findFile(decodedDirectoryName)
+ return isExist ?: parent.createDirectory(decodedDirectoryName)
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot create file, error: " + e.message)
+ }
+ return null
+ }
+
+ /**
+ * Open content uri and return file descriptor to JNI.
+ * @param context Application context
+ * @param path Native content uri path
+ * @param openMode will be one of "r", "r", "rw", "wa", "rwa"
+ * @return file descriptor
+ */
+ @JvmStatic
+ fun openContentUri(context: Context, path: String, openMode: String?): Int {
+ try {
+ val uri = Uri.parse(path)
+ val parcelFileDescriptor = context.contentResolver.openFileDescriptor(uri, openMode!!)
+ if (parcelFileDescriptor == null) {
+ Log.error("[FileUtil]: Cannot get the file descriptor from uri: $path")
+ return -1
+ }
+ val fileDescriptor = parcelFileDescriptor.detachFd()
+ parcelFileDescriptor.close()
+ return fileDescriptor
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot open content uri, error: " + e.message)
+ }
+ return -1
+ }
+
+ /**
+ * Reference: https://stackoverflow.com/questions/42186820/documentfile-is-very-slow
+ * This function will be faster than DoucmentFile.listFiles
+ * @param context Application context
+ * @param uri Directory uri.
+ * @return CheapDocument lists.
+ */
+ fun listFiles(context: Context, uri: Uri): Array<MinimalDocumentFile> {
+ val resolver = context.contentResolver
+ val columns = arrayOf(
+ DocumentsContract.Document.COLUMN_DOCUMENT_ID,
+ DocumentsContract.Document.COLUMN_DISPLAY_NAME,
+ DocumentsContract.Document.COLUMN_MIME_TYPE
+ )
+ var c: Cursor? = null
+ val results: MutableList<MinimalDocumentFile> = ArrayList()
+ try {
+ val docId: String = if (isRootTreeUri(uri)) {
+ DocumentsContract.getTreeDocumentId(uri)
+ } else {
+ DocumentsContract.getDocumentId(uri)
+ }
+ val childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, docId)
+ c = resolver.query(childrenUri, columns, null, null, null)
+ while (c!!.moveToNext()) {
+ val documentId = c.getString(0)
+ val documentName = c.getString(1)
+ val documentMimeType = c.getString(2)
+ val documentUri = DocumentsContract.buildDocumentUriUsingTree(uri, documentId)
+ val document = MinimalDocumentFile(documentName, documentMimeType, documentUri)
+ results.add(document)
+ }
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot list file error: " + e.message)
+ } finally {
+ closeQuietly(c)
+ }
+ return results.toTypedArray()
+ }
+
+ /**
+ * Check whether given path exists.
+ * @param path Native content uri path
+ * @return bool
+ */
+ fun exists(context: Context, path: String?): Boolean {
+ var c: Cursor? = null
+ try {
+ val mUri = Uri.parse(path)
+ val columns = arrayOf(DocumentsContract.Document.COLUMN_DOCUMENT_ID)
+ c = context.contentResolver.query(mUri, columns, null, null, null)
+ return c!!.count > 0
+ } catch (e: Exception) {
+ Log.info("[FileUtil] Cannot find file from given path, error: " + e.message)
+ } finally {
+ closeQuietly(c)
+ }
+ return false
+ }
+
+ /**
+ * Check whether given path is a directory
+ * @param path content uri path
+ * @return bool
+ */
+ fun isDirectory(context: Context, path: String): Boolean {
+ val resolver = context.contentResolver
+ val columns = arrayOf(
+ DocumentsContract.Document.COLUMN_MIME_TYPE
+ )
+ var isDirectory = false
+ var c: Cursor? = null
+ try {
+ val mUri = Uri.parse(path)
+ c = resolver.query(mUri, columns, null, null, null)
+ c!!.moveToNext()
+ val mimeType = c.getString(0)
+ isDirectory = mimeType == DocumentsContract.Document.MIME_TYPE_DIR
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot list files, error: " + e.message)
+ } finally {
+ closeQuietly(c)
+ }
+ return isDirectory
+ }
+
+ /**
+ * Get file display name from given path
+ * @param uri content uri
+ * @return String display name
+ */
+ fun getFilename(uri: Uri): String {
+ val resolver = YuzuApplication.appContext.contentResolver
+ val columns = arrayOf(
+ DocumentsContract.Document.COLUMN_DISPLAY_NAME
+ )
+ var filename = ""
+ var c: Cursor? = null
+ try {
+ c = resolver.query(uri, columns, null, null, null)
+ c!!.moveToNext()
+ filename = c.getString(0)
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot get file size, error: " + e.message)
+ } finally {
+ closeQuietly(c)
+ }
+ return filename
+ }
+
+ fun getFilesName(context: Context, path: String): Array<String> {
+ val uri = Uri.parse(path)
+ val files: MutableList<String> = ArrayList()
+ for (file in listFiles(context, uri)) {
+ files.add(file.filename)
+ }
+ return files.toTypedArray()
+ }
+
+ /**
+ * Get file size from given path.
+ * @param path content uri path
+ * @return long file size
+ */
+ @JvmStatic
+ fun getFileSize(context: Context, path: String): Long {
+ val resolver = context.contentResolver
+ val columns = arrayOf(
+ DocumentsContract.Document.COLUMN_SIZE
+ )
+ var size: Long = 0
+ var c: Cursor? = null
+ try {
+ val mUri = Uri.parse(path)
+ c = resolver.query(mUri, columns, null, null, null)
+ c!!.moveToNext()
+ size = c.getLong(0)
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot get file size, error: " + e.message)
+ } finally {
+ closeQuietly(c)
+ }
+ return size
+ }
+
+ fun copyUriToInternalStorage(
+ context: Context,
+ sourceUri: Uri?,
+ destinationParentPath: String,
+ destinationFilename: String
+ ): Boolean {
+ var input: InputStream? = null
+ var output: FileOutputStream? = null
+ try {
+ input = context.contentResolver.openInputStream(sourceUri!!)
+ output = FileOutputStream("$destinationParentPath/$destinationFilename")
+ val buffer = ByteArray(1024)
+ var len: Int
+ while (input!!.read(buffer).also { len = it } != -1) {
+ output.write(buffer, 0, len)
+ }
+ output.flush()
+ return true
+ } catch (e: Exception) {
+ Log.error("[FileUtil]: Cannot copy file, error: " + e.message)
+ } finally {
+ if (input != null) {
+ try {
+ input.close()
+ } catch (e: IOException) {
+ Log.error("[FileUtil]: Cannot close input file, error: " + e.message)
+ }
+ }
+ if (output != null) {
+ try {
+ output.close()
+ } catch (e: IOException) {
+ Log.error("[FileUtil]: Cannot close output file, error: " + e.message)
+ }
+ }
+ }
+ return false
+ }
+
+ /**
+ * Extracts the given zip file into the given directory.
+ * @exception IOException if the file was being created outside of the target directory
+ */
+ @Throws(SecurityException::class)
+ fun unzip(zipStream: InputStream, destDir: File): Boolean {
+ ZipInputStream(BufferedInputStream(zipStream)).use { zis ->
+ var entry: ZipEntry? = zis.nextEntry
+ while (entry != null) {
+ val entryName = entry.name
+ val entryFile = File(destDir, entryName)
+ if (!entryFile.canonicalPath.startsWith(destDir.canonicalPath + File.separator)) {
+ throw SecurityException("Entry is outside of the target dir: " + entryFile.name)
+ }
+ if (entry.isDirectory) {
+ entryFile.mkdirs()
+ } else {
+ entryFile.parentFile?.mkdirs()
+ entryFile.createNewFile()
+ entryFile.outputStream().use { fos -> zis.copyTo(fos) }
+ }
+ entry = zis.nextEntry
+ }
+ }
+
+ return true
+ }
+
+ fun isRootTreeUri(uri: Uri): Boolean {
+ val paths = uri.pathSegments
+ return paths.size == 2 && PATH_TREE == paths[0]
+ }
+
+ fun closeQuietly(closeable: AutoCloseable?) {
+ if (closeable != null) {
+ try {
+ closeable.close()
+ } catch (rethrown: RuntimeException) {
+ throw rethrown
+ } catch (ignored: Exception) {
+ }
+ }
+ }
+
+ fun getExtension(uri: Uri): String {
+ val fileName = getFilename(uri)
+ return fileName.substring(fileName.lastIndexOf(".") + 1)
+ .lowercase()
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt
new file mode 100644
index 000000000..086d17606
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt
@@ -0,0 +1,70 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.app.PendingIntent
+import android.app.Service
+import android.content.Intent
+import android.os.IBinder
+import androidx.core.app.NotificationCompat
+import androidx.core.app.NotificationManagerCompat
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.activities.EmulationActivity
+
+/**
+ * A service that shows a permanent notification in the background to avoid the app getting
+ * cleared from memory by the system.
+ */
+class ForegroundService : Service() {
+ companion object {
+ const val EMULATION_RUNNING_NOTIFICATION = 0x1000
+
+ const val ACTION_STOP = "stop"
+ }
+
+ private fun showRunningNotification() {
+ // Intent is used to resume emulation if the notification is clicked
+ val contentIntent = PendingIntent.getActivity(
+ this,
+ 0,
+ Intent(this, EmulationActivity::class.java),
+ PendingIntent.FLAG_IMMUTABLE
+ )
+ val builder =
+ NotificationCompat.Builder(this, getString(R.string.emulation_notification_channel_id))
+ .setSmallIcon(R.drawable.ic_stat_notification_logo)
+ .setContentTitle(getString(R.string.app_name))
+ .setContentText(getString(R.string.emulation_notification_running))
+ .setPriority(NotificationCompat.PRIORITY_LOW)
+ .setOngoing(true)
+ .setVibrate(null)
+ .setSound(null)
+ .setContentIntent(contentIntent)
+ startForeground(EMULATION_RUNNING_NOTIFICATION, builder.build())
+ }
+
+ override fun onBind(intent: Intent): IBinder? {
+ return null
+ }
+
+ override fun onCreate() {
+ showRunningNotification()
+ }
+
+ override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
+ if (intent == null) {
+ return START_NOT_STICKY
+ }
+ if (intent.action == ACTION_STOP) {
+ NotificationManagerCompat.from(this).cancel(EMULATION_RUNNING_NOTIFICATION)
+ stopForeground(STOP_FOREGROUND_REMOVE)
+ stopSelfResult(startId)
+ }
+ return START_STICKY
+ }
+
+ override fun onDestroy() {
+ NotificationManagerCompat.from(this).cancel(EMULATION_RUNNING_NOTIFICATION)
+ }
+}
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
new file mode 100644
index 000000000..f8e7eeca7
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt
@@ -0,0 +1,89 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.content.SharedPreferences
+import android.net.Uri
+import androidx.preference.PreferenceManager
+import kotlinx.serialization.encodeToString
+import kotlinx.serialization.json.Json
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.model.Game
+
+object GameHelper {
+ const val KEY_GAME_PATH = "game_path"
+ const val KEY_GAMES = "Games"
+
+ private lateinit var preferences: SharedPreferences
+
+ fun getGames(): List<Game> {
+ val games = mutableListOf<Game>()
+ val context = YuzuApplication.appContext
+ val gamesDir =
+ PreferenceManager.getDefaultSharedPreferences(context).getString(KEY_GAME_PATH, "")
+ val gamesUri = Uri.parse(gamesDir)
+ preferences = PreferenceManager.getDefaultSharedPreferences(context)
+
+ // Ensure keys are loaded so that ROM metadata can be decrypted.
+ NativeLibrary.reloadKeys()
+
+ val children = FileUtil.listFiles(context, gamesUri)
+ for (file in children) {
+ if (!file.isDirectory) {
+ // Check that the file has an extension we care about before trying to read out of it.
+ if (Game.extensions.contains(FileUtil.getExtension(file.uri))) {
+ games.add(getGame(file.uri))
+ }
+ }
+ }
+
+ // Cache list of games found on disk
+ val serializedGames = mutableSetOf<String>()
+ games.forEach {
+ serializedGames.add(Json.encodeToString(it))
+ }
+ preferences.edit()
+ .remove(KEY_GAMES)
+ .putStringSet(KEY_GAMES, serializedGames)
+ .apply()
+
+ return games.toList()
+ }
+
+ private fun getGame(uri: Uri): Game {
+ val filePath = uri.toString()
+ var name = NativeLibrary.getTitle(filePath)
+
+ // If the game's title field is empty, use the filename.
+ if (name.isEmpty()) {
+ name = FileUtil.getFilename(uri)
+ }
+ var gameId = NativeLibrary.getGameId(filePath)
+
+ // If the game's ID field is empty, use the filename without extension.
+ if (gameId.isEmpty()) {
+ gameId = name.substring(0, name.lastIndexOf("."))
+ }
+
+ val newGame = Game(
+ name,
+ NativeLibrary.getDescription(filePath).replace("\n", " "),
+ NativeLibrary.getRegions(filePath),
+ filePath,
+ gameId,
+ NativeLibrary.getCompany(filePath),
+ NativeLibrary.isHomebrew(filePath)
+ )
+
+ val addedTime = preferences.getLong(newGame.keyAddedToLibraryTime, 0L)
+ if (addedTime == 0L) {
+ preferences.edit()
+ .putLong(newGame.keyAddedToLibraryTime, System.currentTimeMillis())
+ .apply()
+ }
+
+ return newGame
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt
new file mode 100644
index 000000000..1d4695a2a
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt
@@ -0,0 +1,154 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.content.Context
+import android.net.Uri
+import java.io.BufferedInputStream
+import java.io.File
+import java.io.FileInputStream
+import java.io.FileOutputStream
+import java.io.IOException
+import java.util.zip.ZipInputStream
+import org.yuzu.yuzu_emu.NativeLibrary
+import org.yuzu.yuzu_emu.utils.FileUtil.copyUriToInternalStorage
+
+object GpuDriverHelper {
+ private const val META_JSON_FILENAME = "meta.json"
+ private const val DRIVER_INTERNAL_FILENAME = "gpu_driver.zip"
+ private var fileRedirectionPath: String? = null
+ private var driverInstallationPath: String? = null
+ private var hookLibPath: String? = null
+
+ @Throws(IOException::class)
+ private fun unzip(zipFilePath: String, destDir: String) {
+ val dir = File(destDir)
+
+ // Create output directory if it doesn't exist
+ if (!dir.exists()) dir.mkdirs()
+
+ // Unpack the files.
+ val inputStream = FileInputStream(zipFilePath)
+ val zis = ZipInputStream(BufferedInputStream(inputStream))
+ val buffer = ByteArray(1024)
+ var ze = zis.nextEntry
+ while (ze != null) {
+ val newFile = File(destDir, ze.name)
+ val canonicalPath = newFile.canonicalPath
+ if (!canonicalPath.startsWith(destDir + ze.name)) {
+ throw SecurityException("Zip file attempted path traversal! " + ze.name)
+ }
+
+ newFile.parentFile!!.mkdirs()
+ val fos = FileOutputStream(newFile)
+ var len: Int
+ while (zis.read(buffer).also { len = it } > 0) {
+ fos.write(buffer, 0, len)
+ }
+ fos.close()
+ zis.closeEntry()
+ ze = zis.nextEntry
+ }
+ zis.closeEntry()
+ }
+
+ fun initializeDriverParameters(context: Context) {
+ try {
+ // Initialize the file redirection directory.
+ fileRedirectionPath =
+ context.getExternalFilesDir(null)!!.canonicalPath + "/gpu/vk_file_redirect/"
+
+ // Initialize the driver installation directory.
+ driverInstallationPath = context.filesDir.canonicalPath + "/gpu_driver/"
+ } catch (e: IOException) {
+ throw RuntimeException(e)
+ }
+
+ // Initialize directories.
+ initializeDirectories()
+
+ // Initialize hook libraries directory.
+ hookLibPath = context.applicationInfo.nativeLibraryDir + "/"
+
+ // Initialize GPU driver.
+ NativeLibrary.initializeGpuDriver(
+ hookLibPath,
+ driverInstallationPath,
+ customDriverLibraryName,
+ fileRedirectionPath
+ )
+ }
+
+ fun installDefaultDriver(context: Context) {
+ // Removing the installed driver will result in the backend using the default system driver.
+ val driverInstallationDir = File(driverInstallationPath!!)
+ deleteRecursive(driverInstallationDir)
+ initializeDriverParameters(context)
+ }
+
+ fun installCustomDriver(context: Context, driverPathUri: Uri?) {
+ // Revert to system default in the event the specified driver is bad.
+ installDefaultDriver(context)
+
+ // Ensure we have directories.
+ initializeDirectories()
+
+ // Copy the zip file URI into our private storage.
+ copyUriToInternalStorage(
+ context,
+ driverPathUri,
+ driverInstallationPath!!,
+ DRIVER_INTERNAL_FILENAME
+ )
+
+ // Unzip the driver.
+ try {
+ unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!)
+ } catch (e: SecurityException) {
+ return
+ }
+
+ // Initialize the driver parameters.
+ initializeDriverParameters(context)
+ }
+
+ external fun supportsCustomDriverLoading(): Boolean
+
+ // Parse the custom driver metadata to retrieve the name.
+ val customDriverName: String?
+ get() {
+ val metadata = GpuDriverMetadata(driverInstallationPath + META_JSON_FILENAME)
+ return metadata.name
+ }
+
+ // Parse the custom driver metadata to retrieve the library name.
+ private val customDriverLibraryName: String?
+ get() {
+ // Parse the custom driver metadata to retrieve the library name.
+ val metadata = GpuDriverMetadata(driverInstallationPath + META_JSON_FILENAME)
+ return metadata.libraryName
+ }
+
+ private fun initializeDirectories() {
+ // Ensure the file redirection directory exists.
+ val fileRedirectionDir = File(fileRedirectionPath!!)
+ if (!fileRedirectionDir.exists()) {
+ fileRedirectionDir.mkdirs()
+ }
+ // Ensure the driver installation directory exists.
+ val driverInstallationDir = File(driverInstallationPath!!)
+ if (!driverInstallationDir.exists()) {
+ driverInstallationDir.mkdirs()
+ }
+ }
+
+ private fun deleteRecursive(fileOrDirectory: File) {
+ if (fileOrDirectory.isDirectory) {
+ for (child in fileOrDirectory.listFiles()!!) {
+ deleteRecursive(child)
+ }
+ }
+ fileOrDirectory.delete()
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverMetadata.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverMetadata.kt
new file mode 100644
index 000000000..a4e64070a
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverMetadata.kt
@@ -0,0 +1,47 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import java.io.IOException
+import java.nio.charset.StandardCharsets
+import java.nio.file.Files
+import java.nio.file.Paths
+import org.json.JSONException
+import org.json.JSONObject
+
+class GpuDriverMetadata(metadataFilePath: String) {
+ var name: String? = null
+ var description: String? = null
+ var author: String? = null
+ var vendor: String? = null
+ var driverVersion: String? = null
+ var minApi = 0
+ var libraryName: String? = null
+
+ init {
+ try {
+ val json = JSONObject(getStringFromFile(metadataFilePath))
+ name = json.getString("name")
+ description = json.getString("description")
+ author = json.getString("author")
+ vendor = json.getString("vendor")
+ driverVersion = json.getString("driverVersion")
+ minApi = json.getInt("minApi")
+ libraryName = json.getString("libraryName")
+ } catch (e: JSONException) {
+ // JSON is malformed, ignore and treat as unsupported metadata.
+ } catch (e: IOException) {
+ // File is inaccessible, ignore and treat as unsupported metadata.
+ }
+ }
+
+ companion object {
+ @Throws(IOException::class)
+ private fun getStringFromFile(filePath: String): String {
+ val path = Paths.get(filePath)
+ val bytes = Files.readAllBytes(path)
+ return String(bytes, StandardCharsets.UTF_8)
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InputHandler.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InputHandler.kt
new file mode 100644
index 000000000..e963dfbc1
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InputHandler.kt
@@ -0,0 +1,365 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.view.KeyEvent
+import android.view.MotionEvent
+import kotlin.math.sqrt
+import org.yuzu.yuzu_emu.NativeLibrary
+
+class InputHandler {
+ fun initialize() {
+ // Connect first controller
+ NativeLibrary.onGamePadConnectEvent(getPlayerNumber(NativeLibrary.Player1Device))
+ }
+
+ fun dispatchKeyEvent(event: KeyEvent): Boolean {
+ val button: Int = when (event.device.vendorId) {
+ 0x045E -> getInputXboxButtonKey(event.keyCode)
+ 0x054C -> getInputDS5ButtonKey(event.keyCode)
+ 0x057E -> getInputJoyconButtonKey(event.keyCode)
+ 0x1532 -> getInputRazerButtonKey(event.keyCode)
+ else -> getInputGenericButtonKey(event.keyCode)
+ }
+
+ val action = when (event.action) {
+ KeyEvent.ACTION_DOWN -> NativeLibrary.ButtonState.PRESSED
+ KeyEvent.ACTION_UP -> NativeLibrary.ButtonState.RELEASED
+ else -> return false
+ }
+
+ // Ignore invalid buttons
+ if (button < 0) {
+ return false
+ }
+
+ return NativeLibrary.onGamePadButtonEvent(
+ getPlayerNumber(event.device.controllerNumber),
+ button,
+ action
+ )
+ }
+
+ fun dispatchGenericMotionEvent(event: MotionEvent): Boolean {
+ val device = event.device
+ // Check every axis input available on the controller
+ for (range in device.motionRanges) {
+ val axis = range.axis
+ when (device.vendorId) {
+ 0x045E -> setGenericAxisInput(event, axis)
+ 0x054C -> setGenericAxisInput(event, axis)
+ 0x057E -> setJoyconAxisInput(event, axis)
+ 0x1532 -> setRazerAxisInput(event, axis)
+ else -> setGenericAxisInput(event, axis)
+ }
+ }
+
+ return true
+ }
+
+ private fun getPlayerNumber(index: Int): Int {
+ // TODO: Joycons are handled as different controllers. Find a way to merge them.
+ return when (index) {
+ 2 -> NativeLibrary.Player2Device
+ 3 -> NativeLibrary.Player3Device
+ 4 -> NativeLibrary.Player4Device
+ 5 -> NativeLibrary.Player5Device
+ 6 -> NativeLibrary.Player6Device
+ 7 -> NativeLibrary.Player7Device
+ 8 -> NativeLibrary.Player8Device
+ else -> if (NativeLibrary.isHandheldOnly()) {
+ NativeLibrary.ConsoleDevice
+ } else {
+ NativeLibrary.Player1Device
+ }
+ }
+ }
+
+ private fun setStickState(playerNumber: Int, index: Int, xAxis: Float, yAxis: Float) {
+ // Calculate vector size
+ val r2 = xAxis * xAxis + yAxis * yAxis
+ var r = sqrt(r2.toDouble()).toFloat()
+
+ // Adjust range of joystick
+ val deadzone = 0.15f
+ var x = xAxis
+ var y = yAxis
+
+ if (r > deadzone) {
+ val deadzoneFactor = 1.0f / r * (r - deadzone) / (1.0f - deadzone)
+ x *= deadzoneFactor
+ y *= deadzoneFactor
+ r *= deadzoneFactor
+ } else {
+ x = 0.0f
+ y = 0.0f
+ }
+
+ // Normalize joystick
+ if (r > 1.0f) {
+ x /= r
+ y /= r
+ }
+
+ NativeLibrary.onGamePadJoystickEvent(
+ playerNumber,
+ index,
+ x,
+ -y
+ )
+ }
+
+ private fun getAxisToButton(axis: Float): Int {
+ return if (axis > 0.5f) {
+ NativeLibrary.ButtonState.PRESSED
+ } else {
+ NativeLibrary.ButtonState.RELEASED
+ }
+ }
+
+ private fun setAxisDpadState(playerNumber: Int, xAxis: Float, yAxis: Float) {
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.DPAD_UP,
+ getAxisToButton(-yAxis)
+ )
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.DPAD_DOWN,
+ getAxisToButton(yAxis)
+ )
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.DPAD_LEFT,
+ getAxisToButton(-xAxis)
+ )
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.DPAD_RIGHT,
+ getAxisToButton(xAxis)
+ )
+ }
+
+ private fun getInputDS5ButtonKey(key: Int): Int {
+ // The missing ds5 buttons are axis
+ return when (key) {
+ KeyEvent.KEYCODE_BUTTON_A -> NativeLibrary.ButtonType.BUTTON_B
+ KeyEvent.KEYCODE_BUTTON_B -> NativeLibrary.ButtonType.BUTTON_A
+ KeyEvent.KEYCODE_BUTTON_X -> NativeLibrary.ButtonType.BUTTON_Y
+ KeyEvent.KEYCODE_BUTTON_Y -> NativeLibrary.ButtonType.BUTTON_X
+ KeyEvent.KEYCODE_BUTTON_L1 -> NativeLibrary.ButtonType.TRIGGER_L
+ KeyEvent.KEYCODE_BUTTON_R1 -> NativeLibrary.ButtonType.TRIGGER_R
+ KeyEvent.KEYCODE_BUTTON_THUMBL -> NativeLibrary.ButtonType.STICK_L
+ KeyEvent.KEYCODE_BUTTON_THUMBR -> NativeLibrary.ButtonType.STICK_R
+ KeyEvent.KEYCODE_BUTTON_START -> NativeLibrary.ButtonType.BUTTON_PLUS
+ KeyEvent.KEYCODE_BUTTON_SELECT -> NativeLibrary.ButtonType.BUTTON_MINUS
+ else -> -1
+ }
+ }
+
+ private fun getInputJoyconButtonKey(key: Int): Int {
+ // Joycon support is half dead. A lot of buttons can't be mapped
+ return when (key) {
+ KeyEvent.KEYCODE_BUTTON_A -> NativeLibrary.ButtonType.BUTTON_B
+ KeyEvent.KEYCODE_BUTTON_B -> NativeLibrary.ButtonType.BUTTON_A
+ KeyEvent.KEYCODE_BUTTON_X -> NativeLibrary.ButtonType.BUTTON_X
+ KeyEvent.KEYCODE_BUTTON_Y -> NativeLibrary.ButtonType.BUTTON_Y
+ KeyEvent.KEYCODE_DPAD_UP -> NativeLibrary.ButtonType.DPAD_UP
+ KeyEvent.KEYCODE_DPAD_DOWN -> NativeLibrary.ButtonType.DPAD_DOWN
+ KeyEvent.KEYCODE_DPAD_LEFT -> NativeLibrary.ButtonType.DPAD_LEFT
+ KeyEvent.KEYCODE_DPAD_RIGHT -> NativeLibrary.ButtonType.DPAD_RIGHT
+ KeyEvent.KEYCODE_BUTTON_L1 -> NativeLibrary.ButtonType.TRIGGER_L
+ KeyEvent.KEYCODE_BUTTON_R1 -> NativeLibrary.ButtonType.TRIGGER_R
+ KeyEvent.KEYCODE_BUTTON_L2 -> NativeLibrary.ButtonType.TRIGGER_ZL
+ KeyEvent.KEYCODE_BUTTON_R2 -> NativeLibrary.ButtonType.TRIGGER_ZR
+ KeyEvent.KEYCODE_BUTTON_THUMBL -> NativeLibrary.ButtonType.STICK_L
+ KeyEvent.KEYCODE_BUTTON_THUMBR -> NativeLibrary.ButtonType.STICK_R
+ KeyEvent.KEYCODE_BUTTON_START -> NativeLibrary.ButtonType.BUTTON_PLUS
+ KeyEvent.KEYCODE_BUTTON_SELECT -> NativeLibrary.ButtonType.BUTTON_MINUS
+ else -> -1
+ }
+ }
+
+ private fun getInputXboxButtonKey(key: Int): Int {
+ // The missing xbox buttons are axis
+ return when (key) {
+ KeyEvent.KEYCODE_BUTTON_A -> NativeLibrary.ButtonType.BUTTON_A
+ KeyEvent.KEYCODE_BUTTON_B -> NativeLibrary.ButtonType.BUTTON_B
+ KeyEvent.KEYCODE_BUTTON_X -> NativeLibrary.ButtonType.BUTTON_X
+ KeyEvent.KEYCODE_BUTTON_Y -> NativeLibrary.ButtonType.BUTTON_Y
+ KeyEvent.KEYCODE_BUTTON_L1 -> NativeLibrary.ButtonType.TRIGGER_L
+ KeyEvent.KEYCODE_BUTTON_R1 -> NativeLibrary.ButtonType.TRIGGER_R
+ KeyEvent.KEYCODE_BUTTON_THUMBL -> NativeLibrary.ButtonType.STICK_L
+ KeyEvent.KEYCODE_BUTTON_THUMBR -> NativeLibrary.ButtonType.STICK_R
+ KeyEvent.KEYCODE_BUTTON_START -> NativeLibrary.ButtonType.BUTTON_PLUS
+ KeyEvent.KEYCODE_BUTTON_SELECT -> NativeLibrary.ButtonType.BUTTON_MINUS
+ else -> -1
+ }
+ }
+
+ private fun getInputRazerButtonKey(key: Int): Int {
+ // The missing xbox buttons are axis
+ return when (key) {
+ KeyEvent.KEYCODE_BUTTON_A -> NativeLibrary.ButtonType.BUTTON_B
+ KeyEvent.KEYCODE_BUTTON_B -> NativeLibrary.ButtonType.BUTTON_A
+ KeyEvent.KEYCODE_BUTTON_X -> NativeLibrary.ButtonType.BUTTON_Y
+ KeyEvent.KEYCODE_BUTTON_Y -> NativeLibrary.ButtonType.BUTTON_X
+ KeyEvent.KEYCODE_BUTTON_L1 -> NativeLibrary.ButtonType.TRIGGER_L
+ KeyEvent.KEYCODE_BUTTON_R1 -> NativeLibrary.ButtonType.TRIGGER_R
+ KeyEvent.KEYCODE_BUTTON_THUMBL -> NativeLibrary.ButtonType.STICK_L
+ KeyEvent.KEYCODE_BUTTON_THUMBR -> NativeLibrary.ButtonType.STICK_R
+ KeyEvent.KEYCODE_BUTTON_START -> NativeLibrary.ButtonType.BUTTON_PLUS
+ KeyEvent.KEYCODE_BUTTON_SELECT -> NativeLibrary.ButtonType.BUTTON_MINUS
+ else -> -1
+ }
+ }
+
+ private fun getInputGenericButtonKey(key: Int): Int {
+ return when (key) {
+ KeyEvent.KEYCODE_BUTTON_A -> NativeLibrary.ButtonType.BUTTON_A
+ KeyEvent.KEYCODE_BUTTON_B -> NativeLibrary.ButtonType.BUTTON_B
+ KeyEvent.KEYCODE_BUTTON_X -> NativeLibrary.ButtonType.BUTTON_X
+ KeyEvent.KEYCODE_BUTTON_Y -> NativeLibrary.ButtonType.BUTTON_Y
+ KeyEvent.KEYCODE_DPAD_UP -> NativeLibrary.ButtonType.DPAD_UP
+ KeyEvent.KEYCODE_DPAD_DOWN -> NativeLibrary.ButtonType.DPAD_DOWN
+ KeyEvent.KEYCODE_DPAD_LEFT -> NativeLibrary.ButtonType.DPAD_LEFT
+ KeyEvent.KEYCODE_DPAD_RIGHT -> NativeLibrary.ButtonType.DPAD_RIGHT
+ KeyEvent.KEYCODE_BUTTON_L1 -> NativeLibrary.ButtonType.TRIGGER_L
+ KeyEvent.KEYCODE_BUTTON_R1 -> NativeLibrary.ButtonType.TRIGGER_R
+ KeyEvent.KEYCODE_BUTTON_L2 -> NativeLibrary.ButtonType.TRIGGER_ZL
+ KeyEvent.KEYCODE_BUTTON_R2 -> NativeLibrary.ButtonType.TRIGGER_ZR
+ KeyEvent.KEYCODE_BUTTON_THUMBL -> NativeLibrary.ButtonType.STICK_L
+ KeyEvent.KEYCODE_BUTTON_THUMBR -> NativeLibrary.ButtonType.STICK_R
+ KeyEvent.KEYCODE_BUTTON_START -> NativeLibrary.ButtonType.BUTTON_PLUS
+ KeyEvent.KEYCODE_BUTTON_SELECT -> NativeLibrary.ButtonType.BUTTON_MINUS
+ else -> -1
+ }
+ }
+
+ private fun setGenericAxisInput(event: MotionEvent, axis: Int) {
+ val playerNumber = getPlayerNumber(event.device.controllerNumber)
+
+ when (axis) {
+ MotionEvent.AXIS_X, MotionEvent.AXIS_Y ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_L,
+ event.getAxisValue(MotionEvent.AXIS_X),
+ event.getAxisValue(MotionEvent.AXIS_Y)
+ )
+ MotionEvent.AXIS_RX, MotionEvent.AXIS_RY ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_R,
+ event.getAxisValue(MotionEvent.AXIS_RX),
+ event.getAxisValue(MotionEvent.AXIS_RY)
+ )
+ MotionEvent.AXIS_Z, MotionEvent.AXIS_RZ ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_R,
+ event.getAxisValue(MotionEvent.AXIS_Z),
+ event.getAxisValue(MotionEvent.AXIS_RZ)
+ )
+ MotionEvent.AXIS_LTRIGGER ->
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.TRIGGER_ZL,
+ getAxisToButton(event.getAxisValue(MotionEvent.AXIS_LTRIGGER))
+ )
+ MotionEvent.AXIS_BRAKE ->
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.TRIGGER_ZL,
+ getAxisToButton(event.getAxisValue(MotionEvent.AXIS_BRAKE))
+ )
+ MotionEvent.AXIS_RTRIGGER ->
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.TRIGGER_ZR,
+ getAxisToButton(event.getAxisValue(MotionEvent.AXIS_RTRIGGER))
+ )
+ MotionEvent.AXIS_GAS ->
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.TRIGGER_ZR,
+ getAxisToButton(event.getAxisValue(MotionEvent.AXIS_GAS))
+ )
+ MotionEvent.AXIS_HAT_X, MotionEvent.AXIS_HAT_Y ->
+ setAxisDpadState(
+ playerNumber,
+ event.getAxisValue(MotionEvent.AXIS_HAT_X),
+ event.getAxisValue(MotionEvent.AXIS_HAT_Y)
+ )
+ }
+ }
+
+ private fun setJoyconAxisInput(event: MotionEvent, axis: Int) {
+ // Joycon support is half dead. Right joystick doesn't work
+ val playerNumber = getPlayerNumber(event.device.controllerNumber)
+
+ when (axis) {
+ MotionEvent.AXIS_X, MotionEvent.AXIS_Y ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_L,
+ event.getAxisValue(MotionEvent.AXIS_X),
+ event.getAxisValue(MotionEvent.AXIS_Y)
+ )
+ MotionEvent.AXIS_Z, MotionEvent.AXIS_RZ ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_R,
+ event.getAxisValue(MotionEvent.AXIS_Z),
+ event.getAxisValue(MotionEvent.AXIS_RZ)
+ )
+ MotionEvent.AXIS_RX, MotionEvent.AXIS_RY ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_R,
+ event.getAxisValue(MotionEvent.AXIS_RX),
+ event.getAxisValue(MotionEvent.AXIS_RY)
+ )
+ }
+ }
+
+ private fun setRazerAxisInput(event: MotionEvent, axis: Int) {
+ val playerNumber = getPlayerNumber(event.device.controllerNumber)
+
+ when (axis) {
+ MotionEvent.AXIS_X, MotionEvent.AXIS_Y ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_L,
+ event.getAxisValue(MotionEvent.AXIS_X),
+ event.getAxisValue(MotionEvent.AXIS_Y)
+ )
+ MotionEvent.AXIS_Z, MotionEvent.AXIS_RZ ->
+ setStickState(
+ playerNumber,
+ NativeLibrary.StickType.STICK_R,
+ event.getAxisValue(MotionEvent.AXIS_Z),
+ event.getAxisValue(MotionEvent.AXIS_RZ)
+ )
+ MotionEvent.AXIS_BRAKE ->
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.TRIGGER_ZL,
+ getAxisToButton(event.getAxisValue(MotionEvent.AXIS_BRAKE))
+ )
+ MotionEvent.AXIS_GAS ->
+ NativeLibrary.onGamePadButtonEvent(
+ playerNumber,
+ NativeLibrary.ButtonType.TRIGGER_ZR,
+ getAxisToButton(event.getAxisValue(MotionEvent.AXIS_GAS))
+ )
+ MotionEvent.AXIS_HAT_X, MotionEvent.AXIS_HAT_Y ->
+ setAxisDpadState(
+ playerNumber,
+ event.getAxisValue(MotionEvent.AXIS_HAT_X),
+ event.getAxisValue(MotionEvent.AXIS_HAT_Y)
+ )
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt
new file mode 100644
index 000000000..595f0d284
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt
@@ -0,0 +1,25 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.annotation.SuppressLint
+import android.content.Context
+
+object InsetsHelper {
+ const val THREE_BUTTON_NAVIGATION = 0
+ const val TWO_BUTTON_NAVIGATION = 1
+ const val GESTURE_NAVIGATION = 2
+
+ @SuppressLint("DiscouragedApi")
+ fun getSystemGestureType(context: Context): Int {
+ val resources = context.resources
+ val resourceId =
+ resources.getIdentifier("config_navBarInteractionMode", "integer", "android")
+ return if (resourceId != 0) {
+ resources.getInteger(resourceId)
+ } else {
+ 0
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt
new file mode 100644
index 000000000..a193e82a4
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/Log.kt
@@ -0,0 +1,40 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.util.Log
+import org.yuzu.yuzu_emu.BuildConfig
+
+/**
+ * Contains methods that call through to [android.util.Log], but
+ * with the same TAG automatically provided. Also no-ops VERBOSE and DEBUG log
+ * levels in release builds.
+ */
+object Log {
+ private const val TAG = "Yuzu Frontend"
+
+ fun verbose(message: String) {
+ if (BuildConfig.DEBUG) {
+ Log.v(TAG, message)
+ }
+ }
+
+ fun debug(message: String) {
+ if (BuildConfig.DEBUG) {
+ Log.d(TAG, message)
+ }
+ }
+
+ fun info(message: String) {
+ Log.i(TAG, message)
+ }
+
+ fun warning(message: String) {
+ Log.w(TAG, message)
+ }
+
+ fun error(message: String) {
+ Log.e(TAG, message)
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/MemoryUtil.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/MemoryUtil.kt
new file mode 100644
index 000000000..18e5fa0b0
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/MemoryUtil.kt
@@ -0,0 +1,59 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.app.ActivityManager
+import android.content.Context
+import org.yuzu.yuzu_emu.R
+import java.util.Locale
+
+class MemoryUtil(val context: Context) {
+
+ private val Long.floatForm: String
+ get() = String.format(Locale.ROOT, "%.2f", this.toDouble())
+
+ private fun bytesToSizeUnit(size: Long): String {
+ return when {
+ size < Kb -> "${size.floatForm} ${context.getString(R.string.memory_byte)}"
+ size < Mb -> "${(size / Kb).floatForm} ${context.getString(R.string.memory_kilobyte)}"
+ size < Gb -> "${(size / Mb).floatForm} ${context.getString(R.string.memory_megabyte)}"
+ size < Tb -> "${(size / Gb).floatForm} ${context.getString(R.string.memory_gigabyte)}"
+ size < Pb -> "${(size / Tb).floatForm} ${context.getString(R.string.memory_terabyte)}"
+ size < Eb -> "${(size / Pb).floatForm} ${context.getString(R.string.memory_petabyte)}"
+ else -> "${(size / Eb).floatForm} ${context.getString(R.string.memory_exabyte)}"
+ }
+ }
+
+ private val totalMemory =
+ with(context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager) {
+ val memInfo = ActivityManager.MemoryInfo()
+ getMemoryInfo(memInfo)
+ memInfo.totalMem
+ }
+
+ fun isLessThan(minimum: Int, size: Long): Boolean {
+ return when (size) {
+ Kb -> totalMemory < Mb && totalMemory < minimum
+ Mb -> totalMemory < Gb && (totalMemory / Mb) < minimum
+ Gb -> totalMemory < Tb && (totalMemory / Gb) < minimum
+ Tb -> totalMemory < Pb && (totalMemory / Tb) < minimum
+ Pb -> totalMemory < Eb && (totalMemory / Pb) < minimum
+ Eb -> totalMemory / Eb < minimum
+ else -> totalMemory < Kb && totalMemory < minimum
+ }
+ }
+
+ fun getDeviceRAM(): String {
+ return bytesToSizeUnit(totalMemory)
+ }
+
+ companion object {
+ const val Kb: Long = 1024
+ const val Mb = Kb * 1024
+ const val Gb = Mb * 1024
+ const val Tb = Gb * 1024
+ const val Pb = Tb * 1024
+ const val Eb = Pb * 1024
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NfcReader.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NfcReader.kt
new file mode 100644
index 000000000..68ed66565
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NfcReader.kt
@@ -0,0 +1,171 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.app.Activity
+import android.app.PendingIntent
+import android.content.Intent
+import android.content.IntentFilter
+import android.nfc.NfcAdapter
+import android.nfc.Tag
+import android.nfc.tech.NfcA
+import android.os.Build
+import android.os.Handler
+import android.os.Looper
+import java.io.IOException
+import org.yuzu.yuzu_emu.NativeLibrary
+
+class NfcReader(private val activity: Activity) {
+ private var nfcAdapter: NfcAdapter? = null
+ private var pendingIntent: PendingIntent? = null
+
+ fun initialize() {
+ nfcAdapter = NfcAdapter.getDefaultAdapter(activity) ?: return
+
+ pendingIntent = PendingIntent.getActivity(
+ activity,
+ 0,
+ Intent(activity, activity.javaClass),
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
+ PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
+ } else {
+ PendingIntent.FLAG_UPDATE_CURRENT
+ }
+ )
+
+ val tagDetected = IntentFilter(NfcAdapter.ACTION_TAG_DISCOVERED)
+ tagDetected.addCategory(Intent.CATEGORY_DEFAULT)
+ }
+
+ fun startScanning() {
+ nfcAdapter?.enableForegroundDispatch(activity, pendingIntent, null, null)
+ }
+
+ fun stopScanning() {
+ nfcAdapter?.disableForegroundDispatch(activity)
+ }
+
+ fun onNewIntent(intent: Intent) {
+ val action = intent.action
+ if (NfcAdapter.ACTION_TAG_DISCOVERED != action &&
+ NfcAdapter.ACTION_TECH_DISCOVERED != action &&
+ NfcAdapter.ACTION_NDEF_DISCOVERED != action
+ ) {
+ return
+ }
+
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
+ val tag =
+ intent.getParcelableExtra(NfcAdapter.EXTRA_TAG, Tag::class.java) ?: return
+ readTagData(tag)
+ return
+ }
+
+ val tag =
+ intent.getParcelableExtra<Tag>(NfcAdapter.EXTRA_TAG) ?: return
+ readTagData(tag)
+ }
+
+ private fun readTagData(tag: Tag) {
+ if (!tag.techList.contains("android.nfc.tech.NfcA")) {
+ return
+ }
+
+ val amiibo = NfcA.get(tag) ?: return
+ amiibo.connect()
+
+ val tagData = ntag215ReadAll(amiibo) ?: return
+ NativeLibrary.onReadNfcTag(tagData)
+
+ nfcAdapter?.ignore(
+ tag,
+ 1000,
+ { NativeLibrary.onRemoveNfcTag() },
+ Handler(Looper.getMainLooper())
+ )
+ }
+
+ private fun ntag215ReadAll(amiibo: NfcA): ByteArray? {
+ val bufferSize = amiibo.maxTransceiveLength
+ val tagSize = 0x21C
+ val pageSize = 4
+ val lastPage = tagSize / pageSize - 1
+ val tagData = ByteArray(tagSize)
+
+ // We need to read the ntag in steps otherwise we overflow the buffer
+ for (i in 0..tagSize step bufferSize - 1) {
+ val dataStart = i / pageSize
+ var dataEnd = (i + bufferSize) / pageSize
+
+ if (dataEnd > lastPage) {
+ dataEnd = lastPage
+ }
+
+ try {
+ val data = ntag215FastRead(amiibo, dataStart, dataEnd - 1)
+ System.arraycopy(data, 0, tagData, i, (dataEnd - dataStart) * pageSize)
+ } catch (e: IOException) {
+ return null
+ }
+ }
+ return tagData
+ }
+
+ private fun ntag215Read(amiibo: NfcA, page: Int): ByteArray? {
+ return amiibo.transceive(
+ byteArrayOf(
+ 0x30.toByte(),
+ (page and 0xFF).toByte()
+ )
+ )
+ }
+
+ private fun ntag215FastRead(amiibo: NfcA, start: Int, end: Int): ByteArray? {
+ return amiibo.transceive(
+ byteArrayOf(
+ 0x3A.toByte(),
+ (start and 0xFF).toByte(),
+ (end and 0xFF).toByte()
+ )
+ )
+ }
+
+ private fun ntag215PWrite(
+ amiibo: NfcA,
+ page: Int,
+ data1: Int,
+ data2: Int,
+ data3: Int,
+ data4: Int
+ ): ByteArray? {
+ return amiibo.transceive(
+ byteArrayOf(
+ 0xA2.toByte(),
+ (page and 0xFF).toByte(),
+ (data1 and 0xFF).toByte(),
+ (data2 and 0xFF).toByte(),
+ (data3 and 0xFF).toByte(),
+ (data4 and 0xFF).toByte()
+ )
+ )
+ }
+
+ private fun ntag215PwdAuth(
+ amiibo: NfcA,
+ data1: Int,
+ data2: Int,
+ data3: Int,
+ data4: Int
+ ): ByteArray? {
+ return amiibo.transceive(
+ byteArrayOf(
+ 0x1B.toByte(),
+ (data1 and 0xFF).toByte(),
+ (data2 and 0xFF).toByte(),
+ (data3 and 0xFF).toByte(),
+ (data4 and 0xFF).toByte()
+ )
+ )
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/SerializableHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/SerializableHelper.kt
new file mode 100644
index 000000000..00e58faec
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/SerializableHelper.kt
@@ -0,0 +1,44 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.content.Intent
+import android.os.Build
+import android.os.Bundle
+import android.os.Parcelable
+import java.io.Serializable
+
+object SerializableHelper {
+ inline fun <reified T : Serializable> Bundle.serializable(key: String): T? {
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
+ getSerializable(key, T::class.java)
+ } else {
+ getSerializable(key) as? T
+ }
+ }
+
+ inline fun <reified T : Serializable> Intent.serializable(key: String): T? {
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
+ getSerializableExtra(key, T::class.java)
+ } else {
+ getSerializableExtra(key) as? T
+ }
+ }
+
+ inline fun <reified T : Parcelable> Bundle.parcelable(key: String): T? {
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
+ getParcelable(key, T::class.java)
+ } else {
+ getParcelable(key) as? T
+ }
+ }
+
+ inline fun <reified T : Parcelable> Intent.parcelable(key: String): T? {
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
+ getParcelableExtra(key, T::class.java)
+ } else {
+ getParcelableExtra(key) as? T
+ }
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt
new file mode 100644
index 000000000..f312e24cf
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt
@@ -0,0 +1,97 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.utils
+
+import android.content.res.Configuration
+import android.graphics.Color
+import androidx.annotation.ColorInt
+import androidx.appcompat.app.AppCompatActivity
+import androidx.appcompat.app.AppCompatDelegate
+import androidx.core.view.WindowCompat
+import androidx.core.view.WindowInsetsControllerCompat
+import androidx.preference.PreferenceManager
+import kotlin.math.roundToInt
+import org.yuzu.yuzu_emu.R
+import org.yuzu.yuzu_emu.YuzuApplication
+import org.yuzu.yuzu_emu.features.settings.model.Settings
+import org.yuzu.yuzu_emu.ui.main.ThemeProvider
+
+object ThemeHelper {
+ const val SYSTEM_BAR_ALPHA = 0.9f
+
+ private const val DEFAULT = 0
+ private const val MATERIAL_YOU = 1
+
+ fun setTheme(activity: AppCompatActivity) {
+ val preferences = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
+ setThemeMode(activity)
+ when (preferences.getInt(Settings.PREF_THEME, 0)) {
+ DEFAULT -> activity.setTheme(R.style.Theme_Yuzu_Main)
+ MATERIAL_YOU -> activity.setTheme(R.style.Theme_Yuzu_Main_MaterialYou)
+ }
+
+ // Using a specific night mode check because this could apply incorrectly when using the
+ // light app mode, dark system mode, and black backgrounds. Launching the settings activity
+ // will then show light mode colors/navigation bars but with black backgrounds.
+ if (preferences.getBoolean(Settings.PREF_BLACK_BACKGROUNDS, false) &&
+ isNightMode(activity)
+ ) {
+ activity.setTheme(R.style.ThemeOverlay_Yuzu_Dark)
+ }
+ }
+
+ @ColorInt
+ fun getColorWithOpacity(@ColorInt color: Int, alphaFactor: Float): Int {
+ return Color.argb(
+ (alphaFactor * Color.alpha(color)).roundToInt(),
+ Color.red(color),
+ Color.green(color),
+ Color.blue(color)
+ )
+ }
+
+ fun setCorrectTheme(activity: AppCompatActivity) {
+ val currentTheme = (activity as ThemeProvider).themeId
+ setTheme(activity)
+ if (currentTheme != (activity as ThemeProvider).themeId) {
+ activity.recreate()
+ }
+ }
+
+ fun setThemeMode(activity: AppCompatActivity) {
+ val themeMode = PreferenceManager.getDefaultSharedPreferences(activity.applicationContext)
+ .getInt(Settings.PREF_THEME_MODE, AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM)
+ activity.delegate.localNightMode = themeMode
+ val windowController = WindowCompat.getInsetsController(
+ activity.window,
+ activity.window.decorView
+ )
+ when (themeMode) {
+ AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM -> when (isNightMode(activity)) {
+ false -> setLightModeSystemBars(windowController)
+ true -> setDarkModeSystemBars(windowController)
+ }
+ AppCompatDelegate.MODE_NIGHT_NO -> setLightModeSystemBars(windowController)
+ AppCompatDelegate.MODE_NIGHT_YES -> setDarkModeSystemBars(windowController)
+ }
+ }
+
+ private fun isNightMode(activity: AppCompatActivity): Boolean {
+ return when (activity.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) {
+ Configuration.UI_MODE_NIGHT_NO -> false
+ Configuration.UI_MODE_NIGHT_YES -> true
+ else -> false
+ }
+ }
+
+ private fun setLightModeSystemBars(windowController: WindowInsetsControllerCompat) {
+ windowController.isAppearanceLightStatusBars = true
+ windowController.isAppearanceLightNavigationBars = true
+ }
+
+ private fun setDarkModeSystemBars(windowController: WindowInsetsControllerCompat) {
+ windowController.isAppearanceLightStatusBars = false
+ windowController.isAppearanceLightNavigationBars = false
+ }
+}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/views/FixedRatioSurfaceView.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/views/FixedRatioSurfaceView.kt
new file mode 100644
index 000000000..685ccaa76
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/views/FixedRatioSurfaceView.kt
@@ -0,0 +1,48 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+package org.yuzu.yuzu_emu.views
+
+import android.content.Context
+import android.util.AttributeSet
+import android.util.Rational
+import android.view.SurfaceView
+import kotlin.math.roundToInt
+
+class FixedRatioSurfaceView @JvmOverloads constructor(
+ context: Context,
+ attrs: AttributeSet? = null,
+ defStyleAttr: Int = 0
+) : SurfaceView(context, attrs, defStyleAttr) {
+ private var aspectRatio: Float = 0f // (width / height), 0f is a special value for stretch
+
+ /**
+ * Sets the desired aspect ratio for this view
+ * @param ratio the ratio to force the view to, or null to stretch to fit
+ */
+ fun setAspectRatio(ratio: Rational?) {
+ aspectRatio = ratio?.toFloat() ?: 0f
+ }
+
+ override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
+ super.onMeasure(widthMeasureSpec, heightMeasureSpec)
+ val width = MeasureSpec.getSize(widthMeasureSpec)
+ val height = MeasureSpec.getSize(heightMeasureSpec)
+ if (aspectRatio != 0f) {
+ val newWidth: Int
+ val newHeight: Int
+ if (height * aspectRatio < width) {
+ newWidth = (height * aspectRatio).roundToInt()
+ newHeight = height
+ } else {
+ newWidth = width
+ newHeight = (width / aspectRatio).roundToInt()
+ }
+ val left = (width - newWidth) / 2
+ val top = (height - newHeight) / 2
+ setLeftTopRightBottom(left, top, left + newWidth, top + newHeight)
+ } else {
+ setLeftTopRightBottom(0, 0, width, height)
+ }
+ }
+}
diff --git a/src/android/app/src/main/jni/CMakeLists.txt b/src/android/app/src/main/jni/CMakeLists.txt
new file mode 100644
index 000000000..e2ed08e9f
--- /dev/null
+++ b/src/android/app/src/main/jni/CMakeLists.txt
@@ -0,0 +1,27 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+add_library(yuzu-android SHARED
+ android_common/android_common.cpp
+ android_common/android_common.h
+ applets/software_keyboard.cpp
+ applets/software_keyboard.h
+ config.cpp
+ config.h
+ default_ini.h
+ emu_window/emu_window.cpp
+ emu_window/emu_window.h
+ id_cache.cpp
+ id_cache.h
+ native.cpp
+)
+
+set_property(TARGET yuzu-android PROPERTY IMPORTED_LOCATION ${FFmpeg_LIBRARY_DIR})
+
+target_link_libraries(yuzu-android PRIVATE audio_core common core input_common)
+target_link_libraries(yuzu-android PRIVATE android camera2ndk EGL glad inih jnigraphics log)
+if (ARCHITECTURE_arm64)
+ target_link_libraries(yuzu-android PRIVATE adrenotools)
+endif()
+
+set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} yuzu-android)
diff --git a/src/android/app/src/main/jni/android_common/android_common.cpp b/src/android/app/src/main/jni/android_common/android_common.cpp
new file mode 100644
index 000000000..52d8ecfeb
--- /dev/null
+++ b/src/android/app/src/main/jni/android_common/android_common.cpp
@@ -0,0 +1,35 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "jni/android_common/android_common.h"
+
+#include <string>
+#include <string_view>
+
+#include <jni.h>
+
+#include "common/string_util.h"
+
+std::string GetJString(JNIEnv* env, jstring jstr) {
+ if (!jstr) {
+ return {};
+ }
+
+ const jchar* jchars = env->GetStringChars(jstr, nullptr);
+ const jsize length = env->GetStringLength(jstr);
+ const std::u16string_view string_view(reinterpret_cast<const char16_t*>(jchars), length);
+ const std::string converted_string = Common::UTF16ToUTF8(string_view);
+ env->ReleaseStringChars(jstr, jchars);
+
+ return converted_string;
+}
+
+jstring ToJString(JNIEnv* env, std::string_view str) {
+ const std::u16string converted_string = Common::UTF8ToUTF16(str);
+ return env->NewString(reinterpret_cast<const jchar*>(converted_string.data()),
+ static_cast<jint>(converted_string.size()));
+}
+
+jstring ToJString(JNIEnv* env, std::u16string_view str) {
+ return ToJString(env, Common::UTF16ToUTF8(str));
+}
diff --git a/src/android/app/src/main/jni/android_common/android_common.h b/src/android/app/src/main/jni/android_common/android_common.h
new file mode 100644
index 000000000..ccb0c06f7
--- /dev/null
+++ b/src/android/app/src/main/jni/android_common/android_common.h
@@ -0,0 +1,12 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <string>
+
+#include <jni.h>
+
+std::string GetJString(JNIEnv* env, jstring jstr);
+jstring ToJString(JNIEnv* env, std::string_view str);
+jstring ToJString(JNIEnv* env, std::u16string_view str);
diff --git a/src/android/app/src/main/jni/applets/software_keyboard.cpp b/src/android/app/src/main/jni/applets/software_keyboard.cpp
new file mode 100644
index 000000000..74e040478
--- /dev/null
+++ b/src/android/app/src/main/jni/applets/software_keyboard.cpp
@@ -0,0 +1,277 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <map>
+#include <thread>
+
+#include <jni.h>
+
+#include "common/logging/log.h"
+#include "common/string_util.h"
+#include "core/core.h"
+#include "jni/android_common/android_common.h"
+#include "jni/applets/software_keyboard.h"
+#include "jni/id_cache.h"
+
+static jclass s_software_keyboard_class;
+static jclass s_keyboard_config_class;
+static jclass s_keyboard_data_class;
+static jmethodID s_swkbd_execute_normal;
+static jmethodID s_swkbd_execute_inline;
+
+namespace SoftwareKeyboard {
+
+static jobject ToJKeyboardParams(const Core::Frontend::KeyboardInitializeParameters& config) {
+ JNIEnv* env = IDCache::GetEnvForThread();
+ jobject object = env->AllocObject(s_keyboard_config_class);
+
+ env->SetObjectField(object,
+ env->GetFieldID(s_keyboard_config_class, "ok_text", "Ljava/lang/String;"),
+ ToJString(env, config.ok_text));
+ env->SetObjectField(
+ object, env->GetFieldID(s_keyboard_config_class, "header_text", "Ljava/lang/String;"),
+ ToJString(env, config.header_text));
+ env->SetObjectField(object,
+ env->GetFieldID(s_keyboard_config_class, "sub_text", "Ljava/lang/String;"),
+ ToJString(env, config.sub_text));
+ env->SetObjectField(
+ object, env->GetFieldID(s_keyboard_config_class, "guide_text", "Ljava/lang/String;"),
+ ToJString(env, config.guide_text));
+ env->SetObjectField(
+ object, env->GetFieldID(s_keyboard_config_class, "initial_text", "Ljava/lang/String;"),
+ ToJString(env, config.initial_text));
+ env->SetShortField(object,
+ env->GetFieldID(s_keyboard_config_class, "left_optional_symbol_key", "S"),
+ static_cast<jshort>(config.left_optional_symbol_key));
+ env->SetShortField(object,
+ env->GetFieldID(s_keyboard_config_class, "right_optional_symbol_key", "S"),
+ static_cast<jshort>(config.right_optional_symbol_key));
+ env->SetIntField(object, env->GetFieldID(s_keyboard_config_class, "max_text_length", "I"),
+ static_cast<jint>(config.max_text_length));
+ env->SetIntField(object, env->GetFieldID(s_keyboard_config_class, "min_text_length", "I"),
+ static_cast<jint>(config.min_text_length));
+ env->SetIntField(object,
+ env->GetFieldID(s_keyboard_config_class, "initial_cursor_position", "I"),
+ static_cast<jint>(config.initial_cursor_position));
+ env->SetIntField(object, env->GetFieldID(s_keyboard_config_class, "type", "I"),
+ static_cast<jint>(config.type));
+ env->SetIntField(object, env->GetFieldID(s_keyboard_config_class, "password_mode", "I"),
+ static_cast<jint>(config.password_mode));
+ env->SetIntField(object, env->GetFieldID(s_keyboard_config_class, "text_draw_type", "I"),
+ static_cast<jint>(config.text_draw_type));
+ env->SetIntField(object, env->GetFieldID(s_keyboard_config_class, "key_disable_flags", "I"),
+ static_cast<jint>(config.key_disable_flags.raw));
+ env->SetBooleanField(object,
+ env->GetFieldID(s_keyboard_config_class, "use_blur_background", "Z"),
+ static_cast<jboolean>(config.use_blur_background));
+ env->SetBooleanField(object,
+ env->GetFieldID(s_keyboard_config_class, "enable_backspace_button", "Z"),
+ static_cast<jboolean>(config.enable_backspace_button));
+ env->SetBooleanField(object,
+ env->GetFieldID(s_keyboard_config_class, "enable_return_button", "Z"),
+ static_cast<jboolean>(config.enable_return_button));
+ env->SetBooleanField(object,
+ env->GetFieldID(s_keyboard_config_class, "disable_cancel_button", "Z"),
+ static_cast<jboolean>(config.disable_cancel_button));
+
+ return object;
+}
+
+AndroidKeyboard::ResultData AndroidKeyboard::ResultData::CreateFromFrontend(jobject object) {
+ JNIEnv* env = IDCache::GetEnvForThread();
+ const jstring string = reinterpret_cast<jstring>(env->GetObjectField(
+ object, env->GetFieldID(s_keyboard_data_class, "text", "Ljava/lang/String;")));
+ return ResultData{GetJString(env, string),
+ static_cast<Service::AM::Applets::SwkbdResult>(env->GetIntField(
+ object, env->GetFieldID(s_keyboard_data_class, "result", "I")))};
+}
+
+AndroidKeyboard::~AndroidKeyboard() = default;
+
+void AndroidKeyboard::InitializeKeyboard(
+ bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters,
+ SubmitNormalCallback submit_normal_callback_, SubmitInlineCallback submit_inline_callback_) {
+ if (is_inline) {
+ LOG_WARNING(
+ Frontend,
+ "(STUBBED) called, backend requested to initialize the inline software keyboard.");
+
+ submit_inline_callback = std::move(submit_inline_callback_);
+ } else {
+ LOG_WARNING(
+ Frontend,
+ "(STUBBED) called, backend requested to initialize the normal software keyboard.");
+
+ submit_normal_callback = std::move(submit_normal_callback_);
+ }
+
+ parameters = std::move(initialize_parameters);
+
+ LOG_INFO(Frontend,
+ "\nKeyboardInitializeParameters:"
+ "\nok_text={}"
+ "\nheader_text={}"
+ "\nsub_text={}"
+ "\nguide_text={}"
+ "\ninitial_text={}"
+ "\nmax_text_length={}"
+ "\nmin_text_length={}"
+ "\ninitial_cursor_position={}"
+ "\ntype={}"
+ "\npassword_mode={}"
+ "\ntext_draw_type={}"
+ "\nkey_disable_flags={}"
+ "\nuse_blur_background={}"
+ "\nenable_backspace_button={}"
+ "\nenable_return_button={}"
+ "\ndisable_cancel_button={}",
+ Common::UTF16ToUTF8(parameters.ok_text), Common::UTF16ToUTF8(parameters.header_text),
+ Common::UTF16ToUTF8(parameters.sub_text), Common::UTF16ToUTF8(parameters.guide_text),
+ Common::UTF16ToUTF8(parameters.initial_text), parameters.max_text_length,
+ parameters.min_text_length, parameters.initial_cursor_position, parameters.type,
+ parameters.password_mode, parameters.text_draw_type, parameters.key_disable_flags.raw,
+ parameters.use_blur_background, parameters.enable_backspace_button,
+ parameters.enable_return_button, parameters.disable_cancel_button);
+}
+
+void AndroidKeyboard::ShowNormalKeyboard() const {
+ LOG_DEBUG(Frontend, "called, backend requested to show the normal software keyboard.");
+
+ ResultData data{};
+
+ // Pivot to a new thread, as we cannot call GetEnvForThread() from a Fiber.
+ std::thread([&] {
+ data = ResultData::CreateFromFrontend(IDCache::GetEnvForThread()->CallStaticObjectMethod(
+ s_software_keyboard_class, s_swkbd_execute_normal, ToJKeyboardParams(parameters)));
+ }).join();
+
+ SubmitNormalText(data);
+}
+
+void AndroidKeyboard::ShowTextCheckDialog(
+ Service::AM::Applets::SwkbdTextCheckResult text_check_result,
+ std::u16string text_check_message) const {
+ LOG_WARNING(Frontend, "(STUBBED) called, backend requested to show the text check dialog.");
+}
+
+void AndroidKeyboard::ShowInlineKeyboard(
+ Core::Frontend::InlineAppearParameters appear_parameters) const {
+ LOG_WARNING(Frontend,
+ "(STUBBED) called, backend requested to show the inline software keyboard.");
+
+ LOG_INFO(Frontend,
+ "\nInlineAppearParameters:"
+ "\nmax_text_length={}"
+ "\nmin_text_length={}"
+ "\nkey_top_scale_x={}"
+ "\nkey_top_scale_y={}"
+ "\nkey_top_translate_x={}"
+ "\nkey_top_translate_y={}"
+ "\ntype={}"
+ "\nkey_disable_flags={}"
+ "\nkey_top_as_floating={}"
+ "\nenable_backspace_button={}"
+ "\nenable_return_button={}"
+ "\ndisable_cancel_button={}",
+ appear_parameters.max_text_length, appear_parameters.min_text_length,
+ appear_parameters.key_top_scale_x, appear_parameters.key_top_scale_y,
+ appear_parameters.key_top_translate_x, appear_parameters.key_top_translate_y,
+ appear_parameters.type, appear_parameters.key_disable_flags.raw,
+ appear_parameters.key_top_as_floating, appear_parameters.enable_backspace_button,
+ appear_parameters.enable_return_button, appear_parameters.disable_cancel_button);
+
+ // Pivot to a new thread, as we cannot call GetEnvForThread() from a Fiber.
+ m_is_inline_active = true;
+ std::thread([&] {
+ IDCache::GetEnvForThread()->CallStaticVoidMethod(
+ s_software_keyboard_class, s_swkbd_execute_inline, ToJKeyboardParams(parameters));
+ }).join();
+}
+
+void AndroidKeyboard::HideInlineKeyboard() const {
+ LOG_WARNING(Frontend,
+ "(STUBBED) called, backend requested to hide the inline software keyboard.");
+}
+
+void AndroidKeyboard::InlineTextChanged(
+ Core::Frontend::InlineTextParameters text_parameters) const {
+ LOG_WARNING(Frontend,
+ "(STUBBED) called, backend requested to change the inline keyboard text.");
+
+ LOG_INFO(Frontend,
+ "\nInlineTextParameters:"
+ "\ninput_text={}"
+ "\ncursor_position={}",
+ Common::UTF16ToUTF8(text_parameters.input_text), text_parameters.cursor_position);
+
+ submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString,
+ text_parameters.input_text, text_parameters.cursor_position);
+}
+
+void AndroidKeyboard::ExitKeyboard() const {
+ LOG_WARNING(Frontend, "(STUBBED) called, backend requested to exit the software keyboard.");
+}
+
+void AndroidKeyboard::SubmitInlineKeyboardText(std::u16string submitted_text) {
+ if (!m_is_inline_active) {
+ return;
+ }
+
+ m_current_text += submitted_text;
+
+ submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString, m_current_text,
+ m_current_text.size());
+}
+
+void AndroidKeyboard::SubmitInlineKeyboardInput(int key_code) {
+ static constexpr int KEYCODE_BACK = 4;
+ static constexpr int KEYCODE_ENTER = 66;
+ static constexpr int KEYCODE_DEL = 67;
+
+ if (!m_is_inline_active) {
+ return;
+ }
+
+ switch (key_code) {
+ case KEYCODE_BACK:
+ case KEYCODE_ENTER:
+ m_is_inline_active = false;
+ submit_inline_callback(Service::AM::Applets::SwkbdReplyType::DecidedEnter, m_current_text,
+ static_cast<s32>(m_current_text.size()));
+ break;
+ case KEYCODE_DEL:
+ m_current_text.pop_back();
+ submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString, m_current_text,
+ m_current_text.size());
+ break;
+ }
+}
+
+void AndroidKeyboard::SubmitNormalText(const ResultData& data) const {
+ submit_normal_callback(data.result, Common::UTF8ToUTF16(data.text), true);
+}
+
+void InitJNI(JNIEnv* env) {
+ s_software_keyboard_class = reinterpret_cast<jclass>(
+ env->NewGlobalRef(env->FindClass("org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard")));
+ s_keyboard_config_class = reinterpret_cast<jclass>(env->NewGlobalRef(
+ env->FindClass("org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard$KeyboardConfig")));
+ s_keyboard_data_class = reinterpret_cast<jclass>(env->NewGlobalRef(
+ env->FindClass("org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard$KeyboardData")));
+
+ s_swkbd_execute_normal = env->GetStaticMethodID(
+ s_software_keyboard_class, "executeNormal",
+ "(Lorg/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard$KeyboardConfig;)Lorg/yuzu/yuzu_emu/"
+ "applets/keyboard/SoftwareKeyboard$KeyboardData;");
+ s_swkbd_execute_inline = env->GetStaticMethodID(
+ s_software_keyboard_class, "executeInline",
+ "(Lorg/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard$KeyboardConfig;)V");
+}
+
+void CleanupJNI(JNIEnv* env) {
+ env->DeleteGlobalRef(s_software_keyboard_class);
+ env->DeleteGlobalRef(s_keyboard_config_class);
+ env->DeleteGlobalRef(s_keyboard_data_class);
+}
+
+} // namespace SoftwareKeyboard
diff --git a/src/android/app/src/main/jni/applets/software_keyboard.h b/src/android/app/src/main/jni/applets/software_keyboard.h
new file mode 100644
index 000000000..b2fb59b68
--- /dev/null
+++ b/src/android/app/src/main/jni/applets/software_keyboard.h
@@ -0,0 +1,78 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <jni.h>
+
+#include "core/frontend/applets/software_keyboard.h"
+
+namespace SoftwareKeyboard {
+
+class AndroidKeyboard final : public Core::Frontend::SoftwareKeyboardApplet {
+public:
+ ~AndroidKeyboard() override;
+
+ void Close() const override {
+ ExitKeyboard();
+ }
+
+ void InitializeKeyboard(bool is_inline,
+ Core::Frontend::KeyboardInitializeParameters initialize_parameters,
+ SubmitNormalCallback submit_normal_callback_,
+ SubmitInlineCallback submit_inline_callback_) override;
+
+ void ShowNormalKeyboard() const override;
+
+ void ShowTextCheckDialog(Service::AM::Applets::SwkbdTextCheckResult text_check_result,
+ std::u16string text_check_message) const override;
+
+ void ShowInlineKeyboard(
+ Core::Frontend::InlineAppearParameters appear_parameters) const override;
+
+ void HideInlineKeyboard() const override;
+
+ void InlineTextChanged(Core::Frontend::InlineTextParameters text_parameters) const override;
+
+ void ExitKeyboard() const override;
+
+ void SubmitInlineKeyboardText(std::u16string submitted_text);
+
+ void SubmitInlineKeyboardInput(int key_code);
+
+private:
+ struct ResultData {
+ static ResultData CreateFromFrontend(jobject object);
+
+ std::string text;
+ Service::AM::Applets::SwkbdResult result{};
+ };
+
+ void SubmitNormalText(const ResultData& result) const;
+
+ Core::Frontend::KeyboardInitializeParameters parameters{};
+
+ mutable SubmitNormalCallback submit_normal_callback;
+ mutable SubmitInlineCallback submit_inline_callback;
+
+private:
+ mutable bool m_is_inline_active{};
+ std::u16string m_current_text;
+};
+
+// Should be called in JNI_Load
+void InitJNI(JNIEnv* env);
+
+// Should be called in JNI_Unload
+void CleanupJNI(JNIEnv* env);
+
+} // namespace SoftwareKeyboard
+
+// Native function calls
+extern "C" {
+JNIEXPORT jobject JNICALL Java_org_citra_citra_1emu_applets_SoftwareKeyboard_ValidateFilters(
+ JNIEnv* env, jclass clazz, jstring text);
+
+JNIEXPORT jobject JNICALL Java_org_citra_citra_1emu_applets_SoftwareKeyboard_ValidateInput(
+ JNIEnv* env, jclass clazz, jstring text);
+}
diff --git a/src/android/app/src/main/jni/config.cpp b/src/android/app/src/main/jni/config.cpp
new file mode 100644
index 000000000..43e8aa72a
--- /dev/null
+++ b/src/android/app/src/main/jni/config.cpp
@@ -0,0 +1,301 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <memory>
+#include <optional>
+#include <sstream>
+
+#include <INIReader.h>
+#include "common/fs/file.h"
+#include "common/fs/fs.h"
+#include "common/fs/path_util.h"
+#include "common/logging/log.h"
+#include "common/settings.h"
+#include "core/hle/service/acc/profile_manager.h"
+#include "input_common/main.h"
+#include "jni/config.h"
+#include "jni/default_ini.h"
+
+namespace FS = Common::FS;
+
+Config::Config(std::optional<std::filesystem::path> config_path)
+ : config_loc{config_path.value_or(FS::GetYuzuPath(FS::YuzuPath::ConfigDir) / "config.ini")},
+ config{std::make_unique<INIReader>(FS::PathToUTF8String(config_loc))} {
+ Reload();
+}
+
+Config::~Config() = default;
+
+bool Config::LoadINI(const std::string& default_contents, bool retry) {
+ const auto config_loc_str = FS::PathToUTF8String(config_loc);
+ if (config->ParseError() < 0) {
+ if (retry) {
+ LOG_WARNING(Config, "Failed to load {}. Creating file from defaults...",
+ config_loc_str);
+
+ void(FS::CreateParentDir(config_loc));
+ void(FS::WriteStringToFile(config_loc, FS::FileType::TextFile, default_contents));
+
+ config = std::make_unique<INIReader>(config_loc_str);
+
+ return LoadINI(default_contents, false);
+ }
+ LOG_ERROR(Config, "Failed.");
+ return false;
+ }
+ LOG_INFO(Config, "Successfully loaded {}", config_loc_str);
+ return true;
+}
+
+template <>
+void Config::ReadSetting(const std::string& group, Settings::Setting<std::string>& setting) {
+ std::string setting_value = config->Get(group, setting.GetLabel(), setting.GetDefault());
+ if (setting_value.empty()) {
+ setting_value = setting.GetDefault();
+ }
+ setting = std::move(setting_value);
+}
+
+template <>
+void Config::ReadSetting(const std::string& group, Settings::Setting<bool>& setting) {
+ setting = config->GetBoolean(group, setting.GetLabel(), setting.GetDefault());
+}
+
+template <typename Type, bool ranged>
+void Config::ReadSetting(const std::string& group, Settings::Setting<Type, ranged>& setting) {
+ setting = static_cast<Type>(
+ config->GetInteger(group, setting.GetLabel(), static_cast<long>(setting.GetDefault())));
+}
+
+void Config::ReadValues() {
+ ReadSetting("ControlsGeneral", Settings::values.mouse_enabled);
+ ReadSetting("ControlsGeneral", Settings::values.touch_device);
+ ReadSetting("ControlsGeneral", Settings::values.keyboard_enabled);
+ ReadSetting("ControlsGeneral", Settings::values.debug_pad_enabled);
+ ReadSetting("ControlsGeneral", Settings::values.vibration_enabled);
+ ReadSetting("ControlsGeneral", Settings::values.enable_accurate_vibrations);
+ ReadSetting("ControlsGeneral", Settings::values.motion_enabled);
+ Settings::values.touchscreen.enabled =
+ config->GetBoolean("ControlsGeneral", "touch_enabled", true);
+ Settings::values.touchscreen.rotation_angle =
+ config->GetInteger("ControlsGeneral", "touch_angle", 0);
+ Settings::values.touchscreen.diameter_x =
+ config->GetInteger("ControlsGeneral", "touch_diameter_x", 15);
+ Settings::values.touchscreen.diameter_y =
+ config->GetInteger("ControlsGeneral", "touch_diameter_y", 15);
+
+ int num_touch_from_button_maps =
+ config->GetInteger("ControlsGeneral", "touch_from_button_map", 0);
+ if (num_touch_from_button_maps > 0) {
+ for (int i = 0; i < num_touch_from_button_maps; ++i) {
+ Settings::TouchFromButtonMap map;
+ map.name = config->Get("ControlsGeneral",
+ std::string("touch_from_button_maps_") + std::to_string(i) +
+ std::string("_name"),
+ "default");
+ const int num_touch_maps = config->GetInteger(
+ "ControlsGeneral",
+ std::string("touch_from_button_maps_") + std::to_string(i) + std::string("_count"),
+ 0);
+ map.buttons.reserve(num_touch_maps);
+
+ for (int j = 0; j < num_touch_maps; ++j) {
+ std::string touch_mapping =
+ config->Get("ControlsGeneral",
+ std::string("touch_from_button_maps_") + std::to_string(i) +
+ std::string("_bind_") + std::to_string(j),
+ "");
+ map.buttons.emplace_back(std::move(touch_mapping));
+ }
+
+ Settings::values.touch_from_button_maps.emplace_back(std::move(map));
+ }
+ } else {
+ Settings::values.touch_from_button_maps.emplace_back(
+ Settings::TouchFromButtonMap{"default", {}});
+ num_touch_from_button_maps = 1;
+ }
+ Settings::values.touch_from_button_map_index = std::clamp(
+ Settings::values.touch_from_button_map_index.GetValue(), 0, num_touch_from_button_maps - 1);
+
+ ReadSetting("ControlsGeneral", Settings::values.udp_input_servers);
+
+ // Data Storage
+ ReadSetting("Data Storage", Settings::values.use_virtual_sd);
+ FS::SetYuzuPath(FS::YuzuPath::NANDDir,
+ config->Get("Data Storage", "nand_directory",
+ FS::GetYuzuPathString(FS::YuzuPath::NANDDir)));
+ FS::SetYuzuPath(FS::YuzuPath::SDMCDir,
+ config->Get("Data Storage", "sdmc_directory",
+ FS::GetYuzuPathString(FS::YuzuPath::SDMCDir)));
+ FS::SetYuzuPath(FS::YuzuPath::LoadDir,
+ config->Get("Data Storage", "load_directory",
+ FS::GetYuzuPathString(FS::YuzuPath::LoadDir)));
+ FS::SetYuzuPath(FS::YuzuPath::DumpDir,
+ config->Get("Data Storage", "dump_directory",
+ FS::GetYuzuPathString(FS::YuzuPath::DumpDir)));
+ ReadSetting("Data Storage", Settings::values.gamecard_inserted);
+ ReadSetting("Data Storage", Settings::values.gamecard_current_game);
+ ReadSetting("Data Storage", Settings::values.gamecard_path);
+
+ // System
+ ReadSetting("System", Settings::values.current_user);
+ Settings::values.current_user = std::clamp<int>(Settings::values.current_user.GetValue(), 0,
+ Service::Account::MAX_USERS - 1);
+
+ // Disable docked mode by default on Android
+ Settings::values.use_docked_mode = config->GetBoolean("System", "use_docked_mode", false);
+
+ const auto rng_seed_enabled = config->GetBoolean("System", "rng_seed_enabled", false);
+ if (rng_seed_enabled) {
+ Settings::values.rng_seed.SetValue(config->GetInteger("System", "rng_seed", 0));
+ } else {
+ Settings::values.rng_seed.SetValue(std::nullopt);
+ }
+
+ const auto custom_rtc_enabled = config->GetBoolean("System", "custom_rtc_enabled", false);
+ if (custom_rtc_enabled) {
+ Settings::values.custom_rtc = config->GetInteger("System", "custom_rtc", 0);
+ } else {
+ Settings::values.custom_rtc = std::nullopt;
+ }
+
+ ReadSetting("System", Settings::values.language_index);
+ ReadSetting("System", Settings::values.region_index);
+ ReadSetting("System", Settings::values.time_zone_index);
+ ReadSetting("System", Settings::values.sound_index);
+
+ // Core
+ ReadSetting("Core", Settings::values.use_multi_core);
+ ReadSetting("Core", Settings::values.use_unsafe_extended_memory_layout);
+
+ // Cpu
+ ReadSetting("Cpu", Settings::values.cpu_accuracy);
+ ReadSetting("Cpu", Settings::values.cpu_debug_mode);
+ ReadSetting("Cpu", Settings::values.cpuopt_page_tables);
+ ReadSetting("Cpu", Settings::values.cpuopt_block_linking);
+ ReadSetting("Cpu", Settings::values.cpuopt_return_stack_buffer);
+ ReadSetting("Cpu", Settings::values.cpuopt_fast_dispatcher);
+ ReadSetting("Cpu", Settings::values.cpuopt_context_elimination);
+ ReadSetting("Cpu", Settings::values.cpuopt_const_prop);
+ ReadSetting("Cpu", Settings::values.cpuopt_misc_ir);
+ ReadSetting("Cpu", Settings::values.cpuopt_reduce_misalign_checks);
+ ReadSetting("Cpu", Settings::values.cpuopt_fastmem);
+ ReadSetting("Cpu", Settings::values.cpuopt_fastmem_exclusives);
+ ReadSetting("Cpu", Settings::values.cpuopt_recompile_exclusives);
+ ReadSetting("Cpu", Settings::values.cpuopt_ignore_memory_aborts);
+ ReadSetting("Cpu", Settings::values.cpuopt_unsafe_unfuse_fma);
+ ReadSetting("Cpu", Settings::values.cpuopt_unsafe_reduce_fp_error);
+ ReadSetting("Cpu", Settings::values.cpuopt_unsafe_ignore_standard_fpcr);
+ ReadSetting("Cpu", Settings::values.cpuopt_unsafe_inaccurate_nan);
+ ReadSetting("Cpu", Settings::values.cpuopt_unsafe_fastmem_check);
+ ReadSetting("Cpu", Settings::values.cpuopt_unsafe_ignore_global_monitor);
+
+ // Renderer
+ ReadSetting("Renderer", Settings::values.renderer_backend);
+ ReadSetting("Renderer", Settings::values.renderer_debug);
+ ReadSetting("Renderer", Settings::values.renderer_shader_feedback);
+ ReadSetting("Renderer", Settings::values.enable_nsight_aftermath);
+ ReadSetting("Renderer", Settings::values.disable_shader_loop_safety_checks);
+ ReadSetting("Renderer", Settings::values.vulkan_device);
+
+ ReadSetting("Renderer", Settings::values.resolution_setup);
+ ReadSetting("Renderer", Settings::values.scaling_filter);
+ ReadSetting("Renderer", Settings::values.fsr_sharpening_slider);
+ ReadSetting("Renderer", Settings::values.anti_aliasing);
+ ReadSetting("Renderer", Settings::values.fullscreen_mode);
+ ReadSetting("Renderer", Settings::values.aspect_ratio);
+ ReadSetting("Renderer", Settings::values.max_anisotropy);
+ ReadSetting("Renderer", Settings::values.use_speed_limit);
+ ReadSetting("Renderer", Settings::values.speed_limit);
+ ReadSetting("Renderer", Settings::values.use_disk_shader_cache);
+ ReadSetting("Renderer", Settings::values.use_asynchronous_gpu_emulation);
+ ReadSetting("Renderer", Settings::values.vsync_mode);
+ ReadSetting("Renderer", Settings::values.shader_backend);
+ ReadSetting("Renderer", Settings::values.use_asynchronous_shaders);
+ ReadSetting("Renderer", Settings::values.nvdec_emulation);
+ ReadSetting("Renderer", Settings::values.use_fast_gpu_time);
+ ReadSetting("Renderer", Settings::values.use_vulkan_driver_pipeline_cache);
+
+ ReadSetting("Renderer", Settings::values.bg_red);
+ ReadSetting("Renderer", Settings::values.bg_green);
+ ReadSetting("Renderer", Settings::values.bg_blue);
+
+ // Use GPU accuracy normal by default on Android
+ Settings::values.gpu_accuracy = static_cast<Settings::GPUAccuracy>(config->GetInteger(
+ "Renderer", "gpu_accuracy", static_cast<u32>(Settings::GPUAccuracy::Normal)));
+
+ // Use GPU default anisotropic filtering on Android
+ Settings::values.max_anisotropy = config->GetInteger("Renderer", "max_anisotropy", 1);
+
+ // Disable ASTC compute by default on Android
+ Settings::values.accelerate_astc = config->GetBoolean("Renderer", "accelerate_astc", false);
+
+ // Enable asynchronous presentation by default on Android
+ Settings::values.async_presentation =
+ config->GetBoolean("Renderer", "async_presentation", true);
+
+ // Disable force_max_clock by default on Android
+ Settings::values.renderer_force_max_clock =
+ config->GetBoolean("Renderer", "force_max_clock", false);
+
+ // Disable use_reactive_flushing by default on Android
+ Settings::values.use_reactive_flushing =
+ config->GetBoolean("Renderer", "use_reactive_flushing", false);
+
+ // Audio
+ ReadSetting("Audio", Settings::values.sink_id);
+ ReadSetting("Audio", Settings::values.audio_output_device_id);
+ ReadSetting("Audio", Settings::values.volume);
+
+ // Miscellaneous
+ // log_filter has a different default here than from common
+ Settings::values.log_filter = "*:Info";
+ ReadSetting("Miscellaneous", Settings::values.use_dev_keys);
+
+ // Debugging
+ Settings::values.record_frame_times =
+ config->GetBoolean("Debugging", "record_frame_times", false);
+ ReadSetting("Debugging", Settings::values.dump_exefs);
+ ReadSetting("Debugging", Settings::values.dump_nso);
+ ReadSetting("Debugging", Settings::values.enable_fs_access_log);
+ ReadSetting("Debugging", Settings::values.reporting_services);
+ ReadSetting("Debugging", Settings::values.quest_flag);
+ ReadSetting("Debugging", Settings::values.use_debug_asserts);
+ ReadSetting("Debugging", Settings::values.use_auto_stub);
+ ReadSetting("Debugging", Settings::values.disable_macro_jit);
+ ReadSetting("Debugging", Settings::values.disable_macro_hle);
+ ReadSetting("Debugging", Settings::values.use_gdbstub);
+ ReadSetting("Debugging", Settings::values.gdbstub_port);
+
+ const auto title_list = config->Get("AddOns", "title_ids", "");
+ std::stringstream ss(title_list);
+ std::string line;
+ while (std::getline(ss, line, '|')) {
+ const auto title_id = std::stoul(line, nullptr, 16);
+ const auto disabled_list = config->Get("AddOns", "disabled_" + line, "");
+
+ std::stringstream inner_ss(disabled_list);
+ std::string inner_line;
+ std::vector<std::string> out;
+ while (std::getline(inner_ss, inner_line, '|')) {
+ out.push_back(inner_line);
+ }
+
+ Settings::values.disabled_addons.insert_or_assign(title_id, out);
+ }
+
+ // Web Service
+ ReadSetting("WebService", Settings::values.enable_telemetry);
+ ReadSetting("WebService", Settings::values.web_api_url);
+ ReadSetting("WebService", Settings::values.yuzu_username);
+ ReadSetting("WebService", Settings::values.yuzu_token);
+
+ // Network
+ ReadSetting("Network", Settings::values.network_interface);
+}
+
+void Config::Reload() {
+ LoadINI(DefaultINI::android_config_file);
+ ReadValues();
+}
diff --git a/src/android/app/src/main/jni/config.h b/src/android/app/src/main/jni/config.h
new file mode 100644
index 000000000..0d7d6e94d
--- /dev/null
+++ b/src/android/app/src/main/jni/config.h
@@ -0,0 +1,37 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <filesystem>
+#include <memory>
+#include <optional>
+#include <string>
+
+#include "common/settings.h"
+
+class INIReader;
+
+class Config {
+ std::filesystem::path config_loc;
+ std::unique_ptr<INIReader> config;
+
+ bool LoadINI(const std::string& default_contents = "", bool retry = true);
+ void ReadValues();
+
+public:
+ explicit Config(std::optional<std::filesystem::path> config_path = std::nullopt);
+ ~Config();
+
+ void Reload();
+
+private:
+ /**
+ * Applies a value read from the sdl2_config to a Setting.
+ *
+ * @param group The name of the INI group
+ * @param setting The yuzu setting to modify
+ */
+ template <typename Type, bool ranged>
+ void ReadSetting(const std::string& group, Settings::Setting<Type, ranged>& setting);
+};
diff --git a/src/android/app/src/main/jni/default_ini.h b/src/android/app/src/main/jni/default_ini.h
new file mode 100644
index 000000000..d81422a74
--- /dev/null
+++ b/src/android/app/src/main/jni/default_ini.h
@@ -0,0 +1,511 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+namespace DefaultINI {
+
+const char* android_config_file = R"(
+
+[ControlsP0]
+# The input devices and parameters for each Switch native input
+# The config section determines the player number where the config will be applied on. For example "ControlsP0", "ControlsP1", ...
+# It should be in the format of "engine:[engine_name],[param1]:[value1],[param2]:[value2]..."
+# Escape characters $0 (for ':'), $1 (for ',') and $2 (for '$') can be used in values
+
+# Indicates if this player should be connected at boot
+connected=
+
+# for button input, the following devices are available:
+# - "keyboard" (default) for keyboard input. Required parameters:
+# - "code": the code of the key to bind
+# - "sdl" for joystick input using SDL. Required parameters:
+# - "guid": SDL identification GUID of the joystick
+# - "port": the index of the joystick to bind
+# - "button"(optional): the index of the button to bind
+# - "hat"(optional): the index of the hat to bind as direction buttons
+# - "axis"(optional): the index of the axis to bind
+# - "direction"(only used for hat): the direction name of the hat to bind. Can be "up", "down", "left" or "right"
+# - "threshold"(only used for axis): a float value in (-1.0, 1.0) which the button is
+# triggered if the axis value crosses
+# - "direction"(only used for axis): "+" means the button is triggered when the axis value
+# is greater than the threshold; "-" means the button is triggered when the axis value
+# is smaller than the threshold
+button_a=
+button_b=
+button_x=
+button_y=
+button_lstick=
+button_rstick=
+button_l=
+button_r=
+button_zl=
+button_zr=
+button_plus=
+button_minus=
+button_dleft=
+button_dup=
+button_dright=
+button_ddown=
+button_lstick_left=
+button_lstick_up=
+button_lstick_right=
+button_lstick_down=
+button_sl=
+button_sr=
+button_home=
+button_screenshot=
+
+# for analog input, the following devices are available:
+# - "analog_from_button" (default) for emulating analog input from direction buttons. Required parameters:
+# - "up", "down", "left", "right": sub-devices for each direction.
+# Should be in the format as a button input devices using escape characters, for example, "engine$0keyboard$1code$00"
+# - "modifier": sub-devices as a modifier.
+# - "modifier_scale": a float number representing the applied modifier scale to the analog input.
+# Must be in range of 0.0-1.0. Defaults to 0.5
+# - "sdl" for joystick input using SDL. Required parameters:
+# - "guid": SDL identification GUID of the joystick
+# - "port": the index of the joystick to bind
+# - "axis_x": the index of the axis to bind as x-axis (default to 0)
+# - "axis_y": the index of the axis to bind as y-axis (default to 1)
+lstick=
+rstick=
+
+# for motion input, the following devices are available:
+# - "keyboard" (default) for emulating random motion input from buttons. Required parameters:
+# - "code": the code of the key to bind
+# - "sdl" for motion input using SDL. Required parameters:
+# - "guid": SDL identification GUID of the joystick
+# - "port": the index of the joystick to bind
+# - "motion": the index of the motion sensor to bind
+# - "cemuhookudp" for motion input using Cemu Hook protocol. Required parameters:
+# - "guid": the IP address of the cemu hook server encoded to a hex string. for example 192.168.0.1 = "c0a80001"
+# - "port": the port of the cemu hook server
+# - "pad": the index of the joystick
+# - "motion": the index of the motion sensor of the joystick to bind
+motionleft=
+motionright=
+
+[ControlsGeneral]
+# To use the debug_pad, prepend `debug_pad_` before each button setting above.
+# i.e. debug_pad_button_a=
+
+# Enable debug pad inputs to the guest
+# 0 (default): Disabled, 1: Enabled
+debug_pad_enabled =
+
+# Whether to enable or disable vibration
+# 0: Disabled, 1 (default): Enabled
+vibration_enabled=
+
+# Whether to enable or disable accurate vibrations
+# 0 (default): Disabled, 1: Enabled
+enable_accurate_vibrations=
+
+# Enables controller motion inputs
+# 0: Disabled, 1 (default): Enabled
+motion_enabled =
+
+# Defines the udp device's touch screen coordinate system for cemuhookudp devices
+# - "min_x", "min_y", "max_x", "max_y"
+touch_device=
+
+# for mapping buttons to touch inputs.
+#touch_from_button_map=1
+#touch_from_button_maps_0_name=default
+#touch_from_button_maps_0_count=2
+#touch_from_button_maps_0_bind_0=foo
+#touch_from_button_maps_0_bind_1=bar
+# etc.
+
+# List of Cemuhook UDP servers, delimited by ','.
+# Default: 127.0.0.1:26760
+# Example: 127.0.0.1:26760,123.4.5.67:26761
+udp_input_servers =
+
+# Enable controlling an axis via a mouse input.
+# 0 (default): Off, 1: On
+mouse_panning =
+
+# Set mouse sensitivity.
+# Default: 1.0
+mouse_panning_sensitivity =
+
+# Emulate an analog control stick from keyboard inputs.
+# 0 (default): Disabled, 1: Enabled
+emulate_analog_keyboard =
+
+# Enable mouse inputs to the guest
+# 0 (default): Disabled, 1: Enabled
+mouse_enabled =
+
+# Enable keyboard inputs to the guest
+# 0 (default): Disabled, 1: Enabled
+keyboard_enabled =
+
+[Core]
+# Whether to use multi-core for CPU emulation
+# 0: Disabled, 1 (default): Enabled
+use_multi_core =
+
+# Enable unsafe extended guest system memory layout (8GB DRAM)
+# 0 (default): Disabled, 1: Enabled
+use_unsafe_extended_memory_layout =
+
+[Cpu]
+# Adjusts various optimizations.
+# Auto-select mode enables choice unsafe optimizations.
+# Accurate enables only safe optimizations.
+# Unsafe allows any unsafe optimizations.
+# 0 (default): Auto-select, 1: Accurate, 2: Enable unsafe optimizations
+cpu_accuracy =
+
+# Allow disabling safe optimizations.
+# 0 (default): Disabled, 1: Enabled
+cpu_debug_mode =
+
+# Enable inline page tables optimization (faster guest memory access)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_page_tables =
+
+# Enable block linking CPU optimization (reduce block dispatcher use during predictable jumps)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_block_linking =
+
+# Enable return stack buffer CPU optimization (reduce block dispatcher use during predictable returns)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_return_stack_buffer =
+
+# Enable fast dispatcher CPU optimization (use a two-tiered dispatcher architecture)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_fast_dispatcher =
+
+# Enable context elimination CPU Optimization (reduce host memory use for guest context)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_context_elimination =
+
+# Enable constant propagation CPU optimization (basic IR optimization)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_const_prop =
+
+# Enable miscellaneous CPU optimizations (basic IR optimization)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_misc_ir =
+
+# Enable reduction of memory misalignment checks (reduce memory fallbacks for misaligned access)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_reduce_misalign_checks =
+
+# Enable Host MMU Emulation (faster guest memory access)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_fastmem =
+
+# Enable Host MMU Emulation for exclusive memory instructions (faster guest memory access)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_fastmem_exclusives =
+
+# Enable fallback on failure of fastmem of exclusive memory instructions (faster guest memory access)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_recompile_exclusives =
+
+# Enable optimization to ignore invalid memory accesses (faster guest memory access)
+# 0: Disabled, 1 (default): Enabled
+cpuopt_ignore_memory_aborts =
+
+# Enable unfuse FMA (improve performance on CPUs without FMA)
+# Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
+# 0: Disabled, 1 (default): Enabled
+cpuopt_unsafe_unfuse_fma =
+
+# Enable faster FRSQRTE and FRECPE
+# Only enabled if cpu_accuracy is set to Unsafe.
+# 0: Disabled, 1 (default): Enabled
+cpuopt_unsafe_reduce_fp_error =
+
+# Enable faster ASIMD instructions (32 bits only)
+# Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
+# 0: Disabled, 1 (default): Enabled
+cpuopt_unsafe_ignore_standard_fpcr =
+
+# Enable inaccurate NaN handling
+# Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
+# 0: Disabled, 1 (default): Enabled
+cpuopt_unsafe_inaccurate_nan =
+
+# Disable address space checks (64 bits only)
+# Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
+# 0: Disabled, 1 (default): Enabled
+cpuopt_unsafe_fastmem_check =
+
+# Enable faster exclusive instructions
+# Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
+# 0: Disabled, 1 (default): Enabled
+cpuopt_unsafe_ignore_global_monitor =
+
+[Renderer]
+# Which backend API to use.
+# 0: OpenGL (unsupported), 1 (default): Vulkan, 2: Null
+backend =
+
+# Whether to enable asynchronous presentation (Vulkan only)
+# 0: Off, 1 (default): On
+async_presentation =
+
+# Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied).
+# 0 (default): Disabled, 1: Enabled
+force_max_clock =
+
+# Enable graphics API debugging mode.
+# 0 (default): Disabled, 1: Enabled
+debug =
+
+# Enable shader feedback.
+# 0 (default): Disabled, 1: Enabled
+renderer_shader_feedback =
+
+# Enable Nsight Aftermath crash dumps
+# 0 (default): Disabled, 1: Enabled
+nsight_aftermath =
+
+# Disable shader loop safety checks, executing the shader without loop logic changes
+# 0 (default): Disabled, 1: Enabled
+disable_shader_loop_safety_checks =
+
+# Which Vulkan physical device to use (defaults to 0)
+vulkan_device =
+
+# 0: 0.5x (360p/540p) [EXPERIMENTAL]
+# 1: 0.75x (540p/810p) [EXPERIMENTAL]
+# 2 (default): 1x (720p/1080p)
+# 3: 2x (1440p/2160p)
+# 4: 3x (2160p/3240p)
+# 5: 4x (2880p/4320p)
+# 6: 5x (3600p/5400p)
+# 7: 6x (4320p/6480p)
+resolution_setup =
+
+# Pixel filter to use when up- or down-sampling rendered frames.
+# 0: Nearest Neighbor
+# 1 (default): Bilinear
+# 2: Bicubic
+# 3: Gaussian
+# 4: ScaleForce
+# 5: AMD FidelityFX™️ Super Resolution [Vulkan Only]
+scaling_filter =
+
+# Anti-Aliasing (AA)
+# 0 (default): None, 1: FXAA
+anti_aliasing =
+
+# Whether to use fullscreen or borderless window mode
+# 0 (Windows default): Borderless window, 1 (All other default): Exclusive fullscreen
+fullscreen_mode =
+
+# Aspect ratio
+# 0: Default (16:9), 1: Force 4:3, 2: Force 21:9, 3: Force 16:10, 4: Stretch to Window
+aspect_ratio =
+
+# Anisotropic filtering
+# 0: Default, 1: 2x, 2: 4x, 3: 8x, 4: 16x
+max_anisotropy =
+
+# Whether to enable VSync or not.
+# OpenGL: Values other than 0 enable VSync
+# Vulkan: FIFO is selected if the requested mode is not supported by the driver.
+# FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+# FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+# Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+# Immediate (no synchronization) just presents whatever is available and can exhibit tearing.
+# 0: Immediate (Off), 1 (Default): Mailbox (On), 2: FIFO, 3: FIFO Relaxed
+use_vsync =
+
+# Selects the OpenGL shader backend. NV_gpu_program5 is required for GLASM. If NV_gpu_program5 is
+# not available and GLASM is selected, GLSL will be used.
+# 0: GLSL, 1 (default): GLASM, 2: SPIR-V
+shader_backend =
+
+# Whether to allow asynchronous shader building.
+# 0 (default): Off, 1: On
+use_asynchronous_shaders =
+
+# Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.
+# 0 (default): Off, 1: On
+use_reactive_flushing =
+
+# NVDEC emulation.
+# 0: Disabled, 1: CPU Decoding, 2 (default): GPU Decoding
+nvdec_emulation =
+
+# Accelerate ASTC texture decoding.
+# 0 (default): Off, 1: On
+accelerate_astc =
+
+# Turns on the speed limiter, which will limit the emulation speed to the desired speed limit value
+# 0: Off, 1: On (default)
+use_speed_limit =
+
+# Limits the speed of the game to run no faster than this value as a percentage of target speed
+# 1 - 9999: Speed limit as a percentage of target game speed. 100 (default)
+speed_limit =
+
+# Whether to use disk based shader cache
+# 0: Off, 1 (default): On
+use_disk_shader_cache =
+
+# Which gpu accuracy level to use
+# 0 (default): Normal, 1: High, 2: Extreme (Very slow)
+gpu_accuracy =
+
+# Whether to use asynchronous GPU emulation
+# 0 : Off (slow), 1 (default): On (fast)
+use_asynchronous_gpu_emulation =
+
+# Inform the guest that GPU operations completed more quickly than they did.
+# 0: Off, 1 (default): On
+use_fast_gpu_time =
+
+# Force unmodified buffers to be flushed, which can cost performance.
+# 0: Off (default), 1: On
+use_pessimistic_flushes =
+
+# Whether to use garbage collection or not for GPU caches.
+# 0 (default): Off, 1: On
+use_caches_gc =
+
+# The clear color for the renderer. What shows up on the sides of the bottom screen.
+# Must be in range of 0-255. Defaults to 0 for all.
+bg_red =
+bg_blue =
+bg_green =
+
+[Audio]
+# Which audio output engine to use.
+# auto (default): Auto-select
+# cubeb: Cubeb audio engine (if available)
+# sdl2: SDL2 audio engine (if available)
+# null: No audio output
+output_engine =
+
+# Which audio device to use.
+# auto (default): Auto-select
+output_device =
+
+# Output volume.
+# 100 (default): 100%, 0; mute
+volume =
+
+[Data Storage]
+# Whether to create a virtual SD card.
+# 1: Yes, 0 (default): No
+use_virtual_sd =
+
+# Whether or not to enable gamecard emulation
+# 1: Yes, 0 (default): No
+gamecard_inserted =
+
+# Whether or not the gamecard should be emulated as the current game
+# If 'gamecard_inserted' is 0 this setting is irrelevant
+# 1: Yes, 0 (default): No
+gamecard_current_game =
+
+# Path to an XCI file to use as the gamecard
+# If 'gamecard_inserted' is 0 this setting is irrelevant
+# If 'gamecard_current_game' is 1 this setting is irrelevant
+gamecard_path =
+
+[System]
+# Whether the system is docked
+# 1 (default): Yes, 0: No
+use_docked_mode =
+
+# Sets the seed for the RNG generator built into the switch
+# rng_seed will be ignored and randomly generated if rng_seed_enabled is false
+rng_seed_enabled =
+rng_seed =
+
+# Sets the current time (in seconds since 12:00 AM Jan 1, 1970) that will be used by the time service
+# This will auto-increment, with the time set being the time the game is started
+# This override will only occur if custom_rtc_enabled is true, otherwise the current time is used
+custom_rtc_enabled =
+custom_rtc =
+
+# Sets the systems language index
+# 0: Japanese, 1: English (default), 2: French, 3: German, 4: Italian, 5: Spanish, 6: Chinese,
+# 7: Korean, 8: Dutch, 9: Portuguese, 10: Russian, 11: Taiwanese, 12: British English, 13: Canadian French,
+# 14: Latin American Spanish, 15: Simplified Chinese, 16: Traditional Chinese, 17: Brazilian Portuguese
+language_index =
+
+# The system region that yuzu will use during emulation
+# -1: Auto-select (default), 0: Japan, 1: USA, 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan
+region_index =
+
+# The system time zone that yuzu will use during emulation
+# 0: Auto-select (default), 1: Default (system archive value), Others: Index for specified time zone
+time_zone_index =
+
+# Sets the sound output mode.
+# 0: Mono, 1 (default): Stereo, 2: Surround
+sound_index =
+
+[Miscellaneous]
+# A filter which removes logs below a certain logging level.
+# Examples: *:Debug Kernel.SVC:Trace Service.*:Critical
+log_filter = *:Trace
+
+# Use developer keys
+# 0 (default): Disabled, 1: Enabled
+use_dev_keys =
+
+[Debugging]
+# Record frame time data, can be found in the log directory. Boolean value
+record_frame_times =
+# Determines whether or not yuzu will dump the ExeFS of all games it attempts to load while loading them
+dump_exefs=false
+# Determines whether or not yuzu will dump all NSOs it attempts to load while loading them
+dump_nso=false
+# Determines whether or not yuzu will save the filesystem access log.
+enable_fs_access_log=false
+# Enables verbose reporting services
+reporting_services =
+# Determines whether or not yuzu will report to the game that the emulated console is in Kiosk Mode
+# false: Retail/Normal Mode (default), true: Kiosk Mode
+quest_flag =
+# Determines whether debug asserts should be enabled, which will throw an exception on asserts.
+# false: Disabled (default), true: Enabled
+use_debug_asserts =
+# Determines whether unimplemented HLE service calls should be automatically stubbed.
+# false: Disabled (default), true: Enabled
+use_auto_stub =
+# Enables/Disables the macro JIT compiler
+disable_macro_jit=false
+# Determines whether to enable the GDB stub and wait for the debugger to attach before running.
+# false: Disabled (default), true: Enabled
+use_gdbstub=false
+# The port to use for the GDB server, if it is enabled.
+gdbstub_port=6543
+
+[WebService]
+# Whether or not to enable telemetry
+# 0: No, 1 (default): Yes
+enable_telemetry =
+# URL for Web API
+web_api_url = https://api.yuzu-emu.org
+# Username and token for yuzu Web Service
+# See https://profile.yuzu-emu.org/ for more info
+yuzu_username =
+yuzu_token =
+
+[Network]
+# Name of the network interface device to use with yuzu LAN play.
+# e.g. On *nix: 'enp7s0', 'wlp6s0u1u3u3', 'lo'
+# e.g. On Windows: 'Ethernet', 'Wi-Fi'
+network_interface =
+
+[AddOns]
+# Used to disable add-ons
+# List of title IDs of games that will have add-ons disabled (separated by '|'):
+title_ids =
+# For each title ID, have a key/value pair called `disabled_<title_id>` equal to the names of the add-ons to disable (sep. by '|')
+# e.x. disabled_0100000000010000 = Update|DLC <- disables Updates and DLC on Super Mario Odyssey
+)";
+} // namespace DefaultINI
diff --git a/src/android/app/src/main/jni/emu_window/emu_window.cpp b/src/android/app/src/main/jni/emu_window/emu_window.cpp
new file mode 100644
index 000000000..a890c6604
--- /dev/null
+++ b/src/android/app/src/main/jni/emu_window/emu_window.cpp
@@ -0,0 +1,79 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include <android/native_window_jni.h>
+
+#include "common/logging/log.h"
+#include "input_common/drivers/touch_screen.h"
+#include "input_common/drivers/virtual_amiibo.h"
+#include "input_common/drivers/virtual_gamepad.h"
+#include "input_common/main.h"
+#include "jni/emu_window/emu_window.h"
+
+void EmuWindow_Android::OnSurfaceChanged(ANativeWindow* surface) {
+ window_info.render_surface = reinterpret_cast<void*>(surface);
+}
+
+void EmuWindow_Android::OnTouchPressed(int id, float x, float y) {
+ const auto [touch_x, touch_y] = MapToTouchScreen(x, y);
+ m_input_subsystem->GetTouchScreen()->TouchPressed(touch_x, touch_y, id);
+}
+
+void EmuWindow_Android::OnTouchMoved(int id, float x, float y) {
+ const auto [touch_x, touch_y] = MapToTouchScreen(x, y);
+ m_input_subsystem->GetTouchScreen()->TouchMoved(touch_x, touch_y, id);
+}
+
+void EmuWindow_Android::OnTouchReleased(int id) {
+ m_input_subsystem->GetTouchScreen()->TouchReleased(id);
+}
+
+void EmuWindow_Android::OnGamepadButtonEvent(int player_index, int button_id, bool pressed) {
+ m_input_subsystem->GetVirtualGamepad()->SetButtonState(player_index, button_id, pressed);
+}
+
+void EmuWindow_Android::OnGamepadJoystickEvent(int player_index, int stick_id, float x, float y) {
+ m_input_subsystem->GetVirtualGamepad()->SetStickPosition(player_index, stick_id, x, y);
+}
+
+void EmuWindow_Android::OnGamepadMotionEvent(int player_index, u64 delta_timestamp, float gyro_x,
+ float gyro_y, float gyro_z, float accel_x,
+ float accel_y, float accel_z) {
+ m_input_subsystem->GetVirtualGamepad()->SetMotionState(
+ player_index, delta_timestamp, gyro_x, gyro_y, gyro_z, accel_x, accel_y, accel_z);
+}
+
+void EmuWindow_Android::OnReadNfcTag(std::span<u8> data) {
+ m_input_subsystem->GetVirtualAmiibo()->LoadAmiibo(data);
+}
+
+void EmuWindow_Android::OnRemoveNfcTag() {
+ m_input_subsystem->GetVirtualAmiibo()->CloseAmiibo();
+}
+
+EmuWindow_Android::EmuWindow_Android(InputCommon::InputSubsystem* input_subsystem,
+ ANativeWindow* surface,
+ std::shared_ptr<Common::DynamicLibrary> driver_library)
+ : m_input_subsystem{input_subsystem}, m_driver_library{driver_library} {
+ LOG_INFO(Frontend, "initializing");
+
+ if (!surface) {
+ LOG_CRITICAL(Frontend, "surface is nullptr");
+ return;
+ }
+
+ m_window_width = ANativeWindow_getWidth(surface);
+ m_window_height = ANativeWindow_getHeight(surface);
+
+ // Ensures that we emulate with the correct aspect ratio.
+ UpdateCurrentFramebufferLayout(m_window_width, m_window_height);
+
+ window_info.type = Core::Frontend::WindowSystemType::Android;
+ window_info.render_surface = reinterpret_cast<void*>(surface);
+
+ m_input_subsystem->Initialize();
+}
+
+EmuWindow_Android::~EmuWindow_Android() {
+ m_input_subsystem->Shutdown();
+}
diff --git a/src/android/app/src/main/jni/emu_window/emu_window.h b/src/android/app/src/main/jni/emu_window/emu_window.h
new file mode 100644
index 000000000..b38087f73
--- /dev/null
+++ b/src/android/app/src/main/jni/emu_window/emu_window.h
@@ -0,0 +1,64 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <memory>
+#include <span>
+
+#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
+#include "input_common/main.h"
+
+struct ANativeWindow;
+
+class GraphicsContext_Android final : public Core::Frontend::GraphicsContext {
+public:
+ explicit GraphicsContext_Android(std::shared_ptr<Common::DynamicLibrary> driver_library)
+ : m_driver_library{driver_library} {}
+
+ ~GraphicsContext_Android() = default;
+
+ std::shared_ptr<Common::DynamicLibrary> GetDriverLibrary() override {
+ return m_driver_library;
+ }
+
+private:
+ std::shared_ptr<Common::DynamicLibrary> m_driver_library;
+};
+
+class EmuWindow_Android final : public Core::Frontend::EmuWindow {
+
+public:
+ EmuWindow_Android(InputCommon::InputSubsystem* input_subsystem, ANativeWindow* surface,
+ std::shared_ptr<Common::DynamicLibrary> driver_library);
+
+ ~EmuWindow_Android();
+
+ void OnSurfaceChanged(ANativeWindow* surface);
+ void OnTouchPressed(int id, float x, float y);
+ void OnTouchMoved(int id, float x, float y);
+ void OnTouchReleased(int id);
+ void OnGamepadButtonEvent(int player_index, int button_id, bool pressed);
+ void OnGamepadJoystickEvent(int player_index, int stick_id, float x, float y);
+ void OnGamepadMotionEvent(int player_index, u64 delta_timestamp, float gyro_x, float gyro_y,
+ float gyro_z, float accel_x, float accel_y, float accel_z);
+ void OnReadNfcTag(std::span<u8> data);
+ void OnRemoveNfcTag();
+ void OnFrameDisplayed() override {}
+
+ std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override {
+ return {std::make_unique<GraphicsContext_Android>(m_driver_library)};
+ }
+ bool IsShown() const override {
+ return true;
+ };
+
+private:
+ InputCommon::InputSubsystem* m_input_subsystem{};
+
+ float m_window_width{};
+ float m_window_height{};
+
+ std::shared_ptr<Common::DynamicLibrary> m_driver_library;
+};
diff --git a/src/android/app/src/main/jni/id_cache.cpp b/src/android/app/src/main/jni/id_cache.cpp
new file mode 100644
index 000000000..9cbbf23a3
--- /dev/null
+++ b/src/android/app/src/main/jni/id_cache.cpp
@@ -0,0 +1,116 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <jni.h>
+
+#include "common/assert.h"
+#include "common/fs/fs_android.h"
+#include "jni/applets/software_keyboard.h"
+#include "jni/id_cache.h"
+#include "video_core/rasterizer_interface.h"
+
+static JavaVM* s_java_vm;
+static jclass s_native_library_class;
+static jclass s_disk_cache_progress_class;
+static jclass s_load_callback_stage_class;
+static jmethodID s_exit_emulation_activity;
+static jmethodID s_disk_cache_load_progress;
+
+static constexpr jint JNI_VERSION = JNI_VERSION_1_6;
+
+namespace IDCache {
+
+JNIEnv* GetEnvForThread() {
+ thread_local static struct OwnedEnv {
+ OwnedEnv() {
+ status = s_java_vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6);
+ if (status == JNI_EDETACHED)
+ s_java_vm->AttachCurrentThread(&env, nullptr);
+ }
+
+ ~OwnedEnv() {
+ if (status == JNI_EDETACHED)
+ s_java_vm->DetachCurrentThread();
+ }
+
+ int status;
+ JNIEnv* env = nullptr;
+ } owned;
+ return owned.env;
+}
+
+jclass GetNativeLibraryClass() {
+ return s_native_library_class;
+}
+
+jclass GetDiskCacheProgressClass() {
+ return s_disk_cache_progress_class;
+}
+
+jclass GetDiskCacheLoadCallbackStageClass() {
+ return s_load_callback_stage_class;
+}
+
+jmethodID GetExitEmulationActivity() {
+ return s_exit_emulation_activity;
+}
+
+jmethodID GetDiskCacheLoadProgress() {
+ return s_disk_cache_load_progress;
+}
+
+} // namespace IDCache
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+jint JNI_OnLoad(JavaVM* vm, void* reserved) {
+ s_java_vm = vm;
+
+ JNIEnv* env;
+ if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION) != JNI_OK)
+ return JNI_ERR;
+
+ // Initialize Java classes
+ const jclass native_library_class = env->FindClass("org/yuzu/yuzu_emu/NativeLibrary");
+ s_native_library_class = reinterpret_cast<jclass>(env->NewGlobalRef(native_library_class));
+ s_disk_cache_progress_class = reinterpret_cast<jclass>(env->NewGlobalRef(
+ env->FindClass("org/yuzu/yuzu_emu/disk_shader_cache/DiskShaderCacheProgress")));
+ s_load_callback_stage_class = reinterpret_cast<jclass>(env->NewGlobalRef(env->FindClass(
+ "org/yuzu/yuzu_emu/disk_shader_cache/DiskShaderCacheProgress$LoadCallbackStage")));
+
+ // Initialize methods
+ s_exit_emulation_activity =
+ env->GetStaticMethodID(s_native_library_class, "exitEmulationActivity", "(I)V");
+ s_disk_cache_load_progress =
+ env->GetStaticMethodID(s_disk_cache_progress_class, "loadProgress", "(III)V");
+
+ // Initialize Android Storage
+ Common::FS::Android::RegisterCallbacks(env, s_native_library_class);
+
+ // Initialize applets
+ SoftwareKeyboard::InitJNI(env);
+
+ return JNI_VERSION;
+}
+
+void JNI_OnUnload(JavaVM* vm, void* reserved) {
+ JNIEnv* env;
+ if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION) != JNI_OK) {
+ return;
+ }
+
+ // UnInitialize Android Storage
+ Common::FS::Android::UnRegisterCallbacks();
+ env->DeleteGlobalRef(s_native_library_class);
+ env->DeleteGlobalRef(s_disk_cache_progress_class);
+ env->DeleteGlobalRef(s_load_callback_stage_class);
+
+ // UnInitialize applets
+ SoftwareKeyboard::CleanupJNI(env);
+}
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/src/android/app/src/main/jni/id_cache.h b/src/android/app/src/main/jni/id_cache.h
new file mode 100644
index 000000000..be535fe1e
--- /dev/null
+++ b/src/android/app/src/main/jni/id_cache.h
@@ -0,0 +1,19 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <jni.h>
+
+#include "video_core/rasterizer_interface.h"
+
+namespace IDCache {
+
+JNIEnv* GetEnvForThread();
+jclass GetNativeLibraryClass();
+jclass GetDiskCacheProgressClass();
+jclass GetDiskCacheLoadCallbackStageClass();
+jmethodID GetExitEmulationActivity();
+jmethodID GetDiskCacheLoadProgress();
+
+} // namespace IDCache
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
new file mode 100644
index 000000000..8bc6a4a04
--- /dev/null
+++ b/src/android/app/src/main/jni/native.cpp
@@ -0,0 +1,865 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <codecvt>
+#include <locale>
+#include <string>
+#include <string_view>
+#include <dlfcn.h>
+
+#ifdef ARCHITECTURE_arm64
+#include <adrenotools/driver.h>
+#endif
+
+#include <android/api-level.h>
+#include <android/native_window_jni.h>
+#include <core/loader/nro.h>
+#include <jni.h>
+
+#include "common/detached_tasks.h"
+#include "common/dynamic_library.h"
+#include "common/fs/path_util.h"
+#include "common/logging/backend.h"
+#include "common/logging/log.h"
+#include "common/microprofile.h"
+#include "common/scm_rev.h"
+#include "common/scope_exit.h"
+#include "common/settings.h"
+#include "common/string_util.h"
+#include "core/core.h"
+#include "core/cpu_manager.h"
+#include "core/crypto/key_manager.h"
+#include "core/file_sys/card_image.h"
+#include "core/file_sys/registered_cache.h"
+#include "core/file_sys/submission_package.h"
+#include "core/file_sys/vfs.h"
+#include "core/file_sys/vfs_real.h"
+#include "core/frontend/applets/cabinet.h"
+#include "core/frontend/applets/controller.h"
+#include "core/frontend/applets/error.h"
+#include "core/frontend/applets/general_frontend.h"
+#include "core/frontend/applets/mii_edit.h"
+#include "core/frontend/applets/profile_select.h"
+#include "core/frontend/applets/software_keyboard.h"
+#include "core/frontend/applets/web_browser.h"
+#include "core/hid/emulated_controller.h"
+#include "core/hid/hid_core.h"
+#include "core/hid/hid_types.h"
+#include "core/hle/service/acc/profile_manager.h"
+#include "core/hle/service/am/applet_ae.h"
+#include "core/hle/service/am/applet_oe.h"
+#include "core/hle/service/am/applets/applets.h"
+#include "core/hle/service/filesystem/filesystem.h"
+#include "core/loader/loader.h"
+#include "core/perf_stats.h"
+#include "jni/android_common/android_common.h"
+#include "jni/applets/software_keyboard.h"
+#include "jni/config.h"
+#include "jni/emu_window/emu_window.h"
+#include "jni/id_cache.h"
+#include "video_core/rasterizer_interface.h"
+#include "video_core/renderer_base.h"
+
+#define jconst [[maybe_unused]] const auto
+#define jauto [[maybe_unused]] auto
+
+namespace {
+
+class EmulationSession final {
+public:
+ EmulationSession() {
+ m_vfs = std::make_shared<FileSys::RealVfsFilesystem>();
+ }
+
+ ~EmulationSession() = default;
+
+ static EmulationSession& GetInstance() {
+ return s_instance;
+ }
+
+ const Core::System& System() const {
+ return m_system;
+ }
+
+ Core::System& System() {
+ return m_system;
+ }
+
+ const EmuWindow_Android& Window() const {
+ return *m_window;
+ }
+
+ EmuWindow_Android& Window() {
+ return *m_window;
+ }
+
+ ANativeWindow* NativeWindow() const {
+ return m_native_window;
+ }
+
+ void SetNativeWindow(ANativeWindow* native_window) {
+ m_native_window = native_window;
+ }
+
+ int InstallFileToNand(std::string filename) {
+ jconst copy_func = [](const FileSys::VirtualFile& src, const FileSys::VirtualFile& dest,
+ std::size_t block_size) {
+ if (src == nullptr || dest == nullptr) {
+ return false;
+ }
+ if (!dest->Resize(src->GetSize())) {
+ return false;
+ }
+
+ using namespace Common::Literals;
+ [[maybe_unused]] std::vector<u8> buffer(1_MiB);
+
+ for (std::size_t i = 0; i < src->GetSize(); i += buffer.size()) {
+ jconst read = src->Read(buffer.data(), buffer.size(), i);
+ dest->Write(buffer.data(), read, i);
+ }
+ return true;
+ };
+
+ enum InstallResult {
+ Success = 0,
+ SuccessFileOverwritten = 1,
+ InstallError = 2,
+ ErrorBaseGame = 3,
+ ErrorFilenameExtension = 4,
+ };
+
+ m_system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());
+ m_system.GetFileSystemController().CreateFactories(*m_vfs);
+
+ [[maybe_unused]] std::shared_ptr<FileSys::NSP> nsp;
+ if (filename.ends_with("nsp")) {
+ nsp = std::make_shared<FileSys::NSP>(m_vfs->OpenFile(filename, FileSys::Mode::Read));
+ if (nsp->IsExtractedType()) {
+ return InstallError;
+ }
+ } else if (filename.ends_with("xci")) {
+ jconst xci =
+ std::make_shared<FileSys::XCI>(m_vfs->OpenFile(filename, FileSys::Mode::Read));
+ nsp = xci->GetSecurePartitionNSP();
+ } else {
+ return ErrorFilenameExtension;
+ }
+
+ if (!nsp) {
+ return InstallError;
+ }
+
+ if (nsp->GetStatus() != Loader::ResultStatus::Success) {
+ return InstallError;
+ }
+
+ jconst res = m_system.GetFileSystemController().GetUserNANDContents()->InstallEntry(
+ *nsp, true, copy_func);
+
+ switch (res) {
+ case FileSys::InstallResult::Success:
+ return Success;
+ case FileSys::InstallResult::OverwriteExisting:
+ return SuccessFileOverwritten;
+ case FileSys::InstallResult::ErrorBaseInstall:
+ return ErrorBaseGame;
+ default:
+ return InstallError;
+ }
+ }
+
+ void InitializeGpuDriver(const std::string& hook_lib_dir, const std::string& custom_driver_dir,
+ const std::string& custom_driver_name,
+ const std::string& file_redirect_dir) {
+#ifdef ARCHITECTURE_arm64
+ void* handle{};
+ const char* file_redirect_dir_{};
+ int featureFlags{};
+
+ // Enable driver file redirection when renderer debugging is enabled.
+ if (Settings::values.renderer_debug && file_redirect_dir.size()) {
+ featureFlags |= ADRENOTOOLS_DRIVER_FILE_REDIRECT;
+ file_redirect_dir_ = file_redirect_dir.c_str();
+ }
+
+ // Try to load a custom driver.
+ if (custom_driver_name.size()) {
+ handle = adrenotools_open_libvulkan(
+ RTLD_NOW, featureFlags | ADRENOTOOLS_DRIVER_CUSTOM, nullptr, hook_lib_dir.c_str(),
+ custom_driver_dir.c_str(), custom_driver_name.c_str(), file_redirect_dir_, nullptr);
+ }
+
+ // Try to load the system driver.
+ if (!handle) {
+ handle =
+ adrenotools_open_libvulkan(RTLD_NOW, featureFlags, nullptr, hook_lib_dir.c_str(),
+ nullptr, nullptr, file_redirect_dir_, nullptr);
+ }
+
+ m_vulkan_library = std::make_shared<Common::DynamicLibrary>(handle);
+#endif
+ }
+
+ bool IsRunning() const {
+ std::scoped_lock lock(m_mutex);
+ return m_is_running;
+ }
+
+ bool IsPaused() const {
+ std::scoped_lock lock(m_mutex);
+ return m_is_running && m_is_paused;
+ }
+
+ const Core::PerfStatsResults& PerfStats() const {
+ std::scoped_lock m_perf_stats_lock(m_perf_stats_mutex);
+ return m_perf_stats;
+ }
+
+ void SurfaceChanged() {
+ if (!IsRunning()) {
+ return;
+ }
+ m_window->OnSurfaceChanged(m_native_window);
+ m_system.Renderer().NotifySurfaceChanged();
+ }
+
+ Core::SystemResultStatus InitializeEmulation(const std::string& filepath) {
+ std::scoped_lock lock(m_mutex);
+
+ // Loads the configuration.
+ Config{};
+
+ // Create the render window.
+ m_window = std::make_unique<EmuWindow_Android>(&m_input_subsystem, m_native_window,
+ m_vulkan_library);
+
+ m_system.SetFilesystem(m_vfs);
+
+ // Initialize system.
+ jauto android_keyboard = std::make_unique<SoftwareKeyboard::AndroidKeyboard>();
+ m_software_keyboard = android_keyboard.get();
+ m_system.SetShuttingDown(false);
+ m_system.ApplySettings();
+ Settings::LogSettings();
+ m_system.HIDCore().ReloadInputDevices();
+ m_system.SetAppletFrontendSet({
+ nullptr, // Amiibo Settings
+ nullptr, // Controller Selector
+ nullptr, // Error Display
+ nullptr, // Mii Editor
+ nullptr, // Parental Controls
+ nullptr, // Photo Viewer
+ nullptr, // Profile Selector
+ std::move(android_keyboard), // Software Keyboard
+ nullptr, // Web Browser
+ });
+ m_system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());
+ m_system.GetFileSystemController().CreateFactories(*m_vfs);
+
+ // Initialize account manager
+ m_profile_manager = std::make_unique<Service::Account::ProfileManager>();
+
+ // Load the ROM.
+ m_load_result = m_system.Load(EmulationSession::GetInstance().Window(), filepath);
+ if (m_load_result != Core::SystemResultStatus::Success) {
+ return m_load_result;
+ }
+
+ // Complete initialization.
+ m_system.GPU().Start();
+ m_system.GetCpuManager().OnGpuReady();
+ m_system.RegisterExitCallback([&] { HaltEmulation(); });
+
+ return Core::SystemResultStatus::Success;
+ }
+
+ void ShutdownEmulation() {
+ std::scoped_lock lock(m_mutex);
+
+ m_is_running = false;
+
+ // Unload user input.
+ m_system.HIDCore().UnloadInputDevices();
+
+ // Shutdown the main emulated process
+ if (m_load_result == Core::SystemResultStatus::Success) {
+ m_system.DetachDebugger();
+ m_system.ShutdownMainProcess();
+ m_detached_tasks.WaitForAllTasks();
+ m_load_result = Core::SystemResultStatus::ErrorNotInitialized;
+ }
+
+ // Tear down the render window.
+ m_window.reset();
+ }
+
+ void PauseEmulation() {
+ std::scoped_lock lock(m_mutex);
+ m_system.Pause();
+ m_is_paused = true;
+ }
+
+ void UnPauseEmulation() {
+ std::scoped_lock lock(m_mutex);
+ m_system.Run();
+ m_is_paused = false;
+ }
+
+ void HaltEmulation() {
+ std::scoped_lock lock(m_mutex);
+ m_is_running = false;
+ m_cv.notify_one();
+ }
+
+ void RunEmulation() {
+ {
+ std::scoped_lock lock(m_mutex);
+ m_is_running = true;
+ }
+
+ // Load the disk shader cache.
+ if (Settings::values.use_disk_shader_cache.GetValue()) {
+ LoadDiskCacheProgress(VideoCore::LoadCallbackStage::Prepare, 0, 0);
+ m_system.Renderer().ReadRasterizer()->LoadDiskResources(
+ m_system.GetApplicationProcessProgramID(), std::stop_token{},
+ LoadDiskCacheProgress);
+ LoadDiskCacheProgress(VideoCore::LoadCallbackStage::Complete, 0, 0);
+ }
+
+ void(m_system.Run());
+
+ if (m_system.DebuggerEnabled()) {
+ m_system.InitializeDebugger();
+ }
+
+ while (true) {
+ {
+ [[maybe_unused]] std::unique_lock lock(m_mutex);
+ if (m_cv.wait_for(lock, std::chrono::milliseconds(800),
+ [&]() { return !m_is_running; })) {
+ // Emulation halted.
+ break;
+ }
+ }
+ {
+ // Refresh performance stats.
+ std::scoped_lock m_perf_stats_lock(m_perf_stats_mutex);
+ m_perf_stats = m_system.GetAndResetPerfStats();
+ }
+ }
+ }
+
+ std::string GetRomTitle(const std::string& path) {
+ return GetRomMetadata(path).title;
+ }
+
+ std::vector<u8> GetRomIcon(const std::string& path) {
+ return GetRomMetadata(path).icon;
+ }
+
+ bool GetIsHomebrew(const std::string& path) {
+ return GetRomMetadata(path).isHomebrew;
+ }
+
+ void ResetRomMetadata() {
+ m_rom_metadata_cache.clear();
+ }
+
+ bool IsHandheldOnly() {
+ jconst npad_style_set = m_system.HIDCore().GetSupportedStyleTag();
+
+ if (npad_style_set.fullkey == 1) {
+ return false;
+ }
+
+ if (npad_style_set.handheld == 0) {
+ return false;
+ }
+
+ return !Settings::values.use_docked_mode.GetValue();
+ }
+
+ void SetDeviceType([[maybe_unused]] int index, int type) {
+ jauto controller = m_system.HIDCore().GetEmulatedControllerByIndex(index);
+ controller->SetNpadStyleIndex(static_cast<Core::HID::NpadStyleIndex>(type));
+ }
+
+ void OnGamepadConnectEvent([[maybe_unused]] int index) {
+ jauto controller = m_system.HIDCore().GetEmulatedControllerByIndex(index);
+
+ // Ensure that player1 is configured correctly and handheld disconnected
+ if (controller->GetNpadIdType() == Core::HID::NpadIdType::Player1) {
+ jauto handheld =
+ m_system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld);
+
+ if (controller->GetNpadStyleIndex() == Core::HID::NpadStyleIndex::Handheld) {
+ handheld->SetNpadStyleIndex(Core::HID::NpadStyleIndex::ProController);
+ controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::ProController);
+ handheld->Disconnect();
+ }
+ }
+
+ // Ensure that handheld is configured correctly and player 1 disconnected
+ if (controller->GetNpadIdType() == Core::HID::NpadIdType::Handheld) {
+ jauto player1 =
+ m_system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Player1);
+
+ if (controller->GetNpadStyleIndex() != Core::HID::NpadStyleIndex::Handheld) {
+ player1->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Handheld);
+ controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Handheld);
+ player1->Disconnect();
+ }
+ }
+
+ if (!controller->IsConnected()) {
+ controller->Connect();
+ }
+ }
+
+ void OnGamepadDisconnectEvent([[maybe_unused]] int index) {
+ jauto controller = m_system.HIDCore().GetEmulatedControllerByIndex(index);
+ controller->Disconnect();
+ }
+
+ SoftwareKeyboard::AndroidKeyboard* SoftwareKeyboard() {
+ return m_software_keyboard;
+ }
+
+private:
+ struct RomMetadata {
+ std::string title;
+ std::vector<u8> icon;
+ bool isHomebrew;
+ };
+
+ RomMetadata GetRomMetadata(const std::string& path) {
+ if (jauto search = m_rom_metadata_cache.find(path); search != m_rom_metadata_cache.end()) {
+ return search->second;
+ }
+
+ return CacheRomMetadata(path);
+ }
+
+ RomMetadata CacheRomMetadata(const std::string& path) {
+ jconst file = Core::GetGameFileFromPath(m_vfs, path);
+ jauto loader = Loader::GetLoader(EmulationSession::GetInstance().System(), file, 0, 0);
+
+ RomMetadata entry;
+ loader->ReadTitle(entry.title);
+ loader->ReadIcon(entry.icon);
+ if (loader->GetFileType() == Loader::FileType::NRO) {
+ jauto loader_nro = dynamic_cast<Loader::AppLoader_NRO*>(loader.get());
+ entry.isHomebrew = loader_nro->IsHomebrew();
+ } else {
+ entry.isHomebrew = false;
+ }
+
+ m_rom_metadata_cache[path] = entry;
+
+ return entry;
+ }
+
+private:
+ static void LoadDiskCacheProgress(VideoCore::LoadCallbackStage stage, int progress, int max) {
+ JNIEnv* env = IDCache::GetEnvForThread();
+ env->CallStaticVoidMethod(IDCache::GetDiskCacheProgressClass(),
+ IDCache::GetDiskCacheLoadProgress(), static_cast<jint>(stage),
+ static_cast<jint>(progress), static_cast<jint>(max));
+ }
+
+private:
+ static EmulationSession s_instance;
+
+ // Frontend management
+ std::unordered_map<std::string, RomMetadata> m_rom_metadata_cache;
+
+ // Window management
+ std::unique_ptr<EmuWindow_Android> m_window;
+ ANativeWindow* m_native_window{};
+
+ // Core emulation
+ Core::System m_system;
+ InputCommon::InputSubsystem m_input_subsystem;
+ Common::DetachedTasks m_detached_tasks;
+ Core::PerfStatsResults m_perf_stats{};
+ std::shared_ptr<FileSys::VfsFilesystem> m_vfs;
+ Core::SystemResultStatus m_load_result{Core::SystemResultStatus::ErrorNotInitialized};
+ bool m_is_running{};
+ bool m_is_paused{};
+ SoftwareKeyboard::AndroidKeyboard* m_software_keyboard{};
+ std::unique_ptr<Service::Account::ProfileManager> m_profile_manager;
+
+ // GPU driver parameters
+ std::shared_ptr<Common::DynamicLibrary> m_vulkan_library;
+
+ // Synchronization
+ std::condition_variable_any m_cv;
+ mutable std::mutex m_perf_stats_mutex;
+ mutable std::mutex m_mutex;
+};
+
+/*static*/ EmulationSession EmulationSession::s_instance;
+
+} // Anonymous namespace
+
+static Core::SystemResultStatus RunEmulation(const std::string& filepath) {
+ Common::Log::Initialize();
+ Common::Log::SetColorConsoleBackendEnabled(true);
+ Common::Log::Start();
+
+ MicroProfileOnThreadCreate("EmuThread");
+ SCOPE_EXIT({ MicroProfileShutdown(); });
+
+ LOG_INFO(Frontend, "starting");
+
+ if (filepath.empty()) {
+ LOG_CRITICAL(Frontend, "failed to load: filepath empty!");
+ return Core::SystemResultStatus::ErrorLoader;
+ }
+
+ SCOPE_EXIT({ EmulationSession::GetInstance().ShutdownEmulation(); });
+
+ jconst result = EmulationSession::GetInstance().InitializeEmulation(filepath);
+ if (result != Core::SystemResultStatus::Success) {
+ return result;
+ }
+
+ EmulationSession::GetInstance().RunEmulation();
+
+ return Core::SystemResultStatus::Success;
+}
+
+extern "C" {
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_surfaceChanged(JNIEnv* env, jobject instance,
+ [[maybe_unused]] jobject surf) {
+ EmulationSession::GetInstance().SetNativeWindow(ANativeWindow_fromSurface(env, surf));
+ EmulationSession::GetInstance().SurfaceChanged();
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_surfaceDestroyed(JNIEnv* env, jobject instance) {
+ ANativeWindow_release(EmulationSession::GetInstance().NativeWindow());
+ EmulationSession::GetInstance().SetNativeWindow(nullptr);
+ EmulationSession::GetInstance().SurfaceChanged();
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_setAppDirectory(JNIEnv* env, jobject instance,
+ [[maybe_unused]] jstring j_directory) {
+ Common::FS::SetAppDirectory(GetJString(env, j_directory));
+}
+
+int Java_org_yuzu_yuzu_1emu_NativeLibrary_installFileToNand(JNIEnv* env, jobject instance,
+ [[maybe_unused]] jstring j_file) {
+ return EmulationSession::GetInstance().InstallFileToNand(GetJString(env, j_file));
+}
+
+void JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_initializeGpuDriver(JNIEnv* env, jclass clazz,
+ jstring hook_lib_dir,
+ jstring custom_driver_dir,
+ jstring custom_driver_name,
+ jstring file_redirect_dir) {
+ EmulationSession::GetInstance().InitializeGpuDriver(
+ GetJString(env, hook_lib_dir), GetJString(env, custom_driver_dir),
+ GetJString(env, custom_driver_name), GetJString(env, file_redirect_dir));
+}
+
+[[maybe_unused]] static bool CheckKgslPresent() {
+ constexpr auto KgslPath{"/dev/kgsl-3d0"};
+
+ return access(KgslPath, F_OK) == 0;
+}
+
+[[maybe_unused]] bool SupportsCustomDriver() {
+ return android_get_device_api_level() >= 28 && CheckKgslPresent();
+}
+
+jboolean JNICALL Java_org_yuzu_yuzu_1emu_utils_GpuDriverHelper_supportsCustomDriverLoading(
+ JNIEnv* env, jobject instance) {
+#ifdef ARCHITECTURE_arm64
+ // If the KGSL device exists custom drivers can be loaded using adrenotools
+ return SupportsCustomDriver();
+#else
+ return false;
+#endif
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_reloadKeys(JNIEnv* env, jclass clazz) {
+ Core::Crypto::KeyManager::Instance().ReloadKeys();
+ return static_cast<jboolean>(Core::Crypto::KeyManager::Instance().AreKeysLoaded());
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_unpauseEmulation(JNIEnv* env, jclass clazz) {
+ EmulationSession::GetInstance().UnPauseEmulation();
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_pauseEmulation(JNIEnv* env, jclass clazz) {
+ EmulationSession::GetInstance().PauseEmulation();
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_stopEmulation(JNIEnv* env, jclass clazz) {
+ EmulationSession::GetInstance().HaltEmulation();
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_resetRomMetadata(JNIEnv* env, jclass clazz) {
+ EmulationSession::GetInstance().ResetRomMetadata();
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isRunning(JNIEnv* env, jclass clazz) {
+ return static_cast<jboolean>(EmulationSession::GetInstance().IsRunning());
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isPaused(JNIEnv* env, jclass clazz) {
+ return static_cast<jboolean>(EmulationSession::GetInstance().IsPaused());
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_muteAduio(JNIEnv* env, jclass clazz) {
+ Settings::values.audio_muted = true;
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_unmuteAudio(JNIEnv* env, jclass clazz) {
+ Settings::values.audio_muted = false;
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isMuted(JNIEnv* env, jclass clazz) {
+ return static_cast<jboolean>(Settings::values.audio_muted.GetValue());
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isHandheldOnly(JNIEnv* env, jclass clazz) {
+ return EmulationSession::GetInstance().IsHandheldOnly();
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_setDeviceType(JNIEnv* env, jclass clazz,
+ jint j_device, jint j_type) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().SetDeviceType(j_device, j_type);
+ }
+ return static_cast<jboolean>(true);
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_onGamePadConnectEvent(JNIEnv* env, jclass clazz,
+ jint j_device) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().OnGamepadConnectEvent(j_device);
+ }
+ return static_cast<jboolean>(true);
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_onGamePadDisconnectEvent(JNIEnv* env, jclass clazz,
+ jint j_device) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().OnGamepadDisconnectEvent(j_device);
+ }
+ return static_cast<jboolean>(true);
+}
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_onGamePadButtonEvent(JNIEnv* env, jclass clazz,
+ jint j_device, jint j_button,
+ jint action) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ // Ensure gamepad is connected
+ EmulationSession::GetInstance().OnGamepadConnectEvent(j_device);
+ EmulationSession::GetInstance().Window().OnGamepadButtonEvent(j_device, j_button,
+ action != 0);
+ }
+ return static_cast<jboolean>(true);
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_onGamePadJoystickEvent(JNIEnv* env, jclass clazz,
+ jint j_device, jint stick_id,
+ jfloat x, jfloat y) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().Window().OnGamepadJoystickEvent(j_device, stick_id, x, y);
+ }
+ return static_cast<jboolean>(true);
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_onGamePadMotionEvent(
+ JNIEnv* env, jclass clazz, jint j_device, jlong delta_timestamp, jfloat gyro_x, jfloat gyro_y,
+ jfloat gyro_z, jfloat accel_x, jfloat accel_y, jfloat accel_z) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().Window().OnGamepadMotionEvent(
+ j_device, delta_timestamp, gyro_x, gyro_y, gyro_z, accel_x, accel_y, accel_z);
+ }
+ return static_cast<jboolean>(true);
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_onReadNfcTag(JNIEnv* env, jclass clazz,
+ jbyteArray j_data) {
+ jboolean isCopy{false};
+ std::span<u8> data(reinterpret_cast<u8*>(env->GetByteArrayElements(j_data, &isCopy)),
+ static_cast<size_t>(env->GetArrayLength(j_data)));
+
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().Window().OnReadNfcTag(data);
+ }
+ return static_cast<jboolean>(true);
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_onRemoveNfcTag(JNIEnv* env, jclass clazz) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().Window().OnRemoveNfcTag();
+ }
+ return static_cast<jboolean>(true);
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_onTouchPressed(JNIEnv* env, jclass clazz, jint id,
+ jfloat x, jfloat y) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().Window().OnTouchPressed(id, x, y);
+ }
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_onTouchMoved(JNIEnv* env, jclass clazz, jint id,
+ jfloat x, jfloat y) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().Window().OnTouchMoved(id, x, y);
+ }
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_onTouchReleased(JNIEnv* env, jclass clazz, jint id) {
+ if (EmulationSession::GetInstance().IsRunning()) {
+ EmulationSession::GetInstance().Window().OnTouchReleased(id);
+ }
+}
+
+jbyteArray Java_org_yuzu_yuzu_1emu_NativeLibrary_getIcon(JNIEnv* env, jclass clazz,
+ jstring j_filename) {
+ jauto icon_data = EmulationSession::GetInstance().GetRomIcon(GetJString(env, j_filename));
+ jbyteArray icon = env->NewByteArray(static_cast<jsize>(icon_data.size()));
+ env->SetByteArrayRegion(icon, 0, env->GetArrayLength(icon),
+ reinterpret_cast<jbyte*>(icon_data.data()));
+ return icon;
+}
+
+jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getTitle(JNIEnv* env, jclass clazz,
+ jstring j_filename) {
+ jauto title = EmulationSession::GetInstance().GetRomTitle(GetJString(env, j_filename));
+ return env->NewStringUTF(title.c_str());
+}
+
+jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getDescription(JNIEnv* env, jclass clazz,
+ jstring j_filename) {
+ return j_filename;
+}
+
+jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getGameId(JNIEnv* env, jclass clazz,
+ jstring j_filename) {
+ return j_filename;
+}
+
+jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getRegions(JNIEnv* env, jclass clazz,
+ jstring j_filename) {
+ return env->NewStringUTF("");
+}
+
+jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getCompany(JNIEnv* env, jclass clazz,
+ jstring j_filename) {
+ return env->NewStringUTF("");
+}
+
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isHomebrew(JNIEnv* env, jclass clazz,
+ jstring j_filename) {
+ return EmulationSession::GetInstance().GetIsHomebrew(GetJString(env, j_filename));
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_initializeEmulation(JNIEnv* env, jclass clazz) {
+ // Create the default config.ini.
+ Config{};
+ // Initialize the emulated system.
+ EmulationSession::GetInstance().System().Initialize();
+}
+
+jint Java_org_yuzu_yuzu_1emu_NativeLibrary_defaultCPUCore(JNIEnv* env, jclass clazz) {
+ return {};
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_run__Ljava_lang_String_2Ljava_lang_String_2Z(
+ JNIEnv* env, jclass clazz, jstring j_file, jstring j_savestate, jboolean j_delete_savestate) {}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_reloadSettings(JNIEnv* env, jclass clazz) {
+ Config{};
+}
+
+jstring Java_org_yuzu_yuzu_1emu_NativeLibrary_getUserSetting(JNIEnv* env, jclass clazz,
+ jstring j_game_id, jstring j_section,
+ jstring j_key) {
+ std::string_view game_id = env->GetStringUTFChars(j_game_id, 0);
+ std::string_view section = env->GetStringUTFChars(j_section, 0);
+ std::string_view key = env->GetStringUTFChars(j_key, 0);
+
+ env->ReleaseStringUTFChars(j_game_id, game_id.data());
+ env->ReleaseStringUTFChars(j_section, section.data());
+ env->ReleaseStringUTFChars(j_key, key.data());
+
+ return env->NewStringUTF("");
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_setUserSetting(JNIEnv* env, jclass clazz,
+ jstring j_game_id, jstring j_section,
+ jstring j_key, jstring j_value) {
+ std::string_view game_id = env->GetStringUTFChars(j_game_id, 0);
+ std::string_view section = env->GetStringUTFChars(j_section, 0);
+ std::string_view key = env->GetStringUTFChars(j_key, 0);
+ std::string_view value = env->GetStringUTFChars(j_value, 0);
+
+ env->ReleaseStringUTFChars(j_game_id, game_id.data());
+ env->ReleaseStringUTFChars(j_section, section.data());
+ env->ReleaseStringUTFChars(j_key, key.data());
+ env->ReleaseStringUTFChars(j_value, value.data());
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_initGameIni(JNIEnv* env, jclass clazz,
+ jstring j_game_id) {
+ std::string_view game_id = env->GetStringUTFChars(j_game_id, 0);
+
+ env->ReleaseStringUTFChars(j_game_id, game_id.data());
+}
+
+jdoubleArray Java_org_yuzu_yuzu_1emu_NativeLibrary_getPerfStats(JNIEnv* env, jclass clazz) {
+ jdoubleArray j_stats = env->NewDoubleArray(4);
+
+ if (EmulationSession::GetInstance().IsRunning()) {
+ jconst results = EmulationSession::GetInstance().PerfStats();
+
+ // Converting the structure into an array makes it easier to pass it to the frontend
+ double stats[4] = {results.system_fps, results.average_game_fps, results.frametime,
+ results.emulation_speed};
+
+ env->SetDoubleArrayRegion(j_stats, 0, 4, stats);
+ }
+
+ return j_stats;
+}
+
+void Java_org_yuzu_yuzu_1emu_utils_DirectoryInitialization_setSysDirectory(JNIEnv* env,
+ jclass clazz,
+ jstring j_path) {}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_run__Ljava_lang_String_2(JNIEnv* env, jclass clazz,
+ jstring j_path) {
+ const std::string path = GetJString(env, j_path);
+
+ const Core::SystemResultStatus result{RunEmulation(path)};
+ if (result != Core::SystemResultStatus::Success) {
+ env->CallStaticVoidMethod(IDCache::GetNativeLibraryClass(),
+ IDCache::GetExitEmulationActivity(), static_cast<int>(result));
+ }
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_logDeviceInfo(JNIEnv* env, jclass clazz) {
+ LOG_INFO(Frontend, "yuzu Version: {}-{}", Common::g_scm_branch, Common::g_scm_desc);
+ LOG_INFO(Frontend, "Host OS: Android API level {}", android_get_device_api_level());
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_submitInlineKeyboardText(JNIEnv* env, jclass clazz,
+ jstring j_text) {
+ const std::u16string input = Common::UTF8ToUTF16(GetJString(env, j_text));
+ EmulationSession::GetInstance().SoftwareKeyboard()->SubmitInlineKeyboardText(input);
+}
+
+void Java_org_yuzu_yuzu_1emu_NativeLibrary_submitInlineKeyboardInput(JNIEnv* env, jclass clazz,
+ jint j_key_code) {
+ EmulationSession::GetInstance().SoftwareKeyboard()->SubmitInlineKeyboardInput(j_key_code);
+}
+
+} // extern "C"
diff --git a/src/android/app/src/main/res/anim-ldrtl/anim_pop_settings_fragment_out.xml b/src/android/app/src/main/res/anim-ldrtl/anim_pop_settings_fragment_out.xml
new file mode 100644
index 000000000..9f49c133a
--- /dev/null
+++ b/src/android/app/src/main/res/anim-ldrtl/anim_pop_settings_fragment_out.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <alpha
+ android:duration="125"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromAlpha="1"
+ android:toAlpha="0" />
+
+ <translate
+ android:duration="125"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromXDelta="0"
+ android:toXDelta="-75" />
+
+</set>
diff --git a/src/android/app/src/main/res/anim-ldrtl/anim_settings_fragment_in.xml b/src/android/app/src/main/res/anim-ldrtl/anim_settings_fragment_in.xml
new file mode 100644
index 000000000..82fd719db
--- /dev/null
+++ b/src/android/app/src/main/res/anim-ldrtl/anim_settings_fragment_in.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <alpha
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromAlpha="0"
+ android:toAlpha="1" />
+
+ <translate
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromXDelta="-200"
+ android:toXDelta="0" />
+
+</set>
diff --git a/src/android/app/src/main/res/anim/anim_pop_settings_fragment_out.xml b/src/android/app/src/main/res/anim/anim_pop_settings_fragment_out.xml
new file mode 100644
index 000000000..5892128f1
--- /dev/null
+++ b/src/android/app/src/main/res/anim/anim_pop_settings_fragment_out.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <alpha
+ android:duration="125"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromAlpha="1"
+ android:toAlpha="0" />
+
+ <translate
+ android:duration="125"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromXDelta="0"
+ android:toXDelta="75" />
+
+</set>
diff --git a/src/android/app/src/main/res/anim/anim_settings_fragment_in.xml b/src/android/app/src/main/res/anim/anim_settings_fragment_in.xml
new file mode 100644
index 000000000..98e0cf8bd
--- /dev/null
+++ b/src/android/app/src/main/res/anim/anim_settings_fragment_in.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <alpha
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromAlpha="0"
+ android:toAlpha="1" />
+
+ <translate
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromXDelta="200"
+ android:toXDelta="0" />
+
+</set>
diff --git a/src/android/app/src/main/res/anim/anim_settings_fragment_out.xml b/src/android/app/src/main/res/anim/anim_settings_fragment_out.xml
new file mode 100644
index 000000000..77a40a4d1
--- /dev/null
+++ b/src/android/app/src/main/res/anim/anim_settings_fragment_out.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <alpha
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromAlpha="1"
+ android:toAlpha="0" />
+
+</set>
diff --git a/src/android/app/src/main/res/animator/menu_slide_in_from_start.xml b/src/android/app/src/main/res/animator/menu_slide_in_from_start.xml
new file mode 100644
index 000000000..4612aee13
--- /dev/null
+++ b/src/android/app/src/main/res/animator/menu_slide_in_from_start.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <objectAnimator
+ android:propertyName="translationX"
+ android:valueType="floatType"
+ android:valueFrom="-1280dp"
+ android:valueTo="0"
+ android:interpolator="@android:interpolator/decelerate_quad"
+ android:duration="300"/>
+
+ <objectAnimator
+ android:propertyName="alpha"
+ android:valueType="floatType"
+ android:valueFrom="0"
+ android:valueTo="1"
+ android:interpolator="@android:interpolator/accelerate_quad"
+ android:duration="300"/>
+
+</set> \ No newline at end of file
diff --git a/src/android/app/src/main/res/animator/menu_slide_out_to_start.xml b/src/android/app/src/main/res/animator/menu_slide_out_to_start.xml
new file mode 100644
index 000000000..c00478946
--- /dev/null
+++ b/src/android/app/src/main/res/animator/menu_slide_out_to_start.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <!-- This animation is used ONLY when a submenu is replaced. -->
+ <objectAnimator
+ android:propertyName="translationX"
+ android:valueType="floatType"
+ android:valueFrom="0"
+ android:valueTo="-1280dp"
+ android:interpolator="@android:interpolator/decelerate_quad"
+ android:duration="200"/>
+
+ <objectAnimator
+ android:propertyName="alpha"
+ android:valueType="floatType"
+ android:valueFrom="1"
+ android:valueTo="0"
+ android:interpolator="@android:interpolator/decelerate_quad"
+ android:duration="200"/>
+
+</set> \ No newline at end of file
diff --git a/src/android/app/src/main/res/drawable-hdpi/ic_stat_notification_logo.png b/src/android/app/src/main/res/drawable-hdpi/ic_stat_notification_logo.png
new file mode 100644
index 000000000..66ebfa85c
--- /dev/null
+++ b/src/android/app/src/main/res/drawable-hdpi/ic_stat_notification_logo.png
Binary files differ
diff --git a/src/android/app/src/main/res/drawable-xhdpi/ic_stat_notification_logo.png b/src/android/app/src/main/res/drawable-xhdpi/ic_stat_notification_logo.png
new file mode 100644
index 000000000..71068f452
--- /dev/null
+++ b/src/android/app/src/main/res/drawable-xhdpi/ic_stat_notification_logo.png
Binary files differ
diff --git a/src/android/app/src/main/res/drawable-xhdpi/tv_banner.png b/src/android/app/src/main/res/drawable-xhdpi/tv_banner.png
new file mode 100644
index 000000000..20c770591
--- /dev/null
+++ b/src/android/app/src/main/res/drawable-xhdpi/tv_banner.png
Binary files differ
diff --git a/src/android/app/src/main/res/drawable-xxhdpi/ic_stat_notification_logo.png b/src/android/app/src/main/res/drawable-xxhdpi/ic_stat_notification_logo.png
new file mode 100644
index 000000000..d73fad15b
--- /dev/null
+++ b/src/android/app/src/main/res/drawable-xxhdpi/ic_stat_notification_logo.png
Binary files differ
diff --git a/src/android/app/src/main/res/drawable/default_icon.jpg b/src/android/app/src/main/res/drawable/default_icon.jpg
new file mode 100644
index 000000000..859caf4af
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/default_icon.jpg
Binary files differ
diff --git a/src/android/app/src/main/res/drawable/dpad_standard.xml b/src/android/app/src/main/res/drawable/dpad_standard.xml
new file mode 100644
index 000000000..28aba657e
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/dpad_standard.xml
@@ -0,0 +1,24 @@
+<vector android:alpha="0.6" android:height="221.78dp"
+ android:viewportHeight="221.78" android:viewportWidth="221.78"
+ android:width="221.78dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.75"
+ android:pathData="M221.78,87.07v47.64a11.53,11.53 0,0 1,-11.5 11.5H151.62a5.42,5.42 0,0 0,-5.41 5.41v58.66a11.53,11.53 0,0 1,-11.5 11.5H87.07a11.53,11.53 0,0 1,-11.5 -11.5V151.61a5.41,5.41 0,0 0,-5.41 -5.41H11.5A11.53,11.53 0,0 1,0 134.7V87.05a11.53,11.53 0,0 1,11.5 -11.5H70.16a5.41,5.41 0,0 0,5.41 -5.41V11.5A11.53,11.53 0,0 1,87.07 0h47.64a11.53,11.53 0,0 1,11.5 11.5V70.16a5.41,5.41 0,0 0,5.41 5.41h58.66A11.53,11.53 0,0 1,221.78 87.07Z" android:strokeAlpha="0.75">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="110.89" android:centerY="110.89"
+ android:gradientRadius="110.89" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillColor="#FF000000" android:pathData="M195.47,110.32l-16.26,-9.38a0.65,0.65 0,0 0,-1 0.56v18.78a0.66,0.66 0,0 0,1 0.57l16.26,-9.39A0.66,0.66 0,0 0,195.47 110.32Z"/>
+ <path android:fillColor="#FF000000" android:pathData="M26.31,110.32l16.26,-9.38a0.65,0.65 0,0 1,1 0.56v18.78a0.66,0.66 0,0 1,-1 0.57l-16.26,-9.39A0.66,0.66 0,0 1,26.31 110.32Z"/>
+ <path android:fillColor="#FF000000" android:pathData="M110.32,26.31l-9.38,16.26a0.65,0.65 0,0 0,0.56 1h18.78a0.66,0.66 0,0 0,0.57 -1l-9.39,-16.26A0.66,0.66 0,0 0,110.32 26.31Z"/>
+ <path android:fillColor="#FF000000" android:pathData="M110.32,195.47l-9.38,-16.26a0.65,0.65 0,0 1,0.56 -1h18.78a0.66,0.66 0,0 1,0.57 1l-9.39,16.26A0.66,0.66 0,0 1,110.32 195.47Z"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/dpad_standard_cardinal_depressed.xml b/src/android/app/src/main/res/drawable/dpad_standard_cardinal_depressed.xml
new file mode 100644
index 000000000..5eeb51dbe
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/dpad_standard_cardinal_depressed.xml
@@ -0,0 +1,24 @@
+<vector android:alpha="0.6" android:height="221.78dp"
+ android:viewportHeight="221.78" android:viewportWidth="221.78"
+ android:width="221.78dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5"
+ android:pathData="M221.78,87.07v47.64a11.53,11.53 0,0 1,-11.5 11.5H151.62a5.42,5.42 0,0 0,-5.41 5.41v58.66a11.53,11.53 0,0 1,-11.5 11.5H87.07a11.53,11.53 0,0 1,-11.5 -11.5V151.61a5.41,5.41 0,0 0,-5.41 -5.41H11.5A11.53,11.53 0,0 1,0 134.7V87.05a11.53,11.53 0,0 1,11.5 -11.5H70.16a5.41,5.41 0,0 0,5.41 -5.41V11.5A11.53,11.53 0,0 1,87.07 0h47.64a11.53,11.53 0,0 1,11.5 11.5V70.16a5.41,5.41 0,0 0,5.41 5.41h58.66A11.53,11.53 0,0 1,221.78 87.07Z" android:strokeAlpha="0.5">
+ <aapt:attr name="android:fillColor">
+ <gradient android:endX="110.89" android:endY="-38.27"
+ android:startX="110.89" android:startY="183.51" android:type="linear">
+ <item android:color="#7F000000" android:offset="0"/>
+ <item android:color="#BA000000" android:offset="0.43"/>
+ <item android:color="#FF000000" android:offset="0.5"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.1" android:fillColor="#fff"
+ android:pathData="M195.47,110.32l-16.26,-9.38a0.65,0.65 0,0 0,-1 0.56v18.78a0.66,0.66 0,0 0,1 0.57l16.26,-9.39A0.66,0.66 0,0 0,195.47 110.32Z" android:strokeAlpha="0.1"/>
+ <path android:fillAlpha="0.1" android:fillColor="#fff"
+ android:pathData="M26.31,110.32l16.26,-9.38a0.65,0.65 0,0 1,1 0.56v18.78a0.66,0.66 0,0 1,-1 0.57l-16.26,-9.39A0.66,0.66 0,0 1,26.31 110.32Z" android:strokeAlpha="0.1"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M110.32,26.31l-9.38,16.26a0.65,0.65 0,0 0,0.56 1h18.78a0.66,0.66 0,0 0,0.57 -1l-9.39,-16.26A0.66,0.66 0,0 0,110.32 26.31Z" android:strokeAlpha="0.75"/>
+ <path android:fillAlpha="0.1" android:fillColor="#fff"
+ android:pathData="M110.32,195.47l-9.38,-16.26a0.65,0.65 0,0 1,0.56 -1h18.78a0.66,0.66 0,0 1,0.57 1l-9.39,16.26A0.66,0.66 0,0 1,110.32 195.47Z" android:strokeAlpha="0.1"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/dpad_standard_diagonal_depressed.xml b/src/android/app/src/main/res/drawable/dpad_standard_diagonal_depressed.xml
new file mode 100644
index 000000000..520fd447c
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/dpad_standard_diagonal_depressed.xml
@@ -0,0 +1,24 @@
+<vector android:alpha="0.6" android:height="221.78dp"
+ android:viewportHeight="221.78" android:viewportWidth="221.78"
+ android:width="221.78dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5"
+ android:pathData="M221.78,87.07v47.64a11.53,11.53 0,0 1,-11.5 11.5H151.62a5.42,5.42 0,0 0,-5.41 5.41v58.66a11.53,11.53 0,0 1,-11.5 11.5H87.07a11.53,11.53 0,0 1,-11.5 -11.5V151.61a5.41,5.41 0,0 0,-5.41 -5.41H11.5A11.53,11.53 0,0 1,0 134.7V87.05a11.53,11.53 0,0 1,11.5 -11.5H70.16a5.41,5.41 0,0 0,5.41 -5.41V11.5A11.53,11.53 0,0 1,87.07 0h47.64a11.53,11.53 0,0 1,11.5 11.5V70.16a5.41,5.41 0,0 0,5.41 5.41h58.66A11.53,11.53 0,0 1,221.78 87.07Z" android:strokeAlpha="0.5">
+ <aapt:attr name="android:fillColor">
+ <gradient android:endX="31.24" android:endY="31.24"
+ android:startX="188.07" android:startY="188.07" android:type="linear">
+ <item android:color="#7F000000" android:offset="0"/>
+ <item android:color="#BA000000" android:offset="0.43"/>
+ <item android:color="#FF000000" android:offset="0.5"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.1" android:fillColor="#fff"
+ android:pathData="M195.47,110.32l-16.26,-9.38a0.65,0.65 0,0 0,-1 0.56v18.78a0.66,0.66 0,0 0,1 0.57l16.26,-9.39A0.66,0.66 0,0 0,195.47 110.32Z" android:strokeAlpha="0.1"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M26.31,110.32l16.26,-9.38a0.65,0.65 0,0 1,1 0.56v18.78a0.66,0.66 0,0 1,-1 0.57l-16.26,-9.39A0.66,0.66 0,0 1,26.31 110.32Z" android:strokeAlpha="0.75"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M110.32,26.31l-9.38,16.26a0.65,0.65 0,0 0,0.56 1h18.78a0.66,0.66 0,0 0,0.57 -1l-9.39,-16.26A0.66,0.66 0,0 0,110.32 26.31Z" android:strokeAlpha="0.75"/>
+ <path android:fillAlpha="0.1" android:fillColor="#fff"
+ android:pathData="M110.32,195.47l-9.38,-16.26a0.65,0.65 0,0 1,0.56 -1h18.78a0.66,0.66 0,0 1,0.57 1l-9.39,16.26A0.66,0.66 0,0 1,110.32 195.47Z" android:strokeAlpha="0.1"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_a.xml b/src/android/app/src/main/res/drawable/facebutton_a.xml
new file mode 100644
index 000000000..668652edb
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_a.xml
@@ -0,0 +1,22 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="51.8" android:centerY="51.8"
+ android:gradientRadius="51.8" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.6" android:fillColor="#FF000000"
+ android:pathData="M49.88,34.36h4.29L69.1,69.25L63.58,69.25l-3.5,-8.63L43.48,60.62L40,69.25L34.51,69.25ZM58.36,56.48 L51.85,40.48h-0.1l-6.6,16Z" android:strokeAlpha="0.6"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_a_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_a_depressed.xml
new file mode 100644
index 000000000..4fbe06962
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_a_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M49.88,34.36h4.29L69.1,69.25L63.58,69.25l-3.5,-8.63L43.48,60.62L40,69.25L34.51,69.25ZM58.36,56.48 L51.85,40.48h-0.1l-6.6,16Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_b.xml b/src/android/app/src/main/res/drawable/facebutton_b.xml
new file mode 100644
index 000000000..8912219ca
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_b.xml
@@ -0,0 +1,22 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="51.8" android:centerY="51.8"
+ android:gradientRadius="51.8" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.6" android:fillColor="#FF000000"
+ android:pathData="M41,35.67L53.15,35.67a15.78,15.78 0,0 1,4.22 0.54,10.07 10.07,0 0,1 3.36,1.6A7.49,7.49 0,0 1,63 40.53a8.73,8.73 0,0 1,0.81 3.88,7.13 7.13,0 0,1 -1.67,4.91 9.75,9.75 0,0 1,-4.35 2.79v0.1a7.4,7.4 0,0 1,3 0.82,8.1 8.1,0 0,1 2.4,1.87 9.14,9.14 0,0 1,2.2 6,8.73 8.73,0 0,1 -1,4.17 8.86,8.86 0,0 1,-2.64 3A12.39,12.39 0,0 1,57.79 70a17.12,17.12 0,0 1,-4.79 0.64L41,70.64ZM45.74,50.19h6.47a10.75,10.75 0,0 0,2.52 -0.28A5.56,5.56 0,0 0,56.8 49a4.73,4.73 0,0 0,1.41 -1.63A5.22,5.22 0,0 0,58.73 45a5,5 0,0 0,-5.53 -5.13L45.74,39.87ZM45.74,66.48h7a14.17,14.17 0,0 0,2.4 -0.22,7.23 7.23,0 0,0 2.44,-0.89 6,6 0,0 0,1.93 -1.8,5.15 5.15,0 0,0 0.79,-3 5.52,5.52 0,0 0,-2 -4.67,8.75 8.75,0 0,0 -5.48,-1.56h-7Z" android:strokeAlpha="0.6"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_b_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_b_depressed.xml
new file mode 100644
index 000000000..012abeaf1
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_b_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M41,35.67L53.15,35.67a15.78,15.78 0,0 1,4.22 0.54,10.07 10.07,0 0,1 3.36,1.6A7.49,7.49 0,0 1,63 40.53a8.73,8.73 0,0 1,0.81 3.88,7.13 7.13,0 0,1 -1.67,4.91 9.75,9.75 0,0 1,-4.35 2.79v0.1a7.4,7.4 0,0 1,3 0.82,8.1 8.1,0 0,1 2.4,1.87 9.14,9.14 0,0 1,2.2 6,8.73 8.73,0 0,1 -1,4.17 8.86,8.86 0,0 1,-2.64 3A12.39,12.39 0,0 1,57.79 70a17.12,17.12 0,0 1,-4.79 0.64L41,70.64ZM45.74,50.19h6.47a10.75,10.75 0,0 0,2.52 -0.28A5.56,5.56 0,0 0,56.8 49a4.73,4.73 0,0 0,1.41 -1.63A5.22,5.22 0,0 0,58.73 45a5,5 0,0 0,-5.53 -5.13L45.74,39.87ZM45.74,66.48h7a14.17,14.17 0,0 0,2.4 -0.22,7.23 7.23,0 0,0 2.44,-0.89 6,6 0,0 0,1.93 -1.8,5.15 5.15,0 0,0 0.79,-3 5.52,5.52 0,0 0,-2 -4.67,8.75 8.75,0 0,0 -5.48,-1.56h-7Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_home.xml b/src/android/app/src/main/res/drawable/facebutton_home.xml
new file mode 100644
index 000000000..03596ec2e
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_home.xml
@@ -0,0 +1,21 @@
+<vector android:alpha="0.6" android:height="70.55dp"
+ android:viewportHeight="70.55" android:viewportWidth="70.55"
+ android:width="70.55dp" xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.75"
+ android:pathData="M35.27,35.27m-35.27,0a35.27,35.27 0,1 1,70.54 0a35.27,35.27 0,1 1,-70.54 0" android:strokeAlpha="0.75">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="35.27" android:centerY="35.27"
+ android:gradientRadius="35.27" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M55.19,32.72 L36.06,15.21a1.14,1.14 0,0 0,-1.57 0L15.36,32.72a1.13,1.13 0,0 0,0.79 1.94H19.4a0.72,0.72 0,0 1,0.72 0.72V51.49a1.13,1.13 0,0 0,1.12 1.13H49.31a1.13,1.13 0,0 0,1.12 -1.13V35.38a0.72,0.72 0,0 1,0.72 -0.72H54.4A1.13,1.13 0,0 0,55.19 32.72ZM41.45,43.86a0.9,0.9 0,0 1,-0.9 0.9H30a0.9,0.9 0,0 1,-0.9 -0.9V35.55a0.89,0.89 0,0 1,0.9 -0.89H40.55a0.89,0.89 0,0 1,0.9 0.89Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_home_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_home_depressed.xml
new file mode 100644
index 000000000..cde7c6a9e
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_home_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="70.55dp"
+ android:viewportHeight="70.55" android:viewportWidth="70.55"
+ android:width="70.55dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M35.27,35.27m-35.27,0a35.27,35.27 0,1 1,70.54 0a35.27,35.27 0,1 1,-70.54 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M55.19,32.72 L36.06,15.21a1.14,1.14 0,0 0,-1.57 0L15.36,32.72a1.13,1.13 0,0 0,0.79 1.94H19.4a0.72,0.72 0,0 1,0.72 0.72V51.49a1.13,1.13 0,0 0,1.12 1.13H49.31a1.13,1.13 0,0 0,1.12 -1.13V35.38a0.72,0.72 0,0 1,0.72 -0.72H54.4A1.13,1.13 0,0 0,55.19 32.72ZM41.45,43.86a0.9,0.9 0,0 1,-0.9 0.9H30a0.9,0.9 0,0 1,-0.9 -0.9V35.55a0.89,0.89 0,0 1,0.9 -0.89H40.55a0.89,0.89 0,0 1,0.9 0.89Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_minus.xml b/src/android/app/src/main/res/drawable/facebutton_minus.xml
new file mode 100644
index 000000000..4296b4fcc
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_minus.xml
@@ -0,0 +1,22 @@
+<vector android:alpha="0.6" android:height="69.95dp"
+ android:viewportHeight="69.95" android:viewportWidth="69.95"
+ android:width="69.95dp" xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.75"
+ android:pathData="M34.97,34.97m-34.97,0a34.97,34.97 0,1 1,69.94 0a34.97,34.97 0,1 1,-69.94 0" android:strokeAlpha="0.75">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="34.97" android:centerY="34.97"
+ android:gradientRadius="34.97" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M52,38.28H17.91a0.52,0.52 0,0 1,-0.52 -0.52V32.19a0.52,0.52 0,0 1,0.52 -0.52H52a0.52,0.52 0,0 1,0.52 0.52v5.57A0.52,0.52 0,0 1,52 38.28Z"
+ android:strokeAlpha="0.75" android:strokeColor="#000" android:strokeWidth="2.5"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_minus_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_minus_depressed.xml
new file mode 100644
index 000000000..628027841
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_minus_depressed.xml
@@ -0,0 +1,9 @@
+<vector android:alpha="0.6" android:height="69.95dp"
+ android:viewportHeight="69.95" android:viewportWidth="69.95"
+ android:width="69.95dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M34.97,34.97m-34.97,0a34.97,34.97 0,1 1,69.94 0a34.97,34.97 0,1 1,-69.94 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M52,38.28H17.91a0.52,0.52 0,0 1,-0.52 -0.52V32.19a0.52,0.52 0,0 1,0.52 -0.52H52a0.52,0.52 0,0 1,0.52 0.52v5.57A0.52,0.52 0,0 1,52 38.28Z"
+ android:strokeAlpha="0.75" android:strokeColor="#fff" android:strokeWidth="2.5"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_plus.xml b/src/android/app/src/main/res/drawable/facebutton_plus.xml
new file mode 100644
index 000000000..43ae14365
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_plus.xml
@@ -0,0 +1,22 @@
+<vector android:alpha="0.6" android:height="69.95dp"
+ android:viewportHeight="69.95" android:viewportWidth="69.95"
+ android:width="69.95dp" xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.75"
+ android:pathData="M34.97,34.97m-34.97,0a34.97,34.97 0,1 1,69.94 0a34.97,34.97 0,1 1,-69.94 0" android:strokeAlpha="0.75">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="34.97" android:centerY="34.97"
+ android:gradientRadius="34.97" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M13.94,31.9H31.16a0.65,0.65 0,0 0,0.65 -0.64V14.59a0.65,0.65 0,0 1,0.64 -0.65h5a0.65,0.65 0,0 1,0.65 0.65V31.26a0.65,0.65 0,0 0,0.65 0.64H56a0.65,0.65 0,0 1,0.65 0.65V37.4a0.65,0.65 0,0 1,-0.65 0.65H38.79a0.65,0.65 0,0 0,-0.65 0.64V55.36a0.65,0.65 0,0 1,-0.65 0.64h-5a0.64,0.64 0,0 1,-0.64 -0.64V38.69a0.65,0.65 0,0 0,-0.65 -0.64H13.94a0.65,0.65 0,0 1,-0.65 -0.65V32.55A0.65,0.65 0,0 1,13.94 31.9Z"
+ android:strokeAlpha="0.75" android:strokeColor="#000" android:strokeWidth="2.5"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_plus_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_plus_depressed.xml
new file mode 100644
index 000000000..c510e136e
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_plus_depressed.xml
@@ -0,0 +1,9 @@
+<vector android:alpha="0.6" android:height="69.95dp"
+ android:viewportHeight="69.95" android:viewportWidth="69.95"
+ android:width="69.95dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M34.97,34.97m-34.97,0a34.97,34.97 0,1 1,69.94 0a34.97,34.97 0,1 1,-69.94 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M13.94,31.9H31.16a0.65,0.65 0,0 0,0.65 -0.64V14.59a0.65,0.65 0,0 1,0.64 -0.65h5a0.65,0.65 0,0 1,0.65 0.65V31.26a0.65,0.65 0,0 0,0.65 0.64H56a0.65,0.65 0,0 1,0.65 0.65V37.4a0.65,0.65 0,0 1,-0.65 0.65H38.79a0.65,0.65 0,0 0,-0.65 0.64V55.36a0.65,0.65 0,0 1,-0.65 0.64h-5a0.64,0.64 0,0 1,-0.64 -0.64V38.69a0.65,0.65 0,0 0,-0.65 -0.64H13.94a0.65,0.65 0,0 1,-0.65 -0.65V32.55A0.65,0.65 0,0 1,13.94 31.9Z"
+ android:strokeAlpha="0.75" android:strokeColor="#fff" android:strokeWidth="2.5"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_screenshot.xml b/src/android/app/src/main/res/drawable/facebutton_screenshot.xml
new file mode 100644
index 000000000..984b4fd02
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_screenshot.xml
@@ -0,0 +1,21 @@
+<vector android:alpha="0.6" android:height="70dp"
+ android:viewportHeight="70" android:viewportWidth="70"
+ android:width="70dp" xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.75"
+ android:pathData="M10.63,0L59.37,0A10.63,10.63 0,0 1,70 10.63L70,59.37A10.63,10.63 0,0 1,59.37 70L10.63,70A10.63,10.63 0,0 1,0 59.37L0,10.63A10.63,10.63 0,0 1,10.63 0z" android:strokeAlpha="0.75">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="35" android:centerY="35"
+ android:gradientRadius="42.51" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M35,35m-21.5,0a21.5,21.5 0,1 1,43 0a21.5,21.5 0,1 1,-43 0" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_screenshot_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_screenshot_depressed.xml
new file mode 100644
index 000000000..fd2e44294
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_screenshot_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="70dp"
+ android:viewportHeight="70" android:viewportWidth="70"
+ android:width="70dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M10.63,0L59.37,0A10.63,10.63 0,0 1,70 10.63L70,59.37A10.63,10.63 0,0 1,59.37 70L10.63,70A10.63,10.63 0,0 1,0 59.37L0,10.63A10.63,10.63 0,0 1,10.63 0z" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M35,35m-21.5,0a21.5,21.5 0,1 1,43 0a21.5,21.5 0,1 1,-43 0" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_x.xml b/src/android/app/src/main/res/drawable/facebutton_x.xml
new file mode 100644
index 000000000..43fdd14c4
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_x.xml
@@ -0,0 +1,22 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="51.8" android:centerY="51.8"
+ android:gradientRadius="51.8" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.6" android:fillColor="#FF000000"
+ android:pathData="M48.39,50.91 L36.63,34.31h6.08L51.8,47.75l9,-13.44h5.93L55.07,50.86 67.92,69.3H61.69l-10,-15.17L41.57,69.3H35.69Z" android:strokeAlpha="0.6"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_x_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_x_depressed.xml
new file mode 100644
index 000000000..a9ba49169
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_x_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M48.39,50.91 L36.63,34.31h6.08L51.8,47.75l9,-13.44h5.93L55.07,50.86 67.92,69.3H61.69l-10,-15.17L41.57,69.3H35.69Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_y.xml b/src/android/app/src/main/res/drawable/facebutton_y.xml
new file mode 100644
index 000000000..980be3b2e
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_y.xml
@@ -0,0 +1,22 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="51.8" android:centerY="51.8"
+ android:gradientRadius="51.8" android:type="radial">
+ <item android:color="#FFC3C4C5" android:offset="0.58"/>
+ <item android:color="#FFC6C6C6" android:offset="0.84"/>
+ <item android:color="#FFC7C7C7" android:offset="0.88"/>
+ <item android:color="#FFC2C2C2" android:offset="0.91"/>
+ <item android:color="#FFB5B5B5" android:offset="0.94"/>
+ <item android:color="#FF9E9E9E" android:offset="0.98"/>
+ <item android:color="#FF8F8F8F" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.6" android:fillColor="#FF000000"
+ android:pathData="M49.43,54.37l-13.23,-20h6.07L51.8,49.68l9.83,-15.36h5.78l-13.24,20V69.29H49.43Z" android:strokeAlpha="0.6"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/facebutton_y_depressed.xml b/src/android/app/src/main/res/drawable/facebutton_y_depressed.xml
new file mode 100644
index 000000000..320d63897
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/facebutton_y_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="103.61dp"
+ android:viewportHeight="103.61" android:viewportWidth="103.61"
+ android:width="103.61dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M51.8,51.8m-51.8,0a51.8,51.8 0,1 1,103.6 0a51.8,51.8 0,1 1,-103.6 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M49.43,54.37l-13.23,-20h6.07L51.8,49.68l9.83,-15.36h5.78l-13.24,20V69.29H49.43Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_add.xml b/src/android/app/src/main/res/drawable/ic_add.xml
new file mode 100644
index 000000000..f7deb2532
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_add.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_arrow_forward.xml b/src/android/app/src/main/res/drawable/ic_arrow_forward.xml
new file mode 100644
index 000000000..3b85a3e2c
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_arrow_forward.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:autoMirrored="true"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,4l-1.41,1.41L16.17,11H4v2h12.17l-5.58,5.59L12,20l8,-8z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_back.xml b/src/android/app/src/main/res/drawable/ic_back.xml
new file mode 100644
index 000000000..f99fea719
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_back.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:autoMirrored="true"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_cartridge.xml b/src/android/app/src/main/res/drawable/ic_cartridge.xml
new file mode 100644
index 000000000..b332d9c0a
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_cartridge.xml
@@ -0,0 +1,12 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,7c-3.44,0 -4.16,0.35 -4.31,0.5s0,0 0,0.17v8.91a0.38,0.38 0,0 0,0.37 0.37h7.85a0.38,0.38 0,0 0,0.38 -0.37V7.53S15.41,7 12,7Z" />
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M22,6.51a23.12,23.12 0,0 0,-9.75 -2.1A26.09,26.09 0,0 0,2.05 6.5a1.43,1.43 0,0 0,-0.84 1.3L1.21,18.41A1.19,1.19 0,0 0,2.4 19.6L21.57,19.6a1.19,1.19 0,0 0,1.19 -1.19L22.76,7.81A1.43,1.43 0,0 0,22 6.51ZM5.56,18.59h-1v-12l1,-0.3ZM17.29,16.59A1.38,1.38 0,0 1,15.91 18L8,18a1.37,1.37 0,0 1,-1.37 -1.37L6.63,7.73A1.13,1.13 0,0 1,7 6.84c0.41,-0.41 1.3,-0.8 5,-0.8s4.57,0.38 5,0.79a1.12,1.12 0,0 1,0.31 0.87ZM18.39,18.59L18.39,6.26c0.33,0.09 0.66,0.19 1,0.31v12Z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_cartridge_outline.xml b/src/android/app/src/main/res/drawable/ic_cartridge_outline.xml
new file mode 100644
index 000000000..cc35d7eff
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_cartridge_outline.xml
@@ -0,0 +1,12 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M22,6.5c-3.1,-1.4 -6.4,-2.1 -9.7,-2.1C8.7,4.4 5.3,5.1 2,6.5C1.5,6.7 1.2,7.2 1.2,7.8v10.6c0,0.7 0.5,1.2 1.2,1.2h19.2c0.7,0 1.2,-0.5 1.2,-1.2c0,0 0,0 0,0l0,0V7.8C22.8,7.3 22.5,6.7 22,6.5zM4.6,18.6H3.6v-3.2c0,-0.2 -0.1,-0.3 -0.2,-0.4c-0.4,-0.2 -0.8,-0.4 -1.2,-0.5V7.8c0,-0.2 0.1,-0.3 0.2,-0.4c0.7,-0.3 1.4,-0.6 2.1,-0.8V18.6zM18.4,18.6H5.6V6.3c2.2,-0.6 4.4,-0.9 6.7,-0.9c2.1,0 4.1,0.3 6.1,0.8L18.4,18.6zM21.8,14.5c-0.4,0.1 -0.8,0.3 -1.2,0.5c-0.1,0.1 -0.2,0.2 -0.2,0.4v3.2h-1v-12c0.7,0.2 1.5,0.5 2.2,0.8c0.1,0.1 0.2,0.2 0.2,0.4L21.8,14.5z" />
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M17,6.8C16.5,6.4 15.7,6 12,6S7.4,6.4 7,6.8C6.8,7.1 6.6,7.4 6.7,7.7v8.9C6.7,17.4 7.3,18 8,18h7.9c0.8,0 1.4,-0.6 1.4,-1.4l0,0V7.7C17.3,7.4 17.2,7.1 17,6.8zM16.2,15.9c0,0.6 -0.5,1.1 -1.1,1.1H8.9c-0.6,0 -1.1,-0.5 -1.1,-1.1V8.4c0,-0.3 0.1,-0.5 0.2,-0.8C8.4,7.3 9,7 12,7s3.6,0.3 4,0.7c0.2,0.2 0.2,0.5 0.2,0.8V15.9z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_check.xml b/src/android/app/src/main/res/drawable/ic_check.xml
new file mode 100644
index 000000000..04b89abf2
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_check.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_check_circle.xml b/src/android/app/src/main/res/drawable/ic_check_circle.xml
new file mode 100644
index 000000000..49e6ecd71
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_check_circle.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM10,17l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_clear.xml b/src/android/app/src/main/res/drawable/ic_clear.xml
new file mode 100644
index 000000000..b6edb1d32
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_clear.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_controller.xml b/src/android/app/src/main/res/drawable/ic_controller.xml
new file mode 100644
index 000000000..060cd9ae2
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_controller.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M21,6L3,6c-1.1,0 -2,0.9 -2,2v8c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2L23,8c0,-1.1 -0.9,-2 -2,-2zM11,13L8,13v3L6,16v-3L3,13v-2h3L6,8h2v3h3v2zM15.5,15c-0.83,0 -1.5,-0.67 -1.5,-1.5s0.67,-1.5 1.5,-1.5 1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5zM19.5,12c-0.83,0 -1.5,-0.67 -1.5,-1.5S18.67,9 19.5,9s1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_diamond.xml b/src/android/app/src/main/res/drawable/ic_diamond.xml
new file mode 100644
index 000000000..3896e12e4
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_diamond.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M19,3H5L2,9l10,12L22,9L19,3zM9.62,8l1.5,-3h1.76l1.5,3H9.62zM11,10v6.68L5.44,10H11zM13,10h5.56L13,16.68V10zM19.26,8h-2.65l-1.5,-3h2.65L19.26,8zM6.24,5h2.65l-1.5,3H4.74L6.24,5z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_discord.xml b/src/android/app/src/main/res/drawable/ic_discord.xml
new file mode 100644
index 000000000..7a9c6ba79
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_discord.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="200dp"
+ android:height="200dp"
+ android:viewportWidth="256"
+ android:viewportHeight="256">
+ <path
+ android:fillColor="#5865F2"
+ android:fillType="nonZero"
+ android:pathData="M216.86,45.1C200.29,37.34 182.57,31.71 164.04,28.5C161.77,32.61 159.11,38.15 157.28,42.55C137.58,39.58 118.07,39.58 98.74,42.55C96.91,38.15 94.19,32.61 91.9,28.5C73.35,31.71 55.61,37.36 39.04,45.14C5.62,95.65 -3.44,144.9 1.09,193.46C23.26,210.01 44.74,220.07 65.86,226.65C71.08,219.47 75.73,211.84 79.74,203.8C72.1,200.9 64.79,197.32 57.89,193.17C59.72,191.81 61.51,190.39 63.24,188.93C105.37,208.63 151.13,208.63 192.75,188.93C194.51,190.39 196.3,191.81 198.11,193.17C191.18,197.34 183.85,200.92 176.22,203.82C180.23,211.84 184.86,219.49 190.1,226.67C211.24,220.09 232.74,210.03 254.91,193.46C260.23,137.17 245.83,88.37 216.86,45.1ZM85.47,163.59C72.83,163.59 62.46,151.79 62.46,137.41C62.46,123.04 72.61,111.21 85.47,111.21C98.34,111.21 108.71,123.02 108.49,137.41C108.51,151.79 98.34,163.59 85.47,163.59ZM170.53,163.59C157.88,163.59 147.51,151.79 147.51,137.41C147.51,123.04 157.66,111.21 170.53,111.21C183.39,111.21 193.76,123.02 193.54,137.41C193.54,151.79 183.39,163.59 170.53,163.59Z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_exit.xml b/src/android/app/src/main/res/drawable/ic_exit.xml
new file mode 100644
index 000000000..a55a1d387
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_exit.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:autoMirrored="true"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M10.09,15.59L11.5,17l5,-5 -5,-5 -1.41,1.41L12.67,11H3v2h9.67l-2.58,2.59zM19,3H5c-1.11,0 -2,0.9 -2,2v4h2V5h14v14H5v-4H3v4c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2V5c0,-1.1 -0.9,-2 -2,-2z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_firmware.xml b/src/android/app/src/main/res/drawable/ic_firmware.xml
new file mode 100644
index 000000000..61f3485e4
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_firmware.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="960"
+ android:viewportHeight="960"
+ android:tint="?attr/colorControlNormal">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M160,840Q127,840 103.5,816.5Q80,793 80,760L80,200Q80,167 103.5,143.5Q127,120 160,120L720,120Q753,120 776.5,143.5Q800,167 800,200L800,280L840,280Q857,280 868.5,291.5Q880,303 880,320Q880,337 868.5,348.5Q857,360 840,360L800,360L800,440L840,440Q857,440 868.5,451.5Q880,463 880,480Q880,497 868.5,508.5Q857,520 840,520L800,520L800,600L840,600Q857,600 868.5,611.5Q880,623 880,640Q880,657 868.5,668.5Q857,680 840,680L800,680L800,760Q800,793 776.5,816.5Q753,840 720,840L160,840ZM160,760L720,760Q720,760 720,760Q720,760 720,760L720,200Q720,200 720,200Q720,200 720,200L160,200Q160,200 160,200Q160,200 160,200L160,760Q160,760 160,760Q160,760 160,760ZM280,680L400,680Q417,680 428.5,668.5Q440,657 440,640L440,560Q440,543 428.5,531.5Q417,520 400,520L280,520Q263,520 251.5,531.5Q240,543 240,560L240,640Q240,657 251.5,668.5Q263,680 280,680ZM520,400L600,400Q617,400 628.5,388.5Q640,377 640,360L640,320Q640,303 628.5,291.5Q617,280 600,280L520,280Q503,280 491.5,291.5Q480,303 480,320L480,360Q480,377 491.5,388.5Q503,400 520,400ZM280,480L400,480Q417,480 428.5,468.5Q440,457 440,440L440,320Q440,303 428.5,291.5Q417,280 400,280L280,280Q263,280 251.5,291.5Q240,303 240,320L240,440Q240,457 251.5,468.5Q263,480 280,480ZM520,680L600,680Q617,680 628.5,668.5Q640,657 640,640L640,480Q640,463 628.5,451.5Q617,440 600,440L520,440Q503,440 491.5,451.5Q480,463 480,480L480,640Q480,657 491.5,668.5Q503,680 520,680ZM160,200L160,200Q160,200 160,200Q160,200 160,200L160,760Q160,760 160,760Q160,760 160,760L160,760Q160,760 160,760Q160,760 160,760L160,200Q160,200 160,200Q160,200 160,200Z"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_folder_open.xml b/src/android/app/src/main/res/drawable/ic_folder_open.xml
new file mode 100644
index 000000000..7958fdaec
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_folder_open.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M4.17,20.48C3.431,20.48 2.805,20.223 2.291,19.709C1.777,19.195 1.52,18.569 1.52,17.83V5.958C1.52,5.21 1.777,4.581 2.291,4.072C2.805,3.562 3.431,3.308 4.17,3.308H9.788L12,5.52H19.83C20.578,5.52 21.207,5.777 21.716,6.291C22.226,6.805 22.48,7.431 22.48,8.17H4.17V17.901L6.57,10.17H23.938L21.448,18.194C21.201,18.957 20.817,19.528 20.294,19.909C19.77,20.29 19.118,20.48 18.336,20.48H4.17Z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_github.xml b/src/android/app/src/main/res/drawable/ic_github.xml
new file mode 100644
index 000000000..c2ee43803
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_github.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="98dp"
+ android:height="96dp"
+ android:viewportWidth="98"
+ android:viewportHeight="96">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:fillType="evenOdd"
+ android:pathData="M48.854,0C21.839,0 0,22 0,49.217c0,21.756 13.993,40.172 33.405,46.69 2.427,0.49 3.316,-1.059 3.316,-2.362 0,-1.141 -0.08,-5.052 -0.08,-9.127 -13.59,2.934 -16.42,-5.867 -16.42,-5.867 -2.184,-5.704 -5.42,-7.17 -5.42,-7.17 -4.448,-3.015 0.324,-3.015 0.324,-3.015 4.934,0.326 7.523,5.052 7.523,5.052 4.367,7.496 11.404,5.378 14.235,4.074 0.404,-3.178 1.699,-5.378 3.074,-6.6 -10.839,-1.141 -22.243,-5.378 -22.243,-24.283 0,-5.378 1.94,-9.778 5.014,-13.2 -0.485,-1.222 -2.184,-6.275 0.486,-13.038 0,0 4.125,-1.304 13.426,5.052a46.97,46.97 0,0 1,12.214 -1.63c4.125,0 8.33,0.571 12.213,1.63 9.302,-6.356 13.427,-5.052 13.427,-5.052 2.67,6.763 0.97,11.816 0.485,13.038 3.155,3.422 5.015,7.822 5.015,13.2 0,18.905 -11.404,23.06 -22.324,24.283 1.78,1.548 3.316,4.481 3.316,9.126 0,6.6 -0.08,11.897 -0.08,13.526 0,1.304 0.89,2.853 3.316,2.364 19.412,-6.52 33.405,-24.935 33.405,-46.691C97.707,22 75.788,0 48.854,0z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_icon_bg.xml b/src/android/app/src/main/res/drawable/ic_icon_bg.xml
new file mode 100644
index 000000000..df62dde92
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_icon_bg.xml
@@ -0,0 +1,751 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="512dp"
+ android:height="512dp"
+ android:viewportWidth="512"
+ android:viewportHeight="512">
+ <group>
+ <clip-path
+ android:pathData="M0,0h512v512h-512z"/>
+ <path
+ android:pathData="M0,0h512v512h-512z"
+ android:fillColor="#ffffff"/>
+ <path
+ android:pathData="M0,0h512v512h-512z"
+ android:fillColor="#1C1C1C"/>
+ <path
+ android:pathData="M208.16,7H159.88C155.54,7 152,10.54 152,14.88V92.16C152,96.54 155.54,100.04 159.88,100.04H208.12C212.5,100.04 216,96.5 216,92.16V14.88C216.04,10.54 212.5,7 208.16,7Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M208.8,89.73H158.44C156.65,89.73 155.18,88.26 155.18,86.47V17.02C155.18,15.23 156.65,13.76 158.44,13.76H208.84C210.63,13.76 212.1,15.23 212.1,17.02V86.51C212.06,88.26 210.59,89.73 208.8,89.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M194.16,14.16H173.08V12.93C173.08,12.29 173.6,11.77 174.24,11.77H193.01C193.65,11.77 194.16,12.29 194.16,12.93V14.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M183.86,97.29L177.93,92.92H189.79L183.86,97.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M424.16,7H375.88C371.54,7 368,10.54 368,14.88V92.16C368,96.54 371.54,100.04 375.88,100.04H424.12C428.5,100.04 432,96.5 432,92.16V14.88C432.04,10.54 428.5,7 424.16,7Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M424.8,89.73H374.44C372.65,89.73 371.18,88.26 371.18,86.47V17.02C371.18,15.23 372.65,13.76 374.44,13.76H424.84C426.63,13.76 428.1,15.23 428.1,17.02V86.51C428.06,88.26 426.59,89.73 424.8,89.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M410.16,14.16H389.08V12.93C389.08,12.29 389.6,11.77 390.23,11.77H409.01C409.65,11.77 410.16,12.29 410.16,12.93V14.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M399.86,97.29L393.93,92.92H405.79L399.86,97.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.16,109H303.88C299.54,109 296,112.54 296,116.88V194.16C296,198.54 299.54,202.04 303.88,202.04H352.12C356.5,202.04 360,198.5 360,194.16V116.88C360.04,112.54 356.5,109 352.16,109Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.8,191.73H302.44C300.65,191.73 299.18,190.26 299.18,188.47V119.02C299.18,117.23 300.65,115.76 302.44,115.76H352.84C354.63,115.76 356.1,117.23 356.1,119.02V188.51C356.06,190.26 354.59,191.73 352.8,191.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M338.16,116.16H317.08V114.93C317.08,114.29 317.6,113.77 318.23,113.77H337.01C337.65,113.77 338.16,114.29 338.16,114.93V116.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M327.86,199.29L321.93,194.92H333.79L327.86,199.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.16,7H447.88C443.54,7 440,10.54 440,14.88V92.16C440,96.54 443.54,100.04 447.88,100.04H496.12C500.5,100.04 504,96.5 504,92.16V14.88C504.04,10.54 500.5,7 496.16,7Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.8,89.73H446.44C444.65,89.73 443.18,88.26 443.18,86.47V17.02C443.18,15.23 444.65,13.76 446.44,13.76H496.84C498.63,13.76 500.1,15.23 500.1,17.02V86.51C500.06,88.26 498.59,89.73 496.8,89.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M482.16,14.16H461.08V12.93C461.08,12.29 461.6,11.77 462.23,11.77H481.01C481.65,11.77 482.16,12.29 482.16,12.93V14.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M471.86,97.29L465.93,92.92H477.79L471.86,97.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.16,7H303.88C299.54,7 296,10.54 296,14.88V92.16C296,96.54 299.54,100.04 303.88,100.04H352.12C356.5,100.04 360,96.5 360,92.16V14.88C360.04,10.54 356.5,7 352.16,7Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.8,89.73H302.44C300.65,89.73 299.18,88.26 299.18,86.47V17.02C299.18,15.23 300.65,13.76 302.44,13.76H352.84C354.63,13.76 356.1,15.23 356.1,17.02V86.51C356.06,88.26 354.59,89.73 352.8,89.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M338.16,14.16H317.08V12.93C317.08,12.29 317.6,11.77 318.23,11.77H337.01C337.65,11.77 338.16,12.29 338.16,12.93V14.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M327.86,97.29L321.93,92.92H333.79L327.86,97.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M280.16,7H231.88C227.54,7 224,10.54 224,14.88V92.16C224,96.54 227.54,100.04 231.88,100.04H280.12C284.5,100.04 288,96.5 288,92.16V14.88C288.04,10.54 284.5,7 280.16,7Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M280.8,89.73H230.44C228.65,89.73 227.18,88.26 227.18,86.47V17.02C227.18,15.23 228.65,13.76 230.44,13.76H280.84C282.63,13.76 284.1,15.23 284.1,17.02V86.51C284.06,88.26 282.59,89.73 280.8,89.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M266.16,14.16H245.08V12.93C245.08,12.29 245.6,11.77 246.24,11.77H265.01C265.65,11.77 266.16,12.29 266.16,12.93V14.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M255.86,97.29L249.93,92.92H261.79L255.86,97.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M424.16,109H375.88C371.54,109 368,112.54 368,116.88V194.16C368,198.54 371.54,202.04 375.88,202.04H424.12C428.5,202.04 432,198.5 432,194.16V116.88C432.04,112.54 428.5,109 424.16,109Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M135.16,411H86.88C82.54,411 79,414.54 79,418.88V496.16C79,500.54 82.54,504.04 86.88,504.04H135.12C139.5,504.04 143,500.5 143,496.16V418.88C143.04,414.54 139.5,411 135.16,411Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M64.16,7H15.88C11.54,7 8,10.54 8,14.88V92.16C8,96.54 11.54,100.04 15.88,100.04H64.12C68.5,100.04 72,96.5 72,92.16V14.88C72.04,10.54 68.5,7 64.16,7Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M64.8,89.73H14.44C12.65,89.73 11.18,88.26 11.18,86.47V17.02C11.18,15.23 12.65,13.76 14.44,13.76H64.84C66.63,13.76 68.1,15.23 68.1,17.02V86.51C68.06,88.26 66.59,89.73 64.8,89.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M50.16,14.16H29.08V12.93C29.08,12.29 29.6,11.77 30.23,11.77H49.01C49.65,11.77 50.16,12.29 50.16,12.93V14.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M39.86,97.29L33.93,92.92H45.79L39.86,97.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M63.16,310H14.88C10.54,310 7,313.54 7,317.88V395.16C7,399.54 10.54,403.04 14.88,403.04H63.12C67.5,403.04 71,399.5 71,395.16V317.88C71.04,313.54 67.5,310 63.16,310Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M63.8,392.73H13.44C11.65,392.73 10.18,391.26 10.18,389.47V320.02C10.18,318.23 11.65,316.76 13.44,316.76H63.84C65.63,316.76 67.1,318.23 67.1,320.02V389.51C67.06,391.26 65.59,392.73 63.8,392.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M49.16,317.16H28.08V315.93C28.08,315.29 28.6,314.77 29.23,314.77H48.01C48.65,314.77 49.16,315.29 49.16,315.93V317.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M38.86,400.29L32.93,395.92H44.79L38.86,400.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M424.16,209H375.88C371.54,209 368,212.54 368,216.88V294.16C368,298.54 371.54,302.04 375.88,302.04H424.12C428.5,302.04 432,298.5 432,294.16V216.88C432.04,212.54 428.5,209 424.16,209Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M424.8,291.73H374.44C372.65,291.73 371.18,290.26 371.18,288.47V219.02C371.18,217.23 372.65,215.76 374.44,215.76H424.84C426.63,215.76 428.1,217.23 428.1,219.02V288.51C428.06,290.26 426.59,291.73 424.8,291.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M410.16,216.16H389.08V214.93C389.08,214.29 389.6,213.77 390.23,213.77H409.01C409.65,213.77 410.16,214.29 410.16,214.93V216.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M399.86,299.29L393.93,294.92H405.79L399.86,299.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.16,209H447.88C443.54,209 440,212.54 440,216.88V294.16C440,298.54 443.54,302.04 447.88,302.04H496.12C500.5,302.04 504,298.5 504,294.16V216.88C504.04,212.54 500.5,209 496.16,209Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.8,291.73H446.44C444.65,291.73 443.18,290.26 443.18,288.47V219.02C443.18,217.23 444.65,215.76 446.44,215.76H496.84C498.63,215.76 500.1,217.23 500.1,219.02V288.51C500.06,290.26 498.59,291.73 496.8,291.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M482.16,216.16H461.08V214.93C461.08,214.29 461.6,213.77 462.23,213.77H481.01C481.65,213.77 482.16,214.29 482.16,214.93V216.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M471.86,299.29L465.93,294.92H477.79L471.86,299.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M136.16,209H87.88C83.54,209 80,212.54 80,216.88V294.16C80,298.54 83.54,302.04 87.88,302.04H136.12C140.5,302.04 144,298.5 144,294.16V216.88C144.04,212.54 140.5,209 136.16,209Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M136.8,291.73H86.44C84.65,291.73 83.18,290.26 83.18,288.47V219.02C83.18,217.23 84.65,215.76 86.44,215.76H136.84C138.63,215.76 140.1,217.23 140.1,219.02V288.51C140.06,290.26 138.59,291.73 136.8,291.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M122.16,216.16H101.08V214.93C101.08,214.29 101.6,213.77 102.24,213.77H121.01C121.65,213.77 122.16,214.29 122.16,214.93V216.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M111.86,299.29L105.93,294.92H117.79L111.86,299.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.16,209H303.88C299.54,209 296,212.54 296,216.88V294.16C296,298.54 299.54,302.04 303.88,302.04H352.12C356.5,302.04 360,298.5 360,294.16V216.88C360.04,212.54 356.5,209 352.16,209Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.8,291.73H302.44C300.65,291.73 299.18,290.26 299.18,288.47V219.02C299.18,217.23 300.65,215.76 302.44,215.76H352.84C354.63,215.76 356.1,217.23 356.1,219.02V288.51C356.06,290.26 354.59,291.73 352.8,291.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M338.16,216.16H317.08V214.93C317.08,214.29 317.6,213.77 318.23,213.77H337.01C337.65,213.77 338.16,214.29 338.16,214.93V216.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M327.86,299.29L321.93,294.92H333.79L327.86,299.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M64.16,209H15.88C11.54,209 8,212.54 8,216.88V294.16C8,298.54 11.54,302.04 15.88,302.04H64.12C68.5,302.04 72,298.5 72,294.16V216.88C72.04,212.54 68.5,209 64.16,209Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M64.8,291.73H14.44C12.65,291.73 11.18,290.26 11.18,288.47V219.02C11.18,217.23 12.65,215.76 14.44,215.76H64.84C66.63,215.76 68.1,217.23 68.1,219.02V288.51C68.06,290.26 66.59,291.73 64.8,291.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M50.16,216.16H29.08V214.93C29.08,214.29 29.6,213.77 30.23,213.77H49.01C49.65,213.77 50.16,214.29 50.16,214.93V216.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M39.86,299.29L33.93,294.92H45.79L39.86,299.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M135.16,310H86.88C82.54,310 79,313.54 79,317.88V395.16C79,399.54 82.54,403.04 86.88,403.04H135.12C139.5,403.04 143,399.5 143,395.16V317.88C143.04,313.54 139.5,310 135.16,310Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M135.8,392.73H85.44C83.65,392.73 82.18,391.26 82.18,389.47V320.02C82.18,318.23 83.65,316.76 85.44,316.76H135.84C137.63,316.76 139.1,318.23 139.1,320.02V389.51C139.06,391.26 137.59,392.73 135.8,392.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M121.16,317.16H100.08V315.93C100.08,315.29 100.6,314.77 101.24,314.77H120.01C120.65,314.77 121.16,315.29 121.16,315.93V317.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M110.86,400.29L104.93,395.92H116.79L110.86,400.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M208.16,108H159.88C155.54,108 152,111.54 152,115.88V193.16C152,197.54 155.54,201.04 159.88,201.04H208.12C212.5,201.04 216,197.5 216,193.16V115.88C216.04,111.54 212.5,108 208.16,108Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M208.8,190.73H158.44C156.65,190.73 155.18,189.26 155.18,187.47V118.02C155.18,116.23 156.65,114.76 158.44,114.76H208.84C210.63,114.76 212.1,116.23 212.1,118.02V187.51C212.06,189.26 210.59,190.73 208.8,190.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M194.16,115.16H173.08V113.93C173.08,113.29 173.6,112.77 174.24,112.77H193.01C193.65,112.77 194.16,113.29 194.16,113.93V115.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M183.86,198.29L177.93,193.92H189.79L183.86,198.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.16,108H447.88C443.54,108 440,111.54 440,115.88V193.16C440,197.54 443.54,201.04 447.88,201.04H496.12C500.5,201.04 504,197.5 504,193.16V115.88C504.04,111.54 500.5,108 496.16,108Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.8,190.73H446.44C444.65,190.73 443.18,189.26 443.18,187.47V118.02C443.18,116.23 444.65,114.76 446.44,114.76H496.84C498.63,114.76 500.1,116.23 500.1,118.02V187.51C500.06,189.26 498.59,190.73 496.8,190.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M482.16,115.16H461.08V113.93C461.08,113.29 461.6,112.77 462.23,112.77H481.01C481.65,112.77 482.16,113.29 482.16,113.93V115.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M471.86,198.29L465.93,193.92H477.79L471.86,198.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M64.16,108H15.88C11.54,108 8,111.54 8,115.88V193.16C8,197.54 11.54,201.04 15.88,201.04H64.12C68.5,201.04 72,197.5 72,193.16V115.88C72.04,111.54 68.5,108 64.16,108Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M64.8,190.73H14.44C12.65,190.73 11.18,189.26 11.18,187.47V118.02C11.18,116.23 12.65,114.76 14.44,114.76H64.84C66.63,114.76 68.1,116.23 68.1,118.02V187.51C68.06,189.26 66.59,190.73 64.8,190.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M50.16,115.16H29.08V113.93C29.08,113.29 29.6,112.77 30.23,112.77H49.01C49.65,112.77 50.16,113.29 50.16,113.93V115.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M39.86,198.29L33.93,193.92H45.79L39.86,198.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M280.16,108H231.88C227.54,108 224,111.54 224,115.88V193.16C224,197.54 227.54,201.04 231.88,201.04H280.12C284.5,201.04 288,197.5 288,193.16V115.88C288.04,111.54 284.5,108 280.16,108Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M280.8,190.73H230.44C228.65,190.73 227.18,189.26 227.18,187.47V118.02C227.18,116.23 228.65,114.76 230.44,114.76H280.84C282.63,114.76 284.1,116.23 284.1,118.02V187.51C284.06,189.26 282.59,190.73 280.8,190.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M266.16,115.16H245.08V113.93C245.08,113.29 245.6,112.77 246.24,112.77H265.01C265.65,112.77 266.16,113.29 266.16,113.93V115.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M255.86,198.29L249.93,193.92H261.79L255.86,198.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.16,310H447.88C443.54,310 440,313.54 440,317.88V395.16C440,399.54 443.54,403.04 447.88,403.04H496.12C500.5,403.04 504,399.5 504,395.16V317.88C504.04,313.54 500.5,310 496.16,310Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.8,392.73H446.44C444.65,392.73 443.18,391.26 443.18,389.47V320.02C443.18,318.23 444.65,316.76 446.44,316.76H496.84C498.63,316.76 500.1,318.23 500.1,320.02V389.51C500.06,391.26 498.59,392.73 496.8,392.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M482.16,317.16H461.08V315.93C461.08,315.29 461.6,314.77 462.23,314.77H481.01C481.65,314.77 482.16,315.29 482.16,315.93V317.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M471.86,400.29L465.93,395.92H477.79L471.86,400.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.16,310H303.88C299.54,310 296,313.54 296,317.88V395.16C296,399.54 299.54,403.04 303.88,403.04H352.12C356.5,403.04 360,399.5 360,395.16V317.88C360.04,313.54 356.5,310 352.16,310Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.8,392.73H302.44C300.65,392.73 299.18,391.26 299.18,389.47V320.02C299.18,318.23 300.65,316.76 302.44,316.76H352.84C354.63,316.76 356.1,318.23 356.1,320.02V389.51C356.06,391.26 354.59,392.73 352.8,392.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M338.16,317.16H317.08V315.93C317.08,315.29 317.6,314.77 318.23,314.77H337.01C337.65,314.77 338.16,315.29 338.16,315.93V317.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M327.86,400.29L321.93,395.92H333.79L327.86,400.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M63.16,411H14.88C10.54,411 7,414.54 7,418.88V496.16C7,500.54 10.54,504.04 14.88,504.04H63.12C67.5,504.04 71,500.5 71,496.16V418.88C71.04,414.54 67.5,411 63.16,411Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M63.8,493.73H13.44C11.65,493.73 10.18,492.26 10.18,490.47V421.02C10.18,419.23 11.65,417.76 13.44,417.76H63.84C65.63,417.76 67.1,419.23 67.1,421.02V490.51C67.06,492.26 65.59,493.73 63.8,493.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M49.16,418.16H28.08V416.93C28.08,416.29 28.6,415.77 29.23,415.77H48.01C48.65,415.77 49.16,416.29 49.16,416.93V418.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M38.86,501.29L32.93,496.92H44.79L38.86,501.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.16,411H447.88C443.54,411 440,414.54 440,418.88V496.16C440,500.54 443.54,504.04 447.88,504.04H496.12C500.5,504.04 504,500.5 504,496.16V418.88C504.04,414.54 500.5,411 496.16,411Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M496.8,493.73H446.44C444.65,493.73 443.18,492.26 443.18,490.47V421.02C443.18,419.23 444.65,417.76 446.44,417.76H496.84C498.63,417.76 500.1,419.23 500.1,421.02V490.51C500.06,492.26 498.59,493.73 496.8,493.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M482.16,418.16H461.08V416.93C461.08,416.29 461.6,415.77 462.23,415.77H481.01C481.65,415.77 482.16,416.29 482.16,416.93V418.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M471.86,501.29L465.93,496.92H477.79L471.86,501.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.16,411H303.88C299.54,411 296,414.54 296,418.88V496.16C296,500.54 299.54,504.04 303.88,504.04H352.12C356.5,504.04 360,500.5 360,496.16V418.88C360.04,414.54 356.5,411 352.16,411Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M352.8,493.73H302.44C300.65,493.73 299.18,492.26 299.18,490.47V421.02C299.18,419.23 300.65,417.76 302.44,417.76H352.84C354.63,417.76 356.1,419.23 356.1,421.02V490.51C356.06,492.26 354.59,493.73 352.8,493.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M338.16,418.16H317.08V416.93C317.08,416.29 317.6,415.77 318.23,415.77H337.01C337.65,415.77 338.16,416.29 338.16,416.93V418.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M327.86,501.29L321.93,496.92H333.79L327.86,501.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M208.16,411H159.88C155.54,411 152,414.54 152,418.88V496.16C152,500.54 155.54,504.04 159.88,504.04H208.12C212.5,504.04 216,500.5 216,496.16V418.88C216.04,414.54 212.5,411 208.16,411Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M208.8,493.73H158.44C156.65,493.73 155.18,492.26 155.18,490.47V421.02C155.18,419.23 156.65,417.76 158.44,417.76H208.84C210.63,417.76 212.1,419.23 212.1,421.02V490.51C212.06,492.26 210.59,493.73 208.8,493.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M194.16,418.16H173.08V416.93C173.08,416.29 173.6,415.77 174.24,415.77H193.01C193.65,415.77 194.16,416.29 194.16,416.93V418.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M183.86,501.29L177.93,496.92H189.79L183.86,501.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M280.16,411H231.88C227.54,411 224,414.54 224,418.88V496.16C224,500.54 227.54,504.04 231.88,504.04H280.12C284.5,504.04 288,500.5 288,496.16V418.88C288.04,414.54 284.5,411 280.16,411Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M280.8,493.73H230.44C228.65,493.73 227.18,492.26 227.18,490.47V421.02C227.18,419.23 228.65,417.76 230.44,417.76H280.84C282.63,417.76 284.1,419.23 284.1,421.02V490.51C284.06,492.26 282.59,493.73 280.8,493.73Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M266.16,418.16H245.08V416.93C245.08,416.29 245.6,415.77 246.24,415.77H265.01C265.65,415.77 266.16,416.29 266.16,416.93V418.16Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M255.86,501.29L249.93,496.92H261.79L255.86,501.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <group>
+ <clip-path
+ android:pathData="M80,8h64v192h-64z"/>
+ <path
+ android:pathData="M112.06,8H144.11V200H112.06C94.32,200 80,185.68 80,167.96V40.04C80,22.31 94.32,8 112.06,8Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M138.2,26.4H128.43C128.31,26.4 128.31,26.29 128.31,26.18V23.79C128.31,23.68 128.43,23.56 128.43,23.56H138.2C138.32,23.56 138.32,23.68 138.32,23.79V26.18C138.32,26.29 138.2,26.4 138.2,26.4Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M129.9,142.85V147.63C129.9,149.67 128.31,151.26 126.27,151.26H121.49C119.45,151.26 117.85,149.67 117.85,147.63V142.85C117.85,140.81 119.45,139.22 121.49,139.22H126.27C128.31,139.33 129.9,140.92 129.9,142.85Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M113.76,65.26C120.1,65.26 125.24,60.12 125.24,53.78C125.24,47.45 120.1,42.31 113.76,42.31C107.42,42.31 102.28,47.45 102.28,53.78C102.28,60.12 107.42,65.26 113.76,65.26Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M112.85,39.02V40.95C112.85,40.95 112.85,41.06 112.74,41.06C106.49,41.51 101.49,46.51 100.92,52.88C100.92,52.88 100.92,52.99 100.8,52.99H98.98C98.98,52.99 98.87,52.99 98.87,52.88C98.87,52.53 98.87,52.31 98.98,51.97C100.01,44.7 105.92,39.47 112.85,39.02Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M128.54,54.69C128.65,55.03 128.54,55.38 128.54,55.72C127.63,62.87 121.72,68.1 114.9,68.55C114.9,68.55 114.79,68.55 114.79,68.44V66.62C114.79,66.62 114.79,66.51 114.9,66.51C121.15,66.05 126.15,61.06 126.72,54.69C126.72,54.69 126.72,54.58 126.83,54.58H128.54V54.69Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M128.54,52.88H126.61C126.61,52.88 126.49,52.88 126.49,52.76C126.04,46.51 121.04,41.51 114.67,40.95C114.67,40.95 114.56,40.95 114.56,40.83V39.02C114.56,39.02 114.56,38.9 114.67,38.9C115.01,38.9 115.24,38.9 115.58,39.02C122.86,40.04 128.09,45.83 128.54,52.88Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M112.85,66.62V68.44C112.85,68.44 112.85,68.55 112.74,68.55C112.4,68.55 112.17,68.55 111.83,68.44C104.67,67.53 99.44,61.62 98.98,54.81C98.98,54.81 98.98,54.69 99.1,54.69H100.92C100.92,54.69 101.03,54.69 101.03,54.81C101.49,61.06 106.49,66.05 112.85,66.62C112.85,66.51 112.85,66.51 112.85,66.62Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M108.08,109.68C108.08,113.66 104.89,116.84 100.92,116.84C96.94,116.84 93.64,113.66 93.64,109.68C93.64,105.7 96.82,102.52 100.92,102.52C104.89,102.52 108.08,105.7 108.08,109.68Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M120.7,97.18C120.7,101.16 117.51,104.34 113.42,104.34C109.44,104.34 106.26,101.16 106.26,97.18C106.26,93.21 109.44,90.03 113.42,90.03C117.4,89.91 120.7,93.21 120.7,97.18Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M133.2,109.68C133.2,113.66 130.02,116.84 126.04,116.84C122.06,116.84 118.88,113.66 118.88,109.68C118.88,105.7 122.06,102.52 126.04,102.52C129.9,102.52 133.2,105.7 133.2,109.68Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M120.7,122.29C120.7,126.27 117.51,129.45 113.42,129.45C109.44,129.45 106.26,126.27 106.26,122.29C106.26,118.32 109.44,115.13 113.42,115.13C117.4,115.02 120.7,118.32 120.7,122.29Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ </group>
+ <path
+ android:pathData="M157.99,209.4C157.87,209.5 157.75,209.7 157.75,210C157.75,210.5 157.63,210.8 157.51,211.01C157.03,211.81 155.83,212.21 154.51,212.21L152.95,212.21C152.95,212.21 152.71,212.21 152.59,212.31C152.47,212.41 152.47,212.51 152.47,212.61L152.47,399.35C152.47,399.45 152.47,399.45 152.47,399.55C152.59,399.75 152.83,399.85 153.07,399.85L154.87,399.85C154.87,399.85 156.31,399.75 157.15,400.65C157.75,401.36 157.75,402.26 157.75,402.26C157.75,402.36 157.75,402.56 157.87,402.66C158.1,402.96 158.46,403.16 159.06,403.16L287.28,403.16C287.4,403.16 287.52,403.16 287.64,403.06C288,402.86 288,402.56 288,402.56L288,209.7C288,209.7 288,209.3 287.76,209.1C287.64,209 287.52,209 287.4,209L159.18,209C159.18,209 158.35,209 157.99,209.4ZM279.85,214.52C279.97,214.52 281.41,214.52 282.49,215.42C283.57,216.32 283.57,217.63 283.57,217.73L283.57,394.54C283.57,394.64 283.57,395.94 282.49,396.84C281.41,397.74 279.97,397.74 279.85,397.74L160.74,397.74C160.62,397.74 159.18,397.74 158.1,396.84C157.03,395.94 157.03,394.64 157.03,394.54L157.03,217.73C157.03,217.63 156.91,216.42 158.1,215.42C159.18,214.52 160.62,214.52 160.74,214.52L279.85,214.52Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M151.36,353.72L152.44,353.72L152.44,377.49L151.36,377.49C151.36,377.49 151,377.39 151,377.09L151,369.87C151,369.87 151,369.47 151.36,369.47L151.36,361.44C151.36,361.44 151,361.44 151,361.14L151,353.92C151.12,353.82 151.12,353.72 151.36,353.72Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M160.78,214.51L279.89,214.51C280.01,214.51 281.45,214.51 282.52,215.41C283.6,216.31 283.6,217.62 283.6,217.72L283.6,394.53C283.6,394.63 283.6,395.93 282.52,396.83C281.45,397.74 280.01,397.74 279.89,397.74L160.78,397.74C160.66,397.74 159.22,397.74 158.14,396.83C157.06,395.93 157.06,394.63 157.06,394.53L157.06,217.72C157.06,217.62 156.95,216.41 158.14,215.41C159.22,214.51 160.66,214.51 160.78,214.51Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <group>
+ <clip-path
+ android:pathData="M368,311h64v192h-64z"/>
+ <path
+ android:pathData="M400.06,311H368V503H400.06C417.79,503 432.11,488.68 432.11,470.96V343.04C432,325.32 417.68,311 400.06,311Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:strokeWidth="1"
+ android:pathData="M374.14,327.81H378.23C378.35,327.81 378.35,327.7 378.35,327.7V323.84C378.35,323.72 378.46,323.72 378.46,323.72H379.6C379.71,323.72 379.71,323.84 379.71,323.84V327.7C379.71,327.81 379.82,327.81 379.82,327.81H383.8C383.92,327.81 383.92,327.93 383.92,327.93V329.06C383.92,329.18 383.8,329.18 383.8,329.18H379.82C379.71,329.18 379.71,329.29 379.71,329.29V333.15C379.71,333.27 379.6,333.27 379.6,333.27H378.46C378.35,333.27 378.35,333.15 378.35,333.15V329.29C378.35,329.18 378.23,329.18 378.23,329.18H374.14C374.02,329.18 374.02,329.06 374.02,329.06V327.93C374.02,327.93 374.02,327.81 374.14,327.81Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:strokeColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M399.49,423.81C405.83,423.81 410.97,418.68 410.97,412.34C410.97,406 405.83,400.86 399.49,400.86C393.15,400.86 388.01,406 388.01,412.34C388.01,418.68 393.15,423.81 399.49,423.81Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M398.58,397.68V399.5C398.58,399.5 398.58,399.61 398.46,399.61C392.21,400.07 387.21,405.07 386.64,411.43C386.64,411.43 386.64,411.54 386.53,411.54H384.71C384.71,411.54 384.6,411.54 384.6,411.43C384.6,411.09 384.6,410.86 384.71,410.52C385.73,403.25 391.64,398.02 398.58,397.68C398.58,397.57 398.58,397.57 398.58,397.68Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M414.27,413.25C414.38,413.59 414.27,413.93 414.27,414.27C413.36,421.43 407.45,426.65 400.63,427.11C400.63,427.11 400.51,427.11 400.51,426.99V425.18C400.51,425.18 400.51,425.06 400.63,425.06C406.88,424.61 411.88,419.61 412.45,413.25C412.45,413.25 412.45,413.14 412.56,413.14H414.27V413.25Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M414.27,411.43H412.33C412.33,411.43 412.22,411.43 412.22,411.32C411.77,405.07 406.76,400.07 400.4,399.5C400.4,399.5 400.28,399.5 400.28,399.39V397.57C400.28,397.57 400.28,397.46 400.4,397.46C400.74,397.46 400.97,397.46 401.31,397.57C408.58,398.59 413.81,404.39 414.27,411.43Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M398.58,425.18V426.99C398.58,426.99 398.58,427.11 398.46,427.11C398.12,427.11 397.9,427.11 397.56,426.99C390.39,426.09 385.17,420.18 384.71,413.36C384.71,413.36 384.71,413.25 384.82,413.25H386.64C386.64,413.25 386.76,413.25 386.76,413.36C387.21,419.61 392.21,424.61 398.58,425.18Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M392.67,358.15C392.67,362.12 389.48,365.3 385.51,365.3C381.53,365.42 378.23,362.12 378.23,358.15C378.23,354.17 381.41,350.99 385.51,350.99C389.48,350.99 392.67,354.17 392.67,358.15Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M405.29,345.65C405.29,349.63 402.1,352.81 398.01,352.81C394.03,352.81 390.85,349.63 390.85,345.65C390.85,341.67 394.03,338.49 398.01,338.49C401.99,338.38 405.29,341.67 405.29,345.65Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M417.79,358.15C417.79,362.12 414.61,365.3 410.63,365.3C406.65,365.3 403.47,362.12 403.47,358.15C403.47,354.17 406.65,350.99 410.63,350.99C414.49,350.99 417.79,354.17 417.79,358.15Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M405.29,370.76C405.29,374.73 402.1,377.92 398.01,377.92C394.03,377.92 390.85,374.73 390.85,370.76C390.85,366.78 394.03,363.6 398.01,363.6C401.99,363.49 405.29,366.78 405.29,370.76Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M394.15,448.81C394.15,452.33 391.3,455.17 387.78,455.17C384.26,455.17 381.41,452.33 381.41,448.81C381.41,445.29 384.26,442.45 387.78,442.45C391.3,442.56 394.15,445.4 394.15,448.81Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ </group>
+ <path
+ android:pathData="M91.95,468.95C97.99,468.95 102.9,464.05 102.9,458C102.9,451.95 97.99,447.05 91.95,447.05C85.9,447.05 81,451.95 81,458C81,464.05 85.9,468.95 91.95,468.95Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1A1A1A"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M88.14,457.83L93.88,454.5C94,454.42 94.17,454.53 94.17,454.67V461.3C94.17,461.44 94.02,461.53 93.88,461.47L88.14,458.14C88.02,458.08 88.02,457.92 88.14,457.83Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M111,449.9C117.05,449.9 121.95,444.99 121.95,438.95C121.95,432.9 117.05,428 111,428C104.95,428 100.05,432.9 100.05,438.95C100.05,444.99 104.95,449.9 111,449.9Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1A1A1A"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M111.17,435.14L114.5,440.88C114.58,440.99 114.47,441.17 114.33,441.17H107.7C107.56,441.17 107.47,441.02 107.53,440.88L110.86,435.14C110.92,435.02 111.08,435.02 111.17,435.14Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M130.05,468.95C136.1,468.95 141,464.05 141,458C141,451.95 136.1,447.05 130.05,447.05C124.01,447.05 119.1,451.95 119.1,458C119.1,464.05 124.01,468.95 130.05,468.95Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1A1A1A"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M133.86,458.17L128.12,461.5C128.01,461.58 127.83,461.47 127.83,461.33V454.7C127.83,454.56 127.98,454.47 128.12,454.53L133.86,457.86C134.01,457.92 134.01,458.08 133.86,458.17Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M111,488C117.05,488 121.95,483.1 121.95,477.05C121.95,471.01 117.05,466.1 111,466.1C104.95,466.1 100.05,471.01 100.05,477.05C100.05,483.1 104.95,488 111,488Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1A1A1A"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M110.83,480.86L107.5,475.12C107.42,475.01 107.53,474.83 107.67,474.83H114.3C114.44,474.83 114.53,474.98 114.47,475.12L111.14,480.86C111.08,481.01 110.92,481.01 110.83,480.86Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M380.95,165.95C386.99,165.95 391.9,161.05 391.9,155C391.9,148.95 386.99,144.05 380.95,144.05C374.9,144.05 370,148.95 370,155C370,161.05 374.9,165.95 380.95,165.95Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M380.46,155.54L377.68,151.3H378.96L380.98,154.54L383.05,151.3H384.27L381.49,155.54V158.7H380.49V155.54H380.46Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M399.72,185C405.76,185 410.66,180.1 410.66,174.05C410.66,168.01 405.76,163.1 399.72,163.1C393.67,163.1 388.77,168.01 388.77,174.05C388.77,180.1 393.67,185 399.72,185Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M397.44,170.64H400C400.31,170.64 400.63,170.67 400.88,170.75C401.17,170.84 401.39,170.95 401.59,171.1C401.79,171.24 401.93,171.44 402.08,171.66C402.19,171.89 402.25,172.18 402.25,172.49C402.25,172.91 402.13,173.26 401.9,173.54C401.68,173.8 401.36,173.99 400.99,174.14V174.17C401.22,174.17 401.42,174.25 401.62,174.34C401.82,174.42 401.99,174.56 402.13,174.74C402.27,174.9 402.39,175.08 402.47,175.3C402.56,175.53 402.59,175.76 402.59,176.01C402.59,176.35 402.53,176.64 402.39,176.9C402.25,177.15 402.08,177.35 401.82,177.55C401.59,177.72 401.31,177.86 400.99,177.95C400.68,178.03 400.34,178.09 399.97,178.09H397.44V170.64ZM398.44,173.71H399.8C400,173.71 400.17,173.68 400.34,173.65C400.51,173.63 400.65,173.54 400.77,173.46C400.88,173.37 400.99,173.26 401.05,173.11C401.14,172.97 401.17,172.8 401.17,172.6C401.17,172.32 401.08,172.06 400.88,171.83C400.68,171.61 400.4,171.52 400,171.52H398.44V173.71ZM398.44,177.15H399.92C400.06,177.15 400.23,177.12 400.43,177.1C400.6,177.07 400.8,177.01 400.94,176.9C401.11,176.81 401.22,176.67 401.34,176.53C401.45,176.35 401.51,176.16 401.51,175.9C401.51,175.47 401.36,175.13 401.08,174.9C400.8,174.68 400.4,174.56 399.92,174.56H398.44V177.15Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M419.05,165.95C425.1,165.95 430,161.05 430,155C430,148.95 425.1,144.05 419.05,144.05C413.01,144.05 408.1,148.95 408.1,155C408.1,161.05 413.01,165.95 419.05,165.95Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M418.63,151.3H419.54L422.69,158.67H421.53L420.79,156.85H417.29L416.55,158.67H415.38L418.63,151.3ZM420.42,155.99L419.05,152.61H419.02L417.63,155.99H420.42Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M400,146.9C406.05,146.9 410.95,141.99 410.95,135.95C410.95,129.9 406.05,125 400,125C393.95,125 389.05,129.9 389.05,135.95C389.05,141.99 393.95,146.9 400,146.9Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#1C1C1C"
+ android:fillAlpha="0.7"/>
+ <path
+ android:pathData="M399.26,135.78L396.79,132.28H398.07L400,135.12L401.9,132.28H403.16L400.68,135.78L403.41,139.67H402.1L399.97,136.46L397.84,139.67H396.59L399.26,135.78Z"
+ android:strokeAlpha="0.7"
+ android:fillColor="#282828"
+ android:fillAlpha="0.7"/>
+ </group>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_info_outline.xml b/src/android/app/src/main/res/drawable/ic_info_outline.xml
new file mode 100644
index 000000000..92ae0eeaf
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_info_outline.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M11,7h2v2h-2zM11,11h2v6h-2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_install.xml b/src/android/app/src/main/res/drawable/ic_install.xml
new file mode 100644
index 000000000..01f2de3da
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_install.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,16.5l4,-4h-3v-9h-2v9L8,12.5l4,4zM21,3.5h-6v1.99h6v14.03L3,19.52L3,5.49h6L9,3.5L3,3.5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2v-14c0,-1.1 -0.9,-2 -2,-2z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_key.xml b/src/android/app/src/main/res/drawable/ic_key.xml
new file mode 100644
index 000000000..a3943634f
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_key.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M21,10h-8.35C11.83,7.67 9.61,6 7,6c-3.31,0 -6,2.69 -6,6s2.69,6 6,6c2.61,0 4.83,-1.67 5.65,-4H13l2,2l2,-2l2,2l4,-4.04L21,10zM7,15c-1.65,0 -3,-1.35 -3,-3c0,-1.65 1.35,-3 3,-3s3,1.35 3,3C10,13.65 8.65,15 7,15z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_launcher.xml b/src/android/app/src/main/res/drawable/ic_launcher.xml
new file mode 100644
index 000000000..3bb60fdfb
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_launcher.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@drawable/ic_icon_bg" />
+ <foreground android:drawable="@drawable/ic_yuzu" />
+ <monochrome android:drawable="@drawable/ic_yuzu" />
+</adaptive-icon>
diff --git a/src/android/app/src/main/res/drawable/ic_log.xml b/src/android/app/src/main/res/drawable/ic_log.xml
new file mode 100644
index 000000000..f55b9ad85
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_log.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="960"
+ android:viewportHeight="960"
+ android:tint="?attr/colorControlNormal">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M360,720L600,720Q617,720 628.5,708.5Q640,697 640,680Q640,663 628.5,651.5Q617,640 600,640L360,640Q343,640 331.5,651.5Q320,663 320,680Q320,697 331.5,708.5Q343,720 360,720ZM360,560L600,560Q617,560 628.5,548.5Q640,537 640,520Q640,503 628.5,491.5Q617,480 600,480L360,480Q343,480 331.5,491.5Q320,503 320,520Q320,537 331.5,548.5Q343,560 360,560ZM240,880Q207,880 183.5,856.5Q160,833 160,800L160,160Q160,127 183.5,103.5Q207,80 240,80L527,80Q543,80 557.5,86Q572,92 583,103L777,297Q788,308 794,322.5Q800,337 800,353L800,800Q800,833 776.5,856.5Q753,880 720,880L240,880ZM520,320L520,160L240,160Q240,160 240,160Q240,160 240,160L240,800Q240,800 240,800Q240,800 240,800L720,800Q720,800 720,800Q720,800 720,800L720,360L560,360Q543,360 531.5,348.5Q520,337 520,320ZM240,160L240,160L240,320Q240,337 240,348.5Q240,360 240,360L240,360L240,160L240,320Q240,337 240,348.5Q240,360 240,360L240,360L240,800Q240,800 240,800Q240,800 240,800L240,800Q240,800 240,800Q240,800 240,800L240,160Q240,160 240,160Q240,160 240,160Z"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_nfc.xml b/src/android/app/src/main/res/drawable/ic_nfc.xml
new file mode 100644
index 000000000..3dacf798b
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_nfc.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M20,2L4,2c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM20,20L4,20L4,4h16v16zM18,6h-5c-1.1,0 -2,0.9 -2,2v2.28c-0.6,0.35 -1,0.98 -1,1.72 0,1.1 0.9,2 2,2s2,-0.9 2,-2c0,-0.74 -0.4,-1.38 -1,-1.72L13,8h3v8L8,16L8,8h2L10,6L6,6v12h12L18,6z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_notification.xml b/src/android/app/src/main/res/drawable/ic_notification.xml
new file mode 100644
index 000000000..b413f7585
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_notification.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M7.58,4.08L6.15,2.65C3.75,4.48 2.17,7.3 2.03,10.5h2c0.15,-2.65 1.51,-4.97 3.55,-6.42zM19.97,10.5h2c-0.15,-3.2 -1.73,-6.02 -4.12,-7.85l-1.42,1.43c2.02,1.45 3.39,3.77 3.54,6.42zM18,11c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2v-5zM12,22c0.14,0 0.27,-0.01 0.4,-0.04 0.65,-0.14 1.18,-0.58 1.44,-1.18 0.1,-0.24 0.15,-0.5 0.15,-0.78h-4c0.01,1.1 0.9,2 2.01,2z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_options.xml b/src/android/app/src/main/res/drawable/ic_options.xml
new file mode 100644
index 000000000..91d52f1b8
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_options.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M22.7,19l-9.1,-9.1c0.9,-2.3 0.4,-5 -1.5,-6.9 -2,-2 -5,-2.4 -7.4,-1.3L9,6 6,9 1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1c1.9,1.9 4.6,2.4 6.9,1.5l9.1,9.1c0.4,0.4 1,0.4 1.4,0l2.3,-2.3c0.5,-0.4 0.5,-1.1 0.1,-1.4z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_palette.xml b/src/android/app/src/main/res/drawable/ic_palette.xml
new file mode 100644
index 000000000..43daec1ff
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_palette.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,2C6.49,2 2,6.49 2,12s4.49,10 10,10c1.38,0 2.5,-1.12 2.5,-2.5c0,-0.61 -0.23,-1.2 -0.64,-1.67c-0.08,-0.1 -0.13,-0.21 -0.13,-0.33c0,-0.28 0.22,-0.5 0.5,-0.5H16c3.31,0 6,-2.69 6,-6C22,6.04 17.51,2 12,2zM17.5,13c-0.83,0 -1.5,-0.67 -1.5,-1.5c0,-0.83 0.67,-1.5 1.5,-1.5s1.5,0.67 1.5,1.5C19,12.33 18.33,13 17.5,13zM14.5,9C13.67,9 13,8.33 13,7.5C13,6.67 13.67,6 14.5,6S16,6.67 16,7.5C16,8.33 15.33,9 14.5,9zM5,11.5C5,10.67 5.67,10 6.5,10S8,10.67 8,11.5C8,12.33 7.33,13 6.5,13S5,12.33 5,11.5zM11,7.5C11,8.33 10.33,9 9.5,9S8,8.33 8,7.5C8,6.67 8.67,6 9.5,6S11,6.67 11,7.5z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_pause.xml b/src/android/app/src/main/res/drawable/ic_pause.xml
new file mode 100644
index 000000000..adb3ababc
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_pause.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_pip_mute.xml b/src/android/app/src/main/res/drawable/ic_pip_mute.xml
new file mode 100644
index 000000000..a271c5fe8
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_pip_mute.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M7,9v6h4l5,5V4l-5,5H7z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_pip_pause.xml b/src/android/app/src/main/res/drawable/ic_pip_pause.xml
new file mode 100644
index 000000000..4a7d4ea03
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_pip_pause.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_pip_play.xml b/src/android/app/src/main/res/drawable/ic_pip_play.xml
new file mode 100644
index 000000000..2303a4623
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_pip_play.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M8,5v14l11,-7z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_pip_unmute.xml b/src/android/app/src/main/res/drawable/ic_pip_unmute.xml
new file mode 100644
index 000000000..f7ed0862e
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_pip_unmute.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M3,9v6h4l5,5L12,4L7,9L3,9zM16.5,12c0,-1.77 -1.02,-3.29 -2.5,-4.03v8.05c1.48,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_play.xml b/src/android/app/src/main/res/drawable/ic_play.xml
new file mode 100644
index 000000000..7f01dc599
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_play.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M8,5v14l11,-7z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_save.xml b/src/android/app/src/main/res/drawable/ic_save.xml
new file mode 100644
index 000000000..a9af3d9cf
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_save.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="960"
+ android:viewportHeight="960"
+ android:tint="?attr/colorControlNormal">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M200,840Q167,840 143.5,816.5Q120,793 120,760L120,200Q120,167 143.5,143.5Q167,120 200,120L647,120Q663,120 677.5,126Q692,132 703,143L817,257Q828,268 834,282.5Q840,297 840,313L840,760Q840,793 816.5,816.5Q793,840 760,840L200,840ZM760,314L646,200L200,200Q200,200 200,200Q200,200 200,200L200,760Q200,760 200,760Q200,760 200,760L760,760Q760,760 760,760Q760,760 760,760L760,314ZM480,720Q530,720 565,685Q600,650 600,600Q600,550 565,515Q530,480 480,480Q430,480 395,515Q360,550 360,600Q360,650 395,685Q430,720 480,720ZM280,400L560,400Q577,400 588.5,388.5Q600,377 600,360L600,280Q600,263 588.5,251.5Q577,240 560,240L280,240Q263,240 251.5,251.5Q240,263 240,280L240,360Q240,377 251.5,388.5Q263,400 280,400ZM200,314L200,760Q200,760 200,760Q200,760 200,760L200,760Q200,760 200,760Q200,760 200,760L200,200Q200,200 200,200Q200,200 200,200L200,200L200,314Z"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_search.xml b/src/android/app/src/main/res/drawable/ic_search.xml
new file mode 100644
index 000000000..bb0726851
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_search.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_settings.xml b/src/android/app/src/main/res/drawable/ic_settings.xml
new file mode 100644
index 000000000..e527f85fc
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_settings.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportHeight="24"
+ android:viewportWidth="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_settings_outline.xml b/src/android/app/src/main/res/drawable/ic_settings_outline.xml
new file mode 100644
index 000000000..13b2745bf
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_settings_outline.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98 0,-0.34 -0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.09,-0.16 -0.26,-0.25 -0.44,-0.25 -0.06,0 -0.12,0.01 -0.17,0.03l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.06,-0.02 -0.12,-0.03 -0.18,-0.03 -0.17,0 -0.34,0.09 -0.43,0.25l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98 0,0.33 0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.09,0.16 0.26,0.25 0.44,0.25 0.06,0 0.12,-0.01 0.17,-0.03l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.06,0.02 0.12,0.03 0.18,0.03 0.17,0 0.34,-0.09 0.43,-0.25l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM17.45,11.27c0.04,0.31 0.05,0.52 0.05,0.73 0,0.21 -0.02,0.43 -0.05,0.73l-0.14,1.13 0.89,0.7 1.08,0.84 -0.7,1.21 -1.27,-0.51 -1.04,-0.42 -0.9,0.68c-0.43,0.32 -0.84,0.56 -1.25,0.73l-1.06,0.43 -0.16,1.13 -0.2,1.35h-1.4l-0.19,-1.35 -0.16,-1.13 -1.06,-0.43c-0.43,-0.18 -0.83,-0.41 -1.23,-0.71l-0.91,-0.7 -1.06,0.43 -1.27,0.51 -0.7,-1.21 1.08,-0.84 0.89,-0.7 -0.14,-1.13c-0.03,-0.31 -0.05,-0.54 -0.05,-0.74s0.02,-0.43 0.05,-0.73l0.14,-1.13 -0.89,-0.7 -1.08,-0.84 0.7,-1.21 1.27,0.51 1.04,0.42 0.9,-0.68c0.43,-0.32 0.84,-0.56 1.25,-0.73l1.06,-0.43 0.16,-1.13 0.2,-1.35h1.39l0.19,1.35 0.16,1.13 1.06,0.43c0.43,0.18 0.83,0.41 1.23,0.71l0.91,0.7 1.06,-0.43 1.27,-0.51 0.7,1.21 -1.07,0.85 -0.89,0.7 0.14,1.13zM12,8c-2.21,0 -4,1.79 -4,4s1.79,4 4,4 4,-1.79 4,-4 -1.79,-4 -4,-4zM12,14c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_system_update_alt.xml b/src/android/app/src/main/res/drawable/ic_system_update_alt.xml
new file mode 100644
index 000000000..0f6adfdb8
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_system_update_alt.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="960"
+ android:viewportHeight="960">
+ <path
+ android:fillColor="#FF000000"
+ android:pathData="M140,800q-24,0 -42,-18t-18,-42v-520q0,-24 18,-42t42,-18h250v60L140,220v520h680v-520L570,220v-60h250q24,0 42,18t18,42v520q0,24 -18,42t-42,18L140,800ZM480,615L280,415l43,-43 127,127v-339h60v339l127,-127 43,43 -200,200Z"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_unlock.xml b/src/android/app/src/main/res/drawable/ic_unlock.xml
new file mode 100644
index 000000000..40952cbc5
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_unlock.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,17c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6h1.9c0,-1.71 1.39,-3.1 3.1,-3.1 1.71,0 3.1,1.39 3.1,3.1v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM18,20L6,20L6,10h12v10z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_website.xml b/src/android/app/src/main/res/drawable/ic_website.xml
new file mode 100644
index 000000000..f35b84a7c
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_website.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM11,19.93c-3.95,-0.49 -7,-3.85 -7,-7.93 0,-0.62 0.08,-1.21 0.21,-1.79L9,15v1c0,1.1 0.9,2 2,2v1.93zM17.9,17.39c-0.26,-0.81 -1,-1.39 -1.9,-1.39h-1v-3c0,-0.55 -0.45,-1 -1,-1L8,12v-2h2c0.55,0 1,-0.45 1,-1L11,7h2c1.1,0 2,-0.9 2,-2v-0.41c2.93,1.19 5,4.06 5,7.41 0,2.08 -0.8,3.97 -2.1,5.39z" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_yuzu.xml b/src/android/app/src/main/res/drawable/ic_yuzu.xml
new file mode 100644
index 000000000..5e2a8efd0
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_yuzu.xml
@@ -0,0 +1,22 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="200dp"
+ android:height="200dp"
+ android:viewportWidth="500"
+ android:viewportHeight="500">
+ <path
+ android:fillColor="#FF3C28"
+ android:fillType="nonZero"
+ android:pathData="M262.66,175.11L262.66,375.05C318.54,375.05 363.85,330.29 363.85,275.08C363.85,219.87 318.54,175.11 262.66,175.11M282.43,197.01C318.67,206 344.09,238.19 344.09,275.11C344.09,312.03 318.67,344.22 282.43,353.2L282.43,197.01"
+ android:strokeWidth="1.46"
+ android:strokeColor="#00000000"
+ android:strokeLineCap="butt"
+ android:strokeLineJoin="miter" />
+ <path
+ android:fillColor="#0AB9E6"
+ android:fillType="nonZero"
+ android:pathData="M237.31,125.11C181.43,125.11 136.12,169.87 136.12,225.08C136.12,280.29 181.43,325.05 237.31,325.05ZM217.57,147.01L217.57,303.2C189.11,296.16 166.67,274.54 158.84,246.6C151.01,218.65 159,188.71 179.75,168.21C190.16,157.86 203.24,150.53 217.57,147.01"
+ android:strokeWidth="1.46"
+ android:strokeColor="#00000000"
+ android:strokeLineCap="butt"
+ android:strokeLineJoin="miter" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_yuzu_full.xml b/src/android/app/src/main/res/drawable/ic_yuzu_full.xml
new file mode 100644
index 000000000..04e458400
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_yuzu_full.xml
@@ -0,0 +1,12 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="155.3dp"
+ android:height="172.55dp"
+ android:viewportWidth="155.3"
+ android:viewportHeight="172.55">
+ <path
+ android:fillColor="#FF3C28"
+ android:pathData="M86.28,34.51v138a69,69 0,0 0,0 -138M99.76,49.63a55.57,55.57 0,0 1,0 107.8V49.63" />
+ <path
+ android:fillColor="#0AB9E6"
+ android:pathData="M69,0a69,69 0,0 0,0 138ZM55.54,15.12v107.8A55.55,55.55 0,0 1,29.75 29.75,55.1 55.1,0 0,1 55.54,15.12" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/ic_yuzu_title.xml b/src/android/app/src/main/res/drawable/ic_yuzu_title.xml
new file mode 100644
index 000000000..b733e5248
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/ic_yuzu_title.xml
@@ -0,0 +1,24 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="340.97dp"
+ android:height="389.85dp"
+ android:viewportWidth="340.97"
+ android:viewportHeight="389.85">
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M341,268.68v73c0,14.5 -2.24,25.24 -6.83,32.82 -5.92,10.15 -16.21,15.32 -30.54,15.32S279,384.61 273,374.27c-4.56,-7.64 -6.8,-18.42 -6.8,-32.92V268.68a4.52,4.52 0,0 1,4.51 -4.51H273a4.5,4.5 0,0 1,4.5 4.51v72.5c0,33.53 14.88,37.4 26.07,37.4 12.14,0 26.08,-4.17 26.08,-36.71V268.68a4.52,4.52 0,0 1,4.52 -4.51h2.27A4.5,4.5 0,0 1,341 268.68Z" />
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M246.49,389.85H178.6c-2.35,0 -4.72,-1.88 -4.72,-6.08a8.28,8.28 0,0 1,1.33 -4.48l60.33,-104.47H186a4.51,4.51 0,0 1,-4.51 -4.51v-1.58a4.51,4.51 0,0 1,4.48 -4.51h0.8c58.69,-0.11 59.12,0 59.67,0.07a5.19,5.19 0,0 1,4 5.8,8.69 8.69,0 0,1 -1.33,3.76l-60.6,104.77h58a4.51,4.51 0,0 1,4.51 4.51v2.21A4.51,4.51 0,0 1,246.49 389.85Z" />
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M73.6,268.68v82.06c0,26 -11.8,38.44 -37.12,39.09h-0.12a4.51,4.51 0,0 1,-4.51 -4.51V383a4.51,4.51 0,0 1,4.48 -4.5c18.49,-0.15 26,-8.23 26,-27.9v-2.37A32.34,32.34 0,0 1,59 351.46c-6.39,5.5 -14.5,8.29 -24.07,8.29C12.09,359.75 0,347.34 0,323.86V268.68a4.52,4.52 0,0 1,4.51 -4.51H6.73a4.52,4.52 0,0 1,4.5 4.51v55c0,7.6 1.82,14.22 5,18.18 3.57,4.56 9.17,6.49 18.75,6.49 10.13,0 17.32,-3.76 22,-11.5 3.61,-5.92 5.43,-13.66 5.43,-23V268.68a4.52,4.52 0,0 1,4.51 -4.51h2.22A4.52,4.52 0,0 1,73.6 268.68Z" />
+ <path
+ android:fillColor="?attr/colorOnSurface"
+ android:pathData="M163.27,268.68v73c0,14.5 -2.24,25.24 -6.84,32.82 -5.92,10.15 -16.2,15.32 -30.53,15.32s-24.62,-5.23 -30.58,-15.57c-4.56,-7.64 -6.79,-18.42 -6.79,-32.92V268.68A4.51,4.51 0,0 1,93 264.17h2.28a4.51,4.51 0,0 1,4.51 4.51v72.5c0,33.53 14.88,37.4 26.07,37.4 12.14,0 26.08,-4.17 26.08,-36.71V268.68a4.51,4.51 0,0 1,4.51 -4.51h2.27A4.51,4.51 0,0 1,163.27 268.68Z" />
+ <path
+ android:fillColor="#ff3c28"
+ android:pathData="M181.2,42.83V214.17a85.67,85.67 0,0 0,0 -171.34M197.93,61.6a69,69 0,0 1,0 133.8V61.6" />
+ <path
+ android:fillColor="#0ab9e6"
+ android:pathData="M159.78,0a85.67,85.67 0,1 0,0 171.33ZM143.05,18.77v133.8A69,69 0,0 1,111 36.92a68.47,68.47 0,0 1,32 -18.15" />
+</vector>
diff --git a/src/android/app/src/main/res/drawable/joystick.xml b/src/android/app/src/main/res/drawable/joystick.xml
new file mode 100644
index 000000000..bdd071212
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/joystick.xml
@@ -0,0 +1,45 @@
+<vector android:alpha="0.6" android:height="161.61dp"
+ android:viewportHeight="161.61" android:viewportWidth="161.61"
+ android:width="161.61dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.8"
+ android:pathData="M91.23,0.68a80.8,80.8 0,1 0,69.69 90.55A80.81,80.81 0,0 0,91.23 0.68ZM80.8,150.68A69.84,69.84 0,1 1,150.64 80.8,69.92 69.92,0 0,1 80.8,150.64Z" android:strokeAlpha="0.8">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="68.25" android:centerY="57.75"
+ android:gradientRadius="122.17" android:type="radial">
+ <item android:color="#FFD9D9D9" android:offset="0.44"/>
+ <item android:color="#FF141414" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.8"
+ android:pathData="M80.8,80.8m-67.05,0a67.05,67.05 0,1 1,134.1 0a67.05,67.05 0,1 1,-134.1 0" android:strokeAlpha="0.8">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="80.49" android:centerY="60.19"
+ android:gradientRadius="88.23" android:type="radial">
+ <item android:color="#FFBABABA" android:offset="0.15"/>
+ <item android:color="#FF9E9E9E" android:offset="0.46"/>
+ <item android:color="#FF868686" android:offset="0.63"/>
+ <item android:color="#FF575757" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.8"
+ android:pathData="M80.8,150.64A69.84,69.84 0,1 1,150.64 80.8,69.92 69.92,0 0,1 80.8,150.64ZM80.8,13.76a67,67 0,1 0,67.05 67A67.11,67.11 0,0 0,80.8 13.76Z" android:strokeAlpha="0.8">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="80.8" android:centerY="80.8"
+ android:gradientRadius="97.63" android:type="radial">
+ <item android:color="#FFC2C2C3" android:offset="0.04"/>
+ <item android:color="#FFC0C0C1" android:offset="0.35"/>
+ <item android:color="#FFB9B9BA" android:offset="0.47"/>
+ <item android:color="#FFADADAE" android:offset="0.56"/>
+ <item android:color="#FF9C9C9D" android:offset="0.63"/>
+ <item android:color="#FF868687" android:offset="0.69"/>
+ <item android:color="#FF6A6A6B" android:offset="0.74"/>
+ <item android:color="#FF4A4A4A" android:offset="0.79"/>
+ <item android:color="#FF252525" android:offset="0.83"/>
+ <item android:color="#FF000000" android:offset="0.87"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/joystick_depressed.xml b/src/android/app/src/main/res/drawable/joystick_depressed.xml
new file mode 100644
index 000000000..ad51d73ce
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/joystick_depressed.xml
@@ -0,0 +1,10 @@
+<vector android:alpha="0.6" android:height="161.73dp"
+ android:viewportHeight="161.73" android:viewportWidth="161.73"
+ android:width="161.73dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#FF000000"
+ android:pathData="M91.3,0.68A80.86,80.86 0,1 0,161.05 91.3,80.87 80.87,0 0,0 91.3,0.68ZM80.87,150.76a69.9,69.9 0,1 1,69.89 -69.89A70,70 0,0 1,80.87 150.76Z" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.5" android:fillColor="#FF000000"
+ android:pathData="M80.87,80.87m-67.1,0a67.1,67.1 0,1 1,134.2 0a67.1,67.1 0,1 1,-134.2 0" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M80.87,150.76a69.9,69.9 0,1 1,69.89 -69.89A70,70 0,0 1,80.87 150.76ZM80.87,13.76A67.1,67.1 0,1 0,148 80.87,67.17 67.17,0 0,0 80.87,13.77Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/joystick_range.xml b/src/android/app/src/main/res/drawable/joystick_range.xml
new file mode 100644
index 000000000..f6282b5c8
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/joystick_range.xml
@@ -0,0 +1,38 @@
+<vector android:alpha="0.6" android:height="265.64dp"
+ android:viewportHeight="265.64" android:viewportWidth="265.64"
+ android:width="265.64dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.8"
+ android:pathData="M132.82,132.82m-113.12,0a113.12,113.12 0,1 1,226.24 0a113.12,113.12 0,1 1,-226.24 0" android:strokeAlpha="0.8">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="132.82" android:centerY="132.82"
+ android:gradientRadius="195.71" android:type="radial">
+ <item android:color="#00000000" android:offset="0"/>
+ <item android:color="#14161515" android:offset="0.27"/>
+ <item android:color="#30333031" android:offset="0.42"/>
+ <item android:color="#42393738" android:offset="0.45"/>
+ <item android:color="#754B494A" android:offset="0.51"/>
+ <item android:color="#C6676666" android:offset="0.59"/>
+ <item android:color="#FF7A7A7A" android:offset="0.63"/>
+ <item android:color="#FF787878" android:offset="0.99"/>
+ <item android:color="#FF787878" android:offset="0.99"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.6"
+ android:pathData="m18.72,64.82a132.8,132.8 0,1 0,182.06 -46.1,132.8 132.8,0 0,0 -182.06,46.1zM229.98,190.7a113.12,113.12 0,1 1,-39.28 -155.08,113.12 113.12,0 0,1 39.28,155.08z" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:centerX="132.82" android:centerY="132.7"
+ android:gradientRadius="141.24" android:type="radial">
+ <item android:color="#FF969696" android:offset="0"/>
+ <item android:color="#FF949494" android:offset="0.8"/>
+ <item android:color="#FF8D8D8D" android:offset="0.84"/>
+ <item android:color="#FF828282" android:offset="0.87"/>
+ <item android:color="#FF717171" android:offset="0.9"/>
+ <item android:color="#FF5B5B5B" android:offset="0.94"/>
+ <item android:color="#FF404040" android:offset="0.98"/>
+ <item android:color="#FF303030" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/l_shoulder.xml b/src/android/app/src/main/res/drawable/l_shoulder.xml
new file mode 100644
index 000000000..28f9a9950
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/l_shoulder.xml
@@ -0,0 +1,23 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M33.05,0L211.86,0A33.05,33.05 0,0 1,244.91 33.05L244.91,65.53A33.05,33.05 0,0 1,211.86 98.58L33.05,98.58A33.05,33.05 0,0 1,0 65.53L0,33.05A33.05,33.05 0,0 1,33.05 0z" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:endX="244.91" android:endY="49.29"
+ android:startX="0" android:startY="49.29" android:type="linear">
+ <item android:color="#FFC3C4C5" android:offset="0"/>
+ <item android:color="#FFC4C5C5" android:offset="0.05"/>
+ <item android:color="#FFC7C7C7" android:offset="0.47"/>
+ <item android:color="#F7C4C4C4" android:offset="0.54"/>
+ <item android:color="#E5BABABA" android:offset="0.65"/>
+ <item android:color="#C6ABABAB" android:offset="0.77"/>
+ <item android:color="#9E969696" android:offset="0.91"/>
+ <item android:color="#7F878787" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M106.15,20h7.57V72.24h25v6.35h-32.6Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/l_shoulder_depressed.xml b/src/android/app/src/main/res/drawable/l_shoulder_depressed.xml
new file mode 100644
index 000000000..2f9a1fd7e
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/l_shoulder_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M33.05,0L211.86,0A33.05,33.05 0,0 1,244.91 33.05L244.91,65.53A33.05,33.05 0,0 1,211.86 98.58L33.05,98.58A33.05,33.05 0,0 1,0 65.53L0,33.05A33.05,33.05 0,0 1,33.05 0z" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M106.15,20h7.57V72.24h25v6.35h-32.6Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/premium_background.xml b/src/android/app/src/main/res/drawable/premium_background.xml
new file mode 100644
index 000000000..c9c41ddbe
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/premium_background.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <gradient
+ android:type="linear"
+ android:angle="45"
+ android:startColor="@color/yuzu_ea_background_start"
+ android:endColor="@color/yuzu_ea_background_end" />
+ <corners android:radius="12dp" />
+</shape>
diff --git a/src/android/app/src/main/res/drawable/r_shoulder.xml b/src/android/app/src/main/res/drawable/r_shoulder.xml
new file mode 100644
index 000000000..97731cad2
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/r_shoulder.xml
@@ -0,0 +1,23 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M211.86,98.58L33.05,98.58A33.05,33.05 0,0 1,0 65.53L0,33.05A33.05,33.05 0,0 1,33.05 0L211.86,0A33.05,33.05 0,0 1,244.91 33.05L244.91,65.53A33.05,33.05 0,0 1,211.86 98.58z" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:endX="0" android:endY="49.29"
+ android:startX="244.91" android:startY="49.29" android:type="linear">
+ <item android:color="#FFC3C4C5" android:offset="0"/>
+ <item android:color="#FFC4C5C5" android:offset="0.05"/>
+ <item android:color="#FFC7C7C7" android:offset="0.47"/>
+ <item android:color="#F7C4C4C4" android:offset="0.54"/>
+ <item android:color="#E5BABABA" android:offset="0.65"/>
+ <item android:color="#C6ABABAB" android:offset="0.77"/>
+ <item android:color="#9E969696" android:offset="0.91"/>
+ <item android:color="#7F878787" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M103.37,21a78.13,78.13 0,0 1,14.52 -1.22c8.08,0 13.3,1.48 17,4.78a14.59,14.59 0,0 1,4.61 11.13c0,7.73 -4.87,12.86 -11,15v0.26c4.52,1.56 7.21,5.74 8.6,11.82 1.92,8.17 3.31,13.82 4.52,16.08h-7.82c-1,-1.65 -2.26,-6.69 -3.91,-14 -1.74,-8.09 -4.87,-11.13 -11.74,-11.39h-7.12L111.03,78.8h-7.57ZM110.94,47.68h7.73c8.09,0 13.22,-4.43 13.22,-11.12 0,-7.57 -5.48,-10.87 -13.48,-11a30.82,30.82 0,0 0,-7.47 0.7Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/r_shoulder_depressed.xml b/src/android/app/src/main/res/drawable/r_shoulder_depressed.xml
new file mode 100644
index 000000000..e3aa46aa1
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/r_shoulder_depressed.xml
@@ -0,0 +1,8 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M211.86,98.58L33.05,98.58A33.05,33.05 0,0 1,0 65.53L0,33.05A33.05,33.05 0,0 1,33.05 0L211.86,0A33.05,33.05 0,0 1,244.91 33.05L244.91,65.53A33.05,33.05 0,0 1,211.86 98.58z" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M103.37,21a78.13,78.13 0,0 1,14.52 -1.22c8.08,0 13.3,1.48 17,4.78a14.59,14.59 0,0 1,4.61 11.13c0,7.73 -4.87,12.86 -11,15v0.26c4.52,1.56 7.21,5.74 8.6,11.82 1.92,8.17 3.31,13.82 4.52,16.08h-7.82c-1,-1.65 -2.26,-6.69 -3.91,-14 -1.74,-8.09 -4.87,-11.13 -11.74,-11.39h-7.12L111.03,78.8h-7.57ZM110.94,47.68h7.73c8.09,0 13.22,-4.43 13.22,-11.12 0,-7.57 -5.48,-10.87 -13.48,-11a30.82,30.82 0,0 0,-7.47 0.7Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/selector_cartridge.xml b/src/android/app/src/main/res/drawable/selector_cartridge.xml
new file mode 100644
index 000000000..85c918dae
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/selector_cartridge.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/ic_cartridge_outline" android:state_checked="false"/>
+ <item android:drawable="@drawable/ic_cartridge" android:state_checked="true"/>
+</selector>
diff --git a/src/android/app/src/main/res/drawable/selector_settings.xml b/src/android/app/src/main/res/drawable/selector_settings.xml
new file mode 100644
index 000000000..23748feb0
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/selector_settings.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/ic_settings_outline" android:state_checked="false"/>
+ <item android:drawable="@drawable/ic_settings" android:state_checked="true"/>
+</selector>
diff --git a/src/android/app/src/main/res/drawable/zl_trigger.xml b/src/android/app/src/main/res/drawable/zl_trigger.xml
new file mode 100644
index 000000000..436461c3b
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/zl_trigger.xml
@@ -0,0 +1,25 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M84.62,0h145a15.32,15.32 0,0 1,15.32 15.32V67a31.54,31.54 0,0 1,-31.54 31.54H14a14,14 0,0 1,-14 -14v0A84.62,84.62 0,0 1,84.62 0Z" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:endX="244.91" android:endY="49.29"
+ android:startX="0" android:startY="49.29" android:type="linear">
+ <item android:color="#FFC3C4C5" android:offset="0"/>
+ <item android:color="#FFC4C5C5" android:offset="0.05"/>
+ <item android:color="#FFC7C7C7" android:offset="0.47"/>
+ <item android:color="#F7C4C4C4" android:offset="0.54"/>
+ <item android:color="#E5BABABA" android:offset="0.65"/>
+ <item android:color="#C6ABABAB" android:offset="0.77"/>
+ <item android:color="#9E969696" android:offset="0.91"/>
+ <item android:color="#7F878787" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M80.12,74.15 L112.63,26.6v-0.26H82.9V20h39.56v4.6L90.12,72v0.26h32.77v6.35H80.12Z" android:strokeAlpha="0.75"/>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M132.19,20h7.56V72.24h25v6.35h-32.6Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/zl_trigger_depressed.xml b/src/android/app/src/main/res/drawable/zl_trigger_depressed.xml
new file mode 100644
index 000000000..00393c04d
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/zl_trigger_depressed.xml
@@ -0,0 +1,10 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M84.62,0h145a15.32,15.32 0,0 1,15.32 15.32V67a31.54,31.54 0,0 1,-31.54 31.54H14a14,14 0,0 1,-14 -14v0A84.62,84.62 0,0 1,84.62 0Z" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M80.12,74.15 L112.63,26.6v-0.26H82.9V20h39.56v4.6L90.12,72v0.26h32.77v6.35H80.12Z" android:strokeAlpha="0.75"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M132.19,20h7.56V72.24h25v6.35h-32.6Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/zr_trigger.xml b/src/android/app/src/main/res/drawable/zr_trigger.xml
new file mode 100644
index 000000000..2b3a92184
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/zr_trigger.xml
@@ -0,0 +1,25 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp"
+ xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.6"
+ android:pathData="M230.91,98.58l-199.4,-0a31.54,31.54 135,0 1,-31.54 -31.54L-0.03,15.31a15.32,15.32 0,0 1,15.32 -15.32l145,-0A84.62,84.62 0,0 1,244.91 84.58l-0,-0A14,14 0,0 1,230.91 98.58Z" android:strokeAlpha="0.6">
+ <aapt:attr name="android:fillColor">
+ <gradient android:endX="0" android:endY="49.29"
+ android:startX="244.91" android:startY="49.29" android:type="linear">
+ <item android:color="#FFC3C4C5" android:offset="0"/>
+ <item android:color="#FFC4C5C5" android:offset="0.05"/>
+ <item android:color="#FFC7C7C7" android:offset="0.47"/>
+ <item android:color="#F7C4C4C4" android:offset="0.54"/>
+ <item android:color="#E5BABABA" android:offset="0.65"/>
+ <item android:color="#C6ABABAB" android:offset="0.77"/>
+ <item android:color="#9E969696" android:offset="0.91"/>
+ <item android:color="#7F878787" android:offset="1"/>
+ </gradient>
+ </aapt:attr>
+ </path>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M77.34,74.37l32.51,-47.55v-0.26H80.12V20.21h39.55v4.61L87.34,72.2v0.26h32.77V78.8H77.34Z" android:strokeAlpha="0.75"/>
+ <path android:fillAlpha="0.75" android:fillColor="#FF000000"
+ android:pathData="M129.41,21a78,78 0,0 1,14.51 -1.22c8.09,0 13.3,1.48 17,4.78a14.62,14.62 0,0 1,4.6 11.13c0,7.73 -4.87,12.86 -11,15v0.26c4.52,1.56 7.22,5.74 8.61,11.82 1.91,8.17 3.3,13.82 4.52,16.08h-7.82c-1,-1.65 -2.26,-6.69 -3.92,-14C154.1,56.72 151,53.68 144.1,53.42H137V78.8h-7.56ZM137,47.68h7.74c8.08,0 13.21,-4.43 13.21,-11.12 0,-7.57 -5.48,-10.87 -13.47,-11a30.92,30.92 0,0 0,-7.48 0.7Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/drawable/zr_trigger_depressed.xml b/src/android/app/src/main/res/drawable/zr_trigger_depressed.xml
new file mode 100644
index 000000000..8a9ee5036
--- /dev/null
+++ b/src/android/app/src/main/res/drawable/zr_trigger_depressed.xml
@@ -0,0 +1,10 @@
+<vector android:alpha="0.6" android:height="98.58dp"
+ android:viewportHeight="98.58" android:viewportWidth="244.91"
+ android:width="244.91dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillAlpha="0.5" android:fillColor="#151515"
+ android:pathData="M230.91,98.58l-199.4,-0a31.54,31.54 135,0 1,-31.54 -31.54L-0.03,15.31a15.32,15.32 0,0 1,15.32 -15.32l145,-0A84.62,84.62 0,0 1,244.91 84.58l-0,-0A14,14 0,0 1,230.91 98.58Z" android:strokeAlpha="0.5"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M77.34,74.37l32.51,-47.55v-0.26H80.12V20.21h39.55v4.61L87.34,72.2v0.26h32.77V78.8H77.34Z" android:strokeAlpha="0.75"/>
+ <path android:fillAlpha="0.75" android:fillColor="#fff"
+ android:pathData="M129.41,21a78,78 0,0 1,14.51 -1.22c8.09,0 13.3,1.48 17,4.78a14.62,14.62 0,0 1,4.6 11.13c0,7.73 -4.87,12.86 -11,15v0.26c4.52,1.56 7.22,5.74 8.61,11.82 1.91,8.17 3.3,13.82 4.52,16.08h-7.82c-1,-1.65 -2.26,-6.69 -3.92,-14C154.1,56.72 151,53.68 144.1,53.42H137V78.8h-7.56ZM137,47.68h7.74c8.08,0 13.21,-4.43 13.21,-11.12 0,-7.57 -5.48,-10.87 -13.47,-11a30.92,30.92 0,0 0,-7.48 0.7Z" android:strokeAlpha="0.75"/>
+</vector>
diff --git a/src/android/app/src/main/res/layout-w600dp/activity_main.xml b/src/android/app/src/main/res/layout-w600dp/activity_main.xml
new file mode 100644
index 000000000..74bee872e
--- /dev/null
+++ b/src/android/app/src/main/res/layout-w600dp/activity_main.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/coordinator_main"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface">
+
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/fragment_container"
+ android:name="androidx.navigation.fragment.NavHostFragment"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ app:defaultNavHost="true"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:navGraph="@navigation/home_navigation"
+ tools:layout="@layout/fragment_games" />
+
+ <com.google.android.material.navigationrail.NavigationRailView
+ android:id="@+id/navigation_view"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:labelVisibilityMode="selected"
+ app:menu="@menu/menu_navigation"
+ tools:visibility="visible" />
+
+ <View
+ android:id="@+id/status_bar_shade"
+ android:layout_width="0dp"
+ android:layout_height="1px"
+ android:background="@android:color/transparent"
+ android:clickable="false"
+ android:focusable="false"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+ <View
+ android:id="@+id/navigation_bar_shade"
+ android:layout_width="0dp"
+ android:layout_height="1px"
+ android:background="@android:color/transparent"
+ android:clickable="false"
+ android:focusable="false"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/layout-w600dp/fragment_setup.xml b/src/android/app/src/main/res/layout-w600dp/fragment_setup.xml
new file mode 100644
index 000000000..cbe631d88
--- /dev/null
+++ b/src/android/app/src/main/res/layout-w600dp/fragment_setup.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/setup_root"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <androidx.viewpager2.widget.ViewPager2
+ android:id="@+id/viewPager2"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <com.google.android.material.button.MaterialButton
+ style="@style/Widget.Material3.Button.TextButton"
+ android:id="@+id/button_next"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:text="@string/next"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/button_back"
+ style="@style/Widget.Material3.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:text="@string/back"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/layout-w600dp/page_setup.xml b/src/android/app/src/main/res/layout-w600dp/page_setup.xml
new file mode 100644
index 000000000..e1c26b2f8
--- /dev/null
+++ b/src/android/app/src/main/res/layout-w600dp/page_setup.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:layout_weight="1"
+ android:gravity="center">
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_width="260dp"
+ android:layout_height="260dp"
+ android:layout_gravity="center" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:orientation="vertical"
+ android:gravity="center">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.DisplaySmall"
+ android:id="@+id/text_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAlignment="center"
+ android:textColor="?attr/colorOnSurface"
+ android:textStyle="bold"
+ tools:text="@string/welcome" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleLarge"
+ android:id="@+id/text_description"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:paddingHorizontal="32dp"
+ android:textAlignment="center"
+ android:textSize="26sp"
+ app:lineHeight="40sp"
+ tools:text="@string/welcome_description" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/button_action"
+ android:layout_width="wrap_content"
+ android:layout_height="56dp"
+ android:layout_marginTop="32dp"
+ android:textSize="20sp"
+ app:iconSize="24sp"
+ app:iconGravity="end"
+ tools:text="Get started" />
+
+ </LinearLayout>
+
+</LinearLayout>
diff --git a/src/android/app/src/main/res/layout/activity_emulation.xml b/src/android/app/src/main/res/layout/activity_emulation.xml
new file mode 100644
index 000000000..139065d3d
--- /dev/null
+++ b/src/android/app/src/main/res/layout/activity_emulation.xml
@@ -0,0 +1,9 @@
+<androidx.fragment.app.FragmentContainerView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/fragment_container"
+ android:name="androidx.navigation.fragment.NavHostFragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:keepScreenOn="true"
+ app:defaultNavHost="true" />
diff --git a/src/android/app/src/main/res/layout/activity_main.xml b/src/android/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 000000000..ad426457f
--- /dev/null
+++ b/src/android/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/coordinator_main"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface">
+
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/fragment_container"
+ android:name="androidx.navigation.fragment.NavHostFragment"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ app:defaultNavHost="true"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toRightOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:navGraph="@navigation/home_navigation"
+ tools:layout="@layout/fragment_games" />
+
+ <com.google.android.material.bottomnavigation.BottomNavigationView
+ android:id="@+id/navigation_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toRightOf="parent"
+ app:menu="@menu/menu_navigation"
+ app:labelVisibilityMode="selected"
+ tools:visibility="visible" />
+
+ <View
+ android:id="@+id/status_bar_shade"
+ android:layout_width="0dp"
+ android:layout_height="1px"
+ android:background="@android:color/transparent"
+ android:clickable="false"
+ android:focusable="false"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+ <View
+ android:id="@+id/navigation_bar_shade"
+ android:layout_width="0dp"
+ android:layout_height="1px"
+ android:background="@android:color/transparent"
+ android:clickable="false"
+ android:focusable="false"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/layout/activity_settings.xml b/src/android/app/src/main/res/layout/activity_settings.xml
new file mode 100644
index 000000000..14ae83b04
--- /dev/null
+++ b/src/android/app/src/main/res/layout/activity_settings.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout
+ android:id="@+id/coordinator_main"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_settings"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fitsSystemWindows="true"
+ app:elevation="0dp">
+
+ <com.google.android.material.appbar.CollapsingToolbarLayout
+ style="?attr/collapsingToolbarLayoutMediumStyle"
+ android:id="@+id/toolbar_settings_layout"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/collapsingToolbarLayoutMediumSize"
+ app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
+
+ <com.google.android.material.appbar.MaterialToolbar
+ android:id="@+id/toolbar_settings"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ app:layout_collapseMode="pin" />
+
+ </com.google.android.material.appbar.CollapsingToolbarLayout>
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <FrameLayout
+ android:id="@+id/frame_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginHorizontal="12dp"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+ <View
+ android:id="@+id/navigation_bar_shade"
+ android:layout_width="match_parent"
+ android:layout_height="1px"
+ android:background="@android:color/transparent"
+ android:clickable="false"
+ android:focusable="false"
+ android:layout_gravity="bottom|center_horizontal" />
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/src/android/app/src/main/res/layout/card_game.xml b/src/android/app/src/main/res/layout/card_game.xml
new file mode 100644
index 000000000..1f5de219b
--- /dev/null
+++ b/src/android/app/src/main/res/layout/card_game.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <com.google.android.material.card.MaterialCardView
+ style="?attr/materialCardViewElevatedStyle"
+ android:id="@+id/card_game"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:clipToPadding="false"
+ android:focusable="true"
+ android:transitionName="card_game"
+ android:layout_gravity="center"
+ app:cardElevation="0dp"
+ app:cardCornerRadius="12dp">
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="6dp">
+
+ <com.google.android.material.card.MaterialCardView
+ style="?attr/materialCardViewElevatedStyle"
+ android:id="@+id/card_game_art"
+ android:layout_width="150dp"
+ android:layout_height="150dp"
+ app:cardCornerRadius="4dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
+
+ <ImageView
+ android:id="@+id/image_game_screen"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:src="@drawable/default_icon" />
+
+ </com.google.android.material.card.MaterialCardView>
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleMedium"
+ android:id="@+id/text_game_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:textAlignment="center"
+ android:textSize="14sp"
+ android:singleLine="true"
+ android:marqueeRepeatLimit="marquee_forever"
+ android:ellipsize="none"
+ android:requiresFadingEdge="horizontal"
+ app:layout_constraintEnd_toEndOf="@+id/card_game_art"
+ app:layout_constraintStart_toStartOf="@+id/card_game_art"
+ app:layout_constraintTop_toBottomOf="@+id/card_game_art"
+ tools:text="The Legend of Zelda: Skyward Sword" />
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ </com.google.android.material.card.MaterialCardView>
+
+</FrameLayout>
diff --git a/src/android/app/src/main/res/layout/card_home_option.xml b/src/android/app/src/main/res/layout/card_home_option.xml
new file mode 100644
index 000000000..dc289db17
--- /dev/null
+++ b/src/android/app/src/main/res/layout/card_home_option.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ style="?attr/materialCardViewFilledStyle"
+ android:id="@+id/option_card"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginVertical="12dp"
+ android:layout_marginHorizontal="16dp"
+ android:background="?attr/selectableItemBackground"
+ android:backgroundTint="?attr/colorSurfaceVariant"
+ android:clickable="true"
+ android:focusable="true">
+
+ <LinearLayout
+ android:id="@+id/option_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <ImageView
+ android:id="@+id/option_icon"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_marginStart="24dp"
+ android:layout_gravity="center_vertical"
+ app:tint="?attr/colorOnSurface" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginVertical="10dp"
+ android:layout_marginHorizontal="20dp"
+ android:orientation="vertical">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyMedium"
+ android:id="@+id/option_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAlignment="viewStart"
+ android:textStyle="bold"
+ android:textSize="16sp"
+ tools:text="@string/install_prod_keys" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodySmall"
+ android:id="@+id/option_description"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAlignment="viewStart"
+ android:textSize="14sp"
+ android:layout_marginTop="5dp"
+ tools:text="@string/install_prod_keys_description" />
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+</com.google.android.material.card.MaterialCardView>
diff --git a/src/android/app/src/main/res/layout/dialog_edit_text.xml b/src/android/app/src/main/res/layout/dialog_edit_text.xml
new file mode 100644
index 000000000..58b905d71
--- /dev/null
+++ b/src/android/app/src/main/res/layout/dialog_edit_text.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/edit_text_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="24dp"
+ app:layout_constraintTop_toTopOf="parent">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/edit_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:inputType="none" />
+
+ </com.google.android.material.textfield.TextInputLayout>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/layout/dialog_license.xml b/src/android/app/src/main/res/layout/dialog_license.xml
new file mode 100644
index 000000000..866857562
--- /dev/null
+++ b/src/android/app/src/main/res/layout/dialog_license.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ xmlns:tools="http://schemas.android.com/tools">
+
+ <androidx.core.widget.NestedScrollView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:layout_marginHorizontal="16dp">
+
+ <com.google.android.material.bottomsheet.BottomSheetDragHandleView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"/>
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.HeadlineLarge"
+ android:id="@+id/text_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ tools:text="@string/license_adreno_tools" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:id="@+id/text_link"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:layout_marginTop="16dp"
+ android:autoLink="all"
+ tools:text="@string/license_adreno_tools_link" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:id="@+id/text_copyright"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:layout_marginTop="16dp"
+ android:textStyle="bold"
+ tools:text="@string/license_adreno_tools_copyright" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyMedium"
+ android:id="@+id/text_license"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:layout_marginVertical="16dp"
+ android:autoLink="all"
+ tools:text="@string/license_adreno_tools_text" />
+
+ </LinearLayout>
+
+ </androidx.core.widget.NestedScrollView>
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/src/android/app/src/main/res/layout/dialog_overlay_adjust.xml b/src/android/app/src/main/res/layout/dialog_overlay_adjust.xml
new file mode 100644
index 000000000..59bb983e1
--- /dev/null
+++ b/src/android/app/src/main/res/layout/dialog_overlay_adjust.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/input_scale_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:text="@string/emulation_control_scale"
+ android:textAlignment="viewStart"
+ android:textSize="16sp"
+ app:layout_constraintStart_toStartOf="@+id/input_scale_slider"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <com.google.android.material.slider.Slider
+ android:id="@+id/input_scale_slider"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/input_scale_name" />
+
+ <TextView
+ android:id="@+id/input_scale_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="end"
+ app:layout_constraintBottom_toTopOf="@+id/input_scale_slider"
+ app:layout_constraintEnd_toEndOf="@+id/input_scale_slider"
+ tools:text="100%" />
+
+ <TextView
+ android:id="@+id/input_opacity_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:text="@string/emulation_control_opacity"
+ android:textAlignment="viewStart"
+ android:textSize="16sp"
+ app:layout_constraintStart_toStartOf="@+id/input_opacity_slider"
+ app:layout_constraintTop_toBottomOf="@+id/input_scale_slider" />
+
+ <com.google.android.material.slider.Slider
+ android:id="@+id/input_opacity_slider"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/input_opacity_name" />
+
+ <TextView
+ android:id="@+id/input_opacity_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="end"
+ app:layout_constraintBottom_toTopOf="@+id/input_opacity_slider"
+ app:layout_constraintEnd_toEndOf="@+id/input_opacity_slider"
+ tools:text="100%" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/layout/dialog_progress_bar.xml b/src/android/app/src/main/res/layout/dialog_progress_bar.xml
new file mode 100644
index 000000000..d17711a65
--- /dev/null
+++ b/src/android/app/src/main/res/layout/dialog_progress_bar.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:orientation="vertical">
+
+ <com.google.android.material.progressindicator.LinearProgressIndicator
+ android:id="@+id/progress_bar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="24dp"
+ app:trackCornerRadius="4dp" />
+
+ <TextView
+ android:id="@+id/progress_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="24dp"
+ android:layout_marginRight="24dp"
+ android:layout_marginBottom="24dp"
+ android:gravity="end" />
+
+</LinearLayout>
diff --git a/src/android/app/src/main/res/layout/dialog_slider.xml b/src/android/app/src/main/res/layout/dialog_slider.xml
new file mode 100644
index 000000000..8c84cb606
--- /dev/null
+++ b/src/android/app/src/main/res/layout/dialog_slider.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/text_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true"
+ android:layout_marginBottom="@dimen/spacing_medlarge"
+ android:layout_marginTop="@dimen/spacing_medlarge"
+ tools:text="75" />
+
+ <TextView
+ android:id="@+id/text_units"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignTop="@+id/text_value"
+ android:layout_toEndOf="@+id/text_value"
+ tools:text="%" />
+
+ <com.google.android.material.slider.Slider
+ android:id="@+id/slider"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentStart="true"
+ android:layout_below="@+id/text_value"
+ android:layout_marginBottom="@dimen/spacing_medlarge"
+ android:layout_marginLeft="@dimen/spacing_large"
+ android:layout_marginRight="@dimen/spacing_large" />
+
+</RelativeLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_about.xml b/src/android/app/src/main/res/layout/fragment_about.xml
new file mode 100644
index 000000000..3e1d98451
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_about.xml
@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/coordinator_about"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_about"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fitsSystemWindows="true">
+
+ <com.google.android.material.appbar.MaterialToolbar
+ android:id="@+id/toolbar_about"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ app:title="@string/about"
+ app:navigationIcon="@drawable/ic_back" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <androidx.core.widget.NestedScrollView
+ android:id="@+id/scroll_about"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scrollbars="vertical"
+ android:fadeScrollbars="false"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+ <LinearLayout
+ android:id="@+id/content_about"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <ImageView
+ android:id="@+id/image_logo"
+ android:layout_width="250dp"
+ android:layout_height="250dp"
+ android:layout_marginTop="20dp"
+ android:layout_gravity="center_horizontal"
+ android:src="@drawable/ic_yuzu_title" />
+
+ <com.google.android.material.divider.MaterialDivider
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="20dp"
+ android:layout_marginTop="28dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingVertical="16dp"
+ android:paddingHorizontal="16dp"
+ android:orientation="vertical">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:textAlignment="viewStart"
+ android:text="@string/about" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:layout_marginTop="6dp"
+ android:textAlignment="viewStart"
+ android:text="@string/about_app_description" />
+
+ </LinearLayout>
+
+ <com.google.android.material.divider.MaterialDivider
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="20dp" />
+
+ <LinearLayout
+ android:id="@+id/button_contributors"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingVertical="16dp"
+ android:paddingHorizontal="16dp"
+ android:background="?attr/selectableItemBackground"
+ android:orientation="vertical">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:textAlignment="viewStart"
+ android:text="@string/contributors" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:layout_marginTop="6dp"
+ android:textAlignment="viewStart"
+ android:text="@string/contributors_description" />
+
+ </LinearLayout>
+
+ <com.google.android.material.divider.MaterialDivider
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="20dp" />
+
+ <LinearLayout
+ android:id="@+id/button_licenses"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingVertical="16dp"
+ android:paddingHorizontal="16dp"
+ android:background="?attr/selectableItemBackground"
+ android:orientation="vertical">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:textAlignment="viewStart"
+ android:text="@string/licenses" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:layout_marginTop="6dp"
+ android:textAlignment="viewStart"
+ android:text="@string/licenses_description" />
+
+ </LinearLayout>
+
+ <com.google.android.material.divider.MaterialDivider
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="20dp" />
+
+ <LinearLayout
+ android:id="@+id/button_build_hash"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingVertical="16dp"
+ android:paddingHorizontal="16dp"
+ android:background="?attr/selectableItemBackground"
+ android:orientation="vertical">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:textAlignment="viewStart"
+ android:text="@string/build" />
+
+ <com.google.android.material.textview.MaterialTextView
+ android:id="@+id/text_build_hash"
+ style="@style/TextAppearance.Material3.BodyMedium"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="24dp"
+ android:layout_marginTop="6dp"
+ android:textAlignment="viewStart"
+ tools:text="abc123" />
+
+ </LinearLayout>
+
+ <com.google.android.material.divider.MaterialDivider
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="20dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_horizontal"
+ android:layout_marginTop="12dp"
+ android:layout_marginBottom="16dp"
+ android:layout_marginHorizontal="40dp">
+
+ <Button
+ style="?attr/materialIconButtonStyle"
+ android:id="@+id/button_discord"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ app:icon="@drawable/ic_discord"
+ app:iconTint="?attr/colorOnSurface"
+ app:iconSize="24dp"
+ app:iconGravity="textEnd" />
+
+ <Button
+ style="?attr/materialIconButtonStyle"
+ android:id="@+id/button_website"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ app:icon="@drawable/ic_website"
+ app:iconTint="?attr/colorOnSurface"
+ app:iconSize="24dp"
+ app:iconGravity="textEnd" />
+
+ <Button
+ android:id="@+id/button_github"
+ style="?attr/materialIconButtonStyle"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ app:icon="@drawable/ic_github"
+ app:iconTint="?attr/colorOnSurface"
+ app:iconSize="24dp"
+ app:iconGravity="textEnd" />
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+ </androidx.core.widget.NestedScrollView>
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_early_access.xml b/src/android/app/src/main/res/layout/fragment_early_access.xml
new file mode 100644
index 000000000..644b4dd45
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_early_access.xml
@@ -0,0 +1,242 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/coordinator_about"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_ea"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fitsSystemWindows="true">
+
+ <com.google.android.material.appbar.MaterialToolbar
+ android:id="@+id/toolbar_about"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ app:navigationIcon="@drawable/ic_back"
+ app:title="@string/early_access" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <androidx.core.widget.NestedScrollView
+ android:id="@+id/scroll_ea"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clipToPadding="false"
+ android:paddingBottom="20dp"
+ android:scrollbars="vertical"
+ android:fadeScrollbars="false"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+ <LinearLayout
+ android:id="@+id/card_ea"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginVertical="32dp"
+ android:layout_marginHorizontal="20dp"
+ android:background="@drawable/premium_background"
+ android:orientation="vertical">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:layout_marginHorizontal="20dp"
+ android:text="@string/early_access_benefits"
+ android:textAlignment="center"
+ android:textStyle="bold" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginHorizontal="20dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_check_circle"
+ app:tint="?attr/colorOnSurface" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="20dp"
+ android:text="@string/cutting_edge_features"
+ android:textAlignment="viewStart"
+ android:layout_gravity="start|center_vertical" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginHorizontal="20dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_check_circle"
+ app:tint="?attr/colorOnSurface" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="20dp"
+ android:text="@string/early_access_updates"
+ android:textAlignment="viewStart"
+ android:layout_gravity="start|center_vertical" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginHorizontal="20dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_check_circle"
+ app:tint="?attr/colorOnSurface" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="20dp"
+ android:text="@string/no_manual_installation"
+ android:textAlignment="viewStart"
+ android:layout_gravity="start|center_vertical" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginHorizontal="20dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_check_circle"
+ app:tint="?attr/colorOnSurface" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="20dp"
+ android:text="@string/prioritized_support"
+ android:textAlignment="viewStart"
+ android:layout_gravity="start|center_vertical" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginHorizontal="20dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_check_circle"
+ app:tint="?attr/colorOnSurface" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="20dp"
+ android:text="@string/helping_game_preservation"
+ android:textAlignment="viewStart"
+ android:layout_gravity="start|center_vertical" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginHorizontal="20dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/ic_check_circle"
+ app:tint="?attr/colorOnSurface" />
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="20dp"
+ android:text="@string/our_eternal_gratitude"
+ android:textAlignment="viewStart"
+ android:layout_gravity="start|center_vertical" />
+
+ </LinearLayout>
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/are_you_interested"
+ android:layout_marginTop="80dp"
+ android:layout_marginHorizontal="20dp"
+ android:textStyle="bold"
+ android:textAlignment="center" />
+
+ <com.google.android.material.card.MaterialCardView
+ style="?attr/materialCardViewFilledStyle"
+ android:id="@+id/get_early_access_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:layout_marginHorizontal="20dp"
+ android:layout_marginBottom="28dp"
+ android:background="?attr/selectableItemBackground"
+ android:backgroundTint="@android:color/black">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.TitleLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/get_early_access"
+ android:layout_marginHorizontal="20dp"
+ android:layout_marginVertical="8dp"
+ android:textColor="@android:color/white"
+ android:textStyle="bold"
+ android:textAlignment="center" />
+
+ </com.google.android.material.card.MaterialCardView>
+
+ </LinearLayout>
+
+ </androidx.core.widget.NestedScrollView>
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_emulation.xml b/src/android/app/src/main/res/layout/fragment_emulation.xml
new file mode 100644
index 000000000..e54a10e8f
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_emulation.xml
@@ -0,0 +1,86 @@
+<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/drawer_layout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:keepScreenOn="true"
+ tools:context="org.yuzu.yuzu_emu.fragments.EmulationFragment"
+ tools:openDrawer="start">
+
+ <androidx.coordinatorlayout.widget.CoordinatorLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <FrameLayout
+ android:id="@+id/emulation_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <!-- This is what everything is rendered to during emulation -->
+ <org.yuzu.yuzu_emu.views.FixedRatioSurfaceView
+ android:id="@+id/surface_emulation"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center"
+ android:focusable="false"
+ android:focusableInTouchMode="false" />
+
+ </FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/input_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="bottom">
+
+ <!-- This is the onscreen input overlay -->
+ <org.yuzu.yuzu_emu.overlay.InputOverlay
+ android:id="@+id/surface_input_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center"
+ android:focusable="true"
+ android:focusableInTouchMode="true" />
+
+ <Button
+ style="@style/Widget.Material3.Button.ElevatedButton"
+ android:id="@+id/done_control_config"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:text="@string/emulation_done"
+ android:visibility="gone" />
+
+ </FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/overlay_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/show_fps_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="left"
+ android:clickable="false"
+ android:focusable="false"
+ android:shadowColor="@android:color/black"
+ android:textColor="@android:color/white"
+ android:textSize="12sp"
+ tools:ignore="RtlHardcoded" />
+
+ </FrameLayout>
+
+ </androidx.coordinatorlayout.widget.CoordinatorLayout>
+
+ <com.google.android.material.navigation.NavigationView
+ android:id="@+id/in_game_menu"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="start|bottom"
+ app:headerLayout="@layout/header_in_game"
+ app:menu="@menu/menu_in_game" />
+
+</androidx.drawerlayout.widget.DrawerLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_games.xml b/src/android/app/src/main/res/layout/fragment_games.xml
new file mode 100644
index 000000000..a0568668a
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_games.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/swipe_refresh"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface"
+ android:clipToPadding="false">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.google.android.material.textview.MaterialTextView
+ android:id="@+id/notice_text"
+ style="@style/TextAppearance.Material3.BodyLarge"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:padding="@dimen/spacing_large"
+ android:text="@string/empty_gamelist"
+ android:visibility="gone" />
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/grid_games"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clipToPadding="false"
+ tools:listitem="@layout/card_game" />
+
+ </RelativeLayout>
+
+</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_home_settings.xml b/src/android/app/src/main/res/layout/fragment_home_settings.xml
new file mode 100644
index 000000000..1cb421dcb
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_home_settings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.core.widget.NestedScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/scroll_view_settings"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface"
+ android:scrollbars="vertical"
+ android:fadeScrollbars="false"
+ android:clipToPadding="false">
+
+ <androidx.appcompat.widget.LinearLayoutCompat
+ android:id="@+id/linear_layout_settings"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:background="?attr/colorSurface">
+
+ <ImageView
+ android:id="@+id/logo_image"
+ android:layout_width="128dp"
+ android:layout_height="128dp"
+ android:layout_margin="64dp"
+ android:layout_gravity="center_horizontal"
+ android:src="@drawable/ic_yuzu_full" />
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/home_settings_list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </androidx.appcompat.widget.LinearLayoutCompat>
+
+</androidx.core.widget.NestedScrollView>
diff --git a/src/android/app/src/main/res/layout/fragment_licenses.xml b/src/android/app/src/main/res/layout/fragment_licenses.xml
new file mode 100644
index 000000000..6b31ff5b4
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_licenses.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/coordinator_licenses"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_licenses"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fitsSystemWindows="true">
+
+ <com.google.android.material.appbar.MaterialToolbar
+ android:id="@+id/toolbar_licenses"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ app:title="@string/licenses"
+ app:navigationIcon="@drawable/ic_back" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/list_licenses"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_search.xml b/src/android/app/src/main/res/layout/fragment_search.xml
new file mode 100644
index 000000000..b8d54d947
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_search.xml
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/constraint_search"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface"
+ android:clipToPadding="false">
+
+ <RelativeLayout
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/divider">
+
+ <LinearLayout
+ android:id="@+id/no_results_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:gravity="center">
+
+ <ImageView
+ android:id="@+id/icon_no_results"
+ android:layout_width="match_parent"
+ android:layout_height="80dp"
+ android:src="@drawable/ic_search" />
+
+ <com.google.android.material.textview.MaterialTextView
+ android:id="@+id/notice_text"
+ style="@style/TextAppearance.Material3.TitleLarge"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:paddingTop="8dp"
+ android:text="@string/search_and_filter_games"
+ tools:visibility="visible" />
+
+ </LinearLayout>
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/grid_games_search"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clipToPadding="false" />
+
+ </RelativeLayout>
+
+ <FrameLayout
+ android:id="@+id/frame_search"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="12dp"
+ android:layout_marginHorizontal="20dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
+
+ <com.google.android.material.card.MaterialCardView
+ android:id="@+id/search_background"
+ style="?attr/materialCardViewFilledStyle"
+ android:layout_width="match_parent"
+ android:layout_height="56dp"
+ app:cardCornerRadius="28dp">
+
+ <LinearLayout
+ android:id="@+id/search_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="56dp"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="28dp"
+ android:layout_height="28dp"
+ android:layout_gravity="center_vertical"
+ android:layout_marginEnd="24dp"
+ android:src="@drawable/ic_search"
+ app:tint="?attr/colorOnSurfaceVariant" />
+
+ <EditText
+ android:id="@+id/search_text"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@android:color/transparent"
+ android:hint="@string/home_search_games"
+ android:inputType="text"
+ android:maxLines="1"
+ android:imeOptions="flagNoFullscreen" />
+
+ </LinearLayout>
+
+ <ImageView
+ android:id="@+id/clear_button"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical|end"
+ android:layout_marginEnd="24dp"
+ android:background="?attr/selectableItemBackground"
+ android:src="@drawable/ic_clear"
+ android:visibility="invisible"
+ app:tint="?attr/colorOnSurfaceVariant"
+ tools:visibility="visible" />
+
+ </com.google.android.material.card.MaterialCardView>
+
+ </FrameLayout>
+
+ <HorizontalScrollView
+ android:id="@+id/horizontalScrollView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:fadingEdge="horizontal"
+ android:scrollbars="none"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/frame_search">
+
+ <com.google.android.material.chip.ChipGroup
+ android:id="@+id/chip_group"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:clipToPadding="false"
+ android:paddingVertical="4dp"
+ app:chipSpacingHorizontal="12dp"
+ app:singleLine="true"
+ app:singleSelection="true">
+
+ <com.google.android.material.chip.Chip
+ android:id="@+id/chip_recently_played"
+ style="@style/Widget.Material3.Chip.Suggestion.Elevated"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:checked="false"
+ android:text="@string/search_recently_played"
+ app:chipCornerRadius="28dp" />
+
+ <com.google.android.material.chip.Chip
+ android:id="@+id/chip_recently_added"
+ style="@style/Widget.Material3.Chip.Suggestion.Elevated"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:checked="false"
+ android:text="@string/search_recently_added"
+ app:chipCornerRadius="28dp" />
+
+ <com.google.android.material.chip.Chip
+ android:id="@+id/chip_retail"
+ style="@style/Widget.Material3.Chip.Suggestion.Elevated"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:checked="false"
+ android:text="@string/search_retail"
+ app:chipCornerRadius="28dp" />
+
+ <com.google.android.material.chip.Chip
+ android:id="@+id/chip_homebrew"
+ style="@style/Widget.Material3.Chip.Suggestion.Elevated"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:checked="false"
+ android:text="@string/search_homebrew"
+ app:chipCornerRadius="28dp" />
+
+ </com.google.android.material.chip.ChipGroup>
+
+ </HorizontalScrollView>
+
+ <com.google.android.material.divider.MaterialDivider
+ android:id="@+id/divider"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="20dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/horizontalScrollView" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_settings.xml b/src/android/app/src/main/res/layout/fragment_settings.xml
new file mode 100644
index 000000000..167720347
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_settings.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/list_settings"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?attr/colorSurface"
+ android:clipToPadding="false" />
+
+</FrameLayout>
diff --git a/src/android/app/src/main/res/layout/fragment_setup.xml b/src/android/app/src/main/res/layout/fragment_setup.xml
new file mode 100644
index 000000000..d7bafaea2
--- /dev/null
+++ b/src/android/app/src/main/res/layout/fragment_setup.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/setup_root"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <androidx.viewpager2.widget.ViewPager2
+ android:id="@+id/viewPager2"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:clipToPadding="false"
+ android:layout_marginBottom="16dp"
+ app:layout_constraintBottom_toTopOf="@+id/button_next"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <com.google.android.material.button.MaterialButton
+ style="@style/Widget.Material3.Button.TextButton"
+ android:id="@+id/button_next"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="12dp"
+ android:text="@string/next"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
+
+ <com.google.android.material.button.MaterialButton
+ style="@style/Widget.Material3.Button.TextButton"
+ android:id="@+id/button_back"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="12dp"
+ android:text="@string/back"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/layout/header_in_game.xml b/src/android/app/src/main/res/layout/header_in_game.xml
new file mode 100644
index 000000000..958cfb7e3
--- /dev/null
+++ b/src/android/app/src/main/res/layout/header_in_game.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.google.android.material.textview.MaterialTextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/text_game_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:layout_marginStart="24dp"
+ android:layout_marginEnd="24dp"
+ android:textAppearance="?attr/textAppearanceHeadlineMedium"
+ android:textColor="?attr/colorOnSurface"
+ android:textAlignment="viewStart"
+ tools:text="Super Mario Odyssey" />
diff --git a/src/android/app/src/main/res/layout/list_item_setting.xml b/src/android/app/src/main/res/layout/list_item_setting.xml
new file mode 100644
index 000000000..ec896342b
--- /dev/null
+++ b/src/android/app/src/main/res/layout/list_item_setting.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:background="?android:attr/selectableItemBackground"
+ android:clickable="true"
+ android:focusable="true"
+ android:gravity="center_vertical"
+ android:minHeight="72dp"
+ android:padding="@dimen/spacing_large">
+
+ <com.google.android.material.textview.MaterialTextView
+ style="@style/TextAppearance.Material3.HeadlineMedium"
+ android:id="@+id/text_setting_name"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentStart="true"
+ android:layout_alignParentTop="true"
+ android:textSize="16sp"
+ android:textAlignment="viewStart"
+ app:lineHeight="28dp"
+ tools:text="Setting Name" />
+
+ <TextView
+ style="@style/TextAppearance.Material3.BodySmall"
+ android:id="@+id/text_setting_description"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentStart="true"
+ android:layout_alignStart="@+id/text_setting_name"
+ android:layout_below="@+id/text_setting_name"
+ android:layout_marginTop="@dimen/spacing_small"
+ android:visibility="visible"
+ android:textAlignment="viewStart"
+ tools:text="@string/app_disclaimer" />
+
+</RelativeLayout>
diff --git a/src/android/app/src/main/res/layout/list_item_setting_switch.xml b/src/android/app/src/main/res/layout/list_item_setting_switch.xml
new file mode 100644
index 000000000..a5767adee
--- /dev/null
+++ b/src/android/app/src/main/res/layout/list_item_setting_switch.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground"
+ android:clickable="true"
+ android:focusable="true"
+ android:minHeight="72dp"
+ android:paddingVertical="@dimen/spacing_large"
+ android:paddingStart="@dimen/spacing_large"
+ android:paddingEnd="24dp">
+
+ <com.google.android.material.materialswitch.MaterialSwitch
+ android:id="@+id/switch_widget"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_centerVertical="true" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_centerVertical="true"
+ android:layout_marginEnd="@dimen/spacing_large"
+ android:layout_toStartOf="@+id/switch_widget"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <com.google.android.material.textview.MaterialTextView
+ android:id="@+id/text_setting_name"
+ style="@style/TextAppearance.Material3.HeadlineMedium"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAlignment="viewStart"
+ android:textSize="16sp"
+ app:lineHeight="28dp"
+ tools:text="@string/frame_limit_enable" />
+
+ <com.google.android.material.textview.MaterialTextView
+ android:id="@+id/text_setting_description"
+ style="@style/TextAppearance.Material3.BodySmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/spacing_small"
+ android:textAlignment="viewStart"
+ tools:text="@string/frame_limit_enable_description" />
+
+ </LinearLayout>
+
+</RelativeLayout>
diff --git a/src/android/app/src/main/res/layout/list_item_settings_header.xml b/src/android/app/src/main/res/layout/list_item_settings_header.xml
new file mode 100644
index 000000000..cf85bc0da
--- /dev/null
+++ b/src/android/app/src/main/res/layout/list_item_settings_header.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.google.android.material.textview.MaterialTextView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/text_header_name"
+ style="@style/TextAppearance.Material3.TitleSmall"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="start|center_vertical"
+ android:paddingHorizontal="@dimen/spacing_large"
+ android:paddingVertical="16dp"
+ android:textAlignment="viewStart"
+ android:textColor="?attr/colorPrimary"
+ android:textStyle="bold"
+ tools:text="CPU Settings" />
diff --git a/src/android/app/src/main/res/layout/page_setup.xml b/src/android/app/src/main/res/layout/page_setup.xml
new file mode 100644
index 000000000..1436ef308
--- /dev/null
+++ b/src/android/app/src/main/res/layout/page_setup.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_marginTop="64dp"
+ android:layout_marginBottom="32dp"
+ app:layout_constraintBottom_toTopOf="@+id/text_title"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHeight_max="220dp"
+ app:layout_constraintHeight_min="110dp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintVertical_chainStyle="spread"
+ app:layout_constraintWidth_max="220dp"
+ app:layout_constraintWidth_min="110dp"
+ app:layout_constraintVertical_weight="3" />
+
+ <com.google.android.material.textview.MaterialTextView
+ android:id="@+id/text_title"
+ style="@style/TextAppearance.Material3.DisplayMedium"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:textAlignment="center"
+ android:textColor="?attr/colorOnSurface"
+ android:textStyle="bold"
+ app:layout_constraintBottom_toTopOf="@+id/text_description"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/icon"
+ app:layout_constraintVertical_weight="1.3"
+ tools:text="@string/welcome" />
+
+ <com.google.android.material.textview.MaterialTextView
+ android:id="@+id/text_description"
+ style="@style/TextAppearance.Material3.TitleLarge"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:textAlignment="center"
+ android:textSize="26sp"
+ android:paddingHorizontal="16dp"
+ app:layout_constraintBottom_toTopOf="@+id/button_action"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/text_title"
+ app:layout_constraintVertical_weight="2"
+ app:lineHeight="40sp"
+ tools:text="@string/welcome_description" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/button_action"
+ android:layout_width="wrap_content"
+ android:layout_height="56dp"
+ android:textSize="20sp"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="48dp"
+ app:iconGravity="end"
+ app:iconSize="24sp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/text_description"
+ tools:text="Get started" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/src/android/app/src/main/res/menu-w600dp/menu_navigation.xml b/src/android/app/src/main/res/menu-w600dp/menu_navigation.xml
new file mode 100644
index 000000000..dd7698e78
--- /dev/null
+++ b/src/android/app/src/main/res/menu-w600dp/menu_navigation.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item
+ android:id="@+id/homeSettingsFragment"
+ android:icon="@drawable/selector_settings"
+ android:title="@string/home_settings" />
+
+ <item
+ android:id="@+id/searchFragment"
+ android:icon="@drawable/ic_search"
+ android:title="@string/home_search" />
+
+ <item
+ android:id="@+id/gamesFragment"
+ android:icon="@drawable/selector_cartridge"
+ android:title="@string/home_games" />
+
+</menu>
diff --git a/src/android/app/src/main/res/menu/menu_in_game.xml b/src/android/app/src/main/res/menu/menu_in_game.xml
new file mode 100644
index 000000000..f98f727b6
--- /dev/null
+++ b/src/android/app/src/main/res/menu/menu_in_game.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item
+ android:id="@+id/menu_pause_emulation"
+ android:icon="@drawable/ic_pause"
+ android:title="@string/emulation_pause" />
+
+ <item
+ android:id="@+id/menu_settings"
+ android:icon="@drawable/ic_settings"
+ android:title="@string/preferences_settings" />
+
+ <item
+ android:id="@+id/menu_overlay_controls"
+ android:icon="@drawable/ic_controller"
+ android:title="@string/emulation_input_overlay" />
+
+ <item
+ android:id="@+id/menu_exit"
+ android:icon="@drawable/ic_exit"
+ android:title="@string/emulation_exit" />
+
+</menu>
diff --git a/src/android/app/src/main/res/menu/menu_navigation.xml b/src/android/app/src/main/res/menu/menu_navigation.xml
new file mode 100644
index 000000000..da128c5a1
--- /dev/null
+++ b/src/android/app/src/main/res/menu/menu_navigation.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item
+ android:id="@+id/gamesFragment"
+ android:icon="@drawable/selector_cartridge"
+ android:title="@string/home_games" />
+
+ <item
+ android:id="@+id/searchFragment"
+ android:icon="@drawable/ic_search"
+ android:title="@string/home_search" />
+
+ <item
+ android:id="@+id/homeSettingsFragment"
+ android:icon="@drawable/selector_settings"
+ android:title="@string/home_settings" />
+
+</menu>
diff --git a/src/android/app/src/main/res/menu/menu_overlay_options.xml b/src/android/app/src/main/res/menu/menu_overlay_options.xml
new file mode 100644
index 000000000..4885b4f6f
--- /dev/null
+++ b/src/android/app/src/main/res/menu/menu_overlay_options.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item
+ android:id="@+id/menu_toggle_fps"
+ android:title="@string/emulation_fps_counter"
+ android:checkable="true" />
+
+ <item
+ android:id="@+id/menu_edit_overlay"
+ android:title="@string/emulation_touch_overlay_edit" />
+
+ <item
+ android:id="@+id/menu_adjust_overlay"
+ android:title="@string/emulation_control_adjust" />
+
+ <item
+ android:id="@+id/menu_toggle_controls"
+ android:title="@string/emulation_toggle_controls" />
+
+ <item
+ android:id="@+id/menu_show_overlay"
+ android:title="@string/emulation_show_overlay"
+ android:checkable="true" />
+
+ <item
+ android:id="@+id/menu_rel_stick_center"
+ android:title="@string/emulation_rel_stick_center"
+ android:checkable="true" />
+
+ <item
+ android:id="@+id/menu_dpad_slide"
+ android:title="@string/emulation_dpad_slide"
+ android:checkable="true" />
+
+ <item
+ android:id="@+id/menu_haptics"
+ android:title="@string/emulation_haptics"
+ android:checkable="true" />
+
+ <item
+ android:id="@+id/menu_reset_overlay"
+ android:title="@string/emulation_touch_overlay_reset" />
+
+</menu>
diff --git a/src/android/app/src/main/res/menu/menu_settings.xml b/src/android/app/src/main/res/menu/menu_settings.xml
new file mode 100644
index 000000000..1fe7aa6d4
--- /dev/null
+++ b/src/android/app/src/main/res/menu/menu_settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu /> \ No newline at end of file
diff --git a/src/android/app/src/main/res/navigation/emulation_navigation.xml b/src/android/app/src/main/res/navigation/emulation_navigation.xml
new file mode 100644
index 000000000..8208f4c2c
--- /dev/null
+++ b/src/android/app/src/main/res/navigation/emulation_navigation.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<navigation xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/emulation_navigation"
+ app:startDestination="@id/emulationFragment">
+
+ <fragment
+ android:id="@+id/emulationFragment"
+ android:name="org.yuzu.yuzu_emu.fragments.EmulationFragment"
+ android:label="fragment_emulation"
+ tools:layout="@layout/fragment_emulation" >
+ <argument
+ android:name="game"
+ app:argType="org.yuzu.yuzu_emu.model.Game" />
+ </fragment>
+
+</navigation>
diff --git a/src/android/app/src/main/res/navigation/home_navigation.xml b/src/android/app/src/main/res/navigation/home_navigation.xml
new file mode 100644
index 000000000..fcebba726
--- /dev/null
+++ b/src/android/app/src/main/res/navigation/home_navigation.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<navigation xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/home_navigation"
+ app:startDestination="@id/gamesFragment">
+
+ <fragment
+ android:id="@+id/gamesFragment"
+ android:name="org.yuzu.yuzu_emu.ui.GamesFragment"
+ android:label="PlatformGamesFragment" />
+
+ <fragment
+ android:id="@+id/homeSettingsFragment"
+ android:name="org.yuzu.yuzu_emu.fragments.HomeSettingsFragment"
+ android:label="HomeSettingsFragment" >
+ <action
+ android:id="@+id/action_homeSettingsFragment_to_aboutFragment"
+ app:destination="@id/aboutFragment" />
+ <action
+ android:id="@+id/action_homeSettingsFragment_to_earlyAccessFragment"
+ app:destination="@id/earlyAccessFragment" />
+ </fragment>
+
+ <fragment
+ android:id="@+id/firstTimeSetupFragment"
+ android:name="org.yuzu.yuzu_emu.fragments.SetupFragment"
+ android:label="FirstTimeSetupFragment" >
+ <action
+ android:id="@+id/action_firstTimeSetupFragment_to_gamesFragment"
+ app:destination="@id/gamesFragment"
+ app:popUpTo="@id/firstTimeSetupFragment"
+ app:popUpToInclusive="true" />
+ </fragment>
+
+ <fragment
+ android:id="@+id/searchFragment"
+ android:name="org.yuzu.yuzu_emu.fragments.SearchFragment"
+ android:label="SearchFragment" />
+
+ <fragment
+ android:id="@+id/aboutFragment"
+ android:name="org.yuzu.yuzu_emu.fragments.AboutFragment"
+ android:label="AboutFragment" >
+ <action
+ android:id="@+id/action_aboutFragment_to_licensesFragment"
+ app:destination="@id/licensesFragment" />
+ </fragment>
+
+ <fragment
+ android:id="@+id/earlyAccessFragment"
+ android:name="org.yuzu.yuzu_emu.fragments.EarlyAccessFragment"
+ android:label="EarlyAccessFragment" />
+
+ <fragment
+ android:id="@+id/licensesFragment"
+ android:name="org.yuzu.yuzu_emu.fragments.LicensesFragment"
+ android:label="LicensesFragment" />
+
+ <activity
+ android:id="@+id/emulationActivity"
+ android:name="org.yuzu.yuzu_emu.activities.EmulationActivity"
+ android:label="EmulationActivity">
+ <argument
+ android:name="game"
+ app:argType="org.yuzu.yuzu_emu.model.Game" />
+ </activity>
+
+ <action
+ android:id="@+id/action_global_emulationActivity"
+ app:destination="@id/emulationActivity"
+ app:launchSingleTop="true" />
+
+</navigation>
diff --git a/src/android/app/src/main/res/values-de/strings.xml b/src/android/app/src/main/res/values-de/strings.xml
new file mode 100644
index 000000000..969223ef8
--- /dev/null
+++ b/src/android/app/src/main/res/values-de/strings.xml
@@ -0,0 +1,332 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Diese Software kann Spiele für die Nintendo Switch abspielen. Keine Spiele oder Spielekeys sind enthalten.&lt;br /&gt;&lt;br /&gt;Bevor du beginnst, bitte halte deine <![CDATA[<b> prod.keys </b>]]> auf deinem Gerät bereit. .&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">Mehr Infos</a>]]></string>
+ <string name="emulation_notification_channel_name">Emulation ist aktiv</string>
+ <string name="emulation_notification_channel_description">Zeigt eine dauerhafte Benachrichtigung an, wenn die Emulation läuft.</string>
+ <string name="emulation_notification_running">yuzu läuft</string>
+ <string name="notice_notification_channel_name">Hinweise und Fehler</string>
+ <string name="notice_notification_channel_description">Zeigt Benachrichtigungen an, wenn etwas schief läuft.</string>
+ <string name="notification_permission_not_granted">Berechtigung für Benachrichtigungen nicht erlaubt!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Willkommen!</string>
+ <string name="welcome_description">Erfahre wie man &lt;b>yuzu&lt;/b> einrichtet und beginne mit der Emulation.</string>
+ <string name="get_started">Erste Schritte</string>
+ <string name="keys">Schlüssel</string>
+ <string name="keys_description">Wähle deine &lt;b>prod.keys&lt;/b> Datei mit dem Button unten aus.</string>
+ <string name="select_keys">Schlüssel auswählen</string>
+ <string name="games">Spiele</string>
+ <string name="games_description">Wähle mit dem Knopf unten den &lt;b>Spiele&lt;/b>-Ordner aus.</string>
+ <string name="done">Fertig</string>
+ <string name="done_description">Wir können loslegen.\nViel Spaß!</string>
+ <string name="text_continue">Fortsetzen</string>
+ <string name="next">Weiter</string>
+ <string name="back">Zurück</string>
+ <string name="add_games">Spiele hinzufügen</string>
+ <string name="add_games_description">Spieleverzeichnis auswählen</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Spiele</string>
+ <string name="home_search">Suche</string>
+ <string name="home_settings">Einstellungen</string>
+ <string name="empty_gamelist">Es wurden keine Dateien gefunden oder es wurde noch kein Spielverzeichnis ausgewählt.</string>
+ <string name="search_and_filter_games">Spiele suchen und filtern</string>
+ <string name="select_games_folder">Spieleverzeichnis auswählen</string>
+ <string name="select_games_folder_description">Erlaubt yuzu die Spieleliste zu füllen</string>
+ <string name="add_games_warning">Auswahl des Spieleverzeichnisses überspringen?</string>
+ <string name="add_games_warning_description">Spiele werden in der Spieleliste nicht angezeigt, wenn kein Ordner ausgewählt ist.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Spiele suchen</string>
+ <string name="games_dir_selected">Spieleverzeichnis ausgewählt</string>
+ <string name="install_prod_keys">prod.keys installieren</string>
+ <string name="install_prod_keys_description">Zum Entschlüsseln von Spielen benötigt</string>
+ <string name="install_prod_keys_warning">Hinzufügen der Schlüssel überspringen?</string>
+ <string name="install_prod_keys_warning_description">Für die Emulation von Spielen sind gültige Schlüssel erforderlich. Wenn du fortfährst, funktionieren nur Homebrew-Anwendungen.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Benachrichtigungen</string>
+ <string name="notifications_description">Erteile mit dem Knopf unten die Berechtigung, Benachrichtigungen zu senden.</string>
+ <string name="give_permission">Berechtigung erteilen</string>
+ <string name="notification_warning_description">yuzu wird dich nicht über wichtige Informationen benachrichtigen können.</string>
+ <string name="permission_denied">Zugriff verweigert</string>
+ <string name="permission_denied_description">Du hast diese Berechtigung zu oft verweigert und musst sie nun manuell in den Systemeinstellungen erteilen.</string>
+ <string name="about">Über</string>
+ <string name="about_description">Build-Version, Credits und mehr</string>
+ <string name="warning_help">Hilfe</string>
+ <string name="warning_skip">Überspringen</string>
+ <string name="warning_cancel">Abbrechen</string>
+ <string name="install_amiibo_keys">Amiibo-Schlüssel installieren</string>
+ <string name="install_amiibo_keys_description">Benötigt um Amiibos im Spiel zu verwenden</string>
+ <string name="invalid_keys_file">Ungültige Schlüsseldatei ausgewählt</string>
+ <string name="install_keys_success">Schlüssel erfolgreich installiert</string>
+ <string name="reading_keys_failure">Fehler beim Lesen der Schlüssel</string>
+ <string name="invalid_keys_error">Ungültige Schlüssel</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_gpu_driver">GPU-Treiber installieren</string>
+ <string name="install_gpu_driver_description">Alternative Treiber für eventuell bessere Leistung oder Genauigkeit installieren</string>
+ <string name="advanced_settings">Erweiterte Einstellungen</string>
+ <string name="settings_description">Emulatoreinstellungen konfigurieren</string>
+ <string name="search_recently_played">Kürzlich gespielt</string>
+ <string name="search_recently_added">Kürzlich hinzugefügt</string>
+ <string name="search_retail">Spiele</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">yuzu-Ordner öffnen</string>
+ <string name="open_user_folder_description">yuzu\'s interne Dateien verwalten</string>
+ <string name="theme_and_color_description">Das Aussehen der App ändern</string>
+ <string name="no_file_manager">Kein Dateimanager gefunden</string>
+ <string name="notification_no_directory_link">yuzu-Verzeichnis konnte nicht geöffnet werden</string>
+ <string name="notification_no_directory_link_description">Bitte suche den Benutzerordner manuell über die Seitenleiste des Dateimanagers.</string>
+ <string name="manage_save_data">Speicherdaten verwalten</string>
+ <string name="manage_save_data_description">Speicherdaten gefunden. Bitte wähle unten eine Option aus.</string>
+ <string name="import_export_saves_description">Speicherdaten importieren oder exportieren</string>
+ <string name="import_export_saves_no_profile">Keine Speicherdaten gefunden. Bitte starte ein Spiel und versuche es erneut.</string>
+ <string name="save_file_imported_success">Erfolgreich importiert</string>
+ <string name="save_file_invalid_zip_structure">Ungültige Speicherverzeichnisstruktur</string>
+ <string name="save_file_invalid_zip_structure_description">Der erste Unterordnername muss die Titel-ID des Spiels sein.</string>
+ <string name="import_saves">Importieren</string>
+ <string name="export_saves">Exportieren</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia ist nicht real</string>
+ <string name="copied_to_clipboard">In die Zwischenablage kopiert</string>
+ <string name="about_app_description">Ein quelloffener Switch-Emulator</string>
+ <string name="contributors">Beitragende</string>
+ <string name="contributors_description">Gemacht mit \u2764 vom yuzu Team</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Build</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Early Access</string>
+ <string name="get_early_access">Early Access bekommen</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Neueste Features, frühzeitiger Zugriff auf Updates und mehr</string>
+ <string name="early_access_benefits">Early Access Vorteile</string>
+ <string name="cutting_edge_features">Neueste Features</string>
+ <string name="early_access_updates">Früherer Zugriff auf Updates</string>
+ <string name="no_manual_installation">Keine manuelle Installation</string>
+ <string name="prioritized_support">Priorisierte Unterstützung</string>
+ <string name="our_eternal_gratitude">Unsere ewige Dankbarkeit</string>
+ <string name="are_you_interested">Bist du interessiert?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Geschwindigkeitsbegrenzung aktivieren</string>
+ <string name="frame_limit_enable_description">Wenn aktiviert, wird die Emulationsgeschwindigkeit auf einen Prozentsatz der normalen Geschwindigkeit begrenzt.</string>
+ <string name="frame_limit_slider">Geschwindkeitsbegrenzung in Prozent</string>
+ <string name="frame_limit_slider_description">Legt den Prozentsatz der Bergrenzung der Emulationsgeschwindigkeit fest. Mit dem Standardwert von 100% wird die Emulation auf die normale Geschwindigkeit begrenzt. Höhere oder niedrigere Werte erhöhen oder verringern die Geschwindigkeitsbegrenzung.</string>
+ <string name="cpu_accuracy">CPU-Genauigkeit</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Dock-Modus</string>
+ <string name="use_docked_mode_description">Emuliert im Dock-Modus, was die Auflösung verbessert, aber die Leistung senkt.</string>
+ <string name="emulated_region">Emulierte Region</string>
+ <string name="emulated_language">Emulierte Sprache</string>
+ <string name="select_rtc_date">RTC-Datum auswählen</string>
+ <string name="select_rtc_time">RTC-Zeit auswählen</string>
+ <string name="use_custom_rtc">Benutzerdefinierte RTC aktivieren</string>
+ <string name="use_custom_rtc_description">Mit dieser Einstellung kann eine benutzerdefinierte Echtzeituhr unabhängig von der aktuellen Systemzeit verwendet werden.</string>
+ <string name="set_custom_rtc">Benutzerdefinierte RTC einstellen</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Genauigkeitsstufe</string>
+ <string name="renderer_resolution">Auflösung</string>
+ <string name="renderer_vsync">VSync-Modus</string>
+ <string name="renderer_aspect_ratio">Seitenverhältnis</string>
+ <string name="renderer_scaling_filter">Fensteranpassungsfilter</string>
+ <string name="renderer_anti_aliasing">Kantenglättungs-Methode</string>
+ <string name="renderer_force_max_clock">Maximale Taktfrequenz erzwingen (nur Adreno)</string>
+ <string name="renderer_force_max_clock_description">Erzwingt den Betrieb der GPU mit der maximal möglichen Taktfrequenz (Temperaturbeschränkungen werden weiterhin angewendet).</string>
+ <string name="renderer_asynchronous_shaders">Asynchrone Shader nutzen</string>
+ <string name="renderer_asynchronous_shaders_description">Kompiliert Shader asynchron, was Ruckler reduziert, aber zu Glitches führen kann.</string>
+ <string name="renderer_debug">Grafik-Debugging aktivieren</string>
+ <string name="renderer_debug_description">Wenn aktiviert, schaltet die Grafik-API in einen langsameren Debugging-Modus.</string>
+ <string name="use_disk_shader_cache">Nutze Festplatten-Shader-Cache</string>
+ <string name="use_disk_shader_cache_description">Ruckeln wird durch das Speichern und Laden von generierten Shadern auf der Festplatte reduziert.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Lautstärke</string>
+ <string name="audio_volume_description">Legt die Lautstärke der Audioausgabe fest.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Standard</string>
+ <string name="ini_saved">Einstellungen gespeichert</string>
+ <string name="gameid_saved">Einstellungen für %1$s gespeichert</string>
+ <string name="error_saving">Fehler beim Speichern von %1$s.ini: %2$s</string>
+ <string name="loading">Lädt...</string>
+ <string name="reset_setting_confirmation">Möchtest du diese Einstellung auf den Standardwert zurücksetzen?</string>
+ <string name="reset_to_default">Auf Standard zurücksetzen</string>
+ <string name="reset_all_settings">Alle Einstellungen zurücksetzen?</string>
+ <string name="reset_all_settings_description">Alle erweiterten Einstellungen werden auf ihren Standardwert zurückgesetzt. Dies kann nicht rückgängig gemacht werden.</string>
+ <string name="settings_reset">Einstellungen zurückgesetzt</string>
+ <string name="close">Schließen</string>
+ <string name="learn_more">Mehr erfahren</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">GPU-Treiber auswählen</string>
+ <string name="select_gpu_driver_title">Möchtest du deinen aktuellen GPU-Treiber ersetzen?</string>
+ <string name="select_gpu_driver_install">Installieren</string>
+ <string name="select_gpu_driver_default">Standard</string>
+ <string name="select_gpu_driver_install_success">%s wurde installiert</string>
+ <string name="select_gpu_driver_use_default">Standard GPU-Treiber wird verwendet</string>
+ <string name="select_gpu_driver_error">Ungültiger Treiber ausgewählt, Standard-Treiber wird verwendet!</string>
+ <string name="system_gpu_driver">System GPU-Treiber</string>
+ <string name="installing_driver">Treiber wird installiert...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Einstellungen</string>
+ <string name="preferences_general">Allgemein</string>
+ <string name="preferences_system">System</string>
+ <string name="preferences_graphics">Grafik</string>
+ <string name="preferences_audio">Audio</string>
+ <string name="preferences_theme">Theme und Farbe</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">Das ROM ist verschlüsselt</string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Bitte stelle sicher dass die <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> Datei installiert ist, damit Spiele entschlüsselt werden können.]]></string>
+ <string name="loader_error_video_core">Bei der Initialisierung des Videokerns ist ein Fehler aufgetreten</string>
+ <string name="loader_error_video_core_description">Dies wird normalerweise durch einen inkompatiblen GPU-Treiber verursacht. Die Installation eines passenden GPU-Treibers kann dieses Problem beheben.</string>
+ <string name="loader_error_invalid_format">ROM konnte nicht geladen werden</string>
+ <string name="loader_error_file_not_found">ROM-Datei existiert nicht</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Emulation beenden</string>
+ <string name="emulation_done">Fertig</string>
+ <string name="emulation_fps_counter">FPS Zähler</string>
+ <string name="emulation_toggle_controls">Steuerung umschalten</string>
+ <string name="emulation_rel_stick_center">Relative Stick-Mitte</string>
+ <string name="emulation_dpad_slide">DPad Slide</string>
+ <string name="emulation_haptics">Haptik</string>
+ <string name="emulation_show_overlay">Overlay anzeigen</string>
+ <string name="emulation_toggle_all">Alle umschalten</string>
+ <string name="emulation_control_adjust">Overlay anpassen</string>
+ <string name="emulation_control_scale">Größe</string>
+ <string name="emulation_control_opacity">Transparenz</string>
+ <string name="emulation_touch_overlay_reset">Overlay zurücksetzen</string>
+ <string name="emulation_touch_overlay_edit">Overlay bearbeiten</string>
+ <string name="emulation_pause">Emulation pausieren</string>
+ <string name="emulation_unpause">Emulation fortsetzen</string>
+ <string name="emulation_input_overlay">Overlay-Optionen</string>
+ <string name="emulation_game_loading">Spiel lädt…</string>
+
+ <string name="load_settings">Lädt Einstellungen...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Software-Tastatur</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Abbrechen</string>
+ <string name="continue_button">Fortsetzen</string>
+ <string name="system_archive_not_found">Systemarchiv nicht gefunden</string>
+ <string name="system_archive_general">Ein System-Archiv</string>
+ <string name="save_load_error">Speicher-/Ladefehler</string>
+ <string name="fatal_error">Schwerwiegender Fehler</string>
+ <string name="fatal_error_message">Ein schwerwiegender Fehler ist aufgetreten. Einzelheiten wurden im Log protokolliert.\nDas Fortsetzen der Emulation kann zu Abstürzen und Bugs führen.</string>
+ <string name="performance_warning">Das Deaktivieren dieser Einstellung führt zu erheblichen Leistungsverlusten! Für ein optimales Erlebnis wird empfohlen, sie aktiviert zu lassen.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japan</string>
+ <string name="region_usa">USA</string>
+ <string name="region_europe">Europa</string>
+ <string name="region_australia">Australien</string>
+ <string name="region_china">China</string>
+ <string name="region_korea">Korea</string>
+ <string name="region_taiwan">Taiwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japanisch (日本語)</string>
+ <string name="language_english">Englisch</string>
+ <string name="language_french">Französisch (Français)</string>
+ <string name="langauge_german">Deutsch (German)</string>
+ <string name="language_italian">Italienisch (Italiano)</string>
+ <string name="language_spanish">Spanisch (Español)</string>
+ <string name="language_chinese">Chinesisch (简体中文)</string>
+ <string name="language_korean">Koreanisch (한국어)</string>
+ <string name="language_dutch">Niederländisch (Nederlands)</string>
+ <string name="language_portuguese">Portugiesisch (Português)</string>
+ <string name="language_russian">Russisch (Русский)</string>
+ <string name="language_taiwanese">Taiwanesisch (台湾)</string>
+ <string name="language_british_english">Britisches Englisch</string>
+ <string name="language_canadian_french">Kanadisches Französisch (Français canadien)</string>
+ <string name="language_latin_american_spanish">Lateinamerikanisches Spanisch (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Vereinfachtes Chinesisch (简体中文)</string>
+ <string name="language_traditional_chinese">Traditionelles Chinesisch (正體中文)</string>
+ <string name="language_brazilian_portuguese">Brasilianisches Portugiesisch (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Keiner</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normal</string>
+ <string name="renderer_accuracy_high">Hoch</string>
+ <string name="renderer_accuracy_extreme">Extrem (Langsam)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Langsam)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Langsam)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Langsam)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Direkt (Aus)</string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (An)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxed</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Nächste-Nachbarn</string>
+ <string name="scaling_filter_bilinear">Bilinear</string>
+ <string name="scaling_filter_bicubic">Bikubisch</string>
+ <string name="scaling_filter_gaussian">Gaussian</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Keiner</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Standard (16:9)</string>
+ <string name="ratio_force_four_three">4:3 erzwingen</string>
+ <string name="ratio_force_twenty_one_nine">21:9 erzwingen</string>
+ <string name="ratio_force_sixteen_ten">Erzwinge 16:10</string>
+ <string name="ratio_stretch">Auf Fenster anpassen</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Akkurat</string>
+ <string name="cpu_accuracy_unsafe">Unsicher</string>
+ <string name="cpu_accuracy_paranoid">Paranoid (Langsam)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">Steuerkreuz</string>
+ <string name="gamepad_left_stick">Linker Analogstick</string>
+ <string name="gamepad_right_stick">Rechter Analogstick</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Screenshot</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Shader werden vorbereitet</string>
+ <string name="building_shaders">Shader werden erstellt</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">App-Theme ändern</string>
+ <string name="theme_default">Standard</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Theme-Modus ändern</string>
+ <string name="theme_mode_follow_system">System folgen</string>
+ <string name="theme_mode_light">Hell</string>
+ <string name="theme_mode_dark">Dunkel</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Schwarze Hintergünde verwenden</string>
+ <string name="use_black_backgrounds_description">Bei Verwendung des dunklen Themes, schwarze Hintergründe verwenden.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-es/strings.xml b/src/android/app/src/main/res/values-es/strings.xml
new file mode 100644
index 000000000..986e80e50
--- /dev/null
+++ b/src/android/app/src/main/res/values-es/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Este software ejecuta juegos para la videoconsola Nintendo Switch. Los videojuegos o keys no vienen incluidos.&lt;br /&gt;&lt;br /&gt;Antes de empezar, por favor, localice el archivo <![CDATA[<b> prod.keys </b>]]>en el almacenamiento de su dispositivo..&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">Saber más</a>]]></string>
+ <string name="emulation_notification_channel_name">Emulación activa</string>
+ <string name="emulation_notification_channel_description">Muestra una notificación persistente cuando la emulación está activa.</string>
+ <string name="emulation_notification_running">yuzu esta ejecutándose</string>
+ <string name="notice_notification_channel_name">Avisos y errores</string>
+ <string name="notice_notification_channel_description">Mostrar notificaciones cuándo algo vaya mal.</string>
+ <string name="notification_permission_not_granted">¡Permisos de notificación no concedidos!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">¡Bienvenido!</string>
+ <string name="welcome_description">Aprende cómo configurar &lt;b>yuzu&lt;/b> y avanza a la emulación.</string>
+ <string name="get_started">Empezar</string>
+ <string name="keys">Claves</string>
+ <string name="keys_description">Selecciona el archivo &lt;b>prod.keys&lt;/b> utilizando el botón de abajo.</string>
+ <string name="select_keys">Seleccionar las claves</string>
+ <string name="games">Juegos</string>
+ <string name="games_description">Selecciona la carpeta &lt;b>Games&lt;/b> utilizando el botón de abajo</string>
+ <string name="done">Hecho</string>
+ <string name="done_description">Todo listo.\n¡Disfrute de sus juegos!</string>
+ <string name="text_continue">Continuar</string>
+ <string name="next">Siguiente</string>
+ <string name="back">Atrás</string>
+ <string name="add_games">Añadir Juegos</string>
+ <string name="add_games_description">Selecciona la carpeta de juegos</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Juegos</string>
+ <string name="home_search">Buscar</string>
+ <string name="home_settings">Ajustes</string>
+ <string name="empty_gamelist">No se ha encontrado ningún archivo o aún no se ha seleccionado ningún directorio de juegos.</string>
+ <string name="search_and_filter_games">Busca y filtra juegos</string>
+ <string name="select_games_folder">Seleccionar carpeta de juegos</string>
+ <string name="select_games_folder_description">Permite que yuzu llene la lista de juegos</string>
+ <string name="add_games_warning">¿Omitir la selección de la carpeta de juegos?</string>
+ <string name="add_games_warning_description">No se mostrará ningún juego si no se ha seleccionado una carpeta de juegos.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Buscar Juegos</string>
+ <string name="games_dir_selected">Directorio de juegos seleccionado</string>
+ <string name="install_prod_keys">Instalar prod.keys</string>
+ <string name="install_prod_keys_description">Requerido para descifrar juegos</string>
+ <string name="install_prod_keys_warning">¿Omitir agregar claves?</string>
+ <string name="install_prod_keys_warning_description">Se requieren claves válidas para emular juegos. Solo las aplicaciones homebrew funcionarán si continúas.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Notificaciones</string>
+ <string name="notifications_description">Otorgue el permiso de notificación con el botón de abajo.</string>
+ <string name="give_permission">Conceder permiso</string>
+ <string name="notification_warning">¿Omitir conceder el permiso de notificación?</string>
+ <string name="notification_warning_description">yuzu no podrá notificarte información importante.</string>
+ <string name="permission_denied">Permiso denegado</string>
+ <string name="permission_denied_description">Negó este permiso demasiadas veces y ahora debe otorgarlo manualmente en la configuración del sistema.</string>
+ <string name="about">Acerca de</string>
+ <string name="about_description">Versión, créditos y más</string>
+ <string name="warning_help">Ayuda</string>
+ <string name="warning_skip">Siguiente</string>
+ <string name="warning_cancel">Cancelar</string>
+ <string name="install_amiibo_keys">Instalar clave de Amiiboo</string>
+ <string name="install_amiibo_keys_description">Necesario para usar Amiibo en el juego</string>
+ <string name="invalid_keys_file">Archivo de claves inválido seleccionado</string>
+ <string name="install_keys_success">Claves instaladas correctamente</string>
+ <string name="reading_keys_failure">Error al leer las claves de cifrado</string>
+ <string name="invalid_keys_error">Claves de cifrado no válidas</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">El archivo seleccionado es incorrecto o está corrupto. Vuelva a redumpear sus claves.</string>
+ <string name="install_gpu_driver">Instalar driver de GPU</string>
+ <string name="install_gpu_driver_description">Instale drivers alternativos para obtener un rendimiento o una precisión potencialmente mejores</string>
+ <string name="advanced_settings">Opciones avanzadas</string>
+ <string name="settings_description">Configurar las opciones del emulador</string>
+ <string name="search_recently_played">Jugado recientemente</string>
+ <string name="search_recently_added">Añadido recientemente</string>
+ <string name="search_retail">Juegos</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Abrir la carpeta de yuzu</string>
+ <string name="open_user_folder_description">Administrar los archivos internos de yuzu</string>
+ <string name="theme_and_color_description">Modificar la apariencia de la aplicación</string>
+ <string name="no_file_manager">Explorador de archivos no encontrado</string>
+ <string name="notification_no_directory_link">No se pudo abrir la carpeta yuzu</string>
+ <string name="notification_no_directory_link_description">Por favor, busque la carpeta user con el panel lateral del explorador de archivos de forma manual.</string>
+ <string name="manage_save_data">Administrar datos de guardado</string>
+ <string name="manage_save_data_description">Guardar los datos encontrados. Por favor, seleccione una opción de abajo.</string>
+ <string name="import_export_saves_description">Importar o exportar archivos de guardado</string>
+ <string name="import_export_saves_no_profile">No se han encontrado datos de guardado. Por favor, ejecute un juego y vuelva a intentarlo.</string>
+ <string name="save_file_imported_success">Importado correctamente</string>
+ <string name="save_file_invalid_zip_structure">Estructura del directorio de guardado no válido</string>
+ <string name="save_file_invalid_zip_structure_description">El nombre de la primera subcarpeta debe ser el Title ID del juego.</string>
+ <string name="import_saves">Importar</string>
+ <string name="export_saves">Exportar</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia no es real</string>
+ <string name="copied_to_clipboard">Copiado al portapapeles</string>
+ <string name="about_app_description">Un emulador de Switch de código abierto</string>
+ <string name="contributors">Contribuidores</string>
+ <string name="contributors_description">Hecho con \u2764 del equipo yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Versión</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Early Access</string>
+ <string name="get_early_access">Conseguir Early Access</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Funciones de vanguardia, acceso anticipado a actualizaciones y más</string>
+ <string name="early_access_benefits">Beneficios Early Access</string>
+ <string name="cutting_edge_features">Características de vanguardia</string>
+ <string name="early_access_updates">Acceso anticipado a las actualizaciones</string>
+ <string name="no_manual_installation">Sin instalación manual</string>
+ <string name="prioritized_support">Soporte prioritario</string>
+ <string name="helping_game_preservation">Ayudarás a la preservación de juegos</string>
+ <string name="our_eternal_gratitude">Nuestra eterna gratitud</string>
+ <string name="are_you_interested">¿Estás interesado?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Activar limite de velocidad</string>
+ <string name="frame_limit_enable_description">Cuando está habilitado, la velocidad de emulación se limitará a un porcentaje específico de la velocidad normal.</string>
+ <string name="frame_limit_slider">Limitar porcentaje de velocidad</string>
+ <string name="frame_limit_slider_description">Especifica el porcentaje para limitar la velocidad de emulación. Con el valor predeterminado del 100 %, la emulación se limitará a la velocidad normal. Valores más altos o más bajos aumentarán o disminuirán el límite de velocidad.</string>
+ <string name="cpu_accuracy">Precisión de CPU</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Modo sobremesa</string>
+ <string name="use_docked_mode_description">Emula en modo sobremesa, lo que aumenta la resolución perjudicando el rendimiento.</string>
+ <string name="emulated_region">Región emulada</string>
+ <string name="emulated_language">Idioma emulado</string>
+ <string name="select_rtc_date">Seleccionar Fecha RTC</string>
+ <string name="select_rtc_time">Seleccionar Tiempo RTC</string>
+ <string name="use_custom_rtc">Habilitar RTC Personalizado</string>
+ <string name="use_custom_rtc_description">Esta configuración le permite configurar un reloj de tiempo real personalizado diferente a la hora actual de su sistema</string>
+ <string name="set_custom_rtc">Establecer RTC Personalizado</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Nivel de precisión</string>
+ <string name="renderer_resolution">Resolución</string>
+ <string name="renderer_vsync">Modo VSync</string>
+ <string name="renderer_aspect_ratio">Relación de aspecto</string>
+ <string name="renderer_scaling_filter">Filtro de adaptación de ventana</string>
+ <string name="renderer_anti_aliasing">Metodo Anti Aliasing</string>
+ <string name="renderer_force_max_clock">Forzar velocidad al máximo (solo Adreno)</string>
+ <string name="renderer_force_max_clock_description">Fuerza a la GPU a ejecutarse a la velocidad máxima de reloj posible (se seguirán aplicando restricciones térmicas).</string>
+ <string name="renderer_asynchronous_shaders">Usar shaders asíncronos</string>
+ <string name="renderer_asynchronous_shaders_description">Compila shaders de forma asincrónica, lo que reducirá los parones pero puede introducir fallos.</string>
+ <string name="renderer_debug">Habilitar la depuración de gráficos</string>
+ <string name="renderer_debug_description">Cuando esté marcado, la API de gráficos entra en un modo de depuración más lento.</string>
+ <string name="use_disk_shader_cache">Usar caché de shaders en disco</string>
+ <string name="use_disk_shader_cache_description">Reduzca los parones almacenando y cargando shaders generados en el disco.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Volumen</string>
+ <string name="audio_volume_description">Especifica el volumen de la salida de audio.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Predeterminado</string>
+ <string name="ini_saved">Configuración guardada</string>
+ <string name="gameid_saved">Configuración guardada para %1$s</string>
+ <string name="error_saving">Error guardando %1$s.ini: %2$s</string>
+ <string name="loading">Cargando...</string>
+ <string name="reset_setting_confirmation">¿Desea restablecer esta configuración a su valor predeterminado?</string>
+ <string name="reset_to_default">Restablecer a predeterminado</string>
+ <string name="reset_all_settings">¿Restablecer todas las configuraciones?</string>
+ <string name="reset_all_settings_description">Todas las configuraciones avanzadas se restablecerán a su configuración predeterminada. Esto no se puede deshacer.</string>
+ <string name="settings_reset">Reiniciar la configuracion</string>
+ <string name="close">Cerrar</string>
+ <string name="learn_more">Más información</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Seleccionar driver GPU</string>
+ <string name="select_gpu_driver_title">¿Quiere reemplazar el driver de GPU actual?</string>
+ <string name="select_gpu_driver_install">Instalar</string>
+ <string name="select_gpu_driver_default">Predeterminado</string>
+ <string name="select_gpu_driver_install_success">Instalado %s</string>
+ <string name="select_gpu_driver_use_default">Usando el driver de GPU por defecto </string>
+ <string name="select_gpu_driver_error">¡Driver no válido, utilizando el predeterminado del sistema!</string>
+ <string name="system_gpu_driver">Driver GPU del sistema</string>
+ <string name="installing_driver">Instalando driver...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Ajustes</string>
+ <string name="preferences_general">General</string>
+ <string name="preferences_system">Sistema</string>
+ <string name="preferences_graphics">Gráficos</string>
+ <string name="preferences_audio">Audio</string>
+ <string name="preferences_theme">Tema y color</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">Su ROM está encriptada</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Por favor, siga las guías para redumpear <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">cartuchos de juegos</a> o <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">titulos instalados</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Por favor, compruebe que su archivo <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> está instalado, para que los juegos sean descifrados.]]></string>
+ <string name="loader_error_video_core">Ocurrió un error al inicializar el núcleo de video, posiblemente debido a una incompatibilidad con el driver seleccionado</string>
+ <string name="loader_error_video_core_description">Esto suele deberse a un driver de GPU incompatible. La instalación de un controlador de GPU personalizado puede resolver este problema.</string>
+ <string name="loader_error_invalid_format">No se pudo cargar la ROM</string>
+ <string name="loader_error_file_not_found">Archivo ROM no existe</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Salir de la emulación</string>
+ <string name="emulation_done">Hecho</string>
+ <string name="emulation_fps_counter">Contador de FPS</string>
+ <string name="emulation_toggle_controls">Alternar Controles</string>
+ <string name="emulation_rel_stick_center">Centro Relativo del Stick</string>
+ <string name="emulation_dpad_slide">Deslizamiento de la Cruceta</string>
+ <string name="emulation_haptics">Hápticos</string>
+ <string name="emulation_show_overlay">Mostrar pantalla</string>
+ <string name="emulation_toggle_all">Alternar Todo</string>
+ <string name="emulation_control_adjust">Ajustar pantalla</string>
+ <string name="emulation_control_scale">Escala</string>
+ <string name="emulation_control_opacity">Opacidad</string>
+ <string name="emulation_touch_overlay_reset">Reiniciar pantalla</string>
+ <string name="emulation_touch_overlay_edit">Editar pantalla</string>
+ <string name="emulation_pause">Pausar Emulación</string>
+ <string name="emulation_unpause">Reanudar Emulación</string>
+ <string name="emulation_input_overlay">Opciones de pantalla </string>
+ <string name="emulation_game_loading">Cargando juego...</string>
+
+ <string name="load_settings">Cargando configuración...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Software del teclado</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Abortar</string>
+ <string name="continue_button">Continuar</string>
+ <string name="system_archive_not_found">Archivo del sistema no encontrado</string>
+ <string name="system_archive_not_found_message">%s no se ha encontrado. Vacíe los archivos de su sistema.\nContinuar con la emulación puede provocar bloqueos y errores.</string>
+ <string name="system_archive_general">Un archivo del sistema</string>
+ <string name="save_load_error">Error de Guardado/Carga</string>
+ <string name="fatal_error">Error fatal</string>
+ <string name="fatal_error_message">Ocurrió un error fatal. Consulte el registro para obtener más detalles.\nContinuar con la emulación puede provocar bloqueos y errores.</string>
+ <string name="performance_warning">¡Desactivar esta configuración reducirá significativamente el rendimiento de la emulación! Para obtener la mejor experiencia, se recomienda dejar esta configuración habilitada.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japón</string>
+ <string name="region_usa">EEUU</string>
+ <string name="region_europe">Europa</string>
+ <string name="region_australia">Australia</string>
+ <string name="region_china">China</string>
+ <string name="region_korea">Corea</string>
+ <string name="region_taiwan">Taiwán</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japonés (日本語)</string>
+ <string name="language_english">Inglés (English)</string>
+ <string name="language_french">Francés (Français)</string>
+ <string name="langauge_german">Alemán (deutsch)</string>
+ <string name="language_italian">Italiano (Italiano)</string>
+ <string name="language_spanish">Español (Español)</string>
+ <string name="language_chinese">Chino (简体中文)</string>
+ <string name="language_korean">Coreano (한국어)</string>
+ <string name="language_dutch">Holandés (nederlands)</string>
+ <string name="language_portuguese">Portugués (Português)</string>
+ <string name="language_russian">Ruso (Русский)</string>
+ <string name="language_taiwanese">Taiwanés (台湾)</string>
+ <string name="language_british_english">Inglés británico</string>
+ <string name="language_canadian_french">Francés Canadiense (Français canadien)</string>
+ <string name="language_latin_american_spanish">Español Latinoamericano (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Chino Simplificado (简体中文)</string>
+ <string name="language_traditional_chinese">Chino tradicional (正體中文)</string>
+ <string name="language_brazilian_portuguese">Portugués Brasileño (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Ninguno</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normal</string>
+ <string name="renderer_accuracy_high">Alto</string>
+ <string name="renderer_accuracy_extreme">Extremo (Lento)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">x1 (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Lento)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Lento)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Lento)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Inmediata (Desactivado)</string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (Activado)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relajado</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Vecino más próximo</string>
+ <string name="scaling_filter_bilinear">Bilineal</string>
+ <string name="scaling_filter_bicubic">Bicúbico</string>
+ <string name="scaling_filter_gaussian">Gaussiano</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolución</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Ninguno</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Predeterminado (16:9)</string>
+ <string name="ratio_force_four_three">Forzar 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Forzar 21:9</string>
+ <string name="ratio_force_sixteen_ten">Forzar 16:10</string>
+ <string name="ratio_stretch">Ajustar a la ventana</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Preciso</string>
+ <string name="cpu_accuracy_unsafe">Impreciso</string>
+ <string name="cpu_accuracy_paranoid">Paranoico (Lento)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">Cruceta</string>
+ <string name="gamepad_left_stick">Palanca izquierda</string>
+ <string name="gamepad_right_stick">Palanca derecha</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Captura de pantalla</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Preparando shaders</string>
+ <string name="building_shaders">Construyendo shaders</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Cambiar Tema</string>
+ <string name="theme_default">Predeterminado</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Cambiar modo del tema</string>
+ <string name="theme_mode_follow_system">Igual al sistema</string>
+ <string name="theme_mode_light">Claro</string>
+ <string name="theme_mode_dark">Oscuro</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Usar Fondos Negros</string>
+ <string name="use_black_backgrounds_description">Cuando utilice el modo oscuro, aplique fondos negros.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-fr/strings.xml b/src/android/app/src/main/res/values-fr/strings.xml
new file mode 100644
index 000000000..14a9b2d5c
--- /dev/null
+++ b/src/android/app/src/main/res/values-fr/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Ce logiciel exécutera des jeux pour la console de jeu Nintendo Switch. Aucun jeux ou clés n\'est inclus.&lt;br /&gt;&lt;br /&gt;Avant de commencer, veuillez localiser votre fichier <![CDATA[<b> prod.keys </b>]]> sur le stockage de votre appareil.&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">En savoir plus</a>]]></string>
+ <string name="emulation_notification_channel_name">L\'émulation est active</string>
+ <string name="emulation_notification_channel_description">Affiche une notification persistante lorsque l\'émulation est en cours d\'exécution.</string>
+ <string name="emulation_notification_running">yuzu est en cours d\'exécution</string>
+ <string name="notice_notification_channel_name">Avis et erreurs</string>
+ <string name="notice_notification_channel_description">Affiche des notifications en cas de problème.</string>
+ <string name="notification_permission_not_granted">Permission de notification non accordée !</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Bienvenue !</string>
+ <string name="welcome_description">Apprenez à configurer &lt;b>yuzu&lt;/b> et passez à l\'émulation.</string>
+ <string name="get_started">Commencer</string>
+ <string name="keys">Clés</string>
+ <string name="keys_description">Sélectionnez votre fichier &lt;b>prod.keys&lt;/b> avec le bouton ci-dessous.</string>
+ <string name="select_keys">Sélectionner les clés</string>
+ <string name="games">Jeux</string>
+ <string name="games_description">Sélectionnez votre dossier &lt;b>de Jeux&lt;/b> avec le bouton ci-dessous.</string>
+ <string name="done">Terminé</string>
+ <string name="done_description">Vous êtes prêt.\nProfitez de vos jeux !</string>
+ <string name="text_continue">Continuer</string>
+ <string name="next">Suivant</string>
+ <string name="back">Retour</string>
+ <string name="add_games">Ajouter des jeux</string>
+ <string name="add_games_description">Sélectionner votre dossier de jeux</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Jeux</string>
+ <string name="home_search">Rechercher</string>
+ <string name="home_settings">Paramètres</string>
+ <string name="empty_gamelist">Aucun fichier n\'a été trouvé ou aucun répertoire de jeu n\'a encore été sélectionné.</string>
+ <string name="search_and_filter_games">Rechercher et filtrer les jeux</string>
+ <string name="select_games_folder">Sélectionner le dossier de jeux</string>
+ <string name="select_games_folder_description">Permet à yuzu de remplir la liste des jeux</string>
+ <string name="add_games_warning">Ne pas sélectionner le dossier des jeux ?</string>
+ <string name="add_games_warning_description">Les jeux ne seront pas affichés dans la liste des jeux si aucun dossier n\'est sélectionné.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Rechercher des jeux</string>
+ <string name="games_dir_selected">Répertoire de jeux sélectionné</string>
+ <string name="install_prod_keys">Installer prod.keys</string>
+ <string name="install_prod_keys_description">Nécessaire pour décrypter les jeux commerciaux.</string>
+ <string name="install_prod_keys_warning">Sauter l\'ajout des clés ?</string>
+ <string name="install_prod_keys_warning_description">Des clés valides sont nécessaires pour émuler des jeux commerciaux. Seules les applications homebrew fonctionneront si vous continuez.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Notifications</string>
+ <string name="notifications_description">Accordez l\'autorisation de notification avec le bouton ci-dessous.</string>
+ <string name="give_permission">Donner la permission</string>
+ <string name="notification_warning">Ne pas accorder la permission de notification ?</string>
+ <string name="notification_warning_description">yuzu ne pourra pas vous communiquer d\'informations importantes.</string>
+ <string name="permission_denied">Permission refusée</string>
+ <string name="permission_denied_description">Vous avez refusé cette permission trop de fois et vous devez maintenant l\'accorder manuellement dans les paramètres système.</string>
+ <string name="about">À propos</string>
+ <string name="about_description">Numéro de build, crédits et plus encore</string>
+ <string name="warning_help">Aide</string>
+ <string name="warning_skip">Sauter</string>
+ <string name="warning_cancel">Annuler</string>
+ <string name="install_amiibo_keys">Installer les clés Amiibo</string>
+ <string name="install_amiibo_keys_description">Nécessaire pour utiliser les Amiibo en jeu</string>
+ <string name="invalid_keys_file">Fichier de clés sélectionné invalide</string>
+ <string name="install_keys_success">Clés installées avec succès</string>
+ <string name="reading_keys_failure">Erreur lors de la lecture des clés de chiffrement</string>
+ <string name="invalid_keys_error">Clés de chiffrement invalides</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">Le fichier sélectionné est incorrect ou corrompu. Veuillez dumper à nouveau vos clés.</string>
+ <string name="install_gpu_driver">Installer le pilote du GPU</string>
+ <string name="install_gpu_driver_description">Installez des pilotes alternatifs pour des performances ou une précision potentiellement meilleures</string>
+ <string name="advanced_settings">Paramètres avancés</string>
+ <string name="settings_description">Configurer les paramètres de l\'émulateur</string>
+ <string name="search_recently_played">Joué récemment</string>
+ <string name="search_recently_added">Ajouté récemment</string>
+ <string name="search_retail">Commercial</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Ouvrir le dossier de yuzu</string>
+ <string name="open_user_folder_description">Gérer les fichiers internes de yuzu</string>
+ <string name="theme_and_color_description">Modifier l\'apparence de l\'application</string>
+ <string name="no_file_manager">Aucun gestionnaire de fichiers trouvé</string>
+ <string name="notification_no_directory_link">Impossible d\'ouvrir le répertoire de yuzu</string>
+ <string name="notification_no_directory_link_description">Veuillez localiser manuellement le dossier utilisateur avec le panneau latéral du gestionnaire de fichiers.</string>
+ <string name="manage_save_data">Gérer les données de sauvegarde</string>
+ <string name="manage_save_data_description">Données de sauvegarde trouvées. Veuillez sélectionner une option ci-dessous.</string>
+ <string name="import_export_saves_description">Importer ou exporter des fichiers de sauvegarde</string>
+ <string name="import_export_saves_no_profile">Aucune données de sauvegarde trouvées. Veuillez lancer un jeu et réessayer.</string>
+ <string name="save_file_imported_success">Importé avec succès</string>
+ <string name="save_file_invalid_zip_structure">Structure de répertoire de sauvegarde non valide</string>
+ <string name="save_file_invalid_zip_structure_description">Le nom du premier sous-dossier doit être l\'identifiant du titre du jeu.</string>
+ <string name="import_saves">Importer</string>
+ <string name="export_saves">Exporter</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia n\'est pas réel</string>
+ <string name="copied_to_clipboard">Copié dans le presse-papier</string>
+ <string name="about_app_description">Un émulateur Switch open source</string>
+ <string name="contributors">Contributeurs</string>
+ <string name="contributors_description">Fait avec \u2764 de l\'équipe yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Build</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Early Access</string>
+ <string name="get_early_access">Obtenir l\'Early Access</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Fonctionnalités de pointe, accès anticipé aux mises à jour, et plus encore</string>
+ <string name="early_access_benefits">Avantages de l\'Early Access</string>
+ <string name="cutting_edge_features">Fonctionnalités de pointe</string>
+ <string name="early_access_updates">Accès anticipé aux mises à jour</string>
+ <string name="no_manual_installation">Pas d\'installation manuelle</string>
+ <string name="prioritized_support">Assistance prioritaire</string>
+ <string name="helping_game_preservation">Contribuer à la préservation des jeux</string>
+ <string name="our_eternal_gratitude">Notre gratitude éternelle</string>
+ <string name="are_you_interested">Es tu intéressé ?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Activer la vitesse limite</string>
+ <string name="frame_limit_enable_description">Lorsqu\'elle est activée, la vitesse d\'émulation sera limitée à un pourcentage spécifié de la vitesse normale.</string>
+ <string name="frame_limit_slider">Limite en pourcentage de vitesse</string>
+ <string name="frame_limit_slider_description">Spécifie le pourcentage pour limiter la vitesse d\'émulation. Avec la valeur par défaut de 100%, l\'émulation sera limitée à la vitesse normale. Des valeurs supérieures ou inférieures augmenteront ou diminueront la limite de vitesse.</string>
+ <string name="cpu_accuracy">Précision du CPU</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Mode TV</string>
+ <string name="use_docked_mode_description">Émuler en mode TV augmente la résolution au détriment des performances.</string>
+ <string name="emulated_region">Région émulée</string>
+ <string name="emulated_language">Langue émulée</string>
+ <string name="select_rtc_date">Sélectionner la date RTC</string>
+ <string name="select_rtc_time">Sélectionner l\'heure RTC</string>
+ <string name="use_custom_rtc">Activer l\'horloge RTC personnalisée</string>
+ <string name="use_custom_rtc_description">Ce paramètre vous permet de définir une horloge en temps réel personnalisée distincte de l\'heure actuelle de votre système.</string>
+ <string name="set_custom_rtc">Définir l\'horloge RTC personnalisée</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Niveau de précision</string>
+ <string name="renderer_resolution">Résolution</string>
+ <string name="renderer_vsync">Mode VSync</string>
+ <string name="renderer_aspect_ratio">Format</string>
+ <string name="renderer_scaling_filter">Filtre de fenêtre adaptatif</string>
+ <string name="renderer_anti_aliasing">Méthode d\'anticrénelage :</string>
+ <string name="renderer_force_max_clock">Forcer la fréquence d\'horloge maximale (Adreno uniquement)</string>
+ <string name="renderer_force_max_clock_description">Force le GPU à fonctionner au maximum d\'horloges possibles (les contraintes thermiques seront toujours appliquées).</string>
+ <string name="renderer_asynchronous_shaders">Utiliser les shaders asynchrones</string>
+ <string name="renderer_asynchronous_shaders_description">Compile les shaders de manière asynchrone, ce qui réduira les saccades mais peut entraîner des problèmes visuels.</string>
+ <string name="renderer_debug">Activer le débogage des graphismes</string>
+ <string name="renderer_debug_description">Lorsque cette case est cochée, l\'API graphique entre dans un mode de débogage plus lent.</string>
+ <string name="use_disk_shader_cache">Utiliser les shader cache de disque</string>
+ <string name="use_disk_shader_cache_description">Réduire les saccades en stockant et en chargeant les shaders générés sur le disque.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Volume</string>
+ <string name="audio_volume_description">Spécifie le volume de la sortie audio.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Défaut</string>
+ <string name="ini_saved">Paramètres enregistrés</string>
+ <string name="gameid_saved">Paramètres enregistrés pour %1$s</string>
+ <string name="error_saving">Erreur lors de l\'enregistrement de %1$s.ini: %2$s</string>
+ <string name="loading">Chargement...</string>
+ <string name="reset_setting_confirmation">Voulez-vous réinitialiser ce paramètre à sa valeur par défaut ?</string>
+ <string name="reset_to_default">Réinitialiser par défaut</string>
+ <string name="reset_all_settings">Réinitialiser tous les réglages ?</string>
+ <string name="reset_all_settings_description">Tous les paramètres avancés seront réinitialisés à leur configuration par défaut. Ça ne peut pas être annulé.</string>
+ <string name="settings_reset">Paramètres réinitialisés</string>
+ <string name="close">Fermer</string>
+ <string name="learn_more">Plus d\'informations</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Sélectionner le pilote du GPU</string>
+ <string name="select_gpu_driver_title">Souhaitez vous remplacer votre pilote actuel ?</string>
+ <string name="select_gpu_driver_install">Installer</string>
+ <string name="select_gpu_driver_default">Défaut</string>
+ <string name="select_gpu_driver_install_success">%s Installé</string>
+ <string name="select_gpu_driver_use_default">Utilisation du pilote de GPU par défaut</string>
+ <string name="select_gpu_driver_error">Pilote non valide sélectionné, utilisation du paramètre par défaut du système !</string>
+ <string name="system_gpu_driver">Pilote du GPU du système</string>
+ <string name="installing_driver">Installation du pilote...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Paramètres</string>
+ <string name="preferences_general">Général</string>
+ <string name="preferences_system">Système</string>
+ <string name="preferences_graphics">Vidéo</string>
+ <string name="preferences_audio">Audio</string>
+ <string name="preferences_theme">Thème et couleur</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">Votre ROM est cryptée</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Veuillez suivre les guides pour redumper vos <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">cartouches de jeu</a> ou <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">titres installés</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Veuillez vous assurer que votre fichier <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> est installé pour que les jeux puissent être déchiffrés.]]></string>
+ <string name="loader_error_video_core">Une erreur s\'est produite lors de l\'initialisation du noyau vidéo</string>
+ <string name="loader_error_video_core_description">Cela est généralement dû à un pilote du GPU incompatible. L\'installation d\'un pilote du GPU personnalisé peut résoudre ce problème.</string>
+ <string name="loader_error_invalid_format">Impossible de charger la ROM</string>
+ <string name="loader_error_file_not_found">Le fichier ROM n\'existe pas</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Quitter l\'émulation</string>
+ <string name="emulation_done">Terminé</string>
+ <string name="emulation_fps_counter">Compteur FPS</string>
+ <string name="emulation_toggle_controls">Activer/Désactiver les contrôles</string>
+ <string name="emulation_rel_stick_center">Centre du stick relatif</string>
+ <string name="emulation_dpad_slide">Glissement du DPad</string>
+ <string name="emulation_haptics">Haptique</string>
+ <string name="emulation_show_overlay">Afficher l\'overlay</string>
+ <string name="emulation_toggle_all">Tout basculer</string>
+ <string name="emulation_control_adjust">Ajuster l\'overlay</string>
+ <string name="emulation_control_scale">Échelle</string>
+ <string name="emulation_control_opacity">Opacité</string>
+ <string name="emulation_touch_overlay_reset">Réinitialiser l\'overlay</string>
+ <string name="emulation_touch_overlay_edit">Modifier l\'overlay</string>
+ <string name="emulation_pause">Mettre en pause l\'émulation</string>
+ <string name="emulation_unpause">Reprendre l\'émulation</string>
+ <string name="emulation_input_overlay">Options de l\'overlay</string>
+ <string name="emulation_game_loading">Chargement du jeu...</string>
+
+ <string name="load_settings">Chargement des paramètres…</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Clavier virtuel</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Abandonner</string>
+ <string name="continue_button">Continuer</string>
+ <string name="system_archive_not_found">Archive système introuvable</string>
+ <string name="system_archive_not_found_message">%s est manquant. Veuillez dumper vos archives système.\nContinuer peut entraîner des plantages et des bogues.</string>
+ <string name="system_archive_general">Une archive système</string>
+ <string name="save_load_error">Erreur de sauvegarde/chargement</string>
+ <string name="fatal_error">Erreur fatale</string>
+ <string name="fatal_error_message">Une erreur fatale s\'est produite. Consultez les logs pour plus de détails.\nContinuer l\'émulation peut entraîner des plantages et des bogues.</string>
+ <string name="performance_warning">La désactivation de ce paramètre réduira considérablement les performances d\'émulation ! Pour une expérience optimale, il est recommandé de laisser ce paramètre activé.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japon</string>
+ <string name="region_usa">É.-U.A.</string>
+ <string name="region_europe">Europe</string>
+ <string name="region_australia">Australie</string>
+ <string name="region_china">Chine</string>
+ <string name="region_korea">Corée</string>
+ <string name="region_taiwan">Taïwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japonais (日本語)</string>
+ <string name="language_english">Anglais</string>
+ <string name="language_french">Français (Français)</string>
+ <string name="langauge_german">Allemand (Deutsch)</string>
+ <string name="language_italian">Italien (Italiano)</string>
+ <string name="language_spanish">Espagnol (Español)</string>
+ <string name="language_chinese">Chinois (简体中文)</string>
+ <string name="language_korean">Coréen (한국어)</string>
+ <string name="language_dutch">Néerlandais (Nederlands)</string>
+ <string name="language_portuguese">Portugais (Português)</string>
+ <string name="language_russian">Russe (Русский)</string>
+ <string name="language_taiwanese">Taïwanais (台湾)</string>
+ <string name="language_british_english">Anglais Britannique</string>
+ <string name="language_canadian_french">Français canadien (Français canadien)</string>
+ <string name="language_latin_american_spanish">Espagnol latino-américain (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Chinois simplifié (简体中文)</string>
+ <string name="language_traditional_chinese">Chinois Traditionnel (正體中文)</string>
+ <string name="language_brazilian_portuguese">Portugais brésilien (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Aucune</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normal</string>
+ <string name="renderer_accuracy_high">Haut</string>
+ <string name="renderer_accuracy_extreme">Extrême (Lent)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Lent)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Lent)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Lent)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Immédiat (Désactivé)</string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (Activé)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO souple</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Plus proche voisin</string>
+ <string name="scaling_filter_bilinear">Bilinéaire</string>
+ <string name="scaling_filter_bicubic">Bicubique</string>
+ <string name="scaling_filter_gaussian">Gaussien</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Aucune</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Par défaut (16:9)</string>
+ <string name="ratio_force_four_three">Forcer le 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Forcer le 21:9</string>
+ <string name="ratio_force_sixteen_ten">Forcer le 16:10</string>
+ <string name="ratio_stretch">Étirer à la fenêtre</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Précis</string>
+ <string name="cpu_accuracy_unsafe">Risqué</string>
+ <string name="cpu_accuracy_paranoid">Paranoïaque (Lent)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">Pavé directionnel</string>
+ <string name="gamepad_left_stick">Stick Gauche</string>
+ <string name="gamepad_right_stick">Stick Droit</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Capture d\'écran</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Préparation des shaders</string>
+ <string name="building_shaders">Compilation des shaders</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Changer le thème de l\'application</string>
+ <string name="theme_default">Défaut</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Changer le mode de thème</string>
+ <string name="theme_mode_follow_system">Automatique</string>
+ <string name="theme_mode_light">Lumineux</string>
+ <string name="theme_mode_dark">Sombre</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Utiliser des arrière-plans noirs</string>
+ <string name="use_black_backgrounds_description">Lorsque vous utilisez le thème sombre, appliquer des arrière-plans noirs.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-it/strings.xml b/src/android/app/src/main/res/values-it/strings.xml
new file mode 100644
index 000000000..47a4cfa31
--- /dev/null
+++ b/src/android/app/src/main/res/values-it/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Questo software permette di giocare ai giochi della console Nintendo Switch. Nessun gioco o chiave è inclusa.&lt;br /&gt;&lt;br /&gt;Prima di iniziare, perfavore individua il file <![CDATA[<b>prod.keys </b>]]> nella memoria del tuo dispositivo.&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">Scopri di più</a>]]></string>
+ <string name="emulation_notification_channel_name">L\'emulatore è attivo</string>
+ <string name="emulation_notification_channel_description">Mostra una notifica persistente quando l\'emulatore è in esecuzione.</string>
+ <string name="emulation_notification_running">yuzu è in esecuzione</string>
+ <string name="notice_notification_channel_name">Avvisi ed errori</string>
+ <string name="notice_notification_channel_description">Mostra le notifiche quando qualcosa va storto.</string>
+ <string name="notification_permission_not_granted">Autorizzazione di notifica non concessa!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Benvenuto!</string>
+ <string name="welcome_description">Scopri come configurare &lt;b>yuzu&lt;/b> e passare all\'emulazione.</string>
+ <string name="get_started">Iniziare</string>
+ <string name="keys">Pulsanti</string>
+ <string name="keys_description">Seleziona il tuo file &lt;b>prod.keys&lt;/b> con il pulsante in basso.</string>
+ <string name="select_keys">Selezione Pulsanti</string>
+ <string name="games">Giochi</string>
+ <string name="games_description">Seleziona la cartella &lt;b>Games&lt;/b> con il pulsante in basso.</string>
+ <string name="done">Fatto</string>
+ <string name="done_description">È tutto pronto.\nDivertiti a giocare!</string>
+ <string name="text_continue">Continua</string>
+ <string name="next">Successivo</string>
+ <string name="back">Indietro</string>
+ <string name="add_games">Aggiungi giochi</string>
+ <string name="add_games_description">Seleziona la cartella dei giochi</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Giochi</string>
+ <string name="home_search">Cerca</string>
+ <string name="home_settings">Impostazioni</string>
+ <string name="empty_gamelist">Non sono stati trovati file o non è stata ancora selezionata alcuna directory di gioco.</string>
+ <string name="search_and_filter_games">Cerca e filtra i giochi</string>
+ <string name="select_games_folder">Seleziona la cartella di gioco</string>
+ <string name="select_games_folder_description">Consente a yuzu di popolare l\'elenco dei giochi</string>
+ <string name="add_games_warning">Saltare la selezione della cartella dei giochi?</string>
+ <string name="add_games_warning_description">I giochi non saranno mostrati nella lista dei giochi se una cartella non è selezionata.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Cerca giochi</string>
+ <string name="games_dir_selected">Cartella dei giochi selezionata</string>
+ <string name="install_prod_keys">Installa prod.keys</string>
+ <string name="install_prod_keys_description">Necessario per decrittografare i giochi</string>
+ <string name="install_prod_keys_warning">Saltare l\'aggiunta delle chiavi?</string>
+ <string name="install_prod_keys_warning_description">Sono necessarie delle chiavi valide per emulare i giochi. Se continui, funzioneranno solo le app homebrew.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Notifiche</string>
+ <string name="notifications_description">Concedi l\'autorizzazione alle notifiche con il pulsante in basso.</string>
+ <string name="give_permission">Concedere l\'autorizzazione</string>
+ <string name="notification_warning">Saltare la concessione dell\'autorizzazione alle notifiche?</string>
+ <string name="notification_warning_description">yuzu non sarà in grado di notificarti informazioni importanti.</string>
+ <string name="permission_denied">Permesso negato</string>
+ <string name="permission_denied_description">Hai negato l\'autorizzazione troppe volte ed ora devi concederla manualmente nelle impostazioni di sistema.</string>
+ <string name="about">Informazioni</string>
+ <string name="about_description">Versione build, crediti ed altro</string>
+ <string name="warning_help">Aiuto</string>
+ <string name="warning_skip">Salta</string>
+ <string name="warning_cancel">Annulla</string>
+ <string name="install_amiibo_keys">Installa le chiavi degli Amiibo</string>
+ <string name="install_amiibo_keys_description">Necessario per usare gli Amiibo in gioco</string>
+ <string name="invalid_keys_file">Selezionate chiavi non valide</string>
+ <string name="install_keys_success">Chiavi installate correttamente</string>
+ <string name="reading_keys_failure">Errore durante la lettura delle chiavi di crittografia</string>
+ <string name="invalid_keys_error">Chiavi di crittografia non valide</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">Il file selezionato è incorretto o corrotto. Per favore riesegui il dump delle tue chiavi.</string>
+ <string name="install_gpu_driver">Installa i driver GPU</string>
+ <string name="install_gpu_driver_description">Installa driver alternativi per potenziali prestazioni migliori o accuratezza.</string>
+ <string name="advanced_settings">Impostazioni avanzate</string>
+ <string name="settings_description">Configura le impostazioni dell\'emulatore</string>
+ <string name="search_recently_played">Giocato recentemente</string>
+ <string name="search_recently_added">Aggiunto recentemente</string>
+ <string name="search_retail">Rivenditore</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Apri la cartella di yuzu</string>
+ <string name="open_user_folder_description">Gestisci i file interni di yuzu</string>
+ <string name="theme_and_color_description">Modifica l\'aspetto dell\'app</string>
+ <string name="no_file_manager">Nessun file manager trovato</string>
+ <string name="notification_no_directory_link">Impossibile aprire la cartella di yuzu</string>
+ <string name="notification_no_directory_link_description">Per favore individua la cartella dell\'utente manualmente con il pannello laterale del file manager.</string>
+ <string name="manage_save_data">Gestisci i salvataggi</string>
+ <string name="manage_save_data_description">Salvataggio non trovato. Seleziona un\'opzione di seguito.</string>
+ <string name="import_export_saves_description">Importa o esporta i salvataggi</string>
+ <string name="import_export_saves_no_profile">Nessun salvataggio trovato. Avvia un gioco e riprova.</string>
+ <string name="save_file_imported_success">Importato con successo</string>
+ <string name="save_file_invalid_zip_structure">La struttura della cartella dei salvataggi è invalida</string>
+ <string name="save_file_invalid_zip_structure_description">La prima sotto cartella <b>deve</b> chiamarsi come l\'ID del titolo del gioco.</string>
+ <string name="import_saves">Importa</string>
+ <string name="export_saves">Esporta</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia non è reale</string>
+ <string name="copied_to_clipboard">Copiato negli appunti</string>
+ <string name="about_app_description">Un emulatore della Switch open-source.</string>
+ <string name="contributors">Collaboratori</string>
+ <string name="contributors_description">Realizzato con \u2764 dal team yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Compilazione</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Accesso Anticipato</string>
+ <string name="get_early_access">Ottieni l\'accesso anticipato</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Funzionalità all\'avanguardia, aggiornamenti in anticipo e altro</string>
+ <string name="early_access_benefits">Vantaggi dell\'accesso anticipato</string>
+ <string name="cutting_edge_features">Funzionalità all\'avanguardia</string>
+ <string name="early_access_updates">Accesso anticipato agli aggiornamenti</string>
+ <string name="no_manual_installation">Non installare manualmente.</string>
+ <string name="prioritized_support">Supporto prioritario</string>
+ <string name="helping_game_preservation">Aiuta a preservare il gioco</string>
+ <string name="our_eternal_gratitude">La nostra gratitudine eterna</string>
+ <string name="are_you_interested">Sei interessato?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Abilita il limite di velocità</string>
+ <string name="frame_limit_enable_description">Quando abilitato, la velocità di emulazione verrà limitata a una specifica percentuale della velocità normale.</string>
+ <string name="frame_limit_slider">Limite velocità percentuale</string>
+ <string name="frame_limit_slider_description">Specifica la percentuale del limite della velocità di emulazione. Con quella preimpostata al 100% l\'emulazione verrà limitata alla velocità normale. Valori più alti o bassi aumenteranno o diminuiranno il limite di velocità.</string>
+ <string name="cpu_accuracy">Accuratezza della CPU</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Modalità docked</string>
+ <string name="use_docked_mode_description">Emula in modalità docked, questo aumenta la risoluzione a spese delle performance.</string>
+ <string name="emulated_region">Regione emulata</string>
+ <string name="emulated_language">Lingua emulata</string>
+ <string name="select_rtc_date">Seleziona la data dall\'orologio in tempo reale</string>
+ <string name="select_rtc_time">Seleziona il tempo dall\'orologio in tempo reale</string>
+ <string name="use_custom_rtc">Abilità l\'orologio in tempo reale personalizzato</string>
+ <string name="use_custom_rtc_description">Questa impostazione ti permette di impostare un orologio in tempo reale personalizzato separato da quello del tuo sistema corrente.</string>
+ <string name="set_custom_rtc">Imposta l\'orologio in tempo reale personalizzato</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Livello di accuratezza</string>
+ <string name="renderer_resolution">Risoluzione</string>
+ <string name="renderer_vsync">Modalità VSync</string>
+ <string name="renderer_aspect_ratio">Rapporto d\'aspetto</string>
+ <string name="renderer_scaling_filter">Filtro di adattamento alla finestra</string>
+ <string name="renderer_anti_aliasing">Metodo di anti-aliasing</string>
+ <string name="renderer_force_max_clock">Forza clock massimi (solo Adreno)</string>
+ <string name="renderer_force_max_clock_description">Forza la GPU a girare col massimo clock possibile (i vincoli alla temperatura saranno comunque applicati)</string>
+ <string name="renderer_asynchronous_shaders">Usa shaders asincrone</string>
+ <string name="renderer_asynchronous_shaders_description">Compila le shaders asincronamente, questo riduce lo shutter ma potrebbe introdurre dei glitch. </string>
+ <string name="renderer_debug">Abilità il debug grafico</string>
+ <string name="renderer_debug_description">Quando l\'opzione è selezionata, l\'API grafica entra in una modalità di debug più lenta</string>
+ <string name="use_disk_shader_cache">Usa cache shader su disco</string>
+ <string name="use_disk_shader_cache_description">Riduce lo stuttering salvando e caricando le shader generate sul disco.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Volume</string>
+ <string name="audio_volume_description">Specifica il volume dell\'audio in uscita.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Predefinito</string>
+ <string name="ini_saved">Impostazioni salvate</string>
+ <string name="gameid_saved">Impostazioni salvate per %1$s</string>
+ <string name="error_saving">Errore nel salvare %1$s.ini %2$s</string>
+ <string name="loading">Caricamento…</string>
+ <string name="reset_setting_confirmation">Vuoi ripristinare queste impostazioni al loro valore originale?</string>
+ <string name="reset_to_default">Riportare alle impostazioni originali</string>
+ <string name="reset_all_settings">Resettare tutte le impostazioni?</string>
+ <string name="reset_all_settings_description">Tutte le Impostazioni Avanzate saranno ripristinate a quelle originali. Questa operazione non è reversibile</string>
+ <string name="settings_reset">Reimposta le impostazioni</string>
+ <string name="close">Chiudi</string>
+ <string name="learn_more">Per saperne di più</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Seleziona il driver della GPU</string>
+ <string name="select_gpu_driver_title">Vuoi sostituire il driver della tua GPU attuale?</string>
+ <string name="select_gpu_driver_install">Installa</string>
+ <string name="select_gpu_driver_default">Predefinito</string>
+ <string name="select_gpu_driver_install_success">Installato%s</string>
+ <string name="select_gpu_driver_use_default">Utilizza il driver predefinito della GPU.</string>
+ <string name="select_gpu_driver_error">Il driver selezionato è invalido, è in utilizzo quello predefinito di sistema!</string>
+ <string name="system_gpu_driver">Driver GPU del sistema</string>
+ <string name="installing_driver">Installando i driver...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Impostazioni</string>
+ <string name="preferences_general">Generali</string>
+ <string name="preferences_system">Sistema</string>
+ <string name="preferences_graphics">Grafica</string>
+ <string name="preferences_audio">Audio</string>
+ <string name="preferences_theme">Tema e colori</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">La tua ROM è criptata</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Per favore segui la guida per eseguire il dump della <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">cartuccia di gioco</a> o i <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">titoli installati</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Per favore assicurati che il file <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> sia installato in modo che i giochi possano essere decrittati.]]></string>
+ <string name="loader_error_video_core">È stato riscontrato un errore nell\'inizializzazione del core video</string>
+ <string name="loader_error_video_core_description">Questo è causato solitamente dal driver incompatibile di una GPU. L\'installazione di driver GPU personalizzati potrebbe risolvere questo problema.</string>
+ <string name="loader_error_invalid_format">Impossibile caricare la ROM</string>
+ <string name="loader_error_file_not_found">Il file della ROM non esiste</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Uscire dall\'emulazione</string>
+ <string name="emulation_done">Fatto</string>
+ <string name="emulation_fps_counter">Contatore degli FPS</string>
+ <string name="emulation_toggle_controls">Controlli a interruttore</string>
+ <string name="emulation_rel_stick_center">Centro relativo degli Stick</string>
+ <string name="emulation_dpad_slide">Slittamento del Pad Direzionale</string>
+ <string name="emulation_haptics">Aptico</string>
+ <string name="emulation_show_overlay">Mostra Overlay</string>
+ <string name="emulation_toggle_all">Attiva/disattiva tutto</string>
+ <string name="emulation_control_adjust">Aggiusta Overlay</string>
+ <string name="emulation_control_scale">Scala</string>
+ <string name="emulation_control_opacity">Opacità</string>
+ <string name="emulation_touch_overlay_reset">Reimposta Overlay</string>
+ <string name="emulation_touch_overlay_edit">Modifica Overlay</string>
+ <string name="emulation_pause">Metti in pausa l\'emulazione</string>
+ <string name="emulation_unpause">Riprendi Emulazione</string>
+ <string name="emulation_input_overlay">Impostazioni Overlay</string>
+ <string name="emulation_game_loading">Caricamento del gioco...</string>
+
+ <string name="load_settings">Caricamento delle impostazioni...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Tastiera software</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Interrompi</string>
+ <string name="continue_button">Continua</string>
+ <string name="system_archive_not_found">Archivio di sistema non trovato</string>
+ <string name="system_archive_not_found_message">%s è mancante. Per favore esegui il dump degli archivi del tuo sistema.\nContinuare ad emulare potrebbe portare bug o causare crash.</string>
+ <string name="system_archive_general">Un archivio di sistema</string>
+ <string name="save_load_error">Errore di salvataggio/caricamento</string>
+ <string name="fatal_error">Errore Fatale</string>
+ <string name="fatal_error_message">Un errore fatale è accaduto. Controlla i log per i dettagli.\nContinuare ad emulare potrebbe portare bug o causare crash.</string>
+ <string name="performance_warning">Disattivare questa impostazione può ridurre significativamente le performance di emulazione! Per una migliore esperienza, è consigliato lasciare questa impostazione attivata.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Giappone</string>
+ <string name="region_usa">USA</string>
+ <string name="region_europe">Europa</string>
+ <string name="region_australia">Australia</string>
+ <string name="region_china">Cina</string>
+ <string name="region_korea">Corea</string>
+ <string name="region_taiwan">Taiwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Giapponese (日本語)</string>
+ <string name="language_english">Inglese (English)</string>
+ <string name="language_french">Francese (Français)</string>
+ <string name="langauge_german">Tedesco (Deutsch)</string>
+ <string name="language_italian">Italiano (Italiano)</string>
+ <string name="language_spanish">Spagnolo (Español)</string>
+ <string name="language_chinese">Cinese (简体中文)</string>
+ <string name="language_korean">Coreano (한국어)</string>
+ <string name="language_dutch">Olandese (Nederlands)</string>
+ <string name="language_portuguese">Portoghese (Português)</string>
+ <string name="language_russian">Russo (Русский)</string>
+ <string name="language_taiwanese">Taiwanese (台湾)</string>
+ <string name="language_british_english">Inglese britannico</string>
+ <string name="language_canadian_french">Francese Canadese (Français canadien)</string>
+ <string name="language_latin_american_spanish">Spagnolo Latino Americano (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Cinese Semplificato (简体中文)</string>
+ <string name="language_traditional_chinese">Cinese tradizionale (正體中文)</string>
+ <string name="language_brazilian_portuguese">Portoghese (Português)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Nessuna</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normale</string>
+ <string name="renderer_accuracy_high">Alta</string>
+ <string name="renderer_accuracy_extreme">Estrema (Lenta)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Slow)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Slow)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Slow)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Immediato (Off)</string>
+ <string name="renderer_vsync_mailbox">Cassella postale</string>
+ <string name="renderer_vsync_fifo">FIFO (On)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Rilassato</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Nearest neighbor</string>
+ <string name="scaling_filter_bilinear">Bilineare</string>
+ <string name="scaling_filter_bicubic">Bicubico</string>
+ <string name="scaling_filter_gaussian">Gaussiano</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™️ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Nessuna</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Predefinito (16:9)</string>
+ <string name="ratio_force_four_three">Forza 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Forza 21:9</string>
+ <string name="ratio_force_sixteen_ten">Forza 16:10</string>
+ <string name="ratio_stretch">Allunga a finestra</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Accurata</string>
+ <string name="cpu_accuracy_unsafe">Non sicura</string>
+ <string name="cpu_accuracy_paranoid">Paranoico (Lento)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">D-Pad</string>
+ <string name="gamepad_left_stick">Levetta sinistra</string>
+ <string name="gamepad_right_stick">Levetta destra</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Screenshot</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Preparazione degli shaders</string>
+ <string name="building_shaders">Costruendo gli shaders</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Cambia il tema dell\'app</string>
+ <string name="theme_default">Predefinito</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Cambia la modalità del tema</string>
+ <string name="theme_mode_follow_system">Segue il Sistema</string>
+ <string name="theme_mode_light">Chiaro</string>
+ <string name="theme_mode_dark">Scuro</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Usa sfondi neri</string>
+ <string name="use_black_backgrounds_description">Quando utilizzi il tema scuro, applica sfondi neri.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-ja/strings.xml b/src/android/app/src/main/res/values-ja/strings.xml
new file mode 100644
index 000000000..46eda9ef7
--- /dev/null
+++ b/src/android/app/src/main/res/values-ja/strings.xml
@@ -0,0 +1,335 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">このソフトウェアは、Nintendo Switch用のゲームを実行します。 ゲームソフトやキーは含まれません。&lt;br /&gt;&lt;br /&gt;事前に、 <![CDATA[<b> prod.keys </b>]]> ファイルをデバイスのストレージに配置しておいてください。&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">詳細</a>]]></string>
+ <string name="emulation_notification_channel_name">エミュレーションが有効です</string>
+ <string name="emulation_notification_channel_description">エミュレーションの実行中に常設通知を表示します。</string>
+ <string name="emulation_notification_running">yuzu は実行中です</string>
+ <string name="notice_notification_channel_description">問題が発生したときに通知を表示します。</string>
+ <string name="notification_permission_not_granted">通知が許可されていません!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">ようこそ!</string>
+ <string name="welcome_description">&lt;b>yuzu&lt;/b> のセットアップ方法を学び、エミュレーションに飛び込みましょう。</string>
+ <string name="get_started">はじめる</string>
+ <string name="keys">キー</string>
+ <string name="keys_description">下のボタンから &lt;b>prod.keys&lt;/b> ファイルを選択してください。</string>
+ <string name="select_keys">キーを選択</string>
+ <string name="games">ゲーム</string>
+ <string name="games_description">下のボタンから&lt;b>ゲーム&lt;/b>があるフォルダを選択してください。</string>
+ <string name="done">完了</string>
+ <string name="done_description">準備が完了しました。\nゲームをお楽しみください!</string>
+ <string name="text_continue">続行</string>
+ <string name="next">次へ</string>
+ <string name="back">戻る</string>
+ <string name="add_games">ゲームを追加</string>
+ <string name="add_games_description">ゲームフォルダを選択</string>
+
+ <!-- Home strings -->
+ <string name="home_games">ゲーム</string>
+ <string name="home_search">検索</string>
+ <string name="home_settings">設定</string>
+ <string name="empty_gamelist">ファイルが見つからないか、ゲームディレクトリがまだ選択されていません。</string>
+ <string name="search_and_filter_games">ゲームの検索と絞り込み</string>
+ <string name="select_games_folder">ゲームフォルダを選択</string>
+ <string name="select_games_folder_description">yuzu がゲームリストに追加できるようにします</string>
+ <string name="add_games_warning">ゲームフォルダの選択をスキップしますか?</string>
+ <string name="add_games_warning_description">フォルダを選択しない場合、ゲームはゲームリストに表示されません。</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">ゲームを検索</string>
+ <string name="games_dir_selected">ゲームディレクトリが選択されました</string>
+ <string name="install_prod_keys">prod.keys をインストール</string>
+ <string name="install_prod_keys_description">ゲームの復号化に必要</string>
+ <string name="install_prod_keys_warning">キーの追加をスキップしますか?</string>
+ <string name="install_prod_keys_warning_description">製品版ゲームのエミュレーションには、有効なキーが必要です。続行すると自作アプリしか機能しません。</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">通知</string>
+ <string name="notifications_description">下のボタンで通知の権限を許可してください。</string>
+ <string name="give_permission">許可</string>
+ <string name="notification_warning">通知の許可をスキップしますか?</string>
+ <string name="notification_warning_description">yuzuは重要なお知らせを通知できません。</string>
+ <string name="permission_denied">権限が拒否されました</string>
+ <string name="permission_denied_description">この権限を複数回拒否したため、システム設定で手動で許可する必要があります。</string>
+ <string name="about">情報</string>
+ <string name="about_description">ビルドバージョン、クレジットなど</string>
+ <string name="warning_help">ヘルプ</string>
+ <string name="warning_skip">スキップ</string>
+ <string name="warning_cancel">キャンセル</string>
+ <string name="install_amiibo_keys">Amiibo キーをインストール</string>
+ <string name="install_amiibo_keys_description">ゲーム内での Amiibo の使用に必要</string>
+ <string name="invalid_keys_file">無効なキーファイルが選択されました</string>
+ <string name="install_keys_success">正常にインストールされました</string>
+ <string name="reading_keys_failure">暗号化キーの読み取りエラー</string>
+ <string name="invalid_keys_error">暗号化キーが無効です</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">選択されたファイルが不正または破損しています。キーを再ダンプしてください。</string>
+ <string name="install_gpu_driver">GPUドライバーをインストール</string>
+ <string name="install_gpu_driver_description">代替ドライバーをインストールしてパフォーマンスや精度を向上させます</string>
+ <string name="advanced_settings">高度な設定</string>
+ <string name="settings_description">エミュレーターの設定を構成します</string>
+ <string name="search_recently_played">最近プレイした</string>
+ <string name="search_recently_added">最近追加された</string>
+ <string name="search_retail">製品版</string>
+ <string name="search_homebrew">自作</string>
+ <string name="open_user_folder">yuzu フォルダを開く</string>
+ <string name="open_user_folder_description">yuzu内部のファイルを管理します</string>
+ <string name="theme_and_color_description">アプリの見た目を変更</string>
+ <string name="no_file_manager">ファイルマネージャーが見つかりませんでした</string>
+ <string name="notification_no_directory_link">yuzuのディレクトリを開けません</string>
+ <string name="notification_no_directory_link_description">ファイルマネージャのサイドパネルでユーザーフォルダを手動で探してください。</string>
+ <string name="manage_save_data">セーブデータを管理</string>
+ <string name="manage_save_data_description">セーブデータが見つかりました。以下のオプションから選択してください。</string>
+ <string name="import_export_saves_description">セーブファイルをインポート/エクスポート</string>
+ <string name="import_export_saves_no_profile">セーブデータがありません。ゲームを起動してから再度お試しください。</string>
+ <string name="save_file_imported_success">インポートが完了しました</string>
+ <string name="save_file_invalid_zip_structure">セーブデータのディレクトリ構造が無効です</string>
+ <string name="save_file_invalid_zip_structure_description">最初のサブフォルダ名は、ゲームのタイトルIDである必要があります。</string>
+ <string name="import_saves">インポート</string>
+ <string name="export_saves">エクスポート</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">ガイアは実在しない</string>
+ <string name="copied_to_clipboard">クリップボードにコピーしました</string>
+ <string name="about_app_description">オープンソースのSwitchエミュレータ</string>
+ <string name="contributors">貢献者</string>
+ <string name="contributors_description">yuzuチームの\u2764で作られた</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">ビルド</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">早期アクセス</string>
+ <string name="get_early_access">早期アクセスを手に入れる</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">最先端の機能、アップデートの早期アクセスなど</string>
+ <string name="early_access_benefits">早期アクセスのメリット</string>
+ <string name="cutting_edge_features">最先端の機能</string>
+ <string name="early_access_updates">アップデートの早期アクセス</string>
+ <string name="no_manual_installation">手動インストールが不要</string>
+ <string name="prioritized_support">優先的なサポート</string>
+ <string name="helping_game_preservation">ゲームの保存に貢献</string>
+ <string name="our_eternal_gratitude">私たちの永遠の感謝</string>
+ <string name="are_you_interested">興味がありますか?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">速度制限を有効化</string>
+ <string name="frame_limit_enable_description">有効にすると、エミュレーション速度が任意の割合に制限されます。</string>
+ <string name="frame_limit_slider">エミュレーション速度の制限</string>
+ <string name="frame_limit_slider_description">エミュレーション速度を制限する割合を指定します。デフォルトの100%では、エミュレーションは通常の速度に制限されます。値が高いまたは低いほど、速度制限が増加または減少します。</string>
+ <string name="cpu_accuracy">CPU精度</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">TVモード</string>
+ <string name="use_docked_mode_description">TVモードでエミュレートします。パフォーマンスが犠牲になりますが、解像度が向上します。</string>
+ <string name="emulated_region">地域</string>
+ <string name="emulated_language">言語</string>
+ <string name="select_rtc_date">RTCの日付を選択</string>
+ <string name="select_rtc_time">RTCの時刻を選択</string>
+ <string name="use_custom_rtc">カスタムRTC</string>
+ <string name="use_custom_rtc_description">現在のシステム時間とは別にカスタムのリアルタイムクロックを設定できます。</string>
+ <string name="set_custom_rtc">カスタムRTCを設定</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">精度</string>
+ <string name="renderer_resolution">解像度</string>
+ <string name="renderer_vsync">垂直同期モード</string>
+ <string name="renderer_aspect_ratio">アスペクト比</string>
+ <string name="renderer_scaling_filter">ウィンドウ適応フィルター</string>
+ <string name="renderer_anti_aliasing">アンチエイリアス方式</string>
+ <string name="renderer_force_max_clock">最大クロックを強制 (Adrenoのみ)</string>
+ <string name="renderer_force_max_clock_description">GPUを可能な限り最大クロックで動作させます (過熱制限は引き続き適用されます)。</string>
+ <string name="renderer_asynchronous_shaders">非同期シェーダー</string>
+ <string name="renderer_asynchronous_shaders_description">シェーダーを非同期でコンパイルします。コマ落ちが軽減されますが、不具合が発生する可能性があります。</string>
+ <string name="renderer_debug">グラフィックデバッグ</string>
+ <string name="renderer_debug_description">オンにすると、グラフィックAPI は低速のデバッグモードに入ります。</string>
+ <string name="use_disk_shader_cache">シェーダーキャッシュを使用</string>
+ <string name="use_disk_shader_cache_description">生成したシェーダーをディスクに保存して読み込むことで、コマ落ちを軽減します。</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">音量</string>
+ <string name="audio_volume_description">オーディオ出力の音量を指定します</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">デフォルト</string>
+ <string name="ini_saved">設定を保存しました</string>
+ <string name="gameid_saved">%1$sの設定を保存しました</string>
+ <string name="error_saving">%1$s.ini の保存エラー: %2$s</string>
+ <string name="loading">読み込み中…</string>
+ <string name="reset_setting_confirmation">この設定を初期値にリセットしますか?</string>
+ <string name="reset_to_default">初期設定に戻す</string>
+ <string name="reset_all_settings">すべての設定をリセットしますか?</string>
+ <string name="reset_all_settings_description">すべての詳細設定が初期設定に戻されます。この操作は元に戻せません。</string>
+ <string name="settings_reset">設定をリセットしました</string>
+ <string name="close">閉じる</string>
+ <string name="learn_more">詳細情報</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">GPUドライバを選択</string>
+ <string name="select_gpu_driver_title">現在のGPUドライバーを置き換えますか?</string>
+ <string name="select_gpu_driver_install">インストール</string>
+ <string name="select_gpu_driver_default">デフォルト</string>
+ <string name="select_gpu_driver_install_success">%s をインストールしました</string>
+ <string name="select_gpu_driver_use_default">デフォルトのGPUドライバーを使用します</string>
+ <string name="select_gpu_driver_error">選択されたドライバが無効なため、システムのデフォルトを使用します!</string>
+ <string name="system_gpu_driver">システムのGPUドライバ</string>
+ <string name="installing_driver">インストール中…</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">設定</string>
+ <string name="preferences_general">全般</string>
+ <string name="preferences_system">システム</string>
+ <string name="preferences_graphics">グラフィック</string>
+ <string name="preferences_audio">サウンド</string>
+ <string name="preferences_theme">テーマと色</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">ROMが暗号化されています</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">ゲームカートリッジ</a>や<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">インストール済みのタイトル</a>を再度ダンプするためのガイドに従ってください。]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[ゲームを復号化するために <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> ファイルがインストールされていることを確認してください。]]></string>
+ <string name="loader_error_video_core">ビデオコアの初期化中にエラーが発生しました</string>
+ <string name="loader_error_video_core_description">これは通常、互換性のないGPUドライバーが原因で発生します。 カスタムGPUドライバーをインストールすると、問題が解決する可能性があります。</string>
+ <string name="loader_error_invalid_format">ROMの読み込みに失敗しました</string>
+ <string name="loader_error_file_not_found">ROMファイルが存在しません</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">エミュレーションを終了</string>
+ <string name="emulation_done">完了</string>
+ <string name="emulation_fps_counter">FPSカウンター</string>
+ <string name="emulation_toggle_controls">コントロールを切り替え</string>
+ <string name="emulation_dpad_slide">十字キーのスライド操作</string>
+ <string name="emulation_haptics">振動</string>
+ <string name="emulation_show_overlay">オーバーレイを表示</string>
+ <string name="emulation_toggle_all">すべて選択</string>
+ <string name="emulation_control_adjust">オーバーレイを調整</string>
+ <string name="emulation_control_scale">大きさ</string>
+ <string name="emulation_control_opacity">不透明度</string>
+ <string name="emulation_touch_overlay_reset">リセット</string>
+ <string name="emulation_touch_overlay_edit">オーバーレイを編集</string>
+ <string name="emulation_pause">エミュレーションを一時停止</string>
+ <string name="emulation_unpause">エミュレーションを再開</string>
+ <string name="emulation_input_overlay">オーバーレイオプション</string>
+ <string name="emulation_game_loading">ロード中…</string>
+
+ <string name="load_settings">設定をロード中…</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">ソフトウェアキーボード</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">中断</string>
+ <string name="continue_button">続行</string>
+ <string name="system_archive_not_found">システムアーカイブが見つかりません</string>
+ <string name="system_archive_not_found_message">%s が見つかりません。システムアーカイブをダンプしてください。\nエミュレーションを続行すると、クラッシュやバグが発生する可能性があります。</string>
+ <string name="system_archive_general">システムアーカイブ</string>
+ <string name="save_load_error">セーブ/ロード エラー</string>
+ <string name="fatal_error">致命的なエラー</string>
+ <string name="fatal_error_message">致命的なエラーが発生しました。詳細はログを確認してください。\nエミュレーションを続行するとクラッシュやバグが発生する可能性があります。</string>
+ <string name="performance_warning">この設定をオフにすると、エミュレーションのパフォーマンスが著しく低下します!最高の体験を得るためには、この設定を有効にしておくことをお勧めします。</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">日本</string>
+ <string name="region_usa">アメリカ</string>
+ <string name="region_europe">ヨーロッパ</string>
+ <string name="region_australia">オーストラリア</string>
+ <string name="region_china">中国</string>
+ <string name="region_korea">韓国</string>
+ <string name="region_taiwan">台湾</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">日本語</string>
+ <string name="language_english">英語</string>
+ <string name="language_french">フランス語 (Français)</string>
+ <string name="langauge_german">ドイツ語 (Deutsch)</string>
+ <string name="language_italian">イタリア語 (Italiano)</string>
+ <string name="language_spanish">スペイン語 (Español)</string>
+ <string name="language_chinese">中国語 (简体中文)</string>
+ <string name="language_korean">韓国語 (한국어)</string>
+ <string name="language_dutch">オランダ語 (Nederlands)</string>
+ <string name="language_portuguese">ポルトガル語 (Português)</string>
+ <string name="language_russian">ロシア語 (Русский)</string>
+ <string name="language_taiwanese">台湾語 (台湾)</string>
+ <string name="language_british_english">イギリス英語</string>
+ <string name="language_canadian_french">フランス語(カナダ) (Français canadien)</string>
+ <string name="language_latin_american_spanish">スペイン語(ラテンアメリカ) (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">中国語 (简体中文)</string>
+ <string name="language_traditional_chinese">繁体字中国語 (正體中文)</string>
+ <string name="language_brazilian_portuguese">ポルトガル語(ブラジル) (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">なし</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">標準</string>
+ <string name="renderer_accuracy_high">高い</string>
+ <string name="renderer_accuracy_extreme">最高 (低速)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (低速)</string>
+ <string name="resolution_three">3X (2160p/3240p) (低速)</string>
+ <string name="resolution_four">4X (2880p/4320p) (低速)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Immediate (オフ)</string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (オン)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxed</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Nearest Neighbor</string>
+ <string name="scaling_filter_bilinear">Bilinear</string>
+ <string name="scaling_filter_bicubic">Bicubic</string>
+ <string name="scaling_filter_gaussian">Gaussian</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">なし</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">デフォルト (16:9)</string>
+ <string name="ratio_force_four_three">強制 4:3</string>
+ <string name="ratio_force_twenty_one_nine">強制 21:9</string>
+ <string name="ratio_force_sixteen_ten">強制 16:10</string>
+ <string name="ratio_stretch">ウィンドウに合わせる</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">正確</string>
+ <string name="cpu_accuracy_unsafe">不安定</string>
+ <string name="cpu_accuracy_paranoid">パラノイド (低速)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">方向ボタン</string>
+ <string name="gamepad_left_stick">Lスティック</string>
+ <string name="gamepad_right_stick">Rスティック</string>
+ <string name="gamepad_home">HOMEボタン</string>
+ <string name="gamepad_screenshot">スクリーンショット</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">シェーダーを準備しています</string>
+ <string name="building_shaders">シェーダーを構築しています</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">アプリのテーマ</string>
+ <string name="theme_default">デフォルト</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">テーマモード</string>
+ <string name="theme_mode_follow_system">システムに従う</string>
+ <string name="theme_mode_light">ライト</string>
+ <string name="theme_mode_dark">ダーク</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">黒色の背景を使用</string>
+ <string name="use_black_backgrounds_description">ダークテーマの使用時は、黒色の背景を有効にしてください。</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-ko/strings.xml b/src/android/app/src/main/res/values-ko/strings.xml
new file mode 100644
index 000000000..5da80ab4b
--- /dev/null
+++ b/src/android/app/src/main/res/values-ko/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">이 소프트웨어는 닌텐도 스위치 게임 콘솔용 게임을 실행합니다. 게임 타이틀이나 keys는 포함되어 있지 않습니다.&lt;br /&gt;&lt;br /&gt;시작하기 전에 장치 저장소에서 <![CDATA[<b> prod.keys </b>]]> 파일을 찾아주세요.&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">자세히 알아보기</a>]]></string>
+ <string name="emulation_notification_channel_name">에뮬레이션이 활성화됨</string>
+ <string name="emulation_notification_channel_description">에뮬레이션이 실행 중일 때 영구 알림을 표시합니다.</string>
+ <string name="emulation_notification_running">yuzu가 실행 중입니다.</string>
+ <string name="notice_notification_channel_name">알림 및 오류</string>
+ <string name="notice_notification_channel_description">문제가 발생하면 알림을 표시합니다.</string>
+ <string name="notification_permission_not_granted">알림 권한이 부여되지 않았습니다!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">환영합니다!</string>
+ <string name="welcome_description">&lt;b>yuzu&lt;/b> 를 설정하고 에뮬레이션으로 이동하는 방법을 알아보세요.</string>
+ <string name="get_started">시작하기</string>
+ <string name="keys">Keys</string>
+ <string name="keys_description">아래 버튼을 사용하여 &lt;b>prod.keys&lt;/b> 파일을 선택합니다.</string>
+ <string name="select_keys">keys 선택</string>
+ <string name="games">게임</string>
+ <string name="games_description">아래 버튼으로 &lt;b>게임&lt;/b> 폴더를 선택합니다.</string>
+ <string name="done">완료</string>
+ <string name="done_description">모든 준비가 완료되었습니다.\n게임을 즐기세요!</string>
+ <string name="text_continue">계속</string>
+ <string name="next">다음</string>
+ <string name="back">뒤로</string>
+ <string name="add_games">게임 추가</string>
+ <string name="add_games_description">게임 폴더 선택</string>
+
+ <!-- Home strings -->
+ <string name="home_games">게임</string>
+ <string name="home_search">검색</string>
+ <string name="home_settings">설정</string>
+ <string name="empty_gamelist">파일을 찾을 수 없거나 아직 게임 디렉토리를 선택하지 않았습니다.</string>
+ <string name="search_and_filter_games">게임 검색 및 필터링</string>
+ <string name="select_games_folder">게임 폴더 선택</string>
+ <string name="select_games_folder_description">yuzu가 게임 목록을 채울 수 있도록 허용</string>
+ <string name="add_games_warning">게임 폴더 선택을 건너뛰겠습니까?</string>
+ <string name="add_games_warning_description">폴더를 선택하지 않으면 게임 목록에 게임이 표시되지 않습니다.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">게임 검색</string>
+ <string name="games_dir_selected">게임 디렉터리 선택</string>
+ <string name="install_prod_keys">prod.keys 설치</string>
+ <string name="install_prod_keys_description">판매용 게임 암호 해독에 요구</string>
+ <string name="install_prod_keys_warning">keys 추가를 건너뛰겠습니까?</string>
+ <string name="install_prod_keys_warning_description">정품 게임을 에뮬레이트하려면 유효한 keys가 필요합니다. 계속하면 자체 제작 앱만 작동합니다.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">알림</string>
+ <string name="notifications_description">아래 버튼으로 알림 권한을 부여합니다.</string>
+ <string name="give_permission">권한 부여</string>
+ <string name="notification_warning">알림 권한 부여를 건너뛰겠습니까?</string>
+ <string name="notification_warning_description">yuzu는 중요한 정보를 알려드리지 않습니다.</string>
+ <string name="permission_denied">권한 거부됨</string>
+ <string name="permission_denied_description">이 권한을 너무 많이 거부했으므로 이제 시스템 설정에서 수동으로 권한을 부여해야 합니다.</string>
+ <string name="about">정보</string>
+ <string name="about_description">빌드 버전, 크레딧 등</string>
+ <string name="warning_help">도움말</string>
+ <string name="warning_skip">건너뛰기</string>
+ <string name="warning_cancel">취소</string>
+ <string name="install_amiibo_keys">Amiibo keys 설치</string>
+ <string name="install_amiibo_keys_description">게임에서 아미보 사용 시 필요</string>
+ <string name="invalid_keys_file">잘못된 keys 파일 선택</string>
+ <string name="install_keys_success">keys가 성공적으로 설치됨</string>
+ <string name="reading_keys_failure">암호화 keys 읽기 오류</string>
+ <string name="invalid_keys_error">잘못된 암호화 keys</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">선택한 파일이 잘못되었거나 손상되었습니다. keys를 다시 덤프하세요.</string>
+ <string name="install_gpu_driver">GPU 드라이버 설치</string>
+ <string name="install_gpu_driver_description">잠재적으로 더 나은 성능 또는 정확성을 위해 대체 드라이버를 설치하세요.</string>
+ <string name="advanced_settings">고급 설정</string>
+ <string name="settings_description">에뮬레이터 설정 구성</string>
+ <string name="search_recently_played">최근 플레이한 게임</string>
+ <string name="search_recently_added">최근 추가한 게임</string>
+ <string name="search_retail">판매용</string>
+ <string name="search_homebrew">홈브류</string>
+ <string name="open_user_folder">yuzu 폴더 열기</string>
+ <string name="open_user_folder_description">yuzu의 내부 파일 관리</string>
+ <string name="theme_and_color_description">앱 모양 수정</string>
+ <string name="no_file_manager">파일 관리자를 찾을 수 없음</string>
+ <string name="notification_no_directory_link">yuzu 디렉토리를 열 수 없음</string>
+ <string name="notification_no_directory_link_description">파일 관리자의 사이드 패널에서 사용자 폴더를 수동으로 찾아주세요.</string>
+ <string name="manage_save_data">저장 데이터 관리</string>
+ <string name="manage_save_data_description">데이터를 저장했습니다. 아래에서 옵션을 선택하세요.</string>
+ <string name="import_export_saves_description">저장 파일 가져오기 또는 내보내기</string>
+ <string name="import_export_saves_no_profile">저장 데이터를 찾을 수 없습니다. 게임을 실행한 후 다시 시도하세요.</string>
+ <string name="save_file_imported_success">가져오기 성공</string>
+ <string name="save_file_invalid_zip_structure">저장 디렉터리 구조가 잘못됨</string>
+ <string name="save_file_invalid_zip_structure_description">첫 번째 하위 폴더 이름은 게임의 타이틀 ID여야 합니다.</string>
+ <string name="import_saves">가져오기</string>
+ <string name="export_saves">내보내기</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">가이아는 진짜가 아님</string>
+ <string name="copied_to_clipboard">클립보드에 복사</string>
+ <string name="about_app_description">오픈 소스 스위치 에뮬레이터</string>
+ <string name="contributors">기여자</string>
+ <string name="contributors_description">yuzu 팀의 \u2764로 제작</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">빌드</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">미리 체험하기</string>
+ <string name="get_early_access">미리 체험하기 신청</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">최첨단 기능, 미리 체험하기 업데이트 등</string>
+ <string name="early_access_benefits">미리 체험하기 혜택</string>
+ <string name="cutting_edge_features">최첨단 기능</string>
+ <string name="early_access_updates">미리 체험하기 업데이트</string>
+ <string name="no_manual_installation">수동 설치 불필요</string>
+ <string name="prioritized_support">우선 지원</string>
+ <string name="helping_game_preservation">게임 보존 도움주기</string>
+ <string name="our_eternal_gratitude">영원한 감사의 마음을 전합니다</string>
+ <string name="are_you_interested">관심 있으세요?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">제한 속도 활성화</string>
+ <string name="frame_limit_enable_description">활성화하면 에뮬레이션 속도가 정상 속도의 지정된 비율로 제한됩니다.</string>
+ <string name="frame_limit_slider">속도 제한 비율</string>
+ <string name="frame_limit_slider_description">에뮬레이션 속도를 제한할 비율을 지정합니다. 기본값인 100%로 설정하면 에뮬레이션이 정상 속도로 제한됩니다. 값이 높거나 낮으면 속도 제한이 증가하거나 감소합니다.</string>
+ <string name="cpu_accuracy">CPU 정확도</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">도킹 모드</string>
+ <string name="use_docked_mode_description">도킹 모드에서 에뮬레이션하면 성능이 저하되는 대신 해상도가 향상됩니다.</string>
+ <string name="emulated_region">에뮬레이트된 지역</string>
+ <string name="emulated_language">에뮬레이트된 언어</string>
+ <string name="select_rtc_date">RTC 날짜 선택</string>
+ <string name="select_rtc_time">RTC 시간 선택</string>
+ <string name="use_custom_rtc">커스텀 RTC 활성화</string>
+ <string name="use_custom_rtc_description">이 설정을 사용하면 현재 시스템 시간과 별도로 사용자 지정 실시간 시계를 설정할 수 있음</string>
+ <string name="set_custom_rtc">커스텀 RTC 설정</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">정확도 수준</string>
+ <string name="renderer_resolution">해상도</string>
+ <string name="renderer_vsync">수직동기화 모드</string>
+ <string name="renderer_aspect_ratio">화면비</string>
+ <string name="renderer_scaling_filter">창 적응 필터</string>
+ <string name="renderer_anti_aliasing">안티-에일리어싱 방법</string>
+ <string name="renderer_force_max_clock">최대 클럭 강제 설정 (아드레노만 해당)</string>
+ <string name="renderer_force_max_clock_description">GPU가 가능한 최대 클럭으로 실행되도록 강제합니다 (열 제약 조건은 여전히 적용됩니다).</string>
+ <string name="renderer_asynchronous_shaders">비동기 셰이더 사용</string>
+ <string name="renderer_asynchronous_shaders_description">셰이더를 비동기식으로 컴파일하므로 끊김 현상이 줄어들지만 글리치가 발생할 수 있습니다.</string>
+ <string name="renderer_debug">그래픽 디버깅 활성화</string>
+ <string name="renderer_debug_description">이 옵션을 선택하면 그래픽 API가 느린 디버깅 모드로 전환됩니다.</string>
+ <string name="use_disk_shader_cache">디스크 셰이더 캐시 사용</string>
+ <string name="use_disk_shader_cache_description">생성된 셰이더를 디스크에 저장하고 불러오기하여 끊김 현상을 줄입니다.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">볼륨</string>
+ <string name="audio_volume_description">오디오 출력의 볼륨을 지정합니다.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">기본값</string>
+ <string name="ini_saved">저장된 설정</string>
+ <string name="gameid_saved">%1$s를 위해 저장된 설정</string>
+ <string name="error_saving">%1$s.ini 저장 중 오류: %2$s</string>
+ <string name="loading">불러오기 중...</string>
+ <string name="reset_setting_confirmation">이 설정을 기본값으로 되돌리겠습니까?</string>
+ <string name="reset_to_default">기본값으로 재설정</string>
+ <string name="reset_all_settings">모든 설정을 초기화하겠습니까?</string>
+ <string name="reset_all_settings_description">모든 고급 설정이 기본 구성으로 재설정됩니다. 이 설정은 되돌릴 수 없습니다.</string>
+ <string name="settings_reset">설정 초기화</string>
+ <string name="close">닫기</string>
+ <string name="learn_more">자세히 알아보기</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">GPU 드라이버 선택</string>
+ <string name="select_gpu_driver_title">현재 사용 중인 GPU 드라이버를 교체하겠습니까?</string>
+ <string name="select_gpu_driver_install">설치</string>
+ <string name="select_gpu_driver_default">기본값</string>
+ <string name="select_gpu_driver_install_success">설치된 %s</string>
+ <string name="select_gpu_driver_use_default">기본 GPU 드라이버 사용</string>
+ <string name="select_gpu_driver_error">시스템 기본값을 사용하여 잘못된 드라이버를 선택했습니다!</string>
+ <string name="system_gpu_driver">시스템 GPU 드라이버</string>
+ <string name="installing_driver">드라이버 설치 중...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">설정</string>
+ <string name="preferences_general">일반</string>
+ <string name="preferences_system">시스템</string>
+ <string name="preferences_graphics">그래픽</string>
+ <string name="preferences_audio">오디오</string>
+ <string name="preferences_theme">테마 및 색상</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">롬이 암호화되었음</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[가이드에 따라 <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">게임 카트리지</a> 또는 <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">설치된 타이틀</a>를 다시 덤프하세요.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[P게임을 해독할 수 있도록 <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> 파일이 설치되어 있는지 확인하세요.]]></string>
+ <string name="loader_error_video_core">비디오 코어를 초기화하는 동안 오류 발생</string>
+ <string name="loader_error_video_core_description">이 문제는 일반적으로 호환되지 않는 GPU 드라이버로 인해 발생합니다. 사용자 지정 GPU 드라이버를 설치하면 이 문제가 해결될 수 있습니다.</string>
+ <string name="loader_error_invalid_format">롬을 불러올 수 없음</string>
+ <string name="loader_error_file_not_found">롬 파일이 존재하지 않음</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">에뮬레이션 종료</string>
+ <string name="emulation_done">완료</string>
+ <string name="emulation_fps_counter">FPS 카운터</string>
+ <string name="emulation_toggle_controls">토글 제어</string>
+ <string name="emulation_rel_stick_center">상대 스틱 센터</string>
+ <string name="emulation_dpad_slide">십자패드 슬라이드</string>
+ <string name="emulation_haptics">햅틱</string>
+ <string name="emulation_show_overlay">오버레이 표시</string>
+ <string name="emulation_toggle_all">모두 토글</string>
+ <string name="emulation_control_adjust">오버레이 조정</string>
+ <string name="emulation_control_scale">스케일</string>
+ <string name="emulation_control_opacity">불투명도</string>
+ <string name="emulation_touch_overlay_reset">오버레이 재설정</string>
+ <string name="emulation_touch_overlay_edit">오버레이 편집</string>
+ <string name="emulation_pause">에뮬레이션 일시 중지</string>
+ <string name="emulation_unpause">에뮬레이션 일시 중지 해제</string>
+ <string name="emulation_input_overlay">오버레이 옵션</string>
+ <string name="emulation_game_loading">게임 불러오기 중...</string>
+
+ <string name="load_settings">설정 불러오기 중...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">가상 키보드</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">정보</string>
+ <string name="continue_button">계속</string>
+ <string name="system_archive_not_found">시스템 아카이브를 찾을 수 없음</string>
+ <string name="system_archive_not_found_message">%s가 누락되었습니다. 시스템 아카이브를 덤프하세요.\n에뮬레이션을 계속하면 충돌 및 버그가 발생할 수 있습니다.</string>
+ <string name="system_archive_general">시스템 아카이브</string>
+ <string name="save_load_error">저장하기/불러오기 오류</string>
+ <string name="fatal_error">치명적인 오류</string>
+ <string name="fatal_error_message">치명적인 오류가 발생했습니다. 자세한 내용은 로그를 확인하십시오.\n에뮬레이션을 계속하면 충돌 및 버그가 발생할 수 있습니다.</string>
+ <string name="performance_warning">이 설정을 끄면 에뮬레이션 성능이 크게 저하됩니다! 최상의 환경을 위해 이 설정을 활성화된 상태로 두는 것이 좋습니다.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">일본</string>
+ <string name="region_usa">미국</string>
+ <string name="region_europe">유럽</string>
+ <string name="region_australia">호주</string>
+ <string name="region_china">중국</string>
+ <string name="region_korea">대한민국</string>
+ <string name="region_taiwan">타이완</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">일본어 (日本語)</string>
+ <string name="language_english">영어 (English)</string>
+ <string name="language_french">프랑스어 (Français)</string>
+ <string name="langauge_german">독일어(Deutsch)</string>
+ <string name="language_italian">이탈리아어 (Italiano)</string>
+ <string name="language_spanish">스페인어 (Español)</string>
+ <string name="language_chinese">중국어 (简体中文)</string>
+ <string name="language_korean">한국어 (Korean)</string>
+ <string name="language_dutch">네덜란드어 (Nederlands)</string>
+ <string name="language_portuguese">포르투갈어 (Português)</string>
+ <string name="language_russian">러시아어 (Русский)</string>
+ <string name="language_taiwanese">대만어 (台湾)</string>
+ <string name="language_british_english">영어 (British English)</string>
+ <string name="language_canadian_french">캐나다 프랑스어 (Français canadien)</string>
+ <string name="language_latin_american_spanish">라틴 아메리카 스페인어 (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">중국어 간체 (简体中文)</string>
+ <string name="language_traditional_chinese">중국어 번체 (正體中文)</string>
+ <string name="language_brazilian_portuguese">브라질 포르투갈어 (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">불칸</string>
+ <string name="renderer_none">없음</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">보통</string>
+ <string name="renderer_accuracy_high">높음</string>
+ <string name="renderer_accuracy_extreme">극한 (느림)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (느림)</string>
+ <string name="resolution_three">3X (2160p/3240p) (느림)</string>
+ <string name="resolution_four">4X (2880p/4320p) (느림)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">즉시 (끔)</string>
+ <string name="renderer_vsync_mailbox">메일박스</string>
+ <string name="renderer_vsync_fifo">FIFO (켬)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO 릴랙스</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">가장 가까운 이웃</string>
+ <string name="scaling_filter_bilinear">이중선형</string>
+ <string name="scaling_filter_bicubic">고등차수보간</string>
+ <string name="scaling_filter_gaussian">가우시안</string>
+ <string name="scaling_filter_scale_force">스케일포스</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ 초고해상도</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">없음</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">기본 (16:9)</string>
+ <string name="ratio_force_four_three">강제 4:3</string>
+ <string name="ratio_force_twenty_one_nine">강제 21:9</string>
+ <string name="ratio_force_sixteen_ten">강제 16:10</string>
+ <string name="ratio_stretch">창에 맞게 늘림</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">정확함</string>
+ <string name="cpu_accuracy_unsafe">안전하지 않음</string>
+ <string name="cpu_accuracy_paranoid">편집증 (느림)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">십자패드</string>
+ <string name="gamepad_left_stick">L 스틱</string>
+ <string name="gamepad_right_stick">R 스틱</string>
+ <string name="gamepad_home">홈</string>
+ <string name="gamepad_screenshot">스크린샷</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">셰이더 준비하기</string>
+ <string name="building_shaders">셰이더 빌드 중</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">앱 테마 변경</string>
+ <string name="theme_default">기본값</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">테마 모드 변경</string>
+ <string name="theme_mode_follow_system">팔로우 시스템</string>
+ <string name="theme_mode_light">밝음</string>
+ <string name="theme_mode_dark">어두움</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">검은색 배경 사용</string>
+ <string name="use_black_backgrounds_description">어두운 테마를 사용할 때는 검은색 배경을 적용합니다.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-nb/strings.xml b/src/android/app/src/main/res/values-nb/strings.xml
new file mode 100644
index 000000000..3e1f9bce5
--- /dev/null
+++ b/src/android/app/src/main/res/values-nb/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Denne programvaren vil kjøre spill for Nintendo Switch-spillkonsollen. Ingen spilltitler eller nøkler er inkludert.&lt;br /&gt;&lt;br /&gt;Før du begynner, må du finne <![CDATA[<b> prod.keys </b>]]> filen din på enhetslagringen.&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">Lær mer</a>]]></string>
+ <string name="emulation_notification_channel_name">Emulering er aktiv</string>
+ <string name="emulation_notification_channel_description">Viser et vedvarende varsel når emuleringen kjører.</string>
+ <string name="emulation_notification_running">Yuzu kjører</string>
+ <string name="notice_notification_channel_name">Merknader og feil</string>
+ <string name="notice_notification_channel_description">Viser varsler når noe går galt.</string>
+ <string name="notification_permission_not_granted">Varslingstillatelse ikke gitt!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Velkommen!</string>
+ <string name="welcome_description">Lær å sette opp &lt;b>yuzu&lt;/b> og hopp inn i emulering.</string>
+ <string name="get_started">Kom i gang</string>
+ <string name="keys">Nøkler</string>
+ <string name="keys_description">Velg din &lt;b>prod.keys&lt;/b> fil ved å bruke knappen under.</string>
+ <string name="select_keys">Velg nøkler</string>
+ <string name="games">Spill</string>
+ <string name="games_description">Velg din &lt;b>Spill&lt;/b> mappe ved å bruke knappen under.</string>
+ <string name="done">Ferdig</string>
+ <string name="done_description">Nå er du klar.\nGled deg til å spille!</string>
+ <string name="text_continue">Fortsett</string>
+ <string name="next">Neste</string>
+ <string name="back">Tilbake</string>
+ <string name="add_games">Legg til spill</string>
+ <string name="add_games_description">Velg din spillmappe</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Spill</string>
+ <string name="home_search">Søk</string>
+ <string name="home_settings">Innstillinger</string>
+ <string name="empty_gamelist">Ingen filer ble funnet eller ingen spillkatalog er valgt ennå.</string>
+ <string name="search_and_filter_games">Søk og filtrer spill</string>
+ <string name="select_games_folder">Velg spillmappe</string>
+ <string name="select_games_folder_description">Gjør det mulig for yuzu å fylle ut spillelisten.</string>
+ <string name="add_games_warning">Hoppe over valg av spillmappe?</string>
+ <string name="add_games_warning_description">Spill vises ikke i Spill-listen hvis en mappe ikke er valgt.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Søk i spill</string>
+ <string name="games_dir_selected">Spillkatalogen er valgt</string>
+ <string name="install_prod_keys">Installer prod.keys</string>
+ <string name="install_prod_keys_description">Nødvendig for å dekryptere spill</string>
+ <string name="install_prod_keys_warning">Hoppe over å legge til nøkler?</string>
+ <string name="install_prod_keys_warning_description">Gyldige nøkler er påkrevd for å emulere spill. Bare hjemmebryggede apper vil fungere hvis du fortsetter.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Varsler</string>
+ <string name="notifications_description">Gi varslingstillatelse med knappen nedenfor.</string>
+ <string name="give_permission">Gi tillatelse</string>
+ <string name="notification_warning">Hoppe over å gi tillatelse til varsling?</string>
+ <string name="notification_warning_description">yuzu vil ikke kunne varsle deg om viktig informasjon.</string>
+ <string name="permission_denied">Tillatelse avslått</string>
+ <string name="permission_denied_description">Du har nektet denne tillatelsen for mange ganger, og nå må du gi den manuelt i systeminnstillingene.</string>
+ <string name="about">Om</string>
+ <string name="about_description">Byggeversjon, kildehenvisninger og mer</string>
+ <string name="warning_help">Hjelp</string>
+ <string name="warning_skip">Hopp over</string>
+ <string name="warning_cancel">Avbryt</string>
+ <string name="install_amiibo_keys">Installer Amiibo-nøkler</string>
+ <string name="install_amiibo_keys_description">Kreves for å bruke Amiibo i spillet</string>
+ <string name="invalid_keys_file">Ugyldig nøkkelfil valgt</string>
+ <string name="install_keys_success">Nøkler vellykket installert</string>
+ <string name="reading_keys_failure">Feil ved lesing av krypteringsnøkler</string>
+ <string name="invalid_keys_error">Ugyldige krypteringsnøkler</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">Den valgte filen er feil eller ødelagt. Vennligst dump nøklene på nytt.</string>
+ <string name="install_gpu_driver">Installer GPU-driver</string>
+ <string name="install_gpu_driver_description">Installer alternative drivere for potensielt bedre ytelse eller nøyaktighet.</string>
+ <string name="advanced_settings">Avanserte innstillinger</string>
+ <string name="settings_description">Konfigurere emulatorinnstillinger</string>
+ <string name="search_recently_played">Nylig spilt</string>
+ <string name="search_recently_added">Nylig lagt til</string>
+ <string name="search_retail">Butikkhandel</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Åpne yuzu-mappen</string>
+ <string name="open_user_folder_description">Administrere yuzus interne filer</string>
+ <string name="theme_and_color_description">Endre appens utseende</string>
+ <string name="no_file_manager">Ingen filbehandler funnet</string>
+ <string name="notification_no_directory_link">Kunne ikke åpne yuzu-katalogen</string>
+ <string name="notification_no_directory_link_description">Finn brukermappen manuelt med filbehandlingens sidepanel.</string>
+ <string name="manage_save_data">Administrere lagringsdata</string>
+ <string name="manage_save_data_description">Lagringsdata funnet. Velg et alternativ nedenfor.</string>
+ <string name="import_export_saves_description">Importer eller eksporter lagringsfiler</string>
+ <string name="import_export_saves_no_profile">Ingen lagringsdata funnet. Start et nytt spill og prøv på nytt.</string>
+ <string name="save_file_imported_success">Vellykket import</string>
+ <string name="save_file_invalid_zip_structure">Ugyldig struktur for lagringskatalog</string>
+ <string name="save_file_invalid_zip_structure_description">Det første undermappenavnet må være spillets tittel-ID.</string>
+ <string name="import_saves">Importer</string>
+ <string name="export_saves">Eksporter</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia er ikke ekte</string>
+ <string name="copied_to_clipboard">Kopiert til utklippstavlen</string>
+ <string name="about_app_description">En Switch-emulator med åpen kildekode</string>
+ <string name="contributors">Bidragsytere</string>
+ <string name="contributors_description">Laget med \u2764 fra yuzu-teamet</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Bygg</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Tidlig tilgang</string>
+ <string name="get_early_access">Få tidlig tilgang</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Banebrytende funksjoner, tidlig tilgang til oppdateringer og mye mer.</string>
+ <string name="early_access_benefits">Fordeler ved tidlig tilgang</string>
+ <string name="cutting_edge_features">Avanserte funksjoner</string>
+ <string name="early_access_updates">Tidlig tilgang til oppdateringer</string>
+ <string name="no_manual_installation">Ingen manuell installasjon</string>
+ <string name="prioritized_support">Prioritert støtte</string>
+ <string name="helping_game_preservation">Bidra til bevaring av spill</string>
+ <string name="our_eternal_gratitude">Vår evige takknemlighet</string>
+ <string name="are_you_interested">Er du interessert?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Aktiver hastighetsbegrensning</string>
+ <string name="frame_limit_enable_description">Når aktivert, begrenses emuleringshastigheten til en angitt prosentandel av normal hastighet.</string>
+ <string name="frame_limit_slider">Hastighetsbegrensning i prosent</string>
+ <string name="frame_limit_slider_description">Angir prosentandelen som skal begrense emuleringshastigheten. Med standardverdien 100 % vil emuleringen være begrenset til normal hastighet. Høyere eller lavere verdier vil øke eller redusere hastighetsbegrensningen.</string>
+ <string name="cpu_accuracy">CPU-nøyaktighet</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Dokket modus</string>
+ <string name="use_docked_mode_description">Emulerer i dokket modus, noe som øker oppløsningen på bekostning av ytelsen.</string>
+ <string name="emulated_region">Emulert region</string>
+ <string name="emulated_language">Emulert språk</string>
+ <string name="select_rtc_date">Velg RTC-dato</string>
+ <string name="select_rtc_time">Velg RTC-tid</string>
+ <string name="use_custom_rtc">Aktiver egendefinert RTC</string>
+ <string name="use_custom_rtc_description">Med denne innstillingen kan du stille inn en egendefinert sanntidsklokke som er atskilt fra gjeldende systemtid.</string>
+ <string name="set_custom_rtc">Angi egendefinert RTC</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Nøyaktighetsnivå</string>
+ <string name="renderer_resolution">Oppløsning</string>
+ <string name="renderer_vsync">VSync-modus</string>
+ <string name="renderer_aspect_ratio">Størrelsesforhold</string>
+ <string name="renderer_scaling_filter">Filter for vindustilpasning</string>
+ <string name="renderer_anti_aliasing">Anti-Aliasing-metode</string>
+ <string name="renderer_force_max_clock">Tving fram maksimal klokkefrekvens (kun Adreno)</string>
+ <string name="renderer_force_max_clock_description">Tvinger GPU-en til å kjøre med maksimal klokkefrekvens (termiske begrensninger vil fortsatt gjelde).</string>
+ <string name="renderer_asynchronous_shaders">Bruk asynkrone shaders</string>
+ <string name="renderer_asynchronous_shaders_description">Kompilerer shaders asynkront, noe som reduserer hakkingen, men kan føre til feil.</string>
+ <string name="renderer_debug">Aktiver feilsøking av grafikk</string>
+ <string name="renderer_debug_description">Når dette er merket av, går grafikk-API-et inn i en langsommere feilsøkingsmodus.</string>
+ <string name="use_disk_shader_cache">Bruk disk shader-cache</string>
+ <string name="use_disk_shader_cache_description">Reduser hakking ved å lagre og laste inn genererte shaders på disken.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Volum</string>
+ <string name="audio_volume_description">Angir volumet på lydutgangen.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Standard</string>
+ <string name="ini_saved">Lagrede innstillinger</string>
+ <string name="gameid_saved">Lagrede innstillinger for %1$s</string>
+ <string name="error_saving">Feil ved lagring av %1$s.ini: %2$s</string>
+ <string name="loading">Lastes inn...</string>
+ <string name="reset_setting_confirmation">Vil du tilbakestille denne innstillingen til standardverdien?</string>
+ <string name="reset_to_default">Tilbakestill til standardinnstillingene</string>
+ <string name="reset_all_settings">Tilbakestille alle innstillinger?</string>
+ <string name="reset_all_settings_description">Alle avanserte innstillinger tilbakestilles til standardkonfigurasjonen. Dette kan ikke angres.</string>
+ <string name="settings_reset">Tilbakestilling av innstillinger</string>
+ <string name="close">Lukk</string>
+ <string name="learn_more">Lær Mer</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Velg GPU-driver</string>
+ <string name="select_gpu_driver_title">Ønsker du å bytte ut din nåværende GPU-driver?</string>
+ <string name="select_gpu_driver_install">Installer</string>
+ <string name="select_gpu_driver_default">Standard</string>
+ <string name="select_gpu_driver_install_success">Installert %s</string>
+ <string name="select_gpu_driver_use_default">Bruk av standard GPU-driver</string>
+ <string name="select_gpu_driver_error">Ugyldig driver valgt, bruker systemstandard!</string>
+ <string name="system_gpu_driver">Systemets GPU-driver</string>
+ <string name="installing_driver">Installerer driver...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Innstillinger</string>
+ <string name="preferences_general">Generelt</string>
+ <string name="preferences_system">System</string>
+ <string name="preferences_graphics">Grafikk</string>
+ <string name="preferences_audio">Lyd</string>
+ <string name="preferences_theme">Tema og farge</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">ROM-en din er kryptert</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Følg veiledningene for å redumpe dine <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">spillkassetter</a> eller <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">installerte titler</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Vennligst sørg for at <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> filen er installert slik at spillene kan dekrypteres.]]></string>
+ <string name="loader_error_video_core">Det oppstod en feil ved initialisering av videokjernen</string>
+ <string name="loader_error_video_core_description">Dette skyldes vanligvis en inkompatibel GPU-driver. Installering av en tilpasset GPU-driver kan løse problemet.</string>
+ <string name="loader_error_invalid_format">Kunne ikke laste inn ROM</string>
+ <string name="loader_error_file_not_found">ROM-filen finnes ikke</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Avslutt emulering</string>
+ <string name="emulation_done">Ferdig</string>
+ <string name="emulation_fps_counter">FPS-teller</string>
+ <string name="emulation_toggle_controls">Veksle kontroller</string>
+ <string name="emulation_rel_stick_center">Relativt senter for stikken</string>
+ <string name="emulation_dpad_slide">DPad-skyveplate</string>
+ <string name="emulation_haptics">Haptikk</string>
+ <string name="emulation_show_overlay">Vis overlegg</string>
+ <string name="emulation_toggle_all">Slå av alt</string>
+ <string name="emulation_control_adjust">Juster overlegg</string>
+ <string name="emulation_control_scale">Skaler</string>
+ <string name="emulation_control_opacity">Gjennomsiktighet</string>
+ <string name="emulation_touch_overlay_reset">Tilbakestill overlegg</string>
+ <string name="emulation_touch_overlay_edit">Rediger overlegg</string>
+ <string name="emulation_pause">Pause Emulering</string>
+ <string name="emulation_unpause">Opphev pausing av emulering</string>
+ <string name="emulation_input_overlay">Alternativer for overlegg</string>
+ <string name="emulation_game_loading">Spillet lastes inn...</string>
+
+ <string name="load_settings">Laster inn innstillinger...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Programvare Tastatur</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Avbryt</string>
+ <string name="continue_button">Fortsett</string>
+ <string name="system_archive_not_found">System Arkiv Ikke Funnet</string>
+ <string name="system_archive_not_found_message">%s mangler. Dump systemarkivene dine.\nFortsatt emulering kan føre til krasj og feil.</string>
+ <string name="system_archive_general">Et systemarkiv</string>
+ <string name="save_load_error">Feil ved lagring/innlasting</string>
+ <string name="fatal_error">Fatal Feil</string>
+ <string name="fatal_error_message">Det oppstod en fatal feil. Sjekk loggen for mer informasjon.\nFortsatt emulering kan føre til krasj og feil.</string>
+ <string name="performance_warning">Hvis du slår av denne innstillingen, reduseres emuleringsytelsen betydelig! Vi anbefaler at du lar denne innstillingen være aktivert for å få den beste opplevelsen.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japan</string>
+ <string name="region_usa">USA</string>
+ <string name="region_europe">Europa</string>
+ <string name="region_australia">Australia</string>
+ <string name="region_china">Kina</string>
+ <string name="region_korea">Korea</string>
+ <string name="region_taiwan">Taiwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japansk (日本語)</string>
+ <string name="language_english">Engelsk</string>
+ <string name="language_french">Fransk (Français)</string>
+ <string name="langauge_german">Tysk (Deutsch)</string>
+ <string name="language_italian">Italiensk (Italiano)</string>
+ <string name="language_spanish">Spansk (Español)</string>
+ <string name="language_chinese">Kinesisk (简体中文)</string>
+ <string name="language_korean">Koreansk (한국어)</string>
+ <string name="language_dutch">Nederlandsk (Nederlands)</string>
+ <string name="language_portuguese">Portugisisk (Português)</string>
+ <string name="language_russian">Russisk (Русский)</string>
+ <string name="language_taiwanese">Taiwansk (台湾)</string>
+ <string name="language_british_english">Britisk Engelsk</string>
+ <string name="language_canadian_french">Kanadisk fransk (Français canadien)</string>
+ <string name="language_latin_american_spanish">Latinamerikansk spansk (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Forenklet kinesisk (简体中文)</string>
+ <string name="language_traditional_chinese">Tradisjonell Kinesisk (正體中文)</string>
+ <string name="language_brazilian_portuguese">Brasiliansk portugisisk (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Ingen</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normal</string>
+ <string name="renderer_accuracy_high">Høy</string>
+ <string name="renderer_accuracy_extreme">Ekstrem (Treg)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Slow)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Slow)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Slow)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Umiddelbar (av)</string>
+ <string name="renderer_vsync_mailbox">Postkasse</string>
+ <string name="renderer_vsync_fifo">FIFO (På)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO avslappet</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Nærmeste nabo</string>
+ <string name="scaling_filter_bilinear">Bilineær</string>
+ <string name="scaling_filter_bicubic">Bikubisk</string>
+ <string name="scaling_filter_gaussian">Gaussisk</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Ingen</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Standard (16:9)</string>
+ <string name="ratio_force_four_three">Tving 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Tving 21:9</string>
+ <string name="ratio_force_sixteen_ten">Tving 16:10</string>
+ <string name="ratio_stretch">Strekk til Vindu</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Nøyaktig</string>
+ <string name="cpu_accuracy_unsafe">Utrygt</string>
+ <string name="cpu_accuracy_paranoid">Paranoid (Langsom)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">D-Pad</string>
+ <string name="gamepad_left_stick">Venstre Pinne</string>
+ <string name="gamepad_right_stick">Høyre Pinne</string>
+ <string name="gamepad_home">Hjem</string>
+ <string name="gamepad_screenshot">Skjermbilde</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Forberedelse av shaders</string>
+ <string name="building_shaders">Bygging av shaders</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Endre appens tema</string>
+ <string name="theme_default">Standard</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Endre temamodus</string>
+ <string name="theme_mode_follow_system">Følg systemet</string>
+ <string name="theme_mode_light">Lys</string>
+ <string name="theme_mode_dark">Mørk</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Bruk svart bakgrunn</string>
+ <string name="use_black_backgrounds_description">Bruk svart bakgrunn når du bruker det mørke temaet.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-night-v31/themes.xml b/src/android/app/src/main/res/values-night-v31/themes.xml
new file mode 100644
index 000000000..631d7fd1b
--- /dev/null
+++ b/src/android/app/src/main/res/values-night-v31/themes.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <style name="Theme.Yuzu.Main.MaterialYou" parent="Theme.Yuzu.Main">
+ <item name="colorPrimary">@color/m3_sys_color_dynamic_dark_primary</item>
+ <item name="colorOnPrimary">@color/m3_sys_color_dynamic_dark_on_primary</item>
+ <item name="colorPrimaryContainer">@color/m3_sys_color_dynamic_dark_primary_container</item>
+ <item name="colorOnPrimaryContainer">@color/m3_sys_color_dynamic_dark_on_primary_container</item>
+ <item name="colorSecondary">@color/m3_sys_color_dynamic_dark_secondary</item>
+ <item name="colorOnSecondary">@color/m3_sys_color_dynamic_dark_on_secondary</item>
+ <item name="colorSecondaryContainer">@color/m3_sys_color_dynamic_dark_secondary_container</item>
+ <item name="colorOnSecondaryContainer">@color/m3_sys_color_dynamic_dark_on_secondary_container</item>
+ <item name="colorTertiary">@color/m3_sys_color_dynamic_dark_tertiary</item>
+ <item name="colorOnTertiary">@color/m3_sys_color_dynamic_dark_on_tertiary</item>
+ <item name="colorTertiaryContainer">@color/m3_sys_color_dynamic_dark_tertiary_container</item>
+ <item name="colorOnTertiaryContainer">@color/m3_sys_color_dynamic_dark_on_tertiary_container</item>
+ <item name="android:colorBackground">@color/m3_sys_color_dynamic_dark_background</item>
+ <item name="colorOnBackground">@color/m3_sys_color_dynamic_dark_on_background</item>
+ <item name="colorSurface">@color/m3_sys_color_dynamic_dark_surface</item>
+ <item name="colorOnSurface">@color/m3_sys_color_dynamic_dark_on_surface</item>
+ <item name="colorSurfaceVariant">@color/m3_sys_color_dynamic_dark_surface_variant</item>
+ <item name="colorOnSurfaceVariant">@color/m3_sys_color_dynamic_dark_on_surface_variant</item>
+ <item name="colorOutline">@color/m3_sys_color_dynamic_dark_outline</item>
+ <item name="colorOnSurfaceInverse">@color/m3_sys_color_dynamic_dark_on_surface_variant</item>
+ <item name="colorSurfaceInverse">@color/m3_sys_color_dynamic_dark_surface_variant</item>
+ <item name="colorPrimaryInverse">@color/m3_sys_color_dynamic_dark_inverse_primary</item>
+
+ <item name="materialAlertDialogTheme">@style/ThemeOverlay.Material3.MaterialAlertDialog</item>
+ </style>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-night/themes.xml b/src/android/app/src/main/res/values-night/themes.xml
new file mode 100644
index 000000000..d7d24c24d
--- /dev/null
+++ b/src/android/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <style name="ThemeOverlay.Yuzu.Dark" parent="">
+ <item name="colorSurface">@android:color/black</item>
+ <item name="android:colorBackground">@android:color/black</item>
+ </style>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-night/yuzu_colors.xml b/src/android/app/src/main/res/values-night/yuzu_colors.xml
new file mode 100644
index 000000000..49d823324
--- /dev/null
+++ b/src/android/app/src/main/res/values-night/yuzu_colors.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <color name="yuzu_primary">#A7DDEC</color>
+ <color name="yuzu_onPrimary">#003399</color>
+ <color name="yuzu_primaryContainer">#31323F</color>
+ <color name="yuzu_onPrimaryContainer">#D1E4FF</color>
+ <color name="yuzu_secondary">#BAC8DB</color>
+ <color name="yuzu_onSecondary">#253140</color>
+ <color name="yuzu_secondaryContainer">#3B4858</color>
+ <color name="yuzu_onSecondaryContainer">#D6E4F7</color>
+ <color name="yuzu_tertiary">#D6BEE5</color>
+ <color name="yuzu_onTertiary">#3A2948</color>
+ <color name="yuzu_tertiaryContainer">#524060</color>
+ <color name="yuzu_onTertiaryContainer">#F2DAFF</color>
+ <color name="yuzu_error">#FFB4AB</color>
+ <color name="yuzu_errorContainer">#93000A</color>
+ <color name="yuzu_onError">#690005</color>
+ <color name="yuzu_onErrorContainer">#FFDAD6</color>
+ <color name="yuzu_background">#1A1C1E</color>
+ <color name="yuzu_onBackground">#E2E2E6</color>
+ <color name="yuzu_surface">#1B1B1D</color>
+ <color name="yuzu_onSurface">#E2E2E6</color>
+ <color name="yuzu_surfaceVariant">#26282C</color>
+ <color name="yuzu_onSurfaceVariant">#C3C7CF</color>
+ <color name="yuzu_outline">#8C9199</color>
+ <color name="yuzu_inverseOnSurface">#1A1C1E</color>
+ <color name="yuzu_inverseSurface">#E2E2E6</color>
+ <color name="yuzu_inversePrimary">#0062A2</color>
+ <color name="yuzu_shadow">#000000</color>
+ <color name="yuzu_surfaceTint">#9DCAFF</color>
+ <color name="yuzu_outlineVariant">#42474E</color>
+
+ <color name="yuzu_ea_background_start">#840099</color>
+ <color name="yuzu_ea_background_end">#005AE1</color>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-pl/strings.xml b/src/android/app/src/main/res/values-pl/strings.xml
new file mode 100644
index 000000000..1cd1a8f87
--- /dev/null
+++ b/src/android/app/src/main/res/values-pl/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">To oprogramowanie umożliwia uruchomienie gier z konsoli Nintendo Switch. Nie zawiera gier ani wymaganych kluczy.&lt;br /&gt;&lt;br /&gt;Zanim zaczniesz, wybierz plik kluczy <![CDATA[<b> prod.keys </b>]]> z katalogu w pamięci masowej.&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">Dowiedz się więcej</a>]]></string>
+ <string name="emulation_notification_channel_name">Emulacja jest uruchomiona</string>
+ <string name="emulation_notification_channel_description">Pokaż trwałe powiadomienie gdy emulacja jest uruchomiona.</string>
+ <string name="emulation_notification_running">yuzu jest uruchomiony</string>
+ <string name="notice_notification_channel_name">Powiadomienia błędy</string>
+ <string name="notice_notification_channel_description">Pokaż powiadomienie gdy coś pójdzie źle</string>
+ <string name="notification_permission_not_granted">Nie zezwolono na powiadomienia!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Witaj!</string>
+ <string name="welcome_description">Zobacz jak skonfigurować &lt;b>yuzu&lt;/b> i wskocz w świat emulacji.</string>
+ <string name="get_started">Zaczynamy</string>
+ <string name="keys">Klucze</string>
+ <string name="keys_description">Wybierz swoje klucze &lt;b>prod.keys&lt;/b> za pomocą przycisku poniżej.</string>
+ <string name="select_keys">Wybierz klucze</string>
+ <string name="games">Gry</string>
+ <string name="games_description">Wybierz katalog z grami &lt;b>Games&lt;/b> za pomocą przycisku poniżej.</string>
+ <string name="done">Gotowe</string>
+ <string name="done_description">Wszystko skonfigurowane.\n Miłego grania!</string>
+ <string name="text_continue">Kontynuuj</string>
+ <string name="next">Dalej</string>
+ <string name="back">Wstecz</string>
+ <string name="add_games">Dodaj gry</string>
+ <string name="add_games_description">Wybierz folder zawierający Twoje gry</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Gry</string>
+ <string name="home_search">Szukaj</string>
+ <string name="home_settings">Ustawienia</string>
+ <string name="empty_gamelist">Nie znaleziono plików, lub nie wybrano jeszcze katalogu zawierającego gry.</string>
+ <string name="search_and_filter_games">Szukaj i filtruj gry</string>
+ <string name="select_games_folder">Wybierz folder z grami</string>
+ <string name="select_games_folder_description">Pozwala yuzu wygenerować listę gier</string>
+ <string name="add_games_warning">Pominąć wybór folderu z grami?</string>
+ <string name="add_games_warning_description">Aby pokazać listę gier wybierz katalog zawierający gry.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Szukaj gier</string>
+ <string name="games_dir_selected">Wybrano katalog gier</string>
+ <string name="install_prod_keys">Instaluj klucze prod.keys</string>
+ <string name="install_prod_keys_description">Wymagane aby poprawnie odczytać sklepowe gry</string>
+ <string name="install_prod_keys_warning">Pominąć dodawanie kluczy?</string>
+ <string name="install_prod_keys_warning_description">Poprawne klucze są wymagane aby emulować sklepowe gry. Jeśli przejdziesz dalej, jedynie homebrew będą działać.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Powiadomienia</string>
+ <string name="notifications_description">Nadaj uprawnienia dostępu do powiadomień. </string>
+ <string name="give_permission">Nadaj uprawnienia</string>
+ <string name="notification_warning">Pominąć nadanie uprawnień powiadomień?</string>
+ <string name="notification_warning_description">yuzu nie będzie mógł powiadamiać Cię o ważnych informacjach.</string>
+ <string name="permission_denied">Odmowa dostępu</string>
+ <string name="permission_denied_description">Odmówiłeś dostępu do powiadomień zbyt wiele razy, teraz musisz przyznać je w ustawieniach systemowych Androida.</string>
+ <string name="about">O aplikacji</string>
+ <string name="about_description">Wersja, podziękowania i więcej</string>
+ <string name="warning_help">Pomoc</string>
+ <string name="warning_skip">Pomiń</string>
+ <string name="warning_cancel">Anuluj</string>
+ <string name="install_amiibo_keys">Zainstaluj klucze Amiibo</string>
+ <string name="install_amiibo_keys_description">Wymagane aby korzystać z Amiibo w grze</string>
+ <string name="invalid_keys_file">Wybrano niepoprawne klucze</string>
+ <string name="install_keys_success">Klucze zainstalowane pomyślnie</string>
+ <string name="reading_keys_failure">Błąd podczas odczytu kluczy</string>
+ <string name="invalid_keys_error">Niepoprawne klucze</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">Wybrany plik jest niepoprawny lub uszkodzony. Zrzuć ponownie swoje klucze.</string>
+ <string name="install_gpu_driver">Zainstaluj sterownik GPU</string>
+ <string name="install_gpu_driver_description">Użyj alternatywnych sterowników aby potencjalnie zwiększyć wydajność i naprawić błędy</string>
+ <string name="advanced_settings">Ustawienia zaawansowane</string>
+ <string name="settings_description">Skonfiguruj ustawienia emulatora</string>
+ <string name="search_recently_played">Ostatnio grane</string>
+ <string name="search_recently_added">Ostatnio dodane</string>
+ <string name="search_retail">Sklepowe</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Otwórz folder yuzu</string>
+ <string name="open_user_folder_description">Zarządzaj plikami emulatora</string>
+ <string name="theme_and_color_description">Personalizuj wygląd aplikacji</string>
+ <string name="no_file_manager">Nie znaleziono menedżera plików</string>
+ <string name="notification_no_directory_link">Nie można otworzyć folderu emulatora</string>
+ <string name="notification_no_directory_link_description">Proszę wybrać ręcznie folder z pomocą panelu bocznego menedżera plików.</string>
+ <string name="manage_save_data">Zarządzaj plikami zapisów gier</string>
+ <string name="manage_save_data_description">Znaleziono pliki zapisów gier. Wybierz opcję poniżej.</string>
+ <string name="import_export_saves_description">Importuj lub wyeksportuj pliki zapisów</string>
+ <string name="import_export_saves_no_profile">Nie znaleziono plików zapisów. Uruchom grę i spróbuj ponownie.</string>
+ <string name="save_file_imported_success">Zaimportowano pomyślnie</string>
+ <string name="save_file_invalid_zip_structure">Niepoprawna struktura folderów</string>
+ <string name="save_file_invalid_zip_structure_description">Pierwszy podkatalog musi zawierać w nazwie numer ID tytułu gry.</string>
+ <string name="import_saves">Importuj</string>
+ <string name="export_saves">Eksportuj</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia isn\'t real</string>
+ <string name="copied_to_clipboard">Skopiowano do schowka</string>
+ <string name="about_app_description">Otwarto-źródłowy emulator konsoli Switch</string>
+ <string name="contributors">Współtwórcy</string>
+ <string name="contributors_description">Stworzone z \u2764 przez zespół yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Wersja</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Wczesny dostęp</string>
+ <string name="get_early_access">Uzyskaj wczesny dostęp</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Nowe funkcje, szybszy dostęp do aktualizacji i nie tylko</string>
+ <string name="early_access_benefits">Korzyści z wcześniejszego dostępu</string>
+ <string name="cutting_edge_features">Nowatorskie funkcje</string>
+ <string name="early_access_updates">Częste aktualizacje</string>
+ <string name="no_manual_installation">Automatyczne aktualizacje</string>
+ <string name="prioritized_support">Priorytetowe wsparcie</string>
+ <string name="helping_game_preservation">Pomoc w problemach z grami</string>
+ <string name="our_eternal_gratitude">Nasza wdzięczność</string>
+ <string name="are_you_interested">Jesteś zainteresowany?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Włącz limit szybkości emulacji</string>
+ <string name="frame_limit_enable_description">Włącz, aby ustawić procentowy limit szybkości emulacji</string>
+ <string name="frame_limit_slider">Procentowy limit szybkości emulacji</string>
+ <string name="frame_limit_slider_description">Określa limit szybkości emulacji gier. Domyślna wartość 100% oznacza normalną szybkość z jaką działa gra. Wartości niższe lub wyższe zmniejszą lub zwiększą limit szybkości.</string>
+ <string name="cpu_accuracy">Dokładność procesora CPU</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Tryb zadokowany</string>
+ <string name="use_docked_mode_description">Emulacja w trybie stacji dokującej, zwiększa rozdzielczość kosztem wydajności.</string>
+ <string name="emulated_region">Region emulacji</string>
+ <string name="emulated_language">Język emulacji</string>
+ <string name="select_rtc_date">Ustaw datę RTC</string>
+ <string name="select_rtc_time">Ustaw czas RTC</string>
+ <string name="use_custom_rtc">Włącz niestandardowy zegar RTC</string>
+ <string name="use_custom_rtc_description">Ta opcja pozwala na wybranie własnych ustawień czasu używanych w czasie emulacji, innych niż czas systemu Android.</string>
+ <string name="set_custom_rtc">Ustaw niestandardowy czas RTC</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">Interfejs graficzny</string>
+ <string name="renderer_accuracy">Poziom precyzji emulacji</string>
+ <string name="renderer_resolution">Rozdzielczość</string>
+ <string name="renderer_vsync">Synchronizacja pionowa VSync</string>
+ <string name="renderer_aspect_ratio">Proporcje ekranu</string>
+ <string name="renderer_scaling_filter">Filtr adaptacji rozdzielczości</string>
+ <string name="renderer_anti_aliasing">Metoda wygładzania krawędzi</string>
+ <string name="renderer_force_max_clock">Maksymalne taktowanie GPU (układy Adreno)</string>
+ <string name="renderer_force_max_clock_description">Wymusza uruchomienie maksymalnego taktowania układu graficznego (zabezpieczenia termiczne będą dalej aktywne).</string>
+ <string name="renderer_asynchronous_shaders">Wyłącz synchronizację shaderów</string>
+ <string name="renderer_asynchronous_shaders_description">Kompiluj oświetlenie bez synchronizacji, poprawi wydajność ale może powodować błędy.</string>
+ <string name="renderer_debug">Włącz debugowanie grafiki</string>
+ <string name="renderer_debug_description">Kiedy włączone, interfejs graficzny korzysta z wolnego trybu debugowania błędów.</string>
+ <string name="use_disk_shader_cache">Użyj pamięci podręcznej shaderów na dysku</string>
+ <string name="use_disk_shader_cache_description">Zmniejsza przycięcia przez przechowywanie gotowych wygenerowanych plików oświetlenia w pamięci urządzenia.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Głośność</string>
+ <string name="audio_volume_description">Ustala poziom głośności wyjścia dźwięku.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Domyślne</string>
+ <string name="ini_saved">Ustawienia zapisane</string>
+ <string name="gameid_saved">Ustawienia zapisane w %1$s</string>
+ <string name="error_saving">Błąd zapisu %1$s.ini: %2$s</string>
+ <string name="loading">Wczytywanie...</string>
+ <string name="reset_setting_confirmation">Przywrócić wartość tego ustawienia do wartości domyślnej?</string>
+ <string name="reset_to_default">Przywróć ustawienia domyślne</string>
+ <string name="reset_all_settings">Przywrócić WSZYSTKIE ustawienia?</string>
+ <string name="reset_all_settings_description">Wszystkie zaawansowane opcje zostaną przywrócone do wartości domyślnych. Czynności nie będzie można cofnąć.</string>
+ <string name="settings_reset">Reset ustawień</string>
+ <string name="close">Zamknij</string>
+ <string name="learn_more">Dowiedz się więcej</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Wybierz sterownik GPU </string>
+ <string name="select_gpu_driver_title">Chcesz zastąpić obecny sterownik układu graficznego?</string>
+ <string name="select_gpu_driver_install">Zainstaluj</string>
+ <string name="select_gpu_driver_default">Domyślne</string>
+ <string name="select_gpu_driver_install_success">Zainstalowano %s</string>
+ <string name="select_gpu_driver_use_default">Aktywny domyślny sterownik GPU</string>
+ <string name="select_gpu_driver_error">Wybrano błędny sterownik, powrót do domyślnego. </string>
+ <string name="system_gpu_driver">Systemowy sterownik GPU</string>
+ <string name="installing_driver">Instalowanie sterownika...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Ustawienia</string>
+ <string name="preferences_general">Ogólne</string>
+ <string name="preferences_system">System</string>
+ <string name="preferences_graphics">Grafika</string>
+ <string name="preferences_audio">Dźwięk</string>
+ <string name="preferences_theme">Motyw i kolor</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">Twój ROM jest zakodowany</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Użyj przewodnika aby wykonać zrzuty <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">kardridży</a> lub <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">zainstalowanych gier</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Upewnij się że plik kluczy <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> jest zainstalowany aby gry mogły zostać odczytane.]]></string>
+ <string name="loader_error_video_core">Błąd inicjacji podsystemu graficznego</string>
+ <string name="loader_error_video_core_description">Zazwyczaj spowodowane niekompatybilnym sterownikiem GPU, instalacja niestandardowego sterownika może rozwiązać ten problem.</string>
+ <string name="loader_error_invalid_format">Nie można wczytać pliku ROM</string>
+ <string name="loader_error_file_not_found">Plik ROM nie istnieje</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Zakończ emulację</string>
+ <string name="emulation_done">Gotowe</string>
+ <string name="emulation_fps_counter">Licznik FPS</string>
+ <string name="emulation_toggle_controls">Wybierz przyciski</string>
+ <string name="emulation_rel_stick_center">Wycentruj gałki</string>
+ <string name="emulation_dpad_slide">Ruchomy DPad</string>
+ <string name="emulation_haptics">Wibracje haptyczne</string>
+ <string name="emulation_show_overlay">Pokaż przyciski</string>
+ <string name="emulation_toggle_all">Zaznacz wszystkie</string>
+ <string name="emulation_control_adjust">Dostosuj nakładkę</string>
+ <string name="emulation_control_scale">Skala</string>
+ <string name="emulation_control_opacity">Przeźroczystość</string>
+ <string name="emulation_touch_overlay_reset">Resetuj</string>
+ <string name="emulation_touch_overlay_edit">Edytuj nakładkę</string>
+ <string name="emulation_pause">Wstrzymaj emulację</string>
+ <string name="emulation_unpause">Wznów emulację</string>
+ <string name="emulation_input_overlay">Opcje nakładki</string>
+ <string name="emulation_game_loading">Wczytywanie gry...</string>
+
+ <string name="load_settings">Wczytywanie ustawień...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Klawiatura systemowa</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Przerwij</string>
+ <string name="continue_button">Kontynuuj</string>
+ <string name="system_archive_not_found">Archiwum systemu nie znalezione.</string>
+ <string name="system_archive_not_found_message">%s nieznaleziony. Proszę wykonać zrzut archiwum systemu.\nKontynuowanie może powodować błędy lub przerwanie emulacji.</string>
+ <string name="system_archive_general">Archiwum systemu</string>
+ <string name="save_load_error">Błąd odczytu/zapisu</string>
+ <string name="fatal_error">Błąd krytyczny</string>
+ <string name="fatal_error_message">Wystąpił błąd krytyczny. Szczegóły znajdziesz w pliku log.\nKontynuowanie może spowodować błędy lub przerwanie emulacji. </string>
+ <string name="performance_warning">Wyłączenie tej opcji znacząco ograniczy wydajność! Dla najlepszego doświadczenia, zaleca się zostawienie tej opcji włączonej.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japonia</string>
+ <string name="region_usa">USA</string>
+ <string name="region_europe">Europa</string>
+ <string name="region_australia">Australia</string>
+ <string name="region_china">Chiny</string>
+ <string name="region_korea">Korea</string>
+ <string name="region_taiwan">Tajwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japoński (日本語)</string>
+ <string name="language_english">Angielski</string>
+ <string name="language_french">Francuski (Francja)</string>
+ <string name="langauge_german">Niemiecki (Niemcy)</string>
+ <string name="language_italian">Włoski (Włochy)</string>
+ <string name="language_spanish">Hiszpański (Hiszpania)</string>
+ <string name="language_chinese">Chiński (简体中文)</string>
+ <string name="language_korean">Koreański (한국어)</string>
+ <string name="language_dutch">Duński (Holandia)</string>
+ <string name="language_portuguese">Portugalski (Portugalia)</string>
+ <string name="language_russian">Rosyjski (Русский)</string>
+ <string name="language_taiwanese">Tajwański (台湾)</string>
+ <string name="language_british_english">Angielski Brytyjski</string>
+ <string name="language_canadian_french">Francuski (Kanada)</string>
+ <string name="language_latin_american_spanish">Hiszpański (Ameryka Latynoska)</string>
+ <string name="language_simplified_chinese">Chiński uproszczony (简体中文)</string>
+ <string name="language_traditional_chinese">Chiński tradycyjny (正體中文)</string>
+ <string name="language_brazilian_portuguese">Portugalski (Brazylia)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Żadny</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normalny</string>
+ <string name="renderer_accuracy_high">Wysoki</string>
+ <string name="renderer_accuracy_extreme">Ekstremalny (Wolny)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Wolno)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Wolno)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Wolno)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Natychmiastowa (Wyłączona)</string>
+ <string name="renderer_vsync_mailbox">Skrzynka pocztowa</string>
+ <string name="renderer_vsync_fifo">FIFO (Włączona)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaks</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Najbliższy sąsiadujący</string>
+ <string name="scaling_filter_bilinear">Bilinearny</string>
+ <string name="scaling_filter_bicubic">Bikubiczny</string>
+ <string name="scaling_filter_gaussian">Kulisty</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Żadna (wyłączony)</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Domyślne (16:9)</string>
+ <string name="ratio_force_four_three">Wymuś 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Wymuś 21:9</string>
+ <string name="ratio_force_sixteen_ten">Wymuś 16:10</string>
+ <string name="ratio_stretch">Rozciągnij do Okna</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Dokładny</string>
+ <string name="cpu_accuracy_unsafe">Niebezpieczny</string>
+ <string name="cpu_accuracy_paranoid">Paranoid (Wolny)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">D-Pad</string>
+ <string name="gamepad_left_stick">Lewa gałka</string>
+ <string name="gamepad_right_stick">Prawa gałka</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Zrzut ekranu</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Przygotowanie shaderów</string>
+ <string name="building_shaders">Budowanie shaderów</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Zmień motyw aplikacji</string>
+ <string name="theme_default">Domyślny</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Zmiana trybu motywu</string>
+ <string name="theme_mode_follow_system">Podążaj za systemowym</string>
+ <string name="theme_mode_light">Jasny</string>
+ <string name="theme_mode_dark">Ciemny</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Używaj czarnego tła</string>
+ <string name="use_black_backgrounds_description">Kiedy używany ciemny motyw, tła zostają zastąpione czernią.</string>
+
+</resources>
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
new file mode 100644
index 000000000..35197c280
--- /dev/null
+++ b/src/android/app/src/main/res/values-pt-rBR/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Este software corre jogos para a consola Nintendo Switch. Não estão incluídas nem jogos ou chaves. &lt;br /&gt;&lt;br /&gt;Antes de começares, por favor localiza o ficheiro <![CDATA[1 prod.keys 1]]> no armazenamento do teu dispositivo.&lt;br /&gt;&lt;br /&gt;<![CDATA[2Learn more2]]></string>
+ <string name="emulation_notification_channel_name">Emulação está Ativa</string>
+ <string name="emulation_notification_channel_description">Mostra uma notificação permanente enquanto a emulação está a correr.</string>
+ <string name="emulation_notification_running">Yuzu está em execução </string>
+ <string name="notice_notification_channel_name">Notificações e erros</string>
+ <string name="notice_notification_channel_description">Mostra notificações quendo algo corre mal.</string>
+ <string name="notification_permission_not_granted">Permissões de notificação não permitidas </string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Bemvindo! </string>
+ <string name="welcome_description">Aprende como configurar &lt;b>yuzu&lt;/b> e arranca a emulação.</string>
+ <string name="get_started">Começa</string>
+ <string name="keys">Chaves</string>
+ <string name="keys_description">Seleciona o teu ficheiro &lt;b>prod.keys&lt;/b> com o botão abaixo.</string>
+ <string name="select_keys">Seleciona as Chaves</string>
+ <string name="games">Jogos</string>
+ <string name="games_description">Seleciona a tua pasta &lt;b>Games&lt;/b> com o botão abaixo.</string>
+ <string name="done">Feito</string>
+ <string name="done_description">Tudo pronto.\nDisfruta dos teus jogos!</string>
+ <string name="text_continue">Continuar</string>
+ <string name="next">Próximo</string>
+ <string name="back">Voltar</string>
+ <string name="add_games">Adiciona Jogos</string>
+ <string name="add_games_description">Seleciona a tua pasta de Jogos</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Jogos</string>
+ <string name="home_search">Pesquisar</string>
+ <string name="home_settings">Configurações</string>
+ <string name="empty_gamelist">Não foram encontrados jogos ou a pasta de Jogos ainda não foi definida. </string>
+ <string name="search_and_filter_games">Procura e filtra jogos.</string>
+ <string name="select_games_folder">Seleciona a pasta de jogos.</string>
+ <string name="select_games_folder_description">Permite que o Yuzu preencha a lista de jogos</string>
+ <string name="add_games_warning">Ignorar a seleção da pasta de jogos?</string>
+ <string name="add_games_warning_description">Os jogos não serão exibidos na lista de jogos se uma pasta não estiver selecionada.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Procurar Jogos</string>
+ <string name="games_dir_selected">Pasta de Jogos selecionada</string>
+ <string name="install_prod_keys">Instala prod.keys</string>
+ <string name="install_prod_keys_description">Necessário para desencriptar jogos comerciais</string>
+ <string name="install_prod_keys_warning">Ignorar a adição de chaves?</string>
+ <string name="install_prod_keys_warning_description">São necessárias chaves válidas para emular jogos comerciais. Somente aplicativos homebrew funcionarão se você continuar.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#Guia de introdução</string>
+ <string name="notifications">Notificações</string>
+ <string name="notifications_description">Conceda a permissão de notificação com o botão abaixo.</string>
+ <string name="give_permission">Conceda permissão</string>
+ <string name="notification_warning">Saltar a concessão da permissão de notificação?</string>
+ <string name="notification_warning_description">Yuzu não conseguirá te notificar de informações importantes. </string>
+ <string name="permission_denied">Permissão negada</string>
+ <string name="permission_denied_description">Você negou essa permissão muitas vezes e agora precisa concedê-la manualmente nas configurações do sistema.</string>
+ <string name="about">Sobre</string>
+ <string name="about_description">Versão de compilação, créditos e mais</string>
+ <string name="warning_help">Ajuda</string>
+ <string name="warning_skip">Saltar</string>
+ <string name="warning_cancel">Cancelar</string>
+ <string name="install_amiibo_keys">Instala chaves Amiibo</string>
+ <string name="install_amiibo_keys_description">Necessário para usares Amiibo no jogo</string>
+ <string name="invalid_keys_file">Ficheiro de chaves inválido</string>
+ <string name="install_keys_success">Chaves instaladas com sucesso</string>
+ <string name="reading_keys_failure">Erro ao ler chaves de encriptação</string>
+ <string name="invalid_keys_error">Chaves de encriptação inválidas</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">O ficheiro selecionado está corrompido. Por favor recarrega as tuas chaves.</string>
+ <string name="install_gpu_driver">Instala driver para GPU</string>
+ <string name="install_gpu_driver_description">Instala drivers alternativos para desempenho ou precisão potencialmente melhores</string>
+ <string name="advanced_settings">Definições avançadas</string>
+ <string name="settings_description">Configura definições do emulador</string>
+ <string name="search_recently_played">Jogos recentes</string>
+ <string name="search_recently_added">Adicionados recentemente</string>
+ <string name="search_retail">Jogos comerciais</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Abre a pasta Yuzu</string>
+ <string name="open_user_folder_description">Gere os ficheiro internos do Yuzu</string>
+ <string name="theme_and_color_description">Modifica a aparência da App</string>
+ <string name="no_file_manager">Nenhum gestor de ficheiros encontrado</string>
+ <string name="notification_no_directory_link">Impossível abrir pasta Yuzu</string>
+ <string name="notification_no_directory_link_description">Localiza a pasta de utilizador manualmente com o painel lateral do gestor de ficheiros.</string>
+ <string name="manage_save_data">Gerir dados guardados</string>
+ <string name="manage_save_data_description">Dados não encontrados. Por favor seleciona uma opção abaixo.</string>
+ <string name="import_export_saves_description">Importa ou exporta dados guardados</string>
+ <string name="import_export_saves_no_profile">Dados não encontrados. Por favor lança o jogo e tenta novamente.</string>
+ <string name="save_file_imported_success">Importado com sucesso</string>
+ <string name="save_file_invalid_zip_structure">Estrutura de diretório de dados invalida</string>
+ <string name="save_file_invalid_zip_structure_description">O nome da primeira sub pasta tem de ser a ID do jogo.</string>
+ <string name="import_saves">Importar</string>
+ <string name="export_saves">Exportar</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia não é real</string>
+ <string name="copied_to_clipboard">Copiado para a área de transferência</string>
+ <string name="about_app_description">Um emulador Switch de código aberto</string>
+ <string name="contributors">Contribuidores</string>
+ <string name="contributors_description">Feito com \u2764 da equipa do Yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Versão</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Acesso antecipado</string>
+ <string name="get_early_access">Obtém Acesso Antecipado</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Recursos de ponta, acesso antecipado a atualizações e muito mais</string>
+ <string name="early_access_benefits">Benefícios do Acesso Antecipado</string>
+ <string name="cutting_edge_features">Recursos de ponta</string>
+ <string name="early_access_updates">Acesso antecipado a atualizações</string>
+ <string name="no_manual_installation">Sem instalação manual</string>
+ <string name="prioritized_support">Suporte prioritário</string>
+ <string name="helping_game_preservation">Ajuda na preservação dos jogos</string>
+ <string name="our_eternal_gratitude">A nossa eterna gratidão</string>
+ <string name="are_you_interested">Estás interessado?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Ativar limite de velocidade</string>
+ <string name="frame_limit_enable_description">Quando ativada, a velocidade da emulação será limitada à percentagem definida da velocidade normal.</string>
+ <string name="frame_limit_slider">Percentagem do limite de velocidade</string>
+ <string name="frame_limit_slider_description">Especifica o limite da percentagem da velocidade da emulação. Com a velocidade por defeito a 100% a emulação será limitada à velocidade normal. Valores maiores ou menores aumentarão ou diminuirão o limite de velocidade.</string>
+ <string name="cpu_accuracy">Precisão do CPU</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Modo ancorado</string>
+ <string name="use_docked_mode_description">Emula em modo ancorado, que aumenta a resolução ás custas da performance.</string>
+ <string name="emulated_region">Região da emulação</string>
+ <string name="emulated_language">Idioma da emulação</string>
+ <string name="select_rtc_date">Seleciona a data RTC</string>
+ <string name="select_rtc_time">Seleciona a hora RTC</string>
+ <string name="use_custom_rtc">Ativa RTC personalizado</string>
+ <string name="use_custom_rtc_description">Esta configuração permite definir um RTC personalizado diferente da hora atual do sistema</string>
+ <string name="set_custom_rtc">Define RTC personalizado</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Nível de precisão</string>
+ <string name="renderer_resolution">Resolução</string>
+ <string name="renderer_vsync">Modo VSync</string>
+ <string name="renderer_aspect_ratio">Proporção do ecrã</string>
+ <string name="renderer_scaling_filter">Filtro de Adaptação da Janela</string>
+ <string name="renderer_anti_aliasing">Método de Anti-Aliasing </string>
+ <string name="renderer_force_max_clock">Força velocidade máxima (Adreno only)</string>
+ <string name="renderer_force_max_clock_description">Força o GPU a correr à velocidade máxima (restrições térmicas serão aplicadas)</string>
+ <string name="renderer_asynchronous_shaders">Usa shaders assíncronos </string>
+ <string name="renderer_asynchronous_shaders_description">Compila shaders assincronamente, que aumentará a fluidez, mas poderá causar falhas.</string>
+ <string name="renderer_debug">Ativar depuração de gráficos</string>
+ <string name="renderer_debug_description">Quando selecionado, a API gráfica entra num modo de depuração mais lento.</string>
+ <string name="use_disk_shader_cache">Usar cache de shaders em disco</string>
+ <string name="use_disk_shader_cache_description">Aumenta a fluidez ao guardar e carregar shaders gerados para o armazenamento.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Volume</string>
+ <string name="audio_volume_description">Especifica o volume de saída.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Padrão</string>
+ <string name="ini_saved">Definições guardadas</string>
+ <string name="gameid_saved">Definições guardadas para %1$s</string>
+ <string name="error_saving">Erro ao guardar %1$s.ini: %2$s</string>
+ <string name="loading">A carregar...</string>
+ <string name="reset_setting_confirmation">Queres reverter esta definição para os valores padrão?</string>
+ <string name="reset_to_default">Reverter para padrão</string>
+ <string name="reset_all_settings">Redefinir todas as definições?</string>
+ <string name="reset_all_settings_description">Todas as definições avançadas serão redefinidas para as definições padrão. Isto não pode ser revertido.</string>
+ <string name="settings_reset">Redefinir definições</string>
+ <string name="close">Fechar</string>
+ <string name="learn_more">Saiba mais</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Seleciona a driver para o GPU</string>
+ <string name="select_gpu_driver_title">Queres substituir o driver do GPU atual? </string>
+ <string name="select_gpu_driver_install">Instalar</string>
+ <string name="select_gpu_driver_default">Padrão</string>
+ <string name="select_gpu_driver_install_success">Instalado%s</string>
+ <string name="select_gpu_driver_use_default">Usar o driver padrão do GPU</string>
+ <string name="select_gpu_driver_error">Driver selecionado inválido, a usar o padrão do sistema!</string>
+ <string name="system_gpu_driver">Driver do GPU padrão</string>
+ <string name="installing_driver">A instalar o Driver...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Configurações</string>
+ <string name="preferences_general">Geral</string>
+ <string name="preferences_system">Sistema</string>
+ <string name="preferences_graphics">Gráficos</string>
+ <string name="preferences_audio">Áudio</string>
+ <string name="preferences_theme">Cor e tema.</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">A tua ROM está encriptada</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Por favor segue os guias para fazer redump das tuas<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">Cartidges de Jogo</a> or <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">Jogos Instalados</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Por favor confirma que o teu ficheiro <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> está instalado para que os jogos possam ser desencriptados.]]></string>
+ <string name="loader_error_video_core">Ocorreu um erro ao iniciar o núcleo de vídeo.</string>
+ <string name="loader_error_video_core_description">Isto é normalmente causado por um driver de GPU incompatível. Instalar um driver GPU pode resolver este problema.</string>
+ <string name="loader_error_invalid_format">Impossível carregar a tua ROM</string>
+ <string name="loader_error_file_not_found">O ficheiro da ROM não existe</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Sair da emulação</string>
+ <string name="emulation_done">Feito</string>
+ <string name="emulation_fps_counter">Contador de FPS</string>
+ <string name="emulation_toggle_controls">Alterar Controlos</string>
+ <string name="emulation_rel_stick_center">Centro do Analógico Relativo</string>
+ <string name="emulation_dpad_slide">Deslizar do DPad</string>
+ <string name="emulation_haptics">Hápticos </string>
+ <string name="emulation_show_overlay">Mostrar sobreposição </string>
+ <string name="emulation_toggle_all">Alterar todos</string>
+ <string name="emulation_control_adjust">Ajustar a sobreposição </string>
+ <string name="emulation_control_scale">Escala</string>
+ <string name="emulation_control_opacity">Opacidade</string>
+ <string name="emulation_touch_overlay_reset">Redefinir Sobreposição </string>
+ <string name="emulation_touch_overlay_edit">Editar sobreposição </string>
+ <string name="emulation_pause">Pausa emulação</string>
+ <string name="emulation_unpause">Retomar emulação</string>
+ <string name="emulation_input_overlay">Opções de sobreposição </string>
+ <string name="emulation_game_loading">Jogo a carregar...</string>
+
+ <string name="load_settings">Configurações a carregar...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Teclado de software</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Abortar</string>
+ <string name="continue_button">Continuar</string>
+ <string name="system_archive_not_found">Arquivo do sistema não encontrado</string>
+ <string name="system_archive_not_found_message">%s está em falta. Por favor apaga os teus ficheiros de sistema.\nContinuar a emulação pode causar erros.</string>
+ <string name="system_archive_general">Um arquivo do sistema</string>
+ <string name="save_load_error">Erro Guardar/Carregar</string>
+ <string name="fatal_error">Erro fatal</string>
+ <string name="fatal_error_message">Ocorreu um erro fatal. Verifica o teu registro para detalhes. \nContinuar a emulação pode causar erros.</string>
+ <string name="performance_warning">Desligar esta configuração irá reduzir a performance da emulação significantemente! Para a melhor experiência é recomendado que deixes esta configuração ativada.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japão</string>
+ <string name="region_usa">EUA</string>
+ <string name="region_europe">Europa</string>
+ <string name="region_australia">Austrália</string>
+ <string name="region_china">China</string>
+ <string name="region_korea">Coréia</string>
+ <string name="region_taiwan">Taiwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japônes (日本語)</string>
+ <string name="language_english">Português do Brasil</string>
+ <string name="language_french">Francês (Français)</string>
+ <string name="langauge_german">Alemão (Deutsch)</string>
+ <string name="language_italian">Italiano (Italiano)</string>
+ <string name="language_spanish">Espanhol (Español)</string>
+ <string name="language_chinese">Mandarim (简体中文)</string>
+ <string name="language_korean">Coreano (한국어)</string>
+ <string name="language_dutch">Holandês (Nederlands)</string>
+ <string name="language_portuguese">Português (Português)</string>
+ <string name="language_russian">Russo (Русский)</string>
+ <string name="language_taiwanese">Taiwanês (台湾)</string>
+ <string name="language_british_english">Inglês britânico (British English)</string>
+ <string name="language_canadian_french">Fracês Canadiano (Français canadien)</string>
+ <string name="language_latin_american_spanish">Espanhol da América Latina (Español latino-americano)</string>
+ <string name="language_simplified_chinese">Chinês Simplificado (简体中文)</string>
+ <string name="language_traditional_chinese">Chinês tradicional (正體中文)</string>
+ <string name="language_brazilian_portuguese">Português do Brasil (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulcano</string>
+ <string name="renderer_none">Nenhum</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normal</string>
+ <string name="renderer_accuracy_high">Alto</string>
+ <string name="renderer_accuracy_extreme">Estremo (Lento)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Slow)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Lento)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Lento)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Imediato (Desligado)</string>
+ <string name="renderer_vsync_mailbox">Caixa de entrada</string>
+ <string name="renderer_vsync_fifo">FIFO (Ligado)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxado </string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Vizinho mais próximo</string>
+ <string name="scaling_filter_bilinear">Bilinear</string>
+ <string name="scaling_filter_bicubic">Bicúbico</string>
+ <string name="scaling_filter_gaussian">Gaussiano</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Nenhum</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Padrão (16:9)</string>
+ <string name="ratio_force_four_three">Forçar 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Forçar 21:9</string>
+ <string name="ratio_force_sixteen_ten">Forçar 16:10</string>
+ <string name="ratio_stretch">Esticar para a janela</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Preciso</string>
+ <string name="cpu_accuracy_unsafe">Não seguro</string>
+ <string name="cpu_accuracy_paranoid">Paranoid (Lento)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">D-pad</string>
+ <string name="gamepad_left_stick">Analógico esquerdo</string>
+ <string name="gamepad_right_stick">Analógico direito</string>
+ <string name="gamepad_home">Botão Home</string>
+ <string name="gamepad_screenshot">Captura de ecrã</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">A preparar shaders</string>
+ <string name="building_shaders">A criar shaders</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Muda o Tema da App</string>
+ <string name="theme_default">Padrão</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Altera o Modo do Tema</string>
+ <string name="theme_mode_follow_system">Igual ao Sistema</string>
+ <string name="theme_mode_light">Claro</string>
+ <string name="theme_mode_dark">Escuro</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Usa Fundos Negros</string>
+ <string name="use_black_backgrounds_description">Quando usar tema escuro, aplicar fundos escuros</string>
+
+</resources>
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
new file mode 100644
index 000000000..8761e2374
--- /dev/null
+++ b/src/android/app/src/main/res/values-pt-rPT/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Este software corre jogos para a consola Nintendo Switch. Não estão incluídas nem jogos ou chaves. &lt;br /&gt;&lt;br /&gt;Antes de começares, por favor localiza o ficheiro <![CDATA[1 prod.keys 1]]> no armazenamento do teu dispositivo.&lt;br /&gt;&lt;br /&gt;<![CDATA[2Learn more2]]></string>
+ <string name="emulation_notification_channel_name">Emulação está Ativa</string>
+ <string name="emulation_notification_channel_description">Mostra uma notificação permanente enquanto a emulação está a correr.</string>
+ <string name="emulation_notification_running">Yuzu está em execução </string>
+ <string name="notice_notification_channel_name">Notificações e erros</string>
+ <string name="notice_notification_channel_description">Mostra notificações quendo algo corre mal.</string>
+ <string name="notification_permission_not_granted">Permissões de notificação não permitidas </string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Benvindo! </string>
+ <string name="welcome_description">Aprende como configurar &lt;b>yuzu&lt;/b> e arranca a emulação.</string>
+ <string name="get_started">Começa</string>
+ <string name="keys">Chaves</string>
+ <string name="keys_description">Seleciona o teu ficheiro &lt;b>prod.keys&lt;/b> com o botão abaixo.</string>
+ <string name="select_keys">Seleciona as Chaves</string>
+ <string name="games">Jogos</string>
+ <string name="games_description">Seleciona a tua pasta &lt;b>Games&lt;/b> com o botão abaixo.</string>
+ <string name="done">Feito</string>
+ <string name="done_description">Tudo pronto.\nDisfruta dos teus jogos!</string>
+ <string name="text_continue">Continuar</string>
+ <string name="next">Próximo</string>
+ <string name="back">Voltar</string>
+ <string name="add_games">Adiciona Jogos</string>
+ <string name="add_games_description">Seleciona a tua pasta de Jogos</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Jogos</string>
+ <string name="home_search">Pesquisar</string>
+ <string name="home_settings">Configurações</string>
+ <string name="empty_gamelist">Não foram encontrados jogos ou a pasta de Jogos ainda não foi definida. </string>
+ <string name="search_and_filter_games">Procura e filtra jogos.</string>
+ <string name="select_games_folder">Seleciona a pasta de jogos.</string>
+ <string name="select_games_folder_description">Permite que o Yuzu preencha a lista de jogos</string>
+ <string name="add_games_warning">Ignorar a seleção da pasta de jogos?</string>
+ <string name="add_games_warning_description">Os jogos não serão exibidos na lista de jogos se uma pasta não estiver selecionada.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Procurar Jogos</string>
+ <string name="games_dir_selected">Pasta de Jogos selecionada</string>
+ <string name="install_prod_keys">Instala prod.keys</string>
+ <string name="install_prod_keys_description">Necessário para desencriptar jogos comerciais</string>
+ <string name="install_prod_keys_warning">Ignorar a adição de chaves?</string>
+ <string name="install_prod_keys_warning_description">São necessárias chaves válidas para emular jogos comerciais. Somente aplicativos homebrew funcionarão se você continuar.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Notificações</string>
+ <string name="notifications_description">Conceda a permissão de notificação com o botão abaixo.</string>
+ <string name="give_permission">Conceda permissão</string>
+ <string name="notification_warning">Saltar a concessão da permissão de notificação?</string>
+ <string name="notification_warning_description">Yuzu não conseguirá te notificar de informações importantes. </string>
+ <string name="permission_denied">Permissão negada</string>
+ <string name="permission_denied_description">Você negou essa permissão muitas vezes e agora precisa concedê-la manualmente nas configurações do sistema.</string>
+ <string name="about">Sobre</string>
+ <string name="about_description">Versão de compilação, créditos e mais</string>
+ <string name="warning_help">Ajuda</string>
+ <string name="warning_skip">Saltar</string>
+ <string name="warning_cancel">Cancelar</string>
+ <string name="install_amiibo_keys">Instala chaves Amiibo</string>
+ <string name="install_amiibo_keys_description">Necessário para usares Amiibo no jogo</string>
+ <string name="invalid_keys_file">Ficheiro de chaves inválido</string>
+ <string name="install_keys_success">Chaves instaladas com sucesso</string>
+ <string name="reading_keys_failure">Erro ao ler chaves de encriptação</string>
+ <string name="invalid_keys_error">Chaves de encriptação inválidas</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">O ficheiro selecionado está corrompido. Por favor recarrega as tuas chaves.</string>
+ <string name="install_gpu_driver">Instala driver para GPU</string>
+ <string name="install_gpu_driver_description">Instala drivers alternativos para desempenho ou precisão potencialmente melhores</string>
+ <string name="advanced_settings">Configurações avançadas</string>
+ <string name="settings_description">Configura configurações do emulador</string>
+ <string name="search_recently_played">Jogos recentes</string>
+ <string name="search_recently_added">Adicionados recentemente</string>
+ <string name="search_retail">Jogos comerciais</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Abre a pasta Yuzu</string>
+ <string name="open_user_folder_description">Gere os ficheiro internos do Yuzu</string>
+ <string name="theme_and_color_description">Modifica a aparência da App</string>
+ <string name="no_file_manager">Nenhum gestor de ficheiros encontrado</string>
+ <string name="notification_no_directory_link">Impossível abrir pasta Yuzu</string>
+ <string name="notification_no_directory_link_description">Localiza a pasta de utilizador manualmente com o painel lateral do gestor de ficheiros.</string>
+ <string name="manage_save_data">Gerir dados guardados</string>
+ <string name="manage_save_data_description">Dados não encontrados. Por favor seleciona uma opção abaixo.</string>
+ <string name="import_export_saves_description">Importa ou exporta dados guardados</string>
+ <string name="import_export_saves_no_profile">Dados não encontrados. Por favor lança o jogo e tenta novamente.</string>
+ <string name="save_file_imported_success">Importado com sucesso</string>
+ <string name="save_file_invalid_zip_structure">Estrutura de diretório de dados invalida</string>
+ <string name="save_file_invalid_zip_structure_description">O nome da primeira sub pasta tem de ser a ID do jogo.</string>
+ <string name="import_saves">Importar</string>
+ <string name="export_saves">Exportar</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia não é real</string>
+ <string name="copied_to_clipboard">Copiado para a área de transferência</string>
+ <string name="about_app_description">Um emulador Switch de código aberto</string>
+ <string name="contributors">Contribuidores</string>
+ <string name="contributors_description">Feito com \u2764 da equipa do Yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Versão</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Acesso antecipado</string>
+ <string name="get_early_access">Obtém Acesso Antecipado</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Recursos de ponta, acesso antecipado a atualizações e muito mais</string>
+ <string name="early_access_benefits">Benefícios do Acesso Antecipado</string>
+ <string name="cutting_edge_features">Recursos de ponta</string>
+ <string name="early_access_updates">Acesso antecipado a atualizações</string>
+ <string name="no_manual_installation">Sem instalação manual</string>
+ <string name="prioritized_support">Suporte prioritário</string>
+ <string name="helping_game_preservation">Ajuda na preservação dos jogos</string>
+ <string name="our_eternal_gratitude">A nossa eterna gratidão</string>
+ <string name="are_you_interested">Estás interessado?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Ativar limite de velocidade</string>
+ <string name="frame_limit_enable_description">Quando ativada, a velocidade da emulação será limitada à percentagem definida da velocidade normal.</string>
+ <string name="frame_limit_slider">Percentagem do limite de velocidade</string>
+ <string name="frame_limit_slider_description">Especifica o limite da percentagem da velocidade da emulação. Com a velocidade por defeito a 100% a emulação será limitada à velocidade normal. Valores maiores ou menores aumentarão ou diminuirão o limite de velocidade.</string>
+ <string name="cpu_accuracy">Precisão do CPU</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Modo ancorado</string>
+ <string name="use_docked_mode_description">Emula em modo ancorado, que aumenta a resolução ás custas da performance.</string>
+ <string name="emulated_region">Região da emulação</string>
+ <string name="emulated_language">Idioma da emulação</string>
+ <string name="select_rtc_date">Seleciona a data RTC</string>
+ <string name="select_rtc_time">Seleciona a hora RTC</string>
+ <string name="use_custom_rtc">Ativa RTC personalizado</string>
+ <string name="use_custom_rtc_description">Esta configuração permite definir um RTC personalizado diferente da hora atual do sistema</string>
+ <string name="set_custom_rtc">Define RTC personalizado</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Nível de precisão</string>
+ <string name="renderer_resolution">Resolução</string>
+ <string name="renderer_vsync">Modo VSync</string>
+ <string name="renderer_aspect_ratio">Proporção do ecrã</string>
+ <string name="renderer_scaling_filter">Filtro de Adaptação da Janela</string>
+ <string name="renderer_anti_aliasing">Método de Anti-Aliasing </string>
+ <string name="renderer_force_max_clock">Força velocidade máxima (Adreno only)</string>
+ <string name="renderer_force_max_clock_description">Força o GPU a correr à velocidade máxima (restrições térmicas serão aplicadas)</string>
+ <string name="renderer_asynchronous_shaders">Usa shaders assíncronos </string>
+ <string name="renderer_asynchronous_shaders_description">Compila shaders assincronamente, que aumentará a fluidez, mas poderá causar falhas.</string>
+ <string name="renderer_debug">Ativar depuração de gráficos</string>
+ <string name="renderer_debug_description">Quando selecionado, a API gráfica entra num modo de depuração mais lento.</string>
+ <string name="use_disk_shader_cache">Usar cache do disk shader</string>
+ <string name="use_disk_shader_cache_description">Aumenta a fluidez ao guardar e carregar shaders gerados para o armazenamento.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Volume</string>
+ <string name="audio_volume_description">Especifica o volume de saída.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Padrão</string>
+ <string name="ini_saved">Configurações guardadas</string>
+ <string name="gameid_saved">Configurações guardadas para %1$s</string>
+ <string name="error_saving">Erro ao guardar %1$s.ini: %2$s</string>
+ <string name="loading">A carregar...</string>
+ <string name="reset_setting_confirmation">Queres reverter esta definição para os valores padrão?</string>
+ <string name="reset_to_default">Reverter para padrão</string>
+ <string name="reset_all_settings">Redefinir todas as configurações?</string>
+ <string name="reset_all_settings_description">Todas as configurações avançadas serão redefinidas para as definições padrão. Isto não pode ser revertido.</string>
+ <string name="settings_reset">Redefinir configurações </string>
+ <string name="close">Fechar</string>
+ <string name="learn_more">Saber Mais</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Seleciona a driver para o GPU</string>
+ <string name="select_gpu_driver_title">Queres substituir o driver do GPU atual? </string>
+ <string name="select_gpu_driver_install">Instalar</string>
+ <string name="select_gpu_driver_default">Padrão</string>
+ <string name="select_gpu_driver_install_success">Instalado%s</string>
+ <string name="select_gpu_driver_use_default">Usar o driver padrão do GPU</string>
+ <string name="select_gpu_driver_error">Driver selecionado inválido, a usar o padrão do sistema!</string>
+ <string name="system_gpu_driver">Driver do GPU padrão</string>
+ <string name="installing_driver">A instalar o Driver...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Configurações</string>
+ <string name="preferences_general">Geral</string>
+ <string name="preferences_system">Sistema</string>
+ <string name="preferences_graphics">Gráficos</string>
+ <string name="preferences_audio">Audio</string>
+ <string name="preferences_theme">Cor e tema.</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">A tua ROM está encriptada</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Por favor segue os guias para fazer redump das tuas<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">Cartidges de Jogo</a> or <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">Jogos Instalados</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Por favor confirma que o teu ficheiro <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> está instalado para que os jogos possam ser desencriptados.]]></string>
+ <string name="loader_error_video_core">Ocorreu um erro ao iniciar o núcleo de vídeo.</string>
+ <string name="loader_error_video_core_description">Isto é normalmente causado por um driver de GPU incompatível. Instalar um driver GPU pode resolver este problema.</string>
+ <string name="loader_error_invalid_format">Impossível carregar a tua ROM</string>
+ <string name="loader_error_file_not_found">O ficheiro da ROM não existe</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Sair da emulação</string>
+ <string name="emulation_done">Feito</string>
+ <string name="emulation_fps_counter">Contador de FPS</string>
+ <string name="emulation_toggle_controls">Alterar Controlos</string>
+ <string name="emulation_rel_stick_center">Centro do Analógico Relativo</string>
+ <string name="emulation_dpad_slide">Deslizar do DPad</string>
+ <string name="emulation_haptics">Hápticos </string>
+ <string name="emulation_show_overlay">Mostrar sobreposição </string>
+ <string name="emulation_toggle_all">Alterar todos</string>
+ <string name="emulation_control_adjust">Ajustar a sobreposição </string>
+ <string name="emulation_control_scale">Escala</string>
+ <string name="emulation_control_opacity">Opacidade</string>
+ <string name="emulation_touch_overlay_reset">Redefinir Sobreposição </string>
+ <string name="emulation_touch_overlay_edit">Editar sobreposição </string>
+ <string name="emulation_pause">Pausa emulação</string>
+ <string name="emulation_unpause">Retomar emulação</string>
+ <string name="emulation_input_overlay">Opções de sobreposição </string>
+ <string name="emulation_game_loading">Jogo a carregar...</string>
+
+ <string name="load_settings">Configurações a carregar...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Teclado de Software</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Abortar</string>
+ <string name="continue_button">Continuar</string>
+ <string name="system_archive_not_found">Arquivo do Sistema Não Encontrado</string>
+ <string name="system_archive_not_found_message">%s está em falta. Por favor apaga os teus ficheiros de sistema.\nContinuar a emulação pode causar erros.</string>
+ <string name="system_archive_general">Um arquivo do sistema</string>
+ <string name="save_load_error">Erro Guardar/Carregar</string>
+ <string name="fatal_error">Erro fatal</string>
+ <string name="fatal_error_message">Ocorreu um erro fatal. Verifica o teu registro para detalhes. \nContinuar a emulação pode causar erros.</string>
+ <string name="performance_warning">Desligar esta configuração irá reduzir a performance da emulação significantemente! Para a melhor experiência é recomendado que deixes esta configuração ativada.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japão</string>
+ <string name="region_usa">EUA</string>
+ <string name="region_europe">Europa</string>
+ <string name="region_australia">Austrália</string>
+ <string name="region_china">China</string>
+ <string name="region_korea">Coreia</string>
+ <string name="region_taiwan">Taiwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japonês (日本語)</string>
+ <string name="language_english">Inglês</string>
+ <string name="language_french">Francês (Français)</string>
+ <string name="langauge_german">Alemão (Deutsch)</string>
+ <string name="language_italian">Italiano (Italiano)</string>
+ <string name="language_spanish">Espanhol (Español)</string>
+ <string name="language_chinese">Chinês simplificado (简体中文)</string>
+ <string name="language_korean">Coreano (한국어)</string>
+ <string name="language_dutch">Holandês (Nederlands)</string>
+ <string name="language_portuguese">Português (Português)</string>
+ <string name="language_russian">Russo (Русский)</string>
+ <string name="language_taiwanese">Taiwanês (台湾)</string>
+ <string name="language_british_english">Inglês Britânico</string>
+ <string name="language_canadian_french">Fracês Canadiano (Français canadien)</string>
+ <string name="language_latin_american_spanish">Espanhol da América Latina (Español latino-americano)</string>
+ <string name="language_simplified_chinese">Chinês Simplificado (简体中文)</string>
+ <string name="language_traditional_chinese">Chinês Tradicional (正 體 中文)</string>
+ <string name="language_brazilian_portuguese">Português do Brasil (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulcano</string>
+ <string name="renderer_none">Nenhum</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normal</string>
+ <string name="renderer_accuracy_high">Alto</string>
+ <string name="renderer_accuracy_extreme">Estremo (Lento)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Lento)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Lento)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Lento)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Imediato (Desligado)</string>
+ <string name="renderer_vsync_mailbox">Caixa de entrada</string>
+ <string name="renderer_vsync_fifo">FIFO (Ligado)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxado </string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Vizinho mais próximo</string>
+ <string name="scaling_filter_bilinear">Bilinear</string>
+ <string name="scaling_filter_bicubic">Bicúbico</string>
+ <string name="scaling_filter_gaussian">Gaussiano</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Nenhum</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Padrão (16:9)</string>
+ <string name="ratio_force_four_three">Forçar 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Forçar 21:9</string>
+ <string name="ratio_force_sixteen_ten">Forçar 16:10</string>
+ <string name="ratio_stretch">Esticar à Janela</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Preciso</string>
+ <string name="cpu_accuracy_unsafe">Inseguro</string>
+ <string name="cpu_accuracy_paranoid">Paranoid (Lento)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">D-Pad</string>
+ <string name="gamepad_left_stick">Analógico Esquerdo</string>
+ <string name="gamepad_right_stick">Analógico Direito</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Captura de ecrã</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">A preparar shaders</string>
+ <string name="building_shaders">A criar shaders</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Muda o Tema da App</string>
+ <string name="theme_default">Padrão</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Altera o Modo do Tema</string>
+ <string name="theme_mode_follow_system">Igual ao Sistema</string>
+ <string name="theme_mode_light">Claro</string>
+ <string name="theme_mode_dark">Escuro</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Usa Fundos Escuros</string>
+ <string name="use_black_backgrounds_description">Quando usar tema escuro, aplicar fundos escuros</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-ru/strings.xml b/src/android/app/src/main/res/values-ru/strings.xml
new file mode 100644
index 000000000..0fb4908f7
--- /dev/null
+++ b/src/android/app/src/main/res/values-ru/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Это программное обеспечение позволяет запускать игры для игровой консоли Nintendo Switch. Мы не предоставляем сами игры или ключи.&lt;br /&gt;&lt;br /&gt;Перед началом работы найдите файл <![CDATA[<b> prod.keys </b>]]> в хранилище устройства..&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">Узнать больше</a>]]></string>
+ <string name="emulation_notification_channel_name">Эмуляция активна</string>
+ <string name="emulation_notification_channel_description">Показывает постоянное уведомление, когда запущена эмуляция.</string>
+ <string name="emulation_notification_running">yuzu запущен</string>
+ <string name="notice_notification_channel_name">Уведомления и ошибки</string>
+ <string name="notice_notification_channel_description">Показывать уведомления, когда что-то пошло не так</string>
+ <string name="notification_permission_not_granted">Вы не предоставили разрешение уведомлений!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Добро пожаловать!</string>
+ <string name="welcome_description">Узнайте, как настроить &lt;b>yuzu&lt;/b> и перейти прямиком к эмуляции.</string>
+ <string name="get_started">Начать</string>
+ <string name="keys">Ключи</string>
+ <string name="keys_description">Выберите ваш файл &lt;b>prod.keys&lt;/b> с помощью кнопки ниже.</string>
+ <string name="select_keys">Выбрать ключи</string>
+ <string name="games">Игры</string>
+ <string name="games_description">Выберите вашу папку с &lt;b>играми&lt;/b> с помощью кнопки ниже.</string>
+ <string name="done">Готово</string>
+ <string name="done_description">Все готово.\nМожно играть!</string>
+ <string name="text_continue">Продолжить</string>
+ <string name="next">Далее</string>
+ <string name="back">Назад</string>
+ <string name="add_games">Добавить игры</string>
+ <string name="add_games_description">Выберите папку с играми</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Игры</string>
+ <string name="home_search">Поиск</string>
+ <string name="home_settings">Настройки</string>
+ <string name="empty_gamelist">Не найдены файлы или еще не выбрана папка с играми.</string>
+ <string name="search_and_filter_games">Поиск и фильтрация игр</string>
+ <string name="select_games_folder">Выберите папку с играми</string>
+ <string name="select_games_folder_description">Позволяет yuzu заполнить список игр</string>
+ <string name="add_games_warning">Пропустить выбор папки с играми?</string>
+ <string name="add_games_warning_description">Игры не будут отображаться в списке Игры, если папка не выбрана.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Найти игры</string>
+ <string name="games_dir_selected">Выбрана папка с играми</string>
+ <string name="install_prod_keys">Установить prod.keys</string>
+ <string name="install_prod_keys_description">Требуется для расшифровки розничных игр</string>
+ <string name="install_prod_keys_warning">Пропустить добавление ключей?</string>
+ <string name="install_prod_keys_warning_description">Для эмуляции розничных игр требуются действительные ключи. Если вы продолжите, будут работать только homebrew приложения.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Уведомления</string>
+ <string name="notifications_description">Предоставьте разрешение уведомлений с помощью кнопки ниже.</string>
+ <string name="give_permission">Предоставить разрешение</string>
+ <string name="notification_warning">Пропустить предоставление разрешения уведомлений?</string>
+ <string name="notification_warning_description">yuzu не сможет уведомлять вас о важной информации.</string>
+ <string name="permission_denied">Разрешение отказано</string>
+ <string name="permission_denied_description">Вы слишком часто отклоняли это разрешение, и теперь вам нужно будет вручную предоставить его в настройках системы.</string>
+ <string name="about">О нас</string>
+ <string name="about_description">Версия сборки, титры и другое</string>
+ <string name="warning_help">Помощь</string>
+ <string name="warning_skip">Пропустить</string>
+ <string name="warning_cancel">Отмена</string>
+ <string name="install_amiibo_keys">Установить ключи Amiibo</string>
+ <string name="install_amiibo_keys_description">Необходимо для использования Amiibo в играх</string>
+ <string name="invalid_keys_file">Выбран неверный файл ключей</string>
+ <string name="install_keys_success">Ключи успешно установлены</string>
+ <string name="reading_keys_failure">Ошибка при чтении ключей шифрования</string>
+ <string name="invalid_keys_error">Неверные ключи шифрования</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">Выбранный файл неверен или поврежден. Пожалуйста, пере-дампите ваши ключи.</string>
+ <string name="install_gpu_driver">Установить драйвер ГП</string>
+ <string name="install_gpu_driver_description">Установите альтернативные драйверы для потенциально лучшей производительности и/или точности</string>
+ <string name="advanced_settings">Расширенные настройки</string>
+ <string name="settings_description">Настройка параметров эмулятора</string>
+ <string name="search_recently_played">Недавно сыграно</string>
+ <string name="search_recently_added">Недавно добавлено</string>
+ <string name="search_retail">Розничные</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Открыть папку yuzu</string>
+ <string name="open_user_folder_description">Управление внутренними файлами yuzu</string>
+ <string name="theme_and_color_description">Изменение внешнего вида приложения</string>
+ <string name="no_file_manager">Не найден файловый менеджер</string>
+ <string name="notification_no_directory_link">Не удалось открыть папку yuzu</string>
+ <string name="notification_no_directory_link_description">Пожалуйста, найдите папку пользователя с помощью боковой панели файлового менеджера вручную.</string>
+ <string name="manage_save_data">Управление данными сохранений</string>
+ <string name="manage_save_data_description">Найдено данные сохранений. Пожалуйста, выберите вариант ниже.</string>
+ <string name="import_export_saves_description">Импорт или экспорт файлов сохранения</string>
+ <string name="import_export_saves_no_profile">Данные сохранений не найдены. Пожалуйста, запустите игру и повторите попытку.</string>
+ <string name="save_file_imported_success">Успешно импортировано</string>
+ <string name="save_file_invalid_zip_structure">Недопустимая структура папки сохранения</string>
+ <string name="save_file_invalid_zip_structure_description">Название первой вложенной папки должно быть идентификатором игры.</string>
+ <string name="import_saves">Импорт</string>
+ <string name="export_saves">Экспорт</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia не существует</string>
+ <string name="copied_to_clipboard">Скопировано в буфер обмена</string>
+ <string name="about_app_description">Эмулятор Switch с открытым исходным кодом</string>
+ <string name="contributors">Контрибьюторы</string>
+ <string name="contributors_description">Сделано с \u2764 от команды yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Сборка</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Ранний доступ</string>
+ <string name="get_early_access">Получить ранний доступ</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Новейшие возможности, ранний доступ к обновлениям и другое</string>
+ <string name="early_access_benefits">Преимущества раннего доступа</string>
+ <string name="cutting_edge_features">Новейшие возможности</string>
+ <string name="early_access_updates">Ранний доступ к обновлениям</string>
+ <string name="no_manual_installation">Без ручной установки</string>
+ <string name="prioritized_support">Приоритетная поддержка</string>
+ <string name="helping_game_preservation">Помощь в презервации игр</string>
+ <string name="our_eternal_gratitude">Наша бесконечная благодарность</string>
+ <string name="are_you_interested">Вы заинтересованы?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Включить ограничение скорости</string>
+ <string name="frame_limit_enable_description">Если эта функция включена, скорость эмуляции будет ограничена указанным процентом от нормальной скорости.</string>
+ <string name="frame_limit_slider">Ограничение процента cкорости</string>
+ <string name="frame_limit_slider_description">Указывает процент для ограничения скорости эмуляции. При значении по умолчанию 100% эмуляция будет ограничена нормальной скоростью. Значения выше или ниже будут увеличивать или уменьшать ограничение скорости.</string>
+ <string name="cpu_accuracy">Точность ЦП</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Режим док-станции</string>
+ <string name="use_docked_mode_description">Эмуляция режима док-станции, что увеличивает разрешение за счет снижения производительности.</string>
+ <string name="emulated_region">Эмулируемый регион</string>
+ <string name="emulated_language">Эмулируемый язык</string>
+ <string name="select_rtc_date">Выберите дату RTC</string>
+ <string name="select_rtc_time">Выберите время RTC</string>
+ <string name="use_custom_rtc">Включить пользовательский RTC</string>
+ <string name="use_custom_rtc_description">Этот параметр позволяет установить пользовательские часы реального времени отдельно от текущего системного времени</string>
+ <string name="set_custom_rtc">Установить пользовательский RTC</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Уровень точности</string>
+ <string name="renderer_resolution">Разрешение</string>
+ <string name="renderer_vsync">Режим верт. синхронизации</string>
+ <string name="renderer_aspect_ratio">Соотношение сторон</string>
+ <string name="renderer_scaling_filter">Фильтр адаптации окна</string>
+ <string name="renderer_anti_aliasing">Метод сглаживания</string>
+ <string name="renderer_force_max_clock">Принудительно заставить максимальную тактовую частоту (только для Adreno)</string>
+ <string name="renderer_force_max_clock_description">Заставляет ГП работать на максимально возможных тактовых частотах (тепловые ограничения все равно будут применяться).</string>
+ <string name="renderer_asynchronous_shaders">Использовать асинхронные шейдеры</string>
+ <string name="renderer_asynchronous_shaders_description">Компилирует шейдеры асинхронно, что уменьшает зависания, но может взамен предоставить визуальные баги.</string>
+ <string name="renderer_debug">Включить отладку графики</string>
+ <string name="renderer_debug_description">Если включено, графический API переходит в более медленный режим отладки</string>
+ <string name="use_disk_shader_cache">Использовать кэш шейдеров на диске</string>
+ <string name="use_disk_shader_cache_description">Уменьшение зависаний за счет хранения и загрузки сгенерированных шейдеров на хранилище.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Громкость</string>
+ <string name="audio_volume_description">Задает громкость аудиовыхода.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">По умолчанию</string>
+ <string name="ini_saved">Сохраненные настройки</string>
+ <string name="gameid_saved">Настройки сохранены для %1$s</string>
+ <string name="error_saving">Ошибка сохранения %1$s.ini: %2$s</string>
+ <string name="loading">Загрузка...</string>
+ <string name="reset_setting_confirmation">Хотите ли вы вернуть этот параметр к значению по умолчанию?</string>
+ <string name="reset_to_default">Сброс к настройкам по умолчанию</string>
+ <string name="reset_all_settings">Сбросить все настройки?</string>
+ <string name="reset_all_settings_description">Все дополнительные настройки будут сброшены к настройке по умолчанию. Это невозможно отменить.</string>
+ <string name="settings_reset">Настройки сброшены</string>
+ <string name="close">Закрыть</string>
+ <string name="learn_more">Узнать больше</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Выбрать драйвер ГП</string>
+ <string name="select_gpu_driver_title">Хотите заменить текущий драйвер ГП?</string>
+ <string name="select_gpu_driver_install">Установить</string>
+ <string name="select_gpu_driver_default">По умолчанию</string>
+ <string name="select_gpu_driver_install_success">Установлено %s</string>
+ <string name="select_gpu_driver_use_default">Используется стандартный драйвер ГП </string>
+ <string name="select_gpu_driver_error">Выбран неверный драйвер, используется стандартный системный!</string>
+ <string name="system_gpu_driver">Системный драйвер ГП</string>
+ <string name="installing_driver">Установка драйвера...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Настройки</string>
+ <string name="preferences_general">Общие</string>
+ <string name="preferences_system">Система</string>
+ <string name="preferences_graphics">Графика</string>
+ <string name="preferences_audio">Аудио</string>
+ <string name="preferences_theme">Тема и цвет</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">Ваш ROM зашифрованный</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Пожалуйста, следуйте инструкциям, чтобы пере-дампить ваши <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">игровые картриджи</a> или <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">установленные игры</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Пожалуйста, убедитесь, что ваш файл <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> установлен, чтобы игры можно было расшифровать.]]></string>
+ <string name="loader_error_video_core">Произошла ошибка при инициализации видеоядра.</string>
+ <string name="loader_error_video_core_description">Обычно это вызвано несовместимым драйвером ГП. Установка пользовательского драйвера ГП может решить эту проблему.</string>
+ <string name="loader_error_invalid_format">Не удалось запустить ROM</string>
+ <string name="loader_error_file_not_found">Файл ROM не существует</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Выход из эмуляции</string>
+ <string name="emulation_done">Готово</string>
+ <string name="emulation_fps_counter">Счётчик FPS</string>
+ <string name="emulation_toggle_controls">Переключение управления</string>
+ <string name="emulation_rel_stick_center">Относительный центр стика</string>
+ <string name="emulation_dpad_slide">Слайд крестовиной</string>
+ <string name="emulation_haptics">Тактильная обратная связь</string>
+ <string name="emulation_show_overlay">Показать оверлей</string>
+ <string name="emulation_toggle_all">Переключить всё</string>
+ <string name="emulation_control_adjust">Настроить оверлей</string>
+ <string name="emulation_control_scale">Масштаб</string>
+ <string name="emulation_control_opacity">Непрозрачность</string>
+ <string name="emulation_touch_overlay_reset">Сбросить оверлей</string>
+ <string name="emulation_touch_overlay_edit">Изменить оверлей</string>
+ <string name="emulation_pause">Пауза эмуляции</string>
+ <string name="emulation_unpause">Возобновление эмуляции</string>
+ <string name="emulation_input_overlay">Настройки оверлея</string>
+ <string name="emulation_game_loading">Загрузка игры...</string>
+
+ <string name="load_settings">Загрузка настроек...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Виртуальная клавиатура</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Прервать</string>
+ <string name="continue_button">Продолжить</string>
+ <string name="system_archive_not_found">Системный архив не найден</string>
+ <string name="system_archive_not_found_message">%s отсутствует. Пожалуйста, сдампите ваши системные архивы.\nПродолжение эмуляции может привести к сбоям и ошибкам.</string>
+ <string name="system_archive_general">Системный архив</string>
+ <string name="save_load_error">Ошибка сохранения/загрузки</string>
+ <string name="fatal_error">Фатальная ошибка</string>
+ <string name="fatal_error_message">Произошла фатальная ошибка. Проверьте журнал для получения подробной информации.\nПродолжение эмуляции может привести к сбоям и ошибкам.</string>
+ <string name="performance_warning">Отключение этой настройки значительно снизит производительность эмуляции! Для достижения наилучших результатов рекомендуется оставить эту настройку включенной.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Япония</string>
+ <string name="region_usa">США</string>
+ <string name="region_europe">Европа</string>
+ <string name="region_australia">Австралия</string>
+ <string name="region_china">Китай</string>
+ <string name="region_korea">Корея</string>
+ <string name="region_taiwan">Тайвань</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Японский (日本語)</string>
+ <string name="language_english">Английский (English)</string>
+ <string name="language_french">Французский (Français)</string>
+ <string name="langauge_german">Немецкий (Deutsch)</string>
+ <string name="language_italian">Итальянский (Italiano)</string>
+ <string name="language_spanish">Испанский (Español)</string>
+ <string name="language_chinese">Китайский (简体中文)</string>
+ <string name="language_korean">Корейский (한국어)</string>
+ <string name="language_dutch">Голландский (Nederlands)</string>
+ <string name="language_portuguese">Португальский (Português)</string>
+ <string name="language_russian">Русский</string>
+ <string name="language_taiwanese">Тайваньский (台湾)</string>
+ <string name="language_british_english">Британский английский</string>
+ <string name="language_canadian_french">Канадский французский (Français canadien)</string>
+ <string name="language_latin_american_spanish">Латиноамериканский испанский (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Упрощенный китайский (简体中文)</string>
+ <string name="language_traditional_chinese">Традиционный китайский (正體中文)</string>
+ <string name="language_brazilian_portuguese">Бразильский португальский (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Никакой</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Нормальная</string>
+ <string name="renderer_accuracy_high">Высокая</string>
+ <string name="renderer_accuracy_extreme">Экстрим (медленный)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Медленно)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Медленно)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Медленно)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Моментальная (выключена) </string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (Включена)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxed</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Ближайший сосед</string>
+ <string name="scaling_filter_bilinear">Билинейный</string>
+ <string name="scaling_filter_bicubic">Бикубический</string>
+ <string name="scaling_filter_gaussian">Гаусс</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™️ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Выкл.</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Стандартное (16:9)</string>
+ <string name="ratio_force_four_three">Заставить 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Заставить 21:9</string>
+ <string name="ratio_force_sixteen_ten">Заставить 16:10</string>
+ <string name="ratio_stretch">Растянуть до окна</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Точно</string>
+ <string name="cpu_accuracy_unsafe">Небезопасно</string>
+ <string name="cpu_accuracy_paranoid">Параноик (медленно)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">Крестовина</string>
+ <string name="gamepad_left_stick">Левый мини-джойстик</string>
+ <string name="gamepad_right_stick">Правый мини-джойстик</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Скриншот</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Подготовка шейдеров</string>
+ <string name="building_shaders">Постройка шейдеров</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Изменить тему приложения</string>
+ <string name="theme_default">По умолчанию</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Изменить режим темы</string>
+ <string name="theme_mode_follow_system">Системная</string>
+ <string name="theme_mode_light">Светлая</string>
+ <string name="theme_mode_dark">Темная</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Использовать черный фон</string>
+ <string name="use_black_backgrounds_description">При использовании темной темы применяйте черный фон.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-uk/strings.xml b/src/android/app/src/main/res/values-uk/strings.xml
new file mode 100644
index 000000000..0d11eb2d2
--- /dev/null
+++ b/src/android/app/src/main/res/values-uk/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">Це програмне забезпечення дозволяє запускати ігри для ігрової консолі Nintendo Switch. Ми не надаємо самі ігри або ключі.&lt;br /&gt;&lt;br /&gt;Перед початком роботи знайдіть ваш файл <![CDATA[<b> prod.keys </b>]]> у сховищі пристрою.&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">Дізнатися більше</a>]]></string>
+ <string name="emulation_notification_channel_name">Емуляція активна</string>
+ <string name="emulation_notification_channel_description">Показує постійне сповіщення, коли запущено емуляцію.</string>
+ <string name="emulation_notification_running">yuzu запущено</string>
+ <string name="notice_notification_channel_name">Сповіщення та помилки</string>
+ <string name="notice_notification_channel_description">Показувати сповіщення, коли щось пішло не так</string>
+ <string name="notification_permission_not_granted">Ви не надали дозвіл сповіщень!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Вітаємо!</string>
+ <string name="welcome_description">Дізнайтеся, як налаштувати &lt;b>yuzu&lt;/b> та перейти до емуляції.</string>
+ <string name="get_started">Розпочати</string>
+ <string name="keys">Ключі</string>
+ <string name="keys_description">Виберіть ваш файл &lt;b>prod.keys&lt;/b> за допомогою кнопки нижче.</string>
+ <string name="select_keys">Вибрати ключі</string>
+ <string name="games">Ігри</string>
+ <string name="games_description">Виберіть вашу папку з &lt;b>іграми&lt;/b> за допомогою кнопки нижче.</string>
+ <string name="done">Готово</string>
+ <string name="done_description">Все готово.\nМожна грати!</string>
+ <string name="text_continue">Продовжити</string>
+ <string name="next">Далі</string>
+ <string name="back">Назад</string>
+ <string name="add_games">Додати ігри</string>
+ <string name="add_games_description">Виберіть папку з іграми</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Ігри</string>
+ <string name="home_search">Пошук</string>
+ <string name="home_settings">Налаштування</string>
+ <string name="empty_gamelist">Не знайдено файлів або ще не вибрано папку з іграми.</string>
+ <string name="search_and_filter_games">Пошук та фільтрація ігор</string>
+ <string name="select_games_folder">Виберіть папку з іграми</string>
+ <string name="select_games_folder_description">Дозволяє yuzu заповнити список ігор</string>
+ <string name="add_games_warning">Пропустити вибір папки з іграми?</string>
+ <string name="add_games_warning_description">Ігри не відображатимуться у списку Ігри, якщо папку не вибрано.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Знайти ігри</string>
+ <string name="games_dir_selected">Вибрано папку з іграми</string>
+ <string name="install_prod_keys">Встановити prod.keys</string>
+ <string name="install_prod_keys_description">Потрібно для розшифровки роздрібних ігор</string>
+ <string name="install_prod_keys_warning">Пропустити додавання ключів?</string>
+ <string name="install_prod_keys_warning_description">Для емуляції роздрібних ігор потрібні дійсні ключі. Якщо ви продовжите, працюватимуть тільки homebrew додатки.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Сповіщення</string>
+ <string name="notifications_description">Надайте дозвіл сповіщень за допомогою кнопки нижче.</string>
+ <string name="give_permission">Надати дозвіл</string>
+ <string name="notification_warning">Пропустити надання дозволу сповіщень?</string>
+ <string name="notification_warning_description">yuzu не зможе повідомляти вас про важливу інформацію.</string>
+ <string name="permission_denied">У дозволі відмовлено</string>
+ <string name="permission_denied_description">Ви занадто часто відхиляли цей дозвіл, тож тепер вам потрібно буде вручну надати його в системних налаштуваннях.</string>
+ <string name="about">Про нас</string>
+ <string name="about_description">Версія збірки, титри та інше</string>
+ <string name="warning_help">Допомога</string>
+ <string name="warning_skip">Пропустити</string>
+ <string name="warning_cancel">Відміна</string>
+ <string name="install_amiibo_keys">Встановити ключі Amiibo</string>
+ <string name="install_amiibo_keys_description">Необхідно для використання Amiibo в іграх</string>
+ <string name="invalid_keys_file">Вибрано неправильний файл ключів</string>
+ <string name="install_keys_success">Ключі успішно встановлено</string>
+ <string name="reading_keys_failure">Помилка під час зчитування ключів шифрування</string>
+ <string name="invalid_keys_error">Невірні ключі шифрування</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">Обраний файл невірний або пошкоджений. Будь ласка, пере-дампіть ваші ключі.</string>
+ <string name="install_gpu_driver">Встановити драйвер ГП</string>
+ <string name="install_gpu_driver_description">Встановіть альтернативні драйвери для потенційно кращої продуктивності та/або точності</string>
+ <string name="advanced_settings">Розширені налаштування</string>
+ <string name="settings_description">Налаштування параметрів емулятора</string>
+ <string name="search_recently_played">Нещодавно зіграно</string>
+ <string name="search_recently_added">Нещодавно додано</string>
+ <string name="search_retail">Роздрібні</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Відкрити папку yuzu</string>
+ <string name="open_user_folder_description">Керування внутрішніми файлами yuzu</string>
+ <string name="theme_and_color_description">Змінити зовнішній вигляд застосунку</string>
+ <string name="no_file_manager">Не знайдено файлового менеджера</string>
+ <string name="notification_no_directory_link">Не вдалося відкрити папку yuzu</string>
+ <string name="notification_no_directory_link_description">Будь ласка, знайдіть папку користувача за допомогою бічної панелі файлового менеджера вручну.</string>
+ <string name="manage_save_data">Керування даними збережень</string>
+ <string name="manage_save_data_description">Знайдено дані збережень. Будь ласка, виберіть варіант нижче.</string>
+ <string name="import_export_saves_description">Імпорт або експорт файлів збереження</string>
+ <string name="import_export_saves_no_profile">Дані збережень не знайдено. Будь ласка, запустіть гру та повторіть спробу.</string>
+ <string name="save_file_imported_success">Успішно імпортовано</string>
+ <string name="save_file_invalid_zip_structure">Неприпустима структура папки збереження</string>
+ <string name="save_file_invalid_zip_structure_description">Назва першої вкладеної папки має бути ідентифікатором гри.</string>
+ <string name="import_saves">Імпорт</string>
+ <string name="export_saves">Експорт</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia не існує</string>
+ <string name="copied_to_clipboard">Скопійовано в буфер обміну</string>
+ <string name="about_app_description">Емулятор Switch із відкритим першокодом</string>
+ <string name="contributors">Вкладники</string>
+ <string name="contributors_description">Зроблено з \u2764 від команди yuzu</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">Збірка</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Ранній доступ</string>
+ <string name="get_early_access">Отримати ранній доступ</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Новітні можливості, ранній доступ до оновлень та інше</string>
+ <string name="early_access_benefits">Переваги раннього доступу</string>
+ <string name="cutting_edge_features">Новітні можливості</string>
+ <string name="early_access_updates">Ранній доступ до оновлень</string>
+ <string name="no_manual_installation">Без ручного встановлення</string>
+ <string name="prioritized_support">Пріоритетна підтримка</string>
+ <string name="helping_game_preservation">Допомога в презервації ігор</string>
+ <string name="our_eternal_gratitude">Наша нескінченна вдячність</string>
+ <string name="are_you_interested">Ви зацікавлені?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Увімкнути обмеження швидкості</string>
+ <string name="frame_limit_enable_description">Якщо цю функцію ввімкнено, швидкість емуляції буде обмежена зазначеним відсотком від нормальної швидкості.</string>
+ <string name="frame_limit_slider">Обмеження відсотка швидкості</string>
+ <string name="frame_limit_slider_description">Вказує відсоток для обмеження швидкості емуляції. При значенні за замовчуванням 100% емуляція буде обмежена нормальною швидкістю. Значення вище або нижче збільшуватимуть або зменшуватимуть обмеження швидкості.</string>
+ <string name="cpu_accuracy">Точність ЦП</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Режим док-станції</string>
+ <string name="use_docked_mode_description">Емуляція режиму док-станції, що збільшує роздільну здатність за рахунок зниження продуктивності.</string>
+ <string name="emulated_region">Емульований регіон</string>
+ <string name="emulated_language">Емульована мова</string>
+ <string name="select_rtc_date">Оберіть дату RTC</string>
+ <string name="select_rtc_time">Оберіть час RTC</string>
+ <string name="use_custom_rtc">Увімкнути користувацький RTC</string>
+ <string name="use_custom_rtc_description">Цей параметр дає змогу встановити користувацький годинник реального часу окремо від поточного системного часу</string>
+ <string name="set_custom_rtc">Встановити користувацький RTC</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">Рівень точності</string>
+ <string name="renderer_resolution">Роздільна здатність</string>
+ <string name="renderer_vsync">Режим верт. синхронізації</string>
+ <string name="renderer_aspect_ratio">Співвідношення сторін</string>
+ <string name="renderer_scaling_filter">Фільтр адаптації вікна</string>
+ <string name="renderer_anti_aliasing">Метод згладжування</string>
+ <string name="renderer_force_max_clock">Примусово змусити максимальну тактову частоту (тільки для Adreno)</string>
+ <string name="renderer_force_max_clock_description">Змушує ГП працювати на максимально можливих тактових частотах (теплові обмеження все одно будуть застосовуватися).</string>
+ <string name="renderer_asynchronous_shaders">Використовувати асинхронні шейдери</string>
+ <string name="renderer_asynchronous_shaders_description">Компілює шейдери асинхронно, що зменшує зависання, але може натомість надати візуальні баги.</string>
+ <string name="renderer_debug">Увімкнути налагодження графіки</string>
+ <string name="renderer_debug_description">Якщо увімкнено, графічний API переходить у повільніший режим налагодження</string>
+ <string name="use_disk_shader_cache">Використовувати кеш шейдерів на диску</string>
+ <string name="use_disk_shader_cache_description">Зменшення зависань завдяки зберіганню та завантаженню згенерованих шейдерів на сховище.</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">Гучність</string>
+ <string name="audio_volume_description">Вказує гучність аудіовиходу.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">За замовчуванням</string>
+ <string name="ini_saved">Збережені налаштування</string>
+ <string name="gameid_saved">Налаштування збережені для %1$s</string>
+ <string name="error_saving">Помилка збереження %1$s.ini: %2$s</string>
+ <string name="loading">Завантаження...</string>
+ <string name="reset_setting_confirmation">Чи хочете ви повернути цей параметр до значення за замовчуванням?</string>
+ <string name="reset_to_default">Скидання до налаштувань за замовчуванням</string>
+ <string name="reset_all_settings">Скинути всі налаштування</string>
+ <string name="reset_all_settings_description">Усі додаткові налаштування буде скинуто до налаштування за замовчуванням. Це неможливо скасувати.</string>
+ <string name="settings_reset">Налаштування скинуто</string>
+ <string name="close">Закрити</string>
+ <string name="learn_more">Дізнатися більше</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Вибрати драйвер ГП</string>
+ <string name="select_gpu_driver_title">Хочете замінити поточний драйвер ГП?</string>
+ <string name="select_gpu_driver_install">Встановити</string>
+ <string name="select_gpu_driver_default">За замовчуванням</string>
+ <string name="select_gpu_driver_install_success">Встановлено %s</string>
+ <string name="select_gpu_driver_use_default">Використовується стандартний драйвер ГП</string>
+ <string name="select_gpu_driver_error">Обрано неправильний драйвер, використовується стандартний системний!</string>
+ <string name="system_gpu_driver">Системний драйвер ГП</string>
+ <string name="installing_driver">Встановлення драйвера...</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Налаштування</string>
+ <string name="preferences_general">Загальні</string>
+ <string name="preferences_system">Система</string>
+ <string name="preferences_graphics">Графіка</string>
+ <string name="preferences_audio">Аудіо</string>
+ <string name="preferences_theme">Тема і колір</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">Ваш ROM зашифрований</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Будь ласка, дотримуйтесь інструкцій, щоб пере-дампити ваші <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">ігрові картриджі</a> або <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">встановлені ігри</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Будь ласка, переконайтеся, що ваш файл <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> встановлено, щоб ігри можна було розшифрувати.]]></string>
+ <string name="loader_error_video_core">Сталася помилка під час ініціалізації відеоядра.</string>
+ <string name="loader_error_video_core_description">Зазвичай це спричинено несумісним драйвером ГП. Встановлення користувацького драйвера ГП може вирішити цю проблему.</string>
+ <string name="loader_error_invalid_format">Не вдалося запустити ROM</string>
+ <string name="loader_error_file_not_found">Файл ROM не існує</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Вихід з емуляції</string>
+ <string name="emulation_done">Готово</string>
+ <string name="emulation_fps_counter">Лічильник FPS</string>
+ <string name="emulation_toggle_controls">Перемикання керування</string>
+ <string name="emulation_rel_stick_center">Відносний центр стіка</string>
+ <string name="emulation_dpad_slide">Слайд хрестовиною</string>
+ <string name="emulation_haptics">Тактильний зворотний зв\'язок</string>
+ <string name="emulation_show_overlay">Показати оверлей</string>
+ <string name="emulation_toggle_all">Перемкнути все</string>
+ <string name="emulation_control_adjust">Налаштувати оверлей</string>
+ <string name="emulation_control_scale">Масштаб</string>
+ <string name="emulation_control_opacity">Непрозорість</string>
+ <string name="emulation_touch_overlay_reset">Скинути оверлей</string>
+ <string name="emulation_touch_overlay_edit">Змінити оверлей</string>
+ <string name="emulation_pause">Пауза емуляції</string>
+ <string name="emulation_unpause">Відновлення емуляції</string>
+ <string name="emulation_input_overlay">Налаштування оверлея</string>
+ <string name="emulation_game_loading">Завантаження гри...</string>
+
+ <string name="load_settings">Завантаження налаштувань...</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Віртуальна клавіатура</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Перервати</string>
+ <string name="continue_button">Продовжити</string>
+ <string name="system_archive_not_found">Системний архів не знайдено</string>
+ <string name="system_archive_not_found_message">%s відсутній. Будь ласка, здампіть ваші системні архіви.\nПродовження емуляції може призвести до збоїв і помилок.</string>
+ <string name="system_archive_general">Системний архів</string>
+ <string name="save_load_error">Помилка збереження/завантаження</string>
+ <string name="fatal_error">Фатальна помилка</string>
+ <string name="fatal_error_message">Сталася фатальна помилка. Перевірте журнал для отримання докладної інформації.\nПродовження емуляції може призвести до збоїв і помилок.</string>
+ <string name="performance_warning">Вимкнення цього налаштування значно знизить продуктивність емуляції! Для досягнення найкращих результатів рекомендується залишити це налаштування увімкненим.</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Японія</string>
+ <string name="region_usa">США</string>
+ <string name="region_europe">Європа</string>
+ <string name="region_australia">Австралія</string>
+ <string name="region_china">Китай</string>
+ <string name="region_korea">Корея</string>
+ <string name="region_taiwan">Тайвань</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Японська (日本語)</string>
+ <string name="language_english">Англійська (English)</string>
+ <string name="language_french">Французька (Français)</string>
+ <string name="langauge_german">Німецька (Deutsch)</string>
+ <string name="language_italian">Італійська (Italiano)</string>
+ <string name="language_spanish">Іспанська (Español)</string>
+ <string name="language_chinese">Китайскька (简体中文)</string>
+ <string name="language_korean">Корейська (한국어)</string>
+ <string name="language_dutch">Голландська (Nederlands)</string>
+ <string name="language_portuguese">Португальська (Português)</string>
+ <string name="language_russian">Російська (Русский)</string>
+ <string name="language_taiwanese">Тайванська (台湾)</string>
+ <string name="language_british_english">Британська англійська</string>
+ <string name="language_canadian_french">Канадська французька (Français canadien)</string>
+ <string name="language_latin_american_spanish">Латиноамериканська іспанська (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Спрощена китайська (简体中文)</string>
+ <string name="language_traditional_chinese">Традиційна китайська (正體中文)</string>
+ <string name="language_brazilian_portuguese">Бразильська португальська (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">Вимкнено</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Нормальна</string>
+ <string name="renderer_accuracy_high">Висока</string>
+ <string name="renderer_accuracy_extreme">Екстрим (повільно)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Повільно)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Повільно)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Повільно)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Моментальна (вимкнена)</string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (ввімкнута)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxed</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Найближчий сусід</string>
+ <string name="scaling_filter_bilinear">Білінійне</string>
+ <string name="scaling_filter_bicubic">Бікубічне</string>
+ <string name="scaling_filter_gaussian">Гауса</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">Вимкнено</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">За замовчуванням (16:9)</string>
+ <string name="ratio_force_four_three">Змусити 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Змусити 21:9</string>
+ <string name="ratio_force_sixteen_ten">Змусити 16:10</string>
+ <string name="ratio_stretch">Розтягнути до вікна</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Точно</string>
+ <string name="cpu_accuracy_unsafe">Небезпечно</string>
+ <string name="cpu_accuracy_paranoid">Параноїк (повільно)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">Кнопки напрямків</string>
+ <string name="gamepad_left_stick">Лівий міні-джойстик</string>
+ <string name="gamepad_right_stick">Правий міні-джойстик</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Знімок екрану</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Підготовка шейдерів</string>
+ <string name="building_shaders">Побудова шейдерів</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Змінити тему застосунку</string>
+ <string name="theme_default">За замовчуванням</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Змінити режим теми</string>
+ <string name="theme_mode_follow_system">Системна</string>
+ <string name="theme_mode_light">Світла</string>
+ <string name="theme_mode_dark">Темна</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Використовувати чорне тло</string>
+ <string name="use_black_backgrounds_description">У разі використання темної теми застосовуйте чорне тло.</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-v31/themes.xml b/src/android/app/src/main/res/values-v31/themes.xml
new file mode 100644
index 000000000..5d3a86bf6
--- /dev/null
+++ b/src/android/app/src/main/res/values-v31/themes.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <style name="Theme.Yuzu.Main.MaterialYou" parent="Theme.Yuzu.Main">
+ <item name="colorPrimary">@color/m3_sys_color_dynamic_light_primary</item>
+ <item name="colorOnPrimary">@color/m3_sys_color_dynamic_light_on_primary</item>
+ <item name="colorPrimaryContainer">@color/m3_sys_color_dynamic_light_primary_container</item>
+ <item name="colorOnPrimaryContainer">@color/m3_sys_color_dynamic_light_on_primary_container</item>
+ <item name="colorSecondary">@color/m3_sys_color_dynamic_light_secondary</item>
+ <item name="colorOnSecondary">@color/m3_sys_color_dynamic_light_on_secondary</item>
+ <item name="colorSecondaryContainer">@color/m3_sys_color_dynamic_light_secondary_container</item>
+ <item name="colorOnSecondaryContainer">@color/m3_sys_color_dynamic_light_on_secondary_container</item>
+ <item name="colorTertiary">@color/m3_sys_color_dynamic_light_tertiary</item>
+ <item name="colorOnTertiary">@color/m3_sys_color_dynamic_light_on_tertiary</item>
+ <item name="colorTertiaryContainer">@color/m3_sys_color_dynamic_light_tertiary_container</item>
+ <item name="colorOnTertiaryContainer">@color/m3_sys_color_dynamic_light_on_tertiary_container</item>
+ <item name="android:colorBackground">@color/m3_sys_color_dynamic_light_background</item>
+ <item name="colorOnBackground">@color/m3_sys_color_dynamic_light_on_background</item>
+ <item name="colorSurface">@color/m3_sys_color_dynamic_light_surface</item>
+ <item name="colorOnSurface">@color/m3_sys_color_dynamic_light_on_surface</item>
+ <item name="colorSurfaceVariant">@color/m3_sys_color_dynamic_light_surface_variant</item>
+ <item name="colorOnSurfaceVariant">@color/m3_sys_color_dynamic_light_on_surface_variant</item>
+ <item name="colorOutline">@color/m3_sys_color_dynamic_light_outline</item>
+ <item name="colorOnSurfaceInverse">@color/m3_sys_color_dynamic_light_on_surface_variant</item>
+ <item name="colorSurfaceInverse">@color/m3_sys_color_dynamic_light_surface_variant</item>
+ <item name="colorPrimaryInverse">@color/m3_sys_color_dynamic_light_inverse_primary</item>
+
+ <item name="materialAlertDialogTheme">@style/ThemeOverlay.Material3.MaterialAlertDialog</item>
+ </style>
+
+</resources>
diff --git a/src/android/app/src/main/res/values-w600dp/bools.xml b/src/android/app/src/main/res/values-w600dp/bools.xml
new file mode 100644
index 000000000..b6833a702
--- /dev/null
+++ b/src/android/app/src/main/res/values-w600dp/bools.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="small_layout">false</bool>
+</resources>
diff --git a/src/android/app/src/main/res/values-w600dp/dimens.xml b/src/android/app/src/main/res/values-w600dp/dimens.xml
new file mode 100644
index 000000000..128319e27
--- /dev/null
+++ b/src/android/app/src/main/res/values-w600dp/dimens.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <dimen name="spacing_navigation">0dp</dimen>
+ <dimen name="spacing_navigation_rail">80dp</dimen>
+</resources>
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
new file mode 100644
index 000000000..e00bbaa2e
--- /dev/null
+++ b/src/android/app/src/main/res/values-zh-rCN/strings.xml
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">此软件可以运行 Nintendo Switch 游戏,但不包含任何游戏和密钥文件。&lt;br /&gt;&lt;br /&gt;在开始前,请找到放置于设备存储中的 <![CDATA[<b> prod.keys </b>]]> 文件。&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">了解更多</a>]]></string>
+ <string name="emulation_notification_channel_name">正在进行模拟</string>
+ <string name="emulation_notification_channel_description">在模拟运行时显示持久通知。</string>
+ <string name="emulation_notification_running">yuzu 正在运行</string>
+ <string name="notice_notification_channel_name">通知及错误提醒</string>
+ <string name="notice_notification_channel_description">当发生错误时显示通知。</string>
+ <string name="notification_permission_not_granted">未授予通知权限!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">欢迎!</string>
+ <string name="welcome_description">了解如何设置 &lt;b>yuzu&lt;/b> 并进行模拟。</string>
+ <string name="get_started">开始</string>
+ <string name="keys">密钥文件</string>
+ <string name="keys_description">使用下方的按钮来选择你的 &lt;b>prod.keys&lt;/b> 文件。</string>
+ <string name="select_keys">选择密钥文件</string>
+ <string name="games">游戏</string>
+ <string name="games_description">使用下方的按钮选择你的 &lt;b>游戏&lt;/b> 文件夹。</string>
+ <string name="done">完成</string>
+ <string name="done_description">你完成了全部设置。\n玩的开心!</string>
+ <string name="text_continue">继续</string>
+ <string name="next">下一步</string>
+ <string name="back">上一步</string>
+ <string name="add_games">添加游戏</string>
+ <string name="add_games_description">选择你的游戏文件夹</string>
+
+ <!-- Home strings -->
+ <string name="home_games">游戏</string>
+ <string name="home_search">搜索</string>
+ <string name="home_settings">设置</string>
+ <string name="empty_gamelist">找不到游戏,或者尚未选择游戏文件夹。</string>
+ <string name="search_and_filter_games">搜索游戏</string>
+ <string name="select_games_folder">选择游戏文件夹</string>
+ <string name="select_games_folder_description">允许 yuzu 填充游戏列表</string>
+ <string name="add_games_warning">跳过选择游戏文件夹?</string>
+ <string name="add_games_warning_description">如果未选择游戏文件夹,游戏将不会显示在游戏列表中。</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">搜索游戏</string>
+ <string name="games_dir_selected">已选择游戏文件夹</string>
+ <string name="install_prod_keys">安装 prod.keys 文件</string>
+ <string name="install_prod_keys_description">需要密钥文件来解密游戏</string>
+ <string name="install_prod_keys_warning">跳过添加密钥文件?</string>
+ <string name="install_prod_keys_warning_description">对于商业游戏,需要有效的密钥文件才能运行。如果没有密钥文件,将只能运行自制软件。</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">通知</string>
+ <string name="notifications_description">使用下方的按钮授予通知权限。</string>
+ <string name="give_permission">授予权限</string>
+ <string name="notification_warning">跳过授予通知权限?</string>
+ <string name="notification_warning_description">yuzu 将无法通知您重要信息。</string>
+ <string name="permission_denied">授权遭拒</string>
+ <string name="permission_denied_description">您曾多次拒绝权限请求,现在您需要在系统设置中手动授予权限。</string>
+ <string name="about">关于</string>
+ <string name="about_description">开发版本、贡献者、以及更多</string>
+ <string name="warning_help">帮助</string>
+ <string name="warning_skip">跳过</string>
+ <string name="warning_cancel">取消</string>
+ <string name="install_amiibo_keys">安装 Amiibo 密钥文件</string>
+ <string name="install_amiibo_keys_description">在遊戏中使用 Amiibo 时必需</string>
+ <string name="invalid_keys_file">选择的密钥文件无效</string>
+ <string name="install_keys_success">密钥文件已成功安装</string>
+ <string name="reading_keys_failure">读取加密密钥时出错</string>
+ <string name="invalid_keys_error">无效的加密密钥</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">选择的密钥文件不正确或已损坏。请重新转储密钥文件。</string>
+ <string name="install_gpu_driver">安装 GPU 驱动</string>
+ <string name="install_gpu_driver_description">安装替代的驱动程序以获得更好的性能和精度</string>
+ <string name="advanced_settings">高级选项</string>
+ <string name="settings_description">更改模拟器设置</string>
+ <string name="search_recently_played">最近游玩</string>
+ <string name="search_recently_added">最近添加</string>
+ <string name="search_retail">商业游戏</string>
+ <string name="search_homebrew">自制游戏</string>
+ <string name="open_user_folder">打开 yuzu 文件夹</string>
+ <string name="open_user_folder_description">管理 yuzu 内部文件</string>
+ <string name="theme_and_color_description">更改外观</string>
+ <string name="no_file_manager">找不到可用的文件管理器</string>
+ <string name="notification_no_directory_link">无法打开 yuzu 文件夹</string>
+ <string name="notification_no_directory_link_description">请使用文件管理器的侧部面板手动定位用户文件夹。</string>
+ <string name="manage_save_data">管理存档数据</string>
+ <string name="manage_save_data_description">已找到存档数据,请选择下方的选项。</string>
+ <string name="import_export_saves_description">导入或导出存档</string>
+ <string name="import_export_saves_no_profile">找不到存档数据,请启动游戏并重试。</string>
+ <string name="save_file_imported_success">已成功导入存档</string>
+ <string name="save_file_invalid_zip_structure">无效的存档目录</string>
+ <string name="save_file_invalid_zip_structure_description">第一个子文件夹名称必须为当前游戏的 ID。</string>
+ <string name="import_saves">导入</string>
+ <string name="export_saves">导出</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia 不真实</string>
+ <string name="copied_to_clipboard">已复制到剪贴板</string>
+ <string name="about_app_description">一款开放源代码的 Switch 模拟器</string>
+ <string name="contributors">贡献者</string>
+ <string name="contributors_description">使用来自 yuzu 团队的 \u2764 制作</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">构建版本</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">抢先体验</string>
+ <string name="get_early_access">取得抢先体验</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">最新的功能、抢先更新、以及更多</string>
+ <string name="early_access_benefits">抢先体验的权益</string>
+ <string name="cutting_edge_features">最新功能</string>
+ <string name="early_access_updates">抢先更新</string>
+ <string name="no_manual_installation">无需手动安装</string>
+ <string name="prioritized_support">优先支持</string>
+ <string name="helping_game_preservation">帮助保留游戏</string>
+ <string name="our_eternal_gratitude">我们真诚的感激</string>
+ <string name="are_you_interested">您对此感兴趣吗?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">启用运行速度限制</string>
+ <string name="frame_limit_enable_description">启用后,模拟速度将限制在正常运行速度的指定百分比。</string>
+ <string name="frame_limit_slider">限制速度百分比</string>
+ <string name="frame_limit_slider_description">指定限制模拟速度的百分比。预设为 100%,此时模拟速度将被限制为标准速度。更高或更低的值将增加或降低速度限制上限。</string>
+ <string name="cpu_accuracy">CPU 精度</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">主机模式</string>
+ <string name="use_docked_mode_description">以主机模式进行模拟,牺牲性能并提高画面分辨率。</string>
+ <string name="emulated_region">模拟区域</string>
+ <string name="emulated_language">模拟语言</string>
+ <string name="select_rtc_date">选择日期</string>
+ <string name="select_rtc_time">选择时间</string>
+ <string name="use_custom_rtc">启用自定义系统时钟</string>
+ <string name="use_custom_rtc_description">此选项允许您设置与目前系统时间相独立的自定义系统时钟</string>
+ <string name="set_custom_rtc">设置自定义系统时钟</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">精度等级</string>
+ <string name="renderer_resolution">分辨率</string>
+ <string name="renderer_vsync">垂直同步模式</string>
+ <string name="renderer_aspect_ratio">屏幕纵横比</string>
+ <string name="renderer_scaling_filter">窗口滤镜</string>
+ <string name="renderer_anti_aliasing">抗锯齿方式</string>
+ <string name="renderer_force_max_clock">强制最大时钟 (仅限 Adreno)</string>
+ <string name="renderer_force_max_clock_description">强制 GPU 以最大时钟运行 (仍被温控限制)。</string>
+ <string name="renderer_asynchronous_shaders">使用异步着色器</string>
+ <string name="renderer_asynchronous_shaders_description">异步编译着色器,减少卡顿,但可能引入故障。</string>
+ <string name="renderer_debug">启用图形调试</string>
+ <string name="renderer_debug_description">启用时,图形 API 将进入较慢的调试模式。</string>
+ <string name="use_disk_shader_cache">使用磁盘着色器缓存</string>
+ <string name="use_disk_shader_cache_description">将生成的着色器缓存于磁盘中并进行读取以减少卡顿。</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">音量</string>
+ <string name="audio_volume_description">指定输出的音量。</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">系统默认</string>
+ <string name="ini_saved">已保存设置</string>
+ <string name="gameid_saved">已保存 %1$s 的设置</string>
+ <string name="error_saving">保存 %1$s.ini 时出错: %2$s</string>
+ <string name="loading">加载中…</string>
+ <string name="reset_setting_confirmation">您要将此设定重设为默认值吗?</string>
+ <string name="reset_to_default">恢复默认</string>
+ <string name="reset_all_settings">重置所有设置项?</string>
+ <string name="reset_all_settings_description">所有高级选项都将被重设,此动作无法还原。</string>
+ <string name="settings_reset">重设设置项</string>
+ <string name="close">关闭</string>
+ <string name="learn_more">了解更多</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">选择 GPU 驱动程序</string>
+ <string name="select_gpu_driver_title">要取代您当前的 GPU 驱动程序吗?</string>
+ <string name="select_gpu_driver_install">安装</string>
+ <string name="select_gpu_driver_default">系统默认</string>
+ <string name="select_gpu_driver_install_success">已安装 %s</string>
+ <string name="select_gpu_driver_use_default">使用默认 GPU 驱动程序</string>
+ <string name="select_gpu_driver_error">选择的驱动程序无效,将使用系统默认的驱动程序!</string>
+ <string name="system_gpu_driver">系统 GPU 驱动程序</string>
+ <string name="installing_driver">正在安装驱动程序…</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">设置</string>
+ <string name="preferences_general">通用</string>
+ <string name="preferences_system">系统</string>
+ <string name="preferences_graphics">图形</string>
+ <string name="preferences_audio">声音</string>
+ <string name="preferences_theme">主题和色彩</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">您的 ROM 已加密</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[请参考指南重新转储你的<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">游戏卡带</a>或<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">已安装的游戏</a>。]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[请确保 <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> 文件已安装,使得游戏可以被解密。]]></string>
+ <string name="loader_error_video_core">初始化视频核心时发生错误</string>
+ <string name="loader_error_video_core_description">这通常由不兼容的 GPU 驱动程序造成,安装自定义 GPU 驱动程序可能解决此问题。</string>
+ <string name="loader_error_invalid_format">无法载入 ROM</string>
+ <string name="loader_error_file_not_found">ROM 文件不存在</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">退出模拟</string>
+ <string name="emulation_done">完成</string>
+ <string name="emulation_fps_counter">FPS 计数器</string>
+ <string name="emulation_toggle_controls">按键切换</string>
+ <string name="emulation_rel_stick_center">相对摇杆中心</string>
+ <string name="emulation_dpad_slide">十字方向键滑动</string>
+ <string name="emulation_haptics">触觉反馈</string>
+ <string name="emulation_show_overlay">显示虚拟按键</string>
+ <string name="emulation_toggle_all">全部切换</string>
+ <string name="emulation_control_adjust">调整虚拟按键</string>
+ <string name="emulation_control_scale">缩放</string>
+ <string name="emulation_control_opacity">不透明度</string>
+ <string name="emulation_touch_overlay_reset">重设虚拟按键</string>
+ <string name="emulation_touch_overlay_edit">编辑虚拟按键</string>
+ <string name="emulation_pause">暂停模拟</string>
+ <string name="emulation_unpause">继续模拟</string>
+ <string name="emulation_input_overlay">虚拟按键选项</string>
+ <string name="emulation_game_loading">载入游戏中…</string>
+
+ <string name="load_settings">正在载入设定…</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">软件键盘</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">中止</string>
+ <string name="continue_button">继续</string>
+ <string name="system_archive_not_found">未找到系统档案</string>
+ <string name="system_archive_not_found_message">%s 丢失,请转储您的系统档案。\n继续模拟可能造成崩溃和错误。</string>
+ <string name="system_archive_general">系统档案</string>
+ <string name="save_load_error">保存/载入发生错误</string>
+ <string name="fatal_error">致命错误</string>
+ <string name="fatal_error_message">发生致命错误,请查阅日志获取详细信息。\n继续模拟可能会造成崩溃和错误。</string>
+ <string name="performance_warning">关闭此项会显著降低模拟性能!建议您将此项保持为启用状态。</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">日本</string>
+ <string name="region_usa">美国</string>
+ <string name="region_europe">欧洲</string>
+ <string name="region_australia">澳大利亚</string>
+ <string name="region_china">中国</string>
+ <string name="region_korea">韩国</string>
+ <string name="region_taiwan">中国台湾</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">日语 (日本語)</string>
+ <string name="language_english">英语 (English)</string>
+ <string name="language_french">法语 (Français)</string>
+ <string name="langauge_german">德语 (Deutsch)</string>
+ <string name="language_italian">意大利语 (Italiano)</string>
+ <string name="language_spanish">西班牙语 (Español)</string>
+ <string name="language_chinese">中文 (简体中文)</string>
+ <string name="language_korean">韩语 (한국어)</string>
+ <string name="language_dutch">荷兰语 (Nederlands)</string>
+ <string name="language_portuguese">葡萄牙语 (Português)</string>
+ <string name="language_russian">俄语 (Русский)</string>
+ <string name="language_taiwanese">台湾中文 (台灣)</string>
+ <string name="language_british_english">英式英语</string>
+ <string name="language_canadian_french">加拿大法语 (Français canadien)</string>
+ <string name="language_latin_american_spanish">拉丁美洲西班牙语 (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">简体中文 (简体中文)</string>
+ <string name="language_traditional_chinese">繁体中文 (正體中文)</string>
+ <string name="language_brazilian_portuguese">巴西葡萄牙语 (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">无</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">正常</string>
+ <string name="renderer_accuracy_high">高</string>
+ <string name="renderer_accuracy_extreme">极高 (慢速)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (慢速)</string>
+ <string name="resolution_three">3X (2160p/3240p) (慢速)</string>
+ <string name="resolution_four">4X (2880p/4320p) (慢速)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">即时 (关闭)</string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (开启)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxed</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">近邻取样</string>
+ <string name="scaling_filter_bilinear">双线性过滤</string>
+ <string name="scaling_filter_bicubic">双三线过滤</string>
+ <string name="scaling_filter_gaussian">高斯模糊</string>
+ <string name="scaling_filter_scale_force">强制缩放</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™️ 超级分辨率锐画技术</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">无</string>
+ <string name="anti_aliasing_fxaa">快速近似抗锯齿</string>
+ <string name="anti_aliasing_smaa">子像素形态学抗锯齿</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">默认 (16:9)</string>
+ <string name="ratio_force_four_three">强制 4:3</string>
+ <string name="ratio_force_twenty_one_nine">强制 21:9</string>
+ <string name="ratio_force_sixteen_ten">强制 16:10</string>
+ <string name="ratio_stretch">拉伸窗口</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">高精度</string>
+ <string name="cpu_accuracy_unsafe">低精度</string>
+ <string name="cpu_accuracy_paranoid">偏执模式 (慢速)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">十字方向键</string>
+ <string name="gamepad_left_stick">左摇杆</string>
+ <string name="gamepad_right_stick">右摇杆</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">截图</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">正在准备着色器</string>
+ <string name="building_shaders">正在编译着色器</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">切换主题</string>
+ <string name="theme_default">系统默认</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">主题模式</string>
+ <string name="theme_mode_follow_system">跟随系统</string>
+ <string name="theme_mode_light">浅色</string>
+ <string name="theme_mode_dark">深色</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">使用黑色背景</string>
+ <string name="use_black_backgrounds_description">使用深色主题时,套用黑色背景。</string>
+
+</resources>
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
new file mode 100644
index 000000000..a54d04248
--- /dev/null
+++ b/src/android/app/src/main/res/values-zh-rTW/strings.xml
@@ -0,0 +1,336 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_disclaimer">此軟體可以執行 Nintendo Switch 主機遊戲,但不包含任何遊戲和金鑰。&lt;br /&gt;&lt;br /&gt;在您開始前,請找到放置於您的裝置儲存空間的 <![CDATA[<b> prod.keys </b>]]> 檔案。&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href=\"https://yuzu-emu.org/help/quickstart\">深入瞭解</a>]]></string>
+ <string name="emulation_notification_channel_name">模擬進行中</string>
+ <string name="emulation_notification_channel_description">在模擬執行時顯示持續通知。</string>
+ <string name="emulation_notification_running">yuzu 正在執行</string>
+ <string name="notice_notification_channel_name">通知和錯誤</string>
+ <string name="notice_notification_channel_description">發生錯誤時顯示通知。</string>
+ <string name="notification_permission_not_granted">未授予通知權限!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">歡迎!</string>
+ <string name="welcome_description">瞭解如何設定 &lt;b>yuzu&lt;/b> 並進入模擬。</string>
+ <string name="get_started">開始使用</string>
+ <string name="keys">金鑰</string>
+ <string name="keys_description">使用下方的按鈕選取您的 &lt;b>prod.keys&lt;/b> 檔案。</string>
+ <string name="select_keys">選取金鑰</string>
+ <string name="games">遊戲</string>
+ <string name="games_description">使用下方的按鈕選取您的&lt;b>遊戲&lt;/b>資料夾。</string>
+ <string name="done">完成</string>
+ <string name="done_description">您已準備就緒。\n盡情遊玩您的遊戲!</string>
+ <string name="text_continue">繼續</string>
+ <string name="next">下一步</string>
+ <string name="back">上一步</string>
+ <string name="add_games">新增遊戲</string>
+ <string name="add_games_description">選取您的遊戲資料夾</string>
+
+ <!-- Home strings -->
+ <string name="home_games">遊戲</string>
+ <string name="home_search">搜尋</string>
+ <string name="home_settings">設定</string>
+ <string name="empty_gamelist">找不到檔案,或者尚未選取遊戲目錄。</string>
+ <string name="search_and_filter_games">搜尋並篩選遊戲</string>
+ <string name="select_games_folder">選取遊戲資料夾</string>
+ <string name="select_games_folder_description">一律允許 yuzu 填入遊戲清單</string>
+ <string name="add_games_warning">跳過選取遊戲資料夾?</string>
+ <string name="add_games_warning_description">如果資料夾未選取,遊戲將不會顯示在遊戲清單。</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">搜尋遊戲</string>
+ <string name="games_dir_selected">遊戲目錄已選取</string>
+ <string name="install_prod_keys">安裝 prod.keys</string>
+ <string name="install_prod_keys_description">需要解密零售遊戲</string>
+ <string name="install_prod_keys_warning">跳過新增金鑰?</string>
+ <string name="install_prod_keys_warning_description">模擬零售遊戲需要有效的金鑰,若要繼續,將僅有自製遊戲應用程式可以運作。</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">通知</string>
+ <string name="notifications_description">使用下方的按鈕授予通知權限。</string>
+ <string name="give_permission">授予權限</string>
+ <string name="notification_warning">跳過授予通知權限?</string>
+ <string name="notification_warning_description">yuzu 將無法通知您重要資訊。</string>
+ <string name="permission_denied">權限遭拒</string>
+ <string name="permission_denied_description">您曾多次拒絕了權限要求,現在您需要在系統設定中手動授予權限。</string>
+ <string name="about">關於</string>
+ <string name="about_description">組建版本、製作群、以及更多</string>
+ <string name="warning_help">說明</string>
+ <string name="warning_skip">跳過</string>
+ <string name="warning_cancel">取消</string>
+ <string name="install_amiibo_keys">安裝 Amiibo 金鑰</string>
+ <string name="install_amiibo_keys_description">需要在遊戲中使用 Amiibo</string>
+ <string name="invalid_keys_file">無效的金鑰檔案已選取</string>
+ <string name="install_keys_success">金鑰已成功安裝</string>
+ <string name="reading_keys_failure">讀取加密金鑰時出現錯誤</string>
+ <string name="invalid_keys_error">無效的加密金鑰</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">選取的檔案不正確或已損毀,請重新傾印您的金鑰。</string>
+ <string name="install_gpu_driver">安裝 GPU 驅動程式</string>
+ <string name="install_gpu_driver_description">安裝替代驅動程式以取得潛在的更佳效能或準確度</string>
+ <string name="advanced_settings">進階設定</string>
+ <string name="settings_description">進行模擬器設定</string>
+ <string name="search_recently_played">最近遊玩</string>
+ <string name="search_recently_added">最近新增</string>
+ <string name="search_retail">零售</string>
+ <string name="search_homebrew">自製遊戲</string>
+ <string name="open_user_folder">開啟 yuzu 資料夾</string>
+ <string name="open_user_folder_description">管理 yuzu 的內部檔案</string>
+ <string name="theme_and_color_description">修改應用程式外觀</string>
+ <string name="no_file_manager">找不到檔案管理員</string>
+ <string name="notification_no_directory_link">無法開啟 yuzu 目錄</string>
+ <string name="notification_no_directory_link_description">請使用檔案管理員的側邊面板手動定位到使用者資料夾。</string>
+ <string name="manage_save_data">管理儲存資料</string>
+ <string name="manage_save_data_description">已找到儲存資料,請選取下方的選項。</string>
+ <string name="import_export_saves_description">匯入或匯出儲存檔案</string>
+ <string name="import_export_saves_no_profile">找不到儲存資料,請啟動遊戲並重試。</string>
+ <string name="save_file_imported_success">已成功匯入</string>
+ <string name="save_file_invalid_zip_structure">無效的儲存目錄結構</string>
+ <string name="save_file_invalid_zip_structure_description">首個子資料夾名稱必須為遊戲標題 ID。</string>
+ <string name="import_saves">匯入</string>
+ <string name="export_saves">匯出</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia 不真實</string>
+ <string name="copied_to_clipboard">已複製到剪貼簿</string>
+ <string name="about_app_description">一個開放原始碼的 Switch 模擬器</string>
+ <string name="contributors">參與者</string>
+ <string name="contributors_description">使用來自 yuzu 團隊的 \u2764 製作</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="build">組建</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">搶先體驗</string>
+ <string name="get_early_access">搶先體驗新功能</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">最新的功能、搶先版更新、以及更多</string>
+ <string name="early_access_benefits">搶先體驗權益</string>
+ <string name="cutting_edge_features">最新功能</string>
+ <string name="early_access_updates">搶先版更新</string>
+ <string name="no_manual_installation">無需手動安裝</string>
+ <string name="prioritized_support">優先支援</string>
+ <string name="helping_game_preservation">協助遊戲保留</string>
+ <string name="our_eternal_gratitude">我們永遠的感激</string>
+ <string name="are_you_interested">您仍感興趣嗎?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">啟用限制速度</string>
+ <string name="frame_limit_enable_description">若啟用,模擬速度將會限制在標準速度的指定百分比。</string>
+ <string name="frame_limit_slider">限制速度百分比</string>
+ <string name="frame_limit_slider_description">指定限制模擬速度的百分比。預設為 100%,模擬速度將被限制為標準速度。更高或更低的值將會增加或減少速度限制。</string>
+ <string name="cpu_accuracy">CPU 準確度</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">底座模式</string>
+ <string name="use_docked_mode_description">以底座模式模擬,以犧牲效能的代價提高解析度。</string>
+ <string name="emulated_region">模擬區域</string>
+ <string name="emulated_language">模擬語言</string>
+ <string name="select_rtc_date">選取 RTC 日期</string>
+ <string name="select_rtc_time">選取 RTC 時間</string>
+ <string name="use_custom_rtc">啟用自訂 RTC</string>
+ <string name="use_custom_rtc_description">此設定允許您設定與您的目前系統時間相互獨立的自訂即時時鐘</string>
+ <string name="set_custom_rtc">設定自訂 RTC</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_api">API</string>
+ <string name="renderer_accuracy">準確度層級</string>
+ <string name="renderer_resolution">解析度</string>
+ <string name="renderer_vsync">VSync 模式</string>
+ <string name="renderer_aspect_ratio">長寬比</string>
+ <string name="renderer_scaling_filter">視窗適應過濾器</string>
+ <string name="renderer_anti_aliasing">消除鋸齒方法</string>
+ <string name="renderer_force_max_clock">強制最大時脈 (僅 Adreno)</string>
+ <string name="renderer_force_max_clock_description">強制 GPU 以最大可能時脈執行 (熱溫限制仍被套用)。</string>
+ <string name="renderer_asynchronous_shaders">使用非同步著色器</string>
+ <string name="renderer_asynchronous_shaders_description">非同步編譯著色器,將會減少間斷,但可能會引入故障。</string>
+ <string name="renderer_debug">啟用圖形偵錯</string>
+ <string name="renderer_debug_description">核取時,圖形 API 將會進入慢速偵錯模式。</string>
+ <string name="use_disk_shader_cache">使用磁碟著色器快取</string>
+ <string name="use_disk_shader_cache_description">透過將產生的著色器儲存並載入至磁碟,減少中斷。</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_volume">音量</string>
+ <string name="audio_volume_description">指定音訊輸出音量。</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">預設</string>
+ <string name="ini_saved">已儲存設定</string>
+ <string name="gameid_saved">已儲存 %1$s 設定</string>
+ <string name="error_saving">儲存 %1$s 時發生錯誤 ini: %2$s</string>
+ <string name="loading">正在載入…</string>
+ <string name="reset_setting_confirmation">要將此設定重設回預設值嗎?</string>
+ <string name="reset_to_default">重設為預設值</string>
+ <string name="reset_all_settings">重設所有設定?</string>
+ <string name="reset_all_settings_description">所有進階設定將被重設為預設組態,此動作無法復原。</string>
+ <string name="settings_reset">設定已重設</string>
+ <string name="close">關閉</string>
+ <string name="learn_more">深入瞭解</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">選取 GPU 驅動程式</string>
+ <string name="select_gpu_driver_title">要取代您目前的 GPU 驅動程式嗎?</string>
+ <string name="select_gpu_driver_install">安裝</string>
+ <string name="select_gpu_driver_default">預設</string>
+ <string name="select_gpu_driver_install_success">已安裝 %s</string>
+ <string name="select_gpu_driver_use_default">使用預設 GPU 驅動程式</string>
+ <string name="select_gpu_driver_error">選取的驅動程式無效,將使用系統預設驅動程式!</string>
+ <string name="system_gpu_driver">系統 GPU 驅動程式</string>
+ <string name="installing_driver">正在安裝驅動程式…</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">設定</string>
+ <string name="preferences_general">一般</string>
+ <string name="preferences_system">系統</string>
+ <string name="preferences_graphics">圖形</string>
+ <string name="preferences_audio">音訊</string>
+ <string name="preferences_theme">主題和色彩</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">您的 ROM 已加密</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[請依循指南重新傾印您的<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games\">遊戲卡匣</a>或<a href=\"https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop\">安裝標題</a>。]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[請確保您的 <a href=\"https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys\">prod.keys</a> 檔案已安裝,讓遊戲可以解密。]]></string>
+ <string name="loader_error_video_core">初始化視訊核心時發生錯誤</string>
+ <string name="loader_error_video_core_description">這經常由不相容的 GPU 驅動程式造成,安裝自訂 GPU 驅動程式可能會解決此問題。</string>
+ <string name="loader_error_invalid_format">無法載入 ROM</string>
+ <string name="loader_error_file_not_found">ROM 檔案不存在</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">結束模擬</string>
+ <string name="emulation_done">完成</string>
+ <string name="emulation_fps_counter">FPS 計數器</string>
+ <string name="emulation_toggle_controls">切換控制</string>
+ <string name="emulation_rel_stick_center">相對搖桿中心</string>
+ <string name="emulation_dpad_slide">方向鍵滑動</string>
+ <string name="emulation_haptics">觸覺回饋技術</string>
+ <string name="emulation_show_overlay">顯示覆疊</string>
+ <string name="emulation_toggle_all">全部切換</string>
+ <string name="emulation_control_adjust">調整覆疊</string>
+ <string name="emulation_control_scale">縮放</string>
+ <string name="emulation_control_opacity">不透明度</string>
+ <string name="emulation_touch_overlay_reset">重設覆疊</string>
+ <string name="emulation_touch_overlay_edit">編輯覆疊</string>
+ <string name="emulation_pause">暫停模擬</string>
+ <string name="emulation_unpause">取消暫停模擬</string>
+ <string name="emulation_input_overlay">覆疊選項</string>
+ <string name="emulation_game_loading">遊戲正在載入…</string>
+
+ <string name="load_settings">正在載入設定…</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">軟體鍵盤</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">中止</string>
+ <string name="continue_button">繼續</string>
+ <string name="system_archive_not_found">找不到系統檔案</string>
+ <string name="system_archive_not_found_message">%s 遺失,請傾印您的系統封存。\n繼續模擬可能會造成當機和錯誤。</string>
+ <string name="system_archive_general">系統封存</string>
+ <string name="save_load_error">儲存/載入發生錯誤</string>
+ <string name="fatal_error">嚴重錯誤</string>
+ <string name="fatal_error_message">發生嚴重錯誤,檢查記錄以取得詳細資訊。\n繼續模擬可能會造成當機和錯誤。</string>
+ <string name="performance_warning">關閉此設定會顯著降低模擬效能!如需最佳體驗,建議您將此設定保持為啟用狀態。</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">日本</string>
+ <string name="region_usa">美國</string>
+ <string name="region_europe">歐洲</string>
+ <string name="region_australia">澳洲</string>
+ <string name="region_china">中國</string>
+ <string name="region_korea">南韓</string>
+ <string name="region_taiwan">台灣</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">日文 (日本語)</string>
+ <string name="language_english">英文</string>
+ <string name="language_french">法文 (Français)</string>
+ <string name="langauge_german">德文 (Deutsch)</string>
+ <string name="language_italian">義大利文 (Italiano)</string>
+ <string name="language_spanish">西班牙文 (Español)</string>
+ <string name="language_chinese">中文 (简体中文)</string>
+ <string name="language_korean">韓文 (한국어)</string>
+ <string name="language_dutch">荷蘭文 (Nederlands)</string>
+ <string name="language_portuguese">葡萄牙文 (Português)</string>
+ <string name="language_russian">俄文 (Русский)</string>
+ <string name="language_taiwanese">台文 (台灣)</string>
+ <string name="language_british_english">英式英文</string>
+ <string name="language_canadian_french">加拿大法文 (Français canadien)</string>
+ <string name="language_latin_american_spanish">拉丁美洲西班牙文 (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">簡體中文 (简体中文)</string>
+ <string name="language_traditional_chinese">正體中文 (正體中文)</string>
+ <string name="language_brazilian_portuguese">巴西葡萄牙文 (Português do Brasil)</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">無</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">標準</string>
+ <string name="renderer_accuracy_high">高</string>
+ <string name="renderer_accuracy_extreme">極高 (慢)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (慢)</string>
+ <string name="resolution_three">3X (2160p/3240p) (慢)</string>
+ <string name="resolution_four">4X (2880p/4320p) (慢)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">即時 (關閉)</string>
+ <string name="renderer_vsync_mailbox">信箱</string>
+ <string name="renderer_vsync_fifo">FIFO (開啟)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO 寬鬆</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">最近鄰</string>
+ <string name="scaling_filter_bilinear">雙線性</string>
+ <string name="scaling_filter_bicubic">雙立方</string>
+ <string name="scaling_filter_gaussian">高斯</string>
+ <string name="scaling_filter_scale_force">強制縮放</string>
+ <string name="scaling_filter_fsr">AMD Radeon™ 超級解析度</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">無</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">預設 (16:9)</string>
+ <string name="ratio_force_four_three">強制 4:3</string>
+ <string name="ratio_force_twenty_one_nine">強制 21:9</string>
+ <string name="ratio_force_sixteen_ten">強制 16:10</string>
+ <string name="ratio_stretch">延伸視窗</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_unsafe">低精度</string>
+ <string name="cpu_accuracy_paranoid">不合理 (慢)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">方向鍵</string>
+ <string name="gamepad_left_stick">左搖桿</string>
+ <string name="gamepad_right_stick">右搖桿</string>
+ <string name="gamepad_home">HOME</string>
+ <string name="gamepad_screenshot">螢幕截圖</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">正在準備著色器</string>
+ <string name="building_shaders">正在建置著色器</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">變更應用程式主題</string>
+ <string name="theme_default">預設</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">變更主題模式</string>
+ <string name="theme_mode_follow_system">跟隨系統</string>
+ <string name="theme_mode_light">淺色</string>
+ <string name="theme_mode_dark">深色</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">使用黑色背景</string>
+ <string name="use_black_backgrounds_description">使用深色主題時,套用黑色背景。</string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values/arrays.xml b/src/android/app/src/main/res/values/arrays.xml
new file mode 100644
index 000000000..6d092f7a9
--- /dev/null
+++ b/src/android/app/src/main/res/values/arrays.xml
@@ -0,0 +1,250 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string-array name="regionNames">
+ <item>@string/auto</item>
+ <item>@string/region_australia</item>
+ <item>@string/region_china</item>
+ <item>@string/region_europe</item>
+ <item>@string/region_japan</item>
+ <item>@string/region_korea</item>
+ <item>@string/region_taiwan</item>
+ <item>@string/region_usa</item>
+ </string-array>
+
+ <integer-array name="regionValues">
+ <item>-1</item>
+ <item>3</item>
+ <item>4</item>
+ <item>2</item>
+ <item>0</item>
+ <item>5</item>
+ <item>6</item>
+ <item>1</item>
+ </integer-array>
+
+ <string-array name="languageNames">
+ <item>@string/language_brazilian_portuguese</item>
+ <item>@string/language_british_english</item>
+ <item>@string/language_canadian_french</item>
+ <item>@string/language_chinese</item>
+ <item>@string/language_dutch</item>
+ <item>@string/language_english</item>
+ <item>@string/language_french</item>
+ <item>@string/langauge_german</item>
+ <item>@string/language_italian</item>
+ <item>@string/language_japanese</item>
+ <item>@string/language_korean</item>
+ <item>@string/language_latin_american_spanish</item>
+ <item>@string/language_portuguese</item>
+ <item>@string/language_russian</item>
+ <item>@string/language_simplified_chinese</item>
+ <item>@string/language_spanish</item>
+ <item>@string/language_taiwanese</item>
+ <item>@string/language_traditional_chinese</item>
+ </string-array>
+
+ <integer-array name="languageValues">
+ <item>17</item>
+ <item>12</item>
+ <item>13</item>
+ <item>6</item>
+ <item>8</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>0</item>
+ <item>7</item>
+ <item>14</item>
+ <item>9</item>
+ <item>10</item>
+ <item>15</item>
+ <item>5</item>
+ <item>11</item>
+ <item>16</item>
+ </integer-array>
+
+ <string-array name="rendererApiNames">
+ <item>@string/renderer_vulkan</item>
+ <item>@string/renderer_none</item>
+ </string-array>
+
+ <integer-array name="rendererApiValues">
+ <item>1</item>
+ <item>2</item>
+ </integer-array>
+
+ <string-array name="rendererAccuracyNames">
+ <item>@string/renderer_accuracy_normal</item>
+ <item>@string/renderer_accuracy_high</item>
+ <item>@string/renderer_accuracy_extreme</item>
+ </string-array>
+
+ <integer-array name="rendererAccuracyValues">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ </integer-array>
+
+ <string-array name="rendererResolutionNames">
+ <item>@string/resolution_half</item>
+ <item>@string/resolution_three_quarter</item>
+ <item>@string/resolution_one</item>
+ <item>@string/resolution_two</item>
+ <item>@string/resolution_three</item>
+ <item>@string/resolution_four</item>
+ </string-array>
+
+ <string-array name="rendererVSyncNames">
+ <item>@string/renderer_vsync_immediate</item>
+ <item>@string/renderer_vsync_mailbox</item>
+ <item>@string/renderer_vsync_fifo</item>
+ <item>@string/renderer_vsync_fifo_relaxed</item>
+ </string-array>
+
+ <integer-array name="rendererResolutionValues">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ </integer-array>
+
+ <integer-array name="rendererVSyncValues">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ </integer-array>
+
+ <string-array name="rendererScreenLayoutNames">
+ <item>@string/screen_layout_landscape</item>
+ <item>@string/screen_layout_portrait</item>
+ <item>@string/screen_layout_auto</item>
+ </string-array>
+
+ <integer-array name="rendererScreenLayoutValues">
+ <item>5</item>
+ <item>4</item>
+ <item>0</item>
+ </integer-array>
+
+ <string-array name="rendererAspectRatioNames">
+ <item>@string/ratio_default</item>
+ <item>@string/ratio_force_four_three</item>
+ <item>@string/ratio_force_twenty_one_nine</item>
+ <item>@string/ratio_force_sixteen_ten</item>
+ <item>@string/ratio_stretch</item>
+ </string-array>
+
+ <integer-array name="rendererAspectRatioValues">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ </integer-array>
+
+ <string-array name="rendererScalingFilterNames">
+ <item>@string/scaling_filter_nearest_neighbor</item>
+ <item>@string/scaling_filter_bilinear</item>
+ <item>@string/scaling_filter_bicubic</item>
+ <item>@string/scaling_filter_gaussian</item>
+ <item>@string/scaling_filter_scale_force</item>
+ <item>@string/scaling_filter_fsr</item>
+ </string-array>
+
+ <integer-array name="rendererScalingFilterValues">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ </integer-array>
+
+ <string-array name="rendererAntiAliasingNames">
+ <item>@string/anti_aliasing_none</item>
+ <item>@string/anti_aliasing_fxaa</item>
+ <item>@string/anti_aliasing_smaa</item>
+ </string-array>
+
+ <integer-array name="rendererAntiAliasingValues">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ </integer-array>
+
+ <string-array name="cpuAccuracyNames">
+ <item>@string/auto</item>
+ <item>@string/cpu_accuracy_accurate</item>
+ <item>@string/cpu_accuracy_unsafe</item>
+ <item>@string/cpu_accuracy_paranoid</item>
+ </string-array>
+
+ <integer-array name="cpuAccuracyValues">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ </integer-array>
+
+ <string-array name="gamepadButtons">
+ <item>A</item>
+ <item>B</item>
+ <item>X</item>
+ <item>Y</item>
+ <item>L</item>
+ <item>R</item>
+ <item>ZL</item>
+ <item>ZR</item>
+ <item>+</item>
+ <item>-</item>
+ <item>@string/gamepad_d_pad</item>
+ <item>@string/gamepad_left_stick</item>
+ <item>@string/gamepad_right_stick</item>
+ <item>@string/gamepad_home</item>
+ <item>@string/gamepad_screenshot</item>
+ </string-array>
+
+ <string-array name="themeEntries">
+ <item>@string/theme_default</item>
+ </string-array>
+ <integer-array name="themeValues">
+ <item>0</item>
+ </integer-array>
+
+ <string-array name="themeEntriesA12">
+ <item>@string/theme_default</item>
+ <item>@string/theme_material_you</item>
+ </string-array>
+ <integer-array name="themeValuesA12">
+ <item>0</item>
+ <item>1</item>
+ </integer-array>
+
+ <string-array name="themeModeEntries">
+ <item>@string/theme_mode_follow_system</item>
+ <item>@string/theme_mode_light</item>
+ <item>@string/theme_mode_dark</item>
+ </string-array>
+ <integer-array name="themeModeValues">
+ <item>-1</item>
+ <item>1</item>
+ <item>2</item>
+ </integer-array>
+
+ <string-array name="outputEngineEntries">
+ <item>@string/auto</item>
+ <item>@string/cubeb</item>
+ <item>@string/string_null</item>
+ </string-array>
+ <string-array name="outputEngineValues">
+ <item>auto</item>
+ <item>cubeb</item>
+ <item>null</item>
+ </string-array>
+
+</resources>
diff --git a/src/android/app/src/main/res/values/bools.xml b/src/android/app/src/main/res/values/bools.xml
new file mode 100644
index 000000000..e50f473fb
--- /dev/null
+++ b/src/android/app/src/main/res/values/bools.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="small_layout">true</bool>
+</resources>
diff --git a/src/android/app/src/main/res/values/dimens.xml b/src/android/app/src/main/res/values/dimens.xml
new file mode 100644
index 000000000..00757e5e8
--- /dev/null
+++ b/src/android/app/src/main/res/values/dimens.xml
@@ -0,0 +1,18 @@
+<resources>
+ <dimen name="spacing_small">4dp</dimen>
+ <dimen name="spacing_med">8dp</dimen>
+ <dimen name="spacing_medlarge">12dp</dimen>
+ <dimen name="spacing_large">16dp</dimen>
+ <dimen name="spacing_xtralarge">32dp</dimen>
+ <dimen name="spacing_list">64dp</dimen>
+ <dimen name="spacing_chip">20dp</dimen>
+ <dimen name="spacing_navigation">80dp</dimen>
+ <dimen name="spacing_navigation_rail">0dp</dimen>
+ <dimen name="spacing_search">128dp</dimen>
+ <dimen name="spacing_refresh_end">72dp</dimen>
+ <dimen name="menu_width">256dp</dimen>
+ <dimen name="card_width">165dp</dimen>
+
+ <dimen name="dialog_margin">20dp</dimen>
+ <dimen name="elevated_app_bar">3dp</dimen>
+</resources>
diff --git a/src/android/app/src/main/res/values/integers.xml b/src/android/app/src/main/res/values/integers.xml
new file mode 100644
index 000000000..2e93b408c
--- /dev/null
+++ b/src/android/app/src/main/res/values/integers.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <integer name="game_title_lines">2</integer>
+
+ <!-- Default SWITCH landscape layout -->
+ <integer name="SWITCH_BUTTON_A_X">760</integer>
+ <integer name="SWITCH_BUTTON_A_Y">790</integer>
+ <integer name="SWITCH_BUTTON_B_X">710</integer>
+ <integer name="SWITCH_BUTTON_B_Y">900</integer>
+ <integer name="SWITCH_BUTTON_X_X">710</integer>
+ <integer name="SWITCH_BUTTON_X_Y">680</integer>
+ <integer name="SWITCH_BUTTON_Y_X">660</integer>
+ <integer name="SWITCH_BUTTON_Y_Y">790</integer>
+ <integer name="SWITCH_STICK_L_X">100</integer>
+ <integer name="SWITCH_STICK_L_Y">670</integer>
+ <integer name="SWITCH_STICK_R_X">900</integer>
+ <integer name="SWITCH_STICK_R_Y">670</integer>
+ <integer name="SWITCH_TRIGGER_L_X">70</integer>
+ <integer name="SWITCH_TRIGGER_L_Y">220</integer>
+ <integer name="SWITCH_TRIGGER_R_X">930</integer>
+ <integer name="SWITCH_TRIGGER_R_Y">220</integer>
+ <integer name="SWITCH_TRIGGER_ZL_X">70</integer>
+ <integer name="SWITCH_TRIGGER_ZL_Y">90</integer>
+ <integer name="SWITCH_TRIGGER_ZR_X">930</integer>
+ <integer name="SWITCH_TRIGGER_ZR_Y">90</integer>
+ <integer name="SWITCH_BUTTON_MINUS_X">460</integer>
+ <integer name="SWITCH_BUTTON_MINUS_Y">950</integer>
+ <integer name="SWITCH_BUTTON_PLUS_X">540</integer>
+ <integer name="SWITCH_BUTTON_PLUS_Y">950</integer>
+ <integer name="SWITCH_BUTTON_HOME_X">600</integer>
+ <integer name="SWITCH_BUTTON_HOME_Y">950</integer>
+ <integer name="SWITCH_BUTTON_CAPTURE_X">400</integer>
+ <integer name="SWITCH_BUTTON_CAPTURE_Y">950</integer>
+ <integer name="SWITCH_BUTTON_DPAD_X">260</integer>
+ <integer name="SWITCH_BUTTON_DPAD_Y">790</integer>
+
+ <!-- Default SWITCH portrait layout -->
+ <integer name="SWITCH_BUTTON_A_X_PORTRAIT">840</integer>
+ <integer name="SWITCH_BUTTON_A_Y_PORTRAIT">840</integer>
+ <integer name="SWITCH_BUTTON_B_X_PORTRAIT">740</integer>
+ <integer name="SWITCH_BUTTON_B_Y_PORTRAIT">880</integer>
+ <integer name="SWITCH_BUTTON_X_X_PORTRAIT">740</integer>
+ <integer name="SWITCH_BUTTON_X_Y_PORTRAIT">800</integer>
+ <integer name="SWITCH_BUTTON_Y_X_PORTRAIT">640</integer>
+ <integer name="SWITCH_BUTTON_Y_Y_PORTRAIT">840</integer>
+ <integer name="SWITCH_STICK_L_X_PORTRAIT">180</integer>
+ <integer name="SWITCH_STICK_L_Y_PORTRAIT">660</integer>
+ <integer name="SWITCH_STICK_R_X_PORTRAIT">820</integer>
+ <integer name="SWITCH_STICK_R_Y_PORTRAIT">660</integer>
+ <integer name="SWITCH_TRIGGER_L_X_PORTRAIT">140</integer>
+ <integer name="SWITCH_TRIGGER_L_Y_PORTRAIT">260</integer>
+ <integer name="SWITCH_TRIGGER_R_X_PORTRAIT">860</integer>
+ <integer name="SWITCH_TRIGGER_R_Y_PORTRAIT">260</integer>
+ <integer name="SWITCH_TRIGGER_ZL_X_PORTRAIT">140</integer>
+ <integer name="SWITCH_TRIGGER_ZL_Y_PORTRAIT">200</integer>
+ <integer name="SWITCH_TRIGGER_ZR_X_PORTRAIT">860</integer>
+ <integer name="SWITCH_TRIGGER_ZR_Y_PORTRAIT">200</integer>
+ <integer name="SWITCH_BUTTON_MINUS_X_PORTRAIT">440</integer>
+ <integer name="SWITCH_BUTTON_MINUS_Y_PORTRAIT">950</integer>
+ <integer name="SWITCH_BUTTON_PLUS_X_PORTRAIT">560</integer>
+ <integer name="SWITCH_BUTTON_PLUS_Y_PORTRAIT">950</integer>
+ <integer name="SWITCH_BUTTON_HOME_X_PORTRAIT">680</integer>
+ <integer name="SWITCH_BUTTON_HOME_Y_PORTRAIT">950</integer>
+ <integer name="SWITCH_BUTTON_CAPTURE_X_PORTRAIT">320</integer>
+ <integer name="SWITCH_BUTTON_CAPTURE_Y_PORTRAIT">950</integer>
+ <integer name="SWITCH_BUTTON_DPAD_X_PORTRAIT">240</integer>
+ <integer name="SWITCH_BUTTON_DPAD_Y_PORTRAIT">840</integer>
+
+ <!-- Default SWITCH foldable layout -->
+ <integer name="SWITCH_BUTTON_A_X_FOLDABLE">840</integer>
+ <integer name="SWITCH_BUTTON_A_Y_FOLDABLE">390</integer>
+ <integer name="SWITCH_BUTTON_B_X_FOLDABLE">740</integer>
+ <integer name="SWITCH_BUTTON_B_Y_FOLDABLE">430</integer>
+ <integer name="SWITCH_BUTTON_X_X_FOLDABLE">740</integer>
+ <integer name="SWITCH_BUTTON_X_Y_FOLDABLE">350</integer>
+ <integer name="SWITCH_BUTTON_Y_X_FOLDABLE">640</integer>
+ <integer name="SWITCH_BUTTON_Y_Y_FOLDABLE">390</integer>
+ <integer name="SWITCH_STICK_L_X_FOLDABLE">180</integer>
+ <integer name="SWITCH_STICK_L_Y_FOLDABLE">250</integer>
+ <integer name="SWITCH_STICK_R_X_FOLDABLE">820</integer>
+ <integer name="SWITCH_STICK_R_Y_FOLDABLE">250</integer>
+ <integer name="SWITCH_TRIGGER_L_X_FOLDABLE">140</integer>
+ <integer name="SWITCH_TRIGGER_L_Y_FOLDABLE">130</integer>
+ <integer name="SWITCH_TRIGGER_R_X_FOLDABLE">860</integer>
+ <integer name="SWITCH_TRIGGER_R_Y_FOLDABLE">130</integer>
+ <integer name="SWITCH_TRIGGER_ZL_X_FOLDABLE">140</integer>
+ <integer name="SWITCH_TRIGGER_ZL_Y_FOLDABLE">70</integer>
+ <integer name="SWITCH_TRIGGER_ZR_X_FOLDABLE">860</integer>
+ <integer name="SWITCH_TRIGGER_ZR_Y_FOLDABLE">70</integer>
+ <integer name="SWITCH_BUTTON_MINUS_X_FOLDABLE">440</integer>
+ <integer name="SWITCH_BUTTON_MINUS_Y_FOLDABLE">470</integer>
+ <integer name="SWITCH_BUTTON_PLUS_X_FOLDABLE">560</integer>
+ <integer name="SWITCH_BUTTON_PLUS_Y_FOLDABLE">470</integer>
+ <integer name="SWITCH_BUTTON_HOME_X_FOLDABLE">680</integer>
+ <integer name="SWITCH_BUTTON_HOME_Y_FOLDABLE">470</integer>
+ <integer name="SWITCH_BUTTON_CAPTURE_X_FOLDABLE">320</integer>
+ <integer name="SWITCH_BUTTON_CAPTURE_Y_FOLDABLE">470</integer>
+ <integer name="SWITCH_BUTTON_DPAD_X_FOLDABLE">240</integer>
+ <integer name="SWITCH_BUTTON_DPAD_Y_FOLDABLE">390</integer>
+
+</resources>
diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml
new file mode 100644
index 000000000..af7450619
--- /dev/null
+++ b/src/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,912 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
+
+ <!-- General application strings -->
+ <string name="app_name" translatable="false">yuzu</string>
+ <string name="app_disclaimer">This software will run games for the Nintendo Switch game console. No game titles or keys are included.&lt;br /&gt;&lt;br /&gt;Before you begin, please locate your <![CDATA[<b> prod.keys </b>]]> file on your device storage.&lt;br /&gt;&lt;br /&gt;<![CDATA[<a href="https://yuzu-emu.org/help/quickstart">Learn more</a>]]></string>
+ <string name="emulation_notification_channel_name">Emulation is Active</string>
+ <string name="emulation_notification_channel_id" translatable="false">emulationIsActive</string>
+ <string name="emulation_notification_channel_description">Shows a persistent notification when emulation is running.</string>
+ <string name="emulation_notification_running">yuzu is running</string>
+ <string name="notice_notification_channel_name">Notices and errors</string>
+ <string name="notice_notification_channel_id" translatable="false">noticesAndErrors</string>
+ <string name="notice_notification_channel_description">Shows notifications when something goes wrong.</string>
+ <string name="notification_permission_not_granted">Notification permission not granted!</string>
+
+ <!-- Setup strings -->
+ <string name="welcome">Welcome!</string>
+ <string name="welcome_description">Learn how to setup &lt;b>yuzu&lt;/b> and jump into emulation.</string>
+ <string name="get_started">Get started</string>
+ <string name="keys">Keys</string>
+ <string name="keys_description">Select your &lt;b>prod.keys&lt;/b> file with the button below.</string>
+ <string name="select_keys">Select Keys</string>
+ <string name="games">Games</string>
+ <string name="games_description">Select your &lt;b>Games&lt;/b> folder with the button below.</string>
+ <string name="done">Done</string>
+ <string name="done_description">You\'re all set.\nEnjoy your games!</string>
+ <string name="text_continue">Continue</string>
+ <string name="next">Next</string>
+ <string name="back">Back</string>
+ <string name="add_games">Add Games</string>
+ <string name="add_games_description">Select your games folder</string>
+
+ <!-- Home strings -->
+ <string name="home_games">Games</string>
+ <string name="home_search">Search</string>
+ <string name="home_settings">Settings</string>
+ <string name="empty_gamelist">No files were found or no game directory has been selected yet.</string>
+ <string name="search_and_filter_games">Search and filter games</string>
+ <string name="select_games_folder">Select games folder</string>
+ <string name="select_games_folder_description">Allows yuzu to populate the games list</string>
+ <string name="add_games_warning">Skip selecting games folder?</string>
+ <string name="add_games_warning_description">Games won\'t be displayed in the Games list if a folder isn\'t selected.</string>
+ <string name="add_games_warning_help">https://yuzu-emu.org/help/quickstart/#dumping-games</string>
+ <string name="home_search_games">Search games</string>
+ <string name="games_dir_selected">Games directory selected</string>
+ <string name="install_prod_keys">Install prod.keys</string>
+ <string name="install_prod_keys_description">Required to decrypt retail games</string>
+ <string name="install_prod_keys_warning">Skip adding keys?</string>
+ <string name="install_prod_keys_warning_description">Valid keys are required to emulate retail games. Only homebrew apps will function if you continue.</string>
+ <string name="install_prod_keys_warning_help">https://yuzu-emu.org/help/quickstart/#guide-introduction</string>
+ <string name="notifications">Notifications</string>
+ <string name="notifications_description">Grant the notification permission with the button below.</string>
+ <string name="give_permission">Grant permission</string>
+ <string name="notification_warning">Skip granting the notification permission?</string>
+ <string name="notification_warning_description">yuzu won\'t be able to notify you of important information.</string>
+ <string name="permission_denied">Permission denied</string>
+ <string name="permission_denied_description">You denied this permission too many times and now you have to manually grant it in system settings.</string>
+ <string name="about">About</string>
+ <string name="about_description">Build version, credits, and more</string>
+ <string name="warning_help">Help</string>
+ <string name="warning_skip">Skip</string>
+ <string name="warning_cancel">Cancel</string>
+ <string name="install_amiibo_keys">Install Amiibo keys</string>
+ <string name="install_amiibo_keys_description">Required to use Amiibo in game</string>
+ <string name="invalid_keys_file">Invalid keys file selected</string>
+ <string name="install_keys_success">Keys successfully installed</string>
+ <string name="reading_keys_failure">Error reading encryption keys</string>
+ <string name="install_prod_keys_failure_extension_description">Verify your keys file has a .keys extension and try again.</string>
+ <string name="install_amiibo_keys_failure_extension_description">Verify your keys file has a .bin extension and try again.</string>
+ <string name="invalid_keys_error">Invalid encryption keys</string>
+ <string name="dumping_keys_quickstart_link">https://yuzu-emu.org/help/quickstart/#dumping-decryption-keys</string>
+ <string name="install_keys_failure_description">The selected file is incorrect or corrupt. Please redump your keys.</string>
+ <string name="install_gpu_driver">Install GPU driver</string>
+ <string name="install_gpu_driver_description">Install alternative drivers for potentially better performance or accuracy</string>
+ <string name="advanced_settings">Advanced settings</string>
+ <string name="settings_description">Configure emulator settings</string>
+ <string name="search_recently_played">Recently played</string>
+ <string name="search_recently_added">Recently added</string>
+ <string name="search_retail">Retail</string>
+ <string name="search_homebrew">Homebrew</string>
+ <string name="open_user_folder">Open yuzu folder</string>
+ <string name="open_user_folder_description">Manage yuzu\'s internal files</string>
+ <string name="theme_and_color_description">Modify the look of the app</string>
+ <string name="no_file_manager">No file manager found</string>
+ <string name="notification_no_directory_link">Could not open yuzu directory</string>
+ <string name="notification_no_directory_link_description">Please locate the user folder with the file manager\'s side panel manually.</string>
+ <string name="manage_save_data">Manage save data</string>
+ <string name="manage_save_data_description">Save data found. Please select an option below.</string>
+ <string name="import_export_saves_description">Import or export save files</string>
+ <string name="import_export_saves_no_profile">No save data found. Please launch a game and retry.</string>
+ <string name="save_file_imported_success">Imported successfully</string>
+ <string name="save_file_invalid_zip_structure">Invalid save directory structure</string>
+ <string name="save_file_invalid_zip_structure_description">The first subfolder name must be the title ID of the game.</string>
+ <string name="import_saves">Import</string>
+ <string name="export_saves">Export</string>
+ <string name="install_firmware">Install firmware</string>
+ <string name="install_firmware_description">Firmware must be in a ZIP archive and is needed to boot some games</string>
+ <string name="firmware_installing">Installing firmware</string>
+ <string name="firmware_installed_success">Firmware installed successfully</string>
+ <string name="firmware_installed_failure">Firmware installation failed</string>
+ <string name="firmware_installed_failure_description">Verify that the ZIP contains valid firmware and try again.</string>
+ <string name="share_log">Share debug logs</string>
+ <string name="share_log_description">Share yuzu\'s log file to debug issues</string>
+ <string name="share_log_missing">No log file found</string>
+ <string name="install_game_content">Install game content</string>
+ <string name="install_game_content_description">Install game updates or DLC</string>
+ <string name="install_game_content_failure">Error installing file(s) to NAND</string>
+ <string name="install_game_content_failure_description">Please ensure content(s) are valid and that the prod.keys file is installed.</string>
+ <string name="install_game_content_failure_base">Installation of base games isn\'t permitted in order to avoid possible conflicts.</string>
+ <string name="install_game_content_failure_file_extension">Only NSP and XCI content is supported. Please verify the game content(s) are valid.</string>
+ <string name="install_game_content_failed_count">%1$d installation error(s)</string>
+ <string name="install_game_content_success">Game content(s) installed successfully</string>
+ <string name="install_game_content_success_install">%1$d installed successfully</string>
+ <string name="install_game_content_success_overwrite">%1$d overwritten successfully</string>
+ <string name="install_game_content_help_link">https://yuzu-emu.org/help/quickstart/#dumping-installed-updates</string>
+
+ <!-- About screen strings -->
+ <string name="gaia_is_not_real">Gaia isn\'t real</string>
+ <string name="copied_to_clipboard">Copied to clipboard</string>
+ <string name="about_app_description">An open-source Switch emulator</string>
+ <string name="contributors">Contributors</string>
+ <string name="contributors_description">Made with \u2764 from the yuzu team</string>
+ <string name="contributors_link">https://github.com/yuzu-emu/yuzu/graphs/contributors</string>
+ <string name="licenses_description">Projects that make yuzu for Android possible</string>
+ <string name="build">Build</string>
+ <string name="support_link">https://discord.gg/u77vRWY</string>
+ <string name="website_link">https://yuzu-emu.org/</string>
+ <string name="github_link">https://github.com/yuzu-emu</string>
+
+ <!-- Early access upgrade strings -->
+ <string name="early_access">Early Access</string>
+ <string name="get_early_access">Get Early Access</string>
+ <string name="play_store_link">https://play.google.com/store/apps/details?id=org.yuzu.yuzu_emu.ea</string>
+ <string name="get_early_access_description">Cutting-edge features, early access to updates, and more</string>
+ <string name="early_access_benefits">Early Access Benefits</string>
+ <string name="cutting_edge_features">Cutting-edge features</string>
+ <string name="early_access_updates">Early access to updates</string>
+ <string name="no_manual_installation">No manual installation</string>
+ <string name="prioritized_support">Prioritized support</string>
+ <string name="helping_game_preservation">Helping game preservation</string>
+ <string name="our_eternal_gratitude">Our eternal gratitude</string>
+ <string name="are_you_interested">Are you interested?</string>
+
+ <!-- General settings strings -->
+ <string name="frame_limit_enable">Limit speed</string>
+ <string name="frame_limit_enable_description">Limits emulation speed to a specified percentage of normal speed.</string>
+ <string name="frame_limit_slider">Limit speed percent</string>
+ <string name="frame_limit_slider_description">Specifies the percentage to limit emulation speed. 100% is the normal speed. Values higher or lower will increase or decrease the speed limit.</string>
+ <string name="cpu_accuracy">CPU accuracy</string>
+
+ <!-- System settings strings -->
+ <string name="use_docked_mode">Docked Mode</string>
+ <string name="use_docked_mode_description">Increases resolution, decreasing performance. Handheld Mode is used when disabled, lowering resolution and increasing performance.</string>
+ <string name="emulated_region">Emulated region</string>
+ <string name="emulated_language">Emulated language</string>
+ <string name="select_rtc_date">Select RTC date</string>
+ <string name="select_rtc_time">Select RTC time</string>
+ <string name="use_custom_rtc">Custom RTC</string>
+ <string name="use_custom_rtc_description">Allows you to set a custom real-time clock separate from your current system time.</string>
+ <string name="set_custom_rtc">Set custom RTC</string>
+
+ <!-- Graphics settings strings -->
+ <string name="renderer_accuracy">Accuracy level</string>
+ <string name="renderer_resolution">Resolution (Handheld/Docked)</string>
+ <string name="renderer_vsync">VSync mode</string>
+ <string name="renderer_screen_layout">Orientation</string>
+ <string name="renderer_aspect_ratio">Aspect ratio</string>
+ <string name="renderer_scaling_filter">Window adapting filter</string>
+ <string name="renderer_anti_aliasing">Anti-aliasing method</string>
+ <string name="renderer_force_max_clock">Force maximum clocks (Adreno only)</string>
+ <string name="renderer_force_max_clock_description">Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied).</string>
+ <string name="renderer_asynchronous_shaders">Use asynchronous shaders</string>
+ <string name="renderer_asynchronous_shaders_description">Compiles shaders asynchronously, reducing stutter but may introduce glitches.</string>
+ <string name="renderer_reactive_flushing">Use reactive flushing</string>
+ <string name="renderer_reactive_flushing_description">Improves rendering accuracy in some games at the cost of performance.</string>
+ <string name="use_disk_shader_cache">Disk shader cache</string>
+ <string name="use_disk_shader_cache_description">Reduces stuttering by locally storing and loading generated shaders.</string>
+
+ <!-- Debug settings strings -->
+ <string name="cpu">CPU</string>
+ <string name="cpu_debug_mode">CPU Debugging</string>
+ <string name="cpu_debug_mode_description">Puts the CPU in a slow debugging mode.</string>
+ <string name="gpu">GPU</string>
+ <string name="renderer_api">API</string>
+ <string name="renderer_debug">Graphics debugging</string>
+ <string name="renderer_debug_description">Sets the graphics API to a slow debugging mode.</string>
+ <string name="fastmem">Fastmem</string>
+
+ <!-- Audio settings strings -->
+ <string name="audio_output_engine">Output engine</string>
+ <string name="audio_volume">Volume</string>
+ <string name="audio_volume_description">Specifies the volume of audio output.</string>
+
+ <!-- Miscellaneous -->
+ <string name="slider_default">Default</string>
+ <string name="ini_saved">Saved settings</string>
+ <string name="gameid_saved">Saved settings for %1$s</string>
+ <string name="error_saving">Error saving %1$s.ini: %2$s</string>
+ <string name="loading">Loading…</string>
+ <string name="reset_setting_confirmation">Do you want to reset this setting back to its default value?</string>
+ <string name="reset_to_default">Reset to default</string>
+ <string name="reset_all_settings">Reset all settings?</string>
+ <string name="reset_all_settings_description">All advanced settings will be reset to their default configuration. This can not be undone.</string>
+ <string name="settings_reset">Settings reset</string>
+ <string name="close">Close</string>
+ <string name="learn_more">Learn more</string>
+ <string name="auto">Auto</string>
+ <string name="submit">Submit</string>
+ <string name="string_null">Null</string>
+
+ <!-- GPU driver installation -->
+ <string name="select_gpu_driver">Select GPU driver</string>
+ <string name="select_gpu_driver_title">Would you like to replace your current GPU driver?</string>
+ <string name="select_gpu_driver_install">Install</string>
+ <string name="select_gpu_driver_default">Default</string>
+ <string name="select_gpu_driver_install_success">Installed %s</string>
+ <string name="select_gpu_driver_use_default">Using default GPU driver</string>
+ <string name="select_gpu_driver_error">Invalid driver selected, using system default!</string>
+ <string name="system_gpu_driver">System GPU driver</string>
+ <string name="installing_driver">Installing driver…</string>
+
+ <!-- Preferences Screen -->
+ <string name="preferences_settings">Settings</string>
+ <string name="preferences_general">General</string>
+ <string name="preferences_system">System</string>
+ <string name="preferences_graphics">Graphics</string>
+ <string name="preferences_audio">Audio</string>
+ <string name="preferences_theme">Theme and color</string>
+ <string name="preferences_debug">Debug</string>
+
+ <!-- ROM loading errors -->
+ <string name="loader_error_encrypted">Your ROM is encrypted</string>
+ <string name="loader_error_encrypted_roms_description"><![CDATA[Please follow the guides to redump your <a href="https://yuzu-emu.org/help/quickstart/#dumping-cartridge-games">game cartidges</a> or <a href="https://yuzu-emu.org/help/quickstart/#dumping-installed-titles-eshop">installed titles</a>.]]></string>
+ <string name="loader_error_encrypted_keys_description"><![CDATA[Please ensure your <a href="https://yuzu-emu.org/help/quickstart/#dumping-prodkeys-and-titlekeys">prod.keys</a> file is installed so that games can be decrypted.]]></string>
+ <string name="loader_error_video_core">An error occurred initializing the video core</string>
+ <string name="loader_error_video_core_description">This is usually caused by an incompatible GPU driver. Installing a custom GPU driver may resolve this problem.</string>
+ <string name="loader_error_invalid_format">Unable to load ROM</string>
+ <string name="loader_error_file_not_found">ROM file does not exist</string>
+
+ <!-- Emulation Menu -->
+ <string name="emulation_exit">Exit emulation</string>
+ <string name="emulation_done">Done</string>
+ <string name="emulation_fps_counter">FPS counter</string>
+ <string name="emulation_toggle_controls">Toggle controls</string>
+ <string name="emulation_rel_stick_center">Relative stick center</string>
+ <string name="emulation_dpad_slide">D-pad slide</string>
+ <string name="emulation_haptics">Touch haptics</string>
+ <string name="emulation_show_overlay">Show overlay</string>
+ <string name="emulation_toggle_all">Toggle all</string>
+ <string name="emulation_control_adjust">Adjust overlay</string>
+ <string name="emulation_control_scale">Scale</string>
+ <string name="emulation_control_opacity">Opacity</string>
+ <string name="emulation_touch_overlay_reset">Reset overlay</string>
+ <string name="emulation_touch_overlay_edit">Edit overlay</string>
+ <string name="emulation_pause">Pause emulation</string>
+ <string name="emulation_unpause">Unpause emulation</string>
+ <string name="emulation_input_overlay">Overlay options</string>
+ <string name="emulation_game_loading">Game loading…</string>
+
+ <string name="load_settings">Loading settings…</string>
+
+ <!-- Software keyboard -->
+ <string name="software_keyboard">Software keyboard</string>
+
+ <!-- Errors and warnings -->
+ <string name="abort_button">Abort</string>
+ <string name="continue_button">Continue</string>
+ <string name="system_archive_not_found">System Archive Not Found</string>
+ <string name="system_archive_not_found_message">%s is missing. Please dump your system archives.\nContinuing emulation may result in crashes and bugs.</string>
+ <string name="system_archive_general">A system archive</string>
+ <string name="save_load_error">Save/Load Error</string>
+ <string name="fatal_error">Fatal Error</string>
+ <string name="fatal_error_message">A fatal error occurred. Check the log for details.\nContinuing emulation may result in crashes and bugs.</string>
+ <string name="performance_warning">Turning off this setting will significantly reduce emulation performance! For the best experience, it is recommended that you leave this setting enabled.</string>
+ <string name="device_memory_inadequate">Device RAM: %1$s\nRecommended: %2$s</string>
+
+ <!-- Region Names -->
+ <string name="region_japan">Japan</string>
+ <string name="region_usa">USA</string>
+ <string name="region_europe">Europe</string>
+ <string name="region_australia">Australia</string>
+ <string name="region_china">China</string>
+ <string name="region_korea">Korea</string>
+ <string name="region_taiwan">Taiwan</string>
+
+ <!-- Language Names -->
+ <string name="language_japanese">Japanese (日本語)</string>
+ <string name="language_english">English</string>
+ <string name="language_french">French (Français)</string>
+ <string name="langauge_german">German (Deutsch)</string>
+ <string name="language_italian">Italian (Italiano)</string>
+ <string name="language_spanish">Spanish (Español)</string>
+ <string name="language_chinese">Chinese (简体中文)</string>
+ <string name="language_korean">Korean (한국어)</string>
+ <string name="language_dutch">Dutch (Nederlands)</string>
+ <string name="language_portuguese">Portuguese (Português)</string>
+ <string name="language_russian">Russian (Русский)</string>
+ <string name="language_taiwanese">Taiwanese (台湾)</string>
+ <string name="language_british_english">British English</string>
+ <string name="language_canadian_french">Canadian French (Français canadien)</string>
+ <string name="language_latin_american_spanish">Latin American Spanish (Español latinoamericano)</string>
+ <string name="language_simplified_chinese">Simplified Chinese (简体中文)</string>
+ <string name="language_traditional_chinese">Traditional Chinese (正體中文)</string>
+ <string name="language_brazilian_portuguese">Brazilian Portuguese (Português do Brasil)</string>
+
+ <!-- Memory Sizes -->
+ <string name="memory_byte">Byte</string>
+ <string name="memory_kilobyte">KB</string>
+ <string name="memory_megabyte">MB</string>
+ <string name="memory_gigabyte">GB</string>
+ <string name="memory_terabyte">TB</string>
+ <string name="memory_petabyte">PB</string>
+ <string name="memory_exabyte">EB</string>
+
+ <!-- Renderer APIs -->
+ <string name="renderer_vulkan">Vulkan</string>
+ <string name="renderer_none">None</string>
+
+ <!-- Renderer Accuracy -->
+ <string name="renderer_accuracy_normal">Normal</string>
+ <string name="renderer_accuracy_high">High</string>
+ <string name="renderer_accuracy_extreme">Extreme (Slow)</string>
+
+ <!-- Resolutions -->
+ <string name="resolution_half">0.5X (360p/540p)</string>
+ <string name="resolution_three_quarter">0.75X (540p/810p)</string>
+ <string name="resolution_one">1X (720p/1080p)</string>
+ <string name="resolution_two">2X (1440p/2160p) (Slow)</string>
+ <string name="resolution_three">3X (2160p/3240p) (Slow)</string>
+ <string name="resolution_four">4X (2880p/4320p) (Slow)</string>
+
+ <!-- Renderer VSync -->
+ <string name="renderer_vsync_immediate">Immediate (Off)</string>
+ <string name="renderer_vsync_mailbox">Mailbox</string>
+ <string name="renderer_vsync_fifo">FIFO (On)</string>
+ <string name="renderer_vsync_fifo_relaxed">FIFO Relaxed</string>
+
+ <!-- Scaling Filters -->
+ <string name="scaling_filter_nearest_neighbor">Nearest Neighbor</string>
+ <string name="scaling_filter_bilinear">Bilinear</string>
+ <string name="scaling_filter_bicubic">Bicubic</string>
+ <string name="scaling_filter_gaussian">Gaussian</string>
+ <string name="scaling_filter_scale_force">ScaleForce</string>
+ <string name="scaling_filter_fsr">AMD FidelityFX™ Super Resolution</string>
+
+ <!-- Anti-Aliasing -->
+ <string name="anti_aliasing_none">None</string>
+ <string name="anti_aliasing_fxaa">FXAA</string>
+ <string name="anti_aliasing_smaa">SMAA</string>
+
+ <!-- Screen Layouts -->
+ <string name="screen_layout_landscape">Landscape</string>
+ <string name="screen_layout_portrait">Portrait</string>
+ <string name="screen_layout_auto">Auto</string>
+
+ <!-- Aspect Ratios -->
+ <string name="ratio_default">Default (16:9)</string>
+ <string name="ratio_force_four_three">Force 4:3</string>
+ <string name="ratio_force_twenty_one_nine">Force 21:9</string>
+ <string name="ratio_force_sixteen_ten">Force 16:10</string>
+ <string name="ratio_stretch">Stretch to window</string>
+
+ <!-- CPU Accuracy -->
+ <string name="cpu_accuracy_accurate">Accurate</string>
+ <string name="cpu_accuracy_unsafe">Unsafe</string>
+ <string name="cpu_accuracy_paranoid">Paranoid (Slow)</string>
+
+ <!-- Gamepad Buttons -->
+ <string name="gamepad_d_pad">D-pad</string>
+ <string name="gamepad_left_stick">Left stick</string>
+ <string name="gamepad_right_stick">Right stick</string>
+ <string name="gamepad_home">Home</string>
+ <string name="gamepad_screenshot">Screenshot</string>
+
+ <!-- Disk shader cache -->
+ <string name="preparing_shaders">Preparing shaders</string>
+ <string name="building_shaders">Building shaders</string>
+
+ <!-- Theme options -->
+ <string name="change_app_theme">Change app theme</string>
+ <string name="theme_default">Default</string>
+ <string name="theme_material_you">Material You</string>
+
+ <!-- Theme Modes -->
+ <string name="change_theme_mode">Change theme mode</string>
+ <string name="theme_mode_follow_system">Follow System</string>
+ <string name="theme_mode_light">Light</string>
+ <string name="theme_mode_dark">Dark</string>
+
+ <!-- Audio output engines -->
+ <string name="cubeb">cubeb</string>
+
+ <!-- Black backgrounds theme -->
+ <string name="use_black_backgrounds">Black backgrounds</string>
+ <string name="use_black_backgrounds_description">When using the dark theme, apply black backgrounds.</string>
+
+ <!-- Picture-In-Picture -->
+ <string name="picture_in_picture">Picture in Picture</string>
+ <string name="picture_in_picture_description">Minimize window when placed in the background</string>
+ <string name="pause">Pause</string>
+ <string name="play">Play</string>
+ <string name="mute">Mute</string>
+ <string name="unmute">Unmute</string>
+
+ <!-- Licenses screen strings -->
+ <string name="licenses">Licenses</string>
+ <string name="license_fidelityfx_fsr" translatable="false">FidelityFX-FSR</string>
+ <string name="license_fidelityfx_fsr_description">High-quality upscaling from AMD</string>
+ <string name="license_fidelityfx_fsr_link" translatable="false">https://github.com/GPUOpen-Effects/FidelityFX-FSR</string>
+ <string name="license_fidelityfx_fsr_copyright" translatable="false">Copyright © 2021 Advanced Micro Devices, Inc.</string>
+ <string name="license_fidelityfx_fsr_text" translatable="false">
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the \"Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:\n\n
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.\n\n
+
+THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+ </string>
+ <string name="license_cubeb" translatable="false">cubeb</string>
+ <string name="license_cubeb_description" translatable="false">Cross platform audio library</string>
+ <string name="license_cubeb_link" translatable="false">https://github.com/mozilla/cubeb</string>
+ <string name="license_cubeb_copyright" translatable="false">Copyright © 2011 Mozilla Foundation</string>
+ <string name="license_cubeb_text" translatable="false">
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.\n\n
+
+THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ </string>
+ <string name="license_dynarmic" translatable="false">Dynarmic</string>
+ <string name="license_dynarmic_description" translatable="false">An ARM dynamic recompiler</string>
+ <string name="license_dynarmic_link" translatable="false">https://github.com/merryhime/dynarmic</string>
+ <string name="license_dynarmic_copyright" translatable="false">Copyright © 2017 merryhime</string>
+ <string name="license_dynarmic_text" translatable="false">
+Permission to use, copy, modify, and/or distribute this software for
+any purpose with or without fee is hereby granted.\n\n
+
+THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ </string>
+ <string name="license_ffmpeg" translatable="false">FFmpeg</string>
+ <string name="license_ffmpeg_description" translatable="false">FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.</string>
+ <string name="license_ffmpeg_link" translatable="false">https://github.com/FFmpeg/FFmpeg</string>
+ <string name="license_ffmpeg_copyright" translatable="false">Copyright © 1991, 1999 Free Software Foundation, Inc.</string>
+ <string name="license_ffmpeg_text" translatable="false">
+GNU LESSER GENERAL PUBLIC LICENSE\n
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called \"this License\").
+Each licensee is addressed as \"you\".\n\n
+
+ A \"library\" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.\n\n
+
+ The \"Library\", below, refers to any such software library or work
+which has been distributed under these terms. A \"work based on the
+Library\" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term \"modification\".)\n\n
+
+ \"Source code\" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.\n\n
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.\n\n
+
+ 1. You may copy and distribute verbatim copies of the Library\'s
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.\n\n
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.\n\n
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:\n\n
+
+a) The modified work must itself be a software library.\n\n
+
+b) You must cause the files modified to carry prominent notices
+stating that you changed the files and the date of any change.\n\n
+
+c) You must cause the whole of the work to be licensed at no
+charge to all third parties under the terms of this License.\n\n
+
+d) If a facility in the modified Library refers to a function or a
+table of data to be supplied by an application program that uses
+the facility, other than as an argument passed when the facility
+is invoked, then you must make a good faith effort to ensure that,
+in the event an application does not supply such function or
+table, the facility still operates, and performs whatever part of
+its purpose remains meaningful.\n\n
+
+(For example, a function in a library to compute square roots has
+a purpose that is entirely well-defined independent of the
+application. Therefore, Subsection 2d requires that any
+application-supplied function or table used by this function must
+be optional: if the application does not supply it, the square
+root function must still compute square roots.)\n\n
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.\n\n
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.\n\n
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.\n\n
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.\n\n
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.\n\n
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.\n\n
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.\n\n
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.\n\n
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a \"work that uses the Library\". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.\n\n
+
+ However, linking a \"work that uses the Library\" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a \"work that uses the
+library\". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.\n\n
+
+ When a \"work that uses the Library\" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.\n\n
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)\n\n
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.\n\n
+
+ 6. As an exception to the Sections above, you may also combine or
+link a \"work that uses the Library\" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer\'s own use and reverse
+engineering for debugging such modifications.\n\n
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:\n\n
+
+a) Accompany the work with the complete corresponding
+machine-readable source code for the Library including whatever
+changes were used in the work (which must be distributed under
+Sections 1 and 2 above); and, if the work is an executable linked
+with the Library, with the complete machine-readable \"work that
+uses the Library\", as object code and/or source code, so that the
+user can modify the Library and then relink to produce a modified
+executable containing the modified Library. (It is understood
+that the user who changes the contents of definitions files in the
+Library will not necessarily be able to recompile the application
+to use the modified definitions.)\n\n
+
+b) Use a suitable shared library mechanism for linking with the
+Library. A suitable mechanism is one that (1) uses at run time a
+copy of the library already present on the user\'s computer system,
+rather than copying library functions into the executable, and (2)
+will operate properly with a modified version of the library, if
+the user installs one, as long as the modified version is
+interface-compatible with the version that the work was made with.\n\n
+
+c) Accompany the work with a written offer, valid for at
+least three years, to give the same user the materials
+specified in Subsection 6a, above, for a charge no more
+than the cost of performing this distribution.\n\n
+
+d) If distribution of the work is made by offering access to copy
+from a designated place, offer equivalent access to copy the above
+specified materials from the same place.\n\n
+
+e) Verify that the user has already received a copy of these
+materials or that you have already sent this user a copy.\n\n
+
+ For an executable, the required form of the \"work that uses the
+Library\" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.\n\n
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.\n\n
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:\n\n
+
+a) Accompany the combined library with a copy of the same work
+based on the Library, uncombined with any other library
+facilities. This must be distributed under the terms of the
+Sections above.\n\n
+
+b) Give prominent notice with the combined library of the fact
+that part of it is a work based on the Library, and explaining
+where to find the accompanying uncombined form of the same work.\n\n
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.\n\n
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.\n\n
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients\' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.\n\n
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.\n\n
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.\n\n
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.\n\n
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.\n\n
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.\n\n
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.\n\n
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version\", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.\n\n
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.\n\n
+
+NO WARRANTY\n\n
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+ </string>
+ <string name="license_opus" translatable="false">Opus</string>
+ <string name="license_opus_description" translatable="false">Modern audio compression for the internet</string>
+ <string name="license_opus_link" translatable="false">https://github.com/xiph/opus</string>
+ <string name="license_opus_copyright" translatable="false">Copyright 2001–2011 Xiph.Org, Skype Limited, Octasic, Jean-Marc Valin, Timothy B. Terriberry, CSIRO, Gregory Maxwell, Mark Borgerding, Erik de Castro Lopo</string>
+ <string name="license_opus_text" translatable="false">
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:\n\n
+
+- Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.\n\n
+
+- Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.\n\n
+
+- Neither the name of Internet Society, IETF or IETF Trust, nor the
+names of specific contributors, may be used to endorse or promote
+products derived from this software without specific prior written
+permission.\n\n
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+``AS IS\'\' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n
+
+Opus is subject to the royalty-free patent licenses which are
+specified at:\n\n
+
+Xiph.Org Foundation:
+https://datatracker.ietf.org/ipr/1524/ \n\n
+
+Microsoft Corporation:
+https://datatracker.ietf.org/ipr/1914/ \n\n
+
+Broadcom Corporation:
+https://datatracker.ietf.org/ipr/1526/
+ </string>
+ <string name="license_sirit" translatable="false">Sirit</string>
+ <string name="license_sirit_description" translatable="false">A runtime SPIR-V assembler</string>
+ <string name="license_sirit_link" translatable="false">https://github.com/ReinUsesLisp/sirit</string>
+ <string name="license_sirit_copyright" translatable="false">Copyright © 2019, sirit All rights reserved.</string>
+ <string name="license_sirit_text" translatable="false">
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:\n
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.\n
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.\n
+* Neither the name of the organization nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.\n\n
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ </string>
+ <string name="license_adreno_tools" translatable="false">Adreno Tools</string>
+ <string name="license_adreno_tools_description" translatable="false">A library for applying rootless Adreno GPU driver modifications/replacements</string>
+ <string name="license_adreno_tools_link" translatable="false">https://github.com/bylaws/libadrenotools</string>
+ <string name="license_adreno_tools_copyright" translatable="false">Copyright © 2021, Billy Laws</string>
+ <string name="license_adreno_tools_text" translatable="false">
+BSD 2-Clause License\n\n
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:\n\n
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.\n\n
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.\n\n
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ </string>
+
+</resources>
diff --git a/src/android/app/src/main/res/values/styles.xml b/src/android/app/src/main/res/values/styles.xml
new file mode 100644
index 000000000..4f5de7360
--- /dev/null
+++ b/src/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <!-- Custom button styles -->
+ <style name="InGameMenuOption" parent="Widget.Material3.Button.TextButton">
+ <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_height">48dp</item>
+ <item name="android:textColor">@android:color/black</item>
+ <item name="android:textSize">16sp</item>
+ <item name="android:fontFamily">sans-serif-condensed</item>
+ <item name="android:gravity">center_vertical|left</item>
+ <item name="android:paddingLeft">32dp</item>
+ <item name="android:paddingRight">32dp</item>
+ </style>
+
+ <style name="YuzuSlider" parent="Widget.Material3.Slider">
+ <item name="tickVisible">false</item>
+ <item name="labelBehavior">gone</item>
+ </style>
+
+ <style name="YuzuMaterialDialog" parent="ThemeOverlay.Material3.MaterialAlertDialog">
+ <item name="colorPrimary">@color/yuzu_primaryContainer</item>
+ <item name="colorSurface">@color/yuzu_primaryContainer</item>
+ <item name="colorSecondary">@color/yuzu_primary</item>
+ <item name="android:textColorLink">@color/yuzu_primary</item>
+ <item name="buttonBarPositiveButtonStyle">@style/YuzuButton</item>
+ <item name="buttonBarNegativeButtonStyle">@style/YuzuButton</item>
+ <item name="buttonBarNeutralButtonStyle">@style/YuzuButton</item>
+ </style>
+
+ <style name="YuzuButton" parent="Widget.Material3.Button.TextButton.Dialog">
+ <item name="android:textColor">@color/yuzu_primary</item>
+ <item name="rippleColor">@color/yuzu_inversePrimary</item>
+ </style>
+
+</resources>
diff --git a/src/android/app/src/main/res/values/themes.xml b/src/android/app/src/main/res/values/themes.xml
new file mode 100644
index 000000000..60388b71e
--- /dev/null
+++ b/src/android/app/src/main/res/values/themes.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <style name="Theme.Yuzu.Splash.Main" parent="Theme.SplashScreen">
+ <item name="windowSplashScreenBackground">@color/yuzu_surface</item>
+ <item name="windowSplashScreenAnimatedIcon">@drawable/ic_yuzu</item>
+ <item name="postSplashScreenTheme">@style/Theme.Yuzu.Main</item>
+ </style>
+
+ <style name="Theme.Yuzu.Main" parent="Theme.Material3.DayNight.NoActionBar">
+ <item name="colorPrimary">@color/yuzu_primary</item>
+ <item name="colorOnPrimary">@color/yuzu_onPrimary</item>
+ <item name="colorPrimaryContainer">@color/yuzu_primaryContainer</item>
+ <item name="colorOnPrimaryContainer">@color/yuzu_onPrimaryContainer</item>
+ <item name="colorSecondary">@color/yuzu_secondary</item>
+ <item name="colorOnSecondary">@color/yuzu_onSecondary</item>
+ <item name="colorSecondaryContainer">@color/yuzu_secondaryContainer</item>
+ <item name="colorOnSecondaryContainer">@color/yuzu_onSecondaryContainer</item>
+ <item name="colorTertiary">@color/yuzu_tertiary</item>
+ <item name="colorOnTertiary">@color/yuzu_onTertiary</item>
+ <item name="colorTertiaryContainer">@color/yuzu_tertiaryContainer</item>
+ <item name="colorOnTertiaryContainer">@color/yuzu_onTertiaryContainer</item>
+ <item name="colorError">@color/yuzu_error</item>
+ <item name="colorErrorContainer">@color/yuzu_errorContainer</item>
+ <item name="colorOnError">@color/yuzu_onError</item>
+ <item name="colorOnErrorContainer">@color/yuzu_onErrorContainer</item>
+ <item name="android:colorBackground">@color/yuzu_background</item>
+ <item name="colorOnBackground">@color/yuzu_onBackground</item>
+ <item name="colorSurface">@color/yuzu_surface</item>
+ <item name="colorOnSurface">@color/yuzu_onSurface</item>
+ <item name="colorSurfaceVariant">@color/yuzu_surfaceVariant</item>
+ <item name="colorOnSurfaceVariant">@color/yuzu_onSurfaceVariant</item>
+ <item name="colorOutline">@color/yuzu_outline</item>
+ <item name="colorOnSurfaceInverse">@color/yuzu_inverseOnSurface</item>
+ <item name="colorSurfaceInverse">@color/yuzu_inverseSurface</item>
+ <item name="colorPrimaryInverse">@color/yuzu_inversePrimary</item>
+ <item name="android:shadowColor">@color/yuzu_shadow</item>
+
+ <item name="android:statusBarColor">@android:color/transparent</item>
+ <item name="android:navigationBarColor">@android:color/transparent</item>
+
+ <item name="sliderStyle">@style/YuzuSlider</item>
+ <item name="materialAlertDialogTheme">@style/YuzuMaterialDialog</item>
+
+ <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
+
+ <item name="android:enforceStatusBarContrast">false</item>
+ <item name="android:enforceNavigationBarContrast">false</item>
+ </style>
+
+</resources>
diff --git a/src/android/app/src/main/res/values/yuzu_colors.xml b/src/android/app/src/main/res/values/yuzu_colors.xml
new file mode 100644
index 000000000..5b7d189dc
--- /dev/null
+++ b/src/android/app/src/main/res/values/yuzu_colors.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <color name="yuzu_primary">#990E00</color>
+ <color name="yuzu_onPrimary">#FFFFFF</color>
+ <color name="yuzu_primaryContainer">#EEDEDD</color>
+ <color name="yuzu_onPrimaryContainer">#400200</color>
+ <color name="yuzu_secondary">#775650</color>
+ <color name="yuzu_onSecondary">#FFFFFF</color>
+ <color name="yuzu_secondaryContainer">#FFDAD4</color>
+ <color name="yuzu_onSecondaryContainer">#2C1511</color>
+ <color name="yuzu_tertiary">#6F5C2E</color>
+ <color name="yuzu_onTertiary">#FFFFFF</color>
+ <color name="yuzu_tertiaryContainer">#FAE0A6</color>
+ <color name="yuzu_onTertiaryContainer">#251A00</color>
+ <color name="yuzu_error">#BA1A1A</color>
+ <color name="yuzu_errorContainer">#FFDAD6</color>
+ <color name="yuzu_onError">#FFFFFF</color>
+ <color name="yuzu_onErrorContainer">#410002</color>
+ <color name="yuzu_background">#FFFBFF</color>
+ <color name="yuzu_onBackground">#201A19</color>
+ <color name="yuzu_surface">#FFFBFF</color>
+ <color name="yuzu_onSurface">#201A19</color>
+ <color name="yuzu_surfaceVariant">#F5DDD9</color>
+ <color name="yuzu_onSurfaceVariant">#534340</color>
+ <color name="yuzu_outline">#857370</color>
+ <color name="yuzu_inverseOnSurface">#FBEEEB</color>
+ <color name="yuzu_inverseSurface">#362F2D</color>
+ <color name="yuzu_inversePrimary">#FFB4A6</color>
+ <color name="yuzu_shadow">#000000</color>
+ <color name="yuzu_surfaceTint">#B52612</color>
+ <color name="yuzu_outlineVariant">#D8C2BE</color>
+
+ <color name="yuzu_ea_background_start">#99FFE1</color>
+ <color name="yuzu_ea_background_end">#76C5FF</color>
+
+</resources>
diff --git a/src/android/app/src/main/res/xml/data_extraction_rules.xml b/src/android/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 000000000..c10efcf56
--- /dev/null
+++ b/src/android/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<full-backup-content>
+
+ <exclude
+ domain="external"
+ path="./load/" />
+
+ <exclude
+ domain="external"
+ path="./log/" />
+
+ <include
+ domain="external"
+ path="." />
+
+ <include
+ domain="sharedpref"
+ path="." />
+
+</full-backup-content>
diff --git a/src/android/app/src/main/res/xml/data_extraction_rules_api_31.xml b/src/android/app/src/main/res/xml/data_extraction_rules_api_31.xml
new file mode 100644
index 000000000..3ff6cc170
--- /dev/null
+++ b/src/android/app/src/main/res/xml/data_extraction_rules_api_31.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<data-extraction-rules>
+ <cloud-backup disableIfNoEncryptionCapabilities="false">
+
+ <exclude
+ domain="external"
+ path="./load/" />
+
+ <exclude
+ domain="external"
+ path="./log/" />
+
+ <include
+ domain="external"
+ path="." />
+
+ <include
+ domain="sharedpref"
+ path="." />
+
+ </cloud-backup>
+
+ <device-transfer>
+
+ <exclude
+ domain="external"
+ path="./load/" />
+
+ <exclude
+ domain="external"
+ path="./log/" />
+
+ <include
+ domain="external"
+ path="." />
+
+ <include
+ domain="sharedpref"
+ path="." />
+
+ </device-transfer>
+
+</data-extraction-rules>
diff --git a/src/android/app/src/main/res/xml/locales_config.xml b/src/android/app/src/main/res/xml/locales_config.xml
new file mode 100644
index 000000000..51b88d9dc
--- /dev/null
+++ b/src/android/app/src/main/res/xml/locales_config.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
+ <locale android:name="en" /> <!-- English (default) -->
+ <locale android:name="de" /> <!-- German -->
+ <locale android:name="es" /> <!-- Spanish -->
+ <locale android:name="fr" /> <!-- French -->
+ <locale android:name="it" /> <!-- Italian -->
+ <locale android:name="ja" /> <!-- Japanese -->
+ <locale android:name="nb" /> <!-- Norwegian Bokmal -->
+ <locale android:name="pl" /> <!-- Polish -->
+ <locale android:name="pt-rBR" /> <!-- Portuguese (Brazil) -->
+ <locale android:name="pt-RPT" /> <!-- Portuguese (Portugal) -->
+ <locale android:name="ru" /> <!-- Russian -->
+ <locale android:name="uk" /> <!-- Ukranian -->
+ <locale android:name="zh-rCN" /> <!-- Chinese (China) -->
+ <locale android:name="zh-rTW" /> <!-- Chinese (Taiwan) -->
+</locale-config>
diff --git a/src/android/app/src/main/res/xml/nfc_tech_filter.xml b/src/android/app/src/main/res/xml/nfc_tech_filter.xml
new file mode 100644
index 000000000..eb4497446
--- /dev/null
+++ b/src/android/app/src/main/res/xml/nfc_tech_filter.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <tech-list>
+ <tech>android.nfc.tech.NfcA</tech>
+ </tech-list>
+</resources>
diff --git a/src/android/build.gradle.kts b/src/android/build.gradle.kts
new file mode 100644
index 000000000..80f370c16
--- /dev/null
+++ b/src/android/build.gradle.kts
@@ -0,0 +1,22 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+ id("com.android.application") version "8.0.2" apply false
+ id("com.android.library") version "8.0.2" apply false
+ id("org.jetbrains.kotlin.android") version "1.8.21" apply false
+}
+
+tasks.register("clean").configure {
+ delete(rootProject.buildDir)
+}
+
+buildscript {
+ repositories {
+ google()
+ }
+ dependencies {
+ classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.6.0")
+ }
+}
diff --git a/src/android/gradle.properties b/src/android/gradle.properties
new file mode 100644
index 000000000..e2f278f33
--- /dev/null
+++ b/src/android/gradle.properties
@@ -0,0 +1,17 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xms512m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+android.useAndroidX=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
+kotlin.parallel.tasks.in.project=true
+android.defaults.buildfeatures.buildconfig=true
diff --git a/src/android/gradle/wrapper/gradle-wrapper.jar b/src/android/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 000000000..7a3265ee9
--- /dev/null
+++ b/src/android/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/src/android/gradle/wrapper/gradle-wrapper.properties b/src/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 000000000..578c71b94
--- /dev/null
+++ b/src/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sun Feb 21 18:16:59 EST 2021
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
diff --git a/src/android/gradlew b/src/android/gradlew
new file mode 100755
index 000000000..afa127966
--- /dev/null
+++ b/src/android/gradlew
@@ -0,0 +1,175 @@
+#!/usr/bin/env sh
+
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/src/android/gradlew.bat b/src/android/gradlew.bat
new file mode 100644
index 000000000..be152d108
--- /dev/null
+++ b/src/android/gradlew.bat
@@ -0,0 +1,87 @@
+@rem SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+@rem SPDX-License-Identifier: GPL-3.0-or-later
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/src/android/settings.gradle.kts b/src/android/settings.gradle.kts
new file mode 100644
index 000000000..af910b906
--- /dev/null
+++ b/src/android/settings.gradle.kts
@@ -0,0 +1,21 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+pluginManagement {
+ repositories {
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+
+@Suppress("UnstableApiUsage")
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+include(":app")
diff --git a/src/audio_core/audio_core.cpp b/src/audio_core/audio_core.cpp
index 07a679c32..703ef4494 100644
--- a/src/audio_core/audio_core.cpp
+++ b/src/audio_core/audio_core.cpp
@@ -47,12 +47,4 @@ AudioRenderer::ADSP::ADSP& AudioCore::GetADSP() {
return *adsp;
}
-void AudioCore::SetNVDECActive(bool active) {
- nvdec_active = active;
-}
-
-bool AudioCore::IsNVDECActive() const {
- return nvdec_active;
-}
-
} // namespace AudioCore
diff --git a/src/audio_core/audio_core.h b/src/audio_core/audio_core.h
index e33e00a3e..ea047773e 100644
--- a/src/audio_core/audio_core.h
+++ b/src/audio_core/audio_core.h
@@ -57,18 +57,6 @@ public:
*/
AudioRenderer::ADSP::ADSP& GetADSP();
- /**
- * Toggle NVDEC state, used to avoid stall in playback.
- *
- * @param active - Set true if nvdec is active, otherwise false.
- */
- void SetNVDECActive(bool active);
-
- /**
- * Get NVDEC state.
- */
- bool IsNVDECActive() const;
-
private:
/**
* Create the sinks on startup.
@@ -83,8 +71,6 @@ private:
std::unique_ptr<Sink::Sink> input_sink;
/// The ADSP in the sysmodule
std::unique_ptr<AudioRenderer::ADSP::ADSP> adsp;
- /// Is NVDec currently active?
- bool nvdec_active{false};
};
} // namespace AudioCore
diff --git a/src/audio_core/audio_in_manager.cpp b/src/audio_core/audio_in_manager.cpp
index f39fb4002..3dfb613cb 100644
--- a/src/audio_core/audio_in_manager.cpp
+++ b/src/audio_core/audio_in_manager.cpp
@@ -20,7 +20,7 @@ Manager::Manager(Core::System& system_) : system{system_} {
Result Manager::AcquireSessionId(size_t& session_id) {
if (num_free_sessions == 0) {
LOG_ERROR(Service_Audio, "All 4 AudioIn sessions are in use, cannot create any more");
- return Service::Audio::ERR_MAXIMUM_SESSIONS_REACHED;
+ return Service::Audio::ResultOutOfSessions;
}
session_id = session_ids[next_session_id];
next_session_id = (next_session_id + 1) % MaxInSessions;
diff --git a/src/audio_core/audio_manager.cpp b/src/audio_core/audio_manager.cpp
index 2acde668e..10b56f214 100644
--- a/src/audio_core/audio_manager.cpp
+++ b/src/audio_core/audio_manager.cpp
@@ -19,7 +19,7 @@ void AudioManager::Shutdown() {
Result AudioManager::SetOutManager(BufferEventFunc buffer_func) {
if (!running) {
- return Service::Audio::ERR_OPERATION_FAILED;
+ return Service::Audio::ResultOperationFailed;
}
std::scoped_lock l{lock};
@@ -35,7 +35,7 @@ Result AudioManager::SetOutManager(BufferEventFunc buffer_func) {
Result AudioManager::SetInManager(BufferEventFunc buffer_func) {
if (!running) {
- return Service::Audio::ERR_OPERATION_FAILED;
+ return Service::Audio::ResultOperationFailed;
}
std::scoped_lock l{lock};
diff --git a/src/audio_core/audio_out_manager.cpp b/src/audio_core/audio_out_manager.cpp
index 1766efde1..f22821360 100644
--- a/src/audio_core/audio_out_manager.cpp
+++ b/src/audio_core/audio_out_manager.cpp
@@ -19,7 +19,7 @@ Manager::Manager(Core::System& system_) : system{system_} {
Result Manager::AcquireSessionId(size_t& session_id) {
if (num_free_sessions == 0) {
LOG_ERROR(Service_Audio, "All 12 Audio Out sessions are in use, cannot create any more");
- return Service::Audio::ERR_MAXIMUM_SESSIONS_REACHED;
+ return Service::Audio::ResultOutOfSessions;
}
session_id = session_ids[next_session_id];
next_session_id = (next_session_id + 1) % MaxOutSessions;
diff --git a/src/audio_core/audio_out_manager.h b/src/audio_core/audio_out_manager.h
index 24981e08f..1e05ec5ed 100644
--- a/src/audio_core/audio_out_manager.h
+++ b/src/audio_core/audio_out_manager.h
@@ -58,7 +58,7 @@ public:
/**
* Get a list of audio out device names.
*
- * @oaram names - Output container to write names to.
+ * @param names - Output container to write names to.
* @return Number of names written.
*/
u32 GetAudioOutDeviceNames(
diff --git a/src/audio_core/audio_render_manager.cpp b/src/audio_core/audio_render_manager.cpp
index 7aba2b423..320715727 100644
--- a/src/audio_core/audio_render_manager.cpp
+++ b/src/audio_core/audio_render_manager.cpp
@@ -28,7 +28,7 @@ SystemManager& Manager::GetSystemManager() {
Result Manager::GetWorkBufferSize(const AudioRendererParameterInternal& params,
u64& out_count) const {
if (!CheckValidRevision(params.revision)) {
- return Service::Audio::ERR_INVALID_REVISION;
+ return Service::Audio::ResultInvalidRevision;
}
out_count = System::GetWorkBufferSize(params);
diff --git a/src/audio_core/device/audio_buffer.h b/src/audio_core/device/audio_buffer.h
index 7128ef72a..4eb80c2ba 100644
--- a/src/audio_core/device/audio_buffer.h
+++ b/src/audio_core/device/audio_buffer.h
@@ -16,7 +16,7 @@ struct AudioBuffer {
s64 played_timestamp;
/// Game memory address for these samples.
VAddr samples;
- /// Unqiue identifier for this buffer.
+ /// Unique identifier for this buffer.
u64 tag;
/// Size of the samples buffer.
u64 size;
diff --git a/src/audio_core/device/audio_buffers.h b/src/audio_core/device/audio_buffers.h
index 15082f6c6..5d8ed0ef7 100644
--- a/src/audio_core/device/audio_buffers.h
+++ b/src/audio_core/device/audio_buffers.h
@@ -7,6 +7,7 @@
#include <mutex>
#include <span>
#include <vector>
+#include <boost/container/static_vector.hpp>
#include "audio_buffer.h"
#include "audio_core/device/device_session.h"
@@ -48,7 +49,7 @@ public:
*
* @param out_buffers - The buffers which were registered.
*/
- void RegisterBuffers(std::vector<AudioBuffer>& out_buffers) {
+ void RegisterBuffers(boost::container::static_vector<AudioBuffer, N>& out_buffers) {
std::scoped_lock l{lock};
const s32 to_register{std::min(std::min(appended_count, BufferAppendLimit),
BufferAppendLimit - registered_count)};
@@ -162,7 +163,8 @@ public:
* @param max_buffers - Maximum number of buffers to released.
* @return The number of buffers released.
*/
- u32 GetRegisteredAppendedBuffers(std::vector<AudioBuffer>& buffers_flushed, u32 max_buffers) {
+ u32 GetRegisteredAppendedBuffers(
+ boost::container::static_vector<AudioBuffer, N>& buffers_flushed, u32 max_buffers) {
std::scoped_lock l{lock};
if (registered_count + appended_count == 0) {
return 0;
@@ -270,7 +272,7 @@ public:
*/
bool FlushBuffers(u32& buffers_released) {
std::scoped_lock l{lock};
- std::vector<AudioBuffer> buffers_flushed{};
+ boost::container::static_vector<AudioBuffer, N> buffers_flushed{};
buffers_released = GetRegisteredAppendedBuffers(buffers_flushed, append_limit);
diff --git a/src/audio_core/device/device_session.cpp b/src/audio_core/device/device_session.cpp
index 5a327a606..86811fcb8 100644
--- a/src/audio_core/device/device_session.cpp
+++ b/src/audio_core/device/device_session.cpp
@@ -79,7 +79,7 @@ void DeviceSession::ClearBuffers() {
}
}
-void DeviceSession::AppendBuffers(std::span<const AudioBuffer> buffers) const {
+void DeviceSession::AppendBuffers(std::span<const AudioBuffer> buffers) {
for (const auto& buffer : buffers) {
Sink::SinkBuffer new_buffer{
.frames = buffer.size / (channel_count * sizeof(s16)),
@@ -88,13 +88,13 @@ void DeviceSession::AppendBuffers(std::span<const AudioBuffer> buffers) const {
.consumed = false,
};
+ tmp_samples.resize_destructive(buffer.size / sizeof(s16));
if (type == Sink::StreamType::In) {
- std::vector<s16> samples{};
- stream->AppendBuffer(new_buffer, samples);
+ stream->AppendBuffer(new_buffer, tmp_samples);
} else {
- std::vector<s16> samples(buffer.size / sizeof(s16));
- system.Memory().ReadBlockUnsafe(buffer.samples, samples.data(), buffer.size);
- stream->AppendBuffer(new_buffer, samples);
+ system.ApplicationMemory().ReadBlockUnsafe(buffer.samples, tmp_samples.data(),
+ buffer.size);
+ stream->AppendBuffer(new_buffer, tmp_samples);
}
}
}
@@ -102,7 +102,7 @@ void DeviceSession::AppendBuffers(std::span<const AudioBuffer> buffers) const {
void DeviceSession::ReleaseBuffer(const AudioBuffer& buffer) const {
if (type == Sink::StreamType::In) {
auto samples{stream->ReleaseBuffer(buffer.size / sizeof(s16))};
- system.Memory().WriteBlockUnsafe(buffer.samples, samples.data(), buffer.size);
+ system.ApplicationMemory().WriteBlockUnsafe(buffer.samples, samples.data(), buffer.size);
}
}
@@ -121,8 +121,7 @@ u64 DeviceSession::GetPlayedSampleCount() const {
}
std::optional<std::chrono::nanoseconds> DeviceSession::ThreadFunc() {
- // Add 5ms of samples at a 48K sample rate.
- played_sample_count += 48'000 * INCREMENT_TIME / 1s;
+ played_sample_count = stream->GetExpectedPlayedSampleCount();
if (type == Sink::StreamType::Out) {
system.AudioCore().GetAudioManager().SetEvent(Event::Type::AudioOutManager, true);
} else {
diff --git a/src/audio_core/device/device_session.h b/src/audio_core/device/device_session.h
index 75f766c68..7d52f362d 100644
--- a/src/audio_core/device/device_session.h
+++ b/src/audio_core/device/device_session.h
@@ -10,6 +10,7 @@
#include "audio_core/common/common.h"
#include "audio_core/sink/sink.h"
+#include "common/scratch_buffer.h"
#include "core/hle/service/audio/errors.h"
namespace Core {
@@ -62,7 +63,7 @@ public:
*
* @param buffers - The buffers to play.
*/
- void AppendBuffers(std::span<const AudioBuffer> buffers) const;
+ void AppendBuffers(std::span<const AudioBuffer> buffers);
/**
* (Audio In only) Pop samples from the backend, and write them back to this buffer's address.
@@ -146,8 +147,8 @@ private:
std::shared_ptr<Core::Timing::EventType> thread_event;
/// Is this session initialised?
bool initialized{};
- /// Buffer queue
- std::vector<AudioBuffer> buffer_queue{};
+ /// Temporary sample buffer
+ Common::ScratchBuffer<s16> tmp_samples{};
};
} // namespace AudioCore
diff --git a/src/audio_core/in/audio_in.cpp b/src/audio_core/in/audio_in.cpp
index 91ccd5ad7..df8c44d1f 100644
--- a/src/audio_core/in/audio_in.cpp
+++ b/src/audio_core/in/audio_in.cpp
@@ -46,7 +46,7 @@ Result In::AppendBuffer(const AudioInBuffer& buffer, u64 tag) {
if (system.AppendBuffer(buffer, tag)) {
return ResultSuccess;
}
- return Service::Audio::ERR_BUFFER_COUNT_EXCEEDED;
+ return Service::Audio::ResultBufferCountReached;
}
void In::ReleaseAndRegisterBuffers() {
diff --git a/src/audio_core/in/audio_in_system.cpp b/src/audio_core/in/audio_in_system.cpp
index 934ef8c1c..579129121 100644
--- a/src/audio_core/in/audio_in_system.cpp
+++ b/src/audio_core/in/audio_in_system.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <mutex>
+
#include "audio_core/audio_event.h"
#include "audio_core/audio_manager.h"
#include "audio_core/in/audio_in_system.h"
@@ -45,11 +46,11 @@ Result System::IsConfigValid(const std::string_view device_name,
const AudioInParameter& in_params) const {
if ((device_name.size() > 0) &&
(device_name != GetDefaultDeviceName() && device_name != GetDefaultUacDeviceName())) {
- return Service::Audio::ERR_INVALID_DEVICE_NAME;
+ return Service::Audio::ResultNotFound;
}
if (in_params.sample_rate != TargetSampleRate && in_params.sample_rate > 0) {
- return Service::Audio::ERR_INVALID_SAMPLE_RATE;
+ return Service::Audio::ResultInvalidSampleRate;
}
return ResultSuccess;
@@ -80,7 +81,7 @@ Result System::Initialize(std::string device_name, const AudioInParameter& in_pa
Result System::Start() {
if (state != State::Stopped) {
- return Service::Audio::ERR_OPERATION_FAILED;
+ return Service::Audio::ResultOperationFailed;
}
session->Initialize(name, sample_format, channel_count, session_id, handle,
@@ -89,7 +90,7 @@ Result System::Start() {
session->Start();
state = State::Started;
- std::vector<AudioBuffer> buffers_to_flush{};
+ boost::container::static_vector<AudioBuffer, BufferCount> buffers_to_flush{};
buffers.RegisterBuffers(buffers_to_flush);
session->AppendBuffers(buffers_to_flush);
session->SetRingSize(static_cast<u32>(buffers_to_flush.size()));
@@ -134,7 +135,7 @@ bool System::AppendBuffer(const AudioInBuffer& buffer, const u64 tag) {
void System::RegisterBuffers() {
if (state == State::Started) {
- std::vector<AudioBuffer> registered_buffers{};
+ boost::container::static_vector<AudioBuffer, BufferCount> registered_buffers{};
buffers.RegisterBuffers(registered_buffers);
session->AppendBuffers(registered_buffers);
}
diff --git a/src/audio_core/out/audio_out.cpp b/src/audio_core/out/audio_out.cpp
index d3ee4f0eb..b7ea13405 100644
--- a/src/audio_core/out/audio_out.cpp
+++ b/src/audio_core/out/audio_out.cpp
@@ -46,7 +46,7 @@ Result Out::AppendBuffer(const AudioOutBuffer& buffer, const u64 tag) {
if (system.AppendBuffer(buffer, tag)) {
return ResultSuccess;
}
- return Service::Audio::ERR_BUFFER_COUNT_EXCEEDED;
+ return Service::Audio::ResultBufferCountReached;
}
void Out::ReleaseAndRegisterBuffers() {
diff --git a/src/audio_core/out/audio_out_system.cpp b/src/audio_core/out/audio_out_system.cpp
index e096a1dac..0adf64bd3 100644
--- a/src/audio_core/out/audio_out_system.cpp
+++ b/src/audio_core/out/audio_out_system.cpp
@@ -33,11 +33,11 @@ std::string_view System::GetDefaultOutputDeviceName() const {
Result System::IsConfigValid(std::string_view device_name,
const AudioOutParameter& in_params) const {
if ((device_name.size() > 0) && (device_name != GetDefaultOutputDeviceName())) {
- return Service::Audio::ERR_INVALID_DEVICE_NAME;
+ return Service::Audio::ResultNotFound;
}
if (in_params.sample_rate != TargetSampleRate && in_params.sample_rate > 0) {
- return Service::Audio::ERR_INVALID_SAMPLE_RATE;
+ return Service::Audio::ResultInvalidSampleRate;
}
if (in_params.channel_count == 0 || in_params.channel_count == 2 ||
@@ -45,7 +45,7 @@ Result System::IsConfigValid(std::string_view device_name,
return ResultSuccess;
}
- return Service::Audio::ERR_INVALID_CHANNEL_COUNT;
+ return Service::Audio::ResultInvalidChannelCount;
}
Result System::Initialize(std::string device_name, const AudioOutParameter& in_params, u32 handle_,
@@ -80,7 +80,7 @@ size_t System::GetSessionId() const {
Result System::Start() {
if (state != State::Stopped) {
- return Service::Audio::ERR_OPERATION_FAILED;
+ return Service::Audio::ResultOperationFailed;
}
session->Initialize(name, sample_format, channel_count, session_id, handle,
@@ -89,7 +89,7 @@ Result System::Start() {
session->Start();
state = State::Started;
- std::vector<AudioBuffer> buffers_to_flush{};
+ boost::container::static_vector<AudioBuffer, BufferCount> buffers_to_flush{};
buffers.RegisterBuffers(buffers_to_flush);
session->AppendBuffers(buffers_to_flush);
session->SetRingSize(static_cast<u32>(buffers_to_flush.size()));
@@ -134,7 +134,7 @@ bool System::AppendBuffer(const AudioOutBuffer& buffer, u64 tag) {
void System::RegisterBuffers() {
if (state == State::Started) {
- std::vector<AudioBuffer> registered_buffers{};
+ boost::container::static_vector<AudioBuffer, BufferCount> registered_buffers{};
buffers.RegisterBuffers(registered_buffers);
session->AppendBuffers(registered_buffers);
}
diff --git a/src/audio_core/renderer/adsp/adsp.cpp b/src/audio_core/renderer/adsp/adsp.cpp
index a28395663..b1db31e93 100644
--- a/src/audio_core/renderer/adsp/adsp.cpp
+++ b/src/audio_core/renderer/adsp/adsp.cpp
@@ -7,13 +7,12 @@
#include "common/logging/log.h"
#include "core/core.h"
#include "core/core_timing.h"
-#include "core/core_timing_util.h"
#include "core/memory.h"
namespace AudioCore::AudioRenderer::ADSP {
ADSP::ADSP(Core::System& system_, Sink::Sink& sink_)
- : system{system_}, memory{system.Memory()}, sink{sink_} {}
+ : system{system_}, memory{system.ApplicationMemory()}, sink{sink_} {}
ADSP::~ADSP() {
ClearCommandBuffers();
diff --git a/src/audio_core/renderer/adsp/audio_renderer.cpp b/src/audio_core/renderer/adsp/audio_renderer.cpp
index d982ef630..9ca716b60 100644
--- a/src/audio_core/renderer/adsp/audio_renderer.cpp
+++ b/src/audio_core/renderer/adsp/audio_renderer.cpp
@@ -13,7 +13,6 @@
#include "common/thread.h"
#include "core/core.h"
#include "core/core_timing.h"
-#include "core/core_timing_util.h"
MICROPROFILE_DEFINE(Audio_Renderer, "Audio", "DSP", MP_RGB(60, 19, 97));
@@ -105,7 +104,7 @@ void AudioRenderer::Start(AudioRenderer_Mailbox* mailbox_) {
}
mailbox = mailbox_;
- thread = std::thread(&AudioRenderer::ThreadFunc, this);
+ thread = std::jthread([this](std::stop_token stop_token) { ThreadFunc(stop_token); });
running = true;
}
@@ -131,11 +130,11 @@ void AudioRenderer::CreateSinkStreams() {
}
}
-void AudioRenderer::ThreadFunc() {
- constexpr char name[]{"AudioRenderer"};
+void AudioRenderer::ThreadFunc(std::stop_token stop_token) {
+ static constexpr char name[]{"AudioRenderer"};
MicroProfileOnThreadCreate(name);
Common::SetCurrentThreadName(name);
- Common::SetCurrentThreadPriority(Common::ThreadPriority::Critical);
+ Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
if (mailbox->ADSPWaitMessage() != RenderMessage::AudioRenderer_InitializeOK) {
LOG_ERROR(Service_Audio,
"ADSP Audio Renderer -- Failed to receive initialize message from host!");
@@ -144,9 +143,10 @@ void AudioRenderer::ThreadFunc() {
mailbox->ADSPSendMessage(RenderMessage::AudioRenderer_InitializeOK);
+ // 0.12 seconds (2304000 / 19200000)
constexpr u64 max_process_time{2'304'000ULL};
- while (true) {
+ while (!stop_token.stop_requested()) {
auto message{mailbox->ADSPWaitMessage()};
switch (message) {
case RenderMessage::AudioRenderer_Shutdown:
@@ -154,6 +154,11 @@ void AudioRenderer::ThreadFunc() {
return;
case RenderMessage::AudioRenderer_Render: {
+ if (system.IsShuttingDown()) [[unlikely]] {
+ std::this_thread::sleep_for(std::chrono::milliseconds(5));
+ mailbox->ADSPSendMessage(RenderMessage::AudioRenderer_RenderResponse);
+ continue;
+ }
std::array<bool, MaxRendererSessions> buffers_reset{};
std::array<u64, MaxRendererSessions> render_times_taken{};
const auto start_time{system.CoreTiming().GetClockTicks()};
@@ -165,7 +170,7 @@ void AudioRenderer::ThreadFunc() {
// Check this buffer is valid, as it may not be used.
if (command_buffer.buffer != 0) {
// If there are no remaining commands (from the previous list),
- // this is a new command list, initalize it.
+ // this is a new command list, initialize it.
if (command_buffer.remaining_command_count == 0) {
command_list_processor.Initialize(system, command_buffer.buffer,
command_buffer.size, streams[index]);
@@ -179,8 +184,7 @@ void AudioRenderer::ThreadFunc() {
u64 max_time{max_process_time};
if (index == 1 && command_buffer.applet_resource_user_id ==
mailbox->GetCommandBuffer(0).applet_resource_user_id) {
- max_time = max_process_time -
- Core::Timing::CyclesToNs(render_times_taken[0]).count();
+ max_time = max_process_time - render_times_taken[0];
if (render_times_taken[0] > max_process_time) {
max_time = 0;
}
@@ -189,6 +193,8 @@ void AudioRenderer::ThreadFunc() {
max_time = std::min(command_buffer.time_limit, max_time);
command_list_processor.SetProcessTimeMax(max_time);
+ streams[index]->WaitFreeSpace(stop_token);
+
// Process the command list
{
MICROPROFILE_SCOPE(Audio_Renderer);
diff --git a/src/audio_core/renderer/adsp/audio_renderer.h b/src/audio_core/renderer/adsp/audio_renderer.h
index 151f38c1b..88e558183 100644
--- a/src/audio_core/renderer/adsp/audio_renderer.h
+++ b/src/audio_core/renderer/adsp/audio_renderer.h
@@ -10,6 +10,7 @@
#include "audio_core/renderer/adsp/command_buffer.h"
#include "audio_core/renderer/adsp/command_list_processor.h"
#include "common/common_types.h"
+#include "common/polyfill_thread.h"
#include "common/reader_writer_queue.h"
#include "common/thread.h"
@@ -176,7 +177,7 @@ private:
/**
* Main AudioRenderer thread, responsible for processing the command lists.
*/
- void ThreadFunc();
+ void ThreadFunc(std::stop_token stop_token);
/**
* Creates the streams which will receive the processed samples.
@@ -186,7 +187,7 @@ private:
/// Core system
Core::System& system;
/// Main thread
- std::thread thread{};
+ std::jthread thread{};
/// The current state
std::atomic<bool> running{};
/// The active mailbox
diff --git a/src/audio_core/renderer/adsp/command_list_processor.cpp b/src/audio_core/renderer/adsp/command_list_processor.cpp
index e3bf2d7ec..3a0f1ae38 100644
--- a/src/audio_core/renderer/adsp/command_list_processor.cpp
+++ b/src/audio_core/renderer/adsp/command_list_processor.cpp
@@ -9,7 +9,6 @@
#include "common/settings.h"
#include "core/core.h"
#include "core/core_timing.h"
-#include "core/core_timing_util.h"
#include "core/memory.h"
namespace AudioCore::AudioRenderer::ADSP {
@@ -17,7 +16,7 @@ namespace AudioCore::AudioRenderer::ADSP {
void CommandListProcessor::Initialize(Core::System& system_, CpuAddr buffer, u64 size,
Sink::SinkStream* stream_) {
system = &system_;
- memory = &system->Memory();
+ memory = &system->ApplicationMemory();
stream = stream_;
header = reinterpret_cast<CommandListHeader*>(buffer);
commands = reinterpret_cast<u8*>(buffer + sizeof(CommandListHeader));
diff --git a/src/audio_core/renderer/audio_renderer.cpp b/src/audio_core/renderer/audio_renderer.cpp
index 51aa17599..a8257eb2e 100644
--- a/src/audio_core/renderer/audio_renderer.cpp
+++ b/src/audio_core/renderer/audio_renderer.cpp
@@ -22,7 +22,7 @@ Result Renderer::Initialize(const AudioRendererParameterInternal& params,
if (!manager.AddSystem(system)) {
LOG_ERROR(Service_Audio,
"Both Audio Render sessions are in use, cannot create any more");
- return Service::Audio::ERR_MAXIMUM_SESSIONS_REACHED;
+ return Service::Audio::ResultOutOfSessions;
}
system_registered = true;
}
diff --git a/src/audio_core/renderer/behavior/behavior_info.h b/src/audio_core/renderer/behavior/behavior_info.h
index 15c948344..b52340229 100644
--- a/src/audio_core/renderer/behavior/behavior_info.h
+++ b/src/audio_core/renderer/behavior/behavior_info.h
@@ -155,7 +155,7 @@ public:
/**
* Check if a variadic command buffer is supported.
* As of Rev 5 with the added optional performance metric logging, the command
- * buffer can be a variable size, so take that into account for calcualting its size.
+ * buffer can be a variable size, so take that into account for calculating its size.
*
* @return True if supported, otherwise false.
*/
diff --git a/src/audio_core/renderer/behavior/info_updater.cpp b/src/audio_core/renderer/behavior/info_updater.cpp
index 574cf0982..e312eb166 100644
--- a/src/audio_core/renderer/behavior/info_updater.cpp
+++ b/src/audio_core/renderer/behavior/info_updater.cpp
@@ -48,7 +48,7 @@ Result InfoUpdater::UpdateVoiceChannelResources(VoiceContext& voice_context) {
LOG_ERROR(Service_Audio,
"Consumed an incorrect voice resource size, header size={}, consumed={}",
in_header->voice_resources_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
input += consumed_input_size;
@@ -123,7 +123,7 @@ Result InfoUpdater::UpdateVoices(VoiceContext& voice_context,
if (consumed_input_size != in_header->voices_size) {
LOG_ERROR(Service_Audio, "Consumed an incorrect voices size, header size={}, consumed={}",
in_header->voices_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
out_header->voices_size = consumed_output_size;
@@ -184,7 +184,7 @@ Result InfoUpdater::UpdateEffectsVersion1(EffectContext& effect_context, const b
if (consumed_input_size != in_header->effects_size) {
LOG_ERROR(Service_Audio, "Consumed an incorrect effects size, header size={}, consumed={}",
in_header->effects_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
out_header->effects_size = consumed_output_size;
@@ -239,7 +239,7 @@ Result InfoUpdater::UpdateEffectsVersion2(EffectContext& effect_context, const b
if (consumed_input_size != in_header->effects_size) {
LOG_ERROR(Service_Audio, "Consumed an incorrect effects size, header size={}, consumed={}",
in_header->effects_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
out_header->effects_size = consumed_output_size;
@@ -267,7 +267,7 @@ Result InfoUpdater::UpdateMixes(MixContext& mix_context, const u32 mix_buffer_co
}
if (mix_buffer_count == 0) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
std::span<const MixInfo::InParameter> in_params{
@@ -281,13 +281,13 @@ Result InfoUpdater::UpdateMixes(MixContext& mix_context, const u32 mix_buffer_co
total_buffer_count += params.buffer_count;
if (params.dest_mix_id > static_cast<s32>(mix_context.GetCount()) &&
params.dest_mix_id != UnusedMixId && params.mix_id != FinalMixId) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
}
}
if (total_buffer_count > mix_buffer_count) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
bool mix_dirty{false};
@@ -317,7 +317,7 @@ Result InfoUpdater::UpdateMixes(MixContext& mix_context, const u32 mix_buffer_co
if (mix_dirty) {
if (behaviour.IsSplitterSupported() && splitter_context.UsingSplitter()) {
if (!mix_context.TSortInfo(splitter_context)) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
} else {
mix_context.SortInfo();
@@ -327,7 +327,7 @@ Result InfoUpdater::UpdateMixes(MixContext& mix_context, const u32 mix_buffer_co
if (consumed_input_size != in_header->mix_size) {
LOG_ERROR(Service_Audio, "Consumed an incorrect mixes size, header size={}, consumed={}",
in_header->mix_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
input += mix_count * sizeof(MixInfo::InParameter);
@@ -384,7 +384,7 @@ Result InfoUpdater::UpdateSinks(SinkContext& sink_context, std::span<MemoryPoolI
if (consumed_input_size != in_header->sinks_size) {
LOG_ERROR(Service_Audio, "Consumed an incorrect sinks size, header size={}, consumed={}",
in_header->sinks_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
input += consumed_input_size;
@@ -411,7 +411,7 @@ Result InfoUpdater::UpdateMemoryPools(std::span<MemoryPoolInfo> memory_pools,
state != MemoryPoolInfo::ResultState::MapFailed &&
state != MemoryPoolInfo::ResultState::InUse) {
LOG_WARNING(Service_Audio, "Invalid ResultState from updating memory pools");
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
}
@@ -423,7 +423,7 @@ Result InfoUpdater::UpdateMemoryPools(std::span<MemoryPoolInfo> memory_pools,
LOG_ERROR(Service_Audio,
"Consumed an incorrect memory pool size, header size={}, consumed={}",
in_header->memory_pool_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
input += consumed_input_size;
@@ -453,7 +453,7 @@ Result InfoUpdater::UpdatePerformanceBuffer(std::span<u8> performance_output,
LOG_ERROR(Service_Audio,
"Consumed an incorrect performance size, header size={}, consumed={}",
in_header->performance_buffer_size, consumed_input_size);
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
input += consumed_input_size;
@@ -467,18 +467,18 @@ Result InfoUpdater::UpdateBehaviorInfo(BehaviorInfo& behaviour_) {
const auto in_params{reinterpret_cast<const BehaviorInfo::InParameter*>(input)};
if (!CheckValidRevision(in_params->revision)) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
if (in_params->revision != behaviour_.GetUserRevision()) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
behaviour_.ClearError();
behaviour_.UpdateFlags(in_params->flags);
if (in_header->behaviour_size != sizeof(BehaviorInfo::InParameter)) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
input += sizeof(BehaviorInfo::InParameter);
@@ -500,7 +500,7 @@ Result InfoUpdater::UpdateErrorInfo(const BehaviorInfo& behaviour_) {
Result InfoUpdater::UpdateSplitterInfo(SplitterContext& splitter_context) {
u32 consumed_size{0};
if (!splitter_context.Update(input, consumed_size)) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
input += consumed_size;
@@ -529,9 +529,9 @@ Result InfoUpdater::UpdateRendererInfo(const u64 elapsed_frames) {
Result InfoUpdater::CheckConsumedSize() {
if (CpuAddr(input) - CpuAddr(input_origin.data()) != expected_input_size) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
} else if (CpuAddr(output) - CpuAddr(output_origin.data()) != expected_output_size) {
- return Service::Audio::ERR_INVALID_UPDATE_DATA;
+ return Service::Audio::ResultInvalidUpdateInfo;
}
return ResultSuccess;
}
diff --git a/src/audio_core/renderer/command/command_buffer.cpp b/src/audio_core/renderer/command/command_buffer.cpp
index 8c6fe97e7..0bd418306 100644
--- a/src/audio_core/renderer/command/command_buffer.cpp
+++ b/src/audio_core/renderer/command/command_buffer.cpp
@@ -251,8 +251,8 @@ void CommandBuffer::GenerateBiquadFilterCommand(const s32 node_id, EffectInfoBas
const auto& parameter{
*reinterpret_cast<BiquadFilterInfo::ParameterVersion1*>(effect_info.GetParameter())};
- const auto state{
- reinterpret_cast<VoiceState::BiquadFilterState*>(effect_info.GetStateBuffer())};
+ const auto state{reinterpret_cast<VoiceState::BiquadFilterState*>(
+ effect_info.GetStateBuffer() + channel * sizeof(VoiceState::BiquadFilterState))};
cmd.input = buffer_offset + parameter.inputs[channel];
cmd.output = buffer_offset + parameter.outputs[channel];
diff --git a/src/audio_core/renderer/command/command_generator.cpp b/src/audio_core/renderer/command/command_generator.cpp
index 2ea50d128..fba84c7bd 100644
--- a/src/audio_core/renderer/command/command_generator.cpp
+++ b/src/audio_core/renderer/command/command_generator.cpp
@@ -46,7 +46,7 @@ void CommandGenerator::GenerateDataSourceCommand(VoiceInfo& voice_info,
while (destination != nullptr) {
if (destination->IsConfigured()) {
auto mix_id{destination->GetMixId()};
- if (mix_id < mix_context.GetCount()) {
+ if (mix_id < mix_context.GetCount() && mix_id != UnusedSplitterId) {
auto mix_info{mix_context.GetInfo(mix_id)};
command_buffer.GenerateDepopPrepareCommand(
voice_info.node_id, voice_state, render_context.depop_buffer,
diff --git a/src/audio_core/renderer/command/data_source/decode.cpp b/src/audio_core/renderer/command/data_source/decode.cpp
index ff5d31bd6..f45933203 100644
--- a/src/audio_core/renderer/command/data_source/decode.cpp
+++ b/src/audio_core/renderer/command/data_source/decode.cpp
@@ -8,6 +8,7 @@
#include "audio_core/renderer/command/resample/resample.h"
#include "common/fixed_point.h"
#include "common/logging/log.h"
+#include "common/scratch_buffer.h"
#include "core/memory.h"
namespace AudioCore::AudioRenderer {
@@ -27,6 +28,7 @@ constexpr std::array<u8, 3> PitchBySrcQuality = {4, 8, 4};
template <typename T>
static u32 DecodePcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
const DecodeArg& req) {
+ std::array<T, TempBufferSize> tmp_samples{};
constexpr s32 min{std::numeric_limits<s16>::min()};
constexpr s32 max{std::numeric_limits<s16>::max()};
@@ -49,18 +51,17 @@ static u32 DecodePcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
const u64 size{channel_count * samples_to_decode};
const u64 size_bytes{size * sizeof(T)};
- std::vector<T> samples(size);
- memory.ReadBlockUnsafe(source, samples.data(), size_bytes);
+ memory.ReadBlockUnsafe(source, tmp_samples.data(), size_bytes);
if constexpr (std::is_floating_point_v<T>) {
for (u32 i = 0; i < samples_to_decode; i++) {
- auto sample{static_cast<s32>(samples[i * channel_count + req.target_channel] *
+ auto sample{static_cast<s32>(tmp_samples[i * channel_count + req.target_channel] *
std::numeric_limits<s16>::max())};
out_buffer[i] = static_cast<s16>(std::clamp(sample, min, max));
}
} else {
for (u32 i = 0; i < samples_to_decode; i++) {
- out_buffer[i] = samples[i * channel_count + req.target_channel];
+ out_buffer[i] = tmp_samples[i * channel_count + req.target_channel];
}
}
} break;
@@ -73,17 +74,16 @@ static u32 DecodePcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
}
const VAddr source{req.buffer + ((req.start_offset + req.offset) * sizeof(T))};
- std::vector<T> samples(samples_to_decode);
- memory.ReadBlockUnsafe(source, samples.data(), samples_to_decode * sizeof(T));
+ memory.ReadBlockUnsafe(source, tmp_samples.data(), samples_to_decode * sizeof(T));
if constexpr (std::is_floating_point_v<T>) {
for (u32 i = 0; i < samples_to_decode; i++) {
- auto sample{static_cast<s32>(samples[i * channel_count + req.target_channel] *
+ auto sample{static_cast<s32>(tmp_samples[i * channel_count + req.target_channel] *
std::numeric_limits<s16>::max())};
out_buffer[i] = static_cast<s16>(std::clamp(sample, min, max));
}
} else {
- std::memcpy(out_buffer.data(), samples.data(), samples_to_decode * sizeof(s16));
+ std::memcpy(out_buffer.data(), tmp_samples.data(), samples_to_decode * sizeof(s16));
}
break;
}
@@ -101,6 +101,7 @@ static u32 DecodePcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
*/
static u32 DecodeAdpcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
const DecodeArg& req) {
+ std::array<u8, TempBufferSize> wavebuffer{};
constexpr u32 SamplesPerFrame{14};
constexpr u32 NibblesPerFrame{16};
@@ -138,9 +139,7 @@ static u32 DecodeAdpcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
}
const auto size{std::max((samples_to_process / 8U) * SamplesPerFrame, 8U)};
- std::vector<u8> wavebuffer(size);
- memory.ReadBlockUnsafe(req.buffer + position_in_frame / 2, wavebuffer.data(),
- wavebuffer.size());
+ memory.ReadBlockUnsafe(req.buffer + position_in_frame / 2, wavebuffer.data(), size);
auto context{req.adpcm_context};
auto header{context->header};
@@ -258,7 +257,7 @@ void DecodeFromWaveBuffers(Core::Memory::Memory& memory, const DecodeFromWaveBuf
u32 offset{voice_state.offset};
auto output_buffer{args.output};
- std::vector<s16> temp_buffer(TempBufferSize, 0);
+ std::array<s16, TempBufferSize> temp_buffer{};
while (remaining_sample_count > 0) {
const auto samples_to_write{std::min(remaining_sample_count, max_remaining_sample_count)};
diff --git a/src/audio_core/renderer/command/effect/aux_.cpp b/src/audio_core/renderer/command/effect/aux_.cpp
index e76db893f..c5650effa 100644
--- a/src/audio_core/renderer/command/effect/aux_.cpp
+++ b/src/audio_core/renderer/command/effect/aux_.cpp
@@ -4,6 +4,7 @@
#include "audio_core/renderer/adsp/command_list_processor.h"
#include "audio_core/renderer/command/effect/aux_.h"
#include "audio_core/renderer/effect/aux_.h"
+#include "core/core.h"
#include "core/memory.h"
namespace AudioCore::AudioRenderer {
@@ -19,10 +20,24 @@ static void ResetAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr aux_in
return;
}
- auto info{reinterpret_cast<AuxInfo::AuxInfoDsp*>(memory.GetPointer(aux_info))};
- info->read_offset = 0;
- info->write_offset = 0;
- info->total_sample_count = 0;
+ AuxInfo::AuxInfoDsp info{};
+ auto info_ptr{&info};
+ bool host_safe{(aux_info & Core::Memory::YUZU_PAGEMASK) <=
+ (Core::Memory::YUZU_PAGESIZE - sizeof(AuxInfo::AuxInfoDsp))};
+
+ if (host_safe) [[likely]] {
+ info_ptr = memory.GetPointer<AuxInfo::AuxInfoDsp>(aux_info);
+ } else {
+ memory.ReadBlockUnsafe(aux_info, info_ptr, sizeof(AuxInfo::AuxInfoDsp));
+ }
+
+ info_ptr->read_offset = 0;
+ info_ptr->write_offset = 0;
+ info_ptr->total_sample_count = 0;
+
+ if (!host_safe) [[unlikely]] {
+ memory.WriteBlockUnsafe(aux_info, info_ptr, sizeof(AuxInfo::AuxInfoDsp));
+ }
}
/**
@@ -40,11 +55,10 @@ static void ResetAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr aux_in
* @param update_count - If non-zero, send_info_ will be updated.
* @return Number of samples written.
*/
-static u32 WriteAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr send_info_,
- [[maybe_unused]] u32 sample_count, const CpuAddr send_buffer,
- const u32 count_max, std::span<const s32> input,
- const u32 write_count_, const u32 write_offset,
- const u32 update_count) {
+static u32 WriteAuxBufferDsp(Core::Memory::Memory& memory, CpuAddr send_info_,
+ [[maybe_unused]] u32 sample_count, CpuAddr send_buffer, u32 count_max,
+ std::span<const s32> input, u32 write_count_, u32 write_offset,
+ u32 update_count) {
if (write_count_ > count_max) {
LOG_ERROR(Service_Audio,
"write_count must be smaller than count_max! write_count {}, count_max {}",
@@ -52,6 +66,11 @@ static u32 WriteAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr send_in
return 0;
}
+ if (send_info_ == 0) {
+ LOG_ERROR(Service_Audio, "send_info_ is 0!");
+ return 0;
+ }
+
if (input.empty()) {
LOG_ERROR(Service_Audio, "input buffer is empty!");
return 0;
@@ -67,33 +86,47 @@ static u32 WriteAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr send_in
}
AuxInfo::AuxInfoDsp send_info{};
- memory.ReadBlockUnsafe(send_info_, &send_info, sizeof(AuxInfo::AuxInfoDsp));
+ auto send_ptr = &send_info;
+ bool host_safe = (send_info_ & Core::Memory::YUZU_PAGEMASK) <=
+ (Core::Memory::YUZU_PAGESIZE - sizeof(AuxInfo::AuxInfoDsp));
- u32 target_write_offset{send_info.write_offset + write_offset};
- if (target_write_offset > count_max || write_count_ == 0) {
+ if (host_safe) [[likely]] {
+ send_ptr = memory.GetPointer<AuxInfo::AuxInfoDsp>(send_info_);
+ } else {
+ memory.ReadBlockUnsafe(send_info_, send_ptr, sizeof(AuxInfo::AuxInfoDsp));
+ }
+
+ u32 target_write_offset{send_ptr->write_offset + write_offset};
+ if (target_write_offset > count_max) {
return 0;
}
u32 write_count{write_count_};
- u32 write_pos{0};
+ u32 read_pos{0};
while (write_count > 0) {
u32 to_write{std::min(count_max - target_write_offset, write_count)};
-
- if (to_write > 0) {
+ const auto write_addr = send_buffer + target_write_offset * sizeof(s32);
+ bool write_safe{(write_addr & Core::Memory::YUZU_PAGEMASK) <=
+ (Core::Memory::YUZU_PAGESIZE - (write_addr + to_write * sizeof(s32)))};
+ if (write_safe) [[likely]] {
+ auto ptr = memory.GetPointer(write_addr);
+ std::memcpy(ptr, &input[read_pos], to_write * sizeof(s32));
+ } else {
memory.WriteBlockUnsafe(send_buffer + target_write_offset * sizeof(s32),
- &input[write_pos], to_write * sizeof(s32));
+ &input[read_pos], to_write * sizeof(s32));
}
-
target_write_offset = (target_write_offset + to_write) % count_max;
write_count -= to_write;
- write_pos += to_write;
+ read_pos += to_write;
}
if (update_count) {
- send_info.write_offset = (send_info.write_offset + update_count) % count_max;
+ send_ptr->write_offset = (send_ptr->write_offset + update_count) % count_max;
}
- memory.WriteBlockUnsafe(send_info_, &send_info, sizeof(AuxInfo::AuxInfoDsp));
+ if (!host_safe) [[unlikely]] {
+ memory.WriteBlockUnsafe(send_info_, send_ptr, sizeof(AuxInfo::AuxInfoDsp));
+ }
return write_count_;
}
@@ -102,7 +135,7 @@ static u32 WriteAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr send_in
* Read the given memory at return_buffer into the output mix buffer, and update return_info_ if
* update_count is set, to notify the game that an update happened.
*
- * @param memory - Core memory for writing.
+ * @param memory - Core memory for reading.
* @param return_info_ - Meta information for where to read the mix buffer.
* @param return_buffer - Memory address to read the samples from.
* @param count_max - Maximum number of samples in the receiving buffer.
@@ -112,16 +145,21 @@ static u32 WriteAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr send_in
* @param update_count - If non-zero, send_info_ will be updated.
* @return Number of samples read.
*/
-static u32 ReadAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr return_info_,
- const CpuAddr return_buffer, const u32 count_max, std::span<s32> output,
- const u32 count_, const u32 read_offset, const u32 update_count) {
+static u32 ReadAuxBufferDsp(Core::Memory::Memory& memory, CpuAddr return_info_,
+ CpuAddr return_buffer, u32 count_max, std::span<s32> output,
+ u32 read_count_, u32 read_offset, u32 update_count) {
if (count_max == 0) {
return 0;
}
- if (count_ > count_max) {
+ if (read_count_ > count_max) {
LOG_ERROR(Service_Audio, "count must be smaller than count_max! count {}, count_max {}",
- count_, count_max);
+ read_count_, count_max);
+ return 0;
+ }
+
+ if (return_info_ == 0) {
+ LOG_ERROR(Service_Audio, "return_info_ is 0!");
return 0;
}
@@ -136,35 +174,49 @@ static u32 ReadAuxBufferDsp(Core::Memory::Memory& memory, const CpuAddr return_i
}
AuxInfo::AuxInfoDsp return_info{};
- memory.ReadBlockUnsafe(return_info_, &return_info, sizeof(AuxInfo::AuxInfoDsp));
+ auto return_ptr = &return_info;
+ bool host_safe = (return_info_ & Core::Memory::YUZU_PAGEMASK) <=
+ (Core::Memory::YUZU_PAGESIZE - sizeof(AuxInfo::AuxInfoDsp));
+
+ if (host_safe) [[likely]] {
+ return_ptr = memory.GetPointer<AuxInfo::AuxInfoDsp>(return_info_);
+ } else {
+ memory.ReadBlockUnsafe(return_info_, return_ptr, sizeof(AuxInfo::AuxInfoDsp));
+ }
- u32 target_read_offset{return_info.read_offset + read_offset};
+ u32 target_read_offset{return_ptr->read_offset + read_offset};
if (target_read_offset > count_max) {
return 0;
}
- u32 read_count{count_};
- u32 read_pos{0};
+ u32 read_count{read_count_};
+ u32 write_pos{0};
while (read_count > 0) {
u32 to_read{std::min(count_max - target_read_offset, read_count)};
-
- if (to_read > 0) {
+ const auto read_addr = return_buffer + target_read_offset * sizeof(s32);
+ bool read_safe{(read_addr & Core::Memory::YUZU_PAGEMASK) <=
+ (Core::Memory::YUZU_PAGESIZE - (read_addr + to_read * sizeof(s32)))};
+ if (read_safe) [[likely]] {
+ auto ptr = memory.GetPointer(read_addr);
+ std::memcpy(&output[write_pos], ptr, to_read * sizeof(s32));
+ } else {
memory.ReadBlockUnsafe(return_buffer + target_read_offset * sizeof(s32),
- &output[read_pos], to_read * sizeof(s32));
+ &output[write_pos], to_read * sizeof(s32));
}
-
target_read_offset = (target_read_offset + to_read) % count_max;
read_count -= to_read;
- read_pos += to_read;
+ write_pos += to_read;
}
if (update_count) {
- return_info.read_offset = (return_info.read_offset + update_count) % count_max;
+ return_ptr->read_offset = (return_ptr->read_offset + update_count) % count_max;
}
- memory.WriteBlockUnsafe(return_info_, &return_info, sizeof(AuxInfo::AuxInfoDsp));
+ if (!host_safe) [[unlikely]] {
+ memory.WriteBlockUnsafe(return_info_, return_ptr, sizeof(AuxInfo::AuxInfoDsp));
+ }
- return count_;
+ return read_count_;
}
void AuxCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor& processor,
@@ -189,7 +241,7 @@ void AuxCommand::Process(const ADSP::CommandListProcessor& processor) {
update_count)};
if (read != processor.sample_count) {
- std::memset(&output_buffer[read], 0, processor.sample_count - read);
+ std::memset(&output_buffer[read], 0, (processor.sample_count - read) * sizeof(s32));
}
} else {
ResetAuxBufferDsp(*processor.memory, send_buffer_info);
diff --git a/src/audio_core/renderer/command/effect/biquad_filter.cpp b/src/audio_core/renderer/command/effect/biquad_filter.cpp
index edb30ce72..dea6423dc 100644
--- a/src/audio_core/renderer/command/effect/biquad_filter.cpp
+++ b/src/audio_core/renderer/command/effect/biquad_filter.cpp
@@ -4,6 +4,7 @@
#include "audio_core/renderer/adsp/command_list_processor.h"
#include "audio_core/renderer/command/effect/biquad_filter.h"
#include "audio_core/renderer/voice/voice_state.h"
+#include "common/bit_cast.h"
namespace AudioCore::AudioRenderer {
/**
@@ -19,21 +20,21 @@ namespace AudioCore::AudioRenderer {
void ApplyBiquadFilterFloat(std::span<s32> output, std::span<const s32> input,
std::array<s16, 3>& b_, std::array<s16, 2>& a_,
VoiceState::BiquadFilterState& state, const u32 sample_count) {
- constexpr s64 min{std::numeric_limits<s32>::min()};
- constexpr s64 max{std::numeric_limits<s32>::max()};
+ constexpr f64 min{std::numeric_limits<s32>::min()};
+ constexpr f64 max{std::numeric_limits<s32>::max()};
std::array<f64, 3> b{Common::FixedPoint<50, 14>::from_base(b_[0]).to_double(),
Common::FixedPoint<50, 14>::from_base(b_[1]).to_double(),
Common::FixedPoint<50, 14>::from_base(b_[2]).to_double()};
std::array<f64, 2> a{Common::FixedPoint<50, 14>::from_base(a_[0]).to_double(),
Common::FixedPoint<50, 14>::from_base(a_[1]).to_double()};
- std::array<f64, 4> s{state.s0.to_double(), state.s1.to_double(), state.s2.to_double(),
- state.s3.to_double()};
+ std::array<f64, 4> s{Common::BitCast<f64>(state.s0), Common::BitCast<f64>(state.s1),
+ Common::BitCast<f64>(state.s2), Common::BitCast<f64>(state.s3)};
for (u32 i = 0; i < sample_count; i++) {
f64 in_sample{static_cast<f64>(input[i])};
auto sample{in_sample * b[0] + s[0] * b[1] + s[1] * b[2] + s[2] * a[0] + s[3] * a[1]};
- output[i] = static_cast<s32>(std::clamp(static_cast<s64>(sample), min, max));
+ output[i] = static_cast<s32>(std::clamp(sample, min, max));
s[1] = s[0];
s[0] = in_sample;
@@ -41,10 +42,10 @@ void ApplyBiquadFilterFloat(std::span<s32> output, std::span<const s32> input,
s[2] = sample;
}
- state.s0 = s[0];
- state.s1 = s[1];
- state.s2 = s[2];
- state.s3 = s[3];
+ state.s0 = Common::BitCast<s64>(s[0]);
+ state.s1 = Common::BitCast<s64>(s[1]);
+ state.s2 = Common::BitCast<s64>(s[2]);
+ state.s3 = Common::BitCast<s64>(s[3]);
}
/**
@@ -58,29 +59,20 @@ void ApplyBiquadFilterFloat(std::span<s32> output, std::span<const s32> input,
* @param sample_count - Number of samples to process.
*/
static void ApplyBiquadFilterInt(std::span<s32> output, std::span<const s32> input,
- std::array<s16, 3>& b_, std::array<s16, 2>& a_,
+ std::array<s16, 3>& b, std::array<s16, 2>& a,
VoiceState::BiquadFilterState& state, const u32 sample_count) {
constexpr s64 min{std::numeric_limits<s32>::min()};
constexpr s64 max{std::numeric_limits<s32>::max()};
- std::array<Common::FixedPoint<50, 14>, 3> b{
- Common::FixedPoint<50, 14>::from_base(b_[0]),
- Common::FixedPoint<50, 14>::from_base(b_[1]),
- Common::FixedPoint<50, 14>::from_base(b_[2]),
- };
- std::array<Common::FixedPoint<50, 14>, 3> a{
- Common::FixedPoint<50, 14>::from_base(a_[0]),
- Common::FixedPoint<50, 14>::from_base(a_[1]),
- };
for (u32 i = 0; i < sample_count; i++) {
- s64 in_sample{input[i]};
- auto sample{in_sample * b[0] + state.s0};
- const auto out_sample{std::clamp(sample.to_long(), min, max)};
+ const s64 in_sample{input[i]};
+ const s64 sample{in_sample * b[0] + state.s0};
+ const s64 out_sample{std::clamp<s64>((sample + (1 << 13)) >> 14, min, max)};
output[i] = static_cast<s32>(out_sample);
state.s0 = state.s1 + b[1] * in_sample + a[0] * out_sample;
- state.s1 = 0 + b[2] * in_sample + a[1] * out_sample;
+ state.s1 = b[2] * in_sample + a[1] * out_sample;
}
}
diff --git a/src/audio_core/renderer/command/effect/compressor.cpp b/src/audio_core/renderer/command/effect/compressor.cpp
index 7229618e8..ee9b68d5b 100644
--- a/src/audio_core/renderer/command/effect/compressor.cpp
+++ b/src/audio_core/renderer/command/effect/compressor.cpp
@@ -44,8 +44,8 @@ static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2&
static void ApplyCompressorEffect(const CompressorInfo::ParameterVersion2& params,
CompressorInfo::State& state, bool enabled,
- std::vector<std::span<const s32>> input_buffers,
- std::vector<std::span<s32>> output_buffers, u32 sample_count) {
+ std::span<std::span<const s32>> input_buffers,
+ std::span<std::span<s32>> output_buffers, u32 sample_count) {
if (enabled) {
auto state_00{state.unk_00};
auto state_04{state.unk_04};
@@ -124,8 +124,8 @@ void CompressorCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor&
}
void CompressorCommand::Process(const ADSP::CommandListProcessor& processor) {
- std::vector<std::span<const s32>> input_buffers(parameter.channel_count);
- std::vector<std::span<s32>> output_buffers(parameter.channel_count);
+ std::array<std::span<const s32>, MaxChannels> input_buffers{};
+ std::array<std::span<s32>, MaxChannels> output_buffers{};
for (s16 i = 0; i < parameter.channel_count; i++) {
input_buffers[i] = processor.mix_buffers.subspan(inputs[i] * processor.sample_count,
diff --git a/src/audio_core/renderer/command/effect/delay.cpp b/src/audio_core/renderer/command/effect/delay.cpp
index a4e408d40..e536cbb1e 100644
--- a/src/audio_core/renderer/command/effect/delay.cpp
+++ b/src/audio_core/renderer/command/effect/delay.cpp
@@ -51,7 +51,7 @@ static void InitializeDelayEffect(const DelayInfo::ParameterVersion1& params,
state.delay_lines[channel].sample_count_max = sample_count_max.to_int_floor();
state.delay_lines[channel].sample_count = sample_count.to_int_floor();
state.delay_lines[channel].buffer.resize(state.delay_lines[channel].sample_count, 0);
- if (state.delay_lines[channel].buffer.size() == 0) {
+ if (state.delay_lines[channel].sample_count == 0) {
state.delay_lines[channel].buffer.push_back(0);
}
state.delay_lines[channel].buffer_pos = 0;
@@ -74,8 +74,8 @@ static void InitializeDelayEffect(const DelayInfo::ParameterVersion1& params,
*/
template <size_t NumChannels>
static void ApplyDelay(const DelayInfo::ParameterVersion1& params, DelayInfo::State& state,
- std::vector<std::span<const s32>>& inputs,
- std::vector<std::span<s32>>& outputs, const u32 sample_count) {
+ std::span<std::span<const s32>> inputs, std::span<std::span<s32>> outputs,
+ const u32 sample_count) {
for (u32 sample_index = 0; sample_index < sample_count; sample_index++) {
std::array<Common::FixedPoint<50, 14>, NumChannels> input_samples{};
for (u32 channel = 0; channel < NumChannels; channel++) {
@@ -153,8 +153,8 @@ static void ApplyDelay(const DelayInfo::ParameterVersion1& params, DelayInfo::St
* @param sample_count - Number of samples to process.
*/
static void ApplyDelayEffect(const DelayInfo::ParameterVersion1& params, DelayInfo::State& state,
- const bool enabled, std::vector<std::span<const s32>>& inputs,
- std::vector<std::span<s32>>& outputs, const u32 sample_count) {
+ const bool enabled, std::span<std::span<const s32>> inputs,
+ std::span<std::span<s32>> outputs, const u32 sample_count) {
if (!IsChannelCountValid(params.channel_count)) {
LOG_ERROR(Service_Audio, "Invalid delay channels {}", params.channel_count);
@@ -208,8 +208,8 @@ void DelayCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor& proce
}
void DelayCommand::Process(const ADSP::CommandListProcessor& processor) {
- std::vector<std::span<const s32>> input_buffers(parameter.channel_count);
- std::vector<std::span<s32>> output_buffers(parameter.channel_count);
+ std::array<std::span<const s32>, MaxChannels> input_buffers{};
+ std::array<std::span<s32>, MaxChannels> output_buffers{};
for (s16 i = 0; i < parameter.channel_count; i++) {
input_buffers[i] = processor.mix_buffers.subspan(inputs[i] * processor.sample_count,
diff --git a/src/audio_core/renderer/command/effect/i3dl2_reverb.cpp b/src/audio_core/renderer/command/effect/i3dl2_reverb.cpp
index 2187d8a65..d2bfb67cc 100644
--- a/src/audio_core/renderer/command/effect/i3dl2_reverb.cpp
+++ b/src/audio_core/renderer/command/effect/i3dl2_reverb.cpp
@@ -244,16 +244,16 @@ template <size_t NumChannels>
static void ApplyI3dl2ReverbEffect(I3dl2ReverbInfo::State& state,
std::span<std::span<const s32>> inputs,
std::span<std::span<s32>> outputs, const u32 sample_count) {
- constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes1Ch{
+ static constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes1Ch{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
- constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes2Ch{
+ static constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes2Ch{
0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1,
};
- constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes4Ch{
+ static constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes4Ch{
0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 3, 3, 3,
};
- constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes6Ch{
+ static constexpr std::array<u8, I3dl2ReverbInfo::MaxDelayTaps> OutTapIndexes6Ch{
2, 0, 0, 1, 1, 1, 1, 4, 4, 4, 1, 1, 1, 0, 0, 0, 0, 5, 5, 5,
};
@@ -408,8 +408,8 @@ void I3dl2ReverbCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor&
}
void I3dl2ReverbCommand::Process(const ADSP::CommandListProcessor& processor) {
- std::vector<std::span<const s32>> input_buffers(parameter.channel_count);
- std::vector<std::span<s32>> output_buffers(parameter.channel_count);
+ std::array<std::span<const s32>, MaxChannels> input_buffers{};
+ std::array<std::span<s32>, MaxChannels> output_buffers{};
for (u32 i = 0; i < parameter.channel_count; i++) {
input_buffers[i] = processor.mix_buffers.subspan(inputs[i] * processor.sample_count,
diff --git a/src/audio_core/renderer/command/effect/light_limiter.cpp b/src/audio_core/renderer/command/effect/light_limiter.cpp
index e8fb0e2fc..4161a9821 100644
--- a/src/audio_core/renderer/command/effect/light_limiter.cpp
+++ b/src/audio_core/renderer/command/effect/light_limiter.cpp
@@ -47,8 +47,8 @@ static void InitializeLightLimiterEffect(const LightLimiterInfo::ParameterVersio
*/
static void ApplyLightLimiterEffect(const LightLimiterInfo::ParameterVersion2& params,
LightLimiterInfo::State& state, const bool enabled,
- std::vector<std::span<const s32>>& inputs,
- std::vector<std::span<s32>>& outputs, const u32 sample_count,
+ std::span<std::span<const s32>> inputs,
+ std::span<std::span<s32>> outputs, const u32 sample_count,
LightLimiterInfo::StatisticsInternal* statistics) {
constexpr s64 min{std::numeric_limits<s32>::min()};
constexpr s64 max{std::numeric_limits<s32>::max()};
@@ -147,8 +147,8 @@ void LightLimiterVersion1Command::Dump([[maybe_unused]] const ADSP::CommandListP
}
void LightLimiterVersion1Command::Process(const ADSP::CommandListProcessor& processor) {
- std::vector<std::span<const s32>> input_buffers(parameter.channel_count);
- std::vector<std::span<s32>> output_buffers(parameter.channel_count);
+ std::array<std::span<const s32>, MaxChannels> input_buffers{};
+ std::array<std::span<s32>, MaxChannels> output_buffers{};
for (u32 i = 0; i < parameter.channel_count; i++) {
input_buffers[i] = processor.mix_buffers.subspan(inputs[i] * processor.sample_count,
@@ -190,8 +190,8 @@ void LightLimiterVersion2Command::Dump([[maybe_unused]] const ADSP::CommandListP
}
void LightLimiterVersion2Command::Process(const ADSP::CommandListProcessor& processor) {
- std::vector<std::span<const s32>> input_buffers(parameter.channel_count);
- std::vector<std::span<s32>> output_buffers(parameter.channel_count);
+ std::array<std::span<const s32>, MaxChannels> input_buffers{};
+ std::array<std::span<s32>, MaxChannels> output_buffers{};
for (u32 i = 0; i < parameter.channel_count; i++) {
input_buffers[i] = processor.mix_buffers.subspan(inputs[i] * processor.sample_count,
diff --git a/src/audio_core/renderer/command/effect/reverb.cpp b/src/audio_core/renderer/command/effect/reverb.cpp
index 427489214..fc2f15a5e 100644
--- a/src/audio_core/renderer/command/effect/reverb.cpp
+++ b/src/audio_core/renderer/command/effect/reverb.cpp
@@ -250,18 +250,18 @@ static Common::FixedPoint<50, 14> Axfx2AllPassTick(ReverbInfo::ReverbDelayLine&
*/
template <size_t NumChannels>
static void ApplyReverbEffect(const ReverbInfo::ParameterVersion2& params, ReverbInfo::State& state,
- std::vector<std::span<const s32>>& inputs,
- std::vector<std::span<s32>>& outputs, const u32 sample_count) {
- constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes1Ch{
+ std::span<std::span<const s32>> inputs,
+ std::span<std::span<s32>> outputs, const u32 sample_count) {
+ static constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes1Ch{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
- constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes2Ch{
+ static constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes2Ch{
0, 0, 1, 1, 0, 1, 0, 0, 1, 1,
};
- constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes4Ch{
+ static constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes4Ch{
0, 0, 1, 1, 0, 1, 2, 2, 3, 3,
};
- constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes6Ch{
+ static constexpr std::array<u8, ReverbInfo::MaxDelayTaps> OutTapIndexes6Ch{
0, 0, 1, 1, 2, 2, 4, 4, 5, 5,
};
@@ -308,7 +308,8 @@ static void ApplyReverbEffect(const ReverbInfo::ParameterVersion2& params, Rever
}
Common::FixedPoint<50, 14> pre_delay_sample{
- state.pre_delay_line.Read() * Common::FixedPoint<50, 14>::from_base(params.late_gain)};
+ state.pre_delay_line.TapOut(state.pre_delay_time) *
+ Common::FixedPoint<50, 14>::from_base(params.late_gain)};
std::array<Common::FixedPoint<50, 14>, ReverbInfo::MaxDelayLines> mix_matrix{
state.prev_feedback_output[2] + state.prev_feedback_output[1] + pre_delay_sample,
@@ -368,8 +369,8 @@ static void ApplyReverbEffect(const ReverbInfo::ParameterVersion2& params, Rever
* @param sample_count - Number of samples to process.
*/
static void ApplyReverbEffect(const ReverbInfo::ParameterVersion2& params, ReverbInfo::State& state,
- const bool enabled, std::vector<std::span<const s32>>& inputs,
- std::vector<std::span<s32>>& outputs, const u32 sample_count) {
+ const bool enabled, std::span<std::span<const s32>> inputs,
+ std::span<std::span<s32>> outputs, const u32 sample_count) {
if (enabled) {
switch (params.channel_count) {
case 0:
@@ -411,8 +412,8 @@ void ReverbCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor& proc
}
void ReverbCommand::Process(const ADSP::CommandListProcessor& processor) {
- std::vector<std::span<const s32>> input_buffers(parameter.channel_count);
- std::vector<std::span<s32>> output_buffers(parameter.channel_count);
+ std::array<std::span<const s32>, MaxChannels> input_buffers{};
+ std::array<std::span<s32>, MaxChannels> output_buffers{};
for (u32 i = 0; i < parameter.channel_count; i++) {
input_buffers[i] = processor.mix_buffers.subspan(inputs[i] * processor.sample_count,
diff --git a/src/audio_core/renderer/command/performance/performance.cpp b/src/audio_core/renderer/command/performance/performance.cpp
index 985958b03..4a881547f 100644
--- a/src/audio_core/renderer/command/performance/performance.cpp
+++ b/src/audio_core/renderer/command/performance/performance.cpp
@@ -5,7 +5,6 @@
#include "audio_core/renderer/command/performance/performance.h"
#include "core/core.h"
#include "core/core_timing.h"
-#include "core/core_timing_util.h"
namespace AudioCore::AudioRenderer {
@@ -18,20 +17,18 @@ void PerformanceCommand::Process(const ADSP::CommandListProcessor& processor) {
auto base{entry_address.translated_address};
if (state == PerformanceState::Start) {
auto start_time_ptr{reinterpret_cast<u32*>(base + entry_address.entry_start_time_offset)};
- *start_time_ptr = static_cast<u32>(
- Core::Timing::CyclesToUs(processor.system->CoreTiming().GetClockTicks() -
- processor.start_time - processor.current_processing_time)
- .count());
+ *start_time_ptr =
+ static_cast<u32>(processor.system->CoreTiming().GetClockTicks() - processor.start_time -
+ processor.current_processing_time);
} else if (state == PerformanceState::Stop) {
auto processed_time_ptr{
reinterpret_cast<u32*>(base + entry_address.entry_processed_time_offset)};
auto entry_count_ptr{
reinterpret_cast<u32*>(base + entry_address.header_entry_count_offset)};
- *processed_time_ptr = static_cast<u32>(
- Core::Timing::CyclesToUs(processor.system->CoreTiming().GetClockTicks() -
- processor.start_time - processor.current_processing_time)
- .count());
+ *processed_time_ptr =
+ static_cast<u32>(processor.system->CoreTiming().GetClockTicks() - processor.start_time -
+ processor.current_processing_time);
(*entry_count_ptr)++;
}
}
diff --git a/src/audio_core/renderer/command/resample/upsample.cpp b/src/audio_core/renderer/command/resample/upsample.cpp
index 5f7db12ca..86ddee1a4 100644
--- a/src/audio_core/renderer/command/resample/upsample.cpp
+++ b/src/audio_core/renderer/command/resample/upsample.cpp
@@ -19,24 +19,24 @@ namespace AudioCore::AudioRenderer {
static void SrcProcessFrame(std::span<s32> output, std::span<const s32> input,
const u32 target_sample_count, const u32 source_sample_count,
UpsamplerState* state) {
- constexpr u32 WindowSize = 10;
- constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc1{
+ static constexpr u32 WindowSize = 10;
+ static constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc1{
0.95376587f, -0.12872314f, 0.060028076f, -0.032470703f, 0.017669678f,
-0.009124756f, 0.004272461f, -0.001739502f, 0.000579834f, -0.000091552734f,
};
- constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc2{
+ static constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc2{
0.8230896f, -0.19161987f, 0.093444824f, -0.05090332f, 0.027557373f,
-0.014038086f, 0.0064697266f, -0.002532959f, 0.00079345703f, -0.00012207031f,
};
- constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc3{
+ static constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc3{
0.6298828f, -0.19274902f, 0.09725952f, -0.05319214f, 0.028625488f,
-0.014373779f, 0.006500244f, -0.0024719238f, 0.0007324219f, -0.000091552734f,
};
- constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc4{
+ static constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc4{
0.4057312f, -0.1468811f, 0.07601929f, -0.041656494f, 0.022216797f,
-0.011016846f, 0.004852295f, -0.0017700195f, 0.00048828125f, -0.000030517578f,
};
- constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc5{
+ static constexpr std::array<Common::FixedPoint<17, 15>, WindowSize> WindowedSinc5{
0.1854248f, -0.075164795f, 0.03967285f, -0.021728516f, 0.011474609f,
-0.005584717f, 0.0024108887f, -0.0008239746f, 0.00021362305f, 0.0f,
};
diff --git a/src/audio_core/renderer/command/sink/circular_buffer.cpp b/src/audio_core/renderer/command/sink/circular_buffer.cpp
index ded5afc94..e2ce59792 100644
--- a/src/audio_core/renderer/command/sink/circular_buffer.cpp
+++ b/src/audio_core/renderer/command/sink/circular_buffer.cpp
@@ -24,7 +24,7 @@ void CircularBufferSinkCommand::Process(const ADSP::CommandListProcessor& proces
constexpr s32 min{std::numeric_limits<s16>::min()};
constexpr s32 max{std::numeric_limits<s16>::max()};
- std::vector<s16> output(processor.sample_count);
+ std::array<s16, TargetSampleCount * MaxChannels> output{};
for (u32 channel = 0; channel < input_count; channel++) {
auto input{processor.mix_buffers.subspan(inputs[channel] * processor.sample_count,
processor.sample_count)};
@@ -33,7 +33,7 @@ void CircularBufferSinkCommand::Process(const ADSP::CommandListProcessor& proces
}
processor.memory->WriteBlockUnsafe(address + pos, output.data(),
- output.size() * sizeof(s16));
+ processor.sample_count * sizeof(s16));
pos += static_cast<u32>(processor.sample_count * sizeof(s16));
if (pos >= size) {
pos = 0;
diff --git a/src/audio_core/renderer/command/sink/device.cpp b/src/audio_core/renderer/command/sink/device.cpp
index e88372a75..5f74dd7ad 100644
--- a/src/audio_core/renderer/command/sink/device.cpp
+++ b/src/audio_core/renderer/command/sink/device.cpp
@@ -33,8 +33,7 @@ void DeviceSinkCommand::Process(const ADSP::CommandListProcessor& processor) {
.consumed{false},
};
- std::vector<s16> samples(out_buffer.frames * input_count);
-
+ std::array<s16, TargetSampleCount * MaxChannels> samples{};
for (u32 channel = 0; channel < input_count; channel++) {
const auto offset{inputs[channel] * out_buffer.frames};
@@ -45,7 +44,7 @@ void DeviceSinkCommand::Process(const ADSP::CommandListProcessor& processor) {
}
out_buffer.tag = reinterpret_cast<u64>(samples.data());
- stream->AppendBuffer(out_buffer, samples);
+ stream->AppendBuffer(out_buffer, {samples.data(), out_buffer.frames * input_count});
if (stream->IsPaused()) {
stream->Start();
diff --git a/src/audio_core/renderer/effect/effect_info_base.h b/src/audio_core/renderer/effect/effect_info_base.h
index 8525fde05..dbdccf278 100644
--- a/src/audio_core/renderer/effect/effect_info_base.h
+++ b/src/audio_core/renderer/effect/effect_info_base.h
@@ -192,7 +192,7 @@ public:
/**
* Get this effect's parameter data.
*
- * @return Pointer to the parametter, must be cast to the correct type.
+ * @return Pointer to the parameter, must be cast to the correct type.
*/
u8* GetParameter() {
return parameter.data();
@@ -201,7 +201,7 @@ public:
/**
* Get this effect's parameter data.
*
- * @return Pointer to the parametter, must be cast to the correct type.
+ * @return Pointer to the parameter, must be cast to the correct type.
*/
u8* GetStateBuffer() {
return state.data();
diff --git a/src/audio_core/renderer/effect/i3dl2.h b/src/audio_core/renderer/effect/i3dl2.h
index 1ebbc5c4c..6e3ffd1d4 100644
--- a/src/audio_core/renderer/effect/i3dl2.h
+++ b/src/audio_core/renderer/effect/i3dl2.h
@@ -104,7 +104,8 @@ public:
}
void Write(const Common::FixedPoint<50, 14> sample) {
- *(input++) = sample;
+ *input = sample;
+ input++;
if (input >= buffer_end) {
input = buffer.data();
}
diff --git a/src/audio_core/renderer/effect/reverb.h b/src/audio_core/renderer/effect/reverb.h
index a72475c3c..6cc345ef6 100644
--- a/src/audio_core/renderer/effect/reverb.h
+++ b/src/audio_core/renderer/effect/reverb.h
@@ -79,12 +79,10 @@ public:
return;
}
sample_count = delay_time;
- input = &buffer[(output - buffer.data() + sample_count) % (sample_count_max + 1)];
+ input = &buffer[0];
}
Common::FixedPoint<50, 14> Tick(const Common::FixedPoint<50, 14> sample) {
- Write(sample);
-
auto out_sample{Read()};
output++;
@@ -92,6 +90,7 @@ public:
output = buffer.data();
}
+ Write(sample);
return out_sample;
}
@@ -100,7 +99,8 @@ public:
}
void Write(const Common::FixedPoint<50, 14> sample) {
- *(input++) = sample;
+ *input = sample;
+ input++;
if (input >= buffer_end) {
input = buffer.data();
}
diff --git a/src/audio_core/renderer/memory/memory_pool_info.h b/src/audio_core/renderer/memory/memory_pool_info.h
index 537a466ec..80c571bc1 100644
--- a/src/audio_core/renderer/memory/memory_pool_info.h
+++ b/src/audio_core/renderer/memory/memory_pool_info.h
@@ -29,7 +29,7 @@ public:
*/
enum class State {
Invalid,
- Aquired,
+ Acquired,
RequestDetach,
Detached,
RequestAttach,
diff --git a/src/audio_core/renderer/memory/pool_mapper.cpp b/src/audio_core/renderer/memory/pool_mapper.cpp
index 2baf2ce08..7fd2b5f47 100644
--- a/src/audio_core/renderer/memory/pool_mapper.cpp
+++ b/src/audio_core/renderer/memory/pool_mapper.cpp
@@ -92,7 +92,7 @@ bool PoolMapper::TryAttachBuffer(BehaviorInfo::ErrorInfo& error_info, AddressInf
address_info.Setup(address, size);
if (!FillDspAddr(address_info)) {
- error_info.error_code = Service::Audio::ERR_POOL_MAPPING_FAILED;
+ error_info.error_code = Service::Audio::ResultInvalidAddressInfo;
error_info.address = address;
return force_map;
}
diff --git a/src/audio_core/renderer/mix/mix_context.cpp b/src/audio_core/renderer/mix/mix_context.cpp
index 35b748ede..3a18ae7c2 100644
--- a/src/audio_core/renderer/mix/mix_context.cpp
+++ b/src/audio_core/renderer/mix/mix_context.cpp
@@ -125,10 +125,10 @@ bool MixContext::TSortInfo(const SplitterContext& splitter_context) {
return false;
}
- std::vector<s32> sorted_results{node_states.GetSortedResuls()};
- const auto result_size{std::min(count, static_cast<s32>(sorted_results.size()))};
+ auto sorted_results{node_states.GetSortedResuls()};
+ const auto result_size{std::min(count, static_cast<s32>(sorted_results.second))};
for (s32 i = 0; i < result_size; i++) {
- sorted_mix_infos[i] = &mix_infos[sorted_results[i]];
+ sorted_mix_infos[i] = &mix_infos[sorted_results.first[i]];
}
CalcMixBufferOffset();
diff --git a/src/audio_core/renderer/mix/mix_context.h b/src/audio_core/renderer/mix/mix_context.h
index da3aa2829..bcd9637da 100644
--- a/src/audio_core/renderer/mix/mix_context.h
+++ b/src/audio_core/renderer/mix/mix_context.h
@@ -93,7 +93,7 @@ public:
* Splitter sort, traverse the splitter node graph and sort the sorted mixes from results.
*
* @param splitter_context - Splitter context for the sort.
- * @return True if the sort was successful, othewise false.
+ * @return True if the sort was successful, otherwise false.
*/
bool TSortInfo(const SplitterContext& splitter_context);
diff --git a/src/audio_core/renderer/nodes/node_states.cpp b/src/audio_core/renderer/nodes/node_states.cpp
index 1821a51e6..b7a44a54c 100644
--- a/src/audio_core/renderer/nodes/node_states.cpp
+++ b/src/audio_core/renderer/nodes/node_states.cpp
@@ -134,8 +134,8 @@ u32 NodeStates::GetNodeCount() const {
return node_count;
}
-std::vector<s32> NodeStates::GetSortedResuls() const {
- return {results.rbegin(), results.rbegin() + result_pos};
+std::pair<std::span<u32>::reverse_iterator, size_t> NodeStates::GetSortedResuls() const {
+ return {results.rbegin(), result_pos};
}
} // namespace AudioCore::AudioRenderer
diff --git a/src/audio_core/renderer/nodes/node_states.h b/src/audio_core/renderer/nodes/node_states.h
index 94b1d1254..e768cd4b5 100644
--- a/src/audio_core/renderer/nodes/node_states.h
+++ b/src/audio_core/renderer/nodes/node_states.h
@@ -175,7 +175,7 @@ public:
*
* @return Vector of nodes in reverse order.
*/
- std::vector<s32> GetSortedResuls() const;
+ std::pair<std::span<u32>::reverse_iterator, size_t> GetSortedResuls() const;
private:
/// Number of nodes in the graph
diff --git a/src/audio_core/renderer/performance/performance_detail.h b/src/audio_core/renderer/performance/performance_detail.h
index 3a4897e60..f603b9026 100644
--- a/src/audio_core/renderer/performance/performance_detail.h
+++ b/src/audio_core/renderer/performance/performance_detail.h
@@ -33,7 +33,7 @@ struct PerformanceDetailVersion1 {
/* 0x0D */ PerformanceEntryType entry_type;
};
static_assert(sizeof(PerformanceDetailVersion1) == 0x10,
- "PerformanceDetailVersion1 has the worng size!");
+ "PerformanceDetailVersion1 has the wrong size!");
struct PerformanceDetailVersion2 {
/* 0x00 */ u32 node_id;
@@ -45,6 +45,6 @@ struct PerformanceDetailVersion2 {
/* 0x14 */ char unk14[0x4];
};
static_assert(sizeof(PerformanceDetailVersion2) == 0x18,
- "PerformanceDetailVersion2 has the worng size!");
+ "PerformanceDetailVersion2 has the wrong size!");
} // namespace AudioCore::AudioRenderer
diff --git a/src/audio_core/renderer/performance/performance_entry.h b/src/audio_core/renderer/performance/performance_entry.h
index d1b21406b..d6b1158db 100644
--- a/src/audio_core/renderer/performance/performance_entry.h
+++ b/src/audio_core/renderer/performance/performance_entry.h
@@ -22,7 +22,7 @@ struct PerformanceEntryVersion1 {
/* 0x0C */ PerformanceEntryType entry_type;
};
static_assert(sizeof(PerformanceEntryVersion1) == 0x10,
- "PerformanceEntryVersion1 has the worng size!");
+ "PerformanceEntryVersion1 has the wrong size!");
struct PerformanceEntryVersion2 {
/* 0x00 */ u32 node_id;
@@ -32,6 +32,6 @@ struct PerformanceEntryVersion2 {
/* 0x0D */ char unk0D[0xB];
};
static_assert(sizeof(PerformanceEntryVersion2) == 0x18,
- "PerformanceEntryVersion2 has the worng size!");
+ "PerformanceEntryVersion2 has the wrong size!");
} // namespace AudioCore::AudioRenderer
diff --git a/src/audio_core/renderer/performance/performance_frame_header.h b/src/audio_core/renderer/performance/performance_frame_header.h
index 707cc0afb..b1848284e 100644
--- a/src/audio_core/renderer/performance/performance_frame_header.h
+++ b/src/audio_core/renderer/performance/performance_frame_header.h
@@ -16,7 +16,7 @@ struct PerformanceFrameHeaderVersion1 {
/* 0x14 */ u32 frame_index;
};
static_assert(sizeof(PerformanceFrameHeaderVersion1) == 0x18,
- "PerformanceFrameHeaderVersion1 has the worng size!");
+ "PerformanceFrameHeaderVersion1 has the wrong size!");
struct PerformanceFrameHeaderVersion2 {
/* 0x00 */ u32 magic; // "PERF"
@@ -31,6 +31,6 @@ struct PerformanceFrameHeaderVersion2 {
/* 0x25 */ char unk25[0xB];
};
static_assert(sizeof(PerformanceFrameHeaderVersion2) == 0x30,
- "PerformanceFrameHeaderVersion2 has the worng size!");
+ "PerformanceFrameHeaderVersion2 has the wrong size!");
} // namespace AudioCore::AudioRenderer
diff --git a/src/audio_core/renderer/splitter/splitter_context.h b/src/audio_core/renderer/splitter/splitter_context.h
index cfd092b4f..1a63db1d3 100644
--- a/src/audio_core/renderer/splitter/splitter_context.h
+++ b/src/audio_core/renderer/splitter/splitter_context.h
@@ -55,7 +55,7 @@ public:
/**
* Get the total number of splitter destinations.
*
- * @return Number of destiantions.
+ * @return Number of destinations.
*/
u32 GetDataCount() const;
diff --git a/src/audio_core/renderer/splitter/splitter_destinations_data.h b/src/audio_core/renderer/splitter/splitter_destinations_data.h
index bd3d55748..d55ce0ad3 100644
--- a/src/audio_core/renderer/splitter/splitter_destinations_data.h
+++ b/src/audio_core/renderer/splitter/splitter_destinations_data.h
@@ -87,7 +87,7 @@ public:
/**
* Update this destination.
*
- * @param params - Inpout parameters to update the destination.
+ * @param params - Input parameters to update the destination.
*/
void Update(const InParameter& params);
@@ -126,9 +126,9 @@ private:
std::array<f32, MaxMixBuffers> prev_mix_volumes{0.0f};
/// Next destination in the mix chain
SplitterDestinationData* next{};
- /// Is this destiantion in use?
+ /// Is this destination in use?
bool in_use{};
- /// Does this destiantion need its volumes updated?
+ /// Does this destination need its volumes updated?
bool need_update{};
};
diff --git a/src/audio_core/renderer/splitter/splitter_info.h b/src/audio_core/renderer/splitter/splitter_info.h
index d1d75064c..b0ad01fe0 100644
--- a/src/audio_core/renderer/splitter/splitter_info.h
+++ b/src/audio_core/renderer/splitter/splitter_info.h
@@ -49,14 +49,14 @@ public:
/**
* Get the number of destinations in this splitter.
*
- * @return The number of destiantions.
+ * @return The number of destinations.
*/
u32 GetDestinationCount() const;
/**
* Set the number of destinations in this splitter.
*
- * @param count - The new number of destiantions.
+ * @param count - The new number of destinations.
*/
void SetDestinationCount(u32 count);
diff --git a/src/audio_core/renderer/system.cpp b/src/audio_core/renderer/system.cpp
index 4fac30c7c..a23627472 100644
--- a/src/audio_core/renderer/system.cpp
+++ b/src/audio_core/renderer/system.cpp
@@ -101,15 +101,15 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size,
u32 process_handle_, u64 applet_resource_user_id_, s32 session_id_) {
if (!CheckValidRevision(params.revision)) {
- return Service::Audio::ERR_INVALID_REVISION;
+ return Service::Audio::ResultInvalidRevision;
}
if (GetWorkBufferSize(params) > transfer_memory_size) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
if (process_handle_ == 0) {
- return Service::Audio::ERR_INVALID_PROCESS_HANDLE;
+ return Service::Audio::ResultInvalidHandle;
}
behavior.SetUserLibRevision(params.revision);
@@ -127,8 +127,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
render_device = params.rendering_device;
execution_mode = params.execution_mode;
- core.Memory().ZeroBlock(*core.Kernel().CurrentProcess(), transfer_memory->GetSourceAddress(),
- transfer_memory_size);
+ core.ApplicationMemory().ZeroBlock(transfer_memory->GetSourceAddress(), transfer_memory_size);
// Note: We're not actually using the transfer memory because it's a pain to code for.
// Allocate the memory normally instead and hope the game doesn't try to read anything back
@@ -143,19 +142,19 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
samples_workbuffer =
allocator.Allocate<s32>((voice_channels + mix_buffer_count) * sample_count, 0x10);
if (samples_workbuffer.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
auto upsampler_workbuffer{allocator.Allocate<s32>(
(voice_channels + mix_buffer_count) * TargetSampleCount * upsampler_count, 0x10)};
if (upsampler_workbuffer.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
depop_buffer =
allocator.Allocate<s32>(Common::AlignUp(static_cast<u32>(mix_buffer_count), 0x40), 0x40);
if (depop_buffer.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
// invalidate samples_workbuffer DSP cache
@@ -166,12 +165,12 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
}
if (voice_infos.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
auto sorted_voice_infos{allocator.Allocate<VoiceInfo*>(params.voices, 0x10)};
if (sorted_voice_infos.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
std::memset(sorted_voice_infos.data(), 0, sorted_voice_infos.size_bytes());
@@ -183,12 +182,12 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
}
if (voice_channel_resources.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
auto voice_cpu_states{allocator.Allocate<VoiceState>(params.voices, 0x10)};
if (voice_cpu_states.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
for (auto& voice_state : voice_cpu_states) {
@@ -198,7 +197,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
auto mix_infos{allocator.Allocate<MixInfo>(params.sub_mixes + 1, 0x10)};
if (mix_infos.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
u32 effect_process_order_count{0};
@@ -208,7 +207,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
effect_process_order_count = params.effects * (params.sub_mixes + 1);
effect_process_order_buffer = allocator.Allocate<s32>(effect_process_order_count, 0x10);
if (effect_process_order_buffer.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
}
@@ -222,7 +221,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
auto sorted_mix_infos{allocator.Allocate<MixInfo*>(params.sub_mixes + 1, 0x10)};
if (sorted_mix_infos.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
std::memset(sorted_mix_infos.data(), 0, sorted_mix_infos.size_bytes());
@@ -235,7 +234,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
auto edge_matrix_workbuffer{allocator.Allocate<u8>(edge_matrix_size, 1)};
if (node_states_workbuffer.empty() || edge_matrix_workbuffer.size() == 0) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
mix_context.Initialize(sorted_mix_infos, mix_infos, params.sub_mixes + 1,
@@ -250,7 +249,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
upsampler_manager = allocator.Allocate<UpsamplerManager>(1, 0x10).data();
if (upsampler_manager == nullptr) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
memory_pool_workbuffer = allocator.Allocate<MemoryPoolInfo>(memory_pool_count, 0x10);
@@ -259,18 +258,18 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
}
if (memory_pool_workbuffer.empty() && memory_pool_count > 0) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
if (!splitter_context.Initialize(behavior, params, allocator)) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
std::span<EffectResultState> effect_result_states_cpu{};
if (behavior.IsEffectInfoVersion2Supported() && params.effects > 0) {
effect_result_states_cpu = allocator.Allocate<EffectResultState>(params.effects, 0x10);
if (effect_result_states_cpu.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
std::memset(effect_result_states_cpu.data(), 0, effect_result_states_cpu.size_bytes());
}
@@ -289,7 +288,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
upsampler_workbuffer);
if (upsampler_infos.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
auto effect_infos{allocator.Allocate<EffectInfoBase>(params.effects, 0x40)};
@@ -298,14 +297,14 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
}
if (effect_infos.empty() && params.effects > 0) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
std::span<EffectResultState> effect_result_states_dsp{};
if (behavior.IsEffectInfoVersion2Supported() && params.effects > 0) {
effect_result_states_dsp = allocator.Allocate<EffectResultState>(params.effects, 0x40);
if (effect_result_states_dsp.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
std::memset(effect_result_states_dsp.data(), 0, effect_result_states_dsp.size_bytes());
}
@@ -319,14 +318,14 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
}
if (sinks.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
sink_context.Initialize(sinks, params.sinks);
auto voice_dsp_states{allocator.Allocate<VoiceState>(params.voices, 0x40)};
if (voice_dsp_states.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
for (auto& voice_state : voice_dsp_states) {
@@ -344,7 +343,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
0xC};
performance_workbuffer = allocator.Allocate<u8>(perf_workbuffer_size, 0x40);
if (performance_workbuffer.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
std::memset(performance_workbuffer.data(), 0, performance_workbuffer.size_bytes());
performance_manager.Initialize(performance_workbuffer, performance_workbuffer.size_bytes(),
@@ -360,7 +359,7 @@ Result System::Initialize(const AudioRendererParameterInternal& params,
command_workbuffer_size = allocator.GetRemainingSize();
command_workbuffer = allocator.Allocate<u8>(command_workbuffer_size, 0x40);
if (command_workbuffer.empty()) {
- return Service::Audio::ERR_INSUFFICIENT_BUFFER_SIZE;
+ return Service::Audio::ResultInsufficientBuffer;
}
command_buffer_size = 0;
@@ -437,10 +436,7 @@ void System::Stop() {
}
if (execution_mode == ExecutionMode::Auto) {
- // Should wait for the system to terminate here, but core timing (should have) already
- // stopped, so this isn't needed. Find a way to make this definite.
-
- // terminate_event.Wait();
+ terminate_event.Wait();
}
}
@@ -448,6 +444,7 @@ Result System::Update(std::span<const u8> input, std::span<u8> performance, std:
std::scoped_lock l{lock};
const auto start_time{core.CoreTiming().GetClockTicks()};
+ std::memset(output.data(), 0, output.size());
InfoUpdater info_updater(input, output, process_handle, behavior);
diff --git a/src/audio_core/renderer/system.h b/src/audio_core/renderer/system.h
index 429196e41..e328783b6 100644
--- a/src/audio_core/renderer/system.h
+++ b/src/audio_core/renderer/system.h
@@ -154,7 +154,7 @@ public:
ExecutionMode GetExecutionMode() const;
/**
- * Get the rendering deivce for this system.
+ * Get the rendering device for this system.
* This is unused.
*
* @return Rendering device for this system.
@@ -241,7 +241,7 @@ private:
std::span<u8> command_workbuffer{};
/// Size of command workbuffer
u64 command_workbuffer_size{};
- /// Numebr of commands in the workbuffer
+ /// Number of commands in the workbuffer
u64 command_buffer_size{};
/// Manager for upsamplers
UpsamplerManager* upsampler_manager{};
diff --git a/src/audio_core/renderer/system_manager.cpp b/src/audio_core/renderer/system_manager.cpp
index f66b2b890..300ecdbf1 100644
--- a/src/audio_core/renderer/system_manager.cpp
+++ b/src/audio_core/renderer/system_manager.cpp
@@ -15,14 +15,9 @@ MICROPROFILE_DEFINE(Audio_RenderSystemManager, "Audio", "Render System Manager",
MP_RGB(60, 19, 97));
namespace AudioCore::AudioRenderer {
-constexpr std::chrono::nanoseconds RENDER_TIME{5'000'000UL};
SystemManager::SystemManager(Core::System& core_)
- : core{core_}, adsp{core.AudioCore().GetADSP()}, mailbox{adsp.GetRenderMailbox()},
- thread_event{Core::Timing::CreateEvent(
- "AudioRendererSystemManager", [this](std::uintptr_t, s64 time, std::chrono::nanoseconds) {
- return ThreadFunc2(time);
- })} {}
+ : core{core_}, adsp{core.AudioCore().GetADSP()}, mailbox{adsp.GetRenderMailbox()} {}
SystemManager::~SystemManager() {
Stop();
@@ -32,9 +27,7 @@ bool SystemManager::InitializeUnsafe() {
if (!active) {
if (adsp.Start()) {
active = true;
- thread = std::jthread([this](std::stop_token stop_token) { ThreadFunc(); });
- core.CoreTiming().ScheduleLoopingEvent(std::chrono::nanoseconds(0), RENDER_TIME,
- thread_event);
+ thread = std::jthread([this](std::stop_token stop_token) { ThreadFunc(stop_token); });
}
}
@@ -45,10 +38,8 @@ void SystemManager::Stop() {
if (!active) {
return;
}
- core.CoreTiming().UnscheduleEvent(thread_event, {});
active = false;
- update.store(true);
- update.notify_all();
+ thread.request_stop();
thread.join();
adsp.Stop();
}
@@ -93,12 +84,12 @@ bool SystemManager::Remove(System& system_) {
return true;
}
-void SystemManager::ThreadFunc() {
- constexpr char name[]{"AudioRenderSystemManager"};
+void SystemManager::ThreadFunc(std::stop_token stop_token) {
+ static constexpr char name[]{"AudioRenderSystemManager"};
MicroProfileOnThreadCreate(name);
Common::SetCurrentThreadName(name);
Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
- while (active) {
+ while (active && !stop_token.stop_requested()) {
{
std::scoped_lock l{mutex1};
@@ -111,16 +102,7 @@ void SystemManager::ThreadFunc() {
adsp.Signal();
adsp.Wait();
-
- update.wait(false);
- update.store(false);
}
}
-std::optional<std::chrono::nanoseconds> SystemManager::ThreadFunc2(s64 time) {
- update.store(true);
- update.notify_all();
- return std::nullopt;
-}
-
} // namespace AudioCore::AudioRenderer
diff --git a/src/audio_core/renderer/system_manager.h b/src/audio_core/renderer/system_manager.h
index 81457a3a1..9681fd121 100644
--- a/src/audio_core/renderer/system_manager.h
+++ b/src/audio_core/renderer/system_manager.h
@@ -36,7 +36,7 @@ public:
/**
* Initialize the system manager, called when any system is registered.
*
- * @return True if sucessfully initialized, otherwise false.
+ * @return True if successfully initialized, otherwise false.
*/
bool InitializeUnsafe();
@@ -50,7 +50,7 @@ public:
* The manager does not own the system, so do not free it without calling Remove.
*
* @param system - The system to add.
- * @return True if succesfully added, otherwise false.
+ * @return True if successfully added, otherwise false.
*/
bool Add(System& system);
@@ -58,7 +58,7 @@ public:
* Remove an audio render system from the manager.
*
* @param system - The system to remove.
- * @return True if succesfully removed, otherwise false.
+ * @return True if successfully removed, otherwise false.
*/
bool Remove(System& system);
@@ -66,18 +66,7 @@ private:
/**
* Main thread responsible for command generation.
*/
- void ThreadFunc();
-
- /**
- * Signalling core timing thread to run ThreadFunc.
- */
- std::optional<std::chrono::nanoseconds> ThreadFunc2(s64 time);
-
- enum class StreamState {
- Filling,
- Steady,
- Draining,
- };
+ void ThreadFunc(std::stop_token stop_token);
/// Core system
Core::System& core;
@@ -95,10 +84,6 @@ private:
ADSP::ADSP& adsp;
/// AudioRenderer mailbox for communication
ADSP::AudioRenderer_Mailbox* mailbox{};
- /// Core timing event to signal main thread
- std::shared_ptr<Core::Timing::EventType> thread_event;
- /// Atomic for main thread to wait on
- std::atomic<bool> update{};
};
} // namespace AudioCore::AudioRenderer
diff --git a/src/audio_core/renderer/voice/voice_info.cpp b/src/audio_core/renderer/voice/voice_info.cpp
index 1849eeb57..c0bfb23fc 100644
--- a/src/audio_core/renderer/voice/voice_info.cpp
+++ b/src/audio_core/renderer/voice/voice_info.cpp
@@ -181,7 +181,7 @@ void VoiceInfo::UpdateWaveBuffer(std::span<BehaviorInfo::ErrorInfo> error_info,
if (wave_buffer_internal.start_offset * byte_size > wave_buffer_internal.size ||
wave_buffer_internal.end_offset * byte_size > wave_buffer_internal.size) {
LOG_ERROR(Service_Audio, "Invalid PCM16 start/end wavebuffer sizes!");
- error_info[0].error_code = Service::Audio::ERR_INVALID_UPDATE_DATA;
+ error_info[0].error_code = Service::Audio::ResultInvalidUpdateInfo;
error_info[0].address = wave_buffer_internal.address;
return;
}
@@ -192,7 +192,7 @@ void VoiceInfo::UpdateWaveBuffer(std::span<BehaviorInfo::ErrorInfo> error_info,
if (wave_buffer_internal.start_offset * byte_size > wave_buffer_internal.size ||
wave_buffer_internal.end_offset * byte_size > wave_buffer_internal.size) {
LOG_ERROR(Service_Audio, "Invalid PCMFloat start/end wavebuffer sizes!");
- error_info[0].error_code = Service::Audio::ERR_INVALID_UPDATE_DATA;
+ error_info[0].error_code = Service::Audio::ResultInvalidUpdateInfo;
error_info[0].address = wave_buffer_internal.address;
return;
}
@@ -216,7 +216,7 @@ void VoiceInfo::UpdateWaveBuffer(std::span<BehaviorInfo::ErrorInfo> error_info,
if (start > static_cast<s64>(wave_buffer_internal.size) ||
end > static_cast<s64>(wave_buffer_internal.size)) {
LOG_ERROR(Service_Audio, "Invalid ADPCM start/end wavebuffer sizes!");
- error_info[0].error_code = Service::Audio::ERR_INVALID_UPDATE_DATA;
+ error_info[0].error_code = Service::Audio::ResultInvalidUpdateInfo;
error_info[0].address = wave_buffer_internal.address;
return;
}
@@ -228,7 +228,7 @@ void VoiceInfo::UpdateWaveBuffer(std::span<BehaviorInfo::ErrorInfo> error_info,
if (wave_buffer_internal.start_offset < 0 || wave_buffer_internal.end_offset < 0) {
LOG_ERROR(Service_Audio, "Invalid input start/end wavebuffer sizes!");
- error_info[0].error_code = Service::Audio::ERR_INVALID_UPDATE_DATA;
+ error_info[0].error_code = Service::Audio::ResultInvalidUpdateInfo;
error_info[0].address = wave_buffer_internal.address;
return;
}
diff --git a/src/audio_core/renderer/voice/voice_info.h b/src/audio_core/renderer/voice/voice_info.h
index 930180895..3c5d3e04f 100644
--- a/src/audio_core/renderer/voice/voice_info.h
+++ b/src/audio_core/renderer/voice/voice_info.h
@@ -183,7 +183,7 @@ public:
void Initialize();
/**
- * Does this voice ned an update?
+ * Does this voice need an update?
*
* @param params - Input parameters to check matching.
*
@@ -236,7 +236,7 @@ public:
*
* @param error_info - Output array of errors.
* @param wave_buffer - The wavebuffer to be updated.
- * @param wave_buffer_internal - Input parametters to be used for the update.
+ * @param wave_buffer_internal - Input parameters to be used for the update.
* @param sample_format - Sample format of the wavebuffer.
* @param valid - Is this wavebuffer valid?
* @param pool_mapper - Used to map the wavebuffers.
diff --git a/src/audio_core/renderer/voice/voice_state.h b/src/audio_core/renderer/voice/voice_state.h
index d5497e2fb..ce947233f 100644
--- a/src/audio_core/renderer/voice/voice_state.h
+++ b/src/audio_core/renderer/voice/voice_state.h
@@ -19,10 +19,10 @@ struct VoiceState {
* State of the voice's biquad filter.
*/
struct BiquadFilterState {
- Common::FixedPoint<50, 14> s0;
- Common::FixedPoint<50, 14> s1;
- Common::FixedPoint<50, 14> s2;
- Common::FixedPoint<50, 14> s3;
+ s64 s0;
+ s64 s1;
+ s64 s2;
+ s64 s3;
};
/**
diff --git a/src/audio_core/sink/cubeb_sink.cpp b/src/audio_core/sink/cubeb_sink.cpp
index 32c1b1cb3..9a0801888 100644
--- a/src/audio_core/sink/cubeb_sink.cpp
+++ b/src/audio_core/sink/cubeb_sink.cpp
@@ -101,8 +101,6 @@ public:
~CubebSinkStream() override {
LOG_DEBUG(Service_Audio, "Destructing cubeb stream {}", name);
- Unstall();
-
if (!ctx) {
return;
}
@@ -143,8 +141,6 @@ public:
* Stop the sink stream.
*/
void Stop() override {
- Unstall();
-
if (!ctx || paused) {
return;
}
@@ -302,11 +298,21 @@ std::vector<std::string> ListCubebSinkDevices(bool capture) {
std::vector<std::string> device_list;
cubeb* ctx;
+#ifdef _WIN32
+ auto com_init_result = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
+#endif
+
if (cubeb_init(&ctx, "yuzu Device Enumerator", nullptr) != CUBEB_OK) {
LOG_CRITICAL(Audio_Sink, "cubeb_init failed");
return {};
}
+#ifdef _WIN32
+ if (SUCCEEDED(com_init_result)) {
+ CoUninitialize();
+ }
+#endif
+
auto type{capture ? CUBEB_DEVICE_TYPE_INPUT : CUBEB_DEVICE_TYPE_OUTPUT};
cubeb_device_collection collection;
if (cubeb_enumerate_devices(ctx, type, &collection) != CUBEB_OK) {
@@ -329,12 +335,22 @@ std::vector<std::string> ListCubebSinkDevices(bool capture) {
u32 GetCubebLatency() {
cubeb* ctx;
+#ifdef _WIN32
+ auto com_init_result = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
+#endif
+
if (cubeb_init(&ctx, "yuzu Latency Getter", nullptr) != CUBEB_OK) {
LOG_CRITICAL(Audio_Sink, "cubeb_init failed");
// Return a large latency so we choose SDL instead.
return 10000u;
}
+#ifdef _WIN32
+ if (SUCCEEDED(com_init_result)) {
+ CoUninitialize();
+ }
+#endif
+
cubeb_stream_params params{};
params.rate = TargetSampleRate;
params.channels = 2;
diff --git a/src/audio_core/sink/null_sink.h b/src/audio_core/sink/null_sink.h
index 1215d3cd2..b6b43c93e 100644
--- a/src/audio_core/sink/null_sink.h
+++ b/src/audio_core/sink/null_sink.h
@@ -20,7 +20,7 @@ public:
explicit NullSinkStreamImpl(Core::System& system_, StreamType type_)
: SinkStream{system_, type_} {}
~NullSinkStreamImpl() override {}
- void AppendBuffer(SinkBuffer&, std::vector<s16>&) override {}
+ void AppendBuffer(SinkBuffer&, std::span<s16>) override {}
std::vector<s16> ReleaseBuffer(u64) override {
return {};
}
diff --git a/src/audio_core/sink/sdl2_sink.cpp b/src/audio_core/sink/sdl2_sink.cpp
index c138dc628..c1529d1f9 100644
--- a/src/audio_core/sink/sdl2_sink.cpp
+++ b/src/audio_core/sink/sdl2_sink.cpp
@@ -3,6 +3,7 @@
#include <span>
#include <vector>
+#include <SDL.h>
#include "audio_core/common/common.h"
#include "audio_core/sink/sdl2_sink.h"
@@ -10,16 +11,6 @@
#include "common/logging/log.h"
#include "core/core.h"
-// Ignore -Wimplicit-fallthrough due to https://github.com/libsdl-org/SDL/issues/4307
-#ifdef __clang__
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
-#endif
-#include <SDL.h>
-#ifdef __clang__
-#pragma clang diagnostic pop
-#endif
-
namespace AudioCore::Sink {
/**
* SDL sink stream, responsible for sinking samples to hardware.
@@ -88,7 +79,6 @@ public:
* Finalize the sink stream.
*/
void Finalize() override {
- Unstall();
if (device == 0) {
return;
}
@@ -116,7 +106,6 @@ public:
* Stop the sink stream.
*/
void Stop() override {
- Unstall();
if (device == 0 || paused) {
return;
}
diff --git a/src/audio_core/sink/sink_stream.cpp b/src/audio_core/sink/sink_stream.cpp
index 06c2a876e..404dcd0e9 100644
--- a/src/audio_core/sink/sink_stream.cpp
+++ b/src/audio_core/sink/sink_stream.cpp
@@ -14,10 +14,11 @@
#include "common/fixed_point.h"
#include "common/settings.h"
#include "core/core.h"
+#include "core/core_timing.h"
namespace AudioCore::Sink {
-void SinkStream::AppendBuffer(SinkBuffer& buffer, std::vector<s16>& samples) {
+void SinkStream::AppendBuffer(SinkBuffer& buffer, std::span<s16> samples) {
if (type == StreamType::In) {
queue.enqueue(buffer);
queued_buffers++;
@@ -35,7 +36,7 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::vector<s16>& samples) {
if (system_channels == 6 && device_channels == 2) {
// We're given 6 channels, but our device only outputs 2, so downmix.
- constexpr std::array<f32, 4> down_mix_coeff{1.0f, 0.707f, 0.251f, 0.707f};
+ static constexpr std::array<f32, 4> down_mix_coeff{1.0f, 0.707f, 0.251f, 0.707f};
for (u32 read_index = 0, write_index = 0; read_index < samples.size();
read_index += system_channels, write_index += device_channels) {
@@ -65,15 +66,16 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::vector<s16>& samples) {
static_cast<s16>(std::clamp(right_sample, min, max));
}
- samples.resize(samples.size() / system_channels * device_channels);
+ samples = samples.subspan(0, samples.size() / system_channels * device_channels);
} else if (system_channels == 2 && device_channels == 6) {
// We need moar samples! Not all games will provide 6 channel audio.
// TODO: Implement some upmixing here. Currently just passthrough, with other
// channels left as silence.
- std::vector<s16> new_samples(samples.size() / system_channels * device_channels, 0);
+ auto new_size = samples.size() / system_channels * device_channels;
+ tmp_samples.resize_destructive(new_size);
- for (u32 read_index = 0, write_index = 0; read_index < samples.size();
+ for (u32 read_index = 0, write_index = 0; read_index < new_size;
read_index += system_channels, write_index += device_channels) {
const auto left_sample{static_cast<s16>(std::clamp(
static_cast<s32>(
@@ -81,7 +83,7 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::vector<s16>& samples) {
volume),
min, max))};
- new_samples[write_index + static_cast<u32>(Channels::FrontLeft)] = left_sample;
+ tmp_samples[write_index + static_cast<u32>(Channels::FrontLeft)] = left_sample;
const auto right_sample{static_cast<s16>(std::clamp(
static_cast<s32>(
@@ -89,9 +91,9 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::vector<s16>& samples) {
volume),
min, max))};
- new_samples[write_index + static_cast<u32>(Channels::FrontRight)] = right_sample;
+ tmp_samples[write_index + static_cast<u32>(Channels::FrontRight)] = right_sample;
}
- samples = std::move(new_samples);
+ samples = std::span<s16>(tmp_samples);
} else if (volume != 1.0f) {
for (u32 i = 0; i < samples.size(); i++) {
@@ -149,10 +151,6 @@ void SinkStream::ProcessAudioIn(std::span<const s16> input_buffer, std::size_t n
return;
}
- if (queued_buffers > max_queue_size) {
- Stall();
- }
-
while (frames_written < num_frames) {
// If the playing buffer has been consumed or has no frames, we need a new one
if (playing_buffer.consumed || playing_buffer.frames == 0) {
@@ -187,10 +185,6 @@ void SinkStream::ProcessAudioIn(std::span<const s16> input_buffer, std::size_t n
}
std::memcpy(&last_frame[0], &input_buffer[(frames_written - 1) * frame_size], frame_size_bytes);
-
- if (queued_buffers <= max_queue_size) {
- Unstall();
- }
}
void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::size_t num_frames) {
@@ -198,31 +192,22 @@ void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::siz
const std::size_t frame_size = num_channels;
const std::size_t frame_size_bytes = frame_size * sizeof(s16);
size_t frames_written{0};
+ size_t actual_frames_written{0};
// If we're paused or going to shut down, we don't want to consume buffers as coretiming is
// paused and we'll desync, so just play silence.
if (system.IsPaused() || system.IsShuttingDown()) {
- constexpr std::array<s16, 6> silence{};
+ if (system.IsShuttingDown()) {
+ release_cv.notify_one();
+ }
+
+ static constexpr std::array<s16, 6> silence{};
for (size_t i = frames_written; i < num_frames; i++) {
std::memcpy(&output_buffer[i * frame_size], &silence[0], frame_size_bytes);
}
return;
}
- // Due to many frames being queued up with nvdec (5 frames or so?), a lot of buffers also get
- // queued up (30+) but not all at once, which causes constant stalling here, so just let the
- // video play out without attempting to stall.
- // Can hopefully remove this later with a more complete NVDEC implementation.
- const auto nvdec_active{system.AudioCore().IsNVDECActive()};
-
- // Core timing cannot be paused in single-core mode, so Stall ends up being called over and over
- // and never recovers to a normal state, so just skip attempting to sync things on single-core.
- if (system.IsMulticore() && !nvdec_active && queued_buffers > max_queue_size) {
- Stall();
- } else if (system.IsMulticore() && queued_buffers <= max_queue_size) {
- Unstall();
- }
-
while (frames_written < num_frames) {
// If the playing buffer has been consumed or has no frames, we need a new one
if (playing_buffer.consumed || playing_buffer.frames == 0) {
@@ -237,6 +222,10 @@ void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::siz
}
// Successfully dequeued a new buffer.
queued_buffers--;
+
+ { std::unique_lock lk{release_mutex}; }
+
+ release_cv.notify_one();
}
// Get the minimum frames available between the currently playing buffer, and the
@@ -248,6 +237,7 @@ void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::siz
frames_available * frame_size);
frames_written += frames_available;
+ actual_frames_written += frames_available;
playing_buffer.frames_played += frames_available;
// If that's all the frames in the current buffer, add its samples and mark it as
@@ -260,26 +250,33 @@ void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::siz
std::memcpy(&last_frame[0], &output_buffer[(frames_written - 1) * frame_size],
frame_size_bytes);
- if (system.IsMulticore() && queued_buffers <= max_queue_size) {
- Unstall();
+ {
+ std::scoped_lock lk{sample_count_lock};
+ last_sample_count_update_time = system.CoreTiming().GetGlobalTimeNs();
+ min_played_sample_count = max_played_sample_count;
+ max_played_sample_count += actual_frames_written;
}
}
-void SinkStream::Stall() {
- std::scoped_lock lk{stall_guard};
- if (stalled_lock) {
- return;
- }
- stalled_lock = system.StallProcesses();
+u64 SinkStream::GetExpectedPlayedSampleCount() {
+ std::scoped_lock lk{sample_count_lock};
+ auto cur_time{system.CoreTiming().GetGlobalTimeNs()};
+ auto time_delta{cur_time - last_sample_count_update_time};
+ auto exp_played_sample_count{min_played_sample_count +
+ (TargetSampleRate * time_delta) / std::chrono::seconds{1}};
+
+ // Add 15ms of latency in sample reporting to allow for some leeway in scheduler timings
+ return std::min<u64>(exp_played_sample_count, max_played_sample_count) + TargetSampleCount * 3;
}
-void SinkStream::Unstall() {
- std::scoped_lock lk{stall_guard};
- if (!stalled_lock) {
- return;
+void SinkStream::WaitFreeSpace(std::stop_token stop_token) {
+ std::unique_lock lk{release_mutex};
+ release_cv.wait_for(lk, std::chrono::milliseconds(5),
+ [this]() { return queued_buffers < max_queue_size; });
+ if (queued_buffers > max_queue_size + 3) {
+ Common::CondvarWait(release_cv, lk, stop_token,
+ [this] { return queued_buffers < max_queue_size; });
}
- system.UnstallProcesses();
- stalled_lock.unlock();
}
} // namespace AudioCore::Sink
diff --git a/src/audio_core/sink/sink_stream.h b/src/audio_core/sink/sink_stream.h
index 5fea72ab7..98d72ace1 100644
--- a/src/audio_core/sink/sink_stream.h
+++ b/src/audio_core/sink/sink_stream.h
@@ -5,6 +5,7 @@
#include <array>
#include <atomic>
+#include <chrono>
#include <memory>
#include <mutex>
#include <span>
@@ -12,8 +13,11 @@
#include "audio_core/common/common.h"
#include "common/common_types.h"
+#include "common/polyfill_thread.h"
#include "common/reader_writer_queue.h"
#include "common/ring_buffer.h"
+#include "common/scratch_buffer.h"
+#include "common/thread.h"
namespace Core {
class System;
@@ -53,9 +57,7 @@ struct SinkBuffer {
class SinkStream {
public:
explicit SinkStream(Core::System& system_, StreamType type_) : system{system_}, type{type_} {}
- virtual ~SinkStream() {
- Unstall();
- }
+ virtual ~SinkStream() {}
/**
* Finalize the sink stream.
@@ -169,7 +171,7 @@ public:
* @param buffer - Audio buffer information to be queued.
* @param samples - The s16 samples to be queue for playback.
*/
- virtual void AppendBuffer(SinkBuffer& buffer, std::vector<s16>& samples);
+ virtual void AppendBuffer(SinkBuffer& buffer, std::span<s16> samples);
/**
* Release a buffer. Audio In only, will fill a buffer with recorded samples.
@@ -201,14 +203,16 @@ public:
void ProcessAudioOutAndRender(std::span<s16> output_buffer, std::size_t num_frames);
/**
- * Stall core processes if the audio thread falls too far behind.
+ * Get the total number of samples expected to have been played by this stream.
+ *
+ * @return The number of samples.
*/
- void Stall();
+ u64 GetExpectedPlayedSampleCount();
/**
- * Unstall core processes.
+ * Waits for free space in the sample ring buffer
*/
- void Unstall();
+ void WaitFreeSpace(std::stop_token stop_token);
protected:
/// Core system
@@ -237,12 +241,23 @@ private:
std::atomic<u32> queued_buffers{};
/// The ring size for audio out buffers (usually 4, rarely 2 or 8)
u32 max_queue_size{};
+ /// Locks access to sample count tracking info
+ std::mutex sample_count_lock;
+ /// Minimum number of total samples that have been played since the last callback
+ u64 min_played_sample_count{};
+ /// Maximum number of total samples that can be played since the last callback
+ u64 max_played_sample_count{};
+ /// The time the two above tracking variables were last written to
+ std::chrono::nanoseconds last_sample_count_update_time{};
/// Set by the audio render/in/out system which uses this stream
f32 system_volume{1.0f};
/// Set via IAudioDevice service calls
f32 device_volume{1.0f};
- std::mutex stall_guard;
- std::unique_lock<std::mutex> stalled_lock;
+ /// Signalled when ring buffer entries are consumed
+ std::condition_variable_any release_cv;
+ std::mutex release_mutex;
+ /// Temporary buffer for appending samples when upmixing
+ Common::ScratchBuffer<s16> tmp_samples{};
};
using SinkStreamPtr = std::unique_ptr<SinkStream>;
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index bd6ac6716..3adf13a3f 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -38,6 +38,7 @@ add_library(common STATIC
common_precompiled_headers.h
common_types.h
concepts.h
+ container_hash.h
demangle.cpp
demangle.h
div_ceil.h
@@ -91,6 +92,7 @@ add_library(common STATIC
multi_level_page_table.h
nvidia_flags.cpp
nvidia_flags.h
+ overflow.h
page_table.cpp
page_table.h
param_package.cpp
@@ -113,6 +115,8 @@ add_library(common STATIC
socket_types.h
spin_lock.cpp
spin_lock.h
+ steady_clock.cpp
+ steady_clock.h
stream.cpp
stream.h
string_util.cpp
@@ -129,6 +133,7 @@ add_library(common STATIC
time_zone.h
tiny_mt.h
tree.h
+ typed_address.h
uint128.h
unique_function.h
uuid.cpp
@@ -142,13 +147,33 @@ add_library(common STATIC
zstd_compression.h
)
+if (WIN32)
+ target_sources(common PRIVATE
+ windows/timer_resolution.cpp
+ windows/timer_resolution.h
+ )
+ target_link_libraries(common PRIVATE ntdll)
+endif()
+
+if(ANDROID)
+ target_sources(common
+ PRIVATE
+ fs/fs_android.cpp
+ fs/fs_android.h
+ )
+endif()
+
if(ARCHITECTURE_x86_64)
target_sources(common
PRIVATE
x64/cpu_detect.cpp
x64/cpu_detect.h
+ x64/cpu_wait.cpp
+ x64/cpu_wait.h
x64/native_clock.cpp
x64/native_clock.h
+ x64/rdtsc.cpp
+ x64/rdtsc.h
x64/xbyak_abi.h
x64/xbyak_util.h
)
@@ -176,8 +201,13 @@ endif()
create_target_directory_groups(common)
-target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
-target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd demangle)
+target_link_libraries(common PUBLIC Boost::context Boost::headers fmt::fmt microprofile Threads::Threads)
+target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd LLVM::Demangle)
+
+if (ANDROID)
+ # For ASharedMemory_create
+ target_link_libraries(common PRIVATE android)
+endif()
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(common PRIVATE precompiled_headers.h)
diff --git a/src/common/address_space.h b/src/common/address_space.h
index 9222b2fdc..8683c23c3 100644
--- a/src/common/address_space.h
+++ b/src/common/address_space.h
@@ -12,7 +12,8 @@
namespace Common {
template <typename VaType, size_t AddressSpaceBits>
-concept AddressSpaceValid = std::is_unsigned_v<VaType> && sizeof(VaType) * 8 >= AddressSpaceBits;
+concept AddressSpaceValid = std::is_unsigned_v<VaType> && sizeof(VaType) * 8 >=
+AddressSpaceBits;
struct EmptyStruct {};
@@ -21,7 +22,7 @@ struct EmptyStruct {};
*/
template <typename VaType, VaType UnmappedVa, typename PaType, PaType UnmappedPa,
bool PaContigSplit, size_t AddressSpaceBits, typename ExtraBlockInfo = EmptyStruct>
-requires AddressSpaceValid<VaType, AddressSpaceBits>
+ requires AddressSpaceValid<VaType, AddressSpaceBits>
class FlatAddressSpaceMap {
public:
/// The maximum VA that this AS can technically reach
@@ -109,7 +110,7 @@ private:
* initial, fast linear pass and a subsequent slower pass that iterates until it finds a free block
*/
template <typename VaType, VaType UnmappedVa, size_t AddressSpaceBits>
-requires AddressSpaceValid<VaType, AddressSpaceBits>
+ requires AddressSpaceValid<VaType, AddressSpaceBits>
class FlatAllocator
: public FlatAddressSpaceMap<VaType, UnmappedVa, bool, false, false, AddressSpaceBits> {
private:
diff --git a/src/common/address_space.inc b/src/common/address_space.inc
index 2195dabd5..1ee82df53 100644
--- a/src/common/address_space.inc
+++ b/src/common/address_space.inc
@@ -72,7 +72,7 @@ MAP_MEMBER(void)::MapLocked(VaType virt, PaType phys, VaType size, ExtraBlockInf
}
}()};
- if (block_end_predecessor->virt >= virt) {
+ if (block_end_predecessor != blocks.begin() && block_end_predecessor->virt >= virt) {
// If this block's start would be overlapped by the map then reuse it as a tail
// block
block_end_predecessor->virt = virt_end;
@@ -336,7 +336,7 @@ ALLOC_MEMBER(VaType)::Allocate(VaType size) {
ASSERT_MSG(false, "Unexpected allocator state!");
}
- auto search_predecessor{this->blocks.begin()};
+ auto search_predecessor{std::next(this->blocks.begin())};
auto search_successor{std::next(search_predecessor)};
while (search_successor != this->blocks.end() &&
diff --git a/src/common/alignment.h b/src/common/alignment.h
index 7e897334b..fa715d497 100644
--- a/src/common/alignment.h
+++ b/src/common/alignment.h
@@ -10,7 +10,7 @@
namespace Common {
template <typename T>
-requires std::is_unsigned_v<T>
+ requires std::is_unsigned_v<T>
[[nodiscard]] constexpr T AlignUp(T value, size_t size) {
auto mod{static_cast<T>(value % size)};
value -= mod;
@@ -18,31 +18,31 @@ requires std::is_unsigned_v<T>
}
template <typename T>
-requires std::is_unsigned_v<T>
+ requires std::is_unsigned_v<T>
[[nodiscard]] constexpr T AlignUpLog2(T value, size_t align_log2) {
return static_cast<T>((value + ((1ULL << align_log2) - 1)) >> align_log2 << align_log2);
}
template <typename T>
-requires std::is_unsigned_v<T>
+ requires std::is_unsigned_v<T>
[[nodiscard]] constexpr T AlignDown(T value, size_t size) {
return static_cast<T>(value - value % size);
}
template <typename T>
-requires std::is_unsigned_v<T>
+ requires std::is_unsigned_v<T>
[[nodiscard]] constexpr bool Is4KBAligned(T value) {
return (value & 0xFFF) == 0;
}
template <typename T>
-requires std::is_unsigned_v<T>
+ requires std::is_unsigned_v<T>
[[nodiscard]] constexpr bool IsWordAligned(T value) {
return (value & 0b11) == 0;
}
template <typename T>
-requires std::is_integral_v<T>
+ requires std::is_integral_v<T>
[[nodiscard]] constexpr bool IsAligned(T value, size_t alignment) {
using U = typename std::make_unsigned_t<T>;
const U mask = static_cast<U>(alignment - 1);
@@ -50,7 +50,7 @@ requires std::is_integral_v<T>
}
template <typename T, typename U>
-requires std::is_integral_v<T>
+ requires std::is_integral_v<T>
[[nodiscard]] constexpr T DivideUp(T x, U y) {
return (x + (y - 1)) / y;
}
@@ -73,11 +73,11 @@ public:
constexpr AlignmentAllocator(const AlignmentAllocator<T2, Align>&) noexcept {}
[[nodiscard]] T* allocate(size_type n) {
- return static_cast<T*>(::operator new (n * sizeof(T), std::align_val_t{Align}));
+ return static_cast<T*>(::operator new(n * sizeof(T), std::align_val_t{Align}));
}
void deallocate(T* p, size_type n) {
- ::operator delete (p, n * sizeof(T), std::align_val_t{Align});
+ ::operator delete(p, n * sizeof(T), std::align_val_t{Align});
}
template <typename T2>
diff --git a/src/common/announce_multiplayer_room.h b/src/common/announce_multiplayer_room.h
index 4a3100fa4..f32060196 100644
--- a/src/common/announce_multiplayer_room.h
+++ b/src/common/announce_multiplayer_room.h
@@ -66,7 +66,7 @@ public:
* @param description The room description
* @param port The port of the room
* @param net_version The version of the libNetwork that gets used
- * @param has_password True if the room is passowrd protected
+ * @param has_password True if the room is password protected
* @param preferred_game The preferred game of the room
* @param preferred_game_id The title id of the preferred game
*/
diff --git a/src/common/atomic_helpers.h b/src/common/atomic_helpers.h
index aef3b66a4..d997f10ba 100644
--- a/src/common/atomic_helpers.h
+++ b/src/common/atomic_helpers.h
@@ -75,7 +75,7 @@ extern "C" void AnnotateHappensAfter(const char*, int, void*);
#if defined(AE_VCPP) || defined(AE_ICC)
#define AE_FORCEINLINE __forceinline
#elif defined(AE_GCC)
-//#define AE_FORCEINLINE __attribute__((always_inline))
+// #define AE_FORCEINLINE __attribute__((always_inline))
#define AE_FORCEINLINE inline
#else
#define AE_FORCEINLINE inline
diff --git a/src/common/bit_cast.h b/src/common/bit_cast.h
index 535148b4d..c6110c542 100644
--- a/src/common/bit_cast.h
+++ b/src/common/bit_cast.h
@@ -3,19 +3,21 @@
#pragma once
-#include <cstring>
-#include <type_traits>
+#include <version>
+
+#ifdef __cpp_lib_bit_cast
+#include <bit>
+#endif
namespace Common {
template <typename To, typename From>
-[[nodiscard]] std::enable_if_t<sizeof(To) == sizeof(From) && std::is_trivially_copyable_v<From> &&
- std::is_trivially_copyable_v<To>,
- To>
-BitCast(const From& src) noexcept {
- To dst;
- std::memcpy(&dst, &src, sizeof(To));
- return dst;
+constexpr inline To BitCast(const From& from) {
+#ifdef __cpp_lib_bit_cast
+ return std::bit_cast<To>(from);
+#else
+ return __builtin_bit_cast(To, from);
+#endif
}
} // namespace Common
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index e4e58ea45..0168ff9cb 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -188,3 +188,8 @@ private:
template <std::size_t Position, std::size_t Bits, typename T>
using BitFieldBE = BitField<Position, Bits, T, BETag>;
+
+template <std::size_t Position, std::size_t Bits, typename T, typename EndianTag = LETag>
+inline auto format_as(BitField<Position, Bits, T, EndianTag> bitfield) {
+ return bitfield.Value();
+}
diff --git a/src/common/bit_util.h b/src/common/bit_util.h
index e4e6287f3..13368b439 100644
--- a/src/common/bit_util.h
+++ b/src/common/bit_util.h
@@ -45,19 +45,19 @@ template <typename T>
}
template <typename T>
-requires std::is_unsigned_v<T>
+ requires std::is_unsigned_v<T>
[[nodiscard]] constexpr bool IsPow2(T value) {
return std::has_single_bit(value);
}
template <typename T>
-requires std::is_integral_v<T>
+ requires std::is_integral_v<T>
[[nodiscard]] T NextPow2(T value) {
return static_cast<T>(1ULL << ((8U * sizeof(T)) - std::countl_zero(value - 1U)));
}
template <size_t bit_index, typename T>
-requires std::is_integral_v<T>
+ requires std::is_integral_v<T>
[[nodiscard]] constexpr bool Bit(const T value) {
static_assert(bit_index < BitSize<T>(), "bit_index must be smaller than size of T");
return ((value >> bit_index) & T(1)) == T(1);
diff --git a/src/common/bounded_threadsafe_queue.h b/src/common/bounded_threadsafe_queue.h
index 21217801e..bd87aa09b 100644
--- a/src/common/bounded_threadsafe_queue.h
+++ b/src/common/bounded_threadsafe_queue.h
@@ -1,158 +1,249 @@
-// SPDX-FileCopyrightText: Copyright (c) 2020 Erik Rigtorp <erik@rigtorp.se>
-// SPDX-License-Identifier: MIT
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <atomic>
-#include <bit>
#include <condition_variable>
-#include <memory>
+#include <cstddef>
#include <mutex>
#include <new>
-#include <stop_token>
-#include <type_traits>
-#include <utility>
+
+#include "common/polyfill_thread.h"
namespace Common {
-#if defined(__cpp_lib_hardware_interference_size)
-constexpr size_t hardware_interference_size = std::hardware_destructive_interference_size;
-#else
-constexpr size_t hardware_interference_size = 64;
-#endif
+namespace detail {
+constexpr size_t DefaultCapacity = 0x1000;
+} // namespace detail
+
+template <typename T, size_t Capacity = detail::DefaultCapacity>
+class SPSCQueue {
+ static_assert((Capacity & (Capacity - 1)) == 0, "Capacity must be a power of two.");
-template <typename T, size_t capacity = 0x400>
-class MPSCQueue {
public:
- explicit MPSCQueue() : allocator{std::allocator<Slot<T>>()} {
- // Allocate one extra slot to prevent false sharing on the last slot
- slots = allocator.allocate(capacity + 1);
- // Allocators are not required to honor alignment for over-aligned types
- // (see http://eel.is/c++draft/allocator.requirements#10) so we verify
- // alignment here
- if (reinterpret_cast<uintptr_t>(slots) % alignof(Slot<T>) != 0) {
- allocator.deallocate(slots, capacity + 1);
- throw std::bad_alloc();
- }
- for (size_t i = 0; i < capacity; ++i) {
- std::construct_at(&slots[i]);
- }
- static_assert(std::has_single_bit(capacity), "capacity must be an integer power of 2");
- static_assert(alignof(Slot<T>) == hardware_interference_size,
- "Slot must be aligned to cache line boundary to prevent false sharing");
- static_assert(sizeof(Slot<T>) % hardware_interference_size == 0,
- "Slot size must be a multiple of cache line size to prevent "
- "false sharing between adjacent slots");
- static_assert(sizeof(MPSCQueue) % hardware_interference_size == 0,
- "Queue size must be a multiple of cache line size to "
- "prevent false sharing between adjacent queues");
- }
-
- ~MPSCQueue() noexcept {
- for (size_t i = 0; i < capacity; ++i) {
- std::destroy_at(&slots[i]);
- }
- allocator.deallocate(slots, capacity + 1);
+ template <typename... Args>
+ bool TryEmplace(Args&&... args) {
+ return Emplace<PushMode::Try>(std::forward<Args>(args)...);
}
- // The queue must be both non-copyable and non-movable
- MPSCQueue(const MPSCQueue&) = delete;
- MPSCQueue& operator=(const MPSCQueue&) = delete;
+ template <typename... Args>
+ void EmplaceWait(Args&&... args) {
+ Emplace<PushMode::Wait>(std::forward<Args>(args)...);
+ }
- MPSCQueue(MPSCQueue&&) = delete;
- MPSCQueue& operator=(MPSCQueue&&) = delete;
+ bool TryPop(T& t) {
+ return Pop<PopMode::Try>(t);
+ }
- void Push(const T& v) noexcept {
- static_assert(std::is_nothrow_copy_constructible_v<T>,
- "T must be nothrow copy constructible");
- emplace(v);
+ void PopWait(T& t) {
+ Pop<PopMode::Wait>(t);
}
- template <typename P, typename = std::enable_if_t<std::is_nothrow_constructible_v<T, P&&>>>
- void Push(P&& v) noexcept {
- emplace(std::forward<P>(v));
+ void PopWait(T& t, std::stop_token stop_token) {
+ Pop<PopMode::WaitWithStopToken>(t, stop_token);
}
- void Pop(T& v, std::stop_token stop) noexcept {
- auto const tail = tail_.fetch_add(1);
- auto& slot = slots[idx(tail)];
- if (!slot.turn.test()) {
- std::unique_lock lock{cv_mutex};
- cv.wait(lock, stop, [&slot] { return slot.turn.test(); });
- }
- v = slot.move();
- slot.destroy();
- slot.turn.clear();
- slot.turn.notify_one();
+ T PopWait() {
+ T t;
+ Pop<PopMode::Wait>(t);
+ return t;
+ }
+
+ T PopWait(std::stop_token stop_token) {
+ T t;
+ Pop<PopMode::WaitWithStopToken>(t, stop_token);
+ return t;
}
private:
- template <typename U = T>
- struct Slot {
- ~Slot() noexcept {
- if (turn.test()) {
- destroy();
+ enum class PushMode {
+ Try,
+ Wait,
+ Count,
+ };
+
+ enum class PopMode {
+ Try,
+ Wait,
+ WaitWithStopToken,
+ Count,
+ };
+
+ template <PushMode Mode, typename... Args>
+ bool Emplace(Args&&... args) {
+ const size_t write_index = m_write_index.load(std::memory_order::relaxed);
+
+ if constexpr (Mode == PushMode::Try) {
+ // Check if we have free slots to write to.
+ if ((write_index - m_read_index.load(std::memory_order::acquire)) == Capacity) {
+ return false;
}
+ } else if constexpr (Mode == PushMode::Wait) {
+ // Wait until we have free slots to write to.
+ std::unique_lock lock{producer_cv_mutex};
+ producer_cv.wait(lock, [this, write_index] {
+ return (write_index - m_read_index.load(std::memory_order::acquire)) < Capacity;
+ });
+ } else {
+ static_assert(Mode < PushMode::Count, "Invalid PushMode.");
}
- template <typename... Args>
- void construct(Args&&... args) noexcept {
- static_assert(std::is_nothrow_constructible_v<U, Args&&...>,
- "T must be nothrow constructible with Args&&...");
- std::construct_at(reinterpret_cast<U*>(&storage), std::forward<Args>(args)...);
- }
+ // Determine the position to write to.
+ const size_t pos = write_index % Capacity;
- void destroy() noexcept {
- static_assert(std::is_nothrow_destructible_v<U>, "T must be nothrow destructible");
- std::destroy_at(reinterpret_cast<U*>(&storage));
- }
+ // Emplace into the queue.
+ std::construct_at(std::addressof(m_data[pos]), std::forward<Args>(args)...);
+
+ // Increment the write index.
+ ++m_write_index;
+
+ // Notify the consumer that we have pushed into the queue.
+ std::scoped_lock lock{consumer_cv_mutex};
+ consumer_cv.notify_one();
+
+ return true;
+ }
+
+ template <PopMode Mode>
+ bool Pop(T& t, [[maybe_unused]] std::stop_token stop_token = {}) {
+ const size_t read_index = m_read_index.load(std::memory_order::relaxed);
- U&& move() noexcept {
- return reinterpret_cast<U&&>(storage);
+ if constexpr (Mode == PopMode::Try) {
+ // Check if the queue is empty.
+ if (read_index == m_write_index.load(std::memory_order::acquire)) {
+ return false;
+ }
+ } else if constexpr (Mode == PopMode::Wait) {
+ // Wait until the queue is not empty.
+ std::unique_lock lock{consumer_cv_mutex};
+ consumer_cv.wait(lock, [this, read_index] {
+ return read_index != m_write_index.load(std::memory_order::acquire);
+ });
+ } else if constexpr (Mode == PopMode::WaitWithStopToken) {
+ // Wait until the queue is not empty.
+ std::unique_lock lock{consumer_cv_mutex};
+ Common::CondvarWait(consumer_cv, lock, stop_token, [this, read_index] {
+ return read_index != m_write_index.load(std::memory_order::acquire);
+ });
+ if (stop_token.stop_requested()) {
+ return false;
+ }
+ } else {
+ static_assert(Mode < PopMode::Count, "Invalid PopMode.");
}
- // Align to avoid false sharing between adjacent slots
- alignas(hardware_interference_size) std::atomic_flag turn{};
- struct aligned_store {
- struct type {
- alignas(U) unsigned char data[sizeof(U)];
- };
- };
- typename aligned_store::type storage;
- };
+ // Determine the position to read from.
+ const size_t pos = read_index % Capacity;
+
+ // Pop the data off the queue, moving it.
+ t = std::move(m_data[pos]);
+
+ // Increment the read index.
+ ++m_read_index;
+
+ // Notify the producer that we have popped off the queue.
+ std::scoped_lock lock{producer_cv_mutex};
+ producer_cv.notify_one();
+
+ return true;
+ }
+ alignas(128) std::atomic_size_t m_read_index{0};
+ alignas(128) std::atomic_size_t m_write_index{0};
+
+ std::array<T, Capacity> m_data;
+
+ std::condition_variable_any producer_cv;
+ std::mutex producer_cv_mutex;
+ std::condition_variable_any consumer_cv;
+ std::mutex consumer_cv_mutex;
+};
+
+template <typename T, size_t Capacity = detail::DefaultCapacity>
+class MPSCQueue {
+public:
template <typename... Args>
- void emplace(Args&&... args) noexcept {
- static_assert(std::is_nothrow_constructible_v<T, Args&&...>,
- "T must be nothrow constructible with Args&&...");
- auto const head = head_.fetch_add(1);
- auto& slot = slots[idx(head)];
- slot.turn.wait(true);
- slot.construct(std::forward<Args>(args)...);
- slot.turn.test_and_set();
- cv.notify_one();
+ bool TryEmplace(Args&&... args) {
+ std::scoped_lock lock{write_mutex};
+ return spsc_queue.TryEmplace(std::forward<Args>(args)...);
}
- constexpr size_t idx(size_t i) const noexcept {
- return i & mask;
+ template <typename... Args>
+ void EmplaceWait(Args&&... args) {
+ std::scoped_lock lock{write_mutex};
+ spsc_queue.EmplaceWait(std::forward<Args>(args)...);
}
- static constexpr size_t mask = capacity - 1;
+ bool TryPop(T& t) {
+ return spsc_queue.TryPop(t);
+ }
- // Align to avoid false sharing between head_ and tail_
- alignas(hardware_interference_size) std::atomic<size_t> head_{0};
- alignas(hardware_interference_size) std::atomic<size_t> tail_{0};
+ void PopWait(T& t) {
+ spsc_queue.PopWait(t);
+ }
- std::mutex cv_mutex;
- std::condition_variable_any cv;
+ void PopWait(T& t, std::stop_token stop_token) {
+ spsc_queue.PopWait(t, stop_token);
+ }
+
+ T PopWait() {
+ return spsc_queue.PopWait();
+ }
- Slot<T>* slots;
- [[no_unique_address]] std::allocator<Slot<T>> allocator;
+ T PopWait(std::stop_token stop_token) {
+ return spsc_queue.PopWait(stop_token);
+ }
- static_assert(std::is_nothrow_copy_assignable_v<T> || std::is_nothrow_move_assignable_v<T>,
- "T must be nothrow copy or move assignable");
+private:
+ SPSCQueue<T, Capacity> spsc_queue;
+ std::mutex write_mutex;
+};
- static_assert(std::is_nothrow_destructible_v<T>, "T must be nothrow destructible");
+template <typename T, size_t Capacity = detail::DefaultCapacity>
+class MPMCQueue {
+public:
+ template <typename... Args>
+ bool TryEmplace(Args&&... args) {
+ std::scoped_lock lock{write_mutex};
+ return spsc_queue.TryEmplace(std::forward<Args>(args)...);
+ }
+
+ template <typename... Args>
+ void EmplaceWait(Args&&... args) {
+ std::scoped_lock lock{write_mutex};
+ spsc_queue.EmplaceWait(std::forward<Args>(args)...);
+ }
+
+ bool TryPop(T& t) {
+ std::scoped_lock lock{read_mutex};
+ return spsc_queue.TryPop(t);
+ }
+
+ void PopWait(T& t) {
+ std::scoped_lock lock{read_mutex};
+ spsc_queue.PopWait(t);
+ }
+
+ void PopWait(T& t, std::stop_token stop_token) {
+ std::scoped_lock lock{read_mutex};
+ spsc_queue.PopWait(t, stop_token);
+ }
+
+ T PopWait() {
+ std::scoped_lock lock{read_mutex};
+ return spsc_queue.PopWait();
+ }
+
+ T PopWait(std::stop_token stop_token) {
+ std::scoped_lock lock{read_mutex};
+ return spsc_queue.PopWait(stop_token);
+ }
+
+private:
+ SPSCQueue<T, Capacity> spsc_queue;
+ std::mutex write_mutex;
+ std::mutex read_mutex;
};
} // namespace Common
diff --git a/src/common/concepts.h b/src/common/concepts.h
index a9acff3e7..61df1d32a 100644
--- a/src/common/concepts.h
+++ b/src/common/concepts.h
@@ -16,9 +16,9 @@ concept IsContiguousContainer = std::contiguous_iterator<typename T::iterator>;
// is available on all supported platforms.
template <typename Derived, typename Base>
concept DerivedFrom = requires {
- std::is_base_of_v<Base, Derived>;
- std::is_convertible_v<const volatile Derived*, const volatile Base*>;
-};
+ std::is_base_of_v<Base, Derived>;
+ std::is_convertible_v<const volatile Derived*, const volatile Base*>;
+ };
// TODO: Replace with std::convertible_to when libc++ implements it.
template <typename From, typename To>
diff --git a/src/common/container_hash.h b/src/common/container_hash.h
new file mode 100644
index 000000000..a5e357745
--- /dev/null
+++ b/src/common/container_hash.h
@@ -0,0 +1,92 @@
+// SPDX-FileCopyrightText: 2005-2014 Daniel James
+// SPDX-FileCopyrightText: 2016 Austin Appleby
+// SPDX-License-Identifier: BSL-1.0
+
+#include <array>
+#include <climits>
+#include <cstdint>
+#include <limits>
+#include <type_traits>
+#include <vector>
+
+namespace Common {
+
+namespace detail {
+
+template <typename T>
+ requires std::is_unsigned_v<T>
+inline std::size_t HashValue(T val) {
+ const unsigned int size_t_bits = std::numeric_limits<std::size_t>::digits;
+ const unsigned int length =
+ (std::numeric_limits<T>::digits - 1) / static_cast<unsigned int>(size_t_bits);
+
+ std::size_t seed = 0;
+
+ for (unsigned int i = length * size_t_bits; i > 0; i -= size_t_bits) {
+ seed ^= static_cast<size_t>(val >> i) + (seed << 6) + (seed >> 2);
+ }
+
+ seed ^= static_cast<size_t>(val) + (seed << 6) + (seed >> 2);
+
+ return seed;
+}
+
+template <size_t Bits>
+struct HashCombineImpl {
+ template <typename T>
+ static inline T fn(T seed, T value) {
+ seed ^= value + 0x9e3779b9 + (seed << 6) + (seed >> 2);
+ return seed;
+ }
+};
+
+template <>
+struct HashCombineImpl<64> {
+ static inline std::uint64_t fn(std::uint64_t h, std::uint64_t k) {
+ const std::uint64_t m = (std::uint64_t(0xc6a4a793) << 32) + 0x5bd1e995;
+ const int r = 47;
+
+ k *= m;
+ k ^= k >> r;
+ k *= m;
+
+ h ^= k;
+ h *= m;
+
+ // Completely arbitrary number, to prevent 0's
+ // from hashing to 0.
+ h += 0xe6546b64;
+
+ return h;
+ }
+};
+
+} // namespace detail
+
+template <typename T>
+inline void HashCombine(std::size_t& seed, const T& v) {
+ seed = detail::HashCombineImpl<sizeof(std::size_t) * CHAR_BIT>::fn(seed, detail::HashValue(v));
+}
+
+template <typename It>
+inline std::size_t HashRange(It first, It last) {
+ std::size_t seed = 0;
+
+ for (; first != last; ++first) {
+ HashCombine<typename std::iterator_traits<It>::value_type>(seed, *first);
+ }
+
+ return seed;
+}
+
+template <typename T, size_t Size>
+std::size_t HashValue(const std::array<T, Size>& v) {
+ return HashRange(v.cbegin(), v.cend());
+}
+
+template <typename T, typename Allocator>
+std::size_t HashValue(const std::vector<T, Allocator>& v) {
+ return HashRange(v.cbegin(), v.cend());
+}
+
+} // namespace Common
diff --git a/src/common/demangle.cpp b/src/common/demangle.cpp
index f4246f666..3310faf86 100644
--- a/src/common/demangle.cpp
+++ b/src/common/demangle.cpp
@@ -1,13 +1,11 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <llvm/Demangle/Demangle.h>
+
#include "common/demangle.h"
#include "common/scope_exit.h"
-namespace llvm {
-char* itaniumDemangle(const char* mangled_name, char* buf, size_t* n, int* status);
-}
-
namespace Common {
std::string DemangleSymbol(const std::string& mangled) {
diff --git a/src/common/div_ceil.h b/src/common/div_ceil.h
index eebc279c2..c12477d42 100644
--- a/src/common/div_ceil.h
+++ b/src/common/div_ceil.h
@@ -10,14 +10,14 @@ namespace Common {
/// Ceiled integer division.
template <typename N, typename D>
-requires std::is_integral_v<N> && std::is_unsigned_v<D>
+ requires std::is_integral_v<N> && std::is_unsigned_v<D>
[[nodiscard]] constexpr N DivCeil(N number, D divisor) {
return static_cast<N>((static_cast<D>(number) + divisor - 1) / divisor);
}
/// Ceiled integer division with logarithmic divisor in base 2
template <typename N, typename D>
-requires std::is_integral_v<N> && std::is_unsigned_v<D>
+ requires std::is_integral_v<N> && std::is_unsigned_v<D>
[[nodiscard]] constexpr N DivCeilLog2(N value, D alignment_log2) {
return static_cast<N>((static_cast<D>(value) + (D(1) << alignment_log2) - 1) >> alignment_log2);
}
diff --git a/src/common/dynamic_library.cpp b/src/common/dynamic_library.cpp
index 054277a2b..4fabe7e52 100644
--- a/src/common/dynamic_library.cpp
+++ b/src/common/dynamic_library.cpp
@@ -22,6 +22,8 @@ DynamicLibrary::DynamicLibrary(const char* filename) {
void(Open(filename));
}
+DynamicLibrary::DynamicLibrary(void* handle_) : handle{handle_} {}
+
DynamicLibrary::DynamicLibrary(DynamicLibrary&& rhs) noexcept
: handle{std::exchange(rhs.handle, nullptr)} {}
diff --git a/src/common/dynamic_library.h b/src/common/dynamic_library.h
index f42bdf441..662d454d4 100644
--- a/src/common/dynamic_library.h
+++ b/src/common/dynamic_library.h
@@ -20,6 +20,9 @@ public:
/// Automatically loads the specified library. Call IsOpen() to check validity before use.
explicit DynamicLibrary(const char* filename);
+ /// Initializes the dynamic library with an already opened handle.
+ explicit DynamicLibrary(void* handle_);
+
/// Moves the library.
DynamicLibrary(DynamicLibrary&&) noexcept;
DynamicLibrary& operator=(DynamicLibrary&&) noexcept;
diff --git a/src/common/error.cpp b/src/common/error.cpp
index ddb03bd45..1b2009db7 100644
--- a/src/common/error.cpp
+++ b/src/common/error.cpp
@@ -30,7 +30,8 @@ std::string NativeErrorToString(int e) {
return ret;
#else
char err_str[255];
-#if defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600))
+#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);
diff --git a/src/common/expected.h b/src/common/expected.h
index 6e6c86ee7..5fccfbcbd 100644
--- a/src/common/expected.h
+++ b/src/common/expected.h
@@ -64,7 +64,7 @@ struct no_init_t {
* Additionally, this requires E to be trivially destructible
*/
template <typename T, typename E, bool = std::is_trivially_destructible_v<T>>
-requires std::is_trivially_destructible_v<E>
+ requires std::is_trivially_destructible_v<E>
struct expected_storage_base {
constexpr expected_storage_base() : m_val{T{}}, m_has_val{true} {}
@@ -111,7 +111,7 @@ struct expected_storage_base {
* Additionally, this requires E to be trivially destructible
*/
template <typename T, typename E>
-requires std::is_trivially_destructible_v<E>
+ requires std::is_trivially_destructible_v<E>
struct expected_storage_base<T, E, true> {
constexpr expected_storage_base() : m_val{T{}}, m_has_val{true} {}
@@ -251,7 +251,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
* Additionally, this requires E to be trivially copy constructible
*/
template <typename T, typename E, bool = std::is_trivially_copy_constructible_v<T>>
-requires std::is_trivially_copy_constructible_v<E>
+ requires std::is_trivially_copy_constructible_v<E>
struct expected_copy_base : expected_operations_base<T, E> {
using expected_operations_base<T, E>::expected_operations_base;
};
@@ -261,7 +261,7 @@ struct expected_copy_base : expected_operations_base<T, E> {
* Additionally, this requires E to be trivially copy constructible
*/
template <typename T, typename E>
-requires std::is_trivially_copy_constructible_v<E>
+ requires std::is_trivially_copy_constructible_v<E>
struct expected_copy_base<T, E, false> : expected_operations_base<T, E> {
using expected_operations_base<T, E>::expected_operations_base;
@@ -289,7 +289,7 @@ struct expected_copy_base<T, E, false> : expected_operations_base<T, E> {
* Additionally, this requires E to be trivially move constructible
*/
template <typename T, typename E, bool = std::is_trivially_move_constructible_v<T>>
-requires std::is_trivially_move_constructible_v<E>
+ requires std::is_trivially_move_constructible_v<E>
struct expected_move_base : expected_copy_base<T, E> {
using expected_copy_base<T, E>::expected_copy_base;
};
@@ -299,7 +299,7 @@ struct expected_move_base : expected_copy_base<T, E> {
* Additionally, this requires E to be trivially move constructible
*/
template <typename T, typename E>
-requires std::is_trivially_move_constructible_v<E>
+ requires std::is_trivially_move_constructible_v<E>
struct expected_move_base<T, E, false> : expected_copy_base<T, E> {
using expected_copy_base<T, E>::expected_copy_base;
@@ -330,9 +330,9 @@ template <typename T, typename E,
bool = std::conjunction_v<std::is_trivially_copy_assignable<T>,
std::is_trivially_copy_constructible<T>,
std::is_trivially_destructible<T>>>
-requires std::conjunction_v<std::is_trivially_copy_assignable<E>,
- std::is_trivially_copy_constructible<E>,
- std::is_trivially_destructible<E>>
+ requires std::conjunction_v<std::is_trivially_copy_assignable<E>,
+ std::is_trivially_copy_constructible<E>,
+ std::is_trivially_destructible<E>>
struct expected_copy_assign_base : expected_move_base<T, E> {
using expected_move_base<T, E>::expected_move_base;
};
@@ -342,9 +342,9 @@ struct expected_copy_assign_base : expected_move_base<T, E> {
* Additionally, this requires E to be trivially copy assignable
*/
template <typename T, typename E>
-requires std::conjunction_v<std::is_trivially_copy_assignable<E>,
- std::is_trivially_copy_constructible<E>,
- std::is_trivially_destructible<E>>
+ requires std::conjunction_v<std::is_trivially_copy_assignable<E>,
+ std::is_trivially_copy_constructible<E>,
+ std::is_trivially_destructible<E>>
struct expected_copy_assign_base<T, E, false> : expected_move_base<T, E> {
using expected_move_base<T, E>::expected_move_base;
@@ -371,9 +371,9 @@ template <typename T, typename E,
bool = std::conjunction_v<std::is_trivially_move_assignable<T>,
std::is_trivially_move_constructible<T>,
std::is_trivially_destructible<T>>>
-requires std::conjunction_v<std::is_trivially_move_assignable<E>,
- std::is_trivially_move_constructible<E>,
- std::is_trivially_destructible<E>>
+ requires std::conjunction_v<std::is_trivially_move_assignable<E>,
+ std::is_trivially_move_constructible<E>,
+ std::is_trivially_destructible<E>>
struct expected_move_assign_base : expected_copy_assign_base<T, E> {
using expected_copy_assign_base<T, E>::expected_copy_assign_base;
};
@@ -383,9 +383,9 @@ struct expected_move_assign_base : expected_copy_assign_base<T, E> {
* Additionally, this requires E to be trivially move assignable
*/
template <typename T, typename E>
-requires std::conjunction_v<std::is_trivially_move_assignable<E>,
- std::is_trivially_move_constructible<E>,
- std::is_trivially_destructible<E>>
+ requires std::conjunction_v<std::is_trivially_move_assignable<E>,
+ std::is_trivially_move_constructible<E>,
+ std::is_trivially_destructible<E>>
struct expected_move_assign_base<T, E, false> : expected_copy_assign_base<T, E> {
using expected_copy_assign_base<T, E>::expected_copy_assign_base;
@@ -412,7 +412,7 @@ struct expected_move_assign_base<T, E, false> : expected_copy_assign_base<T, E>
*/
template <typename T, typename E, bool EnableCopy = std::is_copy_constructible_v<T>,
bool EnableMove = std::is_move_constructible_v<T>>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
struct expected_delete_ctor_base {
expected_delete_ctor_base() = default;
expected_delete_ctor_base(const expected_delete_ctor_base&) = default;
@@ -422,7 +422,7 @@ struct expected_delete_ctor_base {
};
template <typename T, typename E>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
struct expected_delete_ctor_base<T, E, true, false> {
expected_delete_ctor_base() = default;
expected_delete_ctor_base(const expected_delete_ctor_base&) = default;
@@ -432,7 +432,7 @@ struct expected_delete_ctor_base<T, E, true, false> {
};
template <typename T, typename E>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
struct expected_delete_ctor_base<T, E, false, true> {
expected_delete_ctor_base() = default;
expected_delete_ctor_base(const expected_delete_ctor_base&) = delete;
@@ -442,7 +442,7 @@ struct expected_delete_ctor_base<T, E, false, true> {
};
template <typename T, typename E>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>>
struct expected_delete_ctor_base<T, E, false, false> {
expected_delete_ctor_base() = default;
expected_delete_ctor_base(const expected_delete_ctor_base&) = delete;
@@ -460,8 +460,8 @@ template <
typename T, typename E,
bool EnableCopy = std::conjunction_v<std::is_copy_constructible<T>, std::is_copy_assignable<T>>,
bool EnableMove = std::conjunction_v<std::is_move_constructible<T>, std::is_move_assignable<T>>>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
- std::is_copy_assignable<E>, std::is_move_assignable<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
+ std::is_copy_assignable<E>, std::is_move_assignable<E>>
struct expected_delete_assign_base {
expected_delete_assign_base() = default;
expected_delete_assign_base(const expected_delete_assign_base&) = default;
@@ -471,8 +471,8 @@ struct expected_delete_assign_base {
};
template <typename T, typename E>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
- std::is_copy_assignable<E>, std::is_move_assignable<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
+ std::is_copy_assignable<E>, std::is_move_assignable<E>>
struct expected_delete_assign_base<T, E, true, false> {
expected_delete_assign_base() = default;
expected_delete_assign_base(const expected_delete_assign_base&) = default;
@@ -482,8 +482,8 @@ struct expected_delete_assign_base<T, E, true, false> {
};
template <typename T, typename E>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
- std::is_copy_assignable<E>, std::is_move_assignable<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
+ std::is_copy_assignable<E>, std::is_move_assignable<E>>
struct expected_delete_assign_base<T, E, false, true> {
expected_delete_assign_base() = default;
expected_delete_assign_base(const expected_delete_assign_base&) = default;
@@ -493,8 +493,8 @@ struct expected_delete_assign_base<T, E, false, true> {
};
template <typename T, typename E>
-requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
- std::is_copy_assignable<E>, std::is_move_assignable<E>>
+ requires std::conjunction_v<std::is_copy_constructible<E>, std::is_move_constructible<E>,
+ std::is_copy_assignable<E>, std::is_move_assignable<E>>
struct expected_delete_assign_base<T, E, false, false> {
expected_delete_assign_base() = default;
expected_delete_assign_base(const expected_delete_assign_base&) = default;
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp
index bc92b360b..c991b7cf1 100644
--- a/src/common/fiber.cpp
+++ b/src/common/fiber.cpp
@@ -90,7 +90,7 @@ Fiber::~Fiber() {
}
void Fiber::Exit() {
- ASSERT_MSG(impl->is_thread_fiber, "Exitting non main thread fiber");
+ ASSERT_MSG(impl->is_thread_fiber, "Exiting non main thread fiber");
if (!impl->is_thread_fiber) {
return;
}
diff --git a/src/common/fixed_point.h b/src/common/fixed_point.h
index f899b0d54..b0f3ae2cc 100644
--- a/src/common/fixed_point.h
+++ b/src/common/fixed_point.h
@@ -22,7 +22,7 @@ class FixedPoint;
namespace detail {
// helper templates to make magic with types :)
-// these allow us to determine resonable types from
+// these allow us to determine reasonable types from
// a desired size, they also let us infer the next largest type
// from a type which is nice for the division op
template <size_t T>
diff --git a/src/common/fs/file.cpp b/src/common/fs/file.cpp
index 656b03cc5..b0b25eb43 100644
--- a/src/common/fs/file.cpp
+++ b/src/common/fs/file.cpp
@@ -5,6 +5,9 @@
#include "common/fs/file.h"
#include "common/fs/fs.h"
+#ifdef ANDROID
+#include "common/fs/fs_android.h"
+#endif
#include "common/logging/log.h"
#ifdef _WIN32
@@ -252,6 +255,23 @@ void IOFile::Open(const fs::path& path, FileAccessMode mode, FileType type, File
} else {
_wfopen_s(&file, path.c_str(), AccessModeToWStr(mode, type));
}
+#elif ANDROID
+ if (Android::IsContentUri(path)) {
+ ASSERT_MSG(mode == FileAccessMode::Read, "Content URI file access is for read-only!");
+ const auto fd = Android::OpenContentUri(path, Android::OpenMode::Read);
+ if (fd != -1) {
+ file = fdopen(fd, "r");
+ const auto error_num = errno;
+ if (error_num != 0 && file == nullptr) {
+ LOG_ERROR(Common_Filesystem, "Error opening file: {}, error: {}", path.c_str(),
+ strerror(error_num));
+ }
+ } else {
+ LOG_ERROR(Common_Filesystem, "Error opening file: {}", path.c_str());
+ }
+ } else {
+ file = std::fopen(path.c_str(), AccessModeToStr(mode, type));
+ }
#else
file = std::fopen(path.c_str(), AccessModeToStr(mode, type));
#endif
@@ -372,6 +392,23 @@ u64 IOFile::GetSize() const {
// Flush any unwritten buffered data into the file prior to retrieving the file size.
std::fflush(file);
+#if ANDROID
+ u64 file_size = 0;
+ if (Android::IsContentUri(file_path)) {
+ file_size = Android::GetSize(file_path);
+ } else {
+ std::error_code ec;
+
+ file_size = fs::file_size(file_path, ec);
+
+ if (ec) {
+ LOG_ERROR(Common_Filesystem,
+ "Failed to retrieve the file size of path={}, ec_message={}",
+ PathToUTF8String(file_path), ec.message());
+ return 0;
+ }
+ }
+#else
std::error_code ec;
const auto file_size = fs::file_size(file_path, ec);
@@ -381,6 +418,7 @@ u64 IOFile::GetSize() const {
PathToUTF8String(file_path), ec.message());
return 0;
}
+#endif
return file_size;
}
diff --git a/src/common/fs/fs.cpp b/src/common/fs/fs.cpp
index e1716c62d..36e67c145 100644
--- a/src/common/fs/fs.cpp
+++ b/src/common/fs/fs.cpp
@@ -3,6 +3,9 @@
#include "common/fs/file.h"
#include "common/fs/fs.h"
+#ifdef ANDROID
+#include "common/fs/fs_android.h"
+#endif
#include "common/fs/path_util.h"
#include "common/logging/log.h"
@@ -433,7 +436,7 @@ void IterateDirEntries(const std::filesystem::path& path, const DirEntryCallable
if (True(filter & DirEntryFilter::File) &&
entry.status().type() == fs::file_type::regular) {
- if (!callback(entry.path())) {
+ if (!callback(entry)) {
callback_error = true;
break;
}
@@ -441,7 +444,7 @@ void IterateDirEntries(const std::filesystem::path& path, const DirEntryCallable
if (True(filter & DirEntryFilter::Directory) &&
entry.status().type() == fs::file_type::directory) {
- if (!callback(entry.path())) {
+ if (!callback(entry)) {
callback_error = true;
break;
}
@@ -490,7 +493,7 @@ void IterateDirEntriesRecursively(const std::filesystem::path& path,
if (True(filter & DirEntryFilter::File) &&
entry.status().type() == fs::file_type::regular) {
- if (!callback(entry.path())) {
+ if (!callback(entry)) {
callback_error = true;
break;
}
@@ -498,7 +501,7 @@ void IterateDirEntriesRecursively(const std::filesystem::path& path,
if (True(filter & DirEntryFilter::Directory) &&
entry.status().type() == fs::file_type::directory) {
- if (!callback(entry.path())) {
+ if (!callback(entry)) {
callback_error = true;
break;
}
@@ -525,15 +528,39 @@ void IterateDirEntriesRecursively(const std::filesystem::path& path,
// Generic Filesystem Operations
bool Exists(const fs::path& path) {
+#ifdef ANDROID
+ if (Android::IsContentUri(path)) {
+ return Android::Exists(path);
+ } else {
+ return fs::exists(path);
+ }
+#else
return fs::exists(path);
+#endif
}
bool IsFile(const fs::path& path) {
+#ifdef ANDROID
+ if (Android::IsContentUri(path)) {
+ return !Android::IsDirectory(path);
+ } else {
+ return fs::is_regular_file(path);
+ }
+#else
return fs::is_regular_file(path);
+#endif
}
bool IsDir(const fs::path& path) {
+#ifdef ANDROID
+ if (Android::IsContentUri(path)) {
+ return Android::IsDirectory(path);
+ } else {
+ return fs::is_directory(path);
+ }
+#else
return fs::is_directory(path);
+#endif
}
fs::path GetCurrentDir() {
@@ -578,6 +605,12 @@ fs::file_type GetEntryType(const fs::path& path) {
}
u64 GetSize(const fs::path& path) {
+#ifdef ANDROID
+ if (Android::IsContentUri(path)) {
+ return Android::GetSize(path);
+ }
+#endif
+
std::error_code ec;
const auto file_size = fs::file_size(path, ec);
diff --git a/src/common/fs/fs_android.cpp b/src/common/fs/fs_android.cpp
new file mode 100644
index 000000000..298a79bac
--- /dev/null
+++ b/src/common/fs/fs_android.cpp
@@ -0,0 +1,98 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/fs/fs_android.h"
+
+namespace Common::FS::Android {
+
+JNIEnv* GetEnvForThread() {
+ thread_local static struct OwnedEnv {
+ OwnedEnv() {
+ status = g_jvm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6);
+ if (status == JNI_EDETACHED)
+ g_jvm->AttachCurrentThread(&env, nullptr);
+ }
+
+ ~OwnedEnv() {
+ if (status == JNI_EDETACHED)
+ g_jvm->DetachCurrentThread();
+ }
+
+ int status;
+ JNIEnv* env = nullptr;
+ } owned;
+ return owned.env;
+}
+
+void RegisterCallbacks(JNIEnv* env, jclass clazz) {
+ env->GetJavaVM(&g_jvm);
+ native_library = clazz;
+
+#define FR(FunctionName, ReturnValue, JMethodID, Caller, JMethodName, Signature) \
+ F(JMethodID, JMethodName, Signature)
+#define FS(FunctionName, ReturnValue, Parameters, JMethodID, JMethodName, Signature) \
+ F(JMethodID, JMethodName, Signature)
+#define F(JMethodID, JMethodName, Signature) \
+ JMethodID = env->GetStaticMethodID(native_library, JMethodName, Signature);
+ ANDROID_SINGLE_PATH_DETERMINE_FUNCTIONS(FR)
+ ANDROID_STORAGE_FUNCTIONS(FS)
+#undef F
+#undef FS
+#undef FR
+}
+
+void UnRegisterCallbacks() {
+#define FR(FunctionName, ReturnValue, JMethodID, Caller, JMethodName, Signature) F(JMethodID)
+#define FS(FunctionName, ReturnValue, Parameters, JMethodID, JMethodName, Signature) F(JMethodID)
+#define F(JMethodID) JMethodID = nullptr;
+ ANDROID_SINGLE_PATH_DETERMINE_FUNCTIONS(FR)
+ ANDROID_STORAGE_FUNCTIONS(FS)
+#undef F
+#undef FS
+#undef FR
+}
+
+bool IsContentUri(const std::string& path) {
+ constexpr std::string_view prefix = "content://";
+ if (path.size() < prefix.size()) [[unlikely]] {
+ return false;
+ }
+
+ return path.find(prefix) == 0;
+}
+
+int OpenContentUri(const std::string& filepath, OpenMode openmode) {
+ if (open_content_uri == nullptr)
+ return -1;
+
+ const char* mode = "";
+ switch (openmode) {
+ case OpenMode::Read:
+ mode = "r";
+ break;
+ default:
+ UNIMPLEMENTED();
+ return -1;
+ }
+ auto env = GetEnvForThread();
+ jstring j_filepath = env->NewStringUTF(filepath.c_str());
+ jstring j_mode = env->NewStringUTF(mode);
+ return env->CallStaticIntMethod(native_library, open_content_uri, j_filepath, j_mode);
+}
+
+#define FR(FunctionName, ReturnValue, JMethodID, Caller, JMethodName, Signature) \
+ F(FunctionName, ReturnValue, JMethodID, Caller)
+#define F(FunctionName, ReturnValue, JMethodID, Caller) \
+ ReturnValue FunctionName(const std::string& filepath) { \
+ if (JMethodID == nullptr) { \
+ return 0; \
+ } \
+ auto env = GetEnvForThread(); \
+ jstring j_filepath = env->NewStringUTF(filepath.c_str()); \
+ return env->Caller(native_library, JMethodID, j_filepath); \
+ }
+ANDROID_SINGLE_PATH_DETERMINE_FUNCTIONS(FR)
+#undef F
+#undef FR
+
+} // namespace Common::FS::Android
diff --git a/src/common/fs/fs_android.h b/src/common/fs/fs_android.h
new file mode 100644
index 000000000..b441c2a12
--- /dev/null
+++ b/src/common/fs/fs_android.h
@@ -0,0 +1,65 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <string>
+#include <vector>
+#include <jni.h>
+
+#define ANDROID_STORAGE_FUNCTIONS(V) \
+ V(OpenContentUri, int, (const std::string& filepath, OpenMode openmode), open_content_uri, \
+ "openContentUri", "(Ljava/lang/String;Ljava/lang/String;)I")
+
+#define ANDROID_SINGLE_PATH_DETERMINE_FUNCTIONS(V) \
+ V(GetSize, std::uint64_t, get_size, CallStaticLongMethod, "getSize", "(Ljava/lang/String;)J") \
+ V(IsDirectory, bool, is_directory, CallStaticBooleanMethod, "isDirectory", \
+ "(Ljava/lang/String;)Z") \
+ V(Exists, bool, file_exists, CallStaticBooleanMethod, "exists", "(Ljava/lang/String;)Z")
+
+namespace Common::FS::Android {
+
+static JavaVM* g_jvm = nullptr;
+static jclass native_library = nullptr;
+
+#define FR(FunctionName, ReturnValue, JMethodID, Caller, JMethodName, Signature) F(JMethodID)
+#define FS(FunctionName, ReturnValue, Parameters, JMethodID, JMethodName, Signature) F(JMethodID)
+#define F(JMethodID) static jmethodID JMethodID = nullptr;
+ANDROID_SINGLE_PATH_DETERMINE_FUNCTIONS(FR)
+ANDROID_STORAGE_FUNCTIONS(FS)
+#undef F
+#undef FS
+#undef FR
+
+enum class OpenMode {
+ Read,
+ Write,
+ ReadWrite,
+ WriteAppend,
+ WriteTruncate,
+ ReadWriteAppend,
+ ReadWriteTruncate,
+ Never
+};
+
+void RegisterCallbacks(JNIEnv* env, jclass clazz);
+
+void UnRegisterCallbacks();
+
+bool IsContentUri(const std::string& path);
+
+#define FS(FunctionName, ReturnValue, Parameters, JMethodID, JMethodName, Signature) \
+ F(FunctionName, Parameters, ReturnValue)
+#define F(FunctionName, Parameters, ReturnValue) ReturnValue FunctionName Parameters;
+ANDROID_STORAGE_FUNCTIONS(FS)
+#undef F
+#undef FS
+
+#define FR(FunctionName, ReturnValue, JMethodID, Caller, JMethodName, Signature) \
+ F(FunctionName, ReturnValue)
+#define F(FunctionName, ReturnValue) ReturnValue FunctionName(const std::string& filepath);
+ANDROID_SINGLE_PATH_DETERMINE_FUNCTIONS(FR)
+#undef F
+#undef FR
+
+} // namespace Common::FS::Android
diff --git a/src/common/fs/fs_paths.h b/src/common/fs/fs_paths.h
index c77c112f1..61bac9eba 100644
--- a/src/common/fs/fs_paths.h
+++ b/src/common/fs/fs_paths.h
@@ -10,6 +10,7 @@
// Sub-directories contained within a yuzu data directory
+#define AMIIBO_DIR "amiibo"
#define CACHE_DIR "cache"
#define CONFIG_DIR "config"
#define DUMP_DIR "dump"
diff --git a/src/common/fs/fs_types.h b/src/common/fs/fs_types.h
index 5a4090c19..900f85d24 100644
--- a/src/common/fs/fs_types.h
+++ b/src/common/fs/fs_types.h
@@ -66,6 +66,6 @@ DECLARE_ENUM_FLAG_OPERATORS(DirEntryFilter);
* @returns A boolean value.
* Return true to indicate whether the callback is successful, false otherwise.
*/
-using DirEntryCallable = std::function<bool(const std::filesystem::path& path)>;
+using DirEntryCallable = std::function<bool(const std::filesystem::directory_entry& entry)>;
} // namespace Common::FS
diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp
index defa3e918..d71cfacc6 100644
--- a/src/common/fs/path_util.cpp
+++ b/src/common/fs/path_util.cpp
@@ -6,6 +6,9 @@
#include <unordered_map>
#include "common/fs/fs.h"
+#ifdef ANDROID
+#include "common/fs/fs_android.h"
+#endif
#include "common/fs/fs_paths.h"
#include "common/fs/path_util.h"
#include "common/logging/log.h"
@@ -80,9 +83,7 @@ public:
yuzu_paths.insert_or_assign(yuzu_path, new_path);
}
-private:
- PathManagerImpl() {
- fs::path yuzu_path;
+ void Reinitialize(fs::path yuzu_path = {}) {
fs::path yuzu_path_cache;
fs::path yuzu_path_config;
@@ -95,6 +96,10 @@ private:
yuzu_path_cache = yuzu_path / CACHE_DIR;
yuzu_path_config = yuzu_path / CONFIG_DIR;
+#elif ANDROID
+ ASSERT(!yuzu_path.empty());
+ yuzu_path_cache = yuzu_path / CACHE_DIR;
+ yuzu_path_config = yuzu_path / CONFIG_DIR;
#else
yuzu_path = GetCurrentDir() / PORTABLE_DIR;
@@ -109,6 +114,7 @@ private:
#endif
GenerateYuzuPath(YuzuPath::YuzuDir, yuzu_path);
+ GenerateYuzuPath(YuzuPath::AmiiboDir, yuzu_path / AMIIBO_DIR);
GenerateYuzuPath(YuzuPath::CacheDir, yuzu_path_cache);
GenerateYuzuPath(YuzuPath::ConfigDir, yuzu_path_config);
GenerateYuzuPath(YuzuPath::DumpDir, yuzu_path / DUMP_DIR);
@@ -122,6 +128,11 @@ private:
GenerateYuzuPath(YuzuPath::TASDir, yuzu_path / TAS_DIR);
}
+private:
+ PathManagerImpl() {
+ Reinitialize();
+ }
+
~PathManagerImpl() = default;
void GenerateYuzuPath(YuzuPath yuzu_path, const fs::path& new_path) {
@@ -210,6 +221,10 @@ fs::path RemoveTrailingSeparators(const fs::path& path) {
return fs::path{string_path};
}
+void SetAppDirectory(const std::string& app_directory) {
+ PathManagerImpl::GetInstance().Reinitialize(app_directory);
+}
+
const fs::path& GetYuzuPath(YuzuPath yuzu_path) {
return PathManagerImpl::GetInstance().GetYuzuPathImpl(yuzu_path);
}
@@ -350,6 +365,12 @@ std::vector<std::string> SplitPathComponents(std::string_view filename) {
std::string SanitizePath(std::string_view path_, DirectorySeparator directory_separator) {
std::string path(path_);
+#ifdef ANDROID
+ if (Android::IsContentUri(path)) {
+ return path;
+ }
+#endif // ANDROID
+
char type1 = directory_separator == DirectorySeparator::BackwardSlash ? '/' : '\\';
char type2 = directory_separator == DirectorySeparator::BackwardSlash ? '\\' : '/';
diff --git a/src/common/fs/path_util.h b/src/common/fs/path_util.h
index 13d713f1e..ba28964d0 100644
--- a/src/common/fs/path_util.h
+++ b/src/common/fs/path_util.h
@@ -12,6 +12,7 @@ namespace Common::FS {
enum class YuzuPath {
YuzuDir, // Where yuzu stores its data.
+ AmiiboDir, // Where Amiibo backups are stored.
CacheDir, // Where cached filesystem data is stored.
ConfigDir, // Where config files are stored.
DumpDir, // Where dumped data is stored.
@@ -181,6 +182,14 @@ template <typename Path>
#endif
/**
+ * Sets the directory used for application storage. Used on Android where we do not know internal
+ * storage until informed by the frontend.
+ *
+ * @param app_directory Directory to use for application storage.
+ */
+void SetAppDirectory(const std::string& app_directory);
+
+/**
* Gets the filesystem path associated with the YuzuPath enum.
*
* @param yuzu_path YuzuPath enum
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 611c7d1a3..ba22595e0 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -11,9 +11,14 @@
#elif defined(__linux__) || defined(__FreeBSD__) // ^^^ Windows ^^^ vvv Linux vvv
+#ifdef ANDROID
+#include <android/sharedmem.h>
+#endif
+
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
+#include <boost/icl/interval_set.hpp>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
@@ -322,7 +327,7 @@ private:
}
/// Return true when a given memory region is a "nieche" and the placeholders don't have to be
- /// splitted.
+ /// split.
bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const {
const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length});
if (it != placeholders.end() && it->lower() == virtual_offset + length) {
@@ -366,17 +371,20 @@ public:
}
// Backing memory initialization
-#if defined(__FreeBSD__) && __FreeBSD__ < 13
+#ifdef ANDROID
+ fd = ASharedMemory_create("HostMemory", backing_size);
+#elif defined(__FreeBSD__) && __FreeBSD__ < 13
// XXX Drop after FreeBSD 12.* reaches EOL on 2024-06-30
fd = shm_open(SHM_ANON, O_RDWR, 0600);
#else
fd = memfd_create("HostMemory", 0);
#endif
- if (fd == -1) {
+ if (fd < 0) {
LOG_CRITICAL(HW_Memory, "memfd_create failed: {}", strerror(errno));
throw std::bad_alloc{};
}
+#ifndef ANDROID
// Defined to extend the file with zeros
int ret = ftruncate(fd, backing_size);
if (ret != 0) {
@@ -384,6 +392,7 @@ public:
strerror(errno));
throw std::bad_alloc{};
}
+#endif
backing_base = static_cast<u8*>(
mmap(nullptr, backing_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0));
@@ -415,6 +424,7 @@ public:
madvise(virtual_base, virtual_size, MADV_HUGEPAGE);
#endif
+ placeholders.add({0, virtual_size});
good = true;
}
@@ -423,6 +433,10 @@ public:
}
void Map(size_t virtual_offset, size_t host_offset, size_t length) {
+ {
+ std::scoped_lock lock{placeholder_mutex};
+ placeholders.subtract({virtual_offset, virtual_offset + length});
+ }
void* ret = mmap(virtual_base + virtual_offset, length, PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_FIXED, fd, host_offset);
@@ -433,6 +447,19 @@ public:
// The method name is wrong. We're still talking about the virtual range.
// We don't want to unmap, we want to reserve this memory.
+ {
+ std::scoped_lock lock{placeholder_mutex};
+ auto it = placeholders.find({virtual_offset - 1, virtual_offset + length + 1});
+
+ if (it != placeholders.end()) {
+ size_t prev_upper = virtual_offset + length;
+ virtual_offset = std::min(virtual_offset, it->lower());
+ length = std::max(it->upper(), prev_upper) - virtual_offset;
+ }
+
+ placeholders.add({virtual_offset, virtual_offset + length});
+ }
+
void* ret = mmap(virtual_base + virtual_offset, length, PROT_NONE,
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0);
ASSERT_MSG(ret != MAP_FAILED, "mmap failed: {}", strerror(errno));
@@ -476,6 +503,9 @@ private:
}
int fd{-1}; // memfd file descriptor, -1 is the error value of memfd_create
+
+ boost::icl::interval_set<size_t> placeholders; ///< Mapped placeholders
+ std::mutex placeholder_mutex; ///< Mutex for placeholders
};
#else // ^^^ Linux ^^^ vvv Generic vvv
@@ -484,7 +514,7 @@ class HostMemory::Impl {
public:
explicit Impl(size_t /*backing_size */, size_t /* virtual_size */) {
// This is just a place holder.
- // Please implement fastmem in a propper way on your platform.
+ // Please implement fastmem in a proper way on your platform.
throw std::bad_alloc{};
}
diff --git a/src/common/input.h b/src/common/input.h
index d27b1d772..ea30770ae 100644
--- a/src/common/input.h
+++ b/src/common/input.h
@@ -15,7 +15,7 @@
namespace Common::Input {
-// Type of data that is expected to recieve or send
+// Type of data that is expected to receive or send
enum class InputType {
None,
Battery,
@@ -46,11 +46,13 @@ enum class PollingMode {
// Constant polling of buttons, analogs and motion data
Active,
// Only update on button change, digital analogs
- Pasive,
+ Passive,
// Enable near field communication polling
NFC,
// Enable infrared camera polling
IR,
+ // Enable ring controller polling
+ Ring,
};
enum class CameraFormat {
@@ -62,41 +64,35 @@ enum class CameraFormat {
None,
};
-// Vibration reply from the controller
-enum class VibrationError {
- None,
+// Different results that can happen from a device request
+enum class DriverResult {
+ Success,
+ WrongReply,
+ Timeout,
+ UnsupportedControllerType,
+ HandleInUse,
+ ErrorReadingData,
+ ErrorWritingData,
+ NoDeviceDetected,
+ InvalidHandle,
NotSupported,
Disabled,
Unknown,
};
-// Polling mode reply from the controller
-enum class PollingError {
- None,
- NotSupported,
- Unknown,
-};
-
// Nfc reply from the controller
enum class NfcState {
Success,
NewAmiibo,
WaitingForAmiibo,
AmiiboRemoved,
- NotAnAmiibo,
+ InvalidTagType,
NotSupported,
WrongDeviceState,
WriteFailed,
Unknown,
};
-// Ir camera reply from the controller
-enum class CameraError {
- None,
- NotSupported,
- Unknown,
-};
-
// Hint for amplification curve to be used
enum class VibrationAmplificationType {
Linear,
@@ -107,7 +103,7 @@ enum class VibrationAmplificationType {
struct AnalogProperties {
// Anything below this value will be detected as zero
float deadzone{};
- // Anyting above this values will be detected as one
+ // Anything above this values will be detected as one
float range{1.0f};
// Minimum value to be detected as active
float threshold{0.5f};
@@ -115,6 +111,8 @@ struct AnalogProperties {
float offset{};
// Invert direction of the sensor data
bool inverted{};
+ // Invert the state if it's converted to a button
+ bool inverted_button{};
// Press once to activate, press again to release
bool toggle{};
};
@@ -134,6 +132,8 @@ struct ButtonStatus {
bool inverted{};
// Press once to activate, press again to release
bool toggle{};
+ // Spams the button when active
+ bool turbo{};
// Internal lock for the toggle status
bool locked{};
};
@@ -190,6 +190,8 @@ struct TouchStatus {
struct BodyColorStatus {
u32 body{};
u32 buttons{};
+ u32 left_grip{};
+ u32 right_grip{};
};
// HD rumble data
@@ -209,15 +211,29 @@ struct LedStatus {
bool led_4{};
};
-// Raw data fom camera
+// Raw data from camera
struct CameraStatus {
CameraFormat format{CameraFormat::None};
std::vector<u8> data{};
};
struct NfcStatus {
- NfcState state{};
- std::vector<u8> data{};
+ NfcState state{NfcState::Unknown};
+ u8 uuid_length;
+ u8 protocol;
+ u8 tag_type;
+ std::array<u8, 10> uuid;
+};
+
+struct MifareData {
+ u8 command;
+ u8 sector;
+ std::array<u8, 0x6> key;
+ std::array<u8, 0x10> data;
+};
+
+struct MifareRequest {
+ std::array<MifareData, 0x10> data;
};
// List of buttons to be passed to Qt that can be translated
@@ -228,17 +244,31 @@ enum class ButtonNames {
Engine,
// This will display the button by value instead of the button name
Value,
+
+ // Joycon button names
ButtonLeft,
ButtonRight,
ButtonDown,
ButtonUp,
- TriggerZ,
- TriggerR,
- TriggerL,
ButtonA,
ButtonB,
ButtonX,
ButtonY,
+ ButtonPlus,
+ ButtonMinus,
+ ButtonHome,
+ ButtonCapture,
+ ButtonStickL,
+ ButtonStickR,
+ TriggerL,
+ TriggerZL,
+ TriggerSL,
+ TriggerR,
+ TriggerZR,
+ TriggerSR,
+
+ // GC button names
+ TriggerZ,
ButtonStart,
// DS4 button names
@@ -278,7 +308,7 @@ struct CallbackStatus {
BatteryStatus battery_status{};
VibrationStatus vibration_status{};
CameraFormat camera_status{CameraFormat::None};
- NfcState nfc_status{NfcState::Unknown};
+ NfcStatus nfc_status{};
std::vector<u8> raw_data{};
};
@@ -316,31 +346,54 @@ class OutputDevice {
public:
virtual ~OutputDevice() = default;
- virtual void SetLED([[maybe_unused]] const LedStatus& led_status) {}
+ virtual DriverResult SetLED([[maybe_unused]] const LedStatus& led_status) {
+ return DriverResult::NotSupported;
+ }
- virtual VibrationError SetVibration([[maybe_unused]] const VibrationStatus& vibration_status) {
- return VibrationError::NotSupported;
+ virtual DriverResult SetVibration([[maybe_unused]] const VibrationStatus& vibration_status) {
+ return DriverResult::NotSupported;
}
virtual bool IsVibrationEnabled() {
return false;
}
- virtual PollingError SetPollingMode([[maybe_unused]] PollingMode polling_mode) {
- return PollingError::NotSupported;
+ virtual DriverResult SetPollingMode([[maybe_unused]] PollingMode polling_mode) {
+ return DriverResult::NotSupported;
}
- virtual CameraError SetCameraFormat([[maybe_unused]] CameraFormat camera_format) {
- return CameraError::NotSupported;
+ virtual DriverResult SetCameraFormat([[maybe_unused]] CameraFormat camera_format) {
+ return DriverResult::NotSupported;
}
virtual NfcState SupportsNfc() const {
return NfcState::NotSupported;
}
+ virtual NfcState StartNfcPolling() {
+ return NfcState::NotSupported;
+ }
+
+ virtual NfcState StopNfcPolling() {
+ return NfcState::NotSupported;
+ }
+
+ virtual NfcState ReadAmiiboData([[maybe_unused]] std::vector<u8>& out_data) {
+ return NfcState::NotSupported;
+ }
+
virtual NfcState WriteNfcData([[maybe_unused]] const std::vector<u8>& data) {
return NfcState::NotSupported;
}
+
+ virtual NfcState ReadMifareData([[maybe_unused]] const MifareRequest& request,
+ [[maybe_unused]] MifareRequest& out_data) {
+ return NfcState::NotSupported;
+ }
+
+ virtual NfcState WriteMifareData([[maybe_unused]] const MifareRequest& request) {
+ return NfcState::NotSupported;
+ }
};
/// An abstract class template for a factory that can create input devices.
@@ -412,7 +465,7 @@ inline void UnregisterOutputFactory(const std::string& name) {
}
/**
- * Create an input device from given paramters.
+ * Create an input device from given parameters.
* @tparam InputDeviceType the type of input devices to create
* @param params a serialized ParamPackage string that contains all parameters for creating the
* device
diff --git a/src/common/intrusive_list.h b/src/common/intrusive_list.h
new file mode 100644
index 000000000..d330dc1c2
--- /dev/null
+++ b/src/common/intrusive_list.h
@@ -0,0 +1,631 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "common/common_funcs.h"
+#include "common/parent_of_member.h"
+
+namespace Common {
+
+// Forward declare implementation class for Node.
+namespace impl {
+
+class IntrusiveListImpl;
+
+}
+
+class IntrusiveListNode {
+ YUZU_NON_COPYABLE(IntrusiveListNode);
+
+private:
+ friend class impl::IntrusiveListImpl;
+
+ IntrusiveListNode* m_prev;
+ IntrusiveListNode* m_next;
+
+public:
+ constexpr IntrusiveListNode() : m_prev(this), m_next(this) {}
+
+ constexpr bool IsLinked() const {
+ return m_next != this;
+ }
+
+private:
+ constexpr void LinkPrev(IntrusiveListNode* node) {
+ // We can't link an already linked node.
+ ASSERT(!node->IsLinked());
+ this->SplicePrev(node, node);
+ }
+
+ constexpr void SplicePrev(IntrusiveListNode* first, IntrusiveListNode* last) {
+ // Splice a range into the list.
+ auto last_prev = last->m_prev;
+ first->m_prev = m_prev;
+ last_prev->m_next = this;
+ m_prev->m_next = first;
+ m_prev = last_prev;
+ }
+
+ constexpr void LinkNext(IntrusiveListNode* node) {
+ // We can't link an already linked node.
+ ASSERT(!node->IsLinked());
+ return this->SpliceNext(node, node);
+ }
+
+ constexpr void SpliceNext(IntrusiveListNode* first, IntrusiveListNode* last) {
+ // Splice a range into the list.
+ auto last_prev = last->m_prev;
+ first->m_prev = this;
+ last_prev->m_next = m_next;
+ m_next->m_prev = last_prev;
+ m_next = first;
+ }
+
+ constexpr void Unlink() {
+ this->Unlink(m_next);
+ }
+
+ constexpr void Unlink(IntrusiveListNode* last) {
+ // Unlink a node from a next node.
+ auto last_prev = last->m_prev;
+ m_prev->m_next = last;
+ last->m_prev = m_prev;
+ last_prev->m_next = this;
+ m_prev = last_prev;
+ }
+
+ constexpr IntrusiveListNode* GetPrev() {
+ return m_prev;
+ }
+
+ constexpr const IntrusiveListNode* GetPrev() const {
+ return m_prev;
+ }
+
+ constexpr IntrusiveListNode* GetNext() {
+ return m_next;
+ }
+
+ constexpr const IntrusiveListNode* GetNext() const {
+ return m_next;
+ }
+};
+// DEPRECATED: static_assert(std::is_literal_type<IntrusiveListNode>::value);
+
+namespace impl {
+
+class IntrusiveListImpl {
+ YUZU_NON_COPYABLE(IntrusiveListImpl);
+
+private:
+ IntrusiveListNode m_root_node;
+
+public:
+ template <bool Const>
+ class Iterator;
+
+ using value_type = IntrusiveListNode;
+ using size_type = size_t;
+ using difference_type = ptrdiff_t;
+ using pointer = value_type*;
+ using const_pointer = const value_type*;
+ using reference = value_type&;
+ using const_reference = const value_type&;
+ using iterator = Iterator<false>;
+ using const_iterator = Iterator<true>;
+ using reverse_iterator = std::reverse_iterator<iterator>;
+ using const_reverse_iterator = std::reverse_iterator<const_iterator>;
+
+ template <bool Const>
+ class Iterator {
+ public:
+ using iterator_category = std::bidirectional_iterator_tag;
+ using value_type = typename IntrusiveListImpl::value_type;
+ using difference_type = typename IntrusiveListImpl::difference_type;
+ using pointer =
+ std::conditional_t<Const, IntrusiveListImpl::const_pointer, IntrusiveListImpl::pointer>;
+ using reference = std::conditional_t<Const, IntrusiveListImpl::const_reference,
+ IntrusiveListImpl::reference>;
+
+ private:
+ pointer m_node;
+
+ public:
+ constexpr explicit Iterator(pointer n) : m_node(n) {}
+
+ constexpr bool operator==(const Iterator& rhs) const {
+ return m_node == rhs.m_node;
+ }
+
+ constexpr pointer operator->() const {
+ return m_node;
+ }
+
+ constexpr reference operator*() const {
+ return *m_node;
+ }
+
+ constexpr Iterator& operator++() {
+ m_node = m_node->m_next;
+ return *this;
+ }
+
+ constexpr Iterator& operator--() {
+ m_node = m_node->m_prev;
+ return *this;
+ }
+
+ constexpr Iterator operator++(int) {
+ const Iterator it{*this};
+ ++(*this);
+ return it;
+ }
+
+ constexpr Iterator operator--(int) {
+ const Iterator it{*this};
+ --(*this);
+ return it;
+ }
+
+ constexpr operator Iterator<true>() const {
+ return Iterator<true>(m_node);
+ }
+
+ constexpr Iterator<false> GetNonConstIterator() const {
+ return Iterator<false>(const_cast<IntrusiveListImpl::pointer>(m_node));
+ }
+ };
+
+public:
+ constexpr IntrusiveListImpl() : m_root_node() {}
+
+ // Iterator accessors.
+ constexpr iterator begin() {
+ return iterator(m_root_node.GetNext());
+ }
+
+ constexpr const_iterator begin() const {
+ return const_iterator(m_root_node.GetNext());
+ }
+
+ constexpr iterator end() {
+ return iterator(std::addressof(m_root_node));
+ }
+
+ constexpr const_iterator end() const {
+ return const_iterator(std::addressof(m_root_node));
+ }
+
+ constexpr iterator iterator_to(reference v) {
+ // Only allow iterator_to for values in lists.
+ ASSERT(v.IsLinked());
+ return iterator(std::addressof(v));
+ }
+
+ constexpr const_iterator iterator_to(const_reference v) const {
+ // Only allow iterator_to for values in lists.
+ ASSERT(v.IsLinked());
+ return const_iterator(std::addressof(v));
+ }
+
+ // Content management.
+ constexpr bool empty() const {
+ return !m_root_node.IsLinked();
+ }
+
+ constexpr size_type size() const {
+ return static_cast<size_type>(std::distance(this->begin(), this->end()));
+ }
+
+ constexpr reference back() {
+ return *m_root_node.GetPrev();
+ }
+
+ constexpr const_reference back() const {
+ return *m_root_node.GetPrev();
+ }
+
+ constexpr reference front() {
+ return *m_root_node.GetNext();
+ }
+
+ constexpr const_reference front() const {
+ return *m_root_node.GetNext();
+ }
+
+ constexpr void push_back(reference node) {
+ m_root_node.LinkPrev(std::addressof(node));
+ }
+
+ constexpr void push_front(reference node) {
+ m_root_node.LinkNext(std::addressof(node));
+ }
+
+ constexpr void pop_back() {
+ m_root_node.GetPrev()->Unlink();
+ }
+
+ constexpr void pop_front() {
+ m_root_node.GetNext()->Unlink();
+ }
+
+ constexpr iterator insert(const_iterator pos, reference node) {
+ pos.GetNonConstIterator()->LinkPrev(std::addressof(node));
+ return iterator(std::addressof(node));
+ }
+
+ constexpr void splice(const_iterator pos, IntrusiveListImpl& o) {
+ splice_impl(pos, o.begin(), o.end());
+ }
+
+ constexpr void splice(const_iterator pos, IntrusiveListImpl& o, const_iterator first) {
+ const_iterator last(first);
+ std::advance(last, 1);
+ splice_impl(pos, first, last);
+ }
+
+ constexpr void splice(const_iterator pos, IntrusiveListImpl& o, const_iterator first,
+ const_iterator last) {
+ splice_impl(pos, first, last);
+ }
+
+ constexpr iterator erase(const_iterator pos) {
+ if (pos == this->end()) {
+ return this->end();
+ }
+ iterator it(pos.GetNonConstIterator());
+ (it++)->Unlink();
+ return it;
+ }
+
+ constexpr void clear() {
+ while (!this->empty()) {
+ this->pop_front();
+ }
+ }
+
+private:
+ constexpr void splice_impl(const_iterator _pos, const_iterator _first, const_iterator _last) {
+ if (_first == _last) {
+ return;
+ }
+ iterator pos(_pos.GetNonConstIterator());
+ iterator first(_first.GetNonConstIterator());
+ iterator last(_last.GetNonConstIterator());
+ first->Unlink(std::addressof(*last));
+ pos->SplicePrev(std::addressof(*first), std::addressof(*first));
+ }
+};
+
+} // namespace impl
+
+template <class T, class Traits>
+class IntrusiveList {
+ YUZU_NON_COPYABLE(IntrusiveList);
+
+private:
+ impl::IntrusiveListImpl m_impl;
+
+public:
+ template <bool Const>
+ class Iterator;
+
+ using value_type = T;
+ using size_type = size_t;
+ using difference_type = ptrdiff_t;
+ using pointer = value_type*;
+ using const_pointer = const value_type*;
+ using reference = value_type&;
+ using const_reference = const value_type&;
+ using iterator = Iterator<false>;
+ using const_iterator = Iterator<true>;
+ using reverse_iterator = std::reverse_iterator<iterator>;
+ using const_reverse_iterator = std::reverse_iterator<const_iterator>;
+
+ template <bool Const>
+ class Iterator {
+ public:
+ friend class Common::IntrusiveList<T, Traits>;
+
+ using ImplIterator =
+ std::conditional_t<Const, Common::impl::IntrusiveListImpl::const_iterator,
+ Common::impl::IntrusiveListImpl::iterator>;
+
+ using iterator_category = std::bidirectional_iterator_tag;
+ using value_type = typename IntrusiveList::value_type;
+ using difference_type = typename IntrusiveList::difference_type;
+ using pointer =
+ std::conditional_t<Const, IntrusiveList::const_pointer, IntrusiveList::pointer>;
+ using reference =
+ std::conditional_t<Const, IntrusiveList::const_reference, IntrusiveList::reference>;
+
+ private:
+ ImplIterator m_iterator;
+
+ private:
+ constexpr explicit Iterator(ImplIterator it) : m_iterator(it) {}
+
+ constexpr ImplIterator GetImplIterator() const {
+ return m_iterator;
+ }
+
+ public:
+ constexpr bool operator==(const Iterator& rhs) const {
+ return m_iterator == rhs.m_iterator;
+ }
+
+ constexpr pointer operator->() const {
+ return std::addressof(Traits::GetParent(*m_iterator));
+ }
+
+ constexpr reference operator*() const {
+ return Traits::GetParent(*m_iterator);
+ }
+
+ constexpr Iterator& operator++() {
+ ++m_iterator;
+ return *this;
+ }
+
+ constexpr Iterator& operator--() {
+ --m_iterator;
+ return *this;
+ }
+
+ constexpr Iterator operator++(int) {
+ const Iterator it{*this};
+ ++m_iterator;
+ return it;
+ }
+
+ constexpr Iterator operator--(int) {
+ const Iterator it{*this};
+ --m_iterator;
+ return it;
+ }
+
+ constexpr operator Iterator<true>() const {
+ return Iterator<true>(m_iterator);
+ }
+ };
+
+private:
+ static constexpr IntrusiveListNode& GetNode(reference ref) {
+ return Traits::GetNode(ref);
+ }
+
+ static constexpr IntrusiveListNode const& GetNode(const_reference ref) {
+ return Traits::GetNode(ref);
+ }
+
+ static constexpr reference GetParent(IntrusiveListNode& node) {
+ return Traits::GetParent(node);
+ }
+
+ static constexpr const_reference GetParent(IntrusiveListNode const& node) {
+ return Traits::GetParent(node);
+ }
+
+public:
+ constexpr IntrusiveList() : m_impl() {}
+
+ // Iterator accessors.
+ constexpr iterator begin() {
+ return iterator(m_impl.begin());
+ }
+
+ constexpr const_iterator begin() const {
+ return const_iterator(m_impl.begin());
+ }
+
+ constexpr iterator end() {
+ return iterator(m_impl.end());
+ }
+
+ constexpr const_iterator end() const {
+ return const_iterator(m_impl.end());
+ }
+
+ constexpr const_iterator cbegin() const {
+ return this->begin();
+ }
+
+ constexpr const_iterator cend() const {
+ return this->end();
+ }
+
+ constexpr reverse_iterator rbegin() {
+ return reverse_iterator(this->end());
+ }
+
+ constexpr const_reverse_iterator rbegin() const {
+ return const_reverse_iterator(this->end());
+ }
+
+ constexpr reverse_iterator rend() {
+ return reverse_iterator(this->begin());
+ }
+
+ constexpr const_reverse_iterator rend() const {
+ return const_reverse_iterator(this->begin());
+ }
+
+ constexpr const_reverse_iterator crbegin() const {
+ return this->rbegin();
+ }
+
+ constexpr const_reverse_iterator crend() const {
+ return this->rend();
+ }
+
+ constexpr iterator iterator_to(reference v) {
+ return iterator(m_impl.iterator_to(GetNode(v)));
+ }
+
+ constexpr const_iterator iterator_to(const_reference v) const {
+ return const_iterator(m_impl.iterator_to(GetNode(v)));
+ }
+
+ // Content management.
+ constexpr bool empty() const {
+ return m_impl.empty();
+ }
+
+ constexpr size_type size() const {
+ return m_impl.size();
+ }
+
+ constexpr reference back() {
+ return GetParent(m_impl.back());
+ }
+
+ constexpr const_reference back() const {
+ return GetParent(m_impl.back());
+ }
+
+ constexpr reference front() {
+ return GetParent(m_impl.front());
+ }
+
+ constexpr const_reference front() const {
+ return GetParent(m_impl.front());
+ }
+
+ constexpr void push_back(reference ref) {
+ m_impl.push_back(GetNode(ref));
+ }
+
+ constexpr void push_front(reference ref) {
+ m_impl.push_front(GetNode(ref));
+ }
+
+ constexpr void pop_back() {
+ m_impl.pop_back();
+ }
+
+ constexpr void pop_front() {
+ m_impl.pop_front();
+ }
+
+ constexpr iterator insert(const_iterator pos, reference ref) {
+ return iterator(m_impl.insert(pos.GetImplIterator(), GetNode(ref)));
+ }
+
+ constexpr void splice(const_iterator pos, IntrusiveList& o) {
+ m_impl.splice(pos.GetImplIterator(), o.m_impl);
+ }
+
+ constexpr void splice(const_iterator pos, IntrusiveList& o, const_iterator first) {
+ m_impl.splice(pos.GetImplIterator(), o.m_impl, first.GetImplIterator());
+ }
+
+ constexpr void splice(const_iterator pos, IntrusiveList& o, const_iterator first,
+ const_iterator last) {
+ m_impl.splice(pos.GetImplIterator(), o.m_impl, first.GetImplIterator(),
+ last.GetImplIterator());
+ }
+
+ constexpr iterator erase(const_iterator pos) {
+ return iterator(m_impl.erase(pos.GetImplIterator()));
+ }
+
+ constexpr void clear() {
+ m_impl.clear();
+ }
+};
+
+template <auto T, class Derived = Common::impl::GetParentType<T>>
+class IntrusiveListMemberTraits;
+
+template <class Parent, IntrusiveListNode Parent::*Member, class Derived>
+class IntrusiveListMemberTraits<Member, Derived> {
+public:
+ using ListType = IntrusiveList<Derived, IntrusiveListMemberTraits>;
+
+private:
+ friend class IntrusiveList<Derived, IntrusiveListMemberTraits>;
+
+ static constexpr IntrusiveListNode& GetNode(Derived& parent) {
+ return parent.*Member;
+ }
+
+ static constexpr IntrusiveListNode const& GetNode(Derived const& parent) {
+ return parent.*Member;
+ }
+
+ static Derived& GetParent(IntrusiveListNode& node) {
+ return Common::GetParentReference<Member, Derived>(std::addressof(node));
+ }
+
+ static Derived const& GetParent(IntrusiveListNode const& node) {
+ return Common::GetParentReference<Member, Derived>(std::addressof(node));
+ }
+};
+
+template <auto T, class Derived = Common::impl::GetParentType<T>>
+class IntrusiveListMemberTraitsByNonConstexprOffsetOf;
+
+template <class Parent, IntrusiveListNode Parent::*Member, class Derived>
+class IntrusiveListMemberTraitsByNonConstexprOffsetOf<Member, Derived> {
+public:
+ using ListType = IntrusiveList<Derived, IntrusiveListMemberTraitsByNonConstexprOffsetOf>;
+
+private:
+ friend class IntrusiveList<Derived, IntrusiveListMemberTraitsByNonConstexprOffsetOf>;
+
+ static constexpr IntrusiveListNode& GetNode(Derived& parent) {
+ return parent.*Member;
+ }
+
+ static constexpr IntrusiveListNode const& GetNode(Derived const& parent) {
+ return parent.*Member;
+ }
+
+ static Derived& GetParent(IntrusiveListNode& node) {
+ return *reinterpret_cast<Derived*>(reinterpret_cast<char*>(std::addressof(node)) -
+ GetOffset());
+ }
+
+ static Derived const& GetParent(IntrusiveListNode const& node) {
+ return *reinterpret_cast<const Derived*>(
+ reinterpret_cast<const char*>(std::addressof(node)) - GetOffset());
+ }
+
+ static uintptr_t GetOffset() {
+ return reinterpret_cast<uintptr_t>(std::addressof(reinterpret_cast<Derived*>(0)->*Member));
+ }
+};
+
+template <class Derived>
+class IntrusiveListBaseNode : public IntrusiveListNode {};
+
+template <class Derived>
+class IntrusiveListBaseTraits {
+public:
+ using ListType = IntrusiveList<Derived, IntrusiveListBaseTraits>;
+
+private:
+ friend class IntrusiveList<Derived, IntrusiveListBaseTraits>;
+
+ static constexpr IntrusiveListNode& GetNode(Derived& parent) {
+ return static_cast<IntrusiveListNode&>(
+ static_cast<IntrusiveListBaseNode<Derived>&>(parent));
+ }
+
+ static constexpr IntrusiveListNode const& GetNode(Derived const& parent) {
+ return static_cast<const IntrusiveListNode&>(
+ static_cast<const IntrusiveListBaseNode<Derived>&>(parent));
+ }
+
+ static constexpr Derived& GetParent(IntrusiveListNode& node) {
+ return static_cast<Derived&>(static_cast<IntrusiveListBaseNode<Derived>&>(node));
+ }
+
+ static constexpr Derived const& GetParent(IntrusiveListNode const& node) {
+ return static_cast<const Derived&>(
+ static_cast<const IntrusiveListBaseNode<Derived>&>(node));
+ }
+};
+
+} // namespace Common
diff --git a/src/common/intrusive_red_black_tree.h b/src/common/intrusive_red_black_tree.h
index 93046615e..bc2940fa0 100644
--- a/src/common/intrusive_red_black_tree.h
+++ b/src/common/intrusive_red_black_tree.h
@@ -96,10 +96,6 @@ public:
return m_node == rhs.m_node;
}
- constexpr bool operator!=(const Iterator& rhs) const {
- return !(*this == rhs);
- }
-
constexpr pointer operator->() const {
return m_node;
}
@@ -242,19 +238,21 @@ public:
template <typename T>
concept HasRedBlackKeyType = requires {
- { std::is_same<typename T::RedBlackKeyType, void>::value } -> std::convertible_to<bool>;
-};
+ {
+ std::is_same<typename T::RedBlackKeyType, void>::value
+ } -> std::convertible_to<bool>;
+ };
namespace impl {
- template <typename T, typename Default>
- consteval auto* GetRedBlackKeyType() {
- if constexpr (HasRedBlackKeyType<T>) {
- return static_cast<typename T::RedBlackKeyType*>(nullptr);
- } else {
- return static_cast<Default*>(nullptr);
- }
+template <typename T, typename Default>
+consteval auto* GetRedBlackKeyType() {
+ if constexpr (HasRedBlackKeyType<T>) {
+ return static_cast<typename T::RedBlackKeyType*>(nullptr);
+ } else {
+ return static_cast<Default*>(nullptr);
}
+}
} // namespace impl
@@ -322,10 +320,6 @@ public:
return m_impl == rhs.m_impl;
}
- constexpr bool operator!=(const Iterator& rhs) const {
- return !(*this == rhs);
- }
-
constexpr pointer operator->() const {
return Traits::GetParent(std::addressof(*m_impl));
}
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index 2a3bded40..6e8e8eb36 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -28,7 +28,7 @@
#ifdef _WIN32
#include "common/string_util.h"
#endif
-#include "common/threadsafe_queue.h"
+#include "common/bounded_threadsafe_queue.h"
namespace Common::Log {
@@ -155,6 +155,26 @@ public:
void EnableForStacktrace() override {}
};
+#ifdef ANDROID
+/**
+ * Backend that writes to the Android logcat
+ */
+class LogcatBackend : public Backend {
+public:
+ explicit LogcatBackend() = default;
+
+ ~LogcatBackend() override = default;
+
+ void Write(const Entry& entry) override {
+ PrintMessageToLogcat(entry);
+ }
+
+ void Flush() override {}
+
+ void EnableForStacktrace() override {}
+};
+#endif
+
bool initialization_in_progress_suppress_logging = true;
/**
@@ -204,11 +224,11 @@ public:
void PushEntry(Class log_class, Level log_level, const char* filename, unsigned int line_num,
const char* function, std::string&& message) {
- if (!filter.CheckMessage(log_class, log_level))
+ if (!filter.CheckMessage(log_class, log_level)) {
return;
- const Entry& entry =
- CreateEntry(log_class, log_level, filename, line_num, function, std::move(message));
- message_queue.Push(entry);
+ }
+ message_queue.EmplaceWait(
+ CreateEntry(log_class, log_level, filename, line_num, function, std::move(message)));
}
private:
@@ -225,7 +245,7 @@ private:
ForEachBackend([&entry](Backend& backend) { backend.Write(entry); });
};
while (!stop_token.stop_requested()) {
- entry = message_queue.PopWait(stop_token);
+ message_queue.PopWait(entry, stop_token);
if (entry.filename != nullptr) {
write_logs();
}
@@ -233,7 +253,7 @@ private:
// Drain the logging queue. Only writes out up to MAX_LOGS_TO_WRITE to prevent a
// case where a system is repeatedly spamming logs even on close.
int max_logs_to_write = filter.IsDebug() ? INT_MAX : 100;
- while (max_logs_to_write-- && message_queue.Pop(entry)) {
+ while (max_logs_to_write-- && message_queue.TryPop(entry)) {
write_logs();
}
});
@@ -260,6 +280,9 @@ private:
lambda(static_cast<Backend&>(debugger_backend));
lambda(static_cast<Backend&>(color_console_backend));
lambda(static_cast<Backend&>(file_backend));
+#ifdef ANDROID
+ lambda(static_cast<Backend&>(lc_backend));
+#endif
}
static void Deleter(Impl* ptr) {
@@ -272,8 +295,11 @@ private:
DebuggerBackend debugger_backend{};
ColorConsoleBackend color_console_backend{};
FileBackend file_backend;
+#ifdef ANDROID
+ LogcatBackend lc_backend{};
+#endif
- MPSCQueue<Entry, true> message_queue{};
+ MPSCQueue<Entry> message_queue{};
std::chrono::steady_clock::time_point time_origin{std::chrono::steady_clock::now()};
std::jthread backend_thread;
};
diff --git a/src/common/logging/filter.cpp b/src/common/logging/filter.cpp
index a959acb74..c95909561 100644
--- a/src/common/logging/filter.cpp
+++ b/src/common/logging/filter.cpp
@@ -119,7 +119,7 @@ bool ParseFilterRule(Filter& instance, Iterator begin, Iterator end) {
SUB(Service, NPNS) \
SUB(Service, NS) \
SUB(Service, NVDRV) \
- SUB(Service, NVFlinger) \
+ SUB(Service, Nvnflinger) \
SUB(Service, OLSC) \
SUB(Service, PCIE) \
SUB(Service, PCTL) \
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp
index 09398ea64..2c453177b 100644
--- a/src/common/logging/text_formatter.cpp
+++ b/src/common/logging/text_formatter.cpp
@@ -8,6 +8,10 @@
#include <windows.h>
#endif
+#ifdef ANDROID
+#include <android/log.h>
+#endif
+
#include "common/assert.h"
#include "common/logging/filter.h"
#include "common/logging/log.h"
@@ -106,4 +110,35 @@ void PrintColoredMessage(const Entry& entry) {
#undef ESC
#endif
}
+
+void PrintMessageToLogcat(const Entry& entry) {
+#ifdef ANDROID
+ const auto str = FormatLogMessage(entry);
+
+ android_LogPriority android_log_priority;
+ switch (entry.log_level) {
+ case Level::Trace:
+ android_log_priority = ANDROID_LOG_VERBOSE;
+ break;
+ case Level::Debug:
+ android_log_priority = ANDROID_LOG_DEBUG;
+ break;
+ case Level::Info:
+ android_log_priority = ANDROID_LOG_INFO;
+ break;
+ case Level::Warning:
+ android_log_priority = ANDROID_LOG_WARN;
+ break;
+ case Level::Error:
+ android_log_priority = ANDROID_LOG_ERROR;
+ break;
+ case Level::Critical:
+ android_log_priority = ANDROID_LOG_FATAL;
+ break;
+ case Level::Count:
+ UNREACHABLE();
+ }
+ __android_log_print(android_log_priority, "YuzuNative", "%s", str.c_str());
+#endif
+}
} // namespace Common::Log
diff --git a/src/common/logging/text_formatter.h b/src/common/logging/text_formatter.h
index 0d0ec4370..68417420b 100644
--- a/src/common/logging/text_formatter.h
+++ b/src/common/logging/text_formatter.h
@@ -15,4 +15,6 @@ std::string FormatLogMessage(const Entry& entry);
void PrintMessage(const Entry& entry);
/// Prints the same message as `PrintMessage`, but colored according to the severity level.
void PrintColoredMessage(const Entry& entry);
+/// Formats and prints a log entry to the android logcat.
+void PrintMessageToLogcat(const Entry& entry);
} // namespace Common::Log
diff --git a/src/common/logging/types.h b/src/common/logging/types.h
index 595c15ada..8356e3183 100644
--- a/src/common/logging/types.h
+++ b/src/common/logging/types.h
@@ -29,107 +29,107 @@ enum class Level : u8 {
* filter.cpp.
*/
enum class Class : u8 {
- Log, ///< Messages about the log system itself
- Common, ///< Library routines
- Common_Filesystem, ///< Filesystem interface library
- Common_Memory, ///< Memory mapping and management functions
- Core, ///< LLE emulation core
- Core_ARM, ///< ARM CPU core
- Core_Timing, ///< CoreTiming functions
- Config, ///< Emulator configuration (including commandline)
- Debug, ///< Debugging tools
- Debug_Emulated, ///< Debug messages from the emulated programs
- Debug_GPU, ///< GPU debugging tools
- Debug_Breakpoint, ///< Logging breakpoints and watchpoints
- Debug_GDBStub, ///< GDB Stub
- Kernel, ///< The HLE implementation of the CTR kernel
- Kernel_SVC, ///< Kernel system calls
- Service, ///< HLE implementation of system services. Each major service
- ///< should have its own subclass.
- Service_ACC, ///< The ACC (Accounts) service
- Service_AM, ///< The AM (Applet manager) service
- Service_AOC, ///< The AOC (AddOn Content) service
- Service_APM, ///< The APM (Performance) service
- Service_ARP, ///< The ARP service
- Service_Audio, ///< The Audio (Audio control) service
- Service_BCAT, ///< The BCAT service
- Service_BGTC, ///< The BGTC (Background Task Controller) service
- Service_BPC, ///< The BPC service
- Service_BTDRV, ///< The Bluetooth driver service
- Service_BTM, ///< The BTM service
- Service_Capture, ///< The capture service
- Service_ERPT, ///< The error reporting service
- Service_ETicket, ///< The ETicket service
- Service_EUPLD, ///< The error upload service
- Service_Fatal, ///< The Fatal service
- Service_FGM, ///< The FGM service
- Service_Friend, ///< The friend service
- Service_FS, ///< The FS (Filesystem) service
- Service_GRC, ///< The game recording service
- Service_HID, ///< The HID (Human interface device) service
- Service_IRS, ///< The IRS service
- Service_JIT, ///< The JIT service
- Service_LBL, ///< The LBL (LCD backlight) service
- Service_LDN, ///< The LDN (Local domain network) service
- Service_LDR, ///< The loader service
- Service_LM, ///< The LM (Logger) service
- Service_Migration, ///< The migration service
- Service_Mii, ///< The Mii service
- Service_MM, ///< The MM (Multimedia) service
- Service_MNPP, ///< The MNPP service
- Service_NCM, ///< The NCM service
- Service_NFC, ///< The NFC (Near-field communication) service
- Service_NFP, ///< The NFP service
- Service_NGCT, ///< The NGCT (No Good Content for Terra) service
- Service_NIFM, ///< The NIFM (Network interface) service
- Service_NIM, ///< The NIM service
- Service_NOTIF, ///< The NOTIF (Notification) service
- Service_NPNS, ///< The NPNS service
- Service_NS, ///< The NS services
- Service_NVDRV, ///< The NVDRV (Nvidia driver) service
- Service_NVFlinger, ///< The NVFlinger service
- Service_OLSC, ///< The OLSC service
- Service_PCIE, ///< The PCIe service
- Service_PCTL, ///< The PCTL (Parental control) service
- Service_PCV, ///< The PCV service
- Service_PM, ///< The PM service
- Service_PREPO, ///< The PREPO (Play report) service
- Service_PSC, ///< The PSC service
- Service_PTM, ///< The PTM service
- Service_SET, ///< The SET (Settings) service
- Service_SM, ///< The SM (Service manager) service
- Service_SPL, ///< The SPL service
- Service_SSL, ///< The SSL service
- Service_TCAP, ///< The TCAP service.
- Service_Time, ///< The time service
- Service_USB, ///< The USB (Universal Serial Bus) service
- Service_VI, ///< The VI (Video interface) service
- Service_WLAN, ///< The WLAN (Wireless local area network) service
- HW, ///< Low-level hardware emulation
- HW_Memory, ///< Memory-map and address translation
- HW_LCD, ///< LCD register emulation
- HW_GPU, ///< GPU control emulation
- HW_AES, ///< AES engine emulation
- IPC, ///< IPC interface
- Frontend, ///< Emulator UI
- Render, ///< Emulator video output and hardware acceleration
- Render_Software, ///< Software renderer backend
- Render_OpenGL, ///< OpenGL backend
- Render_Vulkan, ///< Vulkan backend
- Shader, ///< Shader recompiler
- Shader_SPIRV, ///< Shader SPIR-V code generation
- Shader_GLASM, ///< Shader GLASM code generation
- Shader_GLSL, ///< Shader GLSL code generation
- Audio, ///< Audio emulation
- Audio_DSP, ///< The HLE implementation of the DSP
- Audio_Sink, ///< Emulator audio output backend
- Loader, ///< ROM loader
- CheatEngine, ///< Memory manipulation and engine VM functions
- Crypto, ///< Cryptographic engine/functions
- Input, ///< Input emulation
- Network, ///< Network emulation
- WebService, ///< Interface to yuzu Web Services
- Count ///< Total number of logging classes
+ Log, ///< Messages about the log system itself
+ Common, ///< Library routines
+ Common_Filesystem, ///< Filesystem interface library
+ Common_Memory, ///< Memory mapping and management functions
+ Core, ///< LLE emulation core
+ Core_ARM, ///< ARM CPU core
+ Core_Timing, ///< CoreTiming functions
+ Config, ///< Emulator configuration (including commandline)
+ Debug, ///< Debugging tools
+ Debug_Emulated, ///< Debug messages from the emulated programs
+ Debug_GPU, ///< GPU debugging tools
+ Debug_Breakpoint, ///< Logging breakpoints and watchpoints
+ Debug_GDBStub, ///< GDB Stub
+ Kernel, ///< The HLE implementation of the CTR kernel
+ Kernel_SVC, ///< Kernel system calls
+ Service, ///< HLE implementation of system services. Each major service
+ ///< should have its own subclass.
+ Service_ACC, ///< The ACC (Accounts) service
+ Service_AM, ///< The AM (Applet manager) service
+ Service_AOC, ///< The AOC (AddOn Content) service
+ Service_APM, ///< The APM (Performance) service
+ Service_ARP, ///< The ARP service
+ Service_Audio, ///< The Audio (Audio control) service
+ Service_BCAT, ///< The BCAT service
+ Service_BGTC, ///< The BGTC (Background Task Controller) service
+ Service_BPC, ///< The BPC service
+ Service_BTDRV, ///< The Bluetooth driver service
+ Service_BTM, ///< The BTM service
+ Service_Capture, ///< The capture service
+ Service_ERPT, ///< The error reporting service
+ Service_ETicket, ///< The ETicket service
+ Service_EUPLD, ///< The error upload service
+ Service_Fatal, ///< The Fatal service
+ Service_FGM, ///< The FGM service
+ Service_Friend, ///< The friend service
+ Service_FS, ///< The FS (Filesystem) service
+ Service_GRC, ///< The game recording service
+ Service_HID, ///< The HID (Human interface device) service
+ Service_IRS, ///< The IRS service
+ Service_JIT, ///< The JIT service
+ Service_LBL, ///< The LBL (LCD backlight) service
+ Service_LDN, ///< The LDN (Local domain network) service
+ Service_LDR, ///< The loader service
+ Service_LM, ///< The LM (Logger) service
+ Service_Migration, ///< The migration service
+ Service_Mii, ///< The Mii service
+ Service_MM, ///< The MM (Multimedia) service
+ Service_MNPP, ///< The MNPP service
+ Service_NCM, ///< The NCM service
+ Service_NFC, ///< The NFC (Near-field communication) service
+ Service_NFP, ///< The NFP service
+ Service_NGCT, ///< The NGCT (No Good Content for Terra) service
+ Service_NIFM, ///< The NIFM (Network interface) service
+ Service_NIM, ///< The NIM service
+ Service_NOTIF, ///< The NOTIF (Notification) service
+ Service_NPNS, ///< The NPNS service
+ Service_NS, ///< The NS services
+ Service_NVDRV, ///< The NVDRV (Nvidia driver) service
+ Service_Nvnflinger, ///< The Nvnflinger service
+ Service_OLSC, ///< The OLSC service
+ Service_PCIE, ///< The PCIe service
+ Service_PCTL, ///< The PCTL (Parental control) service
+ Service_PCV, ///< The PCV service
+ Service_PM, ///< The PM service
+ Service_PREPO, ///< The PREPO (Play report) service
+ Service_PSC, ///< The PSC service
+ Service_PTM, ///< The PTM service
+ Service_SET, ///< The SET (Settings) service
+ Service_SM, ///< The SM (Service manager) service
+ Service_SPL, ///< The SPL service
+ Service_SSL, ///< The SSL service
+ Service_TCAP, ///< The TCAP service.
+ Service_Time, ///< The time service
+ Service_USB, ///< The USB (Universal Serial Bus) service
+ Service_VI, ///< The VI (Video interface) service
+ Service_WLAN, ///< The WLAN (Wireless local area network) service
+ HW, ///< Low-level hardware emulation
+ HW_Memory, ///< Memory-map and address translation
+ HW_LCD, ///< LCD register emulation
+ HW_GPU, ///< GPU control emulation
+ HW_AES, ///< AES engine emulation
+ IPC, ///< IPC interface
+ Frontend, ///< Emulator UI
+ Render, ///< Emulator video output and hardware acceleration
+ Render_Software, ///< Software renderer backend
+ Render_OpenGL, ///< OpenGL backend
+ Render_Vulkan, ///< Vulkan backend
+ Shader, ///< Shader recompiler
+ Shader_SPIRV, ///< Shader SPIR-V code generation
+ Shader_GLASM, ///< Shader GLASM code generation
+ Shader_GLSL, ///< Shader GLSL code generation
+ Audio, ///< Audio emulation
+ Audio_DSP, ///< The HLE implementation of the DSP
+ Audio_Sink, ///< Emulator audio output backend
+ Loader, ///< ROM loader
+ CheatEngine, ///< Memory manipulation and engine VM functions
+ Crypto, ///< Cryptographic engine/functions
+ Input, ///< Input emulation
+ Network, ///< Network emulation
+ WebService, ///< Interface to yuzu Web Services
+ Count ///< Total number of logging classes
};
} // namespace Common::Log
diff --git a/src/common/make_unique_for_overwrite.h b/src/common/make_unique_for_overwrite.h
index c7413cf51..17f81bba4 100644
--- a/src/common/make_unique_for_overwrite.h
+++ b/src/common/make_unique_for_overwrite.h
@@ -9,17 +9,19 @@
namespace Common {
template <class T>
-requires(!std::is_array_v<T>) std::unique_ptr<T> make_unique_for_overwrite() {
+ requires(!std::is_array_v<T>)
+std::unique_ptr<T> make_unique_for_overwrite() {
return std::unique_ptr<T>(new T);
}
template <class T>
-requires std::is_unbounded_array_v<T> std::unique_ptr<T> make_unique_for_overwrite(std::size_t n) {
+ requires std::is_unbounded_array_v<T>
+std::unique_ptr<T> make_unique_for_overwrite(std::size_t n) {
return std::unique_ptr<T>(new std::remove_extent_t<T>[n]);
}
template <class T, class... Args>
-requires std::is_bounded_array_v<T>
+ requires std::is_bounded_array_v<T>
void make_unique_for_overwrite(Args&&...) = delete;
} // namespace Common
diff --git a/src/common/overflow.h b/src/common/overflow.h
new file mode 100644
index 000000000..44d8e7e73
--- /dev/null
+++ b/src/common/overflow.h
@@ -0,0 +1,22 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <type_traits>
+#include "bit_cast.h"
+
+namespace Common {
+
+template <typename T>
+ requires(std::is_integral_v<T> && std::is_signed_v<T>)
+inline T WrappingAdd(T lhs, T rhs) {
+ using U = std::make_unsigned_t<T>;
+
+ U lhs_u = BitCast<U>(lhs);
+ U rhs_u = BitCast<U>(rhs);
+
+ return BitCast<T>(lhs_u + rhs_u);
+}
+
+} // namespace Common
diff --git a/src/common/polyfill_ranges.h b/src/common/polyfill_ranges.h
index ca44bfaef..512dbcbcb 100644
--- a/src/common/polyfill_ranges.h
+++ b/src/common/polyfill_ranges.h
@@ -18,9 +18,9 @@ namespace ranges {
template <typename T>
concept range = requires(T& t) {
- begin(t);
- end(t);
-};
+ begin(t);
+ end(t);
+ };
template <typename T>
concept input_range = range<T>;
@@ -421,7 +421,7 @@ struct generate_fn {
}
template <typename R, std::copy_constructible F>
- requires std::invocable<F&> && ranges::output_range<R>
+ requires std::invocable<F&> && ranges::output_range<R>
constexpr ranges::iterator_t<R> operator()(R&& r, F gen) const {
return operator()(ranges::begin(r), ranges::end(r), std::move(gen));
}
diff --git a/src/common/polyfill_thread.h b/src/common/polyfill_thread.h
index 5a8d1ce08..b5ef055db 100644
--- a/src/common/polyfill_thread.h
+++ b/src/common/polyfill_thread.h
@@ -11,6 +11,8 @@
#ifdef __cpp_lib_jthread
+#include <chrono>
+#include <condition_variable>
#include <stop_token>
#include <thread>
@@ -21,23 +23,36 @@ void CondvarWait(Condvar& cv, Lock& lock, std::stop_token token, Pred&& pred) {
cv.wait(lock, token, std::move(pred));
}
+template <typename Rep, typename Period>
+bool StoppableTimedWait(std::stop_token token, const std::chrono::duration<Rep, Period>& rel_time) {
+ std::condition_variable_any cv;
+ std::mutex m;
+
+ // Perform the timed wait.
+ std::unique_lock lk{m};
+ return !cv.wait_for(lk, token, rel_time, [&] { return token.stop_requested(); });
+}
+
} // namespace Common
#else
#include <atomic>
+#include <chrono>
+#include <condition_variable>
#include <functional>
-#include <list>
+#include <map>
#include <memory>
#include <mutex>
#include <optional>
#include <thread>
#include <type_traits>
+#include <utility>
namespace std {
namespace polyfill {
-using stop_state_callbacks = list<function<void()>>;
+using stop_state_callback = size_t;
class stop_state {
public:
@@ -45,61 +60,69 @@ public:
~stop_state() = default;
bool request_stop() {
- stop_state_callbacks callbacks;
+ unique_lock lk{m_lock};
- {
- scoped_lock lk{m_lock};
+ if (m_stop_requested) {
+ // Already set, nothing to do.
+ return false;
+ }
- if (m_stop_requested.load()) {
- // Already set, nothing to do
- return false;
- }
+ // Mark stop requested.
+ m_stop_requested = true;
- // Set as requested
- m_stop_requested = true;
+ while (!m_callbacks.empty()) {
+ // Get an iterator to the first element.
+ const auto it = m_callbacks.begin();
- // Copy callback list
- callbacks = m_callbacks;
- }
+ // Move the callback function out of the map.
+ function<void()> f;
+ swap(it->second, f);
+
+ // Erase the now-empty map element.
+ m_callbacks.erase(it);
- for (auto callback : callbacks) {
- callback();
+ // Run the callback.
+ if (f) {
+ f();
+ }
}
return true;
}
bool stop_requested() const {
- return m_stop_requested.load();
+ unique_lock lk{m_lock};
+ return m_stop_requested;
}
- stop_state_callbacks::const_iterator insert_callback(function<void()> f) {
- stop_state_callbacks::const_iterator ret{};
- bool should_run{};
-
- {
- scoped_lock lk{m_lock};
- should_run = m_stop_requested.load();
- m_callbacks.push_front(f);
- ret = m_callbacks.begin();
- }
+ stop_state_callback insert_callback(function<void()> f) {
+ unique_lock lk{m_lock};
- if (should_run) {
- f();
+ if (m_stop_requested) {
+ // Stop already requested. Don't insert anything,
+ // just run the callback synchronously.
+ if (f) {
+ f();
+ }
+ return 0;
}
+ // Insert the callback.
+ stop_state_callback ret = ++m_next_callback;
+ m_callbacks.emplace(ret, move(f));
return ret;
}
- void remove_callback(stop_state_callbacks::const_iterator it) {
- scoped_lock lk{m_lock};
- m_callbacks.erase(it);
+ void remove_callback(stop_state_callback cb) {
+ unique_lock lk{m_lock};
+ m_callbacks.erase(cb);
}
private:
- mutex m_lock;
- atomic<bool> m_stop_requested;
- stop_state_callbacks m_callbacks;
+ mutable recursive_mutex m_lock;
+ map<stop_state_callback, function<void()>> m_callbacks;
+ stop_state_callback m_next_callback{0};
+ bool m_stop_requested{false};
};
} // namespace polyfill
@@ -190,7 +213,7 @@ public:
using callback_type = Callback;
template <typename C>
- requires constructible_from<Callback, C>
+ requires constructible_from<Callback, C>
explicit stop_callback(const stop_token& st,
C&& cb) noexcept(is_nothrow_constructible_v<Callback, C>)
: m_stop_state(st.m_stop_state) {
@@ -199,7 +222,7 @@ public:
}
}
template <typename C>
- requires constructible_from<Callback, C>
+ requires constructible_from<Callback, C>
explicit stop_callback(stop_token&& st,
C&& cb) noexcept(is_nothrow_constructible_v<Callback, C>)
: m_stop_state(move(st.m_stop_state)) {
@@ -209,7 +232,7 @@ public:
}
~stop_callback() {
if (m_stop_state && m_callback) {
- m_stop_state->remove_callback(*m_callback);
+ m_stop_state->remove_callback(m_callback);
}
}
@@ -220,7 +243,7 @@ public:
private:
shared_ptr<polyfill::stop_state> m_stop_state;
- optional<polyfill::stop_state_callbacks::const_iterator> m_callback;
+ polyfill::stop_state_callback m_callback;
};
template <typename Callback>
@@ -318,6 +341,28 @@ void CondvarWait(Condvar& cv, Lock& lock, std::stop_token token, Pred pred) {
cv.wait(lock, [&] { return pred() || token.stop_requested(); });
}
+template <typename Rep, typename Period>
+bool StoppableTimedWait(std::stop_token token, const std::chrono::duration<Rep, Period>& rel_time) {
+ if (token.stop_requested()) {
+ return false;
+ }
+
+ bool stop_requested = false;
+ std::condition_variable cv;
+ std::mutex m;
+
+ std::stop_callback cb(token, [&] {
+ // Wake up the waiting thread.
+ std::unique_lock lk{m};
+ stop_requested = true;
+ cv.notify_one();
+ });
+
+ // Perform the timed wait.
+ std::unique_lock lk{m};
+ return !cv.wait_for(lk, rel_time, [&] { return stop_requested; });
+}
+
} // namespace Common
#endif
diff --git a/src/common/range_map.h b/src/common/range_map.h
index 79c7ef547..ab73993e3 100644
--- a/src/common/range_map.h
+++ b/src/common/range_map.h
@@ -38,12 +38,12 @@ public:
Map(address, address_end, null_value);
}
- [[nodiscard]] size_t GetContinousSizeFrom(KeyTBase address) const {
+ [[nodiscard]] size_t GetContinuousSizeFrom(KeyTBase address) const {
const KeyT new_address = static_cast<KeyT>(address);
if (new_address < 0) {
return 0;
}
- return ContinousSizeInternal(new_address);
+ return ContinuousSizeInternal(new_address);
}
[[nodiscard]] ValueT GetValueAt(KeyT address) const {
@@ -59,7 +59,7 @@ private:
using IteratorType = typename MapType::iterator;
using ConstIteratorType = typename MapType::const_iterator;
- size_t ContinousSizeInternal(KeyT address) const {
+ size_t ContinuousSizeInternal(KeyT address) const {
const auto it = GetFirstElementBeforeOrOn(address);
if (it == container.end() || it->second == null_value) {
return 0;
diff --git a/src/common/ring_buffer.h b/src/common/ring_buffer.h
index 4c328ab44..416680d44 100644
--- a/src/common/ring_buffer.h
+++ b/src/common/ring_buffer.h
@@ -9,6 +9,7 @@
#include <cstddef>
#include <cstring>
#include <new>
+#include <span>
#include <type_traits>
#include <vector>
@@ -53,7 +54,7 @@ public:
return push_count;
}
- std::size_t Push(const std::vector<T>& input) {
+ std::size_t Push(const std::span<T> input) {
return Push(input.data(), input.size());
}
diff --git a/src/common/scratch_buffer.h b/src/common/scratch_buffer.h
index 1245a5086..6fe907953 100644
--- a/src/common/scratch_buffer.h
+++ b/src/common/scratch_buffer.h
@@ -3,6 +3,9 @@
#pragma once
+#include <iterator>
+
+#include "common/concepts.h"
#include "common/make_unique_for_overwrite.h"
namespace Common {
@@ -16,6 +19,12 @@ namespace Common {
template <typename T>
class ScratchBuffer {
public:
+ using iterator = T*;
+ using const_iterator = const T*;
+ using value_type = T;
+ using element_type = T;
+ using iterator_category = std::contiguous_iterator_tag;
+
ScratchBuffer() = default;
explicit ScratchBuffer(size_t initial_capacity)
@@ -23,6 +32,10 @@ public:
buffer{Common::make_unique_for_overwrite<T[]>(initial_capacity)} {}
~ScratchBuffer() = default;
+ ScratchBuffer(const ScratchBuffer&) = delete;
+ ScratchBuffer& operator=(const ScratchBuffer&) = delete;
+ ScratchBuffer(ScratchBuffer&&) = default;
+ ScratchBuffer& operator=(ScratchBuffer&&) = default;
/// This will only grow the buffer's capacity if size is greater than the current capacity.
/// The previously held data will remain intact.
@@ -86,6 +99,12 @@ public:
return buffer_capacity;
}
+ void swap(ScratchBuffer& other) noexcept {
+ std::swap(last_requested_size, other.last_requested_size);
+ std::swap(buffer_capacity, other.buffer_capacity);
+ std::swap(buffer, other.buffer);
+ }
+
private:
size_t last_requested_size{};
size_t buffer_capacity{};
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index b1a2aa8b2..66dffc9bf 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -1,12 +1,16 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#if __cpp_lib_chrono >= 201907L
+#include <chrono>
+#endif
#include <string_view>
#include "common/assert.h"
#include "common/fs/path_util.h"
#include "common/logging/log.h"
#include "common/settings.h"
+#include "common/time_zone.h"
namespace Settings {
@@ -14,18 +18,23 @@ Values values;
static bool configuring_global = true;
std::string GetTimeZoneString() {
- static constexpr std::array timezones{
- "auto", "default", "CET", "CST6CDT", "Cuba", "EET", "Egypt", "Eire",
- "EST", "EST5EDT", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0",
- "Greenwich", "Hongkong", "HST", "Iceland", "Iran", "Israel", "Jamaica", "Japan",
- "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Navajo", "NZ", "NZ-CHAT",
- "Poland", "Portugal", "PRC", "PST8PDT", "ROC", "ROK", "Singapore", "Turkey",
- "UCT", "Universal", "UTC", "W-SU", "WET", "Zulu",
- };
-
const auto time_zone_index = static_cast<std::size_t>(values.time_zone_index.GetValue());
- ASSERT(time_zone_index < timezones.size());
- return timezones[time_zone_index];
+ ASSERT(time_zone_index < Common::TimeZone::GetTimeZoneStrings().size());
+
+ std::string location_name;
+ if (time_zone_index == 0) { // Auto
+#if __cpp_lib_chrono >= 201907L
+ const struct std::chrono::tzdb& time_zone_data = std::chrono::get_tzdb();
+ const std::chrono::time_zone* current_zone = time_zone_data.current_zone();
+ std::string_view current_zone_name = current_zone->name();
+ location_name = current_zone_name;
+#else
+ location_name = Common::TimeZone::FindSystemTimeZone();
+#endif
+ } else {
+ location_name = Common::TimeZone::GetTimeZoneStrings()[time_zone_index];
+ }
+ return location_name;
}
void LogSettings() {
@@ -45,6 +54,7 @@ void LogSettings() {
log_setting("System_LanguageIndex", values.language_index.GetValue());
log_setting("System_RegionIndex", values.region_index.GetValue());
log_setting("System_TimeZoneIndex", values.time_zone_index.GetValue());
+ log_setting("System_UnsafeMemoryLayout", values.use_unsafe_extended_memory_layout.GetValue());
log_setting("Core_UseMultiCore", values.use_multi_core.GetValue());
log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue());
log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue());
@@ -59,7 +69,10 @@ void LogSettings() {
values.use_asynchronous_gpu_emulation.GetValue());
log_setting("Renderer_NvdecEmulation", values.nvdec_emulation.GetValue());
log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue());
- log_setting("Renderer_UseVsync", values.use_vsync.GetValue());
+ log_setting("Renderer_AsyncASTC", values.async_astc.GetValue());
+ log_setting("Renderer_AstcRecompression", values.astc_recompression.GetValue());
+ log_setting("Renderer_UseVsync", values.vsync_mode.GetValue());
+ log_setting("Renderer_UseReactiveFlushing", values.use_reactive_flushing.GetValue());
log_setting("Renderer_ShaderBackend", values.shader_backend.GetValue());
log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue());
log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue());
@@ -76,6 +89,13 @@ void LogSettings() {
log_setting("Debugging_GDBStub", values.use_gdbstub.GetValue());
log_setting("Input_EnableMotion", values.motion_enabled.GetValue());
log_setting("Input_EnableVibration", values.vibration_enabled.GetValue());
+ log_setting("Input_EnableTouch", values.touchscreen.enabled);
+ log_setting("Input_EnableMouse", values.mouse_enabled.GetValue());
+ log_setting("Input_EnableKeyboard", values.keyboard_enabled.GetValue());
+ log_setting("Input_EnableRingController", values.enable_ring_controller.GetValue());
+ log_setting("Input_EnableIrSensor", values.enable_ir_sensor.GetValue());
+ log_setting("Input_EnableCustomJoycon", values.enable_joycon_driver.GetValue());
+ log_setting("Input_EnableCustomProController", values.enable_procon_driver.GetValue());
log_setting("Input_EnableRawInput", values.enable_raw_input.GetValue());
}
@@ -183,7 +203,7 @@ void RestoreGlobalState(bool is_powered_on) {
// Core
values.use_multi_core.SetGlobal(true);
- values.use_extended_memory_layout.SetGlobal(true);
+ values.use_unsafe_extended_memory_layout.SetGlobal(true);
// CPU
values.cpu_accuracy.SetGlobal(true);
@@ -197,9 +217,14 @@ void RestoreGlobalState(bool is_powered_on) {
// Renderer
values.fsr_sharpening_slider.SetGlobal(true);
values.renderer_backend.SetGlobal(true);
+ values.async_presentation.SetGlobal(true);
values.renderer_force_max_clock.SetGlobal(true);
values.vulkan_device.SetGlobal(true);
+ values.fullscreen_mode.SetGlobal(true);
values.aspect_ratio.SetGlobal(true);
+ values.resolution_setup.SetGlobal(true);
+ values.scaling_filter.SetGlobal(true);
+ values.anti_aliasing.SetGlobal(true);
values.max_anisotropy.SetGlobal(true);
values.use_speed_limit.SetGlobal(true);
values.speed_limit.SetGlobal(true);
@@ -208,15 +233,18 @@ void RestoreGlobalState(bool is_powered_on) {
values.use_asynchronous_gpu_emulation.SetGlobal(true);
values.nvdec_emulation.SetGlobal(true);
values.accelerate_astc.SetGlobal(true);
- values.use_vsync.SetGlobal(true);
+ values.async_astc.SetGlobal(true);
+ values.astc_recompression.SetGlobal(true);
+ values.use_reactive_flushing.SetGlobal(true);
values.shader_backend.SetGlobal(true);
values.use_asynchronous_shaders.SetGlobal(true);
values.use_fast_gpu_time.SetGlobal(true);
- values.use_pessimistic_flushes.SetGlobal(true);
values.use_vulkan_driver_pipeline_cache.SetGlobal(true);
values.bg_red.SetGlobal(true);
values.bg_green.SetGlobal(true);
values.bg_blue.SetGlobal(true);
+ values.enable_compute_pipelines.SetGlobal(true);
+ values.use_video_framerate.SetGlobal(true);
// System
values.language_index.SetGlobal(true);
diff --git a/src/common/settings.h b/src/common/settings.h
index 80b2eeabc..ae5ed93d8 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -16,6 +16,13 @@
namespace Settings {
+enum class VSyncMode : u32 {
+ Immediate = 0,
+ Mailbox = 1,
+ FIFO = 2,
+ FIFORelaxed = 3,
+};
+
enum class RendererBackend : u32 {
OpenGL = 0,
Vulkan = 1,
@@ -83,6 +90,12 @@ enum class AntiAliasing : u32 {
LastAA = Smaa,
};
+enum class AstcRecompression : u32 {
+ Uncompressed = 0,
+ Bc1 = 1,
+ Bc3 = 2,
+};
+
struct ResolutionScalingInfo {
u32 up_scale{1};
u32 down_shift{0};
@@ -128,23 +141,25 @@ public:
/**
* Sets a default value, label, and setting value.
*
- * @param default_val Intial value of the setting, and default value of the setting
+ * @param default_val Initial value of the setting, and default value of the setting
* @param name Label for the setting
*/
- explicit Setting(const Type& default_val, const std::string& name) requires(!ranged)
+ explicit Setting(const Type& default_val, const std::string& name)
+ requires(!ranged)
: value{default_val}, default_value{default_val}, label{name} {}
virtual ~Setting() = default;
/**
* Sets a default value, minimum value, maximum value, and label.
*
- * @param default_val Intial value of the setting, and default value of the setting
+ * @param default_val Initial value of the setting, and default value of the setting
* @param min_val Sets the minimum allowed value of the setting
* @param max_val Sets the maximum allowed value of the setting
* @param name Label for the setting
*/
explicit Setting(const Type& default_val, const Type& min_val, const Type& max_val,
- const std::string& name) requires(ranged)
+ const std::string& name)
+ requires(ranged)
: value{default_val},
default_value{default_val}, maximum{max_val}, minimum{min_val}, label{name} {}
@@ -229,23 +244,25 @@ public:
/**
* Sets a default value, label, and setting value.
*
- * @param default_val Intial value of the setting, and default value of the setting
+ * @param default_val Initial value of the setting, and default value of the setting
* @param name Label for the setting
*/
- explicit SwitchableSetting(const Type& default_val, const std::string& name) requires(!ranged)
+ explicit SwitchableSetting(const Type& default_val, const std::string& name)
+ requires(!ranged)
: Setting<Type>{default_val, name} {}
virtual ~SwitchableSetting() = default;
/**
* Sets a default value, minimum value, maximum value, and label.
*
- * @param default_val Intial value of the setting, and default value of the setting
+ * @param default_val Initial value of the setting, and default value of the setting
* @param min_val Sets the minimum allowed value of the setting
* @param max_val Sets the maximum allowed value of the setting
* @param name Label for the setting
*/
explicit SwitchableSetting(const Type& default_val, const Type& min_val, const Type& max_val,
- const std::string& name) requires(ranged)
+ const std::string& name)
+ requires(ranged)
: Setting<Type, true>{default_val, min_val, max_val, name} {}
/**
@@ -384,7 +401,8 @@ struct Values {
// Core
SwitchableSetting<bool> use_multi_core{true, "use_multi_core"};
- SwitchableSetting<bool> use_extended_memory_layout{false, "use_extended_memory_layout"};
+ SwitchableSetting<bool> use_unsafe_extended_memory_layout{false,
+ "use_unsafe_extended_memory_layout"};
// Cpu
SwitchableSetting<CPUAccuracy, true> cpu_accuracy{CPUAccuracy::Auto, CPUAccuracy::Auto,
@@ -418,6 +436,7 @@ struct Values {
// Renderer
SwitchableSetting<RendererBackend, true> renderer_backend{
RendererBackend::Vulkan, RendererBackend::OpenGL, RendererBackend::Null, "backend"};
+ SwitchableSetting<bool> async_presentation{false, "async_presentation"};
SwitchableSetting<bool> renderer_force_max_clock{false, "force_max_clock"};
Setting<bool> renderer_debug{false, "debug"};
Setting<bool> renderer_shader_feedback{false, "shader_feedback"};
@@ -449,14 +468,22 @@ struct Values {
SwitchableSetting<bool> use_asynchronous_gpu_emulation{true, "use_asynchronous_gpu_emulation"};
SwitchableSetting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"};
SwitchableSetting<bool> accelerate_astc{true, "accelerate_astc"};
- SwitchableSetting<bool> use_vsync{true, "use_vsync"};
+ SwitchableSetting<bool> async_astc{false, "async_astc"};
+ Setting<VSyncMode, true> vsync_mode{VSyncMode::FIFO, VSyncMode::Immediate,
+ VSyncMode::FIFORelaxed, "use_vsync"};
+ SwitchableSetting<bool> use_reactive_flushing{true, "use_reactive_flushing"};
SwitchableSetting<ShaderBackend, true> shader_backend{ShaderBackend::GLSL, ShaderBackend::GLSL,
ShaderBackend::SPIRV, "shader_backend"};
SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"};
SwitchableSetting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"};
- SwitchableSetting<bool> use_pessimistic_flushes{false, "use_pessimistic_flushes"};
SwitchableSetting<bool> use_vulkan_driver_pipeline_cache{true,
"use_vulkan_driver_pipeline_cache"};
+ SwitchableSetting<bool> enable_compute_pipelines{false, "enable_compute_pipelines"};
+ SwitchableSetting<AstcRecompression, true> astc_recompression{
+ AstcRecompression::Uncompressed, AstcRecompression::Uncompressed, AstcRecompression::Bc3,
+ "astc_recompression"};
+ SwitchableSetting<bool> use_video_framerate{false, "use_video_framerate"};
+ SwitchableSetting<bool> barrier_feedback_loops{true, "barrier_feedback_loops"};
SwitchableSetting<u8> bg_red{0, "bg_red"};
SwitchableSetting<u8> bg_green{0, "bg_green"};
@@ -483,6 +510,8 @@ struct Values {
Setting<bool> enable_raw_input{false, "enable_raw_input"};
Setting<bool> controller_navigation{true, "controller_navigation"};
+ Setting<bool> enable_joycon_driver{true, "enable_joycon_driver"};
+ Setting<bool> enable_procon_driver{false, "enable_procon_driver"};
SwitchableSetting<bool> vibration_enabled{true, "vibration_enabled"};
SwitchableSetting<bool> enable_accurate_vibrations{false, "enable_accurate_vibrations"};
@@ -496,9 +525,16 @@ struct Values {
Setting<bool> tas_loop{false, "tas_loop"};
Setting<bool> mouse_panning{false, "mouse_panning"};
- Setting<u8, true> mouse_panning_sensitivity{10, 1, 100, "mouse_panning_sensitivity"};
- Setting<bool> mouse_enabled{false, "mouse_enabled"};
+ Setting<u8, true> mouse_panning_x_sensitivity{50, 1, 100, "mouse_panning_x_sensitivity"};
+ Setting<u8, true> mouse_panning_y_sensitivity{50, 1, 100, "mouse_panning_y_sensitivity"};
+ Setting<u8, true> mouse_panning_deadzone_x_counterweight{
+ 0, 0, 100, "mouse_panning_deadzone_x_counterweight"};
+ Setting<u8, true> mouse_panning_deadzone_y_counterweight{
+ 0, 0, 100, "mouse_panning_deadzone_y_counterweight"};
+ Setting<u8, true> mouse_panning_decay_strength{22, 0, 100, "mouse_panning_decay_strength"};
+ Setting<u8, true> mouse_panning_min_decay{5, 0, 100, "mouse_panning_min_decay"};
+ Setting<bool> mouse_enabled{false, "mouse_enabled"};
Setting<bool> emulate_analog_keyboard{false, "emulate_analog_keyboard"};
Setting<bool> keyboard_enabled{false, "keyboard_enabled"};
@@ -518,6 +554,8 @@ struct Values {
Setting<bool> enable_ir_sensor{false, "enable_ir_sensor"};
Setting<std::string> ir_sensor_device{"auto", "ir_sensor_device"};
+ Setting<bool> random_amiibo_id{false, "random_amiibo_id"};
+
// Data Storage
Setting<bool> use_virtual_sd{true, "use_virtual_sd"};
Setting<bool> gamecard_inserted{false, "gamecard_inserted"};
diff --git a/src/common/steady_clock.cpp b/src/common/steady_clock.cpp
new file mode 100644
index 000000000..9415eed29
--- /dev/null
+++ b/src/common/steady_clock.cpp
@@ -0,0 +1,80 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#if defined(_WIN32)
+#include <windows.h>
+#else
+#include <time.h>
+#endif
+
+#include "common/steady_clock.h"
+
+namespace Common {
+
+#ifdef _WIN32
+static s64 WindowsQueryPerformanceFrequency() {
+ LARGE_INTEGER frequency;
+ QueryPerformanceFrequency(&frequency);
+ return frequency.QuadPart;
+}
+
+static s64 WindowsQueryPerformanceCounter() {
+ LARGE_INTEGER counter;
+ QueryPerformanceCounter(&counter);
+ return counter.QuadPart;
+}
+
+static s64 GetSystemTimeNS() {
+ // GetSystemTimePreciseAsFileTime returns the file time in 100ns units.
+ static constexpr s64 Multiplier = 100;
+ // Convert Windows epoch to Unix epoch.
+ static constexpr s64 WindowsEpochToUnixEpoch = 0x19DB1DED53E8000LL;
+
+ FILETIME filetime;
+ GetSystemTimePreciseAsFileTime(&filetime);
+ return Multiplier * ((static_cast<s64>(filetime.dwHighDateTime) << 32) +
+ static_cast<s64>(filetime.dwLowDateTime) - WindowsEpochToUnixEpoch);
+}
+#endif
+
+SteadyClock::time_point SteadyClock::Now() noexcept {
+#if defined(_WIN32)
+ static const auto freq = WindowsQueryPerformanceFrequency();
+ const auto counter = WindowsQueryPerformanceCounter();
+
+ // 10 MHz is a very common QPC frequency on modern PCs.
+ // Optimizing for this specific frequency can double the performance of
+ // this function by avoiding the expensive frequency conversion path.
+ static constexpr s64 TenMHz = 10'000'000;
+
+ if (freq == TenMHz) [[likely]] {
+ static_assert(period::den % TenMHz == 0);
+ static constexpr s64 Multiplier = period::den / TenMHz;
+ return time_point{duration{counter * Multiplier}};
+ }
+
+ const auto whole = (counter / freq) * period::den;
+ const auto part = (counter % freq) * period::den / freq;
+ return time_point{duration{whole + part}};
+#elif defined(__APPLE__)
+ return time_point{duration{clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW)}};
+#else
+ timespec ts;
+ clock_gettime(CLOCK_MONOTONIC, &ts);
+ return time_point{std::chrono::seconds{ts.tv_sec} + std::chrono::nanoseconds{ts.tv_nsec}};
+#endif
+}
+
+RealTimeClock::time_point RealTimeClock::Now() noexcept {
+#if defined(_WIN32)
+ return time_point{duration{GetSystemTimeNS()}};
+#elif defined(__APPLE__)
+ return time_point{duration{clock_gettime_nsec_np(CLOCK_REALTIME)}};
+#else
+ timespec ts;
+ clock_gettime(CLOCK_REALTIME, &ts);
+ return time_point{std::chrono::seconds{ts.tv_sec} + std::chrono::nanoseconds{ts.tv_nsec}};
+#endif
+}
+
+}; // namespace Common
diff --git a/src/common/steady_clock.h b/src/common/steady_clock.h
new file mode 100644
index 000000000..dbd0e2513
--- /dev/null
+++ b/src/common/steady_clock.h
@@ -0,0 +1,34 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <chrono>
+
+#include "common/common_types.h"
+
+namespace Common {
+
+struct SteadyClock {
+ using rep = s64;
+ using period = std::nano;
+ using duration = std::chrono::nanoseconds;
+ using time_point = std::chrono::time_point<SteadyClock>;
+
+ static constexpr bool is_steady = true;
+
+ [[nodiscard]] static time_point Now() noexcept;
+};
+
+struct RealTimeClock {
+ using rep = s64;
+ using period = std::nano;
+ using duration = std::chrono::nanoseconds;
+ using time_point = std::chrono::time_point<RealTimeClock>;
+
+ static constexpr bool is_steady = false;
+
+ [[nodiscard]] static time_point Now() noexcept;
+};
+
+} // namespace Common
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index b26db4796..feab1653d 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -30,7 +30,7 @@ std::string ToUpper(std::string str) {
return str;
}
-std::string StringFromBuffer(const std::vector<u8>& data) {
+std::string StringFromBuffer(std::span<const u8> data) {
return std::string(data.begin(), std::find(data.begin(), data.end(), '\0'));
}
@@ -125,18 +125,18 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st
return result;
}
-std::string UTF16ToUTF8(const std::u16string& input) {
+std::string UTF16ToUTF8(std::u16string_view input) {
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
- return convert.to_bytes(input);
+ return convert.to_bytes(input.data(), input.data() + input.size());
}
-std::u16string UTF8ToUTF16(const std::string& input) {
+std::u16string UTF8ToUTF16(std::string_view input) {
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
- return convert.from_bytes(input);
+ return convert.from_bytes(input.data(), input.data() + input.size());
}
#ifdef _WIN32
-static std::wstring CPToUTF16(u32 code_page, const std::string& input) {
+static std::wstring CPToUTF16(u32 code_page, std::string_view input) {
const auto size =
MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
@@ -154,7 +154,7 @@ static std::wstring CPToUTF16(u32 code_page, const std::string& input) {
return output;
}
-std::string UTF16ToUTF8(const std::wstring& input) {
+std::string UTF16ToUTF8(std::wstring_view input) {
const auto size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()),
nullptr, 0, nullptr, nullptr);
if (size == 0) {
@@ -172,7 +172,7 @@ std::string UTF16ToUTF8(const std::wstring& input) {
return output;
}
-std::wstring UTF8ToUTF16W(const std::string& input) {
+std::wstring UTF8ToUTF16W(std::string_view input) {
return CPToUTF16(CP_UTF8, input);
}
diff --git a/src/common/string_util.h b/src/common/string_util.h
index ce18a33cf..c351f1a0c 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -5,6 +5,7 @@
#pragma once
#include <cstddef>
+#include <span>
#include <string>
#include <vector>
#include "common/common_types.h"
@@ -17,7 +18,7 @@ namespace Common {
/// Make a string uppercase
[[nodiscard]] std::string ToUpper(std::string str);
-[[nodiscard]] std::string StringFromBuffer(const std::vector<u8>& data);
+[[nodiscard]] std::string StringFromBuffer(std::span<const u8> data);
[[nodiscard]] std::string StripSpaces(const std::string& s);
[[nodiscard]] std::string StripQuotes(const std::string& s);
@@ -35,12 +36,12 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
[[nodiscard]] std::string ReplaceAll(std::string result, const std::string& src,
const std::string& dest);
-[[nodiscard]] std::string UTF16ToUTF8(const std::u16string& input);
-[[nodiscard]] std::u16string UTF8ToUTF16(const std::string& input);
+[[nodiscard]] std::string UTF16ToUTF8(std::u16string_view input);
+[[nodiscard]] std::u16string UTF8ToUTF16(std::string_view input);
#ifdef _WIN32
-[[nodiscard]] std::string UTF16ToUTF8(const std::wstring& input);
-[[nodiscard]] std::wstring UTF8ToUTF16W(const std::string& str);
+[[nodiscard]] std::string UTF16ToUTF8(std::wstring_view input);
+[[nodiscard]] std::wstring UTF8ToUTF16W(std::string_view str);
#endif
diff --git a/src/common/swap.h b/src/common/swap.h
index 037b82781..085baaf9a 100644
--- a/src/common/swap.h
+++ b/src/common/swap.h
@@ -229,7 +229,7 @@ public:
value = swap(swap() - 1);
return old;
}
- // Comparaison
+ // Comparison
// v == i
bool operator==(const swapped_t& i) const {
return swap() == i.swap();
@@ -368,7 +368,7 @@ public:
// Member
/** todo **/
- // Arithmetics
+ // Arithmetic
template <typename S, typename T2, typename F2>
friend S operator+(const S& p, const swapped_t v);
@@ -384,7 +384,7 @@ public:
template <typename S, typename T2, typename F2>
friend S operator%(const S& p, const swapped_t v);
- // Arithmetics + assignments
+ // Arithmetic + assignments
template <typename S, typename T2, typename F2>
friend S operator+=(const S& p, const swapped_t v);
@@ -415,7 +415,7 @@ public:
friend bool operator==(const S& p, const swapped_t v);
};
-// Arithmetics
+// Arithmetic
template <typename S, typename T, typename F>
S operator+(const S& i, const swap_struct_t<T, F> v) {
return i + v.swap();
@@ -441,7 +441,7 @@ S operator%(const S& i, const swap_struct_t<T, F> v) {
return i % v.swap();
}
-// Arithmetics + assignments
+// Arithmetic + assignments
template <typename S, typename T, typename F>
S& operator+=(S& i, const swap_struct_t<T, F> v) {
i += v.swap();
@@ -465,7 +465,7 @@ S operator&(const swap_struct_t<T, F> v, const S& i) {
return static_cast<S>(v.swap() & i);
}
-// Comparaison
+// Comparison
template <typename S, typename T, typename F>
bool operator<(const S& p, const swap_struct_t<T, F> v) {
return p < v.swap();
diff --git a/src/common/telemetry.cpp b/src/common/telemetry.cpp
index d26394359..91352912d 100644
--- a/src/common/telemetry.cpp
+++ b/src/common/telemetry.cpp
@@ -97,6 +97,7 @@ void AppendCPUInfo(FieldCollection& fc) {
add_field("CPU_Extension_x64_PCLMULQDQ", caps.pclmulqdq);
add_field("CPU_Extension_x64_POPCNT", caps.popcnt);
add_field("CPU_Extension_x64_SHA", caps.sha);
+ add_field("CPU_Extension_x64_WAITPKG", caps.waitpkg);
#else
fc.AddField(FieldType::UserSystem, "CPU_Model", "Other");
#endif
diff --git a/src/common/thread.h b/src/common/thread.h
index 8ae169b4e..c6976fb6c 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -55,7 +55,7 @@ public:
is_set = false;
}
- [[nodiscard]] bool IsSet() {
+ [[nodiscard]] bool IsSet() const {
return is_set;
}
diff --git a/src/common/time_zone.cpp b/src/common/time_zone.cpp
index 126836b01..d8d7896c6 100644
--- a/src/common/time_zone.cpp
+++ b/src/common/time_zone.cpp
@@ -2,14 +2,33 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <chrono>
+#include <exception>
#include <iomanip>
#include <sstream>
+#include <stdexcept>
+#include <fmt/chrono.h>
+#include <fmt/core.h>
#include "common/logging/log.h"
+#include "common/settings.h"
#include "common/time_zone.h"
namespace Common::TimeZone {
+// Time zone strings
+constexpr std::array timezones{
+ "GMT", "GMT", "CET", "CST6CDT", "Cuba", "EET", "Egypt", "Eire",
+ "EST", "EST5EDT", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0",
+ "Greenwich", "Hongkong", "HST", "Iceland", "Iran", "Israel", "Jamaica", "Japan",
+ "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Navajo", "NZ", "NZ-CHAT",
+ "Poland", "Portugal", "PRC", "PST8PDT", "ROC", "ROK", "Singapore", "Turkey",
+ "UCT", "Universal", "UTC", "W-SU", "WET", "Zulu",
+};
+
+const std::array<const char*, 46>& GetTimeZoneStrings() {
+ return timezones;
+}
+
std::string GetDefaultTimeZone() {
return "GMT";
}
@@ -18,10 +37,7 @@ static std::string GetOsTimeZoneOffset() {
const std::time_t t{std::time(nullptr)};
const std::tm tm{*std::localtime(&t)};
- std::stringstream ss;
- ss << std::put_time(&tm, "%z"); // Get the current timezone offset, e.g. "-400", as a string
-
- return ss.str();
+ return fmt::format("{:%z}", tm);
}
static int ConvertOsTimeZoneOffsetToInt(const std::string& timezone) {
@@ -45,4 +61,43 @@ std::chrono::seconds GetCurrentOffsetSeconds() {
return std::chrono::seconds{seconds};
}
+// Key is [Hours * 100 + Minutes], multiplied by 100 if DST
+const static std::map<s64, const char*> off_timezones = {
+ {530, "Asia/Calcutta"}, {930, "Australia/Darwin"}, {845, "Australia/Eucla"},
+ {103000, "Australia/Adelaide"}, {1030, "Australia/Lord_Howe"}, {630, "Indian/Cocos"},
+ {1245, "Pacific/Chatham"}, {134500, "Pacific/Chatham"}, {-330, "Canada/Newfoundland"},
+ {-23000, "Canada/Newfoundland"}, {430, "Asia/Kabul"}, {330, "Asia/Tehran"},
+ {43000, "Asia/Tehran"}, {545, "Asia/Kathmandu"}, {-930, "Asia/Marquesas"},
+};
+
+std::string FindSystemTimeZone() {
+#if defined(MINGW)
+ // MinGW has broken strftime -- https://sourceforge.net/p/mingw-w64/bugs/793/
+ // e.g. fmt::format("{:%z}") -- returns "Eastern Daylight Time" when it should be "-0400"
+ return timezones[0];
+#else
+ const s64 seconds = static_cast<s64>(GetCurrentOffsetSeconds().count());
+
+ const s64 minutes = seconds / 60;
+ const s64 hours = minutes / 60;
+
+ const s64 minutes_off = minutes - hours * 60;
+
+ if (minutes_off != 0) {
+ const auto the_time = std::time(nullptr);
+ const struct std::tm& local = *std::localtime(&the_time);
+ const bool is_dst = local.tm_isdst != 0;
+
+ const s64 tz_index = (hours * 100 + minutes_off) * (is_dst ? 100 : 1);
+
+ try {
+ return off_timezones.at(tz_index);
+ } catch (std::out_of_range&) {
+ LOG_ERROR(Common, "Time zone {} not handled, defaulting to hour offset.", tz_index);
+ }
+ }
+ return fmt::format("Etc/GMT{:s}{:d}", hours > 0 ? "-" : "+", std::abs(hours));
+#endif
+}
+
} // namespace Common::TimeZone
diff --git a/src/common/time_zone.h b/src/common/time_zone.h
index 99cae6ef2..f574d5c04 100644
--- a/src/common/time_zone.h
+++ b/src/common/time_zone.h
@@ -3,15 +3,21 @@
#pragma once
+#include <array>
#include <chrono>
#include <string>
namespace Common::TimeZone {
+[[nodiscard]] const std::array<const char*, 46>& GetTimeZoneStrings();
+
/// Gets the default timezone, i.e. "GMT"
[[nodiscard]] std::string GetDefaultTimeZone();
/// Gets the offset of the current timezone (from the default), in seconds
[[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds();
+/// Searches time zone offsets for the closest offset to the system time zone
+[[nodiscard]] std::string FindSystemTimeZone();
+
} // namespace Common::TimeZone
diff --git a/src/common/tree.h b/src/common/tree.h
index f77859209..f4fc43de3 100644
--- a/src/common/tree.h
+++ b/src/common/tree.h
@@ -103,12 +103,12 @@ concept IsRBEntry = CheckRBEntry<T>::value;
template <typename T>
concept HasRBEntry = requires(T& t, const T& ct) {
- { t.GetRBEntry() } -> std::same_as<RBEntry<T>&>;
- { ct.GetRBEntry() } -> std::same_as<const RBEntry<T>&>;
-};
+ { t.GetRBEntry() } -> std::same_as<RBEntry<T>&>;
+ { ct.GetRBEntry() } -> std::same_as<const RBEntry<T>&>;
+ };
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
class RBHead {
private:
T* m_rbh_root = nullptr;
@@ -130,90 +130,90 @@ public:
};
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr RBEntry<T>& RB_ENTRY(T* t) {
return t->GetRBEntry();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr const RBEntry<T>& RB_ENTRY(const T* t) {
return t->GetRBEntry();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr T* RB_LEFT(T* t) {
return RB_ENTRY(t).Left();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr const T* RB_LEFT(const T* t) {
return RB_ENTRY(t).Left();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr T* RB_RIGHT(T* t) {
return RB_ENTRY(t).Right();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr const T* RB_RIGHT(const T* t) {
return RB_ENTRY(t).Right();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr T* RB_PARENT(T* t) {
return RB_ENTRY(t).Parent();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr const T* RB_PARENT(const T* t) {
return RB_ENTRY(t).Parent();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_SET_LEFT(T* t, T* e) {
RB_ENTRY(t).SetLeft(e);
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_SET_RIGHT(T* t, T* e) {
RB_ENTRY(t).SetRight(e);
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_SET_PARENT(T* t, T* e) {
RB_ENTRY(t).SetParent(e);
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr bool RB_IS_BLACK(const T* t) {
return RB_ENTRY(t).IsBlack();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr bool RB_IS_RED(const T* t) {
return RB_ENTRY(t).IsRed();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
[[nodiscard]] constexpr RBColor RB_COLOR(const T* t) {
return RB_ENTRY(t).Color();
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_SET_COLOR(T* t, RBColor c) {
RB_ENTRY(t).SetColor(c);
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_SET(T* elm, T* parent) {
auto& rb_entry = RB_ENTRY(elm);
rb_entry.SetParent(parent);
@@ -223,14 +223,14 @@ constexpr void RB_SET(T* elm, T* parent) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_SET_BLACKRED(T* black, T* red) {
RB_SET_COLOR(black, RBColor::RB_BLACK);
RB_SET_COLOR(red, RBColor::RB_RED);
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_ROTATE_LEFT(RBHead<T>& head, T* elm, T*& tmp) {
tmp = RB_RIGHT(elm);
if (RB_SET_RIGHT(elm, RB_LEFT(tmp)); RB_RIGHT(elm) != nullptr) {
@@ -252,7 +252,7 @@ constexpr void RB_ROTATE_LEFT(RBHead<T>& head, T* elm, T*& tmp) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_ROTATE_RIGHT(RBHead<T>& head, T* elm, T*& tmp) {
tmp = RB_LEFT(elm);
if (RB_SET_LEFT(elm, RB_RIGHT(tmp)); RB_LEFT(elm) != nullptr) {
@@ -274,7 +274,7 @@ constexpr void RB_ROTATE_RIGHT(RBHead<T>& head, T* elm, T*& tmp) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_REMOVE_COLOR(RBHead<T>& head, T* parent, T* elm) {
T* tmp;
while ((elm == nullptr || RB_IS_BLACK(elm)) && elm != head.Root()) {
@@ -358,7 +358,7 @@ constexpr void RB_REMOVE_COLOR(RBHead<T>& head, T* parent, T* elm) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_REMOVE(RBHead<T>& head, T* elm) {
T* child = nullptr;
T* parent = nullptr;
@@ -451,7 +451,7 @@ constexpr T* RB_REMOVE(RBHead<T>& head, T* elm) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr void RB_INSERT_COLOR(RBHead<T>& head, T* elm) {
T *parent = nullptr, *tmp = nullptr;
while ((parent = RB_PARENT(elm)) != nullptr && RB_IS_RED(parent)) {
@@ -499,7 +499,7 @@ constexpr void RB_INSERT_COLOR(RBHead<T>& head, T* elm) {
}
template <typename T, typename Compare>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_INSERT(RBHead<T>& head, T* elm, Compare cmp) {
T* parent = nullptr;
T* tmp = head.Root();
@@ -534,7 +534,7 @@ constexpr T* RB_INSERT(RBHead<T>& head, T* elm, Compare cmp) {
}
template <typename T, typename Compare>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_FIND(RBHead<T>& head, T* elm, Compare cmp) {
T* tmp = head.Root();
@@ -553,7 +553,7 @@ constexpr T* RB_FIND(RBHead<T>& head, T* elm, Compare cmp) {
}
template <typename T, typename Compare>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_NFIND(RBHead<T>& head, T* elm, Compare cmp) {
T* tmp = head.Root();
T* res = nullptr;
@@ -574,7 +574,7 @@ constexpr T* RB_NFIND(RBHead<T>& head, T* elm, Compare cmp) {
}
template <typename T, typename U, typename Compare>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_FIND_KEY(RBHead<T>& head, const U& key, Compare cmp) {
T* tmp = head.Root();
@@ -593,7 +593,7 @@ constexpr T* RB_FIND_KEY(RBHead<T>& head, const U& key, Compare cmp) {
}
template <typename T, typename U, typename Compare>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_NFIND_KEY(RBHead<T>& head, const U& key, Compare cmp) {
T* tmp = head.Root();
T* res = nullptr;
@@ -614,7 +614,7 @@ constexpr T* RB_NFIND_KEY(RBHead<T>& head, const U& key, Compare cmp) {
}
template <typename T, typename Compare>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_FIND_EXISTING(RBHead<T>& head, T* elm, Compare cmp) {
T* tmp = head.Root();
@@ -631,7 +631,7 @@ constexpr T* RB_FIND_EXISTING(RBHead<T>& head, T* elm, Compare cmp) {
}
template <typename T, typename U, typename Compare>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_FIND_EXISTING_KEY(RBHead<T>& head, const U& key, Compare cmp) {
T* tmp = head.Root();
@@ -648,7 +648,7 @@ constexpr T* RB_FIND_EXISTING_KEY(RBHead<T>& head, const U& key, Compare cmp) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_NEXT(T* elm) {
if (RB_RIGHT(elm)) {
elm = RB_RIGHT(elm);
@@ -669,7 +669,7 @@ constexpr T* RB_NEXT(T* elm) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_PREV(T* elm) {
if (RB_LEFT(elm)) {
elm = RB_LEFT(elm);
@@ -690,7 +690,7 @@ constexpr T* RB_PREV(T* elm) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_MIN(RBHead<T>& head) {
T* tmp = head.Root();
T* parent = nullptr;
@@ -704,7 +704,7 @@ constexpr T* RB_MIN(RBHead<T>& head) {
}
template <typename T>
-requires HasRBEntry<T>
+ requires HasRBEntry<T>
constexpr T* RB_MAX(RBHead<T>& head) {
T* tmp = head.Root();
T* parent = nullptr;
diff --git a/src/common/typed_address.h b/src/common/typed_address.h
new file mode 100644
index 000000000..64f4a07c2
--- /dev/null
+++ b/src/common/typed_address.h
@@ -0,0 +1,315 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <compare>
+#include <type_traits>
+#include <fmt/format.h>
+
+#include "common/common_types.h"
+
+namespace Common {
+
+template <bool Virtual, typename T>
+class TypedAddress {
+public:
+ // Constructors.
+ constexpr inline TypedAddress() : m_address(0) {}
+ constexpr inline TypedAddress(uint64_t a) : m_address(a) {}
+
+ template <typename U>
+ constexpr inline explicit TypedAddress(const U* ptr)
+ : m_address(reinterpret_cast<uint64_t>(ptr)) {}
+
+ // Copy constructor.
+ constexpr inline TypedAddress(const TypedAddress& rhs) = default;
+
+ // Assignment operator.
+ constexpr inline TypedAddress& operator=(const TypedAddress& rhs) = default;
+
+ // Arithmetic operators.
+ template <typename I>
+ constexpr inline TypedAddress operator+(I rhs) const {
+ static_assert(std::is_integral_v<I>);
+ return m_address + rhs;
+ }
+
+ constexpr inline TypedAddress operator+(TypedAddress rhs) const {
+ return m_address + rhs.m_address;
+ }
+
+ constexpr inline TypedAddress operator++() {
+ return ++m_address;
+ }
+
+ constexpr inline TypedAddress operator++(int) {
+ return m_address++;
+ }
+
+ template <typename I>
+ constexpr inline TypedAddress operator-(I rhs) const {
+ static_assert(std::is_integral_v<I>);
+ return m_address - rhs;
+ }
+
+ constexpr inline ptrdiff_t operator-(TypedAddress rhs) const {
+ return m_address - rhs.m_address;
+ }
+
+ constexpr inline TypedAddress operator--() {
+ return --m_address;
+ }
+
+ constexpr inline TypedAddress operator--(int) {
+ return m_address--;
+ }
+
+ template <typename I>
+ constexpr inline TypedAddress operator+=(I rhs) {
+ static_assert(std::is_integral_v<I>);
+ m_address += rhs;
+ return *this;
+ }
+
+ template <typename I>
+ constexpr inline TypedAddress operator-=(I rhs) {
+ static_assert(std::is_integral_v<I>);
+ m_address -= rhs;
+ return *this;
+ }
+
+ // Logical operators.
+ constexpr inline uint64_t operator&(uint64_t mask) const {
+ return m_address & mask;
+ }
+
+ constexpr inline uint64_t operator|(uint64_t mask) const {
+ return m_address | mask;
+ }
+
+ template <typename I>
+ constexpr inline TypedAddress operator|=(I rhs) {
+ static_assert(std::is_integral_v<I>);
+ m_address |= rhs;
+ return *this;
+ }
+
+ constexpr inline uint64_t operator<<(int shift) const {
+ return m_address << shift;
+ }
+
+ constexpr inline uint64_t operator>>(int shift) const {
+ return m_address >> shift;
+ }
+
+ template <typename U>
+ constexpr inline size_t operator/(U size) const {
+ return m_address / size;
+ }
+
+ constexpr explicit operator bool() const {
+ return m_address != 0;
+ }
+
+ // constexpr inline uint64_t operator%(U align) const { return m_address % align; }
+
+ // Comparison operators.
+ constexpr bool operator==(const TypedAddress&) const = default;
+ constexpr auto operator<=>(const TypedAddress&) const = default;
+
+ // For convenience, also define comparison operators versus uint64_t.
+ constexpr inline bool operator==(uint64_t rhs) const {
+ return m_address == rhs;
+ }
+
+ // Allow getting the address explicitly, for use in accessors.
+ constexpr inline uint64_t GetValue() const {
+ return m_address;
+ }
+
+private:
+ uint64_t m_address{};
+};
+
+struct PhysicalAddressTag {};
+struct VirtualAddressTag {};
+struct ProcessAddressTag {};
+
+using PhysicalAddress = TypedAddress<false, PhysicalAddressTag>;
+using VirtualAddress = TypedAddress<true, VirtualAddressTag>;
+using ProcessAddress = TypedAddress<true, ProcessAddressTag>;
+
+// Define accessors.
+template <typename T>
+concept IsTypedAddress = std::same_as<T, PhysicalAddress> || std::same_as<T, VirtualAddress> ||
+ std::same_as<T, ProcessAddress>;
+
+template <typename T>
+constexpr inline T Null = [] {
+ if constexpr (std::is_same<T, uint64_t>::value) {
+ return 0;
+ } else {
+ static_assert(std::is_same<T, PhysicalAddress>::value ||
+ std::is_same<T, VirtualAddress>::value ||
+ std::is_same<T, ProcessAddress>::value);
+ return T(0);
+ }
+}();
+
+// Basic type validations.
+static_assert(sizeof(PhysicalAddress) == sizeof(uint64_t));
+static_assert(sizeof(VirtualAddress) == sizeof(uint64_t));
+static_assert(sizeof(ProcessAddress) == sizeof(uint64_t));
+
+static_assert(std::is_trivially_copyable_v<PhysicalAddress>);
+static_assert(std::is_trivially_copyable_v<VirtualAddress>);
+static_assert(std::is_trivially_copyable_v<ProcessAddress>);
+
+static_assert(std::is_trivially_copy_constructible_v<PhysicalAddress>);
+static_assert(std::is_trivially_copy_constructible_v<VirtualAddress>);
+static_assert(std::is_trivially_copy_constructible_v<ProcessAddress>);
+
+static_assert(std::is_trivially_move_constructible_v<PhysicalAddress>);
+static_assert(std::is_trivially_move_constructible_v<VirtualAddress>);
+static_assert(std::is_trivially_move_constructible_v<ProcessAddress>);
+
+static_assert(std::is_trivially_copy_assignable_v<PhysicalAddress>);
+static_assert(std::is_trivially_copy_assignable_v<VirtualAddress>);
+static_assert(std::is_trivially_copy_assignable_v<ProcessAddress>);
+
+static_assert(std::is_trivially_move_assignable_v<PhysicalAddress>);
+static_assert(std::is_trivially_move_assignable_v<VirtualAddress>);
+static_assert(std::is_trivially_move_assignable_v<ProcessAddress>);
+
+static_assert(std::is_trivially_destructible_v<PhysicalAddress>);
+static_assert(std::is_trivially_destructible_v<VirtualAddress>);
+static_assert(std::is_trivially_destructible_v<ProcessAddress>);
+
+static_assert(Null<uint64_t> == 0);
+static_assert(Null<PhysicalAddress> == Null<uint64_t>);
+static_assert(Null<VirtualAddress> == Null<uint64_t>);
+static_assert(Null<ProcessAddress> == Null<uint64_t>);
+
+// Constructor/assignment validations.
+static_assert([] {
+ const PhysicalAddress a(5);
+ PhysicalAddress b(a);
+ return b;
+}() == PhysicalAddress(5));
+static_assert([] {
+ const PhysicalAddress a(5);
+ PhysicalAddress b(10);
+ b = a;
+ return b;
+}() == PhysicalAddress(5));
+
+// Arithmetic validations.
+static_assert(PhysicalAddress(10) + 5 == PhysicalAddress(15));
+static_assert(PhysicalAddress(10) - 5 == PhysicalAddress(5));
+static_assert([] {
+ PhysicalAddress v(10);
+ v += 5;
+ return v;
+}() == PhysicalAddress(15));
+static_assert([] {
+ PhysicalAddress v(10);
+ v -= 5;
+ return v;
+}() == PhysicalAddress(5));
+static_assert(PhysicalAddress(10)++ == PhysicalAddress(10));
+static_assert(++PhysicalAddress(10) == PhysicalAddress(11));
+static_assert(PhysicalAddress(10)-- == PhysicalAddress(10));
+static_assert(--PhysicalAddress(10) == PhysicalAddress(9));
+
+// Logical validations.
+static_assert((PhysicalAddress(0b11111111) >> 1) == 0b01111111);
+static_assert((PhysicalAddress(0b10101010) >> 1) == 0b01010101);
+static_assert((PhysicalAddress(0b11111111) << 1) == 0b111111110);
+static_assert((PhysicalAddress(0b01010101) << 1) == 0b10101010);
+static_assert((PhysicalAddress(0b11111111) & 0b01010101) == 0b01010101);
+static_assert((PhysicalAddress(0b11111111) & 0b10101010) == 0b10101010);
+static_assert((PhysicalAddress(0b01010101) & 0b10101010) == 0b00000000);
+static_assert((PhysicalAddress(0b00000000) | 0b01010101) == 0b01010101);
+static_assert((PhysicalAddress(0b11111111) | 0b01010101) == 0b11111111);
+static_assert((PhysicalAddress(0b10101010) | 0b01010101) == 0b11111111);
+
+// Comparisons.
+static_assert(PhysicalAddress(0) == PhysicalAddress(0));
+static_assert(PhysicalAddress(0) != PhysicalAddress(1));
+static_assert(PhysicalAddress(0) < PhysicalAddress(1));
+static_assert(PhysicalAddress(0) <= PhysicalAddress(1));
+static_assert(PhysicalAddress(1) > PhysicalAddress(0));
+static_assert(PhysicalAddress(1) >= PhysicalAddress(0));
+
+static_assert(!(PhysicalAddress(0) == PhysicalAddress(1)));
+static_assert(!(PhysicalAddress(0) != PhysicalAddress(0)));
+static_assert(!(PhysicalAddress(1) < PhysicalAddress(0)));
+static_assert(!(PhysicalAddress(1) <= PhysicalAddress(0)));
+static_assert(!(PhysicalAddress(0) > PhysicalAddress(1)));
+static_assert(!(PhysicalAddress(0) >= PhysicalAddress(1)));
+
+} // namespace Common
+
+template <bool Virtual, typename T>
+constexpr inline uint64_t GetInteger(Common::TypedAddress<Virtual, T> address) {
+ return address.GetValue();
+}
+
+template <>
+struct fmt::formatter<Common::PhysicalAddress> {
+ constexpr auto parse(fmt::format_parse_context& ctx) {
+ return ctx.begin();
+ }
+ template <typename FormatContext>
+ auto format(const Common::PhysicalAddress& addr, FormatContext& ctx) {
+ return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
+ }
+};
+
+template <>
+struct fmt::formatter<Common::ProcessAddress> {
+ constexpr auto parse(fmt::format_parse_context& ctx) {
+ return ctx.begin();
+ }
+ template <typename FormatContext>
+ auto format(const Common::ProcessAddress& addr, FormatContext& ctx) {
+ return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
+ }
+};
+
+template <>
+struct fmt::formatter<Common::VirtualAddress> {
+ constexpr auto parse(fmt::format_parse_context& ctx) {
+ return ctx.begin();
+ }
+ template <typename FormatContext>
+ auto format(const Common::VirtualAddress& addr, FormatContext& ctx) {
+ return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.GetValue()));
+ }
+};
+
+namespace std {
+
+template <>
+struct hash<Common::PhysicalAddress> {
+ size_t operator()(const Common::PhysicalAddress& k) const noexcept {
+ return k.GetValue();
+ }
+};
+
+template <>
+struct hash<Common::ProcessAddress> {
+ size_t operator()(const Common::ProcessAddress& k) const noexcept {
+ return k.GetValue();
+ }
+};
+
+template <>
+struct hash<Common::VirtualAddress> {
+ size_t operator()(const Common::VirtualAddress& k) const noexcept {
+ return k.GetValue();
+ }
+};
+
+} // namespace std
diff --git a/src/common/uuid.cpp b/src/common/uuid.cpp
index 89e1ed225..035df7fe0 100644
--- a/src/common/uuid.cpp
+++ b/src/common/uuid.cpp
@@ -48,7 +48,7 @@ std::array<u8, 0x10> ConstructFromRawString(std::string_view raw_string) {
}
std::array<u8, 0x10> ConstructFromFormattedString(std::string_view formatted_string) {
- std::array<u8, 0x10> uuid;
+ std::array<u8, 0x10> uuid{};
size_t i = 0;
diff --git a/src/common/vector_math.h b/src/common/vector_math.h
index e62eeea2e..b4885835d 100644
--- a/src/common/vector_math.h
+++ b/src/common/vector_math.h
@@ -259,6 +259,20 @@ public:
return *this;
}
+ void RotateFromOrigin(float roll, float pitch, float yaw) {
+ float temp = y;
+ y = std::cos(roll) * y - std::sin(roll) * z;
+ z = std::sin(roll) * temp + std::cos(roll) * z;
+
+ temp = x;
+ x = std::cos(pitch) * x + std::sin(pitch) * z;
+ z = -std::sin(pitch) * temp + std::cos(pitch) * z;
+
+ temp = x;
+ x = std::cos(yaw) * x - std::sin(yaw) * y;
+ y = std::sin(yaw) * temp + std::cos(yaw) * y;
+ }
+
[[nodiscard]] constexpr T Length2() const {
return x * x + y * y + z * z;
}
@@ -348,9 +362,7 @@ public:
// _DEFINE_SWIZZLER2 defines a single such function, DEFINE_SWIZZLER2 defines all of them for all
// component names (x<->r) and permutations (xy<->yx)
#define _DEFINE_SWIZZLER2(a, b, name) \
- [[nodiscard]] constexpr Vec2<T> name() const { \
- return Vec2<T>(a, b); \
- }
+ [[nodiscard]] constexpr Vec2<T> name() const { return Vec2<T>(a, b); }
#define DEFINE_SWIZZLER2(a, b, a2, b2, a3, b3, a4, b4) \
_DEFINE_SWIZZLER2(a, b, a##b); \
_DEFINE_SWIZZLER2(a, b, a2##b2); \
@@ -543,9 +555,7 @@ public:
// DEFINE_SWIZZLER2_COMP2 defines two component functions for all component names (x<->r) and
// permutations (xy<->yx)
#define _DEFINE_SWIZZLER2(a, b, name) \
- [[nodiscard]] constexpr Vec2<T> name() const { \
- return Vec2<T>(a, b); \
- }
+ [[nodiscard]] constexpr Vec2<T> name() const { return Vec2<T>(a, b); }
#define DEFINE_SWIZZLER2_COMP1(a, a2) \
_DEFINE_SWIZZLER2(a, a, a##a); \
_DEFINE_SWIZZLER2(a, a, a2##a2)
@@ -570,9 +580,7 @@ public:
#undef _DEFINE_SWIZZLER2
#define _DEFINE_SWIZZLER3(a, b, c, name) \
- [[nodiscard]] constexpr Vec3<T> name() const { \
- return Vec3<T>(a, b, c); \
- }
+ [[nodiscard]] constexpr Vec3<T> name() const { return Vec3<T>(a, b, c); }
#define DEFINE_SWIZZLER3_COMP1(a, a2) \
_DEFINE_SWIZZLER3(a, a, a, a##a##a); \
_DEFINE_SWIZZLER3(a, a, a, a2##a2##a2)
@@ -641,8 +649,8 @@ template <typename T>
// linear interpolation via float: 0.0=begin, 1.0=end
template <typename X>
-[[nodiscard]] constexpr decltype(X{} * float{} + X{} * float{})
- Lerp(const X& begin, const X& end, const float t) {
+[[nodiscard]] constexpr decltype(X{} * float{} + X{} * float{}) Lerp(const X& begin, const X& end,
+ const float t) {
return begin * (1.f - t) + end * t;
}
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp
index ae07f2811..dc0dcbd68 100644
--- a/src/common/wall_clock.cpp
+++ b/src/common/wall_clock.cpp
@@ -1,96 +1,76 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include "common/uint128.h"
+#include "common/steady_clock.h"
#include "common/wall_clock.h"
#ifdef ARCHITECTURE_x86_64
#include "common/x64/cpu_detect.h"
#include "common/x64/native_clock.h"
+#include "common/x64/rdtsc.h"
#endif
namespace Common {
-using base_timer = std::chrono::steady_clock;
-using base_time_point = std::chrono::time_point<base_timer>;
-
class StandardWallClock final : public WallClock {
public:
- explicit StandardWallClock(u64 emulated_cpu_frequency_, u64 emulated_clock_frequency_)
- : WallClock(emulated_cpu_frequency_, emulated_clock_frequency_, false) {
- start_time = base_timer::now();
+ explicit StandardWallClock() : start_time{SteadyClock::Now()} {}
+
+ std::chrono::nanoseconds GetTimeNS() const override {
+ return SteadyClock::Now() - start_time;
+ }
+
+ std::chrono::microseconds GetTimeUS() const override {
+ return static_cast<std::chrono::microseconds>(GetHostTicksElapsed() / NsToUsRatio::den);
}
- std::chrono::nanoseconds GetTimeNS() override {
- base_time_point current = base_timer::now();
- auto elapsed = current - start_time;
- return std::chrono::duration_cast<std::chrono::nanoseconds>(elapsed);
+ std::chrono::milliseconds GetTimeMS() const override {
+ return static_cast<std::chrono::milliseconds>(GetHostTicksElapsed() / NsToMsRatio::den);
}
- std::chrono::microseconds GetTimeUS() override {
- base_time_point current = base_timer::now();
- auto elapsed = current - start_time;
- return std::chrono::duration_cast<std::chrono::microseconds>(elapsed);
+ u64 GetCNTPCT() const override {
+ return GetHostTicksElapsed() * NsToCNTPCTRatio::num / NsToCNTPCTRatio::den;
}
- std::chrono::milliseconds GetTimeMS() override {
- base_time_point current = base_timer::now();
- auto elapsed = current - start_time;
- return std::chrono::duration_cast<std::chrono::milliseconds>(elapsed);
+ u64 GetGPUTick() const override {
+ return GetHostTicksElapsed() * NsToGPUTickRatio::num / NsToGPUTickRatio::den;
}
- u64 GetClockCycles() override {
- std::chrono::nanoseconds time_now = GetTimeNS();
- const u128 temporary =
- Common::Multiply64Into128(time_now.count(), emulated_clock_frequency);
- return Common::Divide128On32(temporary, 1000000000).first;
+ u64 GetHostTicksNow() const override {
+ return static_cast<u64>(SteadyClock::Now().time_since_epoch().count());
}
- u64 GetCPUCycles() override {
- std::chrono::nanoseconds time_now = GetTimeNS();
- const u128 temporary = Common::Multiply64Into128(time_now.count(), emulated_cpu_frequency);
- return Common::Divide128On32(temporary, 1000000000).first;
+ u64 GetHostTicksElapsed() const override {
+ return static_cast<u64>(GetTimeNS().count());
}
- void Pause([[maybe_unused]] bool is_paused) override {
- // Do nothing in this clock type.
+ bool IsNative() const override {
+ return false;
}
private:
- base_time_point start_time;
+ SteadyClock::time_point start_time;
};
+std::unique_ptr<WallClock> CreateOptimalClock() {
#ifdef ARCHITECTURE_x86_64
-
-std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency,
- u64 emulated_clock_frequency) {
const auto& caps = GetCPUCaps();
- u64 rtsc_frequency = 0;
- if (caps.invariant_tsc) {
- rtsc_frequency = caps.tsc_frequency ? caps.tsc_frequency : EstimateRDTSCFrequency();
- }
- // Fallback to StandardWallClock if the hardware TSC does not have the precision greater than:
- // - A nanosecond
- // - The emulated CPU frequency
- // - The emulated clock counter frequency (CNTFRQ)
- if (rtsc_frequency <= WallClock::NS_RATIO || rtsc_frequency <= emulated_cpu_frequency ||
- rtsc_frequency <= emulated_clock_frequency) {
- return std::make_unique<StandardWallClock>(emulated_cpu_frequency,
- emulated_clock_frequency);
+ if (caps.invariant_tsc && caps.tsc_frequency >= WallClock::GPUTickFreq) {
+ return std::make_unique<X64::NativeClock>(caps.tsc_frequency);
} else {
- return std::make_unique<X64::NativeClock>(emulated_cpu_frequency, emulated_clock_frequency,
- rtsc_frequency);
+ // Fallback to StandardWallClock if the hardware TSC
+ // - Is not invariant
+ // - Is not more precise than GPUTickFreq
+ return std::make_unique<StandardWallClock>();
}
-}
-
#else
-
-std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency,
- u64 emulated_clock_frequency) {
- return std::make_unique<StandardWallClock>(emulated_cpu_frequency, emulated_clock_frequency);
+ return std::make_unique<StandardWallClock>();
+#endif
}
-#endif
+std::unique_ptr<WallClock> CreateStandardWallClock() {
+ return std::make_unique<StandardWallClock>();
+}
} // namespace Common
diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h
index 828a523a8..f45d3d8c5 100644
--- a/src/common/wall_clock.h
+++ b/src/common/wall_clock.h
@@ -5,6 +5,7 @@
#include <chrono>
#include <memory>
+#include <ratio>
#include "common/common_types.h"
@@ -12,47 +13,82 @@ namespace Common {
class WallClock {
public:
- static constexpr u64 NS_RATIO = 1'000'000'000;
- static constexpr u64 US_RATIO = 1'000'000;
- static constexpr u64 MS_RATIO = 1'000;
+ static constexpr u64 CNTFRQ = 19'200'000; // CNTPCT_EL0 Frequency = 19.2 MHz
+ static constexpr u64 GPUTickFreq = 614'400'000; // GM20B GPU Tick Frequency = 614.4 MHz
+ static constexpr u64 CPUTickFreq = 1'020'000'000; // T210/4 A57 CPU Tick Frequency = 1020.0 MHz
virtual ~WallClock() = default;
- /// Returns current wall time in nanoseconds
- [[nodiscard]] virtual std::chrono::nanoseconds GetTimeNS() = 0;
+ /// @returns The time in nanoseconds since the construction of this clock.
+ virtual std::chrono::nanoseconds GetTimeNS() const = 0;
- /// Returns current wall time in microseconds
- [[nodiscard]] virtual std::chrono::microseconds GetTimeUS() = 0;
+ /// @returns The time in microseconds since the construction of this clock.
+ virtual std::chrono::microseconds GetTimeUS() const = 0;
- /// Returns current wall time in milliseconds
- [[nodiscard]] virtual std::chrono::milliseconds GetTimeMS() = 0;
+ /// @returns The time in milliseconds since the construction of this clock.
+ virtual std::chrono::milliseconds GetTimeMS() const = 0;
- /// Returns current wall time in emulated clock cycles
- [[nodiscard]] virtual u64 GetClockCycles() = 0;
+ /// @returns The guest CNTPCT ticks since the construction of this clock.
+ virtual u64 GetCNTPCT() const = 0;
- /// Returns current wall time in emulated cpu cycles
- [[nodiscard]] virtual u64 GetCPUCycles() = 0;
+ /// @returns The guest GPU ticks since the construction of this clock.
+ virtual u64 GetGPUTick() const = 0;
- virtual void Pause(bool is_paused) = 0;
+ /// @returns The raw host timer ticks since an indeterminate epoch.
+ virtual u64 GetHostTicksNow() const = 0;
- /// Tells if the wall clock, uses the host CPU's hardware clock
- [[nodiscard]] bool IsNative() const {
- return is_native;
+ /// @returns The raw host timer ticks since the construction of this clock.
+ virtual u64 GetHostTicksElapsed() const = 0;
+
+ /// @returns Whether the clock directly uses the host's hardware clock.
+ virtual bool IsNative() const = 0;
+
+ static inline u64 NSToCNTPCT(u64 ns) {
+ return ns * NsToCNTPCTRatio::num / NsToCNTPCTRatio::den;
+ }
+
+ static inline u64 NSToGPUTick(u64 ns) {
+ return ns * NsToGPUTickRatio::num / NsToGPUTickRatio::den;
+ }
+
+ // Cycle Timing
+
+ static inline u64 CPUTickToNS(u64 cpu_tick) {
+ return cpu_tick * CPUTickToNsRatio::num / CPUTickToNsRatio::den;
+ }
+
+ static inline u64 CPUTickToUS(u64 cpu_tick) {
+ return cpu_tick * CPUTickToUsRatio::num / CPUTickToUsRatio::den;
+ }
+
+ static inline u64 CPUTickToCNTPCT(u64 cpu_tick) {
+ return cpu_tick * CPUTickToCNTPCTRatio::num / CPUTickToCNTPCTRatio::den;
+ }
+
+ static inline u64 CPUTickToGPUTick(u64 cpu_tick) {
+ return cpu_tick * CPUTickToGPUTickRatio::num / CPUTickToGPUTickRatio::den;
}
protected:
- explicit WallClock(u64 emulated_cpu_frequency_, u64 emulated_clock_frequency_, bool is_native_)
- : emulated_cpu_frequency{emulated_cpu_frequency_},
- emulated_clock_frequency{emulated_clock_frequency_}, is_native{is_native_} {}
+ using NsRatio = std::nano;
+ using UsRatio = std::micro;
+ using MsRatio = std::milli;
+
+ using NsToUsRatio = std::ratio_divide<std::nano, std::micro>;
+ using NsToMsRatio = std::ratio_divide<std::nano, std::milli>;
+ using NsToCNTPCTRatio = std::ratio<CNTFRQ, std::nano::den>;
+ using NsToGPUTickRatio = std::ratio<GPUTickFreq, std::nano::den>;
- u64 emulated_cpu_frequency;
- u64 emulated_clock_frequency;
+ // Cycle Timing
-private:
- bool is_native;
+ using CPUTickToNsRatio = std::ratio<std::nano::den, CPUTickFreq>;
+ using CPUTickToUsRatio = std::ratio<std::micro::den, CPUTickFreq>;
+ using CPUTickToCNTPCTRatio = std::ratio<CNTFRQ, CPUTickFreq>;
+ using CPUTickToGPUTickRatio = std::ratio<GPUTickFreq, CPUTickFreq>;
};
-[[nodiscard]] std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency,
- u64 emulated_clock_frequency);
+std::unique_ptr<WallClock> CreateOptimalClock();
+
+std::unique_ptr<WallClock> CreateStandardWallClock();
} // namespace Common
diff --git a/src/common/windows/timer_resolution.cpp b/src/common/windows/timer_resolution.cpp
new file mode 100644
index 000000000..29c6e5c7e
--- /dev/null
+++ b/src/common/windows/timer_resolution.cpp
@@ -0,0 +1,109 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <windows.h>
+
+#include "common/windows/timer_resolution.h"
+
+extern "C" {
+// http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FTime%2FNtQueryTimerResolution.html
+NTSYSAPI LONG NTAPI NtQueryTimerResolution(PULONG MinimumResolution, PULONG MaximumResolution,
+ PULONG CurrentResolution);
+
+// http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FTime%2FNtSetTimerResolution.html
+NTSYSAPI LONG NTAPI NtSetTimerResolution(ULONG DesiredResolution, BOOLEAN SetResolution,
+ PULONG CurrentResolution);
+
+// http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FNT%20Objects%2FThread%2FNtDelayExecution.html
+NTSYSAPI LONG NTAPI NtDelayExecution(BOOLEAN Alertable, PLARGE_INTEGER DelayInterval);
+}
+
+// Defines for compatibility with older Windows 10 SDKs.
+
+#ifndef PROCESS_POWER_THROTTLING_EXECUTION_SPEED
+#define PROCESS_POWER_THROTTLING_EXECUTION_SPEED 0x1
+#endif
+#ifndef PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION
+#define PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION 0x4
+#endif
+
+namespace Common::Windows {
+
+namespace {
+
+using namespace std::chrono;
+
+constexpr nanoseconds ToNS(ULONG hundred_ns) {
+ return nanoseconds{hundred_ns * 100};
+}
+
+constexpr ULONG ToHundredNS(nanoseconds ns) {
+ return static_cast<ULONG>(ns.count()) / 100;
+}
+
+struct TimerResolution {
+ std::chrono::nanoseconds minimum;
+ std::chrono::nanoseconds maximum;
+ std::chrono::nanoseconds current;
+};
+
+TimerResolution GetTimerResolution() {
+ ULONG MinimumTimerResolution;
+ ULONG MaximumTimerResolution;
+ ULONG CurrentTimerResolution;
+ NtQueryTimerResolution(&MinimumTimerResolution, &MaximumTimerResolution,
+ &CurrentTimerResolution);
+ return {
+ .minimum{ToNS(MinimumTimerResolution)},
+ .maximum{ToNS(MaximumTimerResolution)},
+ .current{ToNS(CurrentTimerResolution)},
+ };
+}
+
+void SetHighQoS() {
+ // https://learn.microsoft.com/en-us/windows/win32/procthread/quality-of-service
+ PROCESS_POWER_THROTTLING_STATE PowerThrottling{
+ .Version{PROCESS_POWER_THROTTLING_CURRENT_VERSION},
+ .ControlMask{PROCESS_POWER_THROTTLING_EXECUTION_SPEED |
+ PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION},
+ .StateMask{},
+ };
+ SetProcessInformation(GetCurrentProcess(), ProcessPowerThrottling, &PowerThrottling,
+ sizeof(PROCESS_POWER_THROTTLING_STATE));
+}
+
+} // Anonymous namespace
+
+nanoseconds GetMinimumTimerResolution() {
+ return GetTimerResolution().minimum;
+}
+
+nanoseconds GetMaximumTimerResolution() {
+ return GetTimerResolution().maximum;
+}
+
+nanoseconds GetCurrentTimerResolution() {
+ return GetTimerResolution().current;
+}
+
+nanoseconds SetCurrentTimerResolution(nanoseconds timer_resolution) {
+ // Set the timer resolution, and return the current timer resolution.
+ const auto DesiredTimerResolution = ToHundredNS(timer_resolution);
+ ULONG CurrentTimerResolution;
+ NtSetTimerResolution(DesiredTimerResolution, TRUE, &CurrentTimerResolution);
+ return ToNS(CurrentTimerResolution);
+}
+
+nanoseconds SetCurrentTimerResolutionToMaximum() {
+ SetHighQoS();
+ return SetCurrentTimerResolution(GetMaximumTimerResolution());
+}
+
+void SleepForOneTick() {
+ LARGE_INTEGER DelayInterval{
+ .QuadPart{-1},
+ };
+ NtDelayExecution(FALSE, &DelayInterval);
+}
+
+} // namespace Common::Windows
diff --git a/src/common/windows/timer_resolution.h b/src/common/windows/timer_resolution.h
new file mode 100644
index 000000000..e1e50a62d
--- /dev/null
+++ b/src/common/windows/timer_resolution.h
@@ -0,0 +1,38 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <chrono>
+
+namespace Common::Windows {
+
+/// Returns the minimum (least precise) supported timer resolution in nanoseconds.
+std::chrono::nanoseconds GetMinimumTimerResolution();
+
+/// Returns the maximum (most precise) supported timer resolution in nanoseconds.
+std::chrono::nanoseconds GetMaximumTimerResolution();
+
+/// Returns the current timer resolution in nanoseconds.
+std::chrono::nanoseconds GetCurrentTimerResolution();
+
+/**
+ * Sets the current timer resolution.
+ *
+ * @param timer_resolution Timer resolution in nanoseconds.
+ *
+ * @returns The current timer resolution.
+ */
+std::chrono::nanoseconds SetCurrentTimerResolution(std::chrono::nanoseconds timer_resolution);
+
+/**
+ * Sets the current timer resolution to the maximum supported timer resolution.
+ *
+ * @returns The current timer resolution.
+ */
+std::chrono::nanoseconds SetCurrentTimerResolutionToMaximum();
+
+/// Sleep for one tick of the current timer resolution.
+void SleepForOneTick();
+
+} // namespace Common::Windows
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp
index e54383a4a..c998b1197 100644
--- a/src/common/x64/cpu_detect.cpp
+++ b/src/common/x64/cpu_detect.cpp
@@ -14,6 +14,7 @@
#include "common/common_types.h"
#include "common/logging/log.h"
#include "common/x64/cpu_detect.h"
+#include "common/x64/rdtsc.h"
#ifdef _WIN32
#include <windows.h>
@@ -144,6 +145,7 @@ static CPUCaps Detect() {
caps.bmi2 = Common::Bit<8>(cpu_id[1]);
caps.sha = Common::Bit<29>(cpu_id[1]);
+ caps.waitpkg = Common::Bit<5>(cpu_id[2]);
caps.gfni = Common::Bit<8>(cpu_id[2]);
__cpuidex(cpu_id, 0x00000007, 0x00000001);
@@ -186,6 +188,8 @@ static CPUCaps Detect() {
caps.tsc_frequency = static_cast<u64>(caps.crystal_frequency) *
caps.tsc_crystal_ratio_numerator /
caps.tsc_crystal_ratio_denominator;
+ } else {
+ caps.tsc_frequency = X64::EstimateRDTSCFrequency();
}
}
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h
index ca8db19d6..8253944d6 100644
--- a/src/common/x64/cpu_detect.h
+++ b/src/common/x64/cpu_detect.h
@@ -67,6 +67,7 @@ struct CPUCaps {
bool pclmulqdq : 1;
bool popcnt : 1;
bool sha : 1;
+ bool waitpkg : 1;
};
/**
diff --git a/src/common/x64/cpu_wait.cpp b/src/common/x64/cpu_wait.cpp
new file mode 100644
index 000000000..c53dd4945
--- /dev/null
+++ b/src/common/x64/cpu_wait.cpp
@@ -0,0 +1,51 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <thread>
+
+#ifdef _MSC_VER
+#include <intrin.h>
+#endif
+
+#include "common/x64/cpu_detect.h"
+#include "common/x64/cpu_wait.h"
+#include "common/x64/rdtsc.h"
+
+namespace Common::X64 {
+
+#ifdef _MSC_VER
+__forceinline static void TPAUSE() {
+ // 100,000 cycles is a reasonable amount of time to wait to save on CPU resources.
+ // For reference:
+ // At 1 GHz, 100K cycles is 100us
+ // At 2 GHz, 100K cycles is 50us
+ // At 4 GHz, 100K cycles is 25us
+ static constexpr auto PauseCycles = 100'000;
+ _tpause(0, FencedRDTSC() + PauseCycles);
+}
+#else
+static void TPAUSE() {
+ // 100,000 cycles is a reasonable amount of time to wait to save on CPU resources.
+ // For reference:
+ // At 1 GHz, 100K cycles is 100us
+ // At 2 GHz, 100K cycles is 50us
+ // At 4 GHz, 100K cycles is 25us
+ static constexpr auto PauseCycles = 100'000;
+ const auto tsc = FencedRDTSC() + PauseCycles;
+ const auto eax = static_cast<u32>(tsc & 0xFFFFFFFF);
+ const auto edx = static_cast<u32>(tsc >> 32);
+ asm volatile("tpause %0" : : "r"(0), "d"(edx), "a"(eax));
+}
+#endif
+
+void MicroSleep() {
+ static const bool has_waitpkg = GetCPUCaps().waitpkg;
+
+ if (has_waitpkg) {
+ TPAUSE();
+ } else {
+ std::this_thread::yield();
+ }
+}
+
+} // namespace Common::X64
diff --git a/src/common/x64/cpu_wait.h b/src/common/x64/cpu_wait.h
new file mode 100644
index 000000000..99d3757a7
--- /dev/null
+++ b/src/common/x64/cpu_wait.h
@@ -0,0 +1,10 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+namespace Common::X64 {
+
+void MicroSleep();
+
+} // namespace Common::X64
diff --git a/src/common/x64/native_clock.cpp b/src/common/x64/native_clock.cpp
index 8b08332ab..7d2a26bd9 100644
--- a/src/common/x64/native_clock.cpp
+++ b/src/common/x64/native_clock.cpp
@@ -1,136 +1,50 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <array>
-#include <chrono>
-#include <thread>
-
-#include "common/atomic_ops.h"
#include "common/uint128.h"
#include "common/x64/native_clock.h"
+#include "common/x64/rdtsc.h"
-#ifdef _MSC_VER
-#include <intrin.h>
-#endif
-
-namespace Common {
-
-#ifdef _MSC_VER
-__forceinline static u64 FencedRDTSC() {
- _mm_lfence();
- _ReadWriteBarrier();
- const u64 result = __rdtsc();
- _mm_lfence();
- _ReadWriteBarrier();
- return result;
-}
-#else
-static u64 FencedRDTSC() {
- u64 result;
- asm volatile("lfence\n\t"
- "rdtsc\n\t"
- "shl $32, %%rdx\n\t"
- "or %%rdx, %0\n\t"
- "lfence"
- : "=a"(result)
- :
- : "rdx", "memory", "cc");
- return result;
-}
-#endif
-
-u64 EstimateRDTSCFrequency() {
- // Discard the first result measuring the rdtsc.
- FencedRDTSC();
- std::this_thread::sleep_for(std::chrono::milliseconds{1});
- FencedRDTSC();
+namespace Common::X64 {
- // Get the current time.
- const auto start_time = std::chrono::steady_clock::now();
- const u64 tsc_start = FencedRDTSC();
- // Wait for 200 milliseconds.
- std::this_thread::sleep_for(std::chrono::milliseconds{200});
- const auto end_time = std::chrono::steady_clock::now();
- const u64 tsc_end = FencedRDTSC();
- // Calculate differences.
- const u64 timer_diff = static_cast<u64>(
- std::chrono::duration_cast<std::chrono::nanoseconds>(end_time - start_time).count());
- const u64 tsc_diff = tsc_end - tsc_start;
- const u64 tsc_freq = MultiplyAndDivide64(tsc_diff, 1000000000ULL, timer_diff);
- return tsc_freq;
-}
+NativeClock::NativeClock(u64 rdtsc_frequency_)
+ : start_ticks{FencedRDTSC()}, rdtsc_frequency{rdtsc_frequency_},
+ ns_rdtsc_factor{GetFixedPoint64Factor(NsRatio::den, rdtsc_frequency)},
+ us_rdtsc_factor{GetFixedPoint64Factor(UsRatio::den, rdtsc_frequency)},
+ ms_rdtsc_factor{GetFixedPoint64Factor(MsRatio::den, rdtsc_frequency)},
+ cntpct_rdtsc_factor{GetFixedPoint64Factor(CNTFRQ, rdtsc_frequency)},
+ gputick_rdtsc_factor{GetFixedPoint64Factor(GPUTickFreq, rdtsc_frequency)} {}
-namespace X64 {
-NativeClock::NativeClock(u64 emulated_cpu_frequency_, u64 emulated_clock_frequency_,
- u64 rtsc_frequency_)
- : WallClock(emulated_cpu_frequency_, emulated_clock_frequency_, true), rtsc_frequency{
- rtsc_frequency_} {
- time_point.inner.last_measure = FencedRDTSC();
- time_point.inner.accumulated_ticks = 0U;
- ns_rtsc_factor = GetFixedPoint64Factor(NS_RATIO, rtsc_frequency);
- us_rtsc_factor = GetFixedPoint64Factor(US_RATIO, rtsc_frequency);
- ms_rtsc_factor = GetFixedPoint64Factor(MS_RATIO, rtsc_frequency);
- clock_rtsc_factor = GetFixedPoint64Factor(emulated_clock_frequency, rtsc_frequency);
- cpu_rtsc_factor = GetFixedPoint64Factor(emulated_cpu_frequency, rtsc_frequency);
+std::chrono::nanoseconds NativeClock::GetTimeNS() const {
+ return std::chrono::nanoseconds{MultiplyHigh(GetHostTicksElapsed(), ns_rdtsc_factor)};
}
-u64 NativeClock::GetRTSC() {
- TimePoint new_time_point{};
- TimePoint current_time_point{};
-
- current_time_point.pack = Common::AtomicLoad128(time_point.pack.data());
- do {
- const u64 current_measure = FencedRDTSC();
- u64 diff = current_measure - current_time_point.inner.last_measure;
- diff = diff & ~static_cast<u64>(static_cast<s64>(diff) >> 63); // max(diff, 0)
- new_time_point.inner.last_measure = current_measure > current_time_point.inner.last_measure
- ? current_measure
- : current_time_point.inner.last_measure;
- new_time_point.inner.accumulated_ticks = current_time_point.inner.accumulated_ticks + diff;
- } while (!Common::AtomicCompareAndSwap(time_point.pack.data(), new_time_point.pack,
- current_time_point.pack, current_time_point.pack));
- return new_time_point.inner.accumulated_ticks;
+std::chrono::microseconds NativeClock::GetTimeUS() const {
+ return std::chrono::microseconds{MultiplyHigh(GetHostTicksElapsed(), us_rdtsc_factor)};
}
-void NativeClock::Pause(bool is_paused) {
- if (!is_paused) {
- TimePoint current_time_point{};
- TimePoint new_time_point{};
-
- current_time_point.pack = Common::AtomicLoad128(time_point.pack.data());
- do {
- new_time_point.pack = current_time_point.pack;
- new_time_point.inner.last_measure = FencedRDTSC();
- } while (!Common::AtomicCompareAndSwap(time_point.pack.data(), new_time_point.pack,
- current_time_point.pack, current_time_point.pack));
- }
+std::chrono::milliseconds NativeClock::GetTimeMS() const {
+ return std::chrono::milliseconds{MultiplyHigh(GetHostTicksElapsed(), ms_rdtsc_factor)};
}
-std::chrono::nanoseconds NativeClock::GetTimeNS() {
- const u64 rtsc_value = GetRTSC();
- return std::chrono::nanoseconds{MultiplyHigh(rtsc_value, ns_rtsc_factor)};
+u64 NativeClock::GetCNTPCT() const {
+ return MultiplyHigh(GetHostTicksElapsed(), cntpct_rdtsc_factor);
}
-std::chrono::microseconds NativeClock::GetTimeUS() {
- const u64 rtsc_value = GetRTSC();
- return std::chrono::microseconds{MultiplyHigh(rtsc_value, us_rtsc_factor)};
+u64 NativeClock::GetGPUTick() const {
+ return MultiplyHigh(GetHostTicksElapsed(), gputick_rdtsc_factor);
}
-std::chrono::milliseconds NativeClock::GetTimeMS() {
- const u64 rtsc_value = GetRTSC();
- return std::chrono::milliseconds{MultiplyHigh(rtsc_value, ms_rtsc_factor)};
+u64 NativeClock::GetHostTicksNow() const {
+ return FencedRDTSC();
}
-u64 NativeClock::GetClockCycles() {
- const u64 rtsc_value = GetRTSC();
- return MultiplyHigh(rtsc_value, clock_rtsc_factor);
+u64 NativeClock::GetHostTicksElapsed() const {
+ return FencedRDTSC() - start_ticks;
}
-u64 NativeClock::GetCPUCycles() {
- const u64 rtsc_value = GetRTSC();
- return MultiplyHigh(rtsc_value, cpu_rtsc_factor);
+bool NativeClock::IsNative() const {
+ return true;
}
-} // namespace X64
-
-} // namespace Common
+} // namespace Common::X64
diff --git a/src/common/x64/native_clock.h b/src/common/x64/native_clock.h
index 38ae7a462..334415eff 100644
--- a/src/common/x64/native_clock.h
+++ b/src/common/x64/native_clock.h
@@ -5,51 +5,37 @@
#include "common/wall_clock.h"
-namespace Common {
+namespace Common::X64 {
-namespace X64 {
class NativeClock final : public WallClock {
public:
- explicit NativeClock(u64 emulated_cpu_frequency_, u64 emulated_clock_frequency_,
- u64 rtsc_frequency_);
+ explicit NativeClock(u64 rdtsc_frequency_);
- std::chrono::nanoseconds GetTimeNS() override;
+ std::chrono::nanoseconds GetTimeNS() const override;
- std::chrono::microseconds GetTimeUS() override;
+ std::chrono::microseconds GetTimeUS() const override;
- std::chrono::milliseconds GetTimeMS() override;
+ std::chrono::milliseconds GetTimeMS() const override;
- u64 GetClockCycles() override;
+ u64 GetCNTPCT() const override;
- u64 GetCPUCycles() override;
+ u64 GetGPUTick() const override;
- void Pause(bool is_paused) override;
+ u64 GetHostTicksNow() const override;
+
+ u64 GetHostTicksElapsed() const override;
+
+ bool IsNative() const override;
private:
- u64 GetRTSC();
-
- union alignas(16) TimePoint {
- TimePoint() : pack{} {}
- u128 pack{};
- struct Inner {
- u64 last_measure{};
- u64 accumulated_ticks{};
- } inner;
- };
-
- TimePoint time_point;
-
- // factors
- u64 clock_rtsc_factor{};
- u64 cpu_rtsc_factor{};
- u64 ns_rtsc_factor{};
- u64 us_rtsc_factor{};
- u64 ms_rtsc_factor{};
-
- u64 rtsc_frequency;
+ u64 start_ticks;
+ u64 rdtsc_frequency;
+
+ u64 ns_rdtsc_factor;
+ u64 us_rdtsc_factor;
+ u64 ms_rdtsc_factor;
+ u64 cntpct_rdtsc_factor;
+ u64 gputick_rdtsc_factor;
};
-} // namespace X64
-
-u64 EstimateRDTSCFrequency();
-} // namespace Common
+} // namespace Common::X64
diff --git a/src/common/x64/rdtsc.cpp b/src/common/x64/rdtsc.cpp
new file mode 100644
index 000000000..9273274a3
--- /dev/null
+++ b/src/common/x64/rdtsc.cpp
@@ -0,0 +1,39 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <thread>
+
+#include "common/steady_clock.h"
+#include "common/uint128.h"
+#include "common/x64/rdtsc.h"
+
+namespace Common::X64 {
+
+template <u64 Nearest>
+static u64 RoundToNearest(u64 value) {
+ const auto mod = value % Nearest;
+ return mod >= (Nearest / 2) ? (value - mod + Nearest) : (value - mod);
+}
+
+u64 EstimateRDTSCFrequency() {
+ // Discard the first result measuring the rdtsc.
+ FencedRDTSC();
+ std::this_thread::sleep_for(std::chrono::milliseconds{1});
+ FencedRDTSC();
+
+ // Get the current time.
+ const auto start_time = RealTimeClock::Now();
+ const u64 tsc_start = FencedRDTSC();
+ // Wait for 100 milliseconds.
+ std::this_thread::sleep_for(std::chrono::milliseconds{100});
+ const auto end_time = RealTimeClock::Now();
+ const u64 tsc_end = FencedRDTSC();
+ // Calculate differences.
+ const u64 timer_diff = static_cast<u64>(
+ std::chrono::duration_cast<std::chrono::nanoseconds>(end_time - start_time).count());
+ const u64 tsc_diff = tsc_end - tsc_start;
+ const u64 tsc_freq = MultiplyAndDivide64(tsc_diff, 1000000000ULL, timer_diff);
+ return RoundToNearest<100'000>(tsc_freq);
+}
+
+} // namespace Common::X64
diff --git a/src/common/x64/rdtsc.h b/src/common/x64/rdtsc.h
new file mode 100644
index 000000000..0ec4f52f9
--- /dev/null
+++ b/src/common/x64/rdtsc.h
@@ -0,0 +1,37 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#ifdef _MSC_VER
+#include <intrin.h>
+#endif
+
+#include "common/common_types.h"
+
+namespace Common::X64 {
+
+#ifdef _MSC_VER
+__forceinline static u64 FencedRDTSC() {
+ _mm_lfence();
+ _ReadWriteBarrier();
+ const u64 result = __rdtsc();
+ _mm_lfence();
+ _ReadWriteBarrier();
+ return result;
+}
+#else
+static inline u64 FencedRDTSC() {
+ u64 eax;
+ u64 edx;
+ asm volatile("lfence\n\t"
+ "rdtsc\n\t"
+ "lfence\n\t"
+ : "=a"(eax), "=d"(edx));
+ return (edx << 32) | eax;
+}
+#endif
+
+u64 EstimateRDTSCFrequency();
+
+} // namespace Common::X64
diff --git a/src/common/zstd_compression.cpp b/src/common/zstd_compression.cpp
index b71a41b78..cb6ec171b 100644
--- a/src/common/zstd_compression.cpp
+++ b/src/common/zstd_compression.cpp
@@ -33,7 +33,7 @@ std::vector<u8> CompressDataZSTDDefault(const u8* source, std::size_t source_siz
std::vector<u8> DecompressDataZSTD(std::span<const u8> compressed) {
const std::size_t decompressed_size =
- ZSTD_getDecompressedSize(compressed.data(), compressed.size());
+ ZSTD_getFrameContentSize(compressed.data(), compressed.size());
std::vector<u8> decompressed(decompressed_size);
const std::size_t uncompressed_result_size = ZSTD_decompress(
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 5afdeb5ff..3655b8478 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -4,8 +4,6 @@
add_library(core STATIC
arm/arm_interface.h
arm/arm_interface.cpp
- arm/dynarmic/arm_exclusive_monitor.cpp
- arm/dynarmic/arm_exclusive_monitor.h
arm/exclusive_monitor.cpp
arm/exclusive_monitor.h
arm/symbols.cpp
@@ -16,7 +14,6 @@ add_library(core STATIC
core.h
core_timing.cpp
core_timing.h
- core_timing_util.h
cpu_manager.cpp
cpu_manager.h
crypto/aes_util.cpp
@@ -106,6 +103,8 @@ add_library(core STATIC
file_sys/system_archive/time_zone_binary.h
file_sys/vfs.cpp
file_sys/vfs.h
+ file_sys/vfs_cached.cpp
+ file_sys/vfs_cached.h
file_sys/vfs_concat.cpp
file_sys/vfs_concat.h
file_sys/vfs_layered.cpp
@@ -140,6 +139,7 @@ add_library(core STATIC
frontend/emu_window.h
frontend/framebuffer_layout.cpp
frontend/framebuffer_layout.h
+ frontend/graphics_context.h
hid/emulated_console.cpp
hid/emulated_console.h
hid/emulated_controller.cpp
@@ -158,7 +158,7 @@ add_library(core STATIC
hid/motion_input.h
hle/api_version.h
hle/ipc.h
- hle/ipc_helpers.h
+ hle/kernel/board/nintendo/nx/k_memory_layout.cpp
hle/kernel/board/nintendo/nx/k_memory_layout.h
hle/kernel/board/nintendo/nx/k_system_control.cpp
hle/kernel/board/nintendo/nx/k_system_control.h
@@ -168,8 +168,6 @@ add_library(core STATIC
hle/kernel/svc_results.h
hle/kernel/global_scheduler_context.cpp
hle/kernel/global_scheduler_context.h
- hle/kernel/hle_ipc.cpp
- hle/kernel/hle_ipc.h
hle/kernel/init/init_slab_setup.cpp
hle/kernel/init/init_slab_setup.h
hle/kernel/initial_process.h
@@ -182,6 +180,8 @@ add_library(core STATIC
hle/kernel/k_auto_object_container.cpp
hle/kernel/k_auto_object_container.h
hle/kernel/k_affinity_mask.h
+ hle/kernel/k_capabilities.cpp
+ hle/kernel/k_capabilities.h
hle/kernel/k_class_token.cpp
hle/kernel/k_class_token.h
hle/kernel/k_client_port.cpp
@@ -193,6 +193,8 @@ add_library(core STATIC
hle/kernel/k_condition_variable.cpp
hle/kernel/k_condition_variable.h
hle/kernel/k_debug.h
+ hle/kernel/k_device_address_space.cpp
+ hle/kernel/k_device_address_space.h
hle/kernel/k_dynamic_page_manager.h
hle/kernel/k_dynamic_resource_manager.h
hle/kernel/k_dynamic_slab_heap.h
@@ -210,17 +212,17 @@ add_library(core STATIC
hle/kernel/k_light_condition_variable.h
hle/kernel/k_light_lock.cpp
hle/kernel/k_light_lock.h
- hle/kernel/k_linked_list.h
hle/kernel/k_memory_block.h
hle/kernel/k_memory_block_manager.cpp
hle/kernel/k_memory_block_manager.h
hle/kernel/k_memory_layout.cpp
- hle/kernel/k_memory_layout.board.nintendo_nx.cpp
hle/kernel/k_memory_layout.h
hle/kernel/k_memory_manager.cpp
hle/kernel/k_memory_manager.h
hle/kernel/k_memory_region.h
hle/kernel/k_memory_region_type.h
+ hle/kernel/k_object_name.cpp
+ hle/kernel/k_object_name.h
hle/kernel/k_page_bitmap.h
hle/kernel/k_page_buffer.cpp
hle/kernel/k_page_buffer.h
@@ -276,6 +278,7 @@ add_library(core STATIC
hle/kernel/k_trace.h
hle/kernel/k_transfer_memory.cpp
hle/kernel/k_transfer_memory.h
+ hle/kernel/k_typed_address.h
hle/kernel/k_worker_task.h
hle/kernel/k_worker_task_manager.cpp
hle/kernel/k_worker_task_manager.h
@@ -287,14 +290,48 @@ add_library(core STATIC
hle/kernel/physical_memory.h
hle/kernel/process_capability.cpp
hle/kernel/process_capability.h
- hle/kernel/service_thread.cpp
- hle/kernel/service_thread.h
hle/kernel/slab_helpers.h
hle/kernel/svc.cpp
hle/kernel/svc.h
hle/kernel/svc_common.h
hle/kernel/svc_types.h
- hle/kernel/svc_wrap.h
+ hle/kernel/svc/svc_activity.cpp
+ hle/kernel/svc/svc_address_arbiter.cpp
+ hle/kernel/svc/svc_address_translation.cpp
+ hle/kernel/svc/svc_cache.cpp
+ hle/kernel/svc/svc_code_memory.cpp
+ hle/kernel/svc/svc_condition_variable.cpp
+ hle/kernel/svc/svc_debug.cpp
+ hle/kernel/svc/svc_debug_string.cpp
+ hle/kernel/svc/svc_device_address_space.cpp
+ hle/kernel/svc/svc_event.cpp
+ hle/kernel/svc/svc_exception.cpp
+ hle/kernel/svc/svc_info.cpp
+ hle/kernel/svc/svc_insecure_memory.cpp
+ hle/kernel/svc/svc_interrupt_event.cpp
+ hle/kernel/svc/svc_io_pool.cpp
+ hle/kernel/svc/svc_ipc.cpp
+ hle/kernel/svc/svc_kernel_debug.cpp
+ hle/kernel/svc/svc_light_ipc.cpp
+ hle/kernel/svc/svc_lock.cpp
+ hle/kernel/svc/svc_memory.cpp
+ hle/kernel/svc/svc_physical_memory.cpp
+ hle/kernel/svc/svc_port.cpp
+ hle/kernel/svc/svc_power_management.cpp
+ hle/kernel/svc/svc_process.cpp
+ hle/kernel/svc/svc_process_memory.cpp
+ hle/kernel/svc/svc_processor.cpp
+ hle/kernel/svc/svc_query_memory.cpp
+ hle/kernel/svc/svc_register.cpp
+ hle/kernel/svc/svc_resource_limit.cpp
+ hle/kernel/svc/svc_secure_monitor_call.cpp
+ hle/kernel/svc/svc_session.cpp
+ hle/kernel/svc/svc_shared_memory.cpp
+ hle/kernel/svc/svc_synchronization.cpp
+ hle/kernel/svc/svc_thread.cpp
+ hle/kernel/svc/svc_thread_profiler.cpp
+ hle/kernel/svc/svc_tick.cpp
+ hle/kernel/svc/svc_transfer_memory.cpp
hle/result.h
hle/service/acc/acc.cpp
hle/service/acc/acc.h
@@ -344,8 +381,6 @@ add_library(core STATIC
hle/service/am/omm.h
hle/service/am/spsm.cpp
hle/service/am/spsm.h
- hle/service/am/tcap.cpp
- hle/service/am/tcap.h
hle/service/aoc/aoc_u.cpp
hle/service/aoc/aoc_u.h
hle/service/apm/apm.cpp
@@ -356,28 +391,18 @@ add_library(core STATIC
hle/service/apm/apm_interface.h
hle/service/audio/audctl.cpp
hle/service/audio/audctl.h
- hle/service/audio/auddbg.cpp
- hle/service/audio/auddbg.h
- hle/service/audio/audin_a.cpp
- hle/service/audio/audin_a.h
hle/service/audio/audin_u.cpp
hle/service/audio/audin_u.h
hle/service/audio/audio.cpp
hle/service/audio/audio.h
- hle/service/audio/audout_a.cpp
- hle/service/audio/audout_a.h
hle/service/audio/audout_u.cpp
hle/service/audio/audout_u.h
hle/service/audio/audrec_a.cpp
hle/service/audio/audrec_a.h
hle/service/audio/audrec_u.cpp
hle/service/audio/audrec_u.h
- hle/service/audio/audren_a.cpp
- hle/service/audio/audren_a.h
hle/service/audio/audren_u.cpp
hle/service/audio/audren_u.h
- hle/service/audio/codecctl.cpp
- hle/service/audio/codecctl.h
hle/service/audio/errors.h
hle/service/audio/hwopus.cpp
hle/service/audio/hwopus.h
@@ -429,7 +454,6 @@ add_library(core STATIC
hle/service/filesystem/fsp_srv.h
hle/service/fgm/fgm.cpp
hle/service/fgm/fgm.h
- hle/service/friend/errors.h
hle/service/friend/friend.cpp
hle/service/friend/friend.h
hle/service/friend/friend_interface.cpp
@@ -531,25 +555,26 @@ add_library(core STATIC
hle/service/mnpp/mnpp_app.h
hle/service/ncm/ncm.cpp
hle/service/ncm/ncm.h
- hle/service/nfc/mifare_user.cpp
- hle/service/nfc/mifare_user.h
+ hle/service/nfc/common/amiibo_crypto.cpp
+ hle/service/nfc/common/amiibo_crypto.h
+ hle/service/nfc/common/device.cpp
+ hle/service/nfc/common/device.h
+ hle/service/nfc/common/device_manager.cpp
+ hle/service/nfc/common/device_manager.h
+ hle/service/nfc/mifare_result.h
+ hle/service/nfc/mifare_types.h
hle/service/nfc/nfc.cpp
hle/service/nfc/nfc.h
- hle/service/nfc/nfc_device.cpp
- hle/service/nfc/nfc_device.h
+ hle/service/nfc/nfc_interface.cpp
+ hle/service/nfc/nfc_interface.h
hle/service/nfc/nfc_result.h
- hle/service/nfc/nfc_user.cpp
- hle/service/nfc/nfc_user.h
- hle/service/nfp/amiibo_crypto.cpp
- hle/service/nfp/amiibo_crypto.h
+ hle/service/nfc/nfc_types.h
hle/service/nfp/nfp.cpp
hle/service/nfp/nfp.h
- hle/service/nfp/nfp_device.cpp
- hle/service/nfp/nfp_device.h
+ hle/service/nfp/nfp_interface.cpp
+ hle/service/nfp/nfp_interface.h
hle/service/nfp/nfp_result.h
hle/service/nfp/nfp_types.h
- hle/service/nfp/nfp_user.cpp
- hle/service/nfp/nfp_user.h
hle/service/ngct/ngct.cpp
hle/service/ngct/ngct.h
hle/service/nifm/nifm.cpp
@@ -601,35 +626,35 @@ add_library(core STATIC
hle/service/nvdrv/nvdrv_interface.h
hle/service/nvdrv/nvmemp.cpp
hle/service/nvdrv/nvmemp.h
- hle/service/nvflinger/binder.h
- hle/service/nvflinger/buffer_item.h
- hle/service/nvflinger/buffer_item_consumer.cpp
- hle/service/nvflinger/buffer_item_consumer.h
- hle/service/nvflinger/buffer_queue_consumer.cpp
- hle/service/nvflinger/buffer_queue_consumer.h
- hle/service/nvflinger/buffer_queue_core.cpp
- hle/service/nvflinger/buffer_queue_core.h
- hle/service/nvflinger/buffer_queue_defs.h
- hle/service/nvflinger/buffer_queue_producer.cpp
- hle/service/nvflinger/buffer_queue_producer.h
- hle/service/nvflinger/buffer_slot.h
- hle/service/nvflinger/buffer_transform_flags.h
- hle/service/nvflinger/consumer_base.cpp
- hle/service/nvflinger/consumer_base.h
- hle/service/nvflinger/consumer_listener.h
- hle/service/nvflinger/graphic_buffer_producer.cpp
- hle/service/nvflinger/graphic_buffer_producer.h
- hle/service/nvflinger/hos_binder_driver_server.cpp
- hle/service/nvflinger/hos_binder_driver_server.h
- hle/service/nvflinger/nvflinger.cpp
- hle/service/nvflinger/nvflinger.h
- hle/service/nvflinger/parcel.h
- hle/service/nvflinger/pixel_format.h
- hle/service/nvflinger/producer_listener.h
- hle/service/nvflinger/status.h
- hle/service/nvflinger/ui/fence.h
- hle/service/nvflinger/ui/graphic_buffer.h
- hle/service/nvflinger/window.h
+ hle/service/nvnflinger/binder.h
+ hle/service/nvnflinger/buffer_item.h
+ hle/service/nvnflinger/buffer_item_consumer.cpp
+ hle/service/nvnflinger/buffer_item_consumer.h
+ hle/service/nvnflinger/buffer_queue_consumer.cpp
+ hle/service/nvnflinger/buffer_queue_consumer.h
+ hle/service/nvnflinger/buffer_queue_core.cpp
+ hle/service/nvnflinger/buffer_queue_core.h
+ hle/service/nvnflinger/buffer_queue_defs.h
+ hle/service/nvnflinger/buffer_queue_producer.cpp
+ hle/service/nvnflinger/buffer_queue_producer.h
+ hle/service/nvnflinger/buffer_slot.h
+ hle/service/nvnflinger/buffer_transform_flags.h
+ hle/service/nvnflinger/consumer_base.cpp
+ hle/service/nvnflinger/consumer_base.h
+ hle/service/nvnflinger/consumer_listener.h
+ hle/service/nvnflinger/graphic_buffer_producer.cpp
+ hle/service/nvnflinger/graphic_buffer_producer.h
+ hle/service/nvnflinger/hos_binder_driver_server.cpp
+ hle/service/nvnflinger/hos_binder_driver_server.h
+ hle/service/nvnflinger/nvnflinger.cpp
+ hle/service/nvnflinger/nvnflinger.h
+ hle/service/nvnflinger/parcel.h
+ hle/service/nvnflinger/pixel_format.h
+ hle/service/nvnflinger/producer_listener.h
+ hle/service/nvnflinger/status.h
+ hle/service/nvnflinger/ui/fence.h
+ hle/service/nvnflinger/ui/graphic_buffer.h
+ hle/service/nvnflinger/window.h
hle/service/olsc/olsc.cpp
hle/service/olsc/olsc.h
hle/service/pcie/pcie.cpp
@@ -652,8 +677,15 @@ add_library(core STATIC
hle/service/ptm/ptm.h
hle/service/ptm/ts.cpp
hle/service/ptm/ts.h
+ hle/service/hle_ipc.cpp
+ hle/service/hle_ipc.h
+ hle/service/ipc_helpers.h
hle/service/kernel_helpers.cpp
hle/service/kernel_helpers.h
+ hle/service/mutex.cpp
+ hle/service/mutex.h
+ hle/service/server_manager.cpp
+ hle/service/server_manager.h
hle/service/service.cpp
hle/service/service.h
hle/service/set/set.cpp
@@ -672,8 +704,6 @@ add_library(core STATIC
hle/service/sm/sm_controller.h
hle/service/sockets/bsd.cpp
hle/service/sockets/bsd.h
- hle/service/sockets/ethc.cpp
- hle/service/sockets/ethc.h
hle/service/sockets/nsd.cpp
hle/service/sockets/nsd.h
hle/service/sockets/sfdnsres.cpp
@@ -740,8 +770,6 @@ add_library(core STATIC
hle/service/vi/vi_s.h
hle/service/vi/vi_u.cpp
hle/service/vi/vi_u.h
- hle/service/wlan/wlan.cpp
- hle/service/wlan/wlan.h
internal_network/network.cpp
internal_network/network.h
internal_network/network_interface.cpp
@@ -805,8 +833,8 @@ endif()
create_target_directory_groups(core)
-target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core)
-target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls Opus::opus)
+target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core nx_tzdb)
+target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls Opus::opus)
if (MINGW)
target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY})
endif()
@@ -818,12 +846,15 @@ endif()
if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
target_sources(core PRIVATE
+ arm/dynarmic/arm_dynarmic.h
arm/dynarmic/arm_dynarmic_64.cpp
arm/dynarmic/arm_dynarmic_64.h
arm/dynarmic/arm_dynarmic_32.cpp
arm/dynarmic/arm_dynarmic_32.h
- arm/dynarmic/arm_dynarmic_cp15.cpp
- arm/dynarmic/arm_dynarmic_cp15.h
+ arm/dynarmic/dynarmic_cp15.cpp
+ arm/dynarmic/dynarmic_cp15.h
+ arm/dynarmic/dynarmic_exclusive_monitor.cpp
+ arm/dynarmic/dynarmic_exclusive_monitor.h
hle/service/jit/jit_context.cpp
hle/service/jit/jit_context.h
hle/service/jit/jit.cpp
@@ -835,3 +866,7 @@ endif()
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(core PRIVATE precompiled_headers.h)
endif()
+
+if (YUZU_ENABLE_LTO)
+ set_property(TARGET core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
+endif()
diff --git a/src/core/arm/arm_interface.cpp b/src/core/arm/arm_interface.cpp
index 8aa7b9641..beaea64b3 100644
--- a/src/core/arm/arm_interface.cpp
+++ b/src/core/arm/arm_interface.cpp
@@ -13,25 +13,68 @@
#include "core/core.h"
#include "core/debugger/debugger.h"
#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_thread.h"
#include "core/hle/kernel/svc.h"
#include "core/loader/loader.h"
#include "core/memory.h"
-#include "core/arm/dynarmic/arm_dynarmic_32.h"
-#include "core/arm/dynarmic/arm_dynarmic_64.h"
-
namespace Core {
constexpr u64 SEGMENT_BASE = 0x7100000000ull;
std::vector<ARM_Interface::BacktraceEntry> ARM_Interface::GetBacktraceFromContext(
Core::System& system, const ARM_Interface::ThreadContext32& ctx) {
- return ARM_Dynarmic_32::GetBacktraceFromContext(system, ctx);
+ std::vector<BacktraceEntry> out;
+ auto& memory = system.ApplicationMemory();
+
+ const auto& reg = ctx.cpu_registers;
+ u32 pc = reg[15], lr = reg[14], fp = reg[11];
+ out.push_back({"", 0, pc, 0, ""});
+
+ // fp (= r11) points to the last frame record.
+ // Frame records are two words long:
+ // fp+0 : pointer to previous frame record
+ // fp+4 : value of lr for frame
+ for (size_t i = 0; i < 256; i++) {
+ out.push_back({"", 0, lr, 0, ""});
+ if (!fp || (fp % 4 != 0) || !memory.IsValidVirtualAddressRange(fp, 8)) {
+ break;
+ }
+ lr = memory.Read32(fp + 4);
+ fp = memory.Read32(fp);
+ }
+
+ SymbolicateBacktrace(system, out);
+
+ return out;
}
std::vector<ARM_Interface::BacktraceEntry> ARM_Interface::GetBacktraceFromContext(
Core::System& system, const ARM_Interface::ThreadContext64& ctx) {
- return ARM_Dynarmic_64::GetBacktraceFromContext(system, ctx);
+ std::vector<BacktraceEntry> out;
+ auto& memory = system.ApplicationMemory();
+
+ const auto& reg = ctx.cpu_registers;
+ u64 pc = ctx.pc, lr = reg[30], fp = reg[29];
+
+ out.push_back({"", 0, pc, 0, ""});
+
+ // fp (= x29) points to the previous frame record.
+ // Frame records are two words long:
+ // fp+0 : pointer to previous frame record
+ // fp+8 : value of lr for frame
+ for (size_t i = 0; i < 256; i++) {
+ out.push_back({"", 0, lr, 0, ""});
+ if (!fp || (fp % 4 != 0) || !memory.IsValidVirtualAddressRange(fp, 16)) {
+ break;
+ }
+ lr = memory.Read64(fp + 8);
+ fp = memory.Read64(fp);
+ }
+
+ SymbolicateBacktrace(system, out);
+
+ return out;
}
void ARM_Interface::SymbolicateBacktrace(Core::System& system, std::vector<BacktraceEntry>& out) {
@@ -43,9 +86,9 @@ void ARM_Interface::SymbolicateBacktrace(Core::System& system, std::vector<Backt
std::map<std::string, Symbols::Symbols> symbols;
for (const auto& module : modules) {
- symbols.insert_or_assign(module.second,
- Symbols::GetSymbols(module.first, system.Memory(),
- system.CurrentProcess()->Is64BitProcess()));
+ symbols.insert_or_assign(
+ module.second, Symbols::GetSymbols(module.first, system.ApplicationMemory(),
+ system.ApplicationProcess()->Is64BitProcess()));
}
for (auto& entry : out) {
@@ -76,6 +119,18 @@ void ARM_Interface::SymbolicateBacktrace(Core::System& system, std::vector<Backt
}
}
+std::vector<ARM_Interface::BacktraceEntry> ARM_Interface::GetBacktrace() const {
+ if (GetArchitecture() == Architecture::Aarch64) {
+ ThreadContext64 ctx;
+ SaveContext(ctx);
+ return GetBacktraceFromContext(system, ctx);
+ } else {
+ ThreadContext32 ctx;
+ SaveContext(ctx);
+ return GetBacktraceFromContext(system, ctx);
+ }
+}
+
void ARM_Interface::LogBacktrace() const {
const VAddr sp = GetSP();
const VAddr pc = GetPC();
@@ -83,7 +138,6 @@ void ARM_Interface::LogBacktrace() const {
LOG_ERROR(Core_ARM, "{:20}{:20}{:20}{:20}{}", "Module Name", "Address", "Original Address",
"Offset", "Symbol");
LOG_ERROR(Core_ARM, "");
-
const auto backtrace = GetBacktrace();
for (const auto& entry : backtrace) {
LOG_ERROR(Core_ARM, "{:20}{:016X} {:016X} {:016X} {}", entry.module, entry.address,
@@ -97,7 +151,7 @@ void ARM_Interface::Run() {
while (true) {
Kernel::KThread* current_thread{Kernel::GetCurrentThreadPointer(system.Kernel())};
- Dynarmic::HaltReason hr{};
+ HaltReason hr{};
// Notify the debugger and go to sleep if a step was performed
// and this thread has been scheduled again.
@@ -108,17 +162,17 @@ void ARM_Interface::Run() {
}
// Otherwise, run the thread.
- system.EnterDynarmicProfile();
+ system.EnterCPUProfile();
if (current_thread->GetStepState() == StepState::StepPending) {
hr = StepJit();
- if (Has(hr, step_thread)) {
+ if (True(hr & HaltReason::StepThread)) {
current_thread->SetStepState(StepState::StepPerformed);
}
} else {
hr = RunJit();
}
- system.ExitDynarmicProfile();
+ system.ExitCPUProfile();
// If the thread is scheduled for termination, exit the thread.
if (current_thread->HasDpc()) {
@@ -130,8 +184,8 @@ void ARM_Interface::Run() {
// Notify the debugger and go to sleep if a breakpoint was hit,
// or if the thread is unable to continue for any reason.
- if (Has(hr, breakpoint) || Has(hr, no_execute)) {
- if (!Has(hr, no_execute)) {
+ if (True(hr & HaltReason::InstructionBreakpoint) || True(hr & HaltReason::PrefetchAbort)) {
+ if (!True(hr & HaltReason::InstructionBreakpoint)) {
RewindBreakpointInstruction();
}
if (system.DebuggerEnabled()) {
@@ -144,7 +198,7 @@ void ARM_Interface::Run() {
}
// Notify the debugger and go to sleep if a watchpoint was hit.
- if (Has(hr, watchpoint)) {
+ if (True(hr & HaltReason::DataAbort)) {
if (system.DebuggerEnabled()) {
system.GetDebugger().NotifyThreadWatchpoint(current_thread, *HaltedWatchpoint());
}
@@ -153,11 +207,11 @@ void ARM_Interface::Run() {
}
// Handle syscalls and scheduling (this may change the current thread/core)
- if (Has(hr, svc_call)) {
+ if (True(hr & HaltReason::SupervisorCall)) {
Kernel::Svc::Call(system, GetSvcNumber());
break;
}
- if (Has(hr, break_loop) || !uses_wall_clock) {
+ if (True(hr & HaltReason::BreakLoop) || !uses_wall_clock) {
break;
}
}
@@ -168,21 +222,21 @@ void ARM_Interface::LoadWatchpointArray(const WatchpointArray& wp) {
}
const Kernel::DebugWatchpoint* ARM_Interface::MatchingWatchpoint(
- VAddr addr, u64 size, Kernel::DebugWatchpointType access_type) const {
+ u64 addr, u64 size, Kernel::DebugWatchpointType access_type) const {
if (!watchpoints) {
return nullptr;
}
- const VAddr start_address{addr};
- const VAddr end_address{addr + size};
+ const u64 start_address{addr};
+ const u64 end_address{addr + size};
for (size_t i = 0; i < Core::Hardware::NUM_WATCHPOINTS; i++) {
const auto& watch{(*watchpoints)[i]};
- if (end_address <= watch.start_address) {
+ if (end_address <= GetInteger(watch.start_address)) {
continue;
}
- if (start_address >= watch.end_address) {
+ if (start_address >= GetInteger(watch.end_address)) {
continue;
}
if ((access_type & watch.type) == Kernel::DebugWatchpointType::None) {
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index 7d62d030e..d5f2fa09a 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -5,10 +5,9 @@
#include <array>
#include <span>
+#include <string>
#include <vector>
-#include <dynarmic/interface/halt_reason.h>
-
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "core/hardware_properties.h"
@@ -29,6 +28,22 @@ class CPUInterruptHandler;
using WatchpointArray = std::array<Kernel::DebugWatchpoint, Core::Hardware::NUM_WATCHPOINTS>;
+// NOTE: these values match the HaltReason enum in Dynarmic
+enum class HaltReason : u64 {
+ StepThread = 0x00000001,
+ DataAbort = 0x00000004,
+ BreakLoop = 0x02000000,
+ SupervisorCall = 0x04000000,
+ InstructionBreakpoint = 0x08000000,
+ PrefetchAbort = 0x20000000,
+};
+DECLARE_ENUM_FLAG_OPERATORS(HaltReason);
+
+enum class Architecture {
+ Aarch32,
+ Aarch64,
+};
+
/// Generic ARMv8 CPU interface
class ARM_Interface {
public:
@@ -77,7 +92,7 @@ public:
* @param addr Start address of the cache range to clear
* @param size Size of the cache range to clear, starting at addr
*/
- virtual void InvalidateCacheRange(VAddr addr, std::size_t size) = 0;
+ virtual void InvalidateCacheRange(u64 addr, std::size_t size) = 0;
/**
* Notifies CPU emulation that the current page table has changed.
@@ -148,9 +163,9 @@ public:
*/
virtual void SetPSTATE(u32 pstate) = 0;
- virtual VAddr GetTlsAddress() const = 0;
+ virtual u64 GetTlsAddress() const = 0;
- virtual void SetTlsAddress(VAddr address) = 0;
+ virtual void SetTlsAddress(u64 address) = 0;
/**
* Gets the value within the TPIDR_EL0 (read/write software thread ID) register.
@@ -166,8 +181,9 @@ public:
*/
virtual void SetTPIDR_EL0(u64 value) = 0;
- virtual void SaveContext(ThreadContext32& ctx) = 0;
- virtual void SaveContext(ThreadContext64& ctx) = 0;
+ virtual Architecture GetArchitecture() const = 0;
+ virtual void SaveContext(ThreadContext32& ctx) const = 0;
+ virtual void SaveContext(ThreadContext64& ctx) const = 0;
virtual void LoadContext(const ThreadContext32& ctx) = 0;
virtual void LoadContext(const ThreadContext64& ctx) = 0;
void LoadWatchpointArray(const WatchpointArray& wp);
@@ -194,17 +210,9 @@ public:
static std::vector<BacktraceEntry> GetBacktraceFromContext(System& system,
const ThreadContext64& ctx);
- virtual std::vector<BacktraceEntry> GetBacktrace() const = 0;
-
+ std::vector<BacktraceEntry> GetBacktrace() const;
void LogBacktrace() const;
- static constexpr Dynarmic::HaltReason step_thread = Dynarmic::HaltReason::Step;
- static constexpr Dynarmic::HaltReason break_loop = Dynarmic::HaltReason::UserDefined2;
- static constexpr Dynarmic::HaltReason svc_call = Dynarmic::HaltReason::UserDefined3;
- static constexpr Dynarmic::HaltReason breakpoint = Dynarmic::HaltReason::UserDefined4;
- static constexpr Dynarmic::HaltReason watchpoint = Dynarmic::HaltReason::MemoryAbort;
- static constexpr Dynarmic::HaltReason no_execute = Dynarmic::HaltReason::UserDefined6;
-
protected:
/// System context that this ARM interface is running under.
System& system;
@@ -213,10 +221,10 @@ protected:
static void SymbolicateBacktrace(Core::System& system, std::vector<BacktraceEntry>& out);
const Kernel::DebugWatchpoint* MatchingWatchpoint(
- VAddr addr, u64 size, Kernel::DebugWatchpointType access_type) const;
+ u64 addr, u64 size, Kernel::DebugWatchpointType access_type) const;
- virtual Dynarmic::HaltReason RunJit() = 0;
- virtual Dynarmic::HaltReason StepJit() = 0;
+ virtual HaltReason RunJit() = 0;
+ virtual HaltReason StepJit() = 0;
virtual u32 GetSvcNumber() const = 0;
virtual const Kernel::DebugWatchpoint* HaltedWatchpoint() const = 0;
virtual void RewindBreakpointInstruction() = 0;
diff --git a/src/core/arm/dynarmic/arm_dynarmic.h b/src/core/arm/dynarmic/arm_dynarmic.h
new file mode 100644
index 000000000..eef7c3116
--- /dev/null
+++ b/src/core/arm/dynarmic/arm_dynarmic.h
@@ -0,0 +1,29 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <dynarmic/interface/halt_reason.h>
+
+#include "core/arm/arm_interface.h"
+
+namespace Core {
+
+constexpr Dynarmic::HaltReason StepThread = Dynarmic::HaltReason::Step;
+constexpr Dynarmic::HaltReason DataAbort = Dynarmic::HaltReason::MemoryAbort;
+constexpr Dynarmic::HaltReason BreakLoop = Dynarmic::HaltReason::UserDefined2;
+constexpr Dynarmic::HaltReason SupervisorCall = Dynarmic::HaltReason::UserDefined3;
+constexpr Dynarmic::HaltReason InstructionBreakpoint = Dynarmic::HaltReason::UserDefined4;
+constexpr Dynarmic::HaltReason PrefetchAbort = Dynarmic::HaltReason::UserDefined6;
+
+constexpr HaltReason TranslateHaltReason(Dynarmic::HaltReason hr) {
+ static_assert(static_cast<u64>(HaltReason::StepThread) == static_cast<u64>(StepThread));
+ static_assert(static_cast<u64>(HaltReason::DataAbort) == static_cast<u64>(DataAbort));
+ static_assert(static_cast<u64>(HaltReason::BreakLoop) == static_cast<u64>(BreakLoop));
+ static_assert(static_cast<u64>(HaltReason::SupervisorCall) == static_cast<u64>(SupervisorCall));
+ static_assert(static_cast<u64>(HaltReason::InstructionBreakpoint) ==
+ static_cast<u64>(InstructionBreakpoint));
+ static_assert(static_cast<u64>(HaltReason::PrefetchAbort) == static_cast<u64>(PrefetchAbort));
+
+ return static_cast<HaltReason>(hr);
+}
+
+} // namespace Core
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
index 2a7570073..5acf9008d 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
@@ -5,15 +5,15 @@
#include <memory>
#include <dynarmic/interface/A32/a32.h>
#include <dynarmic/interface/A32/config.h>
-#include <dynarmic/interface/A32/context.h>
#include "common/assert.h"
#include "common/literals.h"
#include "common/logging/log.h"
#include "common/page_table.h"
#include "common/settings.h"
+#include "core/arm/dynarmic/arm_dynarmic.h"
#include "core/arm/dynarmic/arm_dynarmic_32.h"
-#include "core/arm/dynarmic/arm_dynarmic_cp15.h"
-#include "core/arm/dynarmic/arm_exclusive_monitor.h"
+#include "core/arm/dynarmic/dynarmic_cp15.h"
+#include "core/arm/dynarmic/dynarmic_exclusive_monitor.h"
#include "core/core.h"
#include "core/core_timing.h"
#include "core/debugger/debugger.h"
@@ -28,8 +28,8 @@ using namespace Common::Literals;
class DynarmicCallbacks32 : public Dynarmic::A32::UserCallbacks {
public:
explicit DynarmicCallbacks32(ARM_Dynarmic_32& parent_)
- : parent{parent_},
- memory(parent.system.Memory()), debugger_enabled{parent.system.DebuggerEnabled()},
+ : parent{parent_}, memory(parent.system.ApplicationMemory()),
+ debugger_enabled{parent.system.DebuggerEnabled()},
check_memory_access{debugger_enabled ||
!Settings::values.cpuopt_ignore_memory_aborts.GetValue()} {}
@@ -105,11 +105,11 @@ public:
switch (exception) {
case Dynarmic::A32::Exception::NoExecuteFault:
LOG_CRITICAL(Core_ARM, "Cannot execute instruction at unmapped address {:#08x}", pc);
- ReturnException(pc, ARM_Interface::no_execute);
+ ReturnException(pc, PrefetchAbort);
return;
default:
if (debugger_enabled) {
- ReturnException(pc, ARM_Interface::breakpoint);
+ ReturnException(pc, InstructionBreakpoint);
return;
}
@@ -122,7 +122,7 @@ public:
void CallSVC(u32 swi) override {
parent.svc_swi = swi;
- parent.jit.load()->HaltExecution(ARM_Interface::svc_call);
+ parent.jit.load()->HaltExecution(SupervisorCall);
}
void AddTicks(u64 ticks) override {
@@ -155,7 +155,7 @@ public:
return std::max<s64>(parent.system.CoreTiming().GetDowncount(), 0);
}
- bool CheckMemoryAccess(VAddr addr, u64 size, Kernel::DebugWatchpointType type) {
+ bool CheckMemoryAccess(u64 addr, u64 size, Kernel::DebugWatchpointType type) {
if (!check_memory_access) {
return true;
}
@@ -163,7 +163,7 @@ public:
if (!memory.IsValidVirtualAddressRange(addr, size)) {
LOG_CRITICAL(Core_ARM, "Stopping execution due to unmapped memory access at {:#x}",
addr);
- parent.jit.load()->HaltExecution(ARM_Interface::no_execute);
+ parent.jit.load()->HaltExecution(PrefetchAbort);
return false;
}
@@ -174,7 +174,7 @@ public:
const auto match{parent.MatchingWatchpoint(addr, size, type)};
if (match) {
parent.halted_watchpoint = match;
- parent.jit.load()->HaltExecution(ARM_Interface::watchpoint);
+ parent.jit.load()->HaltExecution(DataAbort);
return false;
}
@@ -330,12 +330,12 @@ std::shared_ptr<Dynarmic::A32::Jit> ARM_Dynarmic_32::MakeJit(Common::PageTable*
return std::make_unique<Dynarmic::A32::Jit>(config);
}
-Dynarmic::HaltReason ARM_Dynarmic_32::RunJit() {
- return jit.load()->Run();
+HaltReason ARM_Dynarmic_32::RunJit() {
+ return TranslateHaltReason(jit.load()->Run());
}
-Dynarmic::HaltReason ARM_Dynarmic_32::StepJit() {
- return jit.load()->Step();
+HaltReason ARM_Dynarmic_32::StepJit() {
+ return TranslateHaltReason(jit.load()->Step());
}
u32 ARM_Dynarmic_32::GetSvcNumber() const {
@@ -397,7 +397,7 @@ u64 ARM_Dynarmic_32::GetTlsAddress() const {
return cp15->uro;
}
-void ARM_Dynarmic_32::SetTlsAddress(VAddr address) {
+void ARM_Dynarmic_32::SetTlsAddress(u64 address) {
cp15->uro = static_cast<u32>(address);
}
@@ -409,37 +409,35 @@ void ARM_Dynarmic_32::SetTPIDR_EL0(u64 value) {
cp15->uprw = static_cast<u32>(value);
}
-void ARM_Dynarmic_32::SaveContext(ThreadContext32& ctx) {
- Dynarmic::A32::Context context;
- jit.load()->SaveContext(context);
- ctx.cpu_registers = context.Regs();
- ctx.extension_registers = context.ExtRegs();
- ctx.cpsr = context.Cpsr();
- ctx.fpscr = context.Fpscr();
+void ARM_Dynarmic_32::SaveContext(ThreadContext32& ctx) const {
+ Dynarmic::A32::Jit* j = jit.load();
+ ctx.cpu_registers = j->Regs();
+ ctx.extension_registers = j->ExtRegs();
+ ctx.cpsr = j->Cpsr();
+ ctx.fpscr = j->Fpscr();
}
void ARM_Dynarmic_32::LoadContext(const ThreadContext32& ctx) {
- Dynarmic::A32::Context context;
- context.Regs() = ctx.cpu_registers;
- context.ExtRegs() = ctx.extension_registers;
- context.SetCpsr(ctx.cpsr);
- context.SetFpscr(ctx.fpscr);
- jit.load()->LoadContext(context);
+ Dynarmic::A32::Jit* j = jit.load();
+ j->Regs() = ctx.cpu_registers;
+ j->ExtRegs() = ctx.extension_registers;
+ j->SetCpsr(ctx.cpsr);
+ j->SetFpscr(ctx.fpscr);
}
void ARM_Dynarmic_32::SignalInterrupt() {
- jit.load()->HaltExecution(break_loop);
+ jit.load()->HaltExecution(BreakLoop);
}
void ARM_Dynarmic_32::ClearInterrupt() {
- jit.load()->ClearHalt(break_loop);
+ jit.load()->ClearHalt(BreakLoop);
}
void ARM_Dynarmic_32::ClearInstructionCache() {
jit.load()->ClearCache();
}
-void ARM_Dynarmic_32::InvalidateCacheRange(VAddr addr, std::size_t size) {
+void ARM_Dynarmic_32::InvalidateCacheRange(u64 addr, std::size_t size) {
jit.load()->InvalidateCacheRange(static_cast<u32>(addr), size);
}
@@ -465,39 +463,4 @@ void ARM_Dynarmic_32::PageTableChanged(Common::PageTable& page_table,
jit_cache.emplace(key, std::move(new_jit));
}
-std::vector<ARM_Interface::BacktraceEntry> ARM_Dynarmic_32::GetBacktrace(Core::System& system,
- u64 fp, u64 lr, u64 pc) {
- std::vector<BacktraceEntry> out;
- auto& memory = system.Memory();
-
- out.push_back({"", 0, pc, 0, ""});
-
- // fp (= r11) points to the last frame record.
- // Frame records are two words long:
- // fp+0 : pointer to previous frame record
- // fp+4 : value of lr for frame
- for (size_t i = 0; i < 256; i++) {
- out.push_back({"", 0, lr, 0, ""});
- if (!fp || (fp % 4 != 0) || !memory.IsValidVirtualAddressRange(fp, 8)) {
- break;
- }
- lr = memory.Read32(fp + 4);
- fp = memory.Read32(fp);
- }
-
- SymbolicateBacktrace(system, out);
-
- return out;
-}
-
-std::vector<ARM_Interface::BacktraceEntry> ARM_Dynarmic_32::GetBacktraceFromContext(
- System& system, const ThreadContext32& ctx) {
- const auto& reg = ctx.cpu_registers;
- return GetBacktrace(system, reg[11], reg[14], reg[15]);
-}
-
-std::vector<ARM_Interface::BacktraceEntry> ARM_Dynarmic_32::GetBacktrace() const {
- return GetBacktrace(system, GetReg(11), GetReg(14), GetReg(15));
-}
-
} // namespace Core
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.h b/src/core/arm/dynarmic/arm_dynarmic_32.h
index d24ba2289..a990845cb 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_32.h
+++ b/src/core/arm/dynarmic/arm_dynarmic_32.h
@@ -41,8 +41,8 @@ public:
void SetVectorReg(int index, u128 value) override;
u32 GetPSTATE() const override;
void SetPSTATE(u32 pstate) override;
- VAddr GetTlsAddress() const override;
- void SetTlsAddress(VAddr address) override;
+ u64 GetTlsAddress() const override;
+ void SetTlsAddress(u64 address) override;
void SetTPIDR_EL0(u64 value) override;
u64 GetTPIDR_EL0() const override;
@@ -50,8 +50,11 @@ public:
return (GetPSTATE() & 0x20) != 0;
}
- void SaveContext(ThreadContext32& ctx) override;
- void SaveContext(ThreadContext64& ctx) override {}
+ Architecture GetArchitecture() const override {
+ return Architecture::Aarch32;
+ }
+ void SaveContext(ThreadContext32& ctx) const override;
+ void SaveContext(ThreadContext64& ctx) const override {}
void LoadContext(const ThreadContext32& ctx) override;
void LoadContext(const ThreadContext64& ctx) override {}
@@ -60,18 +63,13 @@ public:
void ClearExclusiveState() override;
void ClearInstructionCache() override;
- void InvalidateCacheRange(VAddr addr, std::size_t size) override;
+ void InvalidateCacheRange(u64 addr, std::size_t size) override;
void PageTableChanged(Common::PageTable& new_page_table,
std::size_t new_address_space_size_in_bits) override;
- static std::vector<BacktraceEntry> GetBacktraceFromContext(System& system,
- const ThreadContext32& ctx);
-
- std::vector<BacktraceEntry> GetBacktrace() const override;
-
protected:
- Dynarmic::HaltReason RunJit() override;
- Dynarmic::HaltReason StepJit() override;
+ HaltReason RunJit() override;
+ HaltReason StepJit() override;
u32 GetSvcNumber() const override;
const Kernel::DebugWatchpoint* HaltedWatchpoint() const override;
void RewindBreakpointInstruction() override;
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
index 7229fdc2a..bb97ed5bc 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
@@ -10,8 +10,9 @@
#include "common/logging/log.h"
#include "common/page_table.h"
#include "common/settings.h"
+#include "core/arm/dynarmic/arm_dynarmic.h"
#include "core/arm/dynarmic/arm_dynarmic_64.h"
-#include "core/arm/dynarmic/arm_exclusive_monitor.h"
+#include "core/arm/dynarmic/dynarmic_exclusive_monitor.h"
#include "core/core.h"
#include "core/core_timing.h"
#include "core/debugger/debugger.h"
@@ -28,8 +29,8 @@ using namespace Common::Literals;
class DynarmicCallbacks64 : public Dynarmic::A64::UserCallbacks {
public:
explicit DynarmicCallbacks64(ARM_Dynarmic_64& parent_)
- : parent{parent_},
- memory(parent.system.Memory()), debugger_enabled{parent.system.DebuggerEnabled()},
+ : parent{parent_}, memory(parent.system.ApplicationMemory()),
+ debugger_enabled{parent.system.DebuggerEnabled()},
check_memory_access{debugger_enabled ||
!Settings::values.cpuopt_ignore_memory_aborts.GetValue()} {}
@@ -113,11 +114,11 @@ public:
LOG_ERROR(Core_ARM,
"Unimplemented instruction @ 0x{:X} for {} instructions (instr = {:08X})", pc,
num_instructions, memory.Read32(pc));
- ReturnException(pc, ARM_Interface::no_execute);
+ ReturnException(pc, PrefetchAbort);
}
void InstructionCacheOperationRaised(Dynarmic::A64::InstructionCacheOperation op,
- VAddr value) override {
+ u64 value) override {
switch (op) {
case Dynarmic::A64::InstructionCacheOperation::InvalidateByVAToPoU: {
static constexpr u64 ICACHE_LINE_SIZE = 64;
@@ -148,11 +149,11 @@ public:
return;
case Dynarmic::A64::Exception::NoExecuteFault:
LOG_CRITICAL(Core_ARM, "Cannot execute instruction at unmapped address {:#016x}", pc);
- ReturnException(pc, ARM_Interface::no_execute);
+ ReturnException(pc, PrefetchAbort);
return;
default:
if (debugger_enabled) {
- ReturnException(pc, ARM_Interface::breakpoint);
+ ReturnException(pc, InstructionBreakpoint);
return;
}
@@ -164,7 +165,7 @@ public:
void CallSVC(u32 swi) override {
parent.svc_swi = swi;
- parent.jit.load()->HaltExecution(ARM_Interface::svc_call);
+ parent.jit.load()->HaltExecution(SupervisorCall);
}
void AddTicks(u64 ticks) override {
@@ -199,7 +200,7 @@ public:
return parent.system.CoreTiming().GetClockTicks();
}
- bool CheckMemoryAccess(VAddr addr, u64 size, Kernel::DebugWatchpointType type) {
+ bool CheckMemoryAccess(u64 addr, u64 size, Kernel::DebugWatchpointType type) {
if (!check_memory_access) {
return true;
}
@@ -207,7 +208,7 @@ public:
if (!memory.IsValidVirtualAddressRange(addr, size)) {
LOG_CRITICAL(Core_ARM, "Stopping execution due to unmapped memory access at {:#x}",
addr);
- parent.jit.load()->HaltExecution(ARM_Interface::no_execute);
+ parent.jit.load()->HaltExecution(PrefetchAbort);
return false;
}
@@ -218,7 +219,7 @@ public:
const auto match{parent.MatchingWatchpoint(addr, size, type)};
if (match) {
parent.halted_watchpoint = match;
- parent.jit.load()->HaltExecution(ARM_Interface::watchpoint);
+ parent.jit.load()->HaltExecution(DataAbort);
return false;
}
@@ -383,12 +384,12 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable*
return std::make_shared<Dynarmic::A64::Jit>(config);
}
-Dynarmic::HaltReason ARM_Dynarmic_64::RunJit() {
- return jit.load()->Run();
+HaltReason ARM_Dynarmic_64::RunJit() {
+ return TranslateHaltReason(jit.load()->Run());
}
-Dynarmic::HaltReason ARM_Dynarmic_64::StepJit() {
- return jit.load()->Step();
+HaltReason ARM_Dynarmic_64::StepJit() {
+ return TranslateHaltReason(jit.load()->Step());
}
u32 ARM_Dynarmic_64::GetSvcNumber() const {
@@ -452,7 +453,7 @@ u64 ARM_Dynarmic_64::GetTlsAddress() const {
return cb->tpidrro_el0;
}
-void ARM_Dynarmic_64::SetTlsAddress(VAddr address) {
+void ARM_Dynarmic_64::SetTlsAddress(u64 address) {
cb->tpidrro_el0 = address;
}
@@ -464,7 +465,7 @@ void ARM_Dynarmic_64::SetTPIDR_EL0(u64 value) {
cb->tpidr_el0 = value;
}
-void ARM_Dynarmic_64::SaveContext(ThreadContext64& ctx) {
+void ARM_Dynarmic_64::SaveContext(ThreadContext64& ctx) const {
Dynarmic::A64::Jit* j = jit.load();
ctx.cpu_registers = j->GetRegisters();
ctx.sp = j->GetSP();
@@ -489,18 +490,18 @@ void ARM_Dynarmic_64::LoadContext(const ThreadContext64& ctx) {
}
void ARM_Dynarmic_64::SignalInterrupt() {
- jit.load()->HaltExecution(break_loop);
+ jit.load()->HaltExecution(BreakLoop);
}
void ARM_Dynarmic_64::ClearInterrupt() {
- jit.load()->ClearHalt(break_loop);
+ jit.load()->ClearHalt(BreakLoop);
}
void ARM_Dynarmic_64::ClearInstructionCache() {
jit.load()->ClearCache();
}
-void ARM_Dynarmic_64::InvalidateCacheRange(VAddr addr, std::size_t size) {
+void ARM_Dynarmic_64::InvalidateCacheRange(u64 addr, std::size_t size) {
jit.load()->InvalidateCacheRange(addr, size);
}
@@ -526,39 +527,4 @@ void ARM_Dynarmic_64::PageTableChanged(Common::PageTable& page_table,
jit_cache.emplace(key, std::move(new_jit));
}
-std::vector<ARM_Interface::BacktraceEntry> ARM_Dynarmic_64::GetBacktrace(Core::System& system,
- u64 fp, u64 lr, u64 pc) {
- std::vector<BacktraceEntry> out;
- auto& memory = system.Memory();
-
- out.push_back({"", 0, pc, 0, ""});
-
- // fp (= x29) points to the previous frame record.
- // Frame records are two words long:
- // fp+0 : pointer to previous frame record
- // fp+8 : value of lr for frame
- for (size_t i = 0; i < 256; i++) {
- out.push_back({"", 0, lr, 0, ""});
- if (!fp || (fp % 4 != 0) || !memory.IsValidVirtualAddressRange(fp, 16)) {
- break;
- }
- lr = memory.Read64(fp + 8);
- fp = memory.Read64(fp);
- }
-
- SymbolicateBacktrace(system, out);
-
- return out;
-}
-
-std::vector<ARM_Interface::BacktraceEntry> ARM_Dynarmic_64::GetBacktraceFromContext(
- System& system, const ThreadContext64& ctx) {
- const auto& reg = ctx.cpu_registers;
- return GetBacktrace(system, reg[29], reg[30], ctx.pc);
-}
-
-std::vector<ARM_Interface::BacktraceEntry> ARM_Dynarmic_64::GetBacktrace() const {
- return GetBacktrace(system, GetReg(29), GetReg(30), GetPC());
-}
-
} // namespace Core
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.h b/src/core/arm/dynarmic/arm_dynarmic_64.h
index ed1a5eb96..af2aa1f1c 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_64.h
+++ b/src/core/arm/dynarmic/arm_dynarmic_64.h
@@ -38,13 +38,16 @@ public:
void SetVectorReg(int index, u128 value) override;
u32 GetPSTATE() const override;
void SetPSTATE(u32 pstate) override;
- VAddr GetTlsAddress() const override;
- void SetTlsAddress(VAddr address) override;
+ u64 GetTlsAddress() const override;
+ void SetTlsAddress(u64 address) override;
void SetTPIDR_EL0(u64 value) override;
u64 GetTPIDR_EL0() const override;
- void SaveContext(ThreadContext32& ctx) override {}
- void SaveContext(ThreadContext64& ctx) override;
+ Architecture GetArchitecture() const override {
+ return Architecture::Aarch64;
+ }
+ void SaveContext(ThreadContext32& ctx) const override {}
+ void SaveContext(ThreadContext64& ctx) const override;
void LoadContext(const ThreadContext32& ctx) override {}
void LoadContext(const ThreadContext64& ctx) override;
@@ -53,18 +56,13 @@ public:
void ClearExclusiveState() override;
void ClearInstructionCache() override;
- void InvalidateCacheRange(VAddr addr, std::size_t size) override;
+ void InvalidateCacheRange(u64 addr, std::size_t size) override;
void PageTableChanged(Common::PageTable& new_page_table,
std::size_t new_address_space_size_in_bits) override;
- static std::vector<BacktraceEntry> GetBacktraceFromContext(System& system,
- const ThreadContext64& ctx);
-
- std::vector<BacktraceEntry> GetBacktrace() const override;
-
protected:
- Dynarmic::HaltReason RunJit() override;
- Dynarmic::HaltReason StepJit() override;
+ HaltReason RunJit() override;
+ HaltReason StepJit() override;
u32 GetSvcNumber() const override;
const Kernel::DebugWatchpoint* HaltedWatchpoint() const override;
void RewindBreakpointInstruction() override;
@@ -73,8 +71,6 @@ private:
std::shared_ptr<Dynarmic::A64::Jit> MakeJit(Common::PageTable* page_table,
std::size_t address_space_bits) const;
- static std::vector<BacktraceEntry> GetBacktrace(Core::System& system, u64 fp, u64 lr, u64 pc);
-
using JitCacheKey = std::pair<Common::PageTable*, std::size_t>;
using JitCacheType =
std::unordered_map<JitCacheKey, std::shared_ptr<Dynarmic::A64::Jit>, Common::PairHash>;
diff --git a/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp b/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp
deleted file mode 100644
index 5a4eba3eb..000000000
--- a/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp
+++ /dev/null
@@ -1,161 +0,0 @@
-// SPDX-FileCopyrightText: 2017 Citra Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <fmt/format.h>
-#include "common/logging/log.h"
-#include "core/arm/dynarmic/arm_dynarmic_32.h"
-#include "core/arm/dynarmic/arm_dynarmic_cp15.h"
-#include "core/core.h"
-#include "core/core_timing.h"
-
-#ifdef _MSC_VER
-#include <intrin.h>
-#endif
-
-using Callback = Dynarmic::A32::Coprocessor::Callback;
-using CallbackOrAccessOneWord = Dynarmic::A32::Coprocessor::CallbackOrAccessOneWord;
-using CallbackOrAccessTwoWords = Dynarmic::A32::Coprocessor::CallbackOrAccessTwoWords;
-
-template <>
-struct fmt::formatter<Dynarmic::A32::CoprocReg> {
- constexpr auto parse(format_parse_context& ctx) {
- return ctx.begin();
- }
- template <typename FormatContext>
- auto format(const Dynarmic::A32::CoprocReg& reg, FormatContext& ctx) {
- return fmt::format_to(ctx.out(), "cp{}", static_cast<size_t>(reg));
- }
-};
-
-namespace Core {
-
-static u32 dummy_value;
-
-std::optional<Callback> DynarmicCP15::CompileInternalOperation(bool two, unsigned opc1,
- CoprocReg CRd, CoprocReg CRn,
- CoprocReg CRm, unsigned opc2) {
- LOG_CRITICAL(Core_ARM, "CP15: cdp{} p15, {}, {}, {}, {}, {}", two ? "2" : "", opc1, CRd, CRn,
- CRm, opc2);
- return std::nullopt;
-}
-
-CallbackOrAccessOneWord DynarmicCP15::CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn,
- CoprocReg CRm, unsigned opc2) {
- if (!two && CRn == CoprocReg::C7 && opc1 == 0 && CRm == CoprocReg::C5 && opc2 == 4) {
- // CP15_FLUSH_PREFETCH_BUFFER
- // This is a dummy write, we ignore the value written here.
- return &dummy_value;
- }
-
- if (!two && CRn == CoprocReg::C7 && opc1 == 0 && CRm == CoprocReg::C10) {
- switch (opc2) {
- case 4:
- // CP15_DATA_SYNC_BARRIER
- return Callback{
- [](void*, std::uint32_t, std::uint32_t) -> std::uint64_t {
-#if defined(_MSC_VER) && defined(ARCHITECTURE_x86_64)
- _mm_mfence();
- _mm_lfence();
-#elif defined(ARCHITECTURE_x86_64)
- asm volatile("mfence\n\tlfence\n\t" : : : "memory");
-#elif defined(ARCHITECTURE_arm64)
- asm volatile("dsb sy\n\t" : : : "memory");
-#else
-#error Unsupported architecture
-#endif
- return 0;
- },
- std::nullopt,
- };
- case 5:
- // CP15_DATA_MEMORY_BARRIER
- return Callback{
- [](void*, std::uint32_t, std::uint32_t) -> std::uint64_t {
-#if defined(_MSC_VER) && defined(ARCHITECTURE_x86_64)
- _mm_mfence();
-#elif defined(ARCHITECTURE_x86_64)
- asm volatile("mfence\n\t" : : : "memory");
-#elif defined(ARCHITECTURE_arm64)
- asm volatile("dmb sy\n\t" : : : "memory");
-#else
-#error Unsupported architecture
-#endif
- return 0;
- },
- std::nullopt,
- };
- }
- }
-
- if (!two && CRn == CoprocReg::C13 && opc1 == 0 && CRm == CoprocReg::C0 && opc2 == 2) {
- // CP15_THREAD_UPRW
- return &uprw;
- }
-
- LOG_CRITICAL(Core_ARM, "CP15: mcr{} p15, {}, <Rt>, {}, {}, {}", two ? "2" : "", opc1, CRn, CRm,
- opc2);
- return {};
-}
-
-CallbackOrAccessTwoWords DynarmicCP15::CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) {
- LOG_CRITICAL(Core_ARM, "CP15: mcrr{} p15, {}, <Rt>, <Rt2>, {}", two ? "2" : "", opc, CRm);
- return {};
-}
-
-CallbackOrAccessOneWord DynarmicCP15::CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn,
- CoprocReg CRm, unsigned opc2) {
- if (!two && CRn == CoprocReg::C13 && opc1 == 0 && CRm == CoprocReg::C0) {
- switch (opc2) {
- case 2:
- // CP15_THREAD_UPRW
- return &uprw;
- case 3:
- // CP15_THREAD_URO
- return &uro;
- }
- }
-
- LOG_CRITICAL(Core_ARM, "CP15: mrc{} p15, {}, <Rt>, {}, {}, {}", two ? "2" : "", opc1, CRn, CRm,
- opc2);
- return {};
-}
-
-CallbackOrAccessTwoWords DynarmicCP15::CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) {
- if (!two && opc == 0 && CRm == CoprocReg::C14) {
- // CNTPCT
- const auto callback = [](void* arg, u32, u32) -> u64 {
- const auto& parent_arg = *static_cast<ARM_Dynarmic_32*>(arg);
- return parent_arg.system.CoreTiming().GetClockTicks();
- };
- return Callback{callback, &parent};
- }
-
- LOG_CRITICAL(Core_ARM, "CP15: mrrc{} p15, {}, <Rt>, <Rt2>, {}", two ? "2" : "", opc, CRm);
- return {};
-}
-
-std::optional<Callback> DynarmicCP15::CompileLoadWords(bool two, bool long_transfer, CoprocReg CRd,
- std::optional<u8> option) {
- if (option) {
- LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...], {}", two ? "2" : "",
- long_transfer ? "l" : "", CRd, *option);
- } else {
- LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...]", two ? "2" : "",
- long_transfer ? "l" : "", CRd);
- }
- return std::nullopt;
-}
-
-std::optional<Callback> DynarmicCP15::CompileStoreWords(bool two, bool long_transfer, CoprocReg CRd,
- std::optional<u8> option) {
- if (option) {
- LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...], {}", two ? "2" : "",
- long_transfer ? "l" : "", CRd, *option);
- } else {
- LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...]", two ? "2" : "",
- long_transfer ? "l" : "", CRd);
- }
- return std::nullopt;
-}
-
-} // namespace Core
diff --git a/src/core/arm/dynarmic/arm_exclusive_monitor.cpp b/src/core/arm/dynarmic/arm_exclusive_monitor.cpp
deleted file mode 100644
index fa0c48b25..000000000
--- a/src/core/arm/dynarmic/arm_exclusive_monitor.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/arm/dynarmic/arm_exclusive_monitor.h"
-#include "core/memory.h"
-
-namespace Core {
-
-DynarmicExclusiveMonitor::DynarmicExclusiveMonitor(Memory::Memory& memory_, std::size_t core_count_)
- : monitor{core_count_}, memory{memory_} {}
-
-DynarmicExclusiveMonitor::~DynarmicExclusiveMonitor() = default;
-
-u8 DynarmicExclusiveMonitor::ExclusiveRead8(std::size_t core_index, VAddr addr) {
- return monitor.ReadAndMark<u8>(core_index, addr, [&]() -> u8 { return memory.Read8(addr); });
-}
-
-u16 DynarmicExclusiveMonitor::ExclusiveRead16(std::size_t core_index, VAddr addr) {
- return monitor.ReadAndMark<u16>(core_index, addr, [&]() -> u16 { return memory.Read16(addr); });
-}
-
-u32 DynarmicExclusiveMonitor::ExclusiveRead32(std::size_t core_index, VAddr addr) {
- return monitor.ReadAndMark<u32>(core_index, addr, [&]() -> u32 { return memory.Read32(addr); });
-}
-
-u64 DynarmicExclusiveMonitor::ExclusiveRead64(std::size_t core_index, VAddr addr) {
- return monitor.ReadAndMark<u64>(core_index, addr, [&]() -> u64 { return memory.Read64(addr); });
-}
-
-u128 DynarmicExclusiveMonitor::ExclusiveRead128(std::size_t core_index, VAddr addr) {
- return monitor.ReadAndMark<u128>(core_index, addr, [&]() -> u128 {
- u128 result;
- result[0] = memory.Read64(addr);
- result[1] = memory.Read64(addr + 8);
- return result;
- });
-}
-
-void DynarmicExclusiveMonitor::ClearExclusive(std::size_t core_index) {
- monitor.ClearProcessor(core_index);
-}
-
-bool DynarmicExclusiveMonitor::ExclusiveWrite8(std::size_t core_index, VAddr vaddr, u8 value) {
- return monitor.DoExclusiveOperation<u8>(core_index, vaddr, [&](u8 expected) -> bool {
- return memory.WriteExclusive8(vaddr, value, expected);
- });
-}
-
-bool DynarmicExclusiveMonitor::ExclusiveWrite16(std::size_t core_index, VAddr vaddr, u16 value) {
- return monitor.DoExclusiveOperation<u16>(core_index, vaddr, [&](u16 expected) -> bool {
- return memory.WriteExclusive16(vaddr, value, expected);
- });
-}
-
-bool DynarmicExclusiveMonitor::ExclusiveWrite32(std::size_t core_index, VAddr vaddr, u32 value) {
- return monitor.DoExclusiveOperation<u32>(core_index, vaddr, [&](u32 expected) -> bool {
- return memory.WriteExclusive32(vaddr, value, expected);
- });
-}
-
-bool DynarmicExclusiveMonitor::ExclusiveWrite64(std::size_t core_index, VAddr vaddr, u64 value) {
- return monitor.DoExclusiveOperation<u64>(core_index, vaddr, [&](u64 expected) -> bool {
- return memory.WriteExclusive64(vaddr, value, expected);
- });
-}
-
-bool DynarmicExclusiveMonitor::ExclusiveWrite128(std::size_t core_index, VAddr vaddr, u128 value) {
- return monitor.DoExclusiveOperation<u128>(core_index, vaddr, [&](u128 expected) -> bool {
- return memory.WriteExclusive128(vaddr, value, expected);
- });
-}
-
-} // namespace Core
diff --git a/src/core/arm/dynarmic/dynarmic_cp15.cpp b/src/core/arm/dynarmic/dynarmic_cp15.cpp
new file mode 100644
index 000000000..92c548db0
--- /dev/null
+++ b/src/core/arm/dynarmic/dynarmic_cp15.cpp
@@ -0,0 +1,161 @@
+// SPDX-FileCopyrightText: 2017 Citra Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <fmt/format.h>
+#include "common/logging/log.h"
+#include "core/arm/dynarmic/arm_dynarmic_32.h"
+#include "core/arm/dynarmic/dynarmic_cp15.h"
+#include "core/core.h"
+#include "core/core_timing.h"
+
+#ifdef _MSC_VER
+#include <intrin.h>
+#endif
+
+using Callback = Dynarmic::A32::Coprocessor::Callback;
+using CallbackOrAccessOneWord = Dynarmic::A32::Coprocessor::CallbackOrAccessOneWord;
+using CallbackOrAccessTwoWords = Dynarmic::A32::Coprocessor::CallbackOrAccessTwoWords;
+
+template <>
+struct fmt::formatter<Dynarmic::A32::CoprocReg> {
+ constexpr auto parse(format_parse_context& ctx) {
+ return ctx.begin();
+ }
+ template <typename FormatContext>
+ auto format(const Dynarmic::A32::CoprocReg& reg, FormatContext& ctx) {
+ return fmt::format_to(ctx.out(), "cp{}", static_cast<size_t>(reg));
+ }
+};
+
+namespace Core {
+
+static u32 dummy_value;
+
+std::optional<Callback> DynarmicCP15::CompileInternalOperation(bool two, unsigned opc1,
+ CoprocReg CRd, CoprocReg CRn,
+ CoprocReg CRm, unsigned opc2) {
+ LOG_CRITICAL(Core_ARM, "CP15: cdp{} p15, {}, {}, {}, {}, {}", two ? "2" : "", opc1, CRd, CRn,
+ CRm, opc2);
+ return std::nullopt;
+}
+
+CallbackOrAccessOneWord DynarmicCP15::CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn,
+ CoprocReg CRm, unsigned opc2) {
+ if (!two && CRn == CoprocReg::C7 && opc1 == 0 && CRm == CoprocReg::C5 && opc2 == 4) {
+ // CP15_FLUSH_PREFETCH_BUFFER
+ // This is a dummy write, we ignore the value written here.
+ return &dummy_value;
+ }
+
+ if (!two && CRn == CoprocReg::C7 && opc1 == 0 && CRm == CoprocReg::C10) {
+ switch (opc2) {
+ case 4:
+ // CP15_DATA_SYNC_BARRIER
+ return Callback{
+ [](void*, std::uint32_t, std::uint32_t) -> std::uint64_t {
+#if defined(_MSC_VER) && defined(ARCHITECTURE_x86_64)
+ _mm_mfence();
+ _mm_lfence();
+#elif defined(ARCHITECTURE_x86_64)
+ asm volatile("mfence\n\tlfence\n\t" : : : "memory");
+#elif defined(ARCHITECTURE_arm64)
+ asm volatile("dsb sy\n\t" : : : "memory");
+#else
+#error Unsupported architecture
+#endif
+ return 0;
+ },
+ std::nullopt,
+ };
+ case 5:
+ // CP15_DATA_MEMORY_BARRIER
+ return Callback{
+ [](void*, std::uint32_t, std::uint32_t) -> std::uint64_t {
+#if defined(_MSC_VER) && defined(ARCHITECTURE_x86_64)
+ _mm_mfence();
+#elif defined(ARCHITECTURE_x86_64)
+ asm volatile("mfence\n\t" : : : "memory");
+#elif defined(ARCHITECTURE_arm64)
+ asm volatile("dmb sy\n\t" : : : "memory");
+#else
+#error Unsupported architecture
+#endif
+ return 0;
+ },
+ std::nullopt,
+ };
+ }
+ }
+
+ if (!two && CRn == CoprocReg::C13 && opc1 == 0 && CRm == CoprocReg::C0 && opc2 == 2) {
+ // CP15_THREAD_UPRW
+ return &uprw;
+ }
+
+ LOG_CRITICAL(Core_ARM, "CP15: mcr{} p15, {}, <Rt>, {}, {}, {}", two ? "2" : "", opc1, CRn, CRm,
+ opc2);
+ return {};
+}
+
+CallbackOrAccessTwoWords DynarmicCP15::CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) {
+ LOG_CRITICAL(Core_ARM, "CP15: mcrr{} p15, {}, <Rt>, <Rt2>, {}", two ? "2" : "", opc, CRm);
+ return {};
+}
+
+CallbackOrAccessOneWord DynarmicCP15::CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn,
+ CoprocReg CRm, unsigned opc2) {
+ if (!two && CRn == CoprocReg::C13 && opc1 == 0 && CRm == CoprocReg::C0) {
+ switch (opc2) {
+ case 2:
+ // CP15_THREAD_UPRW
+ return &uprw;
+ case 3:
+ // CP15_THREAD_URO
+ return &uro;
+ }
+ }
+
+ LOG_CRITICAL(Core_ARM, "CP15: mrc{} p15, {}, <Rt>, {}, {}, {}", two ? "2" : "", opc1, CRn, CRm,
+ opc2);
+ return {};
+}
+
+CallbackOrAccessTwoWords DynarmicCP15::CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) {
+ if (!two && opc == 0 && CRm == CoprocReg::C14) {
+ // CNTPCT
+ const auto callback = [](void* arg, u32, u32) -> u64 {
+ const auto& parent_arg = *static_cast<ARM_Dynarmic_32*>(arg);
+ return parent_arg.system.CoreTiming().GetClockTicks();
+ };
+ return Callback{callback, &parent};
+ }
+
+ LOG_CRITICAL(Core_ARM, "CP15: mrrc{} p15, {}, <Rt>, <Rt2>, {}", two ? "2" : "", opc, CRm);
+ return {};
+}
+
+std::optional<Callback> DynarmicCP15::CompileLoadWords(bool two, bool long_transfer, CoprocReg CRd,
+ std::optional<u8> option) {
+ if (option) {
+ LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...], {}", two ? "2" : "",
+ long_transfer ? "l" : "", CRd, *option);
+ } else {
+ LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...]", two ? "2" : "",
+ long_transfer ? "l" : "", CRd);
+ }
+ return std::nullopt;
+}
+
+std::optional<Callback> DynarmicCP15::CompileStoreWords(bool two, bool long_transfer, CoprocReg CRd,
+ std::optional<u8> option) {
+ if (option) {
+ LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...], {}", two ? "2" : "",
+ long_transfer ? "l" : "", CRd, *option);
+ } else {
+ LOG_CRITICAL(Core_ARM, "CP15: mrrc{}{} p15, {}, [...]", two ? "2" : "",
+ long_transfer ? "l" : "", CRd);
+ }
+ return std::nullopt;
+}
+
+} // namespace Core
diff --git a/src/core/arm/dynarmic/arm_dynarmic_cp15.h b/src/core/arm/dynarmic/dynarmic_cp15.h
index d90b3e568..d90b3e568 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_cp15.h
+++ b/src/core/arm/dynarmic/dynarmic_cp15.h
diff --git a/src/core/arm/dynarmic/dynarmic_exclusive_monitor.cpp b/src/core/arm/dynarmic/dynarmic_exclusive_monitor.cpp
new file mode 100644
index 000000000..b5c9c43c4
--- /dev/null
+++ b/src/core/arm/dynarmic/dynarmic_exclusive_monitor.cpp
@@ -0,0 +1,73 @@
+// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/arm/dynarmic/dynarmic_exclusive_monitor.h"
+#include "core/memory.h"
+
+namespace Core {
+
+DynarmicExclusiveMonitor::DynarmicExclusiveMonitor(Memory::Memory& memory_, std::size_t core_count_)
+ : monitor{core_count_}, memory{memory_} {}
+
+DynarmicExclusiveMonitor::~DynarmicExclusiveMonitor() = default;
+
+u8 DynarmicExclusiveMonitor::ExclusiveRead8(std::size_t core_index, VAddr addr) {
+ return monitor.ReadAndMark<u8>(core_index, addr, [&]() -> u8 { return memory.Read8(addr); });
+}
+
+u16 DynarmicExclusiveMonitor::ExclusiveRead16(std::size_t core_index, VAddr addr) {
+ return monitor.ReadAndMark<u16>(core_index, addr, [&]() -> u16 { return memory.Read16(addr); });
+}
+
+u32 DynarmicExclusiveMonitor::ExclusiveRead32(std::size_t core_index, VAddr addr) {
+ return monitor.ReadAndMark<u32>(core_index, addr, [&]() -> u32 { return memory.Read32(addr); });
+}
+
+u64 DynarmicExclusiveMonitor::ExclusiveRead64(std::size_t core_index, VAddr addr) {
+ return monitor.ReadAndMark<u64>(core_index, addr, [&]() -> u64 { return memory.Read64(addr); });
+}
+
+u128 DynarmicExclusiveMonitor::ExclusiveRead128(std::size_t core_index, VAddr addr) {
+ return monitor.ReadAndMark<u128>(core_index, addr, [&]() -> u128 {
+ u128 result;
+ result[0] = memory.Read64(addr);
+ result[1] = memory.Read64(addr + 8);
+ return result;
+ });
+}
+
+void DynarmicExclusiveMonitor::ClearExclusive(std::size_t core_index) {
+ monitor.ClearProcessor(core_index);
+}
+
+bool DynarmicExclusiveMonitor::ExclusiveWrite8(std::size_t core_index, VAddr vaddr, u8 value) {
+ return monitor.DoExclusiveOperation<u8>(core_index, vaddr, [&](u8 expected) -> bool {
+ return memory.WriteExclusive8(vaddr, value, expected);
+ });
+}
+
+bool DynarmicExclusiveMonitor::ExclusiveWrite16(std::size_t core_index, VAddr vaddr, u16 value) {
+ return monitor.DoExclusiveOperation<u16>(core_index, vaddr, [&](u16 expected) -> bool {
+ return memory.WriteExclusive16(vaddr, value, expected);
+ });
+}
+
+bool DynarmicExclusiveMonitor::ExclusiveWrite32(std::size_t core_index, VAddr vaddr, u32 value) {
+ return monitor.DoExclusiveOperation<u32>(core_index, vaddr, [&](u32 expected) -> bool {
+ return memory.WriteExclusive32(vaddr, value, expected);
+ });
+}
+
+bool DynarmicExclusiveMonitor::ExclusiveWrite64(std::size_t core_index, VAddr vaddr, u64 value) {
+ return monitor.DoExclusiveOperation<u64>(core_index, vaddr, [&](u64 expected) -> bool {
+ return memory.WriteExclusive64(vaddr, value, expected);
+ });
+}
+
+bool DynarmicExclusiveMonitor::ExclusiveWrite128(std::size_t core_index, VAddr vaddr, u128 value) {
+ return monitor.DoExclusiveOperation<u128>(core_index, vaddr, [&](u128 expected) -> bool {
+ return memory.WriteExclusive128(vaddr, value, expected);
+ });
+}
+
+} // namespace Core
diff --git a/src/core/arm/dynarmic/arm_exclusive_monitor.h b/src/core/arm/dynarmic/dynarmic_exclusive_monitor.h
index 57e6dd0d0..57e6dd0d0 100644
--- a/src/core/arm/dynarmic/arm_exclusive_monitor.h
+++ b/src/core/arm/dynarmic/dynarmic_exclusive_monitor.h
diff --git a/src/core/arm/exclusive_monitor.cpp b/src/core/arm/exclusive_monitor.cpp
index 20550faeb..6d9a862e1 100644
--- a/src/core/arm/exclusive_monitor.cpp
+++ b/src/core/arm/exclusive_monitor.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#if defined(ARCHITECTURE_x86_64) || defined(ARCHITECTURE_arm64)
-#include "core/arm/dynarmic/arm_exclusive_monitor.h"
+#include "core/arm/dynarmic/dynarmic_exclusive_monitor.h"
#endif
#include "core/arm/exclusive_monitor.h"
#include "core/memory.h"
diff --git a/src/core/constants.cpp b/src/core/constants.cpp
index 4430173ef..760dc5f23 100644
--- a/src/core/constants.cpp
+++ b/src/core/constants.cpp
@@ -4,13 +4,24 @@
#include "core/constants.h"
namespace Core::Constants {
-const std::array<u8, 107> ACCOUNT_BACKUP_JPEG{{
- 0xff, 0xd8, 0xff, 0xdb, 0x00, 0x43, 0x00, 0x03, 0x02, 0x02, 0x02, 0x02, 0x02, 0x03, 0x02, 0x02,
- 0x02, 0x03, 0x03, 0x03, 0x03, 0x04, 0x06, 0x04, 0x04, 0x04, 0x04, 0x04, 0x08, 0x06, 0x06, 0x05,
- 0x06, 0x09, 0x08, 0x0a, 0x0a, 0x09, 0x08, 0x09, 0x09, 0x0a, 0x0c, 0x0f, 0x0c, 0x0a, 0x0b, 0x0e,
- 0x0b, 0x09, 0x09, 0x0d, 0x11, 0x0d, 0x0e, 0x0f, 0x10, 0x10, 0x11, 0x10, 0x0a, 0x0c, 0x12, 0x13,
- 0x12, 0x10, 0x13, 0x0f, 0x10, 0x10, 0x10, 0xff, 0xc9, 0x00, 0x0b, 0x08, 0x00, 0x01, 0x00, 0x01,
- 0x01, 0x01, 0x11, 0x00, 0xff, 0xcc, 0x00, 0x06, 0x00, 0x10, 0x10, 0x05, 0xff, 0xda, 0x00, 0x08,
- 0x01, 0x01, 0x00, 0x00, 0x3f, 0x00, 0xd2, 0xcf, 0x20, 0xff, 0xd9,
+const std::array<u8, 287> ACCOUNT_BACKUP_JPEG{{
+ 0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x48,
+ 0x00, 0x48, 0x00, 0x00, 0xff, 0xdb, 0x00, 0x43, 0x00, 0x06, 0x04, 0x04, 0x04, 0x05, 0x04, 0x06,
+ 0x05, 0x05, 0x06, 0x09, 0x06, 0x05, 0x06, 0x09, 0x0b, 0x08, 0x06, 0x06, 0x08, 0x0b, 0x0c, 0x0a,
+ 0x0a, 0x0b, 0x0a, 0x0a, 0x0c, 0x10, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x10, 0x0c, 0x0e, 0x0f,
+ 0x10, 0x0f, 0x0e, 0x0c, 0x13, 0x13, 0x14, 0x14, 0x13, 0x13, 0x1c, 0x1b, 0x1b, 0x1b, 0x1c, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0xff, 0xdb, 0x00, 0x43, 0x01, 0x07, 0x07,
+ 0x07, 0x0d, 0x0c, 0x0d, 0x18, 0x10, 0x10, 0x18, 0x1a, 0x15, 0x11, 0x15, 0x1a, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
+ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0xff, 0xc0,
+ 0x00, 0x11, 0x08, 0x00, 0x20, 0x00, 0x20, 0x03, 0x01, 0x22, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11,
+ 0x01, 0xff, 0xc4, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc4, 0x00, 0x14, 0x10, 0x01, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc4, 0x00,
+ 0x14, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0xff, 0xc4, 0x00, 0x14, 0x11, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xda, 0x00, 0x0c, 0x03, 0x01, 0x00,
+ 0x02, 0x11, 0x03, 0x11, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xd9,
}};
}
diff --git a/src/core/constants.h b/src/core/constants.h
index f916ce0b6..f1f67d3b8 100644
--- a/src/core/constants.h
+++ b/src/core/constants.h
@@ -12,6 +12,6 @@
namespace Core::Constants {
// ACC Service - Blank JPEG used as user icon in absentia of real one.
-extern const std::array<u8, 107> ACCOUNT_BACKUP_JPEG;
+extern const std::array<u8, 287> ACCOUNT_BACKUP_JPEG;
} // namespace Core::Constants
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 47292cd78..b74fd0a58 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -54,10 +54,10 @@
#include "video_core/renderer_base.h"
#include "video_core/video_core.h"
-MICROPROFILE_DEFINE(ARM_Jit_Dynarmic_CPU0, "ARM JIT", "Dynarmic CPU 0", MP_RGB(255, 64, 64));
-MICROPROFILE_DEFINE(ARM_Jit_Dynarmic_CPU1, "ARM JIT", "Dynarmic CPU 1", MP_RGB(255, 64, 64));
-MICROPROFILE_DEFINE(ARM_Jit_Dynarmic_CPU2, "ARM JIT", "Dynarmic CPU 2", MP_RGB(255, 64, 64));
-MICROPROFILE_DEFINE(ARM_Jit_Dynarmic_CPU3, "ARM JIT", "Dynarmic CPU 3", MP_RGB(255, 64, 64));
+MICROPROFILE_DEFINE(ARM_CPU0, "ARM", "CPU 0", MP_RGB(255, 64, 64));
+MICROPROFILE_DEFINE(ARM_CPU1, "ARM", "CPU 1", MP_RGB(255, 64, 64));
+MICROPROFILE_DEFINE(ARM_CPU2, "ARM", "CPU 2", MP_RGB(255, 64, 64));
+MICROPROFILE_DEFINE(ARM_CPU3, "ARM", "CPU 3", MP_RGB(255, 64, 64));
namespace Core {
@@ -117,8 +117,7 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs,
return nullptr;
}
- return FileSys::ConcatenatedVfsFile::MakeConcatenatedFile(std::move(concat),
- dir->GetName());
+ return FileSys::ConcatenatedVfsFile::MakeConcatenatedFile(concat, dir->GetName());
}
if (Common::FS::IsDir(path)) {
@@ -137,7 +136,7 @@ struct System::Impl {
device_memory = std::make_unique<Core::DeviceMemory>();
is_multicore = Settings::values.use_multi_core.GetValue();
- extended_memory_layout = Settings::values.use_extended_memory_layout.GetValue();
+ extended_memory_layout = Settings::values.use_unsafe_extended_memory_layout.GetValue();
core_timing.SetMulticore(is_multicore);
core_timing.Initialize([&system]() { system.RegisterHostThread(); });
@@ -169,7 +168,7 @@ struct System::Impl {
void ReinitializeIfNecessary(System& system) {
const bool must_reinitialize =
is_multicore != Settings::values.use_multi_core.GetValue() ||
- extended_memory_layout != Settings::values.use_extended_memory_layout.GetValue();
+ extended_memory_layout != Settings::values.use_unsafe_extended_memory_layout.GetValue();
if (!must_reinitialize) {
return;
@@ -178,7 +177,7 @@ struct System::Impl {
LOG_DEBUG(Kernel, "Re-initializing");
is_multicore = Settings::values.use_multi_core.GetValue();
- extended_memory_layout = Settings::values.use_extended_memory_layout.GetValue();
+ extended_memory_layout = Settings::values.use_unsafe_extended_memory_layout.GetValue();
Initialize(system);
}
@@ -186,7 +185,7 @@ struct System::Impl {
void Run() {
std::unique_lock<std::mutex> lk(suspend_guard);
- kernel.Suspend(false);
+ kernel.SuspendApplication(false);
core_timing.SyncPause(false);
is_paused.store(false, std::memory_order_relaxed);
}
@@ -195,7 +194,7 @@ struct System::Impl {
std::unique_lock<std::mutex> lk(suspend_guard);
core_timing.SyncPause(true);
- kernel.Suspend(true);
+ kernel.SuspendApplication(true);
is_paused.store(true, std::memory_order_relaxed);
}
@@ -203,25 +202,33 @@ struct System::Impl {
return is_paused.load(std::memory_order_relaxed);
}
- std::unique_lock<std::mutex> StallProcesses() {
+ std::unique_lock<std::mutex> StallApplication() {
std::unique_lock<std::mutex> lk(suspend_guard);
- kernel.Suspend(true);
+ kernel.SuspendApplication(true);
core_timing.SyncPause(true);
return lk;
}
- void UnstallProcesses() {
+ void UnstallApplication() {
if (!IsPaused()) {
core_timing.SyncPause(false);
- kernel.Suspend(false);
+ kernel.SuspendApplication(false);
}
}
+ void SetNVDECActive(bool is_nvdec_active) {
+ nvdec_active = is_nvdec_active;
+ }
+
+ bool GetNVDECActive() {
+ return nvdec_active;
+ }
+
void InitializeDebugger(System& system, u16 port) {
debugger = std::make_unique<Debugger>(system, port);
}
- SystemResultStatus SetupForMainProcess(System& system, Frontend::EmuWindow& emu_window) {
+ SystemResultStatus SetupForApplicationProcess(System& system, Frontend::EmuWindow& emu_window) {
LOG_DEBUG(Core, "initialized OK");
// Setting changes may require a full system reinitialization (e.g., disabling multicore).
@@ -252,10 +259,10 @@ struct System::Impl {
is_powered_on = true;
exit_lock = false;
- microprofile_dynarmic[0] = MICROPROFILE_TOKEN(ARM_Jit_Dynarmic_CPU0);
- microprofile_dynarmic[1] = MICROPROFILE_TOKEN(ARM_Jit_Dynarmic_CPU1);
- microprofile_dynarmic[2] = MICROPROFILE_TOKEN(ARM_Jit_Dynarmic_CPU2);
- microprofile_dynarmic[3] = MICROPROFILE_TOKEN(ARM_Jit_Dynarmic_CPU3);
+ microprofile_cpu[0] = MICROPROFILE_TOKEN(ARM_CPU0);
+ microprofile_cpu[1] = MICROPROFILE_TOKEN(ARM_CPU1);
+ microprofile_cpu[2] = MICROPROFILE_TOKEN(ARM_CPU2);
+ microprofile_cpu[3] = MICROPROFILE_TOKEN(ARM_CPU3);
LOG_DEBUG(Core, "Initialized OK");
@@ -273,7 +280,7 @@ struct System::Impl {
return SystemResultStatus::ErrorGetLoader;
}
- SystemResultStatus init_result{SetupForMainProcess(system, emu_window)};
+ SystemResultStatus init_result{SetupForApplicationProcess(system, emu_window)};
if (init_result != SystemResultStatus::Success) {
LOG_CRITICAL(Core, "Failed to initialize system (Error {})!",
static_cast<int>(init_result));
@@ -293,6 +300,8 @@ struct System::Impl {
ASSERT(Kernel::KProcess::Initialize(main_process, system, "main",
Kernel::KProcess::ProcessType::Userland, resource_limit)
.IsSuccess());
+ Kernel::KProcess::Register(system.Kernel(), main_process);
+ kernel.MakeApplicationProcess(main_process);
const auto [load_result, load_parameters] = app_loader->Load(*main_process, system);
if (load_result != Loader::ResultStatus::Success) {
LOG_CRITICAL(Core, "Failed to load ROM (Error {})!", load_result);
@@ -302,7 +311,6 @@ struct System::Impl {
static_cast<u32>(SystemResultStatus::ErrorLoader) + static_cast<u32>(load_result));
}
AddGlueRegistrationForProcess(*app_loader, *main_process);
- kernel.MakeCurrentProcess(main_process);
kernel.InitializeCores();
// Initialize cheat engine
@@ -358,7 +366,7 @@ struct System::Impl {
void ShutdownMainProcess() {
SetShuttingDown(true);
- // Log last frame performance stats if game was loded
+ // Log last frame performance stats if game was loaded
if (perf_stats) {
const auto perf_results = GetAndResetPerfStats();
constexpr auto performance = Common::Telemetry::FieldType::Performance;
@@ -380,9 +388,7 @@ struct System::Impl {
gpu_core->NotifyShutdown();
}
- kernel.ShutdownCores();
- cpu_manager.Shutdown();
- debugger.reset();
+ kernel.SuspendApplication(true);
if (services) {
services->KillNVNFlinger();
}
@@ -398,6 +404,9 @@ struct System::Impl {
gpu_core.reset();
host1x_core.reset();
perf_stats.reset();
+ kernel.ShutdownCores();
+ cpu_manager.Shutdown();
+ debugger.reset();
kernel.Shutdown();
memory.Reset();
@@ -433,7 +442,7 @@ struct System::Impl {
}
Service::Glue::ApplicationLaunchProperty launch{};
- launch.title_id = process.GetProgramID();
+ launch.title_id = process.GetProgramId();
FileSys::PatchManager pm{launch.title_id, fs_controller, *content_provider};
launch.version = pm.GetGameVersion().value_or(0);
@@ -484,6 +493,8 @@ struct System::Impl {
std::atomic_bool is_powered_on{};
bool exit_lock = false;
+ bool nvdec_active{};
+
Reporter reporter;
std::unique_ptr<Memory::CheatEngine> cheat_engine;
std::unique_ptr<Tools::Freezer> memory_freezer;
@@ -528,7 +539,7 @@ struct System::Impl {
ExitCallback exit_callback;
std::array<u64, Core::Hardware::NUM_CPU_CORES> dynarmic_ticks{};
- std::array<MicroProfileToken, Core::Hardware::NUM_CPU_CORES> microprofile_dynarmic{};
+ std::array<MicroProfileToken, Core::Hardware::NUM_CPU_CORES> microprofile_cpu{};
};
System::System() : impl{std::make_unique<Impl>(*this)} {}
@@ -563,7 +574,7 @@ void System::InvalidateCpuInstructionCaches() {
impl->kernel.InvalidateAllInstructionCaches();
}
-void System::InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size) {
+void System::InvalidateCpuInstructionCacheRange(u64 addr, std::size_t size) {
impl->kernel.InvalidateCpuInstructionCacheRange(addr, size);
}
@@ -585,12 +596,20 @@ void System::DetachDebugger() {
}
}
-std::unique_lock<std::mutex> System::StallProcesses() {
- return impl->StallProcesses();
+std::unique_lock<std::mutex> System::StallApplication() {
+ return impl->StallApplication();
+}
+
+void System::UnstallApplication() {
+ impl->UnstallApplication();
+}
+
+void System::SetNVDECActive(bool is_nvdec_active) {
+ impl->SetNVDECActive(is_nvdec_active);
}
-void System::UnstallProcesses() {
- impl->UnstallProcesses();
+bool System::GetNVDECActive() {
+ return impl->GetNVDECActive();
}
void System::InitializeDebugger() {
@@ -610,6 +629,10 @@ void System::PrepareReschedule(const u32 core_index) {
impl->kernel.PrepareReschedule(core_index);
}
+size_t System::GetCurrentHostThreadID() const {
+ return impl->kernel.GetCurrentHostThreadID();
+}
+
PerfStatsResults System::GetAndResetPerfStats() {
return impl->GetAndResetPerfStats();
}
@@ -648,8 +671,8 @@ const Kernel::GlobalSchedulerContext& System::GlobalSchedulerContext() const {
return impl->kernel.GlobalSchedulerContext();
}
-Kernel::KProcess* System::CurrentProcess() {
- return impl->kernel.CurrentProcess();
+Kernel::KProcess* System::ApplicationProcess() {
+ return impl->kernel.ApplicationProcess();
}
Core::DeviceMemory& System::DeviceMemory() {
@@ -660,8 +683,8 @@ const Core::DeviceMemory& System::DeviceMemory() const {
return *impl->device_memory;
}
-const Kernel::KProcess* System::CurrentProcess() const {
- return impl->kernel.CurrentProcess();
+const Kernel::KProcess* System::ApplicationProcess() const {
+ return impl->kernel.ApplicationProcess();
}
ARM_Interface& System::ArmInterface(std::size_t core_index) {
@@ -680,11 +703,11 @@ const ExclusiveMonitor& System::Monitor() const {
return impl->kernel.GetExclusiveMonitor();
}
-Memory::Memory& System::Memory() {
+Memory::Memory& System::ApplicationMemory() {
return impl->memory;
}
-const Core::Memory::Memory& System::Memory() const {
+const Core::Memory::Memory& System::ApplicationMemory() const {
return impl->memory;
}
@@ -760,8 +783,8 @@ const Core::SpeedLimiter& System::SpeedLimiter() const {
return impl->speed_limiter;
}
-u64 System::GetCurrentProcessProgramID() const {
- return impl->kernel.CurrentProcess()->GetProgramID();
+u64 System::GetApplicationProcessProgramID() const {
+ return impl->kernel.ApplicationProcess()->GetProgramId();
}
Loader::ResultStatus System::GetGameName(std::string& out) const {
@@ -793,7 +816,7 @@ FileSys::VirtualFilesystem System::GetFilesystem() const {
}
void System::RegisterCheatList(const std::vector<Memory::CheatEntry>& list,
- const std::array<u8, 32>& build_id, VAddr main_region_begin,
+ const std::array<u8, 32>& build_id, u64 main_region_begin,
u64 main_region_size) {
impl->cheat_engine = std::make_unique<Memory::CheatEngine>(*this, list, build_id);
impl->cheat_engine->SetMainMemoryParameters(main_region_begin, main_region_size);
@@ -880,11 +903,11 @@ bool System::GetExitLock() const {
return impl->exit_lock;
}
-void System::SetCurrentProcessBuildID(const CurrentBuildProcessID& id) {
+void System::SetApplicationProcessBuildID(const CurrentBuildProcessID& id) {
impl->build_id = id;
}
-const System::CurrentBuildProcessID& System::GetCurrentProcessBuildID() const {
+const System::CurrentBuildProcessID& System::GetApplicationProcessBuildID() const {
return impl->build_id;
}
@@ -904,14 +927,14 @@ void System::RegisterHostThread() {
impl->kernel.RegisterHostThread();
}
-void System::EnterDynarmicProfile() {
+void System::EnterCPUProfile() {
std::size_t core = impl->kernel.GetCurrentHostThreadID();
- impl->dynarmic_ticks[core] = MicroProfileEnter(impl->microprofile_dynarmic[core]);
+ impl->dynarmic_ticks[core] = MicroProfileEnter(impl->microprofile_cpu[core]);
}
-void System::ExitDynarmicProfile() {
+void System::ExitCPUProfile() {
std::size_t core = impl->kernel.GetCurrentHostThreadID();
- MicroProfileLeave(impl->microprofile_dynarmic[core], impl->dynarmic_ticks[core]);
+ MicroProfileLeave(impl->microprofile_cpu[core], impl->dynarmic_ticks[core]);
}
bool System::IsMulticore() const {
@@ -938,6 +961,10 @@ const Network::RoomNetwork& System::GetRoomNetwork() const {
return impl->room_network;
}
+void System::RunServer(std::unique_ptr<Service::ServerManager>&& server_manager) {
+ return impl->kernel.RunServer(std::move(server_manager));
+}
+
void System::RegisterExecuteProgramCallback(ExecuteProgramCallback&& callback) {
impl->execute_program_callback = std::move(callback);
}
diff --git a/src/core/core.h b/src/core/core.h
index fb5cda2f5..93afc9303 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -61,6 +61,8 @@ namespace Glue {
class ARPManager;
}
+class ServerManager;
+
namespace SM {
class ServiceManager;
} // namespace SM
@@ -144,7 +146,7 @@ public:
/**
* Initializes the system
- * This function will initialize core functionaility used for system emulation
+ * This function will initialize core functionality used for system emulation
*/
void Initialize();
@@ -170,7 +172,7 @@ public:
*/
void InvalidateCpuInstructionCaches();
- void InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size);
+ void InvalidateCpuInstructionCacheRange(u64 addr, std::size_t size);
/// Shutdown the main emulated process.
void ShutdownMainProcess();
@@ -184,8 +186,11 @@ public:
/// Forcibly detach the debugger if it is running.
void DetachDebugger();
- std::unique_lock<std::mutex> StallProcesses();
- void UnstallProcesses();
+ std::unique_lock<std::mutex> StallApplication();
+ void UnstallApplication();
+
+ void SetNVDECActive(bool is_nvdec_active);
+ [[nodiscard]] bool GetNVDECActive();
/**
* Initialize the debugger.
@@ -220,6 +225,8 @@ public:
/// Prepare the core emulation for a reschedule
void PrepareReschedule(u32 core_index);
+ [[nodiscard]] size_t GetCurrentHostThreadID() const;
+
/// Gets and resets core performance statistics
[[nodiscard]] PerfStatsResults GetAndResetPerfStats();
@@ -254,10 +261,10 @@ public:
[[nodiscard]] const ExclusiveMonitor& Monitor() const;
/// Gets a mutable reference to the system memory instance.
- [[nodiscard]] Core::Memory::Memory& Memory();
+ [[nodiscard]] Core::Memory::Memory& ApplicationMemory();
/// Gets a constant reference to the system memory instance.
- [[nodiscard]] const Core::Memory::Memory& Memory() const;
+ [[nodiscard]] const Core::Memory::Memory& ApplicationMemory() const;
/// Gets a mutable reference to the GPU interface
[[nodiscard]] Tegra::GPU& GPU();
@@ -295,11 +302,11 @@ public:
/// Gets the manager for the guest device memory
[[nodiscard]] const Core::DeviceMemory& DeviceMemory() const;
- /// Provides a pointer to the current process
- [[nodiscard]] Kernel::KProcess* CurrentProcess();
+ /// Provides a pointer to the application process
+ [[nodiscard]] Kernel::KProcess* ApplicationProcess();
- /// Provides a constant pointer to the current process.
- [[nodiscard]] const Kernel::KProcess* CurrentProcess() const;
+ /// Provides a constant pointer to the application process.
+ [[nodiscard]] const Kernel::KProcess* ApplicationProcess() const;
/// Provides a reference to the core timing instance.
[[nodiscard]] Timing::CoreTiming& CoreTiming();
@@ -331,7 +338,7 @@ public:
/// Provides a constant reference to the speed limiter
[[nodiscard]] const Core::SpeedLimiter& SpeedLimiter() const;
- [[nodiscard]] u64 GetCurrentProcessProgramID() const;
+ [[nodiscard]] u64 GetApplicationProcessProgramID() const;
/// Gets the name of the current game
[[nodiscard]] Loader::ResultStatus GetGameName(std::string& out) const;
@@ -351,7 +358,7 @@ public:
[[nodiscard]] FileSys::VirtualFilesystem GetFilesystem() const;
void RegisterCheatList(const std::vector<Memory::CheatEntry>& list,
- const std::array<u8, 0x20>& build_id, VAddr main_region_begin,
+ const std::array<u8, 0x20>& build_id, u64 main_region_begin,
u64 main_region_size);
void SetAppletFrontendSet(Service::AM::Applets::AppletFrontendSet&& set);
@@ -396,8 +403,8 @@ public:
void SetExitLock(bool locked);
[[nodiscard]] bool GetExitLock() const;
- void SetCurrentProcessBuildID(const CurrentBuildProcessID& id);
- [[nodiscard]] const CurrentBuildProcessID& GetCurrentProcessBuildID() const;
+ void SetApplicationProcessBuildID(const CurrentBuildProcessID& id);
+ [[nodiscard]] const CurrentBuildProcessID& GetApplicationProcessBuildID() const;
/// Register a host thread as an emulated CPU Core.
void RegisterCoreThread(std::size_t id);
@@ -405,11 +412,11 @@ public:
/// Register a host thread as an auxiliary thread.
void RegisterHostThread();
- /// Enter Dynarmic Microprofile
- void EnterDynarmicProfile();
+ /// Enter CPU Microprofile
+ void EnterCPUProfile();
- /// Exit Dynarmic Microprofile
- void ExitDynarmicProfile();
+ /// Exit CPU Microprofile
+ void ExitCPUProfile();
/// Tells if system is running on multicore.
[[nodiscard]] bool IsMulticore() const;
@@ -417,6 +424,9 @@ public:
/// Tells if the system debugger is enabled.
[[nodiscard]] bool DebuggerEnabled() const;
+ /// Runs a server instance until shutdown.
+ void RunServer(std::unique_ptr<Service::ServerManager>&& server_manager);
+
/// Type used for the frontend to designate a callback for System to re-launch the application
/// using a specified program index.
using ExecuteProgramCallback = std::function<void(std::size_t)>;
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index 6bac6722f..4f0a3f8ea 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -6,14 +6,21 @@
#include <string>
#include <tuple>
+#ifdef _WIN32
+#include "common/windows/timer_resolution.h"
+#endif
+
+#ifdef ARCHITECTURE_x86_64
+#include "common/x64/cpu_wait.h"
+#endif
+
#include "common/microprofile.h"
#include "core/core_timing.h"
-#include "core/core_timing_util.h"
#include "core/hardware_properties.h"
namespace Core::Timing {
-constexpr s64 MAX_SLICE_LENGTH = 4000;
+constexpr s64 MAX_SLICE_LENGTH = 10000;
std::shared_ptr<EventType> CreateEvent(std::string name, TimedCallback&& callback) {
return std::make_shared<EventType>(std::move(callback), std::move(name));
@@ -37,18 +44,17 @@ struct CoreTiming::Event {
}
};
-CoreTiming::CoreTiming()
- : clock{Common::CreateBestMatchingClock(Hardware::BASE_CLOCK_RATE, Hardware::CNTFREQ)} {}
+CoreTiming::CoreTiming() : clock{Common::CreateOptimalClock()} {}
CoreTiming::~CoreTiming() {
Reset();
}
void CoreTiming::ThreadEntry(CoreTiming& instance) {
- constexpr char name[] = "HostTiming";
+ static constexpr char name[] = "HostTiming";
MicroProfileOnThreadCreate(name);
Common::SetCurrentThreadName(name);
- Common::SetCurrentThreadPriority(Common::ThreadPriority::Critical);
+ Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
instance.on_thread_init();
instance.ThreadLoop();
MicroProfileOnThreadExit();
@@ -59,7 +65,7 @@ void CoreTiming::Initialize(std::function<void()>&& on_thread_init_) {
on_thread_init = std::move(on_thread_init_);
event_fifo_id = 0;
shutting_down = false;
- ticks = 0;
+ cpu_ticks = 0;
const auto empty_timed_callback = [](std::uintptr_t, u64, std::chrono::nanoseconds)
-> std::optional<std::chrono::nanoseconds> { return std::nullopt; };
ev_lost = CreateEvent("_lost_event", empty_timed_callback);
@@ -164,38 +170,30 @@ void CoreTiming::UnscheduleEvent(const std::shared_ptr<EventType>& event_type,
}
void CoreTiming::AddTicks(u64 ticks_to_add) {
- ticks += ticks_to_add;
- downcount -= static_cast<s64>(ticks);
+ cpu_ticks += ticks_to_add;
+ downcount -= static_cast<s64>(cpu_ticks);
}
void CoreTiming::Idle() {
- if (!event_queue.empty()) {
- const u64 next_event_time = event_queue.front().time;
- const u64 next_ticks = nsToCycles(std::chrono::nanoseconds(next_event_time)) + 10U;
- if (next_ticks > ticks) {
- ticks = next_ticks;
- }
- return;
- }
- ticks += 1000U;
+ cpu_ticks += 1000U;
}
void CoreTiming::ResetTicks() {
downcount = MAX_SLICE_LENGTH;
}
-u64 CoreTiming::GetCPUTicks() const {
- if (is_multicore) {
- return clock->GetCPUCycles();
+u64 CoreTiming::GetClockTicks() const {
+ if (is_multicore) [[likely]] {
+ return clock->GetCNTPCT();
}
- return ticks;
+ return Common::WallClock::CPUTickToCNTPCT(cpu_ticks);
}
-u64 CoreTiming::GetClockTicks() const {
- if (is_multicore) {
- return clock->GetClockCycles();
+u64 CoreTiming::GetGPUTicks() const {
+ if (is_multicore) [[likely]] {
+ return clock->GetGPUTick();
}
- return CpuCyclesToClockCycles(ticks);
+ return Common::WallClock::CPUTickToGPUTick(cpu_ticks);
}
std::optional<s64> CoreTiming::Advance() {
@@ -252,21 +250,24 @@ void CoreTiming::ThreadLoop() {
const auto next_time = Advance();
if (next_time) {
// There are more events left in the queue, wait until the next event.
- const auto wait_time = *next_time - GetGlobalTimeNs().count();
+ auto wait_time = *next_time - GetGlobalTimeNs().count();
if (wait_time > 0) {
#ifdef _WIN32
- // Assume a timer resolution of 1ms.
- static constexpr s64 TimerResolutionNS = 1000000;
+ const auto timer_resolution_ns =
+ Common::Windows::GetCurrentTimerResolution().count();
- // Sleep in discrete intervals of the timer resolution, and spin the rest.
- const auto sleep_time = wait_time - (wait_time % TimerResolutionNS);
- if (sleep_time > 0) {
- event.WaitFor(std::chrono::nanoseconds(sleep_time));
- }
+ while (!paused && !event.IsSet() && wait_time > 0) {
+ wait_time = *next_time - GetGlobalTimeNs().count();
- while (!paused && !event.IsSet() && GetGlobalTimeNs().count() < *next_time) {
- // Yield to reduce thread starvation.
- std::this_thread::yield();
+ if (wait_time >= timer_resolution_ns) {
+ Common::Windows::SleepForOneTick();
+ } else {
+#ifdef ARCHITECTURE_x86_64
+ Common::X64::MicroSleep();
+#else
+ std::this_thread::yield();
+#endif
+ }
}
if (event.IsSet()) {
@@ -285,9 +286,7 @@ void CoreTiming::ThreadLoop() {
}
paused_set = true;
- clock->Pause(true);
pause_event.Wait();
- clock->Pause(false);
}
}
@@ -304,17 +303,17 @@ void CoreTiming::Reset() {
}
std::chrono::nanoseconds CoreTiming::GetGlobalTimeNs() const {
- if (is_multicore) {
+ if (is_multicore) [[likely]] {
return clock->GetTimeNS();
}
- return CyclesToNs(ticks);
+ return std::chrono::nanoseconds{Common::WallClock::CPUTickToNS(cpu_ticks)};
}
std::chrono::microseconds CoreTiming::GetGlobalTimeUs() const {
- if (is_multicore) {
+ if (is_multicore) [[likely]] {
return clock->GetTimeUS();
}
- return CyclesToUs(ticks);
+ return std::chrono::microseconds{Common::WallClock::CPUTickToUS(cpu_ticks)};
}
} // namespace Core::Timing
diff --git a/src/core/core_timing.h b/src/core/core_timing.h
index da366637b..10db1de55 100644
--- a/src/core/core_timing.h
+++ b/src/core/core_timing.h
@@ -116,12 +116,12 @@ public:
return downcount;
}
- /// Returns current time in emulated CPU cycles
- u64 GetCPUTicks() const;
-
- /// Returns current time in emulated in Clock cycles
+ /// Returns the current CNTPCT tick value.
u64 GetClockTicks() const;
+ /// Returns the current GPU tick value.
+ u64 GetGPUTicks() const;
+
/// Returns current time in microseconds.
std::chrono::microseconds GetGlobalTimeUs() const;
@@ -146,7 +146,7 @@ private:
// The queue is a min-heap using std::make_heap/push_heap/pop_heap.
// We don't use std::priority_queue because we need to be able to serialize, unserialize and
// erase arbitrary events (RemoveEvent()) regardless of the queue order. These aren't
- // accomodated by the standard adaptor class.
+ // accommodated by the standard adaptor class.
std::vector<Event> event_queue;
u64 event_fifo_id = 0;
@@ -167,7 +167,7 @@ private:
s64 pause_end_time{};
/// Cycle timing
- u64 ticks{};
+ u64 cpu_ticks{};
s64 downcount{};
};
diff --git a/src/core/core_timing_util.h b/src/core/core_timing_util.h
deleted file mode 100644
index fe5aaefc7..000000000
--- a/src/core/core_timing_util.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <chrono>
-
-#include "common/common_types.h"
-#include "core/hardware_properties.h"
-
-namespace Core::Timing {
-
-namespace detail {
-constexpr u64 CNTFREQ_ADJUSTED = Hardware::CNTFREQ / 1000;
-constexpr u64 BASE_CLOCK_RATE_ADJUSTED = Hardware::BASE_CLOCK_RATE / 1000;
-} // namespace detail
-
-[[nodiscard]] constexpr s64 msToCycles(std::chrono::milliseconds ms) {
- return ms.count() * detail::BASE_CLOCK_RATE_ADJUSTED;
-}
-
-[[nodiscard]] constexpr s64 usToCycles(std::chrono::microseconds us) {
- return us.count() * detail::BASE_CLOCK_RATE_ADJUSTED / 1000;
-}
-
-[[nodiscard]] constexpr s64 nsToCycles(std::chrono::nanoseconds ns) {
- return ns.count() * detail::BASE_CLOCK_RATE_ADJUSTED / 1000000;
-}
-
-[[nodiscard]] constexpr u64 msToClockCycles(std::chrono::milliseconds ms) {
- return static_cast<u64>(ms.count()) * detail::CNTFREQ_ADJUSTED;
-}
-
-[[nodiscard]] constexpr u64 usToClockCycles(std::chrono::microseconds us) {
- return us.count() * detail::CNTFREQ_ADJUSTED / 1000;
-}
-
-[[nodiscard]] constexpr u64 nsToClockCycles(std::chrono::nanoseconds ns) {
- return ns.count() * detail::CNTFREQ_ADJUSTED / 1000000;
-}
-
-[[nodiscard]] constexpr u64 CpuCyclesToClockCycles(u64 ticks) {
- return ticks * detail::CNTFREQ_ADJUSTED / detail::BASE_CLOCK_RATE_ADJUSTED;
-}
-
-[[nodiscard]] constexpr std::chrono::milliseconds CyclesToMs(s64 cycles) {
- return std::chrono::milliseconds(cycles / detail::BASE_CLOCK_RATE_ADJUSTED);
-}
-
-[[nodiscard]] constexpr std::chrono::nanoseconds CyclesToNs(s64 cycles) {
- return std::chrono::nanoseconds(cycles * 1000000 / detail::BASE_CLOCK_RATE_ADJUSTED);
-}
-
-[[nodiscard]] constexpr std::chrono::microseconds CyclesToUs(s64 cycles) {
- return std::chrono::microseconds(cycles * 1000 / detail::BASE_CLOCK_RATE_ADJUSTED);
-}
-
-} // namespace Core::Timing
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp
index 04a11f444..980bb97f9 100644
--- a/src/core/cpu_manager.cpp
+++ b/src/core/cpu_manager.cpp
@@ -192,7 +192,7 @@ void CpuManager::RunThread(std::stop_token token, std::size_t core) {
}
MicroProfileOnThreadCreate(name.c_str());
Common::SetCurrentThreadName(name.c_str());
- Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
+ Common::SetCurrentThreadPriority(Common::ThreadPriority::Critical);
auto& data = core_data[core];
data.host_context = Common::Fiber::ThreadToFiber();
diff --git a/src/core/crypto/ctr_encryption_layer.h b/src/core/crypto/ctr_encryption_layer.h
index 77f08d776..d85ad8f78 100644
--- a/src/core/crypto/ctr_encryption_layer.h
+++ b/src/core/crypto/ctr_encryption_layer.h
@@ -11,7 +11,7 @@
namespace Core::Crypto {
-// Sits on top of a VirtualFile and provides CTR-mode AES decription.
+// Sits on top of a VirtualFile and provides CTR-mode AES description.
class CTREncryptionLayer : public EncryptionLayer {
public:
using IVData = std::array<u8, 16>;
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index 65a9fe802..4ff2c50e5 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -569,6 +569,10 @@ std::optional<std::pair<Key128, Key128>> ParseTicket(const Ticket& ticket,
}
KeyManager::KeyManager() {
+ ReloadKeys();
+}
+
+void KeyManager::ReloadKeys() {
// Initialize keys
const auto yuzu_keys_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::KeysDir);
@@ -702,6 +706,10 @@ void KeyManager::LoadFromFile(const std::filesystem::path& file_path, bool is_ti
}
}
+bool KeyManager::AreKeysLoaded() const {
+ return !s128_keys.empty() && !s256_keys.empty();
+}
+
bool KeyManager::BaseDeriveNecessary() const {
const auto check_key_existence = [this](auto key_type, u64 index1 = 0, u64 index2 = 0) {
return !HasKey(key_type, index1, index2);
diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h
index dbf9ebfe4..8c864503b 100644
--- a/src/core/crypto/key_manager.h
+++ b/src/core/crypto/key_manager.h
@@ -249,7 +249,7 @@ public:
static bool KeyFileExists(bool title);
- // Call before using the sd seed to attempt to derive it if it dosen't exist. Needs system
+ // Call before using the sd seed to attempt to derive it if it doesn't exist. Needs system
// save 8*43 and the private file to exist.
void DeriveSDSeedLazy();
@@ -267,6 +267,9 @@ public:
bool AddTicketCommon(Ticket raw);
bool AddTicketPersonalized(Ticket raw);
+ void ReloadKeys();
+ bool AreKeysLoaded() const;
+
private:
KeyManager();
diff --git a/src/core/crypto/xts_encryption_layer.h b/src/core/crypto/xts_encryption_layer.h
index 735e660cb..68b5643b1 100644
--- a/src/core/crypto/xts_encryption_layer.h
+++ b/src/core/crypto/xts_encryption_layer.h
@@ -9,7 +9,7 @@
namespace Core::Crypto {
-// Sits on top of a VirtualFile and provides XTS-mode AES decription.
+// Sits on top of a VirtualFile and provides XTS-mode AES description.
class XTSEncryptionLayer : public EncryptionLayer {
public:
XTSEncryptionLayer(FileSys::VirtualFile base, Key256 key);
diff --git a/src/core/debugger/debugger.cpp b/src/core/debugger/debugger.cpp
index a9675df76..a1589fecb 100644
--- a/src/core/debugger/debugger.cpp
+++ b/src/core/debugger/debugger.cpp
@@ -16,6 +16,7 @@
#include "core/debugger/debugger_interface.h"
#include "core/debugger/gdbstub.h"
#include "core/hle/kernel/global_scheduler_context.h"
+#include "core/hle/kernel/k_process.h"
#include "core/hle/kernel/k_scheduler.h"
template <typename Readable, typename Buffer, typename Callback>
@@ -284,12 +285,12 @@ private:
void UpdateActiveThread() {
const auto& threads{ThreadList()};
if (std::find(threads.begin(), threads.end(), state->active_thread) == threads.end()) {
- state->active_thread = threads[0];
+ state->active_thread = threads.front();
}
}
- const std::vector<Kernel::KThread*>& ThreadList() {
- return system.GlobalSchedulerContext().GetThreadList();
+ const std::list<Kernel::KThread*>& ThreadList() {
+ return system.ApplicationProcess()->GetThreadList();
}
private:
diff --git a/src/core/debugger/gdbstub.cpp b/src/core/debugger/gdbstub.cpp
index 9c02b7b31..e2a13bbd2 100644
--- a/src/core/debugger/gdbstub.cpp
+++ b/src/core/debugger/gdbstub.cpp
@@ -96,7 +96,7 @@ static std::string EscapeXML(std::string_view data) {
GDBStub::GDBStub(DebuggerBackend& backend_, Core::System& system_)
: DebuggerFrontend(backend_), system{system_} {
- if (system.CurrentProcess()->Is64BitProcess()) {
+ if (system.ApplicationProcess()->Is64BitProcess()) {
arch = std::make_unique<GDBStubA64>();
} else {
arch = std::make_unique<GDBStubA32>();
@@ -118,14 +118,14 @@ void GDBStub::Watchpoint(Kernel::KThread* thread, const Kernel::DebugWatchpoint&
switch (watch.type) {
case Kernel::DebugWatchpointType::Read:
- SendReply(fmt::format("{}rwatch:{:x};", status, watch.start_address));
+ SendReply(fmt::format("{}rwatch:{:x};", status, GetInteger(watch.start_address)));
break;
case Kernel::DebugWatchpointType::Write:
- SendReply(fmt::format("{}watch:{:x};", status, watch.start_address));
+ SendReply(fmt::format("{}watch:{:x};", status, GetInteger(watch.start_address)));
break;
case Kernel::DebugWatchpointType::ReadOrWrite:
default:
- SendReply(fmt::format("{}awatch:{:x};", status, watch.start_address));
+ SendReply(fmt::format("{}awatch:{:x};", status, GetInteger(watch.start_address)));
break;
}
}
@@ -261,9 +261,9 @@ void GDBStub::ExecuteCommand(std::string_view packet, std::vector<DebuggerAction
const size_t addr{static_cast<size_t>(strtoll(command.data(), nullptr, 16))};
const size_t size{static_cast<size_t>(strtoll(command.data() + sep, nullptr, 16))};
- if (system.Memory().IsValidVirtualAddressRange(addr, size)) {
+ if (system.ApplicationMemory().IsValidVirtualAddressRange(addr, size)) {
std::vector<u8> mem(size);
- system.Memory().ReadBlock(addr, mem.data(), size);
+ system.ApplicationMemory().ReadBlock(addr, mem.data(), size);
SendReply(Common::HexToString(mem));
} else {
@@ -281,8 +281,8 @@ void GDBStub::ExecuteCommand(std::string_view packet, std::vector<DebuggerAction
const auto mem_substr{std::string_view(command).substr(mem_sep)};
const auto mem{Common::HexStringToVector(mem_substr, false)};
- if (system.Memory().IsValidVirtualAddressRange(addr, size)) {
- system.Memory().WriteBlock(addr, mem.data(), size);
+ if (system.ApplicationMemory().IsValidVirtualAddressRange(addr, size)) {
+ system.ApplicationMemory().WriteBlock(addr, mem.data(), size);
system.InvalidateCpuInstructionCacheRange(addr, size);
SendReply(GDB_STUB_REPLY_OK);
} else {
@@ -325,7 +325,7 @@ void GDBStub::HandleBreakpointInsert(std::string_view command) {
const size_t addr{static_cast<size_t>(strtoll(command.data() + addr_sep, nullptr, 16))};
const size_t size{static_cast<size_t>(strtoll(command.data() + size_sep, nullptr, 16))};
- if (!system.Memory().IsValidVirtualAddressRange(addr, size)) {
+ if (!system.ApplicationMemory().IsValidVirtualAddressRange(addr, size)) {
SendReply(GDB_STUB_REPLY_ERR);
return;
}
@@ -334,22 +334,22 @@ void GDBStub::HandleBreakpointInsert(std::string_view command) {
switch (type) {
case BreakpointType::Software:
- replaced_instructions[addr] = system.Memory().Read32(addr);
- system.Memory().Write32(addr, arch->BreakpointInstruction());
+ replaced_instructions[addr] = system.ApplicationMemory().Read32(addr);
+ system.ApplicationMemory().Write32(addr, arch->BreakpointInstruction());
system.InvalidateCpuInstructionCacheRange(addr, sizeof(u32));
success = true;
break;
case BreakpointType::WriteWatch:
- success = system.CurrentProcess()->InsertWatchpoint(system, addr, size,
- Kernel::DebugWatchpointType::Write);
+ success = system.ApplicationProcess()->InsertWatchpoint(addr, size,
+ Kernel::DebugWatchpointType::Write);
break;
case BreakpointType::ReadWatch:
- success = system.CurrentProcess()->InsertWatchpoint(system, addr, size,
- Kernel::DebugWatchpointType::Read);
+ success = system.ApplicationProcess()->InsertWatchpoint(addr, size,
+ Kernel::DebugWatchpointType::Read);
break;
case BreakpointType::AccessWatch:
- success = system.CurrentProcess()->InsertWatchpoint(
- system, addr, size, Kernel::DebugWatchpointType::ReadOrWrite);
+ success = system.ApplicationProcess()->InsertWatchpoint(
+ addr, size, Kernel::DebugWatchpointType::ReadOrWrite);
break;
case BreakpointType::Hardware:
default:
@@ -372,7 +372,7 @@ void GDBStub::HandleBreakpointRemove(std::string_view command) {
const size_t addr{static_cast<size_t>(strtoll(command.data() + addr_sep, nullptr, 16))};
const size_t size{static_cast<size_t>(strtoll(command.data() + size_sep, nullptr, 16))};
- if (!system.Memory().IsValidVirtualAddressRange(addr, size)) {
+ if (!system.ApplicationMemory().IsValidVirtualAddressRange(addr, size)) {
SendReply(GDB_STUB_REPLY_ERR);
return;
}
@@ -383,7 +383,7 @@ void GDBStub::HandleBreakpointRemove(std::string_view command) {
case BreakpointType::Software: {
const auto orig_insn{replaced_instructions.find(addr)};
if (orig_insn != replaced_instructions.end()) {
- system.Memory().Write32(addr, orig_insn->second);
+ system.ApplicationMemory().Write32(addr, orig_insn->second);
system.InvalidateCpuInstructionCacheRange(addr, sizeof(u32));
replaced_instructions.erase(addr);
success = true;
@@ -391,16 +391,16 @@ void GDBStub::HandleBreakpointRemove(std::string_view command) {
break;
}
case BreakpointType::WriteWatch:
- success = system.CurrentProcess()->RemoveWatchpoint(system, addr, size,
- Kernel::DebugWatchpointType::Write);
+ success = system.ApplicationProcess()->RemoveWatchpoint(addr, size,
+ Kernel::DebugWatchpointType::Write);
break;
case BreakpointType::ReadWatch:
- success = system.CurrentProcess()->RemoveWatchpoint(system, addr, size,
- Kernel::DebugWatchpointType::Read);
+ success = system.ApplicationProcess()->RemoveWatchpoint(addr, size,
+ Kernel::DebugWatchpointType::Read);
break;
case BreakpointType::AccessWatch:
- success = system.CurrentProcess()->RemoveWatchpoint(
- system, addr, size, Kernel::DebugWatchpointType::ReadOrWrite);
+ success = system.ApplicationProcess()->RemoveWatchpoint(
+ addr, size, Kernel::DebugWatchpointType::ReadOrWrite);
break;
case BreakpointType::Hardware:
default:
@@ -421,7 +421,7 @@ void GDBStub::HandleBreakpointRemove(std::string_view command) {
static std::optional<std::string> GetNameFromThreadType32(Core::Memory::Memory& memory,
const Kernel::KThread* thread) {
// Read thread type from TLS
- const VAddr tls_thread_type{memory.Read32(thread->GetTLSAddress() + 0x1fc)};
+ const VAddr tls_thread_type{memory.Read32(thread->GetTlsAddress() + 0x1fc)};
const VAddr argument_thread_type{thread->GetArgument()};
if (argument_thread_type && tls_thread_type != argument_thread_type) {
@@ -452,7 +452,7 @@ static std::optional<std::string> GetNameFromThreadType32(Core::Memory::Memory&
static std::optional<std::string> GetNameFromThreadType64(Core::Memory::Memory& memory,
const Kernel::KThread* thread) {
// Read thread type from TLS
- const VAddr tls_thread_type{memory.Read64(thread->GetTLSAddress() + 0x1f8)};
+ const VAddr tls_thread_type{memory.Read64(thread->GetTlsAddress() + 0x1f8)};
const VAddr argument_thread_type{thread->GetArgument()};
if (argument_thread_type && tls_thread_type != argument_thread_type) {
@@ -482,10 +482,10 @@ static std::optional<std::string> GetNameFromThreadType64(Core::Memory::Memory&
static std::optional<std::string> GetThreadName(Core::System& system,
const Kernel::KThread* thread) {
- if (system.CurrentProcess()->Is64BitProcess()) {
- return GetNameFromThreadType64(system.Memory(), thread);
+ if (system.ApplicationProcess()->Is64BitProcess()) {
+ return GetNameFromThreadType64(system.ApplicationMemory(), thread);
} else {
- return GetNameFromThreadType32(system.Memory(), thread);
+ return GetNameFromThreadType32(system.ApplicationMemory(), thread);
}
}
@@ -554,8 +554,9 @@ void GDBStub::HandleQuery(std::string_view command) {
if (main != modules.end()) {
SendReply(fmt::format("TextSeg={:x}", main->first));
} else {
- SendReply(fmt::format("TextSeg={:x}",
- system.CurrentProcess()->PageTable().GetCodeRegionStart()));
+ SendReply(fmt::format(
+ "TextSeg={:x}",
+ GetInteger(system.ApplicationProcess()->PageTable().GetCodeRegionStart())));
}
} else if (command.starts_with("Xfer:libraries:read::")) {
Loader::AppLoader::Modules modules;
@@ -573,10 +574,10 @@ void GDBStub::HandleQuery(std::string_view command) {
SendReply(PaginateBuffer(buffer, command.substr(21)));
} else if (command.starts_with("fThreadInfo")) {
// beginning of list
- const auto& threads = system.GlobalSchedulerContext().GetThreadList();
+ const auto& threads = system.ApplicationProcess()->GetThreadList();
std::vector<std::string> thread_ids;
for (const auto& thread : threads) {
- thread_ids.push_back(fmt::format("{:x}", thread->GetThreadID()));
+ thread_ids.push_back(fmt::format("{:x}", thread->GetThreadId()));
}
SendReply(fmt::format("m{}", fmt::join(thread_ids, ",")));
} else if (command.starts_with("sThreadInfo")) {
@@ -587,15 +588,15 @@ void GDBStub::HandleQuery(std::string_view command) {
buffer += R"(<?xml version="1.0"?>)";
buffer += "<threads>";
- const auto& threads = system.GlobalSchedulerContext().GetThreadList();
+ const auto& threads = system.ApplicationProcess()->GetThreadList();
for (const auto* thread : threads) {
auto thread_name{GetThreadName(system, thread)};
if (!thread_name) {
- thread_name = fmt::format("Thread {:d}", thread->GetThreadID());
+ thread_name = fmt::format("Thread {:d}", thread->GetThreadId());
}
buffer += fmt::format(R"(<thread id="{:x}" core="{:d}" name="{}">{}</thread>)",
- thread->GetThreadID(), thread->GetActiveCore(),
+ thread->GetThreadId(), thread->GetActiveCore(),
EscapeXML(*thread_name), GetThreadState(thread));
}
@@ -729,7 +730,7 @@ void GDBStub::HandleRcmd(const std::vector<u8>& command) {
std::string_view command_str{reinterpret_cast<const char*>(&command[0]), command.size()};
std::string reply;
- auto* process = system.CurrentProcess();
+ auto* process = system.ApplicationProcess();
auto& page_table = process->PageTable();
const char* commands = "Commands:\n"
@@ -756,18 +757,21 @@ void GDBStub::HandleRcmd(const std::vector<u8>& command) {
reply = fmt::format("Process: {:#x} ({})\n"
"Program Id: {:#018x}\n",
- process->GetProcessID(), process->GetName(), process->GetProgramID());
- reply +=
- fmt::format("Layout:\n"
- " Alias: {:#012x} - {:#012x}\n"
- " Heap: {:#012x} - {:#012x}\n"
- " Aslr: {:#012x} - {:#012x}\n"
- " Stack: {:#012x} - {:#012x}\n"
- "Modules:\n",
- page_table.GetAliasRegionStart(), page_table.GetAliasRegionEnd(),
- page_table.GetHeapRegionStart(), page_table.GetHeapRegionEnd(),
- page_table.GetAliasCodeRegionStart(), page_table.GetAliasCodeRegionEnd(),
- page_table.GetStackRegionStart(), page_table.GetStackRegionEnd());
+ process->GetProcessId(), process->GetName(), process->GetProgramId());
+ reply += fmt::format("Layout:\n"
+ " Alias: {:#012x} - {:#012x}\n"
+ " Heap: {:#012x} - {:#012x}\n"
+ " Aslr: {:#012x} - {:#012x}\n"
+ " Stack: {:#012x} - {:#012x}\n"
+ "Modules:\n",
+ GetInteger(page_table.GetAliasRegionStart()),
+ GetInteger(page_table.GetAliasRegionEnd()),
+ GetInteger(page_table.GetHeapRegionStart()),
+ GetInteger(page_table.GetHeapRegionEnd()),
+ GetInteger(page_table.GetAliasCodeRegionStart()),
+ GetInteger(page_table.GetAliasCodeRegionEnd()),
+ GetInteger(page_table.GetStackRegionStart()),
+ GetInteger(page_table.GetStackRegionEnd()));
for (const auto& [vaddr, name] : modules) {
reply += fmt::format(" {:#012x} - {:#012x} {}\n", vaddr,
@@ -817,9 +821,9 @@ void GDBStub::HandleRcmd(const std::vector<u8>& command) {
}
Kernel::KThread* GDBStub::GetThreadByID(u64 thread_id) {
- const auto& threads{system.GlobalSchedulerContext().GetThreadList()};
+ const auto& threads{system.ApplicationProcess()->GetThreadList()};
for (auto* thread : threads) {
- if (thread->GetThreadID() == thread_id) {
+ if (thread->GetThreadId() == thread_id) {
return thread;
}
}
diff --git a/src/core/debugger/gdbstub_arch.cpp b/src/core/debugger/gdbstub_arch.cpp
index 4bef09bd7..75c94a91a 100644
--- a/src/core/debugger/gdbstub_arch.cpp
+++ b/src/core/debugger/gdbstub_arch.cpp
@@ -41,9 +41,8 @@ static void PutSIMDRegister(std::array<u32, 64>& simd_regs, size_t offset, const
// For sample XML files see the GDB source /gdb/features
// This XML defines what the registers are for this specific ARM device
-std::string GDBStubA64::GetTargetXML() const {
- constexpr const char* target_xml =
- R"(<?xml version="1.0"?>
+std::string_view GDBStubA64::GetTargetXML() const {
+ return R"(<?xml version="1.0"?>
<!DOCTYPE target SYSTEM "gdb-target.dtd">
<target version="1.0">
<architecture>aarch64</architecture>
@@ -178,8 +177,6 @@ std::string GDBStubA64::GetTargetXML() const {
<reg name="fpcr" bitsize="32"/>
</feature>
</target>)";
-
- return target_xml;
}
std::string GDBStubA64::RegRead(const Kernel::KThread* thread, size_t id) const {
@@ -262,7 +259,7 @@ void GDBStubA64::WriteRegisters(Kernel::KThread* thread, std::string_view regist
std::string GDBStubA64::ThreadStatus(const Kernel::KThread* thread, u8 signal) const {
return fmt::format("T{:02x}{:02x}:{};{:02x}:{};{:02x}:{};thread:{:x};", signal, PC_REGISTER,
RegRead(thread, PC_REGISTER), SP_REGISTER, RegRead(thread, SP_REGISTER),
- LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadID());
+ LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadId());
}
u32 GDBStubA64::BreakpointInstruction() const {
@@ -270,9 +267,8 @@ u32 GDBStubA64::BreakpointInstruction() const {
return 0xd4200000;
}
-std::string GDBStubA32::GetTargetXML() const {
- constexpr const char* target_xml =
- R"(<?xml version="1.0"?>
+std::string_view GDBStubA32::GetTargetXML() const {
+ return R"(<?xml version="1.0"?>
<!DOCTYPE target SYSTEM "gdb-target.dtd">
<target version="1.0">
<architecture>arm</architecture>
@@ -378,8 +374,6 @@ std::string GDBStubA32::GetTargetXML() const {
<reg name="fpscr" bitsize="32" type="int" group="float" regnum="80"/>
</feature>
</target>)";
-
- return target_xml;
}
std::string GDBStubA32::RegRead(const Kernel::KThread* thread, size_t id) const {
@@ -475,7 +469,7 @@ void GDBStubA32::WriteRegisters(Kernel::KThread* thread, std::string_view regist
std::string GDBStubA32::ThreadStatus(const Kernel::KThread* thread, u8 signal) const {
return fmt::format("T{:02x}{:02x}:{};{:02x}:{};{:02x}:{};thread:{:x};", signal, PC_REGISTER,
RegRead(thread, PC_REGISTER), SP_REGISTER, RegRead(thread, SP_REGISTER),
- LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadID());
+ LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadId());
}
u32 GDBStubA32::BreakpointInstruction() const {
diff --git a/src/core/debugger/gdbstub_arch.h b/src/core/debugger/gdbstub_arch.h
index 2540d6456..34530c788 100644
--- a/src/core/debugger/gdbstub_arch.h
+++ b/src/core/debugger/gdbstub_arch.h
@@ -16,7 +16,7 @@ namespace Core {
class GDBStubArch {
public:
virtual ~GDBStubArch() = default;
- virtual std::string GetTargetXML() const = 0;
+ virtual std::string_view GetTargetXML() const = 0;
virtual std::string RegRead(const Kernel::KThread* thread, size_t id) const = 0;
virtual void RegWrite(Kernel::KThread* thread, size_t id, std::string_view value) const = 0;
virtual std::string ReadRegisters(const Kernel::KThread* thread) const = 0;
@@ -27,7 +27,7 @@ public:
class GDBStubA64 final : public GDBStubArch {
public:
- std::string GetTargetXML() const override;
+ std::string_view GetTargetXML() const override;
std::string RegRead(const Kernel::KThread* thread, size_t id) const override;
void RegWrite(Kernel::KThread* thread, size_t id, std::string_view value) const override;
std::string ReadRegisters(const Kernel::KThread* thread) const override;
@@ -47,7 +47,7 @@ private:
class GDBStubA32 final : public GDBStubArch {
public:
- std::string GetTargetXML() const override;
+ std::string_view GetTargetXML() const override;
std::string RegRead(const Kernel::KThread* thread, size_t id) const override;
void RegWrite(Kernel::KThread* thread, size_t id, std::string_view value) const override;
std::string ReadRegisters(const Kernel::KThread* thread) const override;
diff --git a/src/core/device_memory.cpp b/src/core/device_memory.cpp
index f8b5be2b4..de3f8ef8f 100644
--- a/src/core/device_memory.cpp
+++ b/src/core/device_memory.cpp
@@ -6,9 +6,15 @@
namespace Core {
+#ifdef ANDROID
+constexpr size_t VirtualReserveSize = 1ULL << 38;
+#else
+constexpr size_t VirtualReserveSize = 1ULL << 39;
+#endif
+
DeviceMemory::DeviceMemory()
: buffer{Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize(),
- 1ULL << 39} {}
+ VirtualReserveSize} {}
DeviceMemory::~DeviceMemory() = default;
} // namespace Core
diff --git a/src/core/device_memory.h b/src/core/device_memory.h
index 90510733c..13388b73e 100644
--- a/src/core/device_memory.h
+++ b/src/core/device_memory.h
@@ -3,8 +3,8 @@
#pragma once
-#include "common/common_types.h"
#include "common/host_memory.h"
+#include "common/typed_address.h"
namespace Core {
@@ -25,20 +25,22 @@ public:
DeviceMemory(const DeviceMemory&) = delete;
template <typename T>
- PAddr GetPhysicalAddr(const T* ptr) const {
+ Common::PhysicalAddress GetPhysicalAddr(const T* ptr) const {
return (reinterpret_cast<uintptr_t>(ptr) -
reinterpret_cast<uintptr_t>(buffer.BackingBasePointer())) +
DramMemoryMap::Base;
}
template <typename T>
- T* GetPointer(PAddr addr) {
- return reinterpret_cast<T*>(buffer.BackingBasePointer() + (addr - DramMemoryMap::Base));
+ T* GetPointer(Common::PhysicalAddress addr) {
+ return reinterpret_cast<T*>(buffer.BackingBasePointer() +
+ (GetInteger(addr) - DramMemoryMap::Base));
}
template <typename T>
- const T* GetPointer(PAddr addr) const {
- return reinterpret_cast<T*>(buffer.BackingBasePointer() + (addr - DramMemoryMap::Base));
+ const T* GetPointer(Common::PhysicalAddress addr) const {
+ return reinterpret_cast<T*>(buffer.BackingBasePointer() +
+ (GetInteger(addr) - DramMemoryMap::Base));
}
Common::HostMemory buffer;
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h
index 7fdc45ea7..20f524f80 100644
--- a/src/core/file_sys/content_archive.h
+++ b/src/core/file_sys/content_archive.h
@@ -93,7 +93,7 @@ inline bool IsDirectoryLogoPartition(const VirtualDir& pfs) {
pfs->GetFile("StartupMovie.gif") != nullptr;
}
-// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) conatiner.
+// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) container.
// After construction, use GetStatus to determine if the file is valid and ready to be used.
class NCA : public ReadOnlyVfsDirectory {
public:
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp
index 50f44f598..cd9ac2e75 100644
--- a/src/core/file_sys/control_metadata.cpp
+++ b/src/core/file_sys/control_metadata.cpp
@@ -23,8 +23,8 @@ const std::array<const char*, 16> LANGUAGE_NAMES{{
"Portuguese",
"Russian",
"Korean",
- "Taiwanese",
- "Chinese",
+ "TraditionalChinese",
+ "SimplifiedChinese",
"BrazilianPortuguese",
}};
@@ -45,17 +45,17 @@ constexpr std::array<Language, 18> language_to_codes = {{
Language::German,
Language::Italian,
Language::Spanish,
- Language::Chinese,
+ Language::SimplifiedChinese,
Language::Korean,
Language::Dutch,
Language::Portuguese,
Language::Russian,
- Language::Taiwanese,
+ Language::TraditionalChinese,
Language::BritishEnglish,
Language::CanadianFrench,
Language::LatinAmericanSpanish,
- Language::Chinese,
- Language::Taiwanese,
+ Language::SimplifiedChinese,
+ Language::TraditionalChinese,
Language::BrazilianPortuguese,
}};
diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h
index 6a81873b1..c98efb00d 100644
--- a/src/core/file_sys/control_metadata.h
+++ b/src/core/file_sys/control_metadata.h
@@ -84,8 +84,8 @@ enum class Language : u8 {
Portuguese = 10,
Russian = 11,
Korean = 12,
- Taiwanese = 13,
- Chinese = 14,
+ TraditionalChinese = 13,
+ SimplifiedChinese = 14,
BrazilianPortuguese = 15,
Default = 255,
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp
index 5aab428bb..efdf18cee 100644
--- a/src/core/file_sys/ips_layer.cpp
+++ b/src/core/file_sys/ips_layer.cpp
@@ -41,12 +41,12 @@ static IPSFileType IdentifyMagic(const std::vector<u8>& magic) {
return IPSFileType::Error;
}
- constexpr std::array<u8, 5> patch_magic{{'P', 'A', 'T', 'C', 'H'}};
+ static constexpr std::array<u8, 5> patch_magic{{'P', 'A', 'T', 'C', 'H'}};
if (std::equal(magic.begin(), magic.end(), patch_magic.begin())) {
return IPSFileType::IPS;
}
- constexpr std::array<u8, 5> ips32_magic{{'I', 'P', 'S', '3', '2'}};
+ static constexpr std::array<u8, 5> ips32_magic{{'I', 'P', 'S', '3', '2'}};
if (std::equal(magic.begin(), magic.end(), ips32_magic.begin())) {
return IPSFileType::IPS32;
}
@@ -55,12 +55,12 @@ static IPSFileType IdentifyMagic(const std::vector<u8>& magic) {
}
static bool IsEOF(IPSFileType type, const std::vector<u8>& data) {
- constexpr std::array<u8, 3> eof{{'E', 'O', 'F'}};
+ static constexpr std::array<u8, 3> eof{{'E', 'O', 'F'}};
if (type == IPSFileType::IPS && std::equal(data.begin(), data.end(), eof.begin())) {
return true;
}
- constexpr std::array<u8, 4> eeof{{'E', 'E', 'O', 'F'}};
+ static constexpr std::array<u8, 4> eeof{{'E', 'E', 'O', 'F'}};
return type == IPSFileType::IPS32 && std::equal(data.begin(), data.end(), eeof.begin());
}
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index 4c80e13a9..d3286b352 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -21,9 +21,12 @@
#include "core/file_sys/patch_manager.h"
#include "core/file_sys/registered_cache.h"
#include "core/file_sys/romfs.h"
+#include "core/file_sys/vfs_cached.h"
#include "core/file_sys/vfs_layered.h"
#include "core/file_sys/vfs_vector.h"
#include "core/hle/service/filesystem/filesystem.h"
+#include "core/hle/service/ns/language.h"
+#include "core/hle/service/set/set.h"
#include "core/loader/loader.h"
#include "core/loader/nso.h"
#include "core/memory/cheat_engine.h"
@@ -150,7 +153,7 @@ VirtualDir PatchManager::PatchExeFS(VirtualDir exefs) const {
const auto sdmc_load_dir = fs_controller.GetSDMCModificationLoadRoot(title_id);
std::vector<VirtualDir> patch_dirs = {sdmc_load_dir};
- if (load_dir != nullptr && load_dir->GetSize() > 0) {
+ if (load_dir != nullptr) {
const auto load_patch_dirs = load_dir->GetSubdirectories();
patch_dirs.insert(patch_dirs.end(), load_patch_dirs.begin(), load_patch_dirs.end());
}
@@ -351,8 +354,7 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t
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) ||
- ((load_dir == nullptr || load_dir->GetSize() <= 0) &&
- (sdmc_load_dir == nullptr || sdmc_load_dir->GetSize() <= 0))) {
+ (load_dir == nullptr && sdmc_load_dir == nullptr)) {
return;
}
@@ -380,11 +382,11 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t
auto romfs_dir = FindSubdirectoryCaseless(subdir, "romfs");
if (romfs_dir != nullptr)
- layers.push_back(std::move(romfs_dir));
+ layers.push_back(std::make_shared<CachedVfsDirectory>(romfs_dir));
auto ext_dir = FindSubdirectoryCaseless(subdir, "romfs_ext");
if (ext_dir != nullptr)
- layers_ext.push_back(std::move(ext_dir));
+ layers_ext.push_back(std::make_shared<CachedVfsDirectory>(ext_dir));
}
// When there are no layers to apply, return early as there is no need to rebuild the RomFS
@@ -493,7 +495,7 @@ PatchManager::PatchVersionNames PatchManager::GetPatchVersionNames(VirtualFile u
// General Mods (LayeredFS and IPS)
const auto mod_dir = fs_controller.GetModificationLoadRoot(title_id);
- if (mod_dir != nullptr && mod_dir->GetSize() > 0) {
+ if (mod_dir != nullptr) {
for (const auto& mod : mod_dir->GetSubdirectories()) {
std::string types;
@@ -537,7 +539,7 @@ PatchManager::PatchVersionNames PatchManager::GetPatchVersionNames(VirtualFile u
// SDMC mod directory (RomFS LayeredFS)
const auto sdmc_mod_dir = fs_controller.GetSDMCModificationLoadRoot(title_id);
- if (sdmc_mod_dir != nullptr && sdmc_mod_dir->GetSize() > 0) {
+ if (sdmc_mod_dir != nullptr) {
std::string types;
if (IsDirValidAndNonEmpty(FindSubdirectoryCaseless(sdmc_mod_dir, "exefs"))) {
AppendCommaIfNotEmpty(types, "LayeredExeFS");
@@ -623,8 +625,37 @@ PatchManager::Metadata PatchManager::ParseControlNCA(const NCA& nca) const {
auto nacp = nacp_file == nullptr ? nullptr : std::make_unique<NACP>(nacp_file);
+ // Get language code from settings
+ const auto language_code =
+ Service::Set::GetLanguageCodeFromIndex(Settings::values.language_index.GetValue());
+
+ // Convert to application language and get priority list
+ const auto application_language =
+ Service::NS::ConvertToApplicationLanguage(language_code)
+ .value_or(Service::NS::ApplicationLanguage::AmericanEnglish);
+ const auto language_priority_list =
+ Service::NS::GetApplicationLanguagePriorityList(application_language);
+
+ // Convert to language names
+ auto priority_language_names = FileSys::LANGUAGE_NAMES; // Copy
+ if (language_priority_list) {
+ for (size_t i = 0; i < priority_language_names.size(); ++i) {
+ // Relies on FileSys::LANGUAGE_NAMES being in the same order as
+ // Service::NS::ApplicationLanguage
+ const auto language_index = static_cast<u8>(language_priority_list->at(i));
+
+ if (language_index < FileSys::LANGUAGE_NAMES.size()) {
+ priority_language_names[i] = FileSys::LANGUAGE_NAMES[language_index];
+ } else {
+ // Not a catastrophe, unlikely to happen
+ LOG_WARNING(Loader, "Invalid language index {}", language_index);
+ }
+ }
+ }
+
+ // Get first matching icon
VirtualFile icon_file;
- for (const auto& language : FileSys::LANGUAGE_NAMES) {
+ for (const auto& language : priority_language_names) {
icon_file = extracted->GetFile(std::string("icon_").append(language).append(".dat"));
if (icon_file != nullptr) {
break;
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index 878d832c2..a6960170c 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -71,7 +71,7 @@ static std::string GetRelativePathFromNcaID(const std::array<u8, 16>& nca_id, bo
}
static std::string GetCNMTName(TitleType type, u64 title_id) {
- constexpr std::array<const char*, 9> TITLE_TYPE_NAMES{
+ static constexpr std::array<const char*, 9> TITLE_TYPE_NAMES{
"SystemProgram",
"SystemData",
"SystemUpdate",
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h
index 587f8cae8..bd7f53eaf 100644
--- a/src/core/file_sys/registered_cache.h
+++ b/src/core/file_sys/registered_cache.h
@@ -162,7 +162,7 @@ public:
InstallResult InstallEntry(const NSP& nsp, bool overwrite_if_exists = false,
const VfsCopyFunction& copy = &VfsRawCopy);
- // Due to the fact that we must use Meta-type NCAs to determine the existance of files, this
+ // Due to the fact that we must use Meta-type NCAs to determine the existence of files, this
// poses quite a challenge. Instead of creating a new meta NCA for this file, yuzu will create a
// dir inside the NAND called 'yuzu_meta' and store the raw CNMT there.
// TODO(DarkLordZach): Author real meta-type NCAs and install those.
diff --git a/src/core/file_sys/romfs.cpp b/src/core/file_sys/romfs.cpp
index ddcfe5980..614da2130 100644
--- a/src/core/file_sys/romfs.cpp
+++ b/src/core/file_sys/romfs.cpp
@@ -9,6 +9,7 @@
#include "core/file_sys/fsmitm_romfsbuild.h"
#include "core/file_sys/romfs.h"
#include "core/file_sys/vfs.h"
+#include "core/file_sys/vfs_cached.h"
#include "core/file_sys/vfs_concat.h"
#include "core/file_sys/vfs_offset.h"
#include "core/file_sys/vfs_vector.h"
@@ -132,7 +133,7 @@ VirtualDir ExtractRomFS(VirtualFile file, RomFSExtractionType type) {
out = out->GetSubdirectories().front();
}
- return out;
+ return std::make_shared<CachedVfsDirectory>(out);
}
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) {
@@ -140,7 +141,8 @@ VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext) {
return nullptr;
RomFSBuildContext ctx{dir, ext};
- return ConcatenatedVfsFile::MakeConcatenatedFile(0, ctx.Build(), dir->GetName());
+ auto file_map = ctx.Build();
+ return ConcatenatedVfsFile::MakeConcatenatedFile(0, file_map, dir->GetName());
}
} // namespace FileSys
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp
index 1567da231..70b36f170 100644
--- a/src/core/file_sys/savedata_factory.cpp
+++ b/src/core/file_sys/savedata_factory.cpp
@@ -82,9 +82,9 @@ std::string GetFutureSaveDataPath(SaveDataSpaceId space_id, SaveDataType type, u
// Only detect account/device saves from the future location.
switch (type) {
case SaveDataType::SaveData:
- return fmt::format("{}/account/{}/{:016X}/1", space_id_path, uuid.RawString(), title_id);
+ return fmt::format("{}/account/{}/{:016X}/0", space_id_path, uuid.RawString(), title_id);
case SaveDataType::DeviceSaveData:
- return fmt::format("{}/device/{:016X}/1", space_id_path, title_id);
+ return fmt::format("{}/device/{:016X}/0", space_id_path, title_id);
default:
return "";
}
@@ -172,7 +172,7 @@ std::string SaveDataFactory::GetFullPath(Core::System& system, VirtualDir dir,
// be interpreted as the title id of the current process.
if (type == SaveDataType::SaveData || type == SaveDataType::DeviceSaveData) {
if (title_id == 0) {
- title_id = system.GetCurrentProcessProgramID();
+ title_id = system.GetApplicationProcessProgramID();
}
}
diff --git a/src/core/file_sys/submission_package.h b/src/core/file_sys/submission_package.h
index 3226b884a..27f97c725 100644
--- a/src/core/file_sys/submission_package.h
+++ b/src/core/file_sys/submission_package.h
@@ -8,6 +8,7 @@
#include <set>
#include <vector>
#include "common/common_types.h"
+#include "core/file_sys/nca_metadata.h"
#include "core/file_sys/vfs.h"
namespace Core::Crypto {
diff --git a/src/core/file_sys/system_archive/time_zone_binary.cpp b/src/core/file_sys/system_archive/time_zone_binary.cpp
index 85383998d..7c17bbefa 100644
--- a/src/core/file_sys/system_archive/time_zone_binary.cpp
+++ b/src/core/file_sys/system_archive/time_zone_binary.cpp
@@ -1,7 +1,6 @@
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <array>
#include <vector>
#include "common/swap.h"
@@ -9,656 +8,79 @@
#include "core/file_sys/vfs_vector.h"
#include "core/hle/service/time/time_zone_types.h"
-namespace FileSys::SystemArchive {
-
-static constexpr std::array<u8, 9633> LOCATION_NAMES{
- 0x43, 0x45, 0x54, 0x0d, 0x0a, 0x43, 0x53, 0x54, 0x36, 0x43, 0x44, 0x54, 0x0d, 0x0a, 0x43, 0x75,
- 0x62, 0x61, 0x0d, 0x0a, 0x45, 0x45, 0x54, 0x0d, 0x0a, 0x45, 0x67, 0x79, 0x70, 0x74, 0x0d, 0x0a,
- 0x45, 0x69, 0x72, 0x65, 0x0d, 0x0a, 0x45, 0x53, 0x54, 0x0d, 0x0a, 0x45, 0x53, 0x54, 0x35, 0x45,
- 0x44, 0x54, 0x0d, 0x0a, 0x47, 0x42, 0x0d, 0x0a, 0x47, 0x42, 0x2d, 0x45, 0x69, 0x72, 0x65, 0x0d,
- 0x0a, 0x47, 0x4d, 0x54, 0x0d, 0x0a, 0x47, 0x4d, 0x54, 0x2b, 0x30, 0x0d, 0x0a, 0x47, 0x4d, 0x54,
- 0x2d, 0x30, 0x0d, 0x0a, 0x47, 0x4d, 0x54, 0x30, 0x0d, 0x0a, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x77,
- 0x69, 0x63, 0x68, 0x0d, 0x0a, 0x48, 0x6f, 0x6e, 0x67, 0x6b, 0x6f, 0x6e, 0x67, 0x0d, 0x0a, 0x48,
- 0x53, 0x54, 0x0d, 0x0a, 0x49, 0x63, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0x0d, 0x0a, 0x49, 0x72, 0x61,
- 0x6e, 0x0d, 0x0a, 0x49, 0x73, 0x72, 0x61, 0x65, 0x6c, 0x0d, 0x0a, 0x4a, 0x61, 0x6d, 0x61, 0x69,
- 0x63, 0x61, 0x0d, 0x0a, 0x4a, 0x61, 0x70, 0x61, 0x6e, 0x0d, 0x0a, 0x4b, 0x77, 0x61, 0x6a, 0x61,
- 0x6c, 0x65, 0x69, 0x6e, 0x0d, 0x0a, 0x4c, 0x69, 0x62, 0x79, 0x61, 0x0d, 0x0a, 0x4d, 0x45, 0x54,
- 0x0d, 0x0a, 0x4d, 0x53, 0x54, 0x0d, 0x0a, 0x4d, 0x53, 0x54, 0x37, 0x4d, 0x44, 0x54, 0x0d, 0x0a,
- 0x4e, 0x61, 0x76, 0x61, 0x6a, 0x6f, 0x0d, 0x0a, 0x4e, 0x5a, 0x0d, 0x0a, 0x4e, 0x5a, 0x2d, 0x43,
- 0x48, 0x41, 0x54, 0x0d, 0x0a, 0x50, 0x6f, 0x6c, 0x61, 0x6e, 0x64, 0x0d, 0x0a, 0x50, 0x6f, 0x72,
- 0x74, 0x75, 0x67, 0x61, 0x6c, 0x0d, 0x0a, 0x50, 0x52, 0x43, 0x0d, 0x0a, 0x50, 0x53, 0x54, 0x38,
- 0x50, 0x44, 0x54, 0x0d, 0x0a, 0x52, 0x4f, 0x43, 0x0d, 0x0a, 0x52, 0x4f, 0x4b, 0x0d, 0x0a, 0x53,
- 0x69, 0x6e, 0x67, 0x61, 0x70, 0x6f, 0x72, 0x65, 0x0d, 0x0a, 0x54, 0x75, 0x72, 0x6b, 0x65, 0x79,
- 0x0d, 0x0a, 0x55, 0x43, 0x54, 0x0d, 0x0a, 0x55, 0x6e, 0x69, 0x76, 0x65, 0x72, 0x73, 0x61, 0x6c,
- 0x0d, 0x0a, 0x55, 0x54, 0x43, 0x0d, 0x0a, 0x57, 0x2d, 0x53, 0x55, 0x0d, 0x0a, 0x57, 0x45, 0x54,
- 0x0d, 0x0a, 0x5a, 0x75, 0x6c, 0x75, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41,
- 0x62, 0x69, 0x64, 0x6a, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41,
- 0x63, 0x63, 0x72, 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x64, 0x64,
- 0x69, 0x73, 0x5f, 0x41, 0x62, 0x61, 0x62, 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x41, 0x6c, 0x67, 0x69, 0x65, 0x72, 0x73, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x41, 0x73, 0x6d, 0x61, 0x72, 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x41, 0x73, 0x6d, 0x65, 0x72, 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42,
- 0x61, 0x6d, 0x61, 0x6b, 0x6f, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x61,
- 0x6e, 0x67, 0x75, 0x69, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x61, 0x6e,
- 0x6a, 0x75, 0x6c, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x69, 0x73, 0x73,
- 0x61, 0x75, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x6c, 0x61, 0x6e, 0x74,
- 0x79, 0x72, 0x65, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x72, 0x61, 0x7a,
- 0x7a, 0x61, 0x76, 0x69, 0x6c, 0x6c, 0x65, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x42, 0x75, 0x6a, 0x75, 0x6d, 0x62, 0x75, 0x72, 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x43, 0x61, 0x69, 0x72, 0x6f, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x43, 0x61, 0x73, 0x61, 0x62, 0x6c, 0x61, 0x6e, 0x63, 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x43, 0x65, 0x75, 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x43, 0x6f, 0x6e, 0x61, 0x6b, 0x72, 0x79, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x44, 0x61, 0x6b, 0x61, 0x72, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x44,
- 0x61, 0x72, 0x5f, 0x65, 0x73, 0x5f, 0x53, 0x61, 0x6c, 0x61, 0x61, 0x6d, 0x0d, 0x0a, 0x41, 0x66,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x44, 0x6a, 0x69, 0x62, 0x6f, 0x75, 0x74, 0x69, 0x0d, 0x0a, 0x41,
- 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x44, 0x6f, 0x75, 0x61, 0x6c, 0x61, 0x0d, 0x0a, 0x41, 0x66,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x45, 0x6c, 0x5f, 0x41, 0x61, 0x69, 0x75, 0x6e, 0x0d, 0x0a, 0x41,
- 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x46, 0x72, 0x65, 0x65, 0x74, 0x6f, 0x77, 0x6e, 0x0d, 0x0a,
- 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x47, 0x61, 0x62, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x0d,
- 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x48, 0x61, 0x72, 0x61, 0x72, 0x65, 0x0d, 0x0a,
- 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4a, 0x6f, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x73, 0x62,
- 0x75, 0x72, 0x67, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4a, 0x75, 0x62, 0x61,
- 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4b, 0x61, 0x6d, 0x70, 0x61, 0x6c, 0x61,
- 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4b, 0x68, 0x61, 0x72, 0x74, 0x6f, 0x75,
- 0x6d, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4b, 0x69, 0x67, 0x61, 0x6c, 0x69,
- 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4b, 0x69, 0x6e, 0x73, 0x68, 0x61, 0x73,
- 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x61, 0x67, 0x6f, 0x73, 0x0d,
- 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x69, 0x62, 0x72, 0x65, 0x76, 0x69, 0x6c,
- 0x6c, 0x65, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x6f, 0x6d, 0x65, 0x0d,
- 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x75, 0x61, 0x6e, 0x64, 0x61, 0x0d, 0x0a,
- 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x75, 0x62, 0x75, 0x6d, 0x62, 0x61, 0x73, 0x68,
- 0x69, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x75, 0x73, 0x61, 0x6b, 0x61,
- 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x6c, 0x61, 0x62, 0x6f, 0x0d,
- 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x70, 0x75, 0x74, 0x6f, 0x0d, 0x0a,
- 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x73, 0x65, 0x72, 0x75, 0x0d, 0x0a, 0x41,
- 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x62, 0x61, 0x62, 0x61, 0x6e, 0x65, 0x0d, 0x0a, 0x41,
- 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x6f, 0x67, 0x61, 0x64, 0x69, 0x73, 0x68, 0x75, 0x0d,
- 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x6f, 0x6e, 0x72, 0x6f, 0x76, 0x69, 0x61,
- 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x61, 0x69, 0x72, 0x6f, 0x62, 0x69,
- 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x64, 0x6a, 0x61, 0x6d, 0x65, 0x6e,
- 0x61, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x69, 0x61, 0x6d, 0x65, 0x79,
- 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x6f, 0x75, 0x61, 0x6b, 0x63, 0x68,
- 0x6f, 0x74, 0x74, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4f, 0x75, 0x61, 0x67,
- 0x61, 0x64, 0x6f, 0x75, 0x67, 0x6f, 0x75, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x50, 0x6f, 0x72, 0x74, 0x6f, 0x2d, 0x4e, 0x6f, 0x76, 0x6f, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x53, 0x61, 0x6f, 0x5f, 0x54, 0x6f, 0x6d, 0x65, 0x0d, 0x0a, 0x41, 0x66, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x54, 0x69, 0x6d, 0x62, 0x75, 0x6b, 0x74, 0x75, 0x0d, 0x0a, 0x41, 0x66,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x54, 0x72, 0x69, 0x70, 0x6f, 0x6c, 0x69, 0x0d, 0x0a, 0x41, 0x66,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x54, 0x75, 0x6e, 0x69, 0x73, 0x0d, 0x0a, 0x41, 0x66, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x57, 0x69, 0x6e, 0x64, 0x68, 0x6f, 0x65, 0x6b, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x64, 0x61, 0x6b, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x6e, 0x67, 0x75, 0x69, 0x6c, 0x6c, 0x61, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x6e, 0x74, 0x69, 0x67, 0x75, 0x61, 0x0d,
- 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x61, 0x67, 0x75, 0x61, 0x69,
- 0x6e, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x75, 0x62,
- 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x73, 0x75, 0x6e, 0x63,
- 0x69, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x74, 0x69,
- 0x6b, 0x6f, 0x6b, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41,
- 0x74, 0x6b, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x61, 0x68,
- 0x69, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x61, 0x68, 0x69,
- 0x61, 0x5f, 0x42, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x61, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x42, 0x61, 0x72, 0x62, 0x61, 0x64, 0x6f, 0x73, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x65, 0x6c, 0x65, 0x6d, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x65, 0x6c, 0x69, 0x7a, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x6c, 0x61, 0x6e, 0x63, 0x2d, 0x53, 0x61, 0x62, 0x6c, 0x6f,
- 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x6f, 0x61, 0x5f, 0x56,
- 0x69, 0x73, 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x6f,
- 0x67, 0x6f, 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x6f,
- 0x69, 0x73, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x42, 0x75, 0x65,
- 0x6e, 0x6f, 0x73, 0x5f, 0x41, 0x69, 0x72, 0x65, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x43, 0x61, 0x6d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x42, 0x61, 0x79,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x61, 0x6d, 0x70, 0x6f, 0x5f,
- 0x47, 0x72, 0x61, 0x6e, 0x64, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x43, 0x61, 0x6e, 0x63, 0x75, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x43, 0x61, 0x72, 0x61, 0x63, 0x61, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x43, 0x61, 0x74, 0x61, 0x6d, 0x61, 0x72, 0x63, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x43, 0x61, 0x79, 0x65, 0x6e, 0x6e, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x61, 0x79, 0x6d, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x68, 0x69, 0x63, 0x61, 0x67, 0x6f, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x68, 0x69, 0x68, 0x75, 0x61, 0x68, 0x75, 0x61, 0x0d,
- 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x6f, 0x72, 0x61, 0x6c, 0x5f, 0x48,
- 0x61, 0x72, 0x62, 0x6f, 0x75, 0x72, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x43, 0x6f, 0x72, 0x64, 0x6f, 0x62, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x43, 0x6f, 0x73, 0x74, 0x61, 0x5f, 0x52, 0x69, 0x63, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x75, 0x69, 0x61, 0x62, 0x61, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x43, 0x75, 0x72, 0x61, 0x63, 0x61, 0x6f, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x44, 0x61, 0x6e, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x68,
- 0x61, 0x76, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x44, 0x61, 0x77,
- 0x73, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x44, 0x61, 0x77,
- 0x73, 0x6f, 0x6e, 0x5f, 0x43, 0x72, 0x65, 0x65, 0x6b, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x44, 0x65, 0x6e, 0x76, 0x65, 0x72, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x44, 0x65, 0x74, 0x72, 0x6f, 0x69, 0x74, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x44, 0x6f, 0x6d, 0x69, 0x6e, 0x69, 0x63, 0x61, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x45, 0x64, 0x6d, 0x6f, 0x6e, 0x74, 0x6f, 0x6e, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x45, 0x69, 0x72, 0x75, 0x6e, 0x65, 0x70, 0x65,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x45, 0x6c, 0x5f, 0x53, 0x61, 0x6c,
- 0x76, 0x61, 0x64, 0x6f, 0x72, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x45,
- 0x6e, 0x73, 0x65, 0x6e, 0x61, 0x64, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x46, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x65, 0x7a, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x46, 0x6f, 0x72, 0x74, 0x5f, 0x4e, 0x65, 0x6c, 0x73, 0x6f, 0x6e, 0x0d,
- 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x46, 0x6f, 0x72, 0x74, 0x5f, 0x57, 0x61,
- 0x79, 0x6e, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x47, 0x6c, 0x61,
- 0x63, 0x65, 0x5f, 0x42, 0x61, 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x47, 0x6f, 0x64, 0x74, 0x68, 0x61, 0x62, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x47, 0x6f, 0x6f, 0x73, 0x65, 0x5f, 0x42, 0x61, 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x47, 0x72, 0x61, 0x6e, 0x64, 0x5f, 0x54, 0x75, 0x72, 0x6b, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x47, 0x72, 0x65, 0x6e, 0x61, 0x64, 0x61, 0x0d,
- 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x47, 0x75, 0x61, 0x64, 0x65, 0x6c, 0x6f,
- 0x75, 0x70, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x47, 0x75, 0x61,
- 0x74, 0x65, 0x6d, 0x61, 0x6c, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x47, 0x75, 0x61, 0x79, 0x61, 0x71, 0x75, 0x69, 0x6c, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x47, 0x75, 0x79, 0x61, 0x6e, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x48, 0x61, 0x6c, 0x69, 0x66, 0x61, 0x78, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x48, 0x61, 0x76, 0x61, 0x6e, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x48, 0x65, 0x72, 0x6d, 0x6f, 0x73, 0x69, 0x6c, 0x6c, 0x6f, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61, 0x70,
- 0x6f, 0x6c, 0x69, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e,
- 0x75, 0x76, 0x69, 0x6b, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x71,
- 0x61, 0x6c, 0x75, 0x69, 0x74, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4a,
- 0x61, 0x6d, 0x61, 0x69, 0x63, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x4a, 0x75, 0x6a, 0x75, 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4a,
- 0x75, 0x6e, 0x65, 0x61, 0x75, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4b,
- 0x6e, 0x6f, 0x78, 0x5f, 0x49, 0x4e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x4b, 0x72, 0x61, 0x6c, 0x65, 0x6e, 0x64, 0x69, 0x6a, 0x6b, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x61, 0x5f, 0x50, 0x61, 0x7a, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x69, 0x6d, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x4c, 0x6f, 0x73, 0x5f, 0x41, 0x6e, 0x67, 0x65, 0x6c, 0x65, 0x73, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x6f, 0x75, 0x69, 0x73, 0x76, 0x69, 0x6c, 0x6c,
- 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4c, 0x6f, 0x77, 0x65, 0x72,
- 0x5f, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x4d, 0x61, 0x63, 0x65, 0x69, 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x75, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x6e, 0x61, 0x75, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x72, 0x69, 0x67, 0x6f, 0x74, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x74, 0x61, 0x6d, 0x6f, 0x72, 0x6f,
- 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x7a, 0x61, 0x74,
- 0x6c, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x65, 0x6e,
- 0x64, 0x6f, 0x7a, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x65,
- 0x6e, 0x6f, 0x6d, 0x69, 0x6e, 0x65, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x4d, 0x65, 0x72, 0x69, 0x64, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x4d, 0x65, 0x74, 0x6c, 0x61, 0x6b, 0x61, 0x74, 0x6c, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x65, 0x78, 0x69, 0x63, 0x6f, 0x5f, 0x43, 0x69, 0x74, 0x79,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x69, 0x71, 0x75, 0x65, 0x6c,
- 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x6f, 0x6e, 0x63,
- 0x74, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x6f, 0x6e,
- 0x74, 0x65, 0x72, 0x72, 0x65, 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x4d, 0x6f, 0x6e, 0x74, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x6f, 0x6e, 0x74, 0x72, 0x65, 0x61, 0x6c, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x6f, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x72, 0x61, 0x74,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x61, 0x73, 0x73, 0x61, 0x75,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x65, 0x77, 0x5f, 0x59, 0x6f,
- 0x72, 0x6b, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x69, 0x70, 0x69,
- 0x67, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x6f, 0x6d,
- 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x6f, 0x72, 0x6f, 0x6e,
- 0x68, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4f, 0x6a, 0x69, 0x6e,
- 0x61, 0x67, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x50, 0x61, 0x6e,
- 0x61, 0x6d, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x50, 0x61, 0x6e,
- 0x67, 0x6e, 0x69, 0x72, 0x74, 0x75, 0x6e, 0x67, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x61, 0x72, 0x69, 0x62, 0x6f, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x50, 0x68, 0x6f, 0x65, 0x6e, 0x69, 0x78, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x50, 0x6f, 0x72, 0x74, 0x2d, 0x61, 0x75, 0x2d, 0x50,
- 0x72, 0x69, 0x6e, 0x63, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x50,
- 0x6f, 0x72, 0x74, 0x6f, 0x5f, 0x41, 0x63, 0x72, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x50, 0x6f, 0x72, 0x74, 0x6f, 0x5f, 0x56, 0x65, 0x6c, 0x68, 0x6f, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x50, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 0x66, 0x5f,
- 0x53, 0x70, 0x61, 0x69, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x50,
- 0x75, 0x65, 0x72, 0x74, 0x6f, 0x5f, 0x52, 0x69, 0x63, 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x50, 0x75, 0x6e, 0x74, 0x61, 0x5f, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x73,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x52, 0x61, 0x69, 0x6e, 0x79, 0x5f,
- 0x52, 0x69, 0x76, 0x65, 0x72, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x52,
- 0x61, 0x6e, 0x6b, 0x69, 0x6e, 0x5f, 0x49, 0x6e, 0x6c, 0x65, 0x74, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x52, 0x65, 0x63, 0x69, 0x66, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x52, 0x65, 0x67, 0x69, 0x6e, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x52, 0x69, 0x6f, 0x5f, 0x42, 0x72, 0x61, 0x6e, 0x63,
- 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x52, 0x6f, 0x73, 0x61, 0x72,
- 0x69, 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x61, 0x6e, 0x74,
- 0x61, 0x72, 0x65, 0x6d, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x61,
- 0x6e, 0x74, 0x61, 0x5f, 0x49, 0x73, 0x61, 0x62, 0x65, 0x6c, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x53, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x67, 0x6f, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x61, 0x6e, 0x74, 0x6f, 0x5f, 0x44, 0x6f, 0x6d, 0x69,
- 0x6e, 0x67, 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x61, 0x6f,
- 0x5f, 0x50, 0x61, 0x75, 0x6c, 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x62, 0x79, 0x73, 0x75, 0x6e, 0x64, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x68, 0x69, 0x70, 0x72, 0x6f, 0x63, 0x6b, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x69, 0x74, 0x6b, 0x61, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x74, 0x5f, 0x42, 0x61, 0x72, 0x74, 0x68, 0x65,
- 0x6c, 0x65, 0x6d, 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x74,
- 0x5f, 0x4a, 0x6f, 0x68, 0x6e, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x53, 0x74, 0x5f, 0x4b, 0x69, 0x74, 0x74, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x53, 0x74, 0x5f, 0x4c, 0x75, 0x63, 0x69, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x53, 0x74, 0x5f, 0x54, 0x68, 0x6f, 0x6d, 0x61, 0x73, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x74, 0x5f, 0x56, 0x69, 0x6e, 0x63, 0x65, 0x6e,
- 0x74, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x77, 0x69, 0x66, 0x74,
- 0x5f, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x54, 0x65, 0x67, 0x75, 0x63, 0x69, 0x67, 0x61, 0x6c, 0x70, 0x61, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x54, 0x68, 0x75, 0x6c, 0x65, 0x0d, 0x0a, 0x41, 0x6d,
- 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x54, 0x68, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x42, 0x61,
- 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x54, 0x69, 0x6a, 0x75, 0x61,
- 0x6e, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x54, 0x6f, 0x72, 0x6f,
- 0x6e, 0x74, 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x54, 0x6f, 0x72,
- 0x74, 0x6f, 0x6c, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x56, 0x61,
- 0x6e, 0x63, 0x6f, 0x75, 0x76, 0x65, 0x72, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x56, 0x69, 0x72, 0x67, 0x69, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x57, 0x68, 0x69, 0x74, 0x65, 0x68, 0x6f, 0x72, 0x73, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65,
- 0x72, 0x69, 0x63, 0x61, 0x2f, 0x57, 0x69, 0x6e, 0x6e, 0x69, 0x70, 0x65, 0x67, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x59, 0x61, 0x6b, 0x75, 0x74, 0x61, 0x74, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x59, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6b, 0x6e,
- 0x69, 0x66, 0x65, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67,
- 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x42, 0x75, 0x65, 0x6e, 0x6f, 0x73, 0x5f, 0x41, 0x69,
- 0x72, 0x65, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67,
- 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x43, 0x61, 0x74, 0x61, 0x6d, 0x61, 0x72, 0x63, 0x61,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74,
- 0x69, 0x6e, 0x61, 0x2f, 0x43, 0x6f, 0x6d, 0x6f, 0x64, 0x52, 0x69, 0x76, 0x61, 0x64, 0x61, 0x76,
- 0x69, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65,
- 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x43, 0x6f, 0x72, 0x64, 0x6f, 0x62, 0x61, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61,
- 0x2f, 0x4a, 0x75, 0x6a, 0x75, 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x4c, 0x61, 0x5f, 0x52, 0x69, 0x6f,
- 0x6a, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65,
- 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x4d, 0x65, 0x6e, 0x64, 0x6f, 0x7a, 0x61, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61,
- 0x2f, 0x52, 0x69, 0x6f, 0x5f, 0x47, 0x61, 0x6c, 0x6c, 0x65, 0x67, 0x6f, 0x73, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61,
- 0x2f, 0x53, 0x61, 0x6c, 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f,
- 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x53, 0x61, 0x6e, 0x5f, 0x4a, 0x75,
- 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65,
- 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x53, 0x61, 0x6e, 0x5f, 0x4c, 0x75, 0x69, 0x73, 0x0d, 0x0a,
- 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e,
- 0x61, 0x2f, 0x54, 0x75, 0x63, 0x75, 0x6d, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69,
- 0x63, 0x61, 0x2f, 0x41, 0x72, 0x67, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0x61, 0x2f, 0x55, 0x73, 0x68,
- 0x75, 0x61, 0x69, 0x61, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e,
- 0x64, 0x69, 0x61, 0x6e, 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61, 0x70, 0x6f, 0x6c,
- 0x69, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69,
- 0x61, 0x6e, 0x61, 0x2f, 0x4b, 0x6e, 0x6f, 0x78, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61, 0x2f, 0x4d, 0x61, 0x72, 0x65, 0x6e, 0x67,
- 0x6f, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61,
- 0x6e, 0x61, 0x2f, 0x50, 0x65, 0x74, 0x65, 0x72, 0x73, 0x62, 0x75, 0x72, 0x67, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61, 0x2f, 0x54,
- 0x65, 0x6c, 0x6c, 0x5f, 0x43, 0x69, 0x74, 0x79, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63,
- 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61, 0x2f, 0x56, 0x65, 0x76, 0x61, 0x79, 0x0d,
- 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61,
- 0x2f, 0x56, 0x69, 0x6e, 0x63, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61, 0x2f, 0x57, 0x69, 0x6e, 0x61,
- 0x6d, 0x61, 0x63, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4b, 0x65, 0x6e,
- 0x74, 0x75, 0x63, 0x6b, 0x79, 0x2f, 0x4c, 0x6f, 0x75, 0x69, 0x73, 0x76, 0x69, 0x6c, 0x6c, 0x65,
- 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4b, 0x65, 0x6e, 0x74, 0x75, 0x63,
- 0x6b, 0x79, 0x2f, 0x4d, 0x6f, 0x6e, 0x74, 0x69, 0x63, 0x65, 0x6c, 0x6c, 0x6f, 0x0d, 0x0a, 0x41,
- 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x5f, 0x44, 0x61, 0x6b,
- 0x6f, 0x74, 0x61, 0x2f, 0x42, 0x65, 0x75, 0x6c, 0x61, 0x68, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72,
- 0x69, 0x63, 0x61, 0x2f, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x5f, 0x44, 0x61, 0x6b, 0x6f, 0x74, 0x61,
- 0x2f, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x0d, 0x0a, 0x41, 0x6d, 0x65, 0x72, 0x69, 0x63, 0x61,
- 0x2f, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x5f, 0x44, 0x61, 0x6b, 0x6f, 0x74, 0x61, 0x2f, 0x4e, 0x65,
- 0x77, 0x5f, 0x53, 0x61, 0x6c, 0x65, 0x6d, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74,
- 0x69, 0x63, 0x61, 0x2f, 0x43, 0x61, 0x73, 0x65, 0x79, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72,
- 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f, 0x44, 0x61, 0x76, 0x69, 0x73, 0x0d, 0x0a, 0x41, 0x6e, 0x74,
- 0x61, 0x72, 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f, 0x44, 0x75, 0x6d, 0x6f, 0x6e, 0x74, 0x44, 0x55,
- 0x72, 0x76, 0x69, 0x6c, 0x6c, 0x65, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74, 0x69,
- 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x63, 0x71, 0x75, 0x61, 0x72, 0x69, 0x65, 0x0d, 0x0a, 0x41, 0x6e,
- 0x74, 0x61, 0x72, 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x61, 0x77, 0x73, 0x6f, 0x6e, 0x0d,
- 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f, 0x4d, 0x63, 0x4d, 0x75,
- 0x72, 0x64, 0x6f, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f,
- 0x50, 0x61, 0x6c, 0x6d, 0x65, 0x72, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74, 0x69,
- 0x63, 0x61, 0x2f, 0x52, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x61, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61,
- 0x72, 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x5f, 0x50, 0x6f, 0x6c,
- 0x65, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f, 0x53, 0x79,
- 0x6f, 0x77, 0x61, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74, 0x69, 0x63, 0x61, 0x2f,
- 0x54, 0x72, 0x6f, 0x6c, 0x6c, 0x0d, 0x0a, 0x41, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x74, 0x69, 0x63,
- 0x61, 0x2f, 0x56, 0x6f, 0x73, 0x74, 0x6f, 0x6b, 0x0d, 0x0a, 0x41, 0x72, 0x63, 0x74, 0x69, 0x63,
- 0x2f, 0x4c, 0x6f, 0x6e, 0x67, 0x79, 0x65, 0x61, 0x72, 0x62, 0x79, 0x65, 0x6e, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x41, 0x64, 0x65, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x41,
- 0x6c, 0x6d, 0x61, 0x74, 0x79, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x41, 0x6d, 0x6d, 0x61,
- 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x41, 0x6e, 0x61, 0x64, 0x79, 0x72, 0x0d, 0x0a,
- 0x41, 0x73, 0x69, 0x61, 0x2f, 0x41, 0x71, 0x74, 0x61, 0x75, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x41, 0x71, 0x74, 0x6f, 0x62, 0x65, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x41, 0x73,
- 0x68, 0x67, 0x61, 0x62, 0x61, 0x74, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x41, 0x73, 0x68,
- 0x6b, 0x68, 0x61, 0x62, 0x61, 0x64, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x41, 0x74, 0x79,
- 0x72, 0x61, 0x75, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x42, 0x61, 0x67, 0x68, 0x64, 0x61,
- 0x64, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x42, 0x61, 0x68, 0x72, 0x61, 0x69, 0x6e, 0x0d,
- 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x42, 0x61, 0x6b, 0x75, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x42, 0x61, 0x6e, 0x67, 0x6b, 0x6f, 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x42,
- 0x61, 0x72, 0x6e, 0x61, 0x75, 0x6c, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x42, 0x65, 0x69,
- 0x72, 0x75, 0x74, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x42, 0x69, 0x73, 0x68, 0x6b, 0x65,
- 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x42, 0x72, 0x75, 0x6e, 0x65, 0x69, 0x0d, 0x0a,
- 0x41, 0x73, 0x69, 0x61, 0x2f, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x74, 0x74, 0x61, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x43, 0x68, 0x69, 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f,
- 0x43, 0x68, 0x6f, 0x69, 0x62, 0x61, 0x6c, 0x73, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x43, 0x68, 0x6f, 0x6e, 0x67, 0x71, 0x69, 0x6e, 0x67, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x43, 0x68, 0x75, 0x6e, 0x67, 0x6b, 0x69, 0x6e, 0x67, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x43, 0x6f, 0x6c, 0x6f, 0x6d, 0x62, 0x6f, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x44,
- 0x61, 0x63, 0x63, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x44, 0x61, 0x6d, 0x61, 0x73,
- 0x63, 0x75, 0x73, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x44, 0x68, 0x61, 0x6b, 0x61, 0x0d,
- 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x44, 0x69, 0x6c, 0x69, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x44, 0x75, 0x62, 0x61, 0x69, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x44, 0x75, 0x73,
- 0x68, 0x61, 0x6e, 0x62, 0x65, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x46, 0x61, 0x6d, 0x61,
- 0x67, 0x75, 0x73, 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x47, 0x61, 0x7a, 0x61,
- 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x48, 0x61, 0x72, 0x62, 0x69, 0x6e, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x48, 0x65, 0x62, 0x72, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x48, 0x6f, 0x6e, 0x67, 0x5f, 0x4b, 0x6f, 0x6e, 0x67, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x48, 0x6f, 0x76, 0x64, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x48, 0x6f, 0x5f, 0x43,
- 0x68, 0x69, 0x5f, 0x4d, 0x69, 0x6e, 0x68, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x49, 0x72,
- 0x6b, 0x75, 0x74, 0x73, 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x49, 0x73, 0x74, 0x61,
- 0x6e, 0x62, 0x75, 0x6c, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4a, 0x61, 0x6b, 0x61, 0x72,
- 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4a, 0x61, 0x79, 0x61, 0x70, 0x75, 0x72,
- 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4a, 0x65, 0x72, 0x75, 0x73, 0x61, 0x6c, 0x65,
- 0x6d, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4b, 0x61, 0x62, 0x75, 0x6c, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x4b, 0x61, 0x6d, 0x63, 0x68, 0x61, 0x74, 0x6b, 0x61, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x4b, 0x61, 0x72, 0x61, 0x63, 0x68, 0x69, 0x0d, 0x0a, 0x41, 0x73, 0x69,
- 0x61, 0x2f, 0x4b, 0x61, 0x73, 0x68, 0x67, 0x61, 0x72, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f,
- 0x4b, 0x61, 0x74, 0x68, 0x6d, 0x61, 0x6e, 0x64, 0x75, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f,
- 0x4b, 0x61, 0x74, 0x6d, 0x61, 0x6e, 0x64, 0x75, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4b,
- 0x68, 0x61, 0x6e, 0x64, 0x79, 0x67, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4b, 0x6f,
- 0x6c, 0x6b, 0x61, 0x74, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4b, 0x72, 0x61, 0x73,
- 0x6e, 0x6f, 0x79, 0x61, 0x72, 0x73, 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4b, 0x75,
- 0x61, 0x6c, 0x61, 0x5f, 0x4c, 0x75, 0x6d, 0x70, 0x75, 0x72, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x4b, 0x75, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4b,
- 0x75, 0x77, 0x61, 0x69, 0x74, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4d, 0x61, 0x63, 0x61,
- 0x6f, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4d, 0x61, 0x63, 0x61, 0x75, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x4d, 0x61, 0x67, 0x61, 0x64, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69,
- 0x61, 0x2f, 0x4d, 0x61, 0x6b, 0x61, 0x73, 0x73, 0x61, 0x72, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x4d, 0x61, 0x6e, 0x69, 0x6c, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4d, 0x75,
- 0x73, 0x63, 0x61, 0x74, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4e, 0x69, 0x63, 0x6f, 0x73,
- 0x69, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4e, 0x6f, 0x76, 0x6f, 0x6b, 0x75, 0x7a,
- 0x6e, 0x65, 0x74, 0x73, 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4e, 0x6f, 0x76, 0x6f,
- 0x73, 0x69, 0x62, 0x69, 0x72, 0x73, 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4f, 0x6d,
- 0x73, 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x4f, 0x72, 0x61, 0x6c, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x50, 0x68, 0x6e, 0x6f, 0x6d, 0x5f, 0x50, 0x65, 0x6e, 0x68, 0x0d, 0x0a,
- 0x41, 0x73, 0x69, 0x61, 0x2f, 0x50, 0x6f, 0x6e, 0x74, 0x69, 0x61, 0x6e, 0x61, 0x6b, 0x0d, 0x0a,
- 0x41, 0x73, 0x69, 0x61, 0x2f, 0x50, 0x79, 0x6f, 0x6e, 0x67, 0x79, 0x61, 0x6e, 0x67, 0x0d, 0x0a,
- 0x41, 0x73, 0x69, 0x61, 0x2f, 0x51, 0x61, 0x74, 0x61, 0x72, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x51, 0x79, 0x7a, 0x79, 0x6c, 0x6f, 0x72, 0x64, 0x61, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x52, 0x61, 0x6e, 0x67, 0x6f, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x52,
- 0x69, 0x79, 0x61, 0x64, 0x68, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x53, 0x61, 0x69, 0x67,
- 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x53, 0x61, 0x6b, 0x68, 0x61, 0x6c, 0x69,
- 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x53, 0x61, 0x6d, 0x61, 0x72, 0x6b, 0x61, 0x6e,
- 0x64, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x53, 0x65, 0x6f, 0x75, 0x6c, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x53, 0x68, 0x61, 0x6e, 0x67, 0x68, 0x61, 0x69, 0x0d, 0x0a, 0x41, 0x73,
- 0x69, 0x61, 0x2f, 0x53, 0x69, 0x6e, 0x67, 0x61, 0x70, 0x6f, 0x72, 0x65, 0x0d, 0x0a, 0x41, 0x73,
- 0x69, 0x61, 0x2f, 0x53, 0x72, 0x65, 0x64, 0x6e, 0x65, 0x6b, 0x6f, 0x6c, 0x79, 0x6d, 0x73, 0x6b,
- 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x54, 0x61, 0x69, 0x70, 0x65, 0x69, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x54, 0x61, 0x73, 0x68, 0x6b, 0x65, 0x6e, 0x74, 0x0d, 0x0a, 0x41, 0x73,
- 0x69, 0x61, 0x2f, 0x54, 0x62, 0x69, 0x6c, 0x69, 0x73, 0x69, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61,
- 0x2f, 0x54, 0x65, 0x68, 0x72, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x54, 0x65,
- 0x6c, 0x5f, 0x41, 0x76, 0x69, 0x76, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x54, 0x68, 0x69,
- 0x6d, 0x62, 0x75, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x54, 0x68, 0x69, 0x6d, 0x70, 0x68,
- 0x75, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x54, 0x6f, 0x6b, 0x79, 0x6f, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x54, 0x6f, 0x6d, 0x73, 0x6b, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f,
- 0x55, 0x6a, 0x75, 0x6e, 0x67, 0x5f, 0x50, 0x61, 0x6e, 0x64, 0x61, 0x6e, 0x67, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x55, 0x6c, 0x61, 0x61, 0x6e, 0x62, 0x61, 0x61, 0x74, 0x61, 0x72, 0x0d,
- 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x55, 0x6c, 0x61, 0x6e, 0x5f, 0x42, 0x61, 0x74, 0x6f, 0x72,
- 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f, 0x55, 0x72, 0x75, 0x6d, 0x71, 0x69, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x55, 0x73, 0x74, 0x2d, 0x4e, 0x65, 0x72, 0x61, 0x0d, 0x0a, 0x41, 0x73,
- 0x69, 0x61, 0x2f, 0x56, 0x69, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6e, 0x65, 0x0d, 0x0a, 0x41, 0x73,
- 0x69, 0x61, 0x2f, 0x56, 0x6c, 0x61, 0x64, 0x69, 0x76, 0x6f, 0x73, 0x74, 0x6f, 0x6b, 0x0d, 0x0a,
- 0x41, 0x73, 0x69, 0x61, 0x2f, 0x59, 0x61, 0x6b, 0x75, 0x74, 0x73, 0x6b, 0x0d, 0x0a, 0x41, 0x73,
- 0x69, 0x61, 0x2f, 0x59, 0x61, 0x6e, 0x67, 0x6f, 0x6e, 0x0d, 0x0a, 0x41, 0x73, 0x69, 0x61, 0x2f,
- 0x59, 0x65, 0x6b, 0x61, 0x74, 0x65, 0x72, 0x69, 0x6e, 0x62, 0x75, 0x72, 0x67, 0x0d, 0x0a, 0x41,
- 0x73, 0x69, 0x61, 0x2f, 0x59, 0x65, 0x72, 0x65, 0x76, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x74, 0x6c,
- 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f, 0x41, 0x7a, 0x6f, 0x72, 0x65, 0x73, 0x0d, 0x0a, 0x41, 0x74,
- 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f, 0x42, 0x65, 0x72, 0x6d, 0x75, 0x64, 0x61, 0x0d, 0x0a,
- 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f, 0x43, 0x61, 0x6e, 0x61, 0x72, 0x79, 0x0d,
- 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f, 0x43, 0x61, 0x70, 0x65, 0x5f, 0x56,
- 0x65, 0x72, 0x64, 0x65, 0x0d, 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f, 0x46,
- 0x61, 0x65, 0x72, 0x6f, 0x65, 0x0d, 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f,
- 0x46, 0x61, 0x72, 0x6f, 0x65, 0x0d, 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f,
- 0x4a, 0x61, 0x6e, 0x5f, 0x4d, 0x61, 0x79, 0x65, 0x6e, 0x0d, 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e,
- 0x74, 0x69, 0x63, 0x2f, 0x4d, 0x61, 0x64, 0x65, 0x69, 0x72, 0x61, 0x0d, 0x0a, 0x41, 0x74, 0x6c,
- 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f, 0x52, 0x65, 0x79, 0x6b, 0x6a, 0x61, 0x76, 0x69, 0x6b, 0x0d,
- 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x2f, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x5f,
- 0x47, 0x65, 0x6f, 0x72, 0x67, 0x69, 0x61, 0x0d, 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69,
- 0x63, 0x2f, 0x53, 0x74, 0x61, 0x6e, 0x6c, 0x65, 0x79, 0x0d, 0x0a, 0x41, 0x74, 0x6c, 0x61, 0x6e,
- 0x74, 0x69, 0x63, 0x2f, 0x53, 0x74, 0x5f, 0x48, 0x65, 0x6c, 0x65, 0x6e, 0x61, 0x0d, 0x0a, 0x41,
- 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x41, 0x43, 0x54, 0x0d, 0x0a, 0x41, 0x75,
- 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x41, 0x64, 0x65, 0x6c, 0x61, 0x69, 0x64, 0x65,
- 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x42, 0x72, 0x69, 0x73,
- 0x62, 0x61, 0x6e, 0x65, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f,
- 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x48, 0x69, 0x6c, 0x6c, 0x0d, 0x0a, 0x41, 0x75, 0x73,
- 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x43, 0x61, 0x6e, 0x62, 0x65, 0x72, 0x72, 0x61, 0x0d,
- 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x43, 0x75, 0x72, 0x72, 0x69,
- 0x65, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x44, 0x61, 0x72,
- 0x77, 0x69, 0x6e, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x45,
- 0x75, 0x63, 0x6c, 0x61, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f,
- 0x48, 0x6f, 0x62, 0x61, 0x72, 0x74, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69,
- 0x61, 0x2f, 0x4c, 0x48, 0x49, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61,
- 0x2f, 0x4c, 0x69, 0x6e, 0x64, 0x65, 0x6d, 0x61, 0x6e, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72,
- 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x4c, 0x6f, 0x72, 0x64, 0x5f, 0x48, 0x6f, 0x77, 0x65, 0x0d, 0x0a,
- 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x4d, 0x65, 0x6c, 0x62, 0x6f, 0x75,
- 0x72, 0x6e, 0x65, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x4e,
- 0x6f, 0x72, 0x74, 0x68, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f,
- 0x4e, 0x53, 0x57, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x50,
- 0x65, 0x72, 0x74, 0x68, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f,
- 0x51, 0x75, 0x65, 0x65, 0x6e, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74,
- 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x0d, 0x0a, 0x41, 0x75, 0x73,
- 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x53, 0x79, 0x64, 0x6e, 0x65, 0x79, 0x0d, 0x0a, 0x41,
- 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x54, 0x61, 0x73, 0x6d, 0x61, 0x6e, 0x69,
- 0x61, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61, 0x2f, 0x56, 0x69, 0x63,
- 0x74, 0x6f, 0x72, 0x69, 0x61, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61,
- 0x2f, 0x57, 0x65, 0x73, 0x74, 0x0d, 0x0a, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x61,
- 0x2f, 0x59, 0x61, 0x6e, 0x63, 0x6f, 0x77, 0x69, 0x6e, 0x6e, 0x61, 0x0d, 0x0a, 0x42, 0x72, 0x61,
- 0x7a, 0x69, 0x6c, 0x2f, 0x41, 0x63, 0x72, 0x65, 0x0d, 0x0a, 0x42, 0x72, 0x61, 0x7a, 0x69, 0x6c,
- 0x2f, 0x44, 0x65, 0x4e, 0x6f, 0x72, 0x6f, 0x6e, 0x68, 0x61, 0x0d, 0x0a, 0x42, 0x72, 0x61, 0x7a,
- 0x69, 0x6c, 0x2f, 0x45, 0x61, 0x73, 0x74, 0x0d, 0x0a, 0x42, 0x72, 0x61, 0x7a, 0x69, 0x6c, 0x2f,
- 0x57, 0x65, 0x73, 0x74, 0x0d, 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x41, 0x74, 0x6c,
- 0x61, 0x6e, 0x74, 0x69, 0x63, 0x0d, 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x43, 0x65,
- 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x0d, 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x45, 0x61,
- 0x73, 0x74, 0x2d, 0x53, 0x61, 0x73, 0x6b, 0x61, 0x74, 0x63, 0x68, 0x65, 0x77, 0x61, 0x6e, 0x0d,
- 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x45, 0x61, 0x73, 0x74, 0x65, 0x72, 0x6e, 0x0d,
- 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e,
- 0x0d, 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x4e, 0x65, 0x77, 0x66, 0x6f, 0x75, 0x6e,
- 0x64, 0x6c, 0x61, 0x6e, 0x64, 0x0d, 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x50, 0x61,
- 0x63, 0x69, 0x66, 0x69, 0x63, 0x0d, 0x0a, 0x43, 0x61, 0x6e, 0x61, 0x64, 0x61, 0x2f, 0x53, 0x61,
- 0x73, 0x6b, 0x61, 0x74, 0x63, 0x68, 0x65, 0x77, 0x61, 0x6e, 0x0d, 0x0a, 0x43, 0x61, 0x6e, 0x61,
- 0x64, 0x61, 0x2f, 0x59, 0x75, 0x6b, 0x6f, 0x6e, 0x0d, 0x0a, 0x43, 0x68, 0x69, 0x6c, 0x65, 0x2f,
- 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x0d, 0x0a, 0x43, 0x68, 0x69,
- 0x6c, 0x65, 0x2f, 0x45, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x0d,
- 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d,
- 0x54, 0x2b, 0x30, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x31, 0x0d, 0x0a,
- 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x31, 0x30, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f,
- 0x47, 0x4d, 0x54, 0x2b, 0x31, 0x31, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b,
- 0x31, 0x32, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x32, 0x0d, 0x0a, 0x45,
- 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x33, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d,
- 0x54, 0x2b, 0x34, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x35, 0x0d, 0x0a,
- 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x36, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47,
- 0x4d, 0x54, 0x2b, 0x37, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x38, 0x0d,
- 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2b, 0x39, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f,
- 0x47, 0x4d, 0x54, 0x2d, 0x30, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x31,
- 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x31, 0x30, 0x0d, 0x0a, 0x45, 0x74,
- 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x31, 0x31, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d,
- 0x54, 0x2d, 0x31, 0x32, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x31, 0x33,
- 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x31, 0x34, 0x0d, 0x0a, 0x45, 0x74,
- 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x32, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54,
- 0x2d, 0x33, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x34, 0x0d, 0x0a, 0x45,
- 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x35, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d,
- 0x54, 0x2d, 0x36, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x37, 0x0d, 0x0a,
- 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x2d, 0x38, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47,
- 0x4d, 0x54, 0x2d, 0x39, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x47, 0x4d, 0x54, 0x30, 0x0d, 0x0a,
- 0x45, 0x74, 0x63, 0x2f, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x77, 0x69, 0x63, 0x68, 0x0d, 0x0a, 0x45,
- 0x74, 0x63, 0x2f, 0x55, 0x43, 0x54, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x55, 0x6e, 0x69, 0x76,
- 0x65, 0x72, 0x73, 0x61, 0x6c, 0x0d, 0x0a, 0x45, 0x74, 0x63, 0x2f, 0x55, 0x54, 0x43, 0x0d, 0x0a,
- 0x45, 0x74, 0x63, 0x2f, 0x5a, 0x75, 0x6c, 0x75, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65,
- 0x2f, 0x41, 0x6d, 0x73, 0x74, 0x65, 0x72, 0x64, 0x61, 0x6d, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f,
- 0x70, 0x65, 0x2f, 0x41, 0x6e, 0x64, 0x6f, 0x72, 0x72, 0x61, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f,
- 0x70, 0x65, 0x2f, 0x41, 0x73, 0x74, 0x72, 0x61, 0x6b, 0x68, 0x61, 0x6e, 0x0d, 0x0a, 0x45, 0x75,
- 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x41, 0x74, 0x68, 0x65, 0x6e, 0x73, 0x0d, 0x0a, 0x45, 0x75, 0x72,
- 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x65, 0x6c, 0x66, 0x61, 0x73, 0x74, 0x0d, 0x0a, 0x45, 0x75, 0x72,
- 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x65, 0x6c, 0x67, 0x72, 0x61, 0x64, 0x65, 0x0d, 0x0a, 0x45, 0x75,
- 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x65, 0x72, 0x6c, 0x69, 0x6e, 0x0d, 0x0a, 0x45, 0x75, 0x72,
- 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x72, 0x61, 0x74, 0x69, 0x73, 0x6c, 0x61, 0x76, 0x61, 0x0d, 0x0a,
- 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x72, 0x75, 0x73, 0x73, 0x65, 0x6c, 0x73, 0x0d,
- 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x75, 0x63, 0x68, 0x61, 0x72, 0x65, 0x73,
- 0x74, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x75, 0x64, 0x61, 0x70, 0x65,
- 0x73, 0x74, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x42, 0x75, 0x73, 0x69, 0x6e,
- 0x67, 0x65, 0x6e, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x43, 0x68, 0x69, 0x73,
- 0x69, 0x6e, 0x61, 0x75, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x43, 0x6f, 0x70,
- 0x65, 0x6e, 0x68, 0x61, 0x67, 0x65, 0x6e, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f,
- 0x44, 0x75, 0x62, 0x6c, 0x69, 0x6e, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x47,
- 0x69, 0x62, 0x72, 0x61, 0x6c, 0x74, 0x61, 0x72, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65,
- 0x2f, 0x47, 0x75, 0x65, 0x72, 0x6e, 0x73, 0x65, 0x79, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70,
- 0x65, 0x2f, 0x48, 0x65, 0x6c, 0x73, 0x69, 0x6e, 0x6b, 0x69, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f,
- 0x70, 0x65, 0x2f, 0x49, 0x73, 0x6c, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x4d, 0x61, 0x6e, 0x0d, 0x0a,
- 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x49, 0x73, 0x74, 0x61, 0x6e, 0x62, 0x75, 0x6c, 0x0d,
- 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4a, 0x65, 0x72, 0x73, 0x65, 0x79, 0x0d, 0x0a,
- 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4b, 0x61, 0x6c, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x72,
- 0x61, 0x64, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4b, 0x69, 0x65, 0x76, 0x0d,
- 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4b, 0x69, 0x72, 0x6f, 0x76, 0x0d, 0x0a, 0x45,
- 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4c, 0x69, 0x73, 0x62, 0x6f, 0x6e, 0x0d, 0x0a, 0x45, 0x75,
- 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4c, 0x6a, 0x75, 0x62, 0x6c, 0x6a, 0x61, 0x6e, 0x61, 0x0d, 0x0a,
- 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4c, 0x6f, 0x6e, 0x64, 0x6f, 0x6e, 0x0d, 0x0a, 0x45,
- 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4c, 0x75, 0x78, 0x65, 0x6d, 0x62, 0x6f, 0x75, 0x72, 0x67,
- 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4d, 0x61, 0x64, 0x72, 0x69, 0x64, 0x0d,
- 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4d, 0x61, 0x6c, 0x74, 0x61, 0x0d, 0x0a, 0x45,
- 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4d, 0x61, 0x72, 0x69, 0x65, 0x68, 0x61, 0x6d, 0x6e, 0x0d,
- 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4d, 0x69, 0x6e, 0x73, 0x6b, 0x0d, 0x0a, 0x45,
- 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4d, 0x6f, 0x6e, 0x61, 0x63, 0x6f, 0x0d, 0x0a, 0x45, 0x75,
- 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x4d, 0x6f, 0x73, 0x63, 0x6f, 0x77, 0x0d, 0x0a, 0x45, 0x75, 0x72,
- 0x6f, 0x70, 0x65, 0x2f, 0x4e, 0x69, 0x63, 0x6f, 0x73, 0x69, 0x61, 0x0d, 0x0a, 0x45, 0x75, 0x72,
- 0x6f, 0x70, 0x65, 0x2f, 0x4f, 0x73, 0x6c, 0x6f, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65,
- 0x2f, 0x50, 0x61, 0x72, 0x69, 0x73, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x50,
- 0x6f, 0x64, 0x67, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65,
- 0x2f, 0x50, 0x72, 0x61, 0x67, 0x75, 0x65, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f,
- 0x52, 0x69, 0x67, 0x61, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x52, 0x6f, 0x6d,
- 0x65, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x53, 0x61, 0x6d, 0x61, 0x72, 0x61,
- 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x53, 0x61, 0x6e, 0x5f, 0x4d, 0x61, 0x72,
- 0x69, 0x6e, 0x6f, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x53, 0x61, 0x72, 0x61,
- 0x6a, 0x65, 0x76, 0x6f, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x53, 0x61, 0x72,
- 0x61, 0x74, 0x6f, 0x76, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x53, 0x69, 0x6d,
- 0x66, 0x65, 0x72, 0x6f, 0x70, 0x6f, 0x6c, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f,
- 0x53, 0x6b, 0x6f, 0x70, 0x6a, 0x65, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x53,
- 0x6f, 0x66, 0x69, 0x61, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x53, 0x74, 0x6f,
- 0x63, 0x6b, 0x68, 0x6f, 0x6c, 0x6d, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x54,
- 0x61, 0x6c, 0x6c, 0x69, 0x6e, 0x6e, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x54,
- 0x69, 0x72, 0x61, 0x6e, 0x65, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x54, 0x69,
- 0x72, 0x61, 0x73, 0x70, 0x6f, 0x6c, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x55,
- 0x6c, 0x79, 0x61, 0x6e, 0x6f, 0x76, 0x73, 0x6b, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65,
- 0x2f, 0x55, 0x7a, 0x68, 0x67, 0x6f, 0x72, 0x6f, 0x64, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70,
- 0x65, 0x2f, 0x56, 0x61, 0x64, 0x75, 0x7a, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f,
- 0x56, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6e, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f,
- 0x56, 0x69, 0x65, 0x6e, 0x6e, 0x61, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x56,
- 0x69, 0x6c, 0x6e, 0x69, 0x75, 0x73, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x56,
- 0x6f, 0x6c, 0x67, 0x6f, 0x67, 0x72, 0x61, 0x64, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65,
- 0x2f, 0x57, 0x61, 0x72, 0x73, 0x61, 0x77, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f,
- 0x5a, 0x61, 0x67, 0x72, 0x65, 0x62, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70, 0x65, 0x2f, 0x5a,
- 0x61, 0x70, 0x6f, 0x72, 0x6f, 0x7a, 0x68, 0x79, 0x65, 0x0d, 0x0a, 0x45, 0x75, 0x72, 0x6f, 0x70,
- 0x65, 0x2f, 0x5a, 0x75, 0x72, 0x69, 0x63, 0x68, 0x0d, 0x0a, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e,
- 0x2f, 0x41, 0x6e, 0x74, 0x61, 0x6e, 0x61, 0x6e, 0x61, 0x72, 0x69, 0x76, 0x6f, 0x0d, 0x0a, 0x49,
- 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x2f, 0x43, 0x68, 0x61, 0x67, 0x6f, 0x73, 0x0d, 0x0a, 0x49, 0x6e,
- 0x64, 0x69, 0x61, 0x6e, 0x2f, 0x43, 0x68, 0x72, 0x69, 0x73, 0x74, 0x6d, 0x61, 0x73, 0x0d, 0x0a,
- 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x2f, 0x43, 0x6f, 0x63, 0x6f, 0x73, 0x0d, 0x0a, 0x49, 0x6e,
- 0x64, 0x69, 0x61, 0x6e, 0x2f, 0x43, 0x6f, 0x6d, 0x6f, 0x72, 0x6f, 0x0d, 0x0a, 0x49, 0x6e, 0x64,
- 0x69, 0x61, 0x6e, 0x2f, 0x4b, 0x65, 0x72, 0x67, 0x75, 0x65, 0x6c, 0x65, 0x6e, 0x0d, 0x0a, 0x49,
- 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x2f, 0x4d, 0x61, 0x68, 0x65, 0x0d, 0x0a, 0x49, 0x6e, 0x64, 0x69,
- 0x61, 0x6e, 0x2f, 0x4d, 0x61, 0x6c, 0x64, 0x69, 0x76, 0x65, 0x73, 0x0d, 0x0a, 0x49, 0x6e, 0x64,
- 0x69, 0x61, 0x6e, 0x2f, 0x4d, 0x61, 0x75, 0x72, 0x69, 0x74, 0x69, 0x75, 0x73, 0x0d, 0x0a, 0x49,
- 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x2f, 0x4d, 0x61, 0x79, 0x6f, 0x74, 0x74, 0x65, 0x0d, 0x0a, 0x49,
- 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x2f, 0x52, 0x65, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x0d, 0x0a, 0x4d,
- 0x65, 0x78, 0x69, 0x63, 0x6f, 0x2f, 0x42, 0x61, 0x6a, 0x61, 0x4e, 0x6f, 0x72, 0x74, 0x65, 0x0d,
- 0x0a, 0x4d, 0x65, 0x78, 0x69, 0x63, 0x6f, 0x2f, 0x42, 0x61, 0x6a, 0x61, 0x53, 0x75, 0x72, 0x0d,
- 0x0a, 0x4d, 0x65, 0x78, 0x69, 0x63, 0x6f, 0x2f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x0d,
- 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x41, 0x70, 0x69, 0x61, 0x0d, 0x0a, 0x50,
- 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x41, 0x75, 0x63, 0x6b, 0x6c, 0x61, 0x6e, 0x64, 0x0d,
- 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x42, 0x6f, 0x75, 0x67, 0x61, 0x69, 0x6e,
- 0x76, 0x69, 0x6c, 0x6c, 0x65, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x43,
- 0x68, 0x61, 0x74, 0x68, 0x61, 0x6d, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f,
- 0x43, 0x68, 0x75, 0x75, 0x6b, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x45,
- 0x61, 0x73, 0x74, 0x65, 0x72, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x45,
- 0x66, 0x61, 0x74, 0x65, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x45, 0x6e,
- 0x64, 0x65, 0x72, 0x62, 0x75, 0x72, 0x79, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63,
- 0x2f, 0x46, 0x61, 0x6b, 0x61, 0x6f, 0x66, 0x6f, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69,
- 0x63, 0x2f, 0x46, 0x69, 0x6a, 0x69, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f,
- 0x46, 0x75, 0x6e, 0x61, 0x66, 0x75, 0x74, 0x69, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69,
- 0x63, 0x2f, 0x47, 0x61, 0x6c, 0x61, 0x70, 0x61, 0x67, 0x6f, 0x73, 0x0d, 0x0a, 0x50, 0x61, 0x63,
- 0x69, 0x66, 0x69, 0x63, 0x2f, 0x47, 0x61, 0x6d, 0x62, 0x69, 0x65, 0x72, 0x0d, 0x0a, 0x50, 0x61,
- 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x47, 0x75, 0x61, 0x64, 0x61, 0x6c, 0x63, 0x61, 0x6e, 0x61,
- 0x6c, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x47, 0x75, 0x61, 0x6d, 0x0d,
- 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x48, 0x6f, 0x6e, 0x6f, 0x6c, 0x75, 0x6c,
- 0x75, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x4a, 0x6f, 0x68, 0x6e, 0x73,
- 0x74, 0x6f, 0x6e, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x4b, 0x69, 0x72,
- 0x69, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x69, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63,
- 0x2f, 0x4b, 0x6f, 0x73, 0x72, 0x61, 0x65, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63,
- 0x2f, 0x4b, 0x77, 0x61, 0x6a, 0x61, 0x6c, 0x65, 0x69, 0x6e, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69,
- 0x66, 0x69, 0x63, 0x2f, 0x4d, 0x61, 0x6a, 0x75, 0x72, 0x6f, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69,
- 0x66, 0x69, 0x63, 0x2f, 0x4d, 0x61, 0x72, 0x71, 0x75, 0x65, 0x73, 0x61, 0x73, 0x0d, 0x0a, 0x50,
- 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x4d, 0x69, 0x64, 0x77, 0x61, 0x79, 0x0d, 0x0a, 0x50,
- 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x4e, 0x61, 0x75, 0x72, 0x75, 0x0d, 0x0a, 0x50, 0x61,
- 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x4e, 0x69, 0x75, 0x65, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69,
- 0x66, 0x69, 0x63, 0x2f, 0x4e, 0x6f, 0x72, 0x66, 0x6f, 0x6c, 0x6b, 0x0d, 0x0a, 0x50, 0x61, 0x63,
- 0x69, 0x66, 0x69, 0x63, 0x2f, 0x4e, 0x6f, 0x75, 0x6d, 0x65, 0x61, 0x0d, 0x0a, 0x50, 0x61, 0x63,
- 0x69, 0x66, 0x69, 0x63, 0x2f, 0x50, 0x61, 0x67, 0x6f, 0x5f, 0x50, 0x61, 0x67, 0x6f, 0x0d, 0x0a,
- 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x50, 0x61, 0x6c, 0x61, 0x75, 0x0d, 0x0a, 0x50,
- 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x50, 0x69, 0x74, 0x63, 0x61, 0x69, 0x72, 0x6e, 0x0d,
- 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x50, 0x6f, 0x68, 0x6e, 0x70, 0x65, 0x69,
- 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x50, 0x6f, 0x6e, 0x61, 0x70, 0x65,
- 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f, 0x50, 0x6f, 0x72, 0x74, 0x5f, 0x4d,
- 0x6f, 0x72, 0x65, 0x73, 0x62, 0x79, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, 0x2f,
- 0x52, 0x61, 0x72, 0x6f, 0x74, 0x6f, 0x6e, 0x67, 0x61, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66,
- 0x69, 0x63, 0x2f, 0x53, 0x61, 0x69, 0x70, 0x61, 0x6e, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66,
- 0x69, 0x63, 0x2f, 0x53, 0x61, 0x6d, 0x6f, 0x61, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69,
- 0x63, 0x2f, 0x54, 0x61, 0x68, 0x69, 0x74, 0x69, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69,
- 0x63, 0x2f, 0x54, 0x61, 0x72, 0x61, 0x77, 0x61, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69,
- 0x63, 0x2f, 0x54, 0x6f, 0x6e, 0x67, 0x61, 0x74, 0x61, 0x70, 0x75, 0x0d, 0x0a, 0x50, 0x61, 0x63,
- 0x69, 0x66, 0x69, 0x63, 0x2f, 0x54, 0x72, 0x75, 0x6b, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66,
- 0x69, 0x63, 0x2f, 0x57, 0x61, 0x6b, 0x65, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63,
- 0x2f, 0x57, 0x61, 0x6c, 0x6c, 0x69, 0x73, 0x0d, 0x0a, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63,
- 0x2f, 0x59, 0x61, 0x70, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x41, 0x6c, 0x61, 0x73, 0x6b, 0x61, 0x0d,
- 0x0a, 0x55, 0x53, 0x2f, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x69, 0x61, 0x6e, 0x0d, 0x0a, 0x55, 0x53,
- 0x2f, 0x41, 0x72, 0x69, 0x7a, 0x6f, 0x6e, 0x61, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x43, 0x65, 0x6e,
- 0x74, 0x72, 0x61, 0x6c, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x45, 0x61, 0x73, 0x74, 0x2d, 0x49, 0x6e,
- 0x64, 0x69, 0x61, 0x6e, 0x61, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x45, 0x61, 0x73, 0x74, 0x65, 0x72,
- 0x6e, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x48, 0x61, 0x77, 0x61, 0x69, 0x69, 0x0d, 0x0a, 0x55, 0x53,
- 0x2f, 0x49, 0x6e, 0x64, 0x69, 0x61, 0x6e, 0x61, 0x2d, 0x53, 0x74, 0x61, 0x72, 0x6b, 0x65, 0x0d,
- 0x0a, 0x55, 0x53, 0x2f, 0x4d, 0x69, 0x63, 0x68, 0x69, 0x67, 0x61, 0x6e, 0x0d, 0x0a, 0x55, 0x53,
- 0x2f, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x50, 0x61,
- 0x63, 0x69, 0x66, 0x69, 0x63, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x50, 0x61, 0x63, 0x69, 0x66, 0x69,
- 0x63, 0x2d, 0x4e, 0x65, 0x77, 0x0d, 0x0a, 0x55, 0x53, 0x2f, 0x53, 0x61, 0x6d, 0x6f, 0x61, 0x0d,
- 0x0a};
+#include "nx_tzdb.h"
-static VirtualFile GenerateDefaultTimeZoneFile() {
- struct TimeZoneInfo {
- s64_be at;
- std::array<u8, 7> padding1;
- std::array<char, 4> time_zone_chars;
- std::array<u8, 2> padding2;
- std::array<char, 6> time_zone_name;
- };
+namespace FileSys::SystemArchive {
- VirtualFile file{std::make_shared<VectorVfsFile>(
- std::vector<u8>(sizeof(Service::Time::TimeZone::TzifHeader) + sizeof(TimeZoneInfo)),
- "GMT")};
+const static std::map<std::string, const std::map<const char*, const std::vector<u8>>&>
+ tzdb_zoneinfo_dirs = {{"Africa", NxTzdb::africa},
+ {"America", NxTzdb::america},
+ {"Antarctica", NxTzdb::antarctica},
+ {"Arctic", NxTzdb::arctic},
+ {"Asia", NxTzdb::asia},
+ {"Atlantic", NxTzdb::atlantic},
+ {"Australia", NxTzdb::australia},
+ {"Brazil", NxTzdb::brazil},
+ {"Canada", NxTzdb::canada},
+ {"Chile", NxTzdb::chile},
+ {"Etc", NxTzdb::etc},
+ {"Europe", NxTzdb::europe},
+ {"Indian", NxTzdb::indian},
+ {"Mexico", NxTzdb::mexico},
+ {"Pacific", NxTzdb::pacific},
+ {"US", NxTzdb::us}};
- const Service::Time::TimeZone::TzifHeader header{
- .magic = 0x545a6966,
- .version = 0x32,
- .ttis_gmt_count = 1,
- .ttis_std_count = 1,
- .time_count = 1,
- .type_count = 1,
- .char_count = 4,
- };
- file->WriteObject(header, 0);
+const static std::map<std::string, const std::map<const char*, const std::vector<u8>>&>
+ tzdb_america_dirs = {{"Argentina", NxTzdb::america_argentina},
+ {"Indiana", NxTzdb::america_indiana},
+ {"Kentucky", NxTzdb::america_kentucky},
+ {"North_Dakota", NxTzdb::america_north_dakota}};
- const TimeZoneInfo time_zone_info{
- .at = 0xf8,
- .padding1 = {},
- .time_zone_chars = {'G', 'M', 'T', '\0'},
- .padding2 = {},
- .time_zone_name = {'\n', 'G', 'M', 'T', '0', '\n'},
- };
- file->WriteObject(time_zone_info, sizeof(Service::Time::TimeZone::TzifHeader));
+static void GenerateFiles(std::vector<VirtualFile>& directory,
+ const std::map<const char*, const std::vector<u8>>& files) {
+ for (const auto& [filename, data] : files) {
+ const auto data_copy{data};
+ const std::string filename_copy{filename};
+ VirtualFile file{
+ std::make_shared<VectorVfsFile>(std::move(data_copy), std::move(filename_copy))};
+ directory.push_back(file);
+ }
+}
- return file;
+static std::vector<VirtualFile> GenerateZoneinfoFiles() {
+ std::vector<VirtualFile> zoneinfo_files;
+ GenerateFiles(zoneinfo_files, NxTzdb::zoneinfo);
+ return zoneinfo_files;
}
VirtualDir TimeZoneBinary() {
- std::vector<VirtualDir> root_dirs{std::make_shared<VectorVfsDirectory>(
- std::vector<VirtualFile>{GenerateDefaultTimeZoneFile()}, std::vector<VirtualDir>{},
- "zoneinfo")};
- std::vector<VirtualFile> root_files{MakeArrayFile(LOCATION_NAMES, "binaryList.txt")};
+ std::vector<VirtualDir> america_sub_dirs;
+ for (const auto& [dir_name, files] : tzdb_america_dirs) {
+ std::vector<VirtualFile> vfs_files;
+ GenerateFiles(vfs_files, files);
+ america_sub_dirs.push_back(std::make_shared<VectorVfsDirectory>(
+ std::move(vfs_files), std::vector<VirtualDir>{}, dir_name));
+ }
+
+ std::vector<VirtualDir> zoneinfo_sub_dirs;
+ for (const auto& [dir_name, files] : tzdb_zoneinfo_dirs) {
+ std::vector<VirtualFile> vfs_files;
+ GenerateFiles(vfs_files, files);
+ if (dir_name == "America") {
+ zoneinfo_sub_dirs.push_back(std::make_shared<VectorVfsDirectory>(
+ std::move(vfs_files), std::move(america_sub_dirs), dir_name));
+ } else {
+ zoneinfo_sub_dirs.push_back(std::make_shared<VectorVfsDirectory>(
+ std::move(vfs_files), std::vector<VirtualDir>{}, dir_name));
+ }
+ }
+
+ std::vector<VirtualDir> zoneinfo_dir{std::make_shared<VectorVfsDirectory>(
+ GenerateZoneinfoFiles(), std::move(zoneinfo_sub_dirs), "zoneinfo")};
+ std::vector<VirtualFile> root_files;
+ GenerateFiles(root_files, NxTzdb::base);
- return std::make_shared<VectorVfsDirectory>(std::move(root_files), std::move(root_dirs),
+ return std::make_shared<VectorVfsDirectory>(std::move(root_files), std::move(zoneinfo_dir),
"data");
}
diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.h
index 8fc1738a4..a93e21f67 100644
--- a/src/core/file_sys/vfs.h
+++ b/src/core/file_sys/vfs.h
@@ -45,7 +45,7 @@ public:
// Return whether or not the user has write permission on this filesystem.
virtual bool IsWritable() const;
- // Determine if the entry at path is non-existant, a file, or a directory.
+ // Determine if the entry at path is non-existent, a file, or a directory.
virtual VfsEntryType GetEntryType(std::string_view path) const;
// Opens the file with path relative to root. If it doesn't exist, returns nullptr.
@@ -58,7 +58,7 @@ public:
// Moves the file from old_path to new_path, returning the moved file on success and nullptr on
// failure.
virtual VirtualFile MoveFile(std::string_view old_path, std::string_view new_path);
- // Deletes the file with path relative to root, returing true on success.
+ // Deletes the file with path relative to root, returning true on success.
virtual bool DeleteFile(std::string_view path);
// Opens the directory with path relative to root. If it doesn't exist, returns nullptr.
@@ -71,7 +71,7 @@ public:
// Moves the directory from old_path to new_path, returning the moved directory on success and
// nullptr on failure.
virtual VirtualDir MoveDirectory(std::string_view old_path, std::string_view new_path);
- // Deletes the directory with path relative to root, returing true on success.
+ // Deletes the directory with path relative to root, returning true on success.
virtual bool DeleteDirectory(std::string_view path);
protected:
@@ -144,7 +144,7 @@ public:
return Read(reinterpret_cast<u8*>(data), sizeof(T), offset);
}
- // Writes exactly one byte to offset in file and retuns whether or not the byte was written
+ // Writes exactly one byte to offset in file and returns whether or not the byte was written
// successfully.
virtual bool WriteByte(u8 data, std::size_t offset = 0);
// Writes a vector of bytes to offset in file and returns the number of bytes successfully
@@ -191,13 +191,13 @@ public:
VfsDirectory() = default;
virtual ~VfsDirectory();
- // Retrives the file located at path as if the current directory was root. Returns nullptr if
+ // Retrieves the file located at path as if the current directory was root. Returns nullptr if
// not found.
virtual VirtualFile GetFileRelative(std::string_view path) const;
// Calls GetFileRelative(path) on the root of the current directory.
virtual VirtualFile GetFileAbsolute(std::string_view path) const;
- // Retrives the directory located at path as if the current directory was root. Returns nullptr
+ // Retrieves the directory located at path as if the current directory was root. Returns nullptr
// if not found.
virtual VirtualDir GetDirectoryRelative(std::string_view path) const;
// Calls GetDirectoryRelative(path) on the root of the current directory.
@@ -205,7 +205,7 @@ public:
// Returns a vector containing all of the files in this directory.
virtual std::vector<VirtualFile> GetFiles() const = 0;
- // Returns the file with filename matching name. Returns nullptr if directory dosen't have a
+ // Returns the file with filename matching name. Returns nullptr if directory doesn't have a
// file with name.
virtual VirtualFile GetFile(std::string_view name) const;
@@ -214,7 +214,7 @@ public:
// Returns a vector containing all of the subdirectories in this directory.
virtual std::vector<VirtualDir> GetSubdirectories() const = 0;
- // Returns the directory with name matching name. Returns nullptr if directory dosen't have a
+ // Returns the directory with name matching name. Returns nullptr if directory doesn't have a
// directory with name.
virtual VirtualDir GetSubdirectory(std::string_view name) const;
diff --git a/src/core/file_sys/vfs_cached.cpp b/src/core/file_sys/vfs_cached.cpp
new file mode 100644
index 000000000..c3154ee81
--- /dev/null
+++ b/src/core/file_sys/vfs_cached.cpp
@@ -0,0 +1,63 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/file_sys/vfs_cached.h"
+#include "core/file_sys/vfs_types.h"
+
+namespace FileSys {
+
+CachedVfsDirectory::CachedVfsDirectory(VirtualDir& source_dir)
+ : name(source_dir->GetName()), parent(source_dir->GetParentDirectory()) {
+ for (auto& dir : source_dir->GetSubdirectories()) {
+ dirs.emplace(dir->GetName(), std::make_shared<CachedVfsDirectory>(dir));
+ }
+ for (auto& file : source_dir->GetFiles()) {
+ files.emplace(file->GetName(), file);
+ }
+}
+
+CachedVfsDirectory::~CachedVfsDirectory() = default;
+
+VirtualFile CachedVfsDirectory::GetFile(std::string_view file_name) const {
+ auto it = files.find(file_name);
+ if (it != files.end()) {
+ return it->second;
+ }
+
+ return nullptr;
+}
+
+VirtualDir CachedVfsDirectory::GetSubdirectory(std::string_view dir_name) const {
+ auto it = dirs.find(dir_name);
+ if (it != dirs.end()) {
+ return it->second;
+ }
+
+ return nullptr;
+}
+
+std::vector<VirtualFile> CachedVfsDirectory::GetFiles() const {
+ std::vector<VirtualFile> out;
+ for (auto& [file_name, file] : files) {
+ out.push_back(file);
+ }
+ return out;
+}
+
+std::vector<VirtualDir> CachedVfsDirectory::GetSubdirectories() const {
+ std::vector<VirtualDir> out;
+ for (auto& [dir_name, dir] : dirs) {
+ out.push_back(dir);
+ }
+ return out;
+}
+
+std::string CachedVfsDirectory::GetName() const {
+ return name;
+}
+
+VirtualDir CachedVfsDirectory::GetParentDirectory() const {
+ return parent;
+}
+
+} // namespace FileSys
diff --git a/src/core/file_sys/vfs_cached.h b/src/core/file_sys/vfs_cached.h
new file mode 100644
index 000000000..113acac12
--- /dev/null
+++ b/src/core/file_sys/vfs_cached.h
@@ -0,0 +1,31 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <string_view>
+#include <vector>
+#include "core/file_sys/vfs.h"
+
+namespace FileSys {
+
+class CachedVfsDirectory : public ReadOnlyVfsDirectory {
+public:
+ CachedVfsDirectory(VirtualDir& source_directory);
+
+ ~CachedVfsDirectory() override;
+ VirtualFile GetFile(std::string_view file_name) const override;
+ VirtualDir GetSubdirectory(std::string_view dir_name) const override;
+ std::vector<VirtualFile> GetFiles() const override;
+ std::vector<VirtualDir> GetSubdirectories() const override;
+ std::string GetName() const override;
+ VirtualDir GetParentDirectory() const override;
+
+private:
+ std::string name;
+ VirtualDir parent;
+ std::map<std::string, VirtualDir, std::less<>> dirs;
+ std::map<std::string, VirtualFile, std::less<>> files;
+};
+
+} // namespace FileSys
diff --git a/src/core/file_sys/vfs_concat.cpp b/src/core/file_sys/vfs_concat.cpp
index d23623aa0..311a59e5f 100644
--- a/src/core/file_sys/vfs_concat.cpp
+++ b/src/core/file_sys/vfs_concat.cpp
@@ -10,84 +10,105 @@
namespace FileSys {
-static bool VerifyConcatenationMapContinuity(const std::multimap<u64, VirtualFile>& map) {
- const auto last_valid = --map.end();
- for (auto iter = map.begin(); iter != last_valid;) {
- const auto old = iter++;
- if (old->first + old->second->GetSize() != iter->first) {
+ConcatenatedVfsFile::ConcatenatedVfsFile(ConcatenationMap&& concatenation_map_, std::string&& name_)
+ : concatenation_map(std::move(concatenation_map_)), name(std::move(name_)) {
+ DEBUG_ASSERT(this->VerifyContinuity());
+}
+
+bool ConcatenatedVfsFile::VerifyContinuity() const {
+ u64 last_offset = 0;
+ for (auto& entry : concatenation_map) {
+ if (entry.offset != last_offset) {
return false;
}
- }
-
- return map.begin()->first == 0;
-}
-ConcatenatedVfsFile::ConcatenatedVfsFile(std::vector<VirtualFile> files_, std::string name_)
- : name(std::move(name_)) {
- std::size_t next_offset = 0;
- for (const auto& file : files_) {
- files.emplace(next_offset, file);
- next_offset += file->GetSize();
+ last_offset = entry.offset + entry.file->GetSize();
}
-}
-ConcatenatedVfsFile::ConcatenatedVfsFile(std::multimap<u64, VirtualFile> files_, std::string name_)
- : files(std::move(files_)), name(std::move(name_)) {
- ASSERT(VerifyConcatenationMapContinuity(files));
+ return true;
}
ConcatenatedVfsFile::~ConcatenatedVfsFile() = default;
-VirtualFile ConcatenatedVfsFile::MakeConcatenatedFile(std::vector<VirtualFile> files,
- std::string name) {
- if (files.empty())
+VirtualFile ConcatenatedVfsFile::MakeConcatenatedFile(const std::vector<VirtualFile>& files,
+ std::string&& name) {
+ // Fold trivial cases.
+ if (files.empty()) {
return nullptr;
- if (files.size() == 1)
- return files[0];
+ }
+ if (files.size() == 1) {
+ return files.front();
+ }
+
+ // Make the concatenation map from the input.
+ std::vector<ConcatenationEntry> concatenation_map;
+ concatenation_map.reserve(files.size());
+ u64 last_offset = 0;
+
+ for (auto& file : files) {
+ concatenation_map.emplace_back(ConcatenationEntry{
+ .offset = last_offset,
+ .file = file,
+ });
+
+ last_offset += file->GetSize();
+ }
- return VirtualFile(new ConcatenatedVfsFile(std::move(files), std::move(name)));
+ return VirtualFile(new ConcatenatedVfsFile(std::move(concatenation_map), std::move(name)));
}
VirtualFile ConcatenatedVfsFile::MakeConcatenatedFile(u8 filler_byte,
- std::multimap<u64, VirtualFile> files,
- std::string name) {
- if (files.empty())
+ const std::multimap<u64, VirtualFile>& files,
+ std::string&& name) {
+ // Fold trivial cases.
+ if (files.empty()) {
return nullptr;
- if (files.size() == 1)
+ }
+ if (files.size() == 1) {
return files.begin()->second;
+ }
+
+ // Make the concatenation map from the input.
+ std::vector<ConcatenationEntry> concatenation_map;
- const auto last_valid = --files.end();
- for (auto iter = files.begin(); iter != last_valid;) {
- const auto old = iter++;
- if (old->first + old->second->GetSize() != iter->first) {
- files.emplace(old->first + old->second->GetSize(),
- std::make_shared<StaticVfsFile>(filler_byte, iter->first - old->first -
- old->second->GetSize()));
+ concatenation_map.reserve(files.size());
+ u64 last_offset = 0;
+
+ // Iteration of a multimap is ordered, so offset will be strictly non-decreasing.
+ for (auto& [offset, file] : files) {
+ if (offset > last_offset) {
+ concatenation_map.emplace_back(ConcatenationEntry{
+ .offset = last_offset,
+ .file = std::make_shared<StaticVfsFile>(filler_byte, offset - last_offset),
+ });
}
- }
- // Ensure the map starts at offset 0 (start of file), otherwise pad to fill.
- if (files.begin()->first != 0)
- files.emplace(0, std::make_shared<StaticVfsFile>(filler_byte, files.begin()->first));
+ concatenation_map.emplace_back(ConcatenationEntry{
+ .offset = offset,
+ .file = file,
+ });
- return VirtualFile(new ConcatenatedVfsFile(std::move(files), std::move(name)));
+ last_offset = offset + file->GetSize();
+ }
+
+ return VirtualFile(new ConcatenatedVfsFile(std::move(concatenation_map), std::move(name)));
}
std::string ConcatenatedVfsFile::GetName() const {
- if (files.empty()) {
+ if (concatenation_map.empty()) {
return "";
}
if (!name.empty()) {
return name;
}
- return files.begin()->second->GetName();
+ return concatenation_map.front().file->GetName();
}
std::size_t ConcatenatedVfsFile::GetSize() const {
- if (files.empty()) {
+ if (concatenation_map.empty()) {
return 0;
}
- return files.rbegin()->first + files.rbegin()->second->GetSize();
+ return concatenation_map.back().offset + concatenation_map.back().file->GetSize();
}
bool ConcatenatedVfsFile::Resize(std::size_t new_size) {
@@ -95,10 +116,10 @@ bool ConcatenatedVfsFile::Resize(std::size_t new_size) {
}
VirtualDir ConcatenatedVfsFile::GetContainingDirectory() const {
- if (files.empty()) {
+ if (concatenation_map.empty()) {
return nullptr;
}
- return files.begin()->second->GetContainingDirectory();
+ return concatenation_map.front().file->GetContainingDirectory();
}
bool ConcatenatedVfsFile::IsWritable() const {
@@ -110,25 +131,51 @@ bool ConcatenatedVfsFile::IsReadable() const {
}
std::size_t ConcatenatedVfsFile::Read(u8* data, std::size_t length, std::size_t offset) const {
- auto entry = --files.end();
- for (auto iter = files.begin(); iter != files.end(); ++iter) {
- if (iter->first > offset) {
- entry = --iter;
+ const ConcatenationEntry key{
+ .offset = offset,
+ .file = nullptr,
+ };
+
+ // Read nothing if the map is empty.
+ if (concatenation_map.empty()) {
+ return 0;
+ }
+
+ // Binary search to find the iterator to the first position we can check.
+ // It must exist, since we are not empty and are comparing unsigned integers.
+ auto it = std::prev(std::upper_bound(concatenation_map.begin(), concatenation_map.end(), key));
+ u64 cur_length = length;
+ u64 cur_offset = offset;
+
+ while (cur_length > 0 && it != concatenation_map.end()) {
+ // Check if we can read the file at this position.
+ const auto& file = it->file;
+ const u64 map_offset = it->offset;
+ const u64 file_size = file->GetSize();
+
+ if (cur_offset > map_offset + file_size) {
+ // Entirely out of bounds read.
break;
}
- }
- if (entry->first + entry->second->GetSize() <= offset)
- return 0;
+ // Read the file at this position.
+ const u64 file_seek = cur_offset - map_offset;
+ const u64 intended_read_size = std::min<u64>(cur_length, file_size - file_seek);
+ const u64 actual_read_size =
+ file->Read(data + (cur_offset - offset), intended_read_size, file_seek);
+
+ // Update tracking.
+ cur_offset += actual_read_size;
+ cur_length -= actual_read_size;
+ it++;
- const auto read_in =
- std::min<u64>(entry->first + entry->second->GetSize() - offset, entry->second->GetSize());
- if (length > read_in) {
- return entry->second->Read(data, read_in, offset - entry->first) +
- Read(data + read_in, length - read_in, offset + read_in);
+ // If we encountered a short read, we're done.
+ if (actual_read_size < intended_read_size) {
+ break;
+ }
}
- return entry->second->Read(data, std::min<u64>(read_in, length), offset - entry->first);
+ return cur_offset - offset;
}
std::size_t ConcatenatedVfsFile::Write(const u8* data, std::size_t length, std::size_t offset) {
diff --git a/src/core/file_sys/vfs_concat.h b/src/core/file_sys/vfs_concat.h
index 9be0261b6..6b329d545 100644
--- a/src/core/file_sys/vfs_concat.h
+++ b/src/core/file_sys/vfs_concat.h
@@ -3,6 +3,7 @@
#pragma once
+#include <compare>
#include <map>
#include <memory>
#include "core/file_sys/vfs.h"
@@ -12,19 +13,33 @@ namespace FileSys {
// Class that wraps multiple vfs files and concatenates them, making reads seamless. Currently
// read-only.
class ConcatenatedVfsFile : public VfsFile {
- explicit ConcatenatedVfsFile(std::vector<VirtualFile> files, std::string name_);
- explicit ConcatenatedVfsFile(std::multimap<u64, VirtualFile> files, std::string name_);
+private:
+ struct ConcatenationEntry {
+ u64 offset;
+ VirtualFile file;
+
+ auto operator<=>(const ConcatenationEntry& other) const {
+ return this->offset <=> other.offset;
+ }
+ };
+ using ConcatenationMap = std::vector<ConcatenationEntry>;
+
+ explicit ConcatenatedVfsFile(std::vector<ConcatenationEntry>&& concatenation_map,
+ std::string&& name);
+ bool VerifyContinuity() const;
public:
~ConcatenatedVfsFile() override;
/// Wrapper function to allow for more efficient handling of files.size() == 0, 1 cases.
- static VirtualFile MakeConcatenatedFile(std::vector<VirtualFile> files, std::string name);
+ static VirtualFile MakeConcatenatedFile(const std::vector<VirtualFile>& files,
+ std::string&& name);
/// Convenience function that turns a map of offsets to files into a concatenated file, filling
/// gaps with a given filler byte.
- static VirtualFile MakeConcatenatedFile(u8 filler_byte, std::multimap<u64, VirtualFile> files,
- std::string name);
+ static VirtualFile MakeConcatenatedFile(u8 filler_byte,
+ const std::multimap<u64, VirtualFile>& files,
+ std::string&& name);
std::string GetName() const override;
std::size_t GetSize() const override;
@@ -37,8 +52,7 @@ public:
bool Rename(std::string_view new_name) override;
private:
- // Maps starting offset to file -- more efficient.
- std::multimap<u64, VirtualFile> files;
+ ConcatenationMap concatenation_map;
std::string name;
};
diff --git a/src/core/file_sys/vfs_layered.cpp b/src/core/file_sys/vfs_layered.cpp
index da05dd395..3e6426afc 100644
--- a/src/core/file_sys/vfs_layered.cpp
+++ b/src/core/file_sys/vfs_layered.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <algorithm>
+#include <set>
#include <utility>
#include "core/file_sys/vfs_layered.h"
@@ -58,11 +59,13 @@ std::string LayeredVfsDirectory::GetFullPath() const {
std::vector<VirtualFile> LayeredVfsDirectory::GetFiles() const {
std::vector<VirtualFile> out;
+ std::set<std::string, std::less<>> out_names;
+
for (const auto& layer : dirs) {
for (const auto& file : layer->GetFiles()) {
- if (std::find_if(out.begin(), out.end(), [&file](const VirtualFile& comp) {
- return comp->GetName() == file->GetName();
- }) == out.end()) {
+ auto file_name = file->GetName();
+ if (!out_names.contains(file_name)) {
+ out_names.emplace(std::move(file_name));
out.push_back(file);
}
}
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index cc0076238..b0515ec05 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -10,6 +10,7 @@
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
#include "common/logging/log.h"
+#include "core/file_sys/vfs.h"
#include "core/file_sys/vfs_real.h"
// For FileTimeStampRaw
@@ -25,6 +26,8 @@ namespace FS = Common::FS;
namespace {
+constexpr size_t MaxOpenFiles = 512;
+
constexpr FS::FileAccessMode ModeFlagsToFileAccessMode(Mode mode) {
switch (mode) {
case Mode::Read:
@@ -70,31 +73,42 @@ VfsEntryType RealVfsFilesystem::GetEntryType(std::string_view path_) const {
return VfsEntryType::File;
}
-VirtualFile RealVfsFilesystem::OpenFile(std::string_view path_, Mode perms) {
+VirtualFile RealVfsFilesystem::OpenFileFromEntry(std::string_view path_, std::optional<u64> size,
+ Mode perms) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
+ std::scoped_lock lk{list_lock};
- if (const auto weak_iter = cache.find(path); weak_iter != cache.cend()) {
- const auto& weak = weak_iter->second;
-
- if (!weak.expired()) {
- return std::shared_ptr<RealVfsFile>(new RealVfsFile(*this, weak.lock(), path, perms));
+ if (auto it = cache.find(path); it != cache.end()) {
+ if (auto file = it->second.lock(); file) {
+ return file;
}
}
- auto backing = FS::FileOpen(path, ModeFlagsToFileAccessMode(perms), FS::FileType::BinaryFile);
-
- if (!backing) {
+ if (!size && !FS::IsFile(path)) {
return nullptr;
}
- cache.insert_or_assign(path, std::move(backing));
+ auto reference = std::make_unique<FileReference>();
+ this->InsertReferenceIntoListLocked(*reference);
- // Cannot use make_shared as RealVfsFile constructor is private
- return std::shared_ptr<RealVfsFile>(new RealVfsFile(*this, backing, path, perms));
+ auto file = std::shared_ptr<RealVfsFile>(
+ new RealVfsFile(*this, std::move(reference), path, perms, size));
+ cache[path] = file;
+
+ return file;
+}
+
+VirtualFile RealVfsFilesystem::OpenFile(std::string_view path_, Mode perms) {
+ return OpenFileFromEntry(path_, {}, perms);
}
VirtualFile RealVfsFilesystem::CreateFile(std::string_view path_, Mode perms) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
+ {
+ std::scoped_lock lk{list_lock};
+ cache.erase(path);
+ }
+
// Current usages of CreateFile expect to delete the contents of an existing file.
if (FS::IsFile(path)) {
FS::IOFile temp{path, FS::FileAccessMode::Write, FS::FileType::BinaryFile};
@@ -123,51 +137,28 @@ VirtualFile RealVfsFilesystem::CopyFile(std::string_view old_path_, std::string_
VirtualFile RealVfsFilesystem::MoveFile(std::string_view old_path_, std::string_view new_path_) {
const auto old_path = FS::SanitizePath(old_path_, FS::DirectorySeparator::PlatformDefault);
const auto new_path = FS::SanitizePath(new_path_, FS::DirectorySeparator::PlatformDefault);
- const auto cached_file_iter = cache.find(old_path);
-
- if (cached_file_iter != cache.cend()) {
- auto file = cached_file_iter->second.lock();
-
- if (!cached_file_iter->second.expired()) {
- file->Close();
- }
-
- if (!FS::RenameFile(old_path, new_path)) {
- return nullptr;
- }
-
+ {
+ std::scoped_lock lk{list_lock};
cache.erase(old_path);
- file->Open(new_path, FS::FileAccessMode::Read, FS::FileType::BinaryFile);
- if (file->IsOpen()) {
- cache.insert_or_assign(new_path, std::move(file));
- } else {
- LOG_ERROR(Service_FS, "Failed to open path {} in order to re-cache it", new_path);
- }
- } else {
- ASSERT(false);
+ cache.erase(new_path);
+ }
+ if (!FS::RenameFile(old_path, new_path)) {
return nullptr;
}
-
return OpenFile(new_path, Mode::ReadWrite);
}
bool RealVfsFilesystem::DeleteFile(std::string_view path_) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
- const auto cached_iter = cache.find(path);
-
- if (cached_iter != cache.cend()) {
- if (!cached_iter->second.expired()) {
- cached_iter->second.lock()->Close();
- }
+ {
+ std::scoped_lock lk{list_lock};
cache.erase(path);
}
-
return FS::RemoveFile(path);
}
VirtualDir RealVfsFilesystem::OpenDirectory(std::string_view path_, Mode perms) {
const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
- // Cannot use make_shared as RealVfsDirectory constructor is private
return std::shared_ptr<RealVfsDirectory>(new RealVfsDirectory(*this, path, perms));
}
@@ -176,7 +167,6 @@ VirtualDir RealVfsFilesystem::CreateDirectory(std::string_view path_, Mode perms
if (!FS::CreateDirs(path)) {
return nullptr;
}
- // Cannot use make_shared as RealVfsDirectory constructor is private
return std::shared_ptr<RealVfsDirectory>(new RealVfsDirectory(*this, path, perms));
}
@@ -194,73 +184,112 @@ VirtualDir RealVfsFilesystem::MoveDirectory(std::string_view old_path_,
if (!FS::RenameDir(old_path, new_path)) {
return nullptr;
}
+ return OpenDirectory(new_path, Mode::ReadWrite);
+}
- for (auto& kv : cache) {
- // If the path in the cache doesn't start with old_path, then bail on this file.
- if (kv.first.rfind(old_path, 0) != 0) {
- continue;
- }
+bool RealVfsFilesystem::DeleteDirectory(std::string_view path_) {
+ const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
+ return FS::RemoveDirRecursively(path);
+}
- const auto file_old_path =
- FS::SanitizePath(kv.first, FS::DirectorySeparator::PlatformDefault);
- auto file_new_path = FS::SanitizePath(new_path + '/' + kv.first.substr(old_path.size()),
- FS::DirectorySeparator::PlatformDefault);
- const auto& cached = cache[file_old_path];
+std::unique_lock<std::mutex> RealVfsFilesystem::RefreshReference(const std::string& path,
+ Mode perms,
+ FileReference& reference) {
+ std::unique_lock lk{list_lock};
- if (cached.expired()) {
- continue;
- }
+ // Temporarily remove from list.
+ this->RemoveReferenceFromListLocked(reference);
+
+ // Restore file if needed.
+ if (!reference.file) {
+ this->EvictSingleReferenceLocked();
- auto file = cached.lock();
- cache.erase(file_old_path);
- file->Open(file_new_path, FS::FileAccessMode::Read, FS::FileType::BinaryFile);
- if (file->IsOpen()) {
- cache.insert_or_assign(std::move(file_new_path), std::move(file));
- } else {
- LOG_ERROR(Service_FS, "Failed to open path {} in order to re-cache it", file_new_path);
+ reference.file =
+ FS::FileOpen(path, ModeFlagsToFileAccessMode(perms), FS::FileType::BinaryFile);
+ if (reference.file) {
+ num_open_files++;
}
}
- return OpenDirectory(new_path, Mode::ReadWrite);
+ // Reinsert into list.
+ this->InsertReferenceIntoListLocked(reference);
+
+ return lk;
}
-bool RealVfsFilesystem::DeleteDirectory(std::string_view path_) {
- const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);
+void RealVfsFilesystem::DropReference(std::unique_ptr<FileReference>&& reference) {
+ std::scoped_lock lk{list_lock};
- for (auto& kv : cache) {
- // If the path in the cache doesn't start with path, then bail on this file.
- if (kv.first.rfind(path, 0) != 0) {
- continue;
- }
+ // Remove from list.
+ this->RemoveReferenceFromListLocked(*reference);
- const auto& entry = cache[kv.first];
- if (!entry.expired()) {
- entry.lock()->Close();
- }
+ // Close the file.
+ if (reference->file) {
+ reference->file.reset();
+ num_open_files--;
+ }
+}
- cache.erase(kv.first);
+void RealVfsFilesystem::EvictSingleReferenceLocked() {
+ if (num_open_files < MaxOpenFiles || open_references.empty()) {
+ return;
}
- return FS::RemoveDirRecursively(path);
+ // Get and remove from list.
+ auto& reference = open_references.back();
+ this->RemoveReferenceFromListLocked(reference);
+
+ // Close the file.
+ if (reference.file) {
+ reference.file.reset();
+ num_open_files--;
+ }
+
+ // Reinsert into closed list.
+ this->InsertReferenceIntoListLocked(reference);
+}
+
+void RealVfsFilesystem::InsertReferenceIntoListLocked(FileReference& reference) {
+ if (reference.file) {
+ open_references.push_front(reference);
+ } else {
+ closed_references.push_front(reference);
+ }
}
-RealVfsFile::RealVfsFile(RealVfsFilesystem& base_, std::shared_ptr<FS::IOFile> backing_,
- const std::string& path_, Mode perms_)
- : base(base_), backing(std::move(backing_)), path(path_), parent_path(FS::GetParentPath(path_)),
- path_components(FS::SplitPathComponents(path_)), perms(perms_) {}
+void RealVfsFilesystem::RemoveReferenceFromListLocked(FileReference& reference) {
+ if (reference.file) {
+ open_references.erase(open_references.iterator_to(reference));
+ } else {
+ closed_references.erase(closed_references.iterator_to(reference));
+ }
+}
-RealVfsFile::~RealVfsFile() = default;
+RealVfsFile::RealVfsFile(RealVfsFilesystem& base_, std::unique_ptr<FileReference> reference_,
+ const std::string& path_, Mode perms_, std::optional<u64> size_)
+ : base(base_), reference(std::move(reference_)), path(path_),
+ parent_path(FS::GetParentPath(path_)), path_components(FS::SplitPathComponents(path_)),
+ size(size_), perms(perms_) {}
+
+RealVfsFile::~RealVfsFile() {
+ base.DropReference(std::move(reference));
+}
std::string RealVfsFile::GetName() const {
return path_components.back();
}
std::size_t RealVfsFile::GetSize() const {
- return backing->GetSize();
+ if (size) {
+ return *size;
+ }
+ return FS::GetSize(path);
}
bool RealVfsFile::Resize(std::size_t new_size) {
- return backing->SetSize(new_size);
+ size.reset();
+ auto lk = base.RefreshReference(path, perms, *reference);
+ return reference->file ? reference->file->SetSize(new_size) : false;
}
VirtualDir RealVfsFile::GetContainingDirectory() const {
@@ -276,27 +305,26 @@ bool RealVfsFile::IsReadable() const {
}
std::size_t RealVfsFile::Read(u8* data, std::size_t length, std::size_t offset) const {
- if (!backing->Seek(static_cast<s64>(offset))) {
+ auto lk = base.RefreshReference(path, perms, *reference);
+ if (!reference->file || !reference->file->Seek(static_cast<s64>(offset))) {
return 0;
}
- return backing->ReadSpan(std::span{data, length});
+ return reference->file->ReadSpan(std::span{data, length});
}
std::size_t RealVfsFile::Write(const u8* data, std::size_t length, std::size_t offset) {
- if (!backing->Seek(static_cast<s64>(offset))) {
+ size.reset();
+ auto lk = base.RefreshReference(path, perms, *reference);
+ if (!reference->file || !reference->file->Seek(static_cast<s64>(offset))) {
return 0;
}
- return backing->WriteSpan(std::span{data, length});
+ return reference->file->WriteSpan(std::span{data, length});
}
bool RealVfsFile::Rename(std::string_view name) {
return base.MoveFile(path, parent_path + '/' + std::string(name)) != nullptr;
}
-void RealVfsFile::Close() {
- backing->Close();
-}
-
// TODO(DarkLordZach): MSVC would not let me combine the following two functions using 'if
// constexpr' because there is a compile error in the branch not used.
@@ -308,10 +336,11 @@ std::vector<VirtualFile> RealVfsDirectory::IterateEntries<RealVfsFile, VfsFile>(
std::vector<VirtualFile> out;
- const FS::DirEntryCallable callback = [this, &out](const std::filesystem::path& full_path) {
- const auto full_path_string = FS::PathToUTF8String(full_path);
+ const FS::DirEntryCallable callback = [this,
+ &out](const std::filesystem::directory_entry& entry) {
+ const auto full_path_string = FS::PathToUTF8String(entry.path());
- out.emplace_back(base.OpenFile(full_path_string, perms));
+ out.emplace_back(base.OpenFileFromEntry(full_path_string, entry.file_size(), perms));
return true;
};
@@ -329,8 +358,9 @@ std::vector<VirtualDir> RealVfsDirectory::IterateEntries<RealVfsDirectory, VfsDi
std::vector<VirtualDir> out;
- const FS::DirEntryCallable callback = [this, &out](const std::filesystem::path& full_path) {
- const auto full_path_string = FS::PathToUTF8String(full_path);
+ const FS::DirEntryCallable callback = [this,
+ &out](const std::filesystem::directory_entry& entry) {
+ const auto full_path_string = FS::PathToUTF8String(entry.path());
out.emplace_back(base.OpenDirectory(full_path_string, perms));
@@ -482,12 +512,10 @@ std::map<std::string, VfsEntryType, std::less<>> RealVfsDirectory::GetEntries()
std::map<std::string, VfsEntryType, std::less<>> out;
- const FS::DirEntryCallable callback = [&out](const std::filesystem::path& full_path) {
- const auto filename = FS::PathToUTF8String(full_path.filename());
-
+ const FS::DirEntryCallable callback = [&out](const std::filesystem::directory_entry& entry) {
+ const auto filename = FS::PathToUTF8String(entry.path().filename());
out.insert_or_assign(filename,
- FS::IsDir(full_path) ? VfsEntryType::Directory : VfsEntryType::File);
-
+ entry.is_directory() ? VfsEntryType::Directory : VfsEntryType::File);
return true;
};
diff --git a/src/core/file_sys/vfs_real.h b/src/core/file_sys/vfs_real.h
index acde1ac89..26ea7df62 100644
--- a/src/core/file_sys/vfs_real.h
+++ b/src/core/file_sys/vfs_real.h
@@ -3,8 +3,11 @@
#pragma once
+#include <map>
+#include <mutex>
+#include <optional>
#include <string_view>
-#include <boost/container/flat_map.hpp>
+#include "common/intrusive_list.h"
#include "core/file_sys/mode.h"
#include "core/file_sys/vfs.h"
@@ -14,6 +17,13 @@ class IOFile;
namespace FileSys {
+struct FileReference : public Common::IntrusiveListBaseNode<FileReference> {
+ std::shared_ptr<Common::FS::IOFile> file{};
+};
+
+class RealVfsFile;
+class RealVfsDirectory;
+
class RealVfsFilesystem : public VfsFilesystem {
public:
RealVfsFilesystem();
@@ -35,10 +45,31 @@ public:
bool DeleteDirectory(std::string_view path) override;
private:
- boost::container::flat_map<std::string, std::weak_ptr<Common::FS::IOFile>> cache;
+ using ReferenceListType = Common::IntrusiveListBaseTraits<FileReference>::ListType;
+ std::map<std::string, std::weak_ptr<VfsFile>, std::less<>> cache;
+ ReferenceListType open_references;
+ ReferenceListType closed_references;
+ std::mutex list_lock;
+ size_t num_open_files{};
+
+private:
+ friend class RealVfsFile;
+ std::unique_lock<std::mutex> RefreshReference(const std::string& path, Mode perms,
+ FileReference& reference);
+ void DropReference(std::unique_ptr<FileReference>&& reference);
+
+private:
+ friend class RealVfsDirectory;
+ VirtualFile OpenFileFromEntry(std::string_view path, std::optional<u64> size,
+ Mode perms = Mode::Read);
+
+private:
+ void EvictSingleReferenceLocked();
+ void InsertReferenceIntoListLocked(FileReference& reference);
+ void RemoveReferenceFromListLocked(FileReference& reference);
};
-// An implmentation of VfsFile that represents a file on the user's computer.
+// An implementation of VfsFile that represents a file on the user's computer.
class RealVfsFile : public VfsFile {
friend class RealVfsDirectory;
friend class RealVfsFilesystem;
@@ -57,16 +88,15 @@ public:
bool Rename(std::string_view name) override;
private:
- RealVfsFile(RealVfsFilesystem& base, std::shared_ptr<Common::FS::IOFile> backing,
- const std::string& path, Mode perms = Mode::Read);
-
- void Close();
+ RealVfsFile(RealVfsFilesystem& base, std::unique_ptr<FileReference> reference,
+ const std::string& path, Mode perms = Mode::Read, std::optional<u64> size = {});
RealVfsFilesystem& base;
- std::shared_ptr<Common::FS::IOFile> backing;
+ std::unique_ptr<FileReference> reference;
std::string path;
std::string parent_path;
std::vector<std::string> path_components;
+ std::optional<u64> size;
Mode perms;
};
diff --git a/src/core/frontend/applets/applet.h b/src/core/frontend/applets/applet.h
new file mode 100644
index 000000000..77fffe306
--- /dev/null
+++ b/src/core/frontend/applets/applet.h
@@ -0,0 +1,14 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+namespace Core::Frontend {
+
+class Applet {
+public:
+ virtual ~Applet() = default;
+ virtual void Close() const = 0;
+};
+
+} // namespace Core::Frontend
diff --git a/src/core/frontend/applets/cabinet.cpp b/src/core/frontend/applets/cabinet.cpp
index 26c7fefe3..c33ce248b 100644
--- a/src/core/frontend/applets/cabinet.cpp
+++ b/src/core/frontend/applets/cabinet.cpp
@@ -10,9 +10,11 @@ namespace Core::Frontend {
CabinetApplet::~CabinetApplet() = default;
+void DefaultCabinetApplet::Close() const {}
+
void DefaultCabinetApplet::ShowCabinetApplet(
const CabinetCallback& callback, const CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const {
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device) const {
LOG_WARNING(Service_AM, "(STUBBED) called");
callback(false, {});
}
diff --git a/src/core/frontend/applets/cabinet.h b/src/core/frontend/applets/cabinet.h
index c28a235c1..af3fc6c3d 100644
--- a/src/core/frontend/applets/cabinet.h
+++ b/src/core/frontend/applets/cabinet.h
@@ -4,11 +4,12 @@
#pragma once
#include <functional>
+#include "core/frontend/applets/applet.h"
#include "core/hle/service/nfp/nfp_types.h"
-namespace Service::NFP {
-class NfpDevice;
-} // namespace Service::NFP
+namespace Service::NFC {
+class NfcDevice;
+} // namespace Service::NFC
namespace Core::Frontend {
@@ -20,18 +21,19 @@ struct CabinetParameters {
using CabinetCallback = std::function<void(bool, const std::string&)>;
-class CabinetApplet {
+class CabinetApplet : public Applet {
public:
virtual ~CabinetApplet();
virtual void ShowCabinetApplet(const CabinetCallback& callback,
const CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const = 0;
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device) const = 0;
};
class DefaultCabinetApplet final : public CabinetApplet {
public:
+ void Close() const override;
void ShowCabinetApplet(const CabinetCallback& callback, const CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const override;
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device) const override;
};
} // namespace Core::Frontend
diff --git a/src/core/frontend/applets/controller.cpp b/src/core/frontend/applets/controller.cpp
index 52919484e..3300d4f79 100644
--- a/src/core/frontend/applets/controller.cpp
+++ b/src/core/frontend/applets/controller.cpp
@@ -16,6 +16,8 @@ DefaultControllerApplet::DefaultControllerApplet(HID::HIDCore& hid_core_) : hid_
DefaultControllerApplet::~DefaultControllerApplet() = default;
+void DefaultControllerApplet::Close() const {}
+
void DefaultControllerApplet::ReconfigureControllers(ReconfigureCallback callback,
const ControllerParameters& parameters) const {
LOG_INFO(Service_HID, "called, deducing the best configuration based on the given parameters!");
@@ -69,7 +71,7 @@ void DefaultControllerApplet::ReconfigureControllers(ReconfigureCallback callbac
}
}
- callback();
+ callback(true);
}
} // namespace Core::Frontend
diff --git a/src/core/frontend/applets/controller.h b/src/core/frontend/applets/controller.h
index adb2feefd..19a2db6bf 100644
--- a/src/core/frontend/applets/controller.h
+++ b/src/core/frontend/applets/controller.h
@@ -7,6 +7,7 @@
#include <vector>
#include "common/common_types.h"
+#include "core/frontend/applets/applet.h"
namespace Core::HID {
class HIDCore;
@@ -34,9 +35,9 @@ struct ControllerParameters {
bool allow_gamecube_controller{};
};
-class ControllerApplet {
+class ControllerApplet : public Applet {
public:
- using ReconfigureCallback = std::function<void()>;
+ using ReconfigureCallback = std::function<void(bool)>;
virtual ~ControllerApplet();
@@ -49,6 +50,7 @@ public:
explicit DefaultControllerApplet(HID::HIDCore& hid_core_);
~DefaultControllerApplet() override;
+ void Close() const override;
void ReconfigureControllers(ReconfigureCallback callback,
const ControllerParameters& parameters) const override;
diff --git a/src/core/frontend/applets/error.cpp b/src/core/frontend/applets/error.cpp
index 69c2b2b4d..2e6f7a3d9 100644
--- a/src/core/frontend/applets/error.cpp
+++ b/src/core/frontend/applets/error.cpp
@@ -8,6 +8,8 @@ namespace Core::Frontend {
ErrorApplet::~ErrorApplet() = default;
+void DefaultErrorApplet::Close() const {}
+
void DefaultErrorApplet::ShowError(Result error, FinishedCallback finished) const {
LOG_CRITICAL(Service_Fatal, "Application requested error display: {:04}-{:04} (raw={:08X})",
error.module.Value(), error.description.Value(), error.raw);
diff --git a/src/core/frontend/applets/error.h b/src/core/frontend/applets/error.h
index 884f2f653..3a12196ce 100644
--- a/src/core/frontend/applets/error.h
+++ b/src/core/frontend/applets/error.h
@@ -6,11 +6,12 @@
#include <chrono>
#include <functional>
+#include "core/frontend/applets/applet.h"
#include "core/hle/result.h"
namespace Core::Frontend {
-class ErrorApplet {
+class ErrorApplet : public Applet {
public:
using FinishedCallback = std::function<void()>;
@@ -28,6 +29,7 @@ public:
class DefaultErrorApplet final : public ErrorApplet {
public:
+ void Close() const override;
void ShowError(Result error, FinishedCallback finished) const override;
void ShowErrorWithTimestamp(Result error, std::chrono::seconds time,
FinishedCallback finished) const override;
diff --git a/src/core/frontend/applets/general_frontend.cpp b/src/core/frontend/applets/general_frontend.cpp
index 29a00fb6f..b4b213a31 100644
--- a/src/core/frontend/applets/general_frontend.cpp
+++ b/src/core/frontend/applets/general_frontend.cpp
@@ -10,6 +10,8 @@ ParentalControlsApplet::~ParentalControlsApplet() = default;
DefaultParentalControlsApplet::~DefaultParentalControlsApplet() = default;
+void DefaultParentalControlsApplet::Close() const {}
+
void DefaultParentalControlsApplet::VerifyPIN(std::function<void(bool)> finished,
bool suspend_future_verification_temporarily) {
LOG_INFO(Service_AM,
@@ -39,6 +41,8 @@ PhotoViewerApplet::~PhotoViewerApplet() = default;
DefaultPhotoViewerApplet::~DefaultPhotoViewerApplet() = default;
+void DefaultPhotoViewerApplet::Close() const {}
+
void DefaultPhotoViewerApplet::ShowPhotosForApplication(u64 title_id,
std::function<void()> finished) const {
LOG_INFO(Service_AM,
diff --git a/src/core/frontend/applets/general_frontend.h b/src/core/frontend/applets/general_frontend.h
index cbec8b4ad..319838ac7 100644
--- a/src/core/frontend/applets/general_frontend.h
+++ b/src/core/frontend/applets/general_frontend.h
@@ -6,9 +6,11 @@
#include <functional>
#include "common/common_types.h"
+#include "core/frontend/applets/applet.h"
+
namespace Core::Frontend {
-class ParentalControlsApplet {
+class ParentalControlsApplet : public Applet {
public:
virtual ~ParentalControlsApplet();
@@ -33,6 +35,7 @@ class DefaultParentalControlsApplet final : public ParentalControlsApplet {
public:
~DefaultParentalControlsApplet() override;
+ void Close() const override;
void VerifyPIN(std::function<void(bool)> finished,
bool suspend_future_verification_temporarily) override;
void VerifyPINForSettings(std::function<void(bool)> finished) override;
@@ -40,7 +43,7 @@ public:
void ChangePIN(std::function<void()> finished) override;
};
-class PhotoViewerApplet {
+class PhotoViewerApplet : public Applet {
public:
virtual ~PhotoViewerApplet();
@@ -52,6 +55,7 @@ class DefaultPhotoViewerApplet final : public PhotoViewerApplet {
public:
~DefaultPhotoViewerApplet() override;
+ void Close() const override;
void ShowPhotosForApplication(u64 title_id, std::function<void()> finished) const override;
void ShowAllPhotos(std::function<void()> finished) const override;
};
diff --git a/src/core/frontend/applets/mii_edit.cpp b/src/core/frontend/applets/mii_edit.cpp
index bc8c57067..2988c3e72 100644
--- a/src/core/frontend/applets/mii_edit.cpp
+++ b/src/core/frontend/applets/mii_edit.cpp
@@ -8,6 +8,8 @@ namespace Core::Frontend {
MiiEditApplet::~MiiEditApplet() = default;
+void DefaultMiiEditApplet::Close() const {}
+
void DefaultMiiEditApplet::ShowMiiEdit(const MiiEditCallback& callback) const {
LOG_WARNING(Service_AM, "(STUBBED) called");
diff --git a/src/core/frontend/applets/mii_edit.h b/src/core/frontend/applets/mii_edit.h
index d828f06ec..9d86ee658 100644
--- a/src/core/frontend/applets/mii_edit.h
+++ b/src/core/frontend/applets/mii_edit.h
@@ -5,9 +5,11 @@
#include <functional>
+#include "core/frontend/applets/applet.h"
+
namespace Core::Frontend {
-class MiiEditApplet {
+class MiiEditApplet : public Applet {
public:
using MiiEditCallback = std::function<void()>;
@@ -18,6 +20,7 @@ public:
class DefaultMiiEditApplet final : public MiiEditApplet {
public:
+ void Close() const override;
void ShowMiiEdit(const MiiEditCallback& callback) const override;
};
diff --git a/src/core/frontend/applets/profile_select.cpp b/src/core/frontend/applets/profile_select.cpp
index da4cfbf87..c18f17a36 100644
--- a/src/core/frontend/applets/profile_select.cpp
+++ b/src/core/frontend/applets/profile_select.cpp
@@ -9,7 +9,10 @@ namespace Core::Frontend {
ProfileSelectApplet::~ProfileSelectApplet() = default;
-void DefaultProfileSelectApplet::SelectProfile(SelectProfileCallback callback) const {
+void DefaultProfileSelectApplet::Close() const {}
+
+void DefaultProfileSelectApplet::SelectProfile(SelectProfileCallback callback,
+ const ProfileSelectParameters& parameters) const {
Service::Account::ProfileManager manager;
callback(manager.GetUser(Settings::values.current_user.GetValue()).value_or(Common::UUID{}));
LOG_INFO(Service_ACC, "called, selecting current user instead of prompting...");
diff --git a/src/core/frontend/applets/profile_select.h b/src/core/frontend/applets/profile_select.h
index 138429533..92e2737ea 100644
--- a/src/core/frontend/applets/profile_select.h
+++ b/src/core/frontend/applets/profile_select.h
@@ -5,22 +5,35 @@
#include <functional>
#include <optional>
+
#include "common/uuid.h"
+#include "core/frontend/applets/applet.h"
+#include "core/hle/service/am/applets/applet_profile_select.h"
namespace Core::Frontend {
-class ProfileSelectApplet {
+struct ProfileSelectParameters {
+ Service::AM::Applets::UiMode mode;
+ std::array<Common::UUID, 8> invalid_uid_list;
+ Service::AM::Applets::UiSettingsDisplayOptions display_options;
+ Service::AM::Applets::UserSelectionPurpose purpose;
+};
+
+class ProfileSelectApplet : public Applet {
public:
using SelectProfileCallback = std::function<void(std::optional<Common::UUID>)>;
virtual ~ProfileSelectApplet();
- virtual void SelectProfile(SelectProfileCallback callback) const = 0;
+ virtual void SelectProfile(SelectProfileCallback callback,
+ const ProfileSelectParameters& parameters) const = 0;
};
class DefaultProfileSelectApplet final : public ProfileSelectApplet {
public:
- void SelectProfile(SelectProfileCallback callback) const override;
+ void Close() const override;
+ void SelectProfile(SelectProfileCallback callback,
+ const ProfileSelectParameters& parameters) const override;
};
} // namespace Core::Frontend
diff --git a/src/core/frontend/applets/software_keyboard.cpp b/src/core/frontend/applets/software_keyboard.cpp
index a3720f4d7..7655d215b 100644
--- a/src/core/frontend/applets/software_keyboard.cpp
+++ b/src/core/frontend/applets/software_keyboard.cpp
@@ -13,6 +13,8 @@ SoftwareKeyboardApplet::~SoftwareKeyboardApplet() = default;
DefaultSoftwareKeyboardApplet::~DefaultSoftwareKeyboardApplet() = default;
+void DefaultSoftwareKeyboardApplet::Close() const {}
+
void DefaultSoftwareKeyboardApplet::InitializeKeyboard(
bool is_inline, KeyboardInitializeParameters initialize_parameters,
SubmitNormalCallback submit_normal_callback_, SubmitInlineCallback submit_inline_callback_) {
diff --git a/src/core/frontend/applets/software_keyboard.h b/src/core/frontend/applets/software_keyboard.h
index 8aef103d3..8ed96da24 100644
--- a/src/core/frontend/applets/software_keyboard.h
+++ b/src/core/frontend/applets/software_keyboard.h
@@ -7,6 +7,7 @@
#include "common/common_types.h"
+#include "core/frontend/applets/applet.h"
#include "core/hle/service/am/applets/applet_software_keyboard_types.h"
namespace Core::Frontend {
@@ -52,7 +53,7 @@ struct InlineTextParameters {
s32 cursor_position;
};
-class SoftwareKeyboardApplet {
+class SoftwareKeyboardApplet : public Applet {
public:
using SubmitInlineCallback =
std::function<void(Service::AM::Applets::SwkbdReplyType, std::u16string, s32)>;
@@ -84,6 +85,8 @@ class DefaultSoftwareKeyboardApplet final : public SoftwareKeyboardApplet {
public:
~DefaultSoftwareKeyboardApplet() override;
+ void Close() const override;
+
void InitializeKeyboard(bool is_inline, KeyboardInitializeParameters initialize_parameters,
SubmitNormalCallback submit_normal_callback_,
SubmitInlineCallback submit_inline_callback_) override;
diff --git a/src/core/frontend/applets/web_browser.cpp b/src/core/frontend/applets/web_browser.cpp
index b09cb7102..6e703ef06 100644
--- a/src/core/frontend/applets/web_browser.cpp
+++ b/src/core/frontend/applets/web_browser.cpp
@@ -10,6 +10,8 @@ WebBrowserApplet::~WebBrowserApplet() = default;
DefaultWebBrowserApplet::~DefaultWebBrowserApplet() = default;
+void DefaultWebBrowserApplet::Close() const {}
+
void DefaultWebBrowserApplet::OpenLocalWebPage(const std::string& local_url,
ExtractROMFSCallback extract_romfs_callback,
OpenWebPageCallback callback) const {
diff --git a/src/core/frontend/applets/web_browser.h b/src/core/frontend/applets/web_browser.h
index 4f72284ad..178bbdd3f 100644
--- a/src/core/frontend/applets/web_browser.h
+++ b/src/core/frontend/applets/web_browser.h
@@ -5,11 +5,12 @@
#include <functional>
+#include "core/frontend/applets/applet.h"
#include "core/hle/service/am/applets/applet_web_browser_types.h"
namespace Core::Frontend {
-class WebBrowserApplet {
+class WebBrowserApplet : public Applet {
public:
using ExtractROMFSCallback = std::function<void()>;
using OpenWebPageCallback =
@@ -29,6 +30,8 @@ class DefaultWebBrowserApplet final : public WebBrowserApplet {
public:
~DefaultWebBrowserApplet() override;
+ void Close() const override;
+
void OpenLocalWebPage(const std::string& local_url, ExtractROMFSCallback extract_romfs_callback,
OpenWebPageCallback callback) const override;
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp
index 1be2dccb0..d1f1ca8c9 100644
--- a/src/core/frontend/emu_window.cpp
+++ b/src/core/frontend/emu_window.cpp
@@ -6,8 +6,6 @@
namespace Core::Frontend {
-GraphicsContext::~GraphicsContext() = default;
-
EmuWindow::EmuWindow() {
// TODO: Find a better place to set this.
config.min_client_area_size =
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h
index cf85ba29e..a72df034e 100644
--- a/src/core/frontend/emu_window.h
+++ b/src/core/frontend/emu_window.h
@@ -5,11 +5,14 @@
#include <memory>
#include <utility>
+
#include "common/common_types.h"
#include "core/frontend/framebuffer_layout.h"
namespace Core::Frontend {
+class GraphicsContext;
+
/// Information for the Graphics Backends signifying what type of screen pointer is in
/// WindowInformation
enum class WindowSystemType {
@@ -22,51 +25,6 @@ enum class WindowSystemType {
};
/**
- * Represents a drawing context that supports graphics operations.
- */
-class GraphicsContext {
-public:
- virtual ~GraphicsContext();
-
- /// Inform the driver to swap the front/back buffers and present the current image
- virtual void SwapBuffers() {}
-
- /// Makes the graphics context current for the caller thread
- virtual void MakeCurrent() {}
-
- /// Releases (dunno if this is the "right" word) the context from the caller thread
- virtual void DoneCurrent() {}
-
- class Scoped {
- public:
- [[nodiscard]] explicit Scoped(GraphicsContext& context_) : context(context_) {
- context.MakeCurrent();
- }
- ~Scoped() {
- if (active) {
- context.DoneCurrent();
- }
- }
-
- /// In the event that context was destroyed before the Scoped is destroyed, this provides a
- /// mechanism to prevent calling a destroyed object's method during the deconstructor
- void Cancel() {
- active = false;
- }
-
- private:
- GraphicsContext& context;
- bool active{true};
- };
-
- /// Calls MakeCurrent on the context and calls DoneCurrent when the scope for the returned value
- /// ends
- [[nodiscard]] Scoped Acquire() {
- return Scoped{*this};
- }
-};
-
-/**
* Abstraction class used to provide an interface between emulation code and the frontend
* (e.g. SDL, QGLWidget, GLFW, etc...).
*
@@ -205,7 +163,7 @@ protected:
}
/**
- * Converts a screen postion into the equivalent touchscreen position.
+ * Converts a screen position into the equivalent touchscreen position.
*/
std::pair<f32, f32> MapToTouchScreen(u32 framebuffer_x, u32 framebuffer_y) const;
diff --git a/src/core/frontend/graphics_context.h b/src/core/frontend/graphics_context.h
new file mode 100644
index 000000000..7554c1583
--- /dev/null
+++ b/src/core/frontend/graphics_context.h
@@ -0,0 +1,62 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <memory>
+
+#include "common/dynamic_library.h"
+
+namespace Core::Frontend {
+
+/**
+ * Represents a drawing context that supports graphics operations.
+ */
+class GraphicsContext {
+public:
+ virtual ~GraphicsContext() = default;
+
+ /// Inform the driver to swap the front/back buffers and present the current image
+ virtual void SwapBuffers() {}
+
+ /// Makes the graphics context current for the caller thread
+ virtual void MakeCurrent() {}
+
+ /// Releases (dunno if this is the "right" word) the context from the caller thread
+ virtual void DoneCurrent() {}
+
+ /// Gets the GPU driver library (used by Android only)
+ virtual std::shared_ptr<Common::DynamicLibrary> GetDriverLibrary() {
+ return {};
+ }
+
+ class Scoped {
+ public:
+ [[nodiscard]] explicit Scoped(GraphicsContext& context_) : context(context_) {
+ context.MakeCurrent();
+ }
+ ~Scoped() {
+ if (active) {
+ context.DoneCurrent();
+ }
+ }
+
+ /// In the event that context was destroyed before the Scoped is destroyed, this provides a
+ /// mechanism to prevent calling a destroyed object's method during the deconstructor
+ void Cancel() {
+ active = false;
+ }
+
+ private:
+ GraphicsContext& context;
+ bool active{true};
+ };
+
+ /// Calls MakeCurrent on the context and calls DoneCurrent when the scope for the returned value
+ /// ends
+ [[nodiscard]] Scoped Acquire() {
+ return Scoped{*this};
+ }
+};
+
+} // namespace Core::Frontend
diff --git a/src/core/hardware_properties.h b/src/core/hardware_properties.h
index 13cbdb734..191c28bb4 100644
--- a/src/core/hardware_properties.h
+++ b/src/core/hardware_properties.h
@@ -13,11 +13,9 @@ namespace Core {
namespace Hardware {
-// The below clock rate is based on Switch's clockspeed being widely known as 1.020GHz
-// The exact value used is of course unverified.
-constexpr u64 BASE_CLOCK_RATE = 1019215872; // Switch cpu frequency is 1020MHz un/docked
-constexpr u64 CNTFREQ = 19200000; // Switch's hardware clock speed
-constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores
+constexpr u64 BASE_CLOCK_RATE = 1'020'000'000; // Default CPU Frequency = 1020 MHz
+constexpr u64 CNTFREQ = 19'200'000; // CNTPCT_EL0 Frequency = 19.2 MHz
+constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores
// Virtual to Physical core map.
constexpr std::array<s32, Common::BitSize<u64>()> VirtualToPhysicalCoreMap{
@@ -25,6 +23,26 @@ constexpr std::array<s32, Common::BitSize<u64>()> VirtualToPhysicalCoreMap{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3,
};
+static constexpr inline size_t NumVirtualCores = Common::BitSize<u64>();
+
+static constexpr inline u64 VirtualCoreMask = [] {
+ u64 mask = 0;
+ for (size_t i = 0; i < NumVirtualCores; ++i) {
+ mask |= (UINT64_C(1) << i);
+ }
+ return mask;
+}();
+
+static constexpr inline u64 ConvertVirtualCoreMaskToPhysical(u64 v_core_mask) {
+ u64 p_core_mask = 0;
+ while (v_core_mask != 0) {
+ const u64 next = std::countr_zero(v_core_mask);
+ v_core_mask &= ~(static_cast<u64>(1) << next);
+ p_core_mask |= (static_cast<u64>(1) << VirtualToPhysicalCoreMap[next]);
+ }
+ return p_core_mask;
+}
+
// Cortex-A57 supports 4 memory watchpoints
constexpr u64 NUM_WATCHPOINTS = 4;
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp
index 1c91bbe40..b4afd930e 100644
--- a/src/core/hid/emulated_console.cpp
+++ b/src/core/hid/emulated_console.cpp
@@ -13,7 +13,7 @@ EmulatedConsole::~EmulatedConsole() = default;
void EmulatedConsole::ReloadFromSettings() {
// Using first motion device from player 1. No need to assign any unique config at the moment
const auto& player = Settings::values.players.GetValue()[0];
- motion_params = Common::ParamPackage(player.motions[0]);
+ motion_params[0] = Common::ParamPackage(player.motions[0]);
ReloadInput();
}
@@ -23,7 +23,8 @@ void EmulatedConsole::SetTouchParams() {
// We can't use mouse as touch if native mouse is enabled
if (!Settings::values.mouse_enabled) {
- touch_params[index++] = Common::ParamPackage{"engine:mouse,axis_x:10,axis_y:11,button:0"};
+ touch_params[index++] =
+ Common::ParamPackage{"engine:mouse,axis_x:0,axis_y:1,button:0,port:2"};
}
touch_params[index++] =
@@ -73,14 +74,30 @@ void EmulatedConsole::ReloadInput() {
// If you load any device here add the equivalent to the UnloadInput() function
SetTouchParams();
- motion_devices = Common::Input::CreateInputDevice(motion_params);
- if (motion_devices) {
- motion_devices->SetCallback({
+ motion_params[1] = Common::ParamPackage{"engine:virtual_gamepad,port:8,motion:0"};
+
+ for (std::size_t index = 0; index < motion_devices.size(); ++index) {
+ motion_devices[index] = Common::Input::CreateInputDevice(motion_params[index]);
+ if (!motion_devices[index]) {
+ continue;
+ }
+ motion_devices[index]->SetCallback({
.on_change =
[this](const Common::Input::CallbackStatus& callback) { SetMotion(callback); },
});
}
+ // Restore motion state
+ auto& emulated_motion = console.motion_values.emulated;
+ auto& motion = console.motion_state;
+ emulated_motion.ResetRotations();
+ emulated_motion.ResetQuaternion();
+ motion.accel = emulated_motion.GetAcceleration();
+ motion.gyro = emulated_motion.GetGyroscope();
+ motion.rotation = emulated_motion.GetRotations();
+ motion.orientation = emulated_motion.GetOrientation();
+ motion.is_at_rest = !emulated_motion.IsMoving(motion_sensitivity);
+
// Unique index for identifying touch device source
std::size_t index = 0;
for (auto& touch_device : touch_devices) {
@@ -99,7 +116,9 @@ void EmulatedConsole::ReloadInput() {
}
void EmulatedConsole::UnloadInput() {
- motion_devices.reset();
+ for (auto& motion : motion_devices) {
+ motion.reset();
+ }
for (auto& touch : touch_devices) {
touch.reset();
}
@@ -132,11 +151,11 @@ void EmulatedConsole::RestoreConfig() {
}
Common::ParamPackage EmulatedConsole::GetMotionParam() const {
- return motion_params;
+ return motion_params[0];
}
void EmulatedConsole::SetMotionParam(Common::ParamPackage param) {
- motion_params = std::move(param);
+ motion_params[0] = std::move(param);
ReloadInput();
}
diff --git a/src/core/hid/emulated_console.h b/src/core/hid/emulated_console.h
index 697ecd2d6..79114bb6d 100644
--- a/src/core/hid/emulated_console.h
+++ b/src/core/hid/emulated_console.h
@@ -29,10 +29,10 @@ struct ConsoleMotionInfo {
MotionInput emulated{};
};
-using ConsoleMotionDevices = std::unique_ptr<Common::Input::InputDevice>;
+using ConsoleMotionDevices = std::array<std::unique_ptr<Common::Input::InputDevice>, 2>;
using TouchDevices = std::array<std::unique_ptr<Common::Input::InputDevice>, MaxTouchDevices>;
-using ConsoleMotionParams = Common::ParamPackage;
+using ConsoleMotionParams = std::array<Common::ParamPackage, 2>;
using TouchParams = std::array<Common::ParamPackage, MaxTouchDevices>;
using ConsoleMotionValues = ConsoleMotionInfo;
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp
index a959c9db9..1ebc32c1e 100644
--- a/src/core/hid/emulated_controller.cpp
+++ b/src/core/hid/emulated_controller.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <algorithm>
+#include <common/scope_exit.h>
#include "common/polyfill_ranges.h"
#include "common/thread.h"
@@ -10,8 +11,8 @@
namespace Core::HID {
constexpr s32 HID_JOYSTICK_MAX = 0x7fff;
-constexpr s32 HID_JOYSTICK_MIN = 0x7ffe;
constexpr s32 HID_TRIGGER_MAX = 0x7fff;
+constexpr u32 TURBO_BUTTON_DELAY = 4;
// Use a common UUID for TAS and Virtual Gamepad
constexpr Common::UUID TAS_UUID =
Common::UUID{{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7, 0xA5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}};
@@ -94,6 +95,7 @@ void EmulatedController::ReloadFromSettings() {
motion_params[index] = Common::ParamPackage(player.motions[index]);
}
+ controller.color_values = {};
controller.colors_state.fullkey = {
.body = GetNpadColor(player.body_color_left),
.button = GetNpadColor(player.button_color_left),
@@ -107,6 +109,8 @@ void EmulatedController::ReloadFromSettings() {
.button = GetNpadColor(player.button_color_right),
};
+ ring_params[0] = Common::ParamPackage(Settings::values.ringcon_analogs);
+
// Other or debug controller should always be a pro controller
if (npad_id_type != NpadIdType::Other) {
SetNpadStyleIndex(MapSettingsTypeToNPad(player.controller_type));
@@ -133,18 +137,32 @@ void EmulatedController::LoadDevices() {
trigger_params[LeftIndex] = button_params[Settings::NativeButton::ZL];
trigger_params[RightIndex] = button_params[Settings::NativeButton::ZR];
+ color_params[LeftIndex] = left_joycon;
+ color_params[RightIndex] = right_joycon;
+ color_params[LeftIndex].Set("color", true);
+ color_params[RightIndex].Set("color", true);
+
battery_params[LeftIndex] = left_joycon;
battery_params[RightIndex] = right_joycon;
battery_params[LeftIndex].Set("battery", true);
battery_params[RightIndex].Set("battery", true);
- camera_params = Common::ParamPackage{"engine:camera,camera:1"};
- nfc_params = Common::ParamPackage{"engine:virtual_amiibo,nfc:1"};
+ camera_params[0] = right_joycon;
+ camera_params[0].Set("camera", true);
+ nfc_params[1] = right_joycon;
+ nfc_params[1].Set("nfc", true);
+
+ // Only map virtual devices to the first controller
+ if (npad_id_type == NpadIdType::Player1 || npad_id_type == NpadIdType::Handheld) {
+ camera_params[1] = Common::ParamPackage{"engine:camera,camera:1"};
+ ring_params[1] = Common::ParamPackage{"engine:joycon,axis_x:100,axis_y:101"};
+ nfc_params[0] = Common::ParamPackage{"engine:virtual_amiibo,nfc:1"};
+ }
output_params[LeftIndex] = left_joycon;
output_params[RightIndex] = right_joycon;
- output_params[2] = camera_params;
- output_params[3] = nfc_params;
+ output_params[2] = camera_params[1];
+ output_params[3] = nfc_params[0];
output_params[LeftIndex].Set("output", true);
output_params[RightIndex].Set("output", true);
output_params[2].Set("output", true);
@@ -160,8 +178,11 @@ void EmulatedController::LoadDevices() {
Common::Input::CreateInputDevice);
std::ranges::transform(battery_params, battery_devices.begin(),
Common::Input::CreateInputDevice);
- camera_devices = Common::Input::CreateInputDevice(camera_params);
- nfc_devices = Common::Input::CreateInputDevice(nfc_params);
+ std::ranges::transform(color_params, color_devices.begin(), Common::Input::CreateInputDevice);
+ std::ranges::transform(camera_params, camera_devices.begin(), Common::Input::CreateInputDevice);
+ std::ranges::transform(ring_params, ring_analog_devices.begin(),
+ Common::Input::CreateInputDevice);
+ std::ranges::transform(nfc_params, nfc_devices.begin(), Common::Input::CreateInputDevice);
std::ranges::transform(output_params, output_devices.begin(),
Common::Input::CreateOutputDevice);
@@ -176,6 +197,8 @@ void EmulatedController::LoadDevices() {
Common::Input::CreateInputDevice);
std::ranges::transform(virtual_stick_params, virtual_stick_devices.begin(),
Common::Input::CreateInputDevice);
+ std::ranges::transform(virtual_motion_params, virtual_motion_devices.begin(),
+ Common::Input::CreateInputDevice);
}
void EmulatedController::LoadTASParams() {
@@ -236,6 +259,12 @@ void EmulatedController::LoadVirtualGamepadParams() {
for (auto& param : virtual_stick_params) {
param = common_params;
}
+ for (auto& param : virtual_stick_params) {
+ param = common_params;
+ }
+ for (auto& param : virtual_motion_params) {
+ param = common_params;
+ }
// TODO(german77): Replace this with an input profile or something better
virtual_button_params[Settings::NativeButton::A].Set("button", 0);
@@ -263,6 +292,13 @@ void EmulatedController::LoadVirtualGamepadParams() {
virtual_stick_params[Settings::NativeAnalog::LStick].Set("axis_y", 1);
virtual_stick_params[Settings::NativeAnalog::RStick].Set("axis_x", 2);
virtual_stick_params[Settings::NativeAnalog::RStick].Set("axis_y", 3);
+ virtual_stick_params[Settings::NativeAnalog::LStick].Set("deadzone", 0.0f);
+ virtual_stick_params[Settings::NativeAnalog::LStick].Set("range", 1.0f);
+ virtual_stick_params[Settings::NativeAnalog::RStick].Set("deadzone", 0.0f);
+ virtual_stick_params[Settings::NativeAnalog::RStick].Set("range", 1.0f);
+
+ virtual_motion_params[Settings::NativeMotion::MotionLeft].Set("motion", 0);
+ virtual_motion_params[Settings::NativeMotion::MotionRight].Set("motion", 0);
}
void EmulatedController::ReloadInput() {
@@ -323,6 +359,19 @@ void EmulatedController::ReloadInput() {
battery_devices[index]->ForceUpdate();
}
+ for (std::size_t index = 0; index < color_devices.size(); ++index) {
+ if (!color_devices[index]) {
+ continue;
+ }
+ color_devices[index]->SetCallback({
+ .on_change =
+ [this, index](const Common::Input::CallbackStatus& callback) {
+ SetColors(callback, index);
+ },
+ });
+ color_devices[index]->ForceUpdate();
+ }
+
for (std::size_t index = 0; index < motion_devices.size(); ++index) {
if (!motion_devices[index]) {
continue;
@@ -333,25 +382,51 @@ void EmulatedController::ReloadInput() {
SetMotion(callback, index);
},
});
- motion_devices[index]->ForceUpdate();
- }
- if (camera_devices) {
- camera_devices->SetCallback({
+ // Restore motion state
+ auto& emulated_motion = controller.motion_values[index].emulated;
+ auto& motion = controller.motion_state[index];
+ emulated_motion.ResetRotations();
+ emulated_motion.ResetQuaternion();
+ motion.accel = emulated_motion.GetAcceleration();
+ motion.gyro = emulated_motion.GetGyroscope();
+ motion.rotation = emulated_motion.GetRotations();
+ motion.euler = emulated_motion.GetEulerAngles();
+ motion.orientation = emulated_motion.GetOrientation();
+ motion.is_at_rest = !emulated_motion.IsMoving(motion_sensitivity);
+ }
+
+ for (std::size_t index = 0; index < camera_devices.size(); ++index) {
+ if (!camera_devices[index]) {
+ continue;
+ }
+ camera_devices[index]->SetCallback({
.on_change =
[this](const Common::Input::CallbackStatus& callback) { SetCamera(callback); },
});
- camera_devices->ForceUpdate();
+ camera_devices[index]->ForceUpdate();
}
- if (nfc_devices) {
- if (npad_id_type == NpadIdType::Handheld || npad_id_type == NpadIdType::Player1) {
- nfc_devices->SetCallback({
- .on_change =
- [this](const Common::Input::CallbackStatus& callback) { SetNfc(callback); },
- });
- nfc_devices->ForceUpdate();
+ for (std::size_t index = 0; index < ring_analog_devices.size(); ++index) {
+ if (!ring_analog_devices[index]) {
+ continue;
}
+ ring_analog_devices[index]->SetCallback({
+ .on_change =
+ [this](const Common::Input::CallbackStatus& callback) { SetRingAnalog(callback); },
+ });
+ ring_analog_devices[index]->ForceUpdate();
+ }
+
+ for (std::size_t index = 0; index < nfc_devices.size(); ++index) {
+ if (!nfc_devices[index]) {
+ continue;
+ }
+ nfc_devices[index]->SetCallback({
+ .on_change =
+ [this](const Common::Input::CallbackStatus& callback) { SetNfc(callback); },
+ });
+ nfc_devices[index]->ForceUpdate();
}
// Register TAS devices. No need to force update
@@ -403,6 +478,19 @@ void EmulatedController::ReloadInput() {
},
});
}
+
+ for (std::size_t index = 0; index < virtual_motion_devices.size(); ++index) {
+ if (!virtual_motion_devices[index]) {
+ continue;
+ }
+ virtual_motion_devices[index]->SetCallback({
+ .on_change =
+ [this, index](const Common::Input::CallbackStatus& callback) {
+ SetMotion(callback, index);
+ },
+ });
+ }
+ turbo_button_state = 0;
}
void EmulatedController::UnloadInput() {
@@ -421,6 +509,9 @@ void EmulatedController::UnloadInput() {
for (auto& battery : battery_devices) {
battery.reset();
}
+ for (auto& color : color_devices) {
+ color.reset();
+ }
for (auto& output : output_devices) {
output.reset();
}
@@ -436,8 +527,18 @@ void EmulatedController::UnloadInput() {
for (auto& stick : virtual_stick_devices) {
stick.reset();
}
- camera_devices.reset();
- nfc_devices.reset();
+ for (auto& motion : virtual_motion_devices) {
+ motion.reset();
+ }
+ for (auto& camera : camera_devices) {
+ camera.reset();
+ }
+ for (auto& ring : ring_analog_devices) {
+ ring.reset();
+ }
+ for (auto& nfc : nfc_devices) {
+ nfc.reset();
+ }
}
void EmulatedController::EnableConfiguration() {
@@ -449,6 +550,11 @@ void EmulatedController::EnableConfiguration() {
void EmulatedController::DisableConfiguration() {
is_configuring = false;
+ // Get Joycon colors before turning on the controller
+ for (const auto& color_device : color_devices) {
+ color_device->ForceUpdate();
+ }
+
// Apply temporary npad type to the real controller
if (tmp_npad_type != npad_type) {
if (is_connected) {
@@ -476,6 +582,8 @@ void EmulatedController::EnableSystemButtons() {
void EmulatedController::DisableSystemButtons() {
std::scoped_lock lock{mutex};
system_buttons_enabled = false;
+ controller.home_button_state.raw = 0;
+ controller.capture_button_state.raw = 0;
}
void EmulatedController::ResetSystemButtons() {
@@ -502,6 +610,9 @@ void EmulatedController::SaveCurrentConfig() {
for (std::size_t index = 0; index < player.motions.size(); ++index) {
player.motions[index] = motion_params[index].Serialize();
}
+ if (npad_id_type == NpadIdType::Player1) {
+ Settings::values.ringcon_analogs = ring_params[0].Serialize();
+ }
}
void EmulatedController::RestoreConfig() {
@@ -607,6 +718,12 @@ void EmulatedController::SetMotionParam(std::size_t index, Common::ParamPackage
ReloadInput();
}
+void EmulatedController::StartMotionCalibration() {
+ for (ControllerMotionInfo& motion : controller.motion_values) {
+ motion.emulated.Calibrate();
+ }
+}
+
void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index,
Common::UUID uuid) {
if (index >= controller.button_values.size()) {
@@ -625,6 +742,7 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback
}
current_status.toggle = new_status.toggle;
+ current_status.turbo = new_status.turbo;
current_status.uuid = uuid;
// Update button status with current
@@ -655,6 +773,8 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback
if (is_configuring) {
controller.npad_button_state.raw = NpadButton::None;
controller.debug_pad_button_state.raw = 0;
+ controller.home_button_state.raw = 0;
+ controller.capture_button_state.raw = 0;
lock.unlock();
TriggerOnChange(ControllerTriggerType::Button, false);
return;
@@ -773,17 +893,21 @@ void EmulatedController::SetStick(const Common::Input::CallbackStatus& callback,
if (index >= controller.stick_values.size()) {
return;
}
- std::unique_lock lock{mutex};
+ auto trigger_guard =
+ SCOPE_GUARD({ TriggerOnChange(ControllerTriggerType::Stick, !is_configuring); });
+ std::scoped_lock lock{mutex};
const auto stick_value = TransformToStick(callback);
// Only read stick values that have the same uuid or are over the threshold to avoid flapping
if (controller.stick_values[index].uuid != uuid) {
const bool is_tas = uuid == TAS_UUID;
if (is_tas && stick_value.x.value == 0 && stick_value.y.value == 0) {
+ trigger_guard.Cancel();
return;
}
if (!is_tas && !stick_value.down && !stick_value.up && !stick_value.left &&
!stick_value.right) {
+ trigger_guard.Cancel();
return;
}
}
@@ -794,21 +918,12 @@ void EmulatedController::SetStick(const Common::Input::CallbackStatus& callback,
if (is_configuring) {
controller.analog_stick_state.left = {};
controller.analog_stick_state.right = {};
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Stick, false);
return;
}
- const auto FloatToShort = [](float a) {
- if (a > 0) {
- return static_cast<s32>(a * HID_JOYSTICK_MAX);
- }
- return static_cast<s32>(a * HID_JOYSTICK_MIN);
- };
-
const AnalogStickState stick{
- .x = FloatToShort(controller.stick_values[index].x.value),
- .y = FloatToShort(controller.stick_values[index].y.value),
+ .x = static_cast<s32>(controller.stick_values[index].x.value * HID_JOYSTICK_MAX),
+ .y = static_cast<s32>(controller.stick_values[index].y.value * HID_JOYSTICK_MAX),
};
switch (index) {
@@ -827,9 +942,6 @@ void EmulatedController::SetStick(const Common::Input::CallbackStatus& callback,
controller.npad_button_state.stick_r_down.Assign(controller.stick_values[index].down);
break;
}
-
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Stick, true);
}
void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callback,
@@ -837,7 +949,9 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
if (index >= controller.trigger_values.size()) {
return;
}
- std::unique_lock lock{mutex};
+ auto trigger_guard =
+ SCOPE_GUARD({ TriggerOnChange(ControllerTriggerType::Trigger, !is_configuring); });
+ std::scoped_lock lock{mutex};
const auto trigger_value = TransformToTrigger(callback);
// Only read trigger values that have the same uuid or are pressed once
@@ -853,13 +967,12 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
if (is_configuring) {
controller.gc_trigger_state.left = 0;
controller.gc_trigger_state.right = 0;
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Trigger, false);
return;
}
// Only GC controllers have analog triggers
if (npad_type != NpadStyleIndex::GameCube) {
+ trigger_guard.Cancel();
return;
}
@@ -876,9 +989,6 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
controller.npad_button_state.zr.Assign(trigger.pressed.value);
break;
}
-
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Trigger, true);
}
void EmulatedController::SetMotion(const Common::Input::CallbackStatus& callback,
@@ -886,7 +996,8 @@ void EmulatedController::SetMotion(const Common::Input::CallbackStatus& callback
if (index >= controller.motion_values.size()) {
return;
}
- std::unique_lock lock{mutex};
+ SCOPE_EXIT({ TriggerOnChange(ControllerTriggerType::Motion, !is_configuring); });
+ std::scoped_lock lock{mutex};
auto& raw_status = controller.motion_values[index].raw_status;
auto& emulated = controller.motion_values[index].emulated;
@@ -901,26 +1012,67 @@ void EmulatedController::SetMotion(const Common::Input::CallbackStatus& callback
raw_status.gyro.y.value,
raw_status.gyro.z.value,
});
- emulated.SetGyroThreshold(raw_status.gyro.x.properties.threshold);
+ emulated.SetUserGyroThreshold(raw_status.gyro.x.properties.threshold);
emulated.UpdateRotation(raw_status.delta_timestamp);
emulated.UpdateOrientation(raw_status.delta_timestamp);
- force_update_motion = raw_status.force_update;
-
- if (is_configuring) {
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Motion, false);
- return;
- }
auto& motion = controller.motion_state[index];
motion.accel = emulated.GetAcceleration();
motion.gyro = emulated.GetGyroscope();
motion.rotation = emulated.GetRotations();
+ motion.euler = emulated.GetEulerAngles();
motion.orientation = emulated.GetOrientation();
motion.is_at_rest = !emulated.IsMoving(motion_sensitivity);
+}
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Motion, true);
+void EmulatedController::SetColors(const Common::Input::CallbackStatus& callback,
+ std::size_t index) {
+ if (index >= controller.color_values.size()) {
+ return;
+ }
+ auto trigger_guard =
+ SCOPE_GUARD({ TriggerOnChange(ControllerTriggerType::Color, !is_configuring); });
+ std::scoped_lock lock{mutex};
+ controller.color_values[index] = TransformToColor(callback);
+
+ if (is_configuring) {
+ return;
+ }
+
+ if (controller.color_values[index].body == 0) {
+ trigger_guard.Cancel();
+ return;
+ }
+
+ controller.colors_state.fullkey = {
+ .body = GetNpadColor(controller.color_values[index].body),
+ .button = GetNpadColor(controller.color_values[index].buttons),
+ };
+ if (npad_type == NpadStyleIndex::ProController) {
+ controller.colors_state.left = {
+ .body = GetNpadColor(controller.color_values[index].left_grip),
+ .button = GetNpadColor(controller.color_values[index].buttons),
+ };
+ controller.colors_state.right = {
+ .body = GetNpadColor(controller.color_values[index].right_grip),
+ .button = GetNpadColor(controller.color_values[index].buttons),
+ };
+ } else {
+ switch (index) {
+ case LeftIndex:
+ controller.colors_state.left = {
+ .body = GetNpadColor(controller.color_values[index].body),
+ .button = GetNpadColor(controller.color_values[index].buttons),
+ };
+ break;
+ case RightIndex:
+ controller.colors_state.right = {
+ .body = GetNpadColor(controller.color_values[index].body),
+ .button = GetNpadColor(controller.color_values[index].buttons),
+ };
+ break;
+ }
+ }
}
void EmulatedController::SetBattery(const Common::Input::CallbackStatus& callback,
@@ -928,12 +1080,11 @@ void EmulatedController::SetBattery(const Common::Input::CallbackStatus& callbac
if (index >= controller.battery_values.size()) {
return;
}
- std::unique_lock lock{mutex};
+ SCOPE_EXIT({ TriggerOnChange(ControllerTriggerType::Battery, !is_configuring); });
+ std::scoped_lock lock{mutex};
controller.battery_values[index] = TransformToBattery(callback);
if (is_configuring) {
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Battery, false);
return;
}
@@ -989,18 +1140,14 @@ void EmulatedController::SetBattery(const Common::Input::CallbackStatus& callbac
};
break;
}
-
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Battery, true);
}
void EmulatedController::SetCamera(const Common::Input::CallbackStatus& callback) {
- std::unique_lock lock{mutex};
+ SCOPE_EXIT({ TriggerOnChange(ControllerTriggerType::IrSensor, !is_configuring); });
+ std::scoped_lock lock{mutex};
controller.camera_values = TransformToCamera(callback);
if (is_configuring) {
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::IrSensor, false);
return;
}
@@ -1008,28 +1155,32 @@ void EmulatedController::SetCamera(const Common::Input::CallbackStatus& callback
controller.camera_state.format =
static_cast<Core::IrSensor::ImageTransferProcessorFormat>(controller.camera_values.format);
controller.camera_state.data = controller.camera_values.data;
+}
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::IrSensor, true);
+void EmulatedController::SetRingAnalog(const Common::Input::CallbackStatus& callback) {
+ SCOPE_EXIT({ TriggerOnChange(ControllerTriggerType::RingController, !is_configuring); });
+ std::scoped_lock lock{mutex};
+ const auto force_value = TransformToStick(callback);
+
+ controller.ring_analog_value = force_value.x;
+
+ if (is_configuring) {
+ return;
+ }
+
+ controller.ring_analog_state.force = force_value.x.value;
}
void EmulatedController::SetNfc(const Common::Input::CallbackStatus& callback) {
- std::unique_lock lock{mutex};
+ SCOPE_EXIT({ TriggerOnChange(ControllerTriggerType::Nfc, !is_configuring); });
+ std::scoped_lock lock{mutex};
controller.nfc_values = TransformToNfc(callback);
if (is_configuring) {
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Nfc, false);
return;
}
- controller.nfc_state = {
- controller.nfc_values.state,
- controller.nfc_values.data,
- };
-
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Nfc, true);
+ controller.nfc_state = controller.nfc_values;
}
bool EmulatedController::SetVibration(std::size_t device_index, VibrationValue vibration) {
@@ -1061,7 +1212,7 @@ bool EmulatedController::SetVibration(std::size_t device_index, VibrationValue v
.type = type,
};
return output_devices[device_index]->SetVibration(status) ==
- Common::Input::VibrationError::None;
+ Common::Input::DriverResult::Success;
}
bool EmulatedController::IsVibrationEnabled(std::size_t device_index) {
@@ -1083,16 +1234,37 @@ bool EmulatedController::IsVibrationEnabled(std::size_t device_index) {
return output_devices[device_index]->IsVibrationEnabled();
}
-bool EmulatedController::SetPollingMode(Common::Input::PollingMode polling_mode) {
- LOG_INFO(Service_HID, "Set polling mode {}", polling_mode);
- auto& output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
+Common::Input::DriverResult EmulatedController::SetPollingMode(
+ EmulatedDeviceIndex device_index, Common::Input::PollingMode polling_mode) {
+ LOG_INFO(Service_HID, "Set polling mode {}, device_index={}", polling_mode, device_index);
+
+ auto& left_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Left)];
+ auto& right_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
auto& nfc_output_device = output_devices[3];
- const auto virtual_nfc_result = nfc_output_device->SetPollingMode(polling_mode);
- const auto mapped_nfc_result = output_device->SetPollingMode(polling_mode);
+ if (device_index == EmulatedDeviceIndex::LeftIndex) {
+ return left_output_device->SetPollingMode(polling_mode);
+ }
+
+ if (device_index == EmulatedDeviceIndex::RightIndex) {
+ const auto virtual_nfc_result = nfc_output_device->SetPollingMode(polling_mode);
+ const auto mapped_nfc_result = right_output_device->SetPollingMode(polling_mode);
+
+ // Restore previous state
+ if (mapped_nfc_result != Common::Input::DriverResult::Success) {
+ right_output_device->SetPollingMode(Common::Input::PollingMode::Active);
+ }
- return virtual_nfc_result == Common::Input::PollingError::None ||
- mapped_nfc_result == Common::Input::PollingError::None;
+ if (virtual_nfc_result == Common::Input::DriverResult::Success) {
+ return virtual_nfc_result;
+ }
+ return mapped_nfc_result;
+ }
+
+ left_output_device->SetPollingMode(polling_mode);
+ right_output_device->SetPollingMode(polling_mode);
+ nfc_output_device->SetPollingMode(polling_mode);
+ return Common::Input::DriverResult::Success;
}
bool EmulatedController::SetCameraFormat(
@@ -1103,13 +1275,22 @@ bool EmulatedController::SetCameraFormat(
auto& camera_output_device = output_devices[2];
if (right_output_device->SetCameraFormat(static_cast<Common::Input::CameraFormat>(
- camera_format)) == Common::Input::CameraError::None) {
+ camera_format)) == Common::Input::DriverResult::Success) {
return true;
}
// Fallback to Qt camera if native device doesn't have support
return camera_output_device->SetCameraFormat(static_cast<Common::Input::CameraFormat>(
- camera_format)) == Common::Input::CameraError::None;
+ camera_format)) == Common::Input::DriverResult::Success;
+}
+
+Common::ParamPackage EmulatedController::GetRingParam() const {
+ return ring_params[0];
+}
+
+void EmulatedController::SetRingParam(Common::ParamPackage param) {
+ ring_params[0] = std::move(param);
+ ReloadInput();
}
bool EmulatedController::HasNfc() const {
@@ -1133,10 +1314,88 @@ bool EmulatedController::HasNfc() const {
return is_connected && (has_virtual_nfc && is_virtual_nfc_supported);
}
+bool EmulatedController::AddNfcHandle() {
+ nfc_handles++;
+ return SetPollingMode(EmulatedDeviceIndex::RightIndex, Common::Input::PollingMode::NFC) ==
+ Common::Input::DriverResult::Success;
+}
+
+bool EmulatedController::RemoveNfcHandle() {
+ nfc_handles--;
+ if (nfc_handles <= 0) {
+ return SetPollingMode(EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Active) ==
+ Common::Input::DriverResult::Success;
+ }
+ return true;
+}
+
+bool EmulatedController::StartNfcPolling() {
+ auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
+ auto& nfc_virtual_output_device = output_devices[3];
+
+ const auto device_result = nfc_output_device->StartNfcPolling();
+ const auto virtual_device_result = nfc_virtual_output_device->StartNfcPolling();
+
+ return device_result == Common::Input::NfcState::Success ||
+ virtual_device_result == Common::Input::NfcState::Success;
+}
+
+bool EmulatedController::StopNfcPolling() {
+ auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
+ auto& nfc_virtual_output_device = output_devices[3];
+
+ const auto device_result = nfc_output_device->StopNfcPolling();
+ const auto virtual_device_result = nfc_virtual_output_device->StopNfcPolling();
+
+ return device_result == Common::Input::NfcState::Success ||
+ virtual_device_result == Common::Input::NfcState::Success;
+}
+
+bool EmulatedController::ReadAmiiboData(std::vector<u8>& data) {
+ auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
+ auto& nfc_virtual_output_device = output_devices[3];
+
+ if (nfc_output_device->ReadAmiiboData(data) == Common::Input::NfcState::Success) {
+ return true;
+ }
+
+ return nfc_virtual_output_device->ReadAmiiboData(data) == Common::Input::NfcState::Success;
+}
+
+bool EmulatedController::ReadMifareData(const Common::Input::MifareRequest& request,
+ Common::Input::MifareRequest& out_data) {
+ auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
+ auto& nfc_virtual_output_device = output_devices[3];
+
+ if (nfc_output_device->ReadMifareData(request, out_data) == Common::Input::NfcState::Success) {
+ return true;
+ }
+
+ return nfc_virtual_output_device->ReadMifareData(request, out_data) ==
+ Common::Input::NfcState::Success;
+}
+
+bool EmulatedController::WriteMifareData(const Common::Input::MifareRequest& request) {
+ auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
+ auto& nfc_virtual_output_device = output_devices[3];
+
+ if (nfc_output_device->WriteMifareData(request) == Common::Input::NfcState::Success) {
+ return true;
+ }
+
+ return nfc_virtual_output_device->WriteMifareData(request) == Common::Input::NfcState::Success;
+}
+
bool EmulatedController::WriteNfc(const std::vector<u8>& data) {
- auto& nfc_output_device = output_devices[3];
+ auto& nfc_output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
+ auto& nfc_virtual_output_device = output_devices[3];
- return nfc_output_device->WriteNfcData(data) == Common::Input::NfcState::Success;
+ if (nfc_output_device->SupportsNfc() != Common::Input::NfcState::NotSupported) {
+ return nfc_output_device->WriteNfcData(data) == Common::Input::NfcState::Success;
+ }
+
+ return nfc_virtual_output_device->WriteNfcData(data) == Common::Input::NfcState::Success;
}
void EmulatedController::SetLedPattern() {
@@ -1156,6 +1415,26 @@ void EmulatedController::SetLedPattern() {
}
}
+void EmulatedController::SetGyroscopeZeroDriftMode(GyroscopeZeroDriftMode mode) {
+ for (auto& motion : controller.motion_values) {
+ switch (mode) {
+ case GyroscopeZeroDriftMode::Loose:
+ motion_sensitivity = motion.emulated.IsAtRestLoose;
+ motion.emulated.SetGyroThreshold(motion.emulated.ThresholdLoose);
+ break;
+ case GyroscopeZeroDriftMode::Tight:
+ motion_sensitivity = motion.emulated.IsAtRestThight;
+ motion.emulated.SetGyroThreshold(motion.emulated.ThresholdThight);
+ break;
+ case GyroscopeZeroDriftMode::Standard:
+ default:
+ motion_sensitivity = motion.emulated.IsAtRestStandard;
+ motion.emulated.SetGyroThreshold(motion.emulated.ThresholdStandard);
+ break;
+ }
+ }
+}
+
void EmulatedController::SetSupportedNpadStyleTag(NpadStyleTag supported_styles) {
supported_style_tag = supported_styles;
if (!is_connected) {
@@ -1263,39 +1542,35 @@ void EmulatedController::Connect(bool use_temporary_value) {
return;
}
- std::unique_lock lock{mutex};
+ auto trigger_guard =
+ SCOPE_GUARD({ TriggerOnChange(ControllerTriggerType::Connected, !is_configuring); });
+ std::scoped_lock lock{mutex};
if (is_configuring) {
tmp_is_connected = true;
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Connected, false);
return;
}
if (is_connected) {
+ trigger_guard.Cancel();
return;
}
is_connected = true;
-
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Connected, true);
}
void EmulatedController::Disconnect() {
- std::unique_lock lock{mutex};
+ auto trigger_guard =
+ SCOPE_GUARD({ TriggerOnChange(ControllerTriggerType::Disconnected, !is_configuring); });
+ std::scoped_lock lock{mutex};
if (is_configuring) {
tmp_is_connected = false;
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Disconnected, false);
return;
}
if (!is_connected) {
+ trigger_guard.Cancel();
return;
}
is_connected = false;
-
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Disconnected, true);
}
bool EmulatedController::IsConnected(bool get_temporary_value) const {
@@ -1320,19 +1595,21 @@ NpadStyleIndex EmulatedController::GetNpadStyleIndex(bool get_temporary_value) c
}
void EmulatedController::SetNpadStyleIndex(NpadStyleIndex npad_type_) {
- std::unique_lock lock{mutex};
+ auto trigger_guard =
+ SCOPE_GUARD({ TriggerOnChange(ControllerTriggerType::Type, !is_configuring); });
+ std::scoped_lock lock{mutex};
if (is_configuring) {
if (tmp_npad_type == npad_type_) {
+ trigger_guard.Cancel();
return;
}
tmp_npad_type = npad_type_;
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Type, false);
return;
}
if (npad_type == npad_type_) {
+ trigger_guard.Cancel();
return;
}
if (is_connected) {
@@ -1340,9 +1617,6 @@ void EmulatedController::SetNpadStyleIndex(NpadStyleIndex npad_type_) {
NpadIdTypeToIndex(npad_id_type));
}
npad_type = npad_type_;
-
- lock.unlock();
- TriggerOnChange(ControllerTriggerType::Type, true);
}
LedPattern EmulatedController::GetLedPattern() const {
@@ -1403,6 +1677,10 @@ CameraValues EmulatedController::GetCameraValues() const {
return controller.camera_values;
}
+RingAnalogValue EmulatedController::GetRingSensorValues() const {
+ return controller.ring_analog_value;
+}
+
HomeButtonState EmulatedController::GetHomeButtons() const {
std::scoped_lock lock{mutex};
if (is_configuring) {
@@ -1424,7 +1702,7 @@ NpadButtonState EmulatedController::GetNpadButtons() const {
if (is_configuring) {
return {};
}
- return controller.npad_button_state;
+ return {controller.npad_button_state.raw & GetTurboButtonMask()};
}
DebugPadButton EmulatedController::GetDebugPadButtons() const {
@@ -1436,7 +1714,7 @@ DebugPadButton EmulatedController::GetDebugPadButtons() const {
}
AnalogSticks EmulatedController::GetSticks() const {
- std::unique_lock lock{mutex};
+ std::scoped_lock lock{mutex};
if (is_configuring) {
return {};
@@ -1455,19 +1733,6 @@ NpadGcTriggerState EmulatedController::GetTriggers() const {
MotionState EmulatedController::GetMotions() const {
std::unique_lock lock{mutex};
-
- // Some drivers like mouse motion need constant refreshing
- if (force_update_motion) {
- for (auto& device : motion_devices) {
- if (!device) {
- continue;
- }
- lock.unlock();
- device->ForceUpdate();
- lock.lock();
- }
- }
-
return controller.motion_state;
}
@@ -1486,6 +1751,10 @@ const CameraState& EmulatedController::GetCamera() const {
return controller.camera_state;
}
+RingSensorForce EmulatedController::GetRingSensorForce() const {
+ return controller.ring_analog_state;
+}
+
const NfcState& EmulatedController::GetNfc() const {
std::scoped_lock lock{mutex};
return controller.nfc_state;
@@ -1528,4 +1797,87 @@ void EmulatedController::DeleteCallback(int key) {
}
callback_list.erase(iterator);
}
+
+void EmulatedController::StatusUpdate() {
+ turbo_button_state = (turbo_button_state + 1) % (TURBO_BUTTON_DELAY * 2);
+
+ // Some drivers like key motion need constant refreshing
+ for (std::size_t index = 0; index < motion_devices.size(); ++index) {
+ const auto& raw_status = controller.motion_values[index].raw_status;
+ auto& device = motion_devices[index];
+ if (!raw_status.force_update) {
+ continue;
+ }
+ if (!device) {
+ continue;
+ }
+ device->ForceUpdate();
+ }
+}
+
+NpadButton EmulatedController::GetTurboButtonMask() const {
+ // Apply no mask when disabled
+ if (turbo_button_state < TURBO_BUTTON_DELAY) {
+ return {NpadButton::All};
+ }
+
+ NpadButtonState button_mask{};
+ for (std::size_t index = 0; index < controller.button_values.size(); ++index) {
+ if (!controller.button_values[index].turbo) {
+ continue;
+ }
+
+ switch (index) {
+ case Settings::NativeButton::A:
+ button_mask.a.Assign(1);
+ break;
+ case Settings::NativeButton::B:
+ button_mask.b.Assign(1);
+ break;
+ case Settings::NativeButton::X:
+ button_mask.x.Assign(1);
+ break;
+ case Settings::NativeButton::Y:
+ button_mask.y.Assign(1);
+ break;
+ case Settings::NativeButton::L:
+ button_mask.l.Assign(1);
+ break;
+ case Settings::NativeButton::R:
+ button_mask.r.Assign(1);
+ break;
+ case Settings::NativeButton::ZL:
+ button_mask.zl.Assign(1);
+ break;
+ case Settings::NativeButton::ZR:
+ button_mask.zr.Assign(1);
+ break;
+ case Settings::NativeButton::DLeft:
+ button_mask.left.Assign(1);
+ break;
+ case Settings::NativeButton::DUp:
+ button_mask.up.Assign(1);
+ break;
+ case Settings::NativeButton::DRight:
+ button_mask.right.Assign(1);
+ break;
+ case Settings::NativeButton::DDown:
+ button_mask.down.Assign(1);
+ break;
+ case Settings::NativeButton::SL:
+ button_mask.left_sl.Assign(1);
+ button_mask.right_sl.Assign(1);
+ break;
+ case Settings::NativeButton::SR:
+ button_mask.left_sr.Assign(1);
+ button_mask.right_sr.Assign(1);
+ break;
+ default:
+ break;
+ }
+ }
+
+ return static_cast<NpadButton>(~button_mask.raw);
+}
+
} // namespace Core::HID
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index a398543a6..d511e5fac 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -35,19 +35,27 @@ using ControllerMotionDevices =
std::array<std::unique_ptr<Common::Input::InputDevice>, Settings::NativeMotion::NumMotions>;
using TriggerDevices =
std::array<std::unique_ptr<Common::Input::InputDevice>, Settings::NativeTrigger::NumTriggers>;
+using ColorDevices =
+ std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>;
using BatteryDevices =
std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>;
-using CameraDevices = std::unique_ptr<Common::Input::InputDevice>;
-using NfcDevices = std::unique_ptr<Common::Input::InputDevice>;
+using CameraDevices =
+ std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>;
+using RingAnalogDevices =
+ std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>;
+using NfcDevices =
+ std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>;
using OutputDevices = std::array<std::unique_ptr<Common::Input::OutputDevice>, output_devices_size>;
using ButtonParams = std::array<Common::ParamPackage, Settings::NativeButton::NumButtons>;
using StickParams = std::array<Common::ParamPackage, Settings::NativeAnalog::NumAnalogs>;
using ControllerMotionParams = std::array<Common::ParamPackage, Settings::NativeMotion::NumMotions>;
using TriggerParams = std::array<Common::ParamPackage, Settings::NativeTrigger::NumTriggers>;
+using ColorParams = std::array<Common::ParamPackage, max_emulated_controllers>;
using BatteryParams = std::array<Common::ParamPackage, max_emulated_controllers>;
-using CameraParams = Common::ParamPackage;
-using NfcParams = Common::ParamPackage;
+using CameraParams = std::array<Common::ParamPackage, max_emulated_controllers>;
+using RingAnalogParams = std::array<Common::ParamPackage, max_emulated_controllers>;
+using NfcParams = std::array<Common::ParamPackage, max_emulated_controllers>;
using OutputParams = std::array<Common::ParamPackage, output_devices_size>;
using ButtonValues = std::array<Common::Input::ButtonStatus, Settings::NativeButton::NumButtons>;
@@ -58,6 +66,7 @@ using ControllerMotionValues = std::array<ControllerMotionInfo, Settings::Native
using ColorValues = std::array<Common::Input::BodyColorStatus, max_emulated_controllers>;
using BatteryValues = std::array<Common::Input::BatteryStatus, max_emulated_controllers>;
using CameraValues = Common::Input::CameraStatus;
+using RingAnalogValue = Common::Input::AnalogStatus;
using NfcValues = Common::Input::NfcStatus;
using VibrationValues = std::array<Common::Input::VibrationStatus, max_emulated_controllers>;
@@ -84,15 +93,17 @@ struct CameraState {
std::size_t sample{};
};
-struct NfcState {
- Common::Input::NfcState state{};
- std::vector<u8> data{};
+struct RingSensorForce {
+ f32 force;
};
+using NfcState = Common::Input::NfcStatus;
+
struct ControllerMotion {
Common::Vec3f accel{};
Common::Vec3f gyro{};
Common::Vec3f rotation{};
+ Common::Vec3f euler{};
std::array<Common::Vec3f, 3> orientation{};
bool is_at_rest{};
};
@@ -116,9 +127,10 @@ struct ControllerStatus {
BatteryValues battery_values{};
VibrationValues vibration_values{};
CameraValues camera_values{};
+ RingAnalogValue ring_analog_value{};
NfcValues nfc_values{};
- // Data for HID serices
+ // Data for HID services
HomeButtonState home_button_state{};
CaptureButtonState capture_button_state{};
NpadButtonState npad_button_state{};
@@ -129,6 +141,7 @@ struct ControllerStatus {
ControllerColors colors_state{};
BatteryLevelState battery_state{};
CameraState camera_state{};
+ RingSensorForce ring_analog_state{};
NfcState nfc_state{};
};
@@ -141,6 +154,7 @@ enum class ControllerTriggerType {
Battery,
Vibration,
IrSensor,
+ RingController,
Nfc,
Connected,
Disconnected,
@@ -273,6 +287,9 @@ public:
*/
void SetMotionParam(std::size_t index, Common::ParamPackage param);
+ /// Auto calibrates the current motion devices
+ void StartMotionCalibration();
+
/// Returns the latest button status from the controller with parameters
ButtonValues GetButtonsValues() const;
@@ -294,6 +311,9 @@ public:
/// Returns the latest camera status from the controller with parameters
CameraValues GetCameraValues() const;
+ /// Returns the latest status of analog input from the ring sensor with parameters
+ RingAnalogValue GetRingSensorValues() const;
+
/// Returns the latest status of button input for the hid::HomeButton service
HomeButtonState GetHomeButtons() const;
@@ -324,6 +344,9 @@ public:
/// Returns the latest camera status from the controller
const CameraState& GetCamera() const;
+ /// Returns the latest ringcon force sensor value
+ RingSensorForce GetRingSensorForce() const;
+
/// Returns the latest ntag status from the controller
const NfcState& GetNfc() const;
@@ -335,36 +358,72 @@ public:
/**
* Sends a small vibration to the output device
- * @return true if SetVibration was successfull
+ * @return true if SetVibration was successful
*/
bool IsVibrationEnabled(std::size_t device_index);
/**
* Sets the desired data to be polled from a controller
+ * @param device_index index of the controller to set the polling mode
* @param polling_mode type of input desired buttons, gyro, nfc, ir, etc.
- * @return true if SetPollingMode was successfull
+ * @return driver result from this command
*/
- bool SetPollingMode(Common::Input::PollingMode polling_mode);
+ Common::Input::DriverResult SetPollingMode(EmulatedDeviceIndex device_index,
+ Common::Input::PollingMode polling_mode);
/**
* Sets the desired camera format to be polled from a controller
* @param camera_format size of each frame
- * @return true if SetCameraFormat was successfull
+ * @return true if SetCameraFormat was successful
*/
bool SetCameraFormat(Core::IrSensor::ImageTransferProcessorFormat camera_format);
+ // Returns the current mapped ring device
+ Common::ParamPackage GetRingParam() const;
+
+ /**
+ * Updates the current mapped ring device
+ * @param param ParamPackage with ring sensor data to be mapped
+ */
+ void SetRingParam(Common::ParamPackage param);
+
/// Returns true if the device has nfc support
bool HasNfc() const;
+ /// Sets the joycon in nfc mode and increments the handle count
+ bool AddNfcHandle();
+
+ /// Decrements the handle count if zero sets the joycon in active mode
+ bool RemoveNfcHandle();
+
+ /// Start searching for nfc tags
+ bool StartNfcPolling();
+
+ /// Stop searching for nfc tags
+ bool StopNfcPolling();
+
+ /// Returns true if the nfc tag was readable
+ bool ReadAmiiboData(std::vector<u8>& data);
+
/// Returns true if the nfc tag was written
bool WriteNfc(const std::vector<u8>& data);
+ /// Returns true if the nfc tag was readable
+ bool ReadMifareData(const Common::Input::MifareRequest& request,
+ Common::Input::MifareRequest& out_data);
+
+ /// Returns true if the nfc tag was written
+ bool WriteMifareData(const Common::Input::MifareRequest& request);
+
/// Returns the led pattern corresponding to this emulated controller
LedPattern GetLedPattern() const;
/// Asks the output device to change the player led pattern
void SetLedPattern();
+ /// Changes sensitivity of the motion sensor
+ void SetGyroscopeZeroDriftMode(GyroscopeZeroDriftMode mode);
+
/**
* Adds a callback to the list of events
* @param update_callback A ConsoleUpdateCallback that will be triggered
@@ -378,6 +437,9 @@ public:
*/
void DeleteCallback(int key);
+ /// Swaps the state of the turbo buttons and updates motion input
+ void StatusUpdate();
+
private:
/// creates input devices from params
void LoadDevices();
@@ -433,9 +495,16 @@ private:
void SetMotion(const Common::Input::CallbackStatus& callback, std::size_t index);
/**
+ * Updates the color status of the controller
+ * @param callback A CallbackStatus containing the color status
+ * @param index color ID of the to be updated
+ */
+ void SetColors(const Common::Input::CallbackStatus& callback, std::size_t index);
+
+ /**
* Updates the battery status of the controller
* @param callback A CallbackStatus containing the battery status
- * @param index Button ID of the to be updated
+ * @param index battery ID of the to be updated
*/
void SetBattery(const Common::Input::CallbackStatus& callback, std::size_t index);
@@ -446,6 +515,12 @@ private:
void SetCamera(const Common::Input::CallbackStatus& callback);
/**
+ * Updates the ring analog sensor status of the ring controller
+ * @param callback A CallbackStatus containing the force status
+ */
+ void SetRingAnalog(const Common::Input::CallbackStatus& callback);
+
+ /**
* Updates the nfc status of the controller
* @param callback A CallbackStatus containing the nfc status
*/
@@ -465,6 +540,8 @@ private:
*/
void TriggerOnChange(ControllerTriggerType type, bool is_service_update);
+ NpadButton GetTurboButtonMask() const;
+
const NpadIdType npad_id_type;
NpadStyleIndex npad_type{NpadStyleIndex::None};
NpadStyleIndex original_npad_type{NpadStyleIndex::None};
@@ -472,8 +549,9 @@ private:
bool is_connected{false};
bool is_configuring{false};
bool system_buttons_enabled{true};
- f32 motion_sensitivity{0.01f};
- bool force_update_motion{false};
+ f32 motion_sensitivity{Core::HID::MotionInput::IsAtRestStandard};
+ u32 turbo_button_state{0};
+ std::size_t nfc_handles{0};
// Temporary values to avoid doing changes while the controller is in configuring mode
NpadStyleIndex tmp_npad_type{NpadStyleIndex::None};
@@ -484,7 +562,9 @@ private:
ControllerMotionParams motion_params;
TriggerParams trigger_params;
BatteryParams battery_params;
+ ColorParams color_params;
CameraParams camera_params;
+ RingAnalogParams ring_params;
NfcParams nfc_params;
OutputParams output_params;
@@ -493,7 +573,9 @@ private:
ControllerMotionDevices motion_devices;
TriggerDevices trigger_devices;
BatteryDevices battery_devices;
+ ColorDevices color_devices;
CameraDevices camera_devices;
+ RingAnalogDevices ring_analog_devices;
NfcDevices nfc_devices;
OutputDevices output_devices;
@@ -506,8 +588,10 @@ private:
// Virtual gamepad related variables
ButtonParams virtual_button_params;
StickParams virtual_stick_params;
+ ControllerMotionParams virtual_motion_params;
ButtonDevices virtual_button_devices;
StickDevices virtual_stick_devices;
+ ControllerMotionDevices virtual_motion_devices;
mutable std::mutex mutex;
mutable std::mutex callback_mutex;
diff --git a/src/core/hid/emulated_devices.cpp b/src/core/hid/emulated_devices.cpp
index e421828d2..8e165dded 100644
--- a/src/core/hid/emulated_devices.cpp
+++ b/src/core/hid/emulated_devices.cpp
@@ -14,60 +14,61 @@ EmulatedDevices::EmulatedDevices() = default;
EmulatedDevices::~EmulatedDevices() = default;
void EmulatedDevices::ReloadFromSettings() {
- ring_params = Common::ParamPackage(Settings::values.ringcon_analogs);
ReloadInput();
}
void EmulatedDevices::ReloadInput() {
// If you load any device here add the equivalent to the UnloadInput() function
+
+ // Native Mouse is mapped on port 1, pad 0
+ const Common::ParamPackage mouse_params{"engine:mouse,port:1,pad:0"};
+
+ // Keyboard keys is mapped on port 1, pad 0 for normal keys, pad 1 for moddifier keys
+ const Common::ParamPackage keyboard_params{"engine:keyboard,port:1"};
+
std::size_t key_index = 0;
for (auto& mouse_device : mouse_button_devices) {
- Common::ParamPackage mouse_params;
- mouse_params.Set("engine", "mouse");
- mouse_params.Set("button", static_cast<int>(key_index));
- mouse_device = Common::Input::CreateInputDevice(mouse_params);
+ Common::ParamPackage mouse_button_params = mouse_params;
+ mouse_button_params.Set("button", static_cast<int>(key_index));
+ mouse_device = Common::Input::CreateInputDevice(mouse_button_params);
key_index++;
}
- mouse_stick_device =
- Common::Input::CreateInputDeviceFromString("engine:mouse,axis_x:0,axis_y:1");
+ Common::ParamPackage mouse_position_params = mouse_params;
+ mouse_position_params.Set("axis_x", 0);
+ mouse_position_params.Set("axis_y", 1);
+ mouse_position_params.Set("deadzone", 0.0f);
+ mouse_position_params.Set("range", 1.0f);
+ mouse_position_params.Set("threshold", 0.0f);
+ mouse_stick_device = Common::Input::CreateInputDevice(mouse_position_params);
// First two axis are reserved for mouse position
key_index = 2;
- for (auto& mouse_device : mouse_analog_devices) {
- Common::ParamPackage mouse_params;
- mouse_params.Set("engine", "mouse");
- mouse_params.Set("axis", static_cast<int>(key_index));
- mouse_device = Common::Input::CreateInputDevice(mouse_params);
+ for (auto& mouse_device : mouse_wheel_devices) {
+ Common::ParamPackage mouse_wheel_params = mouse_params;
+ mouse_wheel_params.Set("axis", static_cast<int>(key_index));
+ mouse_device = Common::Input::CreateInputDevice(mouse_wheel_params);
key_index++;
}
key_index = 0;
for (auto& keyboard_device : keyboard_devices) {
- // Keyboard keys are only mapped on port 1, pad 0
- Common::ParamPackage keyboard_params;
- keyboard_params.Set("engine", "keyboard");
- keyboard_params.Set("button", static_cast<int>(key_index));
- keyboard_params.Set("port", 1);
- keyboard_params.Set("pad", 0);
- keyboard_device = Common::Input::CreateInputDevice(keyboard_params);
+ Common::ParamPackage keyboard_key_params = keyboard_params;
+ keyboard_key_params.Set("button", static_cast<int>(key_index));
+ keyboard_key_params.Set("pad", 0);
+ keyboard_device = Common::Input::CreateInputDevice(keyboard_key_params);
key_index++;
}
key_index = 0;
for (auto& keyboard_device : keyboard_modifier_devices) {
- // Keyboard moddifiers are only mapped on port 1, pad 1
- Common::ParamPackage keyboard_params;
- keyboard_params.Set("engine", "keyboard");
- keyboard_params.Set("button", static_cast<int>(key_index));
- keyboard_params.Set("port", 1);
- keyboard_params.Set("pad", 1);
- keyboard_device = Common::Input::CreateInputDevice(keyboard_params);
+ Common::ParamPackage keyboard_moddifier_params = keyboard_params;
+ keyboard_moddifier_params.Set("button", static_cast<int>(key_index));
+ keyboard_moddifier_params.Set("pad", 1);
+ keyboard_device = Common::Input::CreateInputDevice(keyboard_moddifier_params);
key_index++;
}
- ring_analog_device = Common::Input::CreateInputDevice(ring_params);
-
for (std::size_t index = 0; index < mouse_button_devices.size(); ++index) {
if (!mouse_button_devices[index]) {
continue;
@@ -80,14 +81,14 @@ void EmulatedDevices::ReloadInput() {
});
}
- for (std::size_t index = 0; index < mouse_analog_devices.size(); ++index) {
- if (!mouse_analog_devices[index]) {
+ for (std::size_t index = 0; index < mouse_wheel_devices.size(); ++index) {
+ if (!mouse_wheel_devices[index]) {
continue;
}
- mouse_analog_devices[index]->SetCallback({
+ mouse_wheel_devices[index]->SetCallback({
.on_change =
[this, index](const Common::Input::CallbackStatus& callback) {
- SetMouseAnalog(callback, index);
+ SetMouseWheel(callback, index);
},
});
}
@@ -95,7 +96,9 @@ void EmulatedDevices::ReloadInput() {
if (mouse_stick_device) {
mouse_stick_device->SetCallback({
.on_change =
- [this](const Common::Input::CallbackStatus& callback) { SetMouseStick(callback); },
+ [this](const Common::Input::CallbackStatus& callback) {
+ SetMousePosition(callback);
+ },
});
}
@@ -122,20 +125,13 @@ void EmulatedDevices::ReloadInput() {
},
});
}
-
- if (ring_analog_device) {
- ring_analog_device->SetCallback({
- .on_change =
- [this](const Common::Input::CallbackStatus& callback) { SetRingAnalog(callback); },
- });
- }
}
void EmulatedDevices::UnloadInput() {
for (auto& button : mouse_button_devices) {
button.reset();
}
- for (auto& analog : mouse_analog_devices) {
+ for (auto& analog : mouse_wheel_devices) {
analog.reset();
}
mouse_stick_device.reset();
@@ -145,7 +141,6 @@ void EmulatedDevices::UnloadInput() {
for (auto& button : keyboard_modifier_devices) {
button.reset();
}
- ring_analog_device.reset();
}
void EmulatedDevices::EnableConfiguration() {
@@ -165,7 +160,6 @@ void EmulatedDevices::SaveCurrentConfig() {
if (!is_configuring) {
return;
}
- Settings::values.ringcon_analogs = ring_params.Serialize();
}
void EmulatedDevices::RestoreConfig() {
@@ -175,15 +169,6 @@ void EmulatedDevices::RestoreConfig() {
ReloadFromSettings();
}
-Common::ParamPackage EmulatedDevices::GetRingParam() const {
- return ring_params;
-}
-
-void EmulatedDevices::SetRingParam(Common::ParamPackage param) {
- ring_params = std::move(param);
- ReloadInput();
-}
-
void EmulatedDevices::SetKeyboardButton(const Common::Input::CallbackStatus& callback,
std::size_t index) {
if (index >= device_status.keyboard_values.size()) {
@@ -380,18 +365,18 @@ void EmulatedDevices::SetMouseButton(const Common::Input::CallbackStatus& callba
TriggerOnChange(DeviceTriggerType::Mouse);
}
-void EmulatedDevices::SetMouseAnalog(const Common::Input::CallbackStatus& callback,
- std::size_t index) {
- if (index >= device_status.mouse_analog_values.size()) {
+void EmulatedDevices::SetMouseWheel(const Common::Input::CallbackStatus& callback,
+ std::size_t index) {
+ if (index >= device_status.mouse_wheel_values.size()) {
return;
}
std::unique_lock lock{mutex};
const auto analog_value = TransformToAnalog(callback);
- device_status.mouse_analog_values[index] = analog_value;
+ device_status.mouse_wheel_values[index] = analog_value;
if (is_configuring) {
- device_status.mouse_position_state = {};
+ device_status.mouse_wheel_state = {};
lock.unlock();
TriggerOnChange(DeviceTriggerType::Mouse);
return;
@@ -410,7 +395,7 @@ void EmulatedDevices::SetMouseAnalog(const Common::Input::CallbackStatus& callba
TriggerOnChange(DeviceTriggerType::Mouse);
}
-void EmulatedDevices::SetMouseStick(const Common::Input::CallbackStatus& callback) {
+void EmulatedDevices::SetMousePosition(const Common::Input::CallbackStatus& callback) {
std::unique_lock lock{mutex};
const auto touch_value = TransformToTouch(callback);
@@ -430,23 +415,6 @@ void EmulatedDevices::SetMouseStick(const Common::Input::CallbackStatus& callbac
TriggerOnChange(DeviceTriggerType::Mouse);
}
-void EmulatedDevices::SetRingAnalog(const Common::Input::CallbackStatus& callback) {
- std::lock_guard lock{mutex};
- const auto force_value = TransformToStick(callback);
-
- device_status.ring_analog_value = force_value.x;
-
- if (is_configuring) {
- device_status.ring_analog_value = {};
- TriggerOnChange(DeviceTriggerType::RingController);
- return;
- }
-
- device_status.ring_analog_state.force = force_value.x.value;
-
- TriggerOnChange(DeviceTriggerType::RingController);
-}
-
KeyboardValues EmulatedDevices::GetKeyboardValues() const {
std::scoped_lock lock{mutex};
return device_status.keyboard_values;
@@ -462,10 +430,6 @@ MouseButtonValues EmulatedDevices::GetMouseButtonsValues() const {
return device_status.mouse_button_values;
}
-RingAnalogValue EmulatedDevices::GetRingSensorValues() const {
- return device_status.ring_analog_value;
-}
-
KeyboardKey EmulatedDevices::GetKeyboard() const {
std::scoped_lock lock{mutex};
return device_status.keyboard_state;
@@ -491,10 +455,6 @@ AnalogStickState EmulatedDevices::GetMouseWheel() const {
return device_status.mouse_wheel_state;
}
-RingSensorForce EmulatedDevices::GetRingSensorForce() const {
- return device_status.ring_analog_state;
-}
-
void EmulatedDevices::TriggerOnChange(DeviceTriggerType type) {
std::scoped_lock lock{callback_mutex};
for (const auto& poller_pair : callback_list) {
diff --git a/src/core/hid/emulated_devices.h b/src/core/hid/emulated_devices.h
index 4cdbf9dc6..5eab693e4 100644
--- a/src/core/hid/emulated_devices.h
+++ b/src/core/hid/emulated_devices.h
@@ -23,14 +23,12 @@ using KeyboardModifierDevices = std::array<std::unique_ptr<Common::Input::InputD
Settings::NativeKeyboard::NumKeyboardMods>;
using MouseButtonDevices = std::array<std::unique_ptr<Common::Input::InputDevice>,
Settings::NativeMouseButton::NumMouseButtons>;
-using MouseAnalogDevices = std::array<std::unique_ptr<Common::Input::InputDevice>,
- Settings::NativeMouseWheel::NumMouseWheels>;
+using MouseWheelDevices = std::array<std::unique_ptr<Common::Input::InputDevice>,
+ Settings::NativeMouseWheel::NumMouseWheels>;
using MouseStickDevice = std::unique_ptr<Common::Input::InputDevice>;
-using RingAnalogDevice = std::unique_ptr<Common::Input::InputDevice>;
using MouseButtonParams =
std::array<Common::ParamPackage, Settings::NativeMouseButton::NumMouseButtons>;
-using RingAnalogParams = Common::ParamPackage;
using KeyboardValues =
std::array<Common::Input::ButtonStatus, Settings::NativeKeyboard::NumKeyboardKeys>;
@@ -38,36 +36,29 @@ using KeyboardModifierValues =
std::array<Common::Input::ButtonStatus, Settings::NativeKeyboard::NumKeyboardMods>;
using MouseButtonValues =
std::array<Common::Input::ButtonStatus, Settings::NativeMouseButton::NumMouseButtons>;
-using MouseAnalogValues =
+using MouseWheelValues =
std::array<Common::Input::AnalogStatus, Settings::NativeMouseWheel::NumMouseWheels>;
using MouseStickValue = Common::Input::TouchStatus;
-using RingAnalogValue = Common::Input::AnalogStatus;
struct MousePosition {
f32 x;
f32 y;
};
-struct RingSensorForce {
- f32 force;
-};
-
struct DeviceStatus {
// Data from input_common
KeyboardValues keyboard_values{};
KeyboardModifierValues keyboard_moddifier_values{};
MouseButtonValues mouse_button_values{};
- MouseAnalogValues mouse_analog_values{};
+ MouseWheelValues mouse_wheel_values{};
MouseStickValue mouse_stick_value{};
- RingAnalogValue ring_analog_value{};
- // Data for HID serices
+ // Data for HID services
KeyboardKey keyboard_state{};
KeyboardModifier keyboard_moddifier_state{};
MouseButton mouse_button_state{};
MousePosition mouse_position_state{};
AnalogStickState mouse_wheel_state{};
- RingSensorForce ring_analog_state{};
};
enum class DeviceTriggerType {
@@ -84,7 +75,7 @@ struct InterfaceUpdateCallback {
class EmulatedDevices {
public:
/**
- * Contains all input data related to external devices that aren't necesarily a controller
+ * Contains all input data related to external devices that aren't necessarily a controller
* This includes devices such as the keyboard or mouse
*/
explicit EmulatedDevices();
@@ -120,15 +111,6 @@ public:
/// Reverts any mapped changes made that weren't saved
void RestoreConfig();
- // Returns the current mapped ring device
- Common::ParamPackage GetRingParam() const;
-
- /**
- * Updates the current mapped ring device
- * @param param ParamPackage with ring sensor data to be mapped
- */
- void SetRingParam(Common::ParamPackage param);
-
/// Returns the latest status of button input from the keyboard with parameters
KeyboardValues GetKeyboardValues() const;
@@ -138,9 +120,6 @@ public:
/// Returns the latest status of button input from the mouse with parameters
MouseButtonValues GetMouseButtonsValues() const;
- /// Returns the latest status of analog input from the ring sensor with parameters
- RingAnalogValue GetRingSensorValues() const;
-
/// Returns the latest status of button input from the keyboard
KeyboardKey GetKeyboard() const;
@@ -156,9 +135,6 @@ public:
/// Returns the latest mouse wheel change
AnalogStickState GetMouseWheel() const;
- /// Returns the latest ringcon force sensor value
- RingSensorForce GetRingSensorForce() const;
-
/**
* Adds a callback to the list of events
* @param update_callback InterfaceUpdateCallback that will be triggered
@@ -202,19 +178,13 @@ private:
* @param callback A CallbackStatus containing the wheel status
* @param index wheel ID to be updated
*/
- void SetMouseAnalog(const Common::Input::CallbackStatus& callback, std::size_t index);
+ void SetMouseWheel(const Common::Input::CallbackStatus& callback, std::size_t index);
/**
* Updates the mouse position status of the mouse device
* @param callback A CallbackStatus containing the position status
*/
- void SetMouseStick(const Common::Input::CallbackStatus& callback);
-
- /**
- * Updates the ring analog sensor status of the ring controller
- * @param callback A CallbackStatus containing the force status
- */
- void SetRingAnalog(const Common::Input::CallbackStatus& callback);
+ void SetMousePosition(const Common::Input::CallbackStatus& callback);
/**
* Triggers a callback that something has changed on the device status
@@ -224,14 +194,11 @@ private:
bool is_configuring{false};
- RingAnalogParams ring_params;
-
KeyboardDevices keyboard_devices;
KeyboardModifierDevices keyboard_modifier_devices;
MouseButtonDevices mouse_button_devices;
- MouseAnalogDevices mouse_analog_devices;
+ MouseWheelDevices mouse_wheel_devices;
MouseStickDevice mouse_stick_device;
- RingAnalogDevice ring_analog_device;
mutable std::mutex mutex;
mutable std::mutex callback_mutex;
diff --git a/src/core/hid/hid_types.h b/src/core/hid/hid_types.h
index e3b1cfbc6..6b35f448c 100644
--- a/src/core/hid/hid_types.h
+++ b/src/core/hid/hid_types.h
@@ -282,6 +282,13 @@ enum class VibrationGcErmCommand : u64 {
StopHard = 2,
};
+// This is nn::hid::GyroscopeZeroDriftMode
+enum class GyroscopeZeroDriftMode : u32 {
+ Loose = 0,
+ Standard = 1,
+ Tight = 2,
+};
+
// This is nn::hid::NpadStyleTag
struct NpadStyleTag {
union {
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp
index 502692875..a05716fd8 100644
--- a/src/core/hid/input_converter.cpp
+++ b/src/core/hid/input_converter.cpp
@@ -54,6 +54,7 @@ Common::Input::ButtonStatus TransformToButton(const Common::Input::CallbackStatu
case Common::Input::InputType::Analog:
status.value = TransformToTrigger(callback).pressed.value;
status.toggle = callback.analog_status.properties.toggle;
+ status.inverted = callback.analog_status.properties.inverted_button;
break;
case Common::Input::InputType::Trigger:
status.value = TransformToTrigger(callback).pressed.value;
@@ -61,6 +62,9 @@ Common::Input::ButtonStatus TransformToButton(const Common::Input::CallbackStatu
case Common::Input::InputType::Button:
status = callback.button_status;
break;
+ case Common::Input::InputType::Motion:
+ status.value = std::abs(callback.motion_status.gyro.x.raw_value) > 1.0f;
+ break;
default:
LOG_ERROR(Input, "Conversion from type {} to button not implemented", callback.type);
break;
@@ -82,7 +86,7 @@ Common::Input::MotionStatus TransformToMotion(const Common::Input::CallbackStatu
.range = 1.0f,
.offset = 0.0f,
};
- status.delta_timestamp = 5000;
+ status.delta_timestamp = 1000;
status.force_update = true;
status.accel.x = {
.value = 0.0f,
@@ -226,6 +230,10 @@ Common::Input::TriggerStatus TransformToTrigger(const Common::Input::CallbackSta
status = callback.trigger_status;
calculate_button_value = false;
break;
+ case Common::Input::InputType::Motion:
+ status.analog.properties.range = 1.0f;
+ raw_value = callback.motion_status.accel.x.raw_value;
+ break;
default:
LOG_ERROR(Input, "Conversion from type {} to trigger not implemented", callback.type);
break;
@@ -291,11 +299,7 @@ Common::Input::NfcStatus TransformToNfc(const Common::Input::CallbackStatus& cal
Common::Input::NfcStatus nfc{};
switch (callback.type) {
case Common::Input::InputType::Nfc:
- nfc = {
- .state = callback.nfc_status,
- .data = callback.raw_data,
- };
- break;
+ return callback.nfc_status;
default:
LOG_ERROR(Input, "Conversion from type {} to NFC not implemented", callback.type);
break;
@@ -304,6 +308,18 @@ Common::Input::NfcStatus TransformToNfc(const Common::Input::CallbackStatus& cal
return nfc;
}
+Common::Input::BodyColorStatus TransformToColor(const Common::Input::CallbackStatus& callback) {
+ switch (callback.type) {
+ case Common::Input::InputType::Color:
+ return callback.color_status;
+ break;
+ default:
+ LOG_ERROR(Input, "Conversion from type {} to color not implemented", callback.type);
+ return {};
+ break;
+ }
+}
+
void SanitizeAnalog(Common::Input::AnalogStatus& analog, bool clamp_value) {
const auto& properties = analog.properties;
float& raw_value = analog.raw_value;
@@ -316,7 +332,7 @@ void SanitizeAnalog(Common::Input::AnalogStatus& analog, bool clamp_value) {
// Apply center offset
raw_value -= properties.offset;
- // Set initial values to be formated
+ // Set initial values to be formatted
value = raw_value;
// Calculate vector size
@@ -386,7 +402,7 @@ void SanitizeStick(Common::Input::AnalogStatus& analog_x, Common::Input::AnalogS
raw_x = properties_x.inverted ? -raw_x : raw_x;
raw_y = properties_y.inverted ? -raw_y : raw_y;
- // Set initial values to be formated
+ // Set initial values to be formatted
x = raw_x;
y = raw_y;
diff --git a/src/core/hid/input_converter.h b/src/core/hid/input_converter.h
index b7eb6e660..c51c03e57 100644
--- a/src/core/hid/input_converter.h
+++ b/src/core/hid/input_converter.h
@@ -88,11 +88,19 @@ Common::Input::CameraStatus TransformToCamera(const Common::Input::CallbackStatu
* Converts raw input data into a valid nfc status.
*
* @param callback Supported callbacks: Nfc.
- * @return A valid CameraObject object.
+ * @return A valid data tag vector.
*/
Common::Input::NfcStatus TransformToNfc(const Common::Input::CallbackStatus& callback);
/**
+ * Converts raw input data into a valid color status.
+ *
+ * @param callback Supported callbacks: Color.
+ * @return A valid Color object.
+ */
+Common::Input::BodyColorStatus TransformToColor(const Common::Input::CallbackStatus& callback);
+
+/**
* Converts raw analog data into a valid analog value
* @param analog An analog object containing raw data and properties
* @param clamp_value determines if the value needs to be clamped between -1.0f and 1.0f.
diff --git a/src/core/hid/motion_input.cpp b/src/core/hid/motion_input.cpp
index b1f658e62..f56f2ae1d 100644
--- a/src/core/hid/motion_input.cpp
+++ b/src/core/hid/motion_input.cpp
@@ -1,6 +1,8 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <cmath>
+
#include "common/math_util.h"
#include "core/hid/motion_input.h"
@@ -9,7 +11,9 @@ namespace Core::HID {
MotionInput::MotionInput() {
// Initialize PID constants with default values
SetPID(0.3f, 0.005f, 0.0f);
- SetGyroThreshold(0.007f);
+ SetGyroThreshold(ThresholdStandard);
+ ResetQuaternion();
+ ResetRotations();
}
void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) {
@@ -20,17 +24,31 @@ void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) {
void MotionInput::SetAcceleration(const Common::Vec3f& acceleration) {
accel = acceleration;
+
+ accel.x = std::clamp(accel.x, -AccelMaxValue, AccelMaxValue);
+ accel.y = std::clamp(accel.y, -AccelMaxValue, AccelMaxValue);
+ accel.z = std::clamp(accel.z, -AccelMaxValue, AccelMaxValue);
}
void MotionInput::SetGyroscope(const Common::Vec3f& gyroscope) {
gyro = gyroscope - gyro_bias;
- // Auto adjust drift to minimize drift
- if (!IsMoving(0.1f)) {
+ gyro.x = std::clamp(gyro.x, -GyroMaxValue, GyroMaxValue);
+ gyro.y = std::clamp(gyro.y, -GyroMaxValue, GyroMaxValue);
+ gyro.z = std::clamp(gyro.z, -GyroMaxValue, GyroMaxValue);
+
+ // Auto adjust gyro_bias to minimize drift
+ if (!IsMoving(IsAtRestRelaxed)) {
gyro_bias = (gyro_bias * 0.9999f) + (gyroscope * 0.0001f);
}
- if (gyro.Length() < gyro_threshold) {
+ // Adjust drift when calibration mode is enabled
+ if (calibration_mode) {
+ gyro_bias = (gyro_bias * 0.99f) + (gyroscope * 0.01f);
+ StopCalibration();
+ }
+
+ if (gyro.Length() < gyro_threshold * user_gyro_threshold) {
gyro = {};
} else {
only_accelerometer = false;
@@ -41,6 +59,20 @@ void MotionInput::SetQuaternion(const Common::Quaternion<f32>& quaternion) {
quat = quaternion;
}
+void MotionInput::SetEulerAngles(const Common::Vec3f& euler_angles) {
+ const float cr = std::cos(euler_angles.x * 0.5f);
+ const float sr = std::sin(euler_angles.x * 0.5f);
+ const float cp = std::cos(euler_angles.y * 0.5f);
+ const float sp = std::sin(euler_angles.y * 0.5f);
+ const float cy = std::cos(euler_angles.z * 0.5f);
+ const float sy = std::sin(euler_angles.z * 0.5f);
+
+ quat.w = cr * cp * cy + sr * sp * sy;
+ quat.xyz.x = sr * cp * cy - cr * sp * sy;
+ quat.xyz.y = cr * sp * cy + sr * cp * sy;
+ quat.xyz.z = cr * cp * sy - sr * sp * cy;
+}
+
void MotionInput::SetGyroBias(const Common::Vec3f& bias) {
gyro_bias = bias;
}
@@ -49,6 +81,10 @@ void MotionInput::SetGyroThreshold(f32 threshold) {
gyro_threshold = threshold;
}
+void MotionInput::SetUserGyroThreshold(f32 threshold) {
+ user_gyro_threshold = threshold / ThresholdStandard;
+}
+
void MotionInput::EnableReset(bool reset) {
reset_enabled = reset;
}
@@ -57,6 +93,10 @@ void MotionInput::ResetRotations() {
rotations = {};
}
+void MotionInput::ResetQuaternion() {
+ quat = {{0.0f, 0.0f, -1.0f}, 0.0f};
+}
+
bool MotionInput::IsMoving(f32 sensitivity) const {
return gyro.Length() >= sensitivity || accel.Length() <= 0.9f || accel.Length() >= 1.1f;
}
@@ -73,6 +113,19 @@ void MotionInput::UpdateRotation(u64 elapsed_time) {
rotations += gyro * sample_period;
}
+void MotionInput::Calibrate() {
+ calibration_mode = true;
+ calibration_counter = 0;
+}
+
+void MotionInput::StopCalibration() {
+ if (calibration_counter++ > CalibrationSamples) {
+ calibration_mode = false;
+ ResetQuaternion();
+ ResetRotations();
+ }
+}
+
// Based on Madgwick's implementation of Mayhony's AHRS algorithm.
// https://github.com/xioTechnologies/Open-Source-AHRS-With-x-IMU/blob/master/x-IMU%20IMU%20and%20AHRS%20Algorithms/x-IMU%20IMU%20and%20AHRS%20Algorithms/AHRS/MahonyAHRS.cs
void MotionInput::UpdateOrientation(u64 elapsed_time) {
@@ -204,11 +257,31 @@ Common::Vec3f MotionInput::GetRotations() const {
return rotations;
}
+Common::Vec3f MotionInput::GetEulerAngles() const {
+ // roll (x-axis rotation)
+ const float sinr_cosp = 2 * (quat.w * quat.xyz.x + quat.xyz.y * quat.xyz.z);
+ const float cosr_cosp = 1 - 2 * (quat.xyz.x * quat.xyz.x + quat.xyz.y * quat.xyz.y);
+
+ // pitch (y-axis rotation)
+ const float sinp = std::sqrt(1 + 2 * (quat.w * quat.xyz.y - quat.xyz.x * quat.xyz.z));
+ const float cosp = std::sqrt(1 - 2 * (quat.w * quat.xyz.y - quat.xyz.x * quat.xyz.z));
+
+ // yaw (z-axis rotation)
+ const float siny_cosp = 2 * (quat.w * quat.xyz.z + quat.xyz.x * quat.xyz.y);
+ const float cosy_cosp = 1 - 2 * (quat.xyz.y * quat.xyz.y + quat.xyz.z * quat.xyz.z);
+
+ return {
+ std::atan2(sinr_cosp, cosr_cosp),
+ 2 * std::atan2(sinp, cosp) - Common::PI / 2,
+ std::atan2(siny_cosp, cosy_cosp),
+ };
+}
+
void MotionInput::ResetOrientation() {
if (!reset_enabled || only_accelerometer) {
return;
}
- if (!IsMoving(0.5f) && accel.z <= -0.9f) {
+ if (!IsMoving(IsAtRestRelaxed) && accel.z <= -0.9f) {
++reset_counter;
if (reset_counter > 900) {
quat.w = 0;
diff --git a/src/core/hid/motion_input.h b/src/core/hid/motion_input.h
index f5fd90db5..11678983d 100644
--- a/src/core/hid/motion_input.h
+++ b/src/core/hid/motion_input.h
@@ -11,6 +11,20 @@ namespace Core::HID {
class MotionInput {
public:
+ static constexpr float ThresholdLoose = 0.01f;
+ static constexpr float ThresholdStandard = 0.007f;
+ static constexpr float ThresholdThight = 0.002f;
+
+ static constexpr float IsAtRestRelaxed = 0.05f;
+ static constexpr float IsAtRestLoose = 0.02f;
+ static constexpr float IsAtRestStandard = 0.01f;
+ static constexpr float IsAtRestThight = 0.005f;
+
+ static constexpr float GyroMaxValue = 5.0f;
+ static constexpr float AccelMaxValue = 7.0f;
+
+ static constexpr std::size_t CalibrationSamples = 300;
+
explicit MotionInput();
MotionInput(const MotionInput&) = default;
@@ -23,26 +37,35 @@ public:
void SetAcceleration(const Common::Vec3f& acceleration);
void SetGyroscope(const Common::Vec3f& gyroscope);
void SetQuaternion(const Common::Quaternion<f32>& quaternion);
+ void SetEulerAngles(const Common::Vec3f& euler_angles);
void SetGyroBias(const Common::Vec3f& bias);
void SetGyroThreshold(f32 threshold);
+ /// Applies a modifier on top of the normal gyro threshold
+ void SetUserGyroThreshold(f32 threshold);
+
void EnableReset(bool reset);
void ResetRotations();
+ void ResetQuaternion();
void UpdateRotation(u64 elapsed_time);
void UpdateOrientation(u64 elapsed_time);
+ void Calibrate();
+
[[nodiscard]] std::array<Common::Vec3f, 3> GetOrientation() const;
[[nodiscard]] Common::Vec3f GetAcceleration() const;
[[nodiscard]] Common::Vec3f GetGyroscope() const;
[[nodiscard]] Common::Vec3f GetGyroBias() const;
[[nodiscard]] Common::Vec3f GetRotations() const;
[[nodiscard]] Common::Quaternion<f32> GetQuaternion() const;
+ [[nodiscard]] Common::Vec3f GetEulerAngles() const;
[[nodiscard]] bool IsMoving(f32 sensitivity) const;
[[nodiscard]] bool IsCalibrated(f32 sensitivity) const;
private:
+ void StopCalibration();
void ResetOrientation();
void SetOrientationFromAccelerometer();
@@ -57,7 +80,7 @@ private:
Common::Vec3f derivative_error;
// Quaternion containing the device orientation
- Common::Quaternion<f32> quat{{0.0f, 0.0f, -1.0f}, 0.0f};
+ Common::Quaternion<f32> quat;
// Number of full rotations in each axis
Common::Vec3f rotations;
@@ -68,12 +91,15 @@ private:
// Gyroscope vector measurement in radians/s.
Common::Vec3f gyro;
- // Vector to be substracted from gyro measurements
+ // Vector to be subtracted from gyro measurements
Common::Vec3f gyro_bias;
// Minimum gyro amplitude to detect if the device is moving
f32 gyro_threshold = 0.0f;
+ // Multiplies gyro_threshold by this value
+ f32 user_gyro_threshold = 0.0f;
+
// Number of invalid sequential data
u32 reset_counter = 0;
@@ -82,6 +108,12 @@ private:
// Use accelerometer values to calculate position
bool only_accelerometer = true;
+
+ // When enabled it will aggressively adjust for gyro drift
+ bool calibration_mode = false;
+
+ // Used to auto disable calibration mode
+ std::size_t calibration_counter = 0;
};
} // namespace Core::HID
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h
deleted file mode 100644
index a86bec252..000000000
--- a/src/core/hle/ipc_helpers.h
+++ /dev/null
@@ -1,499 +0,0 @@
-// SPDX-FileCopyrightText: 2016 Citra Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <cstring>
-#include <memory>
-#include <type_traits>
-#include <utility>
-#include "common/assert.h"
-#include "common/common_types.h"
-#include "core/hle/ipc.h"
-#include "core/hle/kernel/hle_ipc.h"
-#include "core/hle/kernel/k_process.h"
-#include "core/hle/kernel/k_resource_limit.h"
-#include "core/hle/kernel/k_session.h"
-#include "core/hle/result.h"
-
-namespace IPC {
-
-constexpr Result ERR_REMOTE_PROCESS_DEAD{ErrorModule::HIPC, 301};
-
-class RequestHelperBase {
-protected:
- Kernel::HLERequestContext* context = nullptr;
- u32* cmdbuf;
- u32 index = 0;
-
-public:
- explicit RequestHelperBase(u32* command_buffer) : cmdbuf(command_buffer) {}
-
- explicit RequestHelperBase(Kernel::HLERequestContext& ctx)
- : context(&ctx), cmdbuf(ctx.CommandBuffer()) {}
-
- void Skip(u32 size_in_words, bool set_to_null) {
- if (set_to_null) {
- memset(cmdbuf + index, 0, size_in_words * sizeof(u32));
- }
- index += size_in_words;
- }
-
- /**
- * Aligns the current position forward to a 16-byte boundary, padding with zeros.
- */
- void AlignWithPadding() {
- if (index & 3) {
- Skip(static_cast<u32>(4 - (index & 3)), true);
- }
- }
-
- u32 GetCurrentOffset() const {
- return index;
- }
-
- void SetCurrentOffset(u32 offset) {
- index = offset;
- }
-};
-
-class ResponseBuilder : public RequestHelperBase {
-public:
- /// Flags used for customizing the behavior of ResponseBuilder
- enum class Flags : u32 {
- None = 0,
- /// Uses move handles to move objects in the response, even when in a domain. This is
- /// required when PushMoveObjects is used.
- AlwaysMoveHandles = 1,
- };
-
- explicit ResponseBuilder(Kernel::HLERequestContext& ctx, u32 normal_params_size_,
- u32 num_handles_to_copy_ = 0, u32 num_objects_to_move_ = 0,
- Flags flags = Flags::None)
- : RequestHelperBase(ctx), normal_params_size(normal_params_size_),
- num_handles_to_copy(num_handles_to_copy_),
- num_objects_to_move(num_objects_to_move_), kernel{ctx.kernel} {
-
- memset(cmdbuf, 0, sizeof(u32) * IPC::COMMAND_BUFFER_LENGTH);
-
- IPC::CommandHeader header{};
-
- // The entire size of the raw data section in u32 units, including the 16 bytes of mandatory
- // padding.
- u32 raw_data_size = ctx.write_size =
- ctx.IsTipc() ? normal_params_size - 1 : normal_params_size;
- u32 num_handles_to_move{};
- u32 num_domain_objects{};
- const bool always_move_handles{
- (static_cast<u32>(flags) & static_cast<u32>(Flags::AlwaysMoveHandles)) != 0};
- if (!ctx.GetManager()->IsDomain() || always_move_handles) {
- num_handles_to_move = num_objects_to_move;
- } else {
- num_domain_objects = num_objects_to_move;
- }
-
- if (ctx.GetManager()->IsDomain()) {
- raw_data_size +=
- static_cast<u32>(sizeof(DomainMessageHeader) / sizeof(u32) + num_domain_objects);
- ctx.write_size += num_domain_objects;
- }
-
- if (ctx.IsTipc()) {
- header.type.Assign(ctx.GetCommandType());
- } else {
- raw_data_size += static_cast<u32>(sizeof(IPC::DataPayloadHeader) / sizeof(u32) + 4 +
- normal_params_size);
- }
-
- header.data_size.Assign(raw_data_size);
- if (num_handles_to_copy || num_handles_to_move) {
- header.enable_handle_descriptor.Assign(1);
- }
- PushRaw(header);
-
- if (header.enable_handle_descriptor) {
- IPC::HandleDescriptorHeader handle_descriptor_header{};
- handle_descriptor_header.num_handles_to_copy.Assign(num_handles_to_copy_);
- handle_descriptor_header.num_handles_to_move.Assign(num_handles_to_move);
- PushRaw(handle_descriptor_header);
-
- ctx.handles_offset = index;
-
- Skip(num_handles_to_copy + num_handles_to_move, true);
- }
-
- if (!ctx.IsTipc()) {
- AlignWithPadding();
-
- if (ctx.GetManager()->IsDomain() && ctx.HasDomainMessageHeader()) {
- IPC::DomainMessageHeader domain_header{};
- domain_header.num_objects = num_domain_objects;
- PushRaw(domain_header);
- }
-
- IPC::DataPayloadHeader data_payload_header{};
- data_payload_header.magic = Common::MakeMagic('S', 'F', 'C', 'O');
- PushRaw(data_payload_header);
- }
-
- data_payload_index = index;
-
- ctx.data_payload_offset = index;
- ctx.write_size += index;
- ctx.domain_offset = static_cast<u32>(index + raw_data_size / sizeof(u32));
- }
-
- template <class T>
- void PushIpcInterface(std::shared_ptr<T> iface) {
- if (context->GetManager()->IsDomain()) {
- context->AddDomainObject(std::move(iface));
- } else {
- kernel.CurrentProcess()->GetResourceLimit()->Reserve(
- Kernel::LimitableResource::SessionCountMax, 1);
-
- auto* session = Kernel::KSession::Create(kernel);
- session->Initialize(nullptr, iface->GetServiceName());
- iface->RegisterSession(&session->GetServerSession(),
- std::make_shared<Kernel::SessionRequestManager>(kernel));
-
- context->AddMoveObject(&session->GetClientSession());
- }
- }
-
- template <class T, class... Args>
- void PushIpcInterface(Args&&... args) {
- PushIpcInterface<T>(std::make_shared<T>(std::forward<Args>(args)...));
- }
-
- void PushImpl(s8 value);
- void PushImpl(s16 value);
- void PushImpl(s32 value);
- void PushImpl(s64 value);
- void PushImpl(u8 value);
- void PushImpl(u16 value);
- void PushImpl(u32 value);
- void PushImpl(u64 value);
- void PushImpl(float value);
- void PushImpl(double value);
- void PushImpl(bool value);
- void PushImpl(Result value);
-
- template <typename T>
- void Push(T value) {
- return PushImpl(value);
- }
-
- template <typename First, typename... Other>
- void Push(const First& first_value, const Other&... other_values);
-
- /**
- * Helper function for pushing strongly-typed enumeration values.
- *
- * @tparam Enum The enumeration type to be pushed
- *
- * @param value The value to push.
- *
- * @note The underlying size of the enumeration type is the size of the
- * data that gets pushed. e.g. "enum class SomeEnum : u16" will
- * push a u16-sized amount of data.
- */
- template <typename Enum>
- void PushEnum(Enum value) {
- static_assert(std::is_enum_v<Enum>, "T must be an enum type within a PushEnum call.");
- static_assert(!std::is_convertible_v<Enum, int>,
- "enum type in PushEnum must be a strongly typed enum.");
- Push(static_cast<std::underlying_type_t<Enum>>(value));
- }
-
- /**
- * @brief Copies the content of the given trivially copyable class to the buffer as a normal
- * param
- * @note: The input class must be correctly packed/padded to fit hardware layout.
- */
- template <typename T>
- void PushRaw(const T& value);
-
- template <typename... O>
- void PushMoveObjects(O*... pointers);
-
- template <typename... O>
- void PushMoveObjects(O&... pointers);
-
- template <typename... O>
- void PushCopyObjects(O*... pointers);
-
- template <typename... O>
- void PushCopyObjects(O&... pointers);
-
-private:
- u32 normal_params_size{};
- u32 num_handles_to_copy{};
- u32 num_objects_to_move{}; ///< Domain objects or move handles, context dependent
- u32 data_payload_index{};
- Kernel::KernelCore& kernel;
-};
-
-/// Push ///
-
-inline void ResponseBuilder::PushImpl(s32 value) {
- cmdbuf[index++] = value;
-}
-
-inline void ResponseBuilder::PushImpl(u32 value) {
- cmdbuf[index++] = value;
-}
-
-template <typename T>
-void ResponseBuilder::PushRaw(const T& value) {
- static_assert(std::is_trivially_copyable_v<T>,
- "It's undefined behavior to use memcpy with non-trivially copyable objects");
- std::memcpy(cmdbuf + index, &value, sizeof(T));
- index += (sizeof(T) + 3) / 4; // round up to word length
-}
-
-inline void ResponseBuilder::PushImpl(Result value) {
- // Result codes are actually 64-bit in the IPC buffer, but only the high part is discarded.
- Push(value.raw);
- Push<u32>(0);
-}
-
-inline void ResponseBuilder::PushImpl(s8 value) {
- PushRaw(value);
-}
-
-inline void ResponseBuilder::PushImpl(s16 value) {
- PushRaw(value);
-}
-
-inline void ResponseBuilder::PushImpl(s64 value) {
- PushImpl(static_cast<u32>(value));
- PushImpl(static_cast<u32>(value >> 32));
-}
-
-inline void ResponseBuilder::PushImpl(u8 value) {
- PushRaw(value);
-}
-
-inline void ResponseBuilder::PushImpl(u16 value) {
- PushRaw(value);
-}
-
-inline void ResponseBuilder::PushImpl(u64 value) {
- PushImpl(static_cast<u32>(value));
- PushImpl(static_cast<u32>(value >> 32));
-}
-
-inline void ResponseBuilder::PushImpl(float value) {
- u32 integral;
- std::memcpy(&integral, &value, sizeof(u32));
- PushImpl(integral);
-}
-
-inline void ResponseBuilder::PushImpl(double value) {
- u64 integral;
- std::memcpy(&integral, &value, sizeof(u64));
- PushImpl(integral);
-}
-
-inline void ResponseBuilder::PushImpl(bool value) {
- PushImpl(static_cast<u8>(value));
-}
-
-template <typename First, typename... Other>
-void ResponseBuilder::Push(const First& first_value, const Other&... other_values) {
- Push(first_value);
- Push(other_values...);
-}
-
-template <typename... O>
-inline void ResponseBuilder::PushCopyObjects(O*... pointers) {
- auto objects = {pointers...};
- for (auto& object : objects) {
- context->AddCopyObject(object);
- }
-}
-
-template <typename... O>
-inline void ResponseBuilder::PushCopyObjects(O&... pointers) {
- auto objects = {&pointers...};
- for (auto& object : objects) {
- context->AddCopyObject(object);
- }
-}
-
-template <typename... O>
-inline void ResponseBuilder::PushMoveObjects(O*... pointers) {
- auto objects = {pointers...};
- for (auto& object : objects) {
- context->AddMoveObject(object);
- }
-}
-
-template <typename... O>
-inline void ResponseBuilder::PushMoveObjects(O&... pointers) {
- auto objects = {&pointers...};
- for (auto& object : objects) {
- context->AddMoveObject(object);
- }
-}
-
-class RequestParser : public RequestHelperBase {
-public:
- explicit RequestParser(u32* command_buffer) : RequestHelperBase(command_buffer) {}
-
- explicit RequestParser(Kernel::HLERequestContext& ctx) : RequestHelperBase(ctx) {
- // TIPC does not have data payload offset
- if (!ctx.IsTipc()) {
- ASSERT_MSG(ctx.GetDataPayloadOffset(), "context is incomplete");
- Skip(ctx.GetDataPayloadOffset(), false);
- }
-
- // Skip the u64 command id, it's already stored in the context
- static constexpr u32 CommandIdSize = 2;
- Skip(CommandIdSize, false);
- }
-
- template <typename T>
- T Pop();
-
- template <typename T>
- void Pop(T& value);
-
- template <typename First, typename... Other>
- void Pop(First& first_value, Other&... other_values);
-
- template <typename T>
- T PopEnum() {
- static_assert(std::is_enum_v<T>, "T must be an enum type within a PopEnum call.");
- static_assert(!std::is_convertible_v<T, int>,
- "enum type in PopEnum must be a strongly typed enum.");
- return static_cast<T>(Pop<std::underlying_type_t<T>>());
- }
-
- /**
- * @brief Reads the next normal parameters as a struct, by copying it
- * @note: The output class must be correctly packed/padded to fit hardware layout.
- */
- template <typename T>
- void PopRaw(T& value);
-
- /**
- * @brief Reads the next normal parameters as a struct, by copying it into a new value
- * @note: The output class must be correctly packed/padded to fit hardware layout.
- */
- template <typename T>
- T PopRaw();
-
- template <class T>
- std::weak_ptr<T> PopIpcInterface() {
- ASSERT(context->GetManager()->IsDomain());
- ASSERT(context->GetDomainMessageHeader().input_object_count > 0);
- return context->GetDomainHandler<T>(Pop<u32>() - 1);
- }
-};
-
-/// Pop ///
-
-template <>
-inline u32 RequestParser::Pop() {
- return cmdbuf[index++];
-}
-
-template <>
-inline s32 RequestParser::Pop() {
- return static_cast<s32>(Pop<u32>());
-}
-
-// Ignore the -Wclass-memaccess warning on memcpy for non-trivially default constructible objects.
-#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wclass-memaccess"
-#endif
-template <typename T>
-void RequestParser::PopRaw(T& value) {
- static_assert(std::is_trivially_copyable_v<T>,
- "It's undefined behavior to use memcpy with non-trivially copyable objects");
- std::memcpy(&value, cmdbuf + index, sizeof(T));
- index += (sizeof(T) + 3) / 4; // round up to word length
-}
-#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
-#pragma GCC diagnostic pop
-#endif
-
-template <typename T>
-T RequestParser::PopRaw() {
- T value;
- PopRaw(value);
- return value;
-}
-
-template <>
-inline u8 RequestParser::Pop() {
- return PopRaw<u8>();
-}
-
-template <>
-inline u16 RequestParser::Pop() {
- return PopRaw<u16>();
-}
-
-template <>
-inline u64 RequestParser::Pop() {
- const u64 lsw = Pop<u32>();
- const u64 msw = Pop<u32>();
- return msw << 32 | lsw;
-}
-
-template <>
-inline s8 RequestParser::Pop() {
- return static_cast<s8>(Pop<u8>());
-}
-
-template <>
-inline s16 RequestParser::Pop() {
- return static_cast<s16>(Pop<u16>());
-}
-
-template <>
-inline s64 RequestParser::Pop() {
- return static_cast<s64>(Pop<u64>());
-}
-
-template <>
-inline float RequestParser::Pop() {
- const u32 value = Pop<u32>();
- float real;
- std::memcpy(&real, &value, sizeof(real));
- return real;
-}
-
-template <>
-inline double RequestParser::Pop() {
- const u64 value = Pop<u64>();
- double real;
- std::memcpy(&real, &value, sizeof(real));
- return real;
-}
-
-template <>
-inline bool RequestParser::Pop() {
- return Pop<u8>() != 0;
-}
-
-template <>
-inline Result RequestParser::Pop() {
- return Result{Pop<u32>()};
-}
-
-template <typename T>
-void RequestParser::Pop(T& value) {
- value = Pop<T>();
-}
-
-template <typename First, typename... Other>
-void RequestParser::Pop(First& first_value, Other&... other_values) {
- first_value = Pop<First>();
- Pop(other_values...);
-}
-
-} // namespace IPC
diff --git a/src/core/hle/kernel/board/nintendo/nx/k_memory_layout.cpp b/src/core/hle/kernel/board/nintendo/nx/k_memory_layout.cpp
new file mode 100644
index 000000000..24eb3f886
--- /dev/null
+++ b/src/core/hle/kernel/board/nintendo/nx/k_memory_layout.cpp
@@ -0,0 +1,203 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/alignment.h"
+#include "common/literals.h"
+#include "core/hle/kernel/k_memory_layout.h"
+#include "core/hle/kernel/k_memory_manager.h"
+#include "core/hle/kernel/k_system_control.h"
+#include "core/hle/kernel/k_trace.h"
+
+namespace Kernel {
+
+namespace {
+
+using namespace Common::Literals;
+
+constexpr size_t CarveoutAlignment = 0x20000;
+constexpr size_t CarveoutSizeMax = (512_MiB) - CarveoutAlignment;
+
+bool SetupPowerManagementControllerMemoryRegion(KMemoryLayout& memory_layout) {
+ // Above firmware 2.0.0, the PMC is not mappable.
+ return memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x7000E000, 0x400, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap) &&
+ memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x7000E400, 0xC00,
+ KMemoryRegionType_PowerManagementController | KMemoryRegionAttr_NoUserMap);
+}
+
+void InsertPoolPartitionRegionIntoBothTrees(KMemoryLayout& memory_layout, size_t start, size_t size,
+ KMemoryRegionType phys_type,
+ KMemoryRegionType virt_type, u32& cur_attr) {
+ const u32 attr = cur_attr++;
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(start, size,
+ static_cast<u32>(phys_type), attr));
+ const KMemoryRegion* phys = memory_layout.GetPhysicalMemoryRegionTree().FindByTypeAndAttribute(
+ static_cast<u32>(phys_type), attr);
+ ASSERT(phys != nullptr);
+ ASSERT(phys->GetEndAddress() != 0);
+ ASSERT(memory_layout.GetVirtualMemoryRegionTree().Insert(phys->GetPairAddress(), size,
+ static_cast<u32>(virt_type), attr));
+}
+
+} // namespace
+
+namespace Init {
+
+void SetupDevicePhysicalMemoryRegions(KMemoryLayout& memory_layout) {
+ ASSERT(SetupPowerManagementControllerMemoryRegion(memory_layout));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x70019000, 0x1000, KMemoryRegionType_MemoryController | KMemoryRegionAttr_NoUserMap));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x7001C000, 0x1000, KMemoryRegionType_MemoryController0 | KMemoryRegionAttr_NoUserMap));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x7001D000, 0x1000, KMemoryRegionType_MemoryController1 | KMemoryRegionAttr_NoUserMap));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x50040000, 0x1000, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x50041000, 0x1000,
+ KMemoryRegionType_InterruptDistributor | KMemoryRegionAttr_ShouldKernelMap));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x50042000, 0x1000,
+ KMemoryRegionType_InterruptCpuInterface | KMemoryRegionAttr_ShouldKernelMap));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x50043000, 0x1D000, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
+
+ // Map IRAM unconditionally, to support debug-logging-to-iram build config.
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x40000000, 0x40000, KMemoryRegionType_LegacyLpsIram | KMemoryRegionAttr_ShouldKernelMap));
+
+ // Above firmware 2.0.0, prevent mapping the bpmp exception vectors or the ipatch region.
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x6000F000, 0x1000, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ 0x6001DC00, 0x400, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
+}
+
+void SetupDramPhysicalMemoryRegions(KMemoryLayout& memory_layout) {
+ const size_t intended_memory_size = KSystemControl::Init::GetIntendedMemorySize();
+ const KPhysicalAddress physical_memory_base_address =
+ KSystemControl::Init::GetKernelPhysicalBaseAddress(DramPhysicalAddress);
+
+ // Insert blocks into the tree.
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ GetInteger(physical_memory_base_address), intended_memory_size, KMemoryRegionType_Dram));
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ GetInteger(physical_memory_base_address), ReservedEarlyDramSize,
+ KMemoryRegionType_DramReservedEarly));
+
+ // Insert the KTrace block at the end of Dram, if KTrace is enabled.
+ static_assert(!IsKTraceEnabled || KTraceBufferSize > 0);
+ if constexpr (IsKTraceEnabled) {
+ const KPhysicalAddress ktrace_buffer_phys_addr =
+ physical_memory_base_address + intended_memory_size - KTraceBufferSize;
+ ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
+ GetInteger(ktrace_buffer_phys_addr), KTraceBufferSize,
+ KMemoryRegionType_KernelTraceBuffer));
+ }
+}
+
+void SetupPoolPartitionMemoryRegions(KMemoryLayout& memory_layout) {
+ // Start by identifying the extents of the DRAM memory region.
+ const auto dram_extents = memory_layout.GetMainMemoryPhysicalExtents();
+ ASSERT(dram_extents.GetEndAddress() != 0);
+
+ // Determine the end of the pool region.
+ const u64 pool_end = dram_extents.GetEndAddress() - KTraceBufferSize;
+
+ // Find the start of the kernel DRAM region.
+ const KMemoryRegion* kernel_dram_region =
+ memory_layout.GetPhysicalMemoryRegionTree().FindFirstDerived(
+ KMemoryRegionType_DramKernelBase);
+ ASSERT(kernel_dram_region != nullptr);
+
+ const u64 kernel_dram_start = kernel_dram_region->GetAddress();
+ ASSERT(Common::IsAligned(kernel_dram_start, CarveoutAlignment));
+
+ // Find the start of the pool partitions region.
+ const KMemoryRegion* pool_partitions_region =
+ memory_layout.GetPhysicalMemoryRegionTree().FindByTypeAndAttribute(
+ KMemoryRegionType_DramPoolPartition, 0);
+ ASSERT(pool_partitions_region != nullptr);
+ const u64 pool_partitions_start = pool_partitions_region->GetAddress();
+
+ // Setup the pool partition layouts.
+ // On 5.0.0+, setup modern 4-pool-partition layout.
+
+ // Get Application and Applet pool sizes.
+ const size_t application_pool_size = KSystemControl::Init::GetApplicationPoolSize();
+ const size_t applet_pool_size = KSystemControl::Init::GetAppletPoolSize();
+ const size_t unsafe_system_pool_min_size =
+ KSystemControl::Init::GetMinimumNonSecureSystemPoolSize();
+
+ // Decide on starting addresses for our pools.
+ const u64 application_pool_start = pool_end - application_pool_size;
+ const u64 applet_pool_start = application_pool_start - applet_pool_size;
+ const u64 unsafe_system_pool_start = std::min(
+ kernel_dram_start + CarveoutSizeMax,
+ Common::AlignDown(applet_pool_start - unsafe_system_pool_min_size, CarveoutAlignment));
+ const size_t unsafe_system_pool_size = applet_pool_start - unsafe_system_pool_start;
+
+ // We want to arrange application pool depending on where the middle of dram is.
+ const u64 dram_midpoint = (dram_extents.GetAddress() + dram_extents.GetEndAddress()) / 2;
+ u32 cur_pool_attr = 0;
+ size_t total_overhead_size = 0;
+ if (dram_extents.GetEndAddress() <= dram_midpoint || dram_midpoint <= application_pool_start) {
+ InsertPoolPartitionRegionIntoBothTrees(
+ memory_layout, application_pool_start, application_pool_size,
+ KMemoryRegionType_DramApplicationPool, KMemoryRegionType_VirtualDramApplicationPool,
+ cur_pool_attr);
+ total_overhead_size +=
+ KMemoryManager::CalculateManagementOverheadSize(application_pool_size);
+ } else {
+ const size_t first_application_pool_size = dram_midpoint - application_pool_start;
+ const size_t second_application_pool_size =
+ application_pool_start + application_pool_size - dram_midpoint;
+ InsertPoolPartitionRegionIntoBothTrees(
+ memory_layout, application_pool_start, first_application_pool_size,
+ KMemoryRegionType_DramApplicationPool, KMemoryRegionType_VirtualDramApplicationPool,
+ cur_pool_attr);
+ InsertPoolPartitionRegionIntoBothTrees(
+ memory_layout, dram_midpoint, second_application_pool_size,
+ KMemoryRegionType_DramApplicationPool, KMemoryRegionType_VirtualDramApplicationPool,
+ cur_pool_attr);
+ total_overhead_size +=
+ KMemoryManager::CalculateManagementOverheadSize(first_application_pool_size);
+ total_overhead_size +=
+ KMemoryManager::CalculateManagementOverheadSize(second_application_pool_size);
+ }
+
+ // Insert the applet pool.
+ InsertPoolPartitionRegionIntoBothTrees(memory_layout, applet_pool_start, applet_pool_size,
+ KMemoryRegionType_DramAppletPool,
+ KMemoryRegionType_VirtualDramAppletPool, cur_pool_attr);
+ total_overhead_size += KMemoryManager::CalculateManagementOverheadSize(applet_pool_size);
+
+ // Insert the nonsecure system pool.
+ InsertPoolPartitionRegionIntoBothTrees(
+ memory_layout, unsafe_system_pool_start, unsafe_system_pool_size,
+ KMemoryRegionType_DramSystemNonSecurePool, KMemoryRegionType_VirtualDramSystemNonSecurePool,
+ cur_pool_attr);
+ total_overhead_size += KMemoryManager::CalculateManagementOverheadSize(unsafe_system_pool_size);
+
+ // Insert the pool management region.
+ total_overhead_size += KMemoryManager::CalculateManagementOverheadSize(
+ (unsafe_system_pool_start - pool_partitions_start) - total_overhead_size);
+ const u64 pool_management_start = unsafe_system_pool_start - total_overhead_size;
+ const size_t pool_management_size = total_overhead_size;
+ u32 pool_management_attr = 0;
+ InsertPoolPartitionRegionIntoBothTrees(
+ memory_layout, pool_management_start, pool_management_size,
+ KMemoryRegionType_DramPoolManagement, KMemoryRegionType_VirtualDramPoolManagement,
+ pool_management_attr);
+
+ // Insert the system pool.
+ const u64 system_pool_size = pool_management_start - pool_partitions_start;
+ InsertPoolPartitionRegionIntoBothTrees(memory_layout, pool_partitions_start, system_pool_size,
+ KMemoryRegionType_DramSystemPool,
+ KMemoryRegionType_VirtualDramSystemPool, cur_pool_attr);
+}
+
+} // namespace Init
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/board/nintendo/nx/k_memory_layout.h b/src/core/hle/kernel/board/nintendo/nx/k_memory_layout.h
index d02ee61c3..f8fee4f5b 100644
--- a/src/core/hle/kernel/board/nintendo/nx/k_memory_layout.h
+++ b/src/core/hle/kernel/board/nintendo/nx/k_memory_layout.h
@@ -3,10 +3,10 @@
#pragma once
-#include "common/common_types.h"
+#include "core/hle/kernel/k_typed_address.h"
namespace Kernel {
-constexpr inline PAddr MainMemoryAddress = 0x80000000;
+constexpr inline KPhysicalAddress MainMemoryAddress = 0x80000000;
} // namespace Kernel
diff --git a/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp b/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp
index c10b7bf30..49bdc671e 100644
--- a/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp
+++ b/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp
@@ -14,9 +14,12 @@ namespace Kernel::Board::Nintendo::Nx {
namespace impl {
-constexpr const std::size_t RequiredNonSecureSystemMemorySizeVi = 0x2238 * 4 * 1024;
-constexpr const std::size_t RequiredNonSecureSystemMemorySizeNvservices = 0x710 * 4 * 1024;
-constexpr const std::size_t RequiredNonSecureSystemMemorySizeMisc = 0x80 * 4 * 1024;
+using namespace Common::Literals;
+
+constexpr const std::size_t RequiredNonSecureSystemMemorySizeVi = 0x2280 * 4_KiB;
+constexpr const std::size_t RequiredNonSecureSystemMemorySizeViFatal = 0x200 * 4_KiB;
+constexpr const std::size_t RequiredNonSecureSystemMemorySizeNvservices = 0x704 * 4_KiB;
+constexpr const std::size_t RequiredNonSecureSystemMemorySizeMisc = 0x80 * 4_KiB;
} // namespace impl
@@ -24,17 +27,21 @@ constexpr const std::size_t RequiredNonSecureSystemMemorySize =
impl::RequiredNonSecureSystemMemorySizeVi + impl::RequiredNonSecureSystemMemorySizeNvservices +
impl::RequiredNonSecureSystemMemorySizeMisc;
+constexpr const std::size_t RequiredNonSecureSystemMemorySizeWithFatal =
+ RequiredNonSecureSystemMemorySize + impl::RequiredNonSecureSystemMemorySizeViFatal;
+
namespace {
using namespace Common::Literals;
u32 GetMemorySizeForInit() {
- return Settings::values.use_extended_memory_layout ? Smc::MemorySize_6GB : Smc::MemorySize_4GB;
+ return Settings::values.use_unsafe_extended_memory_layout ? Smc::MemorySize_8GB
+ : Smc::MemorySize_4GB;
}
Smc::MemoryArrangement GetMemoryArrangeForInit() {
- return Settings::values.use_extended_memory_layout ? Smc::MemoryArrangement_6GB
- : Smc::MemoryArrangement_4GB;
+ return Settings::values.use_unsafe_extended_memory_layout ? Smc::MemoryArrangement_8GB
+ : Smc::MemoryArrangement_4GB;
}
} // namespace
@@ -55,7 +62,7 @@ size_t KSystemControl::Init::GetIntendedMemorySize() {
}
}
-PAddr KSystemControl::Init::GetKernelPhysicalBaseAddress(u64 base_address) {
+KPhysicalAddress KSystemControl::Init::GetKernelPhysicalBaseAddress(KPhysicalAddress base_address) {
const size_t real_dram_size = KSystemControl::Init::GetRealMemorySize();
const size_t intended_dram_size = KSystemControl::Init::GetIntendedMemorySize();
if (intended_dram_size * 2 < real_dram_size) {
@@ -85,7 +92,8 @@ std::size_t KSystemControl::Init::GetApplicationPoolSize() {
case Smc::MemoryArrangement_6GBForAppletDev:
return 3285_MiB;
case Smc::MemoryArrangement_8GB:
- return 4916_MiB;
+ // Real kernel sets this to 4916_MiB. We are not debugging applets.
+ return 6547_MiB;
}
}();
@@ -109,7 +117,8 @@ size_t KSystemControl::Init::GetAppletPoolSize() {
case Smc::MemoryArrangement_6GBForAppletDev:
return 2193_MiB;
case Smc::MemoryArrangement_8GB:
- return 2193_MiB;
+ //! Real kernel sets this to 2193_MiB. We are not debugging applets.
+ return 562_MiB;
}
}();
@@ -120,10 +129,13 @@ size_t KSystemControl::Init::GetAppletPoolSize() {
size_t KSystemControl::Init::GetMinimumNonSecureSystemPoolSize() {
// Verify that our minimum is at least as large as Nintendo's.
- constexpr size_t MinimumSize = RequiredNonSecureSystemMemorySize;
- static_assert(MinimumSize >= 0x29C8000);
+ constexpr size_t MinimumSizeWithFatal = RequiredNonSecureSystemMemorySizeWithFatal;
+ static_assert(MinimumSizeWithFatal >= 0x2C04000);
+
+ constexpr size_t MinimumSizeWithoutFatal = RequiredNonSecureSystemMemorySize;
+ static_assert(MinimumSizeWithoutFatal >= 0x2A00000);
- return MinimumSize;
+ return MinimumSizeWithFatal;
}
namespace {
diff --git a/src/core/hle/kernel/board/nintendo/nx/k_system_control.h b/src/core/hle/kernel/board/nintendo/nx/k_system_control.h
index 4b717d091..b477e8193 100644
--- a/src/core/hle/kernel/board/nintendo/nx/k_system_control.h
+++ b/src/core/hle/kernel/board/nintendo/nx/k_system_control.h
@@ -3,7 +3,7 @@
#pragma once
-#include "common/common_types.h"
+#include "core/hle/kernel/k_typed_address.h"
namespace Kernel::Board::Nintendo::Nx {
@@ -18,7 +18,7 @@ public:
// Initialization.
static std::size_t GetRealMemorySize();
static std::size_t GetIntendedMemorySize();
- static PAddr GetKernelPhysicalBaseAddress(u64 base_address);
+ static KPhysicalAddress GetKernelPhysicalBaseAddress(KPhysicalAddress base_address);
static bool ShouldIncreaseThreadResourceLimit();
static std::size_t GetApplicationPoolSize();
static std::size_t GetAppletPoolSize();
diff --git a/src/core/hle/kernel/code_set.h b/src/core/hle/kernel/code_set.h
index 5220dbcb6..af1af2b78 100644
--- a/src/core/hle/kernel/code_set.h
+++ b/src/core/hle/kernel/code_set.h
@@ -5,7 +5,7 @@
#include <cstddef>
-#include "common/common_types.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/physical_memory.h"
namespace Kernel {
@@ -36,7 +36,7 @@ struct CodeSet final {
std::size_t offset = 0;
/// The address to map this segment to.
- VAddr addr = 0;
+ KProcessAddress addr = 0;
/// The size of this segment in bytes.
u32 size = 0;
@@ -82,7 +82,7 @@ struct CodeSet final {
std::array<Segment, 3> segments;
/// The entry point address for this code set.
- VAddr entrypoint = 0;
+ KProcessAddress entrypoint = 0;
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/global_scheduler_context.cpp b/src/core/hle/kernel/global_scheduler_context.cpp
index fd911a3a5..7b090ccb5 100644
--- a/src/core/hle/kernel/global_scheduler_context.cpp
+++ b/src/core/hle/kernel/global_scheduler_context.cpp
@@ -12,20 +12,19 @@
namespace Kernel {
-GlobalSchedulerContext::GlobalSchedulerContext(KernelCore& kernel_)
- : kernel{kernel_}, scheduler_lock{kernel_} {}
+GlobalSchedulerContext::GlobalSchedulerContext(KernelCore& kernel)
+ : m_kernel{kernel}, m_scheduler_lock{kernel} {}
GlobalSchedulerContext::~GlobalSchedulerContext() = default;
void GlobalSchedulerContext::AddThread(KThread* thread) {
- std::scoped_lock lock{global_list_guard};
- thread_list.push_back(thread);
+ std::scoped_lock lock{m_global_list_guard};
+ m_thread_list.push_back(thread);
}
void GlobalSchedulerContext::RemoveThread(KThread* thread) {
- std::scoped_lock lock{global_list_guard};
- thread_list.erase(std::remove(thread_list.begin(), thread_list.end(), thread),
- thread_list.end());
+ std::scoped_lock lock{m_global_list_guard};
+ std::erase(m_thread_list, thread);
}
void GlobalSchedulerContext::PreemptThreads() {
@@ -38,37 +37,37 @@ void GlobalSchedulerContext::PreemptThreads() {
63,
};
- ASSERT(IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
const u32 priority = preemption_priorities[core_id];
- KScheduler::RotateScheduledQueue(kernel, core_id, priority);
+ KScheduler::RotateScheduledQueue(m_kernel, core_id, priority);
}
}
bool GlobalSchedulerContext::IsLocked() const {
- return scheduler_lock.IsLockedByCurrentThread();
+ return m_scheduler_lock.IsLockedByCurrentThread();
}
void GlobalSchedulerContext::RegisterDummyThreadForWakeup(KThread* thread) {
- ASSERT(IsLocked());
+ ASSERT(this->IsLocked());
- woken_dummy_threads.insert(thread);
+ m_woken_dummy_threads.insert(thread);
}
void GlobalSchedulerContext::UnregisterDummyThreadForWakeup(KThread* thread) {
- ASSERT(IsLocked());
+ ASSERT(this->IsLocked());
- woken_dummy_threads.erase(thread);
+ m_woken_dummy_threads.erase(thread);
}
void GlobalSchedulerContext::WakeupWaitingDummyThreads() {
- ASSERT(IsLocked());
+ ASSERT(this->IsLocked());
- for (auto* thread : woken_dummy_threads) {
+ for (auto* thread : m_woken_dummy_threads) {
thread->DummyThreadEndWait();
}
- woken_dummy_threads.clear();
+ m_woken_dummy_threads.clear();
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/global_scheduler_context.h b/src/core/hle/kernel/global_scheduler_context.h
index 220ed6192..c48e8cd12 100644
--- a/src/core/hle/kernel/global_scheduler_context.h
+++ b/src/core/hle/kernel/global_scheduler_context.h
@@ -33,7 +33,7 @@ class GlobalSchedulerContext final {
public:
using LockType = KAbstractSchedulerLock<KScheduler>;
- explicit GlobalSchedulerContext(KernelCore& kernel_);
+ explicit GlobalSchedulerContext(KernelCore& kernel);
~GlobalSchedulerContext();
/// Adds a new thread to the scheduler
@@ -43,8 +43,9 @@ public:
void RemoveThread(KThread* thread);
/// Returns a list of all threads managed by the scheduler
- [[nodiscard]] const std::vector<KThread*>& GetThreadList() const {
- return thread_list;
+ /// This is only safe to iterate while holding the scheduler lock
+ const std::vector<KThread*>& GetThreadList() const {
+ return m_thread_list;
}
/**
@@ -63,30 +64,26 @@ public:
void RegisterDummyThreadForWakeup(KThread* thread);
void WakeupWaitingDummyThreads();
- [[nodiscard]] LockType& SchedulerLock() {
- return scheduler_lock;
- }
-
- [[nodiscard]] const LockType& SchedulerLock() const {
- return scheduler_lock;
+ LockType& SchedulerLock() {
+ return m_scheduler_lock;
}
private:
friend class KScopedSchedulerLock;
friend class KScopedSchedulerLockAndSleep;
- KernelCore& kernel;
+ KernelCore& m_kernel;
- std::atomic_bool scheduler_update_needed{};
- KSchedulerPriorityQueue priority_queue;
- LockType scheduler_lock;
+ std::atomic_bool m_scheduler_update_needed{};
+ KSchedulerPriorityQueue m_priority_queue;
+ LockType m_scheduler_lock;
/// Lists dummy threads pending wakeup on lock release
- std::set<KThread*> woken_dummy_threads;
+ std::set<KThread*> m_woken_dummy_threads;
/// Lists all thread ids that aren't deleted/etc.
- std::vector<KThread*> thread_list;
- std::mutex global_list_guard;
+ std::vector<KThread*> m_thread_list;
+ std::mutex m_global_list_guard;
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
deleted file mode 100644
index 738b6d0f1..000000000
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ /dev/null
@@ -1,521 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <algorithm>
-#include <array>
-#include <sstream>
-
-#include <boost/range/algorithm_ext/erase.hpp>
-
-#include "common/assert.h"
-#include "common/common_funcs.h"
-#include "common/common_types.h"
-#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/hle_ipc.h"
-#include "core/hle/kernel/k_auto_object.h"
-#include "core/hle/kernel/k_handle_table.h"
-#include "core/hle/kernel/k_process.h"
-#include "core/hle/kernel/k_server_port.h"
-#include "core/hle/kernel/k_server_session.h"
-#include "core/hle/kernel/k_thread.h"
-#include "core/hle/kernel/kernel.h"
-#include "core/hle/kernel/service_thread.h"
-#include "core/memory.h"
-
-namespace Kernel {
-
-SessionRequestHandler::SessionRequestHandler(KernelCore& kernel_, const char* service_name_,
- ServiceThreadType thread_type)
- : kernel{kernel_}, service_thread{thread_type == ServiceThreadType::CreateNew
- ? kernel.CreateServiceThread(service_name_)
- : kernel.GetDefaultServiceThread()} {}
-
-SessionRequestHandler::~SessionRequestHandler() {
- kernel.ReleaseServiceThread(service_thread);
-}
-
-void SessionRequestHandler::AcceptSession(KServerPort* server_port) {
- auto* server_session = server_port->AcceptSession();
- ASSERT(server_session != nullptr);
-
- RegisterSession(server_session, std::make_shared<SessionRequestManager>(kernel));
-}
-
-void SessionRequestHandler::RegisterSession(KServerSession* server_session,
- std::shared_ptr<SessionRequestManager> manager) {
- manager->SetSessionHandler(shared_from_this());
- service_thread.RegisterServerSession(server_session, manager);
- server_session->Close();
-}
-
-SessionRequestManager::SessionRequestManager(KernelCore& kernel_) : kernel{kernel_} {}
-
-SessionRequestManager::~SessionRequestManager() = default;
-
-bool SessionRequestManager::HasSessionRequestHandler(const HLERequestContext& context) const {
- if (IsDomain() && context.HasDomainMessageHeader()) {
- const auto& message_header = context.GetDomainMessageHeader();
- const auto object_id = message_header.object_id;
-
- if (object_id > DomainHandlerCount()) {
- LOG_CRITICAL(IPC, "object_id {} is too big!", object_id);
- return false;
- }
- return !DomainHandler(object_id - 1).expired();
- } else {
- return session_handler != nullptr;
- }
-}
-
-Result SessionRequestManager::CompleteSyncRequest(KServerSession* server_session,
- HLERequestContext& context) {
- Result result = ResultSuccess;
-
- // If the session has been converted to a domain, handle the domain request
- if (this->HasSessionRequestHandler(context)) {
- if (IsDomain() && context.HasDomainMessageHeader()) {
- result = HandleDomainSyncRequest(server_session, context);
- // If there is no domain header, the regular session handler is used
- } else if (this->HasSessionHandler()) {
- // If this manager has an associated HLE handler, forward the request to it.
- result = this->SessionHandler().HandleSyncRequest(*server_session, context);
- }
- } else {
- ASSERT_MSG(false, "Session handler is invalid, stubbing response!");
- IPC::ResponseBuilder rb(context, 2);
- rb.Push(ResultSuccess);
- }
-
- if (convert_to_domain) {
- ASSERT_MSG(!IsDomain(), "ServerSession is already a domain instance.");
- this->ConvertToDomain();
- convert_to_domain = false;
- }
-
- return result;
-}
-
-Result SessionRequestManager::HandleDomainSyncRequest(KServerSession* server_session,
- HLERequestContext& context) {
- if (!context.HasDomainMessageHeader()) {
- return ResultSuccess;
- }
-
- // Set domain handlers in HLE context, used for domain objects (IPC interfaces) as inputs
- ASSERT(context.GetManager().get() == this);
-
- // If there is a DomainMessageHeader, then this is CommandType "Request"
- const auto& domain_message_header = context.GetDomainMessageHeader();
- const u32 object_id{domain_message_header.object_id};
- switch (domain_message_header.command) {
- case IPC::DomainMessageHeader::CommandType::SendMessage:
- if (object_id > this->DomainHandlerCount()) {
- LOG_CRITICAL(IPC,
- "object_id {} is too big! This probably means a recent service call "
- "needed to return a new interface!",
- object_id);
- ASSERT(false);
- return ResultSuccess; // Ignore error if asserts are off
- }
- if (auto strong_ptr = this->DomainHandler(object_id - 1).lock()) {
- return strong_ptr->HandleSyncRequest(*server_session, context);
- } else {
- ASSERT(false);
- return ResultSuccess;
- }
-
- case IPC::DomainMessageHeader::CommandType::CloseVirtualHandle: {
- LOG_DEBUG(IPC, "CloseVirtualHandle, object_id=0x{:08X}", object_id);
-
- this->CloseDomainHandler(object_id - 1);
-
- IPC::ResponseBuilder rb{context, 2};
- rb.Push(ResultSuccess);
- return ResultSuccess;
- }
- }
-
- LOG_CRITICAL(IPC, "Unknown domain command={}", domain_message_header.command.Value());
- ASSERT(false);
- return ResultSuccess;
-}
-
-HLERequestContext::HLERequestContext(KernelCore& kernel_, Core::Memory::Memory& memory_,
- KServerSession* server_session_, KThread* thread_)
- : server_session(server_session_), thread(thread_), kernel{kernel_}, memory{memory_} {
- cmd_buf[0] = 0;
-}
-
-HLERequestContext::~HLERequestContext() = default;
-
-void HLERequestContext::ParseCommandBuffer(const KHandleTable& handle_table, u32_le* src_cmdbuf,
- bool incoming) {
- IPC::RequestParser rp(src_cmdbuf);
- command_header = rp.PopRaw<IPC::CommandHeader>();
-
- if (command_header->IsCloseCommand()) {
- // Close does not populate the rest of the IPC header
- return;
- }
-
- // If handle descriptor is present, add size of it
- if (command_header->enable_handle_descriptor) {
- handle_descriptor_header = rp.PopRaw<IPC::HandleDescriptorHeader>();
- if (handle_descriptor_header->send_current_pid) {
- pid = rp.Pop<u64>();
- }
- if (incoming) {
- // Populate the object lists with the data in the IPC request.
- incoming_copy_handles.reserve(handle_descriptor_header->num_handles_to_copy);
- incoming_move_handles.reserve(handle_descriptor_header->num_handles_to_move);
-
- for (u32 handle = 0; handle < handle_descriptor_header->num_handles_to_copy; ++handle) {
- incoming_copy_handles.push_back(rp.Pop<Handle>());
- }
- for (u32 handle = 0; handle < handle_descriptor_header->num_handles_to_move; ++handle) {
- incoming_move_handles.push_back(rp.Pop<Handle>());
- }
- } else {
- // For responses we just ignore the handles, they're empty and will be populated when
- // translating the response.
- rp.Skip(handle_descriptor_header->num_handles_to_copy, false);
- rp.Skip(handle_descriptor_header->num_handles_to_move, false);
- }
- }
-
- buffer_x_desciptors.reserve(command_header->num_buf_x_descriptors);
- buffer_a_desciptors.reserve(command_header->num_buf_a_descriptors);
- buffer_b_desciptors.reserve(command_header->num_buf_b_descriptors);
- buffer_w_desciptors.reserve(command_header->num_buf_w_descriptors);
-
- for (u32 i = 0; i < command_header->num_buf_x_descriptors; ++i) {
- buffer_x_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>());
- }
- for (u32 i = 0; i < command_header->num_buf_a_descriptors; ++i) {
- buffer_a_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
- }
- for (u32 i = 0; i < command_header->num_buf_b_descriptors; ++i) {
- buffer_b_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
- }
- for (u32 i = 0; i < command_header->num_buf_w_descriptors; ++i) {
- buffer_w_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
- }
-
- const auto buffer_c_offset = rp.GetCurrentOffset() + command_header->data_size;
-
- if (!command_header->IsTipc()) {
- // Padding to align to 16 bytes
- rp.AlignWithPadding();
-
- if (GetManager()->IsDomain() &&
- ((command_header->type == IPC::CommandType::Request ||
- command_header->type == IPC::CommandType::RequestWithContext) ||
- !incoming)) {
- // If this is an incoming message, only CommandType "Request" has a domain header
- // All outgoing domain messages have the domain header, if only incoming has it
- if (incoming || domain_message_header) {
- domain_message_header = rp.PopRaw<IPC::DomainMessageHeader>();
- } else {
- if (GetManager()->IsDomain()) {
- LOG_WARNING(IPC, "Domain request has no DomainMessageHeader!");
- }
- }
- }
-
- data_payload_header = rp.PopRaw<IPC::DataPayloadHeader>();
-
- data_payload_offset = rp.GetCurrentOffset();
-
- if (domain_message_header &&
- domain_message_header->command ==
- IPC::DomainMessageHeader::CommandType::CloseVirtualHandle) {
- // CloseVirtualHandle command does not have SFC* or any data
- return;
- }
-
- if (incoming) {
- ASSERT(data_payload_header->magic == Common::MakeMagic('S', 'F', 'C', 'I'));
- } else {
- ASSERT(data_payload_header->magic == Common::MakeMagic('S', 'F', 'C', 'O'));
- }
- }
-
- rp.SetCurrentOffset(buffer_c_offset);
-
- // For Inline buffers, the response data is written directly to buffer_c_offset
- // and in this case we don't have any BufferDescriptorC on the request.
- if (command_header->buf_c_descriptor_flags >
- IPC::CommandHeader::BufferDescriptorCFlag::InlineDescriptor) {
- if (command_header->buf_c_descriptor_flags ==
- IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) {
- buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
- } else {
- u32 num_buf_c_descriptors =
- static_cast<u32>(command_header->buf_c_descriptor_flags.Value()) - 2;
-
- // This is used to detect possible underflows, in case something is broken
- // with the two ifs above and the flags value is == 0 || == 1.
- ASSERT(num_buf_c_descriptors < 14);
-
- for (u32 i = 0; i < num_buf_c_descriptors; ++i) {
- buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
- }
- }
- }
-
- rp.SetCurrentOffset(data_payload_offset);
-
- command = rp.Pop<u32_le>();
- rp.Skip(1, false); // The command is actually an u64, but we don't use the high part.
-}
-
-Result HLERequestContext::PopulateFromIncomingCommandBuffer(const KHandleTable& handle_table,
- u32_le* src_cmdbuf) {
- ParseCommandBuffer(handle_table, src_cmdbuf, true);
-
- if (command_header->IsCloseCommand()) {
- // Close does not populate the rest of the IPC header
- return ResultSuccess;
- }
-
- std::copy_n(src_cmdbuf, IPC::COMMAND_BUFFER_LENGTH, cmd_buf.begin());
-
- return ResultSuccess;
-}
-
-Result HLERequestContext::WriteToOutgoingCommandBuffer(KThread& requesting_thread) {
- auto current_offset = handles_offset;
- auto& owner_process = *requesting_thread.GetOwnerProcess();
- auto& handle_table = owner_process.GetHandleTable();
-
- for (auto& object : outgoing_copy_objects) {
- Handle handle{};
- if (object) {
- R_TRY(handle_table.Add(&handle, object));
- }
- cmd_buf[current_offset++] = handle;
- }
- for (auto& object : outgoing_move_objects) {
- Handle handle{};
- if (object) {
- R_TRY(handle_table.Add(&handle, object));
-
- // Close our reference to the object, as it is being moved to the caller.
- object->Close();
- }
- cmd_buf[current_offset++] = handle;
- }
-
- // Write the domain objects to the command buffer, these go after the raw untranslated data.
- // TODO(Subv): This completely ignores C buffers.
-
- if (GetManager()->IsDomain()) {
- current_offset = domain_offset - static_cast<u32>(outgoing_domain_objects.size());
- for (auto& object : outgoing_domain_objects) {
- GetManager()->AppendDomainHandler(std::move(object));
- cmd_buf[current_offset++] = static_cast<u32_le>(GetManager()->DomainHandlerCount());
- }
- }
-
- // Copy the translated command buffer back into the thread's command buffer area.
- memory.WriteBlock(owner_process, requesting_thread.GetTLSAddress(), cmd_buf.data(),
- write_size * sizeof(u32));
-
- return ResultSuccess;
-}
-
-std::vector<u8> HLERequestContext::ReadBuffer(std::size_t buffer_index) const {
- const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
- BufferDescriptorA()[buffer_index].Size()};
- if (is_buffer_a) {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorA().size() > buffer_index, { return {}; },
- "BufferDescriptorA invalid buffer_index {}", buffer_index);
- std::vector<u8> buffer(BufferDescriptorA()[buffer_index].Size());
- memory.ReadBlock(BufferDescriptorA()[buffer_index].Address(), buffer.data(), buffer.size());
- return buffer;
- } else {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorX().size() > buffer_index, { return {}; },
- "BufferDescriptorX invalid buffer_index {}", buffer_index);
- std::vector<u8> buffer(BufferDescriptorX()[buffer_index].Size());
- memory.ReadBlock(BufferDescriptorX()[buffer_index].Address(), buffer.data(), buffer.size());
- return buffer;
- }
-}
-
-std::size_t HLERequestContext::WriteBuffer(const void* buffer, std::size_t size,
- std::size_t buffer_index) const {
- if (size == 0) {
- LOG_WARNING(Core, "skip empty buffer write");
- return 0;
- }
-
- const bool is_buffer_b{BufferDescriptorB().size() > buffer_index &&
- BufferDescriptorB()[buffer_index].Size()};
- const std::size_t buffer_size{GetWriteBufferSize(buffer_index)};
- if (size > buffer_size) {
- LOG_CRITICAL(Core, "size ({:016X}) is greater than buffer_size ({:016X})", size,
- buffer_size);
- size = buffer_size; // TODO(bunnei): This needs to be HW tested
- }
-
- if (is_buffer_b) {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorB().size() > buffer_index &&
- BufferDescriptorB()[buffer_index].Size() >= size,
- { return 0; }, "BufferDescriptorB is invalid, index={}, size={}", buffer_index, size);
- WriteBufferB(buffer, size, buffer_index);
- } else {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorC().size() > buffer_index &&
- BufferDescriptorC()[buffer_index].Size() >= size,
- { return 0; }, "BufferDescriptorC is invalid, index={}, size={}", buffer_index, size);
- WriteBufferC(buffer, size, buffer_index);
- }
-
- return size;
-}
-
-std::size_t HLERequestContext::WriteBufferB(const void* buffer, std::size_t size,
- std::size_t buffer_index) const {
- if (buffer_index >= BufferDescriptorB().size() || size == 0) {
- return 0;
- }
-
- const auto buffer_size{BufferDescriptorB()[buffer_index].Size()};
- if (size > buffer_size) {
- LOG_CRITICAL(Core, "size ({:016X}) is greater than buffer_size ({:016X})", size,
- buffer_size);
- size = buffer_size; // TODO(bunnei): This needs to be HW tested
- }
-
- memory.WriteBlock(BufferDescriptorB()[buffer_index].Address(), buffer, size);
- return size;
-}
-
-std::size_t HLERequestContext::WriteBufferC(const void* buffer, std::size_t size,
- std::size_t buffer_index) const {
- if (buffer_index >= BufferDescriptorC().size() || size == 0) {
- return 0;
- }
-
- const auto buffer_size{BufferDescriptorC()[buffer_index].Size()};
- if (size > buffer_size) {
- LOG_CRITICAL(Core, "size ({:016X}) is greater than buffer_size ({:016X})", size,
- buffer_size);
- size = buffer_size; // TODO(bunnei): This needs to be HW tested
- }
-
- memory.WriteBlock(BufferDescriptorC()[buffer_index].Address(), buffer, size);
- return size;
-}
-
-std::size_t HLERequestContext::GetReadBufferSize(std::size_t buffer_index) const {
- const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
- BufferDescriptorA()[buffer_index].Size()};
- if (is_buffer_a) {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorA().size() > buffer_index, { return 0; },
- "BufferDescriptorA invalid buffer_index {}", buffer_index);
- return BufferDescriptorA()[buffer_index].Size();
- } else {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorX().size() > buffer_index, { return 0; },
- "BufferDescriptorX invalid buffer_index {}", buffer_index);
- return BufferDescriptorX()[buffer_index].Size();
- }
-}
-
-std::size_t HLERequestContext::GetWriteBufferSize(std::size_t buffer_index) const {
- const bool is_buffer_b{BufferDescriptorB().size() > buffer_index &&
- BufferDescriptorB()[buffer_index].Size()};
- if (is_buffer_b) {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorB().size() > buffer_index, { return 0; },
- "BufferDescriptorB invalid buffer_index {}", buffer_index);
- return BufferDescriptorB()[buffer_index].Size();
- } else {
- ASSERT_OR_EXECUTE_MSG(
- BufferDescriptorC().size() > buffer_index, { return 0; },
- "BufferDescriptorC invalid buffer_index {}", buffer_index);
- return BufferDescriptorC()[buffer_index].Size();
- }
- return 0;
-}
-
-bool HLERequestContext::CanReadBuffer(std::size_t buffer_index) const {
- const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
- BufferDescriptorA()[buffer_index].Size()};
-
- if (is_buffer_a) {
- return BufferDescriptorA().size() > buffer_index;
- } else {
- return BufferDescriptorX().size() > buffer_index;
- }
-}
-
-bool HLERequestContext::CanWriteBuffer(std::size_t buffer_index) const {
- const bool is_buffer_b{BufferDescriptorB().size() > buffer_index &&
- BufferDescriptorB()[buffer_index].Size()};
-
- if (is_buffer_b) {
- return BufferDescriptorB().size() > buffer_index;
- } else {
- return BufferDescriptorC().size() > buffer_index;
- }
-}
-
-std::string HLERequestContext::Description() const {
- if (!command_header) {
- return "No command header available";
- }
- std::ostringstream s;
- s << "IPC::CommandHeader: Type:" << static_cast<u32>(command_header->type.Value());
- s << ", X(Pointer):" << command_header->num_buf_x_descriptors;
- if (command_header->num_buf_x_descriptors) {
- s << '[';
- for (u64 i = 0; i < command_header->num_buf_x_descriptors; ++i) {
- s << "0x" << std::hex << BufferDescriptorX()[i].Size();
- if (i < command_header->num_buf_x_descriptors - 1)
- s << ", ";
- }
- s << ']';
- }
- s << ", A(Send):" << command_header->num_buf_a_descriptors;
- if (command_header->num_buf_a_descriptors) {
- s << '[';
- for (u64 i = 0; i < command_header->num_buf_a_descriptors; ++i) {
- s << "0x" << std::hex << BufferDescriptorA()[i].Size();
- if (i < command_header->num_buf_a_descriptors - 1)
- s << ", ";
- }
- s << ']';
- }
- s << ", B(Receive):" << command_header->num_buf_b_descriptors;
- if (command_header->num_buf_b_descriptors) {
- s << '[';
- for (u64 i = 0; i < command_header->num_buf_b_descriptors; ++i) {
- s << "0x" << std::hex << BufferDescriptorB()[i].Size();
- if (i < command_header->num_buf_b_descriptors - 1)
- s << ", ";
- }
- s << ']';
- }
- s << ", C(ReceiveList):" << BufferDescriptorC().size();
- if (!BufferDescriptorC().empty()) {
- s << '[';
- for (u64 i = 0; i < BufferDescriptorC().size(); ++i) {
- s << "0x" << std::hex << BufferDescriptorC()[i].Size();
- if (i < BufferDescriptorC().size() - 1)
- s << ", ";
- }
- s << ']';
- }
- s << ", data_size:" << command_header->data_size.Value();
-
- return s.str();
-}
-
-} // namespace Kernel
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
deleted file mode 100644
index e252b5f4b..000000000
--- a/src/core/hle/kernel/hle_ipc.h
+++ /dev/null
@@ -1,412 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <array>
-#include <functional>
-#include <memory>
-#include <optional>
-#include <string>
-#include <type_traits>
-#include <vector>
-
-#include "common/assert.h"
-#include "common/common_types.h"
-#include "common/concepts.h"
-#include "common/swap.h"
-#include "core/hle/ipc.h"
-#include "core/hle/kernel/svc_common.h"
-
-union Result;
-
-namespace Core::Memory {
-class Memory;
-}
-
-namespace IPC {
-class ResponseBuilder;
-}
-
-namespace Service {
-class ServiceFrameworkBase;
-}
-
-enum class ServiceThreadType {
- Default,
- CreateNew,
-};
-
-namespace Kernel {
-
-class Domain;
-class HLERequestContext;
-class KAutoObject;
-class KernelCore;
-class KEvent;
-class KHandleTable;
-class KServerPort;
-class KProcess;
-class KServerSession;
-class KThread;
-class KReadableEvent;
-class KSession;
-class SessionRequestManager;
-class ServiceThread;
-
-enum class ThreadWakeupReason;
-
-/**
- * Interface implemented by HLE Session handlers.
- * This can be provided to a ServerSession in order to hook into several relevant events
- * (such as a new connection or a SyncRequest) so they can be implemented in the emulator.
- */
-class SessionRequestHandler : public std::enable_shared_from_this<SessionRequestHandler> {
-public:
- SessionRequestHandler(KernelCore& kernel_, const char* service_name_,
- ServiceThreadType thread_type);
- virtual ~SessionRequestHandler();
-
- /**
- * Handles a sync request from the emulated application.
- * @param server_session The ServerSession that was triggered for this sync request,
- * it should be used to differentiate which client (As in ClientSession) we're answering to.
- * TODO(Subv): Use a wrapper structure to hold all the information relevant to
- * this request (ServerSession, Originator thread, Translated command buffer, etc).
- * @returns Result the result code of the translate operation.
- */
- virtual Result HandleSyncRequest(Kernel::KServerSession& session,
- Kernel::HLERequestContext& context) = 0;
-
- void AcceptSession(KServerPort* server_port);
- void RegisterSession(KServerSession* server_session,
- std::shared_ptr<SessionRequestManager> manager);
-
- ServiceThread& GetServiceThread() const {
- return service_thread;
- }
-
-protected:
- KernelCore& kernel;
- ServiceThread& service_thread;
-};
-
-using SessionRequestHandlerWeakPtr = std::weak_ptr<SessionRequestHandler>;
-using SessionRequestHandlerPtr = std::shared_ptr<SessionRequestHandler>;
-
-/**
- * Manages the underlying HLE requests for a session, and whether (or not) the session should be
- * treated as a domain. This is managed separately from server sessions, as this state is shared
- * when objects are cloned.
- */
-class SessionRequestManager final {
-public:
- explicit SessionRequestManager(KernelCore& kernel);
- ~SessionRequestManager();
-
- bool IsDomain() const {
- return is_domain;
- }
-
- void ConvertToDomain() {
- domain_handlers = {session_handler};
- is_domain = true;
- }
-
- void ConvertToDomainOnRequestEnd() {
- convert_to_domain = true;
- }
-
- std::size_t DomainHandlerCount() const {
- return domain_handlers.size();
- }
-
- bool HasSessionHandler() const {
- return session_handler != nullptr;
- }
-
- SessionRequestHandler& SessionHandler() {
- return *session_handler;
- }
-
- const SessionRequestHandler& SessionHandler() const {
- return *session_handler;
- }
-
- void CloseDomainHandler(std::size_t index) {
- if (index < DomainHandlerCount()) {
- domain_handlers[index] = nullptr;
- } else {
- ASSERT_MSG(false, "Unexpected handler index {}", index);
- }
- }
-
- SessionRequestHandlerWeakPtr DomainHandler(std::size_t index) const {
- ASSERT_MSG(index < DomainHandlerCount(), "Unexpected handler index {}", index);
- return domain_handlers.at(index);
- }
-
- void AppendDomainHandler(SessionRequestHandlerPtr&& handler) {
- domain_handlers.emplace_back(std::move(handler));
- }
-
- void SetSessionHandler(SessionRequestHandlerPtr&& handler) {
- session_handler = std::move(handler);
- }
-
- ServiceThread& GetServiceThread() const {
- return session_handler->GetServiceThread();
- }
-
- bool HasSessionRequestHandler(const HLERequestContext& context) const;
-
- Result HandleDomainSyncRequest(KServerSession* server_session, HLERequestContext& context);
- Result CompleteSyncRequest(KServerSession* server_session, HLERequestContext& context);
-
-private:
- bool convert_to_domain{};
- bool is_domain{};
- SessionRequestHandlerPtr session_handler;
- std::vector<SessionRequestHandlerPtr> domain_handlers;
-
-private:
- KernelCore& kernel;
-};
-
-/**
- * Class containing information about an in-flight IPC request being handled by an HLE service
- * implementation. Services should avoid using old global APIs (e.g. Kernel::GetCommandBuffer()) and
- * when possible use the APIs in this class to service the request.
- *
- * HLE handle protocol
- * ===================
- *
- * To avoid needing HLE services to keep a separate handle table, or having to directly modify the
- * requester's table, a tweaked protocol is used to receive and send handles in requests. The kernel
- * will decode the incoming handles into object pointers and insert a id in the buffer where the
- * handle would normally be. The service then calls GetIncomingHandle() with that id to get the
- * pointer to the object. Similarly, instead of inserting a handle into the command buffer, the
- * service calls AddOutgoingHandle() and stores the returned id where the handle would normally go.
- *
- * The end result is similar to just giving services their own real handle tables, but since these
- * ids are local to a specific context, it avoids requiring services to manage handles for objects
- * across multiple calls and ensuring that unneeded handles are cleaned up.
- */
-class HLERequestContext {
-public:
- explicit HLERequestContext(KernelCore& kernel, Core::Memory::Memory& memory,
- KServerSession* session, KThread* thread);
- ~HLERequestContext();
-
- /// Returns a pointer to the IPC command buffer for this request.
- [[nodiscard]] u32* CommandBuffer() {
- return cmd_buf.data();
- }
-
- /**
- * Returns the session through which this request was made. This can be used as a map key to
- * access per-client data on services.
- */
- [[nodiscard]] Kernel::KServerSession* Session() {
- return server_session;
- }
-
- /// Populates this context with data from the requesting process/thread.
- Result PopulateFromIncomingCommandBuffer(const KHandleTable& handle_table, u32_le* src_cmdbuf);
-
- /// Writes data from this context back to the requesting process/thread.
- Result WriteToOutgoingCommandBuffer(KThread& requesting_thread);
-
- [[nodiscard]] u32_le GetHipcCommand() const {
- return command;
- }
-
- [[nodiscard]] u32_le GetTipcCommand() const {
- return static_cast<u32_le>(command_header->type.Value()) -
- static_cast<u32_le>(IPC::CommandType::TIPC_CommandRegion);
- }
-
- [[nodiscard]] u32_le GetCommand() const {
- return command_header->IsTipc() ? GetTipcCommand() : GetHipcCommand();
- }
-
- [[nodiscard]] bool IsTipc() const {
- return command_header->IsTipc();
- }
-
- [[nodiscard]] IPC::CommandType GetCommandType() const {
- return command_header->type;
- }
-
- [[nodiscard]] u64 GetPID() const {
- return pid;
- }
-
- [[nodiscard]] u32 GetDataPayloadOffset() const {
- return data_payload_offset;
- }
-
- [[nodiscard]] const std::vector<IPC::BufferDescriptorX>& BufferDescriptorX() const {
- return buffer_x_desciptors;
- }
-
- [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorA() const {
- return buffer_a_desciptors;
- }
-
- [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorB() const {
- return buffer_b_desciptors;
- }
-
- [[nodiscard]] const std::vector<IPC::BufferDescriptorC>& BufferDescriptorC() const {
- return buffer_c_desciptors;
- }
-
- [[nodiscard]] const IPC::DomainMessageHeader& GetDomainMessageHeader() const {
- return domain_message_header.value();
- }
-
- [[nodiscard]] bool HasDomainMessageHeader() const {
- return domain_message_header.has_value();
- }
-
- /// Helper function to read a buffer using the appropriate buffer descriptor
- [[nodiscard]] std::vector<u8> ReadBuffer(std::size_t buffer_index = 0) const;
-
- /// Helper function to write a buffer using the appropriate buffer descriptor
- std::size_t WriteBuffer(const void* buffer, std::size_t size,
- std::size_t buffer_index = 0) const;
-
- /// Helper function to write buffer B
- std::size_t WriteBufferB(const void* buffer, std::size_t size,
- std::size_t buffer_index = 0) const;
-
- /// Helper function to write buffer C
- std::size_t WriteBufferC(const void* buffer, std::size_t size,
- std::size_t buffer_index = 0) const;
-
- /* Helper function to write a buffer using the appropriate buffer descriptor
- *
- * @tparam T an arbitrary container that satisfies the
- * ContiguousContainer concept in the C++ standard library or a trivially copyable type.
- *
- * @param data The container/data to write into a buffer.
- * @param buffer_index The buffer in particular to write to.
- */
- template <typename T, typename = std::enable_if_t<!std::is_pointer_v<T>>>
- std::size_t WriteBuffer(const T& data, std::size_t buffer_index = 0) const {
- if constexpr (Common::IsContiguousContainer<T>) {
- using ContiguousType = typename T::value_type;
- static_assert(std::is_trivially_copyable_v<ContiguousType>,
- "Container to WriteBuffer must contain trivially copyable objects");
- return WriteBuffer(std::data(data), std::size(data) * sizeof(ContiguousType),
- buffer_index);
- } else {
- static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable");
- return WriteBuffer(&data, sizeof(T), buffer_index);
- }
- }
-
- /// Helper function to get the size of the input buffer
- [[nodiscard]] std::size_t GetReadBufferSize(std::size_t buffer_index = 0) const;
-
- /// Helper function to get the size of the output buffer
- [[nodiscard]] std::size_t GetWriteBufferSize(std::size_t buffer_index = 0) const;
-
- /// Helper function to derive the number of elements able to be contained in the read buffer
- template <typename T>
- [[nodiscard]] std::size_t GetReadBufferNumElements(std::size_t buffer_index = 0) const {
- return GetReadBufferSize(buffer_index) / sizeof(T);
- }
-
- /// Helper function to derive the number of elements able to be contained in the write buffer
- template <typename T>
- [[nodiscard]] std::size_t GetWriteBufferNumElements(std::size_t buffer_index = 0) const {
- return GetWriteBufferSize(buffer_index) / sizeof(T);
- }
-
- /// Helper function to test whether the input buffer at buffer_index can be read
- [[nodiscard]] bool CanReadBuffer(std::size_t buffer_index = 0) const;
-
- /// Helper function to test whether the output buffer at buffer_index can be written
- [[nodiscard]] bool CanWriteBuffer(std::size_t buffer_index = 0) const;
-
- [[nodiscard]] Handle GetCopyHandle(std::size_t index) const {
- return incoming_copy_handles.at(index);
- }
-
- [[nodiscard]] Handle GetMoveHandle(std::size_t index) const {
- return incoming_move_handles.at(index);
- }
-
- void AddMoveObject(KAutoObject* object) {
- outgoing_move_objects.emplace_back(object);
- }
-
- void AddCopyObject(KAutoObject* object) {
- outgoing_copy_objects.emplace_back(object);
- }
-
- void AddDomainObject(SessionRequestHandlerPtr object) {
- outgoing_domain_objects.emplace_back(std::move(object));
- }
-
- template <typename T>
- std::shared_ptr<T> GetDomainHandler(std::size_t index) const {
- return std::static_pointer_cast<T>(GetManager()->DomainHandler(index).lock());
- }
-
- void SetSessionRequestManager(std::weak_ptr<SessionRequestManager> manager_) {
- manager = manager_;
- }
-
- [[nodiscard]] std::string Description() const;
-
- [[nodiscard]] KThread& GetThread() {
- return *thread;
- }
-
- [[nodiscard]] std::shared_ptr<SessionRequestManager> GetManager() const {
- return manager.lock();
- }
-
-private:
- friend class IPC::ResponseBuilder;
-
- void ParseCommandBuffer(const KHandleTable& handle_table, u32_le* src_cmdbuf, bool incoming);
-
- std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf;
- Kernel::KServerSession* server_session{};
- KThread* thread;
-
- std::vector<Handle> incoming_move_handles;
- std::vector<Handle> incoming_copy_handles;
-
- std::vector<KAutoObject*> outgoing_move_objects;
- std::vector<KAutoObject*> outgoing_copy_objects;
- std::vector<SessionRequestHandlerPtr> outgoing_domain_objects;
-
- std::optional<IPC::CommandHeader> command_header;
- std::optional<IPC::HandleDescriptorHeader> handle_descriptor_header;
- std::optional<IPC::DataPayloadHeader> data_payload_header;
- std::optional<IPC::DomainMessageHeader> domain_message_header;
- std::vector<IPC::BufferDescriptorX> buffer_x_desciptors;
- std::vector<IPC::BufferDescriptorABW> buffer_a_desciptors;
- std::vector<IPC::BufferDescriptorABW> buffer_b_desciptors;
- std::vector<IPC::BufferDescriptorABW> buffer_w_desciptors;
- std::vector<IPC::BufferDescriptorC> buffer_c_desciptors;
-
- u32_le command{};
- u64 pid{};
- u32 write_size{};
- u32 data_payload_offset{};
- u32 handles_offset{};
- u32 domain_offset{};
-
- std::weak_ptr<SessionRequestManager> manager{};
-
- KernelCore& kernel;
- Core::Memory::Memory& memory;
-};
-
-} // namespace Kernel
diff --git a/src/core/hle/kernel/init/init_slab_setup.cpp b/src/core/hle/kernel/init/init_slab_setup.cpp
index 7b363eb1e..1f2db673c 100644
--- a/src/core/hle/kernel/init/init_slab_setup.cpp
+++ b/src/core/hle/kernel/init/init_slab_setup.cpp
@@ -4,17 +4,18 @@
#include "common/alignment.h"
#include "common/assert.h"
#include "common/common_funcs.h"
-#include "common/common_types.h"
#include "core/core.h"
#include "core/device_memory.h"
#include "core/hardware_properties.h"
#include "core/hle/kernel/init/init_slab_setup.h"
#include "core/hle/kernel/k_code_memory.h"
#include "core/hle/kernel/k_debug.h"
+#include "core/hle/kernel/k_device_address_space.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_event_info.h"
#include "core/hle/kernel/k_memory_layout.h"
#include "core/hle/kernel/k_memory_manager.h"
+#include "core/hle/kernel/k_object_name.h"
#include "core/hle/kernel/k_page_buffer.h"
#include "core/hle/kernel/k_port.h"
#include "core/hle/kernel/k_process.h"
@@ -28,9 +29,13 @@
#include "core/hle/kernel/k_thread.h"
#include "core/hle/kernel/k_thread_local_page.h"
#include "core/hle/kernel/k_transfer_memory.h"
+#include "core/hle/kernel/k_typed_address.h"
namespace Kernel::Init {
+// For macro convenience.
+using KThreadLockInfo = KThread::LockWithPriorityInheritanceInfo;
+
#define SLAB_COUNT(CLASS) kernel.SlabResourceCounts().num_##CLASS
#define FOREACH_SLAB_TYPE(HANDLER, ...) \
@@ -43,14 +48,17 @@ namespace Kernel::Init {
HANDLER(KSharedMemoryInfo, (SLAB_COUNT(KSharedMemory) * 8), ##__VA_ARGS__) \
HANDLER(KTransferMemory, (SLAB_COUNT(KTransferMemory)), ##__VA_ARGS__) \
HANDLER(KCodeMemory, (SLAB_COUNT(KCodeMemory)), ##__VA_ARGS__) \
+ HANDLER(KDeviceAddressSpace, (SLAB_COUNT(KDeviceAddressSpace)), ##__VA_ARGS__) \
HANDLER(KSession, (SLAB_COUNT(KSession)), ##__VA_ARGS__) \
HANDLER(KThreadLocalPage, \
(SLAB_COUNT(KProcess) + (SLAB_COUNT(KProcess) + SLAB_COUNT(KThread)) / 8), \
##__VA_ARGS__) \
+ HANDLER(KObjectName, (SLAB_COUNT(KObjectName)), ##__VA_ARGS__) \
HANDLER(KResourceLimit, (SLAB_COUNT(KResourceLimit)), ##__VA_ARGS__) \
HANDLER(KEventInfo, (SLAB_COUNT(KThread) + SLAB_COUNT(KDebug)), ##__VA_ARGS__) \
HANDLER(KDebug, (SLAB_COUNT(KDebug)), ##__VA_ARGS__) \
- HANDLER(KSecureSystemResource, (SLAB_COUNT(KProcess)), ##__VA_ARGS__)
+ HANDLER(KSecureSystemResource, (SLAB_COUNT(KProcess)), ##__VA_ARGS__) \
+ HANDLER(KThreadLockInfo, (SLAB_COUNT(KThread)), ##__VA_ARGS__)
namespace {
@@ -96,17 +104,18 @@ static_assert(KernelPageBufferAdditionalSize ==
/// Helper function to translate from the slab virtual address to the reserved location in physical
/// memory.
-static PAddr TranslateSlabAddrToPhysical(KMemoryLayout& memory_layout, VAddr slab_addr) {
- slab_addr -= memory_layout.GetSlabRegionAddress();
- return slab_addr + Core::DramMemoryMap::SlabHeapBase;
+static KPhysicalAddress TranslateSlabAddrToPhysical(KMemoryLayout& memory_layout,
+ KVirtualAddress slab_addr) {
+ slab_addr -= GetInteger(memory_layout.GetSlabRegionAddress());
+ return GetInteger(slab_addr) + Core::DramMemoryMap::SlabHeapBase;
}
template <typename T>
-VAddr InitializeSlabHeap(Core::System& system, KMemoryLayout& memory_layout, VAddr address,
- size_t num_objects) {
+KVirtualAddress InitializeSlabHeap(Core::System& system, KMemoryLayout& memory_layout,
+ KVirtualAddress address, size_t num_objects) {
const size_t size = Common::AlignUp(sizeof(T) * num_objects, alignof(void*));
- VAddr start = Common::AlignUp(address, alignof(T));
+ KVirtualAddress start = Common::AlignUp(GetInteger(address), alignof(T));
// This should use the virtual memory address passed in, but currently, we do not setup the
// kernel virtual memory layout. Instead, we simply map these at a region of physical memory
@@ -127,7 +136,7 @@ VAddr InitializeSlabHeap(Core::System& system, KMemoryLayout& memory_layout, VAd
}
size_t CalculateSlabHeapGapSize() {
- constexpr size_t KernelSlabHeapGapSize = 2_MiB - 320_KiB;
+ constexpr size_t KernelSlabHeapGapSize = 2_MiB - 356_KiB;
static_assert(KernelSlabHeapGapSize <= KernelSlabHeapGapsSizeMax);
return KernelSlabHeapGapSize;
}
@@ -187,7 +196,7 @@ void InitializeSlabHeaps(Core::System& system, KMemoryLayout& memory_layout) {
auto& kernel = system.Kernel();
// Get the start of the slab region, since that's where we'll be working.
- VAddr address = memory_layout.GetSlabRegionAddress();
+ KVirtualAddress address = memory_layout.GetSlabRegionAddress();
// Initialize slab type array to be in sorted order.
std::array<KSlabType, KSlabType_Count> slab_types;
@@ -220,7 +229,7 @@ void InitializeSlabHeaps(Core::System& system, KMemoryLayout& memory_layout) {
}
// Track the gaps, so that we can free them to the unused slab tree.
- VAddr gap_start = address;
+ KVirtualAddress gap_start = address;
size_t gap_size = 0;
for (size_t i = 0; i < slab_gaps.size(); i++) {
@@ -272,7 +281,7 @@ void KPageBufferSlabHeap::Initialize(Core::System& system) {
// Allocate memory for the slab.
constexpr auto AllocateOption = KMemoryManager::EncodeOption(
KMemoryManager::Pool::System, KMemoryManager::Direction::FromFront);
- const PAddr slab_address =
+ const KPhysicalAddress slab_address =
kernel.MemoryManager().AllocateAndOpenContinuous(num_pages, 1, AllocateOption);
ASSERT(slab_address != 0);
diff --git a/src/core/hle/kernel/initial_process.h b/src/core/hle/kernel/initial_process.h
index af0fb23b6..82195f4f7 100644
--- a/src/core/hle/kernel/initial_process.h
+++ b/src/core/hle/kernel/initial_process.h
@@ -14,7 +14,7 @@ using namespace Common::Literals;
constexpr std::size_t InitialProcessBinarySizeMax = 12_MiB;
-static inline PAddr GetInitialProcessBinaryPhysicalAddress() {
+static inline KPhysicalAddress GetInitialProcessBinaryPhysicalAddress() {
return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress(
MainMemoryAddress);
}
diff --git a/src/core/hle/kernel/k_address_arbiter.cpp b/src/core/hle/kernel/k_address_arbiter.cpp
index a442a3b98..78d43d729 100644
--- a/src/core/hle/kernel/k_address_arbiter.cpp
+++ b/src/core/hle/kernel/k_address_arbiter.cpp
@@ -8,46 +8,57 @@
#include "core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h"
#include "core/hle/kernel/k_thread.h"
#include "core/hle/kernel/k_thread_queue.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/svc_results.h"
#include "core/memory.h"
namespace Kernel {
-KAddressArbiter::KAddressArbiter(Core::System& system_)
- : system{system_}, kernel{system.Kernel()} {}
+KAddressArbiter::KAddressArbiter(Core::System& system)
+ : m_system{system}, m_kernel{system.Kernel()} {}
KAddressArbiter::~KAddressArbiter() = default;
namespace {
-bool ReadFromUser(Core::System& system, s32* out, VAddr address) {
- *out = system.Memory().Read32(address);
+bool ReadFromUser(KernelCore& kernel, s32* out, KProcessAddress address) {
+ *out = GetCurrentMemory(kernel).Read32(GetInteger(address));
return true;
}
-bool DecrementIfLessThan(Core::System& system, s32* out, VAddr address, s32 value) {
+bool DecrementIfLessThan(Core::System& system, s32* out, KProcessAddress address, s32 value) {
auto& monitor = system.Monitor();
const auto current_core = system.Kernel().CurrentPhysicalCoreIndex();
- // TODO(bunnei): We should disable interrupts here via KScopedInterruptDisable.
+ // NOTE: If scheduler lock is not held here, interrupt disable is required.
+ // KScopedInterruptDisable di;
+
// TODO(bunnei): We should call CanAccessAtomic(..) here.
- // Load the value from the address.
- const s32 current_value = static_cast<s32>(monitor.ExclusiveRead32(current_core, address));
+ s32 current_value{};
+
+ while (true) {
+ // Load the value from the address.
+ current_value =
+ static_cast<s32>(monitor.ExclusiveRead32(current_core, GetInteger(address)));
+
+ // Compare it to the desired one.
+ if (current_value < value) {
+ // If less than, we want to try to decrement.
+ const s32 decrement_value = current_value - 1;
- // Compare it to the desired one.
- if (current_value < value) {
- // If less than, we want to try to decrement.
- const s32 decrement_value = current_value - 1;
+ // Decrement and try to store.
+ if (monitor.ExclusiveWrite32(current_core, GetInteger(address),
+ static_cast<u32>(decrement_value))) {
+ break;
+ }
- // Decrement and try to store.
- if (!monitor.ExclusiveWrite32(current_core, address, static_cast<u32>(decrement_value))) {
// If we failed to store, try again.
- DecrementIfLessThan(system, out, address, value);
+ } else {
+ // Otherwise, clear our exclusive hold and finish
+ monitor.ClearExclusive(current_core);
+ break;
}
- } else {
- // Otherwise, clear our exclusive hold and finish
- monitor.ClearExclusive(current_core);
}
// We're done.
@@ -55,28 +66,39 @@ bool DecrementIfLessThan(Core::System& system, s32* out, VAddr address, s32 valu
return true;
}
-bool UpdateIfEqual(Core::System& system, s32* out, VAddr address, s32 value, s32 new_value) {
+bool UpdateIfEqual(Core::System& system, s32* out, KProcessAddress address, s32 value,
+ s32 new_value) {
auto& monitor = system.Monitor();
const auto current_core = system.Kernel().CurrentPhysicalCoreIndex();
- // TODO(bunnei): We should disable interrupts here via KScopedInterruptDisable.
+ // NOTE: If scheduler lock is not held here, interrupt disable is required.
+ // KScopedInterruptDisable di;
+
// TODO(bunnei): We should call CanAccessAtomic(..) here.
- // Load the value from the address.
- const s32 current_value = static_cast<s32>(monitor.ExclusiveRead32(current_core, address));
+ s32 current_value{};
- // Compare it to the desired one.
- if (current_value == value) {
- // If equal, we want to try to write the new value.
+ // Load the value from the address.
+ while (true) {
+ current_value =
+ static_cast<s32>(monitor.ExclusiveRead32(current_core, GetInteger(address)));
+
+ // Compare it to the desired one.
+ if (current_value == value) {
+ // If equal, we want to try to write the new value.
+
+ // Try to store.
+ if (monitor.ExclusiveWrite32(current_core, GetInteger(address),
+ static_cast<u32>(new_value))) {
+ break;
+ }
- // Try to store.
- if (!monitor.ExclusiveWrite32(current_core, address, static_cast<u32>(new_value))) {
// If we failed to store, try again.
- UpdateIfEqual(system, out, address, value, new_value);
+ } else {
+ // Otherwise, clear our exclusive hold and finish.
+ monitor.ClearExclusive(current_core);
+ break;
}
- } else {
- // Otherwise, clear our exclusive hold and finish.
- monitor.ClearExclusive(current_core);
}
// We're done.
@@ -86,8 +108,8 @@ bool UpdateIfEqual(Core::System& system, s32* out, VAddr address, s32 value, s32
class ThreadQueueImplForKAddressArbiter final : public KThreadQueue {
public:
- explicit ThreadQueueImplForKAddressArbiter(KernelCore& kernel_, KAddressArbiter::ThreadTree* t)
- : KThreadQueue(kernel_), m_tree(t) {}
+ explicit ThreadQueueImplForKAddressArbiter(KernelCore& kernel, KAddressArbiter::ThreadTree* t)
+ : KThreadQueue(kernel), m_tree(t) {}
void CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task) override {
// If the thread is waiting on an address arbiter, remove it from the tree.
@@ -101,19 +123,19 @@ public:
}
private:
- KAddressArbiter::ThreadTree* m_tree;
+ KAddressArbiter::ThreadTree* m_tree{};
};
} // namespace
-Result KAddressArbiter::Signal(VAddr addr, s32 count) {
+Result KAddressArbiter::Signal(uint64_t addr, s32 count) {
// Perform signaling.
s32 num_waiters{};
{
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
- auto it = thread_tree.nfind_key({addr, -1});
- while ((it != thread_tree.end()) && (count <= 0 || num_waiters < count) &&
+ auto it = m_tree.nfind_key({addr, -1});
+ while ((it != m_tree.end()) && (count <= 0 || num_waiters < count) &&
(it->GetAddressArbiterKey() == addr)) {
// End the thread's wait.
KThread* target_thread = std::addressof(*it);
@@ -122,31 +144,27 @@ Result KAddressArbiter::Signal(VAddr addr, s32 count) {
ASSERT(target_thread->IsWaitingForAddressArbiter());
target_thread->ClearAddressArbiter();
- it = thread_tree.erase(it);
+ it = m_tree.erase(it);
++num_waiters;
}
}
- return ResultSuccess;
+ R_SUCCEED();
}
-Result KAddressArbiter::SignalAndIncrementIfEqual(VAddr addr, s32 value, s32 count) {
+Result KAddressArbiter::SignalAndIncrementIfEqual(uint64_t addr, s32 value, s32 count) {
// Perform signaling.
s32 num_waiters{};
{
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// Check the userspace value.
s32 user_value{};
- if (!UpdateIfEqual(system, &user_value, addr, value, value + 1)) {
- LOG_ERROR(Kernel, "Invalid current memory!");
- return ResultInvalidCurrentMemory;
- }
- if (user_value != value) {
- return ResultInvalidState;
- }
+ R_UNLESS(UpdateIfEqual(m_system, std::addressof(user_value), addr, value, value + 1),
+ ResultInvalidCurrentMemory);
+ R_UNLESS(user_value == value, ResultInvalidState);
- auto it = thread_tree.nfind_key({addr, -1});
- while ((it != thread_tree.end()) && (count <= 0 || num_waiters < count) &&
+ auto it = m_tree.nfind_key({addr, -1});
+ while ((it != m_tree.end()) && (count <= 0 || num_waiters < count) &&
(it->GetAddressArbiterKey() == addr)) {
// End the thread's wait.
KThread* target_thread = std::addressof(*it);
@@ -155,33 +173,33 @@ Result KAddressArbiter::SignalAndIncrementIfEqual(VAddr addr, s32 value, s32 cou
ASSERT(target_thread->IsWaitingForAddressArbiter());
target_thread->ClearAddressArbiter();
- it = thread_tree.erase(it);
+ it = m_tree.erase(it);
++num_waiters;
}
}
- return ResultSuccess;
+ R_SUCCEED();
}
-Result KAddressArbiter::SignalAndModifyByWaitingCountIfEqual(VAddr addr, s32 value, s32 count) {
+Result KAddressArbiter::SignalAndModifyByWaitingCountIfEqual(uint64_t addr, s32 value, s32 count) {
// Perform signaling.
s32 num_waiters{};
{
- [[maybe_unused]] const KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
- auto it = thread_tree.nfind_key({addr, -1});
+ auto it = m_tree.nfind_key({addr, -1});
// Determine the updated value.
s32 new_value{};
if (count <= 0) {
- if (it != thread_tree.end() && it->GetAddressArbiterKey() == addr) {
+ if (it != m_tree.end() && it->GetAddressArbiterKey() == addr) {
new_value = value - 2;
} else {
new_value = value + 1;
}
} else {
- if (it != thread_tree.end() && it->GetAddressArbiterKey() == addr) {
+ if (it != m_tree.end() && it->GetAddressArbiterKey() == addr) {
auto tmp_it = it;
s32 tmp_num_waiters{};
- while (++tmp_it != thread_tree.end() && tmp_it->GetAddressArbiterKey() == addr) {
+ while (++tmp_it != m_tree.end() && tmp_it->GetAddressArbiterKey() == addr) {
if (tmp_num_waiters++ >= count) {
break;
}
@@ -201,20 +219,15 @@ Result KAddressArbiter::SignalAndModifyByWaitingCountIfEqual(VAddr addr, s32 val
s32 user_value{};
bool succeeded{};
if (value != new_value) {
- succeeded = UpdateIfEqual(system, &user_value, addr, value, new_value);
+ succeeded = UpdateIfEqual(m_system, std::addressof(user_value), addr, value, new_value);
} else {
- succeeded = ReadFromUser(system, &user_value, addr);
+ succeeded = ReadFromUser(m_kernel, std::addressof(user_value), addr);
}
- if (!succeeded) {
- LOG_ERROR(Kernel, "Invalid current memory!");
- return ResultInvalidCurrentMemory;
- }
- if (user_value != value) {
- return ResultInvalidState;
- }
+ R_UNLESS(succeeded, ResultInvalidCurrentMemory);
+ R_UNLESS(user_value == value, ResultInvalidState);
- while ((it != thread_tree.end()) && (count <= 0 || num_waiters < count) &&
+ while ((it != m_tree.end()) && (count <= 0 || num_waiters < count) &&
(it->GetAddressArbiterKey() == addr)) {
// End the thread's wait.
KThread* target_thread = std::addressof(*it);
@@ -223,58 +236,60 @@ Result KAddressArbiter::SignalAndModifyByWaitingCountIfEqual(VAddr addr, s32 val
ASSERT(target_thread->IsWaitingForAddressArbiter());
target_thread->ClearAddressArbiter();
- it = thread_tree.erase(it);
+ it = m_tree.erase(it);
++num_waiters;
}
}
- return ResultSuccess;
+ R_SUCCEED();
}
-Result KAddressArbiter::WaitIfLessThan(VAddr addr, s32 value, bool decrement, s64 timeout) {
+Result KAddressArbiter::WaitIfLessThan(uint64_t addr, s32 value, bool decrement, s64 timeout) {
// Prepare to wait.
- KThread* cur_thread = GetCurrentThreadPointer(kernel);
- ThreadQueueImplForKAddressArbiter wait_queue(kernel, std::addressof(thread_tree));
+ KThread* cur_thread = GetCurrentThreadPointer(m_kernel);
+ KHardwareTimer* timer{};
+ ThreadQueueImplForKAddressArbiter wait_queue(m_kernel, std::addressof(m_tree));
{
- KScopedSchedulerLockAndSleep slp{kernel, cur_thread, timeout};
+ KScopedSchedulerLockAndSleep slp{m_kernel, std::addressof(timer), cur_thread, timeout};
// Check that the thread isn't terminating.
if (cur_thread->IsTerminationRequested()) {
slp.CancelSleep();
- return ResultTerminationRequested;
+ R_THROW(ResultTerminationRequested);
}
// Read the value from userspace.
s32 user_value{};
bool succeeded{};
if (decrement) {
- succeeded = DecrementIfLessThan(system, &user_value, addr, value);
+ succeeded = DecrementIfLessThan(m_system, std::addressof(user_value), addr, value);
} else {
- succeeded = ReadFromUser(system, &user_value, addr);
+ succeeded = ReadFromUser(m_kernel, std::addressof(user_value), addr);
}
if (!succeeded) {
slp.CancelSleep();
- return ResultInvalidCurrentMemory;
+ R_THROW(ResultInvalidCurrentMemory);
}
// Check that the value is less than the specified one.
if (user_value >= value) {
slp.CancelSleep();
- return ResultInvalidState;
+ R_THROW(ResultInvalidState);
}
// Check that the timeout is non-zero.
if (timeout == 0) {
slp.CancelSleep();
- return ResultTimedOut;
+ R_THROW(ResultTimedOut);
}
// Set the arbiter.
- cur_thread->SetAddressArbiter(&thread_tree, addr);
- thread_tree.insert(*cur_thread);
+ cur_thread->SetAddressArbiter(std::addressof(m_tree), addr);
+ m_tree.insert(*cur_thread);
// Wait for the thread to finish.
+ wait_queue.SetHardwareTimer(timer);
cur_thread->BeginWait(std::addressof(wait_queue));
cur_thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::Arbitration);
}
@@ -283,44 +298,46 @@ Result KAddressArbiter::WaitIfLessThan(VAddr addr, s32 value, bool decrement, s6
return cur_thread->GetWaitResult();
}
-Result KAddressArbiter::WaitIfEqual(VAddr addr, s32 value, s64 timeout) {
+Result KAddressArbiter::WaitIfEqual(uint64_t addr, s32 value, s64 timeout) {
// Prepare to wait.
- KThread* cur_thread = GetCurrentThreadPointer(kernel);
- ThreadQueueImplForKAddressArbiter wait_queue(kernel, std::addressof(thread_tree));
+ KThread* cur_thread = GetCurrentThreadPointer(m_kernel);
+ KHardwareTimer* timer{};
+ ThreadQueueImplForKAddressArbiter wait_queue(m_kernel, std::addressof(m_tree));
{
- KScopedSchedulerLockAndSleep slp{kernel, cur_thread, timeout};
+ KScopedSchedulerLockAndSleep slp{m_kernel, std::addressof(timer), cur_thread, timeout};
// Check that the thread isn't terminating.
if (cur_thread->IsTerminationRequested()) {
slp.CancelSleep();
- return ResultTerminationRequested;
+ R_THROW(ResultTerminationRequested);
}
// Read the value from userspace.
s32 user_value{};
- if (!ReadFromUser(system, &user_value, addr)) {
+ if (!ReadFromUser(m_kernel, std::addressof(user_value), addr)) {
slp.CancelSleep();
- return ResultInvalidCurrentMemory;
+ R_THROW(ResultInvalidCurrentMemory);
}
// Check that the value is equal.
if (value != user_value) {
slp.CancelSleep();
- return ResultInvalidState;
+ R_THROW(ResultInvalidState);
}
// Check that the timeout is non-zero.
if (timeout == 0) {
slp.CancelSleep();
- return ResultTimedOut;
+ R_THROW(ResultTimedOut);
}
// Set the arbiter.
- cur_thread->SetAddressArbiter(&thread_tree, addr);
- thread_tree.insert(*cur_thread);
+ cur_thread->SetAddressArbiter(std::addressof(m_tree), addr);
+ m_tree.insert(*cur_thread);
// Wait for the thread to finish.
+ wait_queue.SetHardwareTimer(timer);
cur_thread->BeginWait(std::addressof(wait_queue));
cur_thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::Arbitration);
}
diff --git a/src/core/hle/kernel/k_address_arbiter.h b/src/core/hle/kernel/k_address_arbiter.h
index e4085ae22..3b70e1ab2 100644
--- a/src/core/hle/kernel/k_address_arbiter.h
+++ b/src/core/hle/kernel/k_address_arbiter.h
@@ -22,47 +22,46 @@ class KAddressArbiter {
public:
using ThreadTree = KConditionVariable::ThreadTree;
- explicit KAddressArbiter(Core::System& system_);
+ explicit KAddressArbiter(Core::System& system);
~KAddressArbiter();
- [[nodiscard]] Result SignalToAddress(VAddr addr, Svc::SignalType type, s32 value, s32 count) {
+ Result SignalToAddress(uint64_t addr, Svc::SignalType type, s32 value, s32 count) {
switch (type) {
case Svc::SignalType::Signal:
- return Signal(addr, count);
+ R_RETURN(this->Signal(addr, count));
case Svc::SignalType::SignalAndIncrementIfEqual:
- return SignalAndIncrementIfEqual(addr, value, count);
+ R_RETURN(this->SignalAndIncrementIfEqual(addr, value, count));
case Svc::SignalType::SignalAndModifyByWaitingCountIfEqual:
- return SignalAndModifyByWaitingCountIfEqual(addr, value, count);
+ R_RETURN(this->SignalAndModifyByWaitingCountIfEqual(addr, value, count));
+ default:
+ UNREACHABLE();
}
- ASSERT(false);
- return ResultUnknown;
}
- [[nodiscard]] Result WaitForAddress(VAddr addr, Svc::ArbitrationType type, s32 value,
- s64 timeout) {
+ Result WaitForAddress(uint64_t addr, Svc::ArbitrationType type, s32 value, s64 timeout) {
switch (type) {
case Svc::ArbitrationType::WaitIfLessThan:
- return WaitIfLessThan(addr, value, false, timeout);
+ R_RETURN(WaitIfLessThan(addr, value, false, timeout));
case Svc::ArbitrationType::DecrementAndWaitIfLessThan:
- return WaitIfLessThan(addr, value, true, timeout);
+ R_RETURN(WaitIfLessThan(addr, value, true, timeout));
case Svc::ArbitrationType::WaitIfEqual:
- return WaitIfEqual(addr, value, timeout);
+ R_RETURN(WaitIfEqual(addr, value, timeout));
+ default:
+ UNREACHABLE();
}
- ASSERT(false);
- return ResultUnknown;
}
private:
- [[nodiscard]] Result Signal(VAddr addr, s32 count);
- [[nodiscard]] Result SignalAndIncrementIfEqual(VAddr addr, s32 value, s32 count);
- [[nodiscard]] Result SignalAndModifyByWaitingCountIfEqual(VAddr addr, s32 value, s32 count);
- [[nodiscard]] Result WaitIfLessThan(VAddr addr, s32 value, bool decrement, s64 timeout);
- [[nodiscard]] Result WaitIfEqual(VAddr addr, s32 value, s64 timeout);
+ Result Signal(uint64_t addr, s32 count);
+ Result SignalAndIncrementIfEqual(uint64_t addr, s32 value, s32 count);
+ Result SignalAndModifyByWaitingCountIfEqual(uint64_t addr, s32 value, s32 count);
+ Result WaitIfLessThan(uint64_t addr, s32 value, bool decrement, s64 timeout);
+ Result WaitIfEqual(uint64_t addr, s32 value, s64 timeout);
- ThreadTree thread_tree;
-
- Core::System& system;
- KernelCore& kernel;
+private:
+ ThreadTree m_tree;
+ Core::System& m_system;
+ KernelCore& m_kernel;
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_address_space_info.cpp b/src/core/hle/kernel/k_address_space_info.cpp
index 3e612a207..32173e52b 100644
--- a/src/core/hle/kernel/k_address_space_info.cpp
+++ b/src/core/hle/kernel/k_address_space_info.cpp
@@ -23,86 +23,38 @@ constexpr std::array<KAddressSpaceInfo, 13> AddressSpaceInfos{{
{ .bit_width = 32, .address = Size_Invalid, .size = 1_GiB , .type = KAddressSpaceInfo::Type::Heap, },
{ .bit_width = 36, .address = 128_MiB , .size = 2_GiB - 128_MiB, .type = KAddressSpaceInfo::Type::MapSmall, },
{ .bit_width = 36, .address = 2_GiB , .size = 64_GiB - 2_GiB , .type = KAddressSpaceInfo::Type::MapLarge, },
- { .bit_width = 36, .address = Size_Invalid, .size = 6_GiB , .type = KAddressSpaceInfo::Type::Heap, },
+ { .bit_width = 36, .address = Size_Invalid, .size = 8_GiB , .type = KAddressSpaceInfo::Type::Heap, },
{ .bit_width = 36, .address = Size_Invalid, .size = 6_GiB , .type = KAddressSpaceInfo::Type::Alias, },
+#ifdef ANDROID
+ // With Android, we use a 38-bit address space due to memory limitations. This should (safely) truncate ASLR region.
+ { .bit_width = 39, .address = 128_MiB , .size = 256_GiB - 128_MiB, .type = KAddressSpaceInfo::Type::Map39Bit, },
+#else
{ .bit_width = 39, .address = 128_MiB , .size = 512_GiB - 128_MiB, .type = KAddressSpaceInfo::Type::Map39Bit, },
+#endif
{ .bit_width = 39, .address = Size_Invalid, .size = 64_GiB , .type = KAddressSpaceInfo::Type::MapSmall },
- { .bit_width = 39, .address = Size_Invalid, .size = 6_GiB , .type = KAddressSpaceInfo::Type::Heap, },
+ { .bit_width = 39, .address = Size_Invalid, .size = 8_GiB , .type = KAddressSpaceInfo::Type::Heap, },
{ .bit_width = 39, .address = Size_Invalid, .size = 64_GiB , .type = KAddressSpaceInfo::Type::Alias, },
{ .bit_width = 39, .address = Size_Invalid, .size = 2_GiB , .type = KAddressSpaceInfo::Type::Stack, },
}};
// clang-format on
-constexpr bool IsAllowedIndexForAddress(std::size_t index) {
- return index < AddressSpaceInfos.size() && AddressSpaceInfos[index].address != Size_Invalid;
-}
-
-using IndexArray =
- std::array<std::size_t, static_cast<std::size_t>(KAddressSpaceInfo::Type::Count)>;
-
-constexpr IndexArray AddressSpaceIndices32Bit{
- 0, 1, 0, 2, 0, 3,
-};
-
-constexpr IndexArray AddressSpaceIndices36Bit{
- 4, 5, 4, 6, 4, 7,
-};
-
-constexpr IndexArray AddressSpaceIndices39Bit{
- 9, 8, 8, 10, 12, 11,
-};
-
-constexpr bool IsAllowed32BitType(KAddressSpaceInfo::Type type) {
- return type < KAddressSpaceInfo::Type::Count && type != KAddressSpaceInfo::Type::Map39Bit &&
- type != KAddressSpaceInfo::Type::Stack;
-}
-
-constexpr bool IsAllowed36BitType(KAddressSpaceInfo::Type type) {
- return type < KAddressSpaceInfo::Type::Count && type != KAddressSpaceInfo::Type::Map39Bit &&
- type != KAddressSpaceInfo::Type::Stack;
-}
-
-constexpr bool IsAllowed39BitType(KAddressSpaceInfo::Type type) {
- return type < KAddressSpaceInfo::Type::Count && type != KAddressSpaceInfo::Type::MapLarge;
+const KAddressSpaceInfo& GetAddressSpaceInfo(size_t width, KAddressSpaceInfo::Type type) {
+ for (auto& info : AddressSpaceInfos) {
+ if (info.bit_width == width && info.type == type) {
+ return info;
+ }
+ }
+ UNREACHABLE_MSG("Could not find AddressSpaceInfo");
}
} // namespace
-u64 KAddressSpaceInfo::GetAddressSpaceStart(std::size_t width, Type type) {
- const std::size_t index{static_cast<std::size_t>(type)};
- switch (width) {
- case 32:
- ASSERT(IsAllowed32BitType(type));
- ASSERT(IsAllowedIndexForAddress(AddressSpaceIndices32Bit[index]));
- return AddressSpaceInfos[AddressSpaceIndices32Bit[index]].address;
- case 36:
- ASSERT(IsAllowed36BitType(type));
- ASSERT(IsAllowedIndexForAddress(AddressSpaceIndices36Bit[index]));
- return AddressSpaceInfos[AddressSpaceIndices36Bit[index]].address;
- case 39:
- ASSERT(IsAllowed39BitType(type));
- ASSERT(IsAllowedIndexForAddress(AddressSpaceIndices39Bit[index]));
- return AddressSpaceInfos[AddressSpaceIndices39Bit[index]].address;
- }
- ASSERT(false);
- return 0;
+std::size_t KAddressSpaceInfo::GetAddressSpaceStart(size_t width, KAddressSpaceInfo::Type type) {
+ return GetAddressSpaceInfo(width, type).address;
}
-std::size_t KAddressSpaceInfo::GetAddressSpaceSize(std::size_t width, Type type) {
- const std::size_t index{static_cast<std::size_t>(type)};
- switch (width) {
- case 32:
- ASSERT(IsAllowed32BitType(type));
- return AddressSpaceInfos[AddressSpaceIndices32Bit[index]].size;
- case 36:
- ASSERT(IsAllowed36BitType(type));
- return AddressSpaceInfos[AddressSpaceIndices36Bit[index]].size;
- case 39:
- ASSERT(IsAllowed39BitType(type));
- return AddressSpaceInfos[AddressSpaceIndices39Bit[index]].size;
- }
- ASSERT(false);
- return 0;
+std::size_t KAddressSpaceInfo::GetAddressSpaceSize(size_t width, KAddressSpaceInfo::Type type) {
+ return GetAddressSpaceInfo(width, type).size;
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_address_space_info.h b/src/core/hle/kernel/k_address_space_info.h
index 69e9d77f2..9a26f6b90 100644
--- a/src/core/hle/kernel/k_address_space_info.h
+++ b/src/core/hle/kernel/k_address_space_info.h
@@ -18,7 +18,7 @@ struct KAddressSpaceInfo final {
Count,
};
- static u64 GetAddressSpaceStart(std::size_t width, Type type);
+ static std::size_t GetAddressSpaceStart(std::size_t width, Type type);
static std::size_t GetAddressSpaceSize(std::size_t width, Type type);
const std::size_t bit_width{};
diff --git a/src/core/hle/kernel/k_affinity_mask.h b/src/core/hle/kernel/k_affinity_mask.h
index b58716e90..07a5a822c 100644
--- a/src/core/hle/kernel/k_affinity_mask.h
+++ b/src/core/hle/kernel/k_affinity_mask.h
@@ -13,40 +13,40 @@ class KAffinityMask {
public:
constexpr KAffinityMask() = default;
- [[nodiscard]] constexpr u64 GetAffinityMask() const {
- return this->mask;
+ constexpr u64 GetAffinityMask() const {
+ return m_mask;
}
constexpr void SetAffinityMask(u64 new_mask) {
ASSERT((new_mask & ~AllowedAffinityMask) == 0);
- this->mask = new_mask;
+ m_mask = new_mask;
}
- [[nodiscard]] constexpr bool GetAffinity(s32 core) const {
- return (this->mask & GetCoreBit(core)) != 0;
+ constexpr bool GetAffinity(s32 core) const {
+ return (m_mask & GetCoreBit(core)) != 0;
}
constexpr void SetAffinity(s32 core, bool set) {
if (set) {
- this->mask |= GetCoreBit(core);
+ m_mask |= GetCoreBit(core);
} else {
- this->mask &= ~GetCoreBit(core);
+ m_mask &= ~GetCoreBit(core);
}
}
constexpr void SetAll() {
- this->mask = AllowedAffinityMask;
+ m_mask = AllowedAffinityMask;
}
private:
- [[nodiscard]] static constexpr u64 GetCoreBit(s32 core) {
+ static constexpr u64 GetCoreBit(s32 core) {
ASSERT(0 <= core && core < static_cast<s32>(Core::Hardware::NUM_CPU_CORES));
return (1ULL << core);
}
static constexpr u64 AllowedAffinityMask = (1ULL << Core::Hardware::NUM_CPU_CORES) - 1;
- u64 mask{};
+ u64 m_mask{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_auto_object.cpp b/src/core/hle/kernel/k_auto_object.cpp
index 691af8ccb..0ae42c95c 100644
--- a/src/core/hle/kernel/k_auto_object.cpp
+++ b/src/core/hle/kernel/k_auto_object.cpp
@@ -12,11 +12,11 @@ KAutoObject* KAutoObject::Create(KAutoObject* obj) {
}
void KAutoObject::RegisterWithKernel() {
- kernel.RegisterKernelObject(this);
+ m_kernel.RegisterKernelObject(this);
}
void KAutoObject::UnregisterWithKernel() {
- kernel.UnregisterKernelObject(this);
+ m_kernel.UnregisterKernelObject(this);
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_auto_object.h b/src/core/hle/kernel/k_auto_object.h
index 2827763d5..f384b1568 100644
--- a/src/core/hle/kernel/k_auto_object.h
+++ b/src/core/hle/kernel/k_auto_object.h
@@ -24,9 +24,7 @@ private:
friend class ::Kernel::KClassTokenGenerator; \
static constexpr inline auto ObjectType = ::Kernel::KClassTokenGenerator::ObjectType::CLASS; \
static constexpr inline const char* const TypeName = #CLASS; \
- static constexpr inline ClassTokenType ClassToken() { \
- return ::Kernel::ClassToken<CLASS>; \
- } \
+ static constexpr inline ClassTokenType ClassToken() { return ::Kernel::ClassToken<CLASS>; } \
\
public: \
YUZU_NON_COPYABLE(CLASS); \
@@ -37,15 +35,9 @@ public:
constexpr ClassTokenType Token = ClassToken(); \
return TypeObj(TypeName, Token); \
} \
- static constexpr const char* GetStaticTypeName() { \
- return TypeName; \
- } \
- virtual TypeObj GetTypeObj() ATTRIBUTE { \
- return GetStaticTypeObj(); \
- } \
- virtual const char* GetTypeName() ATTRIBUTE { \
- return GetStaticTypeName(); \
- } \
+ static constexpr const char* GetStaticTypeName() { return TypeName; } \
+ virtual TypeObj GetTypeObj() ATTRIBUTE { return GetStaticTypeObj(); } \
+ virtual const char* GetTypeName() ATTRIBUTE { return GetStaticTypeName(); } \
\
private: \
constexpr bool operator!=(const TypeObj& rhs)
@@ -88,7 +80,7 @@ private:
KERNEL_AUTOOBJECT_TRAITS_IMPL(KAutoObject, KAutoObject, const);
public:
- explicit KAutoObject(KernelCore& kernel_) : kernel(kernel_) {
+ explicit KAutoObject(KernelCore& kernel) : m_kernel(kernel) {
RegisterWithKernel();
}
virtual ~KAutoObject() = default;
@@ -172,17 +164,12 @@ public:
}
}
- const std::string& GetName() const {
- return name;
- }
-
private:
void RegisterWithKernel();
void UnregisterWithKernel();
protected:
- KernelCore& kernel;
- std::string name;
+ KernelCore& m_kernel;
private:
std::atomic<u32> m_ref_count{};
@@ -192,11 +179,11 @@ class KAutoObjectWithListContainer;
class KAutoObjectWithList : public KAutoObject, public boost::intrusive::set_base_hook<> {
public:
- explicit KAutoObjectWithList(KernelCore& kernel_) : KAutoObject(kernel_) {}
+ explicit KAutoObjectWithList(KernelCore& kernel) : KAutoObject(kernel) {}
static int Compare(const KAutoObjectWithList& lhs, const KAutoObjectWithList& rhs) {
- const u64 lid = lhs.GetId();
- const u64 rid = rhs.GetId();
+ const uintptr_t lid = reinterpret_cast<uintptr_t>(std::addressof(lhs));
+ const uintptr_t rid = reinterpret_cast<uintptr_t>(std::addressof(rhs));
if (lid < rid) {
return -1;
@@ -208,7 +195,7 @@ public:
}
friend bool operator<(const KAutoObjectWithList& left, const KAutoObjectWithList& right) {
- return &left < &right;
+ return KAutoObjectWithList::Compare(left, right) < 0;
}
public:
@@ -216,10 +203,6 @@ public:
return reinterpret_cast<u64>(this);
}
- virtual const std::string& GetName() const {
- return name;
- }
-
private:
friend class KAutoObjectWithListContainer;
};
@@ -245,8 +228,8 @@ public:
}
template <typename U>
- requires(std::derived_from<T, U> ||
- std::derived_from<U, T>) constexpr KScopedAutoObject(KScopedAutoObject<U>&& rhs) {
+ requires(std::derived_from<T, U> || std::derived_from<U, T>)
+ constexpr KScopedAutoObject(KScopedAutoObject<U>&& rhs) {
if constexpr (std::derived_from<U, T>) {
// Upcast.
m_obj = rhs.m_obj;
diff --git a/src/core/hle/kernel/k_capabilities.cpp b/src/core/hle/kernel/k_capabilities.cpp
new file mode 100644
index 000000000..90e4e8fb0
--- /dev/null
+++ b/src/core/hle/kernel/k_capabilities.cpp
@@ -0,0 +1,358 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hardware_properties.h"
+#include "core/hle/kernel/k_capabilities.h"
+#include "core/hle/kernel/k_memory_layout.h"
+#include "core/hle/kernel/k_page_table.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc_results.h"
+#include "core/hle/kernel/svc_version.h"
+
+namespace Kernel {
+
+Result KCapabilities::InitializeForKip(std::span<const u32> kern_caps, KPageTable* page_table) {
+ // We're initializing an initial process.
+ m_svc_access_flags.reset();
+ m_irq_access_flags.reset();
+ m_debug_capabilities = 0;
+ m_handle_table_size = 0;
+ m_intended_kernel_version = 0;
+ m_program_type = 0;
+
+ // Initial processes may run on all cores.
+ constexpr u64 VirtMask = Core::Hardware::VirtualCoreMask;
+ constexpr u64 PhysMask = Core::Hardware::ConvertVirtualCoreMaskToPhysical(VirtMask);
+
+ m_core_mask = VirtMask;
+ m_phys_core_mask = PhysMask;
+
+ // Initial processes may use any user priority they like.
+ m_priority_mask = ~0xFULL;
+
+ // Here, Nintendo sets the kernel version to the current kernel version.
+ // We will follow suit and set the version to the highest supported kernel version.
+ KernelVersion intended_kernel_version{};
+ intended_kernel_version.major_version.Assign(Svc::SupportedKernelMajorVersion);
+ intended_kernel_version.minor_version.Assign(Svc::SupportedKernelMinorVersion);
+ m_intended_kernel_version = intended_kernel_version.raw;
+
+ // Parse the capabilities array.
+ R_RETURN(this->SetCapabilities(kern_caps, page_table));
+}
+
+Result KCapabilities::InitializeForUser(std::span<const u32> user_caps, KPageTable* page_table) {
+ // We're initializing a user process.
+ m_svc_access_flags.reset();
+ m_irq_access_flags.reset();
+ m_debug_capabilities = 0;
+ m_handle_table_size = 0;
+ m_intended_kernel_version = 0;
+ m_program_type = 0;
+
+ // User processes must specify what cores/priorities they can use.
+ m_core_mask = 0;
+ m_priority_mask = 0;
+
+ // Parse the user capabilities array.
+ R_RETURN(this->SetCapabilities(user_caps, page_table));
+}
+
+Result KCapabilities::SetCorePriorityCapability(const u32 cap) {
+ // We can't set core/priority if we've already set them.
+ R_UNLESS(m_core_mask == 0, ResultInvalidArgument);
+ R_UNLESS(m_priority_mask == 0, ResultInvalidArgument);
+
+ // Validate the core/priority.
+ CorePriority pack{cap};
+ const u32 min_core = pack.minimum_core_id;
+ const u32 max_core = pack.maximum_core_id;
+ const u32 max_prio = pack.lowest_thread_priority;
+ const u32 min_prio = pack.highest_thread_priority;
+
+ R_UNLESS(min_core <= max_core, ResultInvalidCombination);
+ R_UNLESS(min_prio <= max_prio, ResultInvalidCombination);
+ R_UNLESS(max_core < Core::Hardware::NumVirtualCores, ResultInvalidCoreId);
+
+ ASSERT(max_prio < Common::BitSize<u64>());
+
+ // Set core mask.
+ for (auto core_id = min_core; core_id <= max_core; core_id++) {
+ m_core_mask |= (1ULL << core_id);
+ }
+ ASSERT((m_core_mask & Core::Hardware::VirtualCoreMask) == m_core_mask);
+
+ // Set physical core mask.
+ m_phys_core_mask = Core::Hardware::ConvertVirtualCoreMaskToPhysical(m_core_mask);
+
+ // Set priority mask.
+ for (auto prio = min_prio; prio <= max_prio; prio++) {
+ m_priority_mask |= (1ULL << prio);
+ }
+
+ // We must have some core/priority we can use.
+ R_UNLESS(m_core_mask != 0, ResultInvalidArgument);
+ R_UNLESS(m_priority_mask != 0, ResultInvalidArgument);
+
+ // Processes must not have access to kernel thread priorities.
+ R_UNLESS((m_priority_mask & 0xF) == 0, ResultInvalidArgument);
+
+ R_SUCCEED();
+}
+
+Result KCapabilities::SetSyscallMaskCapability(const u32 cap, u32& set_svc) {
+ // Validate the index.
+ SyscallMask pack{cap};
+ const u32 mask = pack.mask;
+ const u32 index = pack.index;
+
+ const u32 index_flag = (1U << index);
+ R_UNLESS((set_svc & index_flag) == 0, ResultInvalidCombination);
+ set_svc |= index_flag;
+
+ // Set SVCs.
+ for (size_t i = 0; i < decltype(SyscallMask::mask)::bits; i++) {
+ const u32 svc_id = static_cast<u32>(decltype(SyscallMask::mask)::bits * index + i);
+ if (mask & (1U << i)) {
+ R_UNLESS(this->SetSvcAllowed(svc_id), ResultOutOfRange);
+ }
+ }
+
+ R_SUCCEED();
+}
+
+Result KCapabilities::MapRange_(const u32 cap, const u32 size_cap, KPageTable* page_table) {
+ const auto range_pack = MapRange{cap};
+ const auto size_pack = MapRangeSize{size_cap};
+
+ // Get/validate address/size
+ const u64 phys_addr = range_pack.address.Value() * PageSize;
+
+ // Validate reserved bits are unused.
+ R_UNLESS(size_pack.reserved.Value() == 0, ResultOutOfRange);
+
+ const size_t num_pages = size_pack.pages;
+ const size_t size = num_pages * PageSize;
+ R_UNLESS(num_pages != 0, ResultInvalidSize);
+ R_UNLESS(phys_addr < phys_addr + size, ResultInvalidAddress);
+ R_UNLESS(((phys_addr + size - 1) & ~PhysicalMapAllowedMask) == 0, ResultInvalidAddress);
+
+ // Do the mapping.
+ [[maybe_unused]] const KMemoryPermission perm = range_pack.read_only.Value()
+ ? KMemoryPermission::UserRead
+ : KMemoryPermission::UserReadWrite;
+ if (MapRangeSize{size_cap}.normal) {
+ // R_RETURN(page_table->MapStatic(phys_addr, size, perm));
+ } else {
+ // R_RETURN(page_table->MapIo(phys_addr, size, perm));
+ }
+
+ UNIMPLEMENTED();
+ R_SUCCEED();
+}
+
+Result KCapabilities::MapIoPage_(const u32 cap, KPageTable* page_table) {
+ // Get/validate address/size
+ const u64 phys_addr = MapIoPage{cap}.address.Value() * PageSize;
+ const size_t num_pages = 1;
+ const size_t size = num_pages * PageSize;
+ R_UNLESS(num_pages != 0, ResultInvalidSize);
+ R_UNLESS(phys_addr < phys_addr + size, ResultInvalidAddress);
+ R_UNLESS(((phys_addr + size - 1) & ~PhysicalMapAllowedMask) == 0, ResultInvalidAddress);
+
+ // Do the mapping.
+ // R_RETURN(page_table->MapIo(phys_addr, size, KMemoryPermission_UserReadWrite));
+
+ UNIMPLEMENTED();
+ R_SUCCEED();
+}
+
+template <typename F>
+Result KCapabilities::ProcessMapRegionCapability(const u32 cap, F f) {
+ // Define the allowed memory regions.
+ constexpr std::array<KMemoryRegionType, 4> MemoryRegions{
+ KMemoryRegionType_None,
+ KMemoryRegionType_KernelTraceBuffer,
+ KMemoryRegionType_OnMemoryBootImage,
+ KMemoryRegionType_DTB,
+ };
+
+ // Extract regions/read only.
+ const MapRegion pack{cap};
+ const std::array<RegionType, 3> types{pack.region0, pack.region1, pack.region2};
+ const std::array<u32, 3> ro{pack.read_only0, pack.read_only1, pack.read_only2};
+
+ for (size_t i = 0; i < types.size(); i++) {
+ const auto type = types[i];
+ const auto perm = ro[i] ? KMemoryPermission::UserRead : KMemoryPermission::UserReadWrite;
+ switch (type) {
+ case RegionType::NoMapping:
+ break;
+ case RegionType::KernelTraceBuffer:
+ case RegionType::OnMemoryBootImage:
+ case RegionType::DTB:
+ R_TRY(f(MemoryRegions[static_cast<u32>(type)], perm));
+ break;
+ default:
+ R_THROW(ResultNotFound);
+ }
+ }
+
+ R_SUCCEED();
+}
+
+Result KCapabilities::MapRegion_(const u32 cap, KPageTable* page_table) {
+ // Map each region into the process's page table.
+ return ProcessMapRegionCapability(
+ cap, [](KMemoryRegionType region_type, KMemoryPermission perm) -> Result {
+ // R_RETURN(page_table->MapRegion(region_type, perm));
+ UNIMPLEMENTED();
+ R_SUCCEED();
+ });
+}
+
+Result KCapabilities::CheckMapRegion(KernelCore& kernel, const u32 cap) {
+ // Check that each region has a physical backing store.
+ return ProcessMapRegionCapability(
+ cap, [&](KMemoryRegionType region_type, KMemoryPermission perm) -> Result {
+ R_UNLESS(kernel.MemoryLayout().GetPhysicalMemoryRegionTree().FindFirstDerived(
+ region_type) != nullptr,
+ ResultOutOfRange);
+ R_SUCCEED();
+ });
+}
+
+Result KCapabilities::SetInterruptPairCapability(const u32 cap) {
+ // Extract interrupts.
+ const InterruptPair pack{cap};
+ const std::array<u32, 2> ids{pack.interrupt_id0, pack.interrupt_id1};
+
+ for (size_t i = 0; i < ids.size(); i++) {
+ if (ids[i] != PaddingInterruptId) {
+ UNIMPLEMENTED();
+ // R_UNLESS(Kernel::GetInterruptManager().IsInterruptDefined(ids[i]), ResultOutOfRange);
+ // R_UNLESS(this->SetInterruptPermitted(ids[i]), ResultOutOfRange);
+ }
+ }
+
+ R_SUCCEED();
+}
+
+Result KCapabilities::SetProgramTypeCapability(const u32 cap) {
+ // Validate.
+ const ProgramType pack{cap};
+ R_UNLESS(pack.reserved == 0, ResultReservedUsed);
+
+ m_program_type = pack.type;
+ R_SUCCEED();
+}
+
+Result KCapabilities::SetKernelVersionCapability(const u32 cap) {
+ // Ensure we haven't set our version before.
+ R_UNLESS(KernelVersion{m_intended_kernel_version}.major_version == 0, ResultInvalidArgument);
+
+ // Set, ensure that we set a valid version.
+ m_intended_kernel_version = cap;
+ R_UNLESS(KernelVersion{m_intended_kernel_version}.major_version != 0, ResultInvalidArgument);
+
+ R_SUCCEED();
+}
+
+Result KCapabilities::SetHandleTableCapability(const u32 cap) {
+ // Validate.
+ const HandleTable pack{cap};
+ R_UNLESS(pack.reserved == 0, ResultReservedUsed);
+
+ m_handle_table_size = pack.size;
+ R_SUCCEED();
+}
+
+Result KCapabilities::SetDebugFlagsCapability(const u32 cap) {
+ // Validate.
+ const DebugFlags pack{cap};
+ R_UNLESS(pack.reserved == 0, ResultReservedUsed);
+
+ DebugFlags debug_capabilities{m_debug_capabilities};
+ debug_capabilities.allow_debug.Assign(pack.allow_debug);
+ debug_capabilities.force_debug.Assign(pack.force_debug);
+ m_debug_capabilities = debug_capabilities.raw;
+
+ R_SUCCEED();
+}
+
+Result KCapabilities::SetCapability(const u32 cap, u32& set_flags, u32& set_svc,
+ KPageTable* page_table) {
+ // Validate this is a capability we can act on.
+ const auto type = GetCapabilityType(cap);
+ R_UNLESS(type != CapabilityType::Invalid, ResultInvalidArgument);
+
+ // If the type is padding, we have no work to do.
+ R_SUCCEED_IF(type == CapabilityType::Padding);
+
+ // Check that we haven't already processed this capability.
+ const auto flag = GetCapabilityFlag(type);
+ R_UNLESS(((set_flags & InitializeOnceFlags) & flag) == 0, ResultInvalidCombination);
+ set_flags |= flag;
+
+ // Process the capability.
+ switch (type) {
+ case CapabilityType::CorePriority:
+ R_RETURN(this->SetCorePriorityCapability(cap));
+ case CapabilityType::SyscallMask:
+ R_RETURN(this->SetSyscallMaskCapability(cap, set_svc));
+ case CapabilityType::MapIoPage:
+ R_RETURN(this->MapIoPage_(cap, page_table));
+ case CapabilityType::MapRegion:
+ R_RETURN(this->MapRegion_(cap, page_table));
+ case CapabilityType::InterruptPair:
+ R_RETURN(this->SetInterruptPairCapability(cap));
+ case CapabilityType::ProgramType:
+ R_RETURN(this->SetProgramTypeCapability(cap));
+ case CapabilityType::KernelVersion:
+ R_RETURN(this->SetKernelVersionCapability(cap));
+ case CapabilityType::HandleTable:
+ R_RETURN(this->SetHandleTableCapability(cap));
+ case CapabilityType::DebugFlags:
+ R_RETURN(this->SetDebugFlagsCapability(cap));
+ default:
+ R_THROW(ResultInvalidArgument);
+ }
+}
+
+Result KCapabilities::SetCapabilities(std::span<const u32> caps, KPageTable* page_table) {
+ u32 set_flags = 0, set_svc = 0;
+
+ for (size_t i = 0; i < caps.size(); i++) {
+ const u32 cap{caps[i]};
+
+ if (GetCapabilityType(cap) == CapabilityType::MapRange) {
+ // Check that the pair cap exists.
+ R_UNLESS((++i) < caps.size(), ResultInvalidCombination);
+
+ // Check the pair cap is a map range cap.
+ const u32 size_cap{caps[i]};
+ R_UNLESS(GetCapabilityType(size_cap) == CapabilityType::MapRange,
+ ResultInvalidCombination);
+
+ // Map the range.
+ R_TRY(this->MapRange_(cap, size_cap, page_table));
+ } else {
+ R_TRY(this->SetCapability(cap, set_flags, set_svc, page_table));
+ }
+ }
+
+ R_SUCCEED();
+}
+
+Result KCapabilities::CheckCapabilities(KernelCore& kernel, std::span<const u32> caps) {
+ for (auto cap : caps) {
+ // Check the capability refers to a valid region.
+ if (GetCapabilityType(cap) == CapabilityType::MapRegion) {
+ R_TRY(CheckMapRegion(kernel, cap));
+ }
+ }
+
+ R_SUCCEED();
+}
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/k_capabilities.h b/src/core/hle/kernel/k_capabilities.h
new file mode 100644
index 000000000..de766c811
--- /dev/null
+++ b/src/core/hle/kernel/k_capabilities.h
@@ -0,0 +1,295 @@
+
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <bitset>
+#include <span>
+
+#include "common/bit_field.h"
+#include "common/common_types.h"
+
+#include "core/hle/kernel/svc_types.h"
+#include "core/hle/result.h"
+
+namespace Kernel {
+
+class KPageTable;
+class KernelCore;
+
+class KCapabilities {
+public:
+ constexpr explicit KCapabilities() = default;
+
+ Result InitializeForKip(std::span<const u32> kern_caps, KPageTable* page_table);
+ Result InitializeForUser(std::span<const u32> user_caps, KPageTable* page_table);
+
+ static Result CheckCapabilities(KernelCore& kernel, std::span<const u32> user_caps);
+
+ constexpr u64 GetCoreMask() const {
+ return m_core_mask;
+ }
+
+ constexpr u64 GetPhysicalCoreMask() const {
+ return m_phys_core_mask;
+ }
+
+ constexpr u64 GetPriorityMask() const {
+ return m_priority_mask;
+ }
+
+ constexpr s32 GetHandleTableSize() const {
+ return m_handle_table_size;
+ }
+
+ constexpr const Svc::SvcAccessFlagSet& GetSvcPermissions() const {
+ return m_svc_access_flags;
+ }
+
+ constexpr bool IsPermittedSvc(u32 id) const {
+ return (id < m_svc_access_flags.size()) && m_svc_access_flags[id];
+ }
+
+ constexpr bool IsPermittedInterrupt(u32 id) const {
+ return (id < m_irq_access_flags.size()) && m_irq_access_flags[id];
+ }
+
+ constexpr bool IsPermittedDebug() const {
+ return DebugFlags{m_debug_capabilities}.allow_debug.Value() != 0;
+ }
+
+ constexpr bool CanForceDebug() const {
+ return DebugFlags{m_debug_capabilities}.force_debug.Value() != 0;
+ }
+
+ constexpr u32 GetIntendedKernelMajorVersion() const {
+ return KernelVersion{m_intended_kernel_version}.major_version;
+ }
+
+ constexpr u32 GetIntendedKernelMinorVersion() const {
+ return KernelVersion{m_intended_kernel_version}.minor_version;
+ }
+
+private:
+ static constexpr size_t InterruptIdCount = 0x400;
+ using InterruptFlagSet = std::bitset<InterruptIdCount>;
+
+ enum class CapabilityType : u32 {
+ CorePriority = (1U << 3) - 1,
+ SyscallMask = (1U << 4) - 1,
+ MapRange = (1U << 6) - 1,
+ MapIoPage = (1U << 7) - 1,
+ MapRegion = (1U << 10) - 1,
+ InterruptPair = (1U << 11) - 1,
+ ProgramType = (1U << 13) - 1,
+ KernelVersion = (1U << 14) - 1,
+ HandleTable = (1U << 15) - 1,
+ DebugFlags = (1U << 16) - 1,
+
+ Invalid = 0U,
+ Padding = ~0U,
+ };
+
+ using RawCapabilityValue = u32;
+
+ static constexpr CapabilityType GetCapabilityType(const RawCapabilityValue value) {
+ return static_cast<CapabilityType>((~value & (value + 1)) - 1);
+ }
+
+ static constexpr u32 GetCapabilityFlag(CapabilityType type) {
+ return static_cast<u32>(type) + 1;
+ }
+
+ template <CapabilityType Type>
+ static constexpr inline u32 CapabilityFlag = static_cast<u32>(Type) + 1;
+
+ template <CapabilityType Type>
+ static constexpr inline u32 CapabilityId = std::countr_zero(CapabilityFlag<Type>);
+
+ union CorePriority {
+ static_assert(CapabilityId<CapabilityType::CorePriority> + 1 == 4);
+
+ RawCapabilityValue raw;
+ BitField<0, 4, CapabilityType> id;
+ BitField<4, 6, u32> lowest_thread_priority;
+ BitField<10, 6, u32> highest_thread_priority;
+ BitField<16, 8, u32> minimum_core_id;
+ BitField<24, 8, u32> maximum_core_id;
+ };
+
+ union SyscallMask {
+ static_assert(CapabilityId<CapabilityType::SyscallMask> + 1 == 5);
+
+ RawCapabilityValue raw;
+ BitField<0, 5, CapabilityType> id;
+ BitField<5, 24, u32> mask;
+ BitField<29, 3, u32> index;
+ };
+
+ // #undef MESOSPHERE_ENABLE_LARGE_PHYSICAL_ADDRESS_CAPABILITIES
+ static constexpr u64 PhysicalMapAllowedMask = (1ULL << 36) - 1;
+
+ union MapRange {
+ static_assert(CapabilityId<CapabilityType::MapRange> + 1 == 7);
+
+ RawCapabilityValue raw;
+ BitField<0, 7, CapabilityType> id;
+ BitField<7, 24, u32> address;
+ BitField<31, 1, u32> read_only;
+ };
+
+ union MapRangeSize {
+ static_assert(CapabilityId<CapabilityType::MapRange> + 1 == 7);
+
+ RawCapabilityValue raw;
+ BitField<0, 7, CapabilityType> id;
+ BitField<7, 20, u32> pages;
+ BitField<27, 4, u32> reserved;
+ BitField<31, 1, u32> normal;
+ };
+
+ union MapIoPage {
+ static_assert(CapabilityId<CapabilityType::MapIoPage> + 1 == 8);
+
+ RawCapabilityValue raw;
+ BitField<0, 8, CapabilityType> id;
+ BitField<8, 24, u32> address;
+ };
+
+ enum class RegionType : u32 {
+ NoMapping = 0,
+ KernelTraceBuffer = 1,
+ OnMemoryBootImage = 2,
+ DTB = 3,
+ };
+
+ union MapRegion {
+ static_assert(CapabilityId<CapabilityType::MapRegion> + 1 == 11);
+
+ RawCapabilityValue raw;
+ BitField<0, 11, CapabilityType> id;
+ BitField<11, 6, RegionType> region0;
+ BitField<17, 1, u32> read_only0;
+ BitField<18, 6, RegionType> region1;
+ BitField<24, 1, u32> read_only1;
+ BitField<25, 6, RegionType> region2;
+ BitField<31, 1, u32> read_only2;
+ };
+
+ union InterruptPair {
+ static_assert(CapabilityId<CapabilityType::InterruptPair> + 1 == 12);
+
+ RawCapabilityValue raw;
+ BitField<0, 12, CapabilityType> id;
+ BitField<12, 10, u32> interrupt_id0;
+ BitField<22, 10, u32> interrupt_id1;
+ };
+
+ union ProgramType {
+ static_assert(CapabilityId<CapabilityType::ProgramType> + 1 == 14);
+
+ RawCapabilityValue raw;
+ BitField<0, 14, CapabilityType> id;
+ BitField<14, 3, u32> type;
+ BitField<17, 15, u32> reserved;
+ };
+
+ union KernelVersion {
+ static_assert(CapabilityId<CapabilityType::KernelVersion> + 1 == 15);
+
+ RawCapabilityValue raw;
+ BitField<0, 15, CapabilityType> id;
+ BitField<15, 4, u32> major_version;
+ BitField<19, 13, u32> minor_version;
+ };
+
+ union HandleTable {
+ static_assert(CapabilityId<CapabilityType::HandleTable> + 1 == 16);
+
+ RawCapabilityValue raw;
+ BitField<0, 16, CapabilityType> id;
+ BitField<16, 10, u32> size;
+ BitField<26, 6, u32> reserved;
+ };
+
+ union DebugFlags {
+ static_assert(CapabilityId<CapabilityType::DebugFlags> + 1 == 17);
+
+ RawCapabilityValue raw;
+ BitField<0, 17, CapabilityType> id;
+ BitField<17, 1, u32> allow_debug;
+ BitField<18, 1, u32> force_debug;
+ BitField<19, 13, u32> reserved;
+ };
+
+ static_assert(sizeof(CorePriority) == 4);
+ static_assert(sizeof(SyscallMask) == 4);
+ static_assert(sizeof(MapRange) == 4);
+ static_assert(sizeof(MapRangeSize) == 4);
+ static_assert(sizeof(MapIoPage) == 4);
+ static_assert(sizeof(MapRegion) == 4);
+ static_assert(sizeof(InterruptPair) == 4);
+ static_assert(sizeof(ProgramType) == 4);
+ static_assert(sizeof(KernelVersion) == 4);
+ static_assert(sizeof(HandleTable) == 4);
+ static_assert(sizeof(DebugFlags) == 4);
+
+ static constexpr u32 InitializeOnceFlags =
+ CapabilityFlag<CapabilityType::CorePriority> | CapabilityFlag<CapabilityType::ProgramType> |
+ CapabilityFlag<CapabilityType::KernelVersion> |
+ CapabilityFlag<CapabilityType::HandleTable> | CapabilityFlag<CapabilityType::DebugFlags>;
+
+ static const u32 PaddingInterruptId = 0x3FF;
+ static_assert(PaddingInterruptId < InterruptIdCount);
+
+private:
+ constexpr bool SetSvcAllowed(u32 id) {
+ if (id < m_svc_access_flags.size()) [[likely]] {
+ m_svc_access_flags[id] = true;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ constexpr bool SetInterruptPermitted(u32 id) {
+ if (id < m_irq_access_flags.size()) [[likely]] {
+ m_irq_access_flags[id] = true;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ Result SetCorePriorityCapability(const u32 cap);
+ Result SetSyscallMaskCapability(const u32 cap, u32& set_svc);
+ Result MapRange_(const u32 cap, const u32 size_cap, KPageTable* page_table);
+ Result MapIoPage_(const u32 cap, KPageTable* page_table);
+ Result MapRegion_(const u32 cap, KPageTable* page_table);
+ Result SetInterruptPairCapability(const u32 cap);
+ Result SetProgramTypeCapability(const u32 cap);
+ Result SetKernelVersionCapability(const u32 cap);
+ Result SetHandleTableCapability(const u32 cap);
+ Result SetDebugFlagsCapability(const u32 cap);
+
+ template <typename F>
+ static Result ProcessMapRegionCapability(const u32 cap, F f);
+ static Result CheckMapRegion(KernelCore& kernel, const u32 cap);
+
+ Result SetCapability(const u32 cap, u32& set_flags, u32& set_svc, KPageTable* page_table);
+ Result SetCapabilities(std::span<const u32> caps, KPageTable* page_table);
+
+private:
+ Svc::SvcAccessFlagSet m_svc_access_flags{};
+ InterruptFlagSet m_irq_access_flags{};
+ u64 m_core_mask{};
+ u64 m_phys_core_mask{};
+ u64 m_priority_mask{};
+ u32 m_debug_capabilities{};
+ s32 m_handle_table_size{};
+ u32 m_intended_kernel_version{};
+ u32 m_program_type{};
+};
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/k_client_port.cpp b/src/core/hle/kernel/k_client_port.cpp
index 2ec623a58..40e09e532 100644
--- a/src/core/hle/kernel/k_client_port.cpp
+++ b/src/core/hle/kernel/k_client_port.cpp
@@ -2,7 +2,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/scope_exit.h"
-#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/kernel/k_client_port.h"
#include "core/hle/kernel/k_port.h"
#include "core/hle/kernel/k_scheduler.h"
@@ -12,26 +11,21 @@
namespace Kernel {
-KClientPort::KClientPort(KernelCore& kernel_) : KSynchronizationObject{kernel_} {}
+KClientPort::KClientPort(KernelCore& kernel) : KSynchronizationObject{kernel} {}
KClientPort::~KClientPort() = default;
-void KClientPort::Initialize(KPort* parent_port_, s32 max_sessions_, std::string&& name_) {
+void KClientPort::Initialize(KPort* parent, s32 max_sessions) {
// Set member variables.
- num_sessions = 0;
- peak_sessions = 0;
- parent = parent_port_;
- max_sessions = max_sessions_;
- name = std::move(name_);
+ m_num_sessions = 0;
+ m_peak_sessions = 0;
+ m_parent = parent;
+ m_max_sessions = max_sessions;
}
void KClientPort::OnSessionFinalized() {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
- // This might happen if a session was improperly used with this port.
- ASSERT_MSG(num_sessions > 0, "num_sessions is invalid");
-
- const auto prev = num_sessions--;
- if (prev == max_sessions) {
+ if (const auto prev = m_num_sessions--; prev == m_max_sessions) {
this->NotifyAvailable();
}
}
@@ -48,80 +42,81 @@ bool KClientPort::IsServerClosed() const {
void KClientPort::Destroy() {
// Note with our parent that we're closed.
- parent->OnClientClosed();
+ m_parent->OnClientClosed();
// Close our reference to our parent.
- parent->Close();
+ m_parent->Close();
}
bool KClientPort::IsSignaled() const {
- return num_sessions < max_sessions;
+ return m_num_sessions.load() < m_max_sessions;
}
Result KClientPort::CreateSession(KClientSession** out) {
+ // Declare the session we're going to allocate.
+ KSession* session{};
+
// Reserve a new session from the resource limit.
- KScopedResourceReservation session_reservation(kernel.CurrentProcess()->GetResourceLimit(),
- LimitableResource::SessionCountMax);
+ //! FIXME: we are reserving this from the wrong resource limit!
+ KScopedResourceReservation session_reservation(
+ m_kernel.ApplicationProcess()->GetResourceLimit(), LimitableResource::SessionCountMax);
R_UNLESS(session_reservation.Succeeded(), ResultLimitReached);
+ // Allocate a session normally.
+ session = KSession::Create(m_kernel);
+
+ // Check that we successfully created a session.
+ R_UNLESS(session != nullptr, ResultOutOfResource);
+
// Update the session counts.
{
+ ON_RESULT_FAILURE {
+ session->Close();
+ };
+
// Atomically increment the number of sessions.
s32 new_sessions{};
{
- const auto max = max_sessions;
- auto cur_sessions = num_sessions.load(std::memory_order_acquire);
+ const auto max = m_max_sessions;
+ auto cur_sessions = m_num_sessions.load(std::memory_order_acquire);
do {
R_UNLESS(cur_sessions < max, ResultOutOfSessions);
new_sessions = cur_sessions + 1;
- } while (!num_sessions.compare_exchange_weak(cur_sessions, new_sessions,
- std::memory_order_relaxed));
+ } while (!m_num_sessions.compare_exchange_weak(cur_sessions, new_sessions,
+ std::memory_order_relaxed));
}
// Atomically update the peak session tracking.
{
- auto peak = peak_sessions.load(std::memory_order_acquire);
+ auto peak = m_peak_sessions.load(std::memory_order_acquire);
do {
if (peak >= new_sessions) {
break;
}
- } while (!peak_sessions.compare_exchange_weak(peak, new_sessions,
- std::memory_order_relaxed));
+ } while (!m_peak_sessions.compare_exchange_weak(peak, new_sessions,
+ std::memory_order_relaxed));
}
}
- // Create a new session.
- KSession* session = KSession::Create(kernel);
- if (session == nullptr) {
- // Decrement the session count.
- const auto prev = num_sessions--;
- if (prev == max_sessions) {
- this->NotifyAvailable();
- }
-
- return ResultOutOfResource;
- }
-
// Initialize the session.
- session->Initialize(this, parent->GetName());
+ session->Initialize(this, m_parent->GetName());
// Commit the session reservation.
session_reservation.Commit();
// Register the session.
- KSession::Register(kernel, session);
- auto session_guard = SCOPE_GUARD({
+ KSession::Register(m_kernel, session);
+ ON_RESULT_FAILURE {
session->GetClientSession().Close();
session->GetServerSession().Close();
- });
+ };
// Enqueue the session with our parent.
- R_TRY(parent->EnqueueSession(std::addressof(session->GetServerSession())));
+ R_TRY(m_parent->EnqueueSession(std::addressof(session->GetServerSession())));
// We succeeded, so set the output.
- session_guard.Cancel();
*out = std::addressof(session->GetClientSession());
- return ResultSuccess;
+ R_SUCCEED();
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_client_port.h b/src/core/hle/kernel/k_client_port.h
index 81046fb86..23db06ddf 100644
--- a/src/core/hle/kernel/k_client_port.h
+++ b/src/core/hle/kernel/k_client_port.h
@@ -4,7 +4,6 @@
#pragma once
#include <memory>
-#include <string>
#include "common/common_types.h"
#include "core/hle/kernel/k_synchronization_object.h"
@@ -15,34 +14,33 @@ namespace Kernel {
class KClientSession;
class KernelCore;
class KPort;
-class SessionRequestManager;
class KClientPort final : public KSynchronizationObject {
KERNEL_AUTOOBJECT_TRAITS(KClientPort, KSynchronizationObject);
public:
- explicit KClientPort(KernelCore& kernel_);
+ explicit KClientPort(KernelCore& kernel);
~KClientPort() override;
- void Initialize(KPort* parent_, s32 max_sessions_, std::string&& name_);
+ void Initialize(KPort* parent, s32 max_sessions);
void OnSessionFinalized();
void OnServerClosed();
const KPort* GetParent() const {
- return parent;
+ return m_parent;
}
KPort* GetParent() {
- return parent;
+ return m_parent;
}
s32 GetNumSessions() const {
- return num_sessions;
+ return m_num_sessions;
}
s32 GetPeakSessions() const {
- return peak_sessions;
+ return m_peak_sessions;
}
s32 GetMaxSessions() const {
- return max_sessions;
+ return m_max_sessions;
}
bool IsLight() const;
@@ -55,10 +53,10 @@ public:
Result CreateSession(KClientSession** out);
private:
- std::atomic<s32> num_sessions{};
- std::atomic<s32> peak_sessions{};
- s32 max_sessions{};
- KPort* parent{};
+ std::atomic<s32> m_num_sessions{};
+ std::atomic<s32> m_peak_sessions{};
+ s32 m_max_sessions{};
+ KPort* m_parent{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_client_session.cpp b/src/core/hle/kernel/k_client_session.cpp
index b4197a8d5..72b66270d 100644
--- a/src/core/hle/kernel/k_client_session.cpp
+++ b/src/core/hle/kernel/k_client_session.cpp
@@ -2,7 +2,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/scope_exit.h"
-#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/kernel/k_client_session.h"
#include "core/hle/kernel/k_server_session.h"
#include "core/hle/kernel/k_session.h"
@@ -13,28 +12,28 @@ namespace Kernel {
static constexpr u32 MessageBufferSize = 0x100;
-KClientSession::KClientSession(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_} {}
+KClientSession::KClientSession(KernelCore& kernel) : KAutoObjectWithSlabHeapAndContainer{kernel} {}
KClientSession::~KClientSession() = default;
void KClientSession::Destroy() {
- parent->OnClientClosed();
- parent->Close();
+ m_parent->OnClientClosed();
+ m_parent->Close();
}
void KClientSession::OnServerClosed() {}
Result KClientSession::SendSyncRequest() {
// Create a session request.
- KSessionRequest* request = KSessionRequest::Create(kernel);
+ KSessionRequest* request = KSessionRequest::Create(m_kernel);
R_UNLESS(request != nullptr, ResultOutOfResource);
SCOPE_EXIT({ request->Close(); });
// Initialize the request.
- request->Initialize(nullptr, GetCurrentThread(kernel).GetTLSAddress(), MessageBufferSize);
+ request->Initialize(nullptr, GetInteger(GetCurrentThread(m_kernel).GetTlsAddress()),
+ MessageBufferSize);
// Send the request.
- return parent->GetServerSession().OnRequest(request);
+ R_RETURN(m_parent->GetServerSession().OnRequest(request));
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_client_session.h b/src/core/hle/kernel/k_client_session.h
index b4a19c546..9b62e55e4 100644
--- a/src/core/hle/kernel/k_client_session.h
+++ b/src/core/hle/kernel/k_client_session.h
@@ -30,20 +30,19 @@ class KClientSession final
KERNEL_AUTOOBJECT_TRAITS(KClientSession, KAutoObject);
public:
- explicit KClientSession(KernelCore& kernel_);
+ explicit KClientSession(KernelCore& kernel);
~KClientSession() override;
- void Initialize(KSession* parent_session_, std::string&& name_) {
+ void Initialize(KSession* parent) {
// Set member variables.
- parent = parent_session_;
- name = std::move(name_);
+ m_parent = parent;
}
void Destroy() override;
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
KSession* GetParent() const {
- return parent;
+ return m_parent;
}
Result SendSyncRequest();
@@ -51,7 +50,7 @@ public:
void OnServerClosed();
private:
- KSession* parent{};
+ KSession* m_parent{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_code_memory.cpp b/src/core/hle/kernel/k_code_memory.cpp
index d9da1e600..3583bee44 100644
--- a/src/core/hle/kernel/k_code_memory.cpp
+++ b/src/core/hle/kernel/k_code_memory.cpp
@@ -16,18 +16,19 @@
namespace Kernel {
-KCodeMemory::KCodeMemory(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_}, m_lock(kernel_) {}
+KCodeMemory::KCodeMemory(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel}, m_lock(kernel) {}
-Result KCodeMemory::Initialize(Core::DeviceMemory& device_memory, VAddr addr, size_t size) {
+Result KCodeMemory::Initialize(Core::DeviceMemory& device_memory, KProcessAddress addr,
+ size_t size) {
// Set members.
- m_owner = kernel.CurrentProcess();
+ m_owner = GetCurrentProcessPointer(m_kernel);
// Get the owner page table.
auto& page_table = m_owner->PageTable();
// Construct the page group.
- m_page_group.emplace(kernel, page_table.GetBlockInfoManager());
+ m_page_group.emplace(m_kernel, page_table.GetBlockInfoManager());
// Lock the memory.
R_TRY(page_table.LockForCodeMemory(std::addressof(*m_page_group), addr, size))
@@ -45,7 +46,7 @@ Result KCodeMemory::Initialize(Core::DeviceMemory& device_memory, VAddr addr, si
m_is_mapped = false;
// We succeeded.
- return ResultSuccess;
+ R_SUCCEED();
}
void KCodeMemory::Finalize() {
@@ -63,7 +64,7 @@ void KCodeMemory::Finalize() {
m_owner->Close();
}
-Result KCodeMemory::Map(VAddr address, size_t size) {
+Result KCodeMemory::Map(KProcessAddress address, size_t size) {
// Validate the size.
R_UNLESS(m_page_group->GetNumPages() == Common::DivideUp(size, PageSize), ResultInvalidSize);
@@ -74,16 +75,16 @@ Result KCodeMemory::Map(VAddr address, size_t size) {
R_UNLESS(!m_is_mapped, ResultInvalidState);
// Map the memory.
- R_TRY(kernel.CurrentProcess()->PageTable().MapPages(
+ R_TRY(GetCurrentProcess(m_kernel).PageTable().MapPageGroup(
address, *m_page_group, KMemoryState::CodeOut, KMemoryPermission::UserReadWrite));
// Mark ourselves as mapped.
m_is_mapped = true;
- return ResultSuccess;
+ R_SUCCEED();
}
-Result KCodeMemory::Unmap(VAddr address, size_t size) {
+Result KCodeMemory::Unmap(KProcessAddress address, size_t size) {
// Validate the size.
R_UNLESS(m_page_group->GetNumPages() == Common::DivideUp(size, PageSize), ResultInvalidSize);
@@ -91,16 +92,16 @@ Result KCodeMemory::Unmap(VAddr address, size_t size) {
KScopedLightLock lk(m_lock);
// Unmap the memory.
- R_TRY(kernel.CurrentProcess()->PageTable().UnmapPages(address, *m_page_group,
- KMemoryState::CodeOut));
+ R_TRY(GetCurrentProcess(m_kernel).PageTable().UnmapPageGroup(address, *m_page_group,
+ KMemoryState::CodeOut));
// Mark ourselves as unmapped.
m_is_mapped = false;
- return ResultSuccess;
+ R_SUCCEED();
}
-Result KCodeMemory::MapToOwner(VAddr address, size_t size, Svc::MemoryPermission perm) {
+Result KCodeMemory::MapToOwner(KProcessAddress address, size_t size, Svc::MemoryPermission perm) {
// Validate the size.
R_UNLESS(m_page_group->GetNumPages() == Common::DivideUp(size, PageSize), ResultInvalidSize);
@@ -125,16 +126,16 @@ Result KCodeMemory::MapToOwner(VAddr address, size_t size, Svc::MemoryPermission
}
// Map the memory.
- R_TRY(
- m_owner->PageTable().MapPages(address, *m_page_group, KMemoryState::GeneratedCode, k_perm));
+ R_TRY(m_owner->PageTable().MapPageGroup(address, *m_page_group, KMemoryState::GeneratedCode,
+ k_perm));
// Mark ourselves as mapped.
m_is_owner_mapped = true;
- return ResultSuccess;
+ R_SUCCEED();
}
-Result KCodeMemory::UnmapFromOwner(VAddr address, size_t size) {
+Result KCodeMemory::UnmapFromOwner(KProcessAddress address, size_t size) {
// Validate the size.
R_UNLESS(m_page_group->GetNumPages() == Common::DivideUp(size, PageSize), ResultInvalidSize);
@@ -142,12 +143,12 @@ Result KCodeMemory::UnmapFromOwner(VAddr address, size_t size) {
KScopedLightLock lk(m_lock);
// Unmap the memory.
- R_TRY(m_owner->PageTable().UnmapPages(address, *m_page_group, KMemoryState::GeneratedCode));
+ R_TRY(m_owner->PageTable().UnmapPageGroup(address, *m_page_group, KMemoryState::GeneratedCode));
// Mark ourselves as unmapped.
m_is_owner_mapped = false;
- return ResultSuccess;
+ R_SUCCEED();
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_code_memory.h b/src/core/hle/kernel/k_code_memory.h
index 5b260b385..26fe6b3dc 100644
--- a/src/core/hle/kernel/k_code_memory.h
+++ b/src/core/hle/kernel/k_code_memory.h
@@ -5,12 +5,12 @@
#include <optional>
-#include "common/common_types.h"
#include "core/device_memory.h"
#include "core/hle/kernel/k_auto_object.h"
#include "core/hle/kernel/k_light_lock.h"
#include "core/hle/kernel/k_page_group.h"
#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/slab_helpers.h"
#include "core/hle/kernel/svc_types.h"
#include "core/hle/result.h"
@@ -29,25 +29,25 @@ class KCodeMemory final
KERNEL_AUTOOBJECT_TRAITS(KCodeMemory, KAutoObject);
public:
- explicit KCodeMemory(KernelCore& kernel_);
+ explicit KCodeMemory(KernelCore& kernel);
- Result Initialize(Core::DeviceMemory& device_memory, VAddr address, size_t size);
+ Result Initialize(Core::DeviceMemory& device_memory, KProcessAddress address, size_t size);
void Finalize() override;
- Result Map(VAddr address, size_t size);
- Result Unmap(VAddr address, size_t size);
- Result MapToOwner(VAddr address, size_t size, Svc::MemoryPermission perm);
- Result UnmapFromOwner(VAddr address, size_t size);
+ Result Map(KProcessAddress address, size_t size);
+ Result Unmap(KProcessAddress address, size_t size);
+ Result MapToOwner(KProcessAddress address, size_t size, Svc::MemoryPermission perm);
+ Result UnmapFromOwner(KProcessAddress address, size_t size);
bool IsInitialized() const override {
return m_is_initialized;
}
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
KProcess* GetOwner() const override {
return m_owner;
}
- VAddr GetSourceAddress() const {
+ KProcessAddress GetSourceAddress() const {
return m_address;
}
size_t GetSize() const {
@@ -57,7 +57,7 @@ public:
private:
std::optional<KPageGroup> m_page_group{};
KProcess* m_owner{};
- VAddr m_address{};
+ KProcessAddress m_address{};
KLightLock m_lock;
bool m_is_initialized{};
bool m_is_owner_mapped{};
diff --git a/src/core/hle/kernel/k_condition_variable.cpp b/src/core/hle/kernel/k_condition_variable.cpp
index 124149697..efbac0e6a 100644
--- a/src/core/hle/kernel/k_condition_variable.cpp
+++ b/src/core/hle/kernel/k_condition_variable.cpp
@@ -4,7 +4,6 @@
#include "core/arm/exclusive_monitor.h"
#include "core/core.h"
#include "core/hle/kernel/k_condition_variable.h"
-#include "core/hle/kernel/k_linked_list.h"
#include "core/hle/kernel/k_process.h"
#include "core/hle/kernel/k_scheduler.h"
#include "core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h"
@@ -19,36 +18,41 @@ namespace Kernel {
namespace {
-bool ReadFromUser(Core::System& system, u32* out, VAddr address) {
- *out = system.Memory().Read32(address);
+bool ReadFromUser(KernelCore& kernel, u32* out, KProcessAddress address) {
+ *out = GetCurrentMemory(kernel).Read32(GetInteger(address));
return true;
}
-bool WriteToUser(Core::System& system, VAddr address, const u32* p) {
- system.Memory().Write32(address, *p);
+bool WriteToUser(KernelCore& kernel, KProcessAddress address, const u32* p) {
+ GetCurrentMemory(kernel).Write32(GetInteger(address), *p);
return true;
}
-bool UpdateLockAtomic(Core::System& system, u32* out, VAddr address, u32 if_zero,
+bool UpdateLockAtomic(Core::System& system, u32* out, KProcessAddress address, u32 if_zero,
u32 new_orr_mask) {
auto& monitor = system.Monitor();
const auto current_core = system.Kernel().CurrentPhysicalCoreIndex();
- // Load the value from the address.
- const auto expected = monitor.ExclusiveRead32(current_core, address);
+ u32 expected{};
- // Orr in the new mask.
- u32 value = expected | new_orr_mask;
+ while (true) {
+ // Load the value from the address.
+ expected = monitor.ExclusiveRead32(current_core, GetInteger(address));
- // If the value is zero, use the if_zero value, otherwise use the newly orr'd value.
- if (!expected) {
- value = if_zero;
- }
+ // Orr in the new mask.
+ u32 value = expected | new_orr_mask;
+
+ // If the value is zero, use the if_zero value, otherwise use the newly orr'd value.
+ if (!expected) {
+ value = if_zero;
+ }
+
+ // Try to store.
+ if (monitor.ExclusiveWrite32(current_core, GetInteger(address), value)) {
+ break;
+ }
- // Try to store.
- if (!monitor.ExclusiveWrite32(current_core, address, value)) {
// If we failed to store, try again.
- return UpdateLockAtomic(system, out, address, if_zero, new_orr_mask);
}
// We're done.
@@ -58,8 +62,8 @@ bool UpdateLockAtomic(Core::System& system, u32* out, VAddr address, u32 if_zero
class ThreadQueueImplForKConditionVariableWaitForAddress final : public KThreadQueue {
public:
- explicit ThreadQueueImplForKConditionVariableWaitForAddress(KernelCore& kernel_)
- : KThreadQueue(kernel_) {}
+ explicit ThreadQueueImplForKConditionVariableWaitForAddress(KernelCore& kernel)
+ : KThreadQueue(kernel) {}
void CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task) override {
// Remove the thread as a waiter from its owner.
@@ -76,8 +80,8 @@ private:
public:
explicit ThreadQueueImplForKConditionVariableWaitConditionVariable(
- KernelCore& kernel_, KConditionVariable::ThreadTree* t)
- : KThreadQueue(kernel_), m_tree(t) {}
+ KernelCore& kernel, KConditionVariable::ThreadTree* t)
+ : KThreadQueue(kernel), m_tree(t) {}
void CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task) override {
// Remove the thread as a waiter from its owner.
@@ -98,111 +102,113 @@ public:
} // namespace
-KConditionVariable::KConditionVariable(Core::System& system_)
- : system{system_}, kernel{system.Kernel()} {}
+KConditionVariable::KConditionVariable(Core::System& system)
+ : m_system{system}, m_kernel{system.Kernel()} {}
KConditionVariable::~KConditionVariable() = default;
-Result KConditionVariable::SignalToAddress(VAddr addr) {
- KThread* owner_thread = GetCurrentThreadPointer(kernel);
+Result KConditionVariable::SignalToAddress(KProcessAddress addr) {
+ KThread* owner_thread = GetCurrentThreadPointer(m_kernel);
// Signal the address.
{
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// Remove waiter thread.
- s32 num_waiters{};
- KThread* next_owner_thread =
- owner_thread->RemoveWaiterByKey(std::addressof(num_waiters), addr);
+ bool has_waiters{};
+ KThread* const next_owner_thread =
+ owner_thread->RemoveUserWaiterByKey(std::addressof(has_waiters), addr);
// Determine the next tag.
u32 next_value{};
if (next_owner_thread != nullptr) {
next_value = next_owner_thread->GetAddressKeyValue();
- if (num_waiters > 1) {
+ if (has_waiters) {
next_value |= Svc::HandleWaitMask;
}
+ }
- // Write the value to userspace.
- Result result{ResultSuccess};
- if (WriteToUser(system, addr, std::addressof(next_value))) [[likely]] {
- result = ResultSuccess;
- } else {
- result = ResultInvalidCurrentMemory;
- }
+ // Synchronize memory before proceeding.
+ std::atomic_thread_fence(std::memory_order_seq_cst);
- // Signal the next owner thread.
- next_owner_thread->EndWait(result);
- return result;
+ // Write the value to userspace.
+ Result result{ResultSuccess};
+ if (WriteToUser(m_kernel, addr, std::addressof(next_value))) [[likely]] {
+ result = ResultSuccess;
} else {
- // Just write the value to userspace.
- R_UNLESS(WriteToUser(system, addr, std::addressof(next_value)),
- ResultInvalidCurrentMemory);
+ result = ResultInvalidCurrentMemory;
+ }
- return ResultSuccess;
+ // If necessary, signal the next owner thread.
+ if (next_owner_thread != nullptr) {
+ next_owner_thread->EndWait(result);
}
+
+ R_RETURN(result);
}
}
-Result KConditionVariable::WaitForAddress(Handle handle, VAddr addr, u32 value) {
- KThread* cur_thread = GetCurrentThreadPointer(kernel);
- ThreadQueueImplForKConditionVariableWaitForAddress wait_queue(kernel);
+Result KConditionVariable::WaitForAddress(Handle handle, KProcessAddress addr, u32 value) {
+ KThread* cur_thread = GetCurrentThreadPointer(m_kernel);
+ ThreadQueueImplForKConditionVariableWaitForAddress wait_queue(m_kernel);
// Wait for the address.
KThread* owner_thread{};
{
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// Check if the thread should terminate.
R_UNLESS(!cur_thread->IsTerminationRequested(), ResultTerminationRequested);
// Read the tag from userspace.
u32 test_tag{};
- R_UNLESS(ReadFromUser(system, std::addressof(test_tag), addr), ResultInvalidCurrentMemory);
+ R_UNLESS(ReadFromUser(m_kernel, std::addressof(test_tag), addr),
+ ResultInvalidCurrentMemory);
// If the tag isn't the handle (with wait mask), we're done.
R_SUCCEED_IF(test_tag != (handle | Svc::HandleWaitMask));
// Get the lock owner thread.
- owner_thread = kernel.CurrentProcess()
- ->GetHandleTable()
+ owner_thread = GetCurrentProcess(m_kernel)
+ .GetHandleTable()
.GetObjectWithoutPseudoHandle<KThread>(handle)
.ReleasePointerUnsafe();
R_UNLESS(owner_thread != nullptr, ResultInvalidHandle);
// Update the lock.
- cur_thread->SetAddressKey(addr, value);
+ cur_thread->SetUserAddressKey(addr, value);
owner_thread->AddWaiter(cur_thread);
// Begin waiting.
cur_thread->BeginWait(std::addressof(wait_queue));
cur_thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::ConditionVar);
- cur_thread->SetMutexWaitAddressForDebugging(addr);
}
// Close our reference to the owner thread, now that the wait is over.
owner_thread->Close();
// Get the wait result.
- return cur_thread->GetWaitResult();
+ R_RETURN(cur_thread->GetWaitResult());
}
void KConditionVariable::SignalImpl(KThread* thread) {
// Check pre-conditions.
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Update the tag.
- VAddr address = thread->GetAddressKey();
+ KProcessAddress address = thread->GetAddressKey();
u32 own_tag = thread->GetAddressKeyValue();
u32 prev_tag{};
bool can_access{};
{
- // TODO(bunnei): We should disable interrupts here via KScopedInterruptDisable.
+ // NOTE: If scheduler lock is not held here, interrupt disable is required.
+ // KScopedInterruptDisable di;
+
// TODO(bunnei): We should call CanAccessAtomic(..) here.
can_access = true;
if (can_access) [[likely]] {
- UpdateLockAtomic(system, std::addressof(prev_tag), address, own_tag,
+ UpdateLockAtomic(m_system, std::addressof(prev_tag), address, own_tag,
Svc::HandleWaitMask);
}
}
@@ -213,8 +219,8 @@ void KConditionVariable::SignalImpl(KThread* thread) {
thread->EndWait(ResultSuccess);
} else {
// Get the previous owner.
- KThread* owner_thread = kernel.CurrentProcess()
- ->GetHandleTable()
+ KThread* owner_thread = GetCurrentProcess(m_kernel)
+ .GetHandleTable()
.GetObjectWithoutPseudoHandle<KThread>(
static_cast<Handle>(prev_tag & ~Svc::HandleWaitMask))
.ReleasePointerUnsafe();
@@ -238,55 +244,58 @@ void KConditionVariable::Signal(u64 cv_key, s32 count) {
// Perform signaling.
s32 num_waiters{};
{
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
- auto it = thread_tree.nfind_key({cv_key, -1});
- while ((it != thread_tree.end()) && (count <= 0 || num_waiters < count) &&
+ auto it = m_tree.nfind_key({cv_key, -1});
+ while ((it != m_tree.end()) && (count <= 0 || num_waiters < count) &&
(it->GetConditionVariableKey() == cv_key)) {
KThread* target_thread = std::addressof(*it);
- this->SignalImpl(target_thread);
- it = thread_tree.erase(it);
+ it = m_tree.erase(it);
target_thread->ClearConditionVariable();
+
+ this->SignalImpl(target_thread);
+
++num_waiters;
}
// If we have no waiters, clear the has waiter flag.
- if (it == thread_tree.end() || it->GetConditionVariableKey() != cv_key) {
+ if (it == m_tree.end() || it->GetConditionVariableKey() != cv_key) {
const u32 has_waiter_flag{};
- WriteToUser(system, cv_key, std::addressof(has_waiter_flag));
+ WriteToUser(m_kernel, cv_key, std::addressof(has_waiter_flag));
}
}
}
-Result KConditionVariable::Wait(VAddr addr, u64 key, u32 value, s64 timeout) {
+Result KConditionVariable::Wait(KProcessAddress addr, u64 key, u32 value, s64 timeout) {
// Prepare to wait.
- KThread* cur_thread = GetCurrentThreadPointer(kernel);
- ThreadQueueImplForKConditionVariableWaitConditionVariable wait_queue(
- kernel, std::addressof(thread_tree));
+ KThread* cur_thread = GetCurrentThreadPointer(m_kernel);
+ KHardwareTimer* timer{};
+ ThreadQueueImplForKConditionVariableWaitConditionVariable wait_queue(m_kernel,
+ std::addressof(m_tree));
{
- KScopedSchedulerLockAndSleep slp(kernel, cur_thread, timeout);
+ KScopedSchedulerLockAndSleep slp(m_kernel, std::addressof(timer), cur_thread, timeout);
// Check that the thread isn't terminating.
if (cur_thread->IsTerminationRequested()) {
slp.CancelSleep();
- return ResultTerminationRequested;
+ R_THROW(ResultTerminationRequested);
}
// Update the value and process for the next owner.
{
// Remove waiter thread.
- s32 num_waiters{};
+ bool has_waiters{};
KThread* next_owner_thread =
- cur_thread->RemoveWaiterByKey(std::addressof(num_waiters), addr);
+ cur_thread->RemoveUserWaiterByKey(std::addressof(has_waiters), addr);
// Update for the next owner thread.
u32 next_value{};
if (next_owner_thread != nullptr) {
// Get the next tag value.
next_value = next_owner_thread->GetAddressKeyValue();
- if (num_waiters > 1) {
+ if (has_waiters) {
next_value |= Svc::HandleWaitMask;
}
@@ -297,14 +306,14 @@ Result KConditionVariable::Wait(VAddr addr, u64 key, u32 value, s64 timeout) {
// Write to the cv key.
{
const u32 has_waiter_flag = 1;
- WriteToUser(system, key, std::addressof(has_waiter_flag));
- // TODO(bunnei): We should call DataMemoryBarrier(..) here.
+ WriteToUser(m_kernel, key, std::addressof(has_waiter_flag));
+ std::atomic_thread_fence(std::memory_order_seq_cst);
}
// Write the value to userspace.
- if (!WriteToUser(system, addr, std::addressof(next_value))) {
+ if (!WriteToUser(m_kernel, addr, std::addressof(next_value))) {
slp.CancelSleep();
- return ResultInvalidCurrentMemory;
+ R_THROW(ResultInvalidCurrentMemory);
}
}
@@ -312,17 +321,17 @@ Result KConditionVariable::Wait(VAddr addr, u64 key, u32 value, s64 timeout) {
R_UNLESS(timeout != 0, ResultTimedOut);
// Update condition variable tracking.
- cur_thread->SetConditionVariable(std::addressof(thread_tree), addr, key, value);
- thread_tree.insert(*cur_thread);
+ cur_thread->SetConditionVariable(std::addressof(m_tree), addr, key, value);
+ m_tree.insert(*cur_thread);
// Begin waiting.
+ wait_queue.SetHardwareTimer(timer);
cur_thread->BeginWait(std::addressof(wait_queue));
cur_thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::ConditionVar);
- cur_thread->SetMutexWaitAddressForDebugging(addr);
}
// Get the wait result.
- return cur_thread->GetWaitResult();
+ R_RETURN(cur_thread->GetWaitResult());
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_condition_variable.h b/src/core/hle/kernel/k_condition_variable.h
index fad4ed011..8c2f3ae51 100644
--- a/src/core/hle/kernel/k_condition_variable.h
+++ b/src/core/hle/kernel/k_condition_variable.h
@@ -4,10 +4,10 @@
#pragma once
#include "common/assert.h"
-#include "common/common_types.h"
#include "core/hle/kernel/k_scheduler.h"
#include "core/hle/kernel/k_thread.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/result.h"
@@ -21,36 +21,36 @@ class KConditionVariable {
public:
using ThreadTree = typename KThread::ConditionVariableThreadTreeType;
- explicit KConditionVariable(Core::System& system_);
+ explicit KConditionVariable(Core::System& system);
~KConditionVariable();
// Arbitration
- [[nodiscard]] Result SignalToAddress(VAddr addr);
- [[nodiscard]] Result WaitForAddress(Handle handle, VAddr addr, u32 value);
+ Result SignalToAddress(KProcessAddress addr);
+ Result WaitForAddress(Handle handle, KProcessAddress addr, u32 value);
// Condition variable
void Signal(u64 cv_key, s32 count);
- [[nodiscard]] Result Wait(VAddr addr, u64 key, u32 value, s64 timeout);
+ Result Wait(KProcessAddress addr, u64 key, u32 value, s64 timeout);
private:
void SignalImpl(KThread* thread);
- ThreadTree thread_tree;
-
- Core::System& system;
- KernelCore& kernel;
+private:
+ Core::System& m_system;
+ KernelCore& m_kernel;
+ ThreadTree m_tree{};
};
-inline void BeforeUpdatePriority(const KernelCore& kernel, KConditionVariable::ThreadTree* tree,
+inline void BeforeUpdatePriority(KernelCore& kernel, KConditionVariable::ThreadTree* tree,
KThread* thread) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(kernel));
tree->erase(tree->iterator_to(*thread));
}
-inline void AfterUpdatePriority(const KernelCore& kernel, KConditionVariable::ThreadTree* tree,
+inline void AfterUpdatePriority(KernelCore& kernel, KConditionVariable::ThreadTree* tree,
KThread* thread) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(kernel));
tree->insert(*thread);
}
diff --git a/src/core/hle/kernel/k_debug.h b/src/core/hle/kernel/k_debug.h
index e3a0689c8..2290e3bca 100644
--- a/src/core/hle/kernel/k_debug.h
+++ b/src/core/hle/kernel/k_debug.h
@@ -12,9 +12,9 @@ class KDebug final : public KAutoObjectWithSlabHeapAndContainer<KDebug, KAutoObj
KERNEL_AUTOOBJECT_TRAITS(KDebug, KAutoObject);
public:
- explicit KDebug(KernelCore& kernel_) : KAutoObjectWithSlabHeapAndContainer{kernel_} {}
+ explicit KDebug(KernelCore& kernel) : KAutoObjectWithSlabHeapAndContainer{kernel} {}
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_device_address_space.cpp b/src/core/hle/kernel/k_device_address_space.cpp
new file mode 100644
index 000000000..f48896715
--- /dev/null
+++ b/src/core/hle/kernel/k_device_address_space.cpp
@@ -0,0 +1,150 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/assert.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_device_address_space.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel {
+
+KDeviceAddressSpace::KDeviceAddressSpace(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer(kernel), m_lock(kernel), m_is_initialized(false) {}
+KDeviceAddressSpace::~KDeviceAddressSpace() = default;
+
+void KDeviceAddressSpace::Initialize() {
+ // This just forwards to the device page table manager.
+ // KDevicePageTable::Initialize();
+}
+
+// Member functions.
+Result KDeviceAddressSpace::Initialize(u64 address, u64 size) {
+ // Initialize the device page table.
+ // R_TRY(m_table.Initialize(address, size));
+
+ // Set member variables.
+ m_space_address = address;
+ m_space_size = size;
+ m_is_initialized = true;
+
+ R_SUCCEED();
+}
+
+void KDeviceAddressSpace::Finalize() {
+ // Finalize the table.
+ // m_table.Finalize();
+}
+
+Result KDeviceAddressSpace::Attach(Svc::DeviceName device_name) {
+ // Lock the address space.
+ KScopedLightLock lk(m_lock);
+
+ // Attach.
+ // R_RETURN(m_table.Attach(device_name, m_space_address, m_space_size));
+ R_SUCCEED();
+}
+
+Result KDeviceAddressSpace::Detach(Svc::DeviceName device_name) {
+ // Lock the address space.
+ KScopedLightLock lk(m_lock);
+
+ // Detach.
+ // R_RETURN(m_table.Detach(device_name));
+ R_SUCCEED();
+}
+
+Result KDeviceAddressSpace::Map(KPageTable* page_table, KProcessAddress process_address,
+ size_t size, u64 device_address, u32 option, bool is_aligned) {
+ // Check that the address falls within the space.
+ R_UNLESS((m_space_address <= device_address &&
+ device_address + size - 1 <= m_space_address + m_space_size - 1),
+ ResultInvalidCurrentMemory);
+
+ // Decode the option.
+ const Svc::MapDeviceAddressSpaceOption option_pack{option};
+ const auto device_perm = option_pack.permission.Value();
+ const auto flags = option_pack.flags.Value();
+ const auto reserved = option_pack.reserved.Value();
+
+ // Validate the option.
+ // TODO: It is likely that this check for flags == none is only on NX board.
+ R_UNLESS(flags == Svc::MapDeviceAddressSpaceFlag::None, ResultInvalidEnumValue);
+ R_UNLESS(reserved == 0, ResultInvalidEnumValue);
+
+ // Lock the address space.
+ KScopedLightLock lk(m_lock);
+
+ // Lock the page table to prevent concurrent device mapping operations.
+ // KScopedLightLock pt_lk = page_table->AcquireDeviceMapLock();
+
+ // Lock the pages.
+ bool is_io{};
+ R_TRY(page_table->LockForMapDeviceAddressSpace(std::addressof(is_io), process_address, size,
+ ConvertToKMemoryPermission(device_perm),
+ is_aligned, true));
+
+ // Ensure that if we fail, we don't keep unmapped pages locked.
+ ON_RESULT_FAILURE {
+ ASSERT(page_table->UnlockForDeviceAddressSpace(process_address, size) == ResultSuccess);
+ };
+
+ // Check that the io status is allowable.
+ if (is_io) {
+ R_UNLESS(static_cast<u32>(flags & Svc::MapDeviceAddressSpaceFlag::NotIoRegister) == 0,
+ ResultInvalidCombination);
+ }
+
+ // Map the pages.
+ {
+ // Perform the mapping.
+ // R_TRY(m_table.Map(page_table, process_address, size, device_address, device_perm,
+ // is_aligned, is_io));
+
+ // Ensure that we unmap the pages if we fail to update the protections.
+ // NOTE: Nintendo does not check the result of this unmap call.
+ // ON_RESULT_FAILURE { m_table.Unmap(device_address, size); };
+
+ // Update the protections in accordance with how much we mapped.
+ // R_TRY(page_table->UnlockForDeviceAddressSpacePartialMap(process_address, size));
+ }
+
+ // We succeeded.
+ R_SUCCEED();
+}
+
+Result KDeviceAddressSpace::Unmap(KPageTable* page_table, KProcessAddress process_address,
+ size_t size, u64 device_address) {
+ // Check that the address falls within the space.
+ R_UNLESS((m_space_address <= device_address &&
+ device_address + size - 1 <= m_space_address + m_space_size - 1),
+ ResultInvalidCurrentMemory);
+
+ // Lock the address space.
+ KScopedLightLock lk(m_lock);
+
+ // Lock the page table to prevent concurrent device mapping operations.
+ // KScopedLightLock pt_lk = page_table->AcquireDeviceMapLock();
+
+ // Lock the pages.
+ R_TRY(page_table->LockForUnmapDeviceAddressSpace(process_address, size, true));
+
+ // Unmap the pages.
+ {
+ // If we fail to unmap, we want to do a partial unlock.
+ // ON_RESULT_FAILURE {
+ // ASSERT(page_table->UnlockForDeviceAddressSpacePartialMap(process_address, size) ==
+ // ResultSuccess);
+ // };
+
+ // Perform the unmap.
+ // R_TRY(m_table.Unmap(page_table, process_address, size, device_address));
+ }
+
+ // Unlock the pages.
+ ASSERT(page_table->UnlockForDeviceAddressSpace(process_address, size) == ResultSuccess);
+
+ R_SUCCEED();
+}
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/k_device_address_space.h b/src/core/hle/kernel/k_device_address_space.h
new file mode 100644
index 000000000..18556e3cc
--- /dev/null
+++ b/src/core/hle/kernel/k_device_address_space.h
@@ -0,0 +1,61 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <string>
+
+#include "core/hle/kernel/k_page_table.h"
+#include "core/hle/kernel/k_typed_address.h"
+#include "core/hle/kernel/slab_helpers.h"
+#include "core/hle/result.h"
+
+namespace Kernel {
+
+class KDeviceAddressSpace final
+ : public KAutoObjectWithSlabHeapAndContainer<KDeviceAddressSpace, KAutoObjectWithList> {
+ KERNEL_AUTOOBJECT_TRAITS(KDeviceAddressSpace, KAutoObject);
+
+public:
+ explicit KDeviceAddressSpace(KernelCore& kernel);
+ ~KDeviceAddressSpace();
+
+ Result Initialize(u64 address, u64 size);
+ void Finalize() override;
+
+ bool IsInitialized() const override {
+ return m_is_initialized;
+ }
+ static void PostDestroy(uintptr_t arg) {}
+
+ Result Attach(Svc::DeviceName device_name);
+ Result Detach(Svc::DeviceName device_name);
+
+ Result MapByForce(KPageTable* page_table, KProcessAddress process_address, size_t size,
+ u64 device_address, u32 option) {
+ R_RETURN(this->Map(page_table, process_address, size, device_address, option, false));
+ }
+
+ Result MapAligned(KPageTable* page_table, KProcessAddress process_address, size_t size,
+ u64 device_address, u32 option) {
+ R_RETURN(this->Map(page_table, process_address, size, device_address, option, true));
+ }
+
+ Result Unmap(KPageTable* page_table, KProcessAddress process_address, size_t size,
+ u64 device_address);
+
+ static void Initialize();
+
+private:
+ Result Map(KPageTable* page_table, KProcessAddress process_address, size_t size,
+ u64 device_address, u32 option, bool is_aligned);
+
+private:
+ KLightLock m_lock;
+ // KDevicePageTable m_table;
+ u64 m_space_address{};
+ u64 m_space_size{};
+ bool m_is_initialized{};
+};
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/k_dynamic_page_manager.h b/src/core/hle/kernel/k_dynamic_page_manager.h
index ac80d60a1..ad11e84b7 100644
--- a/src/core/hle/kernel/k_dynamic_page_manager.h
+++ b/src/core/hle/kernel/k_dynamic_page_manager.h
@@ -6,9 +6,9 @@
#include <vector>
#include "common/alignment.h"
-#include "common/common_types.h"
#include "core/hle/kernel/k_page_bitmap.h"
#include "core/hle/kernel/k_spin_lock.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/memory_types.h"
#include "core/hle/kernel/svc_results.h"
@@ -26,23 +26,23 @@ public:
KDynamicPageManager() = default;
template <typename T>
- T* GetPointer(VAddr addr) {
+ T* GetPointer(KVirtualAddress addr) {
return reinterpret_cast<T*>(m_backing_memory.data() + (addr - m_address));
}
template <typename T>
- const T* GetPointer(VAddr addr) const {
+ const T* GetPointer(KVirtualAddress addr) const {
return reinterpret_cast<T*>(m_backing_memory.data() + (addr - m_address));
}
- Result Initialize(VAddr memory, size_t size, size_t align) {
+ Result Initialize(KVirtualAddress memory, size_t size, size_t align) {
// We need to have positive size.
R_UNLESS(size > 0, ResultOutOfMemory);
m_backing_memory.resize(size);
// Set addresses.
m_address = memory;
- m_aligned_address = Common::AlignDown(memory, align);
+ m_aligned_address = Common::AlignDown(GetInteger(memory), align);
// Calculate extents.
const size_t managed_size = m_address + size - m_aligned_address;
@@ -79,7 +79,7 @@ public:
R_SUCCEED();
}
- VAddr GetAddress() const {
+ KVirtualAddress GetAddress() const {
return m_address;
}
size_t GetSize() const {
@@ -145,7 +145,8 @@ public:
KScopedSpinLock lk(m_lock);
// Set the bit for the free page.
- size_t offset = (reinterpret_cast<uintptr_t>(pb) - m_aligned_address) / sizeof(PageBuffer);
+ size_t offset =
+ (reinterpret_cast<uint64_t>(pb) - GetInteger(m_aligned_address)) / sizeof(PageBuffer);
m_page_bitmap.SetBit(offset);
// Decrement our used count.
@@ -158,8 +159,8 @@ private:
size_t m_used{};
size_t m_peak{};
size_t m_count{};
- VAddr m_address{};
- VAddr m_aligned_address{};
+ KVirtualAddress m_address{};
+ KVirtualAddress m_aligned_address{};
size_t m_size{};
// TODO(bunnei): Back by host memory until we emulate kernel virtual address space.
diff --git a/src/core/hle/kernel/k_dynamic_slab_heap.h b/src/core/hle/kernel/k_dynamic_slab_heap.h
index 3a0ddd050..76ed4cac1 100644
--- a/src/core/hle/kernel/k_dynamic_slab_heap.h
+++ b/src/core/hle/kernel/k_dynamic_slab_heap.h
@@ -19,7 +19,7 @@ class KDynamicSlabHeap : protected impl::KSlabHeapImpl {
public:
constexpr KDynamicSlabHeap() = default;
- constexpr VAddr GetAddress() const {
+ constexpr KVirtualAddress GetAddress() const {
return m_address;
}
constexpr size_t GetSize() const {
@@ -35,7 +35,7 @@ public:
return m_count.load();
}
- constexpr bool IsInRange(VAddr addr) const {
+ constexpr bool IsInRange(KVirtualAddress addr) const {
return this->GetAddress() <= addr && addr <= this->GetAddress() + this->GetSize() - 1;
}
@@ -115,7 +115,7 @@ private:
std::atomic<size_t> m_used{};
std::atomic<size_t> m_peak{};
std::atomic<size_t> m_count{};
- VAddr m_address{};
+ KVirtualAddress m_address{};
size_t m_size{};
};
diff --git a/src/core/hle/kernel/k_event.cpp b/src/core/hle/kernel/k_event.cpp
index d973853ab..d92b491f8 100644
--- a/src/core/hle/kernel/k_event.cpp
+++ b/src/core/hle/kernel/k_event.cpp
@@ -7,8 +7,8 @@
namespace Kernel {
-KEvent::KEvent(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_}, m_readable_event{kernel_} {}
+KEvent::KEvent(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel}, m_readable_event{kernel} {}
KEvent::~KEvent() = default;
@@ -36,7 +36,7 @@ void KEvent::Finalize() {
}
Result KEvent::Signal() {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
R_SUCCEED_IF(m_readable_event_destroyed);
@@ -44,7 +44,7 @@ Result KEvent::Signal() {
}
Result KEvent::Clear() {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
R_SUCCEED_IF(m_readable_event_destroyed);
diff --git a/src/core/hle/kernel/k_event.h b/src/core/hle/kernel/k_event.h
index 48ce7d9a0..f522b0a84 100644
--- a/src/core/hle/kernel/k_event.h
+++ b/src/core/hle/kernel/k_event.h
@@ -16,7 +16,7 @@ class KEvent final : public KAutoObjectWithSlabHeapAndContainer<KEvent, KAutoObj
KERNEL_AUTOOBJECT_TRAITS(KEvent, KAutoObject);
public:
- explicit KEvent(KernelCore& kernel_);
+ explicit KEvent(KernelCore& kernel);
~KEvent() override;
void Initialize(KProcess* owner);
diff --git a/src/core/hle/kernel/k_event_info.h b/src/core/hle/kernel/k_event_info.h
index 25b3ff594..eacfa5dc6 100644
--- a/src/core/hle/kernel/k_event_info.h
+++ b/src/core/hle/kernel/k_event_info.h
@@ -5,14 +5,15 @@
#include <array>
-#include <boost/intrusive/list.hpp>
+#include "common/intrusive_list.h"
#include "core/hle/kernel/slab_helpers.h"
#include "core/hle/kernel/svc_types.h"
namespace Kernel {
-class KEventInfo : public KSlabAllocated<KEventInfo>, public boost::intrusive::list_base_hook<> {
+class KEventInfo : public KSlabAllocated<KEventInfo>,
+ public Common::IntrusiveListBaseNode<KEventInfo> {
public:
struct InfoCreateThread {
u32 thread_id{};
diff --git a/src/core/hle/kernel/k_handle_table.h b/src/core/hle/kernel/k_handle_table.h
index 37a24e7d9..d7660630c 100644
--- a/src/core/hle/kernel/k_handle_table.h
+++ b/src/core/hle/kernel/k_handle_table.h
@@ -90,7 +90,8 @@ public:
// Handle pseudo-handles.
if constexpr (std::derived_from<KProcess, T>) {
if (handle == Svc::PseudoHandle::CurrentProcess) {
- auto* const cur_process = m_kernel.CurrentProcess();
+ //! FIXME: this is the wrong process!
+ auto* const cur_process = m_kernel.ApplicationProcess();
ASSERT(cur_process != nullptr);
return cur_process;
}
diff --git a/src/core/hle/kernel/k_interrupt_manager.cpp b/src/core/hle/kernel/k_interrupt_manager.cpp
index 4a6b60d26..fe6a20168 100644
--- a/src/core/hle/kernel/k_interrupt_manager.cpp
+++ b/src/core/hle/kernel/k_interrupt_manager.cpp
@@ -16,7 +16,7 @@ void HandleInterrupt(KernelCore& kernel, s32 core_id) {
auto& current_thread = GetCurrentThread(kernel);
- if (auto* process = kernel.CurrentProcess(); process) {
+ if (auto* process = GetCurrentProcessPointer(kernel); process) {
// If the user disable count is set, we may need to pin the current thread.
if (current_thread.GetUserDisableCount() && !process->GetPinnedThread(core_id)) {
KScopedSchedulerLock sl{kernel};
diff --git a/src/core/hle/kernel/k_light_condition_variable.cpp b/src/core/hle/kernel/k_light_condition_variable.cpp
index cade99cfd..6d5a815aa 100644
--- a/src/core/hle/kernel/k_light_condition_variable.cpp
+++ b/src/core/hle/kernel/k_light_condition_variable.cpp
@@ -13,9 +13,9 @@ namespace {
class ThreadQueueImplForKLightConditionVariable final : public KThreadQueue {
public:
- ThreadQueueImplForKLightConditionVariable(KernelCore& kernel_, KThread::WaiterList* wl,
+ ThreadQueueImplForKLightConditionVariable(KernelCore& kernel, KThread::WaiterList* wl,
bool term)
- : KThreadQueue(kernel_), m_wait_list(wl), m_allow_terminating_thread(term) {}
+ : KThreadQueue(kernel), m_wait_list(wl), m_allow_terminating_thread(term) {}
void CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task) override {
// Only process waits if we're allowed to.
@@ -39,14 +39,15 @@ private:
void KLightConditionVariable::Wait(KLightLock* lock, s64 timeout, bool allow_terminating_thread) {
// Create thread queue.
- KThread* owner = GetCurrentThreadPointer(kernel);
+ KThread* owner = GetCurrentThreadPointer(m_kernel);
+ KHardwareTimer* timer{};
- ThreadQueueImplForKLightConditionVariable wait_queue(kernel, std::addressof(wait_list),
+ ThreadQueueImplForKLightConditionVariable wait_queue(m_kernel, std::addressof(m_wait_list),
allow_terminating_thread);
// Sleep the thread.
{
- KScopedSchedulerLockAndSleep lk(kernel, owner, timeout);
+ KScopedSchedulerLockAndSleep lk(m_kernel, std::addressof(timer), owner, timeout);
if (!allow_terminating_thread && owner->IsTerminationRequested()) {
lk.CancelSleep();
@@ -56,9 +57,10 @@ void KLightConditionVariable::Wait(KLightLock* lock, s64 timeout, bool allow_ter
lock->Unlock();
// Add the thread to the queue.
- wait_list.push_back(*owner);
+ m_wait_list.push_back(*owner);
// Begin waiting.
+ wait_queue.SetHardwareTimer(timer);
owner->BeginWait(std::addressof(wait_queue));
}
@@ -67,10 +69,10 @@ void KLightConditionVariable::Wait(KLightLock* lock, s64 timeout, bool allow_ter
}
void KLightConditionVariable::Broadcast() {
- KScopedSchedulerLock lk(kernel);
+ KScopedSchedulerLock lk(m_kernel);
// Signal all threads.
- for (auto it = wait_list.begin(); it != wait_list.end(); it = wait_list.erase(it)) {
+ for (auto it = m_wait_list.begin(); it != m_wait_list.end(); it = m_wait_list.erase(it)) {
it->EndWait(ResultSuccess);
}
}
diff --git a/src/core/hle/kernel/k_light_condition_variable.h b/src/core/hle/kernel/k_light_condition_variable.h
index 3cabd6b4f..ab612426d 100644
--- a/src/core/hle/kernel/k_light_condition_variable.h
+++ b/src/core/hle/kernel/k_light_condition_variable.h
@@ -13,13 +13,13 @@ class KLightLock;
class KLightConditionVariable {
public:
- explicit KLightConditionVariable(KernelCore& kernel_) : kernel{kernel_} {}
+ explicit KLightConditionVariable(KernelCore& kernel) : m_kernel{kernel} {}
void Wait(KLightLock* lock, s64 timeout = -1, bool allow_terminating_thread = true);
void Broadcast();
private:
- KernelCore& kernel;
- KThread::WaiterList wait_list{};
+ KernelCore& m_kernel;
+ KThread::WaiterList m_wait_list{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_light_lock.cpp b/src/core/hle/kernel/k_light_lock.cpp
index 43185320d..e87ee8b65 100644
--- a/src/core/hle/kernel/k_light_lock.cpp
+++ b/src/core/hle/kernel/k_light_lock.cpp
@@ -13,7 +13,7 @@ namespace {
class ThreadQueueImplForKLightLock final : public KThreadQueue {
public:
- explicit ThreadQueueImplForKLightLock(KernelCore& kernel_) : KThreadQueue(kernel_) {}
+ explicit ThreadQueueImplForKLightLock(KernelCore& kernel) : KThreadQueue(kernel) {}
void CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task) override {
// Remove the thread as a waiter from its owner.
@@ -29,13 +29,13 @@ public:
} // namespace
void KLightLock::Lock() {
- const uintptr_t cur_thread = reinterpret_cast<uintptr_t>(GetCurrentThreadPointer(kernel));
+ const uintptr_t cur_thread = reinterpret_cast<uintptr_t>(GetCurrentThreadPointer(m_kernel));
while (true) {
- uintptr_t old_tag = tag.load(std::memory_order_relaxed);
+ uintptr_t old_tag = m_tag.load(std::memory_order_relaxed);
- while (!tag.compare_exchange_weak(old_tag, (old_tag == 0) ? cur_thread : (old_tag | 1),
- std::memory_order_acquire)) {
+ while (!m_tag.compare_exchange_weak(old_tag, (old_tag == 0) ? cur_thread : (old_tag | 1),
+ std::memory_order_acquire)) {
}
if (old_tag == 0 || this->LockSlowPath(old_tag | 1, cur_thread)) {
@@ -45,30 +45,30 @@ void KLightLock::Lock() {
}
void KLightLock::Unlock() {
- const uintptr_t cur_thread = reinterpret_cast<uintptr_t>(GetCurrentThreadPointer(kernel));
+ const uintptr_t cur_thread = reinterpret_cast<uintptr_t>(GetCurrentThreadPointer(m_kernel));
uintptr_t expected = cur_thread;
- if (!tag.compare_exchange_strong(expected, 0, std::memory_order_release)) {
+ if (!m_tag.compare_exchange_strong(expected, 0, std::memory_order_release)) {
this->UnlockSlowPath(cur_thread);
}
}
bool KLightLock::LockSlowPath(uintptr_t _owner, uintptr_t _cur_thread) {
KThread* cur_thread = reinterpret_cast<KThread*>(_cur_thread);
- ThreadQueueImplForKLightLock wait_queue(kernel);
+ ThreadQueueImplForKLightLock wait_queue(m_kernel);
// Pend the current thread waiting on the owner thread.
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Ensure we actually have locking to do.
- if (tag.load(std::memory_order_relaxed) != _owner) {
+ if (m_tag.load(std::memory_order_relaxed) != _owner) {
return false;
}
// Add the current thread as a waiter on the owner.
KThread* owner_thread = reinterpret_cast<KThread*>(_owner & ~1ULL);
- cur_thread->SetAddressKey(reinterpret_cast<uintptr_t>(std::addressof(tag)));
+ cur_thread->SetKernelAddressKey(reinterpret_cast<uintptr_t>(std::addressof(m_tag)));
owner_thread->AddWaiter(cur_thread);
// Begin waiting to hold the lock.
@@ -87,18 +87,18 @@ void KLightLock::UnlockSlowPath(uintptr_t _cur_thread) {
// Unlock.
{
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// Get the next owner.
- s32 num_waiters;
- KThread* next_owner = owner_thread->RemoveWaiterByKey(
- std::addressof(num_waiters), reinterpret_cast<uintptr_t>(std::addressof(tag)));
+ bool has_waiters;
+ KThread* next_owner = owner_thread->RemoveKernelWaiterByKey(
+ std::addressof(has_waiters), reinterpret_cast<uintptr_t>(std::addressof(m_tag)));
// Pass the lock to the next owner.
uintptr_t next_tag = 0;
if (next_owner != nullptr) {
next_tag =
- reinterpret_cast<uintptr_t>(next_owner) | static_cast<uintptr_t>(num_waiters > 1);
+ reinterpret_cast<uintptr_t>(next_owner) | static_cast<uintptr_t>(has_waiters);
next_owner->EndWait(ResultSuccess);
@@ -114,12 +114,13 @@ void KLightLock::UnlockSlowPath(uintptr_t _cur_thread) {
}
// Write the new tag value.
- tag.store(next_tag, std::memory_order_release);
+ m_tag.store(next_tag, std::memory_order_release);
}
}
bool KLightLock::IsLockedByCurrentThread() const {
- return (tag | 1ULL) == (reinterpret_cast<uintptr_t>(GetCurrentThreadPointer(kernel)) | 1ULL);
+ return (m_tag.load() | 1ULL) ==
+ (reinterpret_cast<uintptr_t>(GetCurrentThreadPointer(m_kernel)) | 1ULL);
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_light_lock.h b/src/core/hle/kernel/k_light_lock.h
index 7edd950c0..626f57596 100644
--- a/src/core/hle/kernel/k_light_lock.h
+++ b/src/core/hle/kernel/k_light_lock.h
@@ -13,7 +13,7 @@ class KernelCore;
class KLightLock {
public:
- explicit KLightLock(KernelCore& kernel_) : kernel{kernel_} {}
+ explicit KLightLock(KernelCore& kernel) : m_kernel{kernel} {}
void Lock();
@@ -24,14 +24,14 @@ public:
void UnlockSlowPath(uintptr_t cur_thread);
bool IsLocked() const {
- return tag != 0;
+ return m_tag.load() != 0;
}
bool IsLockedByCurrentThread() const;
private:
- std::atomic<uintptr_t> tag{};
- KernelCore& kernel;
+ std::atomic<uintptr_t> m_tag{};
+ KernelCore& m_kernel;
};
using KScopedLightLock = KScopedLock<KLightLock>;
diff --git a/src/core/hle/kernel/k_linked_list.h b/src/core/hle/kernel/k_linked_list.h
deleted file mode 100644
index 29ebd16b7..000000000
--- a/src/core/hle/kernel/k_linked_list.h
+++ /dev/null
@@ -1,238 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <boost/intrusive/list.hpp>
-
-#include "common/assert.h"
-#include "core/hle/kernel/slab_helpers.h"
-
-namespace Kernel {
-
-class KernelCore;
-
-class KLinkedListNode : public boost::intrusive::list_base_hook<>,
- public KSlabAllocated<KLinkedListNode> {
-
-public:
- explicit KLinkedListNode(KernelCore&) {}
- KLinkedListNode() = default;
-
- void Initialize(void* it) {
- m_item = it;
- }
-
- void* GetItem() const {
- return m_item;
- }
-
-private:
- void* m_item = nullptr;
-};
-
-template <typename T>
-class KLinkedList : private boost::intrusive::list<KLinkedListNode> {
-private:
- using BaseList = boost::intrusive::list<KLinkedListNode>;
-
-public:
- template <bool Const>
- class Iterator;
-
- using value_type = T;
- using size_type = size_t;
- using difference_type = ptrdiff_t;
- using pointer = value_type*;
- using const_pointer = const value_type*;
- using reference = value_type&;
- using const_reference = const value_type&;
- using iterator = Iterator<false>;
- using const_iterator = Iterator<true>;
- using reverse_iterator = std::reverse_iterator<iterator>;
- using const_reverse_iterator = std::reverse_iterator<const_iterator>;
-
- template <bool Const>
- class Iterator {
- private:
- using BaseIterator = BaseList::iterator;
- friend class KLinkedList;
-
- public:
- using iterator_category = std::bidirectional_iterator_tag;
- using value_type = typename KLinkedList::value_type;
- using difference_type = typename KLinkedList::difference_type;
- using pointer = std::conditional_t<Const, KLinkedList::const_pointer, KLinkedList::pointer>;
- using reference =
- std::conditional_t<Const, KLinkedList::const_reference, KLinkedList::reference>;
-
- public:
- explicit Iterator(BaseIterator it) : m_base_it(it) {}
-
- pointer GetItem() const {
- return static_cast<pointer>(m_base_it->GetItem());
- }
-
- bool operator==(const Iterator& rhs) const {
- return m_base_it == rhs.m_base_it;
- }
-
- bool operator!=(const Iterator& rhs) const {
- return !(*this == rhs);
- }
-
- pointer operator->() const {
- return this->GetItem();
- }
-
- reference operator*() const {
- return *this->GetItem();
- }
-
- Iterator& operator++() {
- ++m_base_it;
- return *this;
- }
-
- Iterator& operator--() {
- --m_base_it;
- return *this;
- }
-
- Iterator operator++(int) {
- const Iterator it{*this};
- ++(*this);
- return it;
- }
-
- Iterator operator--(int) {
- const Iterator it{*this};
- --(*this);
- return it;
- }
-
- operator Iterator<true>() const {
- return Iterator<true>(m_base_it);
- }
-
- private:
- BaseIterator m_base_it;
- };
-
-public:
- constexpr KLinkedList(KernelCore& kernel_) : BaseList(), kernel{kernel_} {}
-
- ~KLinkedList() {
- // Erase all elements.
- for (auto it = begin(); it != end(); it = erase(it)) {
- }
-
- // Ensure we succeeded.
- ASSERT(this->empty());
- }
-
- // Iterator accessors.
- iterator begin() {
- return iterator(BaseList::begin());
- }
-
- const_iterator begin() const {
- return const_iterator(BaseList::begin());
- }
-
- iterator end() {
- return iterator(BaseList::end());
- }
-
- const_iterator end() const {
- return const_iterator(BaseList::end());
- }
-
- const_iterator cbegin() const {
- return this->begin();
- }
-
- const_iterator cend() const {
- return this->end();
- }
-
- reverse_iterator rbegin() {
- return reverse_iterator(this->end());
- }
-
- const_reverse_iterator rbegin() const {
- return const_reverse_iterator(this->end());
- }
-
- reverse_iterator rend() {
- return reverse_iterator(this->begin());
- }
-
- const_reverse_iterator rend() const {
- return const_reverse_iterator(this->begin());
- }
-
- const_reverse_iterator crbegin() const {
- return this->rbegin();
- }
-
- const_reverse_iterator crend() const {
- return this->rend();
- }
-
- // Content management.
- using BaseList::empty;
- using BaseList::size;
-
- reference back() {
- return *(--this->end());
- }
-
- const_reference back() const {
- return *(--this->end());
- }
-
- reference front() {
- return *this->begin();
- }
-
- const_reference front() const {
- return *this->begin();
- }
-
- iterator insert(const_iterator pos, reference ref) {
- KLinkedListNode* new_node = KLinkedListNode::Allocate(kernel);
- ASSERT(new_node != nullptr);
- new_node->Initialize(std::addressof(ref));
- return iterator(BaseList::insert(pos.m_base_it, *new_node));
- }
-
- void push_back(reference ref) {
- this->insert(this->end(), ref);
- }
-
- void push_front(reference ref) {
- this->insert(this->begin(), ref);
- }
-
- void pop_back() {
- this->erase(--this->end());
- }
-
- void pop_front() {
- this->erase(this->begin());
- }
-
- iterator erase(const iterator pos) {
- KLinkedListNode* freed_node = std::addressof(*pos.m_base_it);
- iterator ret = iterator(BaseList::erase(pos.m_base_it));
- KLinkedListNode::Free(kernel, freed_node);
-
- return ret;
- }
-
-private:
- KernelCore& kernel;
-};
-
-} // namespace Kernel
diff --git a/src/core/hle/kernel/k_memory_block.h b/src/core/hle/kernel/k_memory_block.h
index 87ca65592..41a29da24 100644
--- a/src/core/hle/kernel/k_memory_block.h
+++ b/src/core/hle/kernel/k_memory_block.h
@@ -5,8 +5,8 @@
#include "common/alignment.h"
#include "common/assert.h"
-#include "common/common_types.h"
#include "common/intrusive_red_black_tree.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/memory_types.h"
#include "core/hle/kernel/svc_types.h"
@@ -282,7 +282,7 @@ class KMemoryBlock : public Common::IntrusiveRedBlackTreeBaseNode<KMemoryBlock>
private:
u16 m_device_disable_merge_left_count{};
u16 m_device_disable_merge_right_count{};
- VAddr m_address{};
+ KProcessAddress m_address{};
size_t m_num_pages{};
KMemoryState m_memory_state{KMemoryState::None};
u16 m_ipc_lock_count{};
@@ -306,7 +306,7 @@ public:
}
public:
- constexpr VAddr GetAddress() const {
+ constexpr KProcessAddress GetAddress() const {
return m_address;
}
@@ -318,11 +318,11 @@ public:
return this->GetNumPages() * PageSize;
}
- constexpr VAddr GetEndAddress() const {
+ constexpr KProcessAddress GetEndAddress() const {
return this->GetAddress() + this->GetSize();
}
- constexpr VAddr GetLastAddress() const {
+ constexpr KProcessAddress GetLastAddress() const {
return this->GetEndAddress() - 1;
}
@@ -348,7 +348,7 @@ public:
constexpr KMemoryInfo GetMemoryInfo() const {
return {
- .m_address = this->GetAddress(),
+ .m_address = GetInteger(this->GetAddress()),
.m_size = this->GetSize(),
.m_state = m_memory_state,
.m_device_disable_merge_left_count = m_device_disable_merge_left_count,
@@ -366,12 +366,12 @@ public:
public:
explicit KMemoryBlock() = default;
- constexpr KMemoryBlock(VAddr addr, size_t np, KMemoryState ms, KMemoryPermission p,
+ constexpr KMemoryBlock(KProcessAddress addr, size_t np, KMemoryState ms, KMemoryPermission p,
KMemoryAttribute attr)
: Common::IntrusiveRedBlackTreeBaseNode<KMemoryBlock>(), m_address(addr), m_num_pages(np),
m_memory_state(ms), m_permission(p), m_attribute(attr) {}
- constexpr void Initialize(VAddr addr, size_t np, KMemoryState ms, KMemoryPermission p,
+ constexpr void Initialize(KProcessAddress addr, size_t np, KMemoryState ms, KMemoryPermission p,
KMemoryAttribute attr) {
m_device_disable_merge_left_count = 0;
m_device_disable_merge_right_count = 0;
@@ -408,7 +408,7 @@ public:
KMemoryBlockDisableMergeAttribute::None;
}
- constexpr bool Contains(VAddr addr) const {
+ constexpr bool Contains(KProcessAddress addr) const {
return this->GetAddress() <= addr && addr <= this->GetEndAddress();
}
@@ -443,10 +443,10 @@ public:
}
}
- constexpr void Split(KMemoryBlock* block, VAddr addr) {
+ constexpr void Split(KMemoryBlock* block, KProcessAddress addr) {
ASSERT(this->GetAddress() < addr);
ASSERT(this->Contains(addr));
- ASSERT(Common::IsAligned(addr, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(addr), PageSize));
block->m_address = m_address;
block->m_num_pages = (addr - this->GetAddress()) / PageSize;
@@ -471,8 +471,8 @@ public:
m_disable_merge_attribute & KMemoryBlockDisableMergeAttribute::AllRight);
}
- constexpr void UpdateDeviceDisableMergeStateForShareLeft(
- [[maybe_unused]] KMemoryPermission new_perm, bool left, [[maybe_unused]] bool right) {
+ constexpr void UpdateDeviceDisableMergeStateForShareLeft(KMemoryPermission new_perm, bool left,
+ bool right) {
// New permission/right aren't used.
if (left) {
m_disable_merge_attribute = static_cast<KMemoryBlockDisableMergeAttribute>(
@@ -482,8 +482,8 @@ public:
}
}
- constexpr void UpdateDeviceDisableMergeStateForShareRight(
- [[maybe_unused]] KMemoryPermission new_perm, [[maybe_unused]] bool left, bool right) {
+ constexpr void UpdateDeviceDisableMergeStateForShareRight(KMemoryPermission new_perm, bool left,
+ bool right) {
// New permission/left aren't used.
if (right) {
m_disable_merge_attribute = static_cast<KMemoryBlockDisableMergeAttribute>(
@@ -499,8 +499,7 @@ public:
this->UpdateDeviceDisableMergeStateForShareRight(new_perm, left, right);
}
- constexpr void ShareToDevice([[maybe_unused]] KMemoryPermission new_perm, bool left,
- bool right) {
+ constexpr void ShareToDevice(KMemoryPermission new_perm, bool left, bool right) {
// New permission isn't used.
// We must either be shared or have a zero lock count.
@@ -516,8 +515,8 @@ public:
this->UpdateDeviceDisableMergeStateForShare(new_perm, left, right);
}
- constexpr void UpdateDeviceDisableMergeStateForUnshareLeft(
- [[maybe_unused]] KMemoryPermission new_perm, bool left, [[maybe_unused]] bool right) {
+ constexpr void UpdateDeviceDisableMergeStateForUnshareLeft(KMemoryPermission new_perm,
+ bool left, bool right) {
// New permission/right aren't used.
if (left) {
@@ -536,8 +535,8 @@ public:
}
}
- constexpr void UpdateDeviceDisableMergeStateForUnshareRight(
- [[maybe_unused]] KMemoryPermission new_perm, [[maybe_unused]] bool left, bool right) {
+ constexpr void UpdateDeviceDisableMergeStateForUnshareRight(KMemoryPermission new_perm,
+ bool left, bool right) {
// New permission/left aren't used.
if (right) {
@@ -556,8 +555,7 @@ public:
this->UpdateDeviceDisableMergeStateForUnshareRight(new_perm, left, right);
}
- constexpr void UnshareToDevice([[maybe_unused]] KMemoryPermission new_perm, bool left,
- bool right) {
+ constexpr void UnshareToDevice(KMemoryPermission new_perm, bool left, bool right) {
// New permission isn't used.
// We must be shared.
@@ -575,8 +573,7 @@ public:
this->UpdateDeviceDisableMergeStateForUnshare(new_perm, left, right);
}
- constexpr void UnshareToDeviceRight([[maybe_unused]] KMemoryPermission new_perm, bool left,
- bool right) {
+ constexpr void UnshareToDeviceRight(KMemoryPermission new_perm, bool left, bool right) {
// New permission isn't used.
// We must be shared.
@@ -594,7 +591,7 @@ public:
this->UpdateDeviceDisableMergeStateForUnshareRight(new_perm, left, right);
}
- constexpr void LockForIpc(KMemoryPermission new_perm, bool left, [[maybe_unused]] bool right) {
+ constexpr void LockForIpc(KMemoryPermission new_perm, bool left, bool right) {
// We must either be locked or have a zero lock count.
ASSERT((m_attribute & KMemoryAttribute::IpcLocked) == KMemoryAttribute::IpcLocked ||
m_ipc_lock_count == 0);
@@ -626,8 +623,7 @@ public:
}
}
- constexpr void UnlockForIpc([[maybe_unused]] KMemoryPermission new_perm, bool left,
- [[maybe_unused]] bool right) {
+ constexpr void UnlockForIpc(KMemoryPermission new_perm, bool left, bool right) {
// New permission isn't used.
// We must be locked.
diff --git a/src/core/hle/kernel/k_memory_block_manager.cpp b/src/core/hle/kernel/k_memory_block_manager.cpp
index cf4c1e371..ab75f550e 100644
--- a/src/core/hle/kernel/k_memory_block_manager.cpp
+++ b/src/core/hle/kernel/k_memory_block_manager.cpp
@@ -7,7 +7,8 @@ namespace Kernel {
KMemoryBlockManager::KMemoryBlockManager() = default;
-Result KMemoryBlockManager::Initialize(VAddr st, VAddr nd, KMemoryBlockSlabManager* slab_manager) {
+Result KMemoryBlockManager::Initialize(KProcessAddress st, KProcessAddress nd,
+ KMemoryBlockSlabManager* slab_manager) {
// Allocate a block to encapsulate the address space, insert it into the tree.
KMemoryBlock* start_block = slab_manager->Allocate();
R_UNLESS(start_block != nullptr, ResultOutOfResource);
@@ -15,8 +16,8 @@ Result KMemoryBlockManager::Initialize(VAddr st, VAddr nd, KMemoryBlockSlabManag
// Set our start and end.
m_start_address = st;
m_end_address = nd;
- ASSERT(Common::IsAligned(m_start_address, PageSize));
- ASSERT(Common::IsAligned(m_end_address, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(m_start_address), PageSize));
+ ASSERT(Common::IsAligned(GetInteger(m_end_address), PageSize));
// Initialize and insert the block.
start_block->Initialize(m_start_address, (m_end_address - m_start_address) / PageSize,
@@ -40,12 +41,13 @@ void KMemoryBlockManager::Finalize(KMemoryBlockSlabManager* slab_manager,
ASSERT(m_memory_block_tree.empty());
}
-VAddr KMemoryBlockManager::FindFreeArea(VAddr region_start, size_t region_num_pages,
- size_t num_pages, size_t alignment, size_t offset,
- size_t guard_pages) const {
+KProcessAddress KMemoryBlockManager::FindFreeArea(KProcessAddress region_start,
+ size_t region_num_pages, size_t num_pages,
+ size_t alignment, size_t offset,
+ size_t guard_pages) const {
if (num_pages > 0) {
- const VAddr region_end = region_start + region_num_pages * PageSize;
- const VAddr region_last = region_end - 1;
+ const KProcessAddress region_end = region_start + region_num_pages * PageSize;
+ const KProcessAddress region_last = region_end - 1;
for (const_iterator it = this->FindIterator(region_start); it != m_memory_block_tree.cend();
it++) {
const KMemoryInfo info = it->GetMemoryInfo();
@@ -56,17 +58,19 @@ VAddr KMemoryBlockManager::FindFreeArea(VAddr region_start, size_t region_num_pa
continue;
}
- VAddr area = (info.GetAddress() <= region_start) ? region_start : info.GetAddress();
+ KProcessAddress area =
+ (info.GetAddress() <= GetInteger(region_start)) ? region_start : info.GetAddress();
area += guard_pages * PageSize;
- const VAddr offset_area = Common::AlignDown(area, alignment) + offset;
+ const KProcessAddress offset_area =
+ Common::AlignDown(GetInteger(area), alignment) + offset;
area = (area <= offset_area) ? offset_area : offset_area + alignment;
- const VAddr area_end = area + num_pages * PageSize + guard_pages * PageSize;
- const VAddr area_last = area_end - 1;
+ const KProcessAddress area_end = area + num_pages * PageSize + guard_pages * PageSize;
+ const KProcessAddress area_last = area_end - 1;
- if (info.GetAddress() <= area && area < area_last && area_last <= region_last &&
- area_last <= info.GetLastAddress()) {
+ if (info.GetAddress() <= GetInteger(area) && area < area_last &&
+ area_last <= region_last && area_last <= info.GetLastAddress()) {
return area;
}
}
@@ -76,7 +80,7 @@ VAddr KMemoryBlockManager::FindFreeArea(VAddr region_start, size_t region_num_pa
}
void KMemoryBlockManager::CoalesceForUpdate(KMemoryBlockManagerUpdateAllocator* allocator,
- VAddr address, size_t num_pages) {
+ KProcessAddress address, size_t num_pages) {
// Find the iterator now that we've updated.
iterator it = this->FindIterator(address);
if (address != m_start_address) {
@@ -104,18 +108,18 @@ void KMemoryBlockManager::CoalesceForUpdate(KMemoryBlockManagerUpdateAllocator*
}
}
-void KMemoryBlockManager::Update(KMemoryBlockManagerUpdateAllocator* allocator, VAddr address,
- size_t num_pages, KMemoryState state, KMemoryPermission perm,
- KMemoryAttribute attr,
+void KMemoryBlockManager::Update(KMemoryBlockManagerUpdateAllocator* allocator,
+ KProcessAddress address, size_t num_pages, KMemoryState state,
+ KMemoryPermission perm, KMemoryAttribute attr,
KMemoryBlockDisableMergeAttribute set_disable_attr,
KMemoryBlockDisableMergeAttribute clear_disable_attr) {
// Ensure for auditing that we never end up with an invalid tree.
KScopedMemoryBlockManagerAuditor auditor(this);
- ASSERT(Common::IsAligned(address, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(address), PageSize));
ASSERT((attr & (KMemoryAttribute::IpcLocked | KMemoryAttribute::DeviceShared)) ==
KMemoryAttribute::None);
- VAddr cur_address = address;
+ KProcessAddress cur_address = address;
size_t remaining_pages = num_pages;
iterator it = this->FindIterator(address);
@@ -168,17 +172,17 @@ void KMemoryBlockManager::Update(KMemoryBlockManagerUpdateAllocator* allocator,
}
void KMemoryBlockManager::UpdateIfMatch(KMemoryBlockManagerUpdateAllocator* allocator,
- VAddr address, size_t num_pages, KMemoryState test_state,
- KMemoryPermission test_perm, KMemoryAttribute test_attr,
- KMemoryState state, KMemoryPermission perm,
- KMemoryAttribute attr) {
+ KProcessAddress address, size_t num_pages,
+ KMemoryState test_state, KMemoryPermission test_perm,
+ KMemoryAttribute test_attr, KMemoryState state,
+ KMemoryPermission perm, KMemoryAttribute attr) {
// Ensure for auditing that we never end up with an invalid tree.
KScopedMemoryBlockManagerAuditor auditor(this);
- ASSERT(Common::IsAligned(address, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(address), PageSize));
ASSERT((attr & (KMemoryAttribute::IpcLocked | KMemoryAttribute::DeviceShared)) ==
KMemoryAttribute::None);
- VAddr cur_address = address;
+ KProcessAddress cur_address = address;
size_t remaining_pages = num_pages;
iterator it = this->FindIterator(address);
@@ -230,18 +234,18 @@ void KMemoryBlockManager::UpdateIfMatch(KMemoryBlockManagerUpdateAllocator* allo
this->CoalesceForUpdate(allocator, address, num_pages);
}
-void KMemoryBlockManager::UpdateLock(KMemoryBlockManagerUpdateAllocator* allocator, VAddr address,
- size_t num_pages, MemoryBlockLockFunction lock_func,
- KMemoryPermission perm) {
+void KMemoryBlockManager::UpdateLock(KMemoryBlockManagerUpdateAllocator* allocator,
+ KProcessAddress address, size_t num_pages,
+ MemoryBlockLockFunction lock_func, KMemoryPermission perm) {
// Ensure for auditing that we never end up with an invalid tree.
KScopedMemoryBlockManagerAuditor auditor(this);
- ASSERT(Common::IsAligned(address, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(address), PageSize));
- VAddr cur_address = address;
+ KProcessAddress cur_address = address;
size_t remaining_pages = num_pages;
iterator it = this->FindIterator(address);
- const VAddr end_address = address + (num_pages * PageSize);
+ const KProcessAddress end_address = address + (num_pages * PageSize);
while (remaining_pages > 0) {
const size_t remaining_size = remaining_pages * PageSize;
diff --git a/src/core/hle/kernel/k_memory_block_manager.h b/src/core/hle/kernel/k_memory_block_manager.h
index d382722a6..96496e990 100644
--- a/src/core/hle/kernel/k_memory_block_manager.h
+++ b/src/core/hle/kernel/k_memory_block_manager.h
@@ -7,9 +7,9 @@
#include <functional>
#include "common/common_funcs.h"
-#include "common/common_types.h"
#include "core/hle/kernel/k_dynamic_resource_manager.h"
#include "core/hle/kernel/k_memory_block.h"
+#include "core/hle/kernel/k_typed_address.h"
namespace Kernel {
@@ -85,9 +85,10 @@ public:
public:
KMemoryBlockManager();
- using HostUnmapCallback = std::function<void(VAddr, u64)>;
+ using HostUnmapCallback = std::function<void(Common::ProcessAddress, u64)>;
- Result Initialize(VAddr st, VAddr nd, KMemoryBlockSlabManager* slab_manager);
+ Result Initialize(KProcessAddress st, KProcessAddress nd,
+ KMemoryBlockSlabManager* slab_manager);
void Finalize(KMemoryBlockSlabManager* slab_manager, HostUnmapCallback&& host_unmap_callback);
iterator end() {
@@ -100,27 +101,28 @@ public:
return m_memory_block_tree.cend();
}
- VAddr FindFreeArea(VAddr region_start, size_t region_num_pages, size_t num_pages,
- size_t alignment, size_t offset, size_t guard_pages) const;
+ KProcessAddress FindFreeArea(KProcessAddress region_start, size_t region_num_pages,
+ size_t num_pages, size_t alignment, size_t offset,
+ size_t guard_pages) const;
- void Update(KMemoryBlockManagerUpdateAllocator* allocator, VAddr address, size_t num_pages,
- KMemoryState state, KMemoryPermission perm, KMemoryAttribute attr,
+ void Update(KMemoryBlockManagerUpdateAllocator* allocator, KProcessAddress address,
+ size_t num_pages, KMemoryState state, KMemoryPermission perm, KMemoryAttribute attr,
KMemoryBlockDisableMergeAttribute set_disable_attr,
KMemoryBlockDisableMergeAttribute clear_disable_attr);
- void UpdateLock(KMemoryBlockManagerUpdateAllocator* allocator, VAddr address, size_t num_pages,
- MemoryBlockLockFunction lock_func, KMemoryPermission perm);
+ void UpdateLock(KMemoryBlockManagerUpdateAllocator* allocator, KProcessAddress address,
+ size_t num_pages, MemoryBlockLockFunction lock_func, KMemoryPermission perm);
- void UpdateIfMatch(KMemoryBlockManagerUpdateAllocator* allocator, VAddr address,
+ void UpdateIfMatch(KMemoryBlockManagerUpdateAllocator* allocator, KProcessAddress address,
size_t num_pages, KMemoryState test_state, KMemoryPermission test_perm,
KMemoryAttribute test_attr, KMemoryState state, KMemoryPermission perm,
KMemoryAttribute attr);
- iterator FindIterator(VAddr address) const {
+ iterator FindIterator(KProcessAddress address) const {
return m_memory_block_tree.find(KMemoryBlock(
address, 1, KMemoryState::Free, KMemoryPermission::None, KMemoryAttribute::None));
}
- const KMemoryBlock* FindBlock(VAddr address) const {
+ const KMemoryBlock* FindBlock(KProcessAddress address) const {
if (const_iterator it = this->FindIterator(address); it != m_memory_block_tree.end()) {
return std::addressof(*it);
}
@@ -132,24 +134,20 @@ public:
bool CheckState() const;
private:
- void CoalesceForUpdate(KMemoryBlockManagerUpdateAllocator* allocator, VAddr address,
+ void CoalesceForUpdate(KMemoryBlockManagerUpdateAllocator* allocator, KProcessAddress address,
size_t num_pages);
MemoryBlockTree m_memory_block_tree;
- VAddr m_start_address{};
- VAddr m_end_address{};
+ KProcessAddress m_start_address{};
+ KProcessAddress m_end_address{};
};
class KScopedMemoryBlockManagerAuditor {
public:
- explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager* m) : m_manager(m) {
- ASSERT(m_manager->CheckState());
- }
+ explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager* m) : m_manager(m) {}
explicit KScopedMemoryBlockManagerAuditor(KMemoryBlockManager& m)
: KScopedMemoryBlockManagerAuditor(std::addressof(m)) {}
- ~KScopedMemoryBlockManagerAuditor() {
- ASSERT(m_manager->CheckState());
- }
+ ~KScopedMemoryBlockManagerAuditor() = default;
private:
KMemoryBlockManager* m_manager;
diff --git a/src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp b/src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp
deleted file mode 100644
index 098ba6eac..000000000
--- a/src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp
+++ /dev/null
@@ -1,201 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "common/alignment.h"
-#include "common/literals.h"
-#include "core/hle/kernel/k_memory_layout.h"
-#include "core/hle/kernel/k_memory_manager.h"
-#include "core/hle/kernel/k_system_control.h"
-#include "core/hle/kernel/k_trace.h"
-
-namespace Kernel {
-
-namespace {
-
-using namespace Common::Literals;
-
-constexpr size_t CarveoutAlignment = 0x20000;
-constexpr size_t CarveoutSizeMax = (512_MiB) - CarveoutAlignment;
-
-bool SetupPowerManagementControllerMemoryRegion(KMemoryLayout& memory_layout) {
- // Above firmware 2.0.0, the PMC is not mappable.
- return memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x7000E000, 0x400, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap) &&
- memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x7000E400, 0xC00,
- KMemoryRegionType_PowerManagementController | KMemoryRegionAttr_NoUserMap);
-}
-
-void InsertPoolPartitionRegionIntoBothTrees(KMemoryLayout& memory_layout, size_t start, size_t size,
- KMemoryRegionType phys_type,
- KMemoryRegionType virt_type, u32& cur_attr) {
- const u32 attr = cur_attr++;
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(start, size,
- static_cast<u32>(phys_type), attr));
- const KMemoryRegion* phys = memory_layout.GetPhysicalMemoryRegionTree().FindByTypeAndAttribute(
- static_cast<u32>(phys_type), attr);
- ASSERT(phys != nullptr);
- ASSERT(phys->GetEndAddress() != 0);
- ASSERT(memory_layout.GetVirtualMemoryRegionTree().Insert(phys->GetPairAddress(), size,
- static_cast<u32>(virt_type), attr));
-}
-
-} // namespace
-
-namespace Init {
-
-void SetupDevicePhysicalMemoryRegions(KMemoryLayout& memory_layout) {
- ASSERT(SetupPowerManagementControllerMemoryRegion(memory_layout));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x70019000, 0x1000, KMemoryRegionType_MemoryController | KMemoryRegionAttr_NoUserMap));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x7001C000, 0x1000, KMemoryRegionType_MemoryController0 | KMemoryRegionAttr_NoUserMap));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x7001D000, 0x1000, KMemoryRegionType_MemoryController1 | KMemoryRegionAttr_NoUserMap));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x50040000, 0x1000, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x50041000, 0x1000,
- KMemoryRegionType_InterruptDistributor | KMemoryRegionAttr_ShouldKernelMap));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x50042000, 0x1000,
- KMemoryRegionType_InterruptCpuInterface | KMemoryRegionAttr_ShouldKernelMap));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x50043000, 0x1D000, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
-
- // Map IRAM unconditionally, to support debug-logging-to-iram build config.
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x40000000, 0x40000, KMemoryRegionType_LegacyLpsIram | KMemoryRegionAttr_ShouldKernelMap));
-
- // Above firmware 2.0.0, prevent mapping the bpmp exception vectors or the ipatch region.
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x6000F000, 0x1000, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- 0x6001DC00, 0x400, KMemoryRegionType_None | KMemoryRegionAttr_NoUserMap));
-}
-
-void SetupDramPhysicalMemoryRegions(KMemoryLayout& memory_layout) {
- const size_t intended_memory_size = KSystemControl::Init::GetIntendedMemorySize();
- const PAddr physical_memory_base_address =
- KSystemControl::Init::GetKernelPhysicalBaseAddress(DramPhysicalAddress);
-
- // Insert blocks into the tree.
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- physical_memory_base_address, intended_memory_size, KMemoryRegionType_Dram));
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- physical_memory_base_address, ReservedEarlyDramSize, KMemoryRegionType_DramReservedEarly));
-
- // Insert the KTrace block at the end of Dram, if KTrace is enabled.
- static_assert(!IsKTraceEnabled || KTraceBufferSize > 0);
- if constexpr (IsKTraceEnabled) {
- const PAddr ktrace_buffer_phys_addr =
- physical_memory_base_address + intended_memory_size - KTraceBufferSize;
- ASSERT(memory_layout.GetPhysicalMemoryRegionTree().Insert(
- ktrace_buffer_phys_addr, KTraceBufferSize, KMemoryRegionType_KernelTraceBuffer));
- }
-}
-
-void SetupPoolPartitionMemoryRegions(KMemoryLayout& memory_layout) {
- // Start by identifying the extents of the DRAM memory region.
- const auto dram_extents = memory_layout.GetMainMemoryPhysicalExtents();
- ASSERT(dram_extents.GetEndAddress() != 0);
-
- // Determine the end of the pool region.
- const u64 pool_end = dram_extents.GetEndAddress() - KTraceBufferSize;
-
- // Find the start of the kernel DRAM region.
- const KMemoryRegion* kernel_dram_region =
- memory_layout.GetPhysicalMemoryRegionTree().FindFirstDerived(
- KMemoryRegionType_DramKernelBase);
- ASSERT(kernel_dram_region != nullptr);
-
- const u64 kernel_dram_start = kernel_dram_region->GetAddress();
- ASSERT(Common::IsAligned(kernel_dram_start, CarveoutAlignment));
-
- // Find the start of the pool partitions region.
- const KMemoryRegion* pool_partitions_region =
- memory_layout.GetPhysicalMemoryRegionTree().FindByTypeAndAttribute(
- KMemoryRegionType_DramPoolPartition, 0);
- ASSERT(pool_partitions_region != nullptr);
- const u64 pool_partitions_start = pool_partitions_region->GetAddress();
-
- // Setup the pool partition layouts.
- // On 5.0.0+, setup modern 4-pool-partition layout.
-
- // Get Application and Applet pool sizes.
- const size_t application_pool_size = KSystemControl::Init::GetApplicationPoolSize();
- const size_t applet_pool_size = KSystemControl::Init::GetAppletPoolSize();
- const size_t unsafe_system_pool_min_size =
- KSystemControl::Init::GetMinimumNonSecureSystemPoolSize();
-
- // Decide on starting addresses for our pools.
- const u64 application_pool_start = pool_end - application_pool_size;
- const u64 applet_pool_start = application_pool_start - applet_pool_size;
- const u64 unsafe_system_pool_start = std::min(
- kernel_dram_start + CarveoutSizeMax,
- Common::AlignDown(applet_pool_start - unsafe_system_pool_min_size, CarveoutAlignment));
- const size_t unsafe_system_pool_size = applet_pool_start - unsafe_system_pool_start;
-
- // We want to arrange application pool depending on where the middle of dram is.
- const u64 dram_midpoint = (dram_extents.GetAddress() + dram_extents.GetEndAddress()) / 2;
- u32 cur_pool_attr = 0;
- size_t total_overhead_size = 0;
- if (dram_extents.GetEndAddress() <= dram_midpoint || dram_midpoint <= application_pool_start) {
- InsertPoolPartitionRegionIntoBothTrees(
- memory_layout, application_pool_start, application_pool_size,
- KMemoryRegionType_DramApplicationPool, KMemoryRegionType_VirtualDramApplicationPool,
- cur_pool_attr);
- total_overhead_size +=
- KMemoryManager::CalculateManagementOverheadSize(application_pool_size);
- } else {
- const size_t first_application_pool_size = dram_midpoint - application_pool_start;
- const size_t second_application_pool_size =
- application_pool_start + application_pool_size - dram_midpoint;
- InsertPoolPartitionRegionIntoBothTrees(
- memory_layout, application_pool_start, first_application_pool_size,
- KMemoryRegionType_DramApplicationPool, KMemoryRegionType_VirtualDramApplicationPool,
- cur_pool_attr);
- InsertPoolPartitionRegionIntoBothTrees(
- memory_layout, dram_midpoint, second_application_pool_size,
- KMemoryRegionType_DramApplicationPool, KMemoryRegionType_VirtualDramApplicationPool,
- cur_pool_attr);
- total_overhead_size +=
- KMemoryManager::CalculateManagementOverheadSize(first_application_pool_size);
- total_overhead_size +=
- KMemoryManager::CalculateManagementOverheadSize(second_application_pool_size);
- }
-
- // Insert the applet pool.
- InsertPoolPartitionRegionIntoBothTrees(memory_layout, applet_pool_start, applet_pool_size,
- KMemoryRegionType_DramAppletPool,
- KMemoryRegionType_VirtualDramAppletPool, cur_pool_attr);
- total_overhead_size += KMemoryManager::CalculateManagementOverheadSize(applet_pool_size);
-
- // Insert the nonsecure system pool.
- InsertPoolPartitionRegionIntoBothTrees(
- memory_layout, unsafe_system_pool_start, unsafe_system_pool_size,
- KMemoryRegionType_DramSystemNonSecurePool, KMemoryRegionType_VirtualDramSystemNonSecurePool,
- cur_pool_attr);
- total_overhead_size += KMemoryManager::CalculateManagementOverheadSize(unsafe_system_pool_size);
-
- // Insert the pool management region.
- total_overhead_size += KMemoryManager::CalculateManagementOverheadSize(
- (unsafe_system_pool_start - pool_partitions_start) - total_overhead_size);
- const u64 pool_management_start = unsafe_system_pool_start - total_overhead_size;
- const size_t pool_management_size = total_overhead_size;
- u32 pool_management_attr = 0;
- InsertPoolPartitionRegionIntoBothTrees(
- memory_layout, pool_management_start, pool_management_size,
- KMemoryRegionType_DramPoolManagement, KMemoryRegionType_VirtualDramPoolManagement,
- pool_management_attr);
-
- // Insert the system pool.
- const u64 system_pool_size = pool_management_start - pool_partitions_start;
- InsertPoolPartitionRegionIntoBothTrees(memory_layout, pool_partitions_start, system_pool_size,
- KMemoryRegionType_DramSystemPool,
- KMemoryRegionType_VirtualDramSystemPool, cur_pool_attr);
-}
-
-} // namespace Init
-
-} // namespace Kernel
diff --git a/src/core/hle/kernel/k_memory_layout.cpp b/src/core/hle/kernel/k_memory_layout.cpp
index 72c3ee4b7..af40092c0 100644
--- a/src/core/hle/kernel/k_memory_layout.cpp
+++ b/src/core/hle/kernel/k_memory_layout.cpp
@@ -18,11 +18,11 @@ KMemoryRegion* AllocateRegion(KMemoryRegionAllocator& memory_region_allocator, A
} // namespace
-KMemoryRegionTree::KMemoryRegionTree(KMemoryRegionAllocator& memory_region_allocator_)
- : memory_region_allocator{memory_region_allocator_} {}
+KMemoryRegionTree::KMemoryRegionTree(KMemoryRegionAllocator& memory_region_allocator)
+ : m_memory_region_allocator{memory_region_allocator} {}
void KMemoryRegionTree::InsertDirectly(u64 address, u64 last_address, u32 attr, u32 type_id) {
- this->insert(*AllocateRegion(memory_region_allocator, address, last_address, attr, type_id));
+ this->insert(*AllocateRegion(m_memory_region_allocator, address, last_address, attr, type_id));
}
bool KMemoryRegionTree::Insert(u64 address, size_t size, u32 type_id, u32 new_attr, u32 old_attr) {
@@ -69,7 +69,7 @@ bool KMemoryRegionTree::Insert(u64 address, size_t size, u32 type_id, u32 new_at
const u64 new_pair = (old_pair != std::numeric_limits<u64>::max())
? old_pair + (address - old_address)
: old_pair;
- this->insert(*AllocateRegion(memory_region_allocator, address, inserted_region_last,
+ this->insert(*AllocateRegion(m_memory_region_allocator, address, inserted_region_last,
new_pair, new_attr, type_id));
}
@@ -78,14 +78,15 @@ bool KMemoryRegionTree::Insert(u64 address, size_t size, u32 type_id, u32 new_at
const u64 after_pair = (old_pair != std::numeric_limits<u64>::max())
? old_pair + (inserted_region_end - old_address)
: old_pair;
- this->insert(*AllocateRegion(memory_region_allocator, inserted_region_end, old_last,
+ this->insert(*AllocateRegion(m_memory_region_allocator, inserted_region_end, old_last,
after_pair, old_attr, old_type));
}
return true;
}
-VAddr KMemoryRegionTree::GetRandomAlignedRegion(size_t size, size_t alignment, u32 type_id) {
+KVirtualAddress KMemoryRegionTree::GetRandomAlignedRegion(size_t size, size_t alignment,
+ u32 type_id) {
// We want to find the total extents of the type id.
const auto extents = this->GetDerivedRegionExtents(static_cast<KMemoryRegionType>(type_id));
@@ -126,14 +127,17 @@ VAddr KMemoryRegionTree::GetRandomAlignedRegion(size_t size, size_t alignment, u
}
KMemoryLayout::KMemoryLayout()
- : virtual_tree{memory_region_allocator}, physical_tree{memory_region_allocator},
- virtual_linear_tree{memory_region_allocator}, physical_linear_tree{memory_region_allocator} {}
+ : m_virtual_tree{m_memory_region_allocator}, m_physical_tree{m_memory_region_allocator},
+ m_virtual_linear_tree{m_memory_region_allocator}, m_physical_linear_tree{
+ m_memory_region_allocator} {}
-void KMemoryLayout::InitializeLinearMemoryRegionTrees(PAddr aligned_linear_phys_start,
- VAddr linear_virtual_start) {
+void KMemoryLayout::InitializeLinearMemoryRegionTrees(KPhysicalAddress aligned_linear_phys_start,
+ KVirtualAddress linear_virtual_start) {
// Set static differences.
- linear_phys_to_virt_diff = linear_virtual_start - aligned_linear_phys_start;
- linear_virt_to_phys_diff = aligned_linear_phys_start - linear_virtual_start;
+ m_linear_phys_to_virt_diff =
+ GetInteger(linear_virtual_start) - GetInteger(aligned_linear_phys_start);
+ m_linear_virt_to_phys_diff =
+ GetInteger(aligned_linear_phys_start) - GetInteger(linear_virtual_start);
// Initialize linear trees.
for (auto& region : GetPhysicalMemoryRegionTree()) {
diff --git a/src/core/hle/kernel/k_memory_layout.h b/src/core/hle/kernel/k_memory_layout.h
index fd6e1d3e6..54a71df56 100644
--- a/src/core/hle/kernel/k_memory_layout.h
+++ b/src/core/hle/kernel/k_memory_layout.h
@@ -10,6 +10,7 @@
#include "core/device_memory.h"
#include "core/hle/kernel/k_memory_region.h"
#include "core/hle/kernel/k_memory_region_type.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/memory_types.h"
namespace Kernel {
@@ -67,12 +68,13 @@ constexpr size_t KernelPageBufferAdditionalSize = 0x33C000;
constexpr std::size_t KernelResourceSize = KernelPageTableHeapSize + KernelInitialPageHeapSize +
KernelSlabHeapSize + KernelPageBufferHeapSize;
-constexpr bool IsKernelAddressKey(VAddr key) {
- return KernelVirtualAddressSpaceBase <= key && key <= KernelVirtualAddressSpaceLast;
-}
+//! NB: Use KThread::GetAddressKeyIsKernel().
+//! See explanation for deviation of GetAddressKey.
+bool IsKernelAddressKey(KProcessAddress key) = delete;
-constexpr bool IsKernelAddress(VAddr address) {
- return KernelVirtualAddressSpaceBase <= address && address < KernelVirtualAddressSpaceEnd;
+constexpr bool IsKernelAddress(KProcessAddress address) {
+ return KernelVirtualAddressSpaceBase <= GetInteger(address) &&
+ address < KernelVirtualAddressSpaceEnd;
}
class KMemoryLayout final {
@@ -80,62 +82,62 @@ public:
KMemoryLayout();
KMemoryRegionTree& GetVirtualMemoryRegionTree() {
- return virtual_tree;
+ return m_virtual_tree;
}
const KMemoryRegionTree& GetVirtualMemoryRegionTree() const {
- return virtual_tree;
+ return m_virtual_tree;
}
KMemoryRegionTree& GetPhysicalMemoryRegionTree() {
- return physical_tree;
+ return m_physical_tree;
}
const KMemoryRegionTree& GetPhysicalMemoryRegionTree() const {
- return physical_tree;
+ return m_physical_tree;
}
KMemoryRegionTree& GetVirtualLinearMemoryRegionTree() {
- return virtual_linear_tree;
+ return m_virtual_linear_tree;
}
const KMemoryRegionTree& GetVirtualLinearMemoryRegionTree() const {
- return virtual_linear_tree;
+ return m_virtual_linear_tree;
}
KMemoryRegionTree& GetPhysicalLinearMemoryRegionTree() {
- return physical_linear_tree;
+ return m_physical_linear_tree;
}
const KMemoryRegionTree& GetPhysicalLinearMemoryRegionTree() const {
- return physical_linear_tree;
+ return m_physical_linear_tree;
}
- VAddr GetLinearVirtualAddress(PAddr address) const {
- return address + linear_phys_to_virt_diff;
+ KVirtualAddress GetLinearVirtualAddress(KPhysicalAddress address) const {
+ return GetInteger(address) + m_linear_phys_to_virt_diff;
}
- PAddr GetLinearPhysicalAddress(VAddr address) const {
- return address + linear_virt_to_phys_diff;
+ KPhysicalAddress GetLinearPhysicalAddress(KVirtualAddress address) const {
+ return GetInteger(address) + m_linear_virt_to_phys_diff;
}
- const KMemoryRegion* FindVirtual(VAddr address) const {
+ const KMemoryRegion* FindVirtual(KVirtualAddress address) const {
return Find(address, GetVirtualMemoryRegionTree());
}
- const KMemoryRegion* FindPhysical(PAddr address) const {
+ const KMemoryRegion* FindPhysical(KPhysicalAddress address) const {
return Find(address, GetPhysicalMemoryRegionTree());
}
- const KMemoryRegion* FindVirtualLinear(VAddr address) const {
+ const KMemoryRegion* FindVirtualLinear(KVirtualAddress address) const {
return Find(address, GetVirtualLinearMemoryRegionTree());
}
- const KMemoryRegion* FindPhysicalLinear(PAddr address) const {
+ const KMemoryRegion* FindPhysicalLinear(KPhysicalAddress address) const {
return Find(address, GetPhysicalLinearMemoryRegionTree());
}
- VAddr GetMainStackTopAddress(s32 core_id) const {
+ KVirtualAddress GetMainStackTopAddress(s32 core_id) const {
return GetStackTopAddress(core_id, KMemoryRegionType_KernelMiscMainStack);
}
- VAddr GetIdleStackTopAddress(s32 core_id) const {
+ KVirtualAddress GetIdleStackTopAddress(s32 core_id) const {
return GetStackTopAddress(core_id, KMemoryRegionType_KernelMiscIdleStack);
}
- VAddr GetExceptionStackTopAddress(s32 core_id) const {
+ KVirtualAddress GetExceptionStackTopAddress(s32 core_id) const {
return GetStackTopAddress(core_id, KMemoryRegionType_KernelMiscExceptionStack);
}
- VAddr GetSlabRegionAddress() const {
+ KVirtualAddress GetSlabRegionAddress() const {
return Dereference(GetVirtualMemoryRegionTree().FindByType(KMemoryRegionType_KernelSlab))
.GetAddress();
}
@@ -143,10 +145,10 @@ public:
const KMemoryRegion& GetDeviceRegion(KMemoryRegionType type) const {
return Dereference(GetPhysicalMemoryRegionTree().FindFirstDerived(type));
}
- PAddr GetDevicePhysicalAddress(KMemoryRegionType type) const {
+ KPhysicalAddress GetDevicePhysicalAddress(KMemoryRegionType type) const {
return GetDeviceRegion(type).GetAddress();
}
- VAddr GetDeviceVirtualAddress(KMemoryRegionType type) const {
+ KVirtualAddress GetDeviceVirtualAddress(KMemoryRegionType type) const {
return GetDeviceRegion(type).GetPairAddress();
}
@@ -175,11 +177,11 @@ public:
KMemoryRegionType_VirtualDramKernelSecureAppletMemory));
}
- const KMemoryRegion& GetVirtualLinearRegion(VAddr address) const {
+ const KMemoryRegion& GetVirtualLinearRegion(KVirtualAddress address) const {
return Dereference(FindVirtualLinear(address));
}
- const KMemoryRegion& GetPhysicalLinearRegion(PAddr address) const {
+ const KMemoryRegion& GetPhysicalLinearRegion(KPhysicalAddress address) const {
return Dereference(FindPhysicalLinear(address));
}
@@ -193,29 +195,32 @@ public:
return GetPhysicalMemoryRegionTree().FindFirstDerived(KMemoryRegionType_DTB);
}
- bool IsHeapPhysicalAddress(const KMemoryRegion*& region, PAddr address) const {
+ bool IsHeapPhysicalAddress(const KMemoryRegion*& region, KPhysicalAddress address) const {
return IsTypedAddress(region, address, GetPhysicalLinearMemoryRegionTree(),
KMemoryRegionType_DramUserPool);
}
- bool IsHeapVirtualAddress(const KMemoryRegion*& region, VAddr address) const {
+ bool IsHeapVirtualAddress(const KMemoryRegion*& region, KVirtualAddress address) const {
return IsTypedAddress(region, address, GetVirtualLinearMemoryRegionTree(),
KMemoryRegionType_VirtualDramUserPool);
}
- bool IsHeapPhysicalAddress(const KMemoryRegion*& region, PAddr address, size_t size) const {
+ bool IsHeapPhysicalAddress(const KMemoryRegion*& region, KPhysicalAddress address,
+ size_t size) const {
return IsTypedAddress(region, address, size, GetPhysicalLinearMemoryRegionTree(),
KMemoryRegionType_DramUserPool);
}
- bool IsHeapVirtualAddress(const KMemoryRegion*& region, VAddr address, size_t size) const {
+ bool IsHeapVirtualAddress(const KMemoryRegion*& region, KVirtualAddress address,
+ size_t size) const {
return IsTypedAddress(region, address, size, GetVirtualLinearMemoryRegionTree(),
KMemoryRegionType_VirtualDramUserPool);
}
- bool IsLinearMappedPhysicalAddress(const KMemoryRegion*& region, PAddr address) const {
+ bool IsLinearMappedPhysicalAddress(const KMemoryRegion*& region,
+ KPhysicalAddress address) const {
return IsTypedAddress(region, address, GetPhysicalLinearMemoryRegionTree(),
static_cast<KMemoryRegionType>(KMemoryRegionAttr_LinearMapped));
}
- bool IsLinearMappedPhysicalAddress(const KMemoryRegion*& region, PAddr address,
+ bool IsLinearMappedPhysicalAddress(const KMemoryRegion*& region, KPhysicalAddress address,
size_t size) const {
return IsTypedAddress(region, address, size, GetPhysicalLinearMemoryRegionTree(),
static_cast<KMemoryRegionType>(KMemoryRegionAttr_LinearMapped));
@@ -234,8 +239,8 @@ public:
return std::make_pair(total_size, kernel_size);
}
- void InitializeLinearMemoryRegionTrees(PAddr aligned_linear_phys_start,
- VAddr linear_virtual_start);
+ void InitializeLinearMemoryRegionTrees(KPhysicalAddress aligned_linear_phys_start,
+ KVirtualAddress linear_virtual_start);
static size_t GetResourceRegionSizeForInit(bool use_extra_resource);
auto GetKernelRegionExtents() const {
@@ -261,8 +266,8 @@ public:
auto GetLinearRegionVirtualExtents() const {
const auto physical = GetLinearRegionPhysicalExtents();
- return KMemoryRegion(GetLinearVirtualAddress(physical.GetAddress()),
- GetLinearVirtualAddress(physical.GetLastAddress()), 0,
+ return KMemoryRegion(GetInteger(GetLinearVirtualAddress(physical.GetAddress())),
+ GetInteger(GetLinearVirtualAddress(physical.GetLastAddress())), 0,
KMemoryRegionType_None);
}
@@ -334,12 +339,12 @@ private:
static bool IsTypedAddress(const KMemoryRegion*& region, AddressType address,
const KMemoryRegionTree& tree, KMemoryRegionType type) {
// Check if the cached region already contains the address.
- if (region != nullptr && region->Contains(address)) {
+ if (region != nullptr && region->Contains(GetInteger(address))) {
return true;
}
// Find the containing region, and update the cache.
- if (const KMemoryRegion* found = tree.Find(address);
+ if (const KMemoryRegion* found = tree.Find(GetInteger(address));
found != nullptr && found->IsDerivedFrom(type)) {
region = found;
return true;
@@ -352,11 +357,12 @@ private:
static bool IsTypedAddress(const KMemoryRegion*& region, AddressType address, size_t size,
const KMemoryRegionTree& tree, KMemoryRegionType type) {
// Get the end of the checked region.
- const u64 last_address = address + size - 1;
+ const u64 last_address = GetInteger(address) + size - 1;
// Walk the tree to verify the region is correct.
- const KMemoryRegion* cur =
- (region != nullptr && region->Contains(address)) ? region : tree.Find(address);
+ const KMemoryRegion* cur = (region != nullptr && region->Contains(GetInteger(address)))
+ ? region
+ : tree.Find(GetInteger(address));
while (cur != nullptr && cur->IsDerivedFrom(type)) {
if (last_address <= cur->GetLastAddress()) {
region = cur;
@@ -370,7 +376,7 @@ private:
template <typename AddressType>
static const KMemoryRegion* Find(AddressType address, const KMemoryRegionTree& tree) {
- return tree.Find(address);
+ return tree.Find(GetInteger(address));
}
static KMemoryRegion& Dereference(KMemoryRegion* region) {
@@ -383,7 +389,7 @@ private:
return *region;
}
- VAddr GetStackTopAddress(s32 core_id, KMemoryRegionType type) const {
+ KVirtualAddress GetStackTopAddress(s32 core_id, KMemoryRegionType type) const {
const auto& region = Dereference(
GetVirtualMemoryRegionTree().FindByTypeAndAttribute(type, static_cast<u32>(core_id)));
ASSERT(region.GetEndAddress() != 0);
@@ -391,13 +397,13 @@ private:
}
private:
- u64 linear_phys_to_virt_diff{};
- u64 linear_virt_to_phys_diff{};
- KMemoryRegionAllocator memory_region_allocator;
- KMemoryRegionTree virtual_tree;
- KMemoryRegionTree physical_tree;
- KMemoryRegionTree virtual_linear_tree;
- KMemoryRegionTree physical_linear_tree;
+ u64 m_linear_phys_to_virt_diff{};
+ u64 m_linear_virt_to_phys_diff{};
+ KMemoryRegionAllocator m_memory_region_allocator;
+ KMemoryRegionTree m_virtual_tree;
+ KMemoryRegionTree m_physical_tree;
+ KMemoryRegionTree m_virtual_linear_tree;
+ KMemoryRegionTree m_physical_linear_tree;
};
namespace Init {
diff --git a/src/core/hle/kernel/k_memory_manager.cpp b/src/core/hle/kernel/k_memory_manager.cpp
index cd6ea388e..74d8169e0 100644
--- a/src/core/hle/kernel/k_memory_manager.cpp
+++ b/src/core/hle/kernel/k_memory_manager.cpp
@@ -5,7 +5,6 @@
#include "common/alignment.h"
#include "common/assert.h"
-#include "common/common_types.h"
#include "common/scope_exit.h"
#include "core/core.h"
#include "core/device_memory.h"
@@ -44,10 +43,10 @@ KMemoryManager::KMemoryManager(Core::System& system)
KLightLock{system.Kernel()},
} {}
-void KMemoryManager::Initialize(VAddr management_region, size_t management_region_size) {
+void KMemoryManager::Initialize(KVirtualAddress management_region, size_t management_region_size) {
// Clear the management region to zero.
- const VAddr management_region_end = management_region + management_region_size;
+ const KVirtualAddress management_region_end = management_region + management_region_size;
// std::memset(GetVoidPointer(management_region), 0, management_region_size);
// Reset our manager count.
@@ -56,7 +55,7 @@ void KMemoryManager::Initialize(VAddr management_region, size_t management_regio
// Traverse the virtual memory layout tree, initializing each manager as appropriate.
while (m_num_managers != MaxManagerCount) {
// Locate the region that should initialize the current manager.
- PAddr region_address = 0;
+ KPhysicalAddress region_address = 0;
size_t region_size = 0;
Pool region_pool = Pool::Count;
for (const auto& it : m_system.Kernel().MemoryLayout().GetPhysicalMemoryRegionTree()) {
@@ -70,8 +69,8 @@ void KMemoryManager::Initialize(VAddr management_region, size_t management_regio
continue;
}
- const PAddr cur_start = it.GetAddress();
- const PAddr cur_end = it.GetEndAddress();
+ const KPhysicalAddress cur_start = it.GetAddress();
+ const KPhysicalAddress cur_end = it.GetEndAddress();
// Validate the region.
ASSERT(cur_end != 0);
@@ -119,17 +118,17 @@ void KMemoryManager::Initialize(VAddr management_region, size_t management_regio
// Free each region to its corresponding heap.
size_t reserved_sizes[MaxManagerCount] = {};
- const PAddr ini_start = GetInitialProcessBinaryPhysicalAddress();
- const PAddr ini_end = ini_start + InitialProcessBinarySizeMax;
- const PAddr ini_last = ini_end - 1;
+ const KPhysicalAddress ini_start = GetInitialProcessBinaryPhysicalAddress();
+ const KPhysicalAddress ini_end = ini_start + InitialProcessBinarySizeMax;
+ const KPhysicalAddress ini_last = ini_end - 1;
for (const auto& it : m_system.Kernel().MemoryLayout().GetPhysicalMemoryRegionTree()) {
if (it.IsDerivedFrom(KMemoryRegionType_DramUserPool)) {
// Get the manager for the region.
auto& manager = m_managers[it.GetAttributes()];
- const PAddr cur_start = it.GetAddress();
- const PAddr cur_last = it.GetLastAddress();
- const PAddr cur_end = it.GetEndAddress();
+ const KPhysicalAddress cur_start = it.GetAddress();
+ const KPhysicalAddress cur_last = it.GetLastAddress();
+ const KPhysicalAddress cur_end = it.GetEndAddress();
if (cur_start <= ini_start && ini_last <= cur_last) {
// Free memory before the ini to the heap.
@@ -175,7 +174,8 @@ void KMemoryManager::FinalizeOptimizedMemory(u64 process_id, Pool pool) {
UNREACHABLE();
}
-PAddr KMemoryManager::AllocateAndOpenContinuous(size_t num_pages, size_t align_pages, u32 option) {
+KPhysicalAddress KMemoryManager::AllocateAndOpenContinuous(size_t num_pages, size_t align_pages,
+ u32 option) {
// Early return if we're allocating no pages.
if (num_pages == 0) {
return 0;
@@ -190,7 +190,7 @@ PAddr KMemoryManager::AllocateAndOpenContinuous(size_t num_pages, size_t align_p
// Loop, trying to iterate from each block.
Impl* chosen_manager = nullptr;
- PAddr allocated_block = 0;
+ KPhysicalAddress allocated_block = 0;
for (chosen_manager = this->GetFirstManager(pool, dir); chosen_manager != nullptr;
chosen_manager = this->GetNextManager(chosen_manager, dir)) {
allocated_block = chosen_manager->AllocateAligned(heap_index, num_pages, align_pages);
@@ -239,7 +239,7 @@ Result KMemoryManager::AllocatePageGroupImpl(KPageGroup* out, size_t num_pages,
cur_manager = this->GetNextManager(cur_manager, dir)) {
while (num_pages >= pages_per_alloc) {
// Allocate a block.
- PAddr allocated_block = cur_manager->AllocateBlock(index, random);
+ KPhysicalAddress allocated_block = cur_manager->AllocateBlock(index, random);
if (allocated_block == 0) {
break;
}
@@ -286,7 +286,7 @@ Result KMemoryManager::AllocateAndOpen(KPageGroup* out, size_t num_pages, u32 op
// Open the first reference to the pages.
for (const auto& block : *out) {
- PAddr cur_address = block.GetAddress();
+ KPhysicalAddress cur_address = block.GetAddress();
size_t remaining_pages = block.GetNumPages();
while (remaining_pages > 0) {
// Get the manager for the current address.
@@ -337,7 +337,7 @@ Result KMemoryManager::AllocateForProcess(KPageGroup* out, size_t num_pages, u32
// Iterate over the allocated blocks.
for (const auto& block : *out) {
// Get the block extents.
- const PAddr block_address = block.GetAddress();
+ const KPhysicalAddress block_address = block.GetAddress();
const size_t block_pages = block.GetNumPages();
// If it has no pages, we don't need to do anything.
@@ -348,7 +348,7 @@ Result KMemoryManager::AllocateForProcess(KPageGroup* out, size_t num_pages, u32
// Fill all the pages that we need to fill.
bool any_new = false;
{
- PAddr cur_address = block_address;
+ KPhysicalAddress cur_address = block_address;
size_t remaining_pages = block_pages;
while (remaining_pages > 0) {
// Get the manager for the current address.
@@ -369,7 +369,7 @@ Result KMemoryManager::AllocateForProcess(KPageGroup* out, size_t num_pages, u32
// If there are new pages, update tracking for the allocation.
if (any_new) {
// Update tracking for the allocation.
- PAddr cur_address = block_address;
+ KPhysicalAddress cur_address = block_address;
size_t remaining_pages = block_pages;
while (remaining_pages > 0) {
// Get the manager for the current address.
@@ -400,8 +400,9 @@ Result KMemoryManager::AllocateForProcess(KPageGroup* out, size_t num_pages, u32
R_SUCCEED();
}
-size_t KMemoryManager::Impl::Initialize(PAddr address, size_t size, VAddr management,
- VAddr management_end, Pool p) {
+size_t KMemoryManager::Impl::Initialize(KPhysicalAddress address, size_t size,
+ KVirtualAddress management, KVirtualAddress management_end,
+ Pool p) {
// Calculate management sizes.
const size_t ref_count_size = (size / PageSize) * sizeof(u16);
const size_t optimize_map_size = CalculateOptimizedProcessOverheadSize(size);
@@ -417,7 +418,7 @@ size_t KMemoryManager::Impl::Initialize(PAddr address, size_t size, VAddr manage
m_management_region = management;
m_page_reference_counts.resize(
Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetIntendedMemorySize() / PageSize);
- ASSERT(Common::IsAligned(m_management_region, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(m_management_region), PageSize));
// Initialize the manager's KPageHeap.
m_heap.Initialize(address, size, management + manager_size, page_heap_size);
@@ -425,15 +426,15 @@ size_t KMemoryManager::Impl::Initialize(PAddr address, size_t size, VAddr manage
return total_management_size;
}
-void KMemoryManager::Impl::TrackUnoptimizedAllocation(PAddr block, size_t num_pages) {
+void KMemoryManager::Impl::TrackUnoptimizedAllocation(KPhysicalAddress block, size_t num_pages) {
UNREACHABLE();
}
-void KMemoryManager::Impl::TrackOptimizedAllocation(PAddr block, size_t num_pages) {
+void KMemoryManager::Impl::TrackOptimizedAllocation(KPhysicalAddress block, size_t num_pages) {
UNREACHABLE();
}
-bool KMemoryManager::Impl::ProcessOptimizedAllocation(PAddr block, size_t num_pages,
+bool KMemoryManager::Impl::ProcessOptimizedAllocation(KPhysicalAddress block, size_t num_pages,
u8 fill_pattern) {
UNREACHABLE();
}
diff --git a/src/core/hle/kernel/k_memory_manager.h b/src/core/hle/kernel/k_memory_manager.h
index 401d4e644..7e4b41319 100644
--- a/src/core/hle/kernel/k_memory_manager.h
+++ b/src/core/hle/kernel/k_memory_manager.h
@@ -7,10 +7,10 @@
#include <tuple>
#include "common/common_funcs.h"
-#include "common/common_types.h"
#include "core/hle/kernel/k_light_lock.h"
#include "core/hle/kernel/k_memory_layout.h"
#include "core/hle/kernel/k_page_heap.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/result.h"
namespace Core {
@@ -50,21 +50,21 @@ public:
explicit KMemoryManager(Core::System& system);
- void Initialize(VAddr management_region, size_t management_region_size);
+ void Initialize(KVirtualAddress management_region, size_t management_region_size);
Result InitializeOptimizedMemory(u64 process_id, Pool pool);
void FinalizeOptimizedMemory(u64 process_id, Pool pool);
- PAddr AllocateAndOpenContinuous(size_t num_pages, size_t align_pages, u32 option);
+ KPhysicalAddress AllocateAndOpenContinuous(size_t num_pages, size_t align_pages, u32 option);
Result AllocateAndOpen(KPageGroup* out, size_t num_pages, u32 option);
Result AllocateForProcess(KPageGroup* out, size_t num_pages, u32 option, u64 process_id,
u8 fill_pattern);
- Pool GetPool(PAddr address) const {
+ Pool GetPool(KPhysicalAddress address) const {
return this->GetManager(address).GetPool();
}
- void Open(PAddr address, size_t num_pages) {
+ void Open(KPhysicalAddress address, size_t num_pages) {
// Repeatedly open references until we've done so for all pages.
while (num_pages) {
auto& manager = this->GetManager(address);
@@ -80,7 +80,7 @@ public:
}
}
- void OpenFirst(PAddr address, size_t num_pages) {
+ void OpenFirst(KPhysicalAddress address, size_t num_pages) {
// Repeatedly open references until we've done so for all pages.
while (num_pages) {
auto& manager = this->GetManager(address);
@@ -96,7 +96,7 @@ public:
}
}
- void Close(PAddr address, size_t num_pages) {
+ void Close(KPhysicalAddress address, size_t num_pages) {
// Repeatedly close references until we've done so for all pages.
while (num_pages) {
auto& manager = this->GetManager(address);
@@ -199,16 +199,16 @@ private:
public:
Impl() = default;
- size_t Initialize(PAddr address, size_t size, VAddr management, VAddr management_end,
- Pool p);
+ size_t Initialize(KPhysicalAddress address, size_t size, KVirtualAddress management,
+ KVirtualAddress management_end, Pool p);
- PAddr AllocateBlock(s32 index, bool random) {
+ KPhysicalAddress AllocateBlock(s32 index, bool random) {
return m_heap.AllocateBlock(index, random);
}
- PAddr AllocateAligned(s32 index, size_t num_pages, size_t align_pages) {
+ KPhysicalAddress AllocateAligned(s32 index, size_t num_pages, size_t align_pages) {
return m_heap.AllocateAligned(index, num_pages, align_pages);
}
- void Free(PAddr addr, size_t num_pages) {
+ void Free(KPhysicalAddress addr, size_t num_pages) {
m_heap.Free(addr, num_pages);
}
@@ -220,10 +220,10 @@ private:
UNIMPLEMENTED();
}
- void TrackUnoptimizedAllocation(PAddr block, size_t num_pages);
- void TrackOptimizedAllocation(PAddr block, size_t num_pages);
+ void TrackUnoptimizedAllocation(KPhysicalAddress block, size_t num_pages);
+ void TrackOptimizedAllocation(KPhysicalAddress block, size_t num_pages);
- bool ProcessOptimizedAllocation(PAddr block, size_t num_pages, u8 fill_pattern);
+ bool ProcessOptimizedAllocation(KPhysicalAddress block, size_t num_pages, u8 fill_pattern);
constexpr Pool GetPool() const {
return m_pool;
@@ -231,7 +231,7 @@ private:
constexpr size_t GetSize() const {
return m_heap.GetSize();
}
- constexpr PAddr GetEndAddress() const {
+ constexpr KPhysicalAddress GetEndAddress() const {
return m_heap.GetEndAddress();
}
@@ -243,10 +243,10 @@ private:
UNIMPLEMENTED();
}
- constexpr size_t GetPageOffset(PAddr address) const {
+ constexpr size_t GetPageOffset(KPhysicalAddress address) const {
return m_heap.GetPageOffset(address);
}
- constexpr size_t GetPageOffsetToEnd(PAddr address) const {
+ constexpr size_t GetPageOffsetToEnd(KPhysicalAddress address) const {
return m_heap.GetPageOffsetToEnd(address);
}
@@ -263,7 +263,7 @@ private:
return m_prev;
}
- void OpenFirst(PAddr address, size_t num_pages) {
+ void OpenFirst(KPhysicalAddress address, size_t num_pages) {
size_t index = this->GetPageOffset(address);
const size_t end = index + num_pages;
while (index < end) {
@@ -274,7 +274,7 @@ private:
}
}
- void Open(PAddr address, size_t num_pages) {
+ void Open(KPhysicalAddress address, size_t num_pages) {
size_t index = this->GetPageOffset(address);
const size_t end = index + num_pages;
while (index < end) {
@@ -285,7 +285,7 @@ private:
}
}
- void Close(PAddr address, size_t num_pages) {
+ void Close(KPhysicalAddress address, size_t num_pages) {
size_t index = this->GetPageOffset(address);
const size_t end = index + num_pages;
@@ -323,18 +323,18 @@ private:
KPageHeap m_heap;
std::vector<RefCount> m_page_reference_counts;
- VAddr m_management_region{};
+ KVirtualAddress m_management_region{};
Pool m_pool{};
Impl* m_next{};
Impl* m_prev{};
};
private:
- Impl& GetManager(PAddr address) {
+ Impl& GetManager(KPhysicalAddress address) {
return m_managers[m_memory_layout.GetPhysicalLinearRegion(address).GetAttributes()];
}
- const Impl& GetManager(PAddr address) const {
+ const Impl& GetManager(KPhysicalAddress address) const {
return m_managers[m_memory_layout.GetPhysicalLinearRegion(address).GetAttributes()];
}
diff --git a/src/core/hle/kernel/k_memory_region.h b/src/core/hle/kernel/k_memory_region.h
index 5037e657f..e3044f022 100644
--- a/src/core/hle/kernel/k_memory_region.h
+++ b/src/core/hle/kernel/k_memory_region.h
@@ -5,9 +5,9 @@
#include "common/assert.h"
#include "common/common_funcs.h"
-#include "common/common_types.h"
#include "common/intrusive_red_black_tree.h"
#include "core/hle/kernel/k_memory_region_type.h"
+#include "core/hle/kernel/k_typed_address.h"
namespace Kernel {
@@ -21,15 +21,15 @@ public:
YUZU_NON_MOVEABLE(KMemoryRegion);
constexpr KMemoryRegion() = default;
- constexpr KMemoryRegion(u64 address_, u64 last_address_)
- : address{address_}, last_address{last_address_} {}
- constexpr KMemoryRegion(u64 address_, u64 last_address_, u64 pair_address_, u32 attributes_,
- u32 type_id_)
- : address(address_), last_address(last_address_), pair_address(pair_address_),
- attributes(attributes_), type_id(type_id_) {}
- constexpr KMemoryRegion(u64 address_, u64 last_address_, u32 attributes_, u32 type_id_)
- : KMemoryRegion(address_, last_address_, std::numeric_limits<u64>::max(), attributes_,
- type_id_) {}
+ constexpr KMemoryRegion(u64 address, u64 last_address)
+ : m_address{address}, m_last_address{last_address} {}
+ constexpr KMemoryRegion(u64 address, u64 last_address, u64 pair_address, u32 attributes,
+ u32 type_id)
+ : m_address(address), m_last_address(last_address), m_pair_address(pair_address),
+ m_attributes(attributes), m_type_id(type_id) {}
+ constexpr KMemoryRegion(u64 address, u64 last_address, u32 attributes, u32 type_id)
+ : KMemoryRegion(address, last_address, std::numeric_limits<u64>::max(), attributes,
+ type_id) {}
~KMemoryRegion() = default;
@@ -44,15 +44,15 @@ public:
}
constexpr u64 GetAddress() const {
- return address;
+ return m_address;
}
constexpr u64 GetPairAddress() const {
- return pair_address;
+ return m_pair_address;
}
constexpr u64 GetLastAddress() const {
- return last_address;
+ return m_last_address;
}
constexpr u64 GetEndAddress() const {
@@ -64,16 +64,16 @@ public:
}
constexpr u32 GetAttributes() const {
- return attributes;
+ return m_attributes;
}
constexpr u32 GetType() const {
- return type_id;
+ return m_type_id;
}
constexpr void SetType(u32 type) {
ASSERT(this->CanDerive(type));
- type_id = type;
+ m_type_id = type;
}
constexpr bool Contains(u64 addr) const {
@@ -94,27 +94,27 @@ public:
}
constexpr void SetPairAddress(u64 a) {
- pair_address = a;
+ m_pair_address = a;
}
constexpr void SetTypeAttribute(u32 attr) {
- type_id |= attr;
+ m_type_id |= attr;
}
private:
constexpr void Reset(u64 a, u64 la, u64 p, u32 r, u32 t) {
- address = a;
- pair_address = p;
- last_address = la;
- attributes = r;
- type_id = t;
- }
-
- u64 address{};
- u64 last_address{};
- u64 pair_address{};
- u32 attributes{};
- u32 type_id{};
+ m_address = a;
+ m_pair_address = p;
+ m_last_address = la;
+ m_attributes = r;
+ m_type_id = t;
+ }
+
+ u64 m_address{};
+ u64 m_last_address{};
+ u64 m_pair_address{};
+ u32 m_attributes{};
+ u32 m_type_id{};
};
class KMemoryRegionTree final {
@@ -243,10 +243,10 @@ public:
void InsertDirectly(u64 address, u64 last_address, u32 attr = 0, u32 type_id = 0);
bool Insert(u64 address, size_t size, u32 type_id, u32 new_attr = 0, u32 old_attr = 0);
- VAddr GetRandomAlignedRegion(size_t size, size_t alignment, u32 type_id);
+ KVirtualAddress GetRandomAlignedRegion(size_t size, size_t alignment, u32 type_id);
- VAddr GetRandomAlignedRegionWithGuard(size_t size, size_t alignment, u32 type_id,
- size_t guard_size) {
+ KVirtualAddress GetRandomAlignedRegionWithGuard(size_t size, size_t alignment, u32 type_id,
+ size_t guard_size) {
return this->GetRandomAlignedRegion(size + 2 * guard_size, alignment, type_id) + guard_size;
}
@@ -322,7 +322,7 @@ public:
private:
TreeType m_tree{};
- KMemoryRegionAllocator& memory_region_allocator;
+ KMemoryRegionAllocator& m_memory_region_allocator;
};
class KMemoryRegionAllocator final {
@@ -338,18 +338,18 @@ public:
template <typename... Args>
KMemoryRegion* Allocate(Args&&... args) {
// Ensure we stay within the bounds of our heap.
- ASSERT(this->num_regions < MaxMemoryRegions);
+ ASSERT(m_num_regions < MaxMemoryRegions);
// Create the new region.
- KMemoryRegion* region = std::addressof(this->region_heap[this->num_regions++]);
- new (region) KMemoryRegion(std::forward<Args>(args)...);
+ KMemoryRegion* region = std::addressof(m_region_heap[m_num_regions++]);
+ std::construct_at(region, std::forward<Args>(args)...);
return region;
}
private:
- std::array<KMemoryRegion, MaxMemoryRegions> region_heap{};
- size_t num_regions{};
+ std::array<KMemoryRegion, MaxMemoryRegions> m_region_heap{};
+ size_t m_num_regions{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_object_name.cpp b/src/core/hle/kernel/k_object_name.cpp
new file mode 100644
index 000000000..df3a1c4c5
--- /dev/null
+++ b/src/core/hle/kernel/k_object_name.cpp
@@ -0,0 +1,102 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/k_object_name.h"
+
+namespace Kernel {
+
+KObjectNameGlobalData::KObjectNameGlobalData(KernelCore& kernel) : m_object_list_lock{kernel} {}
+KObjectNameGlobalData::~KObjectNameGlobalData() = default;
+
+void KObjectName::Initialize(KAutoObject* obj, const char* name) {
+ // Set member variables.
+ m_object = obj;
+ std::strncpy(m_name.data(), name, sizeof(m_name) - 1);
+ m_name[sizeof(m_name) - 1] = '\x00';
+
+ // Open a reference to the object we hold.
+ m_object->Open();
+}
+
+bool KObjectName::MatchesName(const char* name) const {
+ return std::strncmp(m_name.data(), name, sizeof(m_name)) == 0;
+}
+
+Result KObjectName::NewFromName(KernelCore& kernel, KAutoObject* obj, const char* name) {
+ // Create a new object name.
+ KObjectName* new_name = KObjectName::Allocate(kernel);
+ R_UNLESS(new_name != nullptr, ResultOutOfResource);
+
+ // Initialize the new name.
+ new_name->Initialize(obj, name);
+
+ // Check if there's an existing name.
+ {
+ // Get the global data.
+ KObjectNameGlobalData& gd{kernel.ObjectNameGlobalData()};
+
+ // Ensure we have exclusive access to the global list.
+ KScopedLightLock lk{gd.GetObjectListLock()};
+
+ // If the object doesn't exist, put it into the list.
+ KScopedAutoObject existing_object = FindImpl(kernel, name);
+ if (existing_object.IsNull()) {
+ gd.GetObjectList().push_back(*new_name);
+ R_SUCCEED();
+ }
+ }
+
+ // The object already exists, which is an error condition. Perform cleanup.
+ obj->Close();
+ KObjectName::Free(kernel, new_name);
+ R_THROW(ResultInvalidState);
+}
+
+Result KObjectName::Delete(KernelCore& kernel, KAutoObject* obj, const char* compare_name) {
+ // Get the global data.
+ KObjectNameGlobalData& gd{kernel.ObjectNameGlobalData()};
+
+ // Ensure we have exclusive access to the global list.
+ KScopedLightLock lk{gd.GetObjectListLock()};
+
+ // Find a matching entry in the list, and delete it.
+ for (auto& name : gd.GetObjectList()) {
+ if (name.MatchesName(compare_name) && obj == name.GetObject()) {
+ // We found a match, clean up its resources.
+ obj->Close();
+ gd.GetObjectList().erase(gd.GetObjectList().iterator_to(name));
+ KObjectName::Free(kernel, std::addressof(name));
+ R_SUCCEED();
+ }
+ }
+
+ // We didn't find the object in the list.
+ R_THROW(ResultNotFound);
+}
+
+KScopedAutoObject<KAutoObject> KObjectName::Find(KernelCore& kernel, const char* name) {
+ // Get the global data.
+ KObjectNameGlobalData& gd{kernel.ObjectNameGlobalData()};
+
+ // Ensure we have exclusive access to the global list.
+ KScopedLightLock lk{gd.GetObjectListLock()};
+
+ return FindImpl(kernel, name);
+}
+
+KScopedAutoObject<KAutoObject> KObjectName::FindImpl(KernelCore& kernel, const char* compare_name) {
+ // Get the global data.
+ KObjectNameGlobalData& gd{kernel.ObjectNameGlobalData()};
+
+ // Try to find a matching object in the global list.
+ for (const auto& name : gd.GetObjectList()) {
+ if (name.MatchesName(compare_name)) {
+ return name.GetObject();
+ }
+ }
+
+ // There's no matching entry in the list.
+ return nullptr;
+}
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/k_object_name.h b/src/core/hle/kernel/k_object_name.h
new file mode 100644
index 000000000..a8876fe37
--- /dev/null
+++ b/src/core/hle/kernel/k_object_name.h
@@ -0,0 +1,88 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <array>
+#include <memory>
+
+#include "common/intrusive_list.h"
+
+#include "core/hle/kernel/k_light_lock.h"
+#include "core/hle/kernel/slab_helpers.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel {
+
+class KObjectNameGlobalData;
+
+class KObjectName : public KSlabAllocated<KObjectName>,
+ public Common::IntrusiveListBaseNode<KObjectName> {
+public:
+ explicit KObjectName(KernelCore&) {}
+ virtual ~KObjectName() = default;
+
+ static constexpr size_t NameLengthMax = 12;
+ using List = Common::IntrusiveListBaseTraits<KObjectName>::ListType;
+
+ static Result NewFromName(KernelCore& kernel, KAutoObject* obj, const char* name);
+ static Result Delete(KernelCore& kernel, KAutoObject* obj, const char* name);
+
+ static KScopedAutoObject<KAutoObject> Find(KernelCore& kernel, const char* name);
+
+ template <typename Derived>
+ static Result Delete(KernelCore& kernel, const char* name) {
+ // Find the object.
+ KScopedAutoObject obj = Find(kernel, name);
+ R_UNLESS(obj.IsNotNull(), ResultNotFound);
+
+ // Cast the object to the desired type.
+ Derived* derived = obj->DynamicCast<Derived*>();
+ R_UNLESS(derived != nullptr, ResultNotFound);
+
+ // Check that the object is closed.
+ R_UNLESS(derived->IsServerClosed(), ResultInvalidState);
+
+ R_RETURN(Delete(kernel, obj.GetPointerUnsafe(), name));
+ }
+
+ template <typename Derived>
+ requires(std::derived_from<Derived, KAutoObject>)
+ static KScopedAutoObject<Derived> Find(KernelCore& kernel, const char* name) {
+ return Find(kernel, name);
+ }
+
+private:
+ static KScopedAutoObject<KAutoObject> FindImpl(KernelCore& kernel, const char* name);
+
+ void Initialize(KAutoObject* obj, const char* name);
+
+ bool MatchesName(const char* name) const;
+ KAutoObject* GetObject() const {
+ return m_object;
+ }
+
+private:
+ std::array<char, NameLengthMax> m_name{};
+ KAutoObject* m_object{};
+};
+
+class KObjectNameGlobalData {
+public:
+ explicit KObjectNameGlobalData(KernelCore& kernel);
+ ~KObjectNameGlobalData();
+
+ KLightLock& GetObjectListLock() {
+ return m_object_list_lock;
+ }
+
+ KObjectName::List& GetObjectList() {
+ return m_object_list;
+ }
+
+private:
+ KLightLock m_object_list_lock;
+ KObjectName::List m_object_list;
+};
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/k_page_buffer.cpp b/src/core/hle/kernel/k_page_buffer.cpp
index 0c16dded4..e9830e6d9 100644
--- a/src/core/hle/kernel/k_page_buffer.cpp
+++ b/src/core/hle/kernel/k_page_buffer.cpp
@@ -10,8 +10,8 @@
namespace Kernel {
-KPageBuffer* KPageBuffer::FromPhysicalAddress(Core::System& system, PAddr phys_addr) {
- ASSERT(Common::IsAligned(phys_addr, PageSize));
+KPageBuffer* KPageBuffer::FromPhysicalAddress(Core::System& system, KPhysicalAddress phys_addr) {
+ ASSERT(Common::IsAligned(GetInteger(phys_addr), PageSize));
return system.DeviceMemory().GetPointer<KPageBuffer>(phys_addr);
}
diff --git a/src/core/hle/kernel/k_page_buffer.h b/src/core/hle/kernel/k_page_buffer.h
index cfedaae61..f6a7f1e39 100644
--- a/src/core/hle/kernel/k_page_buffer.h
+++ b/src/core/hle/kernel/k_page_buffer.h
@@ -26,10 +26,10 @@ public:
explicit KPageBuffer(KernelCore&) {}
KPageBuffer() = default;
- static KPageBuffer* FromPhysicalAddress(Core::System& system, PAddr phys_addr);
+ static KPageBuffer* FromPhysicalAddress(Core::System& system, KPhysicalAddress phys_addr);
private:
- [[maybe_unused]] alignas(PageSize) std::array<u8, PageSize> m_buffer{};
+ alignas(PageSize) std::array<u8, PageSize> m_buffer{};
};
static_assert(sizeof(KPageBuffer) == KPageBufferSlabHeap::BufferSize);
diff --git a/src/core/hle/kernel/k_page_group.h b/src/core/hle/kernel/k_page_group.h
index c07f17663..b32909f05 100644
--- a/src/core/hle/kernel/k_page_group.h
+++ b/src/core/hle/kernel/k_page_group.h
@@ -22,7 +22,7 @@ public:
constexpr explicit KBlockInfo() : m_next(nullptr) {}
constexpr void Initialize(KPhysicalAddress addr, size_t np) {
- ASSERT(Common::IsAligned(addr, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(addr), PageSize));
ASSERT(static_cast<u32>(np) == np);
m_page_index = static_cast<u32>(addr / PageSize);
diff --git a/src/core/hle/kernel/k_page_heap.cpp b/src/core/hle/kernel/k_page_heap.cpp
index 7b02c7d8b..95762b5a2 100644
--- a/src/core/hle/kernel/k_page_heap.cpp
+++ b/src/core/hle/kernel/k_page_heap.cpp
@@ -6,14 +6,14 @@
namespace Kernel {
-void KPageHeap::Initialize(PAddr address, size_t size, VAddr management_address,
- size_t management_size, const size_t* block_shifts,
- size_t num_block_shifts) {
+void KPageHeap::Initialize(KPhysicalAddress address, size_t size,
+ KVirtualAddress management_address, size_t management_size,
+ const size_t* block_shifts, size_t num_block_shifts) {
// Check our assumptions.
- ASSERT(Common::IsAligned(address, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(address), PageSize));
ASSERT(Common::IsAligned(size, PageSize));
ASSERT(0 < num_block_shifts && num_block_shifts <= NumMemoryBlockPageShifts);
- const VAddr management_end = management_address + management_size;
+ const KVirtualAddress management_end = management_address + management_size;
// Set our members.
m_heap_address = address;
@@ -31,7 +31,7 @@ void KPageHeap::Initialize(PAddr address, size_t size, VAddr management_address,
}
// Ensure we didn't overextend our bounds.
- ASSERT(VAddr(cur_bitmap_storage) <= management_end);
+ ASSERT(KVirtualAddress(cur_bitmap_storage) <= management_end);
}
size_t KPageHeap::GetNumFreePages() const {
@@ -44,11 +44,11 @@ size_t KPageHeap::GetNumFreePages() const {
return num_free;
}
-PAddr KPageHeap::AllocateByLinearSearch(s32 index) {
+KPhysicalAddress KPageHeap::AllocateByLinearSearch(s32 index) {
const size_t needed_size = m_blocks[index].GetSize();
for (s32 i = index; i < static_cast<s32>(m_num_blocks); i++) {
- if (const PAddr addr = m_blocks[i].PopBlock(false); addr != 0) {
+ if (const KPhysicalAddress addr = m_blocks[i].PopBlock(false); addr != 0) {
if (const size_t allocated_size = m_blocks[i].GetSize(); allocated_size > needed_size) {
this->Free(addr + needed_size, (allocated_size - needed_size) / PageSize);
}
@@ -59,7 +59,7 @@ PAddr KPageHeap::AllocateByLinearSearch(s32 index) {
return 0;
}
-PAddr KPageHeap::AllocateByRandom(s32 index, size_t num_pages, size_t align_pages) {
+KPhysicalAddress KPageHeap::AllocateByRandom(s32 index, size_t num_pages, size_t align_pages) {
// Get the size and required alignment.
const size_t needed_size = num_pages * PageSize;
const size_t align_size = align_pages * PageSize;
@@ -110,7 +110,7 @@ PAddr KPageHeap::AllocateByRandom(s32 index, size_t num_pages, size_t align_page
}
// Pop a block from the index we selected.
- if (PAddr addr = m_blocks[index].PopBlock(true); addr != 0) {
+ if (KPhysicalAddress addr = m_blocks[index].PopBlock(true); addr != 0) {
// Determine how much size we have left over.
if (const size_t leftover_size = m_blocks[index].GetSize() - needed_size;
leftover_size > 0) {
@@ -141,13 +141,13 @@ PAddr KPageHeap::AllocateByRandom(s32 index, size_t num_pages, size_t align_page
return 0;
}
-void KPageHeap::FreeBlock(PAddr block, s32 index) {
+void KPageHeap::FreeBlock(KPhysicalAddress block, s32 index) {
do {
block = m_blocks[index++].PushBlock(block);
} while (block != 0);
}
-void KPageHeap::Free(PAddr addr, size_t num_pages) {
+void KPageHeap::Free(KPhysicalAddress addr, size_t num_pages) {
// Freeing no pages is a no-op.
if (num_pages == 0) {
return;
@@ -155,16 +155,16 @@ void KPageHeap::Free(PAddr addr, size_t num_pages) {
// Find the largest block size that we can free, and free as many as possible.
s32 big_index = static_cast<s32>(m_num_blocks) - 1;
- const PAddr start = addr;
- const PAddr end = addr + num_pages * PageSize;
- PAddr before_start = start;
- PAddr before_end = start;
- PAddr after_start = end;
- PAddr after_end = end;
+ const KPhysicalAddress start = addr;
+ const KPhysicalAddress end = addr + num_pages * PageSize;
+ KPhysicalAddress before_start = start;
+ KPhysicalAddress before_end = start;
+ KPhysicalAddress after_start = end;
+ KPhysicalAddress after_end = end;
while (big_index >= 0) {
const size_t block_size = m_blocks[big_index].GetSize();
- const PAddr big_start = Common::AlignUp(start, block_size);
- const PAddr big_end = Common::AlignDown(end, block_size);
+ const KPhysicalAddress big_start = Common::AlignUp(GetInteger(start), block_size);
+ const KPhysicalAddress big_end = Common::AlignDown(GetInteger(end), block_size);
if (big_start < big_end) {
// Free as many big blocks as we can.
for (auto block = big_start; block < big_end; block += block_size) {
diff --git a/src/core/hle/kernel/k_page_heap.h b/src/core/hle/kernel/k_page_heap.h
index 9021edcf7..c55225bac 100644
--- a/src/core/hle/kernel/k_page_heap.h
+++ b/src/core/hle/kernel/k_page_heap.h
@@ -8,8 +8,8 @@
#include "common/alignment.h"
#include "common/common_funcs.h"
-#include "common/common_types.h"
#include "core/hle/kernel/k_page_bitmap.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/memory_types.h"
namespace Kernel {
@@ -18,24 +18,24 @@ class KPageHeap {
public:
KPageHeap() = default;
- constexpr PAddr GetAddress() const {
+ constexpr KPhysicalAddress GetAddress() const {
return m_heap_address;
}
constexpr size_t GetSize() const {
return m_heap_size;
}
- constexpr PAddr GetEndAddress() const {
+ constexpr KPhysicalAddress GetEndAddress() const {
return this->GetAddress() + this->GetSize();
}
- constexpr size_t GetPageOffset(PAddr block) const {
+ constexpr size_t GetPageOffset(KPhysicalAddress block) const {
return (block - this->GetAddress()) / PageSize;
}
- constexpr size_t GetPageOffsetToEnd(PAddr block) const {
+ constexpr size_t GetPageOffsetToEnd(KPhysicalAddress block) const {
return (this->GetEndAddress() - block) / PageSize;
}
- void Initialize(PAddr heap_address, size_t heap_size, VAddr management_address,
- size_t management_size) {
+ void Initialize(KPhysicalAddress heap_address, size_t heap_size,
+ KVirtualAddress management_address, size_t management_size) {
return this->Initialize(heap_address, heap_size, management_address, management_size,
MemoryBlockPageShifts.data(), NumMemoryBlockPageShifts);
}
@@ -53,7 +53,7 @@ public:
m_initial_used_size = m_heap_size - free_size - reserved_size;
}
- PAddr AllocateBlock(s32 index, bool random) {
+ KPhysicalAddress AllocateBlock(s32 index, bool random) {
if (random) {
const size_t block_pages = m_blocks[index].GetNumPages();
return this->AllocateByRandom(index, block_pages, block_pages);
@@ -62,12 +62,12 @@ public:
}
}
- PAddr AllocateAligned(s32 index, size_t num_pages, size_t align_pages) {
+ KPhysicalAddress AllocateAligned(s32 index, size_t num_pages, size_t align_pages) {
// TODO: linear search support?
return this->AllocateByRandom(index, num_pages, align_pages);
}
- void Free(PAddr addr, size_t num_pages);
+ void Free(KPhysicalAddress addr, size_t num_pages);
static size_t CalculateManagementOverheadSize(size_t region_size) {
return CalculateManagementOverheadSize(region_size, MemoryBlockPageShifts.data(),
@@ -125,24 +125,25 @@ private:
return this->GetNumFreeBlocks() * this->GetNumPages();
}
- u64* Initialize(PAddr addr, size_t size, size_t bs, size_t nbs, u64* bit_storage) {
+ u64* Initialize(KPhysicalAddress addr, size_t size, size_t bs, size_t nbs,
+ u64* bit_storage) {
// Set shifts.
m_block_shift = bs;
m_next_block_shift = nbs;
// Align up the address.
- PAddr end = addr + size;
+ KPhysicalAddress end = addr + size;
const size_t align = (m_next_block_shift != 0) ? (u64(1) << m_next_block_shift)
: (u64(1) << m_block_shift);
- addr = Common::AlignDown(addr, align);
- end = Common::AlignUp(end, align);
+ addr = Common::AlignDown(GetInteger(addr), align);
+ end = Common::AlignUp(GetInteger(end), align);
m_heap_address = addr;
m_end_offset = (end - addr) / (u64(1) << m_block_shift);
return m_bitmap.Initialize(bit_storage, m_end_offset);
}
- PAddr PushBlock(PAddr address) {
+ KPhysicalAddress PushBlock(KPhysicalAddress address) {
// Set the bit for the free block.
size_t offset = (address - m_heap_address) >> this->GetShift();
m_bitmap.SetBit(offset);
@@ -161,7 +162,7 @@ private:
return {};
}
- PAddr PopBlock(bool random) {
+ KPhysicalAddress PopBlock(bool random) {
// Find a free block.
s64 soffset = m_bitmap.FindFreeBlock(random);
if (soffset < 0) {
@@ -187,18 +188,19 @@ private:
private:
KPageBitmap m_bitmap;
- PAddr m_heap_address{};
+ KPhysicalAddress m_heap_address{};
uintptr_t m_end_offset{};
size_t m_block_shift{};
size_t m_next_block_shift{};
};
private:
- void Initialize(PAddr heap_address, size_t heap_size, VAddr management_address,
- size_t management_size, const size_t* block_shifts, size_t num_block_shifts);
+ void Initialize(KPhysicalAddress heap_address, size_t heap_size,
+ KVirtualAddress management_address, size_t management_size,
+ const size_t* block_shifts, size_t num_block_shifts);
size_t GetNumFreePages() const;
- void FreeBlock(PAddr block, s32 index);
+ void FreeBlock(KPhysicalAddress block, s32 index);
static constexpr size_t NumMemoryBlockPageShifts{7};
static constexpr std::array<size_t, NumMemoryBlockPageShifts> MemoryBlockPageShifts{
@@ -206,14 +208,14 @@ private:
};
private:
- PAddr AllocateByLinearSearch(s32 index);
- PAddr AllocateByRandom(s32 index, size_t num_pages, size_t align_pages);
+ KPhysicalAddress AllocateByLinearSearch(s32 index);
+ KPhysicalAddress AllocateByRandom(s32 index, size_t num_pages, size_t align_pages);
static size_t CalculateManagementOverheadSize(size_t region_size, const size_t* block_shifts,
size_t num_block_shifts);
private:
- PAddr m_heap_address{};
+ KPhysicalAddress m_heap_address{};
size_t m_heap_size{};
size_t m_initial_used_size{};
size_t m_num_blocks{};
diff --git a/src/core/hle/kernel/k_page_table.cpp b/src/core/hle/kernel/k_page_table.cpp
index 9c7ac22dc..02b5cada4 100644
--- a/src/core/hle/kernel/k_page_table.cpp
+++ b/src/core/hle/kernel/k_page_table.cpp
@@ -106,9 +106,10 @@ KPageTable::~KPageTable() = default;
Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type, bool enable_aslr,
bool enable_das_merge, bool from_back,
- KMemoryManager::Pool pool, VAddr code_addr,
+ KMemoryManager::Pool pool, KProcessAddress code_addr,
size_t code_size, KSystemResource* system_resource,
- KResourceLimit* resource_limit) {
+ KResourceLimit* resource_limit,
+ Core::Memory::Memory& memory) {
const auto GetSpaceStart = [this](KAddressSpaceInfo::Type type) {
return KAddressSpaceInfo::GetAddressSpaceStart(m_address_space_width, type);
@@ -117,10 +118,13 @@ Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type
return KAddressSpaceInfo::GetAddressSpaceSize(m_address_space_width, type);
};
+ // Set the tracking memory
+ m_memory = std::addressof(memory);
+
// Set our width and heap/alias sizes
m_address_space_width = GetAddressSpaceWidthFromType(as_type);
- const VAddr start = 0;
- const VAddr end{1ULL << m_address_space_width};
+ const KProcessAddress start = 0;
+ const KProcessAddress end{1ULL << m_address_space_width};
size_t alias_region_size{GetSpaceSize(KAddressSpaceInfo::Type::Alias)};
size_t heap_region_size{GetSpaceSize(KAddressSpaceInfo::Type::Heap)};
@@ -135,8 +139,8 @@ Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type
// Set code regions and determine remaining
constexpr size_t RegionAlignment{2_MiB};
- VAddr process_code_start{};
- VAddr process_code_end{};
+ KProcessAddress process_code_start{};
+ KProcessAddress process_code_end{};
size_t stack_region_size{};
size_t kernel_map_region_size{};
@@ -149,8 +153,8 @@ Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type
m_code_region_end = m_code_region_start + GetSpaceSize(KAddressSpaceInfo::Type::Map39Bit);
m_alias_code_region_start = m_code_region_start;
m_alias_code_region_end = m_code_region_end;
- process_code_start = Common::AlignDown(code_addr, RegionAlignment);
- process_code_end = Common::AlignUp(code_addr + code_size, RegionAlignment);
+ process_code_start = Common::AlignDown(GetInteger(code_addr), RegionAlignment);
+ process_code_end = Common::AlignUp(GetInteger(code_addr) + code_size, RegionAlignment);
} else {
stack_region_size = 0;
kernel_map_region_size = 0;
@@ -178,7 +182,7 @@ Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type
m_resource_limit = resource_limit;
// Determine the region we can place our undetermineds in
- VAddr alloc_start{};
+ KProcessAddress alloc_start{};
size_t alloc_size{};
if ((process_code_start - m_code_region_start) >= (end - process_code_end)) {
alloc_start = m_code_region_start;
@@ -292,7 +296,7 @@ Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type
: KMemoryManager::Direction::FromFront);
// Ensure that we regions inside our address space
- auto IsInAddressSpace = [&](VAddr addr) {
+ auto IsInAddressSpace = [&](KProcessAddress addr) {
return m_address_space_start <= addr && addr <= m_address_space_end;
};
ASSERT(IsInAddressSpace(m_alias_region_start));
@@ -305,14 +309,14 @@ Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type
ASSERT(IsInAddressSpace(m_kernel_map_region_end));
// Ensure that we selected regions that don't overlap
- const VAddr alias_start{m_alias_region_start};
- const VAddr alias_last{m_alias_region_end - 1};
- const VAddr heap_start{m_heap_region_start};
- const VAddr heap_last{m_heap_region_end - 1};
- const VAddr stack_start{m_stack_region_start};
- const VAddr stack_last{m_stack_region_end - 1};
- const VAddr kmap_start{m_kernel_map_region_start};
- const VAddr kmap_last{m_kernel_map_region_end - 1};
+ const KProcessAddress alias_start{m_alias_region_start};
+ const KProcessAddress alias_last{m_alias_region_end - 1};
+ const KProcessAddress heap_start{m_heap_region_start};
+ const KProcessAddress heap_last{m_heap_region_end - 1};
+ const KProcessAddress stack_start{m_stack_region_start};
+ const KProcessAddress stack_last{m_stack_region_end - 1};
+ const KProcessAddress kmap_start{m_kernel_map_region_start};
+ const KProcessAddress kmap_last{m_kernel_map_region_end - 1};
ASSERT(alias_last < heap_start || heap_last < alias_start);
ASSERT(alias_last < stack_start || stack_last < alias_start);
ASSERT(alias_last < kmap_start || kmap_last < alias_start);
@@ -334,9 +338,10 @@ Result KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_type
void KPageTable::Finalize() {
// Finalize memory blocks.
- m_memory_block_manager.Finalize(m_memory_block_slab_manager, [&](VAddr addr, u64 size) {
- m_system.Memory().UnmapRegion(*m_page_table_impl, addr, size);
- });
+ m_memory_block_manager.Finalize(m_memory_block_slab_manager,
+ [&](KProcessAddress addr, u64 size) {
+ m_memory->UnmapRegion(*m_page_table_impl, addr, size);
+ });
// Release any insecure mapped memory.
if (m_mapped_insecure_memory) {
@@ -352,7 +357,7 @@ void KPageTable::Finalize() {
m_page_table_impl.reset();
}
-Result KPageTable::MapProcessCode(VAddr addr, size_t num_pages, KMemoryState state,
+Result KPageTable::MapProcessCode(KProcessAddress addr, size_t num_pages, KMemoryState state,
KMemoryPermission perm) {
const u64 size{num_pages * PageSize};
@@ -388,7 +393,8 @@ Result KPageTable::MapProcessCode(VAddr addr, size_t num_pages, KMemoryState sta
R_SUCCEED();
}
-Result KPageTable::MapCodeMemory(VAddr dst_address, VAddr src_address, size_t size) {
+Result KPageTable::MapCodeMemory(KProcessAddress dst_address, KProcessAddress src_address,
+ size_t size) {
// Validate the mapping request.
R_UNLESS(this->CanContain(dst_address, size, KMemoryState::AliasCode),
ResultInvalidMemoryRegion);
@@ -435,6 +441,9 @@ Result KPageTable::MapCodeMemory(VAddr dst_address, VAddr src_address, size_t si
KPageGroup pg{m_kernel, m_block_info_manager};
AddRegionToPages(src_address, num_pages, pg);
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
+
// Reprotect the source as kernel-read/not mapped.
const auto new_perm = static_cast<KMemoryPermission>(KMemoryPermission::KernelRead |
KMemoryPermission::NotMapped);
@@ -447,7 +456,10 @@ Result KPageTable::MapCodeMemory(VAddr dst_address, VAddr src_address, size_t si
});
// Map the alias pages.
- R_TRY(MapPages(dst_address, pg, new_perm));
+ const KPageProperties dst_properties = {new_perm, false, false,
+ DisableMergeAttribute::DisableHead};
+ R_TRY(
+ this->MapPageGroupImpl(updater.GetPageList(), dst_address, pg, dst_properties, false));
// We successfully mapped the alias pages, so we don't need to unprotect the src pages on
// failure.
@@ -467,7 +479,8 @@ Result KPageTable::MapCodeMemory(VAddr dst_address, VAddr src_address, size_t si
R_SUCCEED();
}
-Result KPageTable::UnmapCodeMemory(VAddr dst_address, VAddr src_address, size_t size,
+Result KPageTable::UnmapCodeMemory(KProcessAddress dst_address, KProcessAddress src_address,
+ size_t size,
ICacheInvalidationStrategy icache_invalidation_strategy) {
// Validate the mapping request.
R_UNLESS(this->CanContain(dst_address, size, KMemoryState::AliasCode),
@@ -519,7 +532,7 @@ Result KPageTable::UnmapCodeMemory(VAddr dst_address, VAddr src_address, size_t
SCOPE_EXIT({
if (reprotected_pages && any_code_pages) {
if (icache_invalidation_strategy == ICacheInvalidationStrategy::InvalidateRange) {
- m_system.InvalidateCpuInstructionCacheRange(dst_address, size);
+ m_system.InvalidateCpuInstructionCacheRange(GetInteger(dst_address), size);
} else {
m_system.InvalidateCpuInstructionCaches();
}
@@ -569,9 +582,10 @@ Result KPageTable::UnmapCodeMemory(VAddr dst_address, VAddr src_address, size_t
R_SUCCEED();
}
-VAddr KPageTable::FindFreeArea(VAddr region_start, size_t region_num_pages, size_t num_pages,
- size_t alignment, size_t offset, size_t guard_pages) {
- VAddr address = 0;
+KProcessAddress KPageTable::FindFreeArea(KProcessAddress region_start, size_t region_num_pages,
+ size_t num_pages, size_t alignment, size_t offset,
+ size_t guard_pages) {
+ KProcessAddress address = 0;
if (num_pages <= region_num_pages) {
if (this->IsAslrEnabled()) {
@@ -587,7 +601,7 @@ VAddr KPageTable::FindFreeArea(VAddr region_start, size_t region_num_pages, size
return address;
}
-Result KPageTable::MakePageGroup(KPageGroup& pg, VAddr addr, size_t num_pages) {
+Result KPageTable::MakePageGroup(KPageGroup& pg, KProcessAddress addr, size_t num_pages) {
ASSERT(this->IsLockedByCurrentThread());
const size_t size = num_pages * PageSize;
@@ -598,11 +612,11 @@ Result KPageTable::MakePageGroup(KPageGroup& pg, VAddr addr, size_t num_pages) {
// Begin traversal.
Common::PageTable::TraversalContext context;
Common::PageTable::TraversalEntry next_entry;
- R_UNLESS(m_page_table_impl->BeginTraversal(next_entry, context, addr),
+ R_UNLESS(m_page_table_impl->BeginTraversal(next_entry, context, GetInteger(addr)),
ResultInvalidCurrentMemory);
// Prepare tracking variables.
- PAddr cur_addr = next_entry.phys_addr;
+ KPhysicalAddress cur_addr = next_entry.phys_addr;
size_t cur_size = next_entry.block_size - (cur_addr & (next_entry.block_size - 1));
size_t tot_size = cur_size;
@@ -640,7 +654,7 @@ Result KPageTable::MakePageGroup(KPageGroup& pg, VAddr addr, size_t num_pages) {
R_SUCCEED();
}
-bool KPageTable::IsValidPageGroup(const KPageGroup& pg, VAddr addr, size_t num_pages) {
+bool KPageTable::IsValidPageGroup(const KPageGroup& pg, KProcessAddress addr, size_t num_pages) {
ASSERT(this->IsLockedByCurrentThread());
const size_t size = num_pages * PageSize;
@@ -653,7 +667,7 @@ bool KPageTable::IsValidPageGroup(const KPageGroup& pg, VAddr addr, size_t num_p
// We're going to validate that the group we'd expect is the group we see.
auto cur_it = pg.begin();
- PAddr cur_block_address = cur_it->GetAddress();
+ KPhysicalAddress cur_block_address = cur_it->GetAddress();
size_t cur_block_pages = cur_it->GetNumPages();
auto UpdateCurrentIterator = [&]() {
@@ -671,12 +685,12 @@ bool KPageTable::IsValidPageGroup(const KPageGroup& pg, VAddr addr, size_t num_p
// Begin traversal.
Common::PageTable::TraversalContext context;
Common::PageTable::TraversalEntry next_entry;
- if (!m_page_table_impl->BeginTraversal(next_entry, context, addr)) {
+ if (!m_page_table_impl->BeginTraversal(next_entry, context, GetInteger(addr))) {
return false;
}
// Prepare tracking variables.
- PAddr cur_addr = next_entry.phys_addr;
+ KPhysicalAddress cur_addr = next_entry.phys_addr;
size_t cur_size = next_entry.block_size - (cur_addr & (next_entry.block_size - 1));
size_t tot_size = cur_size;
@@ -728,8 +742,8 @@ bool KPageTable::IsValidPageGroup(const KPageGroup& pg, VAddr addr, size_t num_p
return cur_block_address == cur_addr && cur_block_pages == (cur_size / PageSize);
}
-Result KPageTable::UnmapProcessMemory(VAddr dst_addr, size_t size, KPageTable& src_page_table,
- VAddr src_addr) {
+Result KPageTable::UnmapProcessMemory(KProcessAddress dst_addr, size_t size,
+ KPageTable& src_page_table, KProcessAddress src_addr) {
// Acquire the table locks.
KScopedLightLockPair lk(src_page_table.m_general_lock, m_general_lock);
@@ -768,8 +782,8 @@ Result KPageTable::UnmapProcessMemory(VAddr dst_addr, size_t size, KPageTable& s
}
Result KPageTable::SetupForIpcClient(PageLinkedList* page_list, size_t* out_blocks_needed,
- VAddr address, size_t size, KMemoryPermission test_perm,
- KMemoryState dst_state) {
+ KProcessAddress address, size_t size,
+ KMemoryPermission test_perm, KMemoryState dst_state) {
// Validate pre-conditions.
ASSERT(this->IsLockedByCurrentThread());
ASSERT(test_perm == KMemoryPermission::UserReadWrite ||
@@ -784,10 +798,10 @@ Result KPageTable::SetupForIpcClient(PageLinkedList* page_list, size_t* out_bloc
: KMemoryPermission::UserRead;
// Get aligned extents.
- const VAddr aligned_src_start = Common::AlignDown((address), PageSize);
- const VAddr aligned_src_end = Common::AlignUp((address) + size, PageSize);
- const VAddr mapping_src_start = Common::AlignUp((address), PageSize);
- const VAddr mapping_src_end = Common::AlignDown((address) + size, PageSize);
+ const KProcessAddress aligned_src_start = Common::AlignDown(GetInteger(address), PageSize);
+ const KProcessAddress aligned_src_end = Common::AlignUp(GetInteger(address) + size, PageSize);
+ const KProcessAddress mapping_src_start = Common::AlignUp(GetInteger(address), PageSize);
+ const KProcessAddress mapping_src_end = Common::AlignDown(GetInteger(address) + size, PageSize);
const auto aligned_src_last = (aligned_src_end)-1;
const auto mapping_src_last = (mapping_src_end)-1;
@@ -834,14 +848,15 @@ Result KPageTable::SetupForIpcClient(PageLinkedList* page_list, size_t* out_bloc
test_attr_mask, KMemoryAttribute::None));
if (mapping_src_start < mapping_src_end && (mapping_src_start) < info.GetEndAddress() &&
- info.GetAddress() < (mapping_src_end)) {
- const auto cur_start =
- info.GetAddress() >= (mapping_src_start) ? info.GetAddress() : (mapping_src_start);
+ info.GetAddress() < GetInteger(mapping_src_end)) {
+ const auto cur_start = info.GetAddress() >= GetInteger(mapping_src_start)
+ ? info.GetAddress()
+ : (mapping_src_start);
const auto cur_end = mapping_src_last >= info.GetLastAddress() ? info.GetEndAddress()
: (mapping_src_end);
const size_t cur_size = cur_end - cur_start;
- if (info.GetAddress() < (mapping_src_start)) {
+ if (info.GetAddress() < GetInteger(mapping_src_start)) {
++blocks_needed;
}
if (mapping_src_last < info.GetLastAddress()) {
@@ -876,30 +891,32 @@ Result KPageTable::SetupForIpcClient(PageLinkedList* page_list, size_t* out_bloc
R_SUCCEED();
}
-Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_addr,
- KMemoryPermission test_perm, KMemoryState dst_state,
- KPageTable& src_page_table, bool send) {
+Result KPageTable::SetupForIpcServer(KProcessAddress* out_addr, size_t size,
+ KProcessAddress src_addr, KMemoryPermission test_perm,
+ KMemoryState dst_state, KPageTable& src_page_table,
+ bool send) {
ASSERT(this->IsLockedByCurrentThread());
ASSERT(src_page_table.IsLockedByCurrentThread());
// Check that we can theoretically map.
- const VAddr region_start = m_alias_region_start;
+ const KProcessAddress region_start = m_alias_region_start;
const size_t region_size = m_alias_region_end - m_alias_region_start;
R_UNLESS(size < region_size, ResultOutOfAddressSpace);
// Get aligned source extents.
- const VAddr src_start = src_addr;
- const VAddr src_end = src_addr + size;
- const VAddr aligned_src_start = Common::AlignDown((src_start), PageSize);
- const VAddr aligned_src_end = Common::AlignUp((src_start) + size, PageSize);
- const VAddr mapping_src_start = Common::AlignUp((src_start), PageSize);
- const VAddr mapping_src_end = Common::AlignDown((src_start) + size, PageSize);
+ const KProcessAddress src_start = src_addr;
+ const KProcessAddress src_end = src_addr + size;
+ const KProcessAddress aligned_src_start = Common::AlignDown(GetInteger(src_start), PageSize);
+ const KProcessAddress aligned_src_end = Common::AlignUp(GetInteger(src_start) + size, PageSize);
+ const KProcessAddress mapping_src_start = Common::AlignUp(GetInteger(src_start), PageSize);
+ const KProcessAddress mapping_src_end =
+ Common::AlignDown(GetInteger(src_start) + size, PageSize);
const size_t aligned_src_size = aligned_src_end - aligned_src_start;
const size_t mapping_src_size =
(mapping_src_start < mapping_src_end) ? (mapping_src_end - mapping_src_start) : 0;
// Select a random address to map at.
- VAddr dst_addr =
+ KProcessAddress dst_addr =
this->FindFreeArea(region_start, region_size / PageSize, aligned_src_size / PageSize,
PageSize, 0, this->GetNumGuardPages());
@@ -924,9 +941,9 @@ Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_add
R_UNLESS(memory_reservation.Succeeded(), ResultLimitReached);
// Ensure that we manage page references correctly.
- PAddr start_partial_page = 0;
- PAddr end_partial_page = 0;
- VAddr cur_mapped_addr = dst_addr;
+ KPhysicalAddress start_partial_page = 0;
+ KPhysicalAddress end_partial_page = 0;
+ KProcessAddress cur_mapped_addr = dst_addr;
// If the partial pages are mapped, an extra reference will have been opened. Otherwise, they'll
// free on scope exit.
@@ -971,11 +988,12 @@ Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_add
// Begin traversal.
Common::PageTable::TraversalContext context;
Common::PageTable::TraversalEntry next_entry;
- bool traverse_valid = src_impl.BeginTraversal(next_entry, context, aligned_src_start);
+ bool traverse_valid =
+ src_impl.BeginTraversal(next_entry, context, GetInteger(aligned_src_start));
ASSERT(traverse_valid);
// Prepare tracking variables.
- PAddr cur_block_addr = next_entry.phys_addr;
+ KPhysicalAddress cur_block_addr = next_entry.phys_addr;
size_t cur_block_size =
next_entry.block_size - ((cur_block_addr) & (next_entry.block_size - 1));
size_t tot_block_size = cur_block_size;
@@ -983,7 +1001,7 @@ Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_add
// Map the start page, if we have one.
if (start_partial_page != 0) {
// Ensure the page holds correct data.
- const VAddr start_partial_virt =
+ const KVirtualAddress start_partial_virt =
GetHeapVirtualAddress(m_system.Kernel().MemoryLayout(), start_partial_page);
if (send) {
const size_t partial_offset = src_start - aligned_src_start;
@@ -996,21 +1014,22 @@ Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_add
clear_size = 0;
}
- std::memset(m_system.Memory().GetPointer<void>(start_partial_virt), fill_val,
+ std::memset(m_memory->GetPointer<void>(GetInteger(start_partial_virt)), fill_val,
partial_offset);
std::memcpy(
- m_system.Memory().GetPointer<void>(start_partial_virt + partial_offset),
- m_system.Memory().GetPointer<void>(
- GetHeapVirtualAddress(m_system.Kernel().MemoryLayout(), cur_block_addr) +
- partial_offset),
+ m_memory->GetPointer<void>(GetInteger(start_partial_virt) + partial_offset),
+ m_memory->GetPointer<void>(GetInteger(GetHeapVirtualAddress(
+ m_system.Kernel().MemoryLayout(), cur_block_addr)) +
+ partial_offset),
copy_size);
if (clear_size > 0) {
- std::memset(m_system.Memory().GetPointer<void>(start_partial_virt + partial_offset +
- copy_size),
+ std::memset(m_memory->GetPointer<void>(GetInteger(start_partial_virt) +
+ partial_offset + copy_size),
fill_val, clear_size);
}
} else {
- std::memset(m_system.Memory().GetPointer<void>(start_partial_virt), fill_val, PageSize);
+ std::memset(m_memory->GetPointer<void>(GetInteger(start_partial_virt)), fill_val,
+ PageSize);
}
// Map the page.
@@ -1055,7 +1074,8 @@ Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_add
}
// Handle the last direct-mapped page.
- if (const VAddr mapped_block_end = aligned_src_start + tot_block_size - cur_block_size;
+ if (const KProcessAddress mapped_block_end =
+ aligned_src_start + tot_block_size - cur_block_size;
mapped_block_end < mapping_src_end) {
const size_t last_block_size = mapping_src_end - mapped_block_end;
@@ -1078,18 +1098,19 @@ Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_add
// Map the end page, if we have one.
if (end_partial_page != 0) {
// Ensure the page holds correct data.
- const VAddr end_partial_virt =
+ const KVirtualAddress end_partial_virt =
GetHeapVirtualAddress(m_system.Kernel().MemoryLayout(), end_partial_page);
if (send) {
const size_t copy_size = src_end - mapping_src_end;
- std::memcpy(m_system.Memory().GetPointer<void>(end_partial_virt),
- m_system.Memory().GetPointer<void>(GetHeapVirtualAddress(
- m_system.Kernel().MemoryLayout(), cur_block_addr)),
+ std::memcpy(m_memory->GetPointer<void>(GetInteger(end_partial_virt)),
+ m_memory->GetPointer<void>(GetInteger(GetHeapVirtualAddress(
+ m_system.Kernel().MemoryLayout(), cur_block_addr))),
copy_size);
- std::memset(m_system.Memory().GetPointer<void>(end_partial_virt + copy_size), fill_val,
- PageSize - copy_size);
+ std::memset(m_memory->GetPointer<void>(GetInteger(end_partial_virt) + copy_size),
+ fill_val, PageSize - copy_size);
} else {
- std::memset(m_system.Memory().GetPointer<void>(end_partial_virt), fill_val, PageSize);
+ std::memset(m_memory->GetPointer<void>(GetInteger(end_partial_virt)), fill_val,
+ PageSize);
}
// Map the page.
@@ -1110,7 +1131,7 @@ Result KPageTable::SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_add
R_SUCCEED();
}
-Result KPageTable::SetupForIpc(VAddr* out_dst_addr, size_t size, VAddr src_addr,
+Result KPageTable::SetupForIpc(KProcessAddress* out_dst_addr, size_t size, KProcessAddress src_addr,
KPageTable& src_page_table, KMemoryPermission test_perm,
KMemoryState dst_state, bool send) {
// For convenience, alias this.
@@ -1136,8 +1157,8 @@ Result KPageTable::SetupForIpc(VAddr* out_dst_addr, size_t size, VAddr src_addr,
R_TRY(allocator_result);
// Get the mapped extents.
- const VAddr src_map_start = Common::AlignUp((src_addr), PageSize);
- const VAddr src_map_end = Common::AlignDown((src_addr) + size, PageSize);
+ const KProcessAddress src_map_start = Common::AlignUp(GetInteger(src_addr), PageSize);
+ const KProcessAddress src_map_end = Common::AlignDown(GetInteger(src_addr) + size, PageSize);
const size_t src_map_size = src_map_end - src_map_start;
// Ensure that we clean up appropriately if we fail after this.
@@ -1166,7 +1187,8 @@ Result KPageTable::SetupForIpc(VAddr* out_dst_addr, size_t size, VAddr src_addr,
R_SUCCEED();
}
-Result KPageTable::CleanupForIpcServer(VAddr address, size_t size, KMemoryState dst_state) {
+Result KPageTable::CleanupForIpcServer(KProcessAddress address, size_t size,
+ KMemoryState dst_state) {
// Validate the address.
R_UNLESS(this->Contains(address, size), ResultInvalidCurrentMemory);
@@ -1190,8 +1212,8 @@ Result KPageTable::CleanupForIpcServer(VAddr address, size_t size, KMemoryState
KScopedPageTableUpdater updater(this);
// Get aligned extents.
- const VAddr aligned_start = Common::AlignDown((address), PageSize);
- const VAddr aligned_end = Common::AlignUp((address) + size, PageSize);
+ const KProcessAddress aligned_start = Common::AlignDown(GetInteger(address), PageSize);
+ const KProcessAddress aligned_end = Common::AlignUp(GetInteger(address) + size, PageSize);
const size_t aligned_size = aligned_end - aligned_start;
const size_t aligned_num_pages = aligned_size / PageSize;
@@ -1205,22 +1227,23 @@ Result KPageTable::CleanupForIpcServer(VAddr address, size_t size, KMemoryState
KMemoryBlockDisableMergeAttribute::Normal);
// Release from the resource limit as relevant.
- const VAddr mapping_start = Common::AlignUp((address), PageSize);
- const VAddr mapping_end = Common::AlignDown((address) + size, PageSize);
+ const KProcessAddress mapping_start = Common::AlignUp(GetInteger(address), PageSize);
+ const KProcessAddress mapping_end = Common::AlignDown(GetInteger(address) + size, PageSize);
const size_t mapping_size = (mapping_start < mapping_end) ? mapping_end - mapping_start : 0;
m_resource_limit->Release(LimitableResource::PhysicalMemoryMax, aligned_size - mapping_size);
R_SUCCEED();
}
-Result KPageTable::CleanupForIpcClient(VAddr address, size_t size, KMemoryState dst_state) {
+Result KPageTable::CleanupForIpcClient(KProcessAddress address, size_t size,
+ KMemoryState dst_state) {
// Validate the address.
R_UNLESS(this->Contains(address, size), ResultInvalidCurrentMemory);
// Get aligned source extents.
- const VAddr mapping_start = Common::AlignUp((address), PageSize);
- const VAddr mapping_end = Common::AlignDown((address) + size, PageSize);
- const VAddr mapping_last = mapping_end - 1;
+ const KProcessAddress mapping_start = Common::AlignUp(GetInteger(address), PageSize);
+ const KProcessAddress mapping_end = Common::AlignDown(GetInteger(address) + size, PageSize);
+ const KProcessAddress mapping_last = mapping_end - 1;
const size_t mapping_size = (mapping_start < mapping_end) ? (mapping_end - mapping_start) : 0;
// If nothing was mapped, we're actually done immediately.
@@ -1273,7 +1296,7 @@ Result KPageTable::CleanupForIpcClient(VAddr address, size_t size, KMemoryState
KMemoryInfo cur_info = start_it->GetMemoryInfo();
// Create tracking variables.
- VAddr cur_address = cur_info.GetAddress();
+ KProcessAddress cur_address = cur_info.GetAddress();
size_t cur_size = cur_info.GetSize();
bool cur_perm_eq = cur_info.GetPermission() == cur_info.GetOriginalPermission();
bool cur_needs_set_perm = !cur_perm_eq && cur_info.GetIpcLockCount() == 1;
@@ -1346,7 +1369,7 @@ Result KPageTable::CleanupForIpcClient(VAddr address, size_t size, KMemoryState
.IsSuccess());
// Create tracking variables.
- VAddr cur_address = cur_info.GetAddress();
+ KProcessAddress cur_address = cur_info.GetAddress();
size_t cur_size = cur_info.GetSize();
bool cur_perm_eq = cur_info.GetPermission() == cur_info.GetOriginalPermission();
bool cur_needs_set_perm = !cur_perm_eq && cur_info.GetIpcLockCount() == 1;
@@ -1433,16 +1456,16 @@ Result KPageTable::CleanupForIpcClient(VAddr address, size_t size, KMemoryState
}
void KPageTable::CleanupForIpcClientOnServerSetupFailure([[maybe_unused]] PageLinkedList* page_list,
- VAddr address, size_t size,
+ KProcessAddress address, size_t size,
KMemoryPermission prot_perm) {
ASSERT(this->IsLockedByCurrentThread());
- ASSERT(Common::IsAligned(address, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(address), PageSize));
ASSERT(Common::IsAligned(size, PageSize));
// Get the mapped extents.
- const VAddr src_map_start = address;
- const VAddr src_map_end = address + size;
- const VAddr src_map_last = src_map_end - 1;
+ const KProcessAddress src_map_start = address;
+ const KProcessAddress src_map_end = address + size;
+ const KProcessAddress src_map_last = src_map_end - 1;
// This function is only invoked when there's something to do.
ASSERT(src_map_end > src_map_start);
@@ -1452,8 +1475,9 @@ void KPageTable::CleanupForIpcClientOnServerSetupFailure([[maybe_unused]] PageLi
while (true) {
const KMemoryInfo info = it->GetMemoryInfo();
- const auto cur_start =
- info.GetAddress() >= src_map_start ? info.GetAddress() : src_map_start;
+ const auto cur_start = info.GetAddress() >= GetInteger(src_map_start)
+ ? info.GetAddress()
+ : GetInteger(src_map_start);
const auto cur_end =
src_map_last <= info.GetLastAddress() ? src_map_end : info.GetEndAddress();
@@ -1463,7 +1487,7 @@ void KPageTable::CleanupForIpcClientOnServerSetupFailure([[maybe_unused]] PageLi
(info.GetIpcLockCount() != 0 &&
(info.GetOriginalPermission() & KMemoryPermission::IpcLockChangeMask) != prot_perm)) {
// Check if we actually need to fix the protections on the block.
- if (cur_end == src_map_end || info.GetAddress() <= src_map_start ||
+ if (cur_end == src_map_end || info.GetAddress() <= GetInteger(src_map_start) ||
(info.GetPermission() & KMemoryPermission::IpcLockChangeMask) != prot_perm) {
ASSERT(Operate(cur_start, (cur_end - cur_start) / PageSize, info.GetPermission(),
OperationType::ChangePermissions)
@@ -1482,15 +1506,15 @@ void KPageTable::CleanupForIpcClientOnServerSetupFailure([[maybe_unused]] PageLi
}
}
-Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
+Result KPageTable::MapPhysicalMemory(KProcessAddress address, size_t size) {
// Lock the physical memory lock.
KScopedLightLock phys_lk(m_map_physical_memory_lock);
// Calculate the last address for convenience.
- const VAddr last_address = address + size - 1;
+ const KProcessAddress last_address = address + size - 1;
// Define iteration variables.
- VAddr cur_address;
+ KProcessAddress cur_address;
size_t mapped_size;
// The entire mapping process can be retried.
@@ -1522,7 +1546,7 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
// Track the memory if it's mapped.
if (info.GetState() != KMemoryState::Free) {
- mapped_size += VAddr(info.GetEndAddress()) - cur_address;
+ mapped_size += KProcessAddress(info.GetEndAddress()) - cur_address;
}
// Advance.
@@ -1575,7 +1599,7 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
const bool is_free = info.GetState() == KMemoryState::Free;
if (is_free) {
- if (info.GetAddress() < address) {
+ if (info.GetAddress() < GetInteger(address)) {
++num_allocator_blocks;
}
if (last_address < info.GetLastAddress()) {
@@ -1593,7 +1617,8 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
// Track the memory if it's mapped.
if (!is_free) {
- checked_mapped_size += VAddr(info.GetEndAddress()) - cur_address;
+ checked_mapped_size +=
+ KProcessAddress(info.GetEndAddress()) - cur_address;
}
// Advance.
@@ -1621,7 +1646,7 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
// Prepare to iterate over the memory.
auto pg_it = pg.begin();
- PAddr pg_phys_addr = pg_it->GetAddress();
+ KPhysicalAddress pg_phys_addr = pg_it->GetAddress();
size_t pg_pages = pg_it->GetNumPages();
// Reset the current tracking address, and make sure we clean up on failure.
@@ -1629,7 +1654,7 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
cur_address = address;
ON_RESULT_FAILURE {
if (cur_address > address) {
- const VAddr last_unmap_address = cur_address - 1;
+ const KProcessAddress last_unmap_address = cur_address - 1;
// Iterate, unmapping the pages.
cur_address = address;
@@ -1646,7 +1671,7 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
if (info.GetState() == KMemoryState::Free) {
// Determine the range to unmap.
const size_t cur_pages =
- std::min(VAddr(info.GetEndAddress()) - cur_address,
+ std::min(KProcessAddress(info.GetEndAddress()) - cur_address,
last_unmap_address + 1 - cur_address) /
PageSize;
@@ -1689,9 +1714,10 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
// If it's unmapped, we need to map it.
if (info.GetState() == KMemoryState::Free) {
// Determine the range to map.
- size_t map_pages = std::min(VAddr(info.GetEndAddress()) - cur_address,
- last_address + 1 - cur_address) /
- PageSize;
+ size_t map_pages =
+ std::min(KProcessAddress(info.GetEndAddress()) - cur_address,
+ last_address + 1 - cur_address) /
+ PageSize;
// While we have pages to map, map them.
while (map_pages > 0) {
@@ -1748,7 +1774,7 @@ Result KPageTable::MapPhysicalMemory(VAddr address, size_t size) {
}
}
-Result KPageTable::UnmapPhysicalMemory(VAddr address, size_t size) {
+Result KPageTable::UnmapPhysicalMemory(KProcessAddress address, size_t size) {
// Lock the physical memory lock.
KScopedLightLock phys_lk(m_map_physical_memory_lock);
@@ -1756,13 +1782,13 @@ Result KPageTable::UnmapPhysicalMemory(VAddr address, size_t size) {
KScopedLightLock lk(m_general_lock);
// Calculate the last address for convenience.
- const VAddr last_address = address + size - 1;
+ const KProcessAddress last_address = address + size - 1;
// Define iteration variables.
- VAddr map_start_address = 0;
- VAddr map_last_address = 0;
+ KProcessAddress map_start_address = 0;
+ KProcessAddress map_last_address = 0;
- VAddr cur_address;
+ KProcessAddress cur_address;
size_t mapped_size;
size_t num_allocator_blocks = 0;
@@ -1795,7 +1821,7 @@ Result KPageTable::UnmapPhysicalMemory(VAddr address, size_t size) {
map_last_address =
(last_address >= info.GetLastAddress()) ? info.GetLastAddress() : last_address;
- if (info.GetAddress() < address) {
+ if (info.GetAddress() < GetInteger(address)) {
++num_allocator_blocks;
}
if (last_address < info.GetLastAddress()) {
@@ -1848,7 +1874,7 @@ Result KPageTable::UnmapPhysicalMemory(VAddr address, size_t size) {
// If the memory state is normal, we need to unmap it.
if (info.GetState() == KMemoryState::Normal) {
// Determine the range to unmap.
- const size_t cur_pages = std::min(VAddr(info.GetEndAddress()) - cur_address,
+ const size_t cur_pages = std::min(KProcessAddress(info.GetEndAddress()) - cur_address,
last_address + 1 - cur_address) /
PageSize;
@@ -1881,7 +1907,8 @@ Result KPageTable::UnmapPhysicalMemory(VAddr address, size_t size) {
R_SUCCEED();
}
-Result KPageTable::MapMemory(VAddr dst_address, VAddr src_address, size_t size) {
+Result KPageTable::MapMemory(KProcessAddress dst_address, KProcessAddress src_address,
+ size_t size) {
// Lock the table.
KScopedLightLock lk(m_general_lock);
@@ -1902,53 +1929,73 @@ Result KPageTable::MapMemory(VAddr dst_address, VAddr src_address, size_t size)
KMemoryAttribute::None));
// Create an update allocator for the source.
- Result src_allocator_result{ResultSuccess};
+ Result src_allocator_result;
KMemoryBlockManagerUpdateAllocator src_allocator(std::addressof(src_allocator_result),
m_memory_block_slab_manager,
num_src_allocator_blocks);
R_TRY(src_allocator_result);
// Create an update allocator for the destination.
- Result dst_allocator_result{ResultSuccess};
+ Result dst_allocator_result;
KMemoryBlockManagerUpdateAllocator dst_allocator(std::addressof(dst_allocator_result),
m_memory_block_slab_manager,
num_dst_allocator_blocks);
R_TRY(dst_allocator_result);
// Map the memory.
- KPageGroup page_linked_list{m_kernel, m_block_info_manager};
- const size_t num_pages{size / PageSize};
- const KMemoryPermission new_src_perm = static_cast<KMemoryPermission>(
- KMemoryPermission::KernelRead | KMemoryPermission::NotMapped);
- const KMemoryAttribute new_src_attr = KMemoryAttribute::Locked;
-
- AddRegionToPages(src_address, num_pages, page_linked_list);
{
+ // Determine the number of pages being operated on.
+ const size_t num_pages = size / PageSize;
+
+ // Create page groups for the memory being unmapped.
+ KPageGroup pg{m_kernel, m_block_info_manager};
+
+ // Create the page group representing the source.
+ R_TRY(this->MakePageGroup(pg, src_address, num_pages));
+
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
+
// Reprotect the source as kernel-read/not mapped.
- auto block_guard = detail::ScopeExit([&] {
- Operate(src_address, num_pages, KMemoryPermission::UserReadWrite,
- OperationType::ChangePermissions);
- });
- R_TRY(Operate(src_address, num_pages, new_src_perm, OperationType::ChangePermissions));
- R_TRY(MapPages(dst_address, page_linked_list, KMemoryPermission::UserReadWrite));
+ const KMemoryPermission new_src_perm = static_cast<KMemoryPermission>(
+ KMemoryPermission::KernelRead | KMemoryPermission::NotMapped);
+ const KMemoryAttribute new_src_attr = KMemoryAttribute::Locked;
+ const KPageProperties src_properties = {new_src_perm, false, false,
+ DisableMergeAttribute::DisableHeadBodyTail};
+ R_TRY(this->Operate(src_address, num_pages, src_properties.perm,
+ OperationType::ChangePermissions));
- block_guard.Cancel();
- }
+ // Ensure that we unprotect the source pages on failure.
+ ON_RESULT_FAILURE {
+ const KPageProperties unprotect_properties = {
+ KMemoryPermission::UserReadWrite, false, false,
+ DisableMergeAttribute::EnableHeadBodyTail};
+ ASSERT(this->Operate(src_address, num_pages, unprotect_properties.perm,
+ OperationType::ChangePermissions) == ResultSuccess);
+ };
- // Apply the memory block updates.
- m_memory_block_manager.Update(std::addressof(src_allocator), src_address, num_pages, src_state,
- new_src_perm, new_src_attr,
- KMemoryBlockDisableMergeAttribute::Locked,
- KMemoryBlockDisableMergeAttribute::None);
- m_memory_block_manager.Update(std::addressof(dst_allocator), dst_address, num_pages,
- KMemoryState::Stack, KMemoryPermission::UserReadWrite,
- KMemoryAttribute::None, KMemoryBlockDisableMergeAttribute::Normal,
- KMemoryBlockDisableMergeAttribute::None);
+ // Map the alias pages.
+ const KPageProperties dst_map_properties = {KMemoryPermission::UserReadWrite, false, false,
+ DisableMergeAttribute::DisableHead};
+ R_TRY(this->MapPageGroupImpl(updater.GetPageList(), dst_address, pg, dst_map_properties,
+ false));
+
+ // Apply the memory block updates.
+ m_memory_block_manager.Update(std::addressof(src_allocator), src_address, num_pages,
+ src_state, new_src_perm, new_src_attr,
+ KMemoryBlockDisableMergeAttribute::Locked,
+ KMemoryBlockDisableMergeAttribute::None);
+ m_memory_block_manager.Update(
+ std::addressof(dst_allocator), dst_address, num_pages, KMemoryState::Stack,
+ KMemoryPermission::UserReadWrite, KMemoryAttribute::None,
+ KMemoryBlockDisableMergeAttribute::Normal, KMemoryBlockDisableMergeAttribute::None);
+ }
R_SUCCEED();
}
-Result KPageTable::UnmapMemory(VAddr dst_address, VAddr src_address, size_t size) {
+Result KPageTable::UnmapMemory(KProcessAddress dst_address, KProcessAddress src_address,
+ size_t size) {
// Lock the table.
KScopedLightLock lk(m_general_lock);
@@ -1970,108 +2017,209 @@ Result KPageTable::UnmapMemory(VAddr dst_address, VAddr src_address, size_t size
KMemoryPermission::None, KMemoryAttribute::All, KMemoryAttribute::None));
// Create an update allocator for the source.
- Result src_allocator_result{ResultSuccess};
+ Result src_allocator_result;
KMemoryBlockManagerUpdateAllocator src_allocator(std::addressof(src_allocator_result),
m_memory_block_slab_manager,
num_src_allocator_blocks);
R_TRY(src_allocator_result);
// Create an update allocator for the destination.
- Result dst_allocator_result{ResultSuccess};
+ Result dst_allocator_result;
KMemoryBlockManagerUpdateAllocator dst_allocator(std::addressof(dst_allocator_result),
m_memory_block_slab_manager,
num_dst_allocator_blocks);
R_TRY(dst_allocator_result);
- KPageGroup src_pages{m_kernel, m_block_info_manager};
- KPageGroup dst_pages{m_kernel, m_block_info_manager};
- const size_t num_pages{size / PageSize};
+ // Unmap the memory.
+ {
+ // Determine the number of pages being operated on.
+ const size_t num_pages = size / PageSize;
- AddRegionToPages(src_address, num_pages, src_pages);
- AddRegionToPages(dst_address, num_pages, dst_pages);
+ // Create page groups for the memory being unmapped.
+ KPageGroup pg{m_kernel, m_block_info_manager};
- R_UNLESS(dst_pages.IsEquivalentTo(src_pages), ResultInvalidMemoryRegion);
+ // Create the page group representing the destination.
+ R_TRY(this->MakePageGroup(pg, dst_address, num_pages));
- {
- auto block_guard = detail::ScopeExit([&] { MapPages(dst_address, dst_pages, dst_perm); });
+ // Ensure the page group is the valid for the source.
+ R_UNLESS(this->IsValidPageGroup(pg, src_address, num_pages), ResultInvalidMemoryRegion);
- R_TRY(Operate(dst_address, num_pages, KMemoryPermission::None, OperationType::Unmap));
- R_TRY(Operate(src_address, num_pages, KMemoryPermission::UserReadWrite,
- OperationType::ChangePermissions));
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
- block_guard.Cancel();
- }
+ // Unmap the aliased copy of the pages.
+ const KPageProperties dst_unmap_properties = {KMemoryPermission::None, false, false,
+ DisableMergeAttribute::None};
+ R_TRY(
+ this->Operate(dst_address, num_pages, dst_unmap_properties.perm, OperationType::Unmap));
+
+ // Ensure that we re-map the aliased pages on failure.
+ ON_RESULT_FAILURE {
+ this->RemapPageGroup(updater.GetPageList(), dst_address, size, pg);
+ };
- // Apply the memory block updates.
- m_memory_block_manager.Update(std::addressof(src_allocator), src_address, num_pages, src_state,
- KMemoryPermission::UserReadWrite, KMemoryAttribute::None,
- KMemoryBlockDisableMergeAttribute::None,
- KMemoryBlockDisableMergeAttribute::Locked);
- m_memory_block_manager.Update(std::addressof(dst_allocator), dst_address, num_pages,
- KMemoryState::None, KMemoryPermission::None,
- KMemoryAttribute::None, KMemoryBlockDisableMergeAttribute::None,
- KMemoryBlockDisableMergeAttribute::Normal);
+ // Try to set the permissions for the source pages back to what they should be.
+ const KPageProperties src_properties = {KMemoryPermission::UserReadWrite, false, false,
+ DisableMergeAttribute::EnableAndMergeHeadBodyTail};
+ R_TRY(this->Operate(src_address, num_pages, src_properties.perm,
+ OperationType::ChangePermissions));
+
+ // Apply the memory block updates.
+ m_memory_block_manager.Update(
+ std::addressof(src_allocator), src_address, num_pages, src_state,
+ KMemoryPermission::UserReadWrite, KMemoryAttribute::None,
+ KMemoryBlockDisableMergeAttribute::None, KMemoryBlockDisableMergeAttribute::Locked);
+ m_memory_block_manager.Update(
+ std::addressof(dst_allocator), dst_address, num_pages, KMemoryState::None,
+ KMemoryPermission::None, KMemoryAttribute::None,
+ KMemoryBlockDisableMergeAttribute::None, KMemoryBlockDisableMergeAttribute::Normal);
+ }
R_SUCCEED();
}
-Result KPageTable::MapPages(VAddr addr, const KPageGroup& page_linked_list,
- KMemoryPermission perm) {
+Result KPageTable::AllocateAndMapPagesImpl(PageLinkedList* page_list, KProcessAddress address,
+ size_t num_pages, KMemoryPermission perm) {
ASSERT(this->IsLockedByCurrentThread());
- VAddr cur_addr{addr};
+ // Create a page group to hold the pages we allocate.
+ KPageGroup pg{m_kernel, m_block_info_manager};
- for (const auto& node : page_linked_list) {
- if (const auto result{
- Operate(cur_addr, node.GetNumPages(), perm, OperationType::Map, node.GetAddress())};
- result.IsError()) {
- const size_t num_pages{(addr - cur_addr) / PageSize};
+ // Allocate the pages.
+ R_TRY(
+ m_kernel.MemoryManager().AllocateAndOpen(std::addressof(pg), num_pages, m_allocate_option));
- ASSERT(Operate(addr, num_pages, KMemoryPermission::None, OperationType::Unmap)
- .IsSuccess());
+ // Ensure that the page group is closed when we're done working with it.
+ SCOPE_EXIT({ pg.Close(); });
- R_RETURN(result);
+ // Clear all pages.
+ for (const auto& it : pg) {
+ std::memset(m_system.DeviceMemory().GetPointer<void>(it.GetAddress()), m_heap_fill_value,
+ it.GetSize());
+ }
+
+ // Map the pages.
+ R_RETURN(this->Operate(address, num_pages, pg, OperationType::MapGroup));
+}
+
+Result KPageTable::MapPageGroupImpl(PageLinkedList* page_list, KProcessAddress address,
+ const KPageGroup& pg, const KPageProperties properties,
+ bool reuse_ll) {
+ ASSERT(this->IsLockedByCurrentThread());
+
+ // Note the current address, so that we can iterate.
+ const KProcessAddress start_address = address;
+ KProcessAddress cur_address = address;
+
+ // Ensure that we clean up on failure.
+ ON_RESULT_FAILURE {
+ ASSERT(!reuse_ll);
+ if (cur_address != start_address) {
+ const KPageProperties unmap_properties = {KMemoryPermission::None, false, false,
+ DisableMergeAttribute::None};
+ ASSERT(this->Operate(start_address, (cur_address - start_address) / PageSize,
+ unmap_properties.perm, OperationType::Unmap) == ResultSuccess);
}
+ };
- cur_addr += node.GetNumPages() * PageSize;
+ // Iterate, mapping all pages in the group.
+ for (const auto& block : pg) {
+ // Map and advance.
+ const KPageProperties cur_properties =
+ (cur_address == start_address)
+ ? properties
+ : KPageProperties{properties.perm, properties.io, properties.uncached,
+ DisableMergeAttribute::None};
+ this->Operate(cur_address, block.GetNumPages(), cur_properties.perm, OperationType::Map,
+ block.GetAddress());
+ cur_address += block.GetSize();
}
+ // We succeeded!
R_SUCCEED();
}
-Result KPageTable::MapPages(VAddr address, KPageGroup& page_linked_list, KMemoryState state,
- KMemoryPermission perm) {
- // Check that the map is in range.
- const size_t num_pages{page_linked_list.GetNumPages()};
- const size_t size{num_pages * PageSize};
- R_UNLESS(this->CanContain(address, size, state), ResultInvalidCurrentMemory);
+void KPageTable::RemapPageGroup(PageLinkedList* page_list, KProcessAddress address, size_t size,
+ const KPageGroup& pg) {
+ ASSERT(this->IsLockedByCurrentThread());
- // Lock the table.
- KScopedLightLock lk(m_general_lock);
+ // Note the current address, so that we can iterate.
+ const KProcessAddress start_address = address;
+ const KProcessAddress last_address = start_address + size - 1;
+ const KProcessAddress end_address = last_address + 1;
- // Check the memory state.
- R_TRY(this->CheckMemoryState(address, size, KMemoryState::All, KMemoryState::Free,
- KMemoryPermission::None, KMemoryPermission::None,
- KMemoryAttribute::None, KMemoryAttribute::None));
+ // Iterate over the memory.
+ auto pg_it = pg.begin();
+ ASSERT(pg_it != pg.end());
- // Create an update allocator.
- Result allocator_result{ResultSuccess};
- KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
- m_memory_block_slab_manager);
+ KPhysicalAddress pg_phys_addr = pg_it->GetAddress();
+ size_t pg_pages = pg_it->GetNumPages();
- // Map the pages.
- R_TRY(MapPages(address, page_linked_list, perm));
+ auto it = m_memory_block_manager.FindIterator(start_address);
+ while (true) {
+ // Check that the iterator is valid.
+ ASSERT(it != m_memory_block_manager.end());
- // Update the blocks.
- m_memory_block_manager.Update(std::addressof(allocator), address, num_pages, state, perm,
- KMemoryAttribute::None, KMemoryBlockDisableMergeAttribute::Normal,
- KMemoryBlockDisableMergeAttribute::None);
+ // Get the memory info.
+ const KMemoryInfo info = it->GetMemoryInfo();
- R_SUCCEED();
+ // Determine the range to map.
+ KProcessAddress map_address = std::max<KProcessAddress>(info.GetAddress(), start_address);
+ const KProcessAddress map_end_address =
+ std::min<KProcessAddress>(info.GetEndAddress(), end_address);
+ ASSERT(map_end_address != map_address);
+
+ // Determine if we should disable head merge.
+ const bool disable_head_merge =
+ info.GetAddress() >= GetInteger(start_address) &&
+ True(info.GetDisableMergeAttribute() & KMemoryBlockDisableMergeAttribute::Normal);
+ const KPageProperties map_properties = {
+ info.GetPermission(), false, false,
+ disable_head_merge ? DisableMergeAttribute::DisableHead : DisableMergeAttribute::None};
+
+ // While we have pages to map, map them.
+ size_t map_pages = (map_end_address - map_address) / PageSize;
+ while (map_pages > 0) {
+ // Check if we're at the end of the physical block.
+ if (pg_pages == 0) {
+ // Ensure there are more pages to map.
+ ASSERT(pg_it != pg.end());
+
+ // Advance our physical block.
+ ++pg_it;
+ pg_phys_addr = pg_it->GetAddress();
+ pg_pages = pg_it->GetNumPages();
+ }
+
+ // Map whatever we can.
+ const size_t cur_pages = std::min(pg_pages, map_pages);
+ ASSERT(this->Operate(map_address, map_pages, map_properties.perm, OperationType::Map,
+ pg_phys_addr) == ResultSuccess);
+
+ // Advance.
+ map_address += cur_pages * PageSize;
+ map_pages -= cur_pages;
+
+ pg_phys_addr += cur_pages * PageSize;
+ pg_pages -= cur_pages;
+ }
+
+ // Check if we're done.
+ if (last_address <= info.GetLastAddress()) {
+ break;
+ }
+
+ // Advance.
+ ++it;
+ }
+
+ // Check that we re-mapped precisely the page group.
+ ASSERT((++pg_it) == pg.end());
}
-Result KPageTable::MapPages(VAddr* out_addr, size_t num_pages, size_t alignment, PAddr phys_addr,
- bool is_pa_valid, VAddr region_start, size_t region_num_pages,
+Result KPageTable::MapPages(KProcessAddress* out_addr, size_t num_pages, size_t alignment,
+ KPhysicalAddress phys_addr, bool is_pa_valid,
+ KProcessAddress region_start, size_t region_num_pages,
KMemoryState state, KMemoryPermission perm) {
ASSERT(Common::IsAligned(alignment, PageSize) && alignment >= PageSize);
@@ -2084,26 +2232,30 @@ Result KPageTable::MapPages(VAddr* out_addr, size_t num_pages, size_t alignment,
KScopedLightLock lk(m_general_lock);
// Find a random address to map at.
- VAddr addr = this->FindFreeArea(region_start, region_num_pages, num_pages, alignment, 0,
- this->GetNumGuardPages());
+ KProcessAddress addr = this->FindFreeArea(region_start, region_num_pages, num_pages, alignment,
+ 0, this->GetNumGuardPages());
R_UNLESS(addr != 0, ResultOutOfMemory);
- ASSERT(Common::IsAligned(addr, alignment));
+ ASSERT(Common::IsAligned(GetInteger(addr), alignment));
ASSERT(this->CanContain(addr, num_pages * PageSize, state));
ASSERT(this->CheckMemoryState(addr, num_pages * PageSize, KMemoryState::All, KMemoryState::Free,
KMemoryPermission::None, KMemoryPermission::None,
- KMemoryAttribute::None, KMemoryAttribute::None)
- .IsSuccess());
+ KMemoryAttribute::None, KMemoryAttribute::None) == ResultSuccess);
// Create an update allocator.
- Result allocator_result{ResultSuccess};
+ Result allocator_result;
KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
m_memory_block_slab_manager);
+ R_TRY(allocator_result);
+
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
// Perform mapping operation.
if (is_pa_valid) {
- R_TRY(this->Operate(addr, num_pages, perm, OperationType::Map, phys_addr));
+ const KPageProperties properties = {perm, false, false, DisableMergeAttribute::DisableHead};
+ R_TRY(this->Operate(addr, num_pages, properties.perm, OperationType::Map, phys_addr));
} else {
- UNIMPLEMENTED();
+ R_TRY(this->AllocateAndMapPagesImpl(updater.GetPageList(), addr, num_pages, perm));
}
// Update the blocks.
@@ -2116,28 +2268,45 @@ Result KPageTable::MapPages(VAddr* out_addr, size_t num_pages, size_t alignment,
R_SUCCEED();
}
-Result KPageTable::UnmapPages(VAddr addr, const KPageGroup& page_linked_list) {
- ASSERT(this->IsLockedByCurrentThread());
+Result KPageTable::MapPages(KProcessAddress address, size_t num_pages, KMemoryState state,
+ KMemoryPermission perm) {
+ // Check that the map is in range.
+ const size_t size = num_pages * PageSize;
+ R_UNLESS(this->CanContain(address, size, state), ResultInvalidCurrentMemory);
- VAddr cur_addr{addr};
+ // Lock the table.
+ KScopedLightLock lk(m_general_lock);
- for (const auto& node : page_linked_list) {
- if (const auto result{Operate(cur_addr, node.GetNumPages(), KMemoryPermission::None,
- OperationType::Unmap)};
- result.IsError()) {
- R_RETURN(result);
- }
+ // Check the memory state.
+ size_t num_allocator_blocks;
+ R_TRY(this->CheckMemoryState(std::addressof(num_allocator_blocks), address, size,
+ KMemoryState::All, KMemoryState::Free, KMemoryPermission::None,
+ KMemoryPermission::None, KMemoryAttribute::None,
+ KMemoryAttribute::None));
- cur_addr += node.GetNumPages() * PageSize;
- }
+ // Create an update allocator.
+ Result allocator_result;
+ KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
+ m_memory_block_slab_manager, num_allocator_blocks);
+ R_TRY(allocator_result);
+
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
+
+ // Map the pages.
+ R_TRY(this->AllocateAndMapPagesImpl(updater.GetPageList(), address, num_pages, perm));
+
+ // Update the blocks.
+ m_memory_block_manager.Update(std::addressof(allocator), address, num_pages, state, perm,
+ KMemoryAttribute::None, KMemoryBlockDisableMergeAttribute::Normal,
+ KMemoryBlockDisableMergeAttribute::None);
R_SUCCEED();
}
-Result KPageTable::UnmapPages(VAddr address, KPageGroup& page_linked_list, KMemoryState state) {
+Result KPageTable::UnmapPages(KProcessAddress address, size_t num_pages, KMemoryState state) {
// Check that the unmap is in range.
- const size_t num_pages{page_linked_list.GetNumPages()};
- const size_t size{num_pages * PageSize};
+ const size_t size = num_pages * PageSize;
R_UNLESS(this->Contains(address, size), ResultInvalidCurrentMemory);
// Lock the table.
@@ -2151,13 +2320,18 @@ Result KPageTable::UnmapPages(VAddr address, KPageGroup& page_linked_list, KMemo
KMemoryAttribute::None));
// Create an update allocator.
- Result allocator_result{ResultSuccess};
+ Result allocator_result;
KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
m_memory_block_slab_manager, num_allocator_blocks);
R_TRY(allocator_result);
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
+
// Perform the unmap.
- R_TRY(UnmapPages(address, page_linked_list));
+ const KPageProperties unmap_properties = {KMemoryPermission::None, false, false,
+ DisableMergeAttribute::None};
+ R_TRY(this->Operate(address, num_pages, unmap_properties.perm, OperationType::Unmap));
// Update the blocks.
m_memory_block_manager.Update(std::addressof(allocator), address, num_pages, KMemoryState::Free,
@@ -2168,29 +2342,130 @@ Result KPageTable::UnmapPages(VAddr address, KPageGroup& page_linked_list, KMemo
R_SUCCEED();
}
-Result KPageTable::UnmapPages(VAddr address, size_t num_pages, KMemoryState state) {
- // Check that the unmap is in range.
+Result KPageTable::MapPageGroup(KProcessAddress* out_addr, const KPageGroup& pg,
+ KProcessAddress region_start, size_t region_num_pages,
+ KMemoryState state, KMemoryPermission perm) {
+ ASSERT(!this->IsLockedByCurrentThread());
+
+ // Ensure this is a valid map request.
+ const size_t num_pages = pg.GetNumPages();
+ R_UNLESS(this->CanContain(region_start, region_num_pages * PageSize, state),
+ ResultInvalidCurrentMemory);
+ R_UNLESS(num_pages < region_num_pages, ResultOutOfMemory);
+
+ // Lock the table.
+ KScopedLightLock lk(m_general_lock);
+
+ // Find a random address to map at.
+ KProcessAddress addr = this->FindFreeArea(region_start, region_num_pages, num_pages, PageSize,
+ 0, this->GetNumGuardPages());
+ R_UNLESS(addr != 0, ResultOutOfMemory);
+ ASSERT(this->CanContain(addr, num_pages * PageSize, state));
+ ASSERT(this->CheckMemoryState(addr, num_pages * PageSize, KMemoryState::All, KMemoryState::Free,
+ KMemoryPermission::None, KMemoryPermission::None,
+ KMemoryAttribute::None, KMemoryAttribute::None) == ResultSuccess);
+
+ // Create an update allocator.
+ Result allocator_result;
+ KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
+ m_memory_block_slab_manager);
+ R_TRY(allocator_result);
+
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
+
+ // Perform mapping operation.
+ const KPageProperties properties = {perm, state == KMemoryState::Io, false,
+ DisableMergeAttribute::DisableHead};
+ R_TRY(this->MapPageGroupImpl(updater.GetPageList(), addr, pg, properties, false));
+
+ // Update the blocks.
+ m_memory_block_manager.Update(std::addressof(allocator), addr, num_pages, state, perm,
+ KMemoryAttribute::None, KMemoryBlockDisableMergeAttribute::Normal,
+ KMemoryBlockDisableMergeAttribute::None);
+
+ // We successfully mapped the pages.
+ *out_addr = addr;
+ R_SUCCEED();
+}
+
+Result KPageTable::MapPageGroup(KProcessAddress addr, const KPageGroup& pg, KMemoryState state,
+ KMemoryPermission perm) {
+ ASSERT(!this->IsLockedByCurrentThread());
+
+ // Ensure this is a valid map request.
+ const size_t num_pages = pg.GetNumPages();
const size_t size = num_pages * PageSize;
- R_UNLESS(this->Contains(address, size), ResultInvalidCurrentMemory);
+ R_UNLESS(this->CanContain(addr, size, state), ResultInvalidCurrentMemory);
// Lock the table.
KScopedLightLock lk(m_general_lock);
- // Check the memory state.
- size_t num_allocator_blocks{};
+ // Check if state allows us to map.
+ size_t num_allocator_blocks;
+ R_TRY(this->CheckMemoryState(std::addressof(num_allocator_blocks), addr, size,
+ KMemoryState::All, KMemoryState::Free, KMemoryPermission::None,
+ KMemoryPermission::None, KMemoryAttribute::None,
+ KMemoryAttribute::None));
+
+ // Create an update allocator.
+ Result allocator_result;
+ KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
+ m_memory_block_slab_manager, num_allocator_blocks);
+ R_TRY(allocator_result);
+
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
+
+ // Perform mapping operation.
+ const KPageProperties properties = {perm, state == KMemoryState::Io, false,
+ DisableMergeAttribute::DisableHead};
+ R_TRY(this->MapPageGroupImpl(updater.GetPageList(), addr, pg, properties, false));
+
+ // Update the blocks.
+ m_memory_block_manager.Update(std::addressof(allocator), addr, num_pages, state, perm,
+ KMemoryAttribute::None, KMemoryBlockDisableMergeAttribute::Normal,
+ KMemoryBlockDisableMergeAttribute::None);
+
+ // We successfully mapped the pages.
+ R_SUCCEED();
+}
+
+Result KPageTable::UnmapPageGroup(KProcessAddress address, const KPageGroup& pg,
+ KMemoryState state) {
+ ASSERT(!this->IsLockedByCurrentThread());
+
+ // Ensure this is a valid unmap request.
+ const size_t num_pages = pg.GetNumPages();
+ const size_t size = num_pages * PageSize;
+ R_UNLESS(this->CanContain(address, size, state), ResultInvalidCurrentMemory);
+
+ // Lock the table.
+ KScopedLightLock lk(m_general_lock);
+
+ // Check if state allows us to unmap.
+ size_t num_allocator_blocks;
R_TRY(this->CheckMemoryState(std::addressof(num_allocator_blocks), address, size,
KMemoryState::All, state, KMemoryPermission::None,
KMemoryPermission::None, KMemoryAttribute::All,
KMemoryAttribute::None));
+ // Check that the page group is valid.
+ R_UNLESS(this->IsValidPageGroup(pg, address, num_pages), ResultInvalidCurrentMemory);
+
// Create an update allocator.
- Result allocator_result{ResultSuccess};
+ Result allocator_result;
KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
m_memory_block_slab_manager, num_allocator_blocks);
R_TRY(allocator_result);
- // Perform the unmap.
- R_TRY(Operate(address, num_pages, KMemoryPermission::None, OperationType::Unmap));
+ // We're going to perform an update, so create a helper.
+ KScopedPageTableUpdater updater(this);
+
+ // Perform unmapping operation.
+ const KPageProperties properties = {KMemoryPermission::None, false, false,
+ DisableMergeAttribute::None};
+ R_TRY(this->Operate(address, num_pages, properties.perm, OperationType::Unmap));
// Update the blocks.
m_memory_block_manager.Update(std::addressof(allocator), address, num_pages, KMemoryState::Free,
@@ -2201,7 +2476,7 @@ Result KPageTable::UnmapPages(VAddr address, size_t num_pages, KMemoryState stat
R_SUCCEED();
}
-Result KPageTable::MakeAndOpenPageGroup(KPageGroup* out, VAddr address, size_t num_pages,
+Result KPageTable::MakeAndOpenPageGroup(KPageGroup* out, KProcessAddress address, size_t num_pages,
KMemoryState state_mask, KMemoryState state,
KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr) {
@@ -2226,7 +2501,7 @@ Result KPageTable::MakeAndOpenPageGroup(KPageGroup* out, VAddr address, size_t n
R_SUCCEED();
}
-Result KPageTable::SetProcessMemoryPermission(VAddr addr, size_t size,
+Result KPageTable::SetProcessMemoryPermission(KProcessAddress addr, size_t size,
Svc::MemoryPermission svc_perm) {
const size_t num_pages = size / PageSize;
@@ -2287,23 +2562,23 @@ Result KPageTable::SetProcessMemoryPermission(VAddr addr, size_t size,
// Ensure cache coherency, if we're setting pages as executable.
if (is_x) {
- m_system.InvalidateCpuInstructionCacheRange(addr, size);
+ m_system.InvalidateCpuInstructionCacheRange(GetInteger(addr), size);
}
R_SUCCEED();
}
-KMemoryInfo KPageTable::QueryInfoImpl(VAddr addr) {
+KMemoryInfo KPageTable::QueryInfoImpl(KProcessAddress addr) {
KScopedLightLock lk(m_general_lock);
return m_memory_block_manager.FindBlock(addr)->GetMemoryInfo();
}
-KMemoryInfo KPageTable::QueryInfo(VAddr addr) {
+KMemoryInfo KPageTable::QueryInfo(KProcessAddress addr) {
if (!Contains(addr, 1)) {
return {
- .m_address = m_address_space_end,
- .m_size = 0 - m_address_space_end,
+ .m_address = GetInteger(m_address_space_end),
+ .m_size = 0 - GetInteger(m_address_space_end),
.m_state = static_cast<KMemoryState>(Svc::MemoryState::Inaccessible),
.m_device_disable_merge_left_count = 0,
.m_device_disable_merge_right_count = 0,
@@ -2320,7 +2595,8 @@ KMemoryInfo KPageTable::QueryInfo(VAddr addr) {
return QueryInfoImpl(addr);
}
-Result KPageTable::SetMemoryPermission(VAddr addr, size_t size, Svc::MemoryPermission svc_perm) {
+Result KPageTable::SetMemoryPermission(KProcessAddress addr, size_t size,
+ Svc::MemoryPermission svc_perm) {
const size_t num_pages = size / PageSize;
// Lock the table.
@@ -2357,7 +2633,7 @@ Result KPageTable::SetMemoryPermission(VAddr addr, size_t size, Svc::MemoryPermi
R_SUCCEED();
}
-Result KPageTable::SetMemoryAttribute(VAddr addr, size_t size, u32 mask, u32 attr) {
+Result KPageTable::SetMemoryAttribute(KProcessAddress addr, size_t size, u32 mask, u32 attr) {
const size_t num_pages = size / PageSize;
ASSERT((static_cast<KMemoryAttribute>(mask) | KMemoryAttribute::SetMask) ==
KMemoryAttribute::SetMask);
@@ -2412,12 +2688,12 @@ Result KPageTable::SetMaxHeapSize(size_t size) {
R_SUCCEED();
}
-Result KPageTable::SetHeapSize(VAddr* out, size_t size) {
+Result KPageTable::SetHeapSize(u64* out, size_t size) {
// Lock the physical memory mutex.
KScopedLightLock map_phys_mem_lk(m_map_physical_memory_lock);
// Try to perform a reduction in heap, instead of an extension.
- VAddr cur_address{};
+ KProcessAddress cur_address{};
size_t allocation_size{};
{
// Lock the table.
@@ -2468,11 +2744,11 @@ Result KPageTable::SetHeapSize(VAddr* out, size_t size) {
m_current_heap_end = m_heap_region_start + size;
// Set the output.
- *out = m_heap_region_start;
+ *out = GetInteger(m_heap_region_start);
R_SUCCEED();
} else if (size == GetHeapSize()) {
// The size requested is exactly the current size.
- *out = m_heap_region_start;
+ *out = GetInteger(m_heap_region_start);
R_SUCCEED();
} else {
// We have to allocate memory. Determine how much to allocate and where while the table
@@ -2526,7 +2802,7 @@ Result KPageTable::SetHeapSize(VAddr* out, size_t size) {
// Clear all the newly allocated pages.
for (size_t cur_page = 0; cur_page < num_pages; ++cur_page) {
- std::memset(m_system.Memory().GetPointer(m_current_heap_end + (cur_page * PageSize)), 0,
+ std::memset(m_memory->GetPointer(m_current_heap_end + (cur_page * PageSize)), 0,
PageSize);
}
@@ -2545,62 +2821,14 @@ Result KPageTable::SetHeapSize(VAddr* out, size_t size) {
m_current_heap_end = m_heap_region_start + size;
// Set the output.
- *out = m_heap_region_start;
+ *out = GetInteger(m_heap_region_start);
R_SUCCEED();
}
}
-ResultVal<VAddr> KPageTable::AllocateAndMapMemory(size_t needed_num_pages, size_t align,
- bool is_map_only, VAddr region_start,
- size_t region_num_pages, KMemoryState state,
- KMemoryPermission perm, PAddr map_addr) {
- KScopedLightLock lk(m_general_lock);
-
- R_UNLESS(CanContain(region_start, region_num_pages * PageSize, state),
- ResultInvalidCurrentMemory);
- R_UNLESS(region_num_pages > needed_num_pages, ResultOutOfMemory);
- const VAddr addr{
- AllocateVirtualMemory(region_start, region_num_pages, needed_num_pages, align)};
- R_UNLESS(addr, ResultOutOfMemory);
-
- // Create an update allocator.
- Result allocator_result{ResultSuccess};
- KMemoryBlockManagerUpdateAllocator allocator(std::addressof(allocator_result),
- m_memory_block_slab_manager);
-
- if (is_map_only) {
- R_TRY(Operate(addr, needed_num_pages, perm, OperationType::Map, map_addr));
- } else {
- // Create a page group tohold the pages we allocate.
- KPageGroup pg{m_kernel, m_block_info_manager};
-
- R_TRY(m_system.Kernel().MemoryManager().AllocateAndOpen(
- &pg, needed_num_pages,
- KMemoryManager::EncodeOption(m_memory_pool, m_allocation_option)));
-
- // Ensure that the page group is closed when we're done working with it.
- SCOPE_EXIT({ pg.Close(); });
-
- // Clear all pages.
- for (const auto& it : pg) {
- std::memset(m_system.DeviceMemory().GetPointer<void>(it.GetAddress()),
- m_heap_fill_value, it.GetSize());
- }
-
- R_TRY(Operate(addr, needed_num_pages, pg, OperationType::MapGroup));
- }
-
- // Update the blocks.
- m_memory_block_manager.Update(std::addressof(allocator), addr, needed_num_pages, state, perm,
- KMemoryAttribute::None, KMemoryBlockDisableMergeAttribute::Normal,
- KMemoryBlockDisableMergeAttribute::None);
-
- return addr;
-}
-
-Result KPageTable::LockForMapDeviceAddressSpace(bool* out_is_io, VAddr address, size_t size,
- KMemoryPermission perm, bool is_aligned,
- bool check_heap) {
+Result KPageTable::LockForMapDeviceAddressSpace(bool* out_is_io, KProcessAddress address,
+ size_t size, KMemoryPermission perm,
+ bool is_aligned, bool check_heap) {
// Lightly validate the range before doing anything else.
const size_t num_pages = size / PageSize;
R_UNLESS(this->Contains(address, size), ResultInvalidCurrentMemory);
@@ -2636,7 +2864,8 @@ Result KPageTable::LockForMapDeviceAddressSpace(bool* out_is_io, VAddr address,
R_SUCCEED();
}
-Result KPageTable::LockForUnmapDeviceAddressSpace(VAddr address, size_t size, bool check_heap) {
+Result KPageTable::LockForUnmapDeviceAddressSpace(KProcessAddress address, size_t size,
+ bool check_heap) {
// Lightly validate the range before doing anything else.
const size_t num_pages = size / PageSize;
R_UNLESS(this->Contains(address, size), ResultInvalidCurrentMemory);
@@ -2670,7 +2899,7 @@ Result KPageTable::LockForUnmapDeviceAddressSpace(VAddr address, size_t size, bo
R_SUCCEED();
}
-Result KPageTable::UnlockForDeviceAddressSpace(VAddr address, size_t size) {
+Result KPageTable::UnlockForDeviceAddressSpace(KProcessAddress address, size_t size) {
// Lightly validate the range before doing anything else.
const size_t num_pages = size / PageSize;
R_UNLESS(this->Contains(address, size), ResultInvalidCurrentMemory);
@@ -2698,7 +2927,8 @@ Result KPageTable::UnlockForDeviceAddressSpace(VAddr address, size_t size) {
R_SUCCEED();
}
-Result KPageTable::LockForIpcUserBuffer(PAddr* out, VAddr address, size_t size) {
+Result KPageTable::LockForIpcUserBuffer(KPhysicalAddress* out, KProcessAddress address,
+ size_t size) {
R_RETURN(this->LockMemoryAndOpen(
nullptr, out, address, size, KMemoryState::FlagCanIpcUserBuffer,
KMemoryState::FlagCanIpcUserBuffer, KMemoryPermission::All,
@@ -2707,7 +2937,7 @@ Result KPageTable::LockForIpcUserBuffer(PAddr* out, VAddr address, size_t size)
KMemoryAttribute::Locked));
}
-Result KPageTable::UnlockForIpcUserBuffer(VAddr address, size_t size) {
+Result KPageTable::UnlockForIpcUserBuffer(KProcessAddress address, size_t size) {
R_RETURN(this->UnlockMemory(address, size, KMemoryState::FlagCanIpcUserBuffer,
KMemoryState::FlagCanIpcUserBuffer, KMemoryPermission::None,
KMemoryPermission::None, KMemoryAttribute::All,
@@ -2715,7 +2945,7 @@ Result KPageTable::UnlockForIpcUserBuffer(VAddr address, size_t size) {
KMemoryAttribute::Locked, nullptr));
}
-Result KPageTable::LockForCodeMemory(KPageGroup* out, VAddr addr, size_t size) {
+Result KPageTable::LockForCodeMemory(KPageGroup* out, KProcessAddress addr, size_t size) {
R_RETURN(this->LockMemoryAndOpen(
out, nullptr, addr, size, KMemoryState::FlagCanCodeMemory, KMemoryState::FlagCanCodeMemory,
KMemoryPermission::All, KMemoryPermission::UserReadWrite, KMemoryAttribute::All,
@@ -2723,17 +2953,17 @@ Result KPageTable::LockForCodeMemory(KPageGroup* out, VAddr addr, size_t size) {
KMemoryAttribute::Locked));
}
-Result KPageTable::UnlockForCodeMemory(VAddr addr, size_t size, const KPageGroup& pg) {
+Result KPageTable::UnlockForCodeMemory(KProcessAddress addr, size_t size, const KPageGroup& pg) {
R_RETURN(this->UnlockMemory(
addr, size, KMemoryState::FlagCanCodeMemory, KMemoryState::FlagCanCodeMemory,
KMemoryPermission::None, KMemoryPermission::None, KMemoryAttribute::All,
KMemoryAttribute::Locked, KMemoryPermission::UserReadWrite, KMemoryAttribute::Locked, &pg));
}
-bool KPageTable::IsRegionContiguous(VAddr addr, u64 size) const {
- auto start_ptr = m_system.DeviceMemory().GetPointer<u8>(addr);
+bool KPageTable::IsRegionContiguous(KProcessAddress addr, u64 size) const {
+ auto start_ptr = m_system.DeviceMemory().GetPointer<u8>(GetInteger(addr));
for (u64 offset{}; offset < size; offset += PageSize) {
- if (start_ptr != m_system.DeviceMemory().GetPointer<u8>(addr + offset)) {
+ if (start_ptr != m_system.DeviceMemory().GetPointer<u8>(GetInteger(addr) + offset)) {
return false;
}
start_ptr += PageSize;
@@ -2741,18 +2971,19 @@ bool KPageTable::IsRegionContiguous(VAddr addr, u64 size) const {
return true;
}
-void KPageTable::AddRegionToPages(VAddr start, size_t num_pages, KPageGroup& page_linked_list) {
- VAddr addr{start};
+void KPageTable::AddRegionToPages(KProcessAddress start, size_t num_pages,
+ KPageGroup& page_linked_list) {
+ KProcessAddress addr{start};
while (addr < start + (num_pages * PageSize)) {
- const PAddr paddr{GetPhysicalAddr(addr)};
+ const KPhysicalAddress paddr{GetPhysicalAddr(addr)};
ASSERT(paddr != 0);
page_linked_list.AddBlock(paddr, 1);
addr += PageSize;
}
}
-VAddr KPageTable::AllocateVirtualMemory(VAddr start, size_t region_num_pages, u64 needed_num_pages,
- size_t align) {
+KProcessAddress KPageTable::AllocateVirtualMemory(KProcessAddress start, size_t region_num_pages,
+ u64 needed_num_pages, size_t align) {
if (m_enable_aslr) {
UNIMPLEMENTED();
}
@@ -2760,11 +2991,11 @@ VAddr KPageTable::AllocateVirtualMemory(VAddr start, size_t region_num_pages, u6
IsKernel() ? 1 : 4);
}
-Result KPageTable::Operate(VAddr addr, size_t num_pages, const KPageGroup& page_group,
+Result KPageTable::Operate(KProcessAddress addr, size_t num_pages, const KPageGroup& page_group,
OperationType operation) {
ASSERT(this->IsLockedByCurrentThread());
- ASSERT(Common::IsAligned(addr, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(addr), PageSize));
ASSERT(num_pages > 0);
ASSERT(num_pages == page_group.GetNumPages());
@@ -2777,7 +3008,7 @@ Result KPageTable::Operate(VAddr addr, size_t num_pages, const KPageGroup& page_
const size_t size{node.GetNumPages() * PageSize};
// Map the pages.
- m_system.Memory().MapMemoryRegion(*m_page_table_impl, addr, size, node.GetAddress());
+ m_memory->MapMemoryRegion(*m_page_table_impl, addr, size, node.GetAddress());
addr += size;
}
@@ -2795,12 +3026,12 @@ Result KPageTable::Operate(VAddr addr, size_t num_pages, const KPageGroup& page_
R_SUCCEED();
}
-Result KPageTable::Operate(VAddr addr, size_t num_pages, KMemoryPermission perm,
- OperationType operation, PAddr map_addr) {
+Result KPageTable::Operate(KProcessAddress addr, size_t num_pages, KMemoryPermission perm,
+ OperationType operation, KPhysicalAddress map_addr) {
ASSERT(this->IsLockedByCurrentThread());
ASSERT(num_pages > 0);
- ASSERT(Common::IsAligned(addr, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(addr), PageSize));
ASSERT(ContainsPages(addr, num_pages));
switch (operation) {
@@ -2810,14 +3041,14 @@ Result KPageTable::Operate(VAddr addr, size_t num_pages, KMemoryPermission perm,
SCOPE_EXIT({ pages_to_close.CloseAndReset(); });
this->AddRegionToPages(addr, num_pages, pages_to_close);
- m_system.Memory().UnmapRegion(*m_page_table_impl, addr, num_pages * PageSize);
+ m_memory->UnmapRegion(*m_page_table_impl, addr, num_pages * PageSize);
break;
}
case OperationType::MapFirst:
case OperationType::Map: {
ASSERT(map_addr);
- ASSERT(Common::IsAligned(map_addr, PageSize));
- m_system.Memory().MapMemoryRegion(*m_page_table_impl, addr, num_pages * PageSize, map_addr);
+ ASSERT(Common::IsAligned(GetInteger(map_addr), PageSize));
+ m_memory->MapMemoryRegion(*m_page_table_impl, addr, num_pages * PageSize, map_addr);
// Open references to pages, if we should.
if (IsHeapPhysicalAddress(m_kernel.MemoryLayout(), map_addr)) {
@@ -2854,7 +3085,7 @@ void KPageTable::FinalizeUpdate(PageLinkedList* page_list) {
}
}
-VAddr KPageTable::GetRegionAddress(KMemoryState state) const {
+KProcessAddress KPageTable::GetRegionAddress(KMemoryState state) const {
switch (state) {
case KMemoryState::Free:
case KMemoryState::Kernel:
@@ -2926,11 +3157,11 @@ size_t KPageTable::GetRegionSize(KMemoryState state) const {
}
}
-bool KPageTable::CanContain(VAddr addr, size_t size, KMemoryState state) const {
- const VAddr end = addr + size;
- const VAddr last = end - 1;
+bool KPageTable::CanContain(KProcessAddress addr, size_t size, KMemoryState state) const {
+ const KProcessAddress end = addr + size;
+ const KProcessAddress last = end - 1;
- const VAddr region_start = this->GetRegionAddress(state);
+ const KProcessAddress region_start = this->GetRegionAddress(state);
const size_t region_size = this->GetRegionSize(state);
const bool is_in_region =
@@ -2985,21 +3216,21 @@ Result KPageTable::CheckMemoryState(const KMemoryInfo& info, KMemoryState state_
R_SUCCEED();
}
-Result KPageTable::CheckMemoryStateContiguous(size_t* out_blocks_needed, VAddr addr, size_t size,
- KMemoryState state_mask, KMemoryState state,
- KMemoryPermission perm_mask, KMemoryPermission perm,
- KMemoryAttribute attr_mask,
+Result KPageTable::CheckMemoryStateContiguous(size_t* out_blocks_needed, KProcessAddress addr,
+ size_t size, KMemoryState state_mask,
+ KMemoryState state, KMemoryPermission perm_mask,
+ KMemoryPermission perm, KMemoryAttribute attr_mask,
KMemoryAttribute attr) const {
ASSERT(this->IsLockedByCurrentThread());
// Get information about the first block.
- const VAddr last_addr = addr + size - 1;
+ const KProcessAddress last_addr = addr + size - 1;
KMemoryBlockManager::const_iterator it = m_memory_block_manager.FindIterator(addr);
KMemoryInfo info = it->GetMemoryInfo();
// If the start address isn't aligned, we need a block.
const size_t blocks_for_start_align =
- (Common::AlignDown(addr, PageSize) != info.GetAddress()) ? 1 : 0;
+ (Common::AlignDown(GetInteger(addr), PageSize) != info.GetAddress()) ? 1 : 0;
while (true) {
// Validate against the provided masks.
@@ -3018,7 +3249,7 @@ Result KPageTable::CheckMemoryStateContiguous(size_t* out_blocks_needed, VAddr a
// If the end address isn't aligned, we need a block.
const size_t blocks_for_end_align =
- (Common::AlignUp(addr + size, PageSize) != info.GetEndAddress()) ? 1 : 0;
+ (Common::AlignUp(GetInteger(addr) + size, PageSize) != info.GetEndAddress()) ? 1 : 0;
if (out_blocks_needed != nullptr) {
*out_blocks_needed = blocks_for_start_align + blocks_for_end_align;
@@ -3029,20 +3260,20 @@ Result KPageTable::CheckMemoryStateContiguous(size_t* out_blocks_needed, VAddr a
Result KPageTable::CheckMemoryState(KMemoryState* out_state, KMemoryPermission* out_perm,
KMemoryAttribute* out_attr, size_t* out_blocks_needed,
- VAddr addr, size_t size, KMemoryState state_mask,
+ KProcessAddress addr, size_t size, KMemoryState state_mask,
KMemoryState state, KMemoryPermission perm_mask,
KMemoryPermission perm, KMemoryAttribute attr_mask,
KMemoryAttribute attr, KMemoryAttribute ignore_attr) const {
ASSERT(this->IsLockedByCurrentThread());
// Get information about the first block.
- const VAddr last_addr = addr + size - 1;
+ const KProcessAddress last_addr = addr + size - 1;
KMemoryBlockManager::const_iterator it = m_memory_block_manager.FindIterator(addr);
KMemoryInfo info = it->GetMemoryInfo();
// If the start address isn't aligned, we need a block.
const size_t blocks_for_start_align =
- (Common::AlignDown(addr, PageSize) != info.GetAddress()) ? 1 : 0;
+ (Common::AlignDown(GetInteger(addr), PageSize) != info.GetAddress()) ? 1 : 0;
// Validate all blocks in the range have correct state.
const KMemoryState first_state = info.m_state;
@@ -3071,7 +3302,7 @@ Result KPageTable::CheckMemoryState(KMemoryState* out_state, KMemoryPermission*
// If the end address isn't aligned, we need a block.
const size_t blocks_for_end_align =
- (Common::AlignUp(addr + size, PageSize) != info.GetEndAddress()) ? 1 : 0;
+ (Common::AlignUp(GetInteger(addr) + size, PageSize) != info.GetEndAddress()) ? 1 : 0;
// Write output state.
if (out_state != nullptr) {
@@ -3089,11 +3320,12 @@ Result KPageTable::CheckMemoryState(KMemoryState* out_state, KMemoryPermission*
R_SUCCEED();
}
-Result KPageTable::LockMemoryAndOpen(KPageGroup* out_pg, PAddr* out_paddr, VAddr addr, size_t size,
- KMemoryState state_mask, KMemoryState state,
- KMemoryPermission perm_mask, KMemoryPermission perm,
- KMemoryAttribute attr_mask, KMemoryAttribute attr,
- KMemoryPermission new_perm, KMemoryAttribute lock_attr) {
+Result KPageTable::LockMemoryAndOpen(KPageGroup* out_pg, KPhysicalAddress* out_KPhysicalAddress,
+ KProcessAddress addr, size_t size, KMemoryState state_mask,
+ KMemoryState state, KMemoryPermission perm_mask,
+ KMemoryPermission perm, KMemoryAttribute attr_mask,
+ KMemoryAttribute attr, KMemoryPermission new_perm,
+ KMemoryAttribute lock_attr) {
// Validate basic preconditions.
ASSERT((lock_attr & attr) == KMemoryAttribute::None);
ASSERT((lock_attr & (KMemoryAttribute::IpcLocked | KMemoryAttribute::DeviceShared)) ==
@@ -3123,8 +3355,8 @@ Result KPageTable::LockMemoryAndOpen(KPageGroup* out_pg, PAddr* out_paddr, VAddr
attr_mask, attr));
// Get the physical address, if we're supposed to.
- if (out_paddr != nullptr) {
- ASSERT(this->GetPhysicalAddressLocked(out_paddr, addr));
+ if (out_KPhysicalAddress != nullptr) {
+ ASSERT(this->GetPhysicalAddressLocked(out_KPhysicalAddress, addr));
}
// Make the page group, if we're supposed to.
@@ -3155,7 +3387,7 @@ Result KPageTable::LockMemoryAndOpen(KPageGroup* out_pg, PAddr* out_paddr, VAddr
R_SUCCEED();
}
-Result KPageTable::UnlockMemory(VAddr addr, size_t size, KMemoryState state_mask,
+Result KPageTable::UnlockMemory(KProcessAddress addr, size_t size, KMemoryState state_mask,
KMemoryState state, KMemoryPermission perm_mask,
KMemoryPermission perm, KMemoryAttribute attr_mask,
KMemoryAttribute attr, KMemoryPermission new_perm,
diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h
index 0a454b05b..022d15f35 100644
--- a/src/core/hle/kernel/k_page_table.h
+++ b/src/core/hle/kernel/k_page_table.h
@@ -6,7 +6,6 @@
#include <memory>
#include "common/common_funcs.h"
-#include "common/common_types.h"
#include "common/page_table.h"
#include "core/file_sys/program_metadata.h"
#include "core/hle/kernel/k_dynamic_resource_manager.h"
@@ -15,6 +14,7 @@
#include "core/hle/kernel/k_memory_block_manager.h"
#include "core/hle/kernel/k_memory_layout.h"
#include "core/hle/kernel/k_memory_manager.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/result.h"
#include "core/memory.h"
@@ -24,12 +24,36 @@ class System;
namespace Kernel {
+enum class DisableMergeAttribute : u8 {
+ None = (0U << 0),
+ DisableHead = (1U << 0),
+ DisableHeadAndBody = (1U << 1),
+ EnableHeadAndBody = (1U << 2),
+ DisableTail = (1U << 3),
+ EnableTail = (1U << 4),
+ EnableAndMergeHeadBodyTail = (1U << 5),
+ EnableHeadBodyTail = EnableHeadAndBody | EnableTail,
+ DisableHeadBodyTail = DisableHeadAndBody | DisableTail,
+};
+
+struct KPageProperties {
+ KMemoryPermission perm;
+ bool io;
+ bool uncached;
+ DisableMergeAttribute disable_merge_attributes;
+};
+static_assert(std::is_trivial_v<KPageProperties>);
+static_assert(sizeof(KPageProperties) == sizeof(u32));
+
class KBlockInfoManager;
class KMemoryBlockManager;
class KResourceLimit;
class KSystemResource;
class KPageTable final {
+protected:
+ struct PageLinkedList;
+
public:
enum class ICacheInvalidationStrategy : u32 { InvalidateRange, InvalidateAll };
@@ -41,60 +65,48 @@ public:
Result InitializeForProcess(FileSys::ProgramAddressSpaceType as_type, bool enable_aslr,
bool enable_das_merge, bool from_back, KMemoryManager::Pool pool,
- VAddr code_addr, size_t code_size, KSystemResource* system_resource,
- KResourceLimit* resource_limit);
+ KProcessAddress code_addr, size_t code_size,
+ KSystemResource* system_resource, KResourceLimit* resource_limit,
+ Core::Memory::Memory& memory);
void Finalize();
- Result MapProcessCode(VAddr addr, size_t pages_count, KMemoryState state,
+ Result MapProcessCode(KProcessAddress addr, size_t pages_count, KMemoryState state,
KMemoryPermission perm);
- Result MapCodeMemory(VAddr dst_address, VAddr src_address, size_t size);
- Result UnmapCodeMemory(VAddr dst_address, VAddr src_address, size_t size,
+ Result MapCodeMemory(KProcessAddress dst_address, KProcessAddress src_address, size_t size);
+ Result UnmapCodeMemory(KProcessAddress dst_address, KProcessAddress src_address, size_t size,
ICacheInvalidationStrategy icache_invalidation_strategy);
- Result UnmapProcessMemory(VAddr dst_addr, size_t size, KPageTable& src_page_table,
- VAddr src_addr);
- Result MapPhysicalMemory(VAddr addr, size_t size);
- Result UnmapPhysicalMemory(VAddr addr, size_t size);
- Result MapMemory(VAddr dst_addr, VAddr src_addr, size_t size);
- Result UnmapMemory(VAddr dst_addr, VAddr src_addr, size_t size);
- Result MapPages(VAddr addr, KPageGroup& page_linked_list, KMemoryState state,
- KMemoryPermission perm);
- Result MapPages(VAddr* out_addr, size_t num_pages, size_t alignment, PAddr phys_addr,
- KMemoryState state, KMemoryPermission perm) {
- R_RETURN(this->MapPages(out_addr, num_pages, alignment, phys_addr, true,
- this->GetRegionAddress(state),
- this->GetRegionSize(state) / PageSize, state, perm));
- }
- Result UnmapPages(VAddr addr, KPageGroup& page_linked_list, KMemoryState state);
- Result UnmapPages(VAddr address, size_t num_pages, KMemoryState state);
- Result SetProcessMemoryPermission(VAddr addr, size_t size, Svc::MemoryPermission svc_perm);
- KMemoryInfo QueryInfo(VAddr addr);
- Result SetMemoryPermission(VAddr addr, size_t size, Svc::MemoryPermission perm);
- Result SetMemoryAttribute(VAddr addr, size_t size, u32 mask, u32 attr);
+ Result UnmapProcessMemory(KProcessAddress dst_addr, size_t size, KPageTable& src_page_table,
+ KProcessAddress src_addr);
+ Result MapPhysicalMemory(KProcessAddress addr, size_t size);
+ Result UnmapPhysicalMemory(KProcessAddress addr, size_t size);
+ Result MapMemory(KProcessAddress dst_addr, KProcessAddress src_addr, size_t size);
+ Result UnmapMemory(KProcessAddress dst_addr, KProcessAddress src_addr, size_t size);
+ Result SetProcessMemoryPermission(KProcessAddress addr, size_t size,
+ Svc::MemoryPermission svc_perm);
+ KMemoryInfo QueryInfo(KProcessAddress addr);
+ Result SetMemoryPermission(KProcessAddress addr, size_t size, Svc::MemoryPermission perm);
+ Result SetMemoryAttribute(KProcessAddress addr, size_t size, u32 mask, u32 attr);
Result SetMaxHeapSize(size_t size);
- Result SetHeapSize(VAddr* out, size_t size);
- ResultVal<VAddr> AllocateAndMapMemory(size_t needed_num_pages, size_t align, bool is_map_only,
- VAddr region_start, size_t region_num_pages,
- KMemoryState state, KMemoryPermission perm,
- PAddr map_addr = 0);
-
- Result LockForMapDeviceAddressSpace(bool* out_is_io, VAddr address, size_t size,
+ Result SetHeapSize(u64* out, size_t size);
+ Result LockForMapDeviceAddressSpace(bool* out_is_io, KProcessAddress address, size_t size,
KMemoryPermission perm, bool is_aligned, bool check_heap);
- Result LockForUnmapDeviceAddressSpace(VAddr address, size_t size, bool check_heap);
+ Result LockForUnmapDeviceAddressSpace(KProcessAddress address, size_t size, bool check_heap);
- Result UnlockForDeviceAddressSpace(VAddr addr, size_t size);
+ Result UnlockForDeviceAddressSpace(KProcessAddress addr, size_t size);
- Result LockForIpcUserBuffer(PAddr* out, VAddr address, size_t size);
- Result UnlockForIpcUserBuffer(VAddr address, size_t size);
+ Result LockForIpcUserBuffer(KPhysicalAddress* out, KProcessAddress address, size_t size);
+ Result UnlockForIpcUserBuffer(KProcessAddress address, size_t size);
- Result SetupForIpc(VAddr* out_dst_addr, size_t size, VAddr src_addr, KPageTable& src_page_table,
- KMemoryPermission test_perm, KMemoryState dst_state, bool send);
- Result CleanupForIpcServer(VAddr address, size_t size, KMemoryState dst_state);
- Result CleanupForIpcClient(VAddr address, size_t size, KMemoryState dst_state);
+ Result SetupForIpc(KProcessAddress* out_dst_addr, size_t size, KProcessAddress src_addr,
+ KPageTable& src_page_table, KMemoryPermission test_perm,
+ KMemoryState dst_state, bool send);
+ Result CleanupForIpcServer(KProcessAddress address, size_t size, KMemoryState dst_state);
+ Result CleanupForIpcClient(KProcessAddress address, size_t size, KMemoryState dst_state);
- Result LockForCodeMemory(KPageGroup* out, VAddr addr, size_t size);
- Result UnlockForCodeMemory(VAddr addr, size_t size, const KPageGroup& pg);
- Result MakeAndOpenPageGroup(KPageGroup* out, VAddr address, size_t num_pages,
+ Result LockForCodeMemory(KPageGroup* out, KProcessAddress addr, size_t size);
+ Result UnlockForCodeMemory(KProcessAddress addr, size_t size, const KPageGroup& pg);
+ Result MakeAndOpenPageGroup(KPageGroup* out, KProcessAddress address, size_t num_pages,
KMemoryState state_mask, KMemoryState state,
KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr);
@@ -111,7 +123,41 @@ public:
return m_block_info_manager;
}
- bool CanContain(VAddr addr, size_t size, KMemoryState state) const;
+ bool CanContain(KProcessAddress addr, size_t size, KMemoryState state) const;
+
+ Result MapPages(KProcessAddress* out_addr, size_t num_pages, size_t alignment,
+ KPhysicalAddress phys_addr, KProcessAddress region_start,
+ size_t region_num_pages, KMemoryState state, KMemoryPermission perm) {
+ R_RETURN(this->MapPages(out_addr, num_pages, alignment, phys_addr, true, region_start,
+ region_num_pages, state, perm));
+ }
+
+ Result MapPages(KProcessAddress* out_addr, size_t num_pages, size_t alignment,
+ KPhysicalAddress phys_addr, KMemoryState state, KMemoryPermission perm) {
+ R_RETURN(this->MapPages(out_addr, num_pages, alignment, phys_addr, true,
+ this->GetRegionAddress(state),
+ this->GetRegionSize(state) / PageSize, state, perm));
+ }
+
+ Result MapPages(KProcessAddress* out_addr, size_t num_pages, KMemoryState state,
+ KMemoryPermission perm) {
+ R_RETURN(this->MapPages(out_addr, num_pages, PageSize, 0, false,
+ this->GetRegionAddress(state),
+ this->GetRegionSize(state) / PageSize, state, perm));
+ }
+
+ Result MapPages(KProcessAddress address, size_t num_pages, KMemoryState state,
+ KMemoryPermission perm);
+ Result UnmapPages(KProcessAddress address, size_t num_pages, KMemoryState state);
+
+ Result MapPageGroup(KProcessAddress* out_addr, const KPageGroup& pg,
+ KProcessAddress region_start, size_t region_num_pages, KMemoryState state,
+ KMemoryPermission perm);
+ Result MapPageGroup(KProcessAddress address, const KPageGroup& pg, KMemoryState state,
+ KMemoryPermission perm);
+ Result UnmapPageGroup(KProcessAddress address, const KPageGroup& pg, KMemoryState state);
+ void RemapPageGroup(PageLinkedList* page_list, KProcessAddress address, size_t size,
+ const KPageGroup& pg);
protected:
struct PageLinkedList {
@@ -130,8 +176,8 @@ protected:
m_root = n;
}
- void Push(Core::Memory::Memory& memory, VAddr addr) {
- this->Push(memory.GetPointer<Node>(addr));
+ void Push(Core::Memory::Memory& memory, KVirtualAddress addr) {
+ this->Push(memory.GetPointer<Node>(GetInteger(addr)));
}
Node* Peek() const {
@@ -166,32 +212,31 @@ private:
static constexpr KMemoryAttribute DefaultMemoryIgnoreAttr =
KMemoryAttribute::IpcLocked | KMemoryAttribute::DeviceShared;
- Result MapPages(VAddr addr, const KPageGroup& page_linked_list, KMemoryPermission perm);
- Result MapPages(VAddr* out_addr, size_t num_pages, size_t alignment, PAddr phys_addr,
- bool is_pa_valid, VAddr region_start, size_t region_num_pages,
- KMemoryState state, KMemoryPermission perm);
- Result UnmapPages(VAddr addr, const KPageGroup& page_linked_list);
- bool IsRegionContiguous(VAddr addr, u64 size) const;
- void AddRegionToPages(VAddr start, size_t num_pages, KPageGroup& page_linked_list);
- KMemoryInfo QueryInfoImpl(VAddr addr);
- VAddr AllocateVirtualMemory(VAddr start, size_t region_num_pages, u64 needed_num_pages,
- size_t align);
- Result Operate(VAddr addr, size_t num_pages, const KPageGroup& page_group,
+ Result MapPages(KProcessAddress* out_addr, size_t num_pages, size_t alignment,
+ KPhysicalAddress phys_addr, bool is_pa_valid, KProcessAddress region_start,
+ size_t region_num_pages, KMemoryState state, KMemoryPermission perm);
+ bool IsRegionContiguous(KProcessAddress addr, u64 size) const;
+ void AddRegionToPages(KProcessAddress start, size_t num_pages, KPageGroup& page_linked_list);
+ KMemoryInfo QueryInfoImpl(KProcessAddress addr);
+ KProcessAddress AllocateVirtualMemory(KProcessAddress start, size_t region_num_pages,
+ u64 needed_num_pages, size_t align);
+ Result Operate(KProcessAddress addr, size_t num_pages, const KPageGroup& page_group,
OperationType operation);
- Result Operate(VAddr addr, size_t num_pages, KMemoryPermission perm, OperationType operation,
- PAddr map_addr = 0);
+ Result Operate(KProcessAddress addr, size_t num_pages, KMemoryPermission perm,
+ OperationType operation, KPhysicalAddress map_addr = 0);
void FinalizeUpdate(PageLinkedList* page_list);
- VAddr GetRegionAddress(KMemoryState state) const;
+ KProcessAddress GetRegionAddress(KMemoryState state) const;
size_t GetRegionSize(KMemoryState state) const;
- VAddr FindFreeArea(VAddr region_start, size_t region_num_pages, size_t num_pages,
- size_t alignment, size_t offset, size_t guard_pages);
+ KProcessAddress FindFreeArea(KProcessAddress region_start, size_t region_num_pages,
+ size_t num_pages, size_t alignment, size_t offset,
+ size_t guard_pages);
- Result CheckMemoryStateContiguous(size_t* out_blocks_needed, VAddr addr, size_t size,
+ Result CheckMemoryStateContiguous(size_t* out_blocks_needed, KProcessAddress addr, size_t size,
KMemoryState state_mask, KMemoryState state,
KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr) const;
- Result CheckMemoryStateContiguous(VAddr addr, size_t size, KMemoryState state_mask,
+ Result CheckMemoryStateContiguous(KProcessAddress addr, size_t size, KMemoryState state_mask,
KMemoryState state, KMemoryPermission perm_mask,
KMemoryPermission perm, KMemoryAttribute attr_mask,
KMemoryAttribute attr) const {
@@ -203,12 +248,12 @@ private:
KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr) const;
Result CheckMemoryState(KMemoryState* out_state, KMemoryPermission* out_perm,
- KMemoryAttribute* out_attr, size_t* out_blocks_needed, VAddr addr,
- size_t size, KMemoryState state_mask, KMemoryState state,
- KMemoryPermission perm_mask, KMemoryPermission perm,
+ KMemoryAttribute* out_attr, size_t* out_blocks_needed,
+ KProcessAddress addr, size_t size, KMemoryState state_mask,
+ KMemoryState state, KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr,
KMemoryAttribute ignore_attr = DefaultMemoryIgnoreAttr) const;
- Result CheckMemoryState(size_t* out_blocks_needed, VAddr addr, size_t size,
+ Result CheckMemoryState(size_t* out_blocks_needed, KProcessAddress addr, size_t size,
KMemoryState state_mask, KMemoryState state,
KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr,
@@ -217,39 +262,40 @@ private:
state_mask, state, perm_mask, perm, attr_mask, attr,
ignore_attr));
}
- Result CheckMemoryState(VAddr addr, size_t size, KMemoryState state_mask, KMemoryState state,
- KMemoryPermission perm_mask, KMemoryPermission perm,
+ Result CheckMemoryState(KProcessAddress addr, size_t size, KMemoryState state_mask,
+ KMemoryState state, KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr,
KMemoryAttribute ignore_attr = DefaultMemoryIgnoreAttr) const {
R_RETURN(this->CheckMemoryState(nullptr, addr, size, state_mask, state, perm_mask, perm,
attr_mask, attr, ignore_attr));
}
- Result LockMemoryAndOpen(KPageGroup* out_pg, PAddr* out_paddr, VAddr addr, size_t size,
- KMemoryState state_mask, KMemoryState state,
- KMemoryPermission perm_mask, KMemoryPermission perm,
- KMemoryAttribute attr_mask, KMemoryAttribute attr,
- KMemoryPermission new_perm, KMemoryAttribute lock_attr);
- Result UnlockMemory(VAddr addr, size_t size, KMemoryState state_mask, KMemoryState state,
- KMemoryPermission perm_mask, KMemoryPermission perm,
+ Result LockMemoryAndOpen(KPageGroup* out_pg, KPhysicalAddress* out_KPhysicalAddress,
+ KProcessAddress addr, size_t size, KMemoryState state_mask,
+ KMemoryState state, KMemoryPermission perm_mask,
+ KMemoryPermission perm, KMemoryAttribute attr_mask,
+ KMemoryAttribute attr, KMemoryPermission new_perm,
+ KMemoryAttribute lock_attr);
+ Result UnlockMemory(KProcessAddress addr, size_t size, KMemoryState state_mask,
+ KMemoryState state, KMemoryPermission perm_mask, KMemoryPermission perm,
KMemoryAttribute attr_mask, KMemoryAttribute attr,
KMemoryPermission new_perm, KMemoryAttribute lock_attr,
const KPageGroup* pg);
- Result MakePageGroup(KPageGroup& pg, VAddr addr, size_t num_pages);
- bool IsValidPageGroup(const KPageGroup& pg, VAddr addr, size_t num_pages);
+ Result MakePageGroup(KPageGroup& pg, KProcessAddress addr, size_t num_pages);
+ bool IsValidPageGroup(const KPageGroup& pg, KProcessAddress addr, size_t num_pages);
bool IsLockedByCurrentThread() const {
return m_general_lock.IsLockedByCurrentThread();
}
- bool IsHeapPhysicalAddress(const KMemoryLayout& layout, PAddr phys_addr) {
+ bool IsHeapPhysicalAddress(const KMemoryLayout& layout, KPhysicalAddress phys_addr) {
ASSERT(this->IsLockedByCurrentThread());
return layout.IsHeapPhysicalAddress(m_cached_physical_heap_region, phys_addr);
}
- bool GetPhysicalAddressLocked(PAddr* out, VAddr virt_addr) const {
+ bool GetPhysicalAddressLocked(KPhysicalAddress* out, KProcessAddress virt_addr) const {
ASSERT(this->IsLockedByCurrentThread());
*out = GetPhysicalAddr(virt_addr);
@@ -257,73 +303,79 @@ private:
return *out != 0;
}
- Result SetupForIpcClient(PageLinkedList* page_list, size_t* out_blocks_needed, VAddr address,
- size_t size, KMemoryPermission test_perm, KMemoryState dst_state);
- Result SetupForIpcServer(VAddr* out_addr, size_t size, VAddr src_addr,
+ Result SetupForIpcClient(PageLinkedList* page_list, size_t* out_blocks_needed,
+ KProcessAddress address, size_t size, KMemoryPermission test_perm,
+ KMemoryState dst_state);
+ Result SetupForIpcServer(KProcessAddress* out_addr, size_t size, KProcessAddress src_addr,
KMemoryPermission test_perm, KMemoryState dst_state,
KPageTable& src_page_table, bool send);
- void CleanupForIpcClientOnServerSetupFailure(PageLinkedList* page_list, VAddr address,
+ void CleanupForIpcClientOnServerSetupFailure(PageLinkedList* page_list, KProcessAddress address,
size_t size, KMemoryPermission prot_perm);
+ Result AllocateAndMapPagesImpl(PageLinkedList* page_list, KProcessAddress address,
+ size_t num_pages, KMemoryPermission perm);
+ Result MapPageGroupImpl(PageLinkedList* page_list, KProcessAddress address,
+ const KPageGroup& pg, const KPageProperties properties, bool reuse_ll);
+
mutable KLightLock m_general_lock;
mutable KLightLock m_map_physical_memory_lock;
public:
- constexpr VAddr GetAddressSpaceStart() const {
+ constexpr KProcessAddress GetAddressSpaceStart() const {
return m_address_space_start;
}
- constexpr VAddr GetAddressSpaceEnd() const {
+ constexpr KProcessAddress GetAddressSpaceEnd() const {
return m_address_space_end;
}
constexpr size_t GetAddressSpaceSize() const {
return m_address_space_end - m_address_space_start;
}
- constexpr VAddr GetHeapRegionStart() const {
+ constexpr KProcessAddress GetHeapRegionStart() const {
return m_heap_region_start;
}
- constexpr VAddr GetHeapRegionEnd() const {
+ constexpr KProcessAddress GetHeapRegionEnd() const {
return m_heap_region_end;
}
constexpr size_t GetHeapRegionSize() const {
return m_heap_region_end - m_heap_region_start;
}
- constexpr VAddr GetAliasRegionStart() const {
+ constexpr KProcessAddress GetAliasRegionStart() const {
return m_alias_region_start;
}
- constexpr VAddr GetAliasRegionEnd() const {
+ constexpr KProcessAddress GetAliasRegionEnd() const {
return m_alias_region_end;
}
constexpr size_t GetAliasRegionSize() const {
return m_alias_region_end - m_alias_region_start;
}
- constexpr VAddr GetStackRegionStart() const {
+ constexpr KProcessAddress GetStackRegionStart() const {
return m_stack_region_start;
}
- constexpr VAddr GetStackRegionEnd() const {
+ constexpr KProcessAddress GetStackRegionEnd() const {
return m_stack_region_end;
}
constexpr size_t GetStackRegionSize() const {
return m_stack_region_end - m_stack_region_start;
}
- constexpr VAddr GetKernelMapRegionStart() const {
+ constexpr KProcessAddress GetKernelMapRegionStart() const {
return m_kernel_map_region_start;
}
- constexpr VAddr GetKernelMapRegionEnd() const {
+ constexpr KProcessAddress GetKernelMapRegionEnd() const {
return m_kernel_map_region_end;
}
- constexpr VAddr GetCodeRegionStart() const {
+ constexpr KProcessAddress GetCodeRegionStart() const {
return m_code_region_start;
}
- constexpr VAddr GetCodeRegionEnd() const {
+ constexpr KProcessAddress GetCodeRegionEnd() const {
return m_code_region_end;
}
- constexpr VAddr GetAliasCodeRegionStart() const {
+ constexpr KProcessAddress GetAliasCodeRegionStart() const {
return m_alias_code_region_start;
}
- constexpr VAddr GetAliasCodeRegionEnd() const {
+ constexpr KProcessAddress GetAliasCodeRegionEnd() const {
return m_alias_code_region_end;
}
- constexpr VAddr GetAliasCodeRegionSize() const {
+ constexpr size_t GetAliasCodeRegionSize() const {
return m_alias_code_region_end - m_alias_code_region_start;
}
size_t GetNormalMemorySize() {
@@ -336,25 +388,25 @@ public:
constexpr size_t GetHeapSize() const {
return m_current_heap_end - m_heap_region_start;
}
- constexpr bool IsInsideAddressSpace(VAddr address, size_t size) const {
+ constexpr bool IsInsideAddressSpace(KProcessAddress address, size_t size) const {
return m_address_space_start <= address && address + size - 1 <= m_address_space_end - 1;
}
- constexpr bool IsOutsideAliasRegion(VAddr address, size_t size) const {
+ constexpr bool IsOutsideAliasRegion(KProcessAddress address, size_t size) const {
return m_alias_region_start > address || address + size - 1 > m_alias_region_end - 1;
}
- constexpr bool IsOutsideStackRegion(VAddr address, size_t size) const {
+ constexpr bool IsOutsideStackRegion(KProcessAddress address, size_t size) const {
return m_stack_region_start > address || address + size - 1 > m_stack_region_end - 1;
}
- constexpr bool IsInvalidRegion(VAddr address, size_t size) const {
+ constexpr bool IsInvalidRegion(KProcessAddress address, size_t size) const {
return address + size - 1 > GetAliasCodeRegionStart() + GetAliasCodeRegionSize() - 1;
}
- constexpr bool IsInsideHeapRegion(VAddr address, size_t size) const {
+ constexpr bool IsInsideHeapRegion(KProcessAddress address, size_t size) const {
return address + size > m_heap_region_start && m_heap_region_end > address;
}
- constexpr bool IsInsideAliasRegion(VAddr address, size_t size) const {
+ constexpr bool IsInsideAliasRegion(KProcessAddress address, size_t size) const {
return address + size > m_alias_region_start && m_alias_region_end > address;
}
- constexpr bool IsOutsideASLRRegion(VAddr address, size_t size) const {
+ constexpr bool IsOutsideASLRRegion(KProcessAddress address, size_t size) const {
if (IsInvalidRegion(address, size)) {
return true;
}
@@ -366,47 +418,53 @@ public:
}
return {};
}
- constexpr bool IsInsideASLRRegion(VAddr address, size_t size) const {
+ constexpr bool IsInsideASLRRegion(KProcessAddress address, size_t size) const {
return !IsOutsideASLRRegion(address, size);
}
constexpr size_t GetNumGuardPages() const {
return IsKernel() ? 1 : 4;
}
- PAddr GetPhysicalAddr(VAddr addr) const {
+ KPhysicalAddress GetPhysicalAddr(KProcessAddress addr) const {
const auto backing_addr = m_page_table_impl->backing_addr[addr >> PageBits];
ASSERT(backing_addr);
- return backing_addr + addr;
+ return backing_addr + GetInteger(addr);
}
- constexpr bool Contains(VAddr addr) const {
+ constexpr bool Contains(KProcessAddress addr) const {
return m_address_space_start <= addr && addr <= m_address_space_end - 1;
}
- constexpr bool Contains(VAddr addr, size_t size) const {
+ constexpr bool Contains(KProcessAddress addr, size_t size) const {
return m_address_space_start <= addr && addr < addr + size &&
addr + size - 1 <= m_address_space_end - 1;
}
public:
- static VAddr GetLinearMappedVirtualAddress(const KMemoryLayout& layout, PAddr addr) {
+ static KVirtualAddress GetLinearMappedVirtualAddress(const KMemoryLayout& layout,
+ KPhysicalAddress addr) {
return layout.GetLinearVirtualAddress(addr);
}
- static PAddr GetLinearMappedPhysicalAddress(const KMemoryLayout& layout, VAddr addr) {
+ static KPhysicalAddress GetLinearMappedPhysicalAddress(const KMemoryLayout& layout,
+ KVirtualAddress addr) {
return layout.GetLinearPhysicalAddress(addr);
}
- static VAddr GetHeapVirtualAddress(const KMemoryLayout& layout, PAddr addr) {
+ static KVirtualAddress GetHeapVirtualAddress(const KMemoryLayout& layout,
+ KPhysicalAddress addr) {
return GetLinearMappedVirtualAddress(layout, addr);
}
- static PAddr GetHeapPhysicalAddress(const KMemoryLayout& layout, VAddr addr) {
+ static KPhysicalAddress GetHeapPhysicalAddress(const KMemoryLayout& layout,
+ KVirtualAddress addr) {
return GetLinearMappedPhysicalAddress(layout, addr);
}
- static VAddr GetPageTableVirtualAddress(const KMemoryLayout& layout, PAddr addr) {
+ static KVirtualAddress GetPageTableVirtualAddress(const KMemoryLayout& layout,
+ KPhysicalAddress addr) {
return GetLinearMappedVirtualAddress(layout, addr);
}
- static PAddr GetPageTablePhysicalAddress(const KMemoryLayout& layout, VAddr addr) {
+ static KPhysicalAddress GetPageTablePhysicalAddress(const KMemoryLayout& layout,
+ KVirtualAddress addr) {
return GetLinearMappedPhysicalAddress(layout, addr);
}
@@ -418,7 +476,7 @@ private:
return m_enable_aslr;
}
- constexpr bool ContainsPages(VAddr addr, size_t num_pages) const {
+ constexpr bool ContainsPages(KProcessAddress addr, size_t num_pages) const {
return (m_address_space_start <= addr) &&
(num_pages <= (m_address_space_end - m_address_space_start) / PageSize) &&
(addr + num_pages * PageSize - 1 <= m_address_space_end - 1);
@@ -438,26 +496,26 @@ private:
}
PageLinkedList* GetPageList() {
- return &m_ll;
+ return std::addressof(m_ll);
}
};
private:
- VAddr m_address_space_start{};
- VAddr m_address_space_end{};
- VAddr m_heap_region_start{};
- VAddr m_heap_region_end{};
- VAddr m_current_heap_end{};
- VAddr m_alias_region_start{};
- VAddr m_alias_region_end{};
- VAddr m_stack_region_start{};
- VAddr m_stack_region_end{};
- VAddr m_kernel_map_region_start{};
- VAddr m_kernel_map_region_end{};
- VAddr m_code_region_start{};
- VAddr m_code_region_end{};
- VAddr m_alias_code_region_start{};
- VAddr m_alias_code_region_end{};
+ KProcessAddress m_address_space_start{};
+ KProcessAddress m_address_space_end{};
+ KProcessAddress m_heap_region_start{};
+ KProcessAddress m_heap_region_end{};
+ KProcessAddress m_current_heap_end{};
+ KProcessAddress m_alias_region_start{};
+ KProcessAddress m_alias_region_end{};
+ KProcessAddress m_stack_region_start{};
+ KProcessAddress m_stack_region_end{};
+ KProcessAddress m_kernel_map_region_start{};
+ KProcessAddress m_kernel_map_region_end{};
+ KProcessAddress m_code_region_start{};
+ KProcessAddress m_code_region_end{};
+ KProcessAddress m_alias_code_region_start{};
+ KProcessAddress m_alias_code_region_end{};
size_t m_max_heap_size{};
size_t m_mapped_physical_memory_size{};
@@ -489,6 +547,7 @@ private:
Core::System& m_system;
KernelCore& m_kernel;
+ Core::Memory::Memory* m_memory{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_page_table_manager.h b/src/core/hle/kernel/k_page_table_manager.h
index 91a45cde3..4b0e034d0 100644
--- a/src/core/hle/kernel/k_page_table_manager.h
+++ b/src/core/hle/kernel/k_page_table_manager.h
@@ -5,9 +5,9 @@
#include <atomic>
-#include "common/common_types.h"
#include "core/hle/kernel/k_dynamic_resource_manager.h"
#include "core/hle/kernel/k_page_table_slab_heap.h"
+#include "core/hle/kernel/k_typed_address.h"
namespace Kernel {
@@ -26,23 +26,23 @@ public:
BaseHeap::Initialize(page_allocator, pt_heap);
}
- VAddr Allocate() {
- return VAddr(BaseHeap::Allocate());
+ KVirtualAddress Allocate() {
+ return KVirtualAddress(BaseHeap::Allocate());
}
- RefCount GetRefCount(VAddr addr) const {
+ RefCount GetRefCount(KVirtualAddress addr) const {
return m_pt_heap->GetRefCount(addr);
}
- void Open(VAddr addr, int count) {
+ void Open(KVirtualAddress addr, int count) {
return m_pt_heap->Open(addr, count);
}
- bool Close(VAddr addr, int count) {
+ bool Close(KVirtualAddress addr, int count) {
return m_pt_heap->Close(addr, count);
}
- bool IsInPageTableHeap(VAddr addr) const {
+ bool IsInPageTableHeap(KVirtualAddress addr) const {
return m_pt_heap->IsInRange(addr);
}
diff --git a/src/core/hle/kernel/k_page_table_slab_heap.h b/src/core/hle/kernel/k_page_table_slab_heap.h
index a9543cbd0..7da0ea669 100644
--- a/src/core/hle/kernel/k_page_table_slab_heap.h
+++ b/src/core/hle/kernel/k_page_table_slab_heap.h
@@ -6,8 +6,8 @@
#include <array>
#include <vector>
-#include "common/common_types.h"
#include "core/hle/kernel/k_dynamic_slab_heap.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/slab_helpers.h"
namespace Kernel {
@@ -20,7 +20,8 @@ public:
PageTablePage() = default;
private:
- std::array<u8, PageSize> m_buffer{};
+ // Initializer intentionally skipped
+ std::array<u8, PageSize> m_buffer;
};
static_assert(sizeof(PageTablePage) == PageSize);
@@ -44,12 +45,12 @@ public:
this->Initialize(rc);
}
- RefCount GetRefCount(VAddr addr) {
+ RefCount GetRefCount(KVirtualAddress addr) {
ASSERT(this->IsInRange(addr));
return *this->GetRefCountPointer(addr);
}
- void Open(VAddr addr, int count) {
+ void Open(KVirtualAddress addr, int count) {
ASSERT(this->IsInRange(addr));
*this->GetRefCountPointer(addr) += static_cast<RefCount>(count);
@@ -57,7 +58,7 @@ public:
ASSERT(this->GetRefCount(addr) > 0);
}
- bool Close(VAddr addr, int count) {
+ bool Close(KVirtualAddress addr, int count) {
ASSERT(this->IsInRange(addr));
ASSERT(this->GetRefCount(addr) >= count);
@@ -65,7 +66,7 @@ public:
return this->GetRefCount(addr) == 0;
}
- bool IsInPageTableHeap(VAddr addr) const {
+ bool IsInPageTableHeap(KVirtualAddress addr) const {
return this->IsInRange(addr);
}
@@ -80,7 +81,7 @@ private:
}
}
- RefCount* GetRefCountPointer(VAddr addr) {
+ RefCount* GetRefCountPointer(KVirtualAddress addr) {
return m_ref_counts.data() + ((addr - this->GetAddress()) / PageSize);
}
diff --git a/src/core/hle/kernel/k_port.cpp b/src/core/hle/kernel/k_port.cpp
index 77d00ae2c..1621ca1d3 100644
--- a/src/core/hle/kernel/k_port.cpp
+++ b/src/core/hle/kernel/k_port.cpp
@@ -1,63 +1,61 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/kernel/k_port.h"
#include "core/hle/kernel/k_scheduler.h"
#include "core/hle/kernel/svc_results.h"
namespace Kernel {
-KPort::KPort(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_}, server{kernel_}, client{kernel_} {}
+KPort::KPort(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel}, m_server{kernel}, m_client{kernel} {}
KPort::~KPort() = default;
-void KPort::Initialize(s32 max_sessions_, bool is_light_, const std::string& name_) {
+void KPort::Initialize(s32 max_sessions, bool is_light, uintptr_t name) {
// Open a new reference count to the initialized port.
- Open();
+ this->Open();
// Create and initialize our server/client pair.
- KAutoObject::Create(std::addressof(server));
- KAutoObject::Create(std::addressof(client));
- server.Initialize(this, name_ + ":Server");
- client.Initialize(this, max_sessions_, name_ + ":Client");
+ KAutoObject::Create(std::addressof(m_server));
+ KAutoObject::Create(std::addressof(m_client));
+ m_server.Initialize(this);
+ m_client.Initialize(this, max_sessions);
// Set our member variables.
- is_light = is_light_;
- name = name_;
- state = State::Normal;
+ m_is_light = is_light;
+ m_name = name;
+ m_state = State::Normal;
}
void KPort::OnClientClosed() {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
- if (state == State::Normal) {
- state = State::ClientClosed;
+ if (m_state == State::Normal) {
+ m_state = State::ClientClosed;
}
}
void KPort::OnServerClosed() {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
- if (state == State::Normal) {
- state = State::ServerClosed;
+ if (m_state == State::Normal) {
+ m_state = State::ServerClosed;
}
}
bool KPort::IsServerClosed() const {
- KScopedSchedulerLock sl{kernel};
- return state == State::ServerClosed;
+ KScopedSchedulerLock sl{m_kernel};
+ return m_state == State::ServerClosed;
}
Result KPort::EnqueueSession(KServerSession* session) {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
- R_UNLESS(state == State::Normal, ResultPortClosed);
+ R_UNLESS(m_state == State::Normal, ResultPortClosed);
- server.EnqueueSession(session);
-
- return ResultSuccess;
+ m_server.EnqueueSession(session);
+ R_SUCCEED();
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_port.h b/src/core/hle/kernel/k_port.h
index 0cfc16dab..991be27ab 100644
--- a/src/core/hle/kernel/k_port.h
+++ b/src/core/hle/kernel/k_port.h
@@ -19,17 +19,20 @@ class KPort final : public KAutoObjectWithSlabHeapAndContainer<KPort, KAutoObjec
KERNEL_AUTOOBJECT_TRAITS(KPort, KAutoObject);
public:
- explicit KPort(KernelCore& kernel_);
+ explicit KPort(KernelCore& kernel);
~KPort() override;
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
- void Initialize(s32 max_sessions_, bool is_light_, const std::string& name_);
+ void Initialize(s32 max_sessions, bool is_light, uintptr_t name);
void OnClientClosed();
void OnServerClosed();
+ uintptr_t GetName() const {
+ return m_name;
+ }
bool IsLight() const {
- return is_light;
+ return m_is_light;
}
bool IsServerClosed() const;
@@ -37,16 +40,16 @@ public:
Result EnqueueSession(KServerSession* session);
KClientPort& GetClientPort() {
- return client;
+ return m_client;
}
KServerPort& GetServerPort() {
- return server;
+ return m_server;
}
const KClientPort& GetClientPort() const {
- return client;
+ return m_client;
}
const KServerPort& GetServerPort() const {
- return server;
+ return m_server;
}
private:
@@ -57,10 +60,11 @@ private:
ServerClosed = 3,
};
- KServerPort server;
- KClientPort client;
- State state{State::Invalid};
- bool is_light{};
+ KServerPort m_server;
+ KClientPort m_client;
+ uintptr_t m_name;
+ State m_state{State::Invalid};
+ bool m_is_light{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_priority_queue.h b/src/core/hle/kernel/k_priority_queue.h
index cb2512b0b..26677ec65 100644
--- a/src/core/hle/kernel/k_priority_queue.h
+++ b/src/core/hle/kernel/k_priority_queue.h
@@ -17,35 +17,41 @@ namespace Kernel {
class KThread;
template <typename T>
-concept KPriorityQueueAffinityMask = !std::is_reference_v<T> && requires(T & t) {
- { t.GetAffinityMask() } -> Common::ConvertibleTo<u64>;
- {t.SetAffinityMask(0)};
+concept KPriorityQueueAffinityMask = !
+std::is_reference_v<T>&& requires(T& t) {
+ { t.GetAffinityMask() } -> Common::ConvertibleTo<u64>;
+ { t.SetAffinityMask(0) };
- { t.GetAffinity(0) } -> std::same_as<bool>;
- {t.SetAffinity(0, false)};
- {t.SetAll()};
-};
+ { t.GetAffinity(0) } -> std::same_as<bool>;
+ { t.SetAffinity(0, false) };
+ { t.SetAll() };
+ };
template <typename T>
-concept KPriorityQueueMember = !std::is_reference_v<T> && requires(T & t) {
- {typename T::QueueEntry()};
- {(typename T::QueueEntry()).Initialize()};
- {(typename T::QueueEntry()).SetPrev(std::addressof(t))};
- {(typename T::QueueEntry()).SetNext(std::addressof(t))};
- { (typename T::QueueEntry()).GetNext() } -> std::same_as<T*>;
- { (typename T::QueueEntry()).GetPrev() } -> std::same_as<T*>;
- { t.GetPriorityQueueEntry(0) } -> std::same_as<typename T::QueueEntry&>;
-
- {t.GetAffinityMask()};
- { std::remove_cvref_t<decltype(t.GetAffinityMask())>() } -> KPriorityQueueAffinityMask;
-
- { t.GetActiveCore() } -> Common::ConvertibleTo<s32>;
- { t.GetPriority() } -> Common::ConvertibleTo<s32>;
- { t.IsDummyThread() } -> Common::ConvertibleTo<bool>;
-};
+concept KPriorityQueueMember = !
+std::is_reference_v<T>&& requires(T& t) {
+ { typename T::QueueEntry() };
+ { (typename T::QueueEntry()).Initialize() };
+ { (typename T::QueueEntry()).SetPrev(std::addressof(t)) };
+ { (typename T::QueueEntry()).SetNext(std::addressof(t)) };
+ { (typename T::QueueEntry()).GetNext() } -> std::same_as<T*>;
+ { (typename T::QueueEntry()).GetPrev() } -> std::same_as<T*>;
+ {
+ t.GetPriorityQueueEntry(0)
+ } -> std::same_as<typename T::QueueEntry&>;
+
+ { t.GetAffinityMask() };
+ {
+ std::remove_cvref_t<decltype(t.GetAffinityMask())>()
+ } -> KPriorityQueueAffinityMask;
+
+ { t.GetActiveCore() } -> Common::ConvertibleTo<s32>;
+ { t.GetPriority() } -> Common::ConvertibleTo<s32>;
+ { t.IsDummyThread() } -> Common::ConvertibleTo<bool>;
+ };
template <typename Member, size_t NumCores_, int LowestPriority, int HighestPriority>
-requires KPriorityQueueMember<Member>
+ requires KPriorityQueueMember<Member>
class KPriorityQueue {
public:
using AffinityMaskType = std::remove_cv_t<
@@ -71,11 +77,11 @@ private:
public:
class KPerCoreQueue {
private:
- std::array<Entry, NumCores> root{};
+ std::array<Entry, NumCores> m_root{};
public:
constexpr KPerCoreQueue() {
- for (auto& per_core_root : root) {
+ for (auto& per_core_root : m_root) {
per_core_root.Initialize();
}
}
@@ -85,15 +91,15 @@ public:
Entry& member_entry = member->GetPriorityQueueEntry(core);
// Get the entry associated with the end of the queue.
- Member* tail = this->root[core].GetPrev();
+ Member* tail = m_root[core].GetPrev();
Entry& tail_entry =
- (tail != nullptr) ? tail->GetPriorityQueueEntry(core) : this->root[core];
+ (tail != nullptr) ? tail->GetPriorityQueueEntry(core) : m_root[core];
// Link the entries.
member_entry.SetPrev(tail);
member_entry.SetNext(nullptr);
tail_entry.SetNext(member);
- this->root[core].SetPrev(member);
+ m_root[core].SetPrev(member);
return tail == nullptr;
}
@@ -103,15 +109,15 @@ public:
Entry& member_entry = member->GetPriorityQueueEntry(core);
// Get the entry associated with the front of the queue.
- Member* head = this->root[core].GetNext();
+ Member* head = m_root[core].GetNext();
Entry& head_entry =
- (head != nullptr) ? head->GetPriorityQueueEntry(core) : this->root[core];
+ (head != nullptr) ? head->GetPriorityQueueEntry(core) : m_root[core];
// Link the entries.
member_entry.SetPrev(nullptr);
member_entry.SetNext(head);
head_entry.SetPrev(member);
- this->root[core].SetNext(member);
+ m_root[core].SetNext(member);
return (head == nullptr);
}
@@ -124,9 +130,9 @@ public:
Member* prev = member_entry.GetPrev();
Member* next = member_entry.GetNext();
Entry& prev_entry =
- (prev != nullptr) ? prev->GetPriorityQueueEntry(core) : this->root[core];
+ (prev != nullptr) ? prev->GetPriorityQueueEntry(core) : m_root[core];
Entry& next_entry =
- (next != nullptr) ? next->GetPriorityQueueEntry(core) : this->root[core];
+ (next != nullptr) ? next->GetPriorityQueueEntry(core) : m_root[core];
// Unlink.
prev_entry.SetNext(next);
@@ -136,7 +142,7 @@ public:
}
constexpr Member* GetFront(s32 core) const {
- return this->root[core].GetNext();
+ return m_root[core].GetNext();
}
};
@@ -152,8 +158,8 @@ public:
return;
}
- if (this->queues[priority].PushBack(core, member)) {
- this->available_priorities[core].SetBit(priority);
+ if (m_queues[priority].PushBack(core, member)) {
+ m_available_priorities[core].SetBit(priority);
}
}
@@ -165,8 +171,8 @@ public:
return;
}
- if (this->queues[priority].PushFront(core, member)) {
- this->available_priorities[core].SetBit(priority);
+ if (m_queues[priority].PushFront(core, member)) {
+ m_available_priorities[core].SetBit(priority);
}
}
@@ -178,18 +184,17 @@ public:
return;
}
- if (this->queues[priority].Remove(core, member)) {
- this->available_priorities[core].ClearBit(priority);
+ if (m_queues[priority].Remove(core, member)) {
+ m_available_priorities[core].ClearBit(priority);
}
}
constexpr Member* GetFront(s32 core) const {
ASSERT(IsValidCore(core));
- const s32 priority =
- static_cast<s32>(this->available_priorities[core].CountLeadingZero());
+ const s32 priority = static_cast<s32>(m_available_priorities[core].CountLeadingZero());
if (priority <= LowestPriority) {
- return this->queues[priority].GetFront(core);
+ return m_queues[priority].GetFront(core);
} else {
return nullptr;
}
@@ -200,7 +205,7 @@ public:
ASSERT(IsValidPriority(priority));
if (priority <= LowestPriority) {
- return this->queues[priority].GetFront(core);
+ return m_queues[priority].GetFront(core);
} else {
return nullptr;
}
@@ -212,9 +217,9 @@ public:
Member* next = member->GetPriorityQueueEntry(core).GetNext();
if (next == nullptr) {
const s32 priority = static_cast<s32>(
- this->available_priorities[core].GetNextSet(member->GetPriority()));
+ m_available_priorities[core].GetNextSet(member->GetPriority()));
if (priority <= LowestPriority) {
- next = this->queues[priority].GetFront(core);
+ next = m_queues[priority].GetFront(core);
}
}
return next;
@@ -225,8 +230,8 @@ public:
ASSERT(IsValidPriority(priority));
if (priority <= LowestPriority) {
- this->queues[priority].Remove(core, member);
- this->queues[priority].PushFront(core, member);
+ m_queues[priority].Remove(core, member);
+ m_queues[priority].PushFront(core, member);
}
}
@@ -235,29 +240,29 @@ public:
ASSERT(IsValidPriority(priority));
if (priority <= LowestPriority) {
- this->queues[priority].Remove(core, member);
- this->queues[priority].PushBack(core, member);
- return this->queues[priority].GetFront(core);
+ m_queues[priority].Remove(core, member);
+ m_queues[priority].PushBack(core, member);
+ return m_queues[priority].GetFront(core);
} else {
return nullptr;
}
}
private:
- std::array<KPerCoreQueue, NumPriority> queues{};
- std::array<Common::BitSet64<NumPriority>, NumCores> available_priorities{};
+ std::array<KPerCoreQueue, NumPriority> m_queues{};
+ std::array<Common::BitSet64<NumPriority>, NumCores> m_available_priorities{};
};
private:
- KPriorityQueueImpl scheduled_queue;
- KPriorityQueueImpl suggested_queue;
+ KPriorityQueueImpl m_scheduled_queue;
+ KPriorityQueueImpl m_suggested_queue;
private:
- constexpr void ClearAffinityBit(u64& affinity, s32 core) {
+ static constexpr void ClearAffinityBit(u64& affinity, s32 core) {
affinity &= ~(UINT64_C(1) << core);
}
- constexpr s32 GetNextCore(u64& affinity) {
+ static constexpr s32 GetNextCore(u64& affinity) {
const s32 core = std::countr_zero(affinity);
ClearAffinityBit(affinity, core);
return core;
@@ -269,13 +274,13 @@ private:
// Push onto the scheduled queue for its core, if we can.
u64 affinity = member->GetAffinityMask().GetAffinityMask();
if (const s32 core = member->GetActiveCore(); core >= 0) {
- this->scheduled_queue.PushBack(priority, core, member);
+ m_scheduled_queue.PushBack(priority, core, member);
ClearAffinityBit(affinity, core);
}
// And suggest the thread for all other cores.
while (affinity) {
- this->suggested_queue.PushBack(priority, GetNextCore(affinity), member);
+ m_suggested_queue.PushBack(priority, GetNextCore(affinity), member);
}
}
@@ -285,14 +290,14 @@ private:
// Push onto the scheduled queue for its core, if we can.
u64 affinity = member->GetAffinityMask().GetAffinityMask();
if (const s32 core = member->GetActiveCore(); core >= 0) {
- this->scheduled_queue.PushFront(priority, core, member);
+ m_scheduled_queue.PushFront(priority, core, member);
ClearAffinityBit(affinity, core);
}
// And suggest the thread for all other cores.
// Note: Nintendo pushes onto the back of the suggested queue, not the front.
while (affinity) {
- this->suggested_queue.PushBack(priority, GetNextCore(affinity), member);
+ m_suggested_queue.PushBack(priority, GetNextCore(affinity), member);
}
}
@@ -302,13 +307,13 @@ private:
// Remove from the scheduled queue for its core.
u64 affinity = member->GetAffinityMask().GetAffinityMask();
if (const s32 core = member->GetActiveCore(); core >= 0) {
- this->scheduled_queue.Remove(priority, core, member);
+ m_scheduled_queue.Remove(priority, core, member);
ClearAffinityBit(affinity, core);
}
// Remove from the suggested queue for all other cores.
while (affinity) {
- this->suggested_queue.Remove(priority, GetNextCore(affinity), member);
+ m_suggested_queue.Remove(priority, GetNextCore(affinity), member);
}
}
@@ -317,27 +322,27 @@ public:
// Getters.
constexpr Member* GetScheduledFront(s32 core) const {
- return this->scheduled_queue.GetFront(core);
+ return m_scheduled_queue.GetFront(core);
}
constexpr Member* GetScheduledFront(s32 core, s32 priority) const {
- return this->scheduled_queue.GetFront(priority, core);
+ return m_scheduled_queue.GetFront(priority, core);
}
constexpr Member* GetSuggestedFront(s32 core) const {
- return this->suggested_queue.GetFront(core);
+ return m_suggested_queue.GetFront(core);
}
constexpr Member* GetSuggestedFront(s32 core, s32 priority) const {
- return this->suggested_queue.GetFront(priority, core);
+ return m_suggested_queue.GetFront(priority, core);
}
constexpr Member* GetScheduledNext(s32 core, const Member* member) const {
- return this->scheduled_queue.GetNext(core, member);
+ return m_scheduled_queue.GetNext(core, member);
}
constexpr Member* GetSuggestedNext(s32 core, const Member* member) const {
- return this->suggested_queue.GetNext(core, member);
+ return m_suggested_queue.GetNext(core, member);
}
constexpr Member* GetSamePriorityNext(s32 core, const Member* member) const {
@@ -369,7 +374,7 @@ public:
return;
}
- this->scheduled_queue.MoveToFront(member->GetPriority(), member->GetActiveCore(), member);
+ m_scheduled_queue.MoveToFront(member->GetPriority(), member->GetActiveCore(), member);
}
constexpr KThread* MoveToScheduledBack(Member* member) {
@@ -378,8 +383,7 @@ public:
return {};
}
- return this->scheduled_queue.MoveToBack(member->GetPriority(), member->GetActiveCore(),
- member);
+ return m_scheduled_queue.MoveToBack(member->GetPriority(), member->GetActiveCore(), member);
}
// First class fancy operations.
@@ -419,9 +423,9 @@ public:
for (s32 core = 0; core < static_cast<s32>(NumCores); core++) {
if (prev_affinity.GetAffinity(core)) {
if (core == prev_core) {
- this->scheduled_queue.Remove(priority, core, member);
+ m_scheduled_queue.Remove(priority, core, member);
} else {
- this->suggested_queue.Remove(priority, core, member);
+ m_suggested_queue.Remove(priority, core, member);
}
}
}
@@ -430,9 +434,9 @@ public:
for (s32 core = 0; core < static_cast<s32>(NumCores); core++) {
if (new_affinity.GetAffinity(core)) {
if (core == new_core) {
- this->scheduled_queue.PushBack(priority, core, member);
+ m_scheduled_queue.PushBack(priority, core, member);
} else {
- this->suggested_queue.PushBack(priority, core, member);
+ m_suggested_queue.PushBack(priority, core, member);
}
}
}
@@ -452,22 +456,22 @@ public:
if (prev_core != new_core) {
// Remove from the scheduled queue for the previous core.
if (prev_core >= 0) {
- this->scheduled_queue.Remove(priority, prev_core, member);
+ m_scheduled_queue.Remove(priority, prev_core, member);
}
// Remove from the suggested queue and add to the scheduled queue for the new core.
if (new_core >= 0) {
- this->suggested_queue.Remove(priority, new_core, member);
+ m_suggested_queue.Remove(priority, new_core, member);
if (to_front) {
- this->scheduled_queue.PushFront(priority, new_core, member);
+ m_scheduled_queue.PushFront(priority, new_core, member);
} else {
- this->scheduled_queue.PushBack(priority, new_core, member);
+ m_scheduled_queue.PushBack(priority, new_core, member);
}
}
// Add to the suggested queue for the previous core.
if (prev_core >= 0) {
- this->suggested_queue.PushBack(priority, prev_core, member);
+ m_suggested_queue.PushBack(priority, prev_core, member);
}
}
}
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp
index a1abf5d68..efe86ad27 100644
--- a/src/core/hle/kernel/k_process.cpp
+++ b/src/core/hle/kernel/k_process.cpp
@@ -36,22 +36,23 @@ namespace {
* @param owner_process The parent process for the main thread
* @param priority The priority to give the main thread
*/
-void SetupMainThread(Core::System& system, KProcess& owner_process, u32 priority, VAddr stack_top) {
- const VAddr entry_point = owner_process.PageTable().GetCodeRegionStart();
+void SetupMainThread(Core::System& system, KProcess& owner_process, u32 priority,
+ KProcessAddress stack_top) {
+ const KProcessAddress entry_point = owner_process.PageTable().GetCodeRegionStart();
ASSERT(owner_process.GetResourceLimit()->Reserve(LimitableResource::ThreadCountMax, 1));
KThread* thread = KThread::Create(system.Kernel());
SCOPE_EXIT({ thread->Close(); });
ASSERT(KThread::InitializeUserThread(system, thread, entry_point, 0, stack_top, priority,
- owner_process.GetIdealCoreId(), &owner_process)
+ owner_process.GetIdealCoreId(),
+ std::addressof(owner_process))
.IsSuccess());
// Register 1 must be a handle to the main thread
Handle thread_handle{};
- owner_process.GetHandleTable().Add(&thread_handle, thread);
+ owner_process.GetHandleTable().Add(std::addressof(thread_handle), thread);
- thread->SetName("main");
thread->GetContext32().cpu_registers[0] = 0;
thread->GetContext64().cpu_registers[0] = 0;
thread->GetContext32().cpu_registers[1] = thread_handle;
@@ -71,32 +72,32 @@ Result KProcess::Initialize(KProcess* process, Core::System& system, std::string
auto& kernel = system.Kernel();
process->name = std::move(process_name);
- process->resource_limit = res_limit;
- process->system_resource_address = 0;
- process->state = State::Created;
- process->program_id = 0;
- process->process_id = type == ProcessType::KernelInternal ? kernel.CreateNewKernelProcessID()
- : kernel.CreateNewUserProcessID();
- process->capabilities.InitializeForMetadatalessProcess();
- process->is_initialized = true;
+ process->m_resource_limit = res_limit;
+ process->m_system_resource_address = 0;
+ process->m_state = State::Created;
+ process->m_program_id = 0;
+ process->m_process_id = type == ProcessType::KernelInternal ? kernel.CreateNewKernelProcessID()
+ : kernel.CreateNewUserProcessID();
+ process->m_capabilities.InitializeForMetadatalessProcess();
+ process->m_is_initialized = true;
std::mt19937 rng(Settings::values.rng_seed.GetValue().value_or(std::time(nullptr)));
std::uniform_int_distribution<u64> distribution;
- std::generate(process->random_entropy.begin(), process->random_entropy.end(),
+ std::generate(process->m_random_entropy.begin(), process->m_random_entropy.end(),
[&] { return distribution(rng); });
kernel.AppendNewProcess(process);
// Clear remaining fields.
- process->num_running_threads = 0;
- process->is_signaled = false;
- process->exception_thread = nullptr;
- process->is_suspended = false;
- process->schedule_count = 0;
- process->is_handle_table_initialized = false;
+ process->m_num_running_threads = 0;
+ process->m_is_signaled = false;
+ process->m_exception_thread = nullptr;
+ process->m_is_suspended = false;
+ process->m_schedule_count = 0;
+ process->m_is_handle_table_initialized = false;
// Open a reference to the resource limit.
- process->resource_limit->Open();
+ process->m_resource_limit->Open();
R_SUCCEED();
}
@@ -106,66 +107,65 @@ void KProcess::DoWorkerTaskImpl() {
}
KResourceLimit* KProcess::GetResourceLimit() const {
- return resource_limit;
+ return m_resource_limit;
}
void KProcess::IncrementRunningThreadCount() {
- ASSERT(num_running_threads.load() >= 0);
- ++num_running_threads;
+ ASSERT(m_num_running_threads.load() >= 0);
+ ++m_num_running_threads;
}
void KProcess::DecrementRunningThreadCount() {
- ASSERT(num_running_threads.load() > 0);
+ ASSERT(m_num_running_threads.load() > 0);
- if (const auto prev = num_running_threads--; prev == 1) {
+ if (const auto prev = m_num_running_threads--; prev == 1) {
// TODO(bunnei): Process termination to be implemented when multiprocess is supported.
- UNIMPLEMENTED_MSG("KProcess termination is not implemennted!");
}
}
u64 KProcess::GetTotalPhysicalMemoryAvailable() {
- const u64 capacity{resource_limit->GetFreeValue(LimitableResource::PhysicalMemoryMax) +
- page_table.GetNormalMemorySize() + GetSystemResourceSize() + image_size +
- main_thread_stack_size};
- if (const auto pool_size = kernel.MemoryManager().GetSize(KMemoryManager::Pool::Application);
+ const u64 capacity{m_resource_limit->GetFreeValue(LimitableResource::PhysicalMemoryMax) +
+ m_page_table.GetNormalMemorySize() + GetSystemResourceSize() + m_image_size +
+ m_main_thread_stack_size};
+ if (const auto pool_size = m_kernel.MemoryManager().GetSize(KMemoryManager::Pool::Application);
capacity != pool_size) {
LOG_WARNING(Kernel, "capacity {} != application pool size {}", capacity, pool_size);
}
- if (capacity < memory_usage_capacity) {
+ if (capacity < m_memory_usage_capacity) {
return capacity;
}
- return memory_usage_capacity;
+ return m_memory_usage_capacity;
}
u64 KProcess::GetTotalPhysicalMemoryAvailableWithoutSystemResource() {
- return GetTotalPhysicalMemoryAvailable() - GetSystemResourceSize();
+ return this->GetTotalPhysicalMemoryAvailable() - this->GetSystemResourceSize();
}
u64 KProcess::GetTotalPhysicalMemoryUsed() {
- return image_size + main_thread_stack_size + page_table.GetNormalMemorySize() +
- GetSystemResourceSize();
+ return m_image_size + m_main_thread_stack_size + m_page_table.GetNormalMemorySize() +
+ this->GetSystemResourceSize();
}
u64 KProcess::GetTotalPhysicalMemoryUsedWithoutSystemResource() {
- return GetTotalPhysicalMemoryUsed() - GetSystemResourceUsage();
+ return this->GetTotalPhysicalMemoryUsed() - this->GetSystemResourceUsage();
}
bool KProcess::ReleaseUserException(KThread* thread) {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
- if (exception_thread == thread) {
- exception_thread = nullptr;
+ if (m_exception_thread == thread) {
+ m_exception_thread = nullptr;
// Remove waiter thread.
- s32 num_waiters{};
- if (KThread* next = thread->RemoveWaiterByKey(
- std::addressof(num_waiters),
- reinterpret_cast<uintptr_t>(std::addressof(exception_thread)));
+ bool has_waiters{};
+ if (KThread* next = thread->RemoveKernelWaiterByKey(
+ std::addressof(has_waiters),
+ reinterpret_cast<uintptr_t>(std::addressof(m_exception_thread)));
next != nullptr) {
next->EndWait(ResultSuccess);
}
- KScheduler::SetSchedulerUpdateNeeded(kernel);
+ KScheduler::SetSchedulerUpdateNeeded(m_kernel);
return true;
} else {
@@ -174,72 +174,72 @@ bool KProcess::ReleaseUserException(KThread* thread) {
}
void KProcess::PinCurrentThread(s32 core_id) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Get the current thread.
KThread* cur_thread =
- kernel.Scheduler(static_cast<std::size_t>(core_id)).GetSchedulerCurrentThread();
+ m_kernel.Scheduler(static_cast<std::size_t>(core_id)).GetSchedulerCurrentThread();
// If the thread isn't terminated, pin it.
if (!cur_thread->IsTerminationRequested()) {
// Pin it.
- PinThread(core_id, cur_thread);
+ this->PinThread(core_id, cur_thread);
cur_thread->Pin(core_id);
// An update is needed.
- KScheduler::SetSchedulerUpdateNeeded(kernel);
+ KScheduler::SetSchedulerUpdateNeeded(m_kernel);
}
}
void KProcess::UnpinCurrentThread(s32 core_id) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Get the current thread.
KThread* cur_thread =
- kernel.Scheduler(static_cast<std::size_t>(core_id)).GetSchedulerCurrentThread();
+ m_kernel.Scheduler(static_cast<std::size_t>(core_id)).GetSchedulerCurrentThread();
// Unpin it.
cur_thread->Unpin();
- UnpinThread(core_id, cur_thread);
+ this->UnpinThread(core_id, cur_thread);
// An update is needed.
- KScheduler::SetSchedulerUpdateNeeded(kernel);
+ KScheduler::SetSchedulerUpdateNeeded(m_kernel);
}
void KProcess::UnpinThread(KThread* thread) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Get the thread's core id.
const auto core_id = thread->GetActiveCore();
// Unpin it.
- UnpinThread(core_id, thread);
+ this->UnpinThread(core_id, thread);
thread->Unpin();
// An update is needed.
- KScheduler::SetSchedulerUpdateNeeded(kernel);
+ KScheduler::SetSchedulerUpdateNeeded(m_kernel);
}
-Result KProcess::AddSharedMemory(KSharedMemory* shmem, [[maybe_unused]] VAddr address,
+Result KProcess::AddSharedMemory(KSharedMemory* shmem, [[maybe_unused]] KProcessAddress address,
[[maybe_unused]] size_t size) {
// Lock ourselves, to prevent concurrent access.
- KScopedLightLock lk(state_lock);
+ KScopedLightLock lk(m_state_lock);
// Try to find an existing info for the memory.
KSharedMemoryInfo* shemen_info = nullptr;
const auto iter = std::find_if(
- shared_memory_list.begin(), shared_memory_list.end(),
+ m_shared_memory_list.begin(), m_shared_memory_list.end(),
[shmem](const KSharedMemoryInfo* info) { return info->GetSharedMemory() == shmem; });
- if (iter != shared_memory_list.end()) {
+ if (iter != m_shared_memory_list.end()) {
shemen_info = *iter;
}
if (shemen_info == nullptr) {
- shemen_info = KSharedMemoryInfo::Allocate(kernel);
+ shemen_info = KSharedMemoryInfo::Allocate(m_kernel);
R_UNLESS(shemen_info != nullptr, ResultOutOfMemory);
shemen_info->Initialize(shmem);
- shared_memory_list.push_back(shemen_info);
+ m_shared_memory_list.push_back(shemen_info);
}
// Open a reference to the shared memory and its info.
@@ -249,24 +249,24 @@ Result KProcess::AddSharedMemory(KSharedMemory* shmem, [[maybe_unused]] VAddr ad
R_SUCCEED();
}
-void KProcess::RemoveSharedMemory(KSharedMemory* shmem, [[maybe_unused]] VAddr address,
+void KProcess::RemoveSharedMemory(KSharedMemory* shmem, [[maybe_unused]] KProcessAddress address,
[[maybe_unused]] size_t size) {
// Lock ourselves, to prevent concurrent access.
- KScopedLightLock lk(state_lock);
+ KScopedLightLock lk(m_state_lock);
KSharedMemoryInfo* shemen_info = nullptr;
const auto iter = std::find_if(
- shared_memory_list.begin(), shared_memory_list.end(),
+ m_shared_memory_list.begin(), m_shared_memory_list.end(),
[shmem](const KSharedMemoryInfo* info) { return info->GetSharedMemory() == shmem; });
- if (iter != shared_memory_list.end()) {
+ if (iter != m_shared_memory_list.end()) {
shemen_info = *iter;
}
ASSERT(shemen_info != nullptr);
if (shemen_info->Close()) {
- shared_memory_list.erase(iter);
- KSharedMemoryInfo::Free(kernel, shemen_info);
+ m_shared_memory_list.erase(iter);
+ KSharedMemoryInfo::Free(m_kernel, shemen_info);
}
// Close a reference to the shared memory.
@@ -274,22 +274,22 @@ void KProcess::RemoveSharedMemory(KSharedMemory* shmem, [[maybe_unused]] VAddr a
}
void KProcess::RegisterThread(KThread* thread) {
- KScopedLightLock lk{list_lock};
+ KScopedLightLock lk{m_list_lock};
- thread_list.push_back(thread);
+ m_thread_list.push_back(thread);
}
void KProcess::UnregisterThread(KThread* thread) {
- KScopedLightLock lk{list_lock};
+ KScopedLightLock lk{m_list_lock};
- thread_list.remove(thread);
+ m_thread_list.remove(thread);
}
u64 KProcess::GetFreeThreadCount() const {
- if (resource_limit != nullptr) {
+ if (m_resource_limit != nullptr) {
const auto current_value =
- resource_limit->GetCurrentValue(LimitableResource::ThreadCountMax);
- const auto limit_value = resource_limit->GetLimitValue(LimitableResource::ThreadCountMax);
+ m_resource_limit->GetCurrentValue(LimitableResource::ThreadCountMax);
+ const auto limit_value = m_resource_limit->GetLimitValue(LimitableResource::ThreadCountMax);
return limit_value - current_value;
} else {
return 0;
@@ -298,87 +298,85 @@ u64 KProcess::GetFreeThreadCount() const {
Result KProcess::Reset() {
// Lock the process and the scheduler.
- KScopedLightLock lk(state_lock);
- KScopedSchedulerLock sl{kernel};
+ KScopedLightLock lk(m_state_lock);
+ KScopedSchedulerLock sl{m_kernel};
// Validate that we're in a state that we can reset.
- R_UNLESS(state != State::Terminated, ResultInvalidState);
- R_UNLESS(is_signaled, ResultInvalidState);
+ R_UNLESS(m_state != State::Terminated, ResultInvalidState);
+ R_UNLESS(m_is_signaled, ResultInvalidState);
// Clear signaled.
- is_signaled = false;
+ m_is_signaled = false;
R_SUCCEED();
}
Result KProcess::SetActivity(ProcessActivity activity) {
// Lock ourselves and the scheduler.
- KScopedLightLock lk{state_lock};
- KScopedLightLock list_lk{list_lock};
- KScopedSchedulerLock sl{kernel};
+ KScopedLightLock lk{m_state_lock};
+ KScopedLightLock list_lk{m_list_lock};
+ KScopedSchedulerLock sl{m_kernel};
// Validate our state.
- R_UNLESS(state != State::Terminating, ResultInvalidState);
- R_UNLESS(state != State::Terminated, ResultInvalidState);
+ R_UNLESS(m_state != State::Terminating, ResultInvalidState);
+ R_UNLESS(m_state != State::Terminated, ResultInvalidState);
// Either pause or resume.
if (activity == ProcessActivity::Paused) {
// Verify that we're not suspended.
- R_UNLESS(!is_suspended, ResultInvalidState);
+ R_UNLESS(!m_is_suspended, ResultInvalidState);
// Suspend all threads.
- for (auto* thread : GetThreadList()) {
+ for (auto* thread : this->GetThreadList()) {
thread->RequestSuspend(SuspendType::Process);
}
// Set ourselves as suspended.
- SetSuspended(true);
+ this->SetSuspended(true);
} else {
ASSERT(activity == ProcessActivity::Runnable);
// Verify that we're suspended.
- R_UNLESS(is_suspended, ResultInvalidState);
+ R_UNLESS(m_is_suspended, ResultInvalidState);
// Resume all threads.
- for (auto* thread : GetThreadList()) {
+ for (auto* thread : this->GetThreadList()) {
thread->Resume(SuspendType::Process);
}
// Set ourselves as resumed.
- SetSuspended(false);
+ this->SetSuspended(false);
}
R_SUCCEED();
}
Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std::size_t code_size) {
- program_id = metadata.GetTitleID();
- ideal_core = metadata.GetMainThreadCore();
- is_64bit_process = metadata.Is64BitProgram();
- system_resource_size = metadata.GetSystemResourceSize();
- image_size = code_size;
-
- // We currently do not support process-specific system resource
- UNIMPLEMENTED_IF(system_resource_size != 0);
+ m_program_id = metadata.GetTitleID();
+ m_ideal_core = metadata.GetMainThreadCore();
+ m_is_64bit_process = metadata.Is64BitProgram();
+ m_system_resource_size = metadata.GetSystemResourceSize();
+ m_image_size = code_size;
KScopedResourceReservation memory_reservation(
- resource_limit, LimitableResource::PhysicalMemoryMax, code_size + system_resource_size);
+ m_resource_limit, LimitableResource::PhysicalMemoryMax, code_size + m_system_resource_size);
if (!memory_reservation.Succeeded()) {
LOG_ERROR(Kernel, "Could not reserve process memory requirements of size {:X} bytes",
- code_size + system_resource_size);
+ code_size + m_system_resource_size);
R_RETURN(ResultLimitReached);
}
- // Initialize proces address space
- if (const Result result{page_table.InitializeForProcess(
+ // Initialize process address space
+ if (const Result result{m_page_table.InitializeForProcess(
metadata.GetAddressSpaceType(), false, false, false, KMemoryManager::Pool::Application,
- 0x8000000, code_size, &kernel.GetSystemSystemResource(), resource_limit)};
+ 0x8000000, code_size, std::addressof(m_kernel.GetAppSystemResource()), m_resource_limit,
+ m_kernel.System().ApplicationMemory())};
result.IsError()) {
R_RETURN(result);
}
// Map process code region
- if (const Result result{page_table.MapProcessCode(page_table.GetCodeRegionStart(),
- code_size / PageSize, KMemoryState::Code,
- KMemoryPermission::None)};
+ if (const Result result{m_page_table.MapProcessCode(m_page_table.GetCodeRegionStart(),
+ code_size / PageSize, KMemoryState::Code,
+ KMemoryPermission::None)};
result.IsError()) {
R_RETURN(result);
}
@@ -386,7 +384,7 @@ Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std:
// Initialize process capabilities
const auto& caps{metadata.GetKernelCapabilities()};
if (const Result result{
- capabilities.InitializeForUserProcess(caps.data(), caps.size(), page_table)};
+ m_capabilities.InitializeForUserProcess(caps.data(), caps.size(), m_page_table)};
result.IsError()) {
R_RETURN(result);
}
@@ -396,12 +394,14 @@ Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std:
case FileSys::ProgramAddressSpaceType::Is32Bit:
case FileSys::ProgramAddressSpaceType::Is36Bit:
case FileSys::ProgramAddressSpaceType::Is39Bit:
- memory_usage_capacity = page_table.GetHeapRegionEnd() - page_table.GetHeapRegionStart();
+ m_memory_usage_capacity =
+ m_page_table.GetHeapRegionEnd() - m_page_table.GetHeapRegionStart();
break;
case FileSys::ProgramAddressSpaceType::Is32BitNoMap:
- memory_usage_capacity = page_table.GetHeapRegionEnd() - page_table.GetHeapRegionStart() +
- page_table.GetAliasRegionEnd() - page_table.GetAliasRegionStart();
+ m_memory_usage_capacity =
+ (m_page_table.GetHeapRegionEnd() - m_page_table.GetHeapRegionStart()) +
+ (m_page_table.GetAliasRegionEnd() - m_page_table.GetAliasRegionStart());
break;
default:
@@ -410,34 +410,34 @@ Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std:
}
// Create TLS region
- R_TRY(this->CreateThreadLocalRegion(std::addressof(plr_address)));
+ R_TRY(this->CreateThreadLocalRegion(std::addressof(m_plr_address)));
memory_reservation.Commit();
- R_RETURN(handle_table.Initialize(capabilities.GetHandleTableSize()));
+ R_RETURN(m_handle_table.Initialize(m_capabilities.GetHandleTableSize()));
}
void KProcess::Run(s32 main_thread_priority, u64 stack_size) {
- AllocateMainThreadStack(stack_size);
- resource_limit->Reserve(LimitableResource::ThreadCountMax, 1);
- resource_limit->Reserve(LimitableResource::PhysicalMemoryMax, main_thread_stack_size);
+ ASSERT(this->AllocateMainThreadStack(stack_size) == ResultSuccess);
+ m_resource_limit->Reserve(LimitableResource::ThreadCountMax, 1);
- const std::size_t heap_capacity{memory_usage_capacity - (main_thread_stack_size + image_size)};
- ASSERT(!page_table.SetMaxHeapSize(heap_capacity).IsError());
+ const std::size_t heap_capacity{m_memory_usage_capacity -
+ (m_main_thread_stack_size + m_image_size)};
+ ASSERT(!m_page_table.SetMaxHeapSize(heap_capacity).IsError());
- ChangeState(State::Running);
+ this->ChangeState(State::Running);
- SetupMainThread(kernel.System(), *this, main_thread_priority, main_thread_stack_top);
+ SetupMainThread(m_kernel.System(), *this, main_thread_priority, m_main_thread_stack_top);
}
void KProcess::PrepareForTermination() {
- ChangeState(State::Terminating);
+ this->ChangeState(State::Terminating);
const auto stop_threads = [this](const std::vector<KThread*>& in_thread_list) {
for (auto* thread : in_thread_list) {
if (thread->GetOwnerProcess() != this)
continue;
- if (thread == GetCurrentThreadPointer(kernel))
+ if (thread == GetCurrentThreadPointer(m_kernel))
continue;
// TODO(Subv): When are the other running/ready threads terminated?
@@ -448,24 +448,24 @@ void KProcess::PrepareForTermination() {
}
};
- stop_threads(kernel.System().GlobalSchedulerContext().GetThreadList());
+ stop_threads(m_kernel.System().GlobalSchedulerContext().GetThreadList());
- this->DeleteThreadLocalRegion(plr_address);
- plr_address = 0;
+ this->DeleteThreadLocalRegion(m_plr_address);
+ m_plr_address = 0;
- if (resource_limit) {
- resource_limit->Release(LimitableResource::PhysicalMemoryMax,
- main_thread_stack_size + image_size);
+ if (m_resource_limit) {
+ m_resource_limit->Release(LimitableResource::PhysicalMemoryMax,
+ m_main_thread_stack_size + m_image_size);
}
- ChangeState(State::Terminated);
+ this->ChangeState(State::Terminated);
}
void KProcess::Finalize() {
// Free all shared memory infos.
{
- auto it = shared_memory_list.begin();
- while (it != shared_memory_list.end()) {
+ auto it = m_shared_memory_list.begin();
+ while (it != m_shared_memory_list.end()) {
KSharedMemoryInfo* info = *it;
KSharedMemory* shmem = info->GetSharedMemory();
@@ -475,40 +475,40 @@ void KProcess::Finalize() {
shmem->Close();
- it = shared_memory_list.erase(it);
- KSharedMemoryInfo::Free(kernel, info);
+ it = m_shared_memory_list.erase(it);
+ KSharedMemoryInfo::Free(m_kernel, info);
}
}
// Release memory to the resource limit.
- if (resource_limit != nullptr) {
- resource_limit->Close();
- resource_limit = nullptr;
+ if (m_resource_limit != nullptr) {
+ m_resource_limit->Close();
+ m_resource_limit = nullptr;
}
// Finalize the page table.
- page_table.Finalize();
+ m_page_table.Finalize();
// Perform inherited finalization.
- KAutoObjectWithSlabHeapAndContainer<KProcess, KWorkerTask>::Finalize();
+ KSynchronizationObject::Finalize();
}
-Result KProcess::CreateThreadLocalRegion(VAddr* out) {
+Result KProcess::CreateThreadLocalRegion(KProcessAddress* out) {
KThreadLocalPage* tlp = nullptr;
- VAddr tlr = 0;
+ KProcessAddress tlr = 0;
// See if we can get a region from a partially used TLP.
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
- if (auto it = partially_used_tlp_tree.begin(); it != partially_used_tlp_tree.end()) {
+ if (auto it = m_partially_used_tlp_tree.begin(); it != m_partially_used_tlp_tree.end()) {
tlr = it->Reserve();
ASSERT(tlr != 0);
if (it->IsAllUsed()) {
tlp = std::addressof(*it);
- partially_used_tlp_tree.erase(it);
- fully_used_tlp_tree.insert(*tlp);
+ m_partially_used_tlp_tree.erase(it);
+ m_fully_used_tlp_tree.insert(*tlp);
}
*out = tlr;
@@ -517,12 +517,12 @@ Result KProcess::CreateThreadLocalRegion(VAddr* out) {
}
// Allocate a new page.
- tlp = KThreadLocalPage::Allocate(kernel);
+ tlp = KThreadLocalPage::Allocate(m_kernel);
R_UNLESS(tlp != nullptr, ResultOutOfMemory);
- auto tlp_guard = SCOPE_GUARD({ KThreadLocalPage::Free(kernel, tlp); });
+ auto tlp_guard = SCOPE_GUARD({ KThreadLocalPage::Free(m_kernel, tlp); });
// Initialize the new page.
- R_TRY(tlp->Initialize(kernel, this));
+ R_TRY(tlp->Initialize(m_kernel, this));
// Reserve a TLR.
tlr = tlp->Reserve();
@@ -530,11 +530,11 @@ Result KProcess::CreateThreadLocalRegion(VAddr* out) {
// Insert into our tree.
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
if (tlp->IsAllUsed()) {
- fully_used_tlp_tree.insert(*tlp);
+ m_fully_used_tlp_tree.insert(*tlp);
} else {
- partially_used_tlp_tree.insert(*tlp);
+ m_partially_used_tlp_tree.insert(*tlp);
}
}
@@ -544,30 +544,30 @@ Result KProcess::CreateThreadLocalRegion(VAddr* out) {
R_SUCCEED();
}
-Result KProcess::DeleteThreadLocalRegion(VAddr addr) {
+Result KProcess::DeleteThreadLocalRegion(KProcessAddress addr) {
KThreadLocalPage* page_to_free = nullptr;
// Release the region.
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Try to find the page in the partially used list.
- auto it = partially_used_tlp_tree.find_key(Common::AlignDown(addr, PageSize));
- if (it == partially_used_tlp_tree.end()) {
+ auto it = m_partially_used_tlp_tree.find_key(Common::AlignDown(GetInteger(addr), PageSize));
+ if (it == m_partially_used_tlp_tree.end()) {
// If we don't find it, it has to be in the fully used list.
- it = fully_used_tlp_tree.find_key(Common::AlignDown(addr, PageSize));
- R_UNLESS(it != fully_used_tlp_tree.end(), ResultInvalidAddress);
+ it = m_fully_used_tlp_tree.find_key(Common::AlignDown(GetInteger(addr), PageSize));
+ R_UNLESS(it != m_fully_used_tlp_tree.end(), ResultInvalidAddress);
// Release the region.
it->Release(addr);
// Move the page out of the fully used list.
KThreadLocalPage* tlp = std::addressof(*it);
- fully_used_tlp_tree.erase(it);
+ m_fully_used_tlp_tree.erase(it);
if (tlp->IsAllFree()) {
page_to_free = tlp;
} else {
- partially_used_tlp_tree.insert(*tlp);
+ m_partially_used_tlp_tree.insert(*tlp);
}
} else {
// Release the region.
@@ -576,7 +576,7 @@ Result KProcess::DeleteThreadLocalRegion(VAddr addr) {
// Handle the all-free case.
KThreadLocalPage* tlp = std::addressof(*it);
if (tlp->IsAllFree()) {
- partially_used_tlp_tree.erase(it);
+ m_partially_used_tlp_tree.erase(it);
page_to_free = tlp;
}
}
@@ -586,19 +586,18 @@ Result KProcess::DeleteThreadLocalRegion(VAddr addr) {
if (page_to_free != nullptr) {
page_to_free->Finalize();
- KThreadLocalPage::Free(kernel, page_to_free);
+ KThreadLocalPage::Free(m_kernel, page_to_free);
}
R_SUCCEED();
}
-bool KProcess::InsertWatchpoint(Core::System& system, VAddr addr, u64 size,
- DebugWatchpointType type) {
- const auto watch{std::find_if(watchpoints.begin(), watchpoints.end(), [&](const auto& wp) {
+bool KProcess::InsertWatchpoint(KProcessAddress addr, u64 size, DebugWatchpointType type) {
+ const auto watch{std::find_if(m_watchpoints.begin(), m_watchpoints.end(), [&](const auto& wp) {
return wp.type == DebugWatchpointType::None;
})};
- if (watch == watchpoints.end()) {
+ if (watch == m_watchpoints.end()) {
return false;
}
@@ -606,21 +605,21 @@ bool KProcess::InsertWatchpoint(Core::System& system, VAddr addr, u64 size,
watch->end_address = addr + size;
watch->type = type;
- for (VAddr page = Common::AlignDown(addr, PageSize); page < addr + size; page += PageSize) {
- debug_page_refcounts[page]++;
- system.Memory().MarkRegionDebug(page, PageSize, true);
+ for (KProcessAddress page = Common::AlignDown(GetInteger(addr), PageSize); page < addr + size;
+ page += PageSize) {
+ m_debug_page_refcounts[page]++;
+ this->GetMemory().MarkRegionDebug(page, PageSize, true);
}
return true;
}
-bool KProcess::RemoveWatchpoint(Core::System& system, VAddr addr, u64 size,
- DebugWatchpointType type) {
- const auto watch{std::find_if(watchpoints.begin(), watchpoints.end(), [&](const auto& wp) {
+bool KProcess::RemoveWatchpoint(KProcessAddress addr, u64 size, DebugWatchpointType type) {
+ const auto watch{std::find_if(m_watchpoints.begin(), m_watchpoints.end(), [&](const auto& wp) {
return wp.start_address == addr && wp.end_address == addr + size && wp.type == type;
})};
- if (watch == watchpoints.end()) {
+ if (watch == m_watchpoints.end()) {
return false;
}
@@ -628,24 +627,24 @@ bool KProcess::RemoveWatchpoint(Core::System& system, VAddr addr, u64 size,
watch->end_address = 0;
watch->type = DebugWatchpointType::None;
- for (VAddr page = Common::AlignDown(addr, PageSize); page < addr + size; page += PageSize) {
- debug_page_refcounts[page]--;
- if (!debug_page_refcounts[page]) {
- system.Memory().MarkRegionDebug(page, PageSize, false);
+ for (KProcessAddress page = Common::AlignDown(GetInteger(addr), PageSize); page < addr + size;
+ page += PageSize) {
+ m_debug_page_refcounts[page]--;
+ if (!m_debug_page_refcounts[page]) {
+ this->GetMemory().MarkRegionDebug(page, PageSize, false);
}
}
return true;
}
-void KProcess::LoadModule(CodeSet code_set, VAddr base_addr) {
+void KProcess::LoadModule(CodeSet code_set, KProcessAddress base_addr) {
const auto ReprotectSegment = [&](const CodeSet::Segment& segment,
Svc::MemoryPermission permission) {
- page_table.SetProcessMemoryPermission(segment.addr + base_addr, segment.size, permission);
+ m_page_table.SetProcessMemoryPermission(segment.addr + base_addr, segment.size, permission);
};
- kernel.System().Memory().WriteBlock(*this, base_addr, code_set.memory.data(),
- code_set.memory.size());
+ this->GetMemory().WriteBlock(base_addr, code_set.memory.data(), code_set.memory.size());
ReprotectSegment(code_set.CodeSegment(), Svc::MemoryPermission::ReadExecute);
ReprotectSegment(code_set.RODataSegment(), Svc::MemoryPermission::Read);
@@ -653,44 +652,60 @@ void KProcess::LoadModule(CodeSet code_set, VAddr base_addr) {
}
bool KProcess::IsSignaled() const {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
- return is_signaled;
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
+ return m_is_signaled;
}
-KProcess::KProcess(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_}, page_table{kernel_.System()},
- handle_table{kernel_}, address_arbiter{kernel_.System()}, condition_var{kernel_.System()},
- state_lock{kernel_}, list_lock{kernel_} {}
+KProcess::KProcess(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel}, m_page_table{m_kernel.System()},
+ m_handle_table{m_kernel}, m_address_arbiter{m_kernel.System()},
+ m_condition_var{m_kernel.System()}, m_state_lock{m_kernel}, m_list_lock{m_kernel} {}
KProcess::~KProcess() = default;
void KProcess::ChangeState(State new_state) {
- if (state == new_state) {
+ if (m_state == new_state) {
return;
}
- state = new_state;
- is_signaled = true;
- NotifyAvailable();
+ m_state = new_state;
+ m_is_signaled = true;
+ this->NotifyAvailable();
}
Result KProcess::AllocateMainThreadStack(std::size_t stack_size) {
- ASSERT(stack_size);
-
- // The kernel always ensures that the given stack size is page aligned.
- main_thread_stack_size = Common::AlignUp(stack_size, PageSize);
-
- const VAddr start{page_table.GetStackRegionStart()};
- const std::size_t size{page_table.GetStackRegionEnd() - start};
-
- CASCADE_RESULT(main_thread_stack_top,
- page_table.AllocateAndMapMemory(
- main_thread_stack_size / PageSize, PageSize, false, start, size / PageSize,
- KMemoryState::Stack, KMemoryPermission::UserReadWrite));
+ // Ensure that we haven't already allocated stack.
+ ASSERT(m_main_thread_stack_size == 0);
+
+ // Ensure that we're allocating a valid stack.
+ stack_size = Common::AlignUp(stack_size, PageSize);
+ // R_UNLESS(stack_size + image_size <= m_max_process_memory, ResultOutOfMemory);
+ R_UNLESS(stack_size + m_image_size >= m_image_size, ResultOutOfMemory);
+
+ // Place a tentative reservation of memory for our new stack.
+ KScopedResourceReservation mem_reservation(this, Svc::LimitableResource::PhysicalMemoryMax,
+ stack_size);
+ R_UNLESS(mem_reservation.Succeeded(), ResultLimitReached);
+
+ // Allocate and map our stack.
+ if (stack_size) {
+ KProcessAddress stack_bottom;
+ R_TRY(m_page_table.MapPages(std::addressof(stack_bottom), stack_size / PageSize,
+ KMemoryState::Stack, KMemoryPermission::UserReadWrite));
+
+ m_main_thread_stack_top = stack_bottom + stack_size;
+ m_main_thread_stack_size = stack_size;
+ }
- main_thread_stack_top += main_thread_stack_size;
+ // We succeeded! Commit our memory reservation.
+ mem_reservation.Commit();
R_SUCCEED();
}
+Core::Memory::Memory& KProcess::GetMemory() const {
+ // TODO: per-process memory
+ return m_kernel.System().ApplicationMemory();
+}
+
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h
index 09bf2f1d0..925981d06 100644
--- a/src/core/hle/kernel/k_process.h
+++ b/src/core/hle/kernel/k_process.h
@@ -8,7 +8,6 @@
#include <list>
#include <map>
#include <string>
-#include "common/common_types.h"
#include "core/hle/kernel/k_address_arbiter.h"
#include "core/hle/kernel/k_auto_object.h"
#include "core/hle/kernel/k_condition_variable.h"
@@ -16,14 +15,19 @@
#include "core/hle/kernel/k_page_table.h"
#include "core/hle/kernel/k_synchronization_object.h"
#include "core/hle/kernel/k_thread_local_page.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/k_worker_task.h"
#include "core/hle/kernel/process_capability.h"
#include "core/hle/kernel/slab_helpers.h"
#include "core/hle/result.h"
namespace Core {
+namespace Memory {
+class Memory;
+};
+
class System;
-}
+} // namespace Core
namespace FileSys {
class ProgramMetadata;
@@ -59,8 +63,8 @@ enum class DebugWatchpointType : u8 {
DECLARE_ENUM_FLAG_OPERATORS(DebugWatchpointType);
struct DebugWatchpoint {
- VAddr start_address;
- VAddr end_address;
+ KProcessAddress start_address;
+ KProcessAddress end_address;
DebugWatchpointType type;
};
@@ -68,7 +72,7 @@ class KProcess final : public KAutoObjectWithSlabHeapAndContainer<KProcess, KWor
KERNEL_AUTOOBJECT_TRAITS(KProcess, KSynchronizationObject);
public:
- explicit KProcess(KernelCore& kernel_);
+ explicit KProcess(KernelCore& kernel);
~KProcess() override;
enum class State {
@@ -107,66 +111,80 @@ public:
/// Gets a reference to the process' page table.
KPageTable& PageTable() {
- return page_table;
+ return m_page_table;
}
/// Gets const a reference to the process' page table.
const KPageTable& PageTable() const {
- return page_table;
+ return m_page_table;
+ }
+
+ /// Gets a reference to the process' page table.
+ KPageTable& GetPageTable() {
+ return m_page_table;
+ }
+
+ /// Gets const a reference to the process' page table.
+ const KPageTable& GetPageTable() const {
+ return m_page_table;
}
/// Gets a reference to the process' handle table.
KHandleTable& GetHandleTable() {
- return handle_table;
+ return m_handle_table;
}
/// Gets a const reference to the process' handle table.
const KHandleTable& GetHandleTable() const {
- return handle_table;
+ return m_handle_table;
}
- Result SignalToAddress(VAddr address) {
- return condition_var.SignalToAddress(address);
+ /// Gets a reference to process's memory.
+ Core::Memory::Memory& GetMemory() const;
+
+ Result SignalToAddress(KProcessAddress address) {
+ return m_condition_var.SignalToAddress(address);
}
- Result WaitForAddress(Handle handle, VAddr address, u32 tag) {
- return condition_var.WaitForAddress(handle, address, tag);
+ Result WaitForAddress(Handle handle, KProcessAddress address, u32 tag) {
+ return m_condition_var.WaitForAddress(handle, address, tag);
}
void SignalConditionVariable(u64 cv_key, int32_t count) {
- return condition_var.Signal(cv_key, count);
+ return m_condition_var.Signal(cv_key, count);
}
- Result WaitConditionVariable(VAddr address, u64 cv_key, u32 tag, s64 ns) {
- R_RETURN(condition_var.Wait(address, cv_key, tag, ns));
+ Result WaitConditionVariable(KProcessAddress address, u64 cv_key, u32 tag, s64 ns) {
+ R_RETURN(m_condition_var.Wait(address, cv_key, tag, ns));
}
- Result SignalAddressArbiter(VAddr address, Svc::SignalType signal_type, s32 value, s32 count) {
- R_RETURN(address_arbiter.SignalToAddress(address, signal_type, value, count));
+ Result SignalAddressArbiter(uint64_t address, Svc::SignalType signal_type, s32 value,
+ s32 count) {
+ R_RETURN(m_address_arbiter.SignalToAddress(address, signal_type, value, count));
}
- Result WaitAddressArbiter(VAddr address, Svc::ArbitrationType arb_type, s32 value,
+ Result WaitAddressArbiter(uint64_t address, Svc::ArbitrationType arb_type, s32 value,
s64 timeout) {
- R_RETURN(address_arbiter.WaitForAddress(address, arb_type, value, timeout));
+ R_RETURN(m_address_arbiter.WaitForAddress(address, arb_type, value, timeout));
}
- VAddr GetProcessLocalRegionAddress() const {
- return plr_address;
+ KProcessAddress GetProcessLocalRegionAddress() const {
+ return m_plr_address;
}
/// Gets the current status of the process
State GetState() const {
- return state;
+ return m_state;
}
/// Gets the unique ID that identifies this particular process.
- u64 GetProcessID() const {
- return process_id;
+ u64 GetProcessId() const {
+ return m_process_id;
}
/// Gets the program ID corresponding to this process.
- u64 GetProgramID() const {
- return program_id;
+ u64 GetProgramId() const {
+ return m_program_id;
}
/// Gets the resource limit descriptor for this process
@@ -174,7 +192,7 @@ public:
/// Gets the ideal CPU core ID for this process
u8 GetIdealCoreId() const {
- return ideal_core;
+ return m_ideal_core;
}
/// Checks if the specified thread priority is valid.
@@ -184,17 +202,17 @@ public:
/// Gets the bitmask of allowed cores that this process' threads can run on.
u64 GetCoreMask() const {
- return capabilities.GetCoreMask();
+ return m_capabilities.GetCoreMask();
}
/// Gets the bitmask of allowed thread priorities.
u64 GetPriorityMask() const {
- return capabilities.GetPriorityMask();
+ return m_capabilities.GetPriorityMask();
}
/// Gets the amount of secure memory to allocate for memory management.
u32 GetSystemResourceSize() const {
- return system_resource_size;
+ return m_system_resource_size;
}
/// Gets the amount of secure memory currently in use for memory management.
@@ -214,67 +232,67 @@ public:
/// Whether this process is an AArch64 or AArch32 process.
bool Is64BitProcess() const {
- return is_64bit_process;
+ return m_is_64bit_process;
}
- [[nodiscard]] bool IsSuspended() const {
- return is_suspended;
+ bool IsSuspended() const {
+ return m_is_suspended;
}
void SetSuspended(bool suspended) {
- is_suspended = suspended;
+ m_is_suspended = suspended;
}
/// Gets the total running time of the process instance in ticks.
u64 GetCPUTimeTicks() const {
- return total_process_running_time_ticks;
+ return m_total_process_running_time_ticks;
}
/// Updates the total running time, adding the given ticks to it.
void UpdateCPUTimeTicks(u64 ticks) {
- total_process_running_time_ticks += ticks;
+ m_total_process_running_time_ticks += ticks;
}
- /// Gets the process schedule count, used for thread yelding
+ /// Gets the process schedule count, used for thread yielding
s64 GetScheduledCount() const {
- return schedule_count;
+ return m_schedule_count;
}
/// Increments the process schedule count, used for thread yielding.
void IncrementScheduledCount() {
- ++schedule_count;
+ ++m_schedule_count;
}
void IncrementRunningThreadCount();
void DecrementRunningThreadCount();
void SetRunningThread(s32 core, KThread* thread, u64 idle_count) {
- running_threads[core] = thread;
- running_thread_idle_counts[core] = idle_count;
+ m_running_threads[core] = thread;
+ m_running_thread_idle_counts[core] = idle_count;
}
void ClearRunningThread(KThread* thread) {
- for (size_t i = 0; i < running_threads.size(); ++i) {
- if (running_threads[i] == thread) {
- running_threads[i] = nullptr;
+ for (size_t i = 0; i < m_running_threads.size(); ++i) {
+ if (m_running_threads[i] == thread) {
+ m_running_threads[i] = nullptr;
}
}
}
[[nodiscard]] KThread* GetRunningThread(s32 core) const {
- return running_threads[core];
+ return m_running_threads[core];
}
bool ReleaseUserException(KThread* thread);
[[nodiscard]] KThread* GetPinnedThread(s32 core_id) const {
ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES));
- return pinned_threads[core_id];
+ return m_pinned_threads[core_id];
}
/// Gets 8 bytes of random data for svcGetInfo RandomEntropy
u64 GetRandomEntropy(std::size_t index) const {
- return random_entropy.at(index);
+ return m_random_entropy.at(index);
}
/// Retrieves the total physical memory available to this process in bytes.
@@ -293,7 +311,7 @@ public:
/// Gets the list of all threads created with this process as their owner.
std::list<KThread*>& GetThreadList() {
- return thread_list;
+ return m_thread_list;
}
/// Registers a thread as being created under this process,
@@ -310,10 +328,10 @@ public:
/// Clears the signaled state of the process if and only if it's signaled.
///
/// @pre The process must not be already terminated. If this is called on a
- /// terminated process, then ERR_INVALID_STATE will be returned.
+ /// terminated process, then ResultInvalidState will be returned.
///
/// @pre The process must be in a signaled state. If this is called on a
- /// process instance that is not signaled, ERR_INVALID_STATE will be
+ /// process instance that is not signaled, ResultInvalidState will be
/// returned.
Result Reset();
@@ -342,18 +360,18 @@ public:
*/
void PrepareForTermination();
- void LoadModule(CodeSet code_set, VAddr base_addr);
+ void LoadModule(CodeSet code_set, KProcessAddress base_addr);
bool IsInitialized() const override {
- return is_initialized;
+ return m_is_initialized;
}
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
void Finalize() override;
u64 GetId() const override {
- return GetProcessID();
+ return GetProcessId();
}
bool IsSignaled() const override;
@@ -367,55 +385,59 @@ public:
void UnpinThread(KThread* thread);
KLightLock& GetStateLock() {
- return state_lock;
+ return m_state_lock;
}
- Result AddSharedMemory(KSharedMemory* shmem, VAddr address, size_t size);
- void RemoveSharedMemory(KSharedMemory* shmem, VAddr address, size_t size);
+ Result AddSharedMemory(KSharedMemory* shmem, KProcessAddress address, size_t size);
+ void RemoveSharedMemory(KSharedMemory* shmem, KProcessAddress address, size_t size);
///////////////////////////////////////////////////////////////////////////////////////////////
// Thread-local storage management
// Marks the next available region as used and returns the address of the slot.
- [[nodiscard]] Result CreateThreadLocalRegion(VAddr* out);
+ [[nodiscard]] Result CreateThreadLocalRegion(KProcessAddress* out);
// Frees a used TLS slot identified by the given address
- Result DeleteThreadLocalRegion(VAddr addr);
+ Result DeleteThreadLocalRegion(KProcessAddress addr);
///////////////////////////////////////////////////////////////////////////////////////////////
// Debug watchpoint management
// Attempts to insert a watchpoint into a free slot. Returns false if none are available.
- bool InsertWatchpoint(Core::System& system, VAddr addr, u64 size, DebugWatchpointType type);
+ bool InsertWatchpoint(KProcessAddress addr, u64 size, DebugWatchpointType type);
// Attempts to remove the watchpoint specified by the given parameters.
- bool RemoveWatchpoint(Core::System& system, VAddr addr, u64 size, DebugWatchpointType type);
+ bool RemoveWatchpoint(KProcessAddress addr, u64 size, DebugWatchpointType type);
const std::array<DebugWatchpoint, Core::Hardware::NUM_WATCHPOINTS>& GetWatchpoints() const {
- return watchpoints;
+ return m_watchpoints;
+ }
+
+ const std::string& GetName() {
+ return name;
}
private:
void PinThread(s32 core_id, KThread* thread) {
ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES));
ASSERT(thread != nullptr);
- ASSERT(pinned_threads[core_id] == nullptr);
- pinned_threads[core_id] = thread;
+ ASSERT(m_pinned_threads[core_id] == nullptr);
+ m_pinned_threads[core_id] = thread;
}
void UnpinThread(s32 core_id, KThread* thread) {
ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES));
ASSERT(thread != nullptr);
- ASSERT(pinned_threads[core_id] == thread);
- pinned_threads[core_id] = nullptr;
+ ASSERT(m_pinned_threads[core_id] == thread);
+ m_pinned_threads[core_id] = nullptr;
}
void FinalizeHandleTable() {
// Finalize the table.
- handle_table.Finalize();
+ m_handle_table.Finalize();
// Note that the table is finalized.
- is_handle_table_initialized = false;
+ m_is_handle_table_initialized = false;
}
void ChangeState(State new_state);
@@ -424,105 +446,107 @@ private:
Result AllocateMainThreadStack(std::size_t stack_size);
/// Memory manager for this process
- KPageTable page_table;
+ KPageTable m_page_table;
/// Current status of the process
- State state{};
+ State m_state{};
/// The ID of this process
- u64 process_id = 0;
+ u64 m_process_id = 0;
/// Title ID corresponding to the process
- u64 program_id = 0;
+ u64 m_program_id = 0;
/// Specifies additional memory to be reserved for the process's memory management by the
/// system. When this is non-zero, secure memory is allocated and used for page table allocation
/// instead of using the normal global page tables/memory block management.
- u32 system_resource_size = 0;
+ u32 m_system_resource_size = 0;
/// Resource limit descriptor for this process
- KResourceLimit* resource_limit{};
+ KResourceLimit* m_resource_limit{};
- VAddr system_resource_address{};
+ KVirtualAddress m_system_resource_address{};
/// The ideal CPU core for this process, threads are scheduled on this core by default.
- u8 ideal_core = 0;
+ u8 m_ideal_core = 0;
/// Contains the parsed process capability descriptors.
- ProcessCapabilities capabilities;
+ ProcessCapabilities m_capabilities;
/// Whether or not this process is AArch64, or AArch32.
/// By default, we currently assume this is true, unless otherwise
/// specified by metadata provided to the process during loading.
- bool is_64bit_process = true;
+ bool m_is_64bit_process = true;
/// Total running time for the process in ticks.
- std::atomic<u64> total_process_running_time_ticks = 0;
+ std::atomic<u64> m_total_process_running_time_ticks = 0;
/// Per-process handle table for storing created object handles in.
- KHandleTable handle_table;
+ KHandleTable m_handle_table;
/// Per-process address arbiter.
- KAddressArbiter address_arbiter;
+ KAddressArbiter m_address_arbiter;
/// The per-process mutex lock instance used for handling various
/// forms of services, such as lock arbitration, and condition
/// variable related facilities.
- KConditionVariable condition_var;
+ KConditionVariable m_condition_var;
/// Address indicating the location of the process' dedicated TLS region.
- VAddr plr_address = 0;
+ KProcessAddress m_plr_address = 0;
/// Random values for svcGetInfo RandomEntropy
- std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy{};
+ std::array<u64, RANDOM_ENTROPY_SIZE> m_random_entropy{};
/// List of threads that are running with this process as their owner.
- std::list<KThread*> thread_list;
+ std::list<KThread*> m_thread_list;
/// List of shared memory that are running with this process as their owner.
- std::list<KSharedMemoryInfo*> shared_memory_list;
+ std::list<KSharedMemoryInfo*> m_shared_memory_list;
/// Address of the top of the main thread's stack
- VAddr main_thread_stack_top{};
+ KProcessAddress m_main_thread_stack_top{};
/// Size of the main thread's stack
- std::size_t main_thread_stack_size{};
+ std::size_t m_main_thread_stack_size{};
/// Memory usage capacity for the process
- std::size_t memory_usage_capacity{};
+ std::size_t m_memory_usage_capacity{};
/// Process total image size
- std::size_t image_size{};
+ std::size_t m_image_size{};
/// Schedule count of this process
- s64 schedule_count{};
+ s64 m_schedule_count{};
+
+ size_t m_memory_release_hint{};
- size_t memory_release_hint{};
+ std::string name{};
- bool is_signaled{};
- bool is_suspended{};
- bool is_immortal{};
- bool is_handle_table_initialized{};
- bool is_initialized{};
+ bool m_is_signaled{};
+ bool m_is_suspended{};
+ bool m_is_immortal{};
+ bool m_is_handle_table_initialized{};
+ bool m_is_initialized{};
- std::atomic<u16> num_running_threads{};
+ std::atomic<u16> m_num_running_threads{};
- std::array<KThread*, Core::Hardware::NUM_CPU_CORES> running_threads{};
- std::array<u64, Core::Hardware::NUM_CPU_CORES> running_thread_idle_counts{};
- std::array<KThread*, Core::Hardware::NUM_CPU_CORES> pinned_threads{};
- std::array<DebugWatchpoint, Core::Hardware::NUM_WATCHPOINTS> watchpoints{};
- std::map<VAddr, u64> debug_page_refcounts;
+ std::array<KThread*, Core::Hardware::NUM_CPU_CORES> m_running_threads{};
+ std::array<u64, Core::Hardware::NUM_CPU_CORES> m_running_thread_idle_counts{};
+ std::array<KThread*, Core::Hardware::NUM_CPU_CORES> m_pinned_threads{};
+ std::array<DebugWatchpoint, Core::Hardware::NUM_WATCHPOINTS> m_watchpoints{};
+ std::map<KProcessAddress, u64> m_debug_page_refcounts;
- KThread* exception_thread{};
+ KThread* m_exception_thread{};
- KLightLock state_lock;
- KLightLock list_lock;
+ KLightLock m_state_lock;
+ KLightLock m_list_lock;
using TLPTree =
Common::IntrusiveRedBlackTreeBaseTraits<KThreadLocalPage>::TreeType<KThreadLocalPage>;
using TLPIterator = TLPTree::iterator;
- TLPTree fully_used_tlp_tree;
- TLPTree partially_used_tlp_tree;
+ TLPTree m_fully_used_tlp_tree;
+ TLPTree m_partially_used_tlp_tree;
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_readable_event.cpp b/src/core/hle/kernel/k_readable_event.cpp
index 5c942d47c..c30662666 100644
--- a/src/core/hle/kernel/k_readable_event.cpp
+++ b/src/core/hle/kernel/k_readable_event.cpp
@@ -11,7 +11,7 @@
namespace Kernel {
-KReadableEvent::KReadableEvent(KernelCore& kernel_) : KSynchronizationObject{kernel_} {}
+KReadableEvent::KReadableEvent(KernelCore& kernel) : KSynchronizationObject{kernel} {}
KReadableEvent::~KReadableEvent() = default;
@@ -25,7 +25,7 @@ void KReadableEvent::Initialize(KEvent* parent) {
}
bool KReadableEvent::IsSignaled() const {
- ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(kernel));
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
return m_is_signaled;
}
@@ -33,7 +33,7 @@ bool KReadableEvent::IsSignaled() const {
void KReadableEvent::Destroy() {
if (m_parent) {
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
m_parent->OnReadableEventDestroyed();
}
m_parent->Close();
@@ -41,31 +41,29 @@ void KReadableEvent::Destroy() {
}
Result KReadableEvent::Signal() {
- KScopedSchedulerLock lk{kernel};
+ KScopedSchedulerLock lk{m_kernel};
if (!m_is_signaled) {
m_is_signaled = true;
this->NotifyAvailable();
}
- return ResultSuccess;
+ R_SUCCEED();
}
Result KReadableEvent::Clear() {
this->Reset();
- return ResultSuccess;
+ R_SUCCEED();
}
Result KReadableEvent::Reset() {
- KScopedSchedulerLock lk{kernel};
+ KScopedSchedulerLock lk{m_kernel};
- if (!m_is_signaled) {
- return ResultInvalidState;
- }
+ R_UNLESS(m_is_signaled, ResultInvalidState);
m_is_signaled = false;
- return ResultSuccess;
+ R_SUCCEED();
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_readable_event.h b/src/core/hle/kernel/k_readable_event.h
index 743f96bf5..d2ec36323 100644
--- a/src/core/hle/kernel/k_readable_event.h
+++ b/src/core/hle/kernel/k_readable_event.h
@@ -17,7 +17,7 @@ class KReadableEvent : public KSynchronizationObject {
KERNEL_AUTOOBJECT_TRAITS(KReadableEvent, KSynchronizationObject);
public:
- explicit KReadableEvent(KernelCore& kernel_);
+ explicit KReadableEvent(KernelCore& kernel);
~KReadableEvent() override;
void Initialize(KEvent* parent);
diff --git a/src/core/hle/kernel/k_resource_limit.cpp b/src/core/hle/kernel/k_resource_limit.cpp
index b9d22b414..fcee26a29 100644
--- a/src/core/hle/kernel/k_resource_limit.cpp
+++ b/src/core/hle/kernel/k_resource_limit.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/assert.h"
+#include "common/overflow.h"
#include "core/core.h"
#include "core/core_timing.h"
#include "core/hle/kernel/k_resource_limit.h"
@@ -10,12 +11,12 @@
namespace Kernel {
constexpr s64 DefaultTimeout = 10000000000; // 10 seconds
-KResourceLimit::KResourceLimit(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_}, lock{kernel_}, cond_var{kernel_} {}
+KResourceLimit::KResourceLimit(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel}, m_lock{m_kernel}, m_cond_var{m_kernel} {}
KResourceLimit::~KResourceLimit() = default;
-void KResourceLimit::Initialize(const Core::Timing::CoreTiming* core_timing_) {
- core_timing = core_timing_;
+void KResourceLimit::Initialize(const Core::Timing::CoreTiming* core_timing) {
+ m_core_timing = core_timing;
}
void KResourceLimit::Finalize() {}
@@ -24,11 +25,11 @@ s64 KResourceLimit::GetLimitValue(LimitableResource which) const {
const auto index = static_cast<std::size_t>(which);
s64 value{};
{
- KScopedLightLock lk{lock};
- value = limit_values[index];
+ KScopedLightLock lk{m_lock};
+ value = m_limit_values[index];
ASSERT(value >= 0);
- ASSERT(current_values[index] <= limit_values[index]);
- ASSERT(current_hints[index] <= current_values[index]);
+ ASSERT(m_current_values[index] <= m_limit_values[index]);
+ ASSERT(m_current_hints[index] <= m_current_values[index]);
}
return value;
}
@@ -37,11 +38,11 @@ s64 KResourceLimit::GetCurrentValue(LimitableResource which) const {
const auto index = static_cast<std::size_t>(which);
s64 value{};
{
- KScopedLightLock lk{lock};
- value = current_values[index];
+ KScopedLightLock lk{m_lock};
+ value = m_current_values[index];
ASSERT(value >= 0);
- ASSERT(current_values[index] <= limit_values[index]);
- ASSERT(current_hints[index] <= current_values[index]);
+ ASSERT(m_current_values[index] <= m_limit_values[index]);
+ ASSERT(m_current_hints[index] <= m_current_values[index]);
}
return value;
}
@@ -50,11 +51,11 @@ s64 KResourceLimit::GetPeakValue(LimitableResource which) const {
const auto index = static_cast<std::size_t>(which);
s64 value{};
{
- KScopedLightLock lk{lock};
- value = peak_values[index];
+ KScopedLightLock lk{m_lock};
+ value = m_peak_values[index];
ASSERT(value >= 0);
- ASSERT(current_values[index] <= limit_values[index]);
- ASSERT(current_hints[index] <= current_values[index]);
+ ASSERT(m_current_values[index] <= m_limit_values[index]);
+ ASSERT(m_current_hints[index] <= m_current_values[index]);
}
return value;
}
@@ -63,11 +64,11 @@ s64 KResourceLimit::GetFreeValue(LimitableResource which) const {
const auto index = static_cast<std::size_t>(which);
s64 value{};
{
- KScopedLightLock lk(lock);
- ASSERT(current_values[index] >= 0);
- ASSERT(current_values[index] <= limit_values[index]);
- ASSERT(current_hints[index] <= current_values[index]);
- value = limit_values[index] - current_values[index];
+ KScopedLightLock lk(m_lock);
+ ASSERT(m_current_values[index] >= 0);
+ ASSERT(m_current_values[index] <= m_limit_values[index]);
+ ASSERT(m_current_hints[index] <= m_current_values[index]);
+ value = m_limit_values[index] - m_current_values[index];
}
return value;
@@ -75,51 +76,51 @@ s64 KResourceLimit::GetFreeValue(LimitableResource which) const {
Result KResourceLimit::SetLimitValue(LimitableResource which, s64 value) {
const auto index = static_cast<std::size_t>(which);
- KScopedLightLock lk(lock);
- R_UNLESS(current_values[index] <= value, ResultInvalidState);
+ KScopedLightLock lk(m_lock);
+ R_UNLESS(m_current_values[index] <= value, ResultInvalidState);
- limit_values[index] = value;
- peak_values[index] = current_values[index];
+ m_limit_values[index] = value;
+ m_peak_values[index] = m_current_values[index];
- return ResultSuccess;
+ R_SUCCEED();
}
bool KResourceLimit::Reserve(LimitableResource which, s64 value) {
- return Reserve(which, value, core_timing->GetGlobalTimeNs().count() + DefaultTimeout);
+ return Reserve(which, value, m_core_timing->GetGlobalTimeNs().count() + DefaultTimeout);
}
bool KResourceLimit::Reserve(LimitableResource which, s64 value, s64 timeout) {
ASSERT(value >= 0);
const auto index = static_cast<std::size_t>(which);
- KScopedLightLock lk(lock);
+ KScopedLightLock lk(m_lock);
- ASSERT(current_hints[index] <= current_values[index]);
- if (current_hints[index] >= limit_values[index]) {
+ ASSERT(m_current_hints[index] <= m_current_values[index]);
+ if (m_current_hints[index] >= m_limit_values[index]) {
return false;
}
// Loop until we reserve or run out of time.
while (true) {
- ASSERT(current_values[index] <= limit_values[index]);
- ASSERT(current_hints[index] <= current_values[index]);
+ ASSERT(m_current_values[index] <= m_limit_values[index]);
+ ASSERT(m_current_hints[index] <= m_current_values[index]);
// If we would overflow, don't allow to succeed.
- if (current_values[index] + value <= current_values[index]) {
+ if (Common::WrappingAdd(m_current_values[index], value) <= m_current_values[index]) {
break;
}
- if (current_values[index] + value <= limit_values[index]) {
- current_values[index] += value;
- current_hints[index] += value;
- peak_values[index] = std::max(peak_values[index], current_values[index]);
+ if (m_current_values[index] + value <= m_limit_values[index]) {
+ m_current_values[index] += value;
+ m_current_hints[index] += value;
+ m_peak_values[index] = std::max(m_peak_values[index], m_current_values[index]);
return true;
}
- if (current_hints[index] + value <= limit_values[index] &&
- (timeout < 0 || core_timing->GetGlobalTimeNs().count() < timeout)) {
- waiter_count++;
- cond_var.Wait(&lock, timeout, false);
- waiter_count--;
+ if (m_current_hints[index] + value <= m_limit_values[index] &&
+ (timeout < 0 || m_core_timing->GetGlobalTimeNs().count() < timeout)) {
+ m_waiter_count++;
+ m_cond_var.Wait(std::addressof(m_lock), timeout, false);
+ m_waiter_count--;
} else {
break;
}
@@ -137,23 +138,23 @@ void KResourceLimit::Release(LimitableResource which, s64 value, s64 hint) {
ASSERT(hint >= 0);
const auto index = static_cast<std::size_t>(which);
- KScopedLightLock lk(lock);
- ASSERT(current_values[index] <= limit_values[index]);
- ASSERT(current_hints[index] <= current_values[index]);
- ASSERT(value <= current_values[index]);
- ASSERT(hint <= current_hints[index]);
+ KScopedLightLock lk(m_lock);
+ ASSERT(m_current_values[index] <= m_limit_values[index]);
+ ASSERT(m_current_hints[index] <= m_current_values[index]);
+ ASSERT(value <= m_current_values[index]);
+ ASSERT(hint <= m_current_hints[index]);
- current_values[index] -= value;
- current_hints[index] -= hint;
+ m_current_values[index] -= value;
+ m_current_hints[index] -= hint;
- if (waiter_count != 0) {
- cond_var.Broadcast();
+ if (m_waiter_count != 0) {
+ m_cond_var.Broadcast();
}
}
KResourceLimit* CreateResourceLimitForProcess(Core::System& system, s64 physical_memory_size) {
auto* resource_limit = KResourceLimit::Create(system.Kernel());
- resource_limit->Initialize(&system.CoreTiming());
+ resource_limit->Initialize(std::addressof(system.CoreTiming()));
// Initialize default resource limit values.
// TODO(bunnei): These values are the system defaults, the limits for service processes are
diff --git a/src/core/hle/kernel/k_resource_limit.h b/src/core/hle/kernel/k_resource_limit.h
index 2573d1b7c..15e69af56 100644
--- a/src/core/hle/kernel/k_resource_limit.h
+++ b/src/core/hle/kernel/k_resource_limit.h
@@ -28,10 +28,10 @@ class KResourceLimit final
KERNEL_AUTOOBJECT_TRAITS(KResourceLimit, KAutoObject);
public:
- explicit KResourceLimit(KernelCore& kernel_);
+ explicit KResourceLimit(KernelCore& kernel);
~KResourceLimit() override;
- void Initialize(const Core::Timing::CoreTiming* core_timing_);
+ void Initialize(const Core::Timing::CoreTiming* core_timing);
void Finalize() override;
s64 GetLimitValue(LimitableResource which) const;
@@ -46,18 +46,18 @@ public:
void Release(LimitableResource which, s64 value);
void Release(LimitableResource which, s64 value, s64 hint);
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
private:
using ResourceArray = std::array<s64, static_cast<std::size_t>(LimitableResource::Count)>;
- ResourceArray limit_values{};
- ResourceArray current_values{};
- ResourceArray current_hints{};
- ResourceArray peak_values{};
- mutable KLightLock lock;
- s32 waiter_count{};
- KLightConditionVariable cond_var;
- const Core::Timing::CoreTiming* core_timing{};
+ ResourceArray m_limit_values{};
+ ResourceArray m_current_values{};
+ ResourceArray m_current_hints{};
+ ResourceArray m_peak_values{};
+ mutable KLightLock m_lock;
+ s32 m_waiter_count{};
+ KLightConditionVariable m_cond_var;
+ const Core::Timing::CoreTiming* m_core_timing{};
};
KResourceLimit* CreateResourceLimitForProcess(Core::System& system, s64 physical_memory_size);
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp
index d6676904b..75ce5a23c 100644
--- a/src/core/hle/kernel/k_scheduler.cpp
+++ b/src/core/hle/kernel/k_scheduler.cpp
@@ -27,7 +27,7 @@ static void IncrementScheduledCount(Kernel::KThread* thread) {
}
}
-KScheduler::KScheduler(KernelCore& kernel_) : kernel{kernel_} {
+KScheduler::KScheduler(KernelCore& kernel) : m_kernel{kernel} {
m_switch_fiber = std::make_shared<Common::Fiber>([this] {
while (true) {
ScheduleImplFiber();
@@ -47,7 +47,7 @@ void KScheduler::SetInterruptTaskRunnable() {
void KScheduler::RequestScheduleOnInterrupt() {
m_state.needs_scheduling = true;
- if (CanSchedule(kernel)) {
+ if (CanSchedule(m_kernel)) {
ScheduleOnInterrupt();
}
}
@@ -97,50 +97,50 @@ u64 KScheduler::UpdateHighestPriorityThreads(KernelCore& kernel) {
}
void KScheduler::Schedule() {
- ASSERT(GetCurrentThread(kernel).GetDisableDispatchCount() == 1);
- ASSERT(m_core_id == GetCurrentCoreId(kernel));
+ ASSERT(GetCurrentThread(m_kernel).GetDisableDispatchCount() == 1);
+ ASSERT(m_core_id == GetCurrentCoreId(m_kernel));
ScheduleImpl();
}
void KScheduler::ScheduleOnInterrupt() {
- GetCurrentThread(kernel).DisableDispatch();
+ GetCurrentThread(m_kernel).DisableDispatch();
Schedule();
- GetCurrentThread(kernel).EnableDispatch();
+ GetCurrentThread(m_kernel).EnableDispatch();
}
void KScheduler::PreemptSingleCore() {
- GetCurrentThread(kernel).DisableDispatch();
+ GetCurrentThread(m_kernel).DisableDispatch();
- auto* thread = GetCurrentThreadPointer(kernel);
- auto& previous_scheduler = kernel.Scheduler(thread->GetCurrentCore());
+ auto* thread = GetCurrentThreadPointer(m_kernel);
+ auto& previous_scheduler = m_kernel.Scheduler(thread->GetCurrentCore());
previous_scheduler.Unload(thread);
Common::Fiber::YieldTo(thread->GetHostContext(), *m_switch_fiber);
- GetCurrentThread(kernel).EnableDispatch();
+ GetCurrentThread(m_kernel).EnableDispatch();
}
void KScheduler::RescheduleCurrentCore() {
- ASSERT(!kernel.IsPhantomModeForSingleCore());
- ASSERT(GetCurrentThread(kernel).GetDisableDispatchCount() == 1);
+ ASSERT(!m_kernel.IsPhantomModeForSingleCore());
+ ASSERT(GetCurrentThread(m_kernel).GetDisableDispatchCount() == 1);
- GetCurrentThread(kernel).EnableDispatch();
+ GetCurrentThread(m_kernel).EnableDispatch();
if (m_state.needs_scheduling.load()) {
// Disable interrupts, and then check again if rescheduling is needed.
// KScopedInterruptDisable intr_disable;
- kernel.CurrentScheduler()->RescheduleCurrentCoreImpl();
+ m_kernel.CurrentScheduler()->RescheduleCurrentCoreImpl();
}
}
void KScheduler::RescheduleCurrentCoreImpl() {
// Check that scheduling is needed.
if (m_state.needs_scheduling.load()) [[likely]] {
- GetCurrentThread(kernel).DisableDispatch();
+ GetCurrentThread(m_kernel).DisableDispatch();
Schedule();
- GetCurrentThread(kernel).EnableDispatch();
+ GetCurrentThread(m_kernel).EnableDispatch();
}
}
@@ -149,18 +149,18 @@ void KScheduler::Initialize(KThread* main_thread, KThread* idle_thread, s32 core
m_core_id = core_id;
m_idle_thread = idle_thread;
// m_state.idle_thread_stack = m_idle_thread->GetStackTop();
- // m_state.interrupt_task_manager = &kernel.GetInterruptTaskManager();
+ // m_state.interrupt_task_manager = std::addressof(kernel.GetInterruptTaskManager());
// Insert the main thread into the priority queue.
// {
- // KScopedSchedulerLock lk{kernel};
- // GetPriorityQueue(kernel).PushBack(GetCurrentThreadPointer(kernel));
- // SetSchedulerUpdateNeeded(kernel);
+ // KScopedSchedulerLock lk{m_kernel};
+ // GetPriorityQueue(m_kernel).PushBack(GetCurrentThreadPointer(m_kernel));
+ // SetSchedulerUpdateNeeded(m_kernel);
// }
// Bind interrupt handler.
// kernel.GetInterruptManager().BindHandler(
- // GetSchedulerInterruptHandler(kernel), KInterruptName::Scheduler, m_core_id,
+ // GetSchedulerInterruptHandler(m_kernel), KInterruptName::Scheduler, m_core_id,
// KInterruptController::PriorityLevel::Scheduler, false, false);
// Set the current thread.
@@ -168,7 +168,7 @@ void KScheduler::Initialize(KThread* main_thread, KThread* idle_thread, s32 core
}
void KScheduler::Activate() {
- ASSERT(GetCurrentThread(kernel).GetDisableDispatchCount() == 1);
+ ASSERT(GetCurrentThread(m_kernel).GetDisableDispatchCount() == 1);
// m_state.should_count_idle = KTargetSystem::IsDebugMode();
m_is_active = true;
@@ -176,7 +176,7 @@ void KScheduler::Activate() {
}
void KScheduler::OnThreadStart() {
- GetCurrentThread(kernel).EnableDispatch();
+ GetCurrentThread(m_kernel).EnableDispatch();
}
u64 KScheduler::UpdateHighestPriorityThread(KThread* highest_thread) {
@@ -184,7 +184,8 @@ u64 KScheduler::UpdateHighestPriorityThread(KThread* highest_thread) {
prev_highest_thread != highest_thread) [[likely]] {
if (prev_highest_thread != nullptr) [[likely]] {
IncrementScheduledCount(prev_highest_thread);
- prev_highest_thread->SetLastScheduledTick(kernel.System().CoreTiming().GetCPUTicks());
+ prev_highest_thread->SetLastScheduledTick(
+ m_kernel.System().CoreTiming().GetClockTicks());
}
if (m_state.should_count_idle) {
if (highest_thread != nullptr) [[likely]] {
@@ -328,8 +329,8 @@ u64 KScheduler::UpdateHighestPriorityThreadsImpl(KernelCore& kernel) {
}
void KScheduler::SwitchThread(KThread* next_thread) {
- KProcess* const cur_process = kernel.CurrentProcess();
- KThread* const cur_thread = GetCurrentThreadPointer(kernel);
+ KProcess* const cur_process = GetCurrentProcessPointer(m_kernel);
+ KThread* const cur_thread = GetCurrentThreadPointer(m_kernel);
// We never want to schedule a null thread, so use the idle thread if we don't have a next.
if (next_thread == nullptr) {
@@ -351,7 +352,7 @@ void KScheduler::SwitchThread(KThread* next_thread) {
// Update the CPU time tracking variables.
const s64 prev_tick = m_last_context_switch_time;
- const s64 cur_tick = kernel.System().CoreTiming().GetCPUTicks();
+ const s64 cur_tick = m_kernel.System().CoreTiming().GetClockTicks();
const s64 tick_diff = cur_tick - prev_tick;
cur_thread->AddCpuTime(m_core_id, tick_diff);
if (cur_process != nullptr) {
@@ -375,7 +376,7 @@ void KScheduler::SwitchThread(KThread* next_thread) {
// }
// Set the new thread.
- SetCurrentThread(kernel, next_thread);
+ SetCurrentThread(m_kernel, next_thread);
m_current_thread = next_thread;
// Set the new Thread Local region.
@@ -388,7 +389,7 @@ void KScheduler::ScheduleImpl() {
std::atomic_thread_fence(std::memory_order_seq_cst);
// Load the appropriate thread pointers for scheduling.
- KThread* const cur_thread{GetCurrentThreadPointer(kernel)};
+ KThread* const cur_thread{GetCurrentThreadPointer(m_kernel)};
KThread* highest_priority_thread{m_state.highest_priority_thread};
// Check whether there are runnable interrupt tasks.
@@ -411,7 +412,7 @@ void KScheduler::ScheduleImpl() {
m_switch_cur_thread = cur_thread;
m_switch_highest_priority_thread = highest_priority_thread;
m_switch_from_schedule = true;
- Common::Fiber::YieldTo(cur_thread->host_context, *m_switch_fiber);
+ Common::Fiber::YieldTo(cur_thread->m_host_context, *m_switch_fiber);
// Returning from ScheduleImpl occurs after this thread has been scheduled again.
}
@@ -450,7 +451,7 @@ void KScheduler::ScheduleImplFiber() {
// We want to try to lock the highest priority thread's context.
// Try to take it.
- while (!highest_priority_thread->context_guard.try_lock()) {
+ while (!highest_priority_thread->m_context_guard.try_lock()) {
// The highest priority thread's context is already locked.
// Check if we need scheduling. If we don't, we can retry directly.
if (m_state.needs_scheduling.load(std::memory_order_seq_cst)) {
@@ -468,7 +469,7 @@ void KScheduler::ScheduleImplFiber() {
if (m_state.needs_scheduling.load(std::memory_order_seq_cst)) {
// Our switch failed.
// We should unlock the thread context, and then retry.
- highest_priority_thread->context_guard.unlock();
+ highest_priority_thread->m_context_guard.unlock();
goto retry;
} else {
break;
@@ -489,30 +490,30 @@ void KScheduler::ScheduleImplFiber() {
Reload(highest_priority_thread);
// Reload the host thread.
- Common::Fiber::YieldTo(m_switch_fiber, *highest_priority_thread->host_context);
+ Common::Fiber::YieldTo(m_switch_fiber, *highest_priority_thread->m_host_context);
}
void KScheduler::Unload(KThread* thread) {
- auto& cpu_core = kernel.System().ArmInterface(m_core_id);
+ auto& cpu_core = m_kernel.System().ArmInterface(m_core_id);
cpu_core.SaveContext(thread->GetContext32());
cpu_core.SaveContext(thread->GetContext64());
// Save the TPIDR_EL0 system register in case it was modified.
- thread->SetTPIDR_EL0(cpu_core.GetTPIDR_EL0());
+ thread->SetTpidrEl0(cpu_core.GetTPIDR_EL0());
cpu_core.ClearExclusiveState();
// Check if the thread is terminated by checking the DPC flags.
if ((thread->GetStackParameters().dpc_flags & static_cast<u32>(DpcFlag::Terminated)) == 0) {
// The thread isn't terminated, so we want to unlock it.
- thread->context_guard.unlock();
+ thread->m_context_guard.unlock();
}
}
void KScheduler::Reload(KThread* thread) {
- auto& cpu_core = kernel.System().ArmInterface(m_core_id);
+ auto& cpu_core = m_kernel.System().ArmInterface(m_core_id);
cpu_core.LoadContext(thread->GetContext32());
cpu_core.LoadContext(thread->GetContext64());
- cpu_core.SetTlsAddress(thread->GetTLSAddress());
- cpu_core.SetTPIDR_EL0(thread->GetTPIDR_EL0());
+ cpu_core.SetTlsAddress(GetInteger(thread->GetTlsAddress()));
+ cpu_core.SetTPIDR_EL0(thread->GetTpidrEl0());
cpu_core.LoadWatchpointArray(thread->GetOwnerProcess()->GetWatchpoints());
cpu_core.ClearExclusiveState();
}
@@ -689,11 +690,11 @@ void KScheduler::RotateScheduledQueue(KernelCore& kernel, s32 core_id, s32 prior
void KScheduler::YieldWithoutCoreMigration(KernelCore& kernel) {
// Validate preconditions.
ASSERT(CanSchedule(kernel));
- ASSERT(kernel.CurrentProcess() != nullptr);
+ ASSERT(GetCurrentProcessPointer(kernel) != nullptr);
// Get the current thread and process.
KThread& cur_thread = GetCurrentThread(kernel);
- KProcess& cur_process = *kernel.CurrentProcess();
+ KProcess& cur_process = GetCurrentProcess(kernel);
// If the thread's yield count matches, there's nothing for us to do.
if (cur_thread.GetYieldScheduleCount() == cur_process.GetScheduledCount()) {
@@ -728,11 +729,11 @@ void KScheduler::YieldWithoutCoreMigration(KernelCore& kernel) {
void KScheduler::YieldWithCoreMigration(KernelCore& kernel) {
// Validate preconditions.
ASSERT(CanSchedule(kernel));
- ASSERT(kernel.CurrentProcess() != nullptr);
+ ASSERT(GetCurrentProcessPointer(kernel) != nullptr);
// Get the current thread and process.
KThread& cur_thread = GetCurrentThread(kernel);
- KProcess& cur_process = *kernel.CurrentProcess();
+ KProcess& cur_process = GetCurrentProcess(kernel);
// If the thread's yield count matches, there's nothing for us to do.
if (cur_thread.GetYieldScheduleCount() == cur_process.GetScheduledCount()) {
@@ -816,11 +817,11 @@ void KScheduler::YieldWithCoreMigration(KernelCore& kernel) {
void KScheduler::YieldToAnyThread(KernelCore& kernel) {
// Validate preconditions.
ASSERT(CanSchedule(kernel));
- ASSERT(kernel.CurrentProcess() != nullptr);
+ ASSERT(GetCurrentProcessPointer(kernel) != nullptr);
// Get the current thread and process.
KThread& cur_thread = GetCurrentThread(kernel);
- KProcess& cur_process = *kernel.CurrentProcess();
+ KProcess& cur_process = GetCurrentProcess(kernel);
// If the thread's yield count matches, there's nothing for us to do.
if (cur_thread.GetYieldScheduleCount() == cur_process.GetScheduledCount()) {
@@ -891,7 +892,7 @@ void KScheduler::YieldToAnyThread(KernelCore& kernel) {
void KScheduler::RescheduleOtherCores(u64 cores_needing_scheduling) {
if (const u64 core_mask = cores_needing_scheduling & ~(1ULL << m_core_id); core_mask != 0) {
- RescheduleCores(kernel, core_mask);
+ RescheduleCores(m_kernel, core_mask);
}
}
diff --git a/src/core/hle/kernel/k_scheduler.h b/src/core/hle/kernel/k_scheduler.h
index 534321d8d..d85a0c040 100644
--- a/src/core/hle/kernel/k_scheduler.h
+++ b/src/core/hle/kernel/k_scheduler.h
@@ -80,17 +80,17 @@ public:
return GetCurrentThread(kernel).GetDisableDispatchCount() == 0;
}
static bool IsSchedulerLockedByCurrentThread(KernelCore& kernel) {
- return kernel.GlobalSchedulerContext().scheduler_lock.IsLockedByCurrentThread();
+ return kernel.GlobalSchedulerContext().m_scheduler_lock.IsLockedByCurrentThread();
}
static bool IsSchedulerUpdateNeeded(KernelCore& kernel) {
- return kernel.GlobalSchedulerContext().scheduler_update_needed;
+ return kernel.GlobalSchedulerContext().m_scheduler_update_needed;
}
static void SetSchedulerUpdateNeeded(KernelCore& kernel) {
- kernel.GlobalSchedulerContext().scheduler_update_needed = true;
+ kernel.GlobalSchedulerContext().m_scheduler_update_needed = true;
}
static void ClearSchedulerUpdateNeeded(KernelCore& kernel) {
- kernel.GlobalSchedulerContext().scheduler_update_needed = false;
+ kernel.GlobalSchedulerContext().m_scheduler_update_needed = false;
}
static void DisableScheduling(KernelCore& kernel);
@@ -115,7 +115,7 @@ public:
private:
// Static private API.
static KSchedulerPriorityQueue& GetPriorityQueue(KernelCore& kernel) {
- return kernel.GlobalSchedulerContext().priority_queue;
+ return kernel.GlobalSchedulerContext().m_priority_queue;
}
static u64 UpdateHighestPriorityThreadsImpl(KernelCore& kernel);
@@ -149,7 +149,7 @@ private:
KInterruptTaskManager* interrupt_task_manager{nullptr};
};
- KernelCore& kernel;
+ KernelCore& m_kernel;
SchedulingState m_state;
bool m_is_active{false};
s32 m_core_id{0};
@@ -166,7 +166,7 @@ private:
class KScopedSchedulerLock : public KScopedLock<KScheduler::LockType> {
public:
explicit KScopedSchedulerLock(KernelCore& kernel)
- : KScopedLock(kernel.GlobalSchedulerContext().scheduler_lock) {}
+ : KScopedLock(kernel.GlobalSchedulerContext().m_scheduler_lock) {}
~KScopedSchedulerLock() = default;
};
diff --git a/src/core/hle/kernel/k_scheduler_lock.h b/src/core/hle/kernel/k_scheduler_lock.h
index 129d60472..caa1404f1 100644
--- a/src/core/hle/kernel/k_scheduler_lock.h
+++ b/src/core/hle/kernel/k_scheduler_lock.h
@@ -14,73 +14,67 @@
namespace Kernel {
class KernelCore;
+class GlobalSchedulerContext;
template <typename SchedulerType>
class KAbstractSchedulerLock {
public:
- explicit KAbstractSchedulerLock(KernelCore& kernel_) : kernel{kernel_} {}
+ explicit KAbstractSchedulerLock(KernelCore& kernel) : m_kernel{kernel} {}
bool IsLockedByCurrentThread() const {
- return owner_thread == GetCurrentThreadPointer(kernel);
+ return m_owner_thread == GetCurrentThreadPointer(m_kernel);
}
void Lock() {
- // If we are shutting down the kernel, none of this is relevant anymore.
- if (kernel.IsShuttingDown()) {
- return;
- }
-
- if (IsLockedByCurrentThread()) {
- // If we already own the lock, we can just increment the count.
- ASSERT(lock_count > 0);
- lock_count++;
+ if (this->IsLockedByCurrentThread()) {
+ // If we already own the lock, the lock count should be > 0.
+ // For debug, ensure this is true.
+ ASSERT(m_lock_count > 0);
} else {
// Otherwise, we want to disable scheduling and acquire the spinlock.
- SchedulerType::DisableScheduling(kernel);
- spin_lock.Lock();
+ SchedulerType::DisableScheduling(m_kernel);
+ m_spin_lock.Lock();
- // For debug, ensure that our state is valid.
- ASSERT(lock_count == 0);
- ASSERT(owner_thread == nullptr);
+ ASSERT(m_lock_count == 0);
+ ASSERT(m_owner_thread == nullptr);
- // Increment count, take ownership.
- lock_count = 1;
- owner_thread = GetCurrentThreadPointer(kernel);
+ // Take ownership of the lock.
+ m_owner_thread = GetCurrentThreadPointer(m_kernel);
}
+
+ // Increment the lock count.
+ m_lock_count++;
}
void Unlock() {
- // If we are shutting down the kernel, none of this is relevant anymore.
- if (kernel.IsShuttingDown()) {
- return;
- }
-
- ASSERT(IsLockedByCurrentThread());
- ASSERT(lock_count > 0);
+ ASSERT(this->IsLockedByCurrentThread());
+ ASSERT(m_lock_count > 0);
// Release an instance of the lock.
- if ((--lock_count) == 0) {
+ if ((--m_lock_count) == 0) {
// Perform a memory barrier here.
std::atomic_thread_fence(std::memory_order_seq_cst);
// We're no longer going to hold the lock. Take note of what cores need scheduling.
const u64 cores_needing_scheduling =
- SchedulerType::UpdateHighestPriorityThreads(kernel);
+ SchedulerType::UpdateHighestPriorityThreads(m_kernel);
// Note that we no longer hold the lock, and unlock the spinlock.
- owner_thread = nullptr;
- spin_lock.Unlock();
+ m_owner_thread = nullptr;
+ m_spin_lock.Unlock();
// Enable scheduling, and perform a rescheduling operation.
- SchedulerType::EnableScheduling(kernel, cores_needing_scheduling);
+ SchedulerType::EnableScheduling(m_kernel, cores_needing_scheduling);
}
}
private:
- KernelCore& kernel;
- KAlignedSpinLock spin_lock{};
- s32 lock_count{};
- std::atomic<KThread*> owner_thread{};
+ friend class GlobalSchedulerContext;
+
+ KernelCore& m_kernel;
+ KAlignedSpinLock m_spin_lock{};
+ s32 m_lock_count{};
+ std::atomic<KThread*> m_owner_thread{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_scoped_lock.h b/src/core/hle/kernel/k_scoped_lock.h
index 857e21156..629a7d20d 100644
--- a/src/core/hle/kernel/k_scoped_lock.h
+++ b/src/core/hle/kernel/k_scoped_lock.h
@@ -4,27 +4,29 @@
#pragma once
#include <concepts>
+#include <memory>
#include <type_traits>
namespace Kernel {
template <typename T>
-concept KLockable = !std::is_reference_v<T> && requires(T & t) {
- { t.Lock() } -> std::same_as<void>;
- { t.Unlock() } -> std::same_as<void>;
-};
+concept KLockable = !
+std::is_reference_v<T>&& requires(T& t) {
+ { t.Lock() } -> std::same_as<void>;
+ { t.Unlock() } -> std::same_as<void>;
+ };
template <typename T>
-requires KLockable<T>
-class [[nodiscard]] KScopedLock {
+ requires KLockable<T>
+class KScopedLock {
public:
- explicit KScopedLock(T* l) : lock_ptr(l) {
- this->lock_ptr->Lock();
+ explicit KScopedLock(T* l) : m_lock(*l) {}
+ explicit KScopedLock(T& l) : m_lock(l) {
+ m_lock.Lock();
}
- explicit KScopedLock(T& l) : KScopedLock(std::addressof(l)) {}
~KScopedLock() {
- this->lock_ptr->Unlock();
+ m_lock.Unlock();
}
KScopedLock(const KScopedLock&) = delete;
@@ -34,7 +36,7 @@ public:
KScopedLock& operator=(KScopedLock&&) = delete;
private:
- T* lock_ptr;
+ T& m_lock;
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_scoped_resource_reservation.h b/src/core/hle/kernel/k_scoped_resource_reservation.h
index 436bcf9fe..2cc464612 100644
--- a/src/core/hle/kernel/k_scoped_resource_reservation.h
+++ b/src/core/hle/kernel/k_scoped_resource_reservation.h
@@ -12,20 +12,20 @@ namespace Kernel {
class KScopedResourceReservation {
public:
explicit KScopedResourceReservation(KResourceLimit* l, LimitableResource r, s64 v, s64 timeout)
- : resource_limit(std::move(l)), value(v), resource(r) {
- if (resource_limit && value) {
- success = resource_limit->Reserve(resource, value, timeout);
+ : m_limit(l), m_value(v), m_resource(r) {
+ if (m_limit && m_value) {
+ m_succeeded = m_limit->Reserve(m_resource, m_value, timeout);
} else {
- success = true;
+ m_succeeded = true;
}
}
explicit KScopedResourceReservation(KResourceLimit* l, LimitableResource r, s64 v = 1)
- : resource_limit(std::move(l)), value(v), resource(r) {
- if (resource_limit && value) {
- success = resource_limit->Reserve(resource, value);
+ : m_limit(l), m_value(v), m_resource(r) {
+ if (m_limit && m_value) {
+ m_succeeded = m_limit->Reserve(m_resource, m_value);
} else {
- success = true;
+ m_succeeded = true;
}
}
@@ -36,26 +36,26 @@ public:
: KScopedResourceReservation(p->GetResourceLimit(), r, v) {}
~KScopedResourceReservation() noexcept {
- if (resource_limit && value && success) {
- // resource was not committed, release the reservation.
- resource_limit->Release(resource, value);
+ if (m_limit && m_value && m_succeeded) {
+ // Resource was not committed, release the reservation.
+ m_limit->Release(m_resource, m_value);
}
}
/// Commit the resource reservation, destruction of this object does not release the resource
void Commit() {
- resource_limit = nullptr;
+ m_limit = nullptr;
}
- [[nodiscard]] bool Succeeded() const {
- return success;
+ bool Succeeded() const {
+ return m_succeeded;
}
private:
- KResourceLimit* resource_limit{};
- s64 value;
- LimitableResource resource;
- bool success;
+ KResourceLimit* m_limit{};
+ s64 m_value{};
+ LimitableResource m_resource{};
+ bool m_succeeded{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h b/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
index 76db65a4d..c485022f5 100644
--- a/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
+++ b/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
@@ -11,32 +11,39 @@
namespace Kernel {
-class [[nodiscard]] KScopedSchedulerLockAndSleep {
+class KScopedSchedulerLockAndSleep {
public:
- explicit KScopedSchedulerLockAndSleep(KernelCore& kernel_, KThread* t, s64 timeout)
- : kernel(kernel_), thread(t), timeout_tick(timeout) {
+ explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, KHardwareTimer** out_timer,
+ KThread* thread, s64 timeout_tick)
+ : m_kernel(kernel), m_timeout_tick(timeout_tick), m_thread(thread), m_timer() {
// Lock the scheduler.
- kernel.GlobalSchedulerContext().scheduler_lock.Lock();
+ kernel.GlobalSchedulerContext().m_scheduler_lock.Lock();
+
+ // Set our timer only if the time is positive.
+ m_timer = (timeout_tick > 0) ? std::addressof(kernel.HardwareTimer()) : nullptr;
+
+ *out_timer = m_timer;
}
~KScopedSchedulerLockAndSleep() {
// Register the sleep.
- if (timeout_tick > 0) {
- kernel.HardwareTimer().RegisterTask(thread, timeout_tick);
+ if (m_timeout_tick > 0) {
+ m_timer->RegisterTask(m_thread, m_timeout_tick);
}
// Unlock the scheduler.
- kernel.GlobalSchedulerContext().scheduler_lock.Unlock();
+ m_kernel.GlobalSchedulerContext().m_scheduler_lock.Unlock();
}
void CancelSleep() {
- timeout_tick = 0;
+ m_timeout_tick = 0;
}
private:
- KernelCore& kernel;
- KThread* thread{};
- s64 timeout_tick{};
+ KernelCore& m_kernel;
+ s64 m_timeout_tick{};
+ KThread* m_thread{};
+ KHardwareTimer* m_timer{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_server_port.cpp b/src/core/hle/kernel/k_server_port.cpp
index 16968ba97..a29d34bc1 100644
--- a/src/core/hle/kernel/k_server_port.cpp
+++ b/src/core/hle/kernel/k_server_port.cpp
@@ -12,13 +12,12 @@
namespace Kernel {
-KServerPort::KServerPort(KernelCore& kernel_) : KSynchronizationObject{kernel_} {}
+KServerPort::KServerPort(KernelCore& kernel) : KSynchronizationObject{kernel} {}
KServerPort::~KServerPort() = default;
-void KServerPort::Initialize(KPort* parent_port_, std::string&& name_) {
+void KServerPort::Initialize(KPort* parent) {
// Set member variables.
- parent = parent_port_;
- name = std::move(name_);
+ m_parent = parent;
}
bool KServerPort::IsLight() const {
@@ -36,10 +35,10 @@ void KServerPort::CleanupSessions() {
// Get the last session in the list
KServerSession* session = nullptr;
{
- KScopedSchedulerLock sl{kernel};
- if (!session_list.empty()) {
- session = std::addressof(session_list.front());
- session_list.pop_front();
+ KScopedSchedulerLock sl{m_kernel};
+ if (!m_session_list.empty()) {
+ session = std::addressof(m_session_list.front());
+ m_session_list.pop_front();
}
}
@@ -54,13 +53,13 @@ void KServerPort::CleanupSessions() {
void KServerPort::Destroy() {
// Note with our parent that we're closed.
- parent->OnServerClosed();
+ m_parent->OnServerClosed();
// Perform necessary cleanup of our session lists.
this->CleanupSessions();
// Close our reference to our parent.
- parent->Close();
+ m_parent->Close();
}
bool KServerPort::IsSignaled() const {
@@ -68,18 +67,18 @@ bool KServerPort::IsSignaled() const {
UNIMPLEMENTED();
return false;
} else {
- return !session_list.empty();
+ return !m_session_list.empty();
}
}
void KServerPort::EnqueueSession(KServerSession* session) {
ASSERT(!this->IsLight());
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Add the session to our queue.
- session_list.push_back(*session);
- if (session_list.size() == 1) {
+ m_session_list.push_back(*session);
+ if (m_session_list.size() == 1) {
this->NotifyAvailable();
}
}
@@ -87,15 +86,15 @@ void KServerPort::EnqueueSession(KServerSession* session) {
KServerSession* KServerPort::AcceptSession() {
ASSERT(!this->IsLight());
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Return the first session in the list.
- if (session_list.empty()) {
+ if (m_session_list.empty()) {
return nullptr;
}
- KServerSession* session = std::addressof(session_list.front());
- session_list.pop_front();
+ KServerSession* session = std::addressof(m_session_list.front());
+ m_session_list.pop_front();
return session;
}
diff --git a/src/core/hle/kernel/k_server_port.h b/src/core/hle/kernel/k_server_port.h
index 5fc7ee683..625280290 100644
--- a/src/core/hle/kernel/k_server_port.h
+++ b/src/core/hle/kernel/k_server_port.h
@@ -7,7 +7,7 @@
#include <string>
#include <utility>
-#include <boost/intrusive/list.hpp>
+#include "common/intrusive_list.h"
#include "core/hle/kernel/k_server_session.h"
#include "core/hle/kernel/k_synchronization_object.h"
@@ -22,17 +22,17 @@ class KServerPort final : public KSynchronizationObject {
KERNEL_AUTOOBJECT_TRAITS(KServerPort, KSynchronizationObject);
public:
- explicit KServerPort(KernelCore& kernel_);
+ explicit KServerPort(KernelCore& kernel);
~KServerPort() override;
- void Initialize(KPort* parent_port_, std::string&& name_);
+ void Initialize(KPort* parent);
- void EnqueueSession(KServerSession* pending_session);
+ void EnqueueSession(KServerSession* session);
KServerSession* AcceptSession();
const KPort* GetParent() const {
- return parent;
+ return m_parent;
}
bool IsLight() const;
@@ -42,12 +42,12 @@ public:
bool IsSignaled() const override;
private:
- using SessionList = boost::intrusive::list<KServerSession>;
+ using SessionList = Common::IntrusiveListBaseTraits<KServerSession>::ListType;
void CleanupSessions();
- SessionList session_list;
- KPort* parent{};
+ SessionList m_session_list{};
+ KPort* m_parent{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_server_session.cpp b/src/core/hle/kernel/k_server_session.cpp
index aa1941f01..c66aff501 100644
--- a/src/core/hle/kernel/k_server_session.cpp
+++ b/src/core/hle/kernel/k_server_session.cpp
@@ -10,8 +10,6 @@
#include "common/scope_exit.h"
#include "core/core.h"
#include "core/core_timing.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/kernel/k_client_port.h"
#include "core/hle/kernel/k_handle_table.h"
#include "core/hle/kernel/k_process.h"
@@ -22,29 +20,25 @@
#include "core/hle/kernel/k_thread.h"
#include "core/hle/kernel/k_thread_queue.h"
#include "core/hle/kernel/kernel.h"
+#include "core/hle/service/hle_ipc.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/memory.h"
namespace Kernel {
using ThreadQueueImplForKServerSessionRequest = KThreadQueue;
-KServerSession::KServerSession(KernelCore& kernel_)
- : KSynchronizationObject{kernel_}, m_lock{kernel_} {}
+KServerSession::KServerSession(KernelCore& kernel)
+ : KSynchronizationObject{kernel}, m_lock{m_kernel} {}
KServerSession::~KServerSession() = default;
-void KServerSession::Initialize(KSession* parent_session_, std::string&& name_) {
- // Set member variables.
- parent = parent_session_;
- name = std::move(name_);
-}
-
void KServerSession::Destroy() {
- parent->OnServerClosed();
+ m_parent->OnServerClosed();
this->CleanupRequests();
- parent->Close();
+ m_parent->Close();
}
void KServerSession::OnClientClosed() {
@@ -62,7 +56,7 @@ void KServerSession::OnClientClosed() {
// Get the next request.
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
if (m_current_request != nullptr && m_current_request != prev_request) {
// Set the request, open a reference as we process it.
@@ -121,7 +115,7 @@ void KServerSession::OnClientClosed() {
// // Get the process and page table.
// KProcess *client_process = thread->GetOwnerProcess();
- // auto &client_pt = client_process->GetPageTable();
+ // auto& client_pt = client_process->GetPageTable();
// // Reply to the request.
// ReplyAsyncError(client_process, request->GetAddress(), request->GetSize(),
@@ -141,10 +135,10 @@ void KServerSession::OnClientClosed() {
}
bool KServerSession::IsSignaled() const {
- ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(kernel));
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// If the client is closed, we're always signaled.
- if (parent->IsClientClosed()) {
+ if (m_parent->IsClientClosed()) {
return true;
}
@@ -154,17 +148,17 @@ bool KServerSession::IsSignaled() const {
Result KServerSession::OnRequest(KSessionRequest* request) {
// Create the wait queue.
- ThreadQueueImplForKServerSessionRequest wait_queue{kernel};
+ ThreadQueueImplForKServerSessionRequest wait_queue{m_kernel};
{
// Lock the scheduler.
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Ensure that we can handle new requests.
- R_UNLESS(!parent->IsServerClosed(), ResultSessionClosed);
+ R_UNLESS(!m_parent->IsServerClosed(), ResultSessionClosed);
// Check that we're not terminating.
- R_UNLESS(!GetCurrentThread(kernel).IsTerminationRequested(), ResultTerminationRequested);
+ R_UNLESS(!GetCurrentThread(m_kernel).IsTerminationRequested(), ResultTerminationRequested);
// Get whether we're empty.
const bool was_empty = m_request_list.empty();
@@ -182,11 +176,11 @@ Result KServerSession::OnRequest(KSessionRequest* request) {
R_SUCCEED_IF(request->GetEvent() != nullptr);
// This is a synchronous request, so we should wait for our request to complete.
- GetCurrentThread(kernel).SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::IPC);
- GetCurrentThread(kernel).BeginWait(&wait_queue);
+ GetCurrentThread(m_kernel).SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::IPC);
+ GetCurrentThread(m_kernel).BeginWait(std::addressof(wait_queue));
}
- return GetCurrentThread(kernel).GetWaitResult();
+ return GetCurrentThread(m_kernel).GetWaitResult();
}
Result KServerSession::SendReply(bool is_hle) {
@@ -196,7 +190,7 @@ Result KServerSession::SendReply(bool is_hle) {
// Get the request.
KSessionRequest* request;
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Get the current request.
request = m_current_request;
@@ -219,7 +213,7 @@ Result KServerSession::SendReply(bool is_hle) {
KEvent* event = request->GetEvent();
// Check whether we're closed.
- const bool closed = (client_thread == nullptr || parent->IsClientClosed());
+ const bool closed = (client_thread == nullptr || m_parent->IsClientClosed());
Result result = ResultSuccess;
if (!closed) {
@@ -228,11 +222,11 @@ Result KServerSession::SendReply(bool is_hle) {
// HLE servers write directly to a pointer to the thread command buffer. Therefore
// the reply has already been written in this case.
} else {
- Core::Memory::Memory& memory{kernel.System().Memory()};
- KThread* server_thread{GetCurrentThreadPointer(kernel)};
+ Core::Memory::Memory& memory{client_thread->GetOwnerProcess()->GetMemory()};
+ KThread* server_thread{GetCurrentThreadPointer(m_kernel)};
UNIMPLEMENTED_IF(server_thread->GetOwnerProcess() != client_thread->GetOwnerProcess());
- auto* src_msg_buffer = memory.GetPointer(server_thread->GetTLSAddress());
+ auto* src_msg_buffer = memory.GetPointer(server_thread->GetTlsAddress());
auto* dst_msg_buffer = memory.GetPointer(client_message);
std::memcpy(dst_msg_buffer, src_msg_buffer, client_buffer_size);
}
@@ -254,7 +248,7 @@ Result KServerSession::SendReply(bool is_hle) {
if (event != nullptr) {
// // Get the client process/page table.
// KProcess *client_process = client_thread->GetOwnerProcess();
- // KPageTable *client_page_table = &client_process->PageTable();
+ // KPageTable *client_page_table = std::addressof(client_process->PageTable());
// // If we need to, reply with an async error.
// if (R_FAILED(client_result)) {
@@ -270,7 +264,7 @@ Result KServerSession::SendReply(bool is_hle) {
event->Signal();
} else {
// End the client thread's wait.
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
if (!client_thread->IsTerminationRequested()) {
client_thread->EndWait(client_result);
@@ -278,11 +272,11 @@ Result KServerSession::SendReply(bool is_hle) {
}
}
- return result;
+ R_RETURN(result);
}
-Result KServerSession::ReceiveRequest(std::shared_ptr<HLERequestContext>* out_context,
- std::weak_ptr<SessionRequestManager> manager) {
+Result KServerSession::ReceiveRequest(std::shared_ptr<Service::HLERequestContext>* out_context,
+ std::weak_ptr<Service::SessionRequestManager> manager) {
// Lock the session.
KScopedLightLock lk{m_lock};
@@ -291,10 +285,10 @@ Result KServerSession::ReceiveRequest(std::shared_ptr<HLERequestContext>* out_co
KThread* client_thread;
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Ensure that we can service the request.
- R_UNLESS(!parent->IsClientClosed(), ResultSessionClosed);
+ R_UNLESS(!m_parent->IsClientClosed(), ResultSessionClosed);
// Ensure we aren't already servicing a request.
R_UNLESS(m_current_request == nullptr, ResultNotFound);
@@ -303,7 +297,7 @@ Result KServerSession::ReceiveRequest(std::shared_ptr<HLERequestContext>* out_co
R_UNLESS(!m_request_list.empty(), ResultNotFound);
// Pop the first request from the list.
- request = &m_request_list.front();
+ request = std::addressof(m_request_list.front());
m_request_list.pop_front();
// Get the thread for the request.
@@ -325,26 +319,27 @@ Result KServerSession::ReceiveRequest(std::shared_ptr<HLERequestContext>* out_co
// bool recv_list_broken = false;
// Receive the message.
- Core::Memory::Memory& memory{kernel.System().Memory()};
+ Core::Memory::Memory& memory{client_thread->GetOwnerProcess()->GetMemory()};
if (out_context != nullptr) {
// HLE request.
u32* cmd_buf{reinterpret_cast<u32*>(memory.GetPointer(client_message))};
- *out_context = std::make_shared<HLERequestContext>(kernel, memory, this, client_thread);
+ *out_context =
+ std::make_shared<Service::HLERequestContext>(m_kernel, memory, this, client_thread);
(*out_context)->SetSessionRequestManager(manager);
(*out_context)
->PopulateFromIncomingCommandBuffer(client_thread->GetOwnerProcess()->GetHandleTable(),
cmd_buf);
} else {
- KThread* server_thread{GetCurrentThreadPointer(kernel)};
+ KThread* server_thread{GetCurrentThreadPointer(m_kernel)};
UNIMPLEMENTED_IF(server_thread->GetOwnerProcess() != client_thread->GetOwnerProcess());
auto* src_msg_buffer = memory.GetPointer(client_message);
- auto* dst_msg_buffer = memory.GetPointer(server_thread->GetTLSAddress());
+ auto* dst_msg_buffer = memory.GetPointer(server_thread->GetTlsAddress());
std::memcpy(dst_msg_buffer, src_msg_buffer, client_buffer_size);
}
// We succeeded.
- return ResultSuccess;
+ R_SUCCEED();
}
void KServerSession::CleanupRequests() {
@@ -355,7 +350,7 @@ void KServerSession::CleanupRequests() {
// Get the next request.
KSessionRequest* request = nullptr;
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
if (m_current_request) {
// Choose the current request if we have one.
@@ -363,7 +358,7 @@ void KServerSession::CleanupRequests() {
m_current_request = nullptr;
} else if (!m_request_list.empty()) {
// Pop the request from the front of the list.
- request = &m_request_list.front();
+ request = std::addressof(m_request_list.front());
m_request_list.pop_front();
}
}
@@ -386,7 +381,8 @@ void KServerSession::CleanupRequests() {
// KProcess *client_process = (client_thread != nullptr) ?
// client_thread->GetOwnerProcess() : nullptr;
// KProcessPageTable *client_page_table = (client_process != nullptr) ?
- // &client_process->GetPageTable() : nullptr;
+ // std::addressof(client_process->GetPageTable())
+ // : nullptr;
// Cleanup the mappings.
// Result result = CleanupMap(request, server_process, client_page_table);
@@ -406,7 +402,7 @@ void KServerSession::CleanupRequests() {
event->Signal();
} else {
// End the client thread's wait.
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
if (!client_thread->IsTerminationRequested()) {
client_thread->EndWait(ResultSessionClosed);
diff --git a/src/core/hle/kernel/k_server_session.h b/src/core/hle/kernel/k_server_session.h
index 6e189af8b..403891919 100644
--- a/src/core/hle/kernel/k_server_session.h
+++ b/src/core/hle/kernel/k_server_session.h
@@ -8,42 +8,42 @@
#include <string>
#include <utility>
-#include <boost/intrusive/list.hpp>
+#include "common/intrusive_list.h"
-#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/kernel/k_light_lock.h"
#include "core/hle/kernel/k_session_request.h"
#include "core/hle/kernel/k_synchronization_object.h"
#include "core/hle/result.h"
+namespace Service {
+class HLERequestContext;
+class SessionRequestManager;
+} // namespace Service
+
namespace Kernel {
-class HLERequestContext;
class KernelCore;
class KSession;
-class SessionRequestManager;
class KThread;
class KServerSession final : public KSynchronizationObject,
- public boost::intrusive::list_base_hook<> {
+ public Common::IntrusiveListBaseNode<KServerSession> {
KERNEL_AUTOOBJECT_TRAITS(KServerSession, KSynchronizationObject);
friend class ServiceThread;
public:
- explicit KServerSession(KernelCore& kernel_);
+ explicit KServerSession(KernelCore& kernel);
~KServerSession() override;
void Destroy() override;
- void Initialize(KSession* parent_session_, std::string&& name_);
-
- KSession* GetParent() {
- return parent;
+ void Initialize(KSession* p) {
+ m_parent = p;
}
const KSession* GetParent() const {
- return parent;
+ return m_parent;
}
bool IsSignaled() const override;
@@ -52,8 +52,8 @@ public:
/// TODO: flesh these out to match the real kernel
Result OnRequest(KSessionRequest* request);
Result SendReply(bool is_hle = false);
- Result ReceiveRequest(std::shared_ptr<HLERequestContext>* out_context = nullptr,
- std::weak_ptr<SessionRequestManager> manager = {});
+ Result ReceiveRequest(std::shared_ptr<Service::HLERequestContext>* out_context = nullptr,
+ std::weak_ptr<Service::SessionRequestManager> manager = {});
Result SendReplyHLE() {
return SendReply(true);
@@ -64,10 +64,11 @@ private:
void CleanupRequests();
/// KSession that owns this KServerSession
- KSession* parent{};
+ KSession* m_parent{};
/// List of threads which are pending a reply.
- boost::intrusive::list<KSessionRequest> m_request_list;
+ using RequestList = Common::IntrusiveListBaseTraits<KSessionRequest>::ListType;
+ RequestList m_request_list{};
KSessionRequest* m_current_request{};
KLightLock m_lock;
diff --git a/src/core/hle/kernel/k_session.cpp b/src/core/hle/kernel/k_session.cpp
index b6f6fe9d9..44d7a8f02 100644
--- a/src/core/hle/kernel/k_session.cpp
+++ b/src/core/hle/kernel/k_session.cpp
@@ -9,68 +9,63 @@
namespace Kernel {
-KSession::KSession(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_}, server{kernel_}, client{kernel_} {}
+KSession::KSession(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel}, m_server{kernel}, m_client{kernel} {}
KSession::~KSession() = default;
-void KSession::Initialize(KClientPort* port_, const std::string& name_) {
+void KSession::Initialize(KClientPort* client_port, uintptr_t name) {
// Increment reference count.
// Because reference count is one on creation, this will result
// in a reference count of two. Thus, when both server and client are closed
// this object will be destroyed.
- Open();
+ this->Open();
// Create our sub sessions.
- KAutoObject::Create(std::addressof(server));
- KAutoObject::Create(std::addressof(client));
+ KAutoObject::Create(std::addressof(m_server));
+ KAutoObject::Create(std::addressof(m_client));
// Initialize our sub sessions.
- server.Initialize(this, name_ + ":Server");
- client.Initialize(this, name_ + ":Client");
+ m_server.Initialize(this);
+ m_client.Initialize(this);
// Set state and name.
- SetState(State::Normal);
- name = name_;
+ this->SetState(State::Normal);
+ m_name = name;
// Set our owner process.
- process = kernel.CurrentProcess();
- process->Open();
+ //! FIXME: this is the wrong process!
+ m_process = m_kernel.ApplicationProcess();
+ m_process->Open();
// Set our port.
- port = port_;
- if (port != nullptr) {
- port->Open();
+ m_port = client_port;
+ if (m_port != nullptr) {
+ m_port->Open();
}
// Mark initialized.
- initialized = true;
+ m_initialized = true;
}
void KSession::Finalize() {
- if (port == nullptr) {
- return;
+ if (m_port != nullptr) {
+ m_port->OnSessionFinalized();
+ m_port->Close();
}
-
- port->OnSessionFinalized();
- port->Close();
}
void KSession::OnServerClosed() {
- if (GetState() != State::Normal) {
- return;
+ if (this->GetState() == State::Normal) {
+ this->SetState(State::ServerClosed);
+ m_client.OnServerClosed();
}
-
- SetState(State::ServerClosed);
- client.OnServerClosed();
}
void KSession::OnClientClosed() {
- if (GetState() != State::Normal) {
- return;
+ if (this->GetState() == State::Normal) {
+ SetState(State::ClientClosed);
+ m_server.OnClientClosed();
}
-
- SetState(State::ClientClosed);
- server.OnClientClosed();
}
void KSession::PostDestroy(uintptr_t arg) {
diff --git a/src/core/hle/kernel/k_session.h b/src/core/hle/kernel/k_session.h
index 93e5e6f71..f69bab088 100644
--- a/src/core/hle/kernel/k_session.h
+++ b/src/core/hle/kernel/k_session.h
@@ -18,19 +18,18 @@ class KSession final : public KAutoObjectWithSlabHeapAndContainer<KSession, KAut
KERNEL_AUTOOBJECT_TRAITS(KSession, KAutoObject);
public:
- explicit KSession(KernelCore& kernel_);
+ explicit KSession(KernelCore& kernel);
~KSession() override;
- void Initialize(KClientPort* port_, const std::string& name_);
-
+ void Initialize(KClientPort* port, uintptr_t name);
void Finalize() override;
bool IsInitialized() const override {
- return initialized;
+ return m_initialized;
}
uintptr_t GetPostDestroyArgument() const override {
- return reinterpret_cast<uintptr_t>(process);
+ return reinterpret_cast<uintptr_t>(m_process);
}
static void PostDestroy(uintptr_t arg);
@@ -48,27 +47,23 @@ public:
}
KClientSession& GetClientSession() {
- return client;
+ return m_client;
}
KServerSession& GetServerSession() {
- return server;
+ return m_server;
}
const KClientSession& GetClientSession() const {
- return client;
+ return m_client;
}
const KServerSession& GetServerSession() const {
- return server;
+ return m_server;
}
const KClientPort* GetParent() const {
- return port;
- }
-
- KClientPort* GetParent() {
- return port;
+ return m_port;
}
private:
@@ -80,20 +75,20 @@ private:
};
void SetState(State state) {
- atomic_state = static_cast<u8>(state);
+ m_atomic_state = static_cast<u8>(state);
}
State GetState() const {
- return static_cast<State>(atomic_state.load(std::memory_order_relaxed));
+ return static_cast<State>(m_atomic_state.load());
}
- KServerSession server;
- KClientSession client;
- std::atomic<std::underlying_type_t<State>> atomic_state{
- static_cast<std::underlying_type_t<State>>(State::Invalid)};
- KClientPort* port{};
- KProcess* process{};
- bool initialized{};
+ KServerSession m_server;
+ KClientSession m_client;
+ KClientPort* m_port{};
+ uintptr_t m_name{};
+ KProcess* m_process{};
+ std::atomic<u8> m_atomic_state{static_cast<u8>(State::Invalid)};
+ bool m_initialized{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_session_request.cpp b/src/core/hle/kernel/k_session_request.cpp
index 520da6aa7..9a69b4ffc 100644
--- a/src/core/hle/kernel/k_session_request.cpp
+++ b/src/core/hle/kernel/k_session_request.cpp
@@ -6,54 +6,55 @@
namespace Kernel {
-Result KSessionRequest::SessionMappings::PushMap(VAddr client, VAddr server, size_t size,
- KMemoryState state, size_t index) {
+Result KSessionRequest::SessionMappings::PushMap(KProcessAddress client, KProcessAddress server,
+ size_t size, KMemoryState state, size_t index) {
// At most 15 buffers of each type (4-bit descriptor counts).
ASSERT(index < ((1ul << 4) - 1) * 3);
// Get the mapping.
Mapping* mapping;
if (index < NumStaticMappings) {
- mapping = &m_static_mappings[index];
+ mapping = std::addressof(m_static_mappings[index]);
} else {
// Allocate a page for the extra mappings.
if (m_mappings == nullptr) {
- KPageBuffer* page_buffer = KPageBuffer::Allocate(kernel);
+ KPageBuffer* page_buffer = KPageBuffer::Allocate(m_kernel);
R_UNLESS(page_buffer != nullptr, ResultOutOfMemory);
m_mappings = reinterpret_cast<Mapping*>(page_buffer);
}
- mapping = &m_mappings[index - NumStaticMappings];
+ mapping = std::addressof(m_mappings[index - NumStaticMappings]);
}
// Set the mapping.
mapping->Set(client, server, size, state);
- return ResultSuccess;
+ R_SUCCEED();
}
-Result KSessionRequest::SessionMappings::PushSend(VAddr client, VAddr server, size_t size,
- KMemoryState state) {
+Result KSessionRequest::SessionMappings::PushSend(KProcessAddress client, KProcessAddress server,
+ size_t size, KMemoryState state) {
ASSERT(m_num_recv == 0);
ASSERT(m_num_exch == 0);
- return this->PushMap(client, server, size, state, m_num_send++);
+ R_RETURN(this->PushMap(client, server, size, state, m_num_send++));
}
-Result KSessionRequest::SessionMappings::PushReceive(VAddr client, VAddr server, size_t size,
- KMemoryState state) {
+Result KSessionRequest::SessionMappings::PushReceive(KProcessAddress client, KProcessAddress server,
+ size_t size, KMemoryState state) {
ASSERT(m_num_exch == 0);
- return this->PushMap(client, server, size, state, m_num_send + m_num_recv++);
+ R_RETURN(this->PushMap(client, server, size, state, m_num_send + m_num_recv++));
}
-Result KSessionRequest::SessionMappings::PushExchange(VAddr client, VAddr server, size_t size,
+Result KSessionRequest::SessionMappings::PushExchange(KProcessAddress client,
+ KProcessAddress server, size_t size,
KMemoryState state) {
- return this->PushMap(client, server, size, state, m_num_send + m_num_recv + m_num_exch++);
+ R_RETURN(this->PushMap(client, server, size, state, m_num_send + m_num_recv + m_num_exch++));
}
void KSessionRequest::SessionMappings::Finalize() {
if (m_mappings) {
- KPageBuffer::Free(kernel, reinterpret_cast<KPageBuffer*>(m_mappings));
+ KPageBuffer::Free(m_kernel, reinterpret_cast<KPageBuffer*>(m_mappings));
m_mappings = nullptr;
}
}
diff --git a/src/core/hle/kernel/k_session_request.h b/src/core/hle/kernel/k_session_request.h
index e5558bc2c..283669e0a 100644
--- a/src/core/hle/kernel/k_session_request.h
+++ b/src/core/hle/kernel/k_session_request.h
@@ -5,6 +5,8 @@
#include <array>
+#include "common/intrusive_list.h"
+
#include "core/hle/kernel/k_auto_object.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_memory_block.h"
@@ -16,7 +18,7 @@ namespace Kernel {
class KSessionRequest final : public KSlabAllocated<KSessionRequest>,
public KAutoObject,
- public boost::intrusive::list_base_hook<> {
+ public Common::IntrusiveListBaseNode<KSessionRequest> {
KERNEL_AUTOOBJECT_TRAITS(KSessionRequest, KAutoObject);
public:
@@ -26,17 +28,17 @@ public:
class Mapping {
public:
- constexpr void Set(VAddr c, VAddr s, size_t sz, KMemoryState st) {
+ constexpr void Set(KProcessAddress c, KProcessAddress s, size_t sz, KMemoryState st) {
m_client_address = c;
m_server_address = s;
m_size = sz;
m_state = st;
}
- constexpr VAddr GetClientAddress() const {
+ constexpr KProcessAddress GetClientAddress() const {
return m_client_address;
}
- constexpr VAddr GetServerAddress() const {
+ constexpr KProcessAddress GetServerAddress() const {
return m_server_address;
}
constexpr size_t GetSize() const {
@@ -47,14 +49,14 @@ public:
}
private:
- VAddr m_client_address;
- VAddr m_server_address;
- size_t m_size;
- KMemoryState m_state;
+ KProcessAddress m_client_address{};
+ KProcessAddress m_server_address{};
+ size_t m_size{};
+ KMemoryState m_state{};
};
public:
- explicit SessionMappings(KernelCore& kernel_) : kernel(kernel_) {}
+ explicit SessionMappings(KernelCore& kernel) : m_kernel(kernel) {}
void Initialize() {}
void Finalize();
@@ -69,14 +71,17 @@ public:
return m_num_exch;
}
- Result PushSend(VAddr client, VAddr server, size_t size, KMemoryState state);
- Result PushReceive(VAddr client, VAddr server, size_t size, KMemoryState state);
- Result PushExchange(VAddr client, VAddr server, size_t size, KMemoryState state);
+ Result PushSend(KProcessAddress client, KProcessAddress server, size_t size,
+ KMemoryState state);
+ Result PushReceive(KProcessAddress client, KProcessAddress server, size_t size,
+ KMemoryState state);
+ Result PushExchange(KProcessAddress client, KProcessAddress server, size_t size,
+ KMemoryState state);
- VAddr GetSendClientAddress(size_t i) const {
+ KProcessAddress GetSendClientAddress(size_t i) const {
return GetSendMapping(i).GetClientAddress();
}
- VAddr GetSendServerAddress(size_t i) const {
+ KProcessAddress GetSendServerAddress(size_t i) const {
return GetSendMapping(i).GetServerAddress();
}
size_t GetSendSize(size_t i) const {
@@ -86,10 +91,10 @@ public:
return GetSendMapping(i).GetMemoryState();
}
- VAddr GetReceiveClientAddress(size_t i) const {
+ KProcessAddress GetReceiveClientAddress(size_t i) const {
return GetReceiveMapping(i).GetClientAddress();
}
- VAddr GetReceiveServerAddress(size_t i) const {
+ KProcessAddress GetReceiveServerAddress(size_t i) const {
return GetReceiveMapping(i).GetServerAddress();
}
size_t GetReceiveSize(size_t i) const {
@@ -99,10 +104,10 @@ public:
return GetReceiveMapping(i).GetMemoryState();
}
- VAddr GetExchangeClientAddress(size_t i) const {
+ KProcessAddress GetExchangeClientAddress(size_t i) const {
return GetExchangeMapping(i).GetClientAddress();
}
- VAddr GetExchangeServerAddress(size_t i) const {
+ KProcessAddress GetExchangeServerAddress(size_t i) const {
return GetExchangeMapping(i).GetServerAddress();
}
size_t GetExchangeSize(size_t i) const {
@@ -113,7 +118,8 @@ public:
}
private:
- Result PushMap(VAddr client, VAddr server, size_t size, KMemoryState state, size_t index);
+ Result PushMap(KProcessAddress client, KProcessAddress server, size_t size,
+ KMemoryState state, size_t index);
const Mapping& GetSendMapping(size_t i) const {
ASSERT(i < m_num_send);
@@ -149,8 +155,8 @@ public:
}
private:
- KernelCore& kernel;
- std::array<Mapping, NumStaticMappings> m_static_mappings;
+ KernelCore& m_kernel;
+ std::array<Mapping, NumStaticMappings> m_static_mappings{};
Mapping* m_mappings{};
u8 m_num_send{};
u8 m_num_recv{};
@@ -158,7 +164,7 @@ public:
};
public:
- explicit KSessionRequest(KernelCore& kernel_) : KAutoObject(kernel_), m_mappings(kernel_) {}
+ explicit KSessionRequest(KernelCore& kernel) : KAutoObject(kernel), m_mappings(kernel) {}
static KSessionRequest* Create(KernelCore& kernel) {
KSessionRequest* req = KSessionRequest::Allocate(kernel);
@@ -170,13 +176,13 @@ public:
void Destroy() override {
this->Finalize();
- KSessionRequest::Free(kernel, this);
+ KSessionRequest::Free(m_kernel, this);
}
void Initialize(KEvent* event, uintptr_t address, size_t size) {
m_mappings.Initialize();
- m_thread = GetCurrentThreadPointer(kernel);
+ m_thread = GetCurrentThreadPointer(m_kernel);
m_event = event;
m_address = address;
m_size = size;
@@ -227,22 +233,25 @@ public:
return m_mappings.GetExchangeCount();
}
- Result PushSend(VAddr client, VAddr server, size_t size, KMemoryState state) {
+ Result PushSend(KProcessAddress client, KProcessAddress server, size_t size,
+ KMemoryState state) {
return m_mappings.PushSend(client, server, size, state);
}
- Result PushReceive(VAddr client, VAddr server, size_t size, KMemoryState state) {
+ Result PushReceive(KProcessAddress client, KProcessAddress server, size_t size,
+ KMemoryState state) {
return m_mappings.PushReceive(client, server, size, state);
}
- Result PushExchange(VAddr client, VAddr server, size_t size, KMemoryState state) {
+ Result PushExchange(KProcessAddress client, KProcessAddress server, size_t size,
+ KMemoryState state) {
return m_mappings.PushExchange(client, server, size, state);
}
- VAddr GetSendClientAddress(size_t i) const {
+ KProcessAddress GetSendClientAddress(size_t i) const {
return m_mappings.GetSendClientAddress(i);
}
- VAddr GetSendServerAddress(size_t i) const {
+ KProcessAddress GetSendServerAddress(size_t i) const {
return m_mappings.GetSendServerAddress(i);
}
size_t GetSendSize(size_t i) const {
@@ -252,10 +261,10 @@ public:
return m_mappings.GetSendMemoryState(i);
}
- VAddr GetReceiveClientAddress(size_t i) const {
+ KProcessAddress GetReceiveClientAddress(size_t i) const {
return m_mappings.GetReceiveClientAddress(i);
}
- VAddr GetReceiveServerAddress(size_t i) const {
+ KProcessAddress GetReceiveServerAddress(size_t i) const {
return m_mappings.GetReceiveServerAddress(i);
}
size_t GetReceiveSize(size_t i) const {
@@ -265,10 +274,10 @@ public:
return m_mappings.GetReceiveMemoryState(i);
}
- VAddr GetExchangeClientAddress(size_t i) const {
+ KProcessAddress GetExchangeClientAddress(size_t i) const {
return m_mappings.GetExchangeClientAddress(i);
}
- VAddr GetExchangeServerAddress(size_t i) const {
+ KProcessAddress GetExchangeServerAddress(size_t i) const {
return m_mappings.GetExchangeServerAddress(i);
}
size_t GetExchangeSize(size_t i) const {
diff --git a/src/core/hle/kernel/k_shared_memory.cpp b/src/core/hle/kernel/k_shared_memory.cpp
index 3cf2b5d91..efb5699de 100644
--- a/src/core/hle/kernel/k_shared_memory.cpp
+++ b/src/core/hle/kernel/k_shared_memory.cpp
@@ -12,29 +12,27 @@
namespace Kernel {
-KSharedMemory::KSharedMemory(KernelCore& kernel_) : KAutoObjectWithSlabHeapAndContainer{kernel_} {}
+KSharedMemory::KSharedMemory(KernelCore& kernel) : KAutoObjectWithSlabHeapAndContainer{kernel} {}
KSharedMemory::~KSharedMemory() = default;
-Result KSharedMemory::Initialize(Core::DeviceMemory& device_memory_, KProcess* owner_process_,
- Svc::MemoryPermission owner_permission_,
- Svc::MemoryPermission user_permission_, std::size_t size_,
- std::string name_) {
+Result KSharedMemory::Initialize(Core::DeviceMemory& device_memory, KProcess* owner_process,
+ Svc::MemoryPermission owner_permission,
+ Svc::MemoryPermission user_permission, std::size_t size) {
// Set members.
- owner_process = owner_process_;
- device_memory = &device_memory_;
- owner_permission = owner_permission_;
- user_permission = user_permission_;
- size = Common::AlignUp(size_, PageSize);
- name = std::move(name_);
+ m_owner_process = owner_process;
+ m_device_memory = std::addressof(device_memory);
+ m_owner_permission = owner_permission;
+ m_user_permission = user_permission;
+ m_size = Common::AlignUp(size, PageSize);
const size_t num_pages = Common::DivideUp(size, PageSize);
// Get the resource limit.
- KResourceLimit* reslimit = kernel.GetSystemResourceLimit();
+ KResourceLimit* reslimit = m_kernel.GetSystemResourceLimit();
// Reserve memory for ourselves.
KScopedResourceReservation memory_reservation(reslimit, LimitableResource::PhysicalMemoryMax,
- size_);
+ size);
R_UNLESS(memory_reservation.Succeeded(), ResultLimitReached);
// Allocate the memory.
@@ -42,67 +40,67 @@ Result KSharedMemory::Initialize(Core::DeviceMemory& device_memory_, KProcess* o
//! HACK: Open continuous mapping from sysmodule pool.
auto option = KMemoryManager::EncodeOption(KMemoryManager::Pool::Secure,
KMemoryManager::Direction::FromBack);
- physical_address = kernel.MemoryManager().AllocateAndOpenContinuous(num_pages, 1, option);
- R_UNLESS(physical_address != 0, ResultOutOfMemory);
+ m_physical_address = m_kernel.MemoryManager().AllocateAndOpenContinuous(num_pages, 1, option);
+ R_UNLESS(m_physical_address != 0, ResultOutOfMemory);
//! Insert the result into our page group.
- page_group.emplace(kernel, &kernel.GetSystemSystemResource().GetBlockInfoManager());
- page_group->AddBlock(physical_address, num_pages);
+ m_page_group.emplace(m_kernel,
+ std::addressof(m_kernel.GetSystemSystemResource().GetBlockInfoManager()));
+ m_page_group->AddBlock(m_physical_address, num_pages);
// Commit our reservation.
memory_reservation.Commit();
// Set our resource limit.
- resource_limit = reslimit;
- resource_limit->Open();
+ m_resource_limit = reslimit;
+ m_resource_limit->Open();
// Mark initialized.
- is_initialized = true;
+ m_is_initialized = true;
// Clear all pages in the memory.
- for (const auto& block : *page_group) {
- std::memset(device_memory_.GetPointer<void>(block.GetAddress()), 0, block.GetSize());
+ for (const auto& block : *m_page_group) {
+ std::memset(m_device_memory->GetPointer<void>(block.GetAddress()), 0, block.GetSize());
}
- return ResultSuccess;
+ R_SUCCEED();
}
void KSharedMemory::Finalize() {
// Close and finalize the page group.
- page_group->Close();
- page_group->Finalize();
+ m_page_group->Close();
+ m_page_group->Finalize();
// Release the memory reservation.
- resource_limit->Release(LimitableResource::PhysicalMemoryMax, size);
- resource_limit->Close();
-
- // Perform inherited finalization.
- KAutoObjectWithSlabHeapAndContainer<KSharedMemory, KAutoObjectWithList>::Finalize();
+ m_resource_limit->Release(LimitableResource::PhysicalMemoryMax, m_size);
+ m_resource_limit->Close();
}
-Result KSharedMemory::Map(KProcess& target_process, VAddr address, std::size_t map_size,
+Result KSharedMemory::Map(KProcess& target_process, KProcessAddress address, std::size_t map_size,
Svc::MemoryPermission map_perm) {
// Validate the size.
- R_UNLESS(size == map_size, ResultInvalidSize);
+ R_UNLESS(m_size == map_size, ResultInvalidSize);
// Validate the permission.
const Svc::MemoryPermission test_perm =
- &target_process == owner_process ? owner_permission : user_permission;
+ std::addressof(target_process) == m_owner_process ? m_owner_permission : m_user_permission;
if (test_perm == Svc::MemoryPermission::DontCare) {
ASSERT(map_perm == Svc::MemoryPermission::Read || map_perm == Svc::MemoryPermission::Write);
} else {
R_UNLESS(map_perm == test_perm, ResultInvalidNewMemoryPermission);
}
- return target_process.PageTable().MapPages(address, *page_group, KMemoryState::Shared,
- ConvertToKMemoryPermission(map_perm));
+ R_RETURN(target_process.PageTable().MapPageGroup(address, *m_page_group, KMemoryState::Shared,
+ ConvertToKMemoryPermission(map_perm)));
}
-Result KSharedMemory::Unmap(KProcess& target_process, VAddr address, std::size_t unmap_size) {
+Result KSharedMemory::Unmap(KProcess& target_process, KProcessAddress address,
+ std::size_t unmap_size) {
// Validate the size.
- R_UNLESS(size == unmap_size, ResultInvalidSize);
+ R_UNLESS(m_size == unmap_size, ResultInvalidSize);
- return target_process.PageTable().UnmapPages(address, *page_group, KMemoryState::Shared);
+ R_RETURN(
+ target_process.PageTable().UnmapPageGroup(address, *m_page_group, KMemoryState::Shared));
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_shared_memory.h b/src/core/hle/kernel/k_shared_memory.h
index 8b29f0b4a..54b23d7ac 100644
--- a/src/core/hle/kernel/k_shared_memory.h
+++ b/src/core/hle/kernel/k_shared_memory.h
@@ -6,11 +6,11 @@
#include <optional>
#include <string>
-#include "common/common_types.h"
#include "core/device_memory.h"
#include "core/hle/kernel/k_memory_block.h"
#include "core/hle/kernel/k_page_group.h"
#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/slab_helpers.h"
#include "core/hle/result.h"
@@ -23,12 +23,12 @@ class KSharedMemory final
KERNEL_AUTOOBJECT_TRAITS(KSharedMemory, KAutoObject);
public:
- explicit KSharedMemory(KernelCore& kernel_);
+ explicit KSharedMemory(KernelCore& kernel);
~KSharedMemory() override;
Result Initialize(Core::DeviceMemory& device_memory_, KProcess* owner_process_,
Svc::MemoryPermission owner_permission_,
- Svc::MemoryPermission user_permission_, std::size_t size_, std::string name_);
+ Svc::MemoryPermission user_permission_, std::size_t size_);
/**
* Maps a shared memory block to an address in the target process' address space
@@ -37,7 +37,7 @@ public:
* @param map_size Size of the shared memory block to map
* @param permissions Memory block map permissions (specified by SVC field)
*/
- Result Map(KProcess& target_process, VAddr address, std::size_t map_size,
+ Result Map(KProcess& target_process, KProcessAddress address, std::size_t map_size,
Svc::MemoryPermission permissions);
/**
@@ -46,7 +46,7 @@ public:
* @param address Address in system memory to unmap shared memory block
* @param unmap_size Size of the shared memory block to unmap
*/
- Result Unmap(KProcess& target_process, VAddr address, std::size_t unmap_size);
+ Result Unmap(KProcess& target_process, KProcessAddress address, std::size_t unmap_size);
/**
* Gets a pointer to the shared memory block
@@ -54,7 +54,7 @@ public:
* @return A pointer to the shared memory block from the specified offset
*/
u8* GetPointer(std::size_t offset = 0) {
- return device_memory->GetPointer<u8>(physical_address + offset);
+ return m_device_memory->GetPointer<u8>(m_physical_address + offset);
}
/**
@@ -63,26 +63,26 @@ public:
* @return A pointer to the shared memory block from the specified offset
*/
const u8* GetPointer(std::size_t offset = 0) const {
- return device_memory->GetPointer<u8>(physical_address + offset);
+ return m_device_memory->GetPointer<u8>(m_physical_address + offset);
}
void Finalize() override;
bool IsInitialized() const override {
- return is_initialized;
+ return m_is_initialized;
}
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
private:
- Core::DeviceMemory* device_memory{};
- KProcess* owner_process{};
- std::optional<KPageGroup> page_group{};
- Svc::MemoryPermission owner_permission{};
- Svc::MemoryPermission user_permission{};
- PAddr physical_address{};
- std::size_t size{};
- KResourceLimit* resource_limit{};
- bool is_initialized{};
+ Core::DeviceMemory* m_device_memory{};
+ KProcess* m_owner_process{};
+ std::optional<KPageGroup> m_page_group{};
+ Svc::MemoryPermission m_owner_permission{};
+ Svc::MemoryPermission m_user_permission{};
+ KPhysicalAddress m_physical_address{};
+ std::size_t m_size{};
+ KResourceLimit* m_resource_limit{};
+ bool m_is_initialized{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_shared_memory_info.h b/src/core/hle/kernel/k_shared_memory_info.h
index 2bb6b6d08..2d8ff20d6 100644
--- a/src/core/hle/kernel/k_shared_memory_info.h
+++ b/src/core/hle/kernel/k_shared_memory_info.h
@@ -3,7 +3,7 @@
#pragma once
-#include <boost/intrusive/list.hpp>
+#include "common/intrusive_list.h"
#include "core/hle/kernel/slab_helpers.h"
@@ -12,31 +12,34 @@ namespace Kernel {
class KSharedMemory;
class KSharedMemoryInfo final : public KSlabAllocated<KSharedMemoryInfo>,
- public boost::intrusive::list_base_hook<> {
+ public Common::IntrusiveListBaseNode<KSharedMemoryInfo> {
public:
explicit KSharedMemoryInfo(KernelCore&) {}
KSharedMemoryInfo() = default;
- constexpr void Initialize(KSharedMemory* shmem) {
- shared_memory = shmem;
+ constexpr void Initialize(KSharedMemory* m) {
+ m_shared_memory = m;
+ m_reference_count = 0;
}
constexpr KSharedMemory* GetSharedMemory() const {
- return shared_memory;
+ return m_shared_memory;
}
constexpr void Open() {
- ++reference_count;
+ ++m_reference_count;
+ ASSERT(m_reference_count > 0);
}
constexpr bool Close() {
- return (--reference_count) == 0;
+ ASSERT(m_reference_count > 0);
+ return (--m_reference_count) == 0;
}
private:
- KSharedMemory* shared_memory{};
- size_t reference_count{};
+ KSharedMemory* m_shared_memory{};
+ size_t m_reference_count{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_slab_heap.h b/src/core/hle/kernel/k_slab_heap.h
index 68469b041..334afebb7 100644
--- a/src/core/hle/kernel/k_slab_heap.h
+++ b/src/core/hle/kernel/k_slab_heap.h
@@ -89,7 +89,8 @@ private:
if (alloc_peak <= cur_peak) {
break;
}
- } while (!Common::AtomicCompareAndSwap(&m_peak, alloc_peak, cur_peak, cur_peak));
+ } while (
+ !Common::AtomicCompareAndSwap(std::addressof(m_peak), alloc_peak, cur_peak, cur_peak));
}
public:
diff --git a/src/core/hle/kernel/k_spin_lock.cpp b/src/core/hle/kernel/k_spin_lock.cpp
index 6e16a1849..852532037 100644
--- a/src/core/hle/kernel/k_spin_lock.cpp
+++ b/src/core/hle/kernel/k_spin_lock.cpp
@@ -6,15 +6,15 @@
namespace Kernel {
void KSpinLock::Lock() {
- lck.lock();
+ m_lock.lock();
}
void KSpinLock::Unlock() {
- lck.unlock();
+ m_lock.unlock();
}
bool KSpinLock::TryLock() {
- return lck.try_lock();
+ return m_lock.try_lock();
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_spin_lock.h b/src/core/hle/kernel/k_spin_lock.h
index 397a93d21..094a1e6be 100644
--- a/src/core/hle/kernel/k_spin_lock.h
+++ b/src/core/hle/kernel/k_spin_lock.h
@@ -5,26 +5,24 @@
#include <mutex>
+#include "common/common_funcs.h"
#include "core/hle/kernel/k_scoped_lock.h"
namespace Kernel {
class KSpinLock {
public:
- KSpinLock() = default;
+ explicit KSpinLock() = default;
- KSpinLock(const KSpinLock&) = delete;
- KSpinLock& operator=(const KSpinLock&) = delete;
-
- KSpinLock(KSpinLock&&) = delete;
- KSpinLock& operator=(KSpinLock&&) = delete;
+ YUZU_NON_COPYABLE(KSpinLock);
+ YUZU_NON_MOVEABLE(KSpinLock);
void Lock();
void Unlock();
- [[nodiscard]] bool TryLock();
+ bool TryLock();
private:
- std::mutex lck;
+ std::mutex m_lock;
};
// TODO(bunnei): Alias for now, in case we want to implement these accurately in the future.
diff --git a/src/core/hle/kernel/k_synchronization_object.cpp b/src/core/hle/kernel/k_synchronization_object.cpp
index 802dca046..3e5b735b1 100644
--- a/src/core/hle/kernel/k_synchronization_object.cpp
+++ b/src/core/hle/kernel/k_synchronization_object.cpp
@@ -3,6 +3,7 @@
#include "common/assert.h"
#include "common/common_types.h"
+#include "common/scratch_buffer.h"
#include "core/hle/kernel/k_scheduler.h"
#include "core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h"
#include "core/hle/kernel/k_synchronization_object.h"
@@ -17,9 +18,9 @@ namespace {
class ThreadQueueImplForKSynchronizationObjectWait final : public KThreadQueueWithoutEndWait {
public:
- ThreadQueueImplForKSynchronizationObjectWait(KernelCore& kernel_, KSynchronizationObject** o,
+ ThreadQueueImplForKSynchronizationObjectWait(KernelCore& kernel, KSynchronizationObject** o,
KSynchronizationObject::ThreadListNode* n, s32 c)
- : KThreadQueueWithoutEndWait(kernel_), m_objects(o), m_nodes(n), m_count(c) {}
+ : KThreadQueueWithoutEndWait(kernel), m_objects(o), m_nodes(n), m_count(c) {}
void NotifyAvailable(KThread* waiting_thread, KSynchronizationObject* signaled_object,
Result wait_result) override {
@@ -71,25 +72,26 @@ void KSynchronizationObject::Finalize() {
KAutoObject::Finalize();
}
-Result KSynchronizationObject::Wait(KernelCore& kernel_ctx, s32* out_index,
+Result KSynchronizationObject::Wait(KernelCore& kernel, s32* out_index,
KSynchronizationObject** objects, const s32 num_objects,
s64 timeout) {
// Allocate space on stack for thread nodes.
- std::vector<ThreadListNode> thread_nodes(num_objects);
+ std::array<ThreadListNode, Svc::ArgumentHandleCountMax> thread_nodes;
// Prepare for wait.
- KThread* thread = GetCurrentThreadPointer(kernel_ctx);
- ThreadQueueImplForKSynchronizationObjectWait wait_queue(kernel_ctx, objects,
- thread_nodes.data(), num_objects);
+ KThread* thread = GetCurrentThreadPointer(kernel);
+ KHardwareTimer* timer{};
+ ThreadQueueImplForKSynchronizationObjectWait wait_queue(kernel, objects, thread_nodes.data(),
+ num_objects);
{
// Setup the scheduling lock and sleep.
- KScopedSchedulerLockAndSleep slp(kernel_ctx, thread, timeout);
+ KScopedSchedulerLockAndSleep slp(kernel, std::addressof(timer), thread, timeout);
// Check if the thread should terminate.
if (thread->IsTerminationRequested()) {
slp.CancelSleep();
- return ResultTerminationRequested;
+ R_THROW(ResultTerminationRequested);
}
// Check if any of the objects are already signaled.
@@ -99,21 +101,21 @@ Result KSynchronizationObject::Wait(KernelCore& kernel_ctx, s32* out_index,
if (objects[i]->IsSignaled()) {
*out_index = i;
slp.CancelSleep();
- return ResultSuccess;
+ R_THROW(ResultSuccess);
}
}
// Check if the timeout is zero.
if (timeout == 0) {
slp.CancelSleep();
- return ResultTimedOut;
+ R_THROW(ResultTimedOut);
}
// Check if waiting was canceled.
if (thread->IsWaitCancelled()) {
slp.CancelSleep();
thread->ClearWaitCancelled();
- return ResultCancelled;
+ R_THROW(ResultCancelled);
}
// Add the waiters.
@@ -131,6 +133,7 @@ Result KSynchronizationObject::Wait(KernelCore& kernel_ctx, s32* out_index,
thread->SetSyncedIndex(-1);
// Wait for an object to be signaled.
+ wait_queue.SetHardwareTimer(timer);
thread->BeginWait(std::addressof(wait_queue));
thread->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::Synchronization);
}
@@ -139,16 +142,15 @@ Result KSynchronizationObject::Wait(KernelCore& kernel_ctx, s32* out_index,
*out_index = thread->GetSyncedIndex();
// Get the wait result.
- return thread->GetWaitResult();
+ R_RETURN(thread->GetWaitResult());
}
-KSynchronizationObject::KSynchronizationObject(KernelCore& kernel_)
- : KAutoObjectWithList{kernel_} {}
+KSynchronizationObject::KSynchronizationObject(KernelCore& kernel) : KAutoObjectWithList{kernel} {}
KSynchronizationObject::~KSynchronizationObject() = default;
void KSynchronizationObject::NotifyAvailable(Result result) {
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// If we're not signaled, we've nothing to notify.
if (!this->IsSignaled()) {
@@ -156,7 +158,7 @@ void KSynchronizationObject::NotifyAvailable(Result result) {
}
// Iterate over each thread.
- for (auto* cur_node = thread_list_head; cur_node != nullptr; cur_node = cur_node->next) {
+ for (auto* cur_node = m_thread_list_head; cur_node != nullptr; cur_node = cur_node->next) {
cur_node->thread->NotifyAvailable(this, result);
}
}
@@ -166,8 +168,8 @@ std::vector<KThread*> KSynchronizationObject::GetWaitingThreadsForDebugging() co
// If debugging, dump the list of waiters.
{
- KScopedSchedulerLock lock(kernel);
- for (auto* cur_node = thread_list_head; cur_node != nullptr; cur_node = cur_node->next) {
+ KScopedSchedulerLock lock(m_kernel);
+ for (auto* cur_node = m_thread_list_head; cur_node != nullptr; cur_node = cur_node->next) {
threads.emplace_back(cur_node->thread);
}
}
diff --git a/src/core/hle/kernel/k_synchronization_object.h b/src/core/hle/kernel/k_synchronization_object.h
index 8d8122ab7..d55a2673d 100644
--- a/src/core/hle/kernel/k_synchronization_object.h
+++ b/src/core/hle/kernel/k_synchronization_object.h
@@ -24,31 +24,30 @@ public:
KThread* thread{};
};
- [[nodiscard]] static Result Wait(KernelCore& kernel, s32* out_index,
- KSynchronizationObject** objects, const s32 num_objects,
- s64 timeout);
+ static Result Wait(KernelCore& kernel, s32* out_index, KSynchronizationObject** objects,
+ const s32 num_objects, s64 timeout);
void Finalize() override;
- [[nodiscard]] virtual bool IsSignaled() const = 0;
+ virtual bool IsSignaled() const = 0;
- [[nodiscard]] std::vector<KThread*> GetWaitingThreadsForDebugging() const;
+ std::vector<KThread*> GetWaitingThreadsForDebugging() const;
void LinkNode(ThreadListNode* node_) {
// Link the node to the list.
- if (thread_list_tail == nullptr) {
- thread_list_head = node_;
+ if (m_thread_list_tail == nullptr) {
+ m_thread_list_head = node_;
} else {
- thread_list_tail->next = node_;
+ m_thread_list_tail->next = node_;
}
- thread_list_tail = node_;
+ m_thread_list_tail = node_;
}
void UnlinkNode(ThreadListNode* node_) {
// Unlink the node from the list.
ThreadListNode* prev_ptr =
- reinterpret_cast<ThreadListNode*>(std::addressof(thread_list_head));
+ reinterpret_cast<ThreadListNode*>(std::addressof(m_thread_list_head));
ThreadListNode* prev_val = nullptr;
ThreadListNode *prev, *tail_prev;
@@ -59,8 +58,8 @@ public:
prev_val = prev_ptr;
} while (prev_ptr != node_);
- if (thread_list_tail == node_) {
- thread_list_tail = tail_prev;
+ if (m_thread_list_tail == node_) {
+ m_thread_list_tail = tail_prev;
}
prev->next = node_->next;
@@ -78,8 +77,8 @@ protected:
}
private:
- ThreadListNode* thread_list_head{};
- ThreadListNode* thread_list_tail{};
+ ThreadListNode* m_thread_list_head{};
+ ThreadListNode* m_thread_list_tail{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_system_resource.cpp b/src/core/hle/kernel/k_system_resource.cpp
index 4cc377a6c..e6c8d589a 100644
--- a/src/core/hle/kernel/k_system_resource.cpp
+++ b/src/core/hle/kernel/k_system_resource.cpp
@@ -5,9 +5,8 @@
namespace Kernel {
-Result KSecureSystemResource::Initialize([[maybe_unused]] size_t size,
- [[maybe_unused]] KResourceLimit* resource_limit,
- [[maybe_unused]] KMemoryManager::Pool pool) {
+Result KSecureSystemResource::Initialize(size_t size, KResourceLimit* resource_limit,
+ KMemoryManager::Pool pool) {
// Unimplemented
UNREACHABLE();
}
@@ -17,8 +16,8 @@ void KSecureSystemResource::Finalize() {
UNREACHABLE();
}
-size_t KSecureSystemResource::CalculateRequiredSecureMemorySize(
- [[maybe_unused]] size_t size, [[maybe_unused]] KMemoryManager::Pool pool) {
+size_t KSecureSystemResource::CalculateRequiredSecureMemorySize(size_t size,
+ KMemoryManager::Pool pool) {
// Unimplemented
UNREACHABLE();
}
diff --git a/src/core/hle/kernel/k_system_resource.h b/src/core/hle/kernel/k_system_resource.h
index 9a991f725..6ea482185 100644
--- a/src/core/hle/kernel/k_system_resource.h
+++ b/src/core/hle/kernel/k_system_resource.h
@@ -21,7 +21,7 @@ class KSystemResource : public KAutoObject {
KERNEL_AUTOOBJECT_TRAITS(KSystemResource, KAutoObject);
public:
- explicit KSystemResource(KernelCore& kernel_) : KAutoObject(kernel_) {}
+ explicit KSystemResource(KernelCore& kernel) : KAutoObject(kernel) {}
protected:
void SetSecureResource() {
@@ -87,8 +87,8 @@ private:
class KSecureSystemResource final
: public KAutoObjectWithSlabHeap<KSecureSystemResource, KSystemResource> {
public:
- explicit KSecureSystemResource(KernelCore& kernel_)
- : KAutoObjectWithSlabHeap<KSecureSystemResource, KSystemResource>(kernel_) {
+ explicit KSecureSystemResource(KernelCore& kernel)
+ : KAutoObjectWithSlabHeap<KSecureSystemResource, KSystemResource>(kernel) {
// Mark ourselves as being a secure resource.
this->SetSecureResource();
}
@@ -99,7 +99,7 @@ public:
bool IsInitialized() const {
return m_is_initialized;
}
- static void PostDestroy([[maybe_unused]] uintptr_t arg) {}
+ static void PostDestroy(uintptr_t arg) {}
size_t CalculateRequiredSecureMemorySize() const {
return CalculateRequiredSecureMemorySize(m_resource_size, m_resource_pool);
@@ -130,7 +130,7 @@ private:
KBlockInfoSlabHeap m_block_info_heap;
KPageTableSlabHeap m_page_table_heap;
KResourceLimit* m_resource_limit{};
- VAddr m_resource_address{};
+ KVirtualAddress m_resource_address{};
size_t m_resource_size{};
};
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index 21207fe99..adb6ec581 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -4,6 +4,8 @@
#include <algorithm>
#include <atomic>
#include <cinttypes>
+#include <condition_variable>
+#include <mutex>
#include <optional>
#include <vector>
@@ -29,36 +31,34 @@
#include "core/hle/kernel/k_thread_queue.h"
#include "core/hle/kernel/k_worker_task_manager.h"
#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc.h"
#include "core/hle/kernel/svc_results.h"
#include "core/hle/kernel/svc_types.h"
#include "core/hle/result.h"
#include "core/memory.h"
-#ifdef ARCHITECTURE_x86_64
-#include "core/arm/dynarmic/arm_dynarmic_32.h"
-#endif
-
namespace {
constexpr inline s32 TerminatingThreadPriority = Kernel::Svc::SystemThreadPriorityHighest - 1;
-static void ResetThreadContext32(Core::ARM_Interface::ThreadContext32& context, u32 stack_top,
+static void ResetThreadContext32(Kernel::KThread::ThreadContext32& context, u32 stack_top,
u32 entry_point, u32 arg) {
context = {};
context.cpu_registers[0] = arg;
context.cpu_registers[15] = entry_point;
context.cpu_registers[13] = stack_top;
+ context.fpscr = 0;
}
-static void ResetThreadContext64(Core::ARM_Interface::ThreadContext64& context, VAddr stack_top,
- VAddr entry_point, u64 arg) {
+static void ResetThreadContext64(Kernel::KThread::ThreadContext64& context, u64 stack_top,
+ u64 entry_point, u64 arg) {
context = {};
context.cpu_registers[0] = arg;
context.cpu_registers[18] = Kernel::KSystemControl::GenerateRandomU64() | 1;
context.pc = entry_point;
context.sp = stack_top;
- // TODO(merry): Perform a hardware test to determine the below value.
context.fpcr = 0;
+ context.fpsr = 0;
}
} // namespace
@@ -75,14 +75,14 @@ struct ThreadLocalRegion {
class ThreadQueueImplForKThreadSleep final : public KThreadQueueWithoutEndWait {
public:
- explicit ThreadQueueImplForKThreadSleep(KernelCore& kernel_)
- : KThreadQueueWithoutEndWait(kernel_) {}
+ explicit ThreadQueueImplForKThreadSleep(KernelCore& kernel)
+ : KThreadQueueWithoutEndWait(kernel) {}
};
class ThreadQueueImplForKThreadSetProperty final : public KThreadQueue {
public:
- explicit ThreadQueueImplForKThreadSetProperty(KernelCore& kernel_, KThread::WaiterList* wl)
- : KThreadQueue(kernel_), m_wait_list(wl) {}
+ explicit ThreadQueueImplForKThreadSetProperty(KernelCore& kernel, KThread::WaiterList* wl)
+ : KThreadQueue(kernel), m_wait_list(wl) {}
void CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task) override {
// Remove the thread from the wait list.
@@ -93,17 +93,17 @@ public:
}
private:
- KThread::WaiterList* m_wait_list;
+ KThread::WaiterList* m_wait_list{};
};
} // namespace
-KThread::KThread(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_}, activity_pause_lock{kernel_} {}
+KThread::KThread(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel}, m_activity_pause_lock{kernel} {}
KThread::~KThread() = default;
-Result KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_stack_top, s32 prio,
- s32 virt_core, KProcess* owner, ThreadType type) {
+Result KThread::Initialize(KThreadFunction func, uintptr_t arg, KProcessAddress user_stack_top,
+ s32 prio, s32 virt_core, KProcess* owner, ThreadType type) {
// Assert parameters are valid.
ASSERT((type == ThreadType::Main) || (type == ThreadType::Dummy) ||
(Svc::HighestThreadPriority <= prio && prio <= Svc::LowestThreadPriority));
@@ -115,7 +115,7 @@ Result KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_stack
ASSERT(0 <= phys_core && phys_core < static_cast<s32>(Core::Hardware::NUM_CPU_CORES));
// First, clear the TLS address.
- tls_address = {};
+ m_tls_address = {};
// Next, assert things based on the type.
switch (type) {
@@ -139,110 +139,110 @@ Result KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_stack
ASSERT_MSG(false, "KThread::Initialize: Unknown ThreadType {}", static_cast<u32>(type));
break;
}
- thread_type = type;
+ m_thread_type = type;
// Set the ideal core ID and affinity mask.
- virtual_ideal_core_id = virt_core;
- physical_ideal_core_id = phys_core;
- virtual_affinity_mask = 1ULL << virt_core;
- physical_affinity_mask.SetAffinity(phys_core, true);
+ m_virtual_ideal_core_id = virt_core;
+ m_physical_ideal_core_id = phys_core;
+ m_virtual_affinity_mask = 1ULL << virt_core;
+ m_physical_affinity_mask.SetAffinity(phys_core, true);
// Set the thread state.
- thread_state = (type == ThreadType::Main || type == ThreadType::Dummy)
- ? ThreadState::Runnable
- : ThreadState::Initialized;
+ m_thread_state = (type == ThreadType::Main || type == ThreadType::Dummy)
+ ? ThreadState::Runnable
+ : ThreadState::Initialized;
// Set TLS address.
- tls_address = 0;
+ m_tls_address = 0;
// Set parent and condvar tree.
- parent = nullptr;
- condvar_tree = nullptr;
+ m_parent = nullptr;
+ m_condvar_tree = nullptr;
// Set sync booleans.
- signaled = false;
- termination_requested = false;
- wait_cancelled = false;
- cancellable = false;
+ m_signaled = false;
+ m_termination_requested = false;
+ m_wait_cancelled = false;
+ m_cancellable = false;
// Set core ID and wait result.
- core_id = phys_core;
- wait_result = ResultNoSynchronizationObject;
+ m_core_id = phys_core;
+ m_wait_result = ResultNoSynchronizationObject;
// Set priorities.
- priority = prio;
- base_priority = prio;
+ m_priority = prio;
+ m_base_priority = prio;
// Initialize sleeping queue.
- wait_queue = nullptr;
+ m_wait_queue = nullptr;
// Set suspend flags.
- suspend_request_flags = 0;
- suspend_allowed_flags = static_cast<u32>(ThreadState::SuspendFlagMask);
+ m_suspend_request_flags = 0;
+ m_suspend_allowed_flags = static_cast<u32>(ThreadState::SuspendFlagMask);
// We're neither debug attached, nor are we nesting our priority inheritance.
- debug_attached = false;
- priority_inheritance_count = 0;
+ m_debug_attached = false;
+ m_priority_inheritance_count = 0;
// We haven't been scheduled, and we have done no light IPC.
- schedule_count = -1;
- last_scheduled_tick = 0;
- light_ipc_data = nullptr;
+ m_schedule_count = -1;
+ m_last_scheduled_tick = 0;
+ m_light_ipc_data = nullptr;
// We're not waiting for a lock, and we haven't disabled migration.
- lock_owner = nullptr;
- num_core_migration_disables = 0;
+ m_waiting_lock_info = nullptr;
+ m_num_core_migration_disables = 0;
// We have no waiters, but we do have an entrypoint.
- num_kernel_waiters = 0;
+ m_num_kernel_waiters = 0;
// Set our current core id.
- current_core_id = phys_core;
+ m_current_core_id = phys_core;
// We haven't released our resource limit hint, and we've spent no time on the cpu.
- resource_limit_release_hint = false;
- cpu_time = 0;
+ m_resource_limit_release_hint = false;
+ m_cpu_time = 0;
// Set debug context.
- stack_top = user_stack_top;
- argument = arg;
+ m_stack_top = user_stack_top;
+ m_argument = arg;
// Clear our stack parameters.
- std::memset(static_cast<void*>(std::addressof(GetStackParameters())), 0,
+ std::memset(static_cast<void*>(std::addressof(this->GetStackParameters())), 0,
sizeof(StackParameters));
// Set parent, if relevant.
if (owner != nullptr) {
// Setup the TLS, if needed.
if (type == ThreadType::User) {
- R_TRY(owner->CreateThreadLocalRegion(std::addressof(tls_address)));
+ R_TRY(owner->CreateThreadLocalRegion(std::addressof(m_tls_address)));
}
- parent = owner;
- parent->Open();
+ m_parent = owner;
+ m_parent->Open();
}
// Initialize thread context.
- ResetThreadContext64(thread_context_64, user_stack_top, func, arg);
- ResetThreadContext32(thread_context_32, static_cast<u32>(user_stack_top),
- static_cast<u32>(func), static_cast<u32>(arg));
+ ResetThreadContext64(m_thread_context_64, GetInteger(user_stack_top), GetInteger(func), arg);
+ ResetThreadContext32(m_thread_context_32, static_cast<u32>(GetInteger(user_stack_top)),
+ static_cast<u32>(GetInteger(func)), static_cast<u32>(arg));
// Setup the stack parameters.
- StackParameters& sp = GetStackParameters();
+ StackParameters& sp = this->GetStackParameters();
sp.cur_thread = this;
sp.disable_count = 1;
- SetInExceptionHandler();
+ this->SetInExceptionHandler();
// Set thread ID.
- thread_id = kernel.CreateNewThreadID();
+ m_thread_id = m_kernel.CreateNewThreadID();
// We initialized!
- initialized = true;
+ m_initialized = true;
// Register ourselves with our parent process.
- if (parent != nullptr) {
- parent->RegisterThread(this);
- if (parent->IsSuspended()) {
+ if (m_parent != nullptr) {
+ m_parent->RegisterThread(this);
+ if (m_parent->IsSuspended()) {
RequestSuspend(SuspendType::Process);
}
}
@@ -251,14 +251,14 @@ Result KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_stack
}
Result KThread::InitializeThread(KThread* thread, KThreadFunction func, uintptr_t arg,
- VAddr user_stack_top, s32 prio, s32 core, KProcess* owner,
- ThreadType type, std::function<void()>&& init_func) {
+ KProcessAddress user_stack_top, s32 prio, s32 core,
+ KProcess* owner, ThreadType type,
+ std::function<void()>&& init_func) {
// Initialize the thread.
R_TRY(thread->Initialize(func, arg, user_stack_top, prio, core, owner, type));
// Initialize emulation parameters.
- thread->host_context = std::make_shared<Common::Fiber>(std::move(init_func));
- thread->is_single_core = !Settings::values.use_multi_core.GetValue();
+ thread->m_host_context = std::make_shared<Common::Fiber>(std::move(init_func));
R_SUCCEED();
}
@@ -268,7 +268,7 @@ Result KThread::InitializeDummyThread(KThread* thread, KProcess* owner) {
R_TRY(thread->Initialize({}, {}, {}, DummyThreadPriority, 3, owner, ThreadType::Dummy));
// Initialize emulation parameters.
- thread->stack_parameters.disable_count = 0;
+ thread->m_stack_parameters.disable_count = 0;
R_SUCCEED();
}
@@ -291,13 +291,32 @@ Result KThread::InitializeHighPriorityThread(Core::System& system, KThread* thre
}
Result KThread::InitializeUserThread(Core::System& system, KThread* thread, KThreadFunction func,
- uintptr_t arg, VAddr user_stack_top, s32 prio, s32 virt_core,
- KProcess* owner) {
+ uintptr_t arg, KProcessAddress user_stack_top, s32 prio,
+ s32 virt_core, KProcess* owner) {
system.Kernel().GlobalSchedulerContext().AddThread(thread);
R_RETURN(InitializeThread(thread, func, arg, user_stack_top, prio, virt_core, owner,
ThreadType::User, system.GetCpuManager().GetGuestThreadFunc()));
}
+Result KThread::InitializeServiceThread(Core::System& system, KThread* thread,
+ std::function<void()>&& func, s32 prio, s32 virt_core,
+ KProcess* owner) {
+ system.Kernel().GlobalSchedulerContext().AddThread(thread);
+ std::function<void()> func2{[&system, func{std::move(func)}] {
+ // Similar to UserModeThreadStarter.
+ system.Kernel().CurrentScheduler()->OnThreadStart();
+
+ // Run the guest function.
+ func();
+
+ // Exit.
+ Svc::ExitThread(system);
+ }};
+
+ R_RETURN(InitializeThread(thread, {}, {}, {}, prio, virt_core, owner, ThreadType::HighPriority,
+ std::move(func2)));
+}
+
void KThread::PostDestroy(uintptr_t arg) {
KProcess* owner = reinterpret_cast<KProcess*>(arg & ~1ULL);
const bool resource_limit_release_hint = (arg & 1);
@@ -310,96 +329,110 @@ void KThread::PostDestroy(uintptr_t arg) {
void KThread::Finalize() {
// If the thread has an owner process, unregister it.
- if (parent != nullptr) {
- parent->UnregisterThread(this);
+ if (m_parent != nullptr) {
+ m_parent->UnregisterThread(this);
}
// If the thread has a local region, delete it.
- if (tls_address != 0) {
- ASSERT(parent->DeleteThreadLocalRegion(tls_address).IsSuccess());
+ if (m_tls_address != 0) {
+ ASSERT(m_parent->DeleteThreadLocalRegion(m_tls_address).IsSuccess());
}
// Release any waiters.
{
- ASSERT(lock_owner == nullptr);
- KScopedSchedulerLock sl{kernel};
+ ASSERT(m_waiting_lock_info == nullptr);
+ KScopedSchedulerLock sl{m_kernel};
+
+ // Check that we have no kernel waiters.
+ ASSERT(m_num_kernel_waiters == 0);
- auto it = waiter_list.begin();
- while (it != waiter_list.end()) {
- // Get the thread.
- KThread* const waiter = std::addressof(*it);
+ auto it = m_held_lock_info_list.begin();
+ while (it != m_held_lock_info_list.end()) {
+ // Get the lock info.
+ auto* const lock_info = std::addressof(*it);
- // The thread shouldn't be a kernel waiter.
- ASSERT(!IsKernelAddressKey(waiter->GetAddressKey()));
+ // The lock shouldn't have a kernel waiter.
+ ASSERT(!lock_info->GetIsKernelAddressKey());
- // Clear the lock owner.
- waiter->SetLockOwner(nullptr);
+ // Remove all waiters.
+ while (lock_info->GetWaiterCount() != 0) {
+ // Get the front waiter.
+ KThread* const waiter = lock_info->GetHighestPriorityWaiter();
- // Erase the waiter from our list.
- it = waiter_list.erase(it);
+ // Remove it from the lock.
+ if (lock_info->RemoveWaiter(waiter)) {
+ ASSERT(lock_info->GetWaiterCount() == 0);
+ }
+
+ // Cancel the thread's wait.
+ waiter->CancelWait(ResultInvalidState, true);
+ }
- // Cancel the thread's wait.
- waiter->CancelWait(ResultInvalidState, true);
+ // Remove the held lock from our list.
+ it = m_held_lock_info_list.erase(it);
+
+ // Free the lock info.
+ LockWithPriorityInheritanceInfo::Free(m_kernel, lock_info);
}
}
// Release host emulation members.
- host_context.reset();
+ m_host_context.reset();
// Perform inherited finalization.
KSynchronizationObject::Finalize();
}
bool KThread::IsSignaled() const {
- return signaled;
+ return m_signaled;
}
void KThread::OnTimer() {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// If we're waiting, cancel the wait.
- if (GetState() == ThreadState::Waiting) {
- wait_queue->CancelWait(this, ResultTimedOut, false);
+ if (this->GetState() == ThreadState::Waiting) {
+ m_wait_queue->CancelWait(this, ResultTimedOut, false);
}
}
void KThread::StartTermination() {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Release user exception and unpin, if relevant.
- if (parent != nullptr) {
- parent->ReleaseUserException(this);
- if (parent->GetPinnedThread(GetCurrentCoreId(kernel)) == this) {
- parent->UnpinCurrentThread(core_id);
+ if (m_parent != nullptr) {
+ m_parent->ReleaseUserException(this);
+ if (m_parent->GetPinnedThread(GetCurrentCoreId(m_kernel)) == this) {
+ m_parent->UnpinCurrentThread(m_core_id);
}
}
// Set state to terminated.
- SetState(ThreadState::Terminated);
+ this->SetState(ThreadState::Terminated);
// Clear the thread's status as running in parent.
- if (parent != nullptr) {
- parent->ClearRunningThread(this);
+ if (m_parent != nullptr) {
+ m_parent->ClearRunningThread(this);
}
// Signal.
- signaled = true;
+ m_signaled = true;
KSynchronizationObject::NotifyAvailable();
// Clear previous thread in KScheduler.
- KScheduler::ClearPreviousThread(kernel, this);
+ KScheduler::ClearPreviousThread(m_kernel, this);
// Register terminated dpc flag.
- RegisterDpc(DpcFlag::Terminated);
+ this->RegisterDpc(DpcFlag::Terminated);
}
void KThread::FinishTermination() {
// Ensure that the thread is not executing on any core.
- if (parent != nullptr) {
+ if (m_parent != nullptr) {
for (std::size_t i = 0; i < static_cast<std::size_t>(Core::Hardware::NUM_CPU_CORES); ++i) {
KThread* core_thread{};
do {
- core_thread = kernel.Scheduler(i).GetSchedulerCurrentThread();
+ core_thread = m_kernel.Scheduler(i).GetSchedulerCurrentThread();
} while (core_thread == this);
}
}
@@ -414,182 +447,183 @@ void KThread::DoWorkerTaskImpl() {
}
void KThread::Pin(s32 current_core) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Set ourselves as pinned.
GetStackParameters().is_pinned = true;
// Disable core migration.
- ASSERT(num_core_migration_disables == 0);
+ ASSERT(m_num_core_migration_disables == 0);
{
- ++num_core_migration_disables;
+ ++m_num_core_migration_disables;
// Save our ideal state to restore when we're unpinned.
- original_physical_ideal_core_id = physical_ideal_core_id;
- original_physical_affinity_mask = physical_affinity_mask;
+ m_original_physical_ideal_core_id = m_physical_ideal_core_id;
+ m_original_physical_affinity_mask = m_physical_affinity_mask;
// Bind ourselves to this core.
- const s32 active_core = GetActiveCore();
+ const s32 active_core = this->GetActiveCore();
- SetActiveCore(current_core);
- physical_ideal_core_id = current_core;
- physical_affinity_mask.SetAffinityMask(1ULL << current_core);
+ this->SetActiveCore(current_core);
+ m_physical_ideal_core_id = current_core;
+ m_physical_affinity_mask.SetAffinityMask(1ULL << current_core);
- if (active_core != current_core || physical_affinity_mask.GetAffinityMask() !=
- original_physical_affinity_mask.GetAffinityMask()) {
- KScheduler::OnThreadAffinityMaskChanged(kernel, this, original_physical_affinity_mask,
- active_core);
+ if (active_core != current_core ||
+ m_physical_affinity_mask.GetAffinityMask() !=
+ m_original_physical_affinity_mask.GetAffinityMask()) {
+ KScheduler::OnThreadAffinityMaskChanged(m_kernel, this,
+ m_original_physical_affinity_mask, active_core);
}
}
// Disallow performing thread suspension.
{
// Update our allow flags.
- suspend_allowed_flags &= ~(1 << (static_cast<u32>(SuspendType::Thread) +
- static_cast<u32>(ThreadState::SuspendShift)));
+ m_suspend_allowed_flags &= ~(1 << (static_cast<u32>(SuspendType::Thread) +
+ static_cast<u32>(ThreadState::SuspendShift)));
// Update our state.
- UpdateState();
+ this->UpdateState();
}
// TODO(bunnei): Update our SVC access permissions.
- ASSERT(parent != nullptr);
+ ASSERT(m_parent != nullptr);
}
void KThread::Unpin() {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Set ourselves as unpinned.
- GetStackParameters().is_pinned = false;
+ this->GetStackParameters().is_pinned = false;
// Enable core migration.
- ASSERT(num_core_migration_disables == 1);
+ ASSERT(m_num_core_migration_disables == 1);
{
- num_core_migration_disables--;
+ m_num_core_migration_disables--;
// Restore our original state.
- const KAffinityMask old_mask = physical_affinity_mask;
+ const KAffinityMask old_mask = m_physical_affinity_mask;
- physical_ideal_core_id = original_physical_ideal_core_id;
- physical_affinity_mask = original_physical_affinity_mask;
+ m_physical_ideal_core_id = m_original_physical_ideal_core_id;
+ m_physical_affinity_mask = m_original_physical_affinity_mask;
- if (physical_affinity_mask.GetAffinityMask() != old_mask.GetAffinityMask()) {
- const s32 active_core = GetActiveCore();
+ if (m_physical_affinity_mask.GetAffinityMask() != old_mask.GetAffinityMask()) {
+ const s32 active_core = this->GetActiveCore();
- if (!physical_affinity_mask.GetAffinity(active_core)) {
- if (physical_ideal_core_id >= 0) {
- SetActiveCore(physical_ideal_core_id);
+ if (!m_physical_affinity_mask.GetAffinity(active_core)) {
+ if (m_physical_ideal_core_id >= 0) {
+ this->SetActiveCore(m_physical_ideal_core_id);
} else {
- SetActiveCore(static_cast<s32>(
+ this->SetActiveCore(static_cast<s32>(
Common::BitSize<u64>() - 1 -
- std::countl_zero(physical_affinity_mask.GetAffinityMask())));
+ std::countl_zero(m_physical_affinity_mask.GetAffinityMask())));
}
}
- KScheduler::OnThreadAffinityMaskChanged(kernel, this, old_mask, active_core);
+ KScheduler::OnThreadAffinityMaskChanged(m_kernel, this, old_mask, active_core);
}
}
// Allow performing thread suspension (if termination hasn't been requested).
- if (!IsTerminationRequested()) {
+ if (!this->IsTerminationRequested()) {
// Update our allow flags.
- suspend_allowed_flags |= (1 << (static_cast<u32>(SuspendType::Thread) +
- static_cast<u32>(ThreadState::SuspendShift)));
+ m_suspend_allowed_flags |= (1 << (static_cast<u32>(SuspendType::Thread) +
+ static_cast<u32>(ThreadState::SuspendShift)));
// Update our state.
- UpdateState();
+ this->UpdateState();
}
// TODO(bunnei): Update our SVC access permissions.
- ASSERT(parent != nullptr);
+ ASSERT(m_parent != nullptr);
// Resume any threads that began waiting on us while we were pinned.
- for (auto it = pinned_waiter_list.begin(); it != pinned_waiter_list.end(); ++it) {
+ for (auto it = m_pinned_waiter_list.begin(); it != m_pinned_waiter_list.end(); ++it) {
it->EndWait(ResultSuccess);
}
}
u16 KThread::GetUserDisableCount() const {
- if (!IsUserThread()) {
+ if (!this->IsUserThread()) {
// We only emulate TLS for user threads
return {};
}
- auto& memory = kernel.System().Memory();
- return memory.Read16(tls_address + offsetof(ThreadLocalRegion, disable_count));
+ auto& memory = this->GetOwnerProcess()->GetMemory();
+ return memory.Read16(m_tls_address + offsetof(ThreadLocalRegion, disable_count));
}
void KThread::SetInterruptFlag() {
- if (!IsUserThread()) {
+ if (!this->IsUserThread()) {
// We only emulate TLS for user threads
return;
}
- auto& memory = kernel.System().Memory();
- memory.Write16(tls_address + offsetof(ThreadLocalRegion, interrupt_flag), 1);
+ auto& memory = this->GetOwnerProcess()->GetMemory();
+ memory.Write16(m_tls_address + offsetof(ThreadLocalRegion, interrupt_flag), 1);
}
void KThread::ClearInterruptFlag() {
- if (!IsUserThread()) {
+ if (!this->IsUserThread()) {
// We only emulate TLS for user threads
return;
}
- auto& memory = kernel.System().Memory();
- memory.Write16(tls_address + offsetof(ThreadLocalRegion, interrupt_flag), 0);
+ auto& memory = this->GetOwnerProcess()->GetMemory();
+ memory.Write16(m_tls_address + offsetof(ThreadLocalRegion, interrupt_flag), 0);
}
Result KThread::GetCoreMask(s32* out_ideal_core, u64* out_affinity_mask) {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Get the virtual mask.
- *out_ideal_core = virtual_ideal_core_id;
- *out_affinity_mask = virtual_affinity_mask;
+ *out_ideal_core = m_virtual_ideal_core_id;
+ *out_affinity_mask = m_virtual_affinity_mask;
R_SUCCEED();
}
Result KThread::GetPhysicalCoreMask(s32* out_ideal_core, u64* out_affinity_mask) {
- KScopedSchedulerLock sl{kernel};
- ASSERT(num_core_migration_disables >= 0);
+ KScopedSchedulerLock sl{m_kernel};
+ ASSERT(m_num_core_migration_disables >= 0);
// Select between core mask and original core mask.
- if (num_core_migration_disables == 0) {
- *out_ideal_core = physical_ideal_core_id;
- *out_affinity_mask = physical_affinity_mask.GetAffinityMask();
+ if (m_num_core_migration_disables == 0) {
+ *out_ideal_core = m_physical_ideal_core_id;
+ *out_affinity_mask = m_physical_affinity_mask.GetAffinityMask();
} else {
- *out_ideal_core = original_physical_ideal_core_id;
- *out_affinity_mask = original_physical_affinity_mask.GetAffinityMask();
+ *out_ideal_core = m_original_physical_ideal_core_id;
+ *out_affinity_mask = m_original_physical_affinity_mask.GetAffinityMask();
}
R_SUCCEED();
}
-Result KThread::SetCoreMask(s32 core_id_, u64 v_affinity_mask) {
- ASSERT(parent != nullptr);
+Result KThread::SetCoreMask(s32 core_id, u64 v_affinity_mask) {
+ ASSERT(m_parent != nullptr);
ASSERT(v_affinity_mask != 0);
- KScopedLightLock lk(activity_pause_lock);
+ KScopedLightLock lk(m_activity_pause_lock);
// Set the core mask.
u64 p_affinity_mask = 0;
{
- KScopedSchedulerLock sl(kernel);
- ASSERT(num_core_migration_disables >= 0);
+ KScopedSchedulerLock sl(m_kernel);
+ ASSERT(m_num_core_migration_disables >= 0);
// If we're updating, set our ideal virtual core.
- if (core_id_ != Svc::IdealCoreNoUpdate) {
- virtual_ideal_core_id = core_id_;
+ if (core_id != Svc::IdealCoreNoUpdate) {
+ m_virtual_ideal_core_id = core_id;
} else {
// Preserve our ideal core id.
- core_id_ = virtual_ideal_core_id;
- R_UNLESS(((1ULL << core_id_) & v_affinity_mask) != 0, ResultInvalidCombination);
+ core_id = m_virtual_ideal_core_id;
+ R_UNLESS(((1ULL << core_id) & v_affinity_mask) != 0, ResultInvalidCombination);
}
// Set our affinity mask.
- virtual_affinity_mask = v_affinity_mask;
+ m_virtual_affinity_mask = v_affinity_mask;
// Translate the virtual core to a physical core.
- if (core_id_ >= 0) {
- core_id_ = Core::Hardware::VirtualToPhysicalCoreMap[core_id_];
+ if (core_id >= 0) {
+ core_id = Core::Hardware::VirtualToPhysicalCoreMap[core_id];
}
// Translate the virtual affinity mask to a physical one.
@@ -600,43 +634,43 @@ Result KThread::SetCoreMask(s32 core_id_, u64 v_affinity_mask) {
}
// If we haven't disabled migration, perform an affinity change.
- if (num_core_migration_disables == 0) {
- const KAffinityMask old_mask = physical_affinity_mask;
+ if (m_num_core_migration_disables == 0) {
+ const KAffinityMask old_mask = m_physical_affinity_mask;
// Set our new ideals.
- physical_ideal_core_id = core_id_;
- physical_affinity_mask.SetAffinityMask(p_affinity_mask);
+ m_physical_ideal_core_id = core_id;
+ m_physical_affinity_mask.SetAffinityMask(p_affinity_mask);
- if (physical_affinity_mask.GetAffinityMask() != old_mask.GetAffinityMask()) {
+ if (m_physical_affinity_mask.GetAffinityMask() != old_mask.GetAffinityMask()) {
const s32 active_core = GetActiveCore();
- if (active_core >= 0 && !physical_affinity_mask.GetAffinity(active_core)) {
+ if (active_core >= 0 && !m_physical_affinity_mask.GetAffinity(active_core)) {
const s32 new_core = static_cast<s32>(
- physical_ideal_core_id >= 0
- ? physical_ideal_core_id
+ m_physical_ideal_core_id >= 0
+ ? m_physical_ideal_core_id
: Common::BitSize<u64>() - 1 -
- std::countl_zero(physical_affinity_mask.GetAffinityMask()));
+ std::countl_zero(m_physical_affinity_mask.GetAffinityMask()));
SetActiveCore(new_core);
}
- KScheduler::OnThreadAffinityMaskChanged(kernel, this, old_mask, active_core);
+ KScheduler::OnThreadAffinityMaskChanged(m_kernel, this, old_mask, active_core);
}
} else {
// Otherwise, we edit the original affinity for restoration later.
- original_physical_ideal_core_id = core_id_;
- original_physical_affinity_mask.SetAffinityMask(p_affinity_mask);
+ m_original_physical_ideal_core_id = core_id;
+ m_original_physical_affinity_mask.SetAffinityMask(p_affinity_mask);
}
}
// Update the pinned waiter list.
- ThreadQueueImplForKThreadSetProperty wait_queue_(kernel, std::addressof(pinned_waiter_list));
+ ThreadQueueImplForKThreadSetProperty wait_queue(m_kernel, std::addressof(m_pinned_waiter_list));
{
bool retry_update{};
do {
// Lock the scheduler.
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// Don't do any further management if our termination has been requested.
- R_SUCCEED_IF(IsTerminationRequested());
+ R_SUCCEED_IF(this->IsTerminationRequested());
// By default, we won't need to retry.
retry_update = false;
@@ -646,7 +680,7 @@ Result KThread::SetCoreMask(s32 core_id_, u64 v_affinity_mask) {
s32 thread_core;
for (thread_core = 0; thread_core < static_cast<s32>(Core::Hardware::NUM_CPU_CORES);
++thread_core) {
- if (kernel.Scheduler(thread_core).GetSchedulerCurrentThread() == this) {
+ if (m_kernel.Scheduler(thread_core).GetSchedulerCurrentThread() == this) {
thread_is_current = true;
break;
}
@@ -656,14 +690,14 @@ Result KThread::SetCoreMask(s32 core_id_, u64 v_affinity_mask) {
// new mask.
if (thread_is_current && ((1ULL << thread_core) & p_affinity_mask) == 0) {
// If the thread is pinned, we want to wait until it's not pinned.
- if (GetStackParameters().is_pinned) {
+ if (this->GetStackParameters().is_pinned) {
// Verify that the current thread isn't terminating.
- R_UNLESS(!GetCurrentThread(kernel).IsTerminationRequested(),
+ R_UNLESS(!GetCurrentThread(m_kernel).IsTerminationRequested(),
ResultTerminationRequested);
// Wait until the thread isn't pinned any more.
- pinned_waiter_list.push_back(GetCurrentThread(kernel));
- GetCurrentThread(kernel).BeginWait(std::addressof(wait_queue_));
+ m_pinned_waiter_list.push_back(GetCurrentThread(m_kernel));
+ GetCurrentThread(m_kernel).BeginWait(std::addressof(wait_queue));
} else {
// If the thread isn't pinned, release the scheduler lock and retry until it's
// not current.
@@ -679,111 +713,137 @@ Result KThread::SetCoreMask(s32 core_id_, u64 v_affinity_mask) {
void KThread::SetBasePriority(s32 value) {
ASSERT(Svc::HighestThreadPriority <= value && value <= Svc::LowestThreadPriority);
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Change our base priority.
- base_priority = value;
+ m_base_priority = value;
// Perform a priority restoration.
- RestorePriority(kernel, this);
+ RestorePriority(m_kernel, this);
+}
+
+KThread* KThread::GetLockOwner() const {
+ return m_waiting_lock_info != nullptr ? m_waiting_lock_info->GetOwner() : nullptr;
+}
+
+void KThread::IncreaseBasePriority(s32 priority) {
+ ASSERT(Svc::HighestThreadPriority <= priority && priority <= Svc::LowestThreadPriority);
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
+ ASSERT(!this->GetStackParameters().is_pinned);
+
+ // Set our base priority.
+ if (m_base_priority > priority) {
+ m_base_priority = priority;
+
+ // Perform a priority restoration.
+ RestorePriority(m_kernel, this);
+ }
}
void KThread::RequestSuspend(SuspendType type) {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Note the request in our flags.
- suspend_request_flags |=
- (1u << (static_cast<u32>(ThreadState::SuspendShift) + static_cast<u32>(type)));
+ m_suspend_request_flags |=
+ (1U << (static_cast<u32>(ThreadState::SuspendShift) + static_cast<u32>(type)));
// Try to perform the suspend.
- TrySuspend();
+ this->TrySuspend();
}
void KThread::Resume(SuspendType type) {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Clear the request in our flags.
- suspend_request_flags &=
- ~(1u << (static_cast<u32>(ThreadState::SuspendShift) + static_cast<u32>(type)));
+ m_suspend_request_flags &=
+ ~(1U << (static_cast<u32>(ThreadState::SuspendShift) + static_cast<u32>(type)));
// Update our state.
this->UpdateState();
}
void KThread::WaitCancel() {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Check if we're waiting and cancellable.
- if (this->GetState() == ThreadState::Waiting && cancellable) {
- wait_cancelled = false;
- wait_queue->CancelWait(this, ResultCancelled, true);
+ if (this->GetState() == ThreadState::Waiting && m_cancellable) {
+ m_wait_cancelled = false;
+ m_wait_queue->CancelWait(this, ResultCancelled, true);
} else {
// Otherwise, note that we cancelled a wait.
- wait_cancelled = true;
+ m_wait_cancelled = true;
}
}
void KThread::TrySuspend() {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
- ASSERT(IsSuspendRequested());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
+ ASSERT(this->IsSuspendRequested());
// Ensure that we have no waiters.
- if (GetNumKernelWaiters() > 0) {
+ if (this->GetNumKernelWaiters() > 0) {
return;
}
- ASSERT(GetNumKernelWaiters() == 0);
+ ASSERT(this->GetNumKernelWaiters() == 0);
// Perform the suspend.
this->UpdateState();
}
void KThread::UpdateState() {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Set our suspend flags in state.
- const ThreadState old_state = thread_state.load(std::memory_order_relaxed);
+ const ThreadState old_state = m_thread_state.load(std::memory_order_relaxed);
const auto new_state =
static_cast<ThreadState>(this->GetSuspendFlags()) | (old_state & ThreadState::Mask);
- thread_state.store(new_state, std::memory_order_relaxed);
+ m_thread_state.store(new_state, std::memory_order_relaxed);
// Note the state change in scheduler.
if (new_state != old_state) {
- KScheduler::OnThreadStateChanged(kernel, this, old_state);
+ KScheduler::OnThreadStateChanged(m_kernel, this, old_state);
}
}
void KThread::Continue() {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Clear our suspend flags in state.
- const ThreadState old_state = thread_state.load(std::memory_order_relaxed);
- thread_state.store(old_state & ThreadState::Mask, std::memory_order_relaxed);
+ const ThreadState old_state = m_thread_state.load(std::memory_order_relaxed);
+ m_thread_state.store(old_state & ThreadState::Mask, std::memory_order_relaxed);
// Note the state change in scheduler.
- KScheduler::OnThreadStateChanged(kernel, this, old_state);
+ KScheduler::OnThreadStateChanged(m_kernel, this, old_state);
}
-void KThread::WaitUntilSuspended() {
- // Make sure we have a suspend requested.
- ASSERT(IsSuspendRequested());
+void KThread::CloneFpuStatus() {
+ // We shouldn't reach here when starting kernel threads.
+ ASSERT(this->GetOwnerProcess() != nullptr);
+ ASSERT(this->GetOwnerProcess() == GetCurrentProcessPointer(m_kernel));
- // Loop until the thread is not executing on any core.
- for (std::size_t i = 0; i < static_cast<std::size_t>(Core::Hardware::NUM_CPU_CORES); ++i) {
- KThread* core_thread{};
- do {
- core_thread = kernel.Scheduler(i).GetSchedulerCurrentThread();
- } while (core_thread == this);
+ if (this->GetOwnerProcess()->Is64BitProcess()) {
+ // Clone FPSR and FPCR.
+ ThreadContext64 cur_ctx{};
+ m_kernel.System().CurrentArmInterface().SaveContext(cur_ctx);
+
+ this->GetContext64().fpcr = cur_ctx.fpcr;
+ this->GetContext64().fpsr = cur_ctx.fpsr;
+ } else {
+ // Clone FPSCR.
+ ThreadContext32 cur_ctx{};
+ m_kernel.System().CurrentArmInterface().SaveContext(cur_ctx);
+
+ this->GetContext32().fpscr = cur_ctx.fpscr;
}
}
Result KThread::SetActivity(Svc::ThreadActivity activity) {
// Lock ourselves.
- KScopedLightLock lk(activity_pause_lock);
+ KScopedLightLock lk(m_activity_pause_lock);
// Set the activity.
{
// Lock the scheduler.
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// Verify our state.
const auto cur_state = this->GetState();
@@ -810,13 +870,13 @@ Result KThread::SetActivity(Svc::ThreadActivity activity) {
// If the thread is now paused, update the pinned waiter list.
if (activity == Svc::ThreadActivity::Paused) {
- ThreadQueueImplForKThreadSetProperty wait_queue_(kernel,
- std::addressof(pinned_waiter_list));
+ ThreadQueueImplForKThreadSetProperty wait_queue(m_kernel,
+ std::addressof(m_pinned_waiter_list));
- bool thread_is_current;
+ bool thread_is_current{};
do {
// Lock the scheduler.
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// Don't do any further management if our termination has been requested.
R_SUCCEED_IF(this->IsTerminationRequested());
@@ -827,17 +887,17 @@ Result KThread::SetActivity(Svc::ThreadActivity activity) {
// Check whether the thread is pinned.
if (this->GetStackParameters().is_pinned) {
// Verify that the current thread isn't terminating.
- R_UNLESS(!GetCurrentThread(kernel).IsTerminationRequested(),
+ R_UNLESS(!GetCurrentThread(m_kernel).IsTerminationRequested(),
ResultTerminationRequested);
// Wait until the thread isn't pinned any more.
- pinned_waiter_list.push_back(GetCurrentThread(kernel));
- GetCurrentThread(kernel).BeginWait(std::addressof(wait_queue_));
+ m_pinned_waiter_list.push_back(GetCurrentThread(m_kernel));
+ GetCurrentThread(m_kernel).BeginWait(std::addressof(wait_queue));
} else {
// Check if the thread is currently running.
// If it is, we'll need to retry.
for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
- if (kernel.Scheduler(i).GetSchedulerCurrentThread() == this) {
+ if (m_kernel.Scheduler(i).GetSchedulerCurrentThread() == this) {
thread_is_current = true;
break;
}
@@ -849,34 +909,32 @@ Result KThread::SetActivity(Svc::ThreadActivity activity) {
R_SUCCEED();
}
-Result KThread::GetThreadContext3(std::vector<u8>& out) {
+Result KThread::GetThreadContext3(Common::ScratchBuffer<u8>& out) {
// Lock ourselves.
- KScopedLightLock lk{activity_pause_lock};
+ KScopedLightLock lk{m_activity_pause_lock};
// Get the context.
{
// Lock the scheduler.
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Verify that we're suspended.
- R_UNLESS(IsSuspendRequested(SuspendType::Thread), ResultInvalidState);
+ R_UNLESS(this->IsSuspendRequested(SuspendType::Thread), ResultInvalidState);
// If we're not terminating, get the thread's user context.
- if (!IsTerminationRequested()) {
- if (parent->Is64BitProcess()) {
+ if (!this->IsTerminationRequested()) {
+ if (m_parent->Is64BitProcess()) {
// Mask away mode bits, interrupt bits, IL bit, and other reserved bits.
auto context = GetContext64();
context.pstate &= 0xFF0FFE20;
-
- out.resize(sizeof(context));
- std::memcpy(out.data(), &context, sizeof(context));
+ out.resize_destructive(sizeof(context));
+ std::memcpy(out.data(), std::addressof(context), sizeof(context));
} else {
// Mask away mode bits, interrupt bits, IL bit, and other reserved bits.
auto context = GetContext32();
context.cpsr &= 0xFF0FFE20;
-
- out.resize(sizeof(context));
- std::memcpy(out.data(), &context, sizeof(context));
+ out.resize_destructive(sizeof(context));
+ std::memcpy(out.data(), std::addressof(context), sizeof(context));
}
}
}
@@ -884,51 +942,89 @@ Result KThread::GetThreadContext3(std::vector<u8>& out) {
R_SUCCEED();
}
-void KThread::AddWaiterImpl(KThread* thread) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+void KThread::AddHeldLock(LockWithPriorityInheritanceInfo* lock_info) {
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
+
+ // Set ourselves as the lock's owner.
+ lock_info->SetOwner(this);
+
+ // Add the lock to our held list.
+ m_held_lock_info_list.push_front(*lock_info);
+}
+
+KThread::LockWithPriorityInheritanceInfo* KThread::FindHeldLock(KProcessAddress address_key,
+ bool is_kernel_address_key) {
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
- // Find the right spot to insert the waiter.
- auto it = waiter_list.begin();
- while (it != waiter_list.end()) {
- if (it->GetPriority() > thread->GetPriority()) {
- break;
+ // Try to find an existing held lock.
+ for (auto& held_lock : m_held_lock_info_list) {
+ if (held_lock.GetAddressKey() == address_key &&
+ held_lock.GetIsKernelAddressKey() == is_kernel_address_key) {
+ return std::addressof(held_lock);
}
- it++;
}
+ return nullptr;
+}
+
+void KThread::AddWaiterImpl(KThread* thread) {
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
+ ASSERT(thread->GetConditionVariableTree() == nullptr);
+
+ // Get the thread's address key.
+ const auto address_key = thread->GetAddressKey();
+ const auto is_kernel_address_key = thread->GetIsKernelAddressKey();
+
// Keep track of how many kernel waiters we have.
- if (IsKernelAddressKey(thread->GetAddressKey())) {
- ASSERT((num_kernel_waiters++) >= 0);
- KScheduler::SetSchedulerUpdateNeeded(kernel);
+ if (is_kernel_address_key) {
+ ASSERT((m_num_kernel_waiters++) >= 0);
+ KScheduler::SetSchedulerUpdateNeeded(m_kernel);
+ }
+
+ // Get the relevant lock info.
+ auto* lock_info = this->FindHeldLock(address_key, is_kernel_address_key);
+ if (lock_info == nullptr) {
+ // Create a new lock for the address key.
+ lock_info =
+ LockWithPriorityInheritanceInfo::Create(m_kernel, address_key, is_kernel_address_key);
+
+ // Add the new lock to our list.
+ this->AddHeldLock(lock_info);
}
- // Insert the waiter.
- waiter_list.insert(it, *thread);
- thread->SetLockOwner(this);
+ // Add the thread as waiter to the lock info.
+ lock_info->AddWaiter(thread);
}
void KThread::RemoveWaiterImpl(KThread* thread) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
// Keep track of how many kernel waiters we have.
- if (IsKernelAddressKey(thread->GetAddressKey())) {
- ASSERT((num_kernel_waiters--) > 0);
- KScheduler::SetSchedulerUpdateNeeded(kernel);
+ if (thread->GetIsKernelAddressKey()) {
+ ASSERT((m_num_kernel_waiters--) > 0);
+ KScheduler::SetSchedulerUpdateNeeded(m_kernel);
}
+ // Get the info for the lock the thread is waiting on.
+ auto* lock_info = thread->GetWaitingLockInfo();
+ ASSERT(lock_info->GetOwner() == this);
+
// Remove the waiter.
- waiter_list.erase(waiter_list.iterator_to(*thread));
- thread->SetLockOwner(nullptr);
+ if (lock_info->RemoveWaiter(thread)) {
+ m_held_lock_info_list.erase(m_held_lock_info_list.iterator_to(*lock_info));
+ LockWithPriorityInheritanceInfo::Free(m_kernel, lock_info);
+ }
}
-void KThread::RestorePriority(KernelCore& kernel_ctx, KThread* thread) {
- ASSERT(kernel_ctx.GlobalSchedulerContext().IsLocked());
+void KThread::RestorePriority(KernelCore& kernel, KThread* thread) {
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(kernel));
- while (true) {
+ while (thread != nullptr) {
// We want to inherit priority where possible.
s32 new_priority = thread->GetBasePriority();
- if (thread->HasWaiters()) {
- new_priority = std::min(new_priority, thread->waiter_list.front().GetPriority());
+ for (const auto& held_lock : thread->m_held_lock_info_list) {
+ new_priority =
+ std::min(new_priority, held_lock.GetHighestPriorityWaiter()->GetPriority());
}
// If the priority we would inherit is not different from ours, don't do anything.
@@ -936,9 +1032,18 @@ void KThread::RestorePriority(KernelCore& kernel_ctx, KThread* thread) {
return;
}
+ // Get the owner of whatever lock this thread is waiting on.
+ KThread* const lock_owner = thread->GetLockOwner();
+
+ // If the thread is waiting on some lock, remove it as a waiter to prevent violating red
+ // black tree invariants.
+ if (lock_owner != nullptr) {
+ lock_owner->RemoveWaiterImpl(thread);
+ }
+
// Ensure we don't violate condition variable red black tree invariants.
if (auto* cv_tree = thread->GetConditionVariableTree(); cv_tree != nullptr) {
- BeforeUpdatePriority(kernel_ctx, cv_tree, thread);
+ BeforeUpdatePriority(kernel, cv_tree, thread);
}
// Change the priority.
@@ -947,148 +1052,175 @@ void KThread::RestorePriority(KernelCore& kernel_ctx, KThread* thread) {
// Restore the condition variable, if relevant.
if (auto* cv_tree = thread->GetConditionVariableTree(); cv_tree != nullptr) {
- AfterUpdatePriority(kernel_ctx, cv_tree, thread);
+ AfterUpdatePriority(kernel, cv_tree, thread);
}
- // Update the scheduler.
- KScheduler::OnThreadPriorityChanged(kernel_ctx, thread, old_priority);
-
- // Keep the lock owner up to date.
- KThread* lock_owner = thread->GetLockOwner();
- if (lock_owner == nullptr) {
- return;
+ // If we removed the thread from some lock's waiting list, add it back.
+ if (lock_owner != nullptr) {
+ lock_owner->AddWaiterImpl(thread);
}
- // Update the thread in the lock owner's sorted list, and continue inheriting.
- lock_owner->RemoveWaiterImpl(thread);
- lock_owner->AddWaiterImpl(thread);
+ // Update the scheduler.
+ KScheduler::OnThreadPriorityChanged(kernel, thread, old_priority);
+
+ // Continue inheriting priority.
thread = lock_owner;
}
}
void KThread::AddWaiter(KThread* thread) {
- AddWaiterImpl(thread);
- RestorePriority(kernel, this);
+ this->AddWaiterImpl(thread);
+
+ // If the thread has a higher priority than us, we should inherit.
+ if (thread->GetPriority() < this->GetPriority()) {
+ RestorePriority(m_kernel, this);
+ }
}
void KThread::RemoveWaiter(KThread* thread) {
- RemoveWaiterImpl(thread);
- RestorePriority(kernel, this);
+ this->RemoveWaiterImpl(thread);
+
+ // If our priority is the same as the thread's (and we've inherited), we may need to restore to
+ // lower priority.
+ if (this->GetPriority() == thread->GetPriority() &&
+ this->GetPriority() < this->GetBasePriority()) {
+ RestorePriority(m_kernel, this);
+ }
}
-KThread* KThread::RemoveWaiterByKey(s32* out_num_waiters, VAddr key) {
- ASSERT(kernel.GlobalSchedulerContext().IsLocked());
+KThread* KThread::RemoveWaiterByKey(bool* out_has_waiters, KProcessAddress key,
+ bool is_kernel_address_key_) {
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
- s32 num_waiters{};
- KThread* next_lock_owner{};
- auto it = waiter_list.begin();
- while (it != waiter_list.end()) {
- if (it->GetAddressKey() == key) {
- KThread* thread = std::addressof(*it);
+ // Get the relevant lock info.
+ auto* lock_info = this->FindHeldLock(key, is_kernel_address_key_);
+ if (lock_info == nullptr) {
+ *out_has_waiters = false;
+ return nullptr;
+ }
- // Keep track of how many kernel waiters we have.
- if (IsKernelAddressKey(thread->GetAddressKey())) {
- ASSERT((num_kernel_waiters--) > 0);
- KScheduler::SetSchedulerUpdateNeeded(kernel);
- }
- it = waiter_list.erase(it);
+ // Remove the lock info from our held list.
+ m_held_lock_info_list.erase(m_held_lock_info_list.iterator_to(*lock_info));
- // Update the next lock owner.
- if (next_lock_owner == nullptr) {
- next_lock_owner = thread;
- next_lock_owner->SetLockOwner(nullptr);
- } else {
- next_lock_owner->AddWaiterImpl(thread);
- }
- num_waiters++;
- } else {
- it++;
+ // Keep track of how many kernel waiters we have.
+ if (lock_info->GetIsKernelAddressKey()) {
+ m_num_kernel_waiters -= lock_info->GetWaiterCount();
+ ASSERT(m_num_kernel_waiters >= 0);
+ KScheduler::SetSchedulerUpdateNeeded(m_kernel);
+ }
+
+ ASSERT(lock_info->GetWaiterCount() > 0);
+
+ // Remove the highest priority waiter from the lock to be the next owner.
+ KThread* next_lock_owner = lock_info->GetHighestPriorityWaiter();
+ if (lock_info->RemoveWaiter(next_lock_owner)) {
+ // The new owner was the only waiter.
+ *out_has_waiters = false;
+
+ // Free the lock info, since it has no waiters.
+ LockWithPriorityInheritanceInfo::Free(m_kernel, lock_info);
+ } else {
+ // There are additional waiters on the lock.
+ *out_has_waiters = true;
+
+ // Add the lock to the new owner's held list.
+ next_lock_owner->AddHeldLock(lock_info);
+
+ // Keep track of any kernel waiters for the new owner.
+ if (lock_info->GetIsKernelAddressKey()) {
+ next_lock_owner->m_num_kernel_waiters += lock_info->GetWaiterCount();
+ ASSERT(next_lock_owner->m_num_kernel_waiters > 0);
+
+ // NOTE: No need to set scheduler update needed, because we will have already done so
+ // when removing earlier.
}
}
- // Do priority updates, if we have a next owner.
- if (next_lock_owner) {
- RestorePriority(kernel, this);
- RestorePriority(kernel, next_lock_owner);
+ // If our priority is the same as the next owner's (and we've inherited), we may need to restore
+ // to lower priority.
+ if (this->GetPriority() == next_lock_owner->GetPriority() &&
+ this->GetPriority() < this->GetBasePriority()) {
+ RestorePriority(m_kernel, this);
+ // NOTE: No need to restore priority on the next lock owner, because it was already the
+ // highest priority waiter on the lock.
}
- // Return output.
- *out_num_waiters = num_waiters;
+ // Return the next lock owner.
return next_lock_owner;
}
Result KThread::Run() {
while (true) {
- KScopedSchedulerLock lk{kernel};
+ KScopedSchedulerLock lk{m_kernel};
// If either this thread or the current thread are requesting termination, note it.
- R_UNLESS(!IsTerminationRequested(), ResultTerminationRequested);
- R_UNLESS(!GetCurrentThread(kernel).IsTerminationRequested(), ResultTerminationRequested);
+ R_UNLESS(!this->IsTerminationRequested(), ResultTerminationRequested);
+ R_UNLESS(!GetCurrentThread(m_kernel).IsTerminationRequested(), ResultTerminationRequested);
// Ensure our thread state is correct.
- R_UNLESS(GetState() == ThreadState::Initialized, ResultInvalidState);
+ R_UNLESS(this->GetState() == ThreadState::Initialized, ResultInvalidState);
// If the current thread has been asked to suspend, suspend it and retry.
- if (GetCurrentThread(kernel).IsSuspended()) {
- GetCurrentThread(kernel).UpdateState();
+ if (GetCurrentThread(m_kernel).IsSuspended()) {
+ GetCurrentThread(m_kernel).UpdateState();
continue;
}
// If we're not a kernel thread and we've been asked to suspend, suspend ourselves.
if (KProcess* owner = this->GetOwnerProcess(); owner != nullptr) {
- if (IsUserThread() && IsSuspended()) {
+ if (this->IsUserThread() && this->IsSuspended()) {
this->UpdateState();
}
owner->IncrementRunningThreadCount();
}
// Set our state and finish.
- SetState(ThreadState::Runnable);
+ this->SetState(ThreadState::Runnable);
R_SUCCEED();
}
}
void KThread::Exit() {
- ASSERT(this == GetCurrentThreadPointer(kernel));
+ ASSERT(this == GetCurrentThreadPointer(m_kernel));
// Release the thread resource hint, running thread count from parent.
- if (parent != nullptr) {
- parent->GetResourceLimit()->Release(Kernel::LimitableResource::ThreadCountMax, 0, 1);
- resource_limit_release_hint = true;
- parent->DecrementRunningThreadCount();
+ if (m_parent != nullptr) {
+ m_parent->GetResourceLimit()->Release(Kernel::LimitableResource::ThreadCountMax, 0, 1);
+ m_resource_limit_release_hint = true;
+ m_parent->DecrementRunningThreadCount();
}
// Perform termination.
{
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Disallow all suspension.
- suspend_allowed_flags = 0;
+ m_suspend_allowed_flags = 0;
this->UpdateState();
// Disallow all suspension.
- suspend_allowed_flags = 0;
+ m_suspend_allowed_flags = 0;
// Start termination.
- StartTermination();
+ this->StartTermination();
// Register the thread as a work task.
- KWorkerTaskManager::AddTask(kernel, KWorkerTaskManager::WorkerType::Exit, this);
+ KWorkerTaskManager::AddTask(m_kernel, KWorkerTaskManager::WorkerType::Exit, this);
}
UNREACHABLE_MSG("KThread::Exit() would return");
}
Result KThread::Terminate() {
- ASSERT(this != GetCurrentThreadPointer(kernel));
+ ASSERT(this != GetCurrentThreadPointer(m_kernel));
// Request the thread terminate if it hasn't already.
if (const auto new_state = this->RequestTerminate(); new_state != ThreadState::Terminated) {
// If the thread isn't terminated, wait for it to terminate.
s32 index;
KSynchronizationObject* objects[] = {this};
- R_TRY(KSynchronizationObject::Wait(kernel, std::addressof(index), objects, 1,
+ R_TRY(KSynchronizationObject::Wait(m_kernel, std::addressof(index), objects, 1,
Svc::WaitInfinite));
}
@@ -1096,22 +1228,22 @@ Result KThread::Terminate() {
}
ThreadState KThread::RequestTerminate() {
- ASSERT(this != GetCurrentThreadPointer(kernel));
+ ASSERT(this != GetCurrentThreadPointer(m_kernel));
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Determine if this is the first termination request.
const bool first_request = [&]() -> bool {
// Perform an atomic compare-and-swap from false to true.
bool expected = false;
- return termination_requested.compare_exchange_strong(expected, true);
+ return m_termination_requested.compare_exchange_strong(expected, true);
}();
// If this is the first request, start termination procedure.
if (first_request) {
// If the thread is in initialized state, just change state to terminated.
if (this->GetState() == ThreadState::Initialized) {
- thread_state = ThreadState::Terminated;
+ m_thread_state = ThreadState::Terminated;
return ThreadState::Terminated;
}
@@ -1125,27 +1257,25 @@ ThreadState KThread::RequestTerminate() {
// If the thread is suspended, continue it.
if (this->IsSuspended()) {
- suspend_allowed_flags = 0;
+ m_suspend_allowed_flags = 0;
this->UpdateState();
}
// Change the thread's priority to be higher than any system thread's.
- if (this->GetBasePriority() >= Svc::SystemThreadPriorityHighest) {
- this->SetBasePriority(TerminatingThreadPriority);
- }
+ this->IncreaseBasePriority(TerminatingThreadPriority);
// If the thread is runnable, send a termination interrupt to other cores.
if (this->GetState() == ThreadState::Runnable) {
- if (const u64 core_mask =
- physical_affinity_mask.GetAffinityMask() & ~(1ULL << GetCurrentCoreId(kernel));
+ if (const u64 core_mask = m_physical_affinity_mask.GetAffinityMask() &
+ ~(1ULL << GetCurrentCoreId(m_kernel));
core_mask != 0) {
- Kernel::KInterruptManager::SendInterProcessorInterrupt(kernel, core_mask);
+ Kernel::KInterruptManager::SendInterProcessorInterrupt(m_kernel, core_mask);
}
}
// Wake up the thread.
if (this->GetState() == ThreadState::Waiting) {
- wait_queue->CancelWait(this, ResultTerminationRequested, true);
+ m_wait_queue->CancelWait(this, ResultTerminationRequested, true);
}
}
@@ -1153,14 +1283,15 @@ ThreadState KThread::RequestTerminate() {
}
Result KThread::Sleep(s64 timeout) {
- ASSERT(!kernel.GlobalSchedulerContext().IsLocked());
- ASSERT(this == GetCurrentThreadPointer(kernel));
+ ASSERT(!KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
+ ASSERT(this == GetCurrentThreadPointer(m_kernel));
ASSERT(timeout > 0);
- ThreadQueueImplForKThreadSleep wait_queue_(kernel);
+ ThreadQueueImplForKThreadSleep wait_queue(m_kernel);
+ KHardwareTimer* timer{};
{
// Setup the scheduling lock and sleep.
- KScopedSchedulerLockAndSleep slp(kernel, this, timeout);
+ KScopedSchedulerLockAndSleep slp(m_kernel, std::addressof(timer), this, timeout);
// Check if the thread should terminate.
if (this->IsTerminationRequested()) {
@@ -1169,102 +1300,107 @@ Result KThread::Sleep(s64 timeout) {
}
// Wait for the sleep to end.
- this->BeginWait(std::addressof(wait_queue_));
- SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::Sleep);
+ wait_queue.SetHardwareTimer(timer);
+ this->BeginWait(std::addressof(wait_queue));
+ this->SetWaitReasonForDebugging(ThreadWaitReasonForDebugging::Sleep);
}
R_SUCCEED();
}
void KThread::RequestDummyThreadWait() {
- ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(kernel));
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
ASSERT(this->IsDummyThread());
// We will block when the scheduler lock is released.
- dummy_thread_runnable.store(false);
+ std::scoped_lock lock{m_dummy_thread_mutex};
+ m_dummy_thread_runnable = false;
}
void KThread::DummyThreadBeginWait() {
- if (!this->IsDummyThread() || kernel.IsPhantomModeForSingleCore()) {
+ if (!this->IsDummyThread() || m_kernel.IsPhantomModeForSingleCore()) {
// Occurs in single core mode.
return;
}
// Block until runnable is no longer false.
- dummy_thread_runnable.wait(false);
+ std::unique_lock lock{m_dummy_thread_mutex};
+ m_dummy_thread_cv.wait(lock, [this] { return m_dummy_thread_runnable; });
}
void KThread::DummyThreadEndWait() {
- ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(kernel));
+ ASSERT(KScheduler::IsSchedulerLockedByCurrentThread(m_kernel));
ASSERT(this->IsDummyThread());
// Wake up the waiting thread.
- dummy_thread_runnable.store(true);
- dummy_thread_runnable.notify_one();
+ {
+ std::scoped_lock lock{m_dummy_thread_mutex};
+ m_dummy_thread_runnable = true;
+ }
+ m_dummy_thread_cv.notify_one();
}
void KThread::BeginWait(KThreadQueue* queue) {
// Set our state as waiting.
- SetState(ThreadState::Waiting);
+ this->SetState(ThreadState::Waiting);
// Set our wait queue.
- wait_queue = queue;
+ m_wait_queue = queue;
}
-void KThread::NotifyAvailable(KSynchronizationObject* signaled_object, Result wait_result_) {
+void KThread::NotifyAvailable(KSynchronizationObject* signaled_object, Result wait_result) {
// Lock the scheduler.
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// If we're waiting, notify our queue that we're available.
- if (GetState() == ThreadState::Waiting) {
- wait_queue->NotifyAvailable(this, signaled_object, wait_result_);
+ if (this->GetState() == ThreadState::Waiting) {
+ m_wait_queue->NotifyAvailable(this, signaled_object, wait_result);
}
}
-void KThread::EndWait(Result wait_result_) {
+void KThread::EndWait(Result wait_result) {
// Lock the scheduler.
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// If we're waiting, notify our queue that we're available.
- if (GetState() == ThreadState::Waiting) {
- if (wait_queue == nullptr) {
+ if (this->GetState() == ThreadState::Waiting) {
+ if (m_wait_queue == nullptr) {
// This should never happen, but avoid a hard crash below to get this logged.
ASSERT_MSG(false, "wait_queue is nullptr!");
return;
}
- wait_queue->EndWait(this, wait_result_);
+ m_wait_queue->EndWait(this, wait_result);
}
}
-void KThread::CancelWait(Result wait_result_, bool cancel_timer_task) {
+void KThread::CancelWait(Result wait_result, bool cancel_timer_task) {
// Lock the scheduler.
- KScopedSchedulerLock sl(kernel);
+ KScopedSchedulerLock sl(m_kernel);
// If we're waiting, notify our queue that we're available.
- if (GetState() == ThreadState::Waiting) {
- wait_queue->CancelWait(this, wait_result_, cancel_timer_task);
+ if (this->GetState() == ThreadState::Waiting) {
+ m_wait_queue->CancelWait(this, wait_result, cancel_timer_task);
}
}
void KThread::SetState(ThreadState state) {
- KScopedSchedulerLock sl{kernel};
+ KScopedSchedulerLock sl{m_kernel};
// Clear debugging state
- SetMutexWaitAddressForDebugging({});
- SetWaitReasonForDebugging({});
+ this->SetWaitReasonForDebugging({});
- const ThreadState old_state = thread_state.load(std::memory_order_relaxed);
- thread_state.store(
+ const ThreadState old_state = m_thread_state.load(std::memory_order_relaxed);
+ m_thread_state.store(
static_cast<ThreadState>((old_state & ~ThreadState::Mask) | (state & ThreadState::Mask)),
std::memory_order_relaxed);
- if (thread_state.load(std::memory_order_relaxed) != old_state) {
- KScheduler::OnThreadStateChanged(kernel, this, old_state);
+ if (m_thread_state.load(std::memory_order_relaxed) != old_state) {
+ KScheduler::OnThreadStateChanged(m_kernel, this, old_state);
}
}
std::shared_ptr<Common::Fiber>& KThread::GetHostContext() {
- return host_context;
+ return m_host_context;
}
void SetCurrentThread(KernelCore& kernel, KThread* thread) {
@@ -1279,26 +1415,39 @@ KThread& GetCurrentThread(KernelCore& kernel) {
return *GetCurrentThreadPointer(kernel);
}
+KProcess* GetCurrentProcessPointer(KernelCore& kernel) {
+ return GetCurrentThread(kernel).GetOwnerProcess();
+}
+
+KProcess& GetCurrentProcess(KernelCore& kernel) {
+ return *GetCurrentProcessPointer(kernel);
+}
+
s32 GetCurrentCoreId(KernelCore& kernel) {
return GetCurrentThread(kernel).GetCurrentCore();
}
+Core::Memory::Memory& GetCurrentMemory(KernelCore& kernel) {
+ // TODO: per-process memory
+ return kernel.System().ApplicationMemory();
+}
+
KScopedDisableDispatch::~KScopedDisableDispatch() {
// If we are shutting down the kernel, none of this is relevant anymore.
- if (kernel.IsShuttingDown()) {
+ if (m_kernel.IsShuttingDown()) {
return;
}
- if (GetCurrentThread(kernel).GetDisableDispatchCount() <= 1) {
- auto* scheduler = kernel.CurrentScheduler();
+ if (GetCurrentThread(m_kernel).GetDisableDispatchCount() <= 1) {
+ auto* scheduler = m_kernel.CurrentScheduler();
- if (scheduler && !kernel.IsPhantomModeForSingleCore()) {
+ if (scheduler && !m_kernel.IsPhantomModeForSingleCore()) {
scheduler->RescheduleCurrentCore();
} else {
- KScheduler::RescheduleCurrentHLEThread(kernel);
+ KScheduler::RescheduleCurrentHLEThread(m_kernel);
}
} else {
- GetCurrentThread(kernel).EnableDispatch();
+ GetCurrentThread(m_kernel).EnableDispatch();
}
}
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h
index 7cd94a340..dd662b3f8 100644
--- a/src/core/hle/kernel/k_thread.h
+++ b/src/core/hle/kernel/k_thread.h
@@ -12,10 +12,10 @@
#include <utility>
#include <vector>
-#include <boost/intrusive/list.hpp>
+#include "common/intrusive_list.h"
-#include "common/common_types.h"
#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"
@@ -23,6 +23,7 @@
#include "core/hle/kernel/k_spin_lock.h"
#include "core/hle/kernel/k_synchronization_object.h"
#include "core/hle/kernel/k_timer_task.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/k_worker_task.h"
#include "core/hle/kernel/slab_helpers.h"
#include "core/hle/kernel/svc_common.h"
@@ -34,6 +35,9 @@ class Fiber;
}
namespace Core {
+namespace Memory {
+class Memory;
+}
class ARM_Interface;
class System;
} // namespace Core
@@ -46,7 +50,7 @@ class KProcess;
class KScheduler;
class KThreadQueue;
-using KThreadFunction = VAddr;
+using KThreadFunction = KProcessAddress;
enum class ThreadType : u32 {
Main = 0,
@@ -108,12 +112,15 @@ enum class StepState : u32 {
};
void SetCurrentThread(KernelCore& kernel, KThread* thread);
-[[nodiscard]] KThread* GetCurrentThreadPointer(KernelCore& kernel);
-[[nodiscard]] KThread& GetCurrentThread(KernelCore& kernel);
-[[nodiscard]] s32 GetCurrentCoreId(KernelCore& kernel);
+KThread* GetCurrentThreadPointer(KernelCore& kernel);
+KThread& GetCurrentThread(KernelCore& kernel);
+KProcess* GetCurrentProcessPointer(KernelCore& kernel);
+KProcess& GetCurrentProcess(KernelCore& kernel);
+s32 GetCurrentCoreId(KernelCore& kernel);
+Core::Memory::Memory& GetCurrentMemory(KernelCore& kernel);
class KThread final : public KAutoObjectWithSlabHeapAndContainer<KThread, KWorkerTask>,
- public boost::intrusive::list_base_hook<>,
+ public Common::IntrusiveListBaseNode<KThread>,
public KTimerTask {
KERNEL_AUTOOBJECT_TRAITS(KThread, KSynchronizationObject);
@@ -126,24 +133,20 @@ public:
static constexpr s32 IdleThreadPriority = Svc::LowestThreadPriority + 1;
static constexpr s32 DummyThreadPriority = Svc::LowestThreadPriority + 2;
- explicit KThread(KernelCore& kernel_);
+ explicit KThread(KernelCore& kernel);
~KThread() override;
public:
using ThreadContext32 = Core::ARM_Interface::ThreadContext32;
using ThreadContext64 = Core::ARM_Interface::ThreadContext64;
- using WaiterList = boost::intrusive::list<KThread>;
-
- void SetName(std::string new_name) {
- name = std::move(new_name);
- }
+ using WaiterList = Common::IntrusiveListBaseTraits<KThread>::ListType;
/**
* Gets the thread's current priority
* @return The current thread's priority
*/
- [[nodiscard]] s32 GetPriority() const {
- return priority;
+ s32 GetPriority() const {
+ return m_priority;
}
/**
@@ -151,23 +154,23 @@ public:
* @param priority The new priority.
*/
void SetPriority(s32 value) {
- priority = value;
+ m_priority = value;
}
/**
* Gets the thread's nominal priority.
* @return The current thread's nominal priority.
*/
- [[nodiscard]] s32 GetBasePriority() const {
- return base_priority;
+ s32 GetBasePriority() const {
+ return m_base_priority;
}
/**
* Gets the thread's thread ID
* @return The thread's ID
*/
- [[nodiscard]] u64 GetThreadID() const {
- return thread_id;
+ u64 GetThreadId() const {
+ return m_thread_id;
}
void ContinueIfHasKernelWaiters() {
@@ -178,7 +181,7 @@ public:
void SetBasePriority(s32 value);
- [[nodiscard]] Result Run();
+ Result Run();
void Exit();
@@ -186,22 +189,22 @@ public:
ThreadState RequestTerminate();
- [[nodiscard]] u32 GetSuspendFlags() const {
- return suspend_allowed_flags & suspend_request_flags;
+ u32 GetSuspendFlags() const {
+ return m_suspend_allowed_flags & m_suspend_request_flags;
}
- [[nodiscard]] bool IsSuspended() const {
+ bool IsSuspended() const {
return GetSuspendFlags() != 0;
}
- [[nodiscard]] bool IsSuspendRequested(SuspendType type) const {
- return (suspend_request_flags &
- (1u << (static_cast<u32>(ThreadState::SuspendShift) + static_cast<u32>(type)))) !=
+ bool IsSuspendRequested(SuspendType type) const {
+ return (m_suspend_request_flags &
+ (1U << (static_cast<u32>(ThreadState::SuspendShift) + static_cast<u32>(type)))) !=
0;
}
- [[nodiscard]] bool IsSuspendRequested() const {
- return suspend_request_flags != 0;
+ bool IsSuspendRequested() const {
+ return m_suspend_request_flags != 0;
}
void RequestSuspend(SuspendType type);
@@ -214,202 +217,196 @@ public:
void Continue();
- void WaitUntilSuspended();
-
constexpr void SetSyncedIndex(s32 index) {
- synced_index = index;
+ m_synced_index = index;
}
- [[nodiscard]] constexpr s32 GetSyncedIndex() const {
- return synced_index;
+ constexpr s32 GetSyncedIndex() const {
+ return m_synced_index;
}
constexpr void SetWaitResult(Result wait_res) {
- wait_result = wait_res;
+ m_wait_result = wait_res;
}
- [[nodiscard]] constexpr Result GetWaitResult() const {
- return wait_result;
+ constexpr Result GetWaitResult() const {
+ return m_wait_result;
}
/*
* Returns the Thread Local Storage address of the current thread
- * @returns VAddr of the thread's TLS
+ * @returns Address of the thread's TLS
*/
- [[nodiscard]] VAddr GetTLSAddress() const {
- return tls_address;
+ KProcessAddress GetTlsAddress() const {
+ return m_tls_address;
}
/*
* Returns the value of the TPIDR_EL0 Read/Write system register for this thread.
* @returns The value of the TPIDR_EL0 register.
*/
- [[nodiscard]] u64 GetTPIDR_EL0() const {
- return thread_context_64.tpidr;
+ u64 GetTpidrEl0() const {
+ return m_thread_context_64.tpidr;
}
/// Sets the value of the TPIDR_EL0 Read/Write system register for this thread.
- void SetTPIDR_EL0(u64 value) {
- thread_context_64.tpidr = value;
- thread_context_32.tpidr = static_cast<u32>(value);
+ void SetTpidrEl0(u64 value) {
+ m_thread_context_64.tpidr = value;
+ m_thread_context_32.tpidr = static_cast<u32>(value);
}
- [[nodiscard]] ThreadContext32& GetContext32() {
- return thread_context_32;
+ void CloneFpuStatus();
+
+ ThreadContext32& GetContext32() {
+ return m_thread_context_32;
}
- [[nodiscard]] const ThreadContext32& GetContext32() const {
- return thread_context_32;
+ const ThreadContext32& GetContext32() const {
+ return m_thread_context_32;
}
- [[nodiscard]] ThreadContext64& GetContext64() {
- return thread_context_64;
+ ThreadContext64& GetContext64() {
+ return m_thread_context_64;
}
- [[nodiscard]] const ThreadContext64& GetContext64() const {
- return thread_context_64;
+ const ThreadContext64& GetContext64() const {
+ return m_thread_context_64;
}
- [[nodiscard]] std::shared_ptr<Common::Fiber>& GetHostContext();
+ std::shared_ptr<Common::Fiber>& GetHostContext();
- [[nodiscard]] ThreadState GetState() const {
- return thread_state.load(std::memory_order_relaxed) & ThreadState::Mask;
+ ThreadState GetState() const {
+ return m_thread_state.load(std::memory_order_relaxed) & ThreadState::Mask;
}
- [[nodiscard]] ThreadState GetRawState() const {
- return thread_state.load(std::memory_order_relaxed);
+ ThreadState GetRawState() const {
+ return m_thread_state.load(std::memory_order_relaxed);
}
void SetState(ThreadState state);
- [[nodiscard]] StepState GetStepState() const {
- return step_state;
+ StepState GetStepState() const {
+ return m_step_state;
}
void SetStepState(StepState state) {
- step_state = state;
+ m_step_state = state;
}
- [[nodiscard]] s64 GetLastScheduledTick() const {
- return last_scheduled_tick;
+ s64 GetLastScheduledTick() const {
+ return m_last_scheduled_tick;
}
void SetLastScheduledTick(s64 tick) {
- last_scheduled_tick = tick;
+ m_last_scheduled_tick = tick;
}
- void AddCpuTime([[maybe_unused]] s32 core_id_, s64 amount) {
- cpu_time += amount;
+ void AddCpuTime(s32 core_id, s64 amount) {
+ m_cpu_time += amount;
// TODO(bunnei): Debug kernels track per-core tick counts. Should we?
}
- [[nodiscard]] s64 GetCpuTime() const {
- return cpu_time;
+ s64 GetCpuTime() const {
+ return m_cpu_time;
}
- [[nodiscard]] s32 GetActiveCore() const {
- return core_id;
+ s32 GetActiveCore() const {
+ return m_core_id;
}
void SetActiveCore(s32 core) {
- core_id = core;
+ m_core_id = core;
}
- [[nodiscard]] s32 GetCurrentCore() const {
- return current_core_id;
+ s32 GetCurrentCore() const {
+ return m_current_core_id;
}
void SetCurrentCore(s32 core) {
- current_core_id = core;
+ m_current_core_id = core;
}
- [[nodiscard]] KProcess* GetOwnerProcess() {
- return parent;
+ KProcess* GetOwnerProcess() {
+ return m_parent;
}
- [[nodiscard]] const KProcess* GetOwnerProcess() const {
- return parent;
+ const KProcess* GetOwnerProcess() const {
+ return m_parent;
}
- [[nodiscard]] bool IsUserThread() const {
- return parent != nullptr;
+ bool IsUserThread() const {
+ return m_parent != nullptr;
}
u16 GetUserDisableCount() const;
void SetInterruptFlag();
void ClearInterruptFlag();
- [[nodiscard]] KThread* GetLockOwner() const {
- return lock_owner;
- }
-
- void SetLockOwner(KThread* owner) {
- lock_owner = owner;
- }
+ KThread* GetLockOwner() const;
- [[nodiscard]] const KAffinityMask& GetAffinityMask() const {
- return physical_affinity_mask;
+ const KAffinityMask& GetAffinityMask() const {
+ return m_physical_affinity_mask;
}
- [[nodiscard]] Result GetCoreMask(s32* out_ideal_core, u64* out_affinity_mask);
+ Result GetCoreMask(s32* out_ideal_core, u64* out_affinity_mask);
- [[nodiscard]] Result GetPhysicalCoreMask(s32* out_ideal_core, u64* out_affinity_mask);
+ Result GetPhysicalCoreMask(s32* out_ideal_core, u64* out_affinity_mask);
- [[nodiscard]] Result SetCoreMask(s32 cpu_core_id, u64 v_affinity_mask);
+ Result SetCoreMask(s32 cpu_core_id, u64 v_affinity_mask);
- [[nodiscard]] Result SetActivity(Svc::ThreadActivity activity);
+ Result SetActivity(Svc::ThreadActivity activity);
- [[nodiscard]] Result Sleep(s64 timeout);
+ Result Sleep(s64 timeout);
- [[nodiscard]] s64 GetYieldScheduleCount() const {
- return schedule_count;
+ s64 GetYieldScheduleCount() const {
+ return m_schedule_count;
}
void SetYieldScheduleCount(s64 count) {
- schedule_count = count;
+ m_schedule_count = count;
}
void WaitCancel();
- [[nodiscard]] bool IsWaitCancelled() const {
- return wait_cancelled;
+ bool IsWaitCancelled() const {
+ return m_wait_cancelled;
}
void ClearWaitCancelled() {
- wait_cancelled = false;
+ m_wait_cancelled = false;
}
- [[nodiscard]] bool IsCancellable() const {
- return cancellable;
+ bool IsCancellable() const {
+ return m_cancellable;
}
void SetCancellable() {
- cancellable = true;
+ m_cancellable = true;
}
void ClearCancellable() {
- cancellable = false;
+ m_cancellable = false;
}
- [[nodiscard]] bool IsTerminationRequested() const {
- return termination_requested || GetRawState() == ThreadState::Terminated;
+ bool IsTerminationRequested() const {
+ return m_termination_requested || GetRawState() == ThreadState::Terminated;
}
- [[nodiscard]] u64 GetId() const override {
- return this->GetThreadID();
+ u64 GetId() const override {
+ return this->GetThreadId();
}
- [[nodiscard]] bool IsInitialized() const override {
- return initialized;
+ bool IsInitialized() const override {
+ return m_initialized;
}
- [[nodiscard]] uintptr_t GetPostDestroyArgument() const override {
- return reinterpret_cast<uintptr_t>(parent) | (resource_limit_release_hint ? 1 : 0);
+ uintptr_t GetPostDestroyArgument() const override {
+ return reinterpret_cast<uintptr_t>(m_parent) | (m_resource_limit_release_hint ? 1 : 0);
}
void Finalize() override;
- [[nodiscard]] bool IsSignaled() const override;
+ bool IsSignaled() const override;
void OnTimer();
@@ -417,22 +414,22 @@ public:
static void PostDestroy(uintptr_t arg);
- [[nodiscard]] static Result InitializeDummyThread(KThread* thread, KProcess* owner);
+ static Result InitializeDummyThread(KThread* thread, KProcess* owner);
- [[nodiscard]] static Result InitializeMainThread(Core::System& system, KThread* thread,
- s32 virt_core);
+ static Result InitializeMainThread(Core::System& system, KThread* thread, s32 virt_core);
- [[nodiscard]] static Result InitializeIdleThread(Core::System& system, KThread* thread,
- s32 virt_core);
+ static Result InitializeIdleThread(Core::System& system, KThread* thread, s32 virt_core);
- [[nodiscard]] static Result InitializeHighPriorityThread(Core::System& system, KThread* thread,
- KThreadFunction func, uintptr_t arg,
- s32 virt_core);
+ static Result InitializeHighPriorityThread(Core::System& system, KThread* thread,
+ KThreadFunction func, uintptr_t arg, s32 virt_core);
- [[nodiscard]] static Result InitializeUserThread(Core::System& system, KThread* thread,
- KThreadFunction func, uintptr_t arg,
- VAddr user_stack_top, s32 prio, s32 virt_core,
- KProcess* owner);
+ static Result InitializeUserThread(Core::System& system, KThread* thread, KThreadFunction func,
+ uintptr_t arg, KProcessAddress user_stack_top, s32 prio,
+ s32 virt_core, KProcess* owner);
+
+ static Result InitializeServiceThread(Core::System& system, KThread* thread,
+ std::function<void()>&& thread_func, s32 prio,
+ s32 virt_core, KProcess* owner);
public:
struct StackParameters {
@@ -446,12 +443,12 @@ public:
KThread* cur_thread;
};
- [[nodiscard]] StackParameters& GetStackParameters() {
- return stack_parameters;
+ StackParameters& GetStackParameters() {
+ return m_stack_parameters;
}
- [[nodiscard]] const StackParameters& GetStackParameters() const {
- return stack_parameters;
+ const StackParameters& GetStackParameters() const {
+ return m_stack_parameters;
}
class QueueEntry {
@@ -459,47 +456,47 @@ public:
constexpr QueueEntry() = default;
constexpr void Initialize() {
- prev = nullptr;
- next = nullptr;
+ m_prev = nullptr;
+ m_next = nullptr;
}
constexpr KThread* GetPrev() const {
- return prev;
+ return m_prev;
}
constexpr KThread* GetNext() const {
- return next;
+ return m_next;
}
constexpr void SetPrev(KThread* thread) {
- prev = thread;
+ m_prev = thread;
}
constexpr void SetNext(KThread* thread) {
- next = thread;
+ m_next = thread;
}
private:
- KThread* prev{};
- KThread* next{};
+ KThread* m_prev{};
+ KThread* m_next{};
};
- [[nodiscard]] QueueEntry& GetPriorityQueueEntry(s32 core) {
- return per_core_priority_queue_entry[core];
+ QueueEntry& GetPriorityQueueEntry(s32 core) {
+ return m_per_core_priority_queue_entry[core];
}
- [[nodiscard]] const QueueEntry& GetPriorityQueueEntry(s32 core) const {
- return per_core_priority_queue_entry[core];
+ const QueueEntry& GetPriorityQueueEntry(s32 core) const {
+ return m_per_core_priority_queue_entry[core];
}
- [[nodiscard]] s32 GetDisableDispatchCount() const {
+ s32 GetDisableDispatchCount() const {
return this->GetStackParameters().disable_count;
}
void DisableDispatch() {
- ASSERT(GetCurrentThread(kernel).GetDisableDispatchCount() >= 0);
+ ASSERT(GetCurrentThread(m_kernel).GetDisableDispatchCount() >= 0);
this->GetStackParameters().disable_count++;
}
void EnableDispatch() {
- ASSERT(GetCurrentThread(kernel).GetDisableDispatchCount() > 0);
+ ASSERT(GetCurrentThread(m_kernel).GetDisableDispatchCount() > 0);
this->GetStackParameters().disable_count--;
}
@@ -515,7 +512,7 @@ public:
this->GetStackParameters().is_in_exception_handler = false;
}
- [[nodiscard]] bool IsInExceptionHandler() const {
+ bool IsInExceptionHandler() const {
return this->GetStackParameters().is_in_exception_handler;
}
@@ -527,11 +524,11 @@ public:
this->GetStackParameters().is_calling_svc = false;
}
- [[nodiscard]] bool IsCallingSvc() const {
+ bool IsCallingSvc() const {
return this->GetStackParameters().is_calling_svc;
}
- [[nodiscard]] u8 GetSvcId() const {
+ u8 GetSvcId() const {
return this->GetStackParameters().current_svc_id;
}
@@ -543,102 +540,94 @@ public:
this->GetStackParameters().dpc_flags &= ~static_cast<u8>(flag);
}
- [[nodiscard]] u8 GetDpc() const {
+ u8 GetDpc() const {
return this->GetStackParameters().dpc_flags;
}
- [[nodiscard]] bool HasDpc() const {
+ bool HasDpc() const {
return this->GetDpc() != 0;
}
void SetWaitReasonForDebugging(ThreadWaitReasonForDebugging reason) {
- wait_reason_for_debugging = reason;
+ m_wait_reason_for_debugging = reason;
}
- [[nodiscard]] ThreadWaitReasonForDebugging GetWaitReasonForDebugging() const {
- return wait_reason_for_debugging;
+ ThreadWaitReasonForDebugging GetWaitReasonForDebugging() const {
+ return m_wait_reason_for_debugging;
}
- [[nodiscard]] ThreadType GetThreadType() const {
- return thread_type;
+ ThreadType GetThreadType() const {
+ return m_thread_type;
}
- [[nodiscard]] bool IsDummyThread() const {
- return GetThreadType() == ThreadType::Dummy;
+ bool IsDummyThread() const {
+ return this->GetThreadType() == ThreadType::Dummy;
}
- void SetWaitObjectsForDebugging(const std::span<KSynchronizationObject*>& objects) {
- wait_objects_for_debugging.clear();
- wait_objects_for_debugging.reserve(objects.size());
- for (const auto& object : objects) {
- wait_objects_for_debugging.emplace_back(object);
- }
- }
+ void AddWaiter(KThread* thread);
- [[nodiscard]] const std::vector<KSynchronizationObject*>& GetWaitObjectsForDebugging() const {
- return wait_objects_for_debugging;
- }
+ void RemoveWaiter(KThread* thread);
- void SetMutexWaitAddressForDebugging(VAddr address) {
- mutex_wait_address_for_debugging = address;
- }
+ Result GetThreadContext3(Common::ScratchBuffer<u8>& out);
- [[nodiscard]] VAddr GetMutexWaitAddressForDebugging() const {
- return mutex_wait_address_for_debugging;
+ KThread* RemoveUserWaiterByKey(bool* out_has_waiters, KProcessAddress key) {
+ return this->RemoveWaiterByKey(out_has_waiters, key, false);
}
- [[nodiscard]] s32 GetIdealCoreForDebugging() const {
- return virtual_ideal_core_id;
+ KThread* RemoveKernelWaiterByKey(bool* out_has_waiters, KProcessAddress key) {
+ return this->RemoveWaiterByKey(out_has_waiters, key, true);
}
- void AddWaiter(KThread* thread);
-
- void RemoveWaiter(KThread* thread);
-
- [[nodiscard]] Result GetThreadContext3(std::vector<u8>& out);
-
- [[nodiscard]] KThread* RemoveWaiterByKey(s32* out_num_waiters, VAddr key);
+ KProcessAddress GetAddressKey() const {
+ return m_address_key;
+ }
- [[nodiscard]] VAddr GetAddressKey() const {
- return address_key;
+ u32 GetAddressKeyValue() const {
+ return m_address_key_value;
}
- [[nodiscard]] u32 GetAddressKeyValue() const {
- return address_key_value;
+ bool GetIsKernelAddressKey() const {
+ return m_is_kernel_address_key;
}
- void SetAddressKey(VAddr key) {
- address_key = key;
+ //! NB: intentional deviation from official kernel.
+ //
+ // Separate SetAddressKey into user and kernel versions
+ // to cope with arbitrary host pointers making their way
+ // into things.
+
+ void SetUserAddressKey(KProcessAddress key, u32 val) {
+ ASSERT(m_waiting_lock_info == nullptr);
+ m_address_key = key;
+ m_address_key_value = val;
+ m_is_kernel_address_key = false;
}
- void SetAddressKey(VAddr key, u32 val) {
- address_key = key;
- address_key_value = val;
+ void SetKernelAddressKey(KProcessAddress key) {
+ ASSERT(m_waiting_lock_info == nullptr);
+ m_address_key = key;
+ m_is_kernel_address_key = true;
}
void ClearWaitQueue() {
- wait_queue = nullptr;
+ m_wait_queue = nullptr;
}
void BeginWait(KThreadQueue* queue);
- void NotifyAvailable(KSynchronizationObject* signaled_object, Result wait_result_);
- void EndWait(Result wait_result_);
- void CancelWait(Result wait_result_, bool cancel_timer_task);
+ void NotifyAvailable(KSynchronizationObject* signaled_object, Result wait_result);
+ void EndWait(Result wait_result);
+ void CancelWait(Result wait_result, bool cancel_timer_task);
- [[nodiscard]] bool HasWaiters() const {
- return !waiter_list.empty();
+ s32 GetNumKernelWaiters() const {
+ return m_num_kernel_waiters;
}
- [[nodiscard]] s32 GetNumKernelWaiters() const {
- return num_kernel_waiters;
+ u64 GetConditionVariableKey() const {
+ return m_condvar_key;
}
- [[nodiscard]] u64 GetConditionVariableKey() const {
- return condvar_key;
- }
-
- [[nodiscard]] u64 GetAddressArbiterKey() const {
- return condvar_key;
+ u64 GetAddressArbiterKey() const {
+ return m_condvar_key;
}
// Dummy threads (used for HLE host threads) cannot wait based on the guest scheduler, and
@@ -649,20 +638,23 @@ public:
void DummyThreadBeginWait();
void DummyThreadEndWait();
- [[nodiscard]] uintptr_t GetArgument() const {
- return argument;
+ uintptr_t GetArgument() const {
+ return m_argument;
}
- [[nodiscard]] VAddr GetUserStackTop() const {
- return stack_top;
+ KProcessAddress GetUserStackTop() const {
+ return m_stack_top;
}
private:
+ KThread* RemoveWaiterByKey(bool* out_has_waiters, KProcessAddress key,
+ bool is_kernel_address_key);
+
static constexpr size_t PriorityInheritanceCountMax = 10;
union SyncObjectBuffer {
std::array<KSynchronizationObject*, Svc::ArgumentHandleCountMax> sync_objects{};
std::array<Handle,
- Svc::ArgumentHandleCountMax*(sizeof(KSynchronizationObject*) / sizeof(Handle))>
+ Svc::ArgumentHandleCountMax * (sizeof(KSynchronizationObject*) / sizeof(Handle))>
handles;
constexpr SyncObjectBuffer() {}
};
@@ -673,20 +665,18 @@ private:
u64 cv_key{};
s32 priority{};
- [[nodiscard]] constexpr u64 GetConditionVariableKey() const {
+ constexpr u64 GetConditionVariableKey() const {
return cv_key;
}
- [[nodiscard]] constexpr s32 GetPriority() const {
+ constexpr s32 GetPriority() const {
return priority;
}
};
template <typename T>
- requires(
- std::same_as<T, KThread> ||
- std::same_as<T, RedBlackKeyType>) static constexpr int Compare(const T& lhs,
- const KThread& rhs) {
+ requires(std::same_as<T, KThread> || std::same_as<T, RedBlackKeyType>)
+ static constexpr int Compare(const T& lhs, const KThread& rhs) {
const u64 l_key = lhs.GetConditionVariableKey();
const u64 r_key = rhs.GetConditionVariableKey();
@@ -703,134 +693,262 @@ private:
};
void AddWaiterImpl(KThread* thread);
-
void RemoveWaiterImpl(KThread* thread);
+ static void RestorePriority(KernelCore& kernel, KThread* thread);
void StartTermination();
-
void FinishTermination();
- [[nodiscard]] Result Initialize(KThreadFunction func, uintptr_t arg, VAddr user_stack_top,
- s32 prio, s32 virt_core, KProcess* owner, ThreadType type);
+ void IncreaseBasePriority(s32 priority);
- [[nodiscard]] static Result InitializeThread(KThread* thread, KThreadFunction func,
- uintptr_t arg, VAddr user_stack_top, s32 prio,
- s32 core, KProcess* owner, ThreadType type,
- std::function<void()>&& init_func);
+ Result Initialize(KThreadFunction func, uintptr_t arg, KProcessAddress user_stack_top, s32 prio,
+ s32 virt_core, KProcess* owner, ThreadType type);
- static void RestorePriority(KernelCore& kernel_ctx, KThread* thread);
+ static Result InitializeThread(KThread* thread, KThreadFunction func, uintptr_t arg,
+ KProcessAddress user_stack_top, s32 prio, s32 core,
+ KProcess* owner, ThreadType type,
+ std::function<void()>&& init_func);
// For core KThread implementation
- ThreadContext32 thread_context_32{};
- ThreadContext64 thread_context_64{};
- Common::IntrusiveRedBlackTreeNode condvar_arbiter_tree_node{};
- s32 priority{};
+ ThreadContext32 m_thread_context_32{};
+ ThreadContext64 m_thread_context_64{};
+ Common::IntrusiveRedBlackTreeNode m_condvar_arbiter_tree_node{};
+ s32 m_priority{};
using ConditionVariableThreadTreeTraits =
Common::IntrusiveRedBlackTreeMemberTraitsDeferredAssert<
- &KThread::condvar_arbiter_tree_node>;
+ &KThread::m_condvar_arbiter_tree_node>;
using ConditionVariableThreadTree =
ConditionVariableThreadTreeTraits::TreeType<ConditionVariableComparator>;
- ConditionVariableThreadTree* condvar_tree{};
- u64 condvar_key{};
- u64 virtual_affinity_mask{};
- KAffinityMask physical_affinity_mask{};
- u64 thread_id{};
- std::atomic<s64> cpu_time{};
- VAddr address_key{};
- KProcess* parent{};
- VAddr kernel_stack_top{};
- u32* light_ipc_data{};
- VAddr tls_address{};
- KLightLock activity_pause_lock;
- s64 schedule_count{};
- s64 last_scheduled_tick{};
- std::array<QueueEntry, Core::Hardware::NUM_CPU_CORES> per_core_priority_queue_entry{};
- KThreadQueue* wait_queue{};
- WaiterList waiter_list{};
- WaiterList pinned_waiter_list{};
- KThread* lock_owner{};
- u32 address_key_value{};
- u32 suspend_request_flags{};
- u32 suspend_allowed_flags{};
- s32 synced_index{};
- Result wait_result{ResultSuccess};
- s32 base_priority{};
- s32 physical_ideal_core_id{};
- s32 virtual_ideal_core_id{};
- s32 num_kernel_waiters{};
- s32 current_core_id{};
- s32 core_id{};
- KAffinityMask original_physical_affinity_mask{};
- s32 original_physical_ideal_core_id{};
- s32 num_core_migration_disables{};
- std::atomic<ThreadState> thread_state{};
- std::atomic<bool> termination_requested{};
- bool wait_cancelled{};
- bool cancellable{};
- bool signaled{};
- bool initialized{};
- bool debug_attached{};
- s8 priority_inheritance_count{};
- bool resource_limit_release_hint{};
- StackParameters stack_parameters{};
- Common::SpinLock context_guard{};
+
+private:
+ struct LockWithPriorityInheritanceComparator {
+ struct RedBlackKeyType {
+ s32 m_priority;
+
+ constexpr s32 GetPriority() const {
+ return m_priority;
+ }
+ };
+
+ template <typename T>
+ requires(std::same_as<T, KThread> || std::same_as<T, RedBlackKeyType>)
+ static constexpr int Compare(const T& lhs, const KThread& rhs) {
+ if (lhs.GetPriority() < rhs.GetPriority()) {
+ // Sort by priority.
+ return -1;
+ } else {
+ return 1;
+ }
+ }
+ };
+ static_assert(std::same_as<Common::RedBlackKeyType<LockWithPriorityInheritanceComparator, void>,
+ LockWithPriorityInheritanceComparator::RedBlackKeyType>);
+
+ using LockWithPriorityInheritanceThreadTreeTraits =
+ Common::IntrusiveRedBlackTreeMemberTraitsDeferredAssert<
+ &KThread::m_condvar_arbiter_tree_node>;
+ using LockWithPriorityInheritanceThreadTree =
+ ConditionVariableThreadTreeTraits::TreeType<LockWithPriorityInheritanceComparator>;
+
+public:
+ class LockWithPriorityInheritanceInfo
+ : public KSlabAllocated<LockWithPriorityInheritanceInfo>,
+ public Common::IntrusiveListBaseNode<LockWithPriorityInheritanceInfo> {
+ public:
+ explicit LockWithPriorityInheritanceInfo(KernelCore&) {}
+
+ static LockWithPriorityInheritanceInfo* Create(KernelCore& kernel,
+ KProcessAddress address_key,
+ bool is_kernel_address_key) {
+ // Create a new lock info.
+ auto* new_lock = LockWithPriorityInheritanceInfo::Allocate(kernel);
+ ASSERT(new_lock != nullptr);
+
+ // Set the new lock's address key.
+ new_lock->m_address_key = address_key;
+ new_lock->m_is_kernel_address_key = is_kernel_address_key;
+
+ return new_lock;
+ }
+
+ void SetOwner(KThread* new_owner) {
+ // Set new owner.
+ m_owner = new_owner;
+ }
+
+ void AddWaiter(KThread* waiter) {
+ // Insert the waiter.
+ m_tree.insert(*waiter);
+ m_waiter_count++;
+
+ waiter->SetWaitingLockInfo(this);
+ }
+
+ bool RemoveWaiter(KThread* waiter) {
+ m_tree.erase(m_tree.iterator_to(*waiter));
+
+ waiter->SetWaitingLockInfo(nullptr);
+
+ return (--m_waiter_count) == 0;
+ }
+
+ KThread* GetHighestPriorityWaiter() {
+ return std::addressof(m_tree.front());
+ }
+ const KThread* GetHighestPriorityWaiter() const {
+ return std::addressof(m_tree.front());
+ }
+
+ LockWithPriorityInheritanceThreadTree& GetThreadTree() {
+ return m_tree;
+ }
+ const LockWithPriorityInheritanceThreadTree& GetThreadTree() const {
+ return m_tree;
+ }
+
+ KProcessAddress GetAddressKey() const {
+ return m_address_key;
+ }
+ bool GetIsKernelAddressKey() const {
+ return m_is_kernel_address_key;
+ }
+ KThread* GetOwner() const {
+ return m_owner;
+ }
+ u32 GetWaiterCount() const {
+ return m_waiter_count;
+ }
+
+ private:
+ LockWithPriorityInheritanceThreadTree m_tree{};
+ KProcessAddress m_address_key{};
+ KThread* m_owner{};
+ u32 m_waiter_count{};
+ bool m_is_kernel_address_key{};
+ };
+
+ void SetWaitingLockInfo(LockWithPriorityInheritanceInfo* lock) {
+ m_waiting_lock_info = lock;
+ }
+
+ LockWithPriorityInheritanceInfo* GetWaitingLockInfo() {
+ return m_waiting_lock_info;
+ }
+
+ void AddHeldLock(LockWithPriorityInheritanceInfo* lock_info);
+ LockWithPriorityInheritanceInfo* FindHeldLock(KProcessAddress address_key,
+ bool is_kernel_address_key);
+
+private:
+ using LockWithPriorityInheritanceInfoList =
+ Common::IntrusiveListBaseTraits<LockWithPriorityInheritanceInfo>::ListType;
+
+ ConditionVariableThreadTree* m_condvar_tree{};
+ u64 m_condvar_key{};
+ u64 m_virtual_affinity_mask{};
+ KAffinityMask m_physical_affinity_mask{};
+ u64 m_thread_id{};
+ std::atomic<s64> m_cpu_time{};
+ KProcessAddress m_address_key{};
+ KProcess* m_parent{};
+ KVirtualAddress m_kernel_stack_top{};
+ u32* m_light_ipc_data{};
+ KProcessAddress m_tls_address{};
+ KLightLock m_activity_pause_lock;
+ s64 m_schedule_count{};
+ s64 m_last_scheduled_tick{};
+ std::array<QueueEntry, Core::Hardware::NUM_CPU_CORES> m_per_core_priority_queue_entry{};
+ KThreadQueue* m_wait_queue{};
+ LockWithPriorityInheritanceInfoList m_held_lock_info_list{};
+ LockWithPriorityInheritanceInfo* m_waiting_lock_info{};
+ WaiterList m_pinned_waiter_list{};
+ u32 m_address_key_value{};
+ u32 m_suspend_request_flags{};
+ u32 m_suspend_allowed_flags{};
+ s32 m_synced_index{};
+ Result m_wait_result{ResultSuccess};
+ s32 m_base_priority{};
+ s32 m_physical_ideal_core_id{};
+ s32 m_virtual_ideal_core_id{};
+ s32 m_num_kernel_waiters{};
+ s32 m_current_core_id{};
+ s32 m_core_id{};
+ KAffinityMask m_original_physical_affinity_mask{};
+ s32 m_original_physical_ideal_core_id{};
+ s32 m_num_core_migration_disables{};
+ std::atomic<ThreadState> m_thread_state{};
+ std::atomic<bool> m_termination_requested{};
+ bool m_wait_cancelled{};
+ bool m_cancellable{};
+ bool m_signaled{};
+ bool m_initialized{};
+ bool m_debug_attached{};
+ s8 m_priority_inheritance_count{};
+ bool m_resource_limit_release_hint{};
+ bool m_is_kernel_address_key{};
+ StackParameters m_stack_parameters{};
+ Common::SpinLock m_context_guard{};
// For emulation
- std::shared_ptr<Common::Fiber> host_context{};
- bool is_single_core{};
- ThreadType thread_type{};
- StepState step_state{};
- std::atomic<bool> dummy_thread_runnable{true};
+ std::shared_ptr<Common::Fiber> m_host_context{};
+ ThreadType m_thread_type{};
+ StepState m_step_state{};
+ bool m_dummy_thread_runnable{true};
+ std::mutex m_dummy_thread_mutex{};
+ std::condition_variable m_dummy_thread_cv{};
// For debugging
- std::vector<KSynchronizationObject*> wait_objects_for_debugging;
- VAddr mutex_wait_address_for_debugging{};
- ThreadWaitReasonForDebugging wait_reason_for_debugging{};
- uintptr_t argument{};
- VAddr stack_top{};
+ std::vector<KSynchronizationObject*> m_wait_objects_for_debugging{};
+ KProcessAddress m_mutex_wait_address_for_debugging{};
+ ThreadWaitReasonForDebugging m_wait_reason_for_debugging{};
+ uintptr_t m_argument{};
+ KProcessAddress m_stack_top{};
public:
using ConditionVariableThreadTreeType = ConditionVariableThreadTree;
- void SetConditionVariable(ConditionVariableThreadTree* tree, VAddr address, u64 cv_key,
- u32 value) {
- condvar_tree = tree;
- condvar_key = cv_key;
- address_key = address;
- address_key_value = value;
+ void SetConditionVariable(ConditionVariableThreadTree* tree, KProcessAddress address,
+ u64 cv_key, u32 value) {
+ ASSERT(m_waiting_lock_info == nullptr);
+ m_condvar_tree = tree;
+ m_condvar_key = cv_key;
+ m_address_key = address;
+ m_address_key_value = value;
+ m_is_kernel_address_key = false;
}
void ClearConditionVariable() {
- condvar_tree = nullptr;
+ m_condvar_tree = nullptr;
}
- [[nodiscard]] bool IsWaitingForConditionVariable() const {
- return condvar_tree != nullptr;
+ bool IsWaitingForConditionVariable() const {
+ return m_condvar_tree != nullptr;
}
void SetAddressArbiter(ConditionVariableThreadTree* tree, u64 address) {
- condvar_tree = tree;
- condvar_key = address;
+ ASSERT(m_waiting_lock_info == nullptr);
+ m_condvar_tree = tree;
+ m_condvar_key = address;
}
void ClearAddressArbiter() {
- condvar_tree = nullptr;
+ m_condvar_tree = nullptr;
}
- [[nodiscard]] bool IsWaitingForAddressArbiter() const {
- return condvar_tree != nullptr;
+ bool IsWaitingForAddressArbiter() const {
+ return m_condvar_tree != nullptr;
}
- [[nodiscard]] ConditionVariableThreadTree* GetConditionVariableTree() const {
- return condvar_tree;
+ ConditionVariableThreadTree* GetConditionVariableTree() const {
+ return m_condvar_tree;
}
};
class KScopedDisableDispatch {
public:
- [[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
+ explicit KScopedDisableDispatch(KernelCore& kernel) : m_kernel{kernel} {
// If we are shutting down the kernel, none of this is relevant anymore.
- if (kernel.IsShuttingDown()) {
+ if (m_kernel.IsShuttingDown()) {
return;
}
GetCurrentThread(kernel).DisableDispatch();
@@ -839,7 +957,7 @@ public:
~KScopedDisableDispatch();
private:
- KernelCore& kernel;
+ KernelCore& m_kernel;
};
inline void KTimerTask::OnTimer() {
diff --git a/src/core/hle/kernel/k_thread_local_page.cpp b/src/core/hle/kernel/k_thread_local_page.cpp
index 563560114..b4a1e3cdb 100644
--- a/src/core/hle/kernel/k_thread_local_page.cpp
+++ b/src/core/hle/kernel/k_thread_local_page.cpp
@@ -16,7 +16,7 @@ namespace Kernel {
Result KThreadLocalPage::Initialize(KernelCore& kernel, KProcess* process) {
// Set that this process owns us.
m_owner = process;
- m_kernel = &kernel;
+ m_kernel = std::addressof(kernel);
// Allocate a new page.
KPageBuffer* page_buf = KPageBuffer::Allocate(kernel);
@@ -37,7 +37,7 @@ Result KThreadLocalPage::Initialize(KernelCore& kernel, KProcess* process) {
Result KThreadLocalPage::Finalize() {
// Get the physical address of the page.
- const PAddr phys_addr = m_owner->PageTable().GetPhysicalAddr(m_virt_addr);
+ const KPhysicalAddress phys_addr = m_owner->PageTable().GetPhysicalAddr(m_virt_addr);
ASSERT(phys_addr);
// Unmap the page.
@@ -49,7 +49,7 @@ Result KThreadLocalPage::Finalize() {
return ResultSuccess;
}
-VAddr KThreadLocalPage::Reserve() {
+KProcessAddress KThreadLocalPage::Reserve() {
for (size_t i = 0; i < m_is_region_free.size(); i++) {
if (m_is_region_free[i]) {
m_is_region_free[i] = false;
@@ -60,7 +60,7 @@ VAddr KThreadLocalPage::Reserve() {
return 0;
}
-void KThreadLocalPage::Release(VAddr addr) {
+void KThreadLocalPage::Release(KProcessAddress addr) {
m_is_region_free[this->GetRegionIndex(addr)] = true;
}
diff --git a/src/core/hle/kernel/k_thread_local_page.h b/src/core/hle/kernel/k_thread_local_page.h
index fe0cff084..813f32a7e 100644
--- a/src/core/hle/kernel/k_thread_local_page.h
+++ b/src/core/hle/kernel/k_thread_local_page.h
@@ -27,19 +27,20 @@ public:
static_assert(RegionsPerPage > 0);
public:
- constexpr explicit KThreadLocalPage(KernelCore&, VAddr addr = {}) : m_virt_addr(addr) {
+ constexpr explicit KThreadLocalPage(KernelCore&, KProcessAddress addr = {})
+ : m_virt_addr(addr) {
m_is_region_free.fill(true);
}
- constexpr VAddr GetAddress() const {
+ constexpr KProcessAddress GetAddress() const {
return m_virt_addr;
}
Result Initialize(KernelCore& kernel, KProcess* process);
Result Finalize();
- VAddr Reserve();
- void Release(VAddr addr);
+ KProcessAddress Reserve();
+ void Release(KProcessAddress addr);
bool IsAllUsed() const {
return std::ranges::all_of(m_is_region_free.begin(), m_is_region_free.end(),
@@ -60,7 +61,7 @@ public:
}
public:
- using RedBlackKeyType = VAddr;
+ using RedBlackKeyType = KProcessAddress;
static constexpr RedBlackKeyType GetRedBlackKey(const RedBlackKeyType& v) {
return v;
@@ -70,12 +71,10 @@ public:
}
template <typename T>
- requires(std::same_as<T, KThreadLocalPage> ||
- std::same_as<T, RedBlackKeyType>) static constexpr int Compare(const T& lhs,
- const KThreadLocalPage&
- rhs) {
- const VAddr lval = GetRedBlackKey(lhs);
- const VAddr rval = GetRedBlackKey(rhs);
+ requires(std::same_as<T, KThreadLocalPage> || std::same_as<T, RedBlackKeyType>)
+ static constexpr int Compare(const T& lhs, const KThreadLocalPage& rhs) {
+ const KProcessAddress lval = GetRedBlackKey(lhs);
+ const KProcessAddress rval = GetRedBlackKey(rhs);
if (lval < rval) {
return -1;
@@ -87,22 +86,22 @@ public:
}
private:
- constexpr VAddr GetRegionAddress(size_t i) const {
+ constexpr KProcessAddress GetRegionAddress(size_t i) const {
return this->GetAddress() + i * Svc::ThreadLocalRegionSize;
}
- constexpr bool Contains(VAddr addr) const {
+ constexpr bool Contains(KProcessAddress addr) const {
return this->GetAddress() <= addr && addr < this->GetAddress() + PageSize;
}
- constexpr size_t GetRegionIndex(VAddr addr) const {
- ASSERT(Common::IsAligned(addr, Svc::ThreadLocalRegionSize));
+ constexpr size_t GetRegionIndex(KProcessAddress addr) const {
+ ASSERT(Common::IsAligned(GetInteger(addr), Svc::ThreadLocalRegionSize));
ASSERT(this->Contains(addr));
return (addr - this->GetAddress()) / Svc::ThreadLocalRegionSize;
}
private:
- VAddr m_virt_addr{};
+ KProcessAddress m_virt_addr{};
KProcess* m_owner{};
KernelCore* m_kernel{};
std::array<bool, RegionsPerPage> m_is_region_free{};
diff --git a/src/core/hle/kernel/k_thread_queue.cpp b/src/core/hle/kernel/k_thread_queue.cpp
index 5f1dc97eb..61488f4ce 100644
--- a/src/core/hle/kernel/k_thread_queue.cpp
+++ b/src/core/hle/kernel/k_thread_queue.cpp
@@ -7,9 +7,10 @@
namespace Kernel {
-void KThreadQueue::NotifyAvailable([[maybe_unused]] KThread* waiting_thread,
- [[maybe_unused]] KSynchronizationObject* signaled_object,
- [[maybe_unused]] Result wait_result) {}
+void KThreadQueue::NotifyAvailable(KThread* waiting_thread, KSynchronizationObject* signaled_object,
+ Result wait_result) {
+ UNREACHABLE();
+}
void KThreadQueue::EndWait(KThread* waiting_thread, Result wait_result) {
// Set the thread's wait result.
@@ -22,7 +23,9 @@ void KThreadQueue::EndWait(KThread* waiting_thread, Result wait_result) {
waiting_thread->ClearWaitQueue();
// Cancel the thread task.
- kernel.HardwareTimer().CancelTask(waiting_thread);
+ if (m_hardware_timer != nullptr) {
+ m_hardware_timer->CancelTask(waiting_thread);
+ }
}
void KThreadQueue::CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task) {
@@ -36,12 +39,13 @@ void KThreadQueue::CancelWait(KThread* waiting_thread, Result wait_result, bool
waiting_thread->ClearWaitQueue();
// Cancel the thread task.
- if (cancel_timer_task) {
- kernel.HardwareTimer().CancelTask(waiting_thread);
+ if (cancel_timer_task && m_hardware_timer != nullptr) {
+ m_hardware_timer->CancelTask(waiting_thread);
}
}
-void KThreadQueueWithoutEndWait::EndWait([[maybe_unused]] KThread* waiting_thread,
- [[maybe_unused]] Result wait_result) {}
+void KThreadQueueWithoutEndWait::EndWait(KThread* waiting_thread, Result wait_result) {
+ UNREACHABLE();
+}
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_thread_queue.h b/src/core/hle/kernel/k_thread_queue.h
index 8d76ece81..117af0919 100644
--- a/src/core/hle/kernel/k_thread_queue.h
+++ b/src/core/hle/kernel/k_thread_queue.h
@@ -8,24 +8,30 @@
namespace Kernel {
+class KHardwareTimer;
+
class KThreadQueue {
public:
- explicit KThreadQueue(KernelCore& kernel_) : kernel{kernel_} {}
+ explicit KThreadQueue(KernelCore& kernel) : m_kernel{kernel}, m_hardware_timer{} {}
virtual ~KThreadQueue() = default;
+ void SetHardwareTimer(KHardwareTimer* timer) {
+ m_hardware_timer = timer;
+ }
+
virtual void NotifyAvailable(KThread* waiting_thread, KSynchronizationObject* signaled_object,
Result wait_result);
virtual void EndWait(KThread* waiting_thread, Result wait_result);
virtual void CancelWait(KThread* waiting_thread, Result wait_result, bool cancel_timer_task);
private:
- KernelCore& kernel;
- KThread::WaiterList wait_list{};
+ KernelCore& m_kernel;
+ KHardwareTimer* m_hardware_timer{};
};
class KThreadQueueWithoutEndWait : public KThreadQueue {
public:
- explicit KThreadQueueWithoutEndWait(KernelCore& kernel_) : KThreadQueue(kernel_) {}
+ explicit KThreadQueueWithoutEndWait(KernelCore& kernel) : KThreadQueue(kernel) {}
void EndWait(KThread* waiting_thread, Result wait_result) override final;
};
diff --git a/src/core/hle/kernel/k_transfer_memory.cpp b/src/core/hle/kernel/k_transfer_memory.cpp
index 9f34c2d46..13d34125c 100644
--- a/src/core/hle/kernel/k_transfer_memory.cpp
+++ b/src/core/hle/kernel/k_transfer_memory.cpp
@@ -8,32 +8,29 @@
namespace Kernel {
-KTransferMemory::KTransferMemory(KernelCore& kernel_)
- : KAutoObjectWithSlabHeapAndContainer{kernel_} {}
+KTransferMemory::KTransferMemory(KernelCore& kernel)
+ : KAutoObjectWithSlabHeapAndContainer{kernel} {}
KTransferMemory::~KTransferMemory() = default;
-Result KTransferMemory::Initialize(VAddr address_, std::size_t size_,
- Svc::MemoryPermission owner_perm_) {
+Result KTransferMemory::Initialize(KProcessAddress address, std::size_t size,
+ Svc::MemoryPermission owner_perm) {
// Set members.
- owner = kernel.CurrentProcess();
+ m_owner = GetCurrentProcessPointer(m_kernel);
// TODO(bunnei): Lock for transfer memory
// Set remaining tracking members.
- owner->Open();
- owner_perm = owner_perm_;
- address = address_;
- size = size_;
- is_initialized = true;
+ m_owner->Open();
+ m_owner_perm = owner_perm;
+ m_address = address;
+ m_size = size;
+ m_is_initialized = true;
- return ResultSuccess;
+ R_SUCCEED();
}
-void KTransferMemory::Finalize() {
- // Perform inherited finalization.
- KAutoObjectWithSlabHeapAndContainer<KTransferMemory, KAutoObjectWithList>::Finalize();
-}
+void KTransferMemory::Finalize() {}
void KTransferMemory::PostDestroy(uintptr_t arg) {
KProcess* owner = reinterpret_cast<KProcess*>(arg);
diff --git a/src/core/hle/kernel/k_transfer_memory.h b/src/core/hle/kernel/k_transfer_memory.h
index 85d508ee7..54f97ccb4 100644
--- a/src/core/hle/kernel/k_transfer_memory.h
+++ b/src/core/hle/kernel/k_transfer_memory.h
@@ -23,41 +23,41 @@ class KTransferMemory final
KERNEL_AUTOOBJECT_TRAITS(KTransferMemory, KAutoObject);
public:
- explicit KTransferMemory(KernelCore& kernel_);
+ explicit KTransferMemory(KernelCore& kernel);
~KTransferMemory() override;
- Result Initialize(VAddr address_, std::size_t size_, Svc::MemoryPermission owner_perm_);
+ Result Initialize(KProcessAddress address, std::size_t size, Svc::MemoryPermission owner_perm);
void Finalize() override;
bool IsInitialized() const override {
- return is_initialized;
+ return m_is_initialized;
}
uintptr_t GetPostDestroyArgument() const override {
- return reinterpret_cast<uintptr_t>(owner);
+ return reinterpret_cast<uintptr_t>(m_owner);
}
static void PostDestroy(uintptr_t arg);
KProcess* GetOwner() const override {
- return owner;
+ return m_owner;
}
- VAddr GetSourceAddress() const {
- return address;
+ KProcessAddress GetSourceAddress() const {
+ return m_address;
}
size_t GetSize() const {
- return is_initialized ? size : 0;
+ return m_is_initialized ? m_size : 0;
}
private:
- KProcess* owner{};
- VAddr address{};
- Svc::MemoryPermission owner_perm{};
- size_t size{};
- bool is_initialized{};
+ KProcess* m_owner{};
+ KProcessAddress m_address{};
+ Svc::MemoryPermission m_owner_perm{};
+ size_t m_size{};
+ bool m_is_initialized{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/k_typed_address.h b/src/core/hle/kernel/k_typed_address.h
new file mode 100644
index 000000000..d57535ba0
--- /dev/null
+++ b/src/core/hle/kernel/k_typed_address.h
@@ -0,0 +1,12 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/typed_address.h"
+
+namespace Kernel {
+
+using KPhysicalAddress = Common::PhysicalAddress;
+using KVirtualAddress = Common::VirtualAddress;
+using KProcessAddress = Common::ProcessAddress;
+
+} // namespace Kernel
diff --git a/src/core/hle/kernel/k_worker_task.h b/src/core/hle/kernel/k_worker_task.h
index ef591d831..9a230c03c 100644
--- a/src/core/hle/kernel/k_worker_task.h
+++ b/src/core/hle/kernel/k_worker_task.h
@@ -9,7 +9,7 @@ namespace Kernel {
class KWorkerTask : public KSynchronizationObject {
public:
- explicit KWorkerTask(KernelCore& kernel_);
+ explicit KWorkerTask(KernelCore& kernel);
void DoWorkerTask();
};
diff --git a/src/core/hle/kernel/k_worker_task_manager.cpp b/src/core/hle/kernel/k_worker_task_manager.cpp
index 04042bf8f..8ead39591 100644
--- a/src/core/hle/kernel/k_worker_task_manager.cpp
+++ b/src/core/hle/kernel/k_worker_task_manager.cpp
@@ -10,7 +10,7 @@
namespace Kernel {
-KWorkerTask::KWorkerTask(KernelCore& kernel_) : KSynchronizationObject{kernel_} {}
+KWorkerTask::KWorkerTask(KernelCore& kernel) : KSynchronizationObject{kernel} {}
void KWorkerTask::DoWorkerTask() {
if (auto* const thread = this->DynamicCast<KThread*>(); thread != nullptr) {
diff --git a/src/core/hle/kernel/k_worker_task_manager.h b/src/core/hle/kernel/k_worker_task_manager.h
index f6618883e..8745a4ce2 100644
--- a/src/core/hle/kernel/k_worker_task_manager.h
+++ b/src/core/hle/kernel/k_worker_task_manager.h
@@ -20,7 +20,7 @@ public:
KWorkerTaskManager();
- static void AddTask(KernelCore& kernel_, WorkerType type, KWorkerTask* task);
+ static void AddTask(KernelCore& kernel, WorkerType type, KWorkerTask* task);
private:
void AddTask(KernelCore& kernel, KWorkerTask* task);
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 1fb25f221..f33600ca5 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -29,18 +29,20 @@
#include "core/hle/kernel/k_hardware_timer.h"
#include "core/hle/kernel/k_memory_layout.h"
#include "core/hle/kernel/k_memory_manager.h"
+#include "core/hle/kernel/k_object_name.h"
#include "core/hle/kernel/k_page_buffer.h"
#include "core/hle/kernel/k_process.h"
#include "core/hle/kernel/k_resource_limit.h"
#include "core/hle/kernel/k_scheduler.h"
+#include "core/hle/kernel/k_scoped_resource_reservation.h"
#include "core/hle/kernel/k_shared_memory.h"
#include "core/hle/kernel/k_system_resource.h"
#include "core/hle/kernel/k_thread.h"
#include "core/hle/kernel/k_worker_task_manager.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/physical_core.h"
-#include "core/hle/kernel/service_thread.h"
#include "core/hle/result.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/sm/sm.h"
#include "core/memory.h"
@@ -54,9 +56,7 @@ struct KernelCore::Impl {
static constexpr size_t BlockInfoSlabHeapSize = 4000;
static constexpr size_t ReservedDynamicPageCount = 64;
- explicit Impl(Core::System& system_, KernelCore& kernel_)
- : service_threads_manager{1, "ServiceThreadsManager"},
- service_thread_barrier{2}, system{system_} {}
+ explicit Impl(Core::System& system_, KernelCore& kernel_) : system{system_} {}
void SetMulticore(bool is_multi) {
is_multicore = is_multi;
@@ -84,6 +84,7 @@ struct KernelCore::Impl {
InitializeShutdownThreads();
InitializePhysicalCores();
InitializePreemption(kernel);
+ InitializeGlobalData(kernel);
// Initialize the Dynamic Slab Heaps.
{
@@ -94,21 +95,19 @@ struct KernelCore::Impl {
pt_heap_region.GetSize());
}
- InitializeHackSharedMemory();
+ InitializeHackSharedMemory(kernel);
RegisterHostThread(nullptr);
-
- default_service_thread = &CreateServiceThread(kernel, "DefaultServiceThread");
}
void InitializeCores() {
for (u32 core_id = 0; core_id < Core::Hardware::NUM_CPU_CORES; core_id++) {
- cores[core_id]->Initialize((*current_process).Is64BitProcess());
- system.Memory().SetCurrentPageTable(*current_process, core_id);
+ cores[core_id]->Initialize((*application_process).Is64BitProcess());
+ system.ApplicationMemory().SetCurrentPageTable(*application_process, core_id);
}
}
- void CloseCurrentProcess() {
- KProcess* old_process = current_process.exchange(nullptr);
+ void CloseApplicationProcess() {
+ KProcess* old_process = application_process.exchange(nullptr);
if (old_process == nullptr) {
return;
}
@@ -138,11 +137,6 @@ struct KernelCore::Impl {
preemption_event = nullptr;
- for (auto& iter : named_ports) {
- iter.second->Close();
- }
- named_ports.clear();
-
exclusive_monitor.reset();
// Cleanup persistent kernel objects
@@ -182,7 +176,7 @@ struct KernelCore::Impl {
}
}
- CloseCurrentProcess();
+ CloseApplicationProcess();
// Track kernel objects that were not freed on shutdown
{
@@ -194,6 +188,8 @@ struct KernelCore::Impl {
}
}
+ object_name_global_data.reset();
+
// Ensure that the object list container is finalized and properly shutdown.
global_object_list_container->Finalize();
global_object_list_container.reset();
@@ -203,13 +199,14 @@ struct KernelCore::Impl {
}
void CloseServices() {
- // Ensures all service threads gracefully shutdown.
- ClearServiceThreads();
+ // Ensures all servers gracefully shutdown.
+ std::scoped_lock lk{server_lock};
+ server_managers.clear();
}
void InitializePhysicalCores() {
exclusive_monitor =
- Core::MakeExclusiveMonitor(system.Memory(), Core::Hardware::NUM_CPU_CORES);
+ Core::MakeExclusiveMonitor(system.ApplicationMemory(), Core::Hardware::NUM_CPU_CORES);
for (u32 i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) {
const s32 core{static_cast<s32>(i)};
@@ -217,13 +214,14 @@ struct KernelCore::Impl {
cores[i] = std::make_unique<Kernel::PhysicalCore>(i, system, *schedulers[i]);
auto* main_thread{Kernel::KThread::Create(system.Kernel())};
- main_thread->SetName(fmt::format("MainThread:{}", core));
main_thread->SetCurrentCore(core);
ASSERT(Kernel::KThread::InitializeMainThread(system, main_thread, core).IsSuccess());
+ KThread::Register(system.Kernel(), main_thread);
auto* idle_thread{Kernel::KThread::Create(system.Kernel())};
idle_thread->SetCurrentCore(core);
ASSERT(Kernel::KThread::InitializeIdleThread(system, idle_thread, core).IsSuccess());
+ KThread::Register(system.Kernel(), idle_thread);
schedulers[i]->Initialize(main_thread, idle_thread, core);
}
@@ -234,6 +232,7 @@ struct KernelCore::Impl {
const Core::Timing::CoreTiming& core_timing) {
system_resource_limit = KResourceLimit::Create(system.Kernel());
system_resource_limit->Initialize(&core_timing);
+ KResourceLimit::Register(kernel, system_resource_limit);
const auto sizes{memory_layout->GetTotalAndKernelMemorySizes()};
const auto total_size{sizes.first};
@@ -275,9 +274,9 @@ struct KernelCore::Impl {
system.CoreTiming().ScheduleLoopingEvent(time_interval, time_interval, preemption_event);
}
- void InitializeResourceManagers(KernelCore& kernel, VAddr address, size_t size) {
+ void InitializeResourceManagers(KernelCore& kernel, KVirtualAddress address, size_t size) {
// Ensure that the buffer is suitable for our use.
- ASSERT(Common::IsAligned(address, PageSize));
+ ASSERT(Common::IsAligned(GetInteger(address), PageSize));
ASSERT(Common::IsAligned(size, PageSize));
// Ensure that we have space for our reference counts.
@@ -359,55 +358,52 @@ struct KernelCore::Impl {
ASSERT(KThread::InitializeHighPriorityThread(system, shutdown_threads[core_id], {}, {},
core_id)
.IsSuccess());
- shutdown_threads[core_id]->SetName(fmt::format("SuspendThread:{}", core_id));
+ KThread::Register(system.Kernel(), shutdown_threads[core_id]);
}
}
- void MakeCurrentProcess(KProcess* process) {
- current_process = process;
+ void InitializeGlobalData(KernelCore& kernel) {
+ object_name_global_data = std::make_unique<KObjectNameGlobalData>(kernel);
}
- static inline thread_local u32 host_thread_id = UINT32_MAX;
+ void MakeApplicationProcess(KProcess* process) {
+ application_process = process;
+ }
- /// Gets the host thread ID for the caller, allocating a new one if this is the first time
- u32 GetHostThreadId(std::size_t core_id) {
- if (host_thread_id == UINT32_MAX) {
- // The first four slots are reserved for CPU core threads
- ASSERT(core_id < Core::Hardware::NUM_CPU_CORES);
- host_thread_id = static_cast<u32>(core_id);
- }
+ static inline thread_local u8 host_thread_id = UINT8_MAX;
+
+ /// Sets the host thread ID for the caller.
+ u32 SetHostThreadId(std::size_t core_id) {
+ // This should only be called during core init.
+ ASSERT(host_thread_id == UINT8_MAX);
+
+ // The first four slots are reserved for CPU core threads
+ ASSERT(core_id < Core::Hardware::NUM_CPU_CORES);
+ host_thread_id = static_cast<u8>(core_id);
return host_thread_id;
}
- /// Gets the host thread ID for the caller, allocating a new one if this is the first time
- u32 GetHostThreadId() {
- if (host_thread_id == UINT32_MAX) {
- host_thread_id = next_host_thread_id++;
- }
+ /// Gets the host thread ID for the caller
+ u32 GetHostThreadId() const {
return host_thread_id;
}
// Gets the dummy KThread for the caller, allocating a new one if this is the first time
KThread* GetHostDummyThread(KThread* existing_thread) {
- auto initialize = [this](KThread* thread) {
+ const auto initialize{[](KThread* thread) {
ASSERT(KThread::InitializeDummyThread(thread, nullptr).IsSuccess());
- thread->SetName(fmt::format("DummyThread:{}", GetHostThreadId()));
return thread;
- };
+ }};
thread_local KThread raw_thread{system.Kernel()};
- thread_local KThread* thread = nullptr;
- if (thread == nullptr) {
- thread = (existing_thread == nullptr) ? initialize(&raw_thread) : existing_thread;
- }
-
+ thread_local KThread* thread = existing_thread ? existing_thread : initialize(&raw_thread);
return thread;
}
/// Registers a CPU core thread by allocating a host thread ID for it
void RegisterCoreThread(std::size_t core_id) {
ASSERT(core_id < Core::Hardware::NUM_CPU_CORES);
- const auto this_id = GetHostThreadId(core_id);
+ const auto this_id = SetHostThreadId(core_id);
if (!is_multicore) {
single_core_thread_id = this_id;
}
@@ -415,7 +411,6 @@ struct KernelCore::Impl {
/// Registers a new host thread by allocating a host thread ID for it
void RegisterHostThread(KThread* existing_thread) {
- [[maybe_unused]] const auto this_id = GetHostThreadId();
[[maybe_unused]] const auto dummy_thread = GetHostDummyThread(existing_thread);
}
@@ -445,11 +440,9 @@ struct KernelCore::Impl {
static inline thread_local KThread* current_thread{nullptr};
KThread* GetCurrentEmuThread() {
- const auto thread_id = GetCurrentHostThreadID();
- if (thread_id >= Core::Hardware::NUM_CPU_CORES) {
- return GetHostDummyThread(nullptr);
+ if (!current_thread) {
+ current_thread = GetHostDummyThread(nullptr);
}
-
return current_thread;
}
@@ -473,29 +466,30 @@ struct KernelCore::Impl {
KernelPhysicalAddressSpaceBase + KernelPhysicalAddressSpaceSize - 1);
// Save start and end for ease of use.
- const VAddr code_start_virt_addr = KernelVirtualAddressCodeBase;
- const VAddr code_end_virt_addr = KernelVirtualAddressCodeEnd;
+ constexpr KVirtualAddress code_start_virt_addr = KernelVirtualAddressCodeBase;
+ constexpr KVirtualAddress code_end_virt_addr = KernelVirtualAddressCodeEnd;
// Setup the containing kernel region.
constexpr size_t KernelRegionSize = 1_GiB;
constexpr size_t KernelRegionAlign = 1_GiB;
- constexpr VAddr kernel_region_start =
- Common::AlignDown(code_start_virt_addr, KernelRegionAlign);
+ constexpr KVirtualAddress kernel_region_start =
+ Common::AlignDown(GetInteger(code_start_virt_addr), KernelRegionAlign);
size_t kernel_region_size = KernelRegionSize;
if (!(kernel_region_start + KernelRegionSize - 1 <= KernelVirtualAddressSpaceLast)) {
- kernel_region_size = KernelVirtualAddressSpaceEnd - kernel_region_start;
+ kernel_region_size = KernelVirtualAddressSpaceEnd - GetInteger(kernel_region_start);
}
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- kernel_region_start, kernel_region_size, KMemoryRegionType_Kernel));
+ GetInteger(kernel_region_start), kernel_region_size, KMemoryRegionType_Kernel));
// Setup the code region.
constexpr size_t CodeRegionAlign = PageSize;
- constexpr VAddr code_region_start =
- Common::AlignDown(code_start_virt_addr, CodeRegionAlign);
- constexpr VAddr code_region_end = Common::AlignUp(code_end_virt_addr, CodeRegionAlign);
+ constexpr KVirtualAddress code_region_start =
+ Common::AlignDown(GetInteger(code_start_virt_addr), CodeRegionAlign);
+ constexpr KVirtualAddress code_region_end =
+ Common::AlignUp(GetInteger(code_end_virt_addr), CodeRegionAlign);
constexpr size_t code_region_size = code_region_end - code_region_start;
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- code_region_start, code_region_size, KMemoryRegionType_KernelCode));
+ GetInteger(code_region_start), code_region_size, KMemoryRegionType_KernelCode));
// Setup board-specific device physical regions.
Init::SetupDevicePhysicalMemoryRegions(*memory_layout);
@@ -531,11 +525,11 @@ struct KernelCore::Impl {
ASSERT(misc_region_size > 0);
// Setup the misc region.
- const VAddr misc_region_start =
+ const KVirtualAddress misc_region_start =
memory_layout->GetVirtualMemoryRegionTree().GetRandomAlignedRegion(
misc_region_size, MiscRegionAlign, KMemoryRegionType_Kernel);
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- misc_region_start, misc_region_size, KMemoryRegionType_KernelMisc));
+ GetInteger(misc_region_start), misc_region_size, KMemoryRegionType_KernelMisc));
// Determine if we'll use extra thread resources.
const bool use_extra_resources = KSystemControl::Init::ShouldIncreaseThreadResourceLimit();
@@ -543,11 +537,11 @@ struct KernelCore::Impl {
// Setup the stack region.
constexpr size_t StackRegionSize = 14_MiB;
constexpr size_t StackRegionAlign = KernelAslrAlignment;
- const VAddr stack_region_start =
+ const KVirtualAddress stack_region_start =
memory_layout->GetVirtualMemoryRegionTree().GetRandomAlignedRegion(
StackRegionSize, StackRegionAlign, KMemoryRegionType_Kernel);
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- stack_region_start, StackRegionSize, KMemoryRegionType_KernelStack));
+ GetInteger(stack_region_start), StackRegionSize, KMemoryRegionType_KernelStack));
// Determine the size of the resource region.
const size_t resource_region_size =
@@ -559,29 +553,29 @@ struct KernelCore::Impl {
ASSERT(slab_region_size <= resource_region_size);
// Setup the slab region.
- const PAddr code_start_phys_addr = KernelPhysicalAddressCodeBase;
- const PAddr code_end_phys_addr = code_start_phys_addr + code_region_size;
- const PAddr slab_start_phys_addr = code_end_phys_addr;
- const PAddr slab_end_phys_addr = slab_start_phys_addr + slab_region_size;
+ const KPhysicalAddress code_start_phys_addr = KernelPhysicalAddressCodeBase;
+ const KPhysicalAddress code_end_phys_addr = code_start_phys_addr + code_region_size;
+ const KPhysicalAddress slab_start_phys_addr = code_end_phys_addr;
+ const KPhysicalAddress slab_end_phys_addr = slab_start_phys_addr + slab_region_size;
constexpr size_t SlabRegionAlign = KernelAslrAlignment;
const size_t slab_region_needed_size =
- Common::AlignUp(code_end_phys_addr + slab_region_size, SlabRegionAlign) -
- Common::AlignDown(code_end_phys_addr, SlabRegionAlign);
- const VAddr slab_region_start =
+ Common::AlignUp(GetInteger(code_end_phys_addr) + slab_region_size, SlabRegionAlign) -
+ Common::AlignDown(GetInteger(code_end_phys_addr), SlabRegionAlign);
+ const KVirtualAddress slab_region_start =
memory_layout->GetVirtualMemoryRegionTree().GetRandomAlignedRegion(
slab_region_needed_size, SlabRegionAlign, KMemoryRegionType_Kernel) +
- (code_end_phys_addr % SlabRegionAlign);
+ (GetInteger(code_end_phys_addr) % SlabRegionAlign);
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- slab_region_start, slab_region_size, KMemoryRegionType_KernelSlab));
+ GetInteger(slab_region_start), slab_region_size, KMemoryRegionType_KernelSlab));
// Setup the temp region.
constexpr size_t TempRegionSize = 128_MiB;
constexpr size_t TempRegionAlign = KernelAslrAlignment;
- const VAddr temp_region_start =
+ const KVirtualAddress temp_region_start =
memory_layout->GetVirtualMemoryRegionTree().GetRandomAlignedRegion(
TempRegionSize, TempRegionAlign, KMemoryRegionType_Kernel);
- ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(temp_region_start, TempRegionSize,
- KMemoryRegionType_KernelTemp));
+ ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
+ GetInteger(temp_region_start), TempRegionSize, KMemoryRegionType_KernelTemp));
// Automatically map in devices that have auto-map attributes.
for (auto& region : memory_layout->GetPhysicalMemoryRegionTree()) {
@@ -607,35 +601,37 @@ struct KernelCore::Impl {
region.SetTypeAttribute(KMemoryRegionAttr_DidKernelMap);
// Create a virtual pair region and insert it into the tree.
- const PAddr map_phys_addr = Common::AlignDown(region.GetAddress(), PageSize);
+ const KPhysicalAddress map_phys_addr = Common::AlignDown(region.GetAddress(), PageSize);
const size_t map_size =
- Common::AlignUp(region.GetEndAddress(), PageSize) - map_phys_addr;
- const VAddr map_virt_addr =
+ Common::AlignUp(region.GetEndAddress(), PageSize) - GetInteger(map_phys_addr);
+ const KVirtualAddress map_virt_addr =
memory_layout->GetVirtualMemoryRegionTree().GetRandomAlignedRegionWithGuard(
map_size, PageSize, KMemoryRegionType_KernelMisc, PageSize);
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- map_virt_addr, map_size, KMemoryRegionType_KernelMiscMappedDevice));
- region.SetPairAddress(map_virt_addr + region.GetAddress() - map_phys_addr);
+ GetInteger(map_virt_addr), map_size, KMemoryRegionType_KernelMiscMappedDevice));
+ region.SetPairAddress(GetInteger(map_virt_addr) + region.GetAddress() -
+ GetInteger(map_phys_addr));
}
Init::SetupDramPhysicalMemoryRegions(*memory_layout);
// Insert a physical region for the kernel code region.
ASSERT(memory_layout->GetPhysicalMemoryRegionTree().Insert(
- code_start_phys_addr, code_region_size, KMemoryRegionType_DramKernelCode));
+ GetInteger(code_start_phys_addr), code_region_size, KMemoryRegionType_DramKernelCode));
// Insert a physical region for the kernel slab region.
ASSERT(memory_layout->GetPhysicalMemoryRegionTree().Insert(
- slab_start_phys_addr, slab_region_size, KMemoryRegionType_DramKernelSlab));
+ GetInteger(slab_start_phys_addr), slab_region_size, KMemoryRegionType_DramKernelSlab));
// Determine size available for kernel page table heaps, requiring > 8 MB.
- const PAddr resource_end_phys_addr = slab_start_phys_addr + resource_region_size;
+ const KPhysicalAddress resource_end_phys_addr = slab_start_phys_addr + resource_region_size;
const size_t page_table_heap_size = resource_end_phys_addr - slab_end_phys_addr;
ASSERT(page_table_heap_size / 4_MiB > 2);
// Insert a physical region for the kernel page table heap region
ASSERT(memory_layout->GetPhysicalMemoryRegionTree().Insert(
- slab_end_phys_addr, page_table_heap_size, KMemoryRegionType_DramKernelPtHeap));
+ GetInteger(slab_end_phys_addr), page_table_heap_size,
+ KMemoryRegionType_DramKernelPtHeap));
// All DRAM regions that we haven't tagged by this point will be mapped under the linear
// mapping. Tag them.
@@ -657,20 +653,21 @@ struct KernelCore::Impl {
// Setup the linear mapping region.
constexpr size_t LinearRegionAlign = 1_GiB;
- const PAddr aligned_linear_phys_start =
+ const KPhysicalAddress aligned_linear_phys_start =
Common::AlignDown(linear_extents.GetAddress(), LinearRegionAlign);
const size_t linear_region_size =
Common::AlignUp(linear_extents.GetEndAddress(), LinearRegionAlign) -
- aligned_linear_phys_start;
- const VAddr linear_region_start =
+ GetInteger(aligned_linear_phys_start);
+ const KVirtualAddress linear_region_start =
memory_layout->GetVirtualMemoryRegionTree().GetRandomAlignedRegionWithGuard(
linear_region_size, LinearRegionAlign, KMemoryRegionType_None, LinearRegionAlign);
- const u64 linear_region_phys_to_virt_diff = linear_region_start - aligned_linear_phys_start;
+ const u64 linear_region_phys_to_virt_diff =
+ GetInteger(linear_region_start) - GetInteger(aligned_linear_phys_start);
// Map and create regions for all the linearly-mapped data.
{
- PAddr cur_phys_addr = 0;
+ KPhysicalAddress cur_phys_addr = 0;
u64 cur_size = 0;
for (auto& region : memory_layout->GetPhysicalMemoryRegionTree()) {
if (!region.HasTypeAttribute(KMemoryRegionAttr_LinearMapped)) {
@@ -689,15 +686,16 @@ struct KernelCore::Impl {
cur_size = region.GetSize();
}
- const VAddr region_virt_addr =
+ const KVirtualAddress region_virt_addr =
region.GetAddress() + linear_region_phys_to_virt_diff;
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- region_virt_addr, region.GetSize(),
+ GetInteger(region_virt_addr), region.GetSize(),
GetTypeForVirtualLinearMapping(region.GetType())));
- region.SetPairAddress(region_virt_addr);
+ region.SetPairAddress(GetInteger(region_virt_addr));
KMemoryRegion* virt_region =
- memory_layout->GetVirtualMemoryRegionTree().FindModifiable(region_virt_addr);
+ memory_layout->GetVirtualMemoryRegionTree().FindModifiable(
+ GetInteger(region_virt_addr));
ASSERT(virt_region != nullptr);
virt_region->SetPairAddress(region.GetAddress());
}
@@ -705,10 +703,11 @@ struct KernelCore::Impl {
// Insert regions for the initial page table region.
ASSERT(memory_layout->GetPhysicalMemoryRegionTree().Insert(
- resource_end_phys_addr, KernelPageTableHeapSize, KMemoryRegionType_DramKernelInitPt));
+ GetInteger(resource_end_phys_addr), KernelPageTableHeapSize,
+ KMemoryRegionType_DramKernelInitPt));
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
- resource_end_phys_addr + linear_region_phys_to_virt_diff, KernelPageTableHeapSize,
- KMemoryRegionType_VirtualDramKernelInitPt));
+ GetInteger(resource_end_phys_addr) + linear_region_phys_to_virt_diff,
+ KernelPageTableHeapSize, KMemoryRegionType_VirtualDramKernelInitPt));
// All linear-mapped DRAM regions that we haven't tagged by this point will be allocated to
// some pool partition. Tag them.
@@ -734,7 +733,7 @@ struct KernelCore::Impl {
memory_manager->Initialize(management_region.GetAddress(), management_region.GetSize());
}
- void InitializeHackSharedMemory() {
+ void InitializeHackSharedMemory(KernelCore& kernel) {
// Setup memory regions for emulated processes
// TODO(bunnei): These should not be hardcoded regions initialized within the kernel
constexpr std::size_t hid_size{0x40000};
@@ -750,65 +749,24 @@ struct KernelCore::Impl {
hidbus_shared_mem = KSharedMemory::Create(system.Kernel());
hid_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
- Svc::MemoryPermission::Read, hid_size, "HID:SharedMemory");
- font_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
- Svc::MemoryPermission::Read, font_size, "Font:SharedMemory");
- irs_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
- Svc::MemoryPermission::Read, irs_size, "IRS:SharedMemory");
- time_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
- Svc::MemoryPermission::Read, time_size, "Time:SharedMemory");
- hidbus_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
- Svc::MemoryPermission::Read, hidbus_size,
- "HidBus:SharedMemory");
- }
-
- KClientPort* CreateNamedServicePort(std::string name) {
- auto search = service_interface_factory.find(name);
- if (search == service_interface_factory.end()) {
- UNIMPLEMENTED();
- return {};
- }
-
- return &search->second(system.ServiceManager(), system);
- }
-
- void RegisterNamedServiceHandler(std::string name, KServerPort* server_port) {
- auto search = service_interface_handlers.find(name);
- if (search == service_interface_handlers.end()) {
- return;
- }
-
- search->second(system.ServiceManager(), server_port);
- }
+ Svc::MemoryPermission::Read, hid_size);
+ KSharedMemory::Register(kernel, hid_shared_mem);
- Kernel::ServiceThread& CreateServiceThread(KernelCore& kernel, const std::string& name) {
- auto* ptr = new ServiceThread(kernel, name);
-
- service_threads_manager.QueueWork(
- [this, ptr]() { service_threads.emplace(ptr, std::unique_ptr<ServiceThread>(ptr)); });
-
- return *ptr;
- }
-
- void ReleaseServiceThread(Kernel::ServiceThread& service_thread) {
- auto* ptr = &service_thread;
+ font_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
+ Svc::MemoryPermission::Read, font_size);
+ KSharedMemory::Register(kernel, font_shared_mem);
- if (ptr == default_service_thread) {
- // Nothing to do here, the service is using default_service_thread, which will be
- // released on shutdown.
- return;
- }
+ irs_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
+ Svc::MemoryPermission::Read, irs_size);
+ KSharedMemory::Register(kernel, irs_shared_mem);
- service_threads_manager.QueueWork([this, ptr]() { service_threads.erase(ptr); });
- }
+ time_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
+ Svc::MemoryPermission::Read, time_size);
+ KSharedMemory::Register(kernel, time_shared_mem);
- void ClearServiceThreads() {
- service_threads_manager.QueueWork([this] {
- service_threads.clear();
- default_service_thread = nullptr;
- service_thread_barrier.Sync();
- });
- service_thread_barrier.Sync();
+ hidbus_shared_mem->Initialize(system.DeviceMemory(), nullptr, Svc::MemoryPermission::None,
+ Svc::MemoryPermission::Read, hidbus_size);
+ KSharedMemory::Register(kernel, hidbus_shared_mem);
}
std::mutex registered_objects_lock;
@@ -821,7 +779,7 @@ struct KernelCore::Impl {
// Lists all processes that exist in the current session.
std::vector<KProcess*> process_list;
- std::atomic<KProcess*> current_process{};
+ std::atomic<KProcess*> application_process{};
std::unique_ptr<Kernel::GlobalSchedulerContext> global_scheduler_context;
std::unique_ptr<Kernel::KHardwareTimer> hardware_timer;
@@ -838,14 +796,14 @@ struct KernelCore::Impl {
std::unique_ptr<KAutoObjectWithListContainer> global_object_list_container;
- /// Map of named ports managed by the kernel, which can be retrieved using
- /// the ConnectToPort SVC.
- std::unordered_map<std::string, ServiceInterfaceFactory> service_interface_factory;
- std::unordered_map<std::string, ServiceInterfaceHandlerFn> service_interface_handlers;
- NamedPortTable named_ports;
+ std::unique_ptr<KObjectNameGlobalData> object_name_global_data;
+
std::unordered_set<KAutoObject*> registered_objects;
std::unordered_set<KAutoObject*> registered_in_use_objects;
+ std::mutex server_lock;
+ std::vector<std::unique_ptr<Service::ServerManager>> server_managers;
+
std::unique_ptr<Core::ExclusiveMonitor> exclusive_monitor;
std::array<std::unique_ptr<Kernel::PhysicalCore>, Core::Hardware::NUM_CPU_CORES> cores;
@@ -880,12 +838,6 @@ struct KernelCore::Impl {
// Memory layout
std::unique_ptr<KMemoryLayout> memory_layout;
- // Threads used for services
- std::unordered_map<ServiceThread*, std::unique_ptr<ServiceThread>> service_threads;
- ServiceThread* default_service_thread{};
- Common::ThreadWorker service_threads_manager;
- Common::Barrier service_thread_barrier;
-
std::array<KThread*, Core::Hardware::NUM_CPU_CORES> shutdown_threads{};
std::array<std::unique_ptr<Kernel::KScheduler>, Core::Hardware::NUM_CPU_CORES> schedulers{};
@@ -941,20 +893,20 @@ void KernelCore::AppendNewProcess(KProcess* process) {
impl->process_list.push_back(process);
}
-void KernelCore::MakeCurrentProcess(KProcess* process) {
- impl->MakeCurrentProcess(process);
+void KernelCore::MakeApplicationProcess(KProcess* process) {
+ impl->MakeApplicationProcess(process);
}
-KProcess* KernelCore::CurrentProcess() {
- return impl->current_process;
+KProcess* KernelCore::ApplicationProcess() {
+ return impl->application_process;
}
-const KProcess* KernelCore::CurrentProcess() const {
- return impl->current_process;
+const KProcess* KernelCore::ApplicationProcess() const {
+ return impl->application_process;
}
-void KernelCore::CloseCurrentProcess() {
- impl->CloseCurrentProcess();
+void KernelCore::CloseApplicationProcess() {
+ impl->CloseApplicationProcess();
}
const std::vector<KProcess*>& KernelCore::GetProcessList() const {
@@ -1002,7 +954,7 @@ const Kernel::PhysicalCore& KernelCore::CurrentPhysicalCore() const {
}
Kernel::KScheduler* KernelCore::CurrentScheduler() {
- u32 core_id = impl->GetCurrentHostThreadID();
+ const u32 core_id = impl->GetCurrentHostThreadID();
if (core_id >= Core::Hardware::NUM_CPU_CORES) {
// This is expected when called from not a guest thread
return {};
@@ -1036,12 +988,12 @@ void KernelCore::InvalidateAllInstructionCaches() {
}
}
-void KernelCore::InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size) {
+void KernelCore::InvalidateCpuInstructionCacheRange(KProcessAddress addr, std::size_t size) {
for (auto& physical_core : impl->cores) {
if (!physical_core->IsInitialized()) {
continue;
}
- physical_core->ArmInterface().InvalidateCacheRange(addr, size);
+ physical_core->ArmInterface().InvalidateCacheRange(GetInteger(addr), size);
}
}
@@ -1049,23 +1001,6 @@ void KernelCore::PrepareReschedule(std::size_t id) {
// TODO: Reimplement, this
}
-void KernelCore::RegisterNamedService(std::string name, ServiceInterfaceFactory&& factory) {
- impl->service_interface_factory.emplace(std::move(name), factory);
-}
-
-void KernelCore::RegisterInterfaceForNamedService(std::string name,
- ServiceInterfaceHandlerFn&& handler) {
- impl->service_interface_handlers.emplace(std::move(name), handler);
-}
-
-KClientPort* KernelCore::CreateNamedServicePort(std::string name) {
- return impl->CreateNamedServicePort(std::move(name));
-}
-
-void KernelCore::RegisterNamedServiceHandler(std::string name, KServerPort* server_port) {
- impl->RegisterNamedServiceHandler(std::move(name), server_port);
-}
-
void KernelCore::RegisterKernelObject(KAutoObject* object) {
std::scoped_lock lk{impl->registered_objects_lock};
impl->registered_objects.insert(object);
@@ -1086,8 +1021,19 @@ void KernelCore::UnregisterInUseObject(KAutoObject* object) {
impl->registered_in_use_objects.erase(object);
}
-bool KernelCore::IsValidNamedPort(NamedPortTable::const_iterator port) const {
- return port != impl->named_ports.cend();
+void KernelCore::RunServer(std::unique_ptr<Service::ServerManager>&& server_manager) {
+ auto* manager = server_manager.get();
+
+ {
+ std::scoped_lock lk{impl->server_lock};
+ if (impl->is_shutting_down) {
+ return;
+ }
+
+ impl->server_managers.emplace_back(std::move(server_manager));
+ }
+
+ manager->LoopProcess();
}
u32 KernelCore::CreateNewObjectID() {
@@ -1126,6 +1072,99 @@ void KernelCore::RegisterHostThread(KThread* existing_thread) {
}
}
+static std::jthread RunHostThreadFunc(KernelCore& kernel, KProcess* process,
+ std::string&& thread_name, std::function<void()>&& func) {
+ // Reserve a new thread from the process resource limit.
+ KScopedResourceReservation thread_reservation(process, LimitableResource::ThreadCountMax);
+ ASSERT(thread_reservation.Succeeded());
+
+ // Initialize the thread.
+ KThread* thread = KThread::Create(kernel);
+ ASSERT(R_SUCCEEDED(KThread::InitializeDummyThread(thread, process)));
+
+ // Commit the thread reservation.
+ thread_reservation.Commit();
+
+ // Register the thread.
+ KThread::Register(kernel, thread);
+
+ return std::jthread(
+ [&kernel, thread, thread_name{std::move(thread_name)}, func{std::move(func)}] {
+ // Set the thread name.
+ Common::SetCurrentThreadName(thread_name.c_str());
+
+ // Set the thread as current.
+ kernel.RegisterHostThread(thread);
+
+ // Run the callback.
+ func();
+
+ // Close the thread.
+ // This will free the process if it is the last reference.
+ thread->Close();
+ });
+}
+
+std::jthread KernelCore::RunOnHostCoreProcess(std::string&& process_name,
+ std::function<void()> func) {
+ // Make a new process.
+ KProcess* process = KProcess::Create(*this);
+ ASSERT(R_SUCCEEDED(KProcess::Initialize(process, System(), "", KProcess::ProcessType::Userland,
+ GetSystemResourceLimit())));
+
+ // Ensure that we don't hold onto any extra references.
+ SCOPE_EXIT({ process->Close(); });
+
+ // Register the new process.
+ KProcess::Register(*this, process);
+
+ // Run the host thread.
+ return RunHostThreadFunc(*this, process, std::move(process_name), std::move(func));
+}
+
+std::jthread KernelCore::RunOnHostCoreThread(std::string&& thread_name,
+ std::function<void()> func) {
+ // Get the current process.
+ KProcess* process = GetCurrentProcessPointer(*this);
+
+ // Run the host thread.
+ return RunHostThreadFunc(*this, process, std::move(thread_name), std::move(func));
+}
+
+void KernelCore::RunOnGuestCoreProcess(std::string&& process_name, std::function<void()> func) {
+ constexpr s32 ServiceThreadPriority = 16;
+ constexpr s32 ServiceThreadCore = 3;
+
+ // Make a new process.
+ KProcess* process = KProcess::Create(*this);
+ ASSERT(R_SUCCEEDED(KProcess::Initialize(process, System(), "", KProcess::ProcessType::Userland,
+ GetSystemResourceLimit())));
+
+ // Ensure that we don't hold onto any extra references.
+ SCOPE_EXIT({ process->Close(); });
+
+ // Register the new process.
+ KProcess::Register(*this, process);
+
+ // Reserve a new thread from the process resource limit.
+ KScopedResourceReservation thread_reservation(process, LimitableResource::ThreadCountMax);
+ ASSERT(thread_reservation.Succeeded());
+
+ // Initialize the thread.
+ KThread* thread = KThread::Create(*this);
+ ASSERT(R_SUCCEEDED(KThread::InitializeServiceThread(
+ System(), thread, std::move(func), ServiceThreadPriority, ServiceThreadCore, process)));
+
+ // Commit the thread reservation.
+ thread_reservation.Commit();
+
+ // Register the new thread.
+ KThread::Register(*this, thread);
+
+ // Begin running the thread.
+ ASSERT(R_SUCCEEDED(thread->Run()));
+}
+
u32 KernelCore::GetCurrentHostThreadID() const {
return impl->GetCurrentHostThreadID();
}
@@ -1138,6 +1177,10 @@ void KernelCore::SetCurrentEmuThread(KThread* thread) {
impl->SetCurrentEmuThread(thread);
}
+KObjectNameGlobalData& KernelCore::ObjectNameGlobalData() {
+ return *impl->object_name_global_data;
+}
+
KMemoryManager& KernelCore::MemoryManager() {
return *impl->memory_manager;
}
@@ -1146,6 +1189,14 @@ const KMemoryManager& KernelCore::MemoryManager() const {
return *impl->memory_manager;
}
+KSystemResource& KernelCore::GetAppSystemResource() {
+ return *impl->app_system_resource;
+}
+
+const KSystemResource& KernelCore::GetAppSystemResource() const {
+ return *impl->app_system_resource;
+}
+
KSystemResource& KernelCore::GetSystemSystemResource() {
return *impl->sys_system_resource;
}
@@ -1194,32 +1245,39 @@ const Kernel::KSharedMemory& KernelCore::GetHidBusSharedMem() const {
return *impl->hidbus_shared_mem;
}
-void KernelCore::Suspend(bool suspended) {
+void KernelCore::SuspendApplication(bool suspended) {
const bool should_suspend{exception_exited || suspended};
const auto activity = should_suspend ? ProcessActivity::Paused : ProcessActivity::Runnable;
- std::vector<KScopedAutoObject<KThread>> process_threads;
- {
- KScopedSchedulerLock sl{*this};
+ // Get the application process.
+ KScopedAutoObject<KProcess> process = ApplicationProcess();
+ if (process.IsNull()) {
+ return;
+ }
- if (auto* process = CurrentProcess(); process != nullptr) {
- process->SetActivity(activity);
+ // Set the new activity.
+ process->SetActivity(activity);
- if (!should_suspend) {
- // Runnable now; no need to wait.
- return;
- }
+ // Wait for process execution to stop.
+ bool must_wait{should_suspend};
+
+ // KernelCore::SuspendApplication must be called from locked context,
+ // or we could race another call to SetActivity, interfering with waiting.
+ while (must_wait) {
+ KScopedSchedulerLock sl{*this};
+
+ // Assume that all threads have finished running.
+ must_wait = false;
- for (auto* thread : process->GetThreadList()) {
- process_threads.emplace_back(thread);
+ for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
+ if (Scheduler(i).GetSchedulerCurrentThread()->GetOwnerProcess() ==
+ process.GetPointerUnsafe()) {
+ // A thread has not finished running yet.
+ // Continue waiting.
+ must_wait = true;
}
}
}
-
- // Wait for execution to stop.
- for (auto& thread : process_threads) {
- thread->WaitUntilSuspended();
- }
}
void KernelCore::ShutdownCores() {
@@ -1238,9 +1296,9 @@ bool KernelCore::IsShuttingDown() const {
return impl->IsShuttingDown();
}
-void KernelCore::ExceptionalExit() {
+void KernelCore::ExceptionalExitApplication() {
exception_exited = true;
- Suspend(true);
+ SuspendApplication(true);
}
void KernelCore::EnterSVCProfile() {
@@ -1251,18 +1309,6 @@ void KernelCore::ExitSVCProfile() {
MicroProfileLeave(MICROPROFILE_TOKEN(Kernel_SVC), impl->svc_ticks[CurrentPhysicalCoreIndex()]);
}
-Kernel::ServiceThread& KernelCore::CreateServiceThread(const std::string& name) {
- return impl->CreateServiceThread(*this, name);
-}
-
-Kernel::ServiceThread& KernelCore::GetDefaultServiceThread() const {
- return *impl->default_service_thread;
-}
-
-void KernelCore::ReleaseServiceThread(Kernel::ServiceThread& service_thread) {
- impl->ReleaseServiceThread(service_thread);
-}
-
Init::KSlabResourceCounts& KernelCore::SlabResourceCounts() {
return impl->slab_resource_counts;
}
@@ -1299,4 +1345,93 @@ const Core::System& KernelCore::System() const {
return impl->system;
}
+struct KernelCore::SlabHeapContainer {
+ KSlabHeap<KClientSession> client_session;
+ KSlabHeap<KEvent> event;
+ KSlabHeap<KPort> port;
+ KSlabHeap<KProcess> process;
+ KSlabHeap<KResourceLimit> resource_limit;
+ KSlabHeap<KSession> session;
+ KSlabHeap<KSharedMemory> shared_memory;
+ KSlabHeap<KSharedMemoryInfo> shared_memory_info;
+ KSlabHeap<KThread> thread;
+ KSlabHeap<KTransferMemory> transfer_memory;
+ KSlabHeap<KCodeMemory> code_memory;
+ KSlabHeap<KDeviceAddressSpace> device_address_space;
+ KSlabHeap<KPageBuffer> page_buffer;
+ KSlabHeap<KThreadLocalPage> thread_local_page;
+ KSlabHeap<KObjectName> object_name;
+ KSlabHeap<KSessionRequest> session_request;
+ KSlabHeap<KSecureSystemResource> secure_system_resource;
+ KSlabHeap<KThread::LockWithPriorityInheritanceInfo> lock_info;
+ KSlabHeap<KEventInfo> event_info;
+ KSlabHeap<KDebug> debug;
+};
+
+template <typename T>
+KSlabHeap<T>& KernelCore::SlabHeap() {
+ if constexpr (std::is_same_v<T, KClientSession>) {
+ return slab_heap_container->client_session;
+ } else if constexpr (std::is_same_v<T, KEvent>) {
+ return slab_heap_container->event;
+ } else if constexpr (std::is_same_v<T, KPort>) {
+ return slab_heap_container->port;
+ } else if constexpr (std::is_same_v<T, KProcess>) {
+ return slab_heap_container->process;
+ } else if constexpr (std::is_same_v<T, KResourceLimit>) {
+ return slab_heap_container->resource_limit;
+ } else if constexpr (std::is_same_v<T, KSession>) {
+ return slab_heap_container->session;
+ } else if constexpr (std::is_same_v<T, KSharedMemory>) {
+ return slab_heap_container->shared_memory;
+ } else if constexpr (std::is_same_v<T, KSharedMemoryInfo>) {
+ return slab_heap_container->shared_memory_info;
+ } else if constexpr (std::is_same_v<T, KThread>) {
+ return slab_heap_container->thread;
+ } else if constexpr (std::is_same_v<T, KTransferMemory>) {
+ return slab_heap_container->transfer_memory;
+ } else if constexpr (std::is_same_v<T, KCodeMemory>) {
+ return slab_heap_container->code_memory;
+ } else if constexpr (std::is_same_v<T, KDeviceAddressSpace>) {
+ return slab_heap_container->device_address_space;
+ } else if constexpr (std::is_same_v<T, KPageBuffer>) {
+ return slab_heap_container->page_buffer;
+ } else if constexpr (std::is_same_v<T, KThreadLocalPage>) {
+ return slab_heap_container->thread_local_page;
+ } else if constexpr (std::is_same_v<T, KObjectName>) {
+ return slab_heap_container->object_name;
+ } else if constexpr (std::is_same_v<T, KSessionRequest>) {
+ return slab_heap_container->session_request;
+ } else if constexpr (std::is_same_v<T, KSecureSystemResource>) {
+ return slab_heap_container->secure_system_resource;
+ } else if constexpr (std::is_same_v<T, KThread::LockWithPriorityInheritanceInfo>) {
+ return slab_heap_container->lock_info;
+ } else if constexpr (std::is_same_v<T, KEventInfo>) {
+ return slab_heap_container->event_info;
+ } else if constexpr (std::is_same_v<T, KDebug>) {
+ return slab_heap_container->debug;
+ }
+}
+
+template KSlabHeap<KClientSession>& KernelCore::SlabHeap();
+template KSlabHeap<KEvent>& KernelCore::SlabHeap();
+template KSlabHeap<KPort>& KernelCore::SlabHeap();
+template KSlabHeap<KProcess>& KernelCore::SlabHeap();
+template KSlabHeap<KResourceLimit>& KernelCore::SlabHeap();
+template KSlabHeap<KSession>& KernelCore::SlabHeap();
+template KSlabHeap<KSharedMemory>& KernelCore::SlabHeap();
+template KSlabHeap<KSharedMemoryInfo>& KernelCore::SlabHeap();
+template KSlabHeap<KThread>& KernelCore::SlabHeap();
+template KSlabHeap<KTransferMemory>& KernelCore::SlabHeap();
+template KSlabHeap<KCodeMemory>& KernelCore::SlabHeap();
+template KSlabHeap<KDeviceAddressSpace>& KernelCore::SlabHeap();
+template KSlabHeap<KPageBuffer>& KernelCore::SlabHeap();
+template KSlabHeap<KThreadLocalPage>& KernelCore::SlabHeap();
+template KSlabHeap<KObjectName>& KernelCore::SlabHeap();
+template KSlabHeap<KSessionRequest>& KernelCore::SlabHeap();
+template KSlabHeap<KSecureSystemResource>& KernelCore::SlabHeap();
+template KSlabHeap<KThread::LockWithPriorityInheritanceInfo>& KernelCore::SlabHeap();
+template KSlabHeap<KEventInfo>& KernelCore::SlabHeap();
+template KSlabHeap<KDebug>& KernelCore::SlabHeap();
+
} // namespace Kernel
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 8d22f8d2c..d5b08eeb5 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -9,9 +9,12 @@
#include <string>
#include <unordered_map>
#include <vector>
+
+#include "common/polyfill_thread.h"
#include "core/hardware_properties.h"
#include "core/hle/kernel/k_auto_object.h"
#include "core/hle/kernel/k_slab_heap.h"
+#include "core/hle/kernel/k_typed_address.h"
#include "core/hle/kernel/svc_common.h"
namespace Core {
@@ -24,6 +27,10 @@ class CoreTiming;
struct EventType;
} // namespace Core::Timing
+namespace Service {
+class ServerManager;
+}
+
namespace Service::SM {
class ServiceManager;
}
@@ -35,14 +42,16 @@ class GlobalSchedulerContext;
class KAutoObjectWithListContainer;
class KClientSession;
class KDebug;
+class KDeviceAddressSpace;
class KDynamicPageManager;
class KEvent;
class KEventInfo;
class KHandleTable;
class KHardwareTimer;
-class KLinkedListNode;
class KMemoryLayout;
class KMemoryManager;
+class KObjectName;
+class KObjectNameGlobalData;
class KPageBuffer;
class KPageBufferSlabHeap;
class KPort;
@@ -62,13 +71,6 @@ class KTransferMemory;
class KWorkerTaskManager;
class KCodeMemory;
class PhysicalCore;
-class ServiceThread;
-class Synchronization;
-
-using ServiceInterfaceFactory =
- std::function<KClientPort&(Service::SM::ServiceManager&, Core::System&)>;
-
-using ServiceInterfaceHandlerFn = std::function<void(Service::SM::ServiceManager&, KServerPort*)>;
namespace Init {
struct KSlabResourceCounts;
@@ -77,15 +79,8 @@ struct KSlabResourceCounts;
template <typename T>
class KSlabHeap;
-using EmuThreadHandle = uintptr_t;
-constexpr EmuThreadHandle EmuThreadHandleInvalid{};
-constexpr EmuThreadHandle EmuThreadHandleReserved{1ULL << 63};
-
/// Represents a single instance of the kernel.
class KernelCore {
-private:
- using NamedPortTable = std::unordered_map<std::string, KClientPort*>;
-
public:
/// Constructs an instance of the kernel using the given System
/// instance as a context for any necessary system-related state,
@@ -130,17 +125,17 @@ public:
/// Adds the given shared pointer to an internal list of active processes.
void AppendNewProcess(KProcess* process);
- /// Makes the given process the new current process.
- void MakeCurrentProcess(KProcess* process);
+ /// Makes the given process the new application process.
+ void MakeApplicationProcess(KProcess* process);
- /// Retrieves a pointer to the current process.
- KProcess* CurrentProcess();
+ /// Retrieves a pointer to the application process.
+ KProcess* ApplicationProcess();
- /// Retrieves a const pointer to the current process.
- const KProcess* CurrentProcess() const;
+ /// Retrieves a const pointer to the application process.
+ const KProcess* ApplicationProcess() const;
- /// Closes the current process.
- void CloseCurrentProcess();
+ /// Closes the application process.
+ void CloseApplicationProcess();
/// Retrieves the list of processes.
const std::vector<KProcess*>& GetProcessList() const;
@@ -191,19 +186,7 @@ public:
void InvalidateAllInstructionCaches();
- void InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size);
-
- /// Registers a named HLE service, passing a factory used to open a port to that service.
- void RegisterNamedService(std::string name, ServiceInterfaceFactory&& factory);
-
- /// Registers a setup function for the named HLE service.
- void RegisterInterfaceForNamedService(std::string name, ServiceInterfaceHandlerFn&& handler);
-
- /// Opens a port to a service previously registered with RegisterNamedService.
- KClientPort* CreateNamedServicePort(std::string name);
-
- /// Accepts a session on a port created by CreateNamedServicePort.
- void RegisterNamedServiceHandler(std::string name, KServerPort* server_port);
+ void InvalidateCpuInstructionCacheRange(KProcessAddress addr, std::size_t size);
/// Registers all kernel objects with the global emulation state, this is purely for tracking
/// leaks after emulation has been shutdown.
@@ -221,8 +204,8 @@ public:
/// destroyed during the current emulation session.
void UnregisterInUseObject(KAutoObject* object);
- /// Determines whether or not the given port is a valid named port.
- bool IsValidNamedPort(NamedPortTable::const_iterator port) const;
+ // Runs the given server manager until shutdown.
+ void RunServer(std::unique_ptr<Service::ServerManager>&& server_manager);
/// Gets the current host_thread/guest_thread pointer.
KThread* GetCurrentEmuThread() const;
@@ -239,12 +222,27 @@ public:
/// Register the current thread as a non CPU core thread.
void RegisterHostThread(KThread* existing_thread = nullptr);
+ void RunOnGuestCoreProcess(std::string&& process_name, std::function<void()> func);
+
+ std::jthread RunOnHostCoreProcess(std::string&& process_name, std::function<void()> func);
+
+ std::jthread RunOnHostCoreThread(std::string&& thread_name, std::function<void()> func);
+
+ /// Gets global data for KObjectName.
+ KObjectNameGlobalData& ObjectNameGlobalData();
+
/// Gets the virtual memory manager for the kernel.
KMemoryManager& MemoryManager();
/// Gets the virtual memory manager for the kernel.
const KMemoryManager& MemoryManager() const;
+ /// Gets the application resource manager.
+ KSystemResource& GetAppSystemResource();
+
+ /// Gets the application resource manager.
+ const KSystemResource& GetAppSystemResource() const;
+
/// Gets the system resource manager.
KSystemResource& GetSystemSystemResource();
@@ -281,11 +279,11 @@ public:
/// Gets the shared memory object for HIDBus services.
const Kernel::KSharedMemory& GetHidBusSharedMem() const;
- /// Suspend/unsuspend all processes.
- void Suspend(bool suspend);
+ /// Suspend/unsuspend application process.
+ void SuspendApplication(bool suspend);
- /// Exceptional exit all processes.
- void ExceptionalExit();
+ /// Exceptional exit application process.
+ void ExceptionalExitApplication();
/// Notify emulated CPU cores to shut down.
void ShutdownCores();
@@ -298,33 +296,6 @@ public:
void ExitSVCProfile();
- /**
- * Creates a host thread to execute HLE service requests, which are used to execute service
- * routines asynchronously. While these are allocated per ServerSession, these need to be owned
- * and managed outside of ServerSession to avoid a circular dependency. In general, most
- * services can just use the default service thread, and not need their own host service thread.
- * See GetDefaultServiceThread.
- * @param name String name for the ServerSession creating this thread, used for debug
- * purposes.
- * @returns A reference to the newly created service thread.
- */
- Kernel::ServiceThread& CreateServiceThread(const std::string& name);
-
- /**
- * Gets the default host service thread, which executes HLE service requests. Unless service
- * requests need to block on the host, the default service thread should be used in favor of
- * creating a new service thread.
- * @returns A reference to the default service thread.
- */
- Kernel::ServiceThread& GetDefaultServiceThread() const;
-
- /**
- * Releases a HLE service thread, instructing KernelCore to free it. This should be called when
- * the ServerSession associated with the thread is destroyed.
- * @param service_thread Service thread to release.
- */
- void ReleaseServiceThread(Kernel::ServiceThread& service_thread);
-
/// Workaround for single-core mode when preempting threads while idle.
bool IsPhantomModeForSingleCore() const;
void SetIsPhantomModeForSingleCore(bool value);
@@ -334,45 +305,7 @@ public:
/// Gets the slab heap for the specified kernel object type.
template <typename T>
- KSlabHeap<T>& SlabHeap() {
- if constexpr (std::is_same_v<T, KClientSession>) {
- return slab_heap_container->client_session;
- } else if constexpr (std::is_same_v<T, KEvent>) {
- return slab_heap_container->event;
- } else if constexpr (std::is_same_v<T, KLinkedListNode>) {
- return slab_heap_container->linked_list_node;
- } else if constexpr (std::is_same_v<T, KPort>) {
- return slab_heap_container->port;
- } else if constexpr (std::is_same_v<T, KProcess>) {
- return slab_heap_container->process;
- } else if constexpr (std::is_same_v<T, KResourceLimit>) {
- return slab_heap_container->resource_limit;
- } else if constexpr (std::is_same_v<T, KSession>) {
- return slab_heap_container->session;
- } else if constexpr (std::is_same_v<T, KSharedMemory>) {
- return slab_heap_container->shared_memory;
- } else if constexpr (std::is_same_v<T, KSharedMemoryInfo>) {
- return slab_heap_container->shared_memory_info;
- } else if constexpr (std::is_same_v<T, KThread>) {
- return slab_heap_container->thread;
- } else if constexpr (std::is_same_v<T, KTransferMemory>) {
- return slab_heap_container->transfer_memory;
- } else if constexpr (std::is_same_v<T, KCodeMemory>) {
- return slab_heap_container->code_memory;
- } else if constexpr (std::is_same_v<T, KPageBuffer>) {
- return slab_heap_container->page_buffer;
- } else if constexpr (std::is_same_v<T, KThreadLocalPage>) {
- return slab_heap_container->thread_local_page;
- } else if constexpr (std::is_same_v<T, KSessionRequest>) {
- return slab_heap_container->session_request;
- } else if constexpr (std::is_same_v<T, KSecureSystemResource>) {
- return slab_heap_container->secure_system_resource;
- } else if constexpr (std::is_same_v<T, KEventInfo>) {
- return slab_heap_container->event_info;
- } else if constexpr (std::is_same_v<T, KDebug>) {
- return slab_heap_container->debug;
- }
- }
+ KSlabHeap<T>& SlabHeap();
/// Gets the current slab resource counts.
Init::KSlabResourceCounts& SlabResourceCounts();
@@ -418,26 +351,7 @@ private:
private:
/// Helper to encapsulate all slab heaps in a single heap allocated container
- struct SlabHeapContainer {
- KSlabHeap<KClientSession> client_session;
- KSlabHeap<KEvent> event;
- KSlabHeap<KLinkedListNode> linked_list_node;
- KSlabHeap<KPort> port;
- KSlabHeap<KProcess> process;
- KSlabHeap<KResourceLimit> resource_limit;
- KSlabHeap<KSession> session;
- KSlabHeap<KSharedMemory> shared_memory;
- KSlabHeap<KSharedMemoryInfo> shared_memory_info;
- KSlabHeap<KThread> thread;
- KSlabHeap<KTransferMemory> transfer_memory;
- KSlabHeap<KCodeMemory> code_memory;
- KSlabHeap<KPageBuffer> page_buffer;
- KSlabHeap<KThreadLocalPage> thread_local_page;
- KSlabHeap<KSessionRequest> session_request;
- KSlabHeap<KSecureSystemResource> secure_system_resource;
- KSlabHeap<KEventInfo> event_info;
- KSlabHeap<KDebug> debug;
- };
+ struct SlabHeapContainer;
std::unique_ptr<SlabHeapContainer> slab_heap_container;
};
diff --git a/src/core/hle/kernel/memory_types.h b/src/core/hle/kernel/memory_types.h
index 92b8b37ac..18de675cc 100644
--- a/src/core/hle/kernel/memory_types.h
+++ b/src/core/hle/kernel/memory_types.h
@@ -6,6 +6,7 @@
#include <array>
#include "common/common_types.h"
+#include "core/hle/kernel/k_typed_address.h"
namespace Kernel {
@@ -14,7 +15,4 @@ constexpr std::size_t PageSize{1 << PageBits};
using Page = std::array<u8, PageSize>;
-using KPhysicalAddress = PAddr;
-using KProcessAddress = VAddr;
-
} // namespace Kernel
diff --git a/src/core/hle/kernel/physical_core.cpp b/src/core/hle/kernel/physical_core.cpp
index 3044922ac..2e0c36129 100644
--- a/src/core/hle/kernel/physical_core.cpp
+++ b/src/core/hle/kernel/physical_core.cpp
@@ -10,14 +10,14 @@
namespace Kernel {
-PhysicalCore::PhysicalCore(std::size_t core_index_, Core::System& system_, KScheduler& scheduler_)
- : core_index{core_index_}, system{system_}, scheduler{scheduler_} {
+PhysicalCore::PhysicalCore(std::size_t core_index, Core::System& system, KScheduler& scheduler)
+ : m_core_index{core_index}, m_system{system}, m_scheduler{scheduler} {
#if defined(ARCHITECTURE_x86_64) || defined(ARCHITECTURE_arm64)
// TODO(bunnei): Initialization relies on a core being available. We may later replace this with
// a 32-bit instance of Dynarmic. This should be abstracted out to a CPU manager.
auto& kernel = system.Kernel();
- arm_interface = std::make_unique<Core::ARM_Dynarmic_64>(
- system, kernel.IsMulticore(), kernel.GetExclusiveMonitor(), core_index);
+ m_arm_interface = std::make_unique<Core::ARM_Dynarmic_64>(
+ system, kernel.IsMulticore(), kernel.GetExclusiveMonitor(), m_core_index);
#else
#error Platform not supported yet.
#endif
@@ -25,13 +25,13 @@ PhysicalCore::PhysicalCore(std::size_t core_index_, Core::System& system_, KSche
PhysicalCore::~PhysicalCore() = default;
-void PhysicalCore::Initialize([[maybe_unused]] bool is_64_bit) {
+void PhysicalCore::Initialize(bool is_64_bit) {
#if defined(ARCHITECTURE_x86_64) || defined(ARCHITECTURE_arm64)
- auto& kernel = system.Kernel();
+ auto& kernel = m_system.Kernel();
if (!is_64_bit) {
// We already initialized a 64-bit core, replace with a 32-bit one.
- arm_interface = std::make_unique<Core::ARM_Dynarmic_32>(
- system, kernel.IsMulticore(), kernel.GetExclusiveMonitor(), core_index);
+ m_arm_interface = std::make_unique<Core::ARM_Dynarmic_32>(
+ m_system, kernel.IsMulticore(), kernel.GetExclusiveMonitor(), m_core_index);
}
#else
#error Platform not supported yet.
@@ -39,31 +39,30 @@ void PhysicalCore::Initialize([[maybe_unused]] bool is_64_bit) {
}
void PhysicalCore::Run() {
- arm_interface->Run();
- arm_interface->ClearExclusiveState();
+ m_arm_interface->Run();
+ m_arm_interface->ClearExclusiveState();
}
void PhysicalCore::Idle() {
- std::unique_lock lk{guard};
- on_interrupt.wait(lk, [this] { return is_interrupted; });
+ std::unique_lock lk{m_guard};
+ m_on_interrupt.wait(lk, [this] { return m_is_interrupted; });
}
bool PhysicalCore::IsInterrupted() const {
- return is_interrupted;
+ return m_is_interrupted;
}
void PhysicalCore::Interrupt() {
- std::unique_lock lk{guard};
- is_interrupted = true;
- arm_interface->SignalInterrupt();
- on_interrupt.notify_all();
+ std::unique_lock lk{m_guard};
+ m_is_interrupted = true;
+ m_arm_interface->SignalInterrupt();
+ m_on_interrupt.notify_all();
}
void PhysicalCore::ClearInterrupt() {
- std::unique_lock lk{guard};
- is_interrupted = false;
- arm_interface->ClearInterrupt();
- on_interrupt.notify_all();
+ std::unique_lock lk{m_guard};
+ m_is_interrupted = false;
+ m_arm_interface->ClearInterrupt();
}
} // namespace Kernel
diff --git a/src/core/hle/kernel/physical_core.h b/src/core/hle/kernel/physical_core.h
index fb2ba4c6b..5cb398fdc 100644
--- a/src/core/hle/kernel/physical_core.h
+++ b/src/core/hle/kernel/physical_core.h
@@ -3,6 +3,7 @@
#pragma once
+#include <condition_variable>
#include <cstddef>
#include <memory>
#include <mutex>
@@ -46,46 +47,38 @@ public:
bool IsInterrupted() const;
bool IsInitialized() const {
- return arm_interface != nullptr;
+ return m_arm_interface != nullptr;
}
Core::ARM_Interface& ArmInterface() {
- return *arm_interface;
+ return *m_arm_interface;
}
const Core::ARM_Interface& ArmInterface() const {
- return *arm_interface;
- }
-
- bool IsMainCore() const {
- return core_index == 0;
- }
-
- bool IsSystemCore() const {
- return core_index == 3;
+ return *m_arm_interface;
}
std::size_t CoreIndex() const {
- return core_index;
+ return m_core_index;
}
Kernel::KScheduler& Scheduler() {
- return scheduler;
+ return m_scheduler;
}
const Kernel::KScheduler& Scheduler() const {
- return scheduler;
+ return m_scheduler;
}
private:
- const std::size_t core_index;
- Core::System& system;
- Kernel::KScheduler& scheduler;
-
- std::mutex guard;
- std::condition_variable on_interrupt;
- std::unique_ptr<Core::ARM_Interface> arm_interface;
- bool is_interrupted{};
+ const std::size_t m_core_index;
+ Core::System& m_system;
+ Kernel::KScheduler& m_scheduler;
+
+ std::mutex m_guard;
+ std::condition_variable m_on_interrupt;
+ std::unique_ptr<Core::ARM_Interface> m_arm_interface;
+ bool m_is_interrupted{};
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/service_thread.cpp b/src/core/hle/kernel/service_thread.cpp
deleted file mode 100644
index 38afa720b..000000000
--- a/src/core/hle/kernel/service_thread.cpp
+++ /dev/null
@@ -1,206 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <functional>
-#include <map>
-#include <mutex>
-#include <thread>
-#include <vector>
-
-#include "common/polyfill_thread.h"
-#include "common/scope_exit.h"
-#include "common/thread.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/hle_ipc.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/kernel/k_scoped_resource_reservation.h"
-#include "core/hle/kernel/k_session.h"
-#include "core/hle/kernel/k_thread.h"
-#include "core/hle/kernel/kernel.h"
-#include "core/hle/kernel/service_thread.h"
-
-namespace Kernel {
-
-class ServiceThread::Impl final {
-public:
- explicit Impl(KernelCore& kernel, const std::string& service_name);
- ~Impl();
-
- void WaitAndProcessImpl();
- void SessionClosed(KServerSession* server_session,
- std::shared_ptr<SessionRequestManager> manager);
- void LoopProcess();
-
- void RegisterServerSession(KServerSession* session,
- std::shared_ptr<SessionRequestManager> manager);
-
-private:
- KernelCore& kernel;
- const std::string m_service_name;
-
- std::jthread m_host_thread{};
- std::mutex m_session_mutex{};
- std::map<KServerSession*, std::shared_ptr<SessionRequestManager>> m_sessions{};
- KEvent* m_wakeup_event{};
- KThread* m_thread{};
- std::atomic<bool> m_shutdown_requested{};
-};
-
-void ServiceThread::Impl::WaitAndProcessImpl() {
- // Create local list of waitable sessions.
- std::vector<KSynchronizationObject*> objs;
- std::vector<std::shared_ptr<SessionRequestManager>> managers;
-
- {
- // Lock to get the set.
- std::scoped_lock lk{m_session_mutex};
-
- // Reserve the needed quantity.
- objs.reserve(m_sessions.size() + 1);
- managers.reserve(m_sessions.size());
-
- // Copy to our local list.
- for (const auto& [session, manager] : m_sessions) {
- objs.push_back(session);
- managers.push_back(manager);
- }
-
- // Insert the wakeup event at the end.
- objs.push_back(&m_wakeup_event->GetReadableEvent());
- }
-
- // Wait on the list of sessions.
- s32 index{-1};
- Result rc = KSynchronizationObject::Wait(kernel, &index, objs.data(),
- static_cast<s32>(objs.size()), -1);
- ASSERT(!rc.IsFailure());
-
- // If this was the wakeup event, clear it and finish.
- if (index >= static_cast<s64>(objs.size() - 1)) {
- m_wakeup_event->Clear();
- return;
- }
-
- // This event is from a server session.
- auto* server_session = static_cast<KServerSession*>(objs[index]);
- auto& manager = managers[index];
-
- // Fetch the HLE request context.
- std::shared_ptr<HLERequestContext> context;
- rc = server_session->ReceiveRequest(&context, manager);
-
- // If the session was closed, handle that.
- if (rc == ResultSessionClosed) {
- SessionClosed(server_session, manager);
-
- // Finish.
- return;
- }
-
- // TODO: handle other cases
- ASSERT(rc == ResultSuccess);
-
- // Perform the request.
- Result service_rc = manager->CompleteSyncRequest(server_session, *context);
-
- // Reply to the client.
- rc = server_session->SendReplyHLE();
-
- if (rc == ResultSessionClosed || service_rc == IPC::ERR_REMOTE_PROCESS_DEAD) {
- SessionClosed(server_session, manager);
- return;
- }
-
- // TODO: handle other cases
- ASSERT(rc == ResultSuccess);
- ASSERT(service_rc == ResultSuccess);
-}
-
-void ServiceThread::Impl::SessionClosed(KServerSession* server_session,
- std::shared_ptr<SessionRequestManager> manager) {
- {
- // Lock to get the set.
- std::scoped_lock lk{m_session_mutex};
-
- // Erase the session.
- ASSERT(m_sessions.erase(server_session) == 1);
- }
-
- // Close our reference to the server session.
- server_session->Close();
-}
-
-void ServiceThread::Impl::LoopProcess() {
- Common::SetCurrentThreadName(m_service_name.c_str());
-
- kernel.RegisterHostThread(m_thread);
-
- while (!m_shutdown_requested.load()) {
- WaitAndProcessImpl();
- }
-}
-
-void ServiceThread::Impl::RegisterServerSession(KServerSession* server_session,
- std::shared_ptr<SessionRequestManager> manager) {
- // Open the server session.
- server_session->Open();
-
- {
- // Lock to get the set.
- std::scoped_lock lk{m_session_mutex};
-
- // Insert the session and manager.
- m_sessions[server_session] = manager;
- }
-
- // Signal the wakeup event.
- m_wakeup_event->Signal();
-}
-
-ServiceThread::Impl::~Impl() {
- // Shut down the processing thread.
- m_shutdown_requested.store(true);
- m_wakeup_event->Signal();
- m_host_thread.join();
-
- // Close all remaining sessions.
- for (const auto& [server_session, manager] : m_sessions) {
- server_session->Close();
- }
-
- // Destroy remaining managers.
- m_sessions.clear();
-
- // Close event.
- m_wakeup_event->GetReadableEvent().Close();
- m_wakeup_event->Close();
-
- // Close thread.
- m_thread->Close();
-}
-
-ServiceThread::Impl::Impl(KernelCore& kernel_, const std::string& service_name)
- : kernel{kernel_}, m_service_name{service_name} {
- // Initialize event.
- m_wakeup_event = KEvent::Create(kernel);
- m_wakeup_event->Initialize(nullptr);
-
- // Initialize thread.
- m_thread = KThread::Create(kernel);
- ASSERT(KThread::InitializeDummyThread(m_thread, nullptr).IsSuccess());
-
- // Start thread.
- m_host_thread = std::jthread([this] { LoopProcess(); });
-}
-
-ServiceThread::ServiceThread(KernelCore& kernel, const std::string& name)
- : impl{std::make_unique<Impl>(kernel, name)} {}
-
-ServiceThread::~ServiceThread() = default;
-
-void ServiceThread::RegisterServerSession(KServerSession* session,
- std::shared_ptr<SessionRequestManager> manager) {
- impl->RegisterServerSession(session, manager);
-}
-
-} // namespace Kernel
diff --git a/src/core/hle/kernel/service_thread.h b/src/core/hle/kernel/service_thread.h
deleted file mode 100644
index fb4325531..000000000
--- a/src/core/hle/kernel/service_thread.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <memory>
-#include <string>
-
-namespace Kernel {
-
-class HLERequestContext;
-class KernelCore;
-class KSession;
-class SessionRequestManager;
-
-class ServiceThread final {
-public:
- explicit ServiceThread(KernelCore& kernel, const std::string& name);
- ~ServiceThread();
-
- void RegisterServerSession(KServerSession* session,
- std::shared_ptr<SessionRequestManager> manager);
-
-private:
- class Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace Kernel
diff --git a/src/core/hle/kernel/slab_helpers.h b/src/core/hle/kernel/slab_helpers.h
index 0228ce188..d1bbc7670 100644
--- a/src/core/hle/kernel/slab_helpers.h
+++ b/src/core/hle/kernel/slab_helpers.h
@@ -66,7 +66,7 @@ private:
}
public:
- explicit KAutoObjectWithSlabHeap(KernelCore& kernel_) : Base(kernel_), kernel(kernel_) {}
+ explicit KAutoObjectWithSlabHeap(KernelCore& kernel) : Base(kernel) {}
virtual ~KAutoObjectWithSlabHeap() = default;
virtual void Destroy() override {
@@ -76,7 +76,7 @@ public:
arg = this->GetPostDestroyArgument();
this->Finalize();
}
- Free(kernel, static_cast<Derived*>(this));
+ Free(Base::m_kernel, static_cast<Derived*>(this));
if (is_initialized) {
Derived::PostDestroy(arg);
}
@@ -90,7 +90,7 @@ public:
}
size_t GetSlabIndex() const {
- return SlabHeap<Derived>(kernel).GetObjectIndex(static_cast<const Derived*>(this));
+ return SlabHeap<Derived>(Base::m_kernel).GetObjectIndex(static_cast<const Derived*>(this));
}
public:
@@ -125,14 +125,11 @@ public:
static size_t GetNumRemaining(KernelCore& kernel) {
return kernel.SlabHeap<Derived>().GetNumRemaining();
}
-
-protected:
- KernelCore& kernel;
};
template <typename Derived, typename Base>
class KAutoObjectWithSlabHeapAndContainer : public Base {
- static_assert(std::is_base_of<KAutoObjectWithList, Base>::value);
+ static_assert(std::is_base_of_v<KAutoObjectWithList, Base>);
private:
static Derived* Allocate(KernelCore& kernel) {
@@ -144,18 +141,18 @@ private:
}
public:
- KAutoObjectWithSlabHeapAndContainer(KernelCore& kernel_) : Base(kernel_), kernel(kernel_) {}
+ KAutoObjectWithSlabHeapAndContainer(KernelCore& kernel) : Base(kernel) {}
virtual ~KAutoObjectWithSlabHeapAndContainer() {}
virtual void Destroy() override {
const bool is_initialized = this->IsInitialized();
uintptr_t arg = 0;
if (is_initialized) {
- kernel.ObjectListContainer().Unregister(this);
+ Base::m_kernel.ObjectListContainer().Unregister(this);
arg = this->GetPostDestroyArgument();
this->Finalize();
}
- Free(kernel, static_cast<Derived*>(this));
+ Free(Base::m_kernel, static_cast<Derived*>(this));
if (is_initialized) {
Derived::PostDestroy(arg);
}
@@ -169,7 +166,7 @@ public:
}
size_t GetSlabIndex() const {
- return SlabHeap<Derived>(kernel).GetObjectIndex(static_cast<const Derived*>(this));
+ return SlabHeap<Derived>(Base::m_kernel).GetObjectIndex(static_cast<const Derived*>(this));
}
public:
@@ -209,9 +206,6 @@ public:
static size_t GetNumRemaining(KernelCore& kernel) {
return kernel.SlabHeap<Derived>().GetNumRemaining();
}
-
-protected:
- KernelCore& kernel;
};
} // namespace Kernel
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index aca442196..871d541d4 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1,3129 +1,4435 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <algorithm>
-#include <cinttypes>
-#include <iterator>
-#include <mutex>
-#include <vector>
-
-#include "common/alignment.h"
-#include "common/assert.h"
-#include "common/common_funcs.h"
-#include "common/fiber.h"
-#include "common/logging/log.h"
-#include "common/scope_exit.h"
+// This file is automatically generated using svc_generator.py.
+
+#include <type_traits>
+
+#include "core/arm/arm_interface.h"
#include "core/core.h"
-#include "core/core_timing.h"
-#include "core/debugger/debugger.h"
-#include "core/hle/kernel/k_client_port.h"
-#include "core/hle/kernel/k_client_session.h"
-#include "core/hle/kernel/k_code_memory.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/kernel/k_handle_table.h"
-#include "core/hle/kernel/k_memory_block.h"
-#include "core/hle/kernel/k_memory_layout.h"
-#include "core/hle/kernel/k_page_table.h"
-#include "core/hle/kernel/k_port.h"
#include "core/hle/kernel/k_process.h"
-#include "core/hle/kernel/k_readable_event.h"
-#include "core/hle/kernel/k_resource_limit.h"
-#include "core/hle/kernel/k_scheduler.h"
-#include "core/hle/kernel/k_scoped_resource_reservation.h"
-#include "core/hle/kernel/k_session.h"
-#include "core/hle/kernel/k_shared_memory.h"
-#include "core/hle/kernel/k_synchronization_object.h"
-#include "core/hle/kernel/k_thread.h"
-#include "core/hle/kernel/k_thread_queue.h"
-#include "core/hle/kernel/k_transfer_memory.h"
-#include "core/hle/kernel/kernel.h"
-#include "core/hle/kernel/physical_core.h"
#include "core/hle/kernel/svc.h"
-#include "core/hle/kernel/svc_results.h"
-#include "core/hle/kernel/svc_types.h"
-#include "core/hle/kernel/svc_wrap.h"
-#include "core/hle/result.h"
-#include "core/memory.h"
-#include "core/reporter.h"
namespace Kernel::Svc {
-namespace {
-
-// Checks if address + size is greater than the given address
-// This can return false if the size causes an overflow of a 64-bit type
-// or if the given size is zero.
-constexpr bool IsValidAddressRange(VAddr address, u64 size) {
- return address + size > address;
-}
-
-// Helper function that performs the common sanity checks for svcMapMemory
-// and svcUnmapMemory. This is doable, as both functions perform their sanitizing
-// in the same order.
-Result MapUnmapMemorySanityChecks(const KPageTable& manager, VAddr dst_addr, VAddr src_addr,
- u64 size) {
- if (!Common::Is4KBAligned(dst_addr)) {
- LOG_ERROR(Kernel_SVC, "Destination address is not aligned to 4KB, 0x{:016X}", dst_addr);
- return ResultInvalidAddress;
- }
- if (!Common::Is4KBAligned(src_addr)) {
- LOG_ERROR(Kernel_SVC, "Source address is not aligned to 4KB, 0x{:016X}", src_addr);
- return ResultInvalidSize;
- }
+static uint32_t GetReg32(Core::System& system, int n) {
+ return static_cast<uint32_t>(system.CurrentArmInterface().GetReg(n));
+}
- if (size == 0) {
- LOG_ERROR(Kernel_SVC, "Size is 0");
- return ResultInvalidSize;
- }
+static void SetReg32(Core::System& system, int n, uint32_t result) {
+ system.CurrentArmInterface().SetReg(n, static_cast<uint64_t>(result));
+}
- if (!Common::Is4KBAligned(size)) {
- LOG_ERROR(Kernel_SVC, "Size is not aligned to 4KB, 0x{:016X}", size);
- return ResultInvalidSize;
- }
+static uint64_t GetReg64(Core::System& system, int n) {
+ return system.CurrentArmInterface().GetReg(n);
+}
- if (!IsValidAddressRange(dst_addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination is not a valid address range, addr=0x{:016X}, size=0x{:016X}",
- dst_addr, size);
- return ResultInvalidCurrentMemory;
- }
+static void SetReg64(Core::System& system, int n, uint64_t result) {
+ system.CurrentArmInterface().SetReg(n, result);
+}
- if (!IsValidAddressRange(src_addr, size)) {
- LOG_ERROR(Kernel_SVC, "Source is not a valid address range, addr=0x{:016X}, size=0x{:016X}",
- src_addr, size);
- return ResultInvalidCurrentMemory;
- }
+// Like bit_cast, but handles the case when the source and dest
+// are differently-sized.
+template <typename To, typename From>
+ requires(std::is_trivial_v<To> && std::is_trivially_copyable_v<From>)
+static To Convert(const From& from) {
+ To to{};
- if (!manager.IsInsideAddressSpace(src_addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Source is not within the address space, addr=0x{:016X}, size=0x{:016X}",
- src_addr, size);
- return ResultInvalidCurrentMemory;
+ if constexpr (sizeof(To) >= sizeof(From)) {
+ std::memcpy(std::addressof(to), std::addressof(from), sizeof(From));
+ } else {
+ std::memcpy(std::addressof(to), std::addressof(from), sizeof(To));
}
- if (manager.IsOutsideStackRegion(dst_addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination is not within the stack region, addr=0x{:016X}, size=0x{:016X}",
- dst_addr, size);
- return ResultInvalidMemoryRegion;
- }
+ return to;
+}
- if (manager.IsInsideHeapRegion(dst_addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination does not fit within the heap region, addr=0x{:016X}, "
- "size=0x{:016X}",
- dst_addr, size);
- return ResultInvalidMemoryRegion;
- }
+// clang-format off
+static_assert(sizeof(ArbitrationType) == 4);
+static_assert(sizeof(BreakReason) == 4);
+static_assert(sizeof(CodeMemoryOperation) == 4);
+static_assert(sizeof(DebugThreadParam) == 4);
+static_assert(sizeof(DeviceName) == 4);
+static_assert(sizeof(HardwareBreakPointRegisterName) == 4);
+static_assert(sizeof(Handle) == 4);
+static_assert(sizeof(InfoType) == 4);
+static_assert(sizeof(InterruptType) == 4);
+static_assert(sizeof(IoPoolType) == 4);
+static_assert(sizeof(KernelDebugType) == 4);
+static_assert(sizeof(KernelTraceState) == 4);
+static_assert(sizeof(LimitableResource) == 4);
+static_assert(sizeof(MemoryMapping) == 4);
+static_assert(sizeof(MemoryPermission) == 4);
+static_assert(sizeof(PageInfo) == 4);
+static_assert(sizeof(ProcessActivity) == 4);
+static_assert(sizeof(ProcessInfoType) == 4);
+static_assert(sizeof(Result) == 4);
+static_assert(sizeof(SignalType) == 4);
+static_assert(sizeof(SystemInfoType) == 4);
+static_assert(sizeof(ThreadActivity) == 4);
+static_assert(sizeof(ilp32::LastThreadContext) == 16);
+static_assert(sizeof(ilp32::PhysicalMemoryInfo) == 16);
+static_assert(sizeof(ilp32::SecureMonitorArguments) == 32);
+static_assert(sizeof(lp64::LastThreadContext) == 32);
+static_assert(sizeof(lp64::PhysicalMemoryInfo) == 24);
+static_assert(sizeof(lp64::SecureMonitorArguments) == 64);
+static_assert(sizeof(bool) == 1);
+static_assert(sizeof(int32_t) == 4);
+static_assert(sizeof(int64_t) == 8);
+static_assert(sizeof(uint32_t) == 4);
+static_assert(sizeof(uint64_t) == 8);
- if (manager.IsInsideAliasRegion(dst_addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination does not fit within the map region, addr=0x{:016X}, "
- "size=0x{:016X}",
- dst_addr, size);
- return ResultInvalidMemoryRegion;
- }
+static void SvcWrap_SetHeapSize64From32(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_address{};
+ uint32_t size{};
+
+ size = Convert<uint32_t>(GetReg32(system, 1));
+
+ ret = SetHeapSize64From32(system, std::addressof(out_address), size);
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_address));
}
-enum class ResourceLimitValueType {
- CurrentValue,
- LimitValue,
- PeakValue,
-};
+static void SvcWrap_SetMemoryPermission64From32(Core::System& system) {
+ Result ret{};
-} // Anonymous namespace
+ uint32_t address{};
+ uint32_t size{};
+ MemoryPermission perm{};
+
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
+ perm = Convert<MemoryPermission>(GetReg32(system, 2));
+
+ ret = SetMemoryPermission64From32(system, address, size, perm);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
-/// Set the process heap to a given Size. It can both extend and shrink the heap.
-static Result SetHeapSize(Core::System& system, VAddr* out_address, u64 size) {
- LOG_TRACE(Kernel_SVC, "called, heap_size=0x{:X}", size);
+static void SvcWrap_SetMemoryAttribute64From32(Core::System& system) {
+ Result ret{};
- // Validate size.
- R_UNLESS(Common::IsAligned(size, HeapSizeAlignment), ResultInvalidSize);
- R_UNLESS(size < MainMemorySizeMax, ResultInvalidSize);
+ uint32_t address{};
+ uint32_t size{};
+ uint32_t mask{};
+ uint32_t attr{};
- // Set the heap size.
- R_TRY(system.Kernel().CurrentProcess()->PageTable().SetHeapSize(out_address, size));
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
+ mask = Convert<uint32_t>(GetReg32(system, 2));
+ attr = Convert<uint32_t>(GetReg32(system, 3));
- return ResultSuccess;
+ ret = SetMemoryAttribute64From32(system, address, size, mask, attr);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result SetHeapSize32(Core::System& system, u32* heap_addr, u32 heap_size) {
- VAddr temp_heap_addr{};
- const Result result{SetHeapSize(system, &temp_heap_addr, heap_size)};
- *heap_addr = static_cast<u32>(temp_heap_addr);
- return result;
+static void SvcWrap_MapMemory64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t dst_address{};
+ uint32_t src_address{};
+ uint32_t size{};
+
+ dst_address = Convert<uint32_t>(GetReg32(system, 0));
+ src_address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+
+ ret = MapMemory64From32(system, dst_address, src_address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-constexpr bool IsValidSetMemoryPermission(MemoryPermission perm) {
- switch (perm) {
- case MemoryPermission::None:
- case MemoryPermission::Read:
- case MemoryPermission::ReadWrite:
- return true;
- default:
- return false;
- }
+static void SvcWrap_UnmapMemory64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t dst_address{};
+ uint32_t src_address{};
+ uint32_t size{};
+
+ dst_address = Convert<uint32_t>(GetReg32(system, 0));
+ src_address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+
+ ret = UnmapMemory64From32(system, dst_address, src_address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result SetMemoryPermission(Core::System& system, VAddr address, u64 size,
- MemoryPermission perm) {
- LOG_DEBUG(Kernel_SVC, "called, address=0x{:016X}, size=0x{:X}, perm=0x{:08X", address, size,
- perm);
+static void SvcWrap_QueryMemory64From32(Core::System& system) {
+ Result ret{};
- // Validate address / size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+ PageInfo out_page_info{};
+ uint32_t out_memory_info{};
+ uint32_t address{};
- // Validate the permission.
- R_UNLESS(IsValidSetMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+ out_memory_info = Convert<uint32_t>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 2));
- // Validate that the region is in range for the current process.
- auto& page_table = system.Kernel().CurrentProcess()->PageTable();
- R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
+ ret = QueryMemory64From32(system, out_memory_info, std::addressof(out_page_info), address);
- // Set the memory attribute.
- return page_table.SetMemoryPermission(address, size, perm);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_page_info));
}
-static Result SetMemoryAttribute(Core::System& system, VAddr address, u64 size, u32 mask,
- u32 attr) {
- LOG_DEBUG(Kernel_SVC,
- "called, address=0x{:016X}, size=0x{:X}, mask=0x{:08X}, attribute=0x{:08X}", address,
- size, mask, attr);
+static void SvcWrap_ExitProcess64From32(Core::System& system) {
+ ExitProcess64From32(system);
+}
+
+static void SvcWrap_CreateThread64From32(Core::System& system) {
+ Result ret{};
- // Validate address / size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+ Handle out_handle{};
+ uint32_t func{};
+ uint32_t arg{};
+ uint32_t stack_bottom{};
+ int32_t priority{};
+ int32_t core_id{};
- // Validate the attribute and mask.
- constexpr u32 SupportedMask = static_cast<u32>(MemoryAttribute::Uncached);
- R_UNLESS((mask | attr) == mask, ResultInvalidCombination);
- R_UNLESS((mask | attr | SupportedMask) == SupportedMask, ResultInvalidCombination);
+ func = Convert<uint32_t>(GetReg32(system, 1));
+ arg = Convert<uint32_t>(GetReg32(system, 2));
+ stack_bottom = Convert<uint32_t>(GetReg32(system, 3));
+ priority = Convert<int32_t>(GetReg32(system, 0));
+ core_id = Convert<int32_t>(GetReg32(system, 4));
- // Validate that the region is in range for the current process.
- auto& page_table{system.Kernel().CurrentProcess()->PageTable()};
- R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
+ ret = CreateThread64From32(system, std::addressof(out_handle), func, arg, stack_bottom, priority, core_id);
- // Set the memory attribute.
- return page_table.SetMemoryAttribute(address, size, mask, attr);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static Result SetMemoryAttribute32(Core::System& system, u32 address, u32 size, u32 mask,
- u32 attr) {
- return SetMemoryAttribute(system, address, size, mask, attr);
+static void SvcWrap_StartThread64From32(Core::System& system) {
+ Result ret{};
+
+ Handle thread_handle{};
+
+ thread_handle = Convert<Handle>(GetReg32(system, 0));
+
+ ret = StartThread64From32(system, thread_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Maps a memory range into a different range.
-static Result MapMemory(Core::System& system, VAddr dst_addr, VAddr src_addr, u64 size) {
- LOG_TRACE(Kernel_SVC, "called, dst_addr=0x{:X}, src_addr=0x{:X}, size=0x{:X}", dst_addr,
- src_addr, size);
+static void SvcWrap_ExitThread64From32(Core::System& system) {
+ ExitThread64From32(system);
+}
- auto& page_table{system.Kernel().CurrentProcess()->PageTable()};
+static void SvcWrap_SleepThread64From32(Core::System& system) {
+ int64_t ns{};
- if (const Result result{MapUnmapMemorySanityChecks(page_table, dst_addr, src_addr, size)};
- result.IsError()) {
- return result;
- }
+ std::array<uint32_t, 2> ns_gather{};
+ ns_gather[0] = GetReg32(system, 0);
+ ns_gather[1] = GetReg32(system, 1);
+ ns = Convert<int64_t>(ns_gather);
- return page_table.MapMemory(dst_addr, src_addr, size);
+ SleepThread64From32(system, ns);
}
-static Result MapMemory32(Core::System& system, u32 dst_addr, u32 src_addr, u32 size) {
- return MapMemory(system, dst_addr, src_addr, size);
+static void SvcWrap_GetThreadPriority64From32(Core::System& system) {
+ Result ret{};
+
+ int32_t out_priority{};
+ Handle thread_handle{};
+
+ thread_handle = Convert<Handle>(GetReg32(system, 1));
+
+ ret = GetThreadPriority64From32(system, std::addressof(out_priority), thread_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_priority));
}
-/// Unmaps a region that was previously mapped with svcMapMemory
-static Result UnmapMemory(Core::System& system, VAddr dst_addr, VAddr src_addr, u64 size) {
- LOG_TRACE(Kernel_SVC, "called, dst_addr=0x{:X}, src_addr=0x{:X}, size=0x{:X}", dst_addr,
- src_addr, size);
+static void SvcWrap_SetThreadPriority64From32(Core::System& system) {
+ Result ret{};
- auto& page_table{system.Kernel().CurrentProcess()->PageTable()};
+ Handle thread_handle{};
+ int32_t priority{};
- if (const Result result{MapUnmapMemorySanityChecks(page_table, dst_addr, src_addr, size)};
- result.IsError()) {
- return result;
- }
+ thread_handle = Convert<Handle>(GetReg32(system, 0));
+ priority = Convert<int32_t>(GetReg32(system, 1));
- return page_table.UnmapMemory(dst_addr, src_addr, size);
+ ret = SetThreadPriority64From32(system, thread_handle, priority);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result UnmapMemory32(Core::System& system, u32 dst_addr, u32 src_addr, u32 size) {
- return UnmapMemory(system, dst_addr, src_addr, size);
+static void SvcWrap_GetThreadCoreMask64From32(Core::System& system) {
+ Result ret{};
+
+ int32_t out_core_id{};
+ uint64_t out_affinity_mask{};
+ Handle thread_handle{};
+
+ thread_handle = Convert<Handle>(GetReg32(system, 2));
+
+ ret = GetThreadCoreMask64From32(system, std::addressof(out_core_id), std::addressof(out_affinity_mask), thread_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_core_id));
+ auto out_affinity_mask_scatter = Convert<std::array<uint32_t, 2>>(out_affinity_mask);
+ SetReg32(system, 2, out_affinity_mask_scatter[0]);
+ SetReg32(system, 3, out_affinity_mask_scatter[1]);
}
-template <typename T>
-Result CreateSession(Core::System& system, Handle* out_server, Handle* out_client, u64 name) {
- auto& process = *system.CurrentProcess();
- auto& handle_table = process.GetHandleTable();
+static void SvcWrap_SetThreadCoreMask64From32(Core::System& system) {
+ Result ret{};
- // Declare the session we're going to allocate.
- T* session;
+ Handle thread_handle{};
+ int32_t core_id{};
+ uint64_t affinity_mask{};
- // Reserve a new session from the process resource limit.
- // FIXME: LimitableResource_SessionCountMax
- KScopedResourceReservation session_reservation(&process, LimitableResource::SessionCountMax);
- if (session_reservation.Succeeded()) {
- session = T::Create(system.Kernel());
- } else {
- return ResultLimitReached;
-
- // // We couldn't reserve a session. Check that we support dynamically expanding the
- // // resource limit.
- // R_UNLESS(process.GetResourceLimit() ==
- // &system.Kernel().GetSystemResourceLimit(), ResultLimitReached);
- // R_UNLESS(KTargetSystem::IsDynamicResourceLimitsEnabled(), ResultLimitReached());
-
- // // Try to allocate a session from unused slab memory.
- // session = T::CreateFromUnusedSlabMemory();
- // R_UNLESS(session != nullptr, ResultLimitReached);
- // ON_RESULT_FAILURE { session->Close(); };
-
- // // If we're creating a KSession, we want to add two KSessionRequests to the heap, to
- // // prevent request exhaustion.
- // // NOTE: Nintendo checks if session->DynamicCast<KSession *>() != nullptr, but there's
- // // no reason to not do this statically.
- // if constexpr (std::same_as<T, KSession>) {
- // for (size_t i = 0; i < 2; i++) {
- // KSessionRequest* request = KSessionRequest::CreateFromUnusedSlabMemory();
- // R_UNLESS(request != nullptr, ResultLimitReached);
- // request->Close();
- // }
- // }
-
- // We successfully allocated a session, so add the object we allocated to the resource
- // limit.
- // system.Kernel().GetSystemResourceLimit().Reserve(LimitableResource::SessionCountMax, 1);
- }
+ thread_handle = Convert<Handle>(GetReg32(system, 0));
+ core_id = Convert<int32_t>(GetReg32(system, 1));
+ std::array<uint32_t, 2> affinity_mask_gather{};
+ affinity_mask_gather[0] = GetReg32(system, 2);
+ affinity_mask_gather[1] = GetReg32(system, 3);
+ affinity_mask = Convert<uint64_t>(affinity_mask_gather);
- // Check that we successfully created a session.
- R_UNLESS(session != nullptr, ResultOutOfResource);
+ ret = SetThreadCoreMask64From32(system, thread_handle, core_id, affinity_mask);
- // Initialize the session.
- session->Initialize(nullptr, fmt::format("{}", name));
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // Commit the session reservation.
- session_reservation.Commit();
+static void SvcWrap_GetCurrentProcessorNumber64From32(Core::System& system) {
+ int32_t ret{};
- // Ensure that we clean up the session (and its only references are handle table) on function
- // end.
- SCOPE_EXIT({
- session->GetClientSession().Close();
- session->GetServerSession().Close();
- });
+ ret = GetCurrentProcessorNumber64From32(system);
- // Register the session.
- T::Register(system.Kernel(), session);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // Add the server session to the handle table.
- R_TRY(handle_table.Add(out_server, &session->GetServerSession()));
+static void SvcWrap_SignalEvent64From32(Core::System& system) {
+ Result ret{};
- // Add the client session to the handle table.
- const auto result = handle_table.Add(out_client, &session->GetClientSession());
+ Handle event_handle{};
- if (!R_SUCCEEDED(result)) {
- // Ensure that we maintaing a clean handle state on exit.
- handle_table.Remove(*out_server);
- }
+ event_handle = Convert<Handle>(GetReg32(system, 0));
- return result;
+ ret = SignalEvent64From32(system, event_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result CreateSession(Core::System& system, Handle* out_server, Handle* out_client,
- u32 is_light, u64 name) {
- if (is_light) {
- // return CreateSession<KLightSession>(system, out_server, out_client, name);
- return ResultUnknown;
- } else {
- return CreateSession<KSession>(system, out_server, out_client, name);
- }
+static void SvcWrap_ClearEvent64From32(Core::System& system) {
+ Result ret{};
+
+ Handle event_handle{};
+
+ event_handle = Convert<Handle>(GetReg32(system, 0));
+
+ ret = ClearEvent64From32(system, event_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Connect to an OS service given the port name, returns the handle to the port to out
-static Result ConnectToNamedPort(Core::System& system, Handle* out, VAddr port_name_address) {
- auto& memory = system.Memory();
- if (!memory.IsValidVirtualAddress(port_name_address)) {
- LOG_ERROR(Kernel_SVC,
- "Port Name Address is not a valid virtual address, port_name_address=0x{:016X}",
- port_name_address);
- return ResultNotFound;
- }
+static void SvcWrap_MapSharedMemory64From32(Core::System& system) {
+ Result ret{};
- static constexpr std::size_t PortNameMaxLength = 11;
- // Read 1 char beyond the max allowed port name to detect names that are too long.
- const std::string port_name = memory.ReadCString(port_name_address, PortNameMaxLength + 1);
- if (port_name.size() > PortNameMaxLength) {
- LOG_ERROR(Kernel_SVC, "Port name is too long, expected {} but got {}", PortNameMaxLength,
- port_name.size());
- return ResultOutOfRange;
- }
+ Handle shmem_handle{};
+ uint32_t address{};
+ uint32_t size{};
+ MemoryPermission map_perm{};
- LOG_TRACE(Kernel_SVC, "called port_name={}", port_name);
+ shmem_handle = Convert<Handle>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+ map_perm = Convert<MemoryPermission>(GetReg32(system, 3));
- // Get the current handle table.
- auto& kernel = system.Kernel();
- auto& handle_table = kernel.CurrentProcess()->GetHandleTable();
+ ret = MapSharedMemory64From32(system, shmem_handle, address, size, map_perm);
- // Find the client port.
- auto port = kernel.CreateNamedServicePort(port_name);
- if (!port) {
- LOG_ERROR(Kernel_SVC, "tried to connect to unknown port: {}", port_name);
- return ResultNotFound;
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // Reserve a handle for the port.
- // NOTE: Nintendo really does write directly to the output handle here.
- R_TRY(handle_table.Reserve(out));
- auto handle_guard = SCOPE_GUARD({ handle_table.Unreserve(*out); });
+static void SvcWrap_UnmapSharedMemory64From32(Core::System& system) {
+ Result ret{};
- // Create a session.
- KClientSession* session{};
- R_TRY(port->CreateSession(std::addressof(session)));
+ Handle shmem_handle{};
+ uint32_t address{};
+ uint32_t size{};
- kernel.RegisterNamedServiceHandler(port_name, &port->GetParent()->GetServerPort());
+ shmem_handle = Convert<Handle>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
- // Register the session in the table, close the extra reference.
- handle_table.Register(*out, session);
- session->Close();
+ ret = UnmapSharedMemory64From32(system, shmem_handle, address, size);
- // We succeeded.
- handle_guard.Cancel();
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result ConnectToNamedPort32(Core::System& system, Handle* out_handle,
- u32 port_name_address) {
+static void SvcWrap_CreateTransferMemory64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint32_t address{};
+ uint32_t size{};
+ MemoryPermission map_perm{};
+
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+ map_perm = Convert<MemoryPermission>(GetReg32(system, 3));
+
+ ret = CreateTransferMemory64From32(system, std::addressof(out_handle), address, size, map_perm);
- return ConnectToNamedPort(system, out_handle, port_name_address);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-/// Makes a blocking IPC call to a service.
-static Result SendSyncRequest(Core::System& system, Handle handle) {
- auto& kernel = system.Kernel();
+static void SvcWrap_CloseHandle64From32(Core::System& system) {
+ Result ret{};
- // Create the wait queue.
- KThreadQueue wait_queue(kernel);
+ Handle handle{};
- // Get the client session from its handle.
- KScopedAutoObject session =
- kernel.CurrentProcess()->GetHandleTable().GetObject<KClientSession>(handle);
- R_UNLESS(session.IsNotNull(), ResultInvalidHandle);
+ handle = Convert<Handle>(GetReg32(system, 0));
- LOG_TRACE(Kernel_SVC, "called handle=0x{:08X}({})", handle, session->GetName());
+ ret = CloseHandle64From32(system, handle);
- return session->SendSyncRequest();
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result SendSyncRequest32(Core::System& system, Handle handle) {
- return SendSyncRequest(system, handle);
+static void SvcWrap_ResetSignal64From32(Core::System& system) {
+ Result ret{};
+
+ Handle handle{};
+
+ handle = Convert<Handle>(GetReg32(system, 0));
+
+ ret = ResetSignal64From32(system, handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result ReplyAndReceive(Core::System& system, s32* out_index, Handle* handles,
- s32 num_handles, Handle reply_target, s64 timeout_ns) {
- auto& kernel = system.Kernel();
- auto& handle_table = GetCurrentThread(kernel).GetOwnerProcess()->GetHandleTable();
-
- // Convert handle list to object table.
- std::vector<KSynchronizationObject*> objs(num_handles);
- R_UNLESS(
- handle_table.GetMultipleObjects<KSynchronizationObject>(objs.data(), handles, num_handles),
- ResultInvalidHandle);
-
- // Ensure handles are closed when we're done.
- SCOPE_EXIT({
- for (auto i = 0; i < num_handles; ++i) {
- objs[i]->Close();
- }
- });
-
- // Reply to the target, if one is specified.
- if (reply_target != InvalidHandle) {
- KScopedAutoObject session = handle_table.GetObject<KServerSession>(reply_target);
- R_UNLESS(session.IsNotNull(), ResultInvalidHandle);
-
- // If we fail to reply, we want to set the output index to -1.
- // ON_RESULT_FAILURE { *out_index = -1; };
-
- // Send the reply.
- // R_TRY(session->SendReply());
-
- Result rc = session->SendReply();
- if (!R_SUCCEEDED(rc)) {
- *out_index = -1;
- return rc;
- }
- }
+static void SvcWrap_WaitSynchronization64From32(Core::System& system) {
+ Result ret{};
- // Wait for a message.
- while (true) {
- // Wait for an object.
- s32 index;
- Result result = KSynchronizationObject::Wait(kernel, &index, objs.data(),
- static_cast<s32>(objs.size()), timeout_ns);
- if (result == ResultTimedOut) {
- return result;
- }
-
- // Receive the request.
- if (R_SUCCEEDED(result)) {
- KServerSession* session = objs[index]->DynamicCast<KServerSession*>();
- if (session != nullptr) {
- result = session->ReceiveRequest();
- if (result == ResultNotFound) {
- continue;
- }
- }
- }
-
- *out_index = index;
- return result;
- }
+ int32_t out_index{};
+ uint32_t handles{};
+ int32_t num_handles{};
+ int64_t timeout_ns{};
+
+ handles = Convert<uint32_t>(GetReg32(system, 1));
+ num_handles = Convert<int32_t>(GetReg32(system, 2));
+ std::array<uint32_t, 2> timeout_ns_gather{};
+ timeout_ns_gather[0] = GetReg32(system, 0);
+ timeout_ns_gather[1] = GetReg32(system, 3);
+ timeout_ns = Convert<int64_t>(timeout_ns_gather);
+
+ ret = WaitSynchronization64From32(system, std::addressof(out_index), handles, num_handles, timeout_ns);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_index));
}
-/// Get the ID for the specified thread.
-static Result GetThreadId(Core::System& system, u64* out_thread_id, Handle thread_handle) {
- // Get the thread from its handle.
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(thread_handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+static void SvcWrap_CancelSynchronization64From32(Core::System& system) {
+ Result ret{};
- // Get the thread's id.
- *out_thread_id = thread->GetId();
- return ResultSuccess;
+ Handle handle{};
+
+ handle = Convert<Handle>(GetReg32(system, 0));
+
+ ret = CancelSynchronization64From32(system, handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result GetThreadId32(Core::System& system, u32* out_thread_id_low, u32* out_thread_id_high,
- Handle thread_handle) {
- u64 out_thread_id{};
- const Result result{GetThreadId(system, &out_thread_id, thread_handle)};
+static void SvcWrap_ArbitrateLock64From32(Core::System& system) {
+ Result ret{};
+
+ Handle thread_handle{};
+ uint32_t address{};
+ uint32_t tag{};
- *out_thread_id_low = static_cast<u32>(out_thread_id >> 32);
- *out_thread_id_high = static_cast<u32>(out_thread_id & std::numeric_limits<u32>::max());
+ thread_handle = Convert<Handle>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ tag = Convert<uint32_t>(GetReg32(system, 2));
- return result;
+ ret = ArbitrateLock64From32(system, thread_handle, address, tag);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Gets the ID of the specified process or a specified thread's owning process.
-static Result GetProcessId(Core::System& system, u64* out_process_id, Handle handle) {
- LOG_DEBUG(Kernel_SVC, "called handle=0x{:08X}", handle);
+static void SvcWrap_ArbitrateUnlock64From32(Core::System& system) {
+ Result ret{};
- // Get the object from the handle table.
- KScopedAutoObject obj =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KAutoObject>(
- static_cast<Handle>(handle));
- R_UNLESS(obj.IsNotNull(), ResultInvalidHandle);
+ uint32_t address{};
- // Get the process from the object.
- KProcess* process = nullptr;
- if (KProcess* p = obj->DynamicCast<KProcess*>(); p != nullptr) {
- // The object is a process, so we can use it directly.
- process = p;
- } else if (KThread* t = obj->DynamicCast<KThread*>(); t != nullptr) {
- // The object is a thread, so we want to use its parent.
- process = reinterpret_cast<KThread*>(obj.GetPointerUnsafe())->GetOwnerProcess();
- } else {
- // TODO(bunnei): This should also handle debug objects before returning.
- UNIMPLEMENTED_MSG("Debug objects not implemented");
- }
+ address = Convert<uint32_t>(GetReg32(system, 0));
- // Make sure the target process exists.
- R_UNLESS(process != nullptr, ResultInvalidHandle);
+ ret = ArbitrateUnlock64From32(system, address);
- // Get the process id.
- *out_process_id = process->GetId();
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
+
+static void SvcWrap_WaitProcessWideKeyAtomic64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t address{};
+ uint32_t cv_key{};
+ uint32_t tag{};
+ int64_t timeout_ns{};
+
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ cv_key = Convert<uint32_t>(GetReg32(system, 1));
+ tag = Convert<uint32_t>(GetReg32(system, 2));
+ std::array<uint32_t, 2> timeout_ns_gather{};
+ timeout_ns_gather[0] = GetReg32(system, 3);
+ timeout_ns_gather[1] = GetReg32(system, 4);
+ timeout_ns = Convert<int64_t>(timeout_ns_gather);
- return ResultSuccess;
+ ret = WaitProcessWideKeyAtomic64From32(system, address, cv_key, tag, timeout_ns);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result GetProcessId32(Core::System& system, u32* out_process_id_low,
- u32* out_process_id_high, Handle handle) {
- u64 out_process_id{};
- const auto result = GetProcessId(system, &out_process_id, handle);
- *out_process_id_low = static_cast<u32>(out_process_id);
- *out_process_id_high = static_cast<u32>(out_process_id >> 32);
- return result;
+static void SvcWrap_SignalProcessWideKey64From32(Core::System& system) {
+ uint32_t cv_key{};
+ int32_t count{};
+
+ cv_key = Convert<uint32_t>(GetReg32(system, 0));
+ count = Convert<int32_t>(GetReg32(system, 1));
+
+ SignalProcessWideKey64From32(system, cv_key, count);
}
-/// Wait for the given handles to synchronize, timeout after the specified nanoseconds
-static Result WaitSynchronization(Core::System& system, s32* index, VAddr handles_address,
- s32 num_handles, s64 nano_seconds) {
- LOG_TRACE(Kernel_SVC, "called handles_address=0x{:X}, num_handles={}, nano_seconds={}",
- handles_address, num_handles, nano_seconds);
+static void SvcWrap_GetSystemTick64From32(Core::System& system) {
+ int64_t ret{};
- // Ensure number of handles is valid.
- R_UNLESS(0 <= num_handles && num_handles <= ArgumentHandleCountMax, ResultOutOfRange);
+ ret = GetSystemTick64From32(system);
- auto& kernel = system.Kernel();
- std::vector<KSynchronizationObject*> objs(num_handles);
- const auto& handle_table = kernel.CurrentProcess()->GetHandleTable();
- Handle* handles = system.Memory().GetPointer<Handle>(handles_address);
-
- // Copy user handles.
- if (num_handles > 0) {
- // Convert the handles to objects.
- R_UNLESS(handle_table.GetMultipleObjects<KSynchronizationObject>(objs.data(), handles,
- num_handles),
- ResultInvalidHandle);
- for (const auto& obj : objs) {
- kernel.RegisterInUseObject(obj);
- }
- }
+ auto ret_scatter = Convert<std::array<uint32_t, 2>>(ret);
+ SetReg32(system, 0, ret_scatter[0]);
+ SetReg32(system, 1, ret_scatter[1]);
+}
+
+static void SvcWrap_ConnectToNamedPort64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint32_t name{};
- // Ensure handles are closed when we're done.
- SCOPE_EXIT({
- for (s32 i = 0; i < num_handles; ++i) {
- kernel.UnregisterInUseObject(objs[i]);
- objs[i]->Close();
- }
- });
+ name = Convert<uint32_t>(GetReg32(system, 1));
- return KSynchronizationObject::Wait(kernel, index, objs.data(), static_cast<s32>(objs.size()),
- nano_seconds);
+ ret = ConnectToNamedPort64From32(system, std::addressof(out_handle), name);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static Result WaitSynchronization32(Core::System& system, u32 timeout_low, u32 handles_address,
- s32 num_handles, u32 timeout_high, s32* index) {
- const s64 nano_seconds{(static_cast<s64>(timeout_high) << 32) | static_cast<s64>(timeout_low)};
- return WaitSynchronization(system, index, handles_address, num_handles, nano_seconds);
+static void SvcWrap_SendSyncRequest64From32(Core::System& system) {
+ Result ret{};
+
+ Handle session_handle{};
+
+ session_handle = Convert<Handle>(GetReg32(system, 0));
+
+ ret = SendSyncRequest64From32(system, session_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Resumes a thread waiting on WaitSynchronization
-static Result CancelSynchronization(Core::System& system, Handle handle) {
- LOG_TRACE(Kernel_SVC, "called handle=0x{:X}", handle);
+static void SvcWrap_SendSyncRequestWithUserBuffer64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t message_buffer{};
+ uint32_t message_buffer_size{};
+ Handle session_handle{};
+
+ message_buffer = Convert<uint32_t>(GetReg32(system, 0));
+ message_buffer_size = Convert<uint32_t>(GetReg32(system, 1));
+ session_handle = Convert<Handle>(GetReg32(system, 2));
- // Get the thread from its handle.
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ ret = SendSyncRequestWithUserBuffer64From32(system, message_buffer, message_buffer_size, session_handle);
- // Cancel the thread's wait.
- thread->WaitCancel();
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result CancelSynchronization32(Core::System& system, Handle handle) {
- return CancelSynchronization(system, handle);
+static void SvcWrap_SendAsyncRequestWithUserBuffer64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_event_handle{};
+ uint32_t message_buffer{};
+ uint32_t message_buffer_size{};
+ Handle session_handle{};
+
+ message_buffer = Convert<uint32_t>(GetReg32(system, 1));
+ message_buffer_size = Convert<uint32_t>(GetReg32(system, 2));
+ session_handle = Convert<Handle>(GetReg32(system, 3));
+
+ ret = SendAsyncRequestWithUserBuffer64From32(system, std::addressof(out_event_handle), message_buffer, message_buffer_size, session_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_event_handle));
}
-/// Attempts to locks a mutex
-static Result ArbitrateLock(Core::System& system, Handle thread_handle, VAddr address, u32 tag) {
- LOG_TRACE(Kernel_SVC, "called thread_handle=0x{:08X}, address=0x{:X}, tag=0x{:08X}",
- thread_handle, address, tag);
+static void SvcWrap_GetProcessId64From32(Core::System& system) {
+ Result ret{};
- // Validate the input address.
- if (IsKernelAddress(address)) {
- LOG_ERROR(Kernel_SVC, "Attempting to arbitrate a lock on a kernel address (address={:08X})",
- address);
- return ResultInvalidCurrentMemory;
- }
- if (!Common::IsAligned(address, sizeof(u32))) {
- LOG_ERROR(Kernel_SVC, "Input address must be 4 byte aligned (address: {:08X})", address);
- return ResultInvalidAddress;
- }
+ uint64_t out_process_id{};
+ Handle process_handle{};
+
+ process_handle = Convert<Handle>(GetReg32(system, 1));
+
+ ret = GetProcessId64From32(system, std::addressof(out_process_id), process_handle);
- return system.Kernel().CurrentProcess()->WaitForAddress(thread_handle, address, tag);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_process_id_scatter = Convert<std::array<uint32_t, 2>>(out_process_id);
+ SetReg32(system, 1, out_process_id_scatter[0]);
+ SetReg32(system, 2, out_process_id_scatter[1]);
}
-static Result ArbitrateLock32(Core::System& system, Handle thread_handle, u32 address, u32 tag) {
- return ArbitrateLock(system, thread_handle, address, tag);
+static void SvcWrap_GetThreadId64From32(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_thread_id{};
+ Handle thread_handle{};
+
+ thread_handle = Convert<Handle>(GetReg32(system, 1));
+
+ ret = GetThreadId64From32(system, std::addressof(out_thread_id), thread_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_thread_id_scatter = Convert<std::array<uint32_t, 2>>(out_thread_id);
+ SetReg32(system, 1, out_thread_id_scatter[0]);
+ SetReg32(system, 2, out_thread_id_scatter[1]);
}
-/// Unlock a mutex
-static Result ArbitrateUnlock(Core::System& system, VAddr address) {
- LOG_TRACE(Kernel_SVC, "called address=0x{:X}", address);
+static void SvcWrap_Break64From32(Core::System& system) {
+ BreakReason break_reason{};
+ uint32_t arg{};
+ uint32_t size{};
- // Validate the input address.
- if (IsKernelAddress(address)) {
- LOG_ERROR(Kernel_SVC,
- "Attempting to arbitrate an unlock on a kernel address (address={:08X})",
- address);
- return ResultInvalidCurrentMemory;
- }
- if (!Common::IsAligned(address, sizeof(u32))) {
- LOG_ERROR(Kernel_SVC, "Input address must be 4 byte aligned (address: {:08X})", address);
- return ResultInvalidAddress;
- }
+ break_reason = Convert<BreakReason>(GetReg32(system, 0));
+ arg = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
- return system.Kernel().CurrentProcess()->SignalToAddress(address);
-}
-
-static Result ArbitrateUnlock32(Core::System& system, u32 address) {
- return ArbitrateUnlock(system, address);
-}
-
-/// Break program execution
-static void Break(Core::System& system, u32 reason, u64 info1, u64 info2) {
- BreakReason break_reason =
- static_cast<BreakReason>(reason & ~static_cast<u32>(BreakReason::NotificationOnlyFlag));
- bool notification_only = (reason & static_cast<u32>(BreakReason::NotificationOnlyFlag)) != 0;
-
- bool has_dumped_buffer{};
- std::vector<u8> debug_buffer;
-
- const auto handle_debug_buffer = [&](VAddr addr, u64 sz) {
- if (sz == 0 || addr == 0 || has_dumped_buffer) {
- return;
- }
-
- auto& memory = system.Memory();
-
- // This typically is an error code so we're going to assume this is the case
- if (sz == sizeof(u32)) {
- LOG_CRITICAL(Debug_Emulated, "debug_buffer_err_code={:X}", memory.Read32(addr));
- } else {
- // We don't know what's in here so we'll hexdump it
- debug_buffer.resize(sz);
- memory.ReadBlock(addr, debug_buffer.data(), sz);
- std::string hexdump;
- for (std::size_t i = 0; i < debug_buffer.size(); i++) {
- hexdump += fmt::format("{:02X} ", debug_buffer[i]);
- if (i != 0 && i % 16 == 0) {
- hexdump += '\n';
- }
- }
- LOG_CRITICAL(Debug_Emulated, "debug_buffer=\n{}", hexdump);
- }
- has_dumped_buffer = true;
- };
- switch (break_reason) {
- case BreakReason::Panic:
- LOG_CRITICAL(Debug_Emulated, "Userspace PANIC! info1=0x{:016X}, info2=0x{:016X}", info1,
- info2);
- handle_debug_buffer(info1, info2);
- break;
- case BreakReason::Assert:
- LOG_CRITICAL(Debug_Emulated, "Userspace Assertion failed! info1=0x{:016X}, info2=0x{:016X}",
- info1, info2);
- handle_debug_buffer(info1, info2);
- break;
- case BreakReason::User:
- LOG_WARNING(Debug_Emulated, "Userspace Break! 0x{:016X} with size 0x{:016X}", info1, info2);
- handle_debug_buffer(info1, info2);
- break;
- case BreakReason::PreLoadDll:
- LOG_INFO(Debug_Emulated,
- "Userspace Attempting to load an NRO at 0x{:016X} with size 0x{:016X}", info1,
- info2);
- break;
- case BreakReason::PostLoadDll:
- LOG_INFO(Debug_Emulated, "Userspace Loaded an NRO at 0x{:016X} with size 0x{:016X}", info1,
- info2);
- break;
- case BreakReason::PreUnloadDll:
- LOG_INFO(Debug_Emulated,
- "Userspace Attempting to unload an NRO at 0x{:016X} with size 0x{:016X}", info1,
- info2);
- break;
- case BreakReason::PostUnloadDll:
- LOG_INFO(Debug_Emulated, "Userspace Unloaded an NRO at 0x{:016X} with size 0x{:016X}",
- info1, info2);
- break;
- case BreakReason::CppException:
- LOG_CRITICAL(Debug_Emulated, "Signalling debugger. Uncaught C++ exception encountered.");
- break;
- default:
- LOG_WARNING(
- Debug_Emulated,
- "Signalling debugger, Unknown break reason {:#X}, info1=0x{:016X}, info2=0x{:016X}",
- reason, info1, info2);
- handle_debug_buffer(info1, info2);
- break;
- }
+ Break64From32(system, break_reason, arg, size);
+}
- system.GetReporter().SaveSvcBreakReport(reason, notification_only, info1, info2,
- has_dumped_buffer ? std::make_optional(debug_buffer)
- : std::nullopt);
+static void SvcWrap_OutputDebugString64From32(Core::System& system) {
+ Result ret{};
- if (!notification_only) {
- LOG_CRITICAL(
- Debug_Emulated,
- "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",
- reason, info1, info2);
+ uint32_t debug_str{};
+ uint32_t len{};
- handle_debug_buffer(info1, info2);
+ debug_str = Convert<uint32_t>(GetReg32(system, 0));
+ len = Convert<uint32_t>(GetReg32(system, 1));
- auto* const current_thread = GetCurrentThreadPointer(system.Kernel());
- const auto thread_processor_id = current_thread->GetActiveCore();
- system.ArmInterface(static_cast<std::size_t>(thread_processor_id)).LogBacktrace();
- }
+ ret = OutputDebugString64From32(system, debug_str, len);
- if (system.DebuggerEnabled()) {
- auto* thread = system.Kernel().GetCurrentEmuThread();
- system.GetDebugger().NotifyThreadStopped(thread);
- thread->RequestSuspend(Kernel::SuspendType::Debug);
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static void Break32(Core::System& system, u32 reason, u32 info1, u32 info2) {
- Break(system, reason, info1, info2);
+static void SvcWrap_ReturnFromException64From32(Core::System& system) {
+ Result result{};
+
+ result = Convert<Result>(GetReg32(system, 0));
+
+ ReturnFromException64From32(system, result);
}
-/// Used to output a message on a debug hardware unit - does nothing on a retail unit
-static void OutputDebugString(Core::System& system, VAddr address, u64 len) {
- if (len == 0) {
- return;
- }
+static void SvcWrap_GetInfo64From32(Core::System& system) {
+ Result ret{};
- std::string str(len, '\0');
- system.Memory().ReadBlock(address, str.data(), str.size());
- LOG_DEBUG(Debug_Emulated, "{}", str);
-}
-
-static void OutputDebugString32(Core::System& system, u32 address, u32 len) {
- OutputDebugString(system, address, len);
-}
-
-/// Gets system/memory information for the current process
-static Result GetInfo(Core::System& system, u64* result, u64 info_id, Handle handle,
- u64 info_sub_id) {
- LOG_TRACE(Kernel_SVC, "called info_id=0x{:X}, info_sub_id=0x{:X}, handle=0x{:08X}", info_id,
- info_sub_id, handle);
-
- const auto info_id_type = static_cast<InfoType>(info_id);
-
- switch (info_id_type) {
- case InfoType::CoreMask:
- case InfoType::PriorityMask:
- case InfoType::AliasRegionAddress:
- case InfoType::AliasRegionSize:
- case InfoType::HeapRegionAddress:
- case InfoType::HeapRegionSize:
- case InfoType::AslrRegionAddress:
- case InfoType::AslrRegionSize:
- case InfoType::StackRegionAddress:
- case InfoType::StackRegionSize:
- case InfoType::TotalMemorySize:
- case InfoType::UsedMemorySize:
- case InfoType::SystemResourceSizeTotal:
- case InfoType::SystemResourceSizeUsed:
- case InfoType::ProgramId:
- case InfoType::UserExceptionContextAddress:
- case InfoType::TotalNonSystemMemorySize:
- case InfoType::UsedNonSystemMemorySize:
- case InfoType::IsApplication:
- case InfoType::FreeThreadCount: {
- if (info_sub_id != 0) {
- LOG_ERROR(Kernel_SVC, "Info sub id is non zero! info_id={}, info_sub_id={}", info_id,
- info_sub_id);
- return ResultInvalidEnumValue;
- }
-
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
- KScopedAutoObject process = handle_table.GetObject<KProcess>(handle);
- if (process.IsNull()) {
- LOG_ERROR(Kernel_SVC, "Process is not valid! info_id={}, info_sub_id={}, handle={:08X}",
- info_id, info_sub_id, handle);
- return ResultInvalidHandle;
- }
-
- switch (info_id_type) {
- case InfoType::CoreMask:
- *result = process->GetCoreMask();
- return ResultSuccess;
-
- case InfoType::PriorityMask:
- *result = process->GetPriorityMask();
- return ResultSuccess;
-
- case InfoType::AliasRegionAddress:
- *result = process->PageTable().GetAliasRegionStart();
- return ResultSuccess;
-
- case InfoType::AliasRegionSize:
- *result = process->PageTable().GetAliasRegionSize();
- return ResultSuccess;
-
- case InfoType::HeapRegionAddress:
- *result = process->PageTable().GetHeapRegionStart();
- return ResultSuccess;
-
- case InfoType::HeapRegionSize:
- *result = process->PageTable().GetHeapRegionSize();
- return ResultSuccess;
-
- case InfoType::AslrRegionAddress:
- *result = process->PageTable().GetAliasCodeRegionStart();
- return ResultSuccess;
-
- case InfoType::AslrRegionSize:
- *result = process->PageTable().GetAliasCodeRegionSize();
- return ResultSuccess;
-
- case InfoType::StackRegionAddress:
- *result = process->PageTable().GetStackRegionStart();
- return ResultSuccess;
-
- case InfoType::StackRegionSize:
- *result = process->PageTable().GetStackRegionSize();
- return ResultSuccess;
-
- case InfoType::TotalMemorySize:
- *result = process->GetTotalPhysicalMemoryAvailable();
- return ResultSuccess;
-
- case InfoType::UsedMemorySize:
- *result = process->GetTotalPhysicalMemoryUsed();
- return ResultSuccess;
-
- case InfoType::SystemResourceSizeTotal:
- *result = process->GetSystemResourceSize();
- return ResultSuccess;
-
- case InfoType::SystemResourceSizeUsed:
- LOG_WARNING(Kernel_SVC, "(STUBBED) Attempted to query system resource usage");
- *result = process->GetSystemResourceUsage();
- return ResultSuccess;
-
- case InfoType::ProgramId:
- *result = process->GetProgramID();
- return ResultSuccess;
-
- case InfoType::UserExceptionContextAddress:
- *result = process->GetProcessLocalRegionAddress();
- return ResultSuccess;
-
- case InfoType::TotalNonSystemMemorySize:
- *result = process->GetTotalPhysicalMemoryAvailableWithoutSystemResource();
- return ResultSuccess;
-
- case InfoType::UsedNonSystemMemorySize:
- *result = process->GetTotalPhysicalMemoryUsedWithoutSystemResource();
- return ResultSuccess;
-
- case InfoType::FreeThreadCount:
- *result = process->GetFreeThreadCount();
- return ResultSuccess;
-
- default:
- break;
- }
-
- LOG_ERROR(Kernel_SVC, "Unimplemented svcGetInfo id=0x{:016X}", info_id);
- return ResultInvalidEnumValue;
- }
+ uint64_t out{};
+ InfoType info_type{};
+ Handle handle{};
+ uint64_t info_subtype{};
- case InfoType::DebuggerAttached:
- *result = 0;
- return ResultSuccess;
-
- case InfoType::ResourceLimit: {
- if (handle != 0) {
- LOG_ERROR(Kernel, "Handle is non zero! handle={:08X}", handle);
- return ResultInvalidHandle;
- }
-
- if (info_sub_id != 0) {
- LOG_ERROR(Kernel, "Info sub id is non zero! info_id={}, info_sub_id={}", info_id,
- info_sub_id);
- return ResultInvalidCombination;
- }
-
- KProcess* const current_process = system.Kernel().CurrentProcess();
- KHandleTable& handle_table = current_process->GetHandleTable();
- const auto resource_limit = current_process->GetResourceLimit();
- if (!resource_limit) {
- *result = Svc::InvalidHandle;
- // Yes, the kernel considers this a successful operation.
- return ResultSuccess;
- }
-
- Handle resource_handle{};
- R_TRY(handle_table.Add(&resource_handle, resource_limit));
-
- *result = resource_handle;
- return ResultSuccess;
- }
+ info_type = Convert<InfoType>(GetReg32(system, 1));
+ handle = Convert<Handle>(GetReg32(system, 2));
+ std::array<uint32_t, 2> info_subtype_gather{};
+ info_subtype_gather[0] = GetReg32(system, 0);
+ info_subtype_gather[1] = GetReg32(system, 3);
+ info_subtype = Convert<uint64_t>(info_subtype_gather);
- case InfoType::RandomEntropy:
- if (handle != 0) {
- LOG_ERROR(Kernel_SVC, "Process Handle is non zero, expected 0 result but got {:016X}",
- handle);
- return ResultInvalidHandle;
- }
-
- if (info_sub_id >= KProcess::RANDOM_ENTROPY_SIZE) {
- LOG_ERROR(Kernel_SVC, "Entropy size is out of range, expected {} but got {}",
- KProcess::RANDOM_ENTROPY_SIZE, info_sub_id);
- return ResultInvalidCombination;
- }
-
- *result = system.Kernel().CurrentProcess()->GetRandomEntropy(info_sub_id);
- return ResultSuccess;
-
- case InfoType::InitialProcessIdRange:
- LOG_WARNING(Kernel_SVC,
- "(STUBBED) Attempted to query privileged process id bounds, returned 0");
- *result = 0;
- return ResultSuccess;
-
- case InfoType::ThreadTickCount: {
- constexpr u64 num_cpus = 4;
- if (info_sub_id != 0xFFFFFFFFFFFFFFFF && info_sub_id >= num_cpus) {
- LOG_ERROR(Kernel_SVC, "Core count is out of range, expected {} but got {}", num_cpus,
- info_sub_id);
- return ResultInvalidCombination;
- }
-
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(
- static_cast<Handle>(handle));
- if (thread.IsNull()) {
- LOG_ERROR(Kernel_SVC, "Thread handle does not exist, handle=0x{:08X}",
- static_cast<Handle>(handle));
- return ResultInvalidHandle;
- }
-
- const auto& core_timing = system.CoreTiming();
- const auto& scheduler = *system.Kernel().CurrentScheduler();
- const auto* const current_thread = GetCurrentThreadPointer(system.Kernel());
- const bool same_thread = current_thread == thread.GetPointerUnsafe();
-
- const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTime();
- u64 out_ticks = 0;
- if (same_thread && info_sub_id == 0xFFFFFFFFFFFFFFFF) {
- const u64 thread_ticks = current_thread->GetCpuTime();
-
- out_ticks = thread_ticks + (core_timing.GetCPUTicks() - prev_ctx_ticks);
- } else if (same_thread && info_sub_id == system.Kernel().CurrentPhysicalCoreIndex()) {
- out_ticks = core_timing.GetCPUTicks() - prev_ctx_ticks;
- }
-
- *result = out_ticks;
- return ResultSuccess;
- }
- case InfoType::IdleTickCount: {
- // Verify the input handle is invalid.
- R_UNLESS(handle == InvalidHandle, ResultInvalidHandle);
-
- // Verify the requested core is valid.
- const bool core_valid =
- (info_sub_id == 0xFFFFFFFFFFFFFFFF) ||
- (info_sub_id == static_cast<u64>(system.Kernel().CurrentPhysicalCoreIndex()));
- R_UNLESS(core_valid, ResultInvalidCombination);
-
- // Get the idle tick count.
- *result = system.Kernel().CurrentScheduler()->GetIdleThread()->GetCpuTime();
- return ResultSuccess;
- }
- case InfoType::MesosphereCurrentProcess: {
- // Verify the input handle is invalid.
- R_UNLESS(handle == InvalidHandle, ResultInvalidHandle);
+ ret = GetInfo64From32(system, std::addressof(out), info_type, handle, info_subtype);
- // Verify the sub-type is valid.
- R_UNLESS(info_sub_id == 0, ResultInvalidCombination);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_scatter = Convert<std::array<uint32_t, 2>>(out);
+ SetReg32(system, 1, out_scatter[0]);
+ SetReg32(system, 2, out_scatter[1]);
+}
- // Get the handle table.
- KProcess* current_process = system.Kernel().CurrentProcess();
- KHandleTable& handle_table = current_process->GetHandleTable();
+static void SvcWrap_FlushEntireDataCache64From32(Core::System& system) {
+ FlushEntireDataCache64From32(system);
+}
- // Get a new handle for the current process.
- Handle tmp;
- R_TRY(handle_table.Add(&tmp, current_process));
+static void SvcWrap_FlushDataCache64From32(Core::System& system) {
+ Result ret{};
- // Set the output.
- *result = tmp;
+ uint32_t address{};
+ uint32_t size{};
- // We succeeded.
- return ResultSuccess;
- }
- default:
- LOG_ERROR(Kernel_SVC, "Unimplemented svcGetInfo id=0x{:016X}", info_id);
- return ResultInvalidEnumValue;
- }
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
+
+ ret = FlushDataCache64From32(system, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result GetInfo32(Core::System& system, u32* result_low, u32* result_high, u32 sub_id_low,
- u32 info_id, u32 handle, u32 sub_id_high) {
- const u64 sub_id{u64{sub_id_low} | (u64{sub_id_high} << 32)};
- u64 res_value{};
+static void SvcWrap_MapPhysicalMemory64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t address{};
+ uint32_t size{};
- const Result result{GetInfo(system, &res_value, info_id, handle, sub_id)};
- *result_high = static_cast<u32>(res_value >> 32);
- *result_low = static_cast<u32>(res_value & std::numeric_limits<u32>::max());
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
- return result;
+ ret = MapPhysicalMemory64From32(system, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Maps memory at a desired address
-static Result MapPhysicalMemory(Core::System& system, VAddr addr, u64 size) {
- LOG_DEBUG(Kernel_SVC, "called, addr=0x{:016X}, size=0x{:X}", addr, size);
+static void SvcWrap_UnmapPhysicalMemory64From32(Core::System& system) {
+ Result ret{};
- if (!Common::Is4KBAligned(addr)) {
- LOG_ERROR(Kernel_SVC, "Address is not aligned to 4KB, 0x{:016X}", addr);
- return ResultInvalidAddress;
- }
+ uint32_t address{};
+ uint32_t size{};
- if (!Common::Is4KBAligned(size)) {
- LOG_ERROR(Kernel_SVC, "Size is not aligned to 4KB, 0x{:X}", size);
- return ResultInvalidSize;
- }
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
- if (size == 0) {
- LOG_ERROR(Kernel_SVC, "Size is zero");
- return ResultInvalidSize;
- }
+ ret = UnmapPhysicalMemory64From32(system, address, size);
- if (!(addr < addr + size)) {
- LOG_ERROR(Kernel_SVC, "Size causes 64-bit overflow of address");
- return ResultInvalidMemoryRegion;
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- KProcess* const current_process{system.Kernel().CurrentProcess()};
- auto& page_table{current_process->PageTable()};
+static void SvcWrap_GetDebugFutureThreadInfo64From32(Core::System& system) {
+ Result ret{};
- if (current_process->GetSystemResourceSize() == 0) {
- LOG_ERROR(Kernel_SVC, "System Resource Size is zero");
- return ResultInvalidState;
- }
+ ilp32::LastThreadContext out_context{};
+ uint64_t out_thread_id{};
+ Handle debug_handle{};
+ int64_t ns{};
- if (!page_table.IsInsideAddressSpace(addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Address is not within the address space, addr=0x{:016X}, size=0x{:016X}", addr,
- size);
- return ResultInvalidMemoryRegion;
- }
+ debug_handle = Convert<Handle>(GetReg32(system, 2));
+ std::array<uint32_t, 2> ns_gather{};
+ ns_gather[0] = GetReg32(system, 0);
+ ns_gather[1] = GetReg32(system, 1);
+ ns = Convert<int64_t>(ns_gather);
- if (page_table.IsOutsideAliasRegion(addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Address is not within the alias region, addr=0x{:016X}, size=0x{:016X}", addr,
- size);
- return ResultInvalidMemoryRegion;
- }
+ ret = GetDebugFutureThreadInfo64From32(system, std::addressof(out_context), std::addressof(out_thread_id), debug_handle, ns);
- return page_table.MapPhysicalMemory(addr, size);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_context_scatter = Convert<std::array<uint32_t, 4>>(out_context);
+ SetReg32(system, 1, out_context_scatter[0]);
+ SetReg32(system, 2, out_context_scatter[1]);
+ SetReg32(system, 3, out_context_scatter[2]);
+ SetReg32(system, 4, out_context_scatter[3]);
+ auto out_thread_id_scatter = Convert<std::array<uint32_t, 2>>(out_thread_id);
+ SetReg32(system, 5, out_thread_id_scatter[0]);
+ SetReg32(system, 6, out_thread_id_scatter[1]);
}
-static Result MapPhysicalMemory32(Core::System& system, u32 addr, u32 size) {
- return MapPhysicalMemory(system, addr, size);
+static void SvcWrap_GetLastThreadInfo64From32(Core::System& system) {
+ Result ret{};
+
+ ilp32::LastThreadContext out_context{};
+ uint64_t out_tls_address{};
+ uint32_t out_flags{};
+
+ ret = GetLastThreadInfo64From32(system, std::addressof(out_context), std::addressof(out_tls_address), std::addressof(out_flags));
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_context_scatter = Convert<std::array<uint32_t, 4>>(out_context);
+ SetReg32(system, 1, out_context_scatter[0]);
+ SetReg32(system, 2, out_context_scatter[1]);
+ SetReg32(system, 3, out_context_scatter[2]);
+ SetReg32(system, 4, out_context_scatter[3]);
+ SetReg32(system, 5, Convert<uint32_t>(out_tls_address));
+ SetReg32(system, 6, Convert<uint32_t>(out_flags));
}
-/// Unmaps memory previously mapped via MapPhysicalMemory
-static Result UnmapPhysicalMemory(Core::System& system, VAddr addr, u64 size) {
- LOG_DEBUG(Kernel_SVC, "called, addr=0x{:016X}, size=0x{:X}", addr, size);
+static void SvcWrap_GetResourceLimitLimitValue64From32(Core::System& system) {
+ Result ret{};
- if (!Common::Is4KBAligned(addr)) {
- LOG_ERROR(Kernel_SVC, "Address is not aligned to 4KB, 0x{:016X}", addr);
- return ResultInvalidAddress;
- }
+ int64_t out_limit_value{};
+ Handle resource_limit_handle{};
+ LimitableResource which{};
- if (!Common::Is4KBAligned(size)) {
- LOG_ERROR(Kernel_SVC, "Size is not aligned to 4KB, 0x{:X}", size);
- return ResultInvalidSize;
- }
+ resource_limit_handle = Convert<Handle>(GetReg32(system, 1));
+ which = Convert<LimitableResource>(GetReg32(system, 2));
- if (size == 0) {
- LOG_ERROR(Kernel_SVC, "Size is zero");
- return ResultInvalidSize;
- }
+ ret = GetResourceLimitLimitValue64From32(system, std::addressof(out_limit_value), resource_limit_handle, which);
- if (!(addr < addr + size)) {
- LOG_ERROR(Kernel_SVC, "Size causes 64-bit overflow of address");
- return ResultInvalidMemoryRegion;
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_limit_value_scatter = Convert<std::array<uint32_t, 2>>(out_limit_value);
+ SetReg32(system, 1, out_limit_value_scatter[0]);
+ SetReg32(system, 2, out_limit_value_scatter[1]);
+}
- KProcess* const current_process{system.Kernel().CurrentProcess()};
- auto& page_table{current_process->PageTable()};
+static void SvcWrap_GetResourceLimitCurrentValue64From32(Core::System& system) {
+ Result ret{};
- if (current_process->GetSystemResourceSize() == 0) {
- LOG_ERROR(Kernel_SVC, "System Resource Size is zero");
- return ResultInvalidState;
- }
+ int64_t out_current_value{};
+ Handle resource_limit_handle{};
+ LimitableResource which{};
- if (!page_table.IsInsideAddressSpace(addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Address is not within the address space, addr=0x{:016X}, size=0x{:016X}", addr,
- size);
- return ResultInvalidMemoryRegion;
- }
+ resource_limit_handle = Convert<Handle>(GetReg32(system, 1));
+ which = Convert<LimitableResource>(GetReg32(system, 2));
- if (page_table.IsOutsideAliasRegion(addr, size)) {
- LOG_ERROR(Kernel_SVC,
- "Address is not within the alias region, addr=0x{:016X}, size=0x{:016X}", addr,
- size);
- return ResultInvalidMemoryRegion;
- }
+ ret = GetResourceLimitCurrentValue64From32(system, std::addressof(out_current_value), resource_limit_handle, which);
- return page_table.UnmapPhysicalMemory(addr, size);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_current_value_scatter = Convert<std::array<uint32_t, 2>>(out_current_value);
+ SetReg32(system, 1, out_current_value_scatter[0]);
+ SetReg32(system, 2, out_current_value_scatter[1]);
}
-static Result UnmapPhysicalMemory32(Core::System& system, u32 addr, u32 size) {
- return UnmapPhysicalMemory(system, addr, size);
+static void SvcWrap_SetThreadActivity64From32(Core::System& system) {
+ Result ret{};
+
+ Handle thread_handle{};
+ ThreadActivity thread_activity{};
+
+ thread_handle = Convert<Handle>(GetReg32(system, 0));
+ thread_activity = Convert<ThreadActivity>(GetReg32(system, 1));
+
+ ret = SetThreadActivity64From32(system, thread_handle, thread_activity);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
+
+static void SvcWrap_GetThreadContext364From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t out_context{};
+ Handle thread_handle{};
+
+ out_context = Convert<uint32_t>(GetReg32(system, 0));
+ thread_handle = Convert<Handle>(GetReg32(system, 1));
+
+ ret = GetThreadContext364From32(system, out_context, thread_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Sets the thread activity
-static Result SetThreadActivity(Core::System& system, Handle thread_handle,
- ThreadActivity thread_activity) {
- LOG_DEBUG(Kernel_SVC, "called, handle=0x{:08X}, activity=0x{:08X}", thread_handle,
- thread_activity);
+static void SvcWrap_WaitForAddress64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t address{};
+ ArbitrationType arb_type{};
+ int32_t value{};
+ int64_t timeout_ns{};
+
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ arb_type = Convert<ArbitrationType>(GetReg32(system, 1));
+ value = Convert<int32_t>(GetReg32(system, 2));
+ std::array<uint32_t, 2> timeout_ns_gather{};
+ timeout_ns_gather[0] = GetReg32(system, 3);
+ timeout_ns_gather[1] = GetReg32(system, 4);
+ timeout_ns = Convert<int64_t>(timeout_ns_gather);
- // Validate the activity.
- constexpr auto IsValidThreadActivity = [](ThreadActivity activity) {
- return activity == ThreadActivity::Runnable || activity == ThreadActivity::Paused;
- };
- R_UNLESS(IsValidThreadActivity(thread_activity), ResultInvalidEnumValue);
+ ret = WaitForAddress64From32(system, address, arb_type, value, timeout_ns);
- // Get the thread from its handle.
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(thread_handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
+
+static void SvcWrap_SignalToAddress64From32(Core::System& system) {
+ Result ret{};
- // Check that the activity is being set on a non-current thread for the current process.
- R_UNLESS(thread->GetOwnerProcess() == system.Kernel().CurrentProcess(), ResultInvalidHandle);
- R_UNLESS(thread.GetPointerUnsafe() != GetCurrentThreadPointer(system.Kernel()), ResultBusy);
+ uint32_t address{};
+ SignalType signal_type{};
+ int32_t value{};
+ int32_t count{};
- // Set the activity.
- R_TRY(thread->SetActivity(thread_activity));
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ signal_type = Convert<SignalType>(GetReg32(system, 1));
+ value = Convert<int32_t>(GetReg32(system, 2));
+ count = Convert<int32_t>(GetReg32(system, 3));
- return ResultSuccess;
+ ret = SignalToAddress64From32(system, address, signal_type, value, count);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result SetThreadActivity32(Core::System& system, Handle thread_handle,
- Svc::ThreadActivity thread_activity) {
- return SetThreadActivity(system, thread_handle, thread_activity);
+static void SvcWrap_SynchronizePreemptionState64From32(Core::System& system) {
+ SynchronizePreemptionState64From32(system);
}
-/// Gets the thread context
-static Result GetThreadContext(Core::System& system, VAddr out_context, Handle thread_handle) {
- LOG_DEBUG(Kernel_SVC, "called, out_context=0x{:08X}, thread_handle=0x{:X}", out_context,
- thread_handle);
+static void SvcWrap_GetResourceLimitPeakValue64From32(Core::System& system) {
+ Result ret{};
- auto& kernel = system.Kernel();
+ int64_t out_peak_value{};
+ Handle resource_limit_handle{};
+ LimitableResource which{};
- // Get the thread from its handle.
- KScopedAutoObject thread =
- kernel.CurrentProcess()->GetHandleTable().GetObject<KThread>(thread_handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ resource_limit_handle = Convert<Handle>(GetReg32(system, 1));
+ which = Convert<LimitableResource>(GetReg32(system, 2));
- // Require the handle be to a non-current thread in the current process.
- const auto* current_process = kernel.CurrentProcess();
- R_UNLESS(current_process == thread->GetOwnerProcess(), ResultInvalidId);
+ ret = GetResourceLimitPeakValue64From32(system, std::addressof(out_peak_value), resource_limit_handle, which);
- // Verify that the thread isn't terminated.
- R_UNLESS(thread->GetState() != ThreadState::Terminated, ResultTerminationRequested);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_peak_value_scatter = Convert<std::array<uint32_t, 2>>(out_peak_value);
+ SetReg32(system, 1, out_peak_value_scatter[0]);
+ SetReg32(system, 2, out_peak_value_scatter[1]);
+}
+
+static void SvcWrap_CreateIoPool64From32(Core::System& system) {
+ Result ret{};
- /// Check that the thread is not the current one.
- /// NOTE: Nintendo does not check this, and thus the following loop will deadlock.
- R_UNLESS(thread.GetPointerUnsafe() != GetCurrentThreadPointer(kernel), ResultInvalidId);
+ Handle out_handle{};
+ IoPoolType which{};
- // Try to get the thread context until the thread isn't current on any core.
- while (true) {
- KScopedSchedulerLock sl{kernel};
+ which = Convert<IoPoolType>(GetReg32(system, 1));
- // TODO(bunnei): Enforce that thread is suspended for debug here.
+ ret = CreateIoPool64From32(system, std::addressof(out_handle), which);
- // If the thread's raw state isn't runnable, check if it's current on some core.
- if (thread->GetRawState() != ThreadState::Runnable) {
- bool current = false;
- for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
- if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetSchedulerCurrentThread()) {
- current = true;
- break;
- }
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
+}
- // If the thread is current, retry until it isn't.
- if (current) {
- continue;
- }
- }
+static void SvcWrap_CreateIoRegion64From32(Core::System& system) {
+ Result ret{};
- // Get the thread context.
- std::vector<u8> context;
- R_TRY(thread->GetThreadContext3(context));
+ Handle out_handle{};
+ Handle io_pool{};
+ uint64_t physical_address{};
+ uint32_t size{};
+ MemoryMapping mapping{};
+ MemoryPermission perm{};
- // Copy the thread context to user space.
- system.Memory().WriteBlock(out_context, context.data(), context.size());
+ io_pool = Convert<Handle>(GetReg32(system, 1));
+ std::array<uint32_t, 2> physical_address_gather{};
+ physical_address_gather[0] = GetReg32(system, 2);
+ physical_address_gather[1] = GetReg32(system, 3);
+ physical_address = Convert<uint64_t>(physical_address_gather);
+ size = Convert<uint32_t>(GetReg32(system, 0));
+ mapping = Convert<MemoryMapping>(GetReg32(system, 4));
+ perm = Convert<MemoryPermission>(GetReg32(system, 5));
- return ResultSuccess;
- }
+ ret = CreateIoRegion64From32(system, std::addressof(out_handle), io_pool, physical_address, size, mapping, perm);
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static Result GetThreadContext32(Core::System& system, u32 out_context, Handle thread_handle) {
- return GetThreadContext(system, out_context, thread_handle);
+static void SvcWrap_KernelDebug64From32(Core::System& system) {
+ KernelDebugType kern_debug_type{};
+ uint64_t arg0{};
+ uint64_t arg1{};
+ uint64_t arg2{};
+
+ kern_debug_type = Convert<KernelDebugType>(GetReg32(system, 0));
+ std::array<uint32_t, 2> arg0_gather{};
+ arg0_gather[0] = GetReg32(system, 2);
+ arg0_gather[1] = GetReg32(system, 3);
+ arg0 = Convert<uint64_t>(arg0_gather);
+ std::array<uint32_t, 2> arg1_gather{};
+ arg1_gather[0] = GetReg32(system, 1);
+ arg1_gather[1] = GetReg32(system, 4);
+ arg1 = Convert<uint64_t>(arg1_gather);
+ std::array<uint32_t, 2> arg2_gather{};
+ arg2_gather[0] = GetReg32(system, 5);
+ arg2_gather[1] = GetReg32(system, 6);
+ arg2 = Convert<uint64_t>(arg2_gather);
+
+ KernelDebug64From32(system, kern_debug_type, arg0, arg1, arg2);
}
-/// Gets the priority for the specified thread
-static Result GetThreadPriority(Core::System& system, u32* out_priority, Handle handle) {
- LOG_TRACE(Kernel_SVC, "called");
+static void SvcWrap_ChangeKernelTraceState64From32(Core::System& system) {
+ KernelTraceState kern_trace_state{};
- // Get the thread from its handle.
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ kern_trace_state = Convert<KernelTraceState>(GetReg32(system, 0));
- // Get the thread's priority.
- *out_priority = thread->GetPriority();
- return ResultSuccess;
+ ChangeKernelTraceState64From32(system, kern_trace_state);
}
-static Result GetThreadPriority32(Core::System& system, u32* out_priority, Handle handle) {
- return GetThreadPriority(system, out_priority, handle);
+static void SvcWrap_CreateSession64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_server_session_handle{};
+ Handle out_client_session_handle{};
+ bool is_light{};
+ uint32_t name{};
+
+ is_light = Convert<bool>(GetReg32(system, 2));
+ name = Convert<uint32_t>(GetReg32(system, 3));
+
+ ret = CreateSession64From32(system, std::addressof(out_server_session_handle), std::addressof(out_client_session_handle), is_light, name);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_server_session_handle));
+ SetReg32(system, 2, Convert<uint32_t>(out_client_session_handle));
}
-/// Sets the priority for the specified thread
-static Result SetThreadPriority(Core::System& system, Handle thread_handle, u32 priority) {
- // Get the current process.
- KProcess& process = *system.Kernel().CurrentProcess();
+static void SvcWrap_AcceptSession64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ Handle port{};
- // Validate the priority.
- R_UNLESS(HighestThreadPriority <= priority && priority <= LowestThreadPriority,
- ResultInvalidPriority);
- R_UNLESS(process.CheckThreadPriority(priority), ResultInvalidPriority);
+ port = Convert<Handle>(GetReg32(system, 1));
- // Get the thread from its handle.
- KScopedAutoObject thread = process.GetHandleTable().GetObject<KThread>(thread_handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ ret = AcceptSession64From32(system, std::addressof(out_handle), port);
- // Set the thread priority.
- thread->SetBasePriority(priority);
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static Result SetThreadPriority32(Core::System& system, Handle thread_handle, u32 priority) {
- return SetThreadPriority(system, thread_handle, priority);
+static void SvcWrap_ReplyAndReceive64From32(Core::System& system) {
+ Result ret{};
+
+ int32_t out_index{};
+ uint32_t handles{};
+ int32_t num_handles{};
+ Handle reply_target{};
+ int64_t timeout_ns{};
+
+ handles = Convert<uint32_t>(GetReg32(system, 1));
+ num_handles = Convert<int32_t>(GetReg32(system, 2));
+ reply_target = Convert<Handle>(GetReg32(system, 3));
+ std::array<uint32_t, 2> timeout_ns_gather{};
+ timeout_ns_gather[0] = GetReg32(system, 0);
+ timeout_ns_gather[1] = GetReg32(system, 4);
+ timeout_ns = Convert<int64_t>(timeout_ns_gather);
+
+ ret = ReplyAndReceive64From32(system, std::addressof(out_index), handles, num_handles, reply_target, timeout_ns);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_index));
}
-/// Get which CPU core is executing the current thread
-static u32 GetCurrentProcessorNumber(Core::System& system) {
- LOG_TRACE(Kernel_SVC, "called");
- return static_cast<u32>(system.CurrentPhysicalCore().CoreIndex());
+static void SvcWrap_ReplyAndReceiveWithUserBuffer64From32(Core::System& system) {
+ Result ret{};
+
+ int32_t out_index{};
+ uint32_t message_buffer{};
+ uint32_t message_buffer_size{};
+ uint32_t handles{};
+ int32_t num_handles{};
+ Handle reply_target{};
+ int64_t timeout_ns{};
+
+ message_buffer = Convert<uint32_t>(GetReg32(system, 1));
+ message_buffer_size = Convert<uint32_t>(GetReg32(system, 2));
+ handles = Convert<uint32_t>(GetReg32(system, 3));
+ num_handles = Convert<int32_t>(GetReg32(system, 0));
+ reply_target = Convert<Handle>(GetReg32(system, 4));
+ std::array<uint32_t, 2> timeout_ns_gather{};
+ timeout_ns_gather[0] = GetReg32(system, 5);
+ timeout_ns_gather[1] = GetReg32(system, 6);
+ timeout_ns = Convert<int64_t>(timeout_ns_gather);
+
+ ret = ReplyAndReceiveWithUserBuffer64From32(system, std::addressof(out_index), message_buffer, message_buffer_size, handles, num_handles, reply_target, timeout_ns);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_index));
}
-static u32 GetCurrentProcessorNumber32(Core::System& system) {
- return GetCurrentProcessorNumber(system);
+static void SvcWrap_CreateEvent64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_write_handle{};
+ Handle out_read_handle{};
+
+ ret = CreateEvent64From32(system, std::addressof(out_write_handle), std::addressof(out_read_handle));
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_write_handle));
+ SetReg32(system, 2, Convert<uint32_t>(out_read_handle));
}
-namespace {
+static void SvcWrap_MapIoRegion64From32(Core::System& system) {
+ Result ret{};
-constexpr bool IsValidSharedMemoryPermission(Svc::MemoryPermission perm) {
- switch (perm) {
- case Svc::MemoryPermission::Read:
- case Svc::MemoryPermission::ReadWrite:
- return true;
- default:
- return false;
- }
+ Handle io_region{};
+ uint32_t address{};
+ uint32_t size{};
+ MemoryPermission perm{};
+
+ io_region = Convert<Handle>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+ perm = Convert<MemoryPermission>(GetReg32(system, 3));
+
+ ret = MapIoRegion64From32(system, io_region, address, size, perm);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-[[maybe_unused]] constexpr bool IsValidRemoteSharedMemoryPermission(Svc::MemoryPermission perm) {
- return IsValidSharedMemoryPermission(perm) || perm == Svc::MemoryPermission::DontCare;
+static void SvcWrap_UnmapIoRegion64From32(Core::System& system) {
+ Result ret{};
+
+ Handle io_region{};
+ uint32_t address{};
+ uint32_t size{};
+
+ io_region = Convert<Handle>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+
+ ret = UnmapIoRegion64From32(system, io_region, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-constexpr bool IsValidProcessMemoryPermission(Svc::MemoryPermission perm) {
- switch (perm) {
- case Svc::MemoryPermission::None:
- case Svc::MemoryPermission::Read:
- case Svc::MemoryPermission::ReadWrite:
- case Svc::MemoryPermission::ReadExecute:
- return true;
- default:
- return false;
- }
+static void SvcWrap_MapPhysicalMemoryUnsafe64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t address{};
+ uint32_t size{};
+
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
+
+ ret = MapPhysicalMemoryUnsafe64From32(system, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-constexpr bool IsValidMapCodeMemoryPermission(Svc::MemoryPermission perm) {
- return perm == Svc::MemoryPermission::ReadWrite;
+static void SvcWrap_UnmapPhysicalMemoryUnsafe64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t address{};
+ uint32_t size{};
+
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
+
+ ret = UnmapPhysicalMemoryUnsafe64From32(system, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-constexpr bool IsValidMapToOwnerCodeMemoryPermission(Svc::MemoryPermission perm) {
- return perm == Svc::MemoryPermission::Read || perm == Svc::MemoryPermission::ReadExecute;
+static void SvcWrap_SetUnsafeLimit64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t limit{};
+
+ limit = Convert<uint32_t>(GetReg32(system, 0));
+
+ ret = SetUnsafeLimit64From32(system, limit);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-constexpr bool IsValidUnmapCodeMemoryPermission(Svc::MemoryPermission perm) {
- return perm == Svc::MemoryPermission::None;
+static void SvcWrap_CreateCodeMemory64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint32_t address{};
+ uint32_t size{};
+
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+
+ ret = CreateCodeMemory64From32(system, std::addressof(out_handle), address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-constexpr bool IsValidUnmapFromOwnerCodeMemoryPermission(Svc::MemoryPermission perm) {
- return perm == Svc::MemoryPermission::None;
+static void SvcWrap_ControlCodeMemory64From32(Core::System& system) {
+ Result ret{};
+
+ Handle code_memory_handle{};
+ CodeMemoryOperation operation{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission perm{};
+
+ code_memory_handle = Convert<Handle>(GetReg32(system, 0));
+ operation = Convert<CodeMemoryOperation>(GetReg32(system, 1));
+ std::array<uint32_t, 2> address_gather{};
+ address_gather[0] = GetReg32(system, 2);
+ address_gather[1] = GetReg32(system, 3);
+ address = Convert<uint64_t>(address_gather);
+ std::array<uint32_t, 2> size_gather{};
+ size_gather[0] = GetReg32(system, 4);
+ size_gather[1] = GetReg32(system, 5);
+ size = Convert<uint64_t>(size_gather);
+ perm = Convert<MemoryPermission>(GetReg32(system, 6));
+
+ ret = ControlCodeMemory64From32(system, code_memory_handle, operation, address, size, perm);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-} // Anonymous namespace
+static void SvcWrap_SleepSystem64From32(Core::System& system) {
+ SleepSystem64From32(system);
+}
-static Result MapSharedMemory(Core::System& system, Handle shmem_handle, VAddr address, u64 size,
- Svc::MemoryPermission map_perm) {
- LOG_TRACE(Kernel_SVC,
- "called, shared_memory_handle=0x{:X}, addr=0x{:X}, size=0x{:X}, permissions=0x{:08X}",
- shmem_handle, address, size, map_perm);
+static void SvcWrap_ReadWriteRegister64From32(Core::System& system) {
+ Result ret{};
- // Validate the address/size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+ uint32_t out_value{};
+ uint64_t address{};
+ uint32_t mask{};
+ uint32_t value{};
- // Validate the permission.
- R_UNLESS(IsValidSharedMemoryPermission(map_perm), ResultInvalidNewMemoryPermission);
+ std::array<uint32_t, 2> address_gather{};
+ address_gather[0] = GetReg32(system, 2);
+ address_gather[1] = GetReg32(system, 3);
+ address = Convert<uint64_t>(address_gather);
+ mask = Convert<uint32_t>(GetReg32(system, 0));
+ value = Convert<uint32_t>(GetReg32(system, 1));
- // Get the current process.
- auto& process = *system.Kernel().CurrentProcess();
- auto& page_table = process.PageTable();
+ ret = ReadWriteRegister64From32(system, std::addressof(out_value), address, mask, value);
- // Get the shared memory.
- KScopedAutoObject shmem = process.GetHandleTable().GetObject<KSharedMemory>(shmem_handle);
- R_UNLESS(shmem.IsNotNull(), ResultInvalidHandle);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_value));
+}
- // Verify that the mapping is in range.
- R_UNLESS(page_table.CanContain(address, size, KMemoryState::Shared), ResultInvalidMemoryRegion);
+static void SvcWrap_SetProcessActivity64From32(Core::System& system) {
+ Result ret{};
- // Add the shared memory to the process.
- R_TRY(process.AddSharedMemory(shmem.GetPointerUnsafe(), address, size));
+ Handle process_handle{};
+ ProcessActivity process_activity{};
- // Ensure that we clean up the shared memory if we fail to map it.
- auto guard =
- SCOPE_GUARD({ process.RemoveSharedMemory(shmem.GetPointerUnsafe(), address, size); });
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ process_activity = Convert<ProcessActivity>(GetReg32(system, 1));
- // Map the shared memory.
- R_TRY(shmem->Map(process, address, size, map_perm));
+ ret = SetProcessActivity64From32(system, process_handle, process_activity);
- // We succeeded.
- guard.Cancel();
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result MapSharedMemory32(Core::System& system, Handle shmem_handle, u32 address, u32 size,
- Svc::MemoryPermission map_perm) {
- return MapSharedMemory(system, shmem_handle, address, size, map_perm);
+static void SvcWrap_CreateSharedMemory64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint32_t size{};
+ MemoryPermission owner_perm{};
+ MemoryPermission remote_perm{};
+
+ size = Convert<uint32_t>(GetReg32(system, 1));
+ owner_perm = Convert<MemoryPermission>(GetReg32(system, 2));
+ remote_perm = Convert<MemoryPermission>(GetReg32(system, 3));
+
+ ret = CreateSharedMemory64From32(system, std::addressof(out_handle), size, owner_perm, remote_perm);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static Result UnmapSharedMemory(Core::System& system, Handle shmem_handle, VAddr address,
- u64 size) {
- // Validate the address/size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+static void SvcWrap_MapTransferMemory64From32(Core::System& system) {
+ Result ret{};
+
+ Handle trmem_handle{};
+ uint32_t address{};
+ uint32_t size{};
+ MemoryPermission owner_perm{};
- // Get the current process.
- auto& process = *system.Kernel().CurrentProcess();
- auto& page_table = process.PageTable();
+ trmem_handle = Convert<Handle>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
+ owner_perm = Convert<MemoryPermission>(GetReg32(system, 3));
- // Get the shared memory.
- KScopedAutoObject shmem = process.GetHandleTable().GetObject<KSharedMemory>(shmem_handle);
- R_UNLESS(shmem.IsNotNull(), ResultInvalidHandle);
+ ret = MapTransferMemory64From32(system, trmem_handle, address, size, owner_perm);
- // Verify that the mapping is in range.
- R_UNLESS(page_table.CanContain(address, size, KMemoryState::Shared), ResultInvalidMemoryRegion);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
+
+static void SvcWrap_UnmapTransferMemory64From32(Core::System& system) {
+ Result ret{};
- // Unmap the shared memory.
- R_TRY(shmem->Unmap(process, address, size));
+ Handle trmem_handle{};
+ uint32_t address{};
+ uint32_t size{};
- // Remove the shared memory from the process.
- process.RemoveSharedMemory(shmem.GetPointerUnsafe(), address, size);
+ trmem_handle = Convert<Handle>(GetReg32(system, 0));
+ address = Convert<uint32_t>(GetReg32(system, 1));
+ size = Convert<uint32_t>(GetReg32(system, 2));
- return ResultSuccess;
+ ret = UnmapTransferMemory64From32(system, trmem_handle, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result UnmapSharedMemory32(Core::System& system, Handle shmem_handle, u32 address,
- u32 size) {
- return UnmapSharedMemory(system, shmem_handle, address, size);
+static void SvcWrap_CreateInterruptEvent64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_read_handle{};
+ int32_t interrupt_id{};
+ InterruptType interrupt_type{};
+
+ interrupt_id = Convert<int32_t>(GetReg32(system, 1));
+ interrupt_type = Convert<InterruptType>(GetReg32(system, 2));
+
+ ret = CreateInterruptEvent64From32(system, std::addressof(out_read_handle), interrupt_id, interrupt_type);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_read_handle));
}
-static Result SetProcessMemoryPermission(Core::System& system, Handle process_handle, VAddr address,
- u64 size, Svc::MemoryPermission perm) {
- LOG_TRACE(Kernel_SVC,
- "called, process_handle=0x{:X}, addr=0x{:X}, size=0x{:X}, permissions=0x{:08X}",
- process_handle, address, size, perm);
+static void SvcWrap_QueryPhysicalAddress64From32(Core::System& system) {
+ Result ret{};
- // Validate the address/size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
- R_UNLESS(address == static_cast<uintptr_t>(address), ResultInvalidCurrentMemory);
- R_UNLESS(size == static_cast<size_t>(size), ResultInvalidCurrentMemory);
+ ilp32::PhysicalMemoryInfo out_info{};
+ uint32_t address{};
- // Validate the memory permission.
- R_UNLESS(IsValidProcessMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+ address = Convert<uint32_t>(GetReg32(system, 1));
- // Get the process from its handle.
- KScopedAutoObject process =
- system.CurrentProcess()->GetHandleTable().GetObject<KProcess>(process_handle);
- R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
+ ret = QueryPhysicalAddress64From32(system, std::addressof(out_info), address);
- // Validate that the address is in range.
- auto& page_table = process->PageTable();
- R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_info_scatter = Convert<std::array<uint32_t, 4>>(out_info);
+ SetReg32(system, 1, out_info_scatter[0]);
+ SetReg32(system, 2, out_info_scatter[1]);
+ SetReg32(system, 3, out_info_scatter[2]);
+ SetReg32(system, 4, out_info_scatter[3]);
+}
- // Set the memory permission.
- return page_table.SetProcessMemoryPermission(address, size, perm);
+static void SvcWrap_QueryIoMapping64From32(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_address{};
+ uint64_t out_size{};
+ uint64_t physical_address{};
+ uint32_t size{};
+
+ std::array<uint32_t, 2> physical_address_gather{};
+ physical_address_gather[0] = GetReg32(system, 2);
+ physical_address_gather[1] = GetReg32(system, 3);
+ physical_address = Convert<uint64_t>(physical_address_gather);
+ size = Convert<uint32_t>(GetReg32(system, 0));
+
+ ret = QueryIoMapping64From32(system, std::addressof(out_address), std::addressof(out_size), physical_address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_address));
+ SetReg32(system, 2, Convert<uint32_t>(out_size));
}
-static Result MapProcessMemory(Core::System& system, VAddr dst_address, Handle process_handle,
- VAddr src_address, u64 size) {
- LOG_TRACE(Kernel_SVC,
- "called, dst_address=0x{:X}, process_handle=0x{:X}, src_address=0x{:X}, size=0x{:X}",
- dst_address, process_handle, src_address, size);
+static void SvcWrap_CreateDeviceAddressSpace64From32(Core::System& system) {
+ Result ret{};
- // Validate the address/size.
- R_UNLESS(Common::IsAligned(dst_address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(src_address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((dst_address < dst_address + size), ResultInvalidCurrentMemory);
- R_UNLESS((src_address < src_address + size), ResultInvalidCurrentMemory);
+ Handle out_handle{};
+ uint64_t das_address{};
+ uint64_t das_size{};
- // Get the processes.
- KProcess* dst_process = system.CurrentProcess();
- KScopedAutoObject src_process =
- dst_process->GetHandleTable().GetObjectWithoutPseudoHandle<KProcess>(process_handle);
- R_UNLESS(src_process.IsNotNull(), ResultInvalidHandle);
+ std::array<uint32_t, 2> das_address_gather{};
+ das_address_gather[0] = GetReg32(system, 2);
+ das_address_gather[1] = GetReg32(system, 3);
+ das_address = Convert<uint64_t>(das_address_gather);
+ std::array<uint32_t, 2> das_size_gather{};
+ das_size_gather[0] = GetReg32(system, 0);
+ das_size_gather[1] = GetReg32(system, 1);
+ das_size = Convert<uint64_t>(das_size_gather);
- // Get the page tables.
- auto& dst_pt = dst_process->PageTable();
- auto& src_pt = src_process->PageTable();
+ ret = CreateDeviceAddressSpace64From32(system, std::addressof(out_handle), das_address, das_size);
- // Validate that the mapping is in range.
- R_UNLESS(src_pt.Contains(src_address, size), ResultInvalidCurrentMemory);
- R_UNLESS(dst_pt.CanContain(dst_address, size, KMemoryState::SharedCode),
- ResultInvalidMemoryRegion);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
+}
+
+static void SvcWrap_AttachDeviceAddressSpace64From32(Core::System& system) {
+ Result ret{};
- // Create a new page group.
- KPageGroup pg{system.Kernel(), dst_pt.GetBlockInfoManager()};
- R_TRY(src_pt.MakeAndOpenPageGroup(
- std::addressof(pg), src_address, size / PageSize, KMemoryState::FlagCanMapProcess,
- KMemoryState::FlagCanMapProcess, KMemoryPermission::None, KMemoryPermission::None,
- KMemoryAttribute::All, KMemoryAttribute::None));
+ DeviceName device_name{};
+ Handle das_handle{};
- // Map the group.
- R_TRY(dst_pt.MapPages(dst_address, pg, KMemoryState::SharedCode,
- KMemoryPermission::UserReadWrite));
+ device_name = Convert<DeviceName>(GetReg32(system, 0));
+ das_handle = Convert<Handle>(GetReg32(system, 1));
- return ResultSuccess;
+ ret = AttachDeviceAddressSpace64From32(system, device_name, das_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result UnmapProcessMemory(Core::System& system, VAddr dst_address, Handle process_handle,
- VAddr src_address, u64 size) {
- LOG_TRACE(Kernel_SVC,
- "called, dst_address=0x{:X}, process_handle=0x{:X}, src_address=0x{:X}, size=0x{:X}",
- dst_address, process_handle, src_address, size);
+static void SvcWrap_DetachDeviceAddressSpace64From32(Core::System& system) {
+ Result ret{};
- // Validate the address/size.
- R_UNLESS(Common::IsAligned(dst_address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(src_address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((dst_address < dst_address + size), ResultInvalidCurrentMemory);
- R_UNLESS((src_address < src_address + size), ResultInvalidCurrentMemory);
+ DeviceName device_name{};
+ Handle das_handle{};
- // Get the processes.
- KProcess* dst_process = system.CurrentProcess();
- KScopedAutoObject src_process =
- dst_process->GetHandleTable().GetObjectWithoutPseudoHandle<KProcess>(process_handle);
- R_UNLESS(src_process.IsNotNull(), ResultInvalidHandle);
-
- // Get the page tables.
- auto& dst_pt = dst_process->PageTable();
- auto& src_pt = src_process->PageTable();
-
- // Validate that the mapping is in range.
- R_UNLESS(src_pt.Contains(src_address, size), ResultInvalidCurrentMemory);
- R_UNLESS(dst_pt.CanContain(dst_address, size, KMemoryState::SharedCode),
- ResultInvalidMemoryRegion);
-
- // Unmap the memory.
- R_TRY(dst_pt.UnmapProcessMemory(dst_address, size, src_pt, src_address));
-
- return ResultSuccess;
-}
-
-static Result CreateCodeMemory(Core::System& system, Handle* out, VAddr address, size_t size) {
- LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, size=0x{:X}", address, size);
-
- // Get kernel instance.
- auto& kernel = system.Kernel();
+ device_name = Convert<DeviceName>(GetReg32(system, 0));
+ das_handle = Convert<Handle>(GetReg32(system, 1));
- // Validate address / size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+ ret = DetachDeviceAddressSpace64From32(system, device_name, das_handle);
- // Create the code memory.
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
+
+static void SvcWrap_MapDeviceAddressSpaceByForce64From32(Core::System& system) {
+ Result ret{};
- KCodeMemory* code_mem = KCodeMemory::Create(kernel);
- R_UNLESS(code_mem != nullptr, ResultOutOfResource);
+ Handle das_handle{};
+ Handle process_handle{};
+ uint64_t process_address{};
+ uint32_t size{};
+ uint64_t device_address{};
+ uint32_t option{};
- // Verify that the region is in range.
- R_UNLESS(system.CurrentProcess()->PageTable().Contains(address, size),
- ResultInvalidCurrentMemory);
+ das_handle = Convert<Handle>(GetReg32(system, 0));
+ process_handle = Convert<Handle>(GetReg32(system, 1));
+ std::array<uint32_t, 2> process_address_gather{};
+ process_address_gather[0] = GetReg32(system, 2);
+ process_address_gather[1] = GetReg32(system, 3);
+ process_address = Convert<uint64_t>(process_address_gather);
+ size = Convert<uint32_t>(GetReg32(system, 4));
+ std::array<uint32_t, 2> device_address_gather{};
+ device_address_gather[0] = GetReg32(system, 5);
+ device_address_gather[1] = GetReg32(system, 6);
+ device_address = Convert<uint64_t>(device_address_gather);
+ option = Convert<uint32_t>(GetReg32(system, 7));
- // Initialize the code memory.
- R_TRY(code_mem->Initialize(system.DeviceMemory(), address, size));
+ ret = MapDeviceAddressSpaceByForce64From32(system, das_handle, process_handle, process_address, size, device_address, option);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // Register the code memory.
- KCodeMemory::Register(kernel, code_mem);
+static void SvcWrap_MapDeviceAddressSpaceAligned64From32(Core::System& system) {
+ Result ret{};
- // Add the code memory to the handle table.
- R_TRY(system.CurrentProcess()->GetHandleTable().Add(out, code_mem));
+ Handle das_handle{};
+ Handle process_handle{};
+ uint64_t process_address{};
+ uint32_t size{};
+ uint64_t device_address{};
+ uint32_t option{};
- code_mem->Close();
+ das_handle = Convert<Handle>(GetReg32(system, 0));
+ process_handle = Convert<Handle>(GetReg32(system, 1));
+ std::array<uint32_t, 2> process_address_gather{};
+ process_address_gather[0] = GetReg32(system, 2);
+ process_address_gather[1] = GetReg32(system, 3);
+ process_address = Convert<uint64_t>(process_address_gather);
+ size = Convert<uint32_t>(GetReg32(system, 4));
+ std::array<uint32_t, 2> device_address_gather{};
+ device_address_gather[0] = GetReg32(system, 5);
+ device_address_gather[1] = GetReg32(system, 6);
+ device_address = Convert<uint64_t>(device_address_gather);
+ option = Convert<uint32_t>(GetReg32(system, 7));
- return ResultSuccess;
+ ret = MapDeviceAddressSpaceAligned64From32(system, das_handle, process_handle, process_address, size, device_address, option);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result CreateCodeMemory32(Core::System& system, Handle* out, u32 address, u32 size) {
- return CreateCodeMemory(system, out, address, size);
+static void SvcWrap_UnmapDeviceAddressSpace64From32(Core::System& system) {
+ Result ret{};
+
+ Handle das_handle{};
+ Handle process_handle{};
+ uint64_t process_address{};
+ uint32_t size{};
+ uint64_t device_address{};
+
+ das_handle = Convert<Handle>(GetReg32(system, 0));
+ process_handle = Convert<Handle>(GetReg32(system, 1));
+ std::array<uint32_t, 2> process_address_gather{};
+ process_address_gather[0] = GetReg32(system, 2);
+ process_address_gather[1] = GetReg32(system, 3);
+ process_address = Convert<uint64_t>(process_address_gather);
+ size = Convert<uint32_t>(GetReg32(system, 4));
+ std::array<uint32_t, 2> device_address_gather{};
+ device_address_gather[0] = GetReg32(system, 5);
+ device_address_gather[1] = GetReg32(system, 6);
+ device_address = Convert<uint64_t>(device_address_gather);
+
+ ret = UnmapDeviceAddressSpace64From32(system, das_handle, process_handle, process_address, size, device_address);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, u32 operation,
- VAddr address, size_t size, Svc::MemoryPermission perm) {
+static void SvcWrap_InvalidateProcessDataCache64From32(Core::System& system) {
+ Result ret{};
- LOG_TRACE(Kernel_SVC,
- "called, code_memory_handle=0x{:X}, operation=0x{:X}, address=0x{:X}, size=0x{:X}, "
- "permission=0x{:X}",
- code_memory_handle, operation, address, size, perm);
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
- // Validate the address / size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ std::array<uint32_t, 2> address_gather{};
+ address_gather[0] = GetReg32(system, 2);
+ address_gather[1] = GetReg32(system, 3);
+ address = Convert<uint64_t>(address_gather);
+ std::array<uint32_t, 2> size_gather{};
+ size_gather[0] = GetReg32(system, 1);
+ size_gather[1] = GetReg32(system, 4);
+ size = Convert<uint64_t>(size_gather);
- // Get the code memory from its handle.
- KScopedAutoObject code_mem =
- system.CurrentProcess()->GetHandleTable().GetObject<KCodeMemory>(code_memory_handle);
- R_UNLESS(code_mem.IsNotNull(), ResultInvalidHandle);
+ ret = InvalidateProcessDataCache64From32(system, process_handle, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // NOTE: Here, Atmosphere extends the SVC to allow code memory operations on one's own process.
- // This enables homebrew usage of these SVCs for JIT.
+static void SvcWrap_StoreProcessDataCache64From32(Core::System& system) {
+ Result ret{};
- // Perform the operation.
- switch (static_cast<CodeMemoryOperation>(operation)) {
- case CodeMemoryOperation::Map: {
- // Check that the region is in range.
- R_UNLESS(
- system.CurrentProcess()->PageTable().CanContain(address, size, KMemoryState::CodeOut),
- ResultInvalidMemoryRegion);
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
- // Check the memory permission.
- R_UNLESS(IsValidMapCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ std::array<uint32_t, 2> address_gather{};
+ address_gather[0] = GetReg32(system, 2);
+ address_gather[1] = GetReg32(system, 3);
+ address = Convert<uint64_t>(address_gather);
+ std::array<uint32_t, 2> size_gather{};
+ size_gather[0] = GetReg32(system, 1);
+ size_gather[1] = GetReg32(system, 4);
+ size = Convert<uint64_t>(size_gather);
- // Map the memory.
- R_TRY(code_mem->Map(address, size));
- } break;
- case CodeMemoryOperation::Unmap: {
- // Check that the region is in range.
- R_UNLESS(
- system.CurrentProcess()->PageTable().CanContain(address, size, KMemoryState::CodeOut),
- ResultInvalidMemoryRegion);
+ ret = StoreProcessDataCache64From32(system, process_handle, address, size);
- // Check the memory permission.
- R_UNLESS(IsValidUnmapCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // Unmap the memory.
- R_TRY(code_mem->Unmap(address, size));
- } break;
- case CodeMemoryOperation::MapToOwner: {
- // Check that the region is in range.
- R_UNLESS(code_mem->GetOwner()->PageTable().CanContain(address, size,
- KMemoryState::GeneratedCode),
- ResultInvalidMemoryRegion);
+static void SvcWrap_FlushProcessDataCache64From32(Core::System& system) {
+ Result ret{};
- // Check the memory permission.
- R_UNLESS(IsValidMapToOwnerCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
- // Map the memory to its owner.
- R_TRY(code_mem->MapToOwner(address, size, perm));
- } break;
- case CodeMemoryOperation::UnmapFromOwner: {
- // Check that the region is in range.
- R_UNLESS(code_mem->GetOwner()->PageTable().CanContain(address, size,
- KMemoryState::GeneratedCode),
- ResultInvalidMemoryRegion);
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ std::array<uint32_t, 2> address_gather{};
+ address_gather[0] = GetReg32(system, 2);
+ address_gather[1] = GetReg32(system, 3);
+ address = Convert<uint64_t>(address_gather);
+ std::array<uint32_t, 2> size_gather{};
+ size_gather[0] = GetReg32(system, 1);
+ size_gather[1] = GetReg32(system, 4);
+ size = Convert<uint64_t>(size_gather);
- // Check the memory permission.
- R_UNLESS(IsValidUnmapFromOwnerCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
-
- // Unmap the memory from its owner.
- R_TRY(code_mem->UnmapFromOwner(address, size));
- } break;
- default:
- return ResultInvalidEnumValue;
- }
+ ret = FlushProcessDataCache64From32(system, process_handle, address, size);
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result ControlCodeMemory32(Core::System& system, Handle code_memory_handle, u32 operation,
- u64 address, u64 size, Svc::MemoryPermission perm) {
- return ControlCodeMemory(system, code_memory_handle, operation, address, size, perm);
+static void SvcWrap_DebugActiveProcess64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint64_t process_id{};
+
+ std::array<uint32_t, 2> process_id_gather{};
+ process_id_gather[0] = GetReg32(system, 2);
+ process_id_gather[1] = GetReg32(system, 3);
+ process_id = Convert<uint64_t>(process_id_gather);
+
+ ret = DebugActiveProcess64From32(system, std::addressof(out_handle), process_id);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static Result QueryProcessMemory(Core::System& system, VAddr memory_info_address,
- VAddr page_info_address, Handle process_handle, VAddr address) {
- LOG_TRACE(Kernel_SVC, "called process=0x{:08X} address={:X}", process_handle, address);
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
- KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
- if (process.IsNull()) {
- LOG_ERROR(Kernel_SVC, "Process handle does not exist, process_handle=0x{:08X}",
- process_handle);
- return ResultInvalidHandle;
- }
+static void SvcWrap_BreakDebugProcess64From32(Core::System& system) {
+ Result ret{};
- auto& memory{system.Memory()};
- const auto memory_info{process->PageTable().QueryInfo(address).GetSvcMemoryInfo()};
+ Handle debug_handle{};
- memory.Write64(memory_info_address + 0x00, memory_info.base_address);
- memory.Write64(memory_info_address + 0x08, memory_info.size);
- memory.Write32(memory_info_address + 0x10, static_cast<u32>(memory_info.state) & 0xff);
- memory.Write32(memory_info_address + 0x14, static_cast<u32>(memory_info.attribute));
- memory.Write32(memory_info_address + 0x18, static_cast<u32>(memory_info.permission));
- memory.Write32(memory_info_address + 0x1c, memory_info.ipc_count);
- memory.Write32(memory_info_address + 0x20, memory_info.device_count);
- memory.Write32(memory_info_address + 0x24, 0);
+ debug_handle = Convert<Handle>(GetReg32(system, 0));
- // Page info appears to be currently unused by the kernel and is always set to zero.
- memory.Write32(page_info_address, 0);
+ ret = BreakDebugProcess64From32(system, debug_handle);
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result QueryMemory(Core::System& system, VAddr memory_info_address, VAddr page_info_address,
- VAddr query_address) {
- LOG_TRACE(Kernel_SVC,
- "called, memory_info_address=0x{:016X}, page_info_address=0x{:016X}, "
- "query_address=0x{:016X}",
- memory_info_address, page_info_address, query_address);
+static void SvcWrap_TerminateDebugProcess64From32(Core::System& system) {
+ Result ret{};
+
+ Handle debug_handle{};
+
+ debug_handle = Convert<Handle>(GetReg32(system, 0));
+
+ ret = TerminateDebugProcess64From32(system, debug_handle);
- return QueryProcessMemory(system, memory_info_address, page_info_address, CurrentProcess,
- query_address);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result QueryMemory32(Core::System& system, u32 memory_info_address, u32 page_info_address,
- u32 query_address) {
- return QueryMemory(system, memory_info_address, page_info_address, query_address);
+static void SvcWrap_GetDebugEvent64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t out_info{};
+ Handle debug_handle{};
+
+ out_info = Convert<uint32_t>(GetReg32(system, 0));
+ debug_handle = Convert<Handle>(GetReg32(system, 1));
+
+ ret = GetDebugEvent64From32(system, out_info, debug_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result MapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst_address,
- u64 src_address, u64 size) {
- LOG_DEBUG(Kernel_SVC,
- "called. process_handle=0x{:08X}, dst_address=0x{:016X}, "
- "src_address=0x{:016X}, size=0x{:016X}",
- process_handle, dst_address, src_address, size);
+static void SvcWrap_ContinueDebugEvent64From32(Core::System& system) {
+ Result ret{};
- if (!Common::Is4KBAligned(src_address)) {
- LOG_ERROR(Kernel_SVC, "src_address is not page-aligned (src_address=0x{:016X}).",
- src_address);
- return ResultInvalidAddress;
- }
+ Handle debug_handle{};
+ uint32_t flags{};
+ uint32_t thread_ids{};
+ int32_t num_thread_ids{};
- if (!Common::Is4KBAligned(dst_address)) {
- LOG_ERROR(Kernel_SVC, "dst_address is not page-aligned (dst_address=0x{:016X}).",
- dst_address);
- return ResultInvalidAddress;
- }
+ debug_handle = Convert<Handle>(GetReg32(system, 0));
+ flags = Convert<uint32_t>(GetReg32(system, 1));
+ thread_ids = Convert<uint32_t>(GetReg32(system, 2));
+ num_thread_ids = Convert<int32_t>(GetReg32(system, 3));
- if (size == 0 || !Common::Is4KBAligned(size)) {
- LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X})", size);
- return ResultInvalidSize;
- }
+ ret = ContinueDebugEvent64From32(system, debug_handle, flags, thread_ids, num_thread_ids);
- if (!IsValidAddressRange(dst_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination address range overflows the address space (dst_address=0x{:016X}, "
- "size=0x{:016X}).",
- dst_address, size);
- return ResultInvalidCurrentMemory;
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- if (!IsValidAddressRange(src_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Source address range overflows the address space (src_address=0x{:016X}, "
- "size=0x{:016X}).",
- src_address, size);
- return ResultInvalidCurrentMemory;
- }
+static void SvcWrap_GetProcessList64From32(Core::System& system) {
+ Result ret{};
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
- KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
- if (process.IsNull()) {
- LOG_ERROR(Kernel_SVC, "Invalid process handle specified (handle=0x{:08X}).",
- process_handle);
- return ResultInvalidHandle;
- }
+ int32_t out_num_processes{};
+ uint32_t out_process_ids{};
+ int32_t max_out_count{};
- auto& page_table = process->PageTable();
- if (!page_table.IsInsideAddressSpace(src_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Source address range is not within the address space (src_address=0x{:016X}, "
- "size=0x{:016X}).",
- src_address, size);
- return ResultInvalidCurrentMemory;
- }
+ out_process_ids = Convert<uint32_t>(GetReg32(system, 1));
+ max_out_count = Convert<int32_t>(GetReg32(system, 2));
- if (!page_table.IsInsideASLRRegion(dst_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination address range is not within the ASLR region (dst_address=0x{:016X}, "
- "size=0x{:016X}).",
- dst_address, size);
- return ResultInvalidMemoryRegion;
- }
+ ret = GetProcessList64From32(system, std::addressof(out_num_processes), out_process_ids, max_out_count);
- return page_table.MapCodeMemory(dst_address, src_address, size);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_num_processes));
}
-static Result UnmapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst_address,
- u64 src_address, u64 size) {
- LOG_DEBUG(Kernel_SVC,
- "called. process_handle=0x{:08X}, dst_address=0x{:016X}, src_address=0x{:016X}, "
- "size=0x{:016X}",
- process_handle, dst_address, src_address, size);
+static void SvcWrap_GetThreadList64From32(Core::System& system) {
+ Result ret{};
- if (!Common::Is4KBAligned(dst_address)) {
- LOG_ERROR(Kernel_SVC, "dst_address is not page-aligned (dst_address=0x{:016X}).",
- dst_address);
- return ResultInvalidAddress;
- }
+ int32_t out_num_threads{};
+ uint32_t out_thread_ids{};
+ int32_t max_out_count{};
+ Handle debug_handle{};
- if (!Common::Is4KBAligned(src_address)) {
- LOG_ERROR(Kernel_SVC, "src_address is not page-aligned (src_address=0x{:016X}).",
- src_address);
- return ResultInvalidAddress;
- }
+ out_thread_ids = Convert<uint32_t>(GetReg32(system, 1));
+ max_out_count = Convert<int32_t>(GetReg32(system, 2));
+ debug_handle = Convert<Handle>(GetReg32(system, 3));
- if (size == 0 || !Common::Is4KBAligned(size)) {
- LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X}).", size);
- return ResultInvalidSize;
- }
+ ret = GetThreadList64From32(system, std::addressof(out_num_threads), out_thread_ids, max_out_count, debug_handle);
- if (!IsValidAddressRange(dst_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination address range overflows the address space (dst_address=0x{:016X}, "
- "size=0x{:016X}).",
- dst_address, size);
- return ResultInvalidCurrentMemory;
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_num_threads));
+}
- if (!IsValidAddressRange(src_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Source address range overflows the address space (src_address=0x{:016X}, "
- "size=0x{:016X}).",
- src_address, size);
- return ResultInvalidCurrentMemory;
- }
+static void SvcWrap_GetDebugThreadContext64From32(Core::System& system) {
+ Result ret{};
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
- KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
- if (process.IsNull()) {
- LOG_ERROR(Kernel_SVC, "Invalid process handle specified (handle=0x{:08X}).",
- process_handle);
- return ResultInvalidHandle;
- }
+ uint32_t out_context{};
+ Handle debug_handle{};
+ uint64_t thread_id{};
+ uint32_t context_flags{};
- auto& page_table = process->PageTable();
- if (!page_table.IsInsideAddressSpace(src_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Source address range is not within the address space (src_address=0x{:016X}, "
- "size=0x{:016X}).",
- src_address, size);
- return ResultInvalidCurrentMemory;
- }
+ out_context = Convert<uint32_t>(GetReg32(system, 0));
+ debug_handle = Convert<Handle>(GetReg32(system, 1));
+ std::array<uint32_t, 2> thread_id_gather{};
+ thread_id_gather[0] = GetReg32(system, 2);
+ thread_id_gather[1] = GetReg32(system, 3);
+ thread_id = Convert<uint64_t>(thread_id_gather);
+ context_flags = Convert<uint32_t>(GetReg32(system, 4));
- if (!page_table.IsInsideASLRRegion(dst_address, size)) {
- LOG_ERROR(Kernel_SVC,
- "Destination address range is not within the ASLR region (dst_address=0x{:016X}, "
- "size=0x{:016X}).",
- dst_address, size);
- return ResultInvalidMemoryRegion;
- }
+ ret = GetDebugThreadContext64From32(system, out_context, debug_handle, thread_id, context_flags);
- return page_table.UnmapCodeMemory(dst_address, src_address, size,
- KPageTable::ICacheInvalidationStrategy::InvalidateAll);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Exits the current process
-static void ExitProcess(Core::System& system) {
- auto* current_process = system.Kernel().CurrentProcess();
+static void SvcWrap_SetDebugThreadContext64From32(Core::System& system) {
+ Result ret{};
+
+ Handle debug_handle{};
+ uint64_t thread_id{};
+ uint32_t context{};
+ uint32_t context_flags{};
- LOG_INFO(Kernel_SVC, "Process {} exiting", current_process->GetProcessID());
- ASSERT_MSG(current_process->GetState() == KProcess::State::Running,
- "Process has already exited");
+ debug_handle = Convert<Handle>(GetReg32(system, 0));
+ std::array<uint32_t, 2> thread_id_gather{};
+ thread_id_gather[0] = GetReg32(system, 2);
+ thread_id_gather[1] = GetReg32(system, 3);
+ thread_id = Convert<uint64_t>(thread_id_gather);
+ context = Convert<uint32_t>(GetReg32(system, 1));
+ context_flags = Convert<uint32_t>(GetReg32(system, 4));
- system.Exit();
+ ret = SetDebugThreadContext64From32(system, debug_handle, thread_id, context, context_flags);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static void ExitProcess32(Core::System& system) {
- ExitProcess(system);
+static void SvcWrap_QueryDebugProcessMemory64From32(Core::System& system) {
+ Result ret{};
+
+ PageInfo out_page_info{};
+ uint32_t out_memory_info{};
+ Handle process_handle{};
+ uint32_t address{};
+
+ out_memory_info = Convert<uint32_t>(GetReg32(system, 0));
+ process_handle = Convert<Handle>(GetReg32(system, 2));
+ address = Convert<uint32_t>(GetReg32(system, 3));
+
+ ret = QueryDebugProcessMemory64From32(system, out_memory_info, std::addressof(out_page_info), process_handle, address);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_page_info));
}
-namespace {
+static void SvcWrap_ReadDebugProcessMemory64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t buffer{};
+ Handle debug_handle{};
+ uint32_t address{};
+ uint32_t size{};
+
+ buffer = Convert<uint32_t>(GetReg32(system, 0));
+ debug_handle = Convert<Handle>(GetReg32(system, 1));
+ address = Convert<uint32_t>(GetReg32(system, 2));
+ size = Convert<uint32_t>(GetReg32(system, 3));
-constexpr bool IsValidVirtualCoreId(int32_t core_id) {
- return (0 <= core_id && core_id < static_cast<int32_t>(Core::Hardware::NUM_CPU_CORES));
+ ret = ReadDebugProcessMemory64From32(system, buffer, debug_handle, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-} // Anonymous namespace
+static void SvcWrap_WriteDebugProcessMemory64From32(Core::System& system) {
+ Result ret{};
-/// Creates a new thread
-static Result CreateThread(Core::System& system, Handle* out_handle, VAddr entry_point, u64 arg,
- VAddr stack_bottom, u32 priority, s32 core_id) {
- LOG_DEBUG(Kernel_SVC,
- "called entry_point=0x{:08X}, arg=0x{:08X}, stack_bottom=0x{:08X}, "
- "priority=0x{:08X}, core_id=0x{:08X}",
- entry_point, arg, stack_bottom, priority, core_id);
+ Handle debug_handle{};
+ uint32_t buffer{};
+ uint32_t address{};
+ uint32_t size{};
- // Adjust core id, if it's the default magic.
- auto& kernel = system.Kernel();
- auto& process = *kernel.CurrentProcess();
- if (core_id == IdealCoreUseProcessValue) {
- core_id = process.GetIdealCoreId();
- }
+ debug_handle = Convert<Handle>(GetReg32(system, 0));
+ buffer = Convert<uint32_t>(GetReg32(system, 1));
+ address = Convert<uint32_t>(GetReg32(system, 2));
+ size = Convert<uint32_t>(GetReg32(system, 3));
- // Validate arguments.
- if (!IsValidVirtualCoreId(core_id)) {
- LOG_ERROR(Kernel_SVC, "Invalid Core ID specified (id={})", core_id);
- return ResultInvalidCoreId;
- }
- if (((1ULL << core_id) & process.GetCoreMask()) == 0) {
- LOG_ERROR(Kernel_SVC, "Core ID doesn't fall within allowable cores (id={})", core_id);
- return ResultInvalidCoreId;
- }
+ ret = WriteDebugProcessMemory64From32(system, debug_handle, buffer, address, size);
- if (HighestThreadPriority > priority || priority > LowestThreadPriority) {
- LOG_ERROR(Kernel_SVC, "Invalid priority specified (priority={})", priority);
- return ResultInvalidPriority;
- }
- if (!process.CheckThreadPriority(priority)) {
- LOG_ERROR(Kernel_SVC, "Invalid allowable thread priority (priority={})", priority);
- return ResultInvalidPriority;
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // Reserve a new thread from the process resource limit (waiting up to 100ms).
- KScopedResourceReservation thread_reservation(
- kernel.CurrentProcess(), LimitableResource::ThreadCountMax, 1,
- system.CoreTiming().GetGlobalTimeNs().count() + 100000000);
- if (!thread_reservation.Succeeded()) {
- LOG_ERROR(Kernel_SVC, "Could not reserve a new thread");
- return ResultLimitReached;
- }
+static void SvcWrap_SetHardwareBreakPoint64From32(Core::System& system) {
+ Result ret{};
- // Create the thread.
- KThread* thread = KThread::Create(kernel);
- if (!thread) {
- LOG_ERROR(Kernel_SVC, "Unable to create new threads. Thread creation limit reached.");
- return ResultOutOfResource;
- }
- SCOPE_EXIT({ thread->Close(); });
+ HardwareBreakPointRegisterName name{};
+ uint64_t flags{};
+ uint64_t value{};
- // Initialize the thread.
- {
- KScopedLightLock lk{process.GetStateLock()};
- R_TRY(KThread::InitializeUserThread(system, thread, entry_point, arg, stack_bottom,
- priority, core_id, &process));
- }
+ name = Convert<HardwareBreakPointRegisterName>(GetReg32(system, 0));
+ std::array<uint32_t, 2> flags_gather{};
+ flags_gather[0] = GetReg32(system, 2);
+ flags_gather[1] = GetReg32(system, 3);
+ flags = Convert<uint64_t>(flags_gather);
+ std::array<uint32_t, 2> value_gather{};
+ value_gather[0] = GetReg32(system, 1);
+ value_gather[1] = GetReg32(system, 4);
+ value = Convert<uint64_t>(value_gather);
- // Set the thread name for debugging purposes.
- thread->SetName(fmt::format("thread[entry_point={:X}, handle={:X}]", entry_point, *out_handle));
+ ret = SetHardwareBreakPoint64From32(system, name, flags, value);
- // Commit the thread reservation.
- thread_reservation.Commit();
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+}
- // Register the new thread.
- KThread::Register(kernel, thread);
+static void SvcWrap_GetDebugThreadParam64From32(Core::System& system) {
+ Result ret{};
- // Add the thread to the handle table.
- R_TRY(process.GetHandleTable().Add(out_handle, thread));
+ uint64_t out_64{};
+ uint32_t out_32{};
+ Handle debug_handle{};
+ uint64_t thread_id{};
+ DebugThreadParam param{};
- return ResultSuccess;
+ debug_handle = Convert<Handle>(GetReg32(system, 2));
+ std::array<uint32_t, 2> thread_id_gather{};
+ thread_id_gather[0] = GetReg32(system, 0);
+ thread_id_gather[1] = GetReg32(system, 1);
+ thread_id = Convert<uint64_t>(thread_id_gather);
+ param = Convert<DebugThreadParam>(GetReg32(system, 3));
+
+ ret = GetDebugThreadParam64From32(system, std::addressof(out_64), std::addressof(out_32), debug_handle, thread_id, param);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_64_scatter = Convert<std::array<uint32_t, 2>>(out_64);
+ SetReg32(system, 1, out_64_scatter[0]);
+ SetReg32(system, 2, out_64_scatter[1]);
+ SetReg32(system, 3, Convert<uint32_t>(out_32));
}
-static Result CreateThread32(Core::System& system, Handle* out_handle, u32 priority,
- u32 entry_point, u32 arg, u32 stack_top, s32 processor_id) {
- return CreateThread(system, out_handle, entry_point, arg, stack_top, priority, processor_id);
+static void SvcWrap_GetSystemInfo64From32(Core::System& system) {
+ Result ret{};
+
+ uint64_t out{};
+ SystemInfoType info_type{};
+ Handle handle{};
+ uint64_t info_subtype{};
+
+ info_type = Convert<SystemInfoType>(GetReg32(system, 1));
+ handle = Convert<Handle>(GetReg32(system, 2));
+ std::array<uint32_t, 2> info_subtype_gather{};
+ info_subtype_gather[0] = GetReg32(system, 0);
+ info_subtype_gather[1] = GetReg32(system, 3);
+ info_subtype = Convert<uint64_t>(info_subtype_gather);
+
+ ret = GetSystemInfo64From32(system, std::addressof(out), info_type, handle, info_subtype);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_scatter = Convert<std::array<uint32_t, 2>>(out);
+ SetReg32(system, 1, out_scatter[0]);
+ SetReg32(system, 2, out_scatter[1]);
}
-/// Starts the thread for the provided handle
-static Result StartThread(Core::System& system, Handle thread_handle) {
- LOG_DEBUG(Kernel_SVC, "called thread=0x{:08X}", thread_handle);
+static void SvcWrap_CreatePort64From32(Core::System& system) {
+ Result ret{};
- // Get the thread from its handle.
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(thread_handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ Handle out_server_handle{};
+ Handle out_client_handle{};
+ int32_t max_sessions{};
+ bool is_light{};
+ uint32_t name{};
- // Try to start the thread.
- R_TRY(thread->Run());
+ max_sessions = Convert<int32_t>(GetReg32(system, 2));
+ is_light = Convert<bool>(GetReg32(system, 3));
+ name = Convert<uint32_t>(GetReg32(system, 0));
- // If we succeeded, persist a reference to the thread.
- thread->Open();
- system.Kernel().RegisterInUseObject(thread.GetPointerUnsafe());
+ ret = CreatePort64From32(system, std::addressof(out_server_handle), std::addressof(out_client_handle), max_sessions, is_light, name);
- return ResultSuccess;
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_server_handle));
+ SetReg32(system, 2, Convert<uint32_t>(out_client_handle));
}
-static Result StartThread32(Core::System& system, Handle thread_handle) {
- return StartThread(system, thread_handle);
+static void SvcWrap_ManageNamedPort64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_server_handle{};
+ uint32_t name{};
+ int32_t max_sessions{};
+
+ name = Convert<uint32_t>(GetReg32(system, 1));
+ max_sessions = Convert<int32_t>(GetReg32(system, 2));
+
+ ret = ManageNamedPort64From32(system, std::addressof(out_server_handle), name, max_sessions);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_server_handle));
}
-/// Called when a thread exits
-static void ExitThread(Core::System& system) {
- LOG_DEBUG(Kernel_SVC, "called, pc=0x{:08X}", system.CurrentArmInterface().GetPC());
+static void SvcWrap_ConnectToPort64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ Handle port{};
- auto* const current_thread = GetCurrentThreadPointer(system.Kernel());
- system.GlobalSchedulerContext().RemoveThread(current_thread);
- current_thread->Exit();
- system.Kernel().UnregisterInUseObject(current_thread);
+ port = Convert<Handle>(GetReg32(system, 1));
+
+ ret = ConnectToPort64From32(system, std::addressof(out_handle), port);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static void ExitThread32(Core::System& system) {
- ExitThread(system);
+static void SvcWrap_SetProcessMemoryPermission64From32(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission perm{};
+
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ std::array<uint32_t, 2> address_gather{};
+ address_gather[0] = GetReg32(system, 2);
+ address_gather[1] = GetReg32(system, 3);
+ address = Convert<uint64_t>(address_gather);
+ std::array<uint32_t, 2> size_gather{};
+ size_gather[0] = GetReg32(system, 1);
+ size_gather[1] = GetReg32(system, 4);
+ size = Convert<uint64_t>(size_gather);
+ perm = Convert<MemoryPermission>(GetReg32(system, 5));
+
+ ret = SetProcessMemoryPermission64From32(system, process_handle, address, size, perm);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Sleep the current thread
-static void SleepThread(Core::System& system, s64 nanoseconds) {
- auto& kernel = system.Kernel();
- const auto yield_type = static_cast<Svc::YieldType>(nanoseconds);
-
- LOG_TRACE(Kernel_SVC, "called nanoseconds={}", nanoseconds);
-
- // When the input tick is positive, sleep.
- if (nanoseconds > 0) {
- // Convert the timeout from nanoseconds to ticks.
- // NOTE: Nintendo does not use this conversion logic in WaitSynchronization...
-
- // Sleep.
- // NOTE: Nintendo does not check the result of this sleep.
- static_cast<void>(GetCurrentThread(kernel).Sleep(nanoseconds));
- } else if (yield_type == Svc::YieldType::WithoutCoreMigration) {
- KScheduler::YieldWithoutCoreMigration(kernel);
- } else if (yield_type == Svc::YieldType::WithCoreMigration) {
- KScheduler::YieldWithCoreMigration(kernel);
- } else if (yield_type == Svc::YieldType::ToAnyThread) {
- KScheduler::YieldToAnyThread(kernel);
- } else {
- // Nintendo does nothing at all if an otherwise invalid value is passed.
- ASSERT_MSG(false, "Unimplemented sleep yield type '{:016X}'!", nanoseconds);
- }
+static void SvcWrap_MapProcessMemory64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t dst_address{};
+ Handle process_handle{};
+ uint64_t src_address{};
+ uint32_t size{};
+
+ dst_address = Convert<uint32_t>(GetReg32(system, 0));
+ process_handle = Convert<Handle>(GetReg32(system, 1));
+ std::array<uint32_t, 2> src_address_gather{};
+ src_address_gather[0] = GetReg32(system, 2);
+ src_address_gather[1] = GetReg32(system, 3);
+ src_address = Convert<uint64_t>(src_address_gather);
+ size = Convert<uint32_t>(GetReg32(system, 4));
+
+ ret = MapProcessMemory64From32(system, dst_address, process_handle, src_address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static void SleepThread32(Core::System& system, u32 nanoseconds_low, u32 nanoseconds_high) {
- const auto nanoseconds = static_cast<s64>(u64{nanoseconds_low} | (u64{nanoseconds_high} << 32));
- SleepThread(system, nanoseconds);
+static void SvcWrap_UnmapProcessMemory64From32(Core::System& system) {
+ Result ret{};
+
+ uint32_t dst_address{};
+ Handle process_handle{};
+ uint64_t src_address{};
+ uint32_t size{};
+
+ dst_address = Convert<uint32_t>(GetReg32(system, 0));
+ process_handle = Convert<Handle>(GetReg32(system, 1));
+ std::array<uint32_t, 2> src_address_gather{};
+ src_address_gather[0] = GetReg32(system, 2);
+ src_address_gather[1] = GetReg32(system, 3);
+ src_address = Convert<uint64_t>(src_address_gather);
+ size = Convert<uint32_t>(GetReg32(system, 4));
+
+ ret = UnmapProcessMemory64From32(system, dst_address, process_handle, src_address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Wait process wide key atomic
-static Result WaitProcessWideKeyAtomic(Core::System& system, VAddr address, VAddr cv_key, u32 tag,
- s64 timeout_ns) {
- LOG_TRACE(Kernel_SVC, "called address={:X}, cv_key={:X}, tag=0x{:08X}, timeout_ns={}", address,
- cv_key, tag, timeout_ns);
+static void SvcWrap_QueryProcessMemory64From32(Core::System& system) {
+ Result ret{};
- // Validate input.
- if (IsKernelAddress(address)) {
- LOG_ERROR(Kernel_SVC, "Attempted to wait on kernel address (address={:08X})", address);
- return ResultInvalidCurrentMemory;
- }
- if (!Common::IsAligned(address, sizeof(s32))) {
- LOG_ERROR(Kernel_SVC, "Address must be 4 byte aligned (address={:08X})", address);
- return ResultInvalidAddress;
- }
+ PageInfo out_page_info{};
+ uint32_t out_memory_info{};
+ Handle process_handle{};
+ uint64_t address{};
- // Convert timeout from nanoseconds to ticks.
- s64 timeout{};
- if (timeout_ns > 0) {
- const s64 offset_tick(timeout_ns);
- if (offset_tick > 0) {
- timeout = offset_tick + 2;
- if (timeout <= 0) {
- timeout = std::numeric_limits<s64>::max();
- }
- } else {
- timeout = std::numeric_limits<s64>::max();
- }
- } else {
- timeout = timeout_ns;
- }
+ out_memory_info = Convert<uint32_t>(GetReg32(system, 0));
+ process_handle = Convert<Handle>(GetReg32(system, 2));
+ std::array<uint32_t, 2> address_gather{};
+ address_gather[0] = GetReg32(system, 1);
+ address_gather[1] = GetReg32(system, 3);
+ address = Convert<uint64_t>(address_gather);
+
+ ret = QueryProcessMemory64From32(system, out_memory_info, std::addressof(out_page_info), process_handle, address);
- // Wait on the condition variable.
- return system.Kernel().CurrentProcess()->WaitConditionVariable(
- address, Common::AlignDown(cv_key, sizeof(u32)), tag, timeout);
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_page_info));
}
-static Result WaitProcessWideKeyAtomic32(Core::System& system, u32 address, u32 cv_key, u32 tag,
- u32 timeout_ns_low, u32 timeout_ns_high) {
- const auto timeout_ns = static_cast<s64>(timeout_ns_low | (u64{timeout_ns_high} << 32));
- return WaitProcessWideKeyAtomic(system, address, cv_key, tag, timeout_ns);
+static void SvcWrap_MapProcessCodeMemory64From32(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t dst_address{};
+ uint64_t src_address{};
+ uint64_t size{};
+
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ std::array<uint32_t, 2> dst_address_gather{};
+ dst_address_gather[0] = GetReg32(system, 2);
+ dst_address_gather[1] = GetReg32(system, 3);
+ dst_address = Convert<uint64_t>(dst_address_gather);
+ std::array<uint32_t, 2> src_address_gather{};
+ src_address_gather[0] = GetReg32(system, 1);
+ src_address_gather[1] = GetReg32(system, 4);
+ src_address = Convert<uint64_t>(src_address_gather);
+ std::array<uint32_t, 2> size_gather{};
+ size_gather[0] = GetReg32(system, 5);
+ size_gather[1] = GetReg32(system, 6);
+ size = Convert<uint64_t>(size_gather);
+
+ ret = MapProcessCodeMemory64From32(system, process_handle, dst_address, src_address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-/// Signal process wide key
-static void SignalProcessWideKey(Core::System& system, VAddr cv_key, s32 count) {
- LOG_TRACE(Kernel_SVC, "called, cv_key=0x{:X}, count=0x{:08X}", cv_key, count);
+static void SvcWrap_UnmapProcessCodeMemory64From32(Core::System& system) {
+ Result ret{};
- // Signal the condition variable.
- return system.Kernel().CurrentProcess()->SignalConditionVariable(
- Common::AlignDown(cv_key, sizeof(u32)), count);
+ Handle process_handle{};
+ uint64_t dst_address{};
+ uint64_t src_address{};
+ uint64_t size{};
+
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ std::array<uint32_t, 2> dst_address_gather{};
+ dst_address_gather[0] = GetReg32(system, 2);
+ dst_address_gather[1] = GetReg32(system, 3);
+ dst_address = Convert<uint64_t>(dst_address_gather);
+ std::array<uint32_t, 2> src_address_gather{};
+ src_address_gather[0] = GetReg32(system, 1);
+ src_address_gather[1] = GetReg32(system, 4);
+ src_address = Convert<uint64_t>(src_address_gather);
+ std::array<uint32_t, 2> size_gather{};
+ size_gather[0] = GetReg32(system, 5);
+ size_gather[1] = GetReg32(system, 6);
+ size = Convert<uint64_t>(size_gather);
+
+ ret = UnmapProcessCodeMemory64From32(system, process_handle, dst_address, src_address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static void SignalProcessWideKey32(Core::System& system, u32 cv_key, s32 count) {
- SignalProcessWideKey(system, cv_key, count);
+static void SvcWrap_CreateProcess64From32(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint32_t parameters{};
+ uint32_t caps{};
+ int32_t num_caps{};
+
+ parameters = Convert<uint32_t>(GetReg32(system, 1));
+ caps = Convert<uint32_t>(GetReg32(system, 2));
+ num_caps = Convert<int32_t>(GetReg32(system, 3));
+
+ ret = CreateProcess64From32(system, std::addressof(out_handle), parameters, caps, num_caps);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-namespace {
+static void SvcWrap_StartProcess64From32(Core::System& system) {
+ Result ret{};
-constexpr bool IsValidSignalType(Svc::SignalType type) {
- switch (type) {
- case Svc::SignalType::Signal:
- case Svc::SignalType::SignalAndIncrementIfEqual:
- case Svc::SignalType::SignalAndModifyByWaitingCountIfEqual:
- return true;
- default:
- return false;
- }
+ Handle process_handle{};
+ int32_t priority{};
+ int32_t core_id{};
+ uint64_t main_thread_stack_size{};
+
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+ priority = Convert<int32_t>(GetReg32(system, 1));
+ core_id = Convert<int32_t>(GetReg32(system, 2));
+ std::array<uint32_t, 2> main_thread_stack_size_gather{};
+ main_thread_stack_size_gather[0] = GetReg32(system, 3);
+ main_thread_stack_size_gather[1] = GetReg32(system, 4);
+ main_thread_stack_size = Convert<uint64_t>(main_thread_stack_size_gather);
+
+ ret = StartProcess64From32(system, process_handle, priority, core_id, main_thread_stack_size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-constexpr bool IsValidArbitrationType(Svc::ArbitrationType type) {
- switch (type) {
- case Svc::ArbitrationType::WaitIfLessThan:
- case Svc::ArbitrationType::DecrementAndWaitIfLessThan:
- case Svc::ArbitrationType::WaitIfEqual:
- return true;
- default:
- return false;
- }
+static void SvcWrap_TerminateProcess64From32(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+
+ process_handle = Convert<Handle>(GetReg32(system, 0));
+
+ ret = TerminateProcess64From32(system, process_handle);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-} // namespace
+static void SvcWrap_GetProcessInfo64From32(Core::System& system) {
+ Result ret{};
-// Wait for an address (via Address Arbiter)
-static Result WaitForAddress(Core::System& system, VAddr address, Svc::ArbitrationType arb_type,
- s32 value, s64 timeout_ns) {
- LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, arb_type=0x{:X}, value=0x{:X}, timeout_ns={}",
- address, arb_type, value, timeout_ns);
+ int64_t out_info{};
+ Handle process_handle{};
+ ProcessInfoType info_type{};
- // Validate input.
- if (IsKernelAddress(address)) {
- LOG_ERROR(Kernel_SVC, "Attempting to wait on kernel address (address={:08X})", address);
- return ResultInvalidCurrentMemory;
- }
- if (!Common::IsAligned(address, sizeof(s32))) {
- LOG_ERROR(Kernel_SVC, "Wait address must be 4 byte aligned (address={:08X})", address);
- return ResultInvalidAddress;
- }
- if (!IsValidArbitrationType(arb_type)) {
- LOG_ERROR(Kernel_SVC, "Invalid arbitration type specified (type={})", arb_type);
- return ResultInvalidEnumValue;
- }
+ process_handle = Convert<Handle>(GetReg32(system, 1));
+ info_type = Convert<ProcessInfoType>(GetReg32(system, 2));
- // Convert timeout from nanoseconds to ticks.
- s64 timeout{};
- if (timeout_ns > 0) {
- const s64 offset_tick(timeout_ns);
- if (offset_tick > 0) {
- timeout = offset_tick + 2;
- if (timeout <= 0) {
- timeout = std::numeric_limits<s64>::max();
- }
- } else {
- timeout = std::numeric_limits<s64>::max();
- }
- } else {
- timeout = timeout_ns;
- }
+ ret = GetProcessInfo64From32(system, std::addressof(out_info), process_handle, info_type);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ auto out_info_scatter = Convert<std::array<uint32_t, 2>>(out_info);
+ SetReg32(system, 1, out_info_scatter[0]);
+ SetReg32(system, 2, out_info_scatter[1]);
+}
+
+static void SvcWrap_CreateResourceLimit64From32(Core::System& system) {
+ Result ret{};
- return system.Kernel().CurrentProcess()->WaitAddressArbiter(address, arb_type, value, timeout);
+ Handle out_handle{};
+
+ ret = CreateResourceLimit64From32(system, std::addressof(out_handle));
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
+ SetReg32(system, 1, Convert<uint32_t>(out_handle));
}
-static Result WaitForAddress32(Core::System& system, u32 address, Svc::ArbitrationType arb_type,
- s32 value, u32 timeout_ns_low, u32 timeout_ns_high) {
- const auto timeout = static_cast<s64>(timeout_ns_low | (u64{timeout_ns_high} << 32));
- return WaitForAddress(system, address, arb_type, value, timeout);
+static void SvcWrap_SetResourceLimitLimitValue64From32(Core::System& system) {
+ Result ret{};
+
+ Handle resource_limit_handle{};
+ LimitableResource which{};
+ int64_t limit_value{};
+
+ resource_limit_handle = Convert<Handle>(GetReg32(system, 0));
+ which = Convert<LimitableResource>(GetReg32(system, 1));
+ std::array<uint32_t, 2> limit_value_gather{};
+ limit_value_gather[0] = GetReg32(system, 2);
+ limit_value_gather[1] = GetReg32(system, 3);
+ limit_value = Convert<int64_t>(limit_value_gather);
+
+ ret = SetResourceLimitLimitValue64From32(system, resource_limit_handle, which, limit_value);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-// Signals to an address (via Address Arbiter)
-static Result SignalToAddress(Core::System& system, VAddr address, Svc::SignalType signal_type,
- s32 value, s32 count) {
- LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, signal_type=0x{:X}, value=0x{:X}, count=0x{:X}",
- address, signal_type, value, count);
+static void SvcWrap_MapInsecureMemory64From32(Core::System& system) {
+ Result ret{};
- // Validate input.
- if (IsKernelAddress(address)) {
- LOG_ERROR(Kernel_SVC, "Attempting to signal to a kernel address (address={:08X})", address);
- return ResultInvalidCurrentMemory;
- }
- if (!Common::IsAligned(address, sizeof(s32))) {
- LOG_ERROR(Kernel_SVC, "Signaled address must be 4 byte aligned (address={:08X})", address);
- return ResultInvalidAddress;
- }
- if (!IsValidSignalType(signal_type)) {
- LOG_ERROR(Kernel_SVC, "Invalid signal type specified (type={})", signal_type);
- return ResultInvalidEnumValue;
- }
+ uint32_t address{};
+ uint32_t size{};
+
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
- return system.Kernel().CurrentProcess()->SignalAddressArbiter(address, signal_type, value,
- count);
+ ret = MapInsecureMemory64From32(system, address, size);
+
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static void SynchronizePreemptionState(Core::System& system) {
- auto& kernel = system.Kernel();
+static void SvcWrap_UnmapInsecureMemory64From32(Core::System& system) {
+ Result ret{};
- // Lock the scheduler.
- KScopedSchedulerLock sl{kernel};
+ uint32_t address{};
+ uint32_t size{};
- // If the current thread is pinned, unpin it.
- KProcess* cur_process = system.Kernel().CurrentProcess();
- const auto core_id = GetCurrentCoreId(kernel);
+ address = Convert<uint32_t>(GetReg32(system, 0));
+ size = Convert<uint32_t>(GetReg32(system, 1));
- if (cur_process->GetPinnedThread(core_id) == GetCurrentThreadPointer(kernel)) {
- // Clear the current thread's interrupt flag.
- GetCurrentThread(kernel).ClearInterruptFlag();
+ ret = UnmapInsecureMemory64From32(system, address, size);
- // Unpin the current thread.
- cur_process->UnpinCurrentThread(core_id);
- }
+ SetReg32(system, 0, Convert<uint32_t>(ret));
}
-static Result SignalToAddress32(Core::System& system, u32 address, Svc::SignalType signal_type,
- s32 value, s32 count) {
- return SignalToAddress(system, address, signal_type, value, count);
+static void SvcWrap_SetHeapSize64(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_address{};
+ uint64_t size{};
+
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = SetHeapSize64(system, std::addressof(out_address), size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_address));
}
-static void KernelDebug([[maybe_unused]] Core::System& system,
- [[maybe_unused]] u32 kernel_debug_type, [[maybe_unused]] u64 param1,
- [[maybe_unused]] u64 param2, [[maybe_unused]] u64 param3) {
- // Intentionally do nothing, as this does nothing in released kernel binaries.
+static void SvcWrap_SetMemoryPermission64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission perm{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+ perm = Convert<MemoryPermission>(GetReg64(system, 2));
+
+ ret = SetMemoryPermission64(system, address, size, perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static void ChangeKernelTraceState([[maybe_unused]] Core::System& system,
- [[maybe_unused]] u32 trace_state) {
- // Intentionally do nothing, as this does nothing in released kernel binaries.
+static void SvcWrap_SetMemoryAttribute64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+ uint32_t mask{};
+ uint32_t attr{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+ mask = Convert<uint32_t>(GetReg64(system, 2));
+ attr = Convert<uint32_t>(GetReg64(system, 3));
+
+ ret = SetMemoryAttribute64(system, address, size, mask, attr);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-/// This returns the total CPU ticks elapsed since the CPU was powered-on
-static u64 GetSystemTick(Core::System& system) {
- LOG_TRACE(Kernel_SVC, "called");
+static void SvcWrap_MapMemory64(Core::System& system) {
+ Result ret{};
- auto& core_timing = system.CoreTiming();
+ uint64_t dst_address{};
+ uint64_t src_address{};
+ uint64_t size{};
- // Returns the value of cntpct_el0 (https://switchbrew.org/wiki/SVC#svcGetSystemTick)
- const u64 result{core_timing.GetClockTicks()};
+ dst_address = Convert<uint64_t>(GetReg64(system, 0));
+ src_address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
- if (!system.Kernel().IsMulticore()) {
- core_timing.AddTicks(400U);
- }
+ ret = MapMemory64(system, dst_address, src_address, size);
- return result;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static void GetSystemTick32(Core::System& system, u32* time_low, u32* time_high) {
- const auto time = GetSystemTick(system);
- *time_low = static_cast<u32>(time);
- *time_high = static_cast<u32>(time >> 32);
+static void SvcWrap_UnmapMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t dst_address{};
+ uint64_t src_address{};
+ uint64_t size{};
+
+ dst_address = Convert<uint64_t>(GetReg64(system, 0));
+ src_address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = UnmapMemory64(system, dst_address, src_address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-/// Close a handle
-static Result CloseHandle(Core::System& system, Handle handle) {
- LOG_TRACE(Kernel_SVC, "Closing handle 0x{:08X}", handle);
+static void SvcWrap_QueryMemory64(Core::System& system) {
+ Result ret{};
- // Remove the handle.
- R_UNLESS(system.Kernel().CurrentProcess()->GetHandleTable().Remove(handle),
- ResultInvalidHandle);
+ PageInfo out_page_info{};
+ uint64_t out_memory_info{};
+ uint64_t address{};
- return ResultSuccess;
+ out_memory_info = Convert<uint64_t>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = QueryMemory64(system, out_memory_info, std::addressof(out_page_info), address);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_page_info));
}
-static Result CloseHandle32(Core::System& system, Handle handle) {
- return CloseHandle(system, handle);
+static void SvcWrap_ExitProcess64(Core::System& system) {
+ ExitProcess64(system);
}
-/// Clears the signaled state of an event or process.
-static Result ResetSignal(Core::System& system, Handle handle) {
- LOG_DEBUG(Kernel_SVC, "called handle 0x{:08X}", handle);
+static void SvcWrap_CreateThread64(Core::System& system) {
+ Result ret{};
- // Get the current handle table.
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
+ Handle out_handle{};
+ uint64_t func{};
+ uint64_t arg{};
+ uint64_t stack_bottom{};
+ int32_t priority{};
+ int32_t core_id{};
- // Try to reset as readable event.
- {
- KScopedAutoObject readable_event = handle_table.GetObject<KReadableEvent>(handle);
- if (readable_event.IsNotNull()) {
- return readable_event->Reset();
- }
- }
+ func = Convert<uint64_t>(GetReg64(system, 1));
+ arg = Convert<uint64_t>(GetReg64(system, 2));
+ stack_bottom = Convert<uint64_t>(GetReg64(system, 3));
+ priority = Convert<int32_t>(GetReg64(system, 4));
+ core_id = Convert<int32_t>(GetReg64(system, 5));
- // Try to reset as process.
- {
- KScopedAutoObject process = handle_table.GetObject<KProcess>(handle);
- if (process.IsNotNull()) {
- return process->Reset();
- }
- }
+ ret = CreateThread64(system, std::addressof(out_handle), func, arg, stack_bottom, priority, core_id);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_StartThread64(Core::System& system) {
+ Result ret{};
+
+ Handle thread_handle{};
- LOG_ERROR(Kernel_SVC, "invalid handle (0x{:08X})", handle);
+ thread_handle = Convert<Handle>(GetReg64(system, 0));
- return ResultInvalidHandle;
+ ret = StartThread64(system, thread_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result ResetSignal32(Core::System& system, Handle handle) {
- return ResetSignal(system, handle);
+static void SvcWrap_ExitThread64(Core::System& system) {
+ ExitThread64(system);
}
-namespace {
+static void SvcWrap_SleepThread64(Core::System& system) {
+ int64_t ns{};
-constexpr bool IsValidTransferMemoryPermission(MemoryPermission perm) {
- switch (perm) {
- case MemoryPermission::None:
- case MemoryPermission::Read:
- case MemoryPermission::ReadWrite:
- return true;
- default:
- return false;
- }
+ ns = Convert<int64_t>(GetReg64(system, 0));
+
+ SleepThread64(system, ns);
}
-} // Anonymous namespace
+static void SvcWrap_GetThreadPriority64(Core::System& system) {
+ Result ret{};
-/// Creates a TransferMemory object
-static Result CreateTransferMemory(Core::System& system, Handle* out, VAddr address, u64 size,
- MemoryPermission map_perm) {
- auto& kernel = system.Kernel();
+ int32_t out_priority{};
+ Handle thread_handle{};
+
+ thread_handle = Convert<Handle>(GetReg64(system, 1));
+
+ ret = GetThreadPriority64(system, std::addressof(out_priority), thread_handle);
- // Validate the size.
- R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
- R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_priority));
+}
+
+static void SvcWrap_SetThreadPriority64(Core::System& system) {
+ Result ret{};
+
+ Handle thread_handle{};
+ int32_t priority{};
+
+ thread_handle = Convert<Handle>(GetReg64(system, 0));
+ priority = Convert<int32_t>(GetReg64(system, 1));
- // Validate the permissions.
- R_UNLESS(IsValidTransferMemoryPermission(map_perm), ResultInvalidNewMemoryPermission);
+ ret = SetThreadPriority64(system, thread_handle, priority);
- // Get the current process and handle table.
- auto& process = *kernel.CurrentProcess();
- auto& handle_table = process.GetHandleTable();
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_GetThreadCoreMask64(Core::System& system) {
+ Result ret{};
- // Reserve a new transfer memory from the process resource limit.
- KScopedResourceReservation trmem_reservation(kernel.CurrentProcess(),
- LimitableResource::TransferMemoryCountMax);
- R_UNLESS(trmem_reservation.Succeeded(), ResultLimitReached);
+ int32_t out_core_id{};
+ uint64_t out_affinity_mask{};
+ Handle thread_handle{};
- // Create the transfer memory.
- KTransferMemory* trmem = KTransferMemory::Create(kernel);
- R_UNLESS(trmem != nullptr, ResultOutOfResource);
+ thread_handle = Convert<Handle>(GetReg64(system, 2));
- // Ensure the only reference is in the handle table when we're done.
- SCOPE_EXIT({ trmem->Close(); });
+ ret = GetThreadCoreMask64(system, std::addressof(out_core_id), std::addressof(out_affinity_mask), thread_handle);
- // Ensure that the region is in range.
- R_UNLESS(process.PageTable().Contains(address, size), ResultInvalidCurrentMemory);
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_core_id));
+ SetReg64(system, 2, Convert<uint64_t>(out_affinity_mask));
+}
- // Initialize the transfer memory.
- R_TRY(trmem->Initialize(address, size, map_perm));
+static void SvcWrap_SetThreadCoreMask64(Core::System& system) {
+ Result ret{};
- // Commit the reservation.
- trmem_reservation.Commit();
+ Handle thread_handle{};
+ int32_t core_id{};
+ uint64_t affinity_mask{};
- // Register the transfer memory.
- KTransferMemory::Register(kernel, trmem);
+ thread_handle = Convert<Handle>(GetReg64(system, 0));
+ core_id = Convert<int32_t>(GetReg64(system, 1));
+ affinity_mask = Convert<uint64_t>(GetReg64(system, 2));
- // Add the transfer memory to the handle table.
- R_TRY(handle_table.Add(out, trmem));
+ ret = SetThreadCoreMask64(system, thread_handle, core_id, affinity_mask);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result CreateTransferMemory32(Core::System& system, Handle* out, u32 address, u32 size,
- MemoryPermission map_perm) {
- return CreateTransferMemory(system, out, address, size, map_perm);
+static void SvcWrap_GetCurrentProcessorNumber64(Core::System& system) {
+ int32_t ret{};
+
+ ret = GetCurrentProcessorNumber64(system);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result GetThreadCoreMask(Core::System& system, Handle thread_handle, s32* out_core_id,
- u64* out_affinity_mask) {
- LOG_TRACE(Kernel_SVC, "called, handle=0x{:08X}", thread_handle);
+static void SvcWrap_SignalEvent64(Core::System& system) {
+ Result ret{};
+
+ Handle event_handle{};
- // Get the thread from its handle.
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(thread_handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ event_handle = Convert<Handle>(GetReg64(system, 0));
- // Get the core mask.
- R_TRY(thread->GetCoreMask(out_core_id, out_affinity_mask));
+ ret = SignalEvent64(system, event_handle);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result GetThreadCoreMask32(Core::System& system, Handle thread_handle, s32* out_core_id,
- u32* out_affinity_mask_low, u32* out_affinity_mask_high) {
- u64 out_affinity_mask{};
- const auto result = GetThreadCoreMask(system, thread_handle, out_core_id, &out_affinity_mask);
- *out_affinity_mask_high = static_cast<u32>(out_affinity_mask >> 32);
- *out_affinity_mask_low = static_cast<u32>(out_affinity_mask);
- return result;
+static void SvcWrap_ClearEvent64(Core::System& system) {
+ Result ret{};
+
+ Handle event_handle{};
+
+ event_handle = Convert<Handle>(GetReg64(system, 0));
+
+ ret = ClearEvent64(system, event_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result SetThreadCoreMask(Core::System& system, Handle thread_handle, s32 core_id,
- u64 affinity_mask) {
- // Determine the core id/affinity mask.
- if (core_id == IdealCoreUseProcessValue) {
- core_id = system.Kernel().CurrentProcess()->GetIdealCoreId();
- affinity_mask = (1ULL << core_id);
- } else {
- // Validate the affinity mask.
- const u64 process_core_mask = system.Kernel().CurrentProcess()->GetCoreMask();
- R_UNLESS((affinity_mask | process_core_mask) == process_core_mask, ResultInvalidCoreId);
- R_UNLESS(affinity_mask != 0, ResultInvalidCombination);
-
- // Validate the core id.
- if (IsValidVirtualCoreId(core_id)) {
- R_UNLESS(((1ULL << core_id) & affinity_mask) != 0, ResultInvalidCombination);
- } else {
- R_UNLESS(core_id == IdealCoreNoUpdate || core_id == IdealCoreDontCare,
- ResultInvalidCoreId);
- }
- }
+static void SvcWrap_MapSharedMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle shmem_handle{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission map_perm{};
- // Get the thread from its handle.
- KScopedAutoObject thread =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(thread_handle);
- R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+ shmem_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+ map_perm = Convert<MemoryPermission>(GetReg64(system, 3));
- // Set the core mask.
- R_TRY(thread->SetCoreMask(core_id, affinity_mask));
+ ret = MapSharedMemory64(system, shmem_handle, address, size, map_perm);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result SetThreadCoreMask32(Core::System& system, Handle thread_handle, s32 core_id,
- u32 affinity_mask_low, u32 affinity_mask_high) {
- const auto affinity_mask = u64{affinity_mask_low} | (u64{affinity_mask_high} << 32);
- return SetThreadCoreMask(system, thread_handle, core_id, affinity_mask);
+static void SvcWrap_UnmapSharedMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle shmem_handle{};
+ uint64_t address{};
+ uint64_t size{};
+
+ shmem_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = UnmapSharedMemory64(system, shmem_handle, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result SignalEvent(Core::System& system, Handle event_handle) {
- LOG_DEBUG(Kernel_SVC, "called, event_handle=0x{:08X}", event_handle);
+static void SvcWrap_CreateTransferMemory64(Core::System& system) {
+ Result ret{};
- // Get the current handle table.
- const KHandleTable& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
+ Handle out_handle{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission map_perm{};
- // Get the event.
- KScopedAutoObject event = handle_table.GetObject<KEvent>(event_handle);
- R_UNLESS(event.IsNotNull(), ResultInvalidHandle);
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+ map_perm = Convert<MemoryPermission>(GetReg64(system, 3));
- return event->Signal();
+ ret = CreateTransferMemory64(system, std::addressof(out_handle), address, size, map_perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
}
-static Result SignalEvent32(Core::System& system, Handle event_handle) {
- return SignalEvent(system, event_handle);
+static void SvcWrap_CloseHandle64(Core::System& system) {
+ Result ret{};
+
+ Handle handle{};
+
+ handle = Convert<Handle>(GetReg64(system, 0));
+
+ ret = CloseHandle64(system, handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result ClearEvent(Core::System& system, Handle event_handle) {
- LOG_TRACE(Kernel_SVC, "called, event_handle=0x{:08X}", event_handle);
+static void SvcWrap_ResetSignal64(Core::System& system) {
+ Result ret{};
- // Get the current handle table.
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
+ Handle handle{};
- // Try to clear the writable event.
- {
- KScopedAutoObject event = handle_table.GetObject<KEvent>(event_handle);
- if (event.IsNotNull()) {
- return event->Clear();
- }
- }
+ handle = Convert<Handle>(GetReg64(system, 0));
- // Try to clear the readable event.
- {
- KScopedAutoObject readable_event = handle_table.GetObject<KReadableEvent>(event_handle);
- if (readable_event.IsNotNull()) {
- return readable_event->Clear();
- }
- }
+ ret = ResetSignal64(system, handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
- LOG_ERROR(Kernel_SVC, "Event handle does not exist, event_handle=0x{:08X}", event_handle);
+static void SvcWrap_WaitSynchronization64(Core::System& system) {
+ Result ret{};
- return ResultInvalidHandle;
+ int32_t out_index{};
+ uint64_t handles{};
+ int32_t num_handles{};
+ int64_t timeout_ns{};
+
+ handles = Convert<uint64_t>(GetReg64(system, 1));
+ num_handles = Convert<int32_t>(GetReg64(system, 2));
+ timeout_ns = Convert<int64_t>(GetReg64(system, 3));
+
+ ret = WaitSynchronization64(system, std::addressof(out_index), handles, num_handles, timeout_ns);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_index));
}
-static Result ClearEvent32(Core::System& system, Handle event_handle) {
- return ClearEvent(system, event_handle);
+static void SvcWrap_CancelSynchronization64(Core::System& system) {
+ Result ret{};
+
+ Handle handle{};
+
+ handle = Convert<Handle>(GetReg64(system, 0));
+
+ ret = CancelSynchronization64(system, handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result CreateEvent(Core::System& system, Handle* out_write, Handle* out_read) {
- LOG_DEBUG(Kernel_SVC, "called");
+static void SvcWrap_ArbitrateLock64(Core::System& system) {
+ Result ret{};
- // Get the kernel reference and handle table.
- auto& kernel = system.Kernel();
- auto& handle_table = kernel.CurrentProcess()->GetHandleTable();
+ Handle thread_handle{};
+ uint64_t address{};
+ uint32_t tag{};
- // Reserve a new event from the process resource limit
- KScopedResourceReservation event_reservation(kernel.CurrentProcess(),
- LimitableResource::EventCountMax);
- R_UNLESS(event_reservation.Succeeded(), ResultLimitReached);
+ thread_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ tag = Convert<uint32_t>(GetReg64(system, 2));
- // Create a new event.
- KEvent* event = KEvent::Create(kernel);
- R_UNLESS(event != nullptr, ResultOutOfResource);
+ ret = ArbitrateLock64(system, thread_handle, address, tag);
- // Initialize the event.
- event->Initialize(kernel.CurrentProcess());
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_ArbitrateUnlock64(Core::System& system) {
+ Result ret{};
- // Commit the thread reservation.
- event_reservation.Commit();
+ uint64_t address{};
- // Ensure that we clean up the event (and its only references are handle table) on function end.
- SCOPE_EXIT({
- event->GetReadableEvent().Close();
- event->Close();
- });
+ address = Convert<uint64_t>(GetReg64(system, 0));
- // Register the event.
- KEvent::Register(kernel, event);
+ ret = ArbitrateUnlock64(system, address);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
- // Add the event to the handle table.
- R_TRY(handle_table.Add(out_write, event));
+static void SvcWrap_WaitProcessWideKeyAtomic64(Core::System& system) {
+ Result ret{};
- // Ensure that we maintaing a clean handle state on exit.
- auto handle_guard = SCOPE_GUARD({ handle_table.Remove(*out_write); });
+ uint64_t address{};
+ uint64_t cv_key{};
+ uint32_t tag{};
+ int64_t timeout_ns{};
- // Add the readable event to the handle table.
- R_TRY(handle_table.Add(out_read, std::addressof(event->GetReadableEvent())));
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ cv_key = Convert<uint64_t>(GetReg64(system, 1));
+ tag = Convert<uint32_t>(GetReg64(system, 2));
+ timeout_ns = Convert<int64_t>(GetReg64(system, 3));
- // We succeeded.
- handle_guard.Cancel();
- return ResultSuccess;
+ ret = WaitProcessWideKeyAtomic64(system, address, cv_key, tag, timeout_ns);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result CreateEvent32(Core::System& system, Handle* out_write, Handle* out_read) {
- return CreateEvent(system, out_write, out_read);
+static void SvcWrap_SignalProcessWideKey64(Core::System& system) {
+ uint64_t cv_key{};
+ int32_t count{};
+
+ cv_key = Convert<uint64_t>(GetReg64(system, 0));
+ count = Convert<int32_t>(GetReg64(system, 1));
+
+ SignalProcessWideKey64(system, cv_key, count);
}
-static Result GetProcessInfo(Core::System& system, u64* out, Handle process_handle, u32 type) {
- LOG_DEBUG(Kernel_SVC, "called, handle=0x{:08X}, type=0x{:X}", process_handle, type);
+static void SvcWrap_GetSystemTick64(Core::System& system) {
+ int64_t ret{};
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
- KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
- if (process.IsNull()) {
- LOG_ERROR(Kernel_SVC, "Process handle does not exist, process_handle=0x{:08X}",
- process_handle);
- return ResultInvalidHandle;
- }
+ ret = GetSystemTick64(system);
- const auto info_type = static_cast<ProcessInfoType>(type);
- if (info_type != ProcessInfoType::ProcessState) {
- LOG_ERROR(Kernel_SVC, "Expected info_type to be ProcessState but got {} instead", type);
- return ResultInvalidEnumValue;
- }
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_ConnectToNamedPort64(Core::System& system) {
+ Result ret{};
- *out = static_cast<u64>(process->GetState());
- return ResultSuccess;
+ Handle out_handle{};
+ uint64_t name{};
+
+ name = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = ConnectToNamedPort64(system, std::addressof(out_handle), name);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
}
-static Result CreateResourceLimit(Core::System& system, Handle* out_handle) {
- LOG_DEBUG(Kernel_SVC, "called");
+static void SvcWrap_SendSyncRequest64(Core::System& system) {
+ Result ret{};
- // Create a new resource limit.
- auto& kernel = system.Kernel();
- KResourceLimit* resource_limit = KResourceLimit::Create(kernel);
- R_UNLESS(resource_limit != nullptr, ResultOutOfResource);
+ Handle session_handle{};
- // Ensure we don't leak a reference to the limit.
- SCOPE_EXIT({ resource_limit->Close(); });
+ session_handle = Convert<Handle>(GetReg64(system, 0));
- // Initialize the resource limit.
- resource_limit->Initialize(&system.CoreTiming());
+ ret = SendSyncRequest64(system, session_handle);
- // Register the limit.
- KResourceLimit::Register(kernel, resource_limit);
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_SendSyncRequestWithUserBuffer64(Core::System& system) {
+ Result ret{};
+
+ uint64_t message_buffer{};
+ uint64_t message_buffer_size{};
+ Handle session_handle{};
+
+ message_buffer = Convert<uint64_t>(GetReg64(system, 0));
+ message_buffer_size = Convert<uint64_t>(GetReg64(system, 1));
+ session_handle = Convert<Handle>(GetReg64(system, 2));
- // Add the limit to the handle table.
- R_TRY(kernel.CurrentProcess()->GetHandleTable().Add(out_handle, resource_limit));
+ ret = SendSyncRequestWithUserBuffer64(system, message_buffer, message_buffer_size, session_handle);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result GetResourceLimitLimitValue(Core::System& system, u64* out_limit_value,
- Handle resource_limit_handle, LimitableResource which) {
- LOG_DEBUG(Kernel_SVC, "called, resource_limit_handle={:08X}, which={}", resource_limit_handle,
- which);
+static void SvcWrap_SendAsyncRequestWithUserBuffer64(Core::System& system) {
+ Result ret{};
- // Validate the resource.
- R_UNLESS(IsValidResourceType(which), ResultInvalidEnumValue);
+ Handle out_event_handle{};
+ uint64_t message_buffer{};
+ uint64_t message_buffer_size{};
+ Handle session_handle{};
- // Get the resource limit.
- auto& kernel = system.Kernel();
- KScopedAutoObject resource_limit =
- kernel.CurrentProcess()->GetHandleTable().GetObject<KResourceLimit>(resource_limit_handle);
- R_UNLESS(resource_limit.IsNotNull(), ResultInvalidHandle);
+ message_buffer = Convert<uint64_t>(GetReg64(system, 1));
+ message_buffer_size = Convert<uint64_t>(GetReg64(system, 2));
+ session_handle = Convert<Handle>(GetReg64(system, 3));
- // Get the limit value.
- *out_limit_value = resource_limit->GetLimitValue(which);
+ ret = SendAsyncRequestWithUserBuffer64(system, std::addressof(out_event_handle), message_buffer, message_buffer_size, session_handle);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_event_handle));
}
-static Result GetResourceLimitCurrentValue(Core::System& system, u64* out_current_value,
- Handle resource_limit_handle, LimitableResource which) {
- LOG_DEBUG(Kernel_SVC, "called, resource_limit_handle={:08X}, which={}", resource_limit_handle,
- which);
+static void SvcWrap_GetProcessId64(Core::System& system) {
+ Result ret{};
- // Validate the resource.
- R_UNLESS(IsValidResourceType(which), ResultInvalidEnumValue);
+ uint64_t out_process_id{};
+ Handle process_handle{};
- // Get the resource limit.
- auto& kernel = system.Kernel();
- KScopedAutoObject resource_limit =
- kernel.CurrentProcess()->GetHandleTable().GetObject<KResourceLimit>(resource_limit_handle);
- R_UNLESS(resource_limit.IsNotNull(), ResultInvalidHandle);
+ process_handle = Convert<Handle>(GetReg64(system, 1));
- // Get the current value.
- *out_current_value = resource_limit->GetCurrentValue(which);
+ ret = GetProcessId64(system, std::addressof(out_process_id), process_handle);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_process_id));
}
-static Result SetResourceLimitLimitValue(Core::System& system, Handle resource_limit_handle,
- LimitableResource which, u64 limit_value) {
- LOG_DEBUG(Kernel_SVC, "called, resource_limit_handle={:08X}, which={}, limit_value={}",
- resource_limit_handle, which, limit_value);
+static void SvcWrap_GetThreadId64(Core::System& system) {
+ Result ret{};
- // Validate the resource.
- R_UNLESS(IsValidResourceType(which), ResultInvalidEnumValue);
+ uint64_t out_thread_id{};
+ Handle thread_handle{};
- // Get the resource limit.
- auto& kernel = system.Kernel();
- KScopedAutoObject resource_limit =
- kernel.CurrentProcess()->GetHandleTable().GetObject<KResourceLimit>(resource_limit_handle);
- R_UNLESS(resource_limit.IsNotNull(), ResultInvalidHandle);
+ thread_handle = Convert<Handle>(GetReg64(system, 1));
- // Set the limit value.
- R_TRY(resource_limit->SetLimitValue(which, limit_value));
+ ret = GetThreadId64(system, std::addressof(out_thread_id), thread_handle);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_thread_id));
}
-static Result GetProcessList(Core::System& system, u32* out_num_processes, VAddr out_process_ids,
- u32 out_process_ids_size) {
- LOG_DEBUG(Kernel_SVC, "called. out_process_ids=0x{:016X}, out_process_ids_size={}",
- out_process_ids, out_process_ids_size);
+static void SvcWrap_Break64(Core::System& system) {
+ BreakReason break_reason{};
+ uint64_t arg{};
+ uint64_t size{};
- // If the supplied size is negative or greater than INT32_MAX / sizeof(u64), bail.
- if ((out_process_ids_size & 0xF0000000) != 0) {
- LOG_ERROR(Kernel_SVC,
- "Supplied size outside [0, 0x0FFFFFFF] range. out_process_ids_size={}",
- out_process_ids_size);
- return ResultOutOfRange;
- }
+ break_reason = Convert<BreakReason>(GetReg64(system, 0));
+ arg = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
- const auto& kernel = system.Kernel();
- const auto total_copy_size = out_process_ids_size * sizeof(u64);
+ Break64(system, break_reason, arg, size);
+}
- if (out_process_ids_size > 0 && !kernel.CurrentProcess()->PageTable().IsInsideAddressSpace(
- out_process_ids, total_copy_size)) {
- LOG_ERROR(Kernel_SVC, "Address range outside address space. begin=0x{:016X}, end=0x{:016X}",
- out_process_ids, out_process_ids + total_copy_size);
- return ResultInvalidCurrentMemory;
- }
+static void SvcWrap_OutputDebugString64(Core::System& system) {
+ Result ret{};
- auto& memory = system.Memory();
- const auto& process_list = kernel.GetProcessList();
- const auto num_processes = process_list.size();
- const auto copy_amount = std::min(std::size_t{out_process_ids_size}, num_processes);
+ uint64_t debug_str{};
+ uint64_t len{};
- for (std::size_t i = 0; i < copy_amount; ++i) {
- memory.Write64(out_process_ids, process_list[i]->GetProcessID());
- out_process_ids += sizeof(u64);
- }
+ debug_str = Convert<uint64_t>(GetReg64(system, 0));
+ len = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = OutputDebugString64(system, debug_str, len);
- *out_num_processes = static_cast<u32>(num_processes);
- return ResultSuccess;
+ SetReg64(system, 0, Convert<uint64_t>(ret));
}
-static Result GetThreadList(Core::System& system, u32* out_num_threads, VAddr out_thread_ids,
- u32 out_thread_ids_size, Handle debug_handle) {
- // TODO: Handle this case when debug events are supported.
- UNIMPLEMENTED_IF(debug_handle != InvalidHandle);
+static void SvcWrap_ReturnFromException64(Core::System& system) {
+ Result result{};
- LOG_DEBUG(Kernel_SVC, "called. out_thread_ids=0x{:016X}, out_thread_ids_size={}",
- out_thread_ids, out_thread_ids_size);
+ result = Convert<Result>(GetReg64(system, 0));
- // If the size is negative or larger than INT32_MAX / sizeof(u64)
- if ((out_thread_ids_size & 0xF0000000) != 0) {
- LOG_ERROR(Kernel_SVC, "Supplied size outside [0, 0x0FFFFFFF] range. size={}",
- out_thread_ids_size);
- return ResultOutOfRange;
- }
+ ReturnFromException64(system, result);
+}
- auto* const current_process = system.Kernel().CurrentProcess();
- const auto total_copy_size = out_thread_ids_size * sizeof(u64);
+static void SvcWrap_GetInfo64(Core::System& system) {
+ Result ret{};
- if (out_thread_ids_size > 0 &&
- !current_process->PageTable().IsInsideAddressSpace(out_thread_ids, total_copy_size)) {
- LOG_ERROR(Kernel_SVC, "Address range outside address space. begin=0x{:016X}, end=0x{:016X}",
- out_thread_ids, out_thread_ids + total_copy_size);
- return ResultInvalidCurrentMemory;
- }
+ uint64_t out{};
+ InfoType info_type{};
+ Handle handle{};
+ uint64_t info_subtype{};
- auto& memory = system.Memory();
- const auto& thread_list = current_process->GetThreadList();
- const auto num_threads = thread_list.size();
- const auto copy_amount = std::min(std::size_t{out_thread_ids_size}, num_threads);
+ info_type = Convert<InfoType>(GetReg64(system, 1));
+ handle = Convert<Handle>(GetReg64(system, 2));
+ info_subtype = Convert<uint64_t>(GetReg64(system, 3));
- auto list_iter = thread_list.cbegin();
- for (std::size_t i = 0; i < copy_amount; ++i, ++list_iter) {
- memory.Write64(out_thread_ids, (*list_iter)->GetThreadID());
- out_thread_ids += sizeof(u64);
- }
+ ret = GetInfo64(system, std::addressof(out), info_type, handle, info_subtype);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out));
+}
+
+static void SvcWrap_FlushEntireDataCache64(Core::System& system) {
+ FlushEntireDataCache64(system);
+}
+
+static void SvcWrap_FlushDataCache64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = FlushDataCache64(system, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_MapPhysicalMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = MapPhysicalMemory64(system, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapPhysicalMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = UnmapPhysicalMemory64(system, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_GetDebugFutureThreadInfo64(Core::System& system) {
+ Result ret{};
+
+ lp64::LastThreadContext out_context{};
+ uint64_t out_thread_id{};
+ Handle debug_handle{};
+ int64_t ns{};
+
+ debug_handle = Convert<Handle>(GetReg64(system, 2));
+ ns = Convert<int64_t>(GetReg64(system, 3));
+
+ ret = GetDebugFutureThreadInfo64(system, std::addressof(out_context), std::addressof(out_thread_id), debug_handle, ns);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ auto out_context_scatter = Convert<std::array<uint64_t, 4>>(out_context);
+ SetReg64(system, 1, out_context_scatter[0]);
+ SetReg64(system, 2, out_context_scatter[1]);
+ SetReg64(system, 3, out_context_scatter[2]);
+ SetReg64(system, 4, out_context_scatter[3]);
+ SetReg64(system, 5, Convert<uint64_t>(out_thread_id));
+}
+
+static void SvcWrap_GetLastThreadInfo64(Core::System& system) {
+ Result ret{};
+
+ lp64::LastThreadContext out_context{};
+ uint64_t out_tls_address{};
+ uint32_t out_flags{};
+
+ ret = GetLastThreadInfo64(system, std::addressof(out_context), std::addressof(out_tls_address), std::addressof(out_flags));
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ auto out_context_scatter = Convert<std::array<uint64_t, 4>>(out_context);
+ SetReg64(system, 1, out_context_scatter[0]);
+ SetReg64(system, 2, out_context_scatter[1]);
+ SetReg64(system, 3, out_context_scatter[2]);
+ SetReg64(system, 4, out_context_scatter[3]);
+ SetReg64(system, 5, Convert<uint64_t>(out_tls_address));
+ SetReg64(system, 6, Convert<uint64_t>(out_flags));
+}
+
+static void SvcWrap_GetResourceLimitLimitValue64(Core::System& system) {
+ Result ret{};
+
+ int64_t out_limit_value{};
+ Handle resource_limit_handle{};
+ LimitableResource which{};
+
+ resource_limit_handle = Convert<Handle>(GetReg64(system, 1));
+ which = Convert<LimitableResource>(GetReg64(system, 2));
+
+ ret = GetResourceLimitLimitValue64(system, std::addressof(out_limit_value), resource_limit_handle, which);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_limit_value));
+}
+
+static void SvcWrap_GetResourceLimitCurrentValue64(Core::System& system) {
+ Result ret{};
+
+ int64_t out_current_value{};
+ Handle resource_limit_handle{};
+ LimitableResource which{};
+
+ resource_limit_handle = Convert<Handle>(GetReg64(system, 1));
+ which = Convert<LimitableResource>(GetReg64(system, 2));
+
+ ret = GetResourceLimitCurrentValue64(system, std::addressof(out_current_value), resource_limit_handle, which);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_current_value));
+}
+
+static void SvcWrap_SetThreadActivity64(Core::System& system) {
+ Result ret{};
+
+ Handle thread_handle{};
+ ThreadActivity thread_activity{};
+
+ thread_handle = Convert<Handle>(GetReg64(system, 0));
+ thread_activity = Convert<ThreadActivity>(GetReg64(system, 1));
+
+ ret = SetThreadActivity64(system, thread_handle, thread_activity);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_GetThreadContext364(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_context{};
+ Handle thread_handle{};
+
+ out_context = Convert<uint64_t>(GetReg64(system, 0));
+ thread_handle = Convert<Handle>(GetReg64(system, 1));
+
+ ret = GetThreadContext364(system, out_context, thread_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_WaitForAddress64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ ArbitrationType arb_type{};
+ int32_t value{};
+ int64_t timeout_ns{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ arb_type = Convert<ArbitrationType>(GetReg64(system, 1));
+ value = Convert<int32_t>(GetReg64(system, 2));
+ timeout_ns = Convert<int64_t>(GetReg64(system, 3));
+
+ ret = WaitForAddress64(system, address, arb_type, value, timeout_ns);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_SignalToAddress64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ SignalType signal_type{};
+ int32_t value{};
+ int32_t count{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ signal_type = Convert<SignalType>(GetReg64(system, 1));
+ value = Convert<int32_t>(GetReg64(system, 2));
+ count = Convert<int32_t>(GetReg64(system, 3));
+
+ ret = SignalToAddress64(system, address, signal_type, value, count);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_SynchronizePreemptionState64(Core::System& system) {
+ SynchronizePreemptionState64(system);
+}
+
+static void SvcWrap_GetResourceLimitPeakValue64(Core::System& system) {
+ Result ret{};
+
+ int64_t out_peak_value{};
+ Handle resource_limit_handle{};
+ LimitableResource which{};
+
+ resource_limit_handle = Convert<Handle>(GetReg64(system, 1));
+ which = Convert<LimitableResource>(GetReg64(system, 2));
+
+ ret = GetResourceLimitPeakValue64(system, std::addressof(out_peak_value), resource_limit_handle, which);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_peak_value));
+}
+
+static void SvcWrap_CreateIoPool64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ IoPoolType which{};
+
+ which = Convert<IoPoolType>(GetReg64(system, 1));
+
+ ret = CreateIoPool64(system, std::addressof(out_handle), which);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_CreateIoRegion64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ Handle io_pool{};
+ uint64_t physical_address{};
+ uint64_t size{};
+ MemoryMapping mapping{};
+ MemoryPermission perm{};
+
+ io_pool = Convert<Handle>(GetReg64(system, 1));
+ physical_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+ mapping = Convert<MemoryMapping>(GetReg64(system, 4));
+ perm = Convert<MemoryPermission>(GetReg64(system, 5));
+
+ ret = CreateIoRegion64(system, std::addressof(out_handle), io_pool, physical_address, size, mapping, perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_KernelDebug64(Core::System& system) {
+ KernelDebugType kern_debug_type{};
+ uint64_t arg0{};
+ uint64_t arg1{};
+ uint64_t arg2{};
+
+ kern_debug_type = Convert<KernelDebugType>(GetReg64(system, 0));
+ arg0 = Convert<uint64_t>(GetReg64(system, 1));
+ arg1 = Convert<uint64_t>(GetReg64(system, 2));
+ arg2 = Convert<uint64_t>(GetReg64(system, 3));
+
+ KernelDebug64(system, kern_debug_type, arg0, arg1, arg2);
+}
+
+static void SvcWrap_ChangeKernelTraceState64(Core::System& system) {
+ KernelTraceState kern_trace_state{};
+
+ kern_trace_state = Convert<KernelTraceState>(GetReg64(system, 0));
+
+ ChangeKernelTraceState64(system, kern_trace_state);
+}
- *out_num_threads = static_cast<u32>(num_threads);
- return ResultSuccess;
-}
-
-static Result FlushProcessDataCache32(Core::System& system, Handle process_handle, u64 address,
- u64 size) {
- // Validate address/size.
- R_UNLESS(size > 0, ResultInvalidSize);
- R_UNLESS(address == static_cast<uintptr_t>(address), ResultInvalidCurrentMemory);
- R_UNLESS(size == static_cast<size_t>(size), ResultInvalidCurrentMemory);
-
- // Get the process from its handle.
- KScopedAutoObject process =
- system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KProcess>(process_handle);
- R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
-
- // Verify the region is within range.
- auto& page_table = process->PageTable();
- R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
-
- // Perform the operation.
- R_RETURN(system.Memory().FlushDataCache(*process, address, size));
-}
-
-namespace {
-struct FunctionDef {
- using Func = void(Core::System&);
-
- u32 id;
- Func* func;
- const char* name;
-};
-} // namespace
-
-static const FunctionDef SVC_Table_32[] = {
- {0x00, nullptr, "Unknown0"},
- {0x01, SvcWrap32<SetHeapSize32>, "SetHeapSize32"},
- {0x02, nullptr, "SetMemoryPermission32"},
- {0x03, SvcWrap32<SetMemoryAttribute32>, "SetMemoryAttribute32"},
- {0x04, SvcWrap32<MapMemory32>, "MapMemory32"},
- {0x05, SvcWrap32<UnmapMemory32>, "UnmapMemory32"},
- {0x06, SvcWrap32<QueryMemory32>, "QueryMemory32"},
- {0x07, SvcWrap32<ExitProcess32>, "ExitProcess32"},
- {0x08, SvcWrap32<CreateThread32>, "CreateThread32"},
- {0x09, SvcWrap32<StartThread32>, "StartThread32"},
- {0x0a, SvcWrap32<ExitThread32>, "ExitThread32"},
- {0x0b, SvcWrap32<SleepThread32>, "SleepThread32"},
- {0x0c, SvcWrap32<GetThreadPriority32>, "GetThreadPriority32"},
- {0x0d, SvcWrap32<SetThreadPriority32>, "SetThreadPriority32"},
- {0x0e, SvcWrap32<GetThreadCoreMask32>, "GetThreadCoreMask32"},
- {0x0f, SvcWrap32<SetThreadCoreMask32>, "SetThreadCoreMask32"},
- {0x10, SvcWrap32<GetCurrentProcessorNumber32>, "GetCurrentProcessorNumber32"},
- {0x11, SvcWrap32<SignalEvent32>, "SignalEvent32"},
- {0x12, SvcWrap32<ClearEvent32>, "ClearEvent32"},
- {0x13, SvcWrap32<MapSharedMemory32>, "MapSharedMemory32"},
- {0x14, SvcWrap32<UnmapSharedMemory32>, "UnmapSharedMemory32"},
- {0x15, SvcWrap32<CreateTransferMemory32>, "CreateTransferMemory32"},
- {0x16, SvcWrap32<CloseHandle32>, "CloseHandle32"},
- {0x17, SvcWrap32<ResetSignal32>, "ResetSignal32"},
- {0x18, SvcWrap32<WaitSynchronization32>, "WaitSynchronization32"},
- {0x19, SvcWrap32<CancelSynchronization32>, "CancelSynchronization32"},
- {0x1a, SvcWrap32<ArbitrateLock32>, "ArbitrateLock32"},
- {0x1b, SvcWrap32<ArbitrateUnlock32>, "ArbitrateUnlock32"},
- {0x1c, SvcWrap32<WaitProcessWideKeyAtomic32>, "WaitProcessWideKeyAtomic32"},
- {0x1d, SvcWrap32<SignalProcessWideKey32>, "SignalProcessWideKey32"},
- {0x1e, SvcWrap32<GetSystemTick32>, "GetSystemTick32"},
- {0x1f, SvcWrap32<ConnectToNamedPort32>, "ConnectToNamedPort32"},
- {0x20, nullptr, "SendSyncRequestLight32"},
- {0x21, SvcWrap32<SendSyncRequest32>, "SendSyncRequest32"},
- {0x22, nullptr, "SendSyncRequestWithUserBuffer32"},
- {0x23, nullptr, "SendAsyncRequestWithUserBuffer32"},
- {0x24, SvcWrap32<GetProcessId32>, "GetProcessId32"},
- {0x25, SvcWrap32<GetThreadId32>, "GetThreadId32"},
- {0x26, SvcWrap32<Break32>, "Break32"},
- {0x27, SvcWrap32<OutputDebugString32>, "OutputDebugString32"},
- {0x28, nullptr, "ReturnFromException32"},
- {0x29, SvcWrap32<GetInfo32>, "GetInfo32"},
- {0x2a, nullptr, "FlushEntireDataCache32"},
- {0x2b, nullptr, "FlushDataCache32"},
- {0x2c, SvcWrap32<MapPhysicalMemory32>, "MapPhysicalMemory32"},
- {0x2d, SvcWrap32<UnmapPhysicalMemory32>, "UnmapPhysicalMemory32"},
- {0x2e, nullptr, "GetDebugFutureThreadInfo32"},
- {0x2f, nullptr, "GetLastThreadInfo32"},
- {0x30, nullptr, "GetResourceLimitLimitValue32"},
- {0x31, nullptr, "GetResourceLimitCurrentValue32"},
- {0x32, SvcWrap32<SetThreadActivity32>, "SetThreadActivity32"},
- {0x33, SvcWrap32<GetThreadContext32>, "GetThreadContext32"},
- {0x34, SvcWrap32<WaitForAddress32>, "WaitForAddress32"},
- {0x35, SvcWrap32<SignalToAddress32>, "SignalToAddress32"},
- {0x36, SvcWrap32<SynchronizePreemptionState>, "SynchronizePreemptionState32"},
- {0x37, nullptr, "GetResourceLimitPeakValue32"},
- {0x38, nullptr, "Unknown38"},
- {0x39, nullptr, "CreateIoPool32"},
- {0x3a, nullptr, "CreateIoRegion32"},
- {0x3b, nullptr, "Unknown3b"},
- {0x3c, nullptr, "KernelDebug32"},
- {0x3d, nullptr, "ChangeKernelTraceState32"},
- {0x3e, nullptr, "Unknown3e"},
- {0x3f, nullptr, "Unknown3f"},
- {0x40, nullptr, "CreateSession32"},
- {0x41, nullptr, "AcceptSession32"},
- {0x42, nullptr, "ReplyAndReceiveLight32"},
- {0x43, nullptr, "ReplyAndReceive32"},
- {0x44, nullptr, "ReplyAndReceiveWithUserBuffer32"},
- {0x45, SvcWrap32<CreateEvent32>, "CreateEvent32"},
- {0x46, nullptr, "MapIoRegion32"},
- {0x47, nullptr, "UnmapIoRegion32"},
- {0x48, nullptr, "MapPhysicalMemoryUnsafe32"},
- {0x49, nullptr, "UnmapPhysicalMemoryUnsafe32"},
- {0x4a, nullptr, "SetUnsafeLimit32"},
- {0x4b, SvcWrap32<CreateCodeMemory32>, "CreateCodeMemory32"},
- {0x4c, SvcWrap32<ControlCodeMemory32>, "ControlCodeMemory32"},
- {0x4d, nullptr, "SleepSystem32"},
- {0x4e, nullptr, "ReadWriteRegister32"},
- {0x4f, nullptr, "SetProcessActivity32"},
- {0x50, nullptr, "CreateSharedMemory32"},
- {0x51, nullptr, "MapTransferMemory32"},
- {0x52, nullptr, "UnmapTransferMemory32"},
- {0x53, nullptr, "CreateInterruptEvent32"},
- {0x54, nullptr, "QueryPhysicalAddress32"},
- {0x55, nullptr, "QueryIoMapping32"},
- {0x56, nullptr, "CreateDeviceAddressSpace32"},
- {0x57, nullptr, "AttachDeviceAddressSpace32"},
- {0x58, nullptr, "DetachDeviceAddressSpace32"},
- {0x59, nullptr, "MapDeviceAddressSpaceByForce32"},
- {0x5a, nullptr, "MapDeviceAddressSpaceAligned32"},
- {0x5b, nullptr, "MapDeviceAddressSpace32"},
- {0x5c, nullptr, "UnmapDeviceAddressSpace32"},
- {0x5d, nullptr, "InvalidateProcessDataCache32"},
- {0x5e, nullptr, "StoreProcessDataCache32"},
- {0x5F, SvcWrap32<FlushProcessDataCache32>, "FlushProcessDataCache32"},
- {0x60, nullptr, "StoreProcessDataCache32"},
- {0x61, nullptr, "BreakDebugProcess32"},
- {0x62, nullptr, "TerminateDebugProcess32"},
- {0x63, nullptr, "GetDebugEvent32"},
- {0x64, nullptr, "ContinueDebugEvent32"},
- {0x65, nullptr, "GetProcessList32"},
- {0x66, nullptr, "GetThreadList"},
- {0x67, nullptr, "GetDebugThreadContext32"},
- {0x68, nullptr, "SetDebugThreadContext32"},
- {0x69, nullptr, "QueryDebugProcessMemory32"},
- {0x6A, nullptr, "ReadDebugProcessMemory32"},
- {0x6B, nullptr, "WriteDebugProcessMemory32"},
- {0x6C, nullptr, "SetHardwareBreakPoint32"},
- {0x6D, nullptr, "GetDebugThreadParam32"},
- {0x6E, nullptr, "Unknown6E"},
- {0x6f, nullptr, "GetSystemInfo32"},
- {0x70, nullptr, "CreatePort32"},
- {0x71, nullptr, "ManageNamedPort32"},
- {0x72, nullptr, "ConnectToPort32"},
- {0x73, nullptr, "SetProcessMemoryPermission32"},
- {0x74, nullptr, "MapProcessMemory32"},
- {0x75, nullptr, "UnmapProcessMemory32"},
- {0x76, nullptr, "QueryProcessMemory32"},
- {0x77, nullptr, "MapProcessCodeMemory32"},
- {0x78, nullptr, "UnmapProcessCodeMemory32"},
- {0x79, nullptr, "CreateProcess32"},
- {0x7A, nullptr, "StartProcess32"},
- {0x7B, nullptr, "TerminateProcess32"},
- {0x7C, nullptr, "GetProcessInfo32"},
- {0x7D, nullptr, "CreateResourceLimit32"},
- {0x7E, nullptr, "SetResourceLimitLimitValue32"},
- {0x7F, nullptr, "CallSecureMonitor32"},
- {0x80, nullptr, "Unknown"},
- {0x81, nullptr, "Unknown"},
- {0x82, nullptr, "Unknown"},
- {0x83, nullptr, "Unknown"},
- {0x84, nullptr, "Unknown"},
- {0x85, nullptr, "Unknown"},
- {0x86, nullptr, "Unknown"},
- {0x87, nullptr, "Unknown"},
- {0x88, nullptr, "Unknown"},
- {0x89, nullptr, "Unknown"},
- {0x8A, nullptr, "Unknown"},
- {0x8B, nullptr, "Unknown"},
- {0x8C, nullptr, "Unknown"},
- {0x8D, nullptr, "Unknown"},
- {0x8E, nullptr, "Unknown"},
- {0x8F, nullptr, "Unknown"},
- {0x90, nullptr, "Unknown"},
- {0x91, nullptr, "Unknown"},
- {0x92, nullptr, "Unknown"},
- {0x93, nullptr, "Unknown"},
- {0x94, nullptr, "Unknown"},
- {0x95, nullptr, "Unknown"},
- {0x96, nullptr, "Unknown"},
- {0x97, nullptr, "Unknown"},
- {0x98, nullptr, "Unknown"},
- {0x99, nullptr, "Unknown"},
- {0x9A, nullptr, "Unknown"},
- {0x9B, nullptr, "Unknown"},
- {0x9C, nullptr, "Unknown"},
- {0x9D, nullptr, "Unknown"},
- {0x9E, nullptr, "Unknown"},
- {0x9F, nullptr, "Unknown"},
- {0xA0, nullptr, "Unknown"},
- {0xA1, nullptr, "Unknown"},
- {0xA2, nullptr, "Unknown"},
- {0xA3, nullptr, "Unknown"},
- {0xA4, nullptr, "Unknown"},
- {0xA5, nullptr, "Unknown"},
- {0xA6, nullptr, "Unknown"},
- {0xA7, nullptr, "Unknown"},
- {0xA8, nullptr, "Unknown"},
- {0xA9, nullptr, "Unknown"},
- {0xAA, nullptr, "Unknown"},
- {0xAB, nullptr, "Unknown"},
- {0xAC, nullptr, "Unknown"},
- {0xAD, nullptr, "Unknown"},
- {0xAE, nullptr, "Unknown"},
- {0xAF, nullptr, "Unknown"},
- {0xB0, nullptr, "Unknown"},
- {0xB1, nullptr, "Unknown"},
- {0xB2, nullptr, "Unknown"},
- {0xB3, nullptr, "Unknown"},
- {0xB4, nullptr, "Unknown"},
- {0xB5, nullptr, "Unknown"},
- {0xB6, nullptr, "Unknown"},
- {0xB7, nullptr, "Unknown"},
- {0xB8, nullptr, "Unknown"},
- {0xB9, nullptr, "Unknown"},
- {0xBA, nullptr, "Unknown"},
- {0xBB, nullptr, "Unknown"},
- {0xBC, nullptr, "Unknown"},
- {0xBD, nullptr, "Unknown"},
- {0xBE, nullptr, "Unknown"},
- {0xBF, nullptr, "Unknown"},
-};
-
-static const FunctionDef SVC_Table_64[] = {
- {0x00, nullptr, "Unknown0"},
- {0x01, SvcWrap64<SetHeapSize>, "SetHeapSize"},
- {0x02, SvcWrap64<SetMemoryPermission>, "SetMemoryPermission"},
- {0x03, SvcWrap64<SetMemoryAttribute>, "SetMemoryAttribute"},
- {0x04, SvcWrap64<MapMemory>, "MapMemory"},
- {0x05, SvcWrap64<UnmapMemory>, "UnmapMemory"},
- {0x06, SvcWrap64<QueryMemory>, "QueryMemory"},
- {0x07, SvcWrap64<ExitProcess>, "ExitProcess"},
- {0x08, SvcWrap64<CreateThread>, "CreateThread"},
- {0x09, SvcWrap64<StartThread>, "StartThread"},
- {0x0A, SvcWrap64<ExitThread>, "ExitThread"},
- {0x0B, SvcWrap64<SleepThread>, "SleepThread"},
- {0x0C, SvcWrap64<GetThreadPriority>, "GetThreadPriority"},
- {0x0D, SvcWrap64<SetThreadPriority>, "SetThreadPriority"},
- {0x0E, SvcWrap64<GetThreadCoreMask>, "GetThreadCoreMask"},
- {0x0F, SvcWrap64<SetThreadCoreMask>, "SetThreadCoreMask"},
- {0x10, SvcWrap64<GetCurrentProcessorNumber>, "GetCurrentProcessorNumber"},
- {0x11, SvcWrap64<SignalEvent>, "SignalEvent"},
- {0x12, SvcWrap64<ClearEvent>, "ClearEvent"},
- {0x13, SvcWrap64<MapSharedMemory>, "MapSharedMemory"},
- {0x14, SvcWrap64<UnmapSharedMemory>, "UnmapSharedMemory"},
- {0x15, SvcWrap64<CreateTransferMemory>, "CreateTransferMemory"},
- {0x16, SvcWrap64<CloseHandle>, "CloseHandle"},
- {0x17, SvcWrap64<ResetSignal>, "ResetSignal"},
- {0x18, SvcWrap64<WaitSynchronization>, "WaitSynchronization"},
- {0x19, SvcWrap64<CancelSynchronization>, "CancelSynchronization"},
- {0x1A, SvcWrap64<ArbitrateLock>, "ArbitrateLock"},
- {0x1B, SvcWrap64<ArbitrateUnlock>, "ArbitrateUnlock"},
- {0x1C, SvcWrap64<WaitProcessWideKeyAtomic>, "WaitProcessWideKeyAtomic"},
- {0x1D, SvcWrap64<SignalProcessWideKey>, "SignalProcessWideKey"},
- {0x1E, SvcWrap64<GetSystemTick>, "GetSystemTick"},
- {0x1F, SvcWrap64<ConnectToNamedPort>, "ConnectToNamedPort"},
- {0x20, nullptr, "SendSyncRequestLight"},
- {0x21, SvcWrap64<SendSyncRequest>, "SendSyncRequest"},
- {0x22, nullptr, "SendSyncRequestWithUserBuffer"},
- {0x23, nullptr, "SendAsyncRequestWithUserBuffer"},
- {0x24, SvcWrap64<GetProcessId>, "GetProcessId"},
- {0x25, SvcWrap64<GetThreadId>, "GetThreadId"},
- {0x26, SvcWrap64<Break>, "Break"},
- {0x27, SvcWrap64<OutputDebugString>, "OutputDebugString"},
- {0x28, nullptr, "ReturnFromException"},
- {0x29, SvcWrap64<GetInfo>, "GetInfo"},
- {0x2A, nullptr, "FlushEntireDataCache"},
- {0x2B, nullptr, "FlushDataCache"},
- {0x2C, SvcWrap64<MapPhysicalMemory>, "MapPhysicalMemory"},
- {0x2D, SvcWrap64<UnmapPhysicalMemory>, "UnmapPhysicalMemory"},
- {0x2E, nullptr, "GetFutureThreadInfo"},
- {0x2F, nullptr, "GetLastThreadInfo"},
- {0x30, SvcWrap64<GetResourceLimitLimitValue>, "GetResourceLimitLimitValue"},
- {0x31, SvcWrap64<GetResourceLimitCurrentValue>, "GetResourceLimitCurrentValue"},
- {0x32, SvcWrap64<SetThreadActivity>, "SetThreadActivity"},
- {0x33, SvcWrap64<GetThreadContext>, "GetThreadContext"},
- {0x34, SvcWrap64<WaitForAddress>, "WaitForAddress"},
- {0x35, SvcWrap64<SignalToAddress>, "SignalToAddress"},
- {0x36, SvcWrap64<SynchronizePreemptionState>, "SynchronizePreemptionState"},
- {0x37, nullptr, "GetResourceLimitPeakValue"},
- {0x38, nullptr, "Unknown38"},
- {0x39, nullptr, "CreateIoPool"},
- {0x3A, nullptr, "CreateIoRegion"},
- {0x3B, nullptr, "Unknown3B"},
- {0x3C, SvcWrap64<KernelDebug>, "KernelDebug"},
- {0x3D, SvcWrap64<ChangeKernelTraceState>, "ChangeKernelTraceState"},
- {0x3E, nullptr, "Unknown3e"},
- {0x3F, nullptr, "Unknown3f"},
- {0x40, SvcWrap64<CreateSession>, "CreateSession"},
- {0x41, nullptr, "AcceptSession"},
- {0x42, nullptr, "ReplyAndReceiveLight"},
- {0x43, SvcWrap64<ReplyAndReceive>, "ReplyAndReceive"},
- {0x44, nullptr, "ReplyAndReceiveWithUserBuffer"},
- {0x45, SvcWrap64<CreateEvent>, "CreateEvent"},
- {0x46, nullptr, "MapIoRegion"},
- {0x47, nullptr, "UnmapIoRegion"},
- {0x48, nullptr, "MapPhysicalMemoryUnsafe"},
- {0x49, nullptr, "UnmapPhysicalMemoryUnsafe"},
- {0x4A, nullptr, "SetUnsafeLimit"},
- {0x4B, SvcWrap64<CreateCodeMemory>, "CreateCodeMemory"},
- {0x4C, SvcWrap64<ControlCodeMemory>, "ControlCodeMemory"},
- {0x4D, nullptr, "SleepSystem"},
- {0x4E, nullptr, "ReadWriteRegister"},
- {0x4F, nullptr, "SetProcessActivity"},
- {0x50, nullptr, "CreateSharedMemory"},
- {0x51, nullptr, "MapTransferMemory"},
- {0x52, nullptr, "UnmapTransferMemory"},
- {0x53, nullptr, "CreateInterruptEvent"},
- {0x54, nullptr, "QueryPhysicalAddress"},
- {0x55, nullptr, "QueryIoMapping"},
- {0x56, nullptr, "CreateDeviceAddressSpace"},
- {0x57, nullptr, "AttachDeviceAddressSpace"},
- {0x58, nullptr, "DetachDeviceAddressSpace"},
- {0x59, nullptr, "MapDeviceAddressSpaceByForce"},
- {0x5A, nullptr, "MapDeviceAddressSpaceAligned"},
- {0x5B, nullptr, "MapDeviceAddressSpace"},
- {0x5C, nullptr, "UnmapDeviceAddressSpace"},
- {0x5D, nullptr, "InvalidateProcessDataCache"},
- {0x5E, nullptr, "StoreProcessDataCache"},
- {0x5F, nullptr, "FlushProcessDataCache"},
- {0x60, nullptr, "DebugActiveProcess"},
- {0x61, nullptr, "BreakDebugProcess"},
- {0x62, nullptr, "TerminateDebugProcess"},
- {0x63, nullptr, "GetDebugEvent"},
- {0x64, nullptr, "ContinueDebugEvent"},
- {0x65, SvcWrap64<GetProcessList>, "GetProcessList"},
- {0x66, SvcWrap64<GetThreadList>, "GetThreadList"},
- {0x67, nullptr, "GetDebugThreadContext"},
- {0x68, nullptr, "SetDebugThreadContext"},
- {0x69, nullptr, "QueryDebugProcessMemory"},
- {0x6A, nullptr, "ReadDebugProcessMemory"},
- {0x6B, nullptr, "WriteDebugProcessMemory"},
- {0x6C, nullptr, "SetHardwareBreakPoint"},
- {0x6D, nullptr, "GetDebugThreadParam"},
- {0x6E, nullptr, "Unknown6E"},
- {0x6F, nullptr, "GetSystemInfo"},
- {0x70, nullptr, "CreatePort"},
- {0x71, nullptr, "ManageNamedPort"},
- {0x72, nullptr, "ConnectToPort"},
- {0x73, SvcWrap64<SetProcessMemoryPermission>, "SetProcessMemoryPermission"},
- {0x74, SvcWrap64<MapProcessMemory>, "MapProcessMemory"},
- {0x75, SvcWrap64<UnmapProcessMemory>, "UnmapProcessMemory"},
- {0x76, SvcWrap64<QueryProcessMemory>, "QueryProcessMemory"},
- {0x77, SvcWrap64<MapProcessCodeMemory>, "MapProcessCodeMemory"},
- {0x78, SvcWrap64<UnmapProcessCodeMemory>, "UnmapProcessCodeMemory"},
- {0x79, nullptr, "CreateProcess"},
- {0x7A, nullptr, "StartProcess"},
- {0x7B, nullptr, "TerminateProcess"},
- {0x7C, SvcWrap64<GetProcessInfo>, "GetProcessInfo"},
- {0x7D, SvcWrap64<CreateResourceLimit>, "CreateResourceLimit"},
- {0x7E, SvcWrap64<SetResourceLimitLimitValue>, "SetResourceLimitLimitValue"},
- {0x7F, nullptr, "CallSecureMonitor"},
- {0x80, nullptr, "Unknown"},
- {0x81, nullptr, "Unknown"},
- {0x82, nullptr, "Unknown"},
- {0x83, nullptr, "Unknown"},
- {0x84, nullptr, "Unknown"},
- {0x85, nullptr, "Unknown"},
- {0x86, nullptr, "Unknown"},
- {0x87, nullptr, "Unknown"},
- {0x88, nullptr, "Unknown"},
- {0x89, nullptr, "Unknown"},
- {0x8A, nullptr, "Unknown"},
- {0x8B, nullptr, "Unknown"},
- {0x8C, nullptr, "Unknown"},
- {0x8D, nullptr, "Unknown"},
- {0x8E, nullptr, "Unknown"},
- {0x8F, nullptr, "Unknown"},
- {0x90, nullptr, "Unknown"},
- {0x91, nullptr, "Unknown"},
- {0x92, nullptr, "Unknown"},
- {0x93, nullptr, "Unknown"},
- {0x94, nullptr, "Unknown"},
- {0x95, nullptr, "Unknown"},
- {0x96, nullptr, "Unknown"},
- {0x97, nullptr, "Unknown"},
- {0x98, nullptr, "Unknown"},
- {0x99, nullptr, "Unknown"},
- {0x9A, nullptr, "Unknown"},
- {0x9B, nullptr, "Unknown"},
- {0x9C, nullptr, "Unknown"},
- {0x9D, nullptr, "Unknown"},
- {0x9E, nullptr, "Unknown"},
- {0x9F, nullptr, "Unknown"},
- {0xA0, nullptr, "Unknown"},
- {0xA1, nullptr, "Unknown"},
- {0xA2, nullptr, "Unknown"},
- {0xA3, nullptr, "Unknown"},
- {0xA4, nullptr, "Unknown"},
- {0xA5, nullptr, "Unknown"},
- {0xA6, nullptr, "Unknown"},
- {0xA7, nullptr, "Unknown"},
- {0xA8, nullptr, "Unknown"},
- {0xA9, nullptr, "Unknown"},
- {0xAA, nullptr, "Unknown"},
- {0xAB, nullptr, "Unknown"},
- {0xAC, nullptr, "Unknown"},
- {0xAD, nullptr, "Unknown"},
- {0xAE, nullptr, "Unknown"},
- {0xAF, nullptr, "Unknown"},
- {0xB0, nullptr, "Unknown"},
- {0xB1, nullptr, "Unknown"},
- {0xB2, nullptr, "Unknown"},
- {0xB3, nullptr, "Unknown"},
- {0xB4, nullptr, "Unknown"},
- {0xB5, nullptr, "Unknown"},
- {0xB6, nullptr, "Unknown"},
- {0xB7, nullptr, "Unknown"},
- {0xB8, nullptr, "Unknown"},
- {0xB9, nullptr, "Unknown"},
- {0xBA, nullptr, "Unknown"},
- {0xBB, nullptr, "Unknown"},
- {0xBC, nullptr, "Unknown"},
- {0xBD, nullptr, "Unknown"},
- {0xBE, nullptr, "Unknown"},
- {0xBF, nullptr, "Unknown"},
-};
-
-static const FunctionDef* GetSVCInfo32(u32 func_num) {
- if (func_num >= std::size(SVC_Table_32)) {
- LOG_ERROR(Kernel_SVC, "Unknown svc=0x{:02X}", func_num);
- return nullptr;
+static void SvcWrap_CreateSession64(Core::System& system) {
+ Result ret{};
+
+ Handle out_server_session_handle{};
+ Handle out_client_session_handle{};
+ bool is_light{};
+ uint64_t name{};
+
+ is_light = Convert<bool>(GetReg64(system, 2));
+ name = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = CreateSession64(system, std::addressof(out_server_session_handle), std::addressof(out_client_session_handle), is_light, name);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_server_session_handle));
+ SetReg64(system, 2, Convert<uint64_t>(out_client_session_handle));
+}
+
+static void SvcWrap_AcceptSession64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ Handle port{};
+
+ port = Convert<Handle>(GetReg64(system, 1));
+
+ ret = AcceptSession64(system, std::addressof(out_handle), port);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_ReplyAndReceive64(Core::System& system) {
+ Result ret{};
+
+ int32_t out_index{};
+ uint64_t handles{};
+ int32_t num_handles{};
+ Handle reply_target{};
+ int64_t timeout_ns{};
+
+ handles = Convert<uint64_t>(GetReg64(system, 1));
+ num_handles = Convert<int32_t>(GetReg64(system, 2));
+ reply_target = Convert<Handle>(GetReg64(system, 3));
+ timeout_ns = Convert<int64_t>(GetReg64(system, 4));
+
+ ret = ReplyAndReceive64(system, std::addressof(out_index), handles, num_handles, reply_target, timeout_ns);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_index));
+}
+
+static void SvcWrap_ReplyAndReceiveWithUserBuffer64(Core::System& system) {
+ Result ret{};
+
+ int32_t out_index{};
+ uint64_t message_buffer{};
+ uint64_t message_buffer_size{};
+ uint64_t handles{};
+ int32_t num_handles{};
+ Handle reply_target{};
+ int64_t timeout_ns{};
+
+ message_buffer = Convert<uint64_t>(GetReg64(system, 1));
+ message_buffer_size = Convert<uint64_t>(GetReg64(system, 2));
+ handles = Convert<uint64_t>(GetReg64(system, 3));
+ num_handles = Convert<int32_t>(GetReg64(system, 4));
+ reply_target = Convert<Handle>(GetReg64(system, 5));
+ timeout_ns = Convert<int64_t>(GetReg64(system, 6));
+
+ ret = ReplyAndReceiveWithUserBuffer64(system, std::addressof(out_index), message_buffer, message_buffer_size, handles, num_handles, reply_target, timeout_ns);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_index));
+}
+
+static void SvcWrap_CreateEvent64(Core::System& system) {
+ Result ret{};
+
+ Handle out_write_handle{};
+ Handle out_read_handle{};
+
+ ret = CreateEvent64(system, std::addressof(out_write_handle), std::addressof(out_read_handle));
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_write_handle));
+ SetReg64(system, 2, Convert<uint64_t>(out_read_handle));
+}
+
+static void SvcWrap_MapIoRegion64(Core::System& system) {
+ Result ret{};
+
+ Handle io_region{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission perm{};
+
+ io_region = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+ perm = Convert<MemoryPermission>(GetReg64(system, 3));
+
+ ret = MapIoRegion64(system, io_region, address, size, perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapIoRegion64(Core::System& system) {
+ Result ret{};
+
+ Handle io_region{};
+ uint64_t address{};
+ uint64_t size{};
+
+ io_region = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = UnmapIoRegion64(system, io_region, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_MapPhysicalMemoryUnsafe64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = MapPhysicalMemoryUnsafe64(system, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapPhysicalMemoryUnsafe64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = UnmapPhysicalMemoryUnsafe64(system, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_SetUnsafeLimit64(Core::System& system) {
+ Result ret{};
+
+ uint64_t limit{};
+
+ limit = Convert<uint64_t>(GetReg64(system, 0));
+
+ ret = SetUnsafeLimit64(system, limit);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_CreateCodeMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = CreateCodeMemory64(system, std::addressof(out_handle), address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_ControlCodeMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle code_memory_handle{};
+ CodeMemoryOperation operation{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission perm{};
+
+ code_memory_handle = Convert<Handle>(GetReg64(system, 0));
+ operation = Convert<CodeMemoryOperation>(GetReg64(system, 1));
+ address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+ perm = Convert<MemoryPermission>(GetReg64(system, 4));
+
+ ret = ControlCodeMemory64(system, code_memory_handle, operation, address, size, perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_SleepSystem64(Core::System& system) {
+ SleepSystem64(system);
+}
+
+static void SvcWrap_ReadWriteRegister64(Core::System& system) {
+ Result ret{};
+
+ uint32_t out_value{};
+ uint64_t address{};
+ uint32_t mask{};
+ uint32_t value{};
+
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ mask = Convert<uint32_t>(GetReg64(system, 2));
+ value = Convert<uint32_t>(GetReg64(system, 3));
+
+ ret = ReadWriteRegister64(system, std::addressof(out_value), address, mask, value);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_value));
+}
+
+static void SvcWrap_SetProcessActivity64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ ProcessActivity process_activity{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ process_activity = Convert<ProcessActivity>(GetReg64(system, 1));
+
+ ret = SetProcessActivity64(system, process_handle, process_activity);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_CreateSharedMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint64_t size{};
+ MemoryPermission owner_perm{};
+ MemoryPermission remote_perm{};
+
+ size = Convert<uint64_t>(GetReg64(system, 1));
+ owner_perm = Convert<MemoryPermission>(GetReg64(system, 2));
+ remote_perm = Convert<MemoryPermission>(GetReg64(system, 3));
+
+ ret = CreateSharedMemory64(system, std::addressof(out_handle), size, owner_perm, remote_perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_MapTransferMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle trmem_handle{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission owner_perm{};
+
+ trmem_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+ owner_perm = Convert<MemoryPermission>(GetReg64(system, 3));
+
+ ret = MapTransferMemory64(system, trmem_handle, address, size, owner_perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapTransferMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle trmem_handle{};
+ uint64_t address{};
+ uint64_t size{};
+
+ trmem_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = UnmapTransferMemory64(system, trmem_handle, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_CreateInterruptEvent64(Core::System& system) {
+ Result ret{};
+
+ Handle out_read_handle{};
+ int32_t interrupt_id{};
+ InterruptType interrupt_type{};
+
+ interrupt_id = Convert<int32_t>(GetReg64(system, 1));
+ interrupt_type = Convert<InterruptType>(GetReg64(system, 2));
+
+ ret = CreateInterruptEvent64(system, std::addressof(out_read_handle), interrupt_id, interrupt_type);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_read_handle));
+}
+
+static void SvcWrap_QueryPhysicalAddress64(Core::System& system) {
+ Result ret{};
+
+ lp64::PhysicalMemoryInfo out_info{};
+ uint64_t address{};
+
+ address = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = QueryPhysicalAddress64(system, std::addressof(out_info), address);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ auto out_info_scatter = Convert<std::array<uint64_t, 3>>(out_info);
+ SetReg64(system, 1, out_info_scatter[0]);
+ SetReg64(system, 2, out_info_scatter[1]);
+ SetReg64(system, 3, out_info_scatter[2]);
+}
+
+static void SvcWrap_QueryIoMapping64(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_address{};
+ uint64_t out_size{};
+ uint64_t physical_address{};
+ uint64_t size{};
+
+ physical_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = QueryIoMapping64(system, std::addressof(out_address), std::addressof(out_size), physical_address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_address));
+ SetReg64(system, 2, Convert<uint64_t>(out_size));
+}
+
+static void SvcWrap_CreateDeviceAddressSpace64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint64_t das_address{};
+ uint64_t das_size{};
+
+ das_address = Convert<uint64_t>(GetReg64(system, 1));
+ das_size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = CreateDeviceAddressSpace64(system, std::addressof(out_handle), das_address, das_size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_AttachDeviceAddressSpace64(Core::System& system) {
+ Result ret{};
+
+ DeviceName device_name{};
+ Handle das_handle{};
+
+ device_name = Convert<DeviceName>(GetReg64(system, 0));
+ das_handle = Convert<Handle>(GetReg64(system, 1));
+
+ ret = AttachDeviceAddressSpace64(system, device_name, das_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_DetachDeviceAddressSpace64(Core::System& system) {
+ Result ret{};
+
+ DeviceName device_name{};
+ Handle das_handle{};
+
+ device_name = Convert<DeviceName>(GetReg64(system, 0));
+ das_handle = Convert<Handle>(GetReg64(system, 1));
+
+ ret = DetachDeviceAddressSpace64(system, device_name, das_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_MapDeviceAddressSpaceByForce64(Core::System& system) {
+ Result ret{};
+
+ Handle das_handle{};
+ Handle process_handle{};
+ uint64_t process_address{};
+ uint64_t size{};
+ uint64_t device_address{};
+ uint32_t option{};
+
+ das_handle = Convert<Handle>(GetReg64(system, 0));
+ process_handle = Convert<Handle>(GetReg64(system, 1));
+ process_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+ device_address = Convert<uint64_t>(GetReg64(system, 4));
+ option = Convert<uint32_t>(GetReg64(system, 5));
+
+ ret = MapDeviceAddressSpaceByForce64(system, das_handle, process_handle, process_address, size, device_address, option);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_MapDeviceAddressSpaceAligned64(Core::System& system) {
+ Result ret{};
+
+ Handle das_handle{};
+ Handle process_handle{};
+ uint64_t process_address{};
+ uint64_t size{};
+ uint64_t device_address{};
+ uint32_t option{};
+
+ das_handle = Convert<Handle>(GetReg64(system, 0));
+ process_handle = Convert<Handle>(GetReg64(system, 1));
+ process_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+ device_address = Convert<uint64_t>(GetReg64(system, 4));
+ option = Convert<uint32_t>(GetReg64(system, 5));
+
+ ret = MapDeviceAddressSpaceAligned64(system, das_handle, process_handle, process_address, size, device_address, option);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapDeviceAddressSpace64(Core::System& system) {
+ Result ret{};
+
+ Handle das_handle{};
+ Handle process_handle{};
+ uint64_t process_address{};
+ uint64_t size{};
+ uint64_t device_address{};
+
+ das_handle = Convert<Handle>(GetReg64(system, 0));
+ process_handle = Convert<Handle>(GetReg64(system, 1));
+ process_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+ device_address = Convert<uint64_t>(GetReg64(system, 4));
+
+ ret = UnmapDeviceAddressSpace64(system, das_handle, process_handle, process_address, size, device_address);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_InvalidateProcessDataCache64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = InvalidateProcessDataCache64(system, process_handle, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_StoreProcessDataCache64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = StoreProcessDataCache64(system, process_handle, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_FlushProcessDataCache64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = FlushProcessDataCache64(system, process_handle, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_DebugActiveProcess64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint64_t process_id{};
+
+ process_id = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = DebugActiveProcess64(system, std::addressof(out_handle), process_id);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_BreakDebugProcess64(Core::System& system) {
+ Result ret{};
+
+ Handle debug_handle{};
+
+ debug_handle = Convert<Handle>(GetReg64(system, 0));
+
+ ret = BreakDebugProcess64(system, debug_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_TerminateDebugProcess64(Core::System& system) {
+ Result ret{};
+
+ Handle debug_handle{};
+
+ debug_handle = Convert<Handle>(GetReg64(system, 0));
+
+ ret = TerminateDebugProcess64(system, debug_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_GetDebugEvent64(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_info{};
+ Handle debug_handle{};
+
+ out_info = Convert<uint64_t>(GetReg64(system, 0));
+ debug_handle = Convert<Handle>(GetReg64(system, 1));
+
+ ret = GetDebugEvent64(system, out_info, debug_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_ContinueDebugEvent64(Core::System& system) {
+ Result ret{};
+
+ Handle debug_handle{};
+ uint32_t flags{};
+ uint64_t thread_ids{};
+ int32_t num_thread_ids{};
+
+ debug_handle = Convert<Handle>(GetReg64(system, 0));
+ flags = Convert<uint32_t>(GetReg64(system, 1));
+ thread_ids = Convert<uint64_t>(GetReg64(system, 2));
+ num_thread_ids = Convert<int32_t>(GetReg64(system, 3));
+
+ ret = ContinueDebugEvent64(system, debug_handle, flags, thread_ids, num_thread_ids);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_GetProcessList64(Core::System& system) {
+ Result ret{};
+
+ int32_t out_num_processes{};
+ uint64_t out_process_ids{};
+ int32_t max_out_count{};
+
+ out_process_ids = Convert<uint64_t>(GetReg64(system, 1));
+ max_out_count = Convert<int32_t>(GetReg64(system, 2));
+
+ ret = GetProcessList64(system, std::addressof(out_num_processes), out_process_ids, max_out_count);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_num_processes));
+}
+
+static void SvcWrap_GetThreadList64(Core::System& system) {
+ Result ret{};
+
+ int32_t out_num_threads{};
+ uint64_t out_thread_ids{};
+ int32_t max_out_count{};
+ Handle debug_handle{};
+
+ out_thread_ids = Convert<uint64_t>(GetReg64(system, 1));
+ max_out_count = Convert<int32_t>(GetReg64(system, 2));
+ debug_handle = Convert<Handle>(GetReg64(system, 3));
+
+ ret = GetThreadList64(system, std::addressof(out_num_threads), out_thread_ids, max_out_count, debug_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_num_threads));
+}
+
+static void SvcWrap_GetDebugThreadContext64(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_context{};
+ Handle debug_handle{};
+ uint64_t thread_id{};
+ uint32_t context_flags{};
+
+ out_context = Convert<uint64_t>(GetReg64(system, 0));
+ debug_handle = Convert<Handle>(GetReg64(system, 1));
+ thread_id = Convert<uint64_t>(GetReg64(system, 2));
+ context_flags = Convert<uint32_t>(GetReg64(system, 3));
+
+ ret = GetDebugThreadContext64(system, out_context, debug_handle, thread_id, context_flags);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_SetDebugThreadContext64(Core::System& system) {
+ Result ret{};
+
+ Handle debug_handle{};
+ uint64_t thread_id{};
+ uint64_t context{};
+ uint32_t context_flags{};
+
+ debug_handle = Convert<Handle>(GetReg64(system, 0));
+ thread_id = Convert<uint64_t>(GetReg64(system, 1));
+ context = Convert<uint64_t>(GetReg64(system, 2));
+ context_flags = Convert<uint32_t>(GetReg64(system, 3));
+
+ ret = SetDebugThreadContext64(system, debug_handle, thread_id, context, context_flags);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_QueryDebugProcessMemory64(Core::System& system) {
+ Result ret{};
+
+ PageInfo out_page_info{};
+ uint64_t out_memory_info{};
+ Handle process_handle{};
+ uint64_t address{};
+
+ out_memory_info = Convert<uint64_t>(GetReg64(system, 0));
+ process_handle = Convert<Handle>(GetReg64(system, 2));
+ address = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = QueryDebugProcessMemory64(system, out_memory_info, std::addressof(out_page_info), process_handle, address);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_page_info));
+}
+
+static void SvcWrap_ReadDebugProcessMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t buffer{};
+ Handle debug_handle{};
+ uint64_t address{};
+ uint64_t size{};
+
+ buffer = Convert<uint64_t>(GetReg64(system, 0));
+ debug_handle = Convert<Handle>(GetReg64(system, 1));
+ address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = ReadDebugProcessMemory64(system, buffer, debug_handle, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_WriteDebugProcessMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle debug_handle{};
+ uint64_t buffer{};
+ uint64_t address{};
+ uint64_t size{};
+
+ debug_handle = Convert<Handle>(GetReg64(system, 0));
+ buffer = Convert<uint64_t>(GetReg64(system, 1));
+ address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = WriteDebugProcessMemory64(system, debug_handle, buffer, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_SetHardwareBreakPoint64(Core::System& system) {
+ Result ret{};
+
+ HardwareBreakPointRegisterName name{};
+ uint64_t flags{};
+ uint64_t value{};
+
+ name = Convert<HardwareBreakPointRegisterName>(GetReg64(system, 0));
+ flags = Convert<uint64_t>(GetReg64(system, 1));
+ value = Convert<uint64_t>(GetReg64(system, 2));
+
+ ret = SetHardwareBreakPoint64(system, name, flags, value);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_GetDebugThreadParam64(Core::System& system) {
+ Result ret{};
+
+ uint64_t out_64{};
+ uint32_t out_32{};
+ Handle debug_handle{};
+ uint64_t thread_id{};
+ DebugThreadParam param{};
+
+ debug_handle = Convert<Handle>(GetReg64(system, 2));
+ thread_id = Convert<uint64_t>(GetReg64(system, 3));
+ param = Convert<DebugThreadParam>(GetReg64(system, 4));
+
+ ret = GetDebugThreadParam64(system, std::addressof(out_64), std::addressof(out_32), debug_handle, thread_id, param);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_64));
+ SetReg64(system, 2, Convert<uint64_t>(out_32));
+}
+
+static void SvcWrap_GetSystemInfo64(Core::System& system) {
+ Result ret{};
+
+ uint64_t out{};
+ SystemInfoType info_type{};
+ Handle handle{};
+ uint64_t info_subtype{};
+
+ info_type = Convert<SystemInfoType>(GetReg64(system, 1));
+ handle = Convert<Handle>(GetReg64(system, 2));
+ info_subtype = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = GetSystemInfo64(system, std::addressof(out), info_type, handle, info_subtype);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out));
+}
+
+static void SvcWrap_CreatePort64(Core::System& system) {
+ Result ret{};
+
+ Handle out_server_handle{};
+ Handle out_client_handle{};
+ int32_t max_sessions{};
+ bool is_light{};
+ uint64_t name{};
+
+ max_sessions = Convert<int32_t>(GetReg64(system, 2));
+ is_light = Convert<bool>(GetReg64(system, 3));
+ name = Convert<uint64_t>(GetReg64(system, 4));
+
+ ret = CreatePort64(system, std::addressof(out_server_handle), std::addressof(out_client_handle), max_sessions, is_light, name);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_server_handle));
+ SetReg64(system, 2, Convert<uint64_t>(out_client_handle));
+}
+
+static void SvcWrap_ManageNamedPort64(Core::System& system) {
+ Result ret{};
+
+ Handle out_server_handle{};
+ uint64_t name{};
+ int32_t max_sessions{};
+
+ name = Convert<uint64_t>(GetReg64(system, 1));
+ max_sessions = Convert<int32_t>(GetReg64(system, 2));
+
+ ret = ManageNamedPort64(system, std::addressof(out_server_handle), name, max_sessions);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_server_handle));
+}
+
+static void SvcWrap_ConnectToPort64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ Handle port{};
+
+ port = Convert<Handle>(GetReg64(system, 1));
+
+ ret = ConnectToPort64(system, std::addressof(out_handle), port);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_SetProcessMemoryPermission64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t address{};
+ uint64_t size{};
+ MemoryPermission perm{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ address = Convert<uint64_t>(GetReg64(system, 1));
+ size = Convert<uint64_t>(GetReg64(system, 2));
+ perm = Convert<MemoryPermission>(GetReg64(system, 3));
+
+ ret = SetProcessMemoryPermission64(system, process_handle, address, size, perm);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_MapProcessMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t dst_address{};
+ Handle process_handle{};
+ uint64_t src_address{};
+ uint64_t size{};
+
+ dst_address = Convert<uint64_t>(GetReg64(system, 0));
+ process_handle = Convert<Handle>(GetReg64(system, 1));
+ src_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = MapProcessMemory64(system, dst_address, process_handle, src_address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapProcessMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t dst_address{};
+ Handle process_handle{};
+ uint64_t src_address{};
+ uint64_t size{};
+
+ dst_address = Convert<uint64_t>(GetReg64(system, 0));
+ process_handle = Convert<Handle>(GetReg64(system, 1));
+ src_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = UnmapProcessMemory64(system, dst_address, process_handle, src_address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_QueryProcessMemory64(Core::System& system) {
+ Result ret{};
+
+ PageInfo out_page_info{};
+ uint64_t out_memory_info{};
+ Handle process_handle{};
+ uint64_t address{};
+
+ out_memory_info = Convert<uint64_t>(GetReg64(system, 0));
+ process_handle = Convert<Handle>(GetReg64(system, 2));
+ address = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = QueryProcessMemory64(system, out_memory_info, std::addressof(out_page_info), process_handle, address);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_page_info));
+}
+
+static void SvcWrap_MapProcessCodeMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t dst_address{};
+ uint64_t src_address{};
+ uint64_t size{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ dst_address = Convert<uint64_t>(GetReg64(system, 1));
+ src_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = MapProcessCodeMemory64(system, process_handle, dst_address, src_address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapProcessCodeMemory64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ uint64_t dst_address{};
+ uint64_t src_address{};
+ uint64_t size{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ dst_address = Convert<uint64_t>(GetReg64(system, 1));
+ src_address = Convert<uint64_t>(GetReg64(system, 2));
+ size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = UnmapProcessCodeMemory64(system, process_handle, dst_address, src_address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_CreateProcess64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+ uint64_t parameters{};
+ uint64_t caps{};
+ int32_t num_caps{};
+
+ parameters = Convert<uint64_t>(GetReg64(system, 1));
+ caps = Convert<uint64_t>(GetReg64(system, 2));
+ num_caps = Convert<int32_t>(GetReg64(system, 3));
+
+ ret = CreateProcess64(system, std::addressof(out_handle), parameters, caps, num_caps);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_StartProcess64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+ int32_t priority{};
+ int32_t core_id{};
+ uint64_t main_thread_stack_size{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+ priority = Convert<int32_t>(GetReg64(system, 1));
+ core_id = Convert<int32_t>(GetReg64(system, 2));
+ main_thread_stack_size = Convert<uint64_t>(GetReg64(system, 3));
+
+ ret = StartProcess64(system, process_handle, priority, core_id, main_thread_stack_size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_TerminateProcess64(Core::System& system) {
+ Result ret{};
+
+ Handle process_handle{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 0));
+
+ ret = TerminateProcess64(system, process_handle);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_GetProcessInfo64(Core::System& system) {
+ Result ret{};
+
+ int64_t out_info{};
+ Handle process_handle{};
+ ProcessInfoType info_type{};
+
+ process_handle = Convert<Handle>(GetReg64(system, 1));
+ info_type = Convert<ProcessInfoType>(GetReg64(system, 2));
+
+ ret = GetProcessInfo64(system, std::addressof(out_info), process_handle, info_type);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_info));
+}
+
+static void SvcWrap_CreateResourceLimit64(Core::System& system) {
+ Result ret{};
+
+ Handle out_handle{};
+
+ ret = CreateResourceLimit64(system, std::addressof(out_handle));
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+ SetReg64(system, 1, Convert<uint64_t>(out_handle));
+}
+
+static void SvcWrap_SetResourceLimitLimitValue64(Core::System& system) {
+ Result ret{};
+
+ Handle resource_limit_handle{};
+ LimitableResource which{};
+ int64_t limit_value{};
+
+ resource_limit_handle = Convert<Handle>(GetReg64(system, 0));
+ which = Convert<LimitableResource>(GetReg64(system, 1));
+ limit_value = Convert<int64_t>(GetReg64(system, 2));
+
+ ret = SetResourceLimitLimitValue64(system, resource_limit_handle, which, limit_value);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_MapInsecureMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = MapInsecureMemory64(system, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void SvcWrap_UnmapInsecureMemory64(Core::System& system) {
+ Result ret{};
+
+ uint64_t address{};
+ uint64_t size{};
+
+ address = Convert<uint64_t>(GetReg64(system, 0));
+ size = Convert<uint64_t>(GetReg64(system, 1));
+
+ ret = UnmapInsecureMemory64(system, address, size);
+
+ SetReg64(system, 0, Convert<uint64_t>(ret));
+}
+
+static void Call32(Core::System& system, u32 imm) {
+ switch (static_cast<SvcId>(imm)) {
+ case SvcId::SetHeapSize:
+ return SvcWrap_SetHeapSize64From32(system);
+ case SvcId::SetMemoryPermission:
+ return SvcWrap_SetMemoryPermission64From32(system);
+ case SvcId::SetMemoryAttribute:
+ return SvcWrap_SetMemoryAttribute64From32(system);
+ case SvcId::MapMemory:
+ return SvcWrap_MapMemory64From32(system);
+ case SvcId::UnmapMemory:
+ return SvcWrap_UnmapMemory64From32(system);
+ case SvcId::QueryMemory:
+ return SvcWrap_QueryMemory64From32(system);
+ case SvcId::ExitProcess:
+ return SvcWrap_ExitProcess64From32(system);
+ case SvcId::CreateThread:
+ return SvcWrap_CreateThread64From32(system);
+ case SvcId::StartThread:
+ return SvcWrap_StartThread64From32(system);
+ case SvcId::ExitThread:
+ return SvcWrap_ExitThread64From32(system);
+ case SvcId::SleepThread:
+ return SvcWrap_SleepThread64From32(system);
+ case SvcId::GetThreadPriority:
+ return SvcWrap_GetThreadPriority64From32(system);
+ case SvcId::SetThreadPriority:
+ return SvcWrap_SetThreadPriority64From32(system);
+ case SvcId::GetThreadCoreMask:
+ return SvcWrap_GetThreadCoreMask64From32(system);
+ case SvcId::SetThreadCoreMask:
+ return SvcWrap_SetThreadCoreMask64From32(system);
+ case SvcId::GetCurrentProcessorNumber:
+ return SvcWrap_GetCurrentProcessorNumber64From32(system);
+ case SvcId::SignalEvent:
+ return SvcWrap_SignalEvent64From32(system);
+ case SvcId::ClearEvent:
+ return SvcWrap_ClearEvent64From32(system);
+ case SvcId::MapSharedMemory:
+ return SvcWrap_MapSharedMemory64From32(system);
+ case SvcId::UnmapSharedMemory:
+ return SvcWrap_UnmapSharedMemory64From32(system);
+ case SvcId::CreateTransferMemory:
+ return SvcWrap_CreateTransferMemory64From32(system);
+ case SvcId::CloseHandle:
+ return SvcWrap_CloseHandle64From32(system);
+ case SvcId::ResetSignal:
+ return SvcWrap_ResetSignal64From32(system);
+ case SvcId::WaitSynchronization:
+ return SvcWrap_WaitSynchronization64From32(system);
+ case SvcId::CancelSynchronization:
+ return SvcWrap_CancelSynchronization64From32(system);
+ case SvcId::ArbitrateLock:
+ return SvcWrap_ArbitrateLock64From32(system);
+ case SvcId::ArbitrateUnlock:
+ return SvcWrap_ArbitrateUnlock64From32(system);
+ case SvcId::WaitProcessWideKeyAtomic:
+ return SvcWrap_WaitProcessWideKeyAtomic64From32(system);
+ case SvcId::SignalProcessWideKey:
+ return SvcWrap_SignalProcessWideKey64From32(system);
+ case SvcId::GetSystemTick:
+ return SvcWrap_GetSystemTick64From32(system);
+ case SvcId::ConnectToNamedPort:
+ return SvcWrap_ConnectToNamedPort64From32(system);
+ case SvcId::SendSyncRequestLight:
+ return SvcWrap_SendSyncRequestLight64From32(system);
+ case SvcId::SendSyncRequest:
+ return SvcWrap_SendSyncRequest64From32(system);
+ case SvcId::SendSyncRequestWithUserBuffer:
+ return SvcWrap_SendSyncRequestWithUserBuffer64From32(system);
+ case SvcId::SendAsyncRequestWithUserBuffer:
+ return SvcWrap_SendAsyncRequestWithUserBuffer64From32(system);
+ case SvcId::GetProcessId:
+ return SvcWrap_GetProcessId64From32(system);
+ case SvcId::GetThreadId:
+ return SvcWrap_GetThreadId64From32(system);
+ case SvcId::Break:
+ return SvcWrap_Break64From32(system);
+ case SvcId::OutputDebugString:
+ return SvcWrap_OutputDebugString64From32(system);
+ case SvcId::ReturnFromException:
+ return SvcWrap_ReturnFromException64From32(system);
+ case SvcId::GetInfo:
+ return SvcWrap_GetInfo64From32(system);
+ case SvcId::FlushEntireDataCache:
+ return SvcWrap_FlushEntireDataCache64From32(system);
+ case SvcId::FlushDataCache:
+ return SvcWrap_FlushDataCache64From32(system);
+ case SvcId::MapPhysicalMemory:
+ return SvcWrap_MapPhysicalMemory64From32(system);
+ case SvcId::UnmapPhysicalMemory:
+ return SvcWrap_UnmapPhysicalMemory64From32(system);
+ case SvcId::GetDebugFutureThreadInfo:
+ return SvcWrap_GetDebugFutureThreadInfo64From32(system);
+ case SvcId::GetLastThreadInfo:
+ return SvcWrap_GetLastThreadInfo64From32(system);
+ case SvcId::GetResourceLimitLimitValue:
+ return SvcWrap_GetResourceLimitLimitValue64From32(system);
+ case SvcId::GetResourceLimitCurrentValue:
+ return SvcWrap_GetResourceLimitCurrentValue64From32(system);
+ case SvcId::SetThreadActivity:
+ return SvcWrap_SetThreadActivity64From32(system);
+ case SvcId::GetThreadContext3:
+ return SvcWrap_GetThreadContext364From32(system);
+ case SvcId::WaitForAddress:
+ return SvcWrap_WaitForAddress64From32(system);
+ case SvcId::SignalToAddress:
+ return SvcWrap_SignalToAddress64From32(system);
+ case SvcId::SynchronizePreemptionState:
+ return SvcWrap_SynchronizePreemptionState64From32(system);
+ case SvcId::GetResourceLimitPeakValue:
+ return SvcWrap_GetResourceLimitPeakValue64From32(system);
+ case SvcId::CreateIoPool:
+ return SvcWrap_CreateIoPool64From32(system);
+ case SvcId::CreateIoRegion:
+ return SvcWrap_CreateIoRegion64From32(system);
+ case SvcId::KernelDebug:
+ return SvcWrap_KernelDebug64From32(system);
+ case SvcId::ChangeKernelTraceState:
+ return SvcWrap_ChangeKernelTraceState64From32(system);
+ case SvcId::CreateSession:
+ return SvcWrap_CreateSession64From32(system);
+ case SvcId::AcceptSession:
+ return SvcWrap_AcceptSession64From32(system);
+ case SvcId::ReplyAndReceiveLight:
+ return SvcWrap_ReplyAndReceiveLight64From32(system);
+ case SvcId::ReplyAndReceive:
+ return SvcWrap_ReplyAndReceive64From32(system);
+ case SvcId::ReplyAndReceiveWithUserBuffer:
+ return SvcWrap_ReplyAndReceiveWithUserBuffer64From32(system);
+ case SvcId::CreateEvent:
+ return SvcWrap_CreateEvent64From32(system);
+ case SvcId::MapIoRegion:
+ return SvcWrap_MapIoRegion64From32(system);
+ case SvcId::UnmapIoRegion:
+ return SvcWrap_UnmapIoRegion64From32(system);
+ case SvcId::MapPhysicalMemoryUnsafe:
+ return SvcWrap_MapPhysicalMemoryUnsafe64From32(system);
+ case SvcId::UnmapPhysicalMemoryUnsafe:
+ return SvcWrap_UnmapPhysicalMemoryUnsafe64From32(system);
+ case SvcId::SetUnsafeLimit:
+ return SvcWrap_SetUnsafeLimit64From32(system);
+ case SvcId::CreateCodeMemory:
+ return SvcWrap_CreateCodeMemory64From32(system);
+ case SvcId::ControlCodeMemory:
+ return SvcWrap_ControlCodeMemory64From32(system);
+ case SvcId::SleepSystem:
+ return SvcWrap_SleepSystem64From32(system);
+ case SvcId::ReadWriteRegister:
+ return SvcWrap_ReadWriteRegister64From32(system);
+ case SvcId::SetProcessActivity:
+ return SvcWrap_SetProcessActivity64From32(system);
+ case SvcId::CreateSharedMemory:
+ return SvcWrap_CreateSharedMemory64From32(system);
+ case SvcId::MapTransferMemory:
+ return SvcWrap_MapTransferMemory64From32(system);
+ case SvcId::UnmapTransferMemory:
+ return SvcWrap_UnmapTransferMemory64From32(system);
+ case SvcId::CreateInterruptEvent:
+ return SvcWrap_CreateInterruptEvent64From32(system);
+ case SvcId::QueryPhysicalAddress:
+ return SvcWrap_QueryPhysicalAddress64From32(system);
+ case SvcId::QueryIoMapping:
+ return SvcWrap_QueryIoMapping64From32(system);
+ case SvcId::CreateDeviceAddressSpace:
+ return SvcWrap_CreateDeviceAddressSpace64From32(system);
+ case SvcId::AttachDeviceAddressSpace:
+ return SvcWrap_AttachDeviceAddressSpace64From32(system);
+ case SvcId::DetachDeviceAddressSpace:
+ return SvcWrap_DetachDeviceAddressSpace64From32(system);
+ case SvcId::MapDeviceAddressSpaceByForce:
+ return SvcWrap_MapDeviceAddressSpaceByForce64From32(system);
+ case SvcId::MapDeviceAddressSpaceAligned:
+ return SvcWrap_MapDeviceAddressSpaceAligned64From32(system);
+ case SvcId::UnmapDeviceAddressSpace:
+ return SvcWrap_UnmapDeviceAddressSpace64From32(system);
+ case SvcId::InvalidateProcessDataCache:
+ return SvcWrap_InvalidateProcessDataCache64From32(system);
+ case SvcId::StoreProcessDataCache:
+ return SvcWrap_StoreProcessDataCache64From32(system);
+ case SvcId::FlushProcessDataCache:
+ return SvcWrap_FlushProcessDataCache64From32(system);
+ case SvcId::DebugActiveProcess:
+ return SvcWrap_DebugActiveProcess64From32(system);
+ case SvcId::BreakDebugProcess:
+ return SvcWrap_BreakDebugProcess64From32(system);
+ case SvcId::TerminateDebugProcess:
+ return SvcWrap_TerminateDebugProcess64From32(system);
+ case SvcId::GetDebugEvent:
+ return SvcWrap_GetDebugEvent64From32(system);
+ case SvcId::ContinueDebugEvent:
+ return SvcWrap_ContinueDebugEvent64From32(system);
+ case SvcId::GetProcessList:
+ return SvcWrap_GetProcessList64From32(system);
+ case SvcId::GetThreadList:
+ return SvcWrap_GetThreadList64From32(system);
+ case SvcId::GetDebugThreadContext:
+ return SvcWrap_GetDebugThreadContext64From32(system);
+ case SvcId::SetDebugThreadContext:
+ return SvcWrap_SetDebugThreadContext64From32(system);
+ case SvcId::QueryDebugProcessMemory:
+ return SvcWrap_QueryDebugProcessMemory64From32(system);
+ case SvcId::ReadDebugProcessMemory:
+ return SvcWrap_ReadDebugProcessMemory64From32(system);
+ case SvcId::WriteDebugProcessMemory:
+ return SvcWrap_WriteDebugProcessMemory64From32(system);
+ case SvcId::SetHardwareBreakPoint:
+ return SvcWrap_SetHardwareBreakPoint64From32(system);
+ case SvcId::GetDebugThreadParam:
+ return SvcWrap_GetDebugThreadParam64From32(system);
+ case SvcId::GetSystemInfo:
+ return SvcWrap_GetSystemInfo64From32(system);
+ case SvcId::CreatePort:
+ return SvcWrap_CreatePort64From32(system);
+ case SvcId::ManageNamedPort:
+ return SvcWrap_ManageNamedPort64From32(system);
+ case SvcId::ConnectToPort:
+ return SvcWrap_ConnectToPort64From32(system);
+ case SvcId::SetProcessMemoryPermission:
+ return SvcWrap_SetProcessMemoryPermission64From32(system);
+ case SvcId::MapProcessMemory:
+ return SvcWrap_MapProcessMemory64From32(system);
+ case SvcId::UnmapProcessMemory:
+ return SvcWrap_UnmapProcessMemory64From32(system);
+ case SvcId::QueryProcessMemory:
+ return SvcWrap_QueryProcessMemory64From32(system);
+ case SvcId::MapProcessCodeMemory:
+ return SvcWrap_MapProcessCodeMemory64From32(system);
+ case SvcId::UnmapProcessCodeMemory:
+ return SvcWrap_UnmapProcessCodeMemory64From32(system);
+ case SvcId::CreateProcess:
+ return SvcWrap_CreateProcess64From32(system);
+ case SvcId::StartProcess:
+ return SvcWrap_StartProcess64From32(system);
+ case SvcId::TerminateProcess:
+ return SvcWrap_TerminateProcess64From32(system);
+ case SvcId::GetProcessInfo:
+ return SvcWrap_GetProcessInfo64From32(system);
+ case SvcId::CreateResourceLimit:
+ return SvcWrap_CreateResourceLimit64From32(system);
+ case SvcId::SetResourceLimitLimitValue:
+ return SvcWrap_SetResourceLimitLimitValue64From32(system);
+ case SvcId::CallSecureMonitor:
+ return SvcWrap_CallSecureMonitor64From32(system);
+ case SvcId::MapInsecureMemory:
+ return SvcWrap_MapInsecureMemory64From32(system);
+ case SvcId::UnmapInsecureMemory:
+ return SvcWrap_UnmapInsecureMemory64From32(system);
+ default:
+ LOG_CRITICAL(Kernel_SVC, "Unknown SVC {:x}!", imm);
+ break;
}
- return &SVC_Table_32[func_num];
}
-static const FunctionDef* GetSVCInfo64(u32 func_num) {
- if (func_num >= std::size(SVC_Table_64)) {
- LOG_ERROR(Kernel_SVC, "Unknown svc=0x{:02X}", func_num);
- return nullptr;
+static void Call64(Core::System& system, u32 imm) {
+ switch (static_cast<SvcId>(imm)) {
+ case SvcId::SetHeapSize:
+ return SvcWrap_SetHeapSize64(system);
+ case SvcId::SetMemoryPermission:
+ return SvcWrap_SetMemoryPermission64(system);
+ case SvcId::SetMemoryAttribute:
+ return SvcWrap_SetMemoryAttribute64(system);
+ case SvcId::MapMemory:
+ return SvcWrap_MapMemory64(system);
+ case SvcId::UnmapMemory:
+ return SvcWrap_UnmapMemory64(system);
+ case SvcId::QueryMemory:
+ return SvcWrap_QueryMemory64(system);
+ case SvcId::ExitProcess:
+ return SvcWrap_ExitProcess64(system);
+ case SvcId::CreateThread:
+ return SvcWrap_CreateThread64(system);
+ case SvcId::StartThread:
+ return SvcWrap_StartThread64(system);
+ case SvcId::ExitThread:
+ return SvcWrap_ExitThread64(system);
+ case SvcId::SleepThread:
+ return SvcWrap_SleepThread64(system);
+ case SvcId::GetThreadPriority:
+ return SvcWrap_GetThreadPriority64(system);
+ case SvcId::SetThreadPriority:
+ return SvcWrap_SetThreadPriority64(system);
+ case SvcId::GetThreadCoreMask:
+ return SvcWrap_GetThreadCoreMask64(system);
+ case SvcId::SetThreadCoreMask:
+ return SvcWrap_SetThreadCoreMask64(system);
+ case SvcId::GetCurrentProcessorNumber:
+ return SvcWrap_GetCurrentProcessorNumber64(system);
+ case SvcId::SignalEvent:
+ return SvcWrap_SignalEvent64(system);
+ case SvcId::ClearEvent:
+ return SvcWrap_ClearEvent64(system);
+ case SvcId::MapSharedMemory:
+ return SvcWrap_MapSharedMemory64(system);
+ case SvcId::UnmapSharedMemory:
+ return SvcWrap_UnmapSharedMemory64(system);
+ case SvcId::CreateTransferMemory:
+ return SvcWrap_CreateTransferMemory64(system);
+ case SvcId::CloseHandle:
+ return SvcWrap_CloseHandle64(system);
+ case SvcId::ResetSignal:
+ return SvcWrap_ResetSignal64(system);
+ case SvcId::WaitSynchronization:
+ return SvcWrap_WaitSynchronization64(system);
+ case SvcId::CancelSynchronization:
+ return SvcWrap_CancelSynchronization64(system);
+ case SvcId::ArbitrateLock:
+ return SvcWrap_ArbitrateLock64(system);
+ case SvcId::ArbitrateUnlock:
+ return SvcWrap_ArbitrateUnlock64(system);
+ case SvcId::WaitProcessWideKeyAtomic:
+ return SvcWrap_WaitProcessWideKeyAtomic64(system);
+ case SvcId::SignalProcessWideKey:
+ return SvcWrap_SignalProcessWideKey64(system);
+ case SvcId::GetSystemTick:
+ return SvcWrap_GetSystemTick64(system);
+ case SvcId::ConnectToNamedPort:
+ return SvcWrap_ConnectToNamedPort64(system);
+ case SvcId::SendSyncRequestLight:
+ return SvcWrap_SendSyncRequestLight64(system);
+ case SvcId::SendSyncRequest:
+ return SvcWrap_SendSyncRequest64(system);
+ case SvcId::SendSyncRequestWithUserBuffer:
+ return SvcWrap_SendSyncRequestWithUserBuffer64(system);
+ case SvcId::SendAsyncRequestWithUserBuffer:
+ return SvcWrap_SendAsyncRequestWithUserBuffer64(system);
+ case SvcId::GetProcessId:
+ return SvcWrap_GetProcessId64(system);
+ case SvcId::GetThreadId:
+ return SvcWrap_GetThreadId64(system);
+ case SvcId::Break:
+ return SvcWrap_Break64(system);
+ case SvcId::OutputDebugString:
+ return SvcWrap_OutputDebugString64(system);
+ case SvcId::ReturnFromException:
+ return SvcWrap_ReturnFromException64(system);
+ case SvcId::GetInfo:
+ return SvcWrap_GetInfo64(system);
+ case SvcId::FlushEntireDataCache:
+ return SvcWrap_FlushEntireDataCache64(system);
+ case SvcId::FlushDataCache:
+ return SvcWrap_FlushDataCache64(system);
+ case SvcId::MapPhysicalMemory:
+ return SvcWrap_MapPhysicalMemory64(system);
+ case SvcId::UnmapPhysicalMemory:
+ return SvcWrap_UnmapPhysicalMemory64(system);
+ case SvcId::GetDebugFutureThreadInfo:
+ return SvcWrap_GetDebugFutureThreadInfo64(system);
+ case SvcId::GetLastThreadInfo:
+ return SvcWrap_GetLastThreadInfo64(system);
+ case SvcId::GetResourceLimitLimitValue:
+ return SvcWrap_GetResourceLimitLimitValue64(system);
+ case SvcId::GetResourceLimitCurrentValue:
+ return SvcWrap_GetResourceLimitCurrentValue64(system);
+ case SvcId::SetThreadActivity:
+ return SvcWrap_SetThreadActivity64(system);
+ case SvcId::GetThreadContext3:
+ return SvcWrap_GetThreadContext364(system);
+ case SvcId::WaitForAddress:
+ return SvcWrap_WaitForAddress64(system);
+ case SvcId::SignalToAddress:
+ return SvcWrap_SignalToAddress64(system);
+ case SvcId::SynchronizePreemptionState:
+ return SvcWrap_SynchronizePreemptionState64(system);
+ case SvcId::GetResourceLimitPeakValue:
+ return SvcWrap_GetResourceLimitPeakValue64(system);
+ case SvcId::CreateIoPool:
+ return SvcWrap_CreateIoPool64(system);
+ case SvcId::CreateIoRegion:
+ return SvcWrap_CreateIoRegion64(system);
+ case SvcId::KernelDebug:
+ return SvcWrap_KernelDebug64(system);
+ case SvcId::ChangeKernelTraceState:
+ return SvcWrap_ChangeKernelTraceState64(system);
+ case SvcId::CreateSession:
+ return SvcWrap_CreateSession64(system);
+ case SvcId::AcceptSession:
+ return SvcWrap_AcceptSession64(system);
+ case SvcId::ReplyAndReceiveLight:
+ return SvcWrap_ReplyAndReceiveLight64(system);
+ case SvcId::ReplyAndReceive:
+ return SvcWrap_ReplyAndReceive64(system);
+ case SvcId::ReplyAndReceiveWithUserBuffer:
+ return SvcWrap_ReplyAndReceiveWithUserBuffer64(system);
+ case SvcId::CreateEvent:
+ return SvcWrap_CreateEvent64(system);
+ case SvcId::MapIoRegion:
+ return SvcWrap_MapIoRegion64(system);
+ case SvcId::UnmapIoRegion:
+ return SvcWrap_UnmapIoRegion64(system);
+ case SvcId::MapPhysicalMemoryUnsafe:
+ return SvcWrap_MapPhysicalMemoryUnsafe64(system);
+ case SvcId::UnmapPhysicalMemoryUnsafe:
+ return SvcWrap_UnmapPhysicalMemoryUnsafe64(system);
+ case SvcId::SetUnsafeLimit:
+ return SvcWrap_SetUnsafeLimit64(system);
+ case SvcId::CreateCodeMemory:
+ return SvcWrap_CreateCodeMemory64(system);
+ case SvcId::ControlCodeMemory:
+ return SvcWrap_ControlCodeMemory64(system);
+ case SvcId::SleepSystem:
+ return SvcWrap_SleepSystem64(system);
+ case SvcId::ReadWriteRegister:
+ return SvcWrap_ReadWriteRegister64(system);
+ case SvcId::SetProcessActivity:
+ return SvcWrap_SetProcessActivity64(system);
+ case SvcId::CreateSharedMemory:
+ return SvcWrap_CreateSharedMemory64(system);
+ case SvcId::MapTransferMemory:
+ return SvcWrap_MapTransferMemory64(system);
+ case SvcId::UnmapTransferMemory:
+ return SvcWrap_UnmapTransferMemory64(system);
+ case SvcId::CreateInterruptEvent:
+ return SvcWrap_CreateInterruptEvent64(system);
+ case SvcId::QueryPhysicalAddress:
+ return SvcWrap_QueryPhysicalAddress64(system);
+ case SvcId::QueryIoMapping:
+ return SvcWrap_QueryIoMapping64(system);
+ case SvcId::CreateDeviceAddressSpace:
+ return SvcWrap_CreateDeviceAddressSpace64(system);
+ case SvcId::AttachDeviceAddressSpace:
+ return SvcWrap_AttachDeviceAddressSpace64(system);
+ case SvcId::DetachDeviceAddressSpace:
+ return SvcWrap_DetachDeviceAddressSpace64(system);
+ case SvcId::MapDeviceAddressSpaceByForce:
+ return SvcWrap_MapDeviceAddressSpaceByForce64(system);
+ case SvcId::MapDeviceAddressSpaceAligned:
+ return SvcWrap_MapDeviceAddressSpaceAligned64(system);
+ case SvcId::UnmapDeviceAddressSpace:
+ return SvcWrap_UnmapDeviceAddressSpace64(system);
+ case SvcId::InvalidateProcessDataCache:
+ return SvcWrap_InvalidateProcessDataCache64(system);
+ case SvcId::StoreProcessDataCache:
+ return SvcWrap_StoreProcessDataCache64(system);
+ case SvcId::FlushProcessDataCache:
+ return SvcWrap_FlushProcessDataCache64(system);
+ case SvcId::DebugActiveProcess:
+ return SvcWrap_DebugActiveProcess64(system);
+ case SvcId::BreakDebugProcess:
+ return SvcWrap_BreakDebugProcess64(system);
+ case SvcId::TerminateDebugProcess:
+ return SvcWrap_TerminateDebugProcess64(system);
+ case SvcId::GetDebugEvent:
+ return SvcWrap_GetDebugEvent64(system);
+ case SvcId::ContinueDebugEvent:
+ return SvcWrap_ContinueDebugEvent64(system);
+ case SvcId::GetProcessList:
+ return SvcWrap_GetProcessList64(system);
+ case SvcId::GetThreadList:
+ return SvcWrap_GetThreadList64(system);
+ case SvcId::GetDebugThreadContext:
+ return SvcWrap_GetDebugThreadContext64(system);
+ case SvcId::SetDebugThreadContext:
+ return SvcWrap_SetDebugThreadContext64(system);
+ case SvcId::QueryDebugProcessMemory:
+ return SvcWrap_QueryDebugProcessMemory64(system);
+ case SvcId::ReadDebugProcessMemory:
+ return SvcWrap_ReadDebugProcessMemory64(system);
+ case SvcId::WriteDebugProcessMemory:
+ return SvcWrap_WriteDebugProcessMemory64(system);
+ case SvcId::SetHardwareBreakPoint:
+ return SvcWrap_SetHardwareBreakPoint64(system);
+ case SvcId::GetDebugThreadParam:
+ return SvcWrap_GetDebugThreadParam64(system);
+ case SvcId::GetSystemInfo:
+ return SvcWrap_GetSystemInfo64(system);
+ case SvcId::CreatePort:
+ return SvcWrap_CreatePort64(system);
+ case SvcId::ManageNamedPort:
+ return SvcWrap_ManageNamedPort64(system);
+ case SvcId::ConnectToPort:
+ return SvcWrap_ConnectToPort64(system);
+ case SvcId::SetProcessMemoryPermission:
+ return SvcWrap_SetProcessMemoryPermission64(system);
+ case SvcId::MapProcessMemory:
+ return SvcWrap_MapProcessMemory64(system);
+ case SvcId::UnmapProcessMemory:
+ return SvcWrap_UnmapProcessMemory64(system);
+ case SvcId::QueryProcessMemory:
+ return SvcWrap_QueryProcessMemory64(system);
+ case SvcId::MapProcessCodeMemory:
+ return SvcWrap_MapProcessCodeMemory64(system);
+ case SvcId::UnmapProcessCodeMemory:
+ return SvcWrap_UnmapProcessCodeMemory64(system);
+ case SvcId::CreateProcess:
+ return SvcWrap_CreateProcess64(system);
+ case SvcId::StartProcess:
+ return SvcWrap_StartProcess64(system);
+ case SvcId::TerminateProcess:
+ return SvcWrap_TerminateProcess64(system);
+ case SvcId::GetProcessInfo:
+ return SvcWrap_GetProcessInfo64(system);
+ case SvcId::CreateResourceLimit:
+ return SvcWrap_CreateResourceLimit64(system);
+ case SvcId::SetResourceLimitLimitValue:
+ return SvcWrap_SetResourceLimitLimitValue64(system);
+ case SvcId::CallSecureMonitor:
+ return SvcWrap_CallSecureMonitor64(system);
+ case SvcId::MapInsecureMemory:
+ return SvcWrap_MapInsecureMemory64(system);
+ case SvcId::UnmapInsecureMemory:
+ return SvcWrap_UnmapInsecureMemory64(system);
+ default:
+ LOG_CRITICAL(Kernel_SVC, "Unknown SVC {:x}!", imm);
+ break;
}
- return &SVC_Table_64[func_num];
}
+// clang-format on
-void Call(Core::System& system, u32 immediate) {
+void Call(Core::System& system, u32 imm) {
auto& kernel = system.Kernel();
kernel.EnterSVCProfile();
- auto* thread = GetCurrentThreadPointer(kernel);
- thread->SetIsCallingSvc();
-
- const FunctionDef* info = system.CurrentProcess()->Is64BitProcess() ? GetSVCInfo64(immediate)
- : GetSVCInfo32(immediate);
- if (info) {
- if (info->func) {
- info->func(system);
- } else {
- LOG_CRITICAL(Kernel_SVC, "Unimplemented SVC function {}(..)", info->name);
- }
+ if (GetCurrentProcess(system.Kernel()).Is64BitProcess()) {
+ Call64(system, imm);
} else {
- LOG_CRITICAL(Kernel_SVC, "Unknown SVC function 0x{:X}", immediate);
+ Call32(system, imm);
}
kernel.ExitSVCProfile();
diff --git a/src/core/hle/kernel/svc.h b/src/core/hle/kernel/svc.h
index 13f061b83..ac4696008 100644
--- a/src/core/hle/kernel/svc.h
+++ b/src/core/hle/kernel/svc.h
@@ -1,16 +1,536 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#pragma once
+// This file is automatically generated using svc_generator.py.
-#include "common/common_types.h"
+#pragma once
namespace Core {
class System;
}
+#include "common/common_types.h"
+#include "core/hle/kernel/svc_types.h"
+#include "core/hle/result.h"
+
namespace Kernel::Svc {
-void Call(Core::System& system, u32 immediate);
+// clang-format off
+Result SetHeapSize(Core::System& system, uint64_t* out_address, uint64_t size);
+Result SetMemoryPermission(Core::System& system, uint64_t address, uint64_t size, MemoryPermission perm);
+Result SetMemoryAttribute(Core::System& system, uint64_t address, uint64_t size, uint32_t mask, uint32_t attr);
+Result MapMemory(Core::System& system, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result UnmapMemory(Core::System& system, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result QueryMemory(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info, uint64_t address);
+void ExitProcess(Core::System& system);
+Result CreateThread(Core::System& system, Handle* out_handle, uint64_t func, uint64_t arg, uint64_t stack_bottom, int32_t priority, int32_t core_id);
+Result StartThread(Core::System& system, Handle thread_handle);
+void ExitThread(Core::System& system);
+void SleepThread(Core::System& system, int64_t ns);
+Result GetThreadPriority(Core::System& system, int32_t* out_priority, Handle thread_handle);
+Result SetThreadPriority(Core::System& system, Handle thread_handle, int32_t priority);
+Result GetThreadCoreMask(Core::System& system, int32_t* out_core_id, uint64_t* out_affinity_mask, Handle thread_handle);
+Result SetThreadCoreMask(Core::System& system, Handle thread_handle, int32_t core_id, uint64_t affinity_mask);
+int32_t GetCurrentProcessorNumber(Core::System& system);
+Result SignalEvent(Core::System& system, Handle event_handle);
+Result ClearEvent(Core::System& system, Handle event_handle);
+Result MapSharedMemory(Core::System& system, Handle shmem_handle, uint64_t address, uint64_t size, MemoryPermission map_perm);
+Result UnmapSharedMemory(Core::System& system, Handle shmem_handle, uint64_t address, uint64_t size);
+Result CreateTransferMemory(Core::System& system, Handle* out_handle, uint64_t address, uint64_t size, MemoryPermission map_perm);
+Result CloseHandle(Core::System& system, Handle handle);
+Result ResetSignal(Core::System& system, Handle handle);
+Result WaitSynchronization(Core::System& system, int32_t* out_index, uint64_t handles, int32_t num_handles, int64_t timeout_ns);
+Result CancelSynchronization(Core::System& system, Handle handle);
+Result ArbitrateLock(Core::System& system, Handle thread_handle, uint64_t address, uint32_t tag);
+Result ArbitrateUnlock(Core::System& system, uint64_t address);
+Result WaitProcessWideKeyAtomic(Core::System& system, uint64_t address, uint64_t cv_key, uint32_t tag, int64_t timeout_ns);
+void SignalProcessWideKey(Core::System& system, uint64_t cv_key, int32_t count);
+int64_t GetSystemTick(Core::System& system);
+Result ConnectToNamedPort(Core::System& system, Handle* out_handle, uint64_t name);
+Result SendSyncRequest(Core::System& system, Handle session_handle);
+Result SendSyncRequestWithUserBuffer(Core::System& system, uint64_t message_buffer, uint64_t message_buffer_size, Handle session_handle);
+Result SendAsyncRequestWithUserBuffer(Core::System& system, Handle* out_event_handle, uint64_t message_buffer, uint64_t message_buffer_size, Handle session_handle);
+Result GetProcessId(Core::System& system, uint64_t* out_process_id, Handle process_handle);
+Result GetThreadId(Core::System& system, uint64_t* out_thread_id, Handle thread_handle);
+void Break(Core::System& system, BreakReason break_reason, uint64_t arg, uint64_t size);
+Result OutputDebugString(Core::System& system, uint64_t debug_str, uint64_t len);
+void ReturnFromException(Core::System& system, Result result);
+Result GetInfo(Core::System& system, uint64_t* out, InfoType info_type, Handle handle, uint64_t info_subtype);
+void FlushEntireDataCache(Core::System& system);
+Result FlushDataCache(Core::System& system, uint64_t address, uint64_t size);
+Result MapPhysicalMemory(Core::System& system, uint64_t address, uint64_t size);
+Result UnmapPhysicalMemory(Core::System& system, uint64_t address, uint64_t size);
+Result GetDebugFutureThreadInfo(Core::System& system, lp64::LastThreadContext* out_context, uint64_t* out_thread_id, Handle debug_handle, int64_t ns);
+Result GetLastThreadInfo(Core::System& system, lp64::LastThreadContext* out_context, uint64_t* out_tls_address, uint32_t* out_flags);
+Result GetResourceLimitLimitValue(Core::System& system, int64_t* out_limit_value, Handle resource_limit_handle, LimitableResource which);
+Result GetResourceLimitCurrentValue(Core::System& system, int64_t* out_current_value, Handle resource_limit_handle, LimitableResource which);
+Result SetThreadActivity(Core::System& system, Handle thread_handle, ThreadActivity thread_activity);
+Result GetThreadContext3(Core::System& system, uint64_t out_context, Handle thread_handle);
+Result WaitForAddress(Core::System& system, uint64_t address, ArbitrationType arb_type, int32_t value, int64_t timeout_ns);
+Result SignalToAddress(Core::System& system, uint64_t address, SignalType signal_type, int32_t value, int32_t count);
+void SynchronizePreemptionState(Core::System& system);
+Result GetResourceLimitPeakValue(Core::System& system, int64_t* out_peak_value, Handle resource_limit_handle, LimitableResource which);
+Result CreateIoPool(Core::System& system, Handle* out_handle, IoPoolType which);
+Result CreateIoRegion(Core::System& system, Handle* out_handle, Handle io_pool, uint64_t physical_address, uint64_t size, MemoryMapping mapping, MemoryPermission perm);
+void KernelDebug(Core::System& system, KernelDebugType kern_debug_type, uint64_t arg0, uint64_t arg1, uint64_t arg2);
+void ChangeKernelTraceState(Core::System& system, KernelTraceState kern_trace_state);
+Result CreateSession(Core::System& system, Handle* out_server_session_handle, Handle* out_client_session_handle, bool is_light, uint64_t name);
+Result AcceptSession(Core::System& system, Handle* out_handle, Handle port);
+Result ReplyAndReceive(Core::System& system, int32_t* out_index, uint64_t handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);
+Result ReplyAndReceiveWithUserBuffer(Core::System& system, int32_t* out_index, uint64_t message_buffer, uint64_t message_buffer_size, uint64_t handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);
+Result CreateEvent(Core::System& system, Handle* out_write_handle, Handle* out_read_handle);
+Result MapIoRegion(Core::System& system, Handle io_region, uint64_t address, uint64_t size, MemoryPermission perm);
+Result UnmapIoRegion(Core::System& system, Handle io_region, uint64_t address, uint64_t size);
+Result MapPhysicalMemoryUnsafe(Core::System& system, uint64_t address, uint64_t size);
+Result UnmapPhysicalMemoryUnsafe(Core::System& system, uint64_t address, uint64_t size);
+Result SetUnsafeLimit(Core::System& system, uint64_t limit);
+Result CreateCodeMemory(Core::System& system, Handle* out_handle, uint64_t address, uint64_t size);
+Result ControlCodeMemory(Core::System& system, Handle code_memory_handle, CodeMemoryOperation operation, uint64_t address, uint64_t size, MemoryPermission perm);
+void SleepSystem(Core::System& system);
+Result ReadWriteRegister(Core::System& system, uint32_t* out_value, uint64_t address, uint32_t mask, uint32_t value);
+Result SetProcessActivity(Core::System& system, Handle process_handle, ProcessActivity process_activity);
+Result CreateSharedMemory(Core::System& system, Handle* out_handle, uint64_t size, MemoryPermission owner_perm, MemoryPermission remote_perm);
+Result MapTransferMemory(Core::System& system, Handle trmem_handle, uint64_t address, uint64_t size, MemoryPermission owner_perm);
+Result UnmapTransferMemory(Core::System& system, Handle trmem_handle, uint64_t address, uint64_t size);
+Result CreateInterruptEvent(Core::System& system, Handle* out_read_handle, int32_t interrupt_id, InterruptType interrupt_type);
+Result QueryPhysicalAddress(Core::System& system, lp64::PhysicalMemoryInfo* out_info, uint64_t address);
+Result QueryIoMapping(Core::System& system, uint64_t* out_address, uint64_t* out_size, uint64_t physical_address, uint64_t size);
+Result CreateDeviceAddressSpace(Core::System& system, Handle* out_handle, uint64_t das_address, uint64_t das_size);
+Result AttachDeviceAddressSpace(Core::System& system, DeviceName device_name, Handle das_handle);
+Result DetachDeviceAddressSpace(Core::System& system, DeviceName device_name, Handle das_handle);
+Result MapDeviceAddressSpaceByForce(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint64_t size, uint64_t device_address, uint32_t option);
+Result MapDeviceAddressSpaceAligned(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint64_t size, uint64_t device_address, uint32_t option);
+Result UnmapDeviceAddressSpace(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint64_t size, uint64_t device_address);
+Result InvalidateProcessDataCache(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result StoreProcessDataCache(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result FlushProcessDataCache(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result DebugActiveProcess(Core::System& system, Handle* out_handle, uint64_t process_id);
+Result BreakDebugProcess(Core::System& system, Handle debug_handle);
+Result TerminateDebugProcess(Core::System& system, Handle debug_handle);
+Result GetDebugEvent(Core::System& system, uint64_t out_info, Handle debug_handle);
+Result ContinueDebugEvent(Core::System& system, Handle debug_handle, uint32_t flags, uint64_t thread_ids, int32_t num_thread_ids);
+Result GetProcessList(Core::System& system, int32_t* out_num_processes, uint64_t out_process_ids, int32_t max_out_count);
+Result GetThreadList(Core::System& system, int32_t* out_num_threads, uint64_t out_thread_ids, int32_t max_out_count, Handle debug_handle);
+Result GetDebugThreadContext(Core::System& system, uint64_t out_context, Handle debug_handle, uint64_t thread_id, uint32_t context_flags);
+Result SetDebugThreadContext(Core::System& system, Handle debug_handle, uint64_t thread_id, uint64_t context, uint32_t context_flags);
+Result QueryDebugProcessMemory(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info, Handle process_handle, uint64_t address);
+Result ReadDebugProcessMemory(Core::System& system, uint64_t buffer, Handle debug_handle, uint64_t address, uint64_t size);
+Result WriteDebugProcessMemory(Core::System& system, Handle debug_handle, uint64_t buffer, uint64_t address, uint64_t size);
+Result SetHardwareBreakPoint(Core::System& system, HardwareBreakPointRegisterName name, uint64_t flags, uint64_t value);
+Result GetDebugThreadParam(Core::System& system, uint64_t* out_64, uint32_t* out_32, Handle debug_handle, uint64_t thread_id, DebugThreadParam param);
+Result GetSystemInfo(Core::System& system, uint64_t* out, SystemInfoType info_type, Handle handle, uint64_t info_subtype);
+Result CreatePort(Core::System& system, Handle* out_server_handle, Handle* out_client_handle, int32_t max_sessions, bool is_light, uint64_t name);
+Result ManageNamedPort(Core::System& system, Handle* out_server_handle, uint64_t name, int32_t max_sessions);
+Result ConnectToPort(Core::System& system, Handle* out_handle, Handle port);
+Result SetProcessMemoryPermission(Core::System& system, Handle process_handle, uint64_t address, uint64_t size, MemoryPermission perm);
+Result MapProcessMemory(Core::System& system, uint64_t dst_address, Handle process_handle, uint64_t src_address, uint64_t size);
+Result UnmapProcessMemory(Core::System& system, uint64_t dst_address, Handle process_handle, uint64_t src_address, uint64_t size);
+Result QueryProcessMemory(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info, Handle process_handle, uint64_t address);
+Result MapProcessCodeMemory(Core::System& system, Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result UnmapProcessCodeMemory(Core::System& system, Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result CreateProcess(Core::System& system, Handle* out_handle, uint64_t parameters, uint64_t caps, int32_t num_caps);
+Result StartProcess(Core::System& system, Handle process_handle, int32_t priority, int32_t core_id, uint64_t main_thread_stack_size);
+Result TerminateProcess(Core::System& system, Handle process_handle);
+Result GetProcessInfo(Core::System& system, int64_t* out_info, Handle process_handle, ProcessInfoType info_type);
+Result CreateResourceLimit(Core::System& system, Handle* out_handle);
+Result SetResourceLimitLimitValue(Core::System& system, Handle resource_limit_handle, LimitableResource which, int64_t limit_value);
+Result MapInsecureMemory(Core::System& system, uint64_t address, uint64_t size);
+Result UnmapInsecureMemory(Core::System& system, uint64_t address, uint64_t size);
+
+Result SetHeapSize64From32(Core::System& system, uint64_t* out_address, uint32_t size);
+Result SetMemoryPermission64From32(Core::System& system, uint32_t address, uint32_t size, MemoryPermission perm);
+Result SetMemoryAttribute64From32(Core::System& system, uint32_t address, uint32_t size, uint32_t mask, uint32_t attr);
+Result MapMemory64From32(Core::System& system, uint32_t dst_address, uint32_t src_address, uint32_t size);
+Result UnmapMemory64From32(Core::System& system, uint32_t dst_address, uint32_t src_address, uint32_t size);
+Result QueryMemory64From32(Core::System& system, uint32_t out_memory_info, PageInfo* out_page_info, uint32_t address);
+void ExitProcess64From32(Core::System& system);
+Result CreateThread64From32(Core::System& system, Handle* out_handle, uint32_t func, uint32_t arg, uint32_t stack_bottom, int32_t priority, int32_t core_id);
+Result StartThread64From32(Core::System& system, Handle thread_handle);
+void ExitThread64From32(Core::System& system);
+void SleepThread64From32(Core::System& system, int64_t ns);
+Result GetThreadPriority64From32(Core::System& system, int32_t* out_priority, Handle thread_handle);
+Result SetThreadPriority64From32(Core::System& system, Handle thread_handle, int32_t priority);
+Result GetThreadCoreMask64From32(Core::System& system, int32_t* out_core_id, uint64_t* out_affinity_mask, Handle thread_handle);
+Result SetThreadCoreMask64From32(Core::System& system, Handle thread_handle, int32_t core_id, uint64_t affinity_mask);
+int32_t GetCurrentProcessorNumber64From32(Core::System& system);
+Result SignalEvent64From32(Core::System& system, Handle event_handle);
+Result ClearEvent64From32(Core::System& system, Handle event_handle);
+Result MapSharedMemory64From32(Core::System& system, Handle shmem_handle, uint32_t address, uint32_t size, MemoryPermission map_perm);
+Result UnmapSharedMemory64From32(Core::System& system, Handle shmem_handle, uint32_t address, uint32_t size);
+Result CreateTransferMemory64From32(Core::System& system, Handle* out_handle, uint32_t address, uint32_t size, MemoryPermission map_perm);
+Result CloseHandle64From32(Core::System& system, Handle handle);
+Result ResetSignal64From32(Core::System& system, Handle handle);
+Result WaitSynchronization64From32(Core::System& system, int32_t* out_index, uint32_t handles, int32_t num_handles, int64_t timeout_ns);
+Result CancelSynchronization64From32(Core::System& system, Handle handle);
+Result ArbitrateLock64From32(Core::System& system, Handle thread_handle, uint32_t address, uint32_t tag);
+Result ArbitrateUnlock64From32(Core::System& system, uint32_t address);
+Result WaitProcessWideKeyAtomic64From32(Core::System& system, uint32_t address, uint32_t cv_key, uint32_t tag, int64_t timeout_ns);
+void SignalProcessWideKey64From32(Core::System& system, uint32_t cv_key, int32_t count);
+int64_t GetSystemTick64From32(Core::System& system);
+Result ConnectToNamedPort64From32(Core::System& system, Handle* out_handle, uint32_t name);
+Result SendSyncRequest64From32(Core::System& system, Handle session_handle);
+Result SendSyncRequestWithUserBuffer64From32(Core::System& system, uint32_t message_buffer, uint32_t message_buffer_size, Handle session_handle);
+Result SendAsyncRequestWithUserBuffer64From32(Core::System& system, Handle* out_event_handle, uint32_t message_buffer, uint32_t message_buffer_size, Handle session_handle);
+Result GetProcessId64From32(Core::System& system, uint64_t* out_process_id, Handle process_handle);
+Result GetThreadId64From32(Core::System& system, uint64_t* out_thread_id, Handle thread_handle);
+void Break64From32(Core::System& system, BreakReason break_reason, uint32_t arg, uint32_t size);
+Result OutputDebugString64From32(Core::System& system, uint32_t debug_str, uint32_t len);
+void ReturnFromException64From32(Core::System& system, Result result);
+Result GetInfo64From32(Core::System& system, uint64_t* out, InfoType info_type, Handle handle, uint64_t info_subtype);
+void FlushEntireDataCache64From32(Core::System& system);
+Result FlushDataCache64From32(Core::System& system, uint32_t address, uint32_t size);
+Result MapPhysicalMemory64From32(Core::System& system, uint32_t address, uint32_t size);
+Result UnmapPhysicalMemory64From32(Core::System& system, uint32_t address, uint32_t size);
+Result GetDebugFutureThreadInfo64From32(Core::System& system, ilp32::LastThreadContext* out_context, uint64_t* out_thread_id, Handle debug_handle, int64_t ns);
+Result GetLastThreadInfo64From32(Core::System& system, ilp32::LastThreadContext* out_context, uint64_t* out_tls_address, uint32_t* out_flags);
+Result GetResourceLimitLimitValue64From32(Core::System& system, int64_t* out_limit_value, Handle resource_limit_handle, LimitableResource which);
+Result GetResourceLimitCurrentValue64From32(Core::System& system, int64_t* out_current_value, Handle resource_limit_handle, LimitableResource which);
+Result SetThreadActivity64From32(Core::System& system, Handle thread_handle, ThreadActivity thread_activity);
+Result GetThreadContext364From32(Core::System& system, uint32_t out_context, Handle thread_handle);
+Result WaitForAddress64From32(Core::System& system, uint32_t address, ArbitrationType arb_type, int32_t value, int64_t timeout_ns);
+Result SignalToAddress64From32(Core::System& system, uint32_t address, SignalType signal_type, int32_t value, int32_t count);
+void SynchronizePreemptionState64From32(Core::System& system);
+Result GetResourceLimitPeakValue64From32(Core::System& system, int64_t* out_peak_value, Handle resource_limit_handle, LimitableResource which);
+Result CreateIoPool64From32(Core::System& system, Handle* out_handle, IoPoolType which);
+Result CreateIoRegion64From32(Core::System& system, Handle* out_handle, Handle io_pool, uint64_t physical_address, uint32_t size, MemoryMapping mapping, MemoryPermission perm);
+void KernelDebug64From32(Core::System& system, KernelDebugType kern_debug_type, uint64_t arg0, uint64_t arg1, uint64_t arg2);
+void ChangeKernelTraceState64From32(Core::System& system, KernelTraceState kern_trace_state);
+Result CreateSession64From32(Core::System& system, Handle* out_server_session_handle, Handle* out_client_session_handle, bool is_light, uint32_t name);
+Result AcceptSession64From32(Core::System& system, Handle* out_handle, Handle port);
+Result ReplyAndReceive64From32(Core::System& system, int32_t* out_index, uint32_t handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);
+Result ReplyAndReceiveWithUserBuffer64From32(Core::System& system, int32_t* out_index, uint32_t message_buffer, uint32_t message_buffer_size, uint32_t handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);
+Result CreateEvent64From32(Core::System& system, Handle* out_write_handle, Handle* out_read_handle);
+Result MapIoRegion64From32(Core::System& system, Handle io_region, uint32_t address, uint32_t size, MemoryPermission perm);
+Result UnmapIoRegion64From32(Core::System& system, Handle io_region, uint32_t address, uint32_t size);
+Result MapPhysicalMemoryUnsafe64From32(Core::System& system, uint32_t address, uint32_t size);
+Result UnmapPhysicalMemoryUnsafe64From32(Core::System& system, uint32_t address, uint32_t size);
+Result SetUnsafeLimit64From32(Core::System& system, uint32_t limit);
+Result CreateCodeMemory64From32(Core::System& system, Handle* out_handle, uint32_t address, uint32_t size);
+Result ControlCodeMemory64From32(Core::System& system, Handle code_memory_handle, CodeMemoryOperation operation, uint64_t address, uint64_t size, MemoryPermission perm);
+void SleepSystem64From32(Core::System& system);
+Result ReadWriteRegister64From32(Core::System& system, uint32_t* out_value, uint64_t address, uint32_t mask, uint32_t value);
+Result SetProcessActivity64From32(Core::System& system, Handle process_handle, ProcessActivity process_activity);
+Result CreateSharedMemory64From32(Core::System& system, Handle* out_handle, uint32_t size, MemoryPermission owner_perm, MemoryPermission remote_perm);
+Result MapTransferMemory64From32(Core::System& system, Handle trmem_handle, uint32_t address, uint32_t size, MemoryPermission owner_perm);
+Result UnmapTransferMemory64From32(Core::System& system, Handle trmem_handle, uint32_t address, uint32_t size);
+Result CreateInterruptEvent64From32(Core::System& system, Handle* out_read_handle, int32_t interrupt_id, InterruptType interrupt_type);
+Result QueryPhysicalAddress64From32(Core::System& system, ilp32::PhysicalMemoryInfo* out_info, uint32_t address);
+Result QueryIoMapping64From32(Core::System& system, uint64_t* out_address, uint64_t* out_size, uint64_t physical_address, uint32_t size);
+Result CreateDeviceAddressSpace64From32(Core::System& system, Handle* out_handle, uint64_t das_address, uint64_t das_size);
+Result AttachDeviceAddressSpace64From32(Core::System& system, DeviceName device_name, Handle das_handle);
+Result DetachDeviceAddressSpace64From32(Core::System& system, DeviceName device_name, Handle das_handle);
+Result MapDeviceAddressSpaceByForce64From32(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint32_t size, uint64_t device_address, uint32_t option);
+Result MapDeviceAddressSpaceAligned64From32(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint32_t size, uint64_t device_address, uint32_t option);
+Result UnmapDeviceAddressSpace64From32(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint32_t size, uint64_t device_address);
+Result InvalidateProcessDataCache64From32(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result StoreProcessDataCache64From32(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result FlushProcessDataCache64From32(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result DebugActiveProcess64From32(Core::System& system, Handle* out_handle, uint64_t process_id);
+Result BreakDebugProcess64From32(Core::System& system, Handle debug_handle);
+Result TerminateDebugProcess64From32(Core::System& system, Handle debug_handle);
+Result GetDebugEvent64From32(Core::System& system, uint32_t out_info, Handle debug_handle);
+Result ContinueDebugEvent64From32(Core::System& system, Handle debug_handle, uint32_t flags, uint32_t thread_ids, int32_t num_thread_ids);
+Result GetProcessList64From32(Core::System& system, int32_t* out_num_processes, uint32_t out_process_ids, int32_t max_out_count);
+Result GetThreadList64From32(Core::System& system, int32_t* out_num_threads, uint32_t out_thread_ids, int32_t max_out_count, Handle debug_handle);
+Result GetDebugThreadContext64From32(Core::System& system, uint32_t out_context, Handle debug_handle, uint64_t thread_id, uint32_t context_flags);
+Result SetDebugThreadContext64From32(Core::System& system, Handle debug_handle, uint64_t thread_id, uint32_t context, uint32_t context_flags);
+Result QueryDebugProcessMemory64From32(Core::System& system, uint32_t out_memory_info, PageInfo* out_page_info, Handle process_handle, uint32_t address);
+Result ReadDebugProcessMemory64From32(Core::System& system, uint32_t buffer, Handle debug_handle, uint32_t address, uint32_t size);
+Result WriteDebugProcessMemory64From32(Core::System& system, Handle debug_handle, uint32_t buffer, uint32_t address, uint32_t size);
+Result SetHardwareBreakPoint64From32(Core::System& system, HardwareBreakPointRegisterName name, uint64_t flags, uint64_t value);
+Result GetDebugThreadParam64From32(Core::System& system, uint64_t* out_64, uint32_t* out_32, Handle debug_handle, uint64_t thread_id, DebugThreadParam param);
+Result GetSystemInfo64From32(Core::System& system, uint64_t* out, SystemInfoType info_type, Handle handle, uint64_t info_subtype);
+Result CreatePort64From32(Core::System& system, Handle* out_server_handle, Handle* out_client_handle, int32_t max_sessions, bool is_light, uint32_t name);
+Result ManageNamedPort64From32(Core::System& system, Handle* out_server_handle, uint32_t name, int32_t max_sessions);
+Result ConnectToPort64From32(Core::System& system, Handle* out_handle, Handle port);
+Result SetProcessMemoryPermission64From32(Core::System& system, Handle process_handle, uint64_t address, uint64_t size, MemoryPermission perm);
+Result MapProcessMemory64From32(Core::System& system, uint32_t dst_address, Handle process_handle, uint64_t src_address, uint32_t size);
+Result UnmapProcessMemory64From32(Core::System& system, uint32_t dst_address, Handle process_handle, uint64_t src_address, uint32_t size);
+Result QueryProcessMemory64From32(Core::System& system, uint32_t out_memory_info, PageInfo* out_page_info, Handle process_handle, uint64_t address);
+Result MapProcessCodeMemory64From32(Core::System& system, Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result UnmapProcessCodeMemory64From32(Core::System& system, Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result CreateProcess64From32(Core::System& system, Handle* out_handle, uint32_t parameters, uint32_t caps, int32_t num_caps);
+Result StartProcess64From32(Core::System& system, Handle process_handle, int32_t priority, int32_t core_id, uint64_t main_thread_stack_size);
+Result TerminateProcess64From32(Core::System& system, Handle process_handle);
+Result GetProcessInfo64From32(Core::System& system, int64_t* out_info, Handle process_handle, ProcessInfoType info_type);
+Result CreateResourceLimit64From32(Core::System& system, Handle* out_handle);
+Result SetResourceLimitLimitValue64From32(Core::System& system, Handle resource_limit_handle, LimitableResource which, int64_t limit_value);
+Result MapInsecureMemory64From32(Core::System& system, uint32_t address, uint32_t size);
+Result UnmapInsecureMemory64From32(Core::System& system, uint32_t address, uint32_t size);
+
+Result SetHeapSize64(Core::System& system, uint64_t* out_address, uint64_t size);
+Result SetMemoryPermission64(Core::System& system, uint64_t address, uint64_t size, MemoryPermission perm);
+Result SetMemoryAttribute64(Core::System& system, uint64_t address, uint64_t size, uint32_t mask, uint32_t attr);
+Result MapMemory64(Core::System& system, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result UnmapMemory64(Core::System& system, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result QueryMemory64(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info, uint64_t address);
+void ExitProcess64(Core::System& system);
+Result CreateThread64(Core::System& system, Handle* out_handle, uint64_t func, uint64_t arg, uint64_t stack_bottom, int32_t priority, int32_t core_id);
+Result StartThread64(Core::System& system, Handle thread_handle);
+void ExitThread64(Core::System& system);
+void SleepThread64(Core::System& system, int64_t ns);
+Result GetThreadPriority64(Core::System& system, int32_t* out_priority, Handle thread_handle);
+Result SetThreadPriority64(Core::System& system, Handle thread_handle, int32_t priority);
+Result GetThreadCoreMask64(Core::System& system, int32_t* out_core_id, uint64_t* out_affinity_mask, Handle thread_handle);
+Result SetThreadCoreMask64(Core::System& system, Handle thread_handle, int32_t core_id, uint64_t affinity_mask);
+int32_t GetCurrentProcessorNumber64(Core::System& system);
+Result SignalEvent64(Core::System& system, Handle event_handle);
+Result ClearEvent64(Core::System& system, Handle event_handle);
+Result MapSharedMemory64(Core::System& system, Handle shmem_handle, uint64_t address, uint64_t size, MemoryPermission map_perm);
+Result UnmapSharedMemory64(Core::System& system, Handle shmem_handle, uint64_t address, uint64_t size);
+Result CreateTransferMemory64(Core::System& system, Handle* out_handle, uint64_t address, uint64_t size, MemoryPermission map_perm);
+Result CloseHandle64(Core::System& system, Handle handle);
+Result ResetSignal64(Core::System& system, Handle handle);
+Result WaitSynchronization64(Core::System& system, int32_t* out_index, uint64_t handles, int32_t num_handles, int64_t timeout_ns);
+Result CancelSynchronization64(Core::System& system, Handle handle);
+Result ArbitrateLock64(Core::System& system, Handle thread_handle, uint64_t address, uint32_t tag);
+Result ArbitrateUnlock64(Core::System& system, uint64_t address);
+Result WaitProcessWideKeyAtomic64(Core::System& system, uint64_t address, uint64_t cv_key, uint32_t tag, int64_t timeout_ns);
+void SignalProcessWideKey64(Core::System& system, uint64_t cv_key, int32_t count);
+int64_t GetSystemTick64(Core::System& system);
+Result ConnectToNamedPort64(Core::System& system, Handle* out_handle, uint64_t name);
+Result SendSyncRequest64(Core::System& system, Handle session_handle);
+Result SendSyncRequestWithUserBuffer64(Core::System& system, uint64_t message_buffer, uint64_t message_buffer_size, Handle session_handle);
+Result SendAsyncRequestWithUserBuffer64(Core::System& system, Handle* out_event_handle, uint64_t message_buffer, uint64_t message_buffer_size, Handle session_handle);
+Result GetProcessId64(Core::System& system, uint64_t* out_process_id, Handle process_handle);
+Result GetThreadId64(Core::System& system, uint64_t* out_thread_id, Handle thread_handle);
+void Break64(Core::System& system, BreakReason break_reason, uint64_t arg, uint64_t size);
+Result OutputDebugString64(Core::System& system, uint64_t debug_str, uint64_t len);
+void ReturnFromException64(Core::System& system, Result result);
+Result GetInfo64(Core::System& system, uint64_t* out, InfoType info_type, Handle handle, uint64_t info_subtype);
+void FlushEntireDataCache64(Core::System& system);
+Result FlushDataCache64(Core::System& system, uint64_t address, uint64_t size);
+Result MapPhysicalMemory64(Core::System& system, uint64_t address, uint64_t size);
+Result UnmapPhysicalMemory64(Core::System& system, uint64_t address, uint64_t size);
+Result GetDebugFutureThreadInfo64(Core::System& system, lp64::LastThreadContext* out_context, uint64_t* out_thread_id, Handle debug_handle, int64_t ns);
+Result GetLastThreadInfo64(Core::System& system, lp64::LastThreadContext* out_context, uint64_t* out_tls_address, uint32_t* out_flags);
+Result GetResourceLimitLimitValue64(Core::System& system, int64_t* out_limit_value, Handle resource_limit_handle, LimitableResource which);
+Result GetResourceLimitCurrentValue64(Core::System& system, int64_t* out_current_value, Handle resource_limit_handle, LimitableResource which);
+Result SetThreadActivity64(Core::System& system, Handle thread_handle, ThreadActivity thread_activity);
+Result GetThreadContext364(Core::System& system, uint64_t out_context, Handle thread_handle);
+Result WaitForAddress64(Core::System& system, uint64_t address, ArbitrationType arb_type, int32_t value, int64_t timeout_ns);
+Result SignalToAddress64(Core::System& system, uint64_t address, SignalType signal_type, int32_t value, int32_t count);
+void SynchronizePreemptionState64(Core::System& system);
+Result GetResourceLimitPeakValue64(Core::System& system, int64_t* out_peak_value, Handle resource_limit_handle, LimitableResource which);
+Result CreateIoPool64(Core::System& system, Handle* out_handle, IoPoolType which);
+Result CreateIoRegion64(Core::System& system, Handle* out_handle, Handle io_pool, uint64_t physical_address, uint64_t size, MemoryMapping mapping, MemoryPermission perm);
+void KernelDebug64(Core::System& system, KernelDebugType kern_debug_type, uint64_t arg0, uint64_t arg1, uint64_t arg2);
+void ChangeKernelTraceState64(Core::System& system, KernelTraceState kern_trace_state);
+Result CreateSession64(Core::System& system, Handle* out_server_session_handle, Handle* out_client_session_handle, bool is_light, uint64_t name);
+Result AcceptSession64(Core::System& system, Handle* out_handle, Handle port);
+Result ReplyAndReceive64(Core::System& system, int32_t* out_index, uint64_t handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);
+Result ReplyAndReceiveWithUserBuffer64(Core::System& system, int32_t* out_index, uint64_t message_buffer, uint64_t message_buffer_size, uint64_t handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);
+Result CreateEvent64(Core::System& system, Handle* out_write_handle, Handle* out_read_handle);
+Result MapIoRegion64(Core::System& system, Handle io_region, uint64_t address, uint64_t size, MemoryPermission perm);
+Result UnmapIoRegion64(Core::System& system, Handle io_region, uint64_t address, uint64_t size);
+Result MapPhysicalMemoryUnsafe64(Core::System& system, uint64_t address, uint64_t size);
+Result UnmapPhysicalMemoryUnsafe64(Core::System& system, uint64_t address, uint64_t size);
+Result SetUnsafeLimit64(Core::System& system, uint64_t limit);
+Result CreateCodeMemory64(Core::System& system, Handle* out_handle, uint64_t address, uint64_t size);
+Result ControlCodeMemory64(Core::System& system, Handle code_memory_handle, CodeMemoryOperation operation, uint64_t address, uint64_t size, MemoryPermission perm);
+void SleepSystem64(Core::System& system);
+Result ReadWriteRegister64(Core::System& system, uint32_t* out_value, uint64_t address, uint32_t mask, uint32_t value);
+Result SetProcessActivity64(Core::System& system, Handle process_handle, ProcessActivity process_activity);
+Result CreateSharedMemory64(Core::System& system, Handle* out_handle, uint64_t size, MemoryPermission owner_perm, MemoryPermission remote_perm);
+Result MapTransferMemory64(Core::System& system, Handle trmem_handle, uint64_t address, uint64_t size, MemoryPermission owner_perm);
+Result UnmapTransferMemory64(Core::System& system, Handle trmem_handle, uint64_t address, uint64_t size);
+Result CreateInterruptEvent64(Core::System& system, Handle* out_read_handle, int32_t interrupt_id, InterruptType interrupt_type);
+Result QueryPhysicalAddress64(Core::System& system, lp64::PhysicalMemoryInfo* out_info, uint64_t address);
+Result QueryIoMapping64(Core::System& system, uint64_t* out_address, uint64_t* out_size, uint64_t physical_address, uint64_t size);
+Result CreateDeviceAddressSpace64(Core::System& system, Handle* out_handle, uint64_t das_address, uint64_t das_size);
+Result AttachDeviceAddressSpace64(Core::System& system, DeviceName device_name, Handle das_handle);
+Result DetachDeviceAddressSpace64(Core::System& system, DeviceName device_name, Handle das_handle);
+Result MapDeviceAddressSpaceByForce64(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint64_t size, uint64_t device_address, uint32_t option);
+Result MapDeviceAddressSpaceAligned64(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint64_t size, uint64_t device_address, uint32_t option);
+Result UnmapDeviceAddressSpace64(Core::System& system, Handle das_handle, Handle process_handle, uint64_t process_address, uint64_t size, uint64_t device_address);
+Result InvalidateProcessDataCache64(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result StoreProcessDataCache64(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result FlushProcessDataCache64(Core::System& system, Handle process_handle, uint64_t address, uint64_t size);
+Result DebugActiveProcess64(Core::System& system, Handle* out_handle, uint64_t process_id);
+Result BreakDebugProcess64(Core::System& system, Handle debug_handle);
+Result TerminateDebugProcess64(Core::System& system, Handle debug_handle);
+Result GetDebugEvent64(Core::System& system, uint64_t out_info, Handle debug_handle);
+Result ContinueDebugEvent64(Core::System& system, Handle debug_handle, uint32_t flags, uint64_t thread_ids, int32_t num_thread_ids);
+Result GetProcessList64(Core::System& system, int32_t* out_num_processes, uint64_t out_process_ids, int32_t max_out_count);
+Result GetThreadList64(Core::System& system, int32_t* out_num_threads, uint64_t out_thread_ids, int32_t max_out_count, Handle debug_handle);
+Result GetDebugThreadContext64(Core::System& system, uint64_t out_context, Handle debug_handle, uint64_t thread_id, uint32_t context_flags);
+Result SetDebugThreadContext64(Core::System& system, Handle debug_handle, uint64_t thread_id, uint64_t context, uint32_t context_flags);
+Result QueryDebugProcessMemory64(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info, Handle process_handle, uint64_t address);
+Result ReadDebugProcessMemory64(Core::System& system, uint64_t buffer, Handle debug_handle, uint64_t address, uint64_t size);
+Result WriteDebugProcessMemory64(Core::System& system, Handle debug_handle, uint64_t buffer, uint64_t address, uint64_t size);
+Result SetHardwareBreakPoint64(Core::System& system, HardwareBreakPointRegisterName name, uint64_t flags, uint64_t value);
+Result GetDebugThreadParam64(Core::System& system, uint64_t* out_64, uint32_t* out_32, Handle debug_handle, uint64_t thread_id, DebugThreadParam param);
+Result GetSystemInfo64(Core::System& system, uint64_t* out, SystemInfoType info_type, Handle handle, uint64_t info_subtype);
+Result CreatePort64(Core::System& system, Handle* out_server_handle, Handle* out_client_handle, int32_t max_sessions, bool is_light, uint64_t name);
+Result ManageNamedPort64(Core::System& system, Handle* out_server_handle, uint64_t name, int32_t max_sessions);
+Result ConnectToPort64(Core::System& system, Handle* out_handle, Handle port);
+Result SetProcessMemoryPermission64(Core::System& system, Handle process_handle, uint64_t address, uint64_t size, MemoryPermission perm);
+Result MapProcessMemory64(Core::System& system, uint64_t dst_address, Handle process_handle, uint64_t src_address, uint64_t size);
+Result UnmapProcessMemory64(Core::System& system, uint64_t dst_address, Handle process_handle, uint64_t src_address, uint64_t size);
+Result QueryProcessMemory64(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info, Handle process_handle, uint64_t address);
+Result MapProcessCodeMemory64(Core::System& system, Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result UnmapProcessCodeMemory64(Core::System& system, Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);
+Result CreateProcess64(Core::System& system, Handle* out_handle, uint64_t parameters, uint64_t caps, int32_t num_caps);
+Result StartProcess64(Core::System& system, Handle process_handle, int32_t priority, int32_t core_id, uint64_t main_thread_stack_size);
+Result TerminateProcess64(Core::System& system, Handle process_handle);
+Result GetProcessInfo64(Core::System& system, int64_t* out_info, Handle process_handle, ProcessInfoType info_type);
+Result CreateResourceLimit64(Core::System& system, Handle* out_handle);
+Result SetResourceLimitLimitValue64(Core::System& system, Handle resource_limit_handle, LimitableResource which, int64_t limit_value);
+Result MapInsecureMemory64(Core::System& system, uint64_t address, uint64_t size);
+Result UnmapInsecureMemory64(Core::System& system, uint64_t address, uint64_t size);
+
+enum class SvcId : u32 {
+ SetHeapSize = 0x1,
+ SetMemoryPermission = 0x2,
+ SetMemoryAttribute = 0x3,
+ MapMemory = 0x4,
+ UnmapMemory = 0x5,
+ QueryMemory = 0x6,
+ ExitProcess = 0x7,
+ CreateThread = 0x8,
+ StartThread = 0x9,
+ ExitThread = 0xa,
+ SleepThread = 0xb,
+ GetThreadPriority = 0xc,
+ SetThreadPriority = 0xd,
+ GetThreadCoreMask = 0xe,
+ SetThreadCoreMask = 0xf,
+ GetCurrentProcessorNumber = 0x10,
+ SignalEvent = 0x11,
+ ClearEvent = 0x12,
+ MapSharedMemory = 0x13,
+ UnmapSharedMemory = 0x14,
+ CreateTransferMemory = 0x15,
+ CloseHandle = 0x16,
+ ResetSignal = 0x17,
+ WaitSynchronization = 0x18,
+ CancelSynchronization = 0x19,
+ ArbitrateLock = 0x1a,
+ ArbitrateUnlock = 0x1b,
+ WaitProcessWideKeyAtomic = 0x1c,
+ SignalProcessWideKey = 0x1d,
+ GetSystemTick = 0x1e,
+ ConnectToNamedPort = 0x1f,
+ SendSyncRequestLight = 0x20,
+ SendSyncRequest = 0x21,
+ SendSyncRequestWithUserBuffer = 0x22,
+ SendAsyncRequestWithUserBuffer = 0x23,
+ GetProcessId = 0x24,
+ GetThreadId = 0x25,
+ Break = 0x26,
+ OutputDebugString = 0x27,
+ ReturnFromException = 0x28,
+ GetInfo = 0x29,
+ FlushEntireDataCache = 0x2a,
+ FlushDataCache = 0x2b,
+ MapPhysicalMemory = 0x2c,
+ UnmapPhysicalMemory = 0x2d,
+ GetDebugFutureThreadInfo = 0x2e,
+ GetLastThreadInfo = 0x2f,
+ GetResourceLimitLimitValue = 0x30,
+ GetResourceLimitCurrentValue = 0x31,
+ SetThreadActivity = 0x32,
+ GetThreadContext3 = 0x33,
+ WaitForAddress = 0x34,
+ SignalToAddress = 0x35,
+ SynchronizePreemptionState = 0x36,
+ GetResourceLimitPeakValue = 0x37,
+ CreateIoPool = 0x39,
+ CreateIoRegion = 0x3a,
+ KernelDebug = 0x3c,
+ ChangeKernelTraceState = 0x3d,
+ CreateSession = 0x40,
+ AcceptSession = 0x41,
+ ReplyAndReceiveLight = 0x42,
+ ReplyAndReceive = 0x43,
+ ReplyAndReceiveWithUserBuffer = 0x44,
+ CreateEvent = 0x45,
+ MapIoRegion = 0x46,
+ UnmapIoRegion = 0x47,
+ MapPhysicalMemoryUnsafe = 0x48,
+ UnmapPhysicalMemoryUnsafe = 0x49,
+ SetUnsafeLimit = 0x4a,
+ CreateCodeMemory = 0x4b,
+ ControlCodeMemory = 0x4c,
+ SleepSystem = 0x4d,
+ ReadWriteRegister = 0x4e,
+ SetProcessActivity = 0x4f,
+ CreateSharedMemory = 0x50,
+ MapTransferMemory = 0x51,
+ UnmapTransferMemory = 0x52,
+ CreateInterruptEvent = 0x53,
+ QueryPhysicalAddress = 0x54,
+ QueryIoMapping = 0x55,
+ CreateDeviceAddressSpace = 0x56,
+ AttachDeviceAddressSpace = 0x57,
+ DetachDeviceAddressSpace = 0x58,
+ MapDeviceAddressSpaceByForce = 0x59,
+ MapDeviceAddressSpaceAligned = 0x5a,
+ UnmapDeviceAddressSpace = 0x5c,
+ InvalidateProcessDataCache = 0x5d,
+ StoreProcessDataCache = 0x5e,
+ FlushProcessDataCache = 0x5f,
+ DebugActiveProcess = 0x60,
+ BreakDebugProcess = 0x61,
+ TerminateDebugProcess = 0x62,
+ GetDebugEvent = 0x63,
+ ContinueDebugEvent = 0x64,
+ GetProcessList = 0x65,
+ GetThreadList = 0x66,
+ GetDebugThreadContext = 0x67,
+ SetDebugThreadContext = 0x68,
+ QueryDebugProcessMemory = 0x69,
+ ReadDebugProcessMemory = 0x6a,
+ WriteDebugProcessMemory = 0x6b,
+ SetHardwareBreakPoint = 0x6c,
+ GetDebugThreadParam = 0x6d,
+ GetSystemInfo = 0x6f,
+ CreatePort = 0x70,
+ ManageNamedPort = 0x71,
+ ConnectToPort = 0x72,
+ SetProcessMemoryPermission = 0x73,
+ MapProcessMemory = 0x74,
+ UnmapProcessMemory = 0x75,
+ QueryProcessMemory = 0x76,
+ MapProcessCodeMemory = 0x77,
+ UnmapProcessCodeMemory = 0x78,
+ CreateProcess = 0x79,
+ StartProcess = 0x7a,
+ TerminateProcess = 0x7b,
+ GetProcessInfo = 0x7c,
+ CreateResourceLimit = 0x7d,
+ SetResourceLimitLimitValue = 0x7e,
+ CallSecureMonitor = 0x7f,
+ MapInsecureMemory = 0x90,
+ UnmapInsecureMemory = 0x91,
+};
+// clang-format on
+
+// Custom ABI.
+Result ReplyAndReceiveLight(Core::System& system, Handle handle, uint32_t* args);
+Result ReplyAndReceiveLight64From32(Core::System& system, Handle handle, uint32_t* args);
+Result ReplyAndReceiveLight64(Core::System& system, Handle handle, uint32_t* args);
+
+Result SendSyncRequestLight(Core::System& system, Handle session_handle, uint32_t* args);
+Result SendSyncRequestLight64From32(Core::System& system, Handle session_handle, uint32_t* args);
+Result SendSyncRequestLight64(Core::System& system, Handle session_handle, uint32_t* args);
+
+void CallSecureMonitor(Core::System& system, lp64::SecureMonitorArguments* args);
+void CallSecureMonitor64From32(Core::System& system, ilp32::SecureMonitorArguments* args);
+void CallSecureMonitor64(Core::System& system, lp64::SecureMonitorArguments* args);
+
+// Defined in svc_light_ipc.cpp.
+void SvcWrap_ReplyAndReceiveLight64From32(Core::System& system);
+void SvcWrap_ReplyAndReceiveLight64(Core::System& system);
+
+void SvcWrap_SendSyncRequestLight64From32(Core::System& system);
+void SvcWrap_SendSyncRequestLight64(Core::System& system);
+
+// Defined in svc_secure_monitor_call.cpp.
+void SvcWrap_CallSecureMonitor64From32(Core::System& system);
+void SvcWrap_CallSecureMonitor64(Core::System& system);
+
+// Perform a supervisor call by index.
+void Call(Core::System& system, u32 imm);
} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_activity.cpp b/src/core/hle/kernel/svc/svc_activity.cpp
new file mode 100644
index 000000000..63bc08555
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_activity.cpp
@@ -0,0 +1,66 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_thread.h"
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+/// Sets the thread activity
+Result SetThreadActivity(Core::System& system, Handle thread_handle,
+ ThreadActivity thread_activity) {
+ LOG_DEBUG(Kernel_SVC, "called, handle=0x{:08X}, activity=0x{:08X}", thread_handle,
+ thread_activity);
+
+ // Validate the activity.
+ static constexpr auto IsValidThreadActivity = [](ThreadActivity activity) {
+ return activity == ThreadActivity::Runnable || activity == ThreadActivity::Paused;
+ };
+ R_UNLESS(IsValidThreadActivity(thread_activity), ResultInvalidEnumValue);
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(thread_handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Check that the activity is being set on a non-current thread for the current process.
+ R_UNLESS(thread->GetOwnerProcess() == GetCurrentProcessPointer(system.Kernel()),
+ ResultInvalidHandle);
+ R_UNLESS(thread.GetPointerUnsafe() != GetCurrentThreadPointer(system.Kernel()), ResultBusy);
+
+ // Set the activity.
+ R_TRY(thread->SetActivity(thread_activity));
+
+ return ResultSuccess;
+}
+
+Result SetProcessActivity(Core::System& system, Handle process_handle,
+ ProcessActivity process_activity) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SetThreadActivity64(Core::System& system, Handle thread_handle,
+ ThreadActivity thread_activity) {
+ return SetThreadActivity(system, thread_handle, thread_activity);
+}
+
+Result SetProcessActivity64(Core::System& system, Handle process_handle,
+ ProcessActivity process_activity) {
+ return SetProcessActivity(system, process_handle, process_activity);
+}
+
+Result SetThreadActivity64From32(Core::System& system, Handle thread_handle,
+ ThreadActivity thread_activity) {
+ return SetThreadActivity(system, thread_handle, thread_activity);
+}
+
+Result SetProcessActivity64From32(Core::System& system, Handle process_handle,
+ ProcessActivity process_activity) {
+ return SetProcessActivity(system, process_handle, process_activity);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_address_arbiter.cpp b/src/core/hle/kernel/svc/svc_address_arbiter.cpp
new file mode 100644
index 000000000..04cc5ea64
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_address_arbiter.cpp
@@ -0,0 +1,105 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_memory_layout.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+#include "core/hle/kernel/svc_types.h"
+
+namespace Kernel::Svc {
+namespace {
+
+constexpr bool IsValidSignalType(Svc::SignalType type) {
+ switch (type) {
+ case Svc::SignalType::Signal:
+ case Svc::SignalType::SignalAndIncrementIfEqual:
+ case Svc::SignalType::SignalAndModifyByWaitingCountIfEqual:
+ return true;
+ default:
+ return false;
+ }
+}
+
+constexpr bool IsValidArbitrationType(Svc::ArbitrationType type) {
+ switch (type) {
+ case Svc::ArbitrationType::WaitIfLessThan:
+ case Svc::ArbitrationType::DecrementAndWaitIfLessThan:
+ case Svc::ArbitrationType::WaitIfEqual:
+ return true;
+ default:
+ return false;
+ }
+}
+
+} // namespace
+
+// Wait for an address (via Address Arbiter)
+Result WaitForAddress(Core::System& system, u64 address, ArbitrationType arb_type, s32 value,
+ s64 timeout_ns) {
+ LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, arb_type=0x{:X}, value=0x{:X}, timeout_ns={}",
+ address, arb_type, value, timeout_ns);
+
+ // Validate input.
+ R_UNLESS(!IsKernelAddress(address), ResultInvalidCurrentMemory);
+ R_UNLESS(Common::IsAligned(address, sizeof(s32)), ResultInvalidAddress);
+ R_UNLESS(IsValidArbitrationType(arb_type), ResultInvalidEnumValue);
+
+ // Convert timeout from nanoseconds to ticks.
+ s64 timeout{};
+ if (timeout_ns > 0) {
+ const s64 offset_tick(timeout_ns);
+ if (offset_tick > 0) {
+ timeout = offset_tick + 2;
+ if (timeout <= 0) {
+ timeout = std::numeric_limits<s64>::max();
+ }
+ } else {
+ timeout = std::numeric_limits<s64>::max();
+ }
+ } else {
+ timeout = timeout_ns;
+ }
+
+ R_RETURN(
+ GetCurrentProcess(system.Kernel()).WaitAddressArbiter(address, arb_type, value, timeout));
+}
+
+// Signals to an address (via Address Arbiter)
+Result SignalToAddress(Core::System& system, u64 address, SignalType signal_type, s32 value,
+ s32 count) {
+ LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, signal_type=0x{:X}, value=0x{:X}, count=0x{:X}",
+ address, signal_type, value, count);
+
+ // Validate input.
+ R_UNLESS(!IsKernelAddress(address), ResultInvalidCurrentMemory);
+ R_UNLESS(Common::IsAligned(address, sizeof(s32)), ResultInvalidAddress);
+ R_UNLESS(IsValidSignalType(signal_type), ResultInvalidEnumValue);
+
+ R_RETURN(GetCurrentProcess(system.Kernel())
+ .SignalAddressArbiter(address, signal_type, value, count));
+}
+
+Result WaitForAddress64(Core::System& system, u64 address, ArbitrationType arb_type, s32 value,
+ s64 timeout_ns) {
+ R_RETURN(WaitForAddress(system, address, arb_type, value, timeout_ns));
+}
+
+Result SignalToAddress64(Core::System& system, u64 address, SignalType signal_type, s32 value,
+ s32 count) {
+ R_RETURN(SignalToAddress(system, address, signal_type, value, count));
+}
+
+Result WaitForAddress64From32(Core::System& system, u32 address, ArbitrationType arb_type,
+ s32 value, s64 timeout_ns) {
+ R_RETURN(WaitForAddress(system, address, arb_type, value, timeout_ns));
+}
+
+Result SignalToAddress64From32(Core::System& system, u32 address, SignalType signal_type, s32 value,
+ s32 count) {
+ R_RETURN(SignalToAddress(system, address, signal_type, value, count));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_address_translation.cpp b/src/core/hle/kernel/svc/svc_address_translation.cpp
new file mode 100644
index 000000000..e65a11cda
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_address_translation.cpp
@@ -0,0 +1,50 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result QueryPhysicalAddress(Core::System& system, lp64::PhysicalMemoryInfo* out_info,
+ uint64_t address) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result QueryIoMapping(Core::System& system, uint64_t* out_address, uint64_t* out_size,
+ uint64_t physical_address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result QueryPhysicalAddress64(Core::System& system, lp64::PhysicalMemoryInfo* out_info,
+ uint64_t address) {
+ R_RETURN(QueryPhysicalAddress(system, out_info, address));
+}
+
+Result QueryIoMapping64(Core::System& system, uint64_t* out_address, uint64_t* out_size,
+ uint64_t physical_address, uint64_t size) {
+ R_RETURN(QueryIoMapping(system, out_address, out_size, physical_address, size));
+}
+
+Result QueryPhysicalAddress64From32(Core::System& system, ilp32::PhysicalMemoryInfo* out_info,
+ uint32_t address) {
+ lp64::PhysicalMemoryInfo info{};
+ R_TRY(QueryPhysicalAddress(system, std::addressof(info), address));
+
+ *out_info = {
+ .physical_address = info.physical_address,
+ .virtual_address = static_cast<u32>(info.virtual_address),
+ .size = static_cast<u32>(info.size),
+ };
+ R_SUCCEED();
+}
+
+Result QueryIoMapping64From32(Core::System& system, uint64_t* out_address, uint64_t* out_size,
+ uint64_t physical_address, uint32_t size) {
+ R_RETURN(QueryIoMapping(system, reinterpret_cast<uint64_t*>(out_address),
+ reinterpret_cast<uint64_t*>(out_size), physical_address, size));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_cache.cpp b/src/core/hle/kernel/svc/svc_cache.cpp
new file mode 100644
index 000000000..082942dab
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_cache.cpp
@@ -0,0 +1,98 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+#include "core/hle/kernel/svc_types.h"
+
+namespace Kernel::Svc {
+
+void FlushEntireDataCache(Core::System& system) {
+ UNIMPLEMENTED();
+}
+
+Result FlushDataCache(Core::System& system, uint64_t address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result InvalidateProcessDataCache(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result StoreProcessDataCache(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result FlushProcessDataCache(Core::System& system, Handle process_handle, u64 address, u64 size) {
+ // Validate address/size.
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS(address == static_cast<uint64_t>(address), ResultInvalidCurrentMemory);
+ R_UNLESS(size == static_cast<uint64_t>(size), ResultInvalidCurrentMemory);
+
+ // Get the process from its handle.
+ KScopedAutoObject process =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KProcess>(process_handle);
+ R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
+
+ // Verify the region is within range.
+ auto& page_table = process->PageTable();
+ R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
+
+ // Perform the operation.
+ R_RETURN(GetCurrentMemory(system.Kernel()).FlushDataCache(address, size));
+}
+
+void FlushEntireDataCache64(Core::System& system) {
+ FlushEntireDataCache(system);
+}
+
+Result FlushDataCache64(Core::System& system, uint64_t address, uint64_t size) {
+ R_RETURN(FlushDataCache(system, address, size));
+}
+
+Result InvalidateProcessDataCache64(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(InvalidateProcessDataCache(system, process_handle, address, size));
+}
+
+Result StoreProcessDataCache64(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(StoreProcessDataCache(system, process_handle, address, size));
+}
+
+Result FlushProcessDataCache64(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(FlushProcessDataCache(system, process_handle, address, size));
+}
+
+void FlushEntireDataCache64From32(Core::System& system) {
+ return FlushEntireDataCache(system);
+}
+
+Result FlushDataCache64From32(Core::System& system, uint32_t address, uint32_t size) {
+ R_RETURN(FlushDataCache(system, address, size));
+}
+
+Result InvalidateProcessDataCache64From32(Core::System& system, Handle process_handle,
+ uint64_t address, uint64_t size) {
+ R_RETURN(InvalidateProcessDataCache(system, process_handle, address, size));
+}
+
+Result StoreProcessDataCache64From32(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(StoreProcessDataCache(system, process_handle, address, size));
+}
+
+Result FlushProcessDataCache64From32(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(FlushProcessDataCache(system, process_handle, address, size));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_code_memory.cpp b/src/core/hle/kernel/svc/svc_code_memory.cpp
new file mode 100644
index 000000000..687baff82
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_code_memory.cpp
@@ -0,0 +1,171 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_code_memory.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+namespace {
+
+constexpr bool IsValidMapCodeMemoryPermission(MemoryPermission perm) {
+ return perm == MemoryPermission::ReadWrite;
+}
+
+constexpr bool IsValidMapToOwnerCodeMemoryPermission(MemoryPermission perm) {
+ return perm == MemoryPermission::Read || perm == MemoryPermission::ReadExecute;
+}
+
+constexpr bool IsValidUnmapCodeMemoryPermission(MemoryPermission perm) {
+ return perm == MemoryPermission::None;
+}
+
+constexpr bool IsValidUnmapFromOwnerCodeMemoryPermission(MemoryPermission perm) {
+ return perm == MemoryPermission::None;
+}
+
+} // namespace
+
+Result CreateCodeMemory(Core::System& system, Handle* out, u64 address, uint64_t size) {
+ LOG_TRACE(Kernel_SVC, "called, address=0x{:X}, size=0x{:X}", address, size);
+
+ // Get kernel instance.
+ auto& kernel = system.Kernel();
+
+ // Validate address / size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+
+ // Create the code memory.
+
+ KCodeMemory* code_mem = KCodeMemory::Create(kernel);
+ R_UNLESS(code_mem != nullptr, ResultOutOfResource);
+ SCOPE_EXIT({ code_mem->Close(); });
+
+ // Verify that the region is in range.
+ R_UNLESS(GetCurrentProcess(system.Kernel()).PageTable().Contains(address, size),
+ ResultInvalidCurrentMemory);
+
+ // Initialize the code memory.
+ R_TRY(code_mem->Initialize(system.DeviceMemory(), address, size));
+
+ // Register the code memory.
+ KCodeMemory::Register(kernel, code_mem);
+
+ // Add the code memory to the handle table.
+ R_TRY(GetCurrentProcess(system.Kernel()).GetHandleTable().Add(out, code_mem));
+
+ R_SUCCEED();
+}
+
+Result ControlCodeMemory(Core::System& system, Handle code_memory_handle,
+ CodeMemoryOperation operation, u64 address, uint64_t size,
+ MemoryPermission perm) {
+
+ LOG_TRACE(Kernel_SVC,
+ "called, code_memory_handle=0x{:X}, operation=0x{:X}, address=0x{:X}, size=0x{:X}, "
+ "permission=0x{:X}",
+ code_memory_handle, operation, address, size, perm);
+
+ // Validate the address / size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+
+ // Get the code memory from its handle.
+ KScopedAutoObject code_mem = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KCodeMemory>(code_memory_handle);
+ R_UNLESS(code_mem.IsNotNull(), ResultInvalidHandle);
+
+ // NOTE: Here, Atmosphere extends the SVC to allow code memory operations on one's own process.
+ // This enables homebrew usage of these SVCs for JIT.
+
+ // Perform the operation.
+ switch (operation) {
+ case CodeMemoryOperation::Map: {
+ // Check that the region is in range.
+ R_UNLESS(GetCurrentProcess(system.Kernel())
+ .PageTable()
+ .CanContain(address, size, KMemoryState::CodeOut),
+ ResultInvalidMemoryRegion);
+
+ // Check the memory permission.
+ R_UNLESS(IsValidMapCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+
+ // Map the memory.
+ R_TRY(code_mem->Map(address, size));
+ } break;
+ case CodeMemoryOperation::Unmap: {
+ // Check that the region is in range.
+ R_UNLESS(GetCurrentProcess(system.Kernel())
+ .PageTable()
+ .CanContain(address, size, KMemoryState::CodeOut),
+ ResultInvalidMemoryRegion);
+
+ // Check the memory permission.
+ R_UNLESS(IsValidUnmapCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+
+ // Unmap the memory.
+ R_TRY(code_mem->Unmap(address, size));
+ } break;
+ case CodeMemoryOperation::MapToOwner: {
+ // Check that the region is in range.
+ R_UNLESS(code_mem->GetOwner()->PageTable().CanContain(address, size,
+ KMemoryState::GeneratedCode),
+ ResultInvalidMemoryRegion);
+
+ // Check the memory permission.
+ R_UNLESS(IsValidMapToOwnerCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+
+ // Map the memory to its owner.
+ R_TRY(code_mem->MapToOwner(address, size, perm));
+ } break;
+ case CodeMemoryOperation::UnmapFromOwner: {
+ // Check that the region is in range.
+ R_UNLESS(code_mem->GetOwner()->PageTable().CanContain(address, size,
+ KMemoryState::GeneratedCode),
+ ResultInvalidMemoryRegion);
+
+ // Check the memory permission.
+ R_UNLESS(IsValidUnmapFromOwnerCodeMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+
+ // Unmap the memory from its owner.
+ R_TRY(code_mem->UnmapFromOwner(address, size));
+ } break;
+ default:
+ R_THROW(ResultInvalidEnumValue);
+ }
+
+ R_SUCCEED();
+}
+
+Result CreateCodeMemory64(Core::System& system, Handle* out_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(CreateCodeMemory(system, out_handle, address, size));
+}
+
+Result ControlCodeMemory64(Core::System& system, Handle code_memory_handle,
+ CodeMemoryOperation operation, uint64_t address, uint64_t size,
+ MemoryPermission perm) {
+ R_RETURN(ControlCodeMemory(system, code_memory_handle, operation, address, size, perm));
+}
+
+Result CreateCodeMemory64From32(Core::System& system, Handle* out_handle, uint32_t address,
+ uint32_t size) {
+ R_RETURN(CreateCodeMemory(system, out_handle, address, size));
+}
+
+Result ControlCodeMemory64From32(Core::System& system, Handle code_memory_handle,
+ CodeMemoryOperation operation, uint64_t address, uint64_t size,
+ MemoryPermission perm) {
+ R_RETURN(ControlCodeMemory(system, code_memory_handle, operation, address, size, perm));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_condition_variable.cpp b/src/core/hle/kernel/svc/svc_condition_variable.cpp
new file mode 100644
index 000000000..ca120d67e
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_condition_variable.cpp
@@ -0,0 +1,72 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_memory_layout.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+/// Wait process wide key atomic
+Result WaitProcessWideKeyAtomic(Core::System& system, u64 address, u64 cv_key, u32 tag,
+ s64 timeout_ns) {
+ LOG_TRACE(Kernel_SVC, "called address={:X}, cv_key={:X}, tag=0x{:08X}, timeout_ns={}", address,
+ cv_key, tag, timeout_ns);
+
+ // Validate input.
+ R_UNLESS(!IsKernelAddress(address), ResultInvalidCurrentMemory);
+ R_UNLESS(Common::IsAligned(address, sizeof(s32)), ResultInvalidAddress);
+
+ // Convert timeout from nanoseconds to ticks.
+ s64 timeout{};
+ if (timeout_ns > 0) {
+ const s64 offset_tick(timeout_ns);
+ if (offset_tick > 0) {
+ timeout = offset_tick + 2;
+ if (timeout <= 0) {
+ timeout = std::numeric_limits<s64>::max();
+ }
+ } else {
+ timeout = std::numeric_limits<s64>::max();
+ }
+ } else {
+ timeout = timeout_ns;
+ }
+
+ // Wait on the condition variable.
+ R_RETURN(
+ GetCurrentProcess(system.Kernel())
+ .WaitConditionVariable(address, Common::AlignDown(cv_key, sizeof(u32)), tag, timeout));
+}
+
+/// Signal process wide key
+void SignalProcessWideKey(Core::System& system, u64 cv_key, s32 count) {
+ LOG_TRACE(Kernel_SVC, "called, cv_key=0x{:X}, count=0x{:08X}", cv_key, count);
+
+ // Signal the condition variable.
+ return GetCurrentProcess(system.Kernel())
+ .SignalConditionVariable(Common::AlignDown(cv_key, sizeof(u32)), count);
+}
+
+Result WaitProcessWideKeyAtomic64(Core::System& system, uint64_t address, uint64_t cv_key,
+ uint32_t tag, int64_t timeout_ns) {
+ R_RETURN(WaitProcessWideKeyAtomic(system, address, cv_key, tag, timeout_ns));
+}
+
+void SignalProcessWideKey64(Core::System& system, uint64_t cv_key, int32_t count) {
+ SignalProcessWideKey(system, cv_key, count);
+}
+
+Result WaitProcessWideKeyAtomic64From32(Core::System& system, uint32_t address, uint32_t cv_key,
+ uint32_t tag, int64_t timeout_ns) {
+ R_RETURN(WaitProcessWideKeyAtomic(system, address, cv_key, tag, timeout_ns));
+}
+
+void SignalProcessWideKey64From32(Core::System& system, uint32_t cv_key, int32_t count) {
+ SignalProcessWideKey(system, cv_key, count);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_debug.cpp b/src/core/hle/kernel/svc/svc_debug.cpp
new file mode 100644
index 000000000..a4d1f700e
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_debug.cpp
@@ -0,0 +1,194 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result DebugActiveProcess(Core::System& system, Handle* out_handle, uint64_t process_id) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result BreakDebugProcess(Core::System& system, Handle debug_handle) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result TerminateDebugProcess(Core::System& system, Handle debug_handle) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result GetDebugEvent(Core::System& system, uint64_t out_info, Handle debug_handle) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result ContinueDebugEvent(Core::System& system, Handle debug_handle, uint32_t flags,
+ uint64_t user_thread_ids, int32_t num_thread_ids) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result GetDebugThreadContext(Core::System& system, uint64_t out_context, Handle debug_handle,
+ uint64_t thread_id, uint32_t context_flags) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SetDebugThreadContext(Core::System& system, Handle debug_handle, uint64_t thread_id,
+ uint64_t user_context, uint32_t context_flags) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result QueryDebugProcessMemory(Core::System& system, uint64_t out_memory_info,
+ PageInfo* out_page_info, Handle process_handle, uint64_t address) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result ReadDebugProcessMemory(Core::System& system, uint64_t buffer, Handle debug_handle,
+ uint64_t address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result WriteDebugProcessMemory(Core::System& system, Handle debug_handle, uint64_t buffer,
+ uint64_t address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SetHardwareBreakPoint(Core::System& system, HardwareBreakPointRegisterName name,
+ uint64_t flags, uint64_t value) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result GetDebugThreadParam(Core::System& system, uint64_t* out_64, uint32_t* out_32,
+ Handle debug_handle, uint64_t thread_id, DebugThreadParam param) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result DebugActiveProcess64(Core::System& system, Handle* out_handle, uint64_t process_id) {
+ R_RETURN(DebugActiveProcess(system, out_handle, process_id));
+}
+
+Result BreakDebugProcess64(Core::System& system, Handle debug_handle) {
+ R_RETURN(BreakDebugProcess(system, debug_handle));
+}
+
+Result TerminateDebugProcess64(Core::System& system, Handle debug_handle) {
+ R_RETURN(TerminateDebugProcess(system, debug_handle));
+}
+
+Result GetDebugEvent64(Core::System& system, uint64_t out_info, Handle debug_handle) {
+ R_RETURN(GetDebugEvent(system, out_info, debug_handle));
+}
+
+Result ContinueDebugEvent64(Core::System& system, Handle debug_handle, uint32_t flags,
+ uint64_t thread_ids, int32_t num_thread_ids) {
+ R_RETURN(ContinueDebugEvent(system, debug_handle, flags, thread_ids, num_thread_ids));
+}
+
+Result GetDebugThreadContext64(Core::System& system, uint64_t out_context, Handle debug_handle,
+ uint64_t thread_id, uint32_t context_flags) {
+ R_RETURN(GetDebugThreadContext(system, out_context, debug_handle, thread_id, context_flags));
+}
+
+Result SetDebugThreadContext64(Core::System& system, Handle debug_handle, uint64_t thread_id,
+ uint64_t context, uint32_t context_flags) {
+ R_RETURN(SetDebugThreadContext(system, debug_handle, thread_id, context, context_flags));
+}
+
+Result QueryDebugProcessMemory64(Core::System& system, uint64_t out_memory_info,
+ PageInfo* out_page_info, Handle debug_handle, uint64_t address) {
+ R_RETURN(
+ QueryDebugProcessMemory(system, out_memory_info, out_page_info, debug_handle, address));
+}
+
+Result ReadDebugProcessMemory64(Core::System& system, uint64_t buffer, Handle debug_handle,
+ uint64_t address, uint64_t size) {
+ R_RETURN(ReadDebugProcessMemory(system, buffer, debug_handle, address, size));
+}
+
+Result WriteDebugProcessMemory64(Core::System& system, Handle debug_handle, uint64_t buffer,
+ uint64_t address, uint64_t size) {
+ R_RETURN(WriteDebugProcessMemory(system, debug_handle, buffer, address, size));
+}
+
+Result SetHardwareBreakPoint64(Core::System& system, HardwareBreakPointRegisterName name,
+ uint64_t flags, uint64_t value) {
+ R_RETURN(SetHardwareBreakPoint(system, name, flags, value));
+}
+
+Result GetDebugThreadParam64(Core::System& system, uint64_t* out_64, uint32_t* out_32,
+ Handle debug_handle, uint64_t thread_id, DebugThreadParam param) {
+ R_RETURN(GetDebugThreadParam(system, out_64, out_32, debug_handle, thread_id, param));
+}
+
+Result DebugActiveProcess64From32(Core::System& system, Handle* out_handle, uint64_t process_id) {
+ R_RETURN(DebugActiveProcess(system, out_handle, process_id));
+}
+
+Result BreakDebugProcess64From32(Core::System& system, Handle debug_handle) {
+ R_RETURN(BreakDebugProcess(system, debug_handle));
+}
+
+Result TerminateDebugProcess64From32(Core::System& system, Handle debug_handle) {
+ R_RETURN(TerminateDebugProcess(system, debug_handle));
+}
+
+Result GetDebugEvent64From32(Core::System& system, uint32_t out_info, Handle debug_handle) {
+ R_RETURN(GetDebugEvent(system, out_info, debug_handle));
+}
+
+Result ContinueDebugEvent64From32(Core::System& system, Handle debug_handle, uint32_t flags,
+ uint32_t thread_ids, int32_t num_thread_ids) {
+ R_RETURN(ContinueDebugEvent(system, debug_handle, flags, thread_ids, num_thread_ids));
+}
+
+Result GetDebugThreadContext64From32(Core::System& system, uint32_t out_context,
+ Handle debug_handle, uint64_t thread_id,
+ uint32_t context_flags) {
+ R_RETURN(GetDebugThreadContext(system, out_context, debug_handle, thread_id, context_flags));
+}
+
+Result SetDebugThreadContext64From32(Core::System& system, Handle debug_handle, uint64_t thread_id,
+ uint32_t context, uint32_t context_flags) {
+ R_RETURN(SetDebugThreadContext(system, debug_handle, thread_id, context, context_flags));
+}
+
+Result QueryDebugProcessMemory64From32(Core::System& system, uint32_t out_memory_info,
+ PageInfo* out_page_info, Handle debug_handle,
+ uint32_t address) {
+ R_RETURN(
+ QueryDebugProcessMemory(system, out_memory_info, out_page_info, debug_handle, address));
+}
+
+Result ReadDebugProcessMemory64From32(Core::System& system, uint32_t buffer, Handle debug_handle,
+ uint32_t address, uint32_t size) {
+ R_RETURN(ReadDebugProcessMemory(system, buffer, debug_handle, address, size));
+}
+
+Result WriteDebugProcessMemory64From32(Core::System& system, Handle debug_handle, uint32_t buffer,
+ uint32_t address, uint32_t size) {
+ R_RETURN(WriteDebugProcessMemory(system, debug_handle, buffer, address, size));
+}
+
+Result SetHardwareBreakPoint64From32(Core::System& system, HardwareBreakPointRegisterName name,
+ uint64_t flags, uint64_t value) {
+ R_RETURN(SetHardwareBreakPoint(system, name, flags, value));
+}
+
+Result GetDebugThreadParam64From32(Core::System& system, uint64_t* out_64, uint32_t* out_32,
+ Handle debug_handle, uint64_t thread_id,
+ DebugThreadParam param) {
+ R_RETURN(GetDebugThreadParam(system, out_64, out_32, debug_handle, thread_id, param));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_debug_string.cpp b/src/core/hle/kernel/svc/svc_debug_string.cpp
new file mode 100644
index 000000000..4c14ce668
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_debug_string.cpp
@@ -0,0 +1,30 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_thread.h"
+#include "core/hle/kernel/svc.h"
+#include "core/memory.h"
+
+namespace Kernel::Svc {
+
+/// Used to output a message on a debug hardware unit - does nothing on a retail unit
+Result OutputDebugString(Core::System& system, u64 address, u64 len) {
+ R_SUCCEED_IF(len == 0);
+
+ std::string str(len, '\0');
+ GetCurrentMemory(system.Kernel()).ReadBlock(address, str.data(), str.size());
+ LOG_DEBUG(Debug_Emulated, "{}", str);
+
+ R_SUCCEED();
+}
+
+Result OutputDebugString64(Core::System& system, uint64_t debug_str, uint64_t len) {
+ R_RETURN(OutputDebugString(system, debug_str, len));
+}
+
+Result OutputDebugString64From32(Core::System& system, uint32_t debug_str, uint32_t len) {
+ R_RETURN(OutputDebugString(system, debug_str, len));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_device_address_space.cpp b/src/core/hle/kernel/svc/svc_device_address_space.cpp
new file mode 100644
index 000000000..ec3143e67
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_device_address_space.cpp
@@ -0,0 +1,258 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/alignment.h"
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_device_address_space.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+constexpr inline u64 DeviceAddressSpaceAlignMask = (1ULL << 22) - 1;
+
+constexpr bool IsProcessAndDeviceAligned(uint64_t process_address, uint64_t device_address) {
+ return (process_address & DeviceAddressSpaceAlignMask) ==
+ (device_address & DeviceAddressSpaceAlignMask);
+}
+
+Result CreateDeviceAddressSpace(Core::System& system, Handle* out, uint64_t das_address,
+ uint64_t das_size) {
+ // Validate input.
+ R_UNLESS(Common::IsAligned(das_address, PageSize), ResultInvalidMemoryRegion);
+ R_UNLESS(Common::IsAligned(das_size, PageSize), ResultInvalidMemoryRegion);
+ R_UNLESS(das_size > 0, ResultInvalidMemoryRegion);
+ R_UNLESS((das_address < das_address + das_size), ResultInvalidMemoryRegion);
+
+ // Create the device address space.
+ KDeviceAddressSpace* das = KDeviceAddressSpace::Create(system.Kernel());
+ R_UNLESS(das != nullptr, ResultOutOfResource);
+ SCOPE_EXIT({ das->Close(); });
+
+ // Initialize the device address space.
+ R_TRY(das->Initialize(das_address, das_size));
+
+ // Register the device address space.
+ KDeviceAddressSpace::Register(system.Kernel(), das);
+
+ // Add to the handle table.
+ R_TRY(GetCurrentProcess(system.Kernel()).GetHandleTable().Add(out, das));
+
+ R_SUCCEED();
+}
+
+Result AttachDeviceAddressSpace(Core::System& system, DeviceName device_name, Handle das_handle) {
+ // Get the device address space.
+ KScopedAutoObject das = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KDeviceAddressSpace>(das_handle);
+ R_UNLESS(das.IsNotNull(), ResultInvalidHandle);
+
+ // Attach.
+ R_RETURN(das->Attach(device_name));
+}
+
+Result DetachDeviceAddressSpace(Core::System& system, DeviceName device_name, Handle das_handle) {
+ // Get the device address space.
+ KScopedAutoObject das = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KDeviceAddressSpace>(das_handle);
+ R_UNLESS(das.IsNotNull(), ResultInvalidHandle);
+
+ // Detach.
+ R_RETURN(das->Detach(device_name));
+}
+
+constexpr bool IsValidDeviceMemoryPermission(MemoryPermission device_perm) {
+ switch (device_perm) {
+ case MemoryPermission::Read:
+ case MemoryPermission::Write:
+ case MemoryPermission::ReadWrite:
+ return true;
+ default:
+ return false;
+ }
+}
+
+Result MapDeviceAddressSpaceByForce(Core::System& system, Handle das_handle, Handle process_handle,
+ uint64_t process_address, uint64_t size,
+ uint64_t device_address, u32 option) {
+ // Decode the option.
+ const MapDeviceAddressSpaceOption option_pack{option};
+ const auto device_perm = option_pack.permission;
+ const auto reserved = option_pack.reserved;
+
+ // Validate input.
+ R_UNLESS(Common::IsAligned(process_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(device_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory);
+ R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion);
+ R_UNLESS((process_address == static_cast<uint64_t>(process_address)),
+ ResultInvalidCurrentMemory);
+ R_UNLESS(IsValidDeviceMemoryPermission(device_perm), ResultInvalidNewMemoryPermission);
+ R_UNLESS(reserved == 0, ResultInvalidEnumValue);
+
+ // Get the device address space.
+ KScopedAutoObject das = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KDeviceAddressSpace>(das_handle);
+ R_UNLESS(das.IsNotNull(), ResultInvalidHandle);
+
+ // Get the process.
+ KScopedAutoObject process =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KProcess>(process_handle);
+ R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
+
+ // Validate that the process address is within range.
+ auto& page_table = process->PageTable();
+ R_UNLESS(page_table.Contains(process_address, size), ResultInvalidCurrentMemory);
+
+ // Map.
+ R_RETURN(
+ das->MapByForce(std::addressof(page_table), process_address, size, device_address, option));
+}
+
+Result MapDeviceAddressSpaceAligned(Core::System& system, Handle das_handle, Handle process_handle,
+ uint64_t process_address, uint64_t size,
+ uint64_t device_address, u32 option) {
+ // Decode the option.
+ const MapDeviceAddressSpaceOption option_pack{option};
+ const auto device_perm = option_pack.permission;
+ const auto reserved = option_pack.reserved;
+
+ // Validate input.
+ R_UNLESS(Common::IsAligned(process_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(device_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(IsProcessAndDeviceAligned(process_address, device_address), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory);
+ R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion);
+ R_UNLESS((process_address == static_cast<uint64_t>(process_address)),
+ ResultInvalidCurrentMemory);
+ R_UNLESS(IsValidDeviceMemoryPermission(device_perm), ResultInvalidNewMemoryPermission);
+ R_UNLESS(reserved == 0, ResultInvalidEnumValue);
+
+ // Get the device address space.
+ KScopedAutoObject das = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KDeviceAddressSpace>(das_handle);
+ R_UNLESS(das.IsNotNull(), ResultInvalidHandle);
+
+ // Get the process.
+ KScopedAutoObject process =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KProcess>(process_handle);
+ R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
+
+ // Validate that the process address is within range.
+ auto& page_table = process->PageTable();
+ R_UNLESS(page_table.Contains(process_address, size), ResultInvalidCurrentMemory);
+
+ // Map.
+ R_RETURN(
+ das->MapAligned(std::addressof(page_table), process_address, size, device_address, option));
+}
+
+Result UnmapDeviceAddressSpace(Core::System& system, Handle das_handle, Handle process_handle,
+ uint64_t process_address, uint64_t size, uint64_t device_address) {
+ // Validate input.
+ R_UNLESS(Common::IsAligned(process_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(device_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((process_address < process_address + size), ResultInvalidCurrentMemory);
+ R_UNLESS((device_address < device_address + size), ResultInvalidMemoryRegion);
+ R_UNLESS((process_address == static_cast<uint64_t>(process_address)),
+ ResultInvalidCurrentMemory);
+
+ // Get the device address space.
+ KScopedAutoObject das = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KDeviceAddressSpace>(das_handle);
+ R_UNLESS(das.IsNotNull(), ResultInvalidHandle);
+
+ // Get the process.
+ KScopedAutoObject process =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KProcess>(process_handle);
+ R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
+
+ // Validate that the process address is within range.
+ auto& page_table = process->PageTable();
+ R_UNLESS(page_table.Contains(process_address, size), ResultInvalidCurrentMemory);
+
+ R_RETURN(das->Unmap(std::addressof(page_table), process_address, size, device_address));
+}
+
+Result CreateDeviceAddressSpace64(Core::System& system, Handle* out_handle, uint64_t das_address,
+ uint64_t das_size) {
+ R_RETURN(CreateDeviceAddressSpace(system, out_handle, das_address, das_size));
+}
+
+Result AttachDeviceAddressSpace64(Core::System& system, DeviceName device_name, Handle das_handle) {
+ R_RETURN(AttachDeviceAddressSpace(system, device_name, das_handle));
+}
+
+Result DetachDeviceAddressSpace64(Core::System& system, DeviceName device_name, Handle das_handle) {
+ R_RETURN(DetachDeviceAddressSpace(system, device_name, das_handle));
+}
+
+Result MapDeviceAddressSpaceByForce64(Core::System& system, Handle das_handle,
+ Handle process_handle, uint64_t process_address,
+ uint64_t size, uint64_t device_address, u32 option) {
+ R_RETURN(MapDeviceAddressSpaceByForce(system, das_handle, process_handle, process_address, size,
+ device_address, option));
+}
+
+Result MapDeviceAddressSpaceAligned64(Core::System& system, Handle das_handle,
+ Handle process_handle, uint64_t process_address,
+ uint64_t size, uint64_t device_address, u32 option) {
+ R_RETURN(MapDeviceAddressSpaceAligned(system, das_handle, process_handle, process_address, size,
+ device_address, option));
+}
+
+Result UnmapDeviceAddressSpace64(Core::System& system, Handle das_handle, Handle process_handle,
+ uint64_t process_address, uint64_t size, uint64_t device_address) {
+ R_RETURN(UnmapDeviceAddressSpace(system, das_handle, process_handle, process_address, size,
+ device_address));
+}
+
+Result CreateDeviceAddressSpace64From32(Core::System& system, Handle* out_handle,
+ uint64_t das_address, uint64_t das_size) {
+ R_RETURN(CreateDeviceAddressSpace(system, out_handle, das_address, das_size));
+}
+
+Result AttachDeviceAddressSpace64From32(Core::System& system, DeviceName device_name,
+ Handle das_handle) {
+ R_RETURN(AttachDeviceAddressSpace(system, device_name, das_handle));
+}
+
+Result DetachDeviceAddressSpace64From32(Core::System& system, DeviceName device_name,
+ Handle das_handle) {
+ R_RETURN(DetachDeviceAddressSpace(system, device_name, das_handle));
+}
+
+Result MapDeviceAddressSpaceByForce64From32(Core::System& system, Handle das_handle,
+ Handle process_handle, uint64_t process_address,
+ uint32_t size, uint64_t device_address, u32 option) {
+ R_RETURN(MapDeviceAddressSpaceByForce(system, das_handle, process_handle, process_address, size,
+ device_address, option));
+}
+
+Result MapDeviceAddressSpaceAligned64From32(Core::System& system, Handle das_handle,
+ Handle process_handle, uint64_t process_address,
+ uint32_t size, uint64_t device_address, u32 option) {
+ R_RETURN(MapDeviceAddressSpaceAligned(system, das_handle, process_handle, process_address, size,
+ device_address, option));
+}
+
+Result UnmapDeviceAddressSpace64From32(Core::System& system, Handle das_handle,
+ Handle process_handle, uint64_t process_address,
+ uint32_t size, uint64_t device_address) {
+ R_RETURN(UnmapDeviceAddressSpace(system, das_handle, process_handle, process_address, size,
+ device_address));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_event.cpp b/src/core/hle/kernel/svc/svc_event.cpp
new file mode 100644
index 000000000..901202e6a
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_event.cpp
@@ -0,0 +1,120 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_scoped_resource_reservation.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+Result SignalEvent(Core::System& system, Handle event_handle) {
+ LOG_DEBUG(Kernel_SVC, "called, event_handle=0x{:08X}", event_handle);
+
+ // Get the current handle table.
+ const KHandleTable& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+
+ // Get the event.
+ KScopedAutoObject event = handle_table.GetObject<KEvent>(event_handle);
+ R_UNLESS(event.IsNotNull(), ResultInvalidHandle);
+
+ R_RETURN(event->Signal());
+}
+
+Result ClearEvent(Core::System& system, Handle event_handle) {
+ LOG_TRACE(Kernel_SVC, "called, event_handle=0x{:08X}", event_handle);
+
+ // Get the current handle table.
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+
+ // Try to clear the writable event.
+ {
+ KScopedAutoObject event = handle_table.GetObject<KEvent>(event_handle);
+ if (event.IsNotNull()) {
+ R_RETURN(event->Clear());
+ }
+ }
+
+ // Try to clear the readable event.
+ {
+ KScopedAutoObject readable_event = handle_table.GetObject<KReadableEvent>(event_handle);
+ if (readable_event.IsNotNull()) {
+ R_RETURN(readable_event->Clear());
+ }
+ }
+
+ R_THROW(ResultInvalidHandle);
+}
+
+Result CreateEvent(Core::System& system, Handle* out_write, Handle* out_read) {
+ LOG_DEBUG(Kernel_SVC, "called");
+
+ // Get the kernel reference and handle table.
+ auto& kernel = system.Kernel();
+ auto& handle_table = GetCurrentProcess(kernel).GetHandleTable();
+
+ // Reserve a new event from the process resource limit
+ KScopedResourceReservation event_reservation(GetCurrentProcessPointer(kernel),
+ LimitableResource::EventCountMax);
+ R_UNLESS(event_reservation.Succeeded(), ResultLimitReached);
+
+ // Create a new event.
+ KEvent* event = KEvent::Create(kernel);
+ R_UNLESS(event != nullptr, ResultOutOfResource);
+
+ // Initialize the event.
+ event->Initialize(GetCurrentProcessPointer(kernel));
+
+ // Commit the thread reservation.
+ event_reservation.Commit();
+
+ // Ensure that we clean up the event (and its only references are handle table) on function end.
+ SCOPE_EXIT({
+ event->GetReadableEvent().Close();
+ event->Close();
+ });
+
+ // Register the event.
+ KEvent::Register(kernel, event);
+
+ // Add the event to the handle table.
+ R_TRY(handle_table.Add(out_write, event));
+
+ // Ensure that we maintain a clean handle state on exit.
+ ON_RESULT_FAILURE {
+ handle_table.Remove(*out_write);
+ };
+
+ // Add the readable event to the handle table.
+ R_RETURN(handle_table.Add(out_read, std::addressof(event->GetReadableEvent())));
+}
+
+Result SignalEvent64(Core::System& system, Handle event_handle) {
+ R_RETURN(SignalEvent(system, event_handle));
+}
+
+Result ClearEvent64(Core::System& system, Handle event_handle) {
+ R_RETURN(ClearEvent(system, event_handle));
+}
+
+Result CreateEvent64(Core::System& system, Handle* out_write_handle, Handle* out_read_handle) {
+ R_RETURN(CreateEvent(system, out_write_handle, out_read_handle));
+}
+
+Result SignalEvent64From32(Core::System& system, Handle event_handle) {
+ R_RETURN(SignalEvent(system, event_handle));
+}
+
+Result ClearEvent64From32(Core::System& system, Handle event_handle) {
+ R_RETURN(ClearEvent(system, event_handle));
+}
+
+Result CreateEvent64From32(Core::System& system, Handle* out_write_handle,
+ Handle* out_read_handle) {
+ R_RETURN(CreateEvent(system, out_write_handle, out_read_handle));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_exception.cpp b/src/core/hle/kernel/svc/svc_exception.cpp
new file mode 100644
index 000000000..580cf2f75
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_exception.cpp
@@ -0,0 +1,137 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/debugger/debugger.h"
+#include "core/hle/kernel/k_thread.h"
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_types.h"
+#include "core/memory.h"
+#include "core/reporter.h"
+
+namespace Kernel::Svc {
+
+/// Break program execution
+void Break(Core::System& system, BreakReason reason, u64 info1, u64 info2) {
+ BreakReason break_reason =
+ reason & static_cast<BreakReason>(~BreakReason::NotificationOnlyFlag);
+ bool notification_only = True(reason & BreakReason::NotificationOnlyFlag);
+
+ bool has_dumped_buffer{};
+ std::vector<u8> debug_buffer;
+
+ const auto handle_debug_buffer = [&](u64 addr, u64 sz) {
+ if (sz == 0 || addr == 0 || has_dumped_buffer) {
+ return;
+ }
+
+ auto& memory = GetCurrentMemory(system.Kernel());
+
+ // This typically is an error code so we're going to assume this is the case
+ if (sz == sizeof(u32)) {
+ LOG_CRITICAL(Debug_Emulated, "debug_buffer_err_code={:X}", memory.Read32(addr));
+ } else {
+ // We don't know what's in here so we'll hexdump it
+ debug_buffer.resize(sz);
+ memory.ReadBlock(addr, debug_buffer.data(), sz);
+ std::string hexdump;
+ for (std::size_t i = 0; i < debug_buffer.size(); i++) {
+ hexdump += fmt::format("{:02X} ", debug_buffer[i]);
+ if (i != 0 && i % 16 == 0) {
+ hexdump += '\n';
+ }
+ }
+ LOG_CRITICAL(Debug_Emulated, "debug_buffer=\n{}", hexdump);
+ }
+ has_dumped_buffer = true;
+ };
+ switch (break_reason) {
+ case BreakReason::Panic:
+ LOG_CRITICAL(Debug_Emulated, "Userspace PANIC! info1=0x{:016X}, info2=0x{:016X}", info1,
+ info2);
+ handle_debug_buffer(info1, info2);
+ break;
+ case BreakReason::Assert:
+ LOG_CRITICAL(Debug_Emulated, "Userspace Assertion failed! info1=0x{:016X}, info2=0x{:016X}",
+ info1, info2);
+ handle_debug_buffer(info1, info2);
+ break;
+ case BreakReason::User:
+ LOG_WARNING(Debug_Emulated, "Userspace Break! 0x{:016X} with size 0x{:016X}", info1, info2);
+ handle_debug_buffer(info1, info2);
+ break;
+ case BreakReason::PreLoadDll:
+ LOG_INFO(Debug_Emulated,
+ "Userspace Attempting to load an NRO at 0x{:016X} with size 0x{:016X}", info1,
+ info2);
+ break;
+ case BreakReason::PostLoadDll:
+ LOG_INFO(Debug_Emulated, "Userspace Loaded an NRO at 0x{:016X} with size 0x{:016X}", info1,
+ info2);
+ break;
+ case BreakReason::PreUnloadDll:
+ LOG_INFO(Debug_Emulated,
+ "Userspace Attempting to unload an NRO at 0x{:016X} with size 0x{:016X}", info1,
+ info2);
+ break;
+ case BreakReason::PostUnloadDll:
+ LOG_INFO(Debug_Emulated, "Userspace Unloaded an NRO at 0x{:016X} with size 0x{:016X}",
+ info1, info2);
+ break;
+ case BreakReason::CppException:
+ LOG_CRITICAL(Debug_Emulated, "Signalling debugger. Uncaught C++ exception encountered.");
+ break;
+ default:
+ LOG_WARNING(
+ Debug_Emulated,
+ "Signalling debugger, Unknown break reason {:#X}, info1=0x{:016X}, info2=0x{:016X}",
+ reason, info1, info2);
+ handle_debug_buffer(info1, info2);
+ break;
+ }
+
+ system.GetReporter().SaveSvcBreakReport(
+ static_cast<u32>(reason), notification_only, info1, info2,
+ has_dumped_buffer ? std::make_optional(debug_buffer) : std::nullopt);
+
+ if (!notification_only) {
+ LOG_CRITICAL(
+ Debug_Emulated,
+ "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",
+ reason, info1, info2);
+
+ handle_debug_buffer(info1, info2);
+
+ auto* const current_thread = GetCurrentThreadPointer(system.Kernel());
+ const auto thread_processor_id = current_thread->GetActiveCore();
+ system.ArmInterface(static_cast<std::size_t>(thread_processor_id)).LogBacktrace();
+ }
+
+ if (system.DebuggerEnabled()) {
+ auto* thread = system.Kernel().GetCurrentEmuThread();
+ system.GetDebugger().NotifyThreadStopped(thread);
+ thread->RequestSuspend(Kernel::SuspendType::Debug);
+ }
+}
+
+void ReturnFromException(Core::System& system, Result result) {
+ UNIMPLEMENTED();
+}
+
+void Break64(Core::System& system, BreakReason break_reason, uint64_t arg, uint64_t size) {
+ Break(system, break_reason, arg, size);
+}
+
+void Break64From32(Core::System& system, BreakReason break_reason, uint32_t arg, uint32_t size) {
+ Break(system, break_reason, arg, size);
+}
+
+void ReturnFromException64(Core::System& system, Result result) {
+ ReturnFromException(system, result);
+}
+
+void ReturnFromException64From32(Core::System& system, Result result) {
+ ReturnFromException(system, result);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_info.cpp b/src/core/hle/kernel/svc/svc_info.cpp
new file mode 100644
index 000000000..445cdd87b
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_info.cpp
@@ -0,0 +1,277 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/core_timing.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_resource_limit.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// Gets system/memory information for the current process
+Result GetInfo(Core::System& system, u64* result, InfoType info_id_type, Handle handle,
+ u64 info_sub_id) {
+ LOG_TRACE(Kernel_SVC, "called info_id=0x{:X}, info_sub_id=0x{:X}, handle=0x{:08X}",
+ info_id_type, info_sub_id, handle);
+
+ u32 info_id = static_cast<u32>(info_id_type);
+
+ switch (info_id_type) {
+ case InfoType::CoreMask:
+ case InfoType::PriorityMask:
+ case InfoType::AliasRegionAddress:
+ case InfoType::AliasRegionSize:
+ case InfoType::HeapRegionAddress:
+ case InfoType::HeapRegionSize:
+ case InfoType::AslrRegionAddress:
+ case InfoType::AslrRegionSize:
+ case InfoType::StackRegionAddress:
+ case InfoType::StackRegionSize:
+ case InfoType::TotalMemorySize:
+ case InfoType::UsedMemorySize:
+ case InfoType::SystemResourceSizeTotal:
+ case InfoType::SystemResourceSizeUsed:
+ case InfoType::ProgramId:
+ case InfoType::UserExceptionContextAddress:
+ case InfoType::TotalNonSystemMemorySize:
+ case InfoType::UsedNonSystemMemorySize:
+ case InfoType::IsApplication:
+ case InfoType::FreeThreadCount: {
+ R_UNLESS(info_sub_id == 0, ResultInvalidEnumValue);
+
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+ KScopedAutoObject process = handle_table.GetObject<KProcess>(handle);
+ R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
+
+ switch (info_id_type) {
+ case InfoType::CoreMask:
+ *result = process->GetCoreMask();
+ R_SUCCEED();
+
+ case InfoType::PriorityMask:
+ *result = process->GetPriorityMask();
+ R_SUCCEED();
+
+ case InfoType::AliasRegionAddress:
+ *result = GetInteger(process->PageTable().GetAliasRegionStart());
+ R_SUCCEED();
+
+ case InfoType::AliasRegionSize:
+ *result = process->PageTable().GetAliasRegionSize();
+ R_SUCCEED();
+
+ case InfoType::HeapRegionAddress:
+ *result = GetInteger(process->PageTable().GetHeapRegionStart());
+ R_SUCCEED();
+
+ case InfoType::HeapRegionSize:
+ *result = process->PageTable().GetHeapRegionSize();
+ R_SUCCEED();
+
+ case InfoType::AslrRegionAddress:
+ *result = GetInteger(process->PageTable().GetAliasCodeRegionStart());
+ R_SUCCEED();
+
+ case InfoType::AslrRegionSize:
+ *result = process->PageTable().GetAliasCodeRegionSize();
+ R_SUCCEED();
+
+ case InfoType::StackRegionAddress:
+ *result = GetInteger(process->PageTable().GetStackRegionStart());
+ R_SUCCEED();
+
+ case InfoType::StackRegionSize:
+ *result = process->PageTable().GetStackRegionSize();
+ R_SUCCEED();
+
+ case InfoType::TotalMemorySize:
+ *result = process->GetTotalPhysicalMemoryAvailable();
+ R_SUCCEED();
+
+ case InfoType::UsedMemorySize:
+ *result = process->GetTotalPhysicalMemoryUsed();
+ R_SUCCEED();
+
+ case InfoType::SystemResourceSizeTotal:
+ *result = process->GetSystemResourceSize();
+ R_SUCCEED();
+
+ case InfoType::SystemResourceSizeUsed:
+ LOG_WARNING(Kernel_SVC, "(STUBBED) Attempted to query system resource usage");
+ *result = process->GetSystemResourceUsage();
+ R_SUCCEED();
+
+ case InfoType::ProgramId:
+ *result = process->GetProgramId();
+ R_SUCCEED();
+
+ case InfoType::UserExceptionContextAddress:
+ *result = GetInteger(process->GetProcessLocalRegionAddress());
+ R_SUCCEED();
+
+ case InfoType::TotalNonSystemMemorySize:
+ *result = process->GetTotalPhysicalMemoryAvailableWithoutSystemResource();
+ R_SUCCEED();
+
+ case InfoType::UsedNonSystemMemorySize:
+ *result = process->GetTotalPhysicalMemoryUsedWithoutSystemResource();
+ R_SUCCEED();
+
+ case InfoType::IsApplication:
+ LOG_WARNING(Kernel_SVC, "(STUBBED) Assuming process is application");
+ *result = true;
+ R_SUCCEED();
+
+ case InfoType::FreeThreadCount:
+ *result = process->GetFreeThreadCount();
+ R_SUCCEED();
+
+ default:
+ break;
+ }
+
+ LOG_ERROR(Kernel_SVC, "Unimplemented svcGetInfo id=0x{:016X}", info_id);
+ R_THROW(ResultInvalidEnumValue);
+ }
+
+ case InfoType::DebuggerAttached:
+ *result = 0;
+ R_SUCCEED();
+
+ case InfoType::ResourceLimit: {
+ R_UNLESS(handle == 0, ResultInvalidHandle);
+ R_UNLESS(info_sub_id == 0, ResultInvalidCombination);
+
+ KProcess* const current_process = GetCurrentProcessPointer(system.Kernel());
+ KHandleTable& handle_table = current_process->GetHandleTable();
+ const auto resource_limit = current_process->GetResourceLimit();
+ if (!resource_limit) {
+ *result = Svc::InvalidHandle;
+ // Yes, the kernel considers this a successful operation.
+ R_SUCCEED();
+ }
+
+ Handle resource_handle{};
+ R_TRY(handle_table.Add(std::addressof(resource_handle), resource_limit));
+
+ *result = resource_handle;
+ R_SUCCEED();
+ }
+
+ case InfoType::RandomEntropy:
+ R_UNLESS(handle == 0, ResultInvalidHandle);
+ R_UNLESS(info_sub_id < KProcess::RANDOM_ENTROPY_SIZE, ResultInvalidCombination);
+
+ *result = GetCurrentProcess(system.Kernel()).GetRandomEntropy(info_sub_id);
+ R_SUCCEED();
+
+ case InfoType::InitialProcessIdRange:
+ LOG_WARNING(Kernel_SVC,
+ "(STUBBED) Attempted to query privileged process id bounds, returned 0");
+ *result = 0;
+ R_SUCCEED();
+
+ case InfoType::ThreadTickCount: {
+ constexpr u64 num_cpus = 4;
+ if (info_sub_id != 0xFFFFFFFFFFFFFFFF && info_sub_id >= num_cpus) {
+ LOG_ERROR(Kernel_SVC, "Core count is out of range, expected {} but got {}", num_cpus,
+ info_sub_id);
+ R_THROW(ResultInvalidCombination);
+ }
+
+ KScopedAutoObject thread = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KThread>(static_cast<Handle>(handle));
+ if (thread.IsNull()) {
+ LOG_ERROR(Kernel_SVC, "Thread handle does not exist, handle=0x{:08X}",
+ static_cast<Handle>(handle));
+ R_THROW(ResultInvalidHandle);
+ }
+
+ const auto& core_timing = system.CoreTiming();
+ const auto& scheduler = *system.Kernel().CurrentScheduler();
+ const auto* const current_thread = GetCurrentThreadPointer(system.Kernel());
+ const bool same_thread = current_thread == thread.GetPointerUnsafe();
+
+ const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTime();
+ u64 out_ticks = 0;
+ if (same_thread && info_sub_id == 0xFFFFFFFFFFFFFFFF) {
+ const u64 thread_ticks = current_thread->GetCpuTime();
+
+ out_ticks = thread_ticks + (core_timing.GetClockTicks() - prev_ctx_ticks);
+ } else if (same_thread && info_sub_id == system.Kernel().CurrentPhysicalCoreIndex()) {
+ out_ticks = core_timing.GetClockTicks() - prev_ctx_ticks;
+ }
+
+ *result = out_ticks;
+ R_SUCCEED();
+ }
+ case InfoType::IdleTickCount: {
+ // Verify the input handle is invalid.
+ R_UNLESS(handle == InvalidHandle, ResultInvalidHandle);
+
+ // Verify the requested core is valid.
+ const bool core_valid =
+ (info_sub_id == 0xFFFFFFFFFFFFFFFF) ||
+ (info_sub_id == static_cast<u64>(system.Kernel().CurrentPhysicalCoreIndex()));
+ R_UNLESS(core_valid, ResultInvalidCombination);
+
+ // Get the idle tick count.
+ *result = system.Kernel().CurrentScheduler()->GetIdleThread()->GetCpuTime();
+ R_SUCCEED();
+ }
+ case InfoType::MesosphereCurrentProcess: {
+ // Verify the input handle is invalid.
+ R_UNLESS(handle == InvalidHandle, ResultInvalidHandle);
+
+ // Verify the sub-type is valid.
+ R_UNLESS(info_sub_id == 0, ResultInvalidCombination);
+
+ // Get the handle table.
+ KProcess* current_process = GetCurrentProcessPointer(system.Kernel());
+ KHandleTable& handle_table = current_process->GetHandleTable();
+
+ // Get a new handle for the current process.
+ Handle tmp;
+ R_TRY(handle_table.Add(std::addressof(tmp), current_process));
+
+ // Set the output.
+ *result = tmp;
+
+ // We succeeded.
+ R_SUCCEED();
+ }
+ default:
+ LOG_ERROR(Kernel_SVC, "Unimplemented svcGetInfo id=0x{:016X}", info_id);
+ R_THROW(ResultInvalidEnumValue);
+ }
+}
+
+Result GetSystemInfo(Core::System& system, uint64_t* out, SystemInfoType info_type, Handle handle,
+ uint64_t info_subtype) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result GetInfo64(Core::System& system, uint64_t* out, InfoType info_type, Handle handle,
+ uint64_t info_subtype) {
+ R_RETURN(GetInfo(system, out, info_type, handle, info_subtype));
+}
+
+Result GetSystemInfo64(Core::System& system, uint64_t* out, SystemInfoType info_type, Handle handle,
+ uint64_t info_subtype) {
+ R_RETURN(GetSystemInfo(system, out, info_type, handle, info_subtype));
+}
+
+Result GetInfo64From32(Core::System& system, uint64_t* out, InfoType info_type, Handle handle,
+ uint64_t info_subtype) {
+ R_RETURN(GetInfo(system, out, info_type, handle, info_subtype));
+}
+
+Result GetSystemInfo64From32(Core::System& system, uint64_t* out, SystemInfoType info_type,
+ Handle handle, uint64_t info_subtype) {
+ R_RETURN(GetSystemInfo(system, out, info_type, handle, info_subtype));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_insecure_memory.cpp b/src/core/hle/kernel/svc/svc_insecure_memory.cpp
new file mode 100644
index 000000000..00457c6bf
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_insecure_memory.cpp
@@ -0,0 +1,35 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result MapInsecureMemory(Core::System& system, uint64_t address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result UnmapInsecureMemory(Core::System& system, uint64_t address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result MapInsecureMemory64(Core::System& system, uint64_t address, uint64_t size) {
+ R_RETURN(MapInsecureMemory(system, address, size));
+}
+
+Result UnmapInsecureMemory64(Core::System& system, uint64_t address, uint64_t size) {
+ R_RETURN(UnmapInsecureMemory(system, address, size));
+}
+
+Result MapInsecureMemory64From32(Core::System& system, uint32_t address, uint32_t size) {
+ R_RETURN(MapInsecureMemory(system, address, size));
+}
+
+Result UnmapInsecureMemory64From32(Core::System& system, uint32_t address, uint32_t size) {
+ R_RETURN(UnmapInsecureMemory(system, address, size));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_interrupt_event.cpp b/src/core/hle/kernel/svc/svc_interrupt_event.cpp
new file mode 100644
index 000000000..768b30a1f
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_interrupt_event.cpp
@@ -0,0 +1,25 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result CreateInterruptEvent(Core::System& system, Handle* out, int32_t interrupt_id,
+ InterruptType type) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result CreateInterruptEvent64(Core::System& system, Handle* out_read_handle, int32_t interrupt_id,
+ InterruptType interrupt_type) {
+ R_RETURN(CreateInterruptEvent(system, out_read_handle, interrupt_id, interrupt_type));
+}
+
+Result CreateInterruptEvent64From32(Core::System& system, Handle* out_read_handle,
+ int32_t interrupt_id, InterruptType interrupt_type) {
+ R_RETURN(CreateInterruptEvent(system, out_read_handle, interrupt_id, interrupt_type));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_io_pool.cpp b/src/core/hle/kernel/svc/svc_io_pool.cpp
new file mode 100644
index 000000000..f01817e24
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_io_pool.cpp
@@ -0,0 +1,71 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result CreateIoPool(Core::System& system, Handle* out, IoPoolType pool_type) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result CreateIoRegion(Core::System& system, Handle* out, Handle io_pool_handle, uint64_t phys_addr,
+ uint64_t size, MemoryMapping mapping, MemoryPermission perm) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result MapIoRegion(Core::System& system, Handle io_region_handle, uint64_t address, uint64_t size,
+ MemoryPermission map_perm) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result UnmapIoRegion(Core::System& system, Handle io_region_handle, uint64_t address,
+ uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result CreateIoPool64(Core::System& system, Handle* out_handle, IoPoolType pool_type) {
+ R_RETURN(CreateIoPool(system, out_handle, pool_type));
+}
+
+Result CreateIoRegion64(Core::System& system, Handle* out_handle, Handle io_pool,
+ uint64_t physical_address, uint64_t size, MemoryMapping mapping,
+ MemoryPermission perm) {
+ R_RETURN(CreateIoRegion(system, out_handle, io_pool, physical_address, size, mapping, perm));
+}
+
+Result MapIoRegion64(Core::System& system, Handle io_region, uint64_t address, uint64_t size,
+ MemoryPermission perm) {
+ R_RETURN(MapIoRegion(system, io_region, address, size, perm));
+}
+
+Result UnmapIoRegion64(Core::System& system, Handle io_region, uint64_t address, uint64_t size) {
+ R_RETURN(UnmapIoRegion(system, io_region, address, size));
+}
+
+Result CreateIoPool64From32(Core::System& system, Handle* out_handle, IoPoolType pool_type) {
+ R_RETURN(CreateIoPool(system, out_handle, pool_type));
+}
+
+Result CreateIoRegion64From32(Core::System& system, Handle* out_handle, Handle io_pool,
+ uint64_t physical_address, uint32_t size, MemoryMapping mapping,
+ MemoryPermission perm) {
+ R_RETURN(CreateIoRegion(system, out_handle, io_pool, physical_address, size, mapping, perm));
+}
+
+Result MapIoRegion64From32(Core::System& system, Handle io_region, uint32_t address, uint32_t size,
+ MemoryPermission perm) {
+ R_RETURN(MapIoRegion(system, io_region, address, size, perm));
+}
+
+Result UnmapIoRegion64From32(Core::System& system, Handle io_region, uint32_t address,
+ uint32_t size) {
+ R_RETURN(UnmapIoRegion(system, io_region, address, size));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_ipc.cpp b/src/core/hle/kernel/svc/svc_ipc.cpp
new file mode 100644
index 000000000..60247df2e
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_ipc.cpp
@@ -0,0 +1,173 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "common/scratch_buffer.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_client_session.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_server_session.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// Makes a blocking IPC call to a service.
+Result SendSyncRequest(Core::System& system, Handle handle) {
+ // Get the client session from its handle.
+ KScopedAutoObject session =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KClientSession>(handle);
+ R_UNLESS(session.IsNotNull(), ResultInvalidHandle);
+
+ LOG_TRACE(Kernel_SVC, "called handle=0x{:08X}", handle);
+
+ R_RETURN(session->SendSyncRequest());
+}
+
+Result SendSyncRequestWithUserBuffer(Core::System& system, uint64_t message_buffer,
+ uint64_t message_buffer_size, Handle session_handle) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SendAsyncRequestWithUserBuffer(Core::System& system, Handle* out_event_handle,
+ uint64_t message_buffer, uint64_t message_buffer_size,
+ Handle session_handle) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result ReplyAndReceive(Core::System& system, s32* out_index, uint64_t handles_addr, s32 num_handles,
+ Handle reply_target, s64 timeout_ns) {
+ auto& kernel = system.Kernel();
+ auto& handle_table = GetCurrentProcess(kernel).GetHandleTable();
+
+ R_UNLESS(0 <= num_handles && num_handles <= ArgumentHandleCountMax, ResultOutOfRange);
+ R_UNLESS(GetCurrentMemory(kernel).IsValidVirtualAddressRange(
+ handles_addr, static_cast<u64>(sizeof(Handle) * num_handles)),
+ ResultInvalidPointer);
+
+ std::array<Handle, Svc::ArgumentHandleCountMax> handles;
+ GetCurrentMemory(kernel).ReadBlock(handles_addr, handles.data(), sizeof(Handle) * num_handles);
+
+ // Convert handle list to object table.
+ std::array<KSynchronizationObject*, Svc::ArgumentHandleCountMax> objs;
+ R_UNLESS(handle_table.GetMultipleObjects<KSynchronizationObject>(objs.data(), handles.data(),
+ num_handles),
+ ResultInvalidHandle);
+
+ // Ensure handles are closed when we're done.
+ SCOPE_EXIT({
+ for (auto i = 0; i < num_handles; ++i) {
+ objs[i]->Close();
+ }
+ });
+
+ // Reply to the target, if one is specified.
+ if (reply_target != InvalidHandle) {
+ KScopedAutoObject session = handle_table.GetObject<KServerSession>(reply_target);
+ R_UNLESS(session.IsNotNull(), ResultInvalidHandle);
+
+ // If we fail to reply, we want to set the output index to -1.
+ ON_RESULT_FAILURE {
+ *out_index = -1;
+ };
+
+ // Send the reply.
+ R_TRY(session->SendReply());
+ }
+
+ // Wait for a message.
+ while (true) {
+ // Wait for an object.
+ s32 index;
+ Result result = KSynchronizationObject::Wait(kernel, std::addressof(index), objs.data(),
+ num_handles, timeout_ns);
+ if (result == ResultTimedOut) {
+ R_RETURN(result);
+ }
+
+ // Receive the request.
+ if (R_SUCCEEDED(result)) {
+ KServerSession* session = objs[index]->DynamicCast<KServerSession*>();
+ if (session != nullptr) {
+ result = session->ReceiveRequest();
+ if (result == ResultNotFound) {
+ continue;
+ }
+ }
+ }
+
+ *out_index = index;
+ R_RETURN(result);
+ }
+}
+
+Result ReplyAndReceiveWithUserBuffer(Core::System& system, int32_t* out_index,
+ uint64_t message_buffer, uint64_t message_buffer_size,
+ uint64_t handles, int32_t num_handles, Handle reply_target,
+ int64_t timeout_ns) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SendSyncRequest64(Core::System& system, Handle session_handle) {
+ R_RETURN(SendSyncRequest(system, session_handle));
+}
+
+Result SendSyncRequestWithUserBuffer64(Core::System& system, uint64_t message_buffer,
+ uint64_t message_buffer_size, Handle session_handle) {
+ R_RETURN(
+ SendSyncRequestWithUserBuffer(system, message_buffer, message_buffer_size, session_handle));
+}
+
+Result SendAsyncRequestWithUserBuffer64(Core::System& system, Handle* out_event_handle,
+ uint64_t message_buffer, uint64_t message_buffer_size,
+ Handle session_handle) {
+ R_RETURN(SendAsyncRequestWithUserBuffer(system, out_event_handle, message_buffer,
+ message_buffer_size, session_handle));
+}
+
+Result ReplyAndReceive64(Core::System& system, int32_t* out_index, uint64_t handles,
+ int32_t num_handles, Handle reply_target, int64_t timeout_ns) {
+ R_RETURN(ReplyAndReceive(system, out_index, handles, num_handles, reply_target, timeout_ns));
+}
+
+Result ReplyAndReceiveWithUserBuffer64(Core::System& system, int32_t* out_index,
+ uint64_t message_buffer, uint64_t message_buffer_size,
+ uint64_t handles, int32_t num_handles, Handle reply_target,
+ int64_t timeout_ns) {
+ R_RETURN(ReplyAndReceiveWithUserBuffer(system, out_index, message_buffer, message_buffer_size,
+ handles, num_handles, reply_target, timeout_ns));
+}
+
+Result SendSyncRequest64From32(Core::System& system, Handle session_handle) {
+ R_RETURN(SendSyncRequest(system, session_handle));
+}
+
+Result SendSyncRequestWithUserBuffer64From32(Core::System& system, uint32_t message_buffer,
+ uint32_t message_buffer_size, Handle session_handle) {
+ R_RETURN(
+ SendSyncRequestWithUserBuffer(system, message_buffer, message_buffer_size, session_handle));
+}
+
+Result SendAsyncRequestWithUserBuffer64From32(Core::System& system, Handle* out_event_handle,
+ uint32_t message_buffer, uint32_t message_buffer_size,
+ Handle session_handle) {
+ R_RETURN(SendAsyncRequestWithUserBuffer(system, out_event_handle, message_buffer,
+ message_buffer_size, session_handle));
+}
+
+Result ReplyAndReceive64From32(Core::System& system, int32_t* out_index, uint32_t handles,
+ int32_t num_handles, Handle reply_target, int64_t timeout_ns) {
+ R_RETURN(ReplyAndReceive(system, out_index, handles, num_handles, reply_target, timeout_ns));
+}
+
+Result ReplyAndReceiveWithUserBuffer64From32(Core::System& system, int32_t* out_index,
+ uint32_t message_buffer, uint32_t message_buffer_size,
+ uint32_t handles, int32_t num_handles,
+ Handle reply_target, int64_t timeout_ns) {
+ R_RETURN(ReplyAndReceiveWithUserBuffer(system, out_index, message_buffer, message_buffer_size,
+ handles, num_handles, reply_target, timeout_ns));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_kernel_debug.cpp b/src/core/hle/kernel/svc/svc_kernel_debug.cpp
new file mode 100644
index 000000000..cee048279
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_kernel_debug.cpp
@@ -0,0 +1,35 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+void KernelDebug(Core::System& system, KernelDebugType kernel_debug_type, u64 arg0, u64 arg1,
+ u64 arg2) {
+ // Intentionally do nothing, as this does nothing in released kernel binaries.
+}
+
+void ChangeKernelTraceState(Core::System& system, KernelTraceState trace_state) {
+ // Intentionally do nothing, as this does nothing in released kernel binaries.
+}
+
+void KernelDebug64(Core::System& system, KernelDebugType kern_debug_type, uint64_t arg0,
+ uint64_t arg1, uint64_t arg2) {
+ KernelDebug(system, kern_debug_type, arg0, arg1, arg2);
+}
+
+void ChangeKernelTraceState64(Core::System& system, KernelTraceState kern_trace_state) {
+ ChangeKernelTraceState(system, kern_trace_state);
+}
+
+void KernelDebug64From32(Core::System& system, KernelDebugType kern_debug_type, uint64_t arg0,
+ uint64_t arg1, uint64_t arg2) {
+ KernelDebug(system, kern_debug_type, arg0, arg1, arg2);
+}
+
+void ChangeKernelTraceState64From32(Core::System& system, KernelTraceState kern_trace_state) {
+ ChangeKernelTraceState(system, kern_trace_state);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_light_ipc.cpp b/src/core/hle/kernel/svc/svc_light_ipc.cpp
new file mode 100644
index 000000000..b76ce984c
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_light_ipc.cpp
@@ -0,0 +1,73 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/arm/arm_interface.h"
+#include "core/core.h"
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result SendSyncRequestLight(Core::System& system, Handle session_handle, u32* args) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result ReplyAndReceiveLight(Core::System& system, Handle session_handle, u32* args) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SendSyncRequestLight64(Core::System& system, Handle session_handle, u32* args) {
+ R_RETURN(SendSyncRequestLight(system, session_handle, args));
+}
+
+Result ReplyAndReceiveLight64(Core::System& system, Handle session_handle, u32* args) {
+ R_RETURN(ReplyAndReceiveLight(system, session_handle, args));
+}
+
+Result SendSyncRequestLight64From32(Core::System& system, Handle session_handle, u32* args) {
+ R_RETURN(SendSyncRequestLight(system, session_handle, args));
+}
+
+Result ReplyAndReceiveLight64From32(Core::System& system, Handle session_handle, u32* args) {
+ R_RETURN(ReplyAndReceiveLight(system, session_handle, args));
+}
+
+// Custom ABI implementation for light IPC.
+
+template <typename F>
+static void SvcWrap_LightIpc(Core::System& system, F&& cb) {
+ auto& core = system.CurrentArmInterface();
+ std::array<u32, 7> arguments{};
+
+ Handle session_handle = static_cast<Handle>(core.GetReg(0));
+ for (int i = 0; i < 7; i++) {
+ arguments[i] = static_cast<u32>(core.GetReg(i + 1));
+ }
+
+ Result ret = cb(system, session_handle, arguments.data());
+
+ core.SetReg(0, ret.raw);
+ for (int i = 0; i < 7; i++) {
+ core.SetReg(i + 1, arguments[i]);
+ }
+}
+
+void SvcWrap_SendSyncRequestLight64(Core::System& system) {
+ SvcWrap_LightIpc(system, SendSyncRequestLight64);
+}
+
+void SvcWrap_ReplyAndReceiveLight64(Core::System& system) {
+ SvcWrap_LightIpc(system, ReplyAndReceiveLight64);
+}
+
+void SvcWrap_SendSyncRequestLight64From32(Core::System& system) {
+ SvcWrap_LightIpc(system, SendSyncRequestLight64From32);
+}
+
+void SvcWrap_ReplyAndReceiveLight64From32(Core::System& system) {
+ SvcWrap_LightIpc(system, ReplyAndReceiveLight64From32);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_lock.cpp b/src/core/hle/kernel/svc/svc_lock.cpp
new file mode 100644
index 000000000..1d7bc4246
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_lock.cpp
@@ -0,0 +1,51 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_memory_layout.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// Attempts to locks a mutex
+Result ArbitrateLock(Core::System& system, Handle thread_handle, u64 address, u32 tag) {
+ LOG_TRACE(Kernel_SVC, "called thread_handle=0x{:08X}, address=0x{:X}, tag=0x{:08X}",
+ thread_handle, address, tag);
+
+ // Validate the input address.
+ R_UNLESS(!IsKernelAddress(address), ResultInvalidCurrentMemory);
+ R_UNLESS(Common::IsAligned(address, sizeof(u32)), ResultInvalidAddress);
+
+ R_RETURN(GetCurrentProcess(system.Kernel()).WaitForAddress(thread_handle, address, tag));
+}
+
+/// Unlock a mutex
+Result ArbitrateUnlock(Core::System& system, u64 address) {
+ LOG_TRACE(Kernel_SVC, "called address=0x{:X}", address);
+
+ // Validate the input address.
+ R_UNLESS(!IsKernelAddress(address), ResultInvalidCurrentMemory);
+ R_UNLESS(Common::IsAligned(address, sizeof(u32)), ResultInvalidAddress);
+
+ R_RETURN(GetCurrentProcess(system.Kernel()).SignalToAddress(address));
+}
+
+Result ArbitrateLock64(Core::System& system, Handle thread_handle, uint64_t address, uint32_t tag) {
+ R_RETURN(ArbitrateLock(system, thread_handle, address, tag));
+}
+
+Result ArbitrateUnlock64(Core::System& system, uint64_t address) {
+ R_RETURN(ArbitrateUnlock(system, address));
+}
+
+Result ArbitrateLock64From32(Core::System& system, Handle thread_handle, uint32_t address,
+ uint32_t tag) {
+ R_RETURN(ArbitrateLock(system, thread_handle, address, tag));
+}
+
+Result ArbitrateUnlock64From32(Core::System& system, uint32_t address) {
+ R_RETURN(ArbitrateUnlock(system, address));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_memory.cpp b/src/core/hle/kernel/svc/svc_memory.cpp
new file mode 100644
index 000000000..5dcb7f045
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_memory.cpp
@@ -0,0 +1,216 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+namespace {
+
+constexpr bool IsValidSetMemoryPermission(MemoryPermission perm) {
+ switch (perm) {
+ case MemoryPermission::None:
+ case MemoryPermission::Read:
+ case MemoryPermission::ReadWrite:
+ return true;
+ default:
+ return false;
+ }
+}
+
+// Checks if address + size is greater than the given address
+// This can return false if the size causes an overflow of a 64-bit type
+// or if the given size is zero.
+constexpr bool IsValidAddressRange(u64 address, u64 size) {
+ return address + size > address;
+}
+
+// Helper function that performs the common sanity checks for svcMapMemory
+// and svcUnmapMemory. This is doable, as both functions perform their sanitizing
+// in the same order.
+Result MapUnmapMemorySanityChecks(const KPageTable& manager, u64 dst_addr, u64 src_addr, u64 size) {
+ if (!Common::Is4KBAligned(dst_addr)) {
+ LOG_ERROR(Kernel_SVC, "Destination address is not aligned to 4KB, 0x{:016X}", dst_addr);
+ R_THROW(ResultInvalidAddress);
+ }
+
+ if (!Common::Is4KBAligned(src_addr)) {
+ LOG_ERROR(Kernel_SVC, "Source address is not aligned to 4KB, 0x{:016X}", src_addr);
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (size == 0) {
+ LOG_ERROR(Kernel_SVC, "Size is 0");
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (!Common::Is4KBAligned(size)) {
+ LOG_ERROR(Kernel_SVC, "Size is not aligned to 4KB, 0x{:016X}", size);
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (!IsValidAddressRange(dst_addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination is not a valid address range, addr=0x{:016X}, size=0x{:016X}",
+ dst_addr, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ if (!IsValidAddressRange(src_addr, size)) {
+ LOG_ERROR(Kernel_SVC, "Source is not a valid address range, addr=0x{:016X}, size=0x{:016X}",
+ src_addr, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ if (!manager.IsInsideAddressSpace(src_addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Source is not within the address space, addr=0x{:016X}, size=0x{:016X}",
+ src_addr, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ if (manager.IsOutsideStackRegion(dst_addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination is not within the stack region, addr=0x{:016X}, size=0x{:016X}",
+ dst_addr, size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ if (manager.IsInsideHeapRegion(dst_addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination does not fit within the heap region, addr=0x{:016X}, "
+ "size=0x{:016X}",
+ dst_addr, size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ if (manager.IsInsideAliasRegion(dst_addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination does not fit within the map region, addr=0x{:016X}, "
+ "size=0x{:016X}",
+ dst_addr, size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ R_SUCCEED();
+}
+
+} // namespace
+
+Result SetMemoryPermission(Core::System& system, u64 address, u64 size, MemoryPermission perm) {
+ LOG_DEBUG(Kernel_SVC, "called, address=0x{:016X}, size=0x{:X}, perm=0x{:08X", address, size,
+ perm);
+
+ // Validate address / size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+
+ // Validate the permission.
+ R_UNLESS(IsValidSetMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+
+ // Validate that the region is in range for the current process.
+ auto& page_table = GetCurrentProcess(system.Kernel()).PageTable();
+ R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
+
+ // Set the memory attribute.
+ R_RETURN(page_table.SetMemoryPermission(address, size, perm));
+}
+
+Result SetMemoryAttribute(Core::System& system, u64 address, u64 size, u32 mask, u32 attr) {
+ LOG_DEBUG(Kernel_SVC,
+ "called, address=0x{:016X}, size=0x{:X}, mask=0x{:08X}, attribute=0x{:08X}", address,
+ size, mask, attr);
+
+ // Validate address / size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+
+ // Validate the attribute and mask.
+ constexpr u32 SupportedMask = static_cast<u32>(MemoryAttribute::Uncached);
+ R_UNLESS((mask | attr) == mask, ResultInvalidCombination);
+ R_UNLESS((mask | attr | SupportedMask) == SupportedMask, ResultInvalidCombination);
+
+ // Validate that the region is in range for the current process.
+ auto& page_table{GetCurrentProcess(system.Kernel()).PageTable()};
+ R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
+
+ // Set the memory attribute.
+ R_RETURN(page_table.SetMemoryAttribute(address, size, mask, attr));
+}
+
+/// Maps a memory range into a different range.
+Result MapMemory(Core::System& system, u64 dst_addr, u64 src_addr, u64 size) {
+ LOG_TRACE(Kernel_SVC, "called, dst_addr=0x{:X}, src_addr=0x{:X}, size=0x{:X}", dst_addr,
+ src_addr, size);
+
+ auto& page_table{GetCurrentProcess(system.Kernel()).PageTable()};
+
+ if (const Result result{MapUnmapMemorySanityChecks(page_table, dst_addr, src_addr, size)};
+ result.IsError()) {
+ return result;
+ }
+
+ R_RETURN(page_table.MapMemory(dst_addr, src_addr, size));
+}
+
+/// Unmaps a region that was previously mapped with svcMapMemory
+Result UnmapMemory(Core::System& system, u64 dst_addr, u64 src_addr, u64 size) {
+ LOG_TRACE(Kernel_SVC, "called, dst_addr=0x{:X}, src_addr=0x{:X}, size=0x{:X}", dst_addr,
+ src_addr, size);
+
+ auto& page_table{GetCurrentProcess(system.Kernel()).PageTable()};
+
+ if (const Result result{MapUnmapMemorySanityChecks(page_table, dst_addr, src_addr, size)};
+ result.IsError()) {
+ return result;
+ }
+
+ R_RETURN(page_table.UnmapMemory(dst_addr, src_addr, size));
+}
+
+Result SetMemoryPermission64(Core::System& system, uint64_t address, uint64_t size,
+ MemoryPermission perm) {
+ R_RETURN(SetMemoryPermission(system, address, size, perm));
+}
+
+Result SetMemoryAttribute64(Core::System& system, uint64_t address, uint64_t size, uint32_t mask,
+ uint32_t attr) {
+ R_RETURN(SetMemoryAttribute(system, address, size, mask, attr));
+}
+
+Result MapMemory64(Core::System& system, uint64_t dst_address, uint64_t src_address,
+ uint64_t size) {
+ R_RETURN(MapMemory(system, dst_address, src_address, size));
+}
+
+Result UnmapMemory64(Core::System& system, uint64_t dst_address, uint64_t src_address,
+ uint64_t size) {
+ R_RETURN(UnmapMemory(system, dst_address, src_address, size));
+}
+
+Result SetMemoryPermission64From32(Core::System& system, uint32_t address, uint32_t size,
+ MemoryPermission perm) {
+ R_RETURN(SetMemoryPermission(system, address, size, perm));
+}
+
+Result SetMemoryAttribute64From32(Core::System& system, uint32_t address, uint32_t size,
+ uint32_t mask, uint32_t attr) {
+ R_RETURN(SetMemoryAttribute(system, address, size, mask, attr));
+}
+
+Result MapMemory64From32(Core::System& system, uint32_t dst_address, uint32_t src_address,
+ uint32_t size) {
+ R_RETURN(MapMemory(system, dst_address, src_address, size));
+}
+
+Result UnmapMemory64From32(Core::System& system, uint32_t dst_address, uint32_t src_address,
+ uint32_t size) {
+ R_RETURN(UnmapMemory(system, dst_address, src_address, size));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_physical_memory.cpp b/src/core/hle/kernel/svc/svc_physical_memory.cpp
new file mode 100644
index 000000000..c2fbfb59a
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_physical_memory.cpp
@@ -0,0 +1,183 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// Set the process heap to a given Size. It can both extend and shrink the heap.
+Result SetHeapSize(Core::System& system, u64* out_address, u64 size) {
+ LOG_TRACE(Kernel_SVC, "called, heap_size=0x{:X}", size);
+
+ // Validate size.
+ R_UNLESS(Common::IsAligned(size, HeapSizeAlignment), ResultInvalidSize);
+ R_UNLESS(size < MainMemorySizeMax, ResultInvalidSize);
+
+ // Set the heap size.
+ R_RETURN(GetCurrentProcess(system.Kernel()).PageTable().SetHeapSize(out_address, size));
+}
+
+/// Maps memory at a desired address
+Result MapPhysicalMemory(Core::System& system, u64 addr, u64 size) {
+ LOG_DEBUG(Kernel_SVC, "called, addr=0x{:016X}, size=0x{:X}", addr, size);
+
+ if (!Common::Is4KBAligned(addr)) {
+ LOG_ERROR(Kernel_SVC, "Address is not aligned to 4KB, 0x{:016X}", addr);
+ R_THROW(ResultInvalidAddress);
+ }
+
+ if (!Common::Is4KBAligned(size)) {
+ LOG_ERROR(Kernel_SVC, "Size is not aligned to 4KB, 0x{:X}", size);
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (size == 0) {
+ LOG_ERROR(Kernel_SVC, "Size is zero");
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (!(addr < addr + size)) {
+ LOG_ERROR(Kernel_SVC, "Size causes 64-bit overflow of address");
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ KProcess* const current_process{GetCurrentProcessPointer(system.Kernel())};
+ auto& page_table{current_process->PageTable()};
+
+ if (current_process->GetSystemResourceSize() == 0) {
+ LOG_ERROR(Kernel_SVC, "System Resource Size is zero");
+ R_THROW(ResultInvalidState);
+ }
+
+ if (!page_table.IsInsideAddressSpace(addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Address is not within the address space, addr=0x{:016X}, size=0x{:016X}", addr,
+ size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ if (page_table.IsOutsideAliasRegion(addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Address is not within the alias region, addr=0x{:016X}, size=0x{:016X}", addr,
+ size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ R_RETURN(page_table.MapPhysicalMemory(addr, size));
+}
+
+/// Unmaps memory previously mapped via MapPhysicalMemory
+Result UnmapPhysicalMemory(Core::System& system, u64 addr, u64 size) {
+ LOG_DEBUG(Kernel_SVC, "called, addr=0x{:016X}, size=0x{:X}", addr, size);
+
+ if (!Common::Is4KBAligned(addr)) {
+ LOG_ERROR(Kernel_SVC, "Address is not aligned to 4KB, 0x{:016X}", addr);
+ R_THROW(ResultInvalidAddress);
+ }
+
+ if (!Common::Is4KBAligned(size)) {
+ LOG_ERROR(Kernel_SVC, "Size is not aligned to 4KB, 0x{:X}", size);
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (size == 0) {
+ LOG_ERROR(Kernel_SVC, "Size is zero");
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (!(addr < addr + size)) {
+ LOG_ERROR(Kernel_SVC, "Size causes 64-bit overflow of address");
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ KProcess* const current_process{GetCurrentProcessPointer(system.Kernel())};
+ auto& page_table{current_process->PageTable()};
+
+ if (current_process->GetSystemResourceSize() == 0) {
+ LOG_ERROR(Kernel_SVC, "System Resource Size is zero");
+ R_THROW(ResultInvalidState);
+ }
+
+ if (!page_table.IsInsideAddressSpace(addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Address is not within the address space, addr=0x{:016X}, size=0x{:016X}", addr,
+ size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ if (page_table.IsOutsideAliasRegion(addr, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Address is not within the alias region, addr=0x{:016X}, size=0x{:016X}", addr,
+ size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ R_RETURN(page_table.UnmapPhysicalMemory(addr, size));
+}
+
+Result MapPhysicalMemoryUnsafe(Core::System& system, uint64_t address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result UnmapPhysicalMemoryUnsafe(Core::System& system, uint64_t address, uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SetUnsafeLimit(Core::System& system, uint64_t limit) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result SetHeapSize64(Core::System& system, uint64_t* out_address, uint64_t size) {
+ R_RETURN(SetHeapSize(system, out_address, size));
+}
+
+Result MapPhysicalMemory64(Core::System& system, uint64_t address, uint64_t size) {
+ R_RETURN(MapPhysicalMemory(system, address, size));
+}
+
+Result UnmapPhysicalMemory64(Core::System& system, uint64_t address, uint64_t size) {
+ R_RETURN(UnmapPhysicalMemory(system, address, size));
+}
+
+Result MapPhysicalMemoryUnsafe64(Core::System& system, uint64_t address, uint64_t size) {
+ R_RETURN(MapPhysicalMemoryUnsafe(system, address, size));
+}
+
+Result UnmapPhysicalMemoryUnsafe64(Core::System& system, uint64_t address, uint64_t size) {
+ R_RETURN(UnmapPhysicalMemoryUnsafe(system, address, size));
+}
+
+Result SetUnsafeLimit64(Core::System& system, uint64_t limit) {
+ R_RETURN(SetUnsafeLimit(system, limit));
+}
+
+Result SetHeapSize64From32(Core::System& system, uint64_t* out_address, uint32_t size) {
+ R_RETURN(SetHeapSize(system, out_address, size));
+}
+
+Result MapPhysicalMemory64From32(Core::System& system, uint32_t address, uint32_t size) {
+ R_RETURN(MapPhysicalMemory(system, address, size));
+}
+
+Result UnmapPhysicalMemory64From32(Core::System& system, uint32_t address, uint32_t size) {
+ R_RETURN(UnmapPhysicalMemory(system, address, size));
+}
+
+Result MapPhysicalMemoryUnsafe64From32(Core::System& system, uint32_t address, uint32_t size) {
+ R_RETURN(MapPhysicalMemoryUnsafe(system, address, size));
+}
+
+Result UnmapPhysicalMemoryUnsafe64From32(Core::System& system, uint32_t address, uint32_t size) {
+ R_RETURN(UnmapPhysicalMemoryUnsafe(system, address, size));
+}
+
+Result SetUnsafeLimit64From32(Core::System& system, uint32_t limit) {
+ R_RETURN(SetUnsafeLimit(system, limit));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_port.cpp b/src/core/hle/kernel/svc/svc_port.cpp
new file mode 100644
index 000000000..abba757c7
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_port.cpp
@@ -0,0 +1,159 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_client_port.h"
+#include "core/hle/kernel/k_client_session.h"
+#include "core/hle/kernel/k_object_name.h"
+#include "core/hle/kernel/k_port.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+Result ConnectToNamedPort(Core::System& system, Handle* out, u64 user_name) {
+ // Copy the provided name from user memory to kernel memory.
+ auto string_name =
+ GetCurrentMemory(system.Kernel()).ReadCString(user_name, KObjectName::NameLengthMax);
+
+ std::array<char, KObjectName::NameLengthMax> name{};
+ std::strncpy(name.data(), string_name.c_str(), KObjectName::NameLengthMax - 1);
+
+ // Validate that the name is valid.
+ R_UNLESS(name[sizeof(name) - 1] == '\x00', ResultOutOfRange);
+
+ // Get the current handle table.
+ auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+
+ // Find the client port.
+ auto port = KObjectName::Find<KClientPort>(system.Kernel(), name.data());
+ R_UNLESS(port.IsNotNull(), ResultNotFound);
+
+ // Reserve a handle for the port.
+ // NOTE: Nintendo really does write directly to the output handle here.
+ R_TRY(handle_table.Reserve(out));
+ ON_RESULT_FAILURE {
+ handle_table.Unreserve(*out);
+ };
+
+ // Create a session.
+ KClientSession* session;
+ R_TRY(port->CreateSession(std::addressof(session)));
+
+ // Register the session in the table, close the extra reference.
+ handle_table.Register(*out, session);
+ session->Close();
+
+ // We succeeded.
+ R_SUCCEED();
+}
+
+Result CreatePort(Core::System& system, Handle* out_server, Handle* out_client,
+ int32_t max_sessions, bool is_light, uint64_t name) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result ConnectToPort(Core::System& system, Handle* out_handle, Handle port) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result ManageNamedPort(Core::System& system, Handle* out_server_handle, uint64_t user_name,
+ int32_t max_sessions) {
+ // Copy the provided name from user memory to kernel memory.
+ auto string_name =
+ GetCurrentMemory(system.Kernel()).ReadCString(user_name, KObjectName::NameLengthMax);
+
+ // Copy the provided name from user memory to kernel memory.
+ std::array<char, KObjectName::NameLengthMax> name{};
+ std::strncpy(name.data(), string_name.c_str(), KObjectName::NameLengthMax - 1);
+
+ // Validate that sessions and name are valid.
+ R_UNLESS(max_sessions >= 0, ResultOutOfRange);
+ R_UNLESS(name[sizeof(name) - 1] == '\x00', ResultOutOfRange);
+
+ if (max_sessions > 0) {
+ // Get the current handle table.
+ auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+
+ // Create a new port.
+ KPort* port = KPort::Create(system.Kernel());
+ R_UNLESS(port != nullptr, ResultOutOfResource);
+
+ // Initialize the new port.
+ port->Initialize(max_sessions, false, 0);
+
+ // Register the port.
+ KPort::Register(system.Kernel(), port);
+
+ // Ensure that our only reference to the port is in the handle table when we're done.
+ SCOPE_EXIT({
+ port->GetClientPort().Close();
+ port->GetServerPort().Close();
+ });
+
+ // Register the handle in the table.
+ R_TRY(handle_table.Add(out_server_handle, std::addressof(port->GetServerPort())));
+ ON_RESULT_FAILURE {
+ handle_table.Remove(*out_server_handle);
+ };
+
+ // Create a new object name.
+ R_TRY(KObjectName::NewFromName(system.Kernel(), std::addressof(port->GetClientPort()),
+ name.data()));
+ } else /* if (max_sessions == 0) */ {
+ // Ensure that this else case is correct.
+ ASSERT(max_sessions == 0);
+
+ // If we're closing, there's no server handle.
+ *out_server_handle = InvalidHandle;
+
+ // Delete the object.
+ R_TRY(KObjectName::Delete<KClientPort>(system.Kernel(), name.data()));
+ }
+
+ R_SUCCEED();
+}
+
+Result ConnectToNamedPort64(Core::System& system, Handle* out_handle, uint64_t name) {
+ R_RETURN(ConnectToNamedPort(system, out_handle, name));
+}
+
+Result CreatePort64(Core::System& system, Handle* out_server_handle, Handle* out_client_handle,
+ int32_t max_sessions, bool is_light, uint64_t name) {
+ R_RETURN(
+ CreatePort(system, out_server_handle, out_client_handle, max_sessions, is_light, name));
+}
+
+Result ManageNamedPort64(Core::System& system, Handle* out_server_handle, uint64_t name,
+ int32_t max_sessions) {
+ R_RETURN(ManageNamedPort(system, out_server_handle, name, max_sessions));
+}
+
+Result ConnectToPort64(Core::System& system, Handle* out_handle, Handle port) {
+ R_RETURN(ConnectToPort(system, out_handle, port));
+}
+
+Result ConnectToNamedPort64From32(Core::System& system, Handle* out_handle, uint32_t name) {
+ R_RETURN(ConnectToNamedPort(system, out_handle, name));
+}
+
+Result CreatePort64From32(Core::System& system, Handle* out_server_handle,
+ Handle* out_client_handle, int32_t max_sessions, bool is_light,
+ uint32_t name) {
+ R_RETURN(
+ CreatePort(system, out_server_handle, out_client_handle, max_sessions, is_light, name));
+}
+
+Result ManageNamedPort64From32(Core::System& system, Handle* out_server_handle, uint32_t name,
+ int32_t max_sessions) {
+ R_RETURN(ManageNamedPort(system, out_server_handle, name, max_sessions));
+}
+
+Result ConnectToPort64From32(Core::System& system, Handle* out_handle, Handle port) {
+ R_RETURN(ConnectToPort(system, out_handle, port));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_power_management.cpp b/src/core/hle/kernel/svc/svc_power_management.cpp
new file mode 100644
index 000000000..f605a0317
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_power_management.cpp
@@ -0,0 +1,21 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+void SleepSystem(Core::System& system) {
+ UNIMPLEMENTED();
+}
+
+void SleepSystem64(Core::System& system) {
+ return SleepSystem(system);
+}
+
+void SleepSystem64From32(Core::System& system) {
+ return SleepSystem(system);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_process.cpp b/src/core/hle/kernel/svc/svc_process.cpp
new file mode 100644
index 000000000..619ed16a3
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_process.cpp
@@ -0,0 +1,194 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// Exits the current process
+void ExitProcess(Core::System& system) {
+ auto* current_process = GetCurrentProcessPointer(system.Kernel());
+
+ LOG_INFO(Kernel_SVC, "Process {} exiting", current_process->GetProcessId());
+ ASSERT_MSG(current_process->GetState() == KProcess::State::Running,
+ "Process has already exited");
+
+ system.Exit();
+}
+
+/// Gets the ID of the specified process or a specified thread's owning process.
+Result GetProcessId(Core::System& system, u64* out_process_id, Handle handle) {
+ LOG_DEBUG(Kernel_SVC, "called handle=0x{:08X}", handle);
+
+ // Get the object from the handle table.
+ KScopedAutoObject obj = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KAutoObject>(static_cast<Handle>(handle));
+ R_UNLESS(obj.IsNotNull(), ResultInvalidHandle);
+
+ // Get the process from the object.
+ KProcess* process = nullptr;
+ if (KProcess* p = obj->DynamicCast<KProcess*>(); p != nullptr) {
+ // The object is a process, so we can use it directly.
+ process = p;
+ } else if (KThread* t = obj->DynamicCast<KThread*>(); t != nullptr) {
+ // The object is a thread, so we want to use its parent.
+ process = reinterpret_cast<KThread*>(obj.GetPointerUnsafe())->GetOwnerProcess();
+ } else {
+ // TODO(bunnei): This should also handle debug objects before returning.
+ UNIMPLEMENTED_MSG("Debug objects not implemented");
+ }
+
+ // Make sure the target process exists.
+ R_UNLESS(process != nullptr, ResultInvalidHandle);
+
+ // Get the process id.
+ *out_process_id = process->GetId();
+
+ R_SUCCEED();
+}
+
+Result GetProcessList(Core::System& system, s32* out_num_processes, u64 out_process_ids,
+ int32_t out_process_ids_size) {
+ LOG_DEBUG(Kernel_SVC, "called. out_process_ids=0x{:016X}, out_process_ids_size={}",
+ out_process_ids, out_process_ids_size);
+
+ // If the supplied size is negative or greater than INT32_MAX / sizeof(u64), bail.
+ if ((out_process_ids_size & 0xF0000000) != 0) {
+ LOG_ERROR(Kernel_SVC,
+ "Supplied size outside [0, 0x0FFFFFFF] range. out_process_ids_size={}",
+ out_process_ids_size);
+ R_THROW(ResultOutOfRange);
+ }
+
+ auto& kernel = system.Kernel();
+ const auto total_copy_size = out_process_ids_size * sizeof(u64);
+
+ if (out_process_ids_size > 0 && !GetCurrentProcess(kernel).PageTable().IsInsideAddressSpace(
+ out_process_ids, total_copy_size)) {
+ LOG_ERROR(Kernel_SVC, "Address range outside address space. begin=0x{:016X}, end=0x{:016X}",
+ out_process_ids, out_process_ids + total_copy_size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ auto& memory = GetCurrentMemory(kernel);
+ const auto& process_list = kernel.GetProcessList();
+ const auto num_processes = process_list.size();
+ const auto copy_amount =
+ std::min(static_cast<std::size_t>(out_process_ids_size), num_processes);
+
+ for (std::size_t i = 0; i < copy_amount; ++i) {
+ memory.Write64(out_process_ids, process_list[i]->GetProcessId());
+ out_process_ids += sizeof(u64);
+ }
+
+ *out_num_processes = static_cast<u32>(num_processes);
+ R_SUCCEED();
+}
+
+Result GetProcessInfo(Core::System& system, s64* out, Handle process_handle,
+ ProcessInfoType info_type) {
+ LOG_DEBUG(Kernel_SVC, "called, handle=0x{:08X}, type=0x{:X}", process_handle, info_type);
+
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+ KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
+ if (process.IsNull()) {
+ LOG_ERROR(Kernel_SVC, "Process handle does not exist, process_handle=0x{:08X}",
+ process_handle);
+ R_THROW(ResultInvalidHandle);
+ }
+
+ if (info_type != ProcessInfoType::ProcessState) {
+ LOG_ERROR(Kernel_SVC, "Expected info_type to be ProcessState but got {} instead",
+ info_type);
+ R_THROW(ResultInvalidEnumValue);
+ }
+
+ *out = static_cast<s64>(process->GetState());
+ R_SUCCEED();
+}
+
+Result CreateProcess(Core::System& system, Handle* out_handle, uint64_t parameters, uint64_t caps,
+ int32_t num_caps) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result StartProcess(Core::System& system, Handle process_handle, int32_t priority, int32_t core_id,
+ uint64_t main_thread_stack_size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result TerminateProcess(Core::System& system, Handle process_handle) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+void ExitProcess64(Core::System& system) {
+ ExitProcess(system);
+}
+
+Result GetProcessId64(Core::System& system, uint64_t* out_process_id, Handle process_handle) {
+ R_RETURN(GetProcessId(system, out_process_id, process_handle));
+}
+
+Result GetProcessList64(Core::System& system, int32_t* out_num_processes, uint64_t out_process_ids,
+ int32_t max_out_count) {
+ R_RETURN(GetProcessList(system, out_num_processes, out_process_ids, max_out_count));
+}
+
+Result CreateProcess64(Core::System& system, Handle* out_handle, uint64_t parameters, uint64_t caps,
+ int32_t num_caps) {
+ R_RETURN(CreateProcess(system, out_handle, parameters, caps, num_caps));
+}
+
+Result StartProcess64(Core::System& system, Handle process_handle, int32_t priority,
+ int32_t core_id, uint64_t main_thread_stack_size) {
+ R_RETURN(StartProcess(system, process_handle, priority, core_id, main_thread_stack_size));
+}
+
+Result TerminateProcess64(Core::System& system, Handle process_handle) {
+ R_RETURN(TerminateProcess(system, process_handle));
+}
+
+Result GetProcessInfo64(Core::System& system, int64_t* out_info, Handle process_handle,
+ ProcessInfoType info_type) {
+ R_RETURN(GetProcessInfo(system, out_info, process_handle, info_type));
+}
+
+void ExitProcess64From32(Core::System& system) {
+ ExitProcess(system);
+}
+
+Result GetProcessId64From32(Core::System& system, uint64_t* out_process_id, Handle process_handle) {
+ R_RETURN(GetProcessId(system, out_process_id, process_handle));
+}
+
+Result GetProcessList64From32(Core::System& system, int32_t* out_num_processes,
+ uint32_t out_process_ids, int32_t max_out_count) {
+ R_RETURN(GetProcessList(system, out_num_processes, out_process_ids, max_out_count));
+}
+
+Result CreateProcess64From32(Core::System& system, Handle* out_handle, uint32_t parameters,
+ uint32_t caps, int32_t num_caps) {
+ R_RETURN(CreateProcess(system, out_handle, parameters, caps, num_caps));
+}
+
+Result StartProcess64From32(Core::System& system, Handle process_handle, int32_t priority,
+ int32_t core_id, uint64_t main_thread_stack_size) {
+ R_RETURN(StartProcess(system, process_handle, priority, core_id, main_thread_stack_size));
+}
+
+Result TerminateProcess64From32(Core::System& system, Handle process_handle) {
+ R_RETURN(TerminateProcess(system, process_handle));
+}
+
+Result GetProcessInfo64From32(Core::System& system, int64_t* out_info, Handle process_handle,
+ ProcessInfoType info_type) {
+ R_RETURN(GetProcessInfo(system, out_info, process_handle, info_type));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_process_memory.cpp b/src/core/hle/kernel/svc/svc_process_memory.cpp
new file mode 100644
index 000000000..aee0f2f36
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_process_memory.cpp
@@ -0,0 +1,320 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+namespace {
+
+constexpr bool IsValidAddressRange(u64 address, u64 size) {
+ return address + size > address;
+}
+
+constexpr bool IsValidProcessMemoryPermission(Svc::MemoryPermission perm) {
+ switch (perm) {
+ case Svc::MemoryPermission::None:
+ case Svc::MemoryPermission::Read:
+ case Svc::MemoryPermission::ReadWrite:
+ case Svc::MemoryPermission::ReadExecute:
+ return true;
+ default:
+ return false;
+ }
+}
+
+} // namespace
+
+Result SetProcessMemoryPermission(Core::System& system, Handle process_handle, u64 address,
+ u64 size, Svc::MemoryPermission perm) {
+ LOG_TRACE(Kernel_SVC,
+ "called, process_handle=0x{:X}, addr=0x{:X}, size=0x{:X}, permissions=0x{:08X}",
+ process_handle, address, size, perm);
+
+ // Validate the address/size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+ R_UNLESS(address == static_cast<uint64_t>(address), ResultInvalidCurrentMemory);
+ R_UNLESS(size == static_cast<uint64_t>(size), ResultInvalidCurrentMemory);
+
+ // Validate the memory permission.
+ R_UNLESS(IsValidProcessMemoryPermission(perm), ResultInvalidNewMemoryPermission);
+
+ // Get the process from its handle.
+ KScopedAutoObject process =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KProcess>(process_handle);
+ R_UNLESS(process.IsNotNull(), ResultInvalidHandle);
+
+ // Validate that the address is in range.
+ auto& page_table = process->PageTable();
+ R_UNLESS(page_table.Contains(address, size), ResultInvalidCurrentMemory);
+
+ // Set the memory permission.
+ R_RETURN(page_table.SetProcessMemoryPermission(address, size, perm));
+}
+
+Result MapProcessMemory(Core::System& system, u64 dst_address, Handle process_handle,
+ u64 src_address, u64 size) {
+ LOG_TRACE(Kernel_SVC,
+ "called, dst_address=0x{:X}, process_handle=0x{:X}, src_address=0x{:X}, size=0x{:X}",
+ dst_address, process_handle, src_address, size);
+
+ // Validate the address/size.
+ R_UNLESS(Common::IsAligned(dst_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(src_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((dst_address < dst_address + size), ResultInvalidCurrentMemory);
+ R_UNLESS((src_address < src_address + size), ResultInvalidCurrentMemory);
+
+ // Get the processes.
+ KProcess* dst_process = GetCurrentProcessPointer(system.Kernel());
+ KScopedAutoObject src_process =
+ dst_process->GetHandleTable().GetObjectWithoutPseudoHandle<KProcess>(process_handle);
+ R_UNLESS(src_process.IsNotNull(), ResultInvalidHandle);
+
+ // Get the page tables.
+ auto& dst_pt = dst_process->PageTable();
+ auto& src_pt = src_process->PageTable();
+
+ // Validate that the mapping is in range.
+ R_UNLESS(src_pt.Contains(src_address, size), ResultInvalidCurrentMemory);
+ R_UNLESS(dst_pt.CanContain(dst_address, size, KMemoryState::SharedCode),
+ ResultInvalidMemoryRegion);
+
+ // Create a new page group.
+ KPageGroup pg{system.Kernel(), dst_pt.GetBlockInfoManager()};
+ R_TRY(src_pt.MakeAndOpenPageGroup(
+ std::addressof(pg), src_address, size / PageSize, KMemoryState::FlagCanMapProcess,
+ KMemoryState::FlagCanMapProcess, KMemoryPermission::None, KMemoryPermission::None,
+ KMemoryAttribute::All, KMemoryAttribute::None));
+
+ // Map the group.
+ R_RETURN(dst_pt.MapPageGroup(dst_address, pg, KMemoryState::SharedCode,
+ KMemoryPermission::UserReadWrite));
+}
+
+Result UnmapProcessMemory(Core::System& system, u64 dst_address, Handle process_handle,
+ u64 src_address, u64 size) {
+ LOG_TRACE(Kernel_SVC,
+ "called, dst_address=0x{:X}, process_handle=0x{:X}, src_address=0x{:X}, size=0x{:X}",
+ dst_address, process_handle, src_address, size);
+
+ // Validate the address/size.
+ R_UNLESS(Common::IsAligned(dst_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(src_address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((dst_address < dst_address + size), ResultInvalidCurrentMemory);
+ R_UNLESS((src_address < src_address + size), ResultInvalidCurrentMemory);
+
+ // Get the processes.
+ KProcess* dst_process = GetCurrentProcessPointer(system.Kernel());
+ KScopedAutoObject src_process =
+ dst_process->GetHandleTable().GetObjectWithoutPseudoHandle<KProcess>(process_handle);
+ R_UNLESS(src_process.IsNotNull(), ResultInvalidHandle);
+
+ // Get the page tables.
+ auto& dst_pt = dst_process->PageTable();
+ auto& src_pt = src_process->PageTable();
+
+ // Validate that the mapping is in range.
+ R_UNLESS(src_pt.Contains(src_address, size), ResultInvalidCurrentMemory);
+ R_UNLESS(dst_pt.CanContain(dst_address, size, KMemoryState::SharedCode),
+ ResultInvalidMemoryRegion);
+
+ // Unmap the memory.
+ R_RETURN(dst_pt.UnmapProcessMemory(dst_address, size, src_pt, src_address));
+}
+
+Result MapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst_address,
+ u64 src_address, u64 size) {
+ LOG_DEBUG(Kernel_SVC,
+ "called. process_handle=0x{:08X}, dst_address=0x{:016X}, "
+ "src_address=0x{:016X}, size=0x{:016X}",
+ process_handle, dst_address, src_address, size);
+
+ if (!Common::Is4KBAligned(src_address)) {
+ LOG_ERROR(Kernel_SVC, "src_address is not page-aligned (src_address=0x{:016X}).",
+ src_address);
+ R_THROW(ResultInvalidAddress);
+ }
+
+ if (!Common::Is4KBAligned(dst_address)) {
+ LOG_ERROR(Kernel_SVC, "dst_address is not page-aligned (dst_address=0x{:016X}).",
+ dst_address);
+ R_THROW(ResultInvalidAddress);
+ }
+
+ if (size == 0 || !Common::Is4KBAligned(size)) {
+ LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X})", size);
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (!IsValidAddressRange(dst_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination address range overflows the address space (dst_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ dst_address, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ if (!IsValidAddressRange(src_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Source address range overflows the address space (src_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ src_address, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+ KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
+ if (process.IsNull()) {
+ LOG_ERROR(Kernel_SVC, "Invalid process handle specified (handle=0x{:08X}).",
+ process_handle);
+ R_THROW(ResultInvalidHandle);
+ }
+
+ auto& page_table = process->PageTable();
+ if (!page_table.IsInsideAddressSpace(src_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Source address range is not within the address space (src_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ src_address, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ if (!page_table.IsInsideASLRRegion(dst_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination address range is not within the ASLR region (dst_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ dst_address, size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ R_RETURN(page_table.MapCodeMemory(dst_address, src_address, size));
+}
+
+Result UnmapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst_address,
+ u64 src_address, u64 size) {
+ LOG_DEBUG(Kernel_SVC,
+ "called. process_handle=0x{:08X}, dst_address=0x{:016X}, src_address=0x{:016X}, "
+ "size=0x{:016X}",
+ process_handle, dst_address, src_address, size);
+
+ if (!Common::Is4KBAligned(dst_address)) {
+ LOG_ERROR(Kernel_SVC, "dst_address is not page-aligned (dst_address=0x{:016X}).",
+ dst_address);
+ R_THROW(ResultInvalidAddress);
+ }
+
+ if (!Common::Is4KBAligned(src_address)) {
+ LOG_ERROR(Kernel_SVC, "src_address is not page-aligned (src_address=0x{:016X}).",
+ src_address);
+ R_THROW(ResultInvalidAddress);
+ }
+
+ if (size == 0 || !Common::Is4KBAligned(size)) {
+ LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X}).", size);
+ R_THROW(ResultInvalidSize);
+ }
+
+ if (!IsValidAddressRange(dst_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination address range overflows the address space (dst_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ dst_address, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ if (!IsValidAddressRange(src_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Source address range overflows the address space (src_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ src_address, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+ KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
+ if (process.IsNull()) {
+ LOG_ERROR(Kernel_SVC, "Invalid process handle specified (handle=0x{:08X}).",
+ process_handle);
+ R_THROW(ResultInvalidHandle);
+ }
+
+ auto& page_table = process->PageTable();
+ if (!page_table.IsInsideAddressSpace(src_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Source address range is not within the address space (src_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ src_address, size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ if (!page_table.IsInsideASLRRegion(dst_address, size)) {
+ LOG_ERROR(Kernel_SVC,
+ "Destination address range is not within the ASLR region (dst_address=0x{:016X}, "
+ "size=0x{:016X}).",
+ dst_address, size);
+ R_THROW(ResultInvalidMemoryRegion);
+ }
+
+ R_RETURN(page_table.UnmapCodeMemory(dst_address, src_address, size,
+ KPageTable::ICacheInvalidationStrategy::InvalidateAll));
+}
+
+Result SetProcessMemoryPermission64(Core::System& system, Handle process_handle, uint64_t address,
+ uint64_t size, MemoryPermission perm) {
+ R_RETURN(SetProcessMemoryPermission(system, process_handle, address, size, perm));
+}
+
+Result MapProcessMemory64(Core::System& system, uint64_t dst_address, Handle process_handle,
+ uint64_t src_address, uint64_t size) {
+ R_RETURN(MapProcessMemory(system, dst_address, process_handle, src_address, size));
+}
+
+Result UnmapProcessMemory64(Core::System& system, uint64_t dst_address, Handle process_handle,
+ uint64_t src_address, uint64_t size) {
+ R_RETURN(UnmapProcessMemory(system, dst_address, process_handle, src_address, size));
+}
+
+Result MapProcessCodeMemory64(Core::System& system, Handle process_handle, uint64_t dst_address,
+ uint64_t src_address, uint64_t size) {
+ R_RETURN(MapProcessCodeMemory(system, process_handle, dst_address, src_address, size));
+}
+
+Result UnmapProcessCodeMemory64(Core::System& system, Handle process_handle, uint64_t dst_address,
+ uint64_t src_address, uint64_t size) {
+ R_RETURN(UnmapProcessCodeMemory(system, process_handle, dst_address, src_address, size));
+}
+
+Result SetProcessMemoryPermission64From32(Core::System& system, Handle process_handle,
+ uint64_t address, uint64_t size, MemoryPermission perm) {
+ R_RETURN(SetProcessMemoryPermission(system, process_handle, address, size, perm));
+}
+
+Result MapProcessMemory64From32(Core::System& system, uint32_t dst_address, Handle process_handle,
+ uint64_t src_address, uint32_t size) {
+ R_RETURN(MapProcessMemory(system, dst_address, process_handle, src_address, size));
+}
+
+Result UnmapProcessMemory64From32(Core::System& system, uint32_t dst_address, Handle process_handle,
+ uint64_t src_address, uint32_t size) {
+ R_RETURN(UnmapProcessMemory(system, dst_address, process_handle, src_address, size));
+}
+
+Result MapProcessCodeMemory64From32(Core::System& system, Handle process_handle,
+ uint64_t dst_address, uint64_t src_address, uint64_t size) {
+ R_RETURN(MapProcessCodeMemory(system, process_handle, dst_address, src_address, size));
+}
+
+Result UnmapProcessCodeMemory64From32(Core::System& system, Handle process_handle,
+ uint64_t dst_address, uint64_t src_address, uint64_t size) {
+ R_RETURN(UnmapProcessCodeMemory(system, process_handle, dst_address, src_address, size));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_processor.cpp b/src/core/hle/kernel/svc/svc_processor.cpp
new file mode 100644
index 000000000..7602ce6c0
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_processor.cpp
@@ -0,0 +1,25 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "core/core.h"
+#include "core/hle/kernel/physical_core.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// Get which CPU core is executing the current thread
+int32_t GetCurrentProcessorNumber(Core::System& system) {
+ LOG_TRACE(Kernel_SVC, "called");
+ return static_cast<int32_t>(system.CurrentPhysicalCore().CoreIndex());
+}
+
+int32_t GetCurrentProcessorNumber64(Core::System& system) {
+ return GetCurrentProcessorNumber(system);
+}
+
+int32_t GetCurrentProcessorNumber64From32(Core::System& system) {
+ return GetCurrentProcessorNumber(system);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_query_memory.cpp b/src/core/hle/kernel/svc/svc_query_memory.cpp
new file mode 100644
index 000000000..4d9fcd25f
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_query_memory.cpp
@@ -0,0 +1,65 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+Result QueryMemory(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info,
+ u64 query_address) {
+ LOG_TRACE(Kernel_SVC,
+ "called, out_memory_info=0x{:016X}, "
+ "query_address=0x{:016X}",
+ out_memory_info, query_address);
+
+ // Query memory is just QueryProcessMemory on the current process.
+ R_RETURN(
+ QueryProcessMemory(system, out_memory_info, out_page_info, CurrentProcess, query_address));
+}
+
+Result QueryProcessMemory(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info,
+ Handle process_handle, uint64_t address) {
+ LOG_TRACE(Kernel_SVC, "called process=0x{:08X} address={:X}", process_handle, address);
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+ KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
+ if (process.IsNull()) {
+ LOG_ERROR(Kernel_SVC, "Process handle does not exist, process_handle=0x{:08X}",
+ process_handle);
+ R_THROW(ResultInvalidHandle);
+ }
+
+ auto& current_memory{GetCurrentMemory(system.Kernel())};
+ const auto memory_info{process->PageTable().QueryInfo(address).GetSvcMemoryInfo()};
+
+ current_memory.WriteBlock(out_memory_info, std::addressof(memory_info), sizeof(memory_info));
+
+ //! This is supposed to be part of the QueryInfo call.
+ *out_page_info = {};
+
+ R_SUCCEED();
+}
+
+Result QueryMemory64(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info,
+ uint64_t address) {
+ R_RETURN(QueryMemory(system, out_memory_info, out_page_info, address));
+}
+
+Result QueryProcessMemory64(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info,
+ Handle process_handle, uint64_t address) {
+ R_RETURN(QueryProcessMemory(system, out_memory_info, out_page_info, process_handle, address));
+}
+
+Result QueryMemory64From32(Core::System& system, uint32_t out_memory_info, PageInfo* out_page_info,
+ uint32_t address) {
+ R_RETURN(QueryMemory(system, out_memory_info, out_page_info, address));
+}
+
+Result QueryProcessMemory64From32(Core::System& system, uint32_t out_memory_info,
+ PageInfo* out_page_info, Handle process_handle,
+ uint64_t address) {
+ R_RETURN(QueryProcessMemory(system, out_memory_info, out_page_info, process_handle, address));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_register.cpp b/src/core/hle/kernel/svc/svc_register.cpp
new file mode 100644
index 000000000..b883e6618
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_register.cpp
@@ -0,0 +1,27 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result ReadWriteRegister(Core::System& system, uint32_t* out, uint64_t address, uint32_t mask,
+ uint32_t value) {
+ *out = 0;
+
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result ReadWriteRegister64(Core::System& system, uint32_t* out_value, uint64_t address,
+ uint32_t mask, uint32_t value) {
+ R_RETURN(ReadWriteRegister(system, out_value, address, mask, value));
+}
+
+Result ReadWriteRegister64From32(Core::System& system, uint32_t* out_value, uint64_t address,
+ uint32_t mask, uint32_t value) {
+ R_RETURN(ReadWriteRegister(system, out_value, address, mask, value));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_resource_limit.cpp b/src/core/hle/kernel/svc/svc_resource_limit.cpp
new file mode 100644
index 000000000..732bc017e
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_resource_limit.cpp
@@ -0,0 +1,145 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_resource_limit.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+Result CreateResourceLimit(Core::System& system, Handle* out_handle) {
+ LOG_DEBUG(Kernel_SVC, "called");
+
+ // Create a new resource limit.
+ auto& kernel = system.Kernel();
+ KResourceLimit* resource_limit = KResourceLimit::Create(kernel);
+ R_UNLESS(resource_limit != nullptr, ResultOutOfResource);
+
+ // Ensure we don't leak a reference to the limit.
+ SCOPE_EXIT({ resource_limit->Close(); });
+
+ // Initialize the resource limit.
+ resource_limit->Initialize(std::addressof(system.CoreTiming()));
+
+ // Register the limit.
+ KResourceLimit::Register(kernel, resource_limit);
+
+ // Add the limit to the handle table.
+ R_RETURN(GetCurrentProcess(kernel).GetHandleTable().Add(out_handle, resource_limit));
+}
+
+Result GetResourceLimitLimitValue(Core::System& system, s64* out_limit_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ LOG_DEBUG(Kernel_SVC, "called, resource_limit_handle={:08X}, which={}", resource_limit_handle,
+ which);
+
+ // Validate the resource.
+ R_UNLESS(IsValidResourceType(which), ResultInvalidEnumValue);
+
+ // Get the resource limit.
+ KScopedAutoObject resource_limit = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KResourceLimit>(resource_limit_handle);
+ R_UNLESS(resource_limit.IsNotNull(), ResultInvalidHandle);
+
+ // Get the limit value.
+ *out_limit_value = resource_limit->GetLimitValue(which);
+
+ R_SUCCEED();
+}
+
+Result GetResourceLimitCurrentValue(Core::System& system, s64* out_current_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ LOG_DEBUG(Kernel_SVC, "called, resource_limit_handle={:08X}, which={}", resource_limit_handle,
+ which);
+
+ // Validate the resource.
+ R_UNLESS(IsValidResourceType(which), ResultInvalidEnumValue);
+
+ // Get the resource limit.
+ KScopedAutoObject resource_limit = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KResourceLimit>(resource_limit_handle);
+ R_UNLESS(resource_limit.IsNotNull(), ResultInvalidHandle);
+
+ // Get the current value.
+ *out_current_value = resource_limit->GetCurrentValue(which);
+
+ R_SUCCEED();
+}
+
+Result SetResourceLimitLimitValue(Core::System& system, Handle resource_limit_handle,
+ LimitableResource which, s64 limit_value) {
+ LOG_DEBUG(Kernel_SVC, "called, resource_limit_handle={:08X}, which={}, limit_value={}",
+ resource_limit_handle, which, limit_value);
+
+ // Validate the resource.
+ R_UNLESS(IsValidResourceType(which), ResultInvalidEnumValue);
+
+ // Get the resource limit.
+ KScopedAutoObject resource_limit = GetCurrentProcess(system.Kernel())
+ .GetHandleTable()
+ .GetObject<KResourceLimit>(resource_limit_handle);
+ R_UNLESS(resource_limit.IsNotNull(), ResultInvalidHandle);
+
+ // Set the limit value.
+ R_RETURN(resource_limit->SetLimitValue(which, limit_value));
+}
+
+Result GetResourceLimitPeakValue(Core::System& system, int64_t* out_peak_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result GetResourceLimitLimitValue64(Core::System& system, int64_t* out_limit_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ R_RETURN(GetResourceLimitLimitValue(system, out_limit_value, resource_limit_handle, which));
+}
+
+Result GetResourceLimitCurrentValue64(Core::System& system, int64_t* out_current_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ R_RETURN(GetResourceLimitCurrentValue(system, out_current_value, resource_limit_handle, which));
+}
+
+Result GetResourceLimitPeakValue64(Core::System& system, int64_t* out_peak_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ R_RETURN(GetResourceLimitPeakValue(system, out_peak_value, resource_limit_handle, which));
+}
+
+Result CreateResourceLimit64(Core::System& system, Handle* out_handle) {
+ R_RETURN(CreateResourceLimit(system, out_handle));
+}
+
+Result SetResourceLimitLimitValue64(Core::System& system, Handle resource_limit_handle,
+ LimitableResource which, int64_t limit_value) {
+ R_RETURN(SetResourceLimitLimitValue(system, resource_limit_handle, which, limit_value));
+}
+
+Result GetResourceLimitLimitValue64From32(Core::System& system, int64_t* out_limit_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ R_RETURN(GetResourceLimitLimitValue(system, out_limit_value, resource_limit_handle, which));
+}
+
+Result GetResourceLimitCurrentValue64From32(Core::System& system, int64_t* out_current_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ R_RETURN(GetResourceLimitCurrentValue(system, out_current_value, resource_limit_handle, which));
+}
+
+Result GetResourceLimitPeakValue64From32(Core::System& system, int64_t* out_peak_value,
+ Handle resource_limit_handle, LimitableResource which) {
+ R_RETURN(GetResourceLimitPeakValue(system, out_peak_value, resource_limit_handle, which));
+}
+
+Result CreateResourceLimit64From32(Core::System& system, Handle* out_handle) {
+ R_RETURN(CreateResourceLimit(system, out_handle));
+}
+
+Result SetResourceLimitLimitValue64From32(Core::System& system, Handle resource_limit_handle,
+ LimitableResource which, int64_t limit_value) {
+ R_RETURN(SetResourceLimitLimitValue(system, resource_limit_handle, which, limit_value));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_secure_monitor_call.cpp b/src/core/hle/kernel/svc/svc_secure_monitor_call.cpp
new file mode 100644
index 000000000..62c781551
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_secure_monitor_call.cpp
@@ -0,0 +1,53 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/physical_core.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+void CallSecureMonitor(Core::System& system, lp64::SecureMonitorArguments* args) {
+ UNIMPLEMENTED();
+}
+
+void CallSecureMonitor64(Core::System& system, lp64::SecureMonitorArguments* args) {
+ CallSecureMonitor(system, args);
+}
+
+void CallSecureMonitor64From32(Core::System& system, ilp32::SecureMonitorArguments* args) {
+ // CallSecureMonitor64From32 is not supported.
+ UNIMPLEMENTED_MSG("CallSecureMonitor64From32");
+}
+
+// Custom ABI for CallSecureMonitor.
+
+void SvcWrap_CallSecureMonitor64(Core::System& system) {
+ auto& core = system.CurrentPhysicalCore().ArmInterface();
+ lp64::SecureMonitorArguments args{};
+ for (int i = 0; i < 8; i++) {
+ args.r[i] = core.GetReg(i);
+ }
+
+ CallSecureMonitor64(system, std::addressof(args));
+
+ for (int i = 0; i < 8; i++) {
+ core.SetReg(i, args.r[i]);
+ }
+}
+
+void SvcWrap_CallSecureMonitor64From32(Core::System& system) {
+ auto& core = system.CurrentPhysicalCore().ArmInterface();
+ ilp32::SecureMonitorArguments args{};
+ for (int i = 0; i < 8; i++) {
+ args.r[i] = static_cast<u32>(core.GetReg(i));
+ }
+
+ CallSecureMonitor64From32(system, std::addressof(args));
+
+ for (int i = 0; i < 8; i++) {
+ core.SetReg(i, args.r[i]);
+ }
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_session.cpp b/src/core/hle/kernel/svc/svc_session.cpp
new file mode 100644
index 000000000..01b8a52ad
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_session.cpp
@@ -0,0 +1,127 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_scoped_resource_reservation.h"
+#include "core/hle/kernel/k_session.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+namespace {
+
+template <typename T>
+Result CreateSession(Core::System& system, Handle* out_server, Handle* out_client, uint64_t name) {
+ auto& process = GetCurrentProcess(system.Kernel());
+ auto& handle_table = process.GetHandleTable();
+
+ // Declare the session we're going to allocate.
+ T* session;
+
+ // Reserve a new session from the process resource limit.
+ // FIXME: LimitableResource_SessionCountMax
+ KScopedResourceReservation session_reservation(std::addressof(process),
+ LimitableResource::SessionCountMax);
+ if (session_reservation.Succeeded()) {
+ session = T::Create(system.Kernel());
+ } else {
+ R_THROW(ResultLimitReached);
+
+ // // We couldn't reserve a session. Check that we support dynamically expanding the
+ // // resource limit.
+ // R_UNLESS(process.GetResourceLimit() ==
+ // std::addressof(system.Kernel().GetSystemResourceLimit()), ResultLimitReached);
+ // R_UNLESS(KTargetSystem::IsDynamicResourceLimitsEnabled(), ResultLimitReached());
+
+ // // Try to allocate a session from unused slab memory.
+ // session = T::CreateFromUnusedSlabMemory();
+ // R_UNLESS(session != nullptr, ResultLimitReached);
+ // ON_RESULT_FAILURE { session->Close(); };
+
+ // // If we're creating a KSession, we want to add two KSessionRequests to the heap, to
+ // // prevent request exhaustion.
+ // // NOTE: Nintendo checks if session->DynamicCast<KSession *>() != nullptr, but there's
+ // // no reason to not do this statically.
+ // if constexpr (std::same_as<T, KSession>) {
+ // for (size_t i = 0; i < 2; i++) {
+ // KSessionRequest* request = KSessionRequest::CreateFromUnusedSlabMemory();
+ // R_UNLESS(request != nullptr, ResultLimitReached);
+ // request->Close();
+ // }
+ // }
+
+ // We successfully allocated a session, so add the object we allocated to the resource
+ // limit.
+ // system.Kernel().GetSystemResourceLimit().Reserve(LimitableResource::SessionCountMax, 1);
+ }
+
+ // Check that we successfully created a session.
+ R_UNLESS(session != nullptr, ResultOutOfResource);
+
+ // Initialize the session.
+ session->Initialize(nullptr, name);
+
+ // Commit the session reservation.
+ session_reservation.Commit();
+
+ // Ensure that we clean up the session (and its only references are handle table) on function
+ // end.
+ SCOPE_EXIT({
+ session->GetClientSession().Close();
+ session->GetServerSession().Close();
+ });
+
+ // Register the session.
+ T::Register(system.Kernel(), session);
+
+ // Add the server session to the handle table.
+ R_TRY(handle_table.Add(out_server, std::addressof(session->GetServerSession())));
+
+ // Ensure that we maintain a clean handle state on exit.
+ ON_RESULT_FAILURE {
+ handle_table.Remove(*out_server);
+ };
+
+ // Add the client session to the handle table.
+ R_RETURN(handle_table.Add(out_client, std::addressof(session->GetClientSession())));
+}
+
+} // namespace
+
+Result CreateSession(Core::System& system, Handle* out_server, Handle* out_client, bool is_light,
+ u64 name) {
+ if (is_light) {
+ // return CreateSession<KLightSession>(system, out_server, out_client, name);
+ R_THROW(ResultNotImplemented);
+ } else {
+ R_RETURN(CreateSession<KSession>(system, out_server, out_client, name));
+ }
+}
+
+Result AcceptSession(Core::System& system, Handle* out_handle, Handle port_handle) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result CreateSession64(Core::System& system, Handle* out_server_session_handle,
+ Handle* out_client_session_handle, bool is_light, uint64_t name) {
+ R_RETURN(CreateSession(system, out_server_session_handle, out_client_session_handle, is_light,
+ name));
+}
+
+Result AcceptSession64(Core::System& system, Handle* out_handle, Handle port) {
+ R_RETURN(AcceptSession(system, out_handle, port));
+}
+
+Result CreateSession64From32(Core::System& system, Handle* out_server_session_handle,
+ Handle* out_client_session_handle, bool is_light, uint32_t name) {
+ R_RETURN(CreateSession(system, out_server_session_handle, out_client_session_handle, is_light,
+ name));
+}
+
+Result AcceptSession64From32(Core::System& system, Handle* out_handle, Handle port) {
+ R_RETURN(AcceptSession(system, out_handle, port));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_shared_memory.cpp b/src/core/hle/kernel/svc/svc_shared_memory.cpp
new file mode 100644
index 000000000..a698596aa
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_shared_memory.cpp
@@ -0,0 +1,130 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_shared_memory.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+namespace {
+
+constexpr bool IsValidSharedMemoryPermission(MemoryPermission perm) {
+ switch (perm) {
+ case MemoryPermission::Read:
+ case MemoryPermission::ReadWrite:
+ return true;
+ default:
+ return false;
+ }
+}
+
+[[maybe_unused]] constexpr bool IsValidRemoteSharedMemoryPermission(MemoryPermission perm) {
+ return IsValidSharedMemoryPermission(perm) || perm == MemoryPermission::DontCare;
+}
+
+} // namespace
+
+Result MapSharedMemory(Core::System& system, Handle shmem_handle, u64 address, u64 size,
+ Svc::MemoryPermission map_perm) {
+ LOG_TRACE(Kernel_SVC,
+ "called, shared_memory_handle=0x{:X}, addr=0x{:X}, size=0x{:X}, permissions=0x{:08X}",
+ shmem_handle, address, size, map_perm);
+
+ // Validate the address/size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+
+ // Validate the permission.
+ R_UNLESS(IsValidSharedMemoryPermission(map_perm), ResultInvalidNewMemoryPermission);
+
+ // Get the current process.
+ auto& process = GetCurrentProcess(system.Kernel());
+ auto& page_table = process.PageTable();
+
+ // Get the shared memory.
+ KScopedAutoObject shmem = process.GetHandleTable().GetObject<KSharedMemory>(shmem_handle);
+ R_UNLESS(shmem.IsNotNull(), ResultInvalidHandle);
+
+ // Verify that the mapping is in range.
+ R_UNLESS(page_table.CanContain(address, size, KMemoryState::Shared), ResultInvalidMemoryRegion);
+
+ // Add the shared memory to the process.
+ R_TRY(process.AddSharedMemory(shmem.GetPointerUnsafe(), address, size));
+
+ // Ensure that we clean up the shared memory if we fail to map it.
+ ON_RESULT_FAILURE {
+ process.RemoveSharedMemory(shmem.GetPointerUnsafe(), address, size);
+ };
+
+ // Map the shared memory.
+ R_RETURN(shmem->Map(process, address, size, map_perm));
+}
+
+Result UnmapSharedMemory(Core::System& system, Handle shmem_handle, u64 address, u64 size) {
+ // Validate the address/size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+
+ // Get the current process.
+ auto& process = GetCurrentProcess(system.Kernel());
+ auto& page_table = process.PageTable();
+
+ // Get the shared memory.
+ KScopedAutoObject shmem = process.GetHandleTable().GetObject<KSharedMemory>(shmem_handle);
+ R_UNLESS(shmem.IsNotNull(), ResultInvalidHandle);
+
+ // Verify that the mapping is in range.
+ R_UNLESS(page_table.CanContain(address, size, KMemoryState::Shared), ResultInvalidMemoryRegion);
+
+ // Unmap the shared memory.
+ R_TRY(shmem->Unmap(process, address, size));
+
+ // Remove the shared memory from the process.
+ process.RemoveSharedMemory(shmem.GetPointerUnsafe(), address, size);
+
+ R_SUCCEED();
+}
+
+Result CreateSharedMemory(Core::System& system, Handle* out_handle, uint64_t size,
+ MemoryPermission owner_perm, MemoryPermission remote_perm) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result MapSharedMemory64(Core::System& system, Handle shmem_handle, uint64_t address, uint64_t size,
+ MemoryPermission map_perm) {
+ R_RETURN(MapSharedMemory(system, shmem_handle, address, size, map_perm));
+}
+
+Result UnmapSharedMemory64(Core::System& system, Handle shmem_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(UnmapSharedMemory(system, shmem_handle, address, size));
+}
+
+Result CreateSharedMemory64(Core::System& system, Handle* out_handle, uint64_t size,
+ MemoryPermission owner_perm, MemoryPermission remote_perm) {
+ R_RETURN(CreateSharedMemory(system, out_handle, size, owner_perm, remote_perm));
+}
+
+Result MapSharedMemory64From32(Core::System& system, Handle shmem_handle, uint32_t address,
+ uint32_t size, MemoryPermission map_perm) {
+ R_RETURN(MapSharedMemory(system, shmem_handle, address, size, map_perm));
+}
+
+Result UnmapSharedMemory64From32(Core::System& system, Handle shmem_handle, uint32_t address,
+ uint32_t size) {
+ R_RETURN(UnmapSharedMemory(system, shmem_handle, address, size));
+}
+
+Result CreateSharedMemory64From32(Core::System& system, Handle* out_handle, uint32_t size,
+ MemoryPermission owner_perm, MemoryPermission remote_perm) {
+ R_RETURN(CreateSharedMemory(system, out_handle, size, owner_perm, remote_perm));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_synchronization.cpp b/src/core/hle/kernel/svc/svc_synchronization.cpp
new file mode 100644
index 000000000..53df5bcd8
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_synchronization.cpp
@@ -0,0 +1,175 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "common/scratch_buffer.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_readable_event.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// Close a handle
+Result CloseHandle(Core::System& system, Handle handle) {
+ LOG_TRACE(Kernel_SVC, "Closing handle 0x{:08X}", handle);
+
+ // Remove the handle.
+ R_UNLESS(GetCurrentProcess(system.Kernel()).GetHandleTable().Remove(handle),
+ ResultInvalidHandle);
+
+ R_SUCCEED();
+}
+
+/// Clears the signaled state of an event or process.
+Result ResetSignal(Core::System& system, Handle handle) {
+ LOG_DEBUG(Kernel_SVC, "called handle 0x{:08X}", handle);
+
+ // Get the current handle table.
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
+
+ // Try to reset as readable event.
+ {
+ KScopedAutoObject readable_event = handle_table.GetObject<KReadableEvent>(handle);
+ if (readable_event.IsNotNull()) {
+ R_RETURN(readable_event->Reset());
+ }
+ }
+
+ // Try to reset as process.
+ {
+ KScopedAutoObject process = handle_table.GetObject<KProcess>(handle);
+ if (process.IsNotNull()) {
+ R_RETURN(process->Reset());
+ }
+ }
+
+ R_THROW(ResultInvalidHandle);
+}
+
+static Result WaitSynchronization(Core::System& system, int32_t* out_index, const Handle* handles,
+ int32_t num_handles, int64_t timeout_ns) {
+ // Ensure number of handles is valid.
+ R_UNLESS(0 <= num_handles && num_handles <= Svc::ArgumentHandleCountMax, ResultOutOfRange);
+
+ // Get the synchronization context.
+ auto& kernel = system.Kernel();
+ auto& handle_table = GetCurrentProcess(kernel).GetHandleTable();
+ std::array<KSynchronizationObject*, Svc::ArgumentHandleCountMax> objs;
+
+ // Copy user handles.
+ if (num_handles > 0) {
+ // Convert the handles to objects.
+ R_UNLESS(handle_table.GetMultipleObjects<KSynchronizationObject>(objs.data(), handles,
+ num_handles),
+ ResultInvalidHandle);
+ }
+
+ // Ensure handles are closed when we're done.
+ SCOPE_EXIT({
+ for (auto i = 0; i < num_handles; ++i) {
+ objs[i]->Close();
+ }
+ });
+
+ // Wait on the objects.
+ Result res =
+ KSynchronizationObject::Wait(kernel, out_index, objs.data(), num_handles, timeout_ns);
+
+ R_SUCCEED_IF(res == ResultSessionClosed);
+ R_RETURN(res);
+}
+
+/// Wait for the given handles to synchronize, timeout after the specified nanoseconds
+Result WaitSynchronization(Core::System& system, int32_t* out_index, u64 user_handles,
+ int32_t num_handles, int64_t timeout_ns) {
+ LOG_TRACE(Kernel_SVC, "called user_handles={:#x}, num_handles={}, timeout_ns={}", user_handles,
+ num_handles, timeout_ns);
+
+ // Ensure number of handles is valid.
+ R_UNLESS(0 <= num_handles && num_handles <= Svc::ArgumentHandleCountMax, ResultOutOfRange);
+ std::array<Handle, Svc::ArgumentHandleCountMax> handles;
+ if (num_handles > 0) {
+ GetCurrentMemory(system.Kernel())
+ .ReadBlock(user_handles, handles.data(), num_handles * sizeof(Handle));
+ }
+
+ R_RETURN(WaitSynchronization(system, out_index, handles.data(), num_handles, timeout_ns));
+}
+
+/// Resumes a thread waiting on WaitSynchronization
+Result CancelSynchronization(Core::System& system, Handle handle) {
+ LOG_TRACE(Kernel_SVC, "called handle=0x{:X}", handle);
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Cancel the thread's wait.
+ thread->WaitCancel();
+ R_SUCCEED();
+}
+
+void SynchronizePreemptionState(Core::System& system) {
+ auto& kernel = system.Kernel();
+
+ // Lock the scheduler.
+ KScopedSchedulerLock sl{kernel};
+
+ // If the current thread is pinned, unpin it.
+ KProcess* cur_process = GetCurrentProcessPointer(kernel);
+ const auto core_id = GetCurrentCoreId(kernel);
+
+ if (cur_process->GetPinnedThread(core_id) == GetCurrentThreadPointer(kernel)) {
+ // Clear the current thread's interrupt flag.
+ GetCurrentThread(kernel).ClearInterruptFlag();
+
+ // Unpin the current thread.
+ cur_process->UnpinCurrentThread(core_id);
+ }
+}
+
+Result CloseHandle64(Core::System& system, Handle handle) {
+ R_RETURN(CloseHandle(system, handle));
+}
+
+Result ResetSignal64(Core::System& system, Handle handle) {
+ R_RETURN(ResetSignal(system, handle));
+}
+
+Result WaitSynchronization64(Core::System& system, int32_t* out_index, uint64_t handles,
+ int32_t num_handles, int64_t timeout_ns) {
+ R_RETURN(WaitSynchronization(system, out_index, handles, num_handles, timeout_ns));
+}
+
+Result CancelSynchronization64(Core::System& system, Handle handle) {
+ R_RETURN(CancelSynchronization(system, handle));
+}
+
+void SynchronizePreemptionState64(Core::System& system) {
+ SynchronizePreemptionState(system);
+}
+
+Result CloseHandle64From32(Core::System& system, Handle handle) {
+ R_RETURN(CloseHandle(system, handle));
+}
+
+Result ResetSignal64From32(Core::System& system, Handle handle) {
+ R_RETURN(ResetSignal(system, handle));
+}
+
+Result WaitSynchronization64From32(Core::System& system, int32_t* out_index, uint32_t handles,
+ int32_t num_handles, int64_t timeout_ns) {
+ R_RETURN(WaitSynchronization(system, out_index, handles, num_handles, timeout_ns));
+}
+
+Result CancelSynchronization64From32(Core::System& system, Handle handle) {
+ R_RETURN(CancelSynchronization(system, handle));
+}
+
+void SynchronizePreemptionState64From32(Core::System& system) {
+ SynchronizePreemptionState(system);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_thread.cpp b/src/core/hle/kernel/svc/svc_thread.cpp
new file mode 100644
index 000000000..36b94e6bf
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_thread.cpp
@@ -0,0 +1,412 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/core_timing.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_scoped_resource_reservation.h"
+#include "core/hle/kernel/k_thread.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+namespace {
+
+constexpr bool IsValidVirtualCoreId(int32_t core_id) {
+ return (0 <= core_id && core_id < static_cast<int32_t>(Core::Hardware::NUM_CPU_CORES));
+}
+
+} // Anonymous namespace
+
+/// Creates a new thread
+Result CreateThread(Core::System& system, Handle* out_handle, u64 entry_point, u64 arg,
+ u64 stack_bottom, s32 priority, s32 core_id) {
+ LOG_DEBUG(Kernel_SVC,
+ "called entry_point=0x{:08X}, arg=0x{:08X}, stack_bottom=0x{:08X}, "
+ "priority=0x{:08X}, core_id=0x{:08X}",
+ entry_point, arg, stack_bottom, priority, core_id);
+
+ // Adjust core id, if it's the default magic.
+ auto& kernel = system.Kernel();
+ auto& process = GetCurrentProcess(kernel);
+ if (core_id == IdealCoreUseProcessValue) {
+ core_id = process.GetIdealCoreId();
+ }
+
+ // Validate arguments.
+ R_UNLESS(IsValidVirtualCoreId(core_id), ResultInvalidCoreId);
+ R_UNLESS(((1ull << core_id) & process.GetCoreMask()) != 0, ResultInvalidCoreId);
+
+ R_UNLESS(HighestThreadPriority <= priority && priority <= LowestThreadPriority,
+ ResultInvalidPriority);
+ R_UNLESS(process.CheckThreadPriority(priority), ResultInvalidPriority);
+
+ // Reserve a new thread from the process resource limit (waiting up to 100ms).
+ KScopedResourceReservation thread_reservation(
+ std::addressof(process), LimitableResource::ThreadCountMax, 1,
+ system.CoreTiming().GetGlobalTimeNs().count() + 100000000);
+ R_UNLESS(thread_reservation.Succeeded(), ResultLimitReached);
+
+ // Create the thread.
+ KThread* thread = KThread::Create(kernel);
+ R_UNLESS(thread != nullptr, ResultOutOfResource)
+ SCOPE_EXIT({ thread->Close(); });
+
+ // Initialize the thread.
+ {
+ KScopedLightLock lk{process.GetStateLock()};
+ R_TRY(KThread::InitializeUserThread(system, thread, entry_point, arg, stack_bottom,
+ priority, core_id, std::addressof(process)));
+ }
+
+ // Commit the thread reservation.
+ thread_reservation.Commit();
+
+ // Clone the current fpu status to the new thread.
+ thread->CloneFpuStatus();
+
+ // Register the new thread.
+ KThread::Register(kernel, thread);
+
+ // Add the thread to the handle table.
+ R_RETURN(process.GetHandleTable().Add(out_handle, thread));
+}
+
+/// Starts the thread for the provided handle
+Result StartThread(Core::System& system, Handle thread_handle) {
+ LOG_DEBUG(Kernel_SVC, "called thread=0x{:08X}", thread_handle);
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(thread_handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Try to start the thread.
+ R_TRY(thread->Run());
+
+ // If we succeeded, persist a reference to the thread.
+ thread->Open();
+ system.Kernel().RegisterInUseObject(thread.GetPointerUnsafe());
+
+ R_SUCCEED();
+}
+
+/// Called when a thread exits
+void ExitThread(Core::System& system) {
+ LOG_DEBUG(Kernel_SVC, "called, pc=0x{:08X}", system.CurrentArmInterface().GetPC());
+
+ auto* const current_thread = GetCurrentThreadPointer(system.Kernel());
+ system.GlobalSchedulerContext().RemoveThread(current_thread);
+ current_thread->Exit();
+ system.Kernel().UnregisterInUseObject(current_thread);
+}
+
+/// Sleep the current thread
+void SleepThread(Core::System& system, s64 nanoseconds) {
+ auto& kernel = system.Kernel();
+ const auto yield_type = static_cast<Svc::YieldType>(nanoseconds);
+
+ LOG_TRACE(Kernel_SVC, "called nanoseconds={}", nanoseconds);
+
+ // When the input tick is positive, sleep.
+ if (nanoseconds > 0) {
+ // Convert the timeout from nanoseconds to ticks.
+ // NOTE: Nintendo does not use this conversion logic in WaitSynchronization...
+
+ // Sleep.
+ // NOTE: Nintendo does not check the result of this sleep.
+ static_cast<void>(GetCurrentThread(kernel).Sleep(nanoseconds));
+ } else if (yield_type == Svc::YieldType::WithoutCoreMigration) {
+ KScheduler::YieldWithoutCoreMigration(kernel);
+ } else if (yield_type == Svc::YieldType::WithCoreMigration) {
+ KScheduler::YieldWithCoreMigration(kernel);
+ } else if (yield_type == Svc::YieldType::ToAnyThread) {
+ KScheduler::YieldToAnyThread(kernel);
+ } else {
+ // Nintendo does nothing at all if an otherwise invalid value is passed.
+ ASSERT_MSG(false, "Unimplemented sleep yield type '{:016X}'!", nanoseconds);
+ }
+}
+
+/// Gets the thread context
+Result GetThreadContext3(Core::System& system, u64 out_context, Handle thread_handle) {
+ LOG_DEBUG(Kernel_SVC, "called, out_context=0x{:08X}, thread_handle=0x{:X}", out_context,
+ thread_handle);
+
+ auto& kernel = system.Kernel();
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(kernel).GetHandleTable().GetObject<KThread>(thread_handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Require the handle be to a non-current thread in the current process.
+ const auto* current_process = GetCurrentProcessPointer(kernel);
+ R_UNLESS(current_process == thread->GetOwnerProcess(), ResultInvalidId);
+
+ // Verify that the thread isn't terminated.
+ R_UNLESS(thread->GetState() != ThreadState::Terminated, ResultTerminationRequested);
+
+ /// Check that the thread is not the current one.
+ /// NOTE: Nintendo does not check this, and thus the following loop will deadlock.
+ R_UNLESS(thread.GetPointerUnsafe() != GetCurrentThreadPointer(kernel), ResultInvalidId);
+
+ // Try to get the thread context until the thread isn't current on any core.
+ while (true) {
+ KScopedSchedulerLock sl{kernel};
+
+ // TODO(bunnei): Enforce that thread is suspended for debug here.
+
+ // If the thread's raw state isn't runnable, check if it's current on some core.
+ if (thread->GetRawState() != ThreadState::Runnable) {
+ bool current = false;
+ for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
+ if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetSchedulerCurrentThread()) {
+ current = true;
+ break;
+ }
+ }
+
+ // If the thread is current, retry until it isn't.
+ if (current) {
+ continue;
+ }
+ }
+
+ // Get the thread context.
+ static thread_local Common::ScratchBuffer<u8> context;
+ R_TRY(thread->GetThreadContext3(context));
+
+ // Copy the thread context to user space.
+ GetCurrentMemory(kernel).WriteBlock(out_context, context.data(), context.size());
+
+ R_SUCCEED();
+ }
+}
+
+/// Gets the priority for the specified thread
+Result GetThreadPriority(Core::System& system, s32* out_priority, Handle handle) {
+ LOG_TRACE(Kernel_SVC, "called");
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Get the thread's priority.
+ *out_priority = thread->GetPriority();
+ R_SUCCEED();
+}
+
+/// Sets the priority for the specified thread
+Result SetThreadPriority(Core::System& system, Handle thread_handle, s32 priority) {
+ // Get the current process.
+ KProcess& process = GetCurrentProcess(system.Kernel());
+
+ // Validate the priority.
+ R_UNLESS(HighestThreadPriority <= priority && priority <= LowestThreadPriority,
+ ResultInvalidPriority);
+ R_UNLESS(process.CheckThreadPriority(priority), ResultInvalidPriority);
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread = process.GetHandleTable().GetObject<KThread>(thread_handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Set the thread priority.
+ thread->SetBasePriority(priority);
+ R_SUCCEED();
+}
+
+Result GetThreadList(Core::System& system, s32* out_num_threads, u64 out_thread_ids,
+ s32 out_thread_ids_size, Handle debug_handle) {
+ // TODO: Handle this case when debug events are supported.
+ UNIMPLEMENTED_IF(debug_handle != InvalidHandle);
+
+ LOG_DEBUG(Kernel_SVC, "called. out_thread_ids=0x{:016X}, out_thread_ids_size={}",
+ out_thread_ids, out_thread_ids_size);
+
+ // If the size is negative or larger than INT32_MAX / sizeof(u64)
+ if ((out_thread_ids_size & 0xF0000000) != 0) {
+ LOG_ERROR(Kernel_SVC, "Supplied size outside [0, 0x0FFFFFFF] range. size={}",
+ out_thread_ids_size);
+ R_THROW(ResultOutOfRange);
+ }
+
+ auto* const current_process = GetCurrentProcessPointer(system.Kernel());
+ const auto total_copy_size = out_thread_ids_size * sizeof(u64);
+
+ if (out_thread_ids_size > 0 &&
+ !current_process->PageTable().IsInsideAddressSpace(out_thread_ids, total_copy_size)) {
+ LOG_ERROR(Kernel_SVC, "Address range outside address space. begin=0x{:016X}, end=0x{:016X}",
+ out_thread_ids, out_thread_ids + total_copy_size);
+ R_THROW(ResultInvalidCurrentMemory);
+ }
+
+ auto& memory = GetCurrentMemory(system.Kernel());
+ const auto& thread_list = current_process->GetThreadList();
+ const auto num_threads = thread_list.size();
+ const auto copy_amount = std::min(static_cast<std::size_t>(out_thread_ids_size), num_threads);
+
+ auto list_iter = thread_list.cbegin();
+ for (std::size_t i = 0; i < copy_amount; ++i, ++list_iter) {
+ memory.Write64(out_thread_ids, (*list_iter)->GetThreadId());
+ out_thread_ids += sizeof(u64);
+ }
+
+ *out_num_threads = static_cast<u32>(num_threads);
+ R_SUCCEED();
+}
+
+Result GetThreadCoreMask(Core::System& system, s32* out_core_id, u64* out_affinity_mask,
+ Handle thread_handle) {
+ LOG_TRACE(Kernel_SVC, "called, handle=0x{:08X}", thread_handle);
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(thread_handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Get the core mask.
+ R_RETURN(thread->GetCoreMask(out_core_id, out_affinity_mask));
+}
+
+Result SetThreadCoreMask(Core::System& system, Handle thread_handle, s32 core_id,
+ u64 affinity_mask) {
+ // Determine the core id/affinity mask.
+ if (core_id == IdealCoreUseProcessValue) {
+ core_id = GetCurrentProcess(system.Kernel()).GetIdealCoreId();
+ affinity_mask = (1ULL << core_id);
+ } else {
+ // Validate the affinity mask.
+ const u64 process_core_mask = GetCurrentProcess(system.Kernel()).GetCoreMask();
+ R_UNLESS((affinity_mask | process_core_mask) == process_core_mask, ResultInvalidCoreId);
+ R_UNLESS(affinity_mask != 0, ResultInvalidCombination);
+
+ // Validate the core id.
+ if (IsValidVirtualCoreId(core_id)) {
+ R_UNLESS(((1ULL << core_id) & affinity_mask) != 0, ResultInvalidCombination);
+ } else {
+ R_UNLESS(core_id == IdealCoreNoUpdate || core_id == IdealCoreDontCare,
+ ResultInvalidCoreId);
+ }
+ }
+
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(thread_handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Set the core mask.
+ R_RETURN(thread->SetCoreMask(core_id, affinity_mask));
+}
+
+/// Get the ID for the specified thread.
+Result GetThreadId(Core::System& system, u64* out_thread_id, Handle thread_handle) {
+ // Get the thread from its handle.
+ KScopedAutoObject thread =
+ GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(thread_handle);
+ R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
+
+ // Get the thread's id.
+ *out_thread_id = thread->GetId();
+ R_SUCCEED();
+}
+
+Result CreateThread64(Core::System& system, Handle* out_handle, uint64_t func, uint64_t arg,
+ uint64_t stack_bottom, int32_t priority, int32_t core_id) {
+ R_RETURN(CreateThread(system, out_handle, func, arg, stack_bottom, priority, core_id));
+}
+
+Result StartThread64(Core::System& system, Handle thread_handle) {
+ R_RETURN(StartThread(system, thread_handle));
+}
+
+void ExitThread64(Core::System& system) {
+ return ExitThread(system);
+}
+
+void SleepThread64(Core::System& system, int64_t ns) {
+ return SleepThread(system, ns);
+}
+
+Result GetThreadPriority64(Core::System& system, int32_t* out_priority, Handle thread_handle) {
+ R_RETURN(GetThreadPriority(system, out_priority, thread_handle));
+}
+
+Result SetThreadPriority64(Core::System& system, Handle thread_handle, int32_t priority) {
+ R_RETURN(SetThreadPriority(system, thread_handle, priority));
+}
+
+Result GetThreadCoreMask64(Core::System& system, int32_t* out_core_id, uint64_t* out_affinity_mask,
+ Handle thread_handle) {
+ R_RETURN(GetThreadCoreMask(system, out_core_id, out_affinity_mask, thread_handle));
+}
+
+Result SetThreadCoreMask64(Core::System& system, Handle thread_handle, int32_t core_id,
+ uint64_t affinity_mask) {
+ R_RETURN(SetThreadCoreMask(system, thread_handle, core_id, affinity_mask));
+}
+
+Result GetThreadId64(Core::System& system, uint64_t* out_thread_id, Handle thread_handle) {
+ R_RETURN(GetThreadId(system, out_thread_id, thread_handle));
+}
+
+Result GetThreadContext364(Core::System& system, uint64_t out_context, Handle thread_handle) {
+ R_RETURN(GetThreadContext3(system, out_context, thread_handle));
+}
+
+Result GetThreadList64(Core::System& system, int32_t* out_num_threads, uint64_t out_thread_ids,
+ int32_t max_out_count, Handle debug_handle) {
+ R_RETURN(GetThreadList(system, out_num_threads, out_thread_ids, max_out_count, debug_handle));
+}
+
+Result CreateThread64From32(Core::System& system, Handle* out_handle, uint32_t func, uint32_t arg,
+ uint32_t stack_bottom, int32_t priority, int32_t core_id) {
+ R_RETURN(CreateThread(system, out_handle, func, arg, stack_bottom, priority, core_id));
+}
+
+Result StartThread64From32(Core::System& system, Handle thread_handle) {
+ R_RETURN(StartThread(system, thread_handle));
+}
+
+void ExitThread64From32(Core::System& system) {
+ return ExitThread(system);
+}
+
+void SleepThread64From32(Core::System& system, int64_t ns) {
+ return SleepThread(system, ns);
+}
+
+Result GetThreadPriority64From32(Core::System& system, int32_t* out_priority,
+ Handle thread_handle) {
+ R_RETURN(GetThreadPriority(system, out_priority, thread_handle));
+}
+
+Result SetThreadPriority64From32(Core::System& system, Handle thread_handle, int32_t priority) {
+ R_RETURN(SetThreadPriority(system, thread_handle, priority));
+}
+
+Result GetThreadCoreMask64From32(Core::System& system, int32_t* out_core_id,
+ uint64_t* out_affinity_mask, Handle thread_handle) {
+ R_RETURN(GetThreadCoreMask(system, out_core_id, out_affinity_mask, thread_handle));
+}
+
+Result SetThreadCoreMask64From32(Core::System& system, Handle thread_handle, int32_t core_id,
+ uint64_t affinity_mask) {
+ R_RETURN(SetThreadCoreMask(system, thread_handle, core_id, affinity_mask));
+}
+
+Result GetThreadId64From32(Core::System& system, uint64_t* out_thread_id, Handle thread_handle) {
+ R_RETURN(GetThreadId(system, out_thread_id, thread_handle));
+}
+
+Result GetThreadContext364From32(Core::System& system, uint32_t out_context, Handle thread_handle) {
+ R_RETURN(GetThreadContext3(system, out_context, thread_handle));
+}
+
+Result GetThreadList64From32(Core::System& system, int32_t* out_num_threads,
+ uint32_t out_thread_ids, int32_t max_out_count, Handle debug_handle) {
+ R_RETURN(GetThreadList(system, out_num_threads, out_thread_ids, max_out_count, debug_handle));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_thread_profiler.cpp b/src/core/hle/kernel/svc/svc_thread_profiler.cpp
new file mode 100644
index 000000000..40de7708b
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_thread_profiler.cpp
@@ -0,0 +1,60 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/kernel/svc.h"
+#include "core/hle/kernel/svc_results.h"
+
+namespace Kernel::Svc {
+
+Result GetDebugFutureThreadInfo(Core::System& system, lp64::LastThreadContext* out_context,
+ uint64_t* out_thread_id, Handle debug_handle, int64_t ns) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result GetLastThreadInfo(Core::System& system, lp64::LastThreadContext* out_context,
+ uint64_t* out_tls_address, uint32_t* out_flags) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result GetDebugFutureThreadInfo64(Core::System& system, lp64::LastThreadContext* out_context,
+ uint64_t* out_thread_id, Handle debug_handle, int64_t ns) {
+ R_RETURN(GetDebugFutureThreadInfo(system, out_context, out_thread_id, debug_handle, ns));
+}
+
+Result GetLastThreadInfo64(Core::System& system, lp64::LastThreadContext* out_context,
+ uint64_t* out_tls_address, uint32_t* out_flags) {
+ R_RETURN(GetLastThreadInfo(system, out_context, out_tls_address, out_flags));
+}
+
+Result GetDebugFutureThreadInfo64From32(Core::System& system, ilp32::LastThreadContext* out_context,
+ uint64_t* out_thread_id, Handle debug_handle, int64_t ns) {
+ lp64::LastThreadContext context{};
+ R_TRY(
+ GetDebugFutureThreadInfo(system, std::addressof(context), out_thread_id, debug_handle, ns));
+
+ *out_context = {
+ .fp = static_cast<u32>(context.fp),
+ .sp = static_cast<u32>(context.sp),
+ .lr = static_cast<u32>(context.lr),
+ .pc = static_cast<u32>(context.pc),
+ };
+ R_SUCCEED();
+}
+
+Result GetLastThreadInfo64From32(Core::System& system, ilp32::LastThreadContext* out_context,
+ uint64_t* out_tls_address, uint32_t* out_flags) {
+ lp64::LastThreadContext context{};
+ R_TRY(GetLastThreadInfo(system, std::addressof(context), out_tls_address, out_flags));
+
+ *out_context = {
+ .fp = static_cast<u32>(context.fp),
+ .sp = static_cast<u32>(context.sp),
+ .lr = static_cast<u32>(context.lr),
+ .pc = static_cast<u32>(context.pc),
+ };
+ R_SUCCEED();
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_tick.cpp b/src/core/hle/kernel/svc/svc_tick.cpp
new file mode 100644
index 000000000..7dd7c6e51
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_tick.cpp
@@ -0,0 +1,27 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/core_timing.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+/// This returns the total CPU ticks elapsed since the CPU was powered-on
+int64_t GetSystemTick(Core::System& system) {
+ LOG_TRACE(Kernel_SVC, "called");
+
+ // Returns the value of cntpct_el0 (https://switchbrew.org/wiki/SVC#svcGetSystemTick)
+ return static_cast<int64_t>(system.CoreTiming().GetClockTicks());
+}
+
+int64_t GetSystemTick64(Core::System& system) {
+ return GetSystemTick(system);
+}
+
+int64_t GetSystemTick64From32(Core::System& system) {
+ return GetSystemTick(system);
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc/svc_transfer_memory.cpp b/src/core/hle/kernel/svc/svc_transfer_memory.cpp
new file mode 100644
index 000000000..82d469a37
--- /dev/null
+++ b/src/core/hle/kernel/svc/svc_transfer_memory.cpp
@@ -0,0 +1,115 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_scoped_resource_reservation.h"
+#include "core/hle/kernel/k_transfer_memory.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+namespace {
+
+constexpr bool IsValidTransferMemoryPermission(MemoryPermission perm) {
+ switch (perm) {
+ case MemoryPermission::None:
+ case MemoryPermission::Read:
+ case MemoryPermission::ReadWrite:
+ return true;
+ default:
+ return false;
+ }
+}
+
+} // Anonymous namespace
+
+/// Creates a TransferMemory object
+Result CreateTransferMemory(Core::System& system, Handle* out, u64 address, u64 size,
+ MemoryPermission map_perm) {
+ auto& kernel = system.Kernel();
+
+ // Validate the size.
+ R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress);
+ R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize);
+ R_UNLESS(size > 0, ResultInvalidSize);
+ R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
+
+ // Validate the permissions.
+ R_UNLESS(IsValidTransferMemoryPermission(map_perm), ResultInvalidNewMemoryPermission);
+
+ // Get the current process and handle table.
+ auto& process = GetCurrentProcess(kernel);
+ auto& handle_table = process.GetHandleTable();
+
+ // Reserve a new transfer memory from the process resource limit.
+ KScopedResourceReservation trmem_reservation(std::addressof(process),
+ LimitableResource::TransferMemoryCountMax);
+ R_UNLESS(trmem_reservation.Succeeded(), ResultLimitReached);
+
+ // Create the transfer memory.
+ KTransferMemory* trmem = KTransferMemory::Create(kernel);
+ R_UNLESS(trmem != nullptr, ResultOutOfResource);
+
+ // Ensure the only reference is in the handle table when we're done.
+ SCOPE_EXIT({ trmem->Close(); });
+
+ // Ensure that the region is in range.
+ R_UNLESS(process.PageTable().Contains(address, size), ResultInvalidCurrentMemory);
+
+ // Initialize the transfer memory.
+ R_TRY(trmem->Initialize(address, size, map_perm));
+
+ // Commit the reservation.
+ trmem_reservation.Commit();
+
+ // Register the transfer memory.
+ KTransferMemory::Register(kernel, trmem);
+
+ // Add the transfer memory to the handle table.
+ R_RETURN(handle_table.Add(out, trmem));
+}
+
+Result MapTransferMemory(Core::System& system, Handle trmem_handle, uint64_t address, uint64_t size,
+ MemoryPermission owner_perm) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result UnmapTransferMemory(Core::System& system, Handle trmem_handle, uint64_t address,
+ uint64_t size) {
+ UNIMPLEMENTED();
+ R_THROW(ResultNotImplemented);
+}
+
+Result MapTransferMemory64(Core::System& system, Handle trmem_handle, uint64_t address,
+ uint64_t size, MemoryPermission owner_perm) {
+ R_RETURN(MapTransferMemory(system, trmem_handle, address, size, owner_perm));
+}
+
+Result UnmapTransferMemory64(Core::System& system, Handle trmem_handle, uint64_t address,
+ uint64_t size) {
+ R_RETURN(UnmapTransferMemory(system, trmem_handle, address, size));
+}
+
+Result CreateTransferMemory64(Core::System& system, Handle* out_handle, uint64_t address,
+ uint64_t size, MemoryPermission map_perm) {
+ R_RETURN(CreateTransferMemory(system, out_handle, address, size, map_perm));
+}
+
+Result MapTransferMemory64From32(Core::System& system, Handle trmem_handle, uint32_t address,
+ uint32_t size, MemoryPermission owner_perm) {
+ R_RETURN(MapTransferMemory(system, trmem_handle, address, size, owner_perm));
+}
+
+Result UnmapTransferMemory64From32(Core::System& system, Handle trmem_handle, uint32_t address,
+ uint32_t size) {
+ R_RETURN(UnmapTransferMemory(system, trmem_handle, address, size));
+}
+
+Result CreateTransferMemory64From32(Core::System& system, Handle* out_handle, uint32_t address,
+ uint32_t size, MemoryPermission map_perm) {
+ R_RETURN(CreateTransferMemory(system, out_handle, address, size, map_perm));
+}
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc_generator.py b/src/core/hle/kernel/svc_generator.py
new file mode 100644
index 000000000..7fcbb1ba1
--- /dev/null
+++ b/src/core/hle/kernel/svc_generator.py
@@ -0,0 +1,716 @@
+# SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# Raw SVC definitions from the kernel.
+#
+# Avoid modifying the prototypes; see below for how to customize generation
+# for a given typename.
+SVCS = [
+ [0x01, "Result SetHeapSize(Address* out_address, Size size);"],
+ [0x02, "Result SetMemoryPermission(Address address, Size size, MemoryPermission perm);"],
+ [0x03, "Result SetMemoryAttribute(Address address, Size size, uint32_t mask, uint32_t attr);"],
+ [0x04, "Result MapMemory(Address dst_address, Address src_address, Size size);"],
+ [0x05, "Result UnmapMemory(Address dst_address, Address src_address, Size size);"],
+ [0x06, "Result QueryMemory(Address out_memory_info, PageInfo* out_page_info, Address address);"],
+ [0x07, "void ExitProcess();"],
+ [0x08, "Result CreateThread(Handle* out_handle, ThreadFunc func, Address arg, Address stack_bottom, int32_t priority, int32_t core_id);"],
+ [0x09, "Result StartThread(Handle thread_handle);"],
+ [0x0A, "void ExitThread();"],
+ [0x0B, "void SleepThread(int64_t ns);"],
+ [0x0C, "Result GetThreadPriority(int32_t* out_priority, Handle thread_handle);"],
+ [0x0D, "Result SetThreadPriority(Handle thread_handle, int32_t priority);"],
+ [0x0E, "Result GetThreadCoreMask(int32_t* out_core_id, uint64_t* out_affinity_mask, Handle thread_handle);"],
+ [0x0F, "Result SetThreadCoreMask(Handle thread_handle, int32_t core_id, uint64_t affinity_mask);"],
+ [0x10, "int32_t GetCurrentProcessorNumber();"],
+ [0x11, "Result SignalEvent(Handle event_handle);"],
+ [0x12, "Result ClearEvent(Handle event_handle);"],
+ [0x13, "Result MapSharedMemory(Handle shmem_handle, Address address, Size size, MemoryPermission map_perm);"],
+ [0x14, "Result UnmapSharedMemory(Handle shmem_handle, Address address, Size size);"],
+ [0x15, "Result CreateTransferMemory(Handle* out_handle, Address address, Size size, MemoryPermission map_perm);"],
+ [0x16, "Result CloseHandle(Handle handle);"],
+ [0x17, "Result ResetSignal(Handle handle);"],
+ [0x18, "Result WaitSynchronization(int32_t* out_index, Address handles, int32_t num_handles, int64_t timeout_ns);"],
+ [0x19, "Result CancelSynchronization(Handle handle);"],
+ [0x1A, "Result ArbitrateLock(Handle thread_handle, Address address, uint32_t tag);"],
+ [0x1B, "Result ArbitrateUnlock(Address address);"],
+ [0x1C, "Result WaitProcessWideKeyAtomic(Address address, Address cv_key, uint32_t tag, int64_t timeout_ns);"],
+ [0x1D, "void SignalProcessWideKey(Address cv_key, int32_t count);"],
+ [0x1E, "int64_t GetSystemTick();"],
+ [0x1F, "Result ConnectToNamedPort(Handle* out_handle, Address name);"],
+ [0x20, "Result SendSyncRequestLight(Handle session_handle);"],
+ [0x21, "Result SendSyncRequest(Handle session_handle);"],
+ [0x22, "Result SendSyncRequestWithUserBuffer(Address message_buffer, Size message_buffer_size, Handle session_handle);"],
+ [0x23, "Result SendAsyncRequestWithUserBuffer(Handle* out_event_handle, Address message_buffer, Size message_buffer_size, Handle session_handle);"],
+ [0x24, "Result GetProcessId(uint64_t* out_process_id, Handle process_handle);"],
+ [0x25, "Result GetThreadId(uint64_t* out_thread_id, Handle thread_handle);"],
+ [0x26, "void Break(BreakReason break_reason, Address arg, Size size);"],
+ [0x27, "Result OutputDebugString(Address debug_str, Size len);"],
+ [0x28, "void ReturnFromException(Result result);"],
+ [0x29, "Result GetInfo(uint64_t* out, InfoType info_type, Handle handle, uint64_t info_subtype);"],
+ [0x2A, "void FlushEntireDataCache();"],
+ [0x2B, "Result FlushDataCache(Address address, Size size);"],
+ [0x2C, "Result MapPhysicalMemory(Address address, Size size);"],
+ [0x2D, "Result UnmapPhysicalMemory(Address address, Size size);"],
+ [0x2E, "Result GetDebugFutureThreadInfo(LastThreadContext* out_context, uint64_t* out_thread_id, Handle debug_handle, int64_t ns);"],
+ [0x2F, "Result GetLastThreadInfo(LastThreadContext* out_context, Address* out_tls_address, uint32_t* out_flags);"],
+ [0x30, "Result GetResourceLimitLimitValue(int64_t* out_limit_value, Handle resource_limit_handle, LimitableResource which);"],
+ [0x31, "Result GetResourceLimitCurrentValue(int64_t* out_current_value, Handle resource_limit_handle, LimitableResource which);"],
+ [0x32, "Result SetThreadActivity(Handle thread_handle, ThreadActivity thread_activity);"],
+ [0x33, "Result GetThreadContext3(Address out_context, Handle thread_handle);"],
+ [0x34, "Result WaitForAddress(Address address, ArbitrationType arb_type, int32_t value, int64_t timeout_ns);"],
+ [0x35, "Result SignalToAddress(Address address, SignalType signal_type, int32_t value, int32_t count);"],
+ [0x36, "void SynchronizePreemptionState();"],
+ [0x37, "Result GetResourceLimitPeakValue(int64_t* out_peak_value, Handle resource_limit_handle, LimitableResource which);"],
+
+ [0x39, "Result CreateIoPool(Handle* out_handle, IoPoolType which);"],
+ [0x3A, "Result CreateIoRegion(Handle* out_handle, Handle io_pool, PhysicalAddress physical_address, Size size, MemoryMapping mapping, MemoryPermission perm);"],
+
+ [0x3C, "void KernelDebug(KernelDebugType kern_debug_type, uint64_t arg0, uint64_t arg1, uint64_t arg2);"],
+ [0x3D, "void ChangeKernelTraceState(KernelTraceState kern_trace_state);"],
+
+ [0x40, "Result CreateSession(Handle* out_server_session_handle, Handle* out_client_session_handle, bool is_light, Address name);"],
+ [0x41, "Result AcceptSession(Handle* out_handle, Handle port);"],
+ [0x42, "Result ReplyAndReceiveLight(Handle handle);"],
+ [0x43, "Result ReplyAndReceive(int32_t* out_index, Address handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);"],
+ [0x44, "Result ReplyAndReceiveWithUserBuffer(int32_t* out_index, Address message_buffer, Size message_buffer_size, Address handles, int32_t num_handles, Handle reply_target, int64_t timeout_ns);"],
+ [0x45, "Result CreateEvent(Handle* out_write_handle, Handle* out_read_handle);"],
+ [0x46, "Result MapIoRegion(Handle io_region, Address address, Size size, MemoryPermission perm);"],
+ [0x47, "Result UnmapIoRegion(Handle io_region, Address address, Size size);"],
+ [0x48, "Result MapPhysicalMemoryUnsafe(Address address, Size size);"],
+ [0x49, "Result UnmapPhysicalMemoryUnsafe(Address address, Size size);"],
+ [0x4A, "Result SetUnsafeLimit(Size limit);"],
+ [0x4B, "Result CreateCodeMemory(Handle* out_handle, Address address, Size size);"],
+ [0x4C, "Result ControlCodeMemory(Handle code_memory_handle, CodeMemoryOperation operation, uint64_t address, uint64_t size, MemoryPermission perm);"],
+ [0x4D, "void SleepSystem();"],
+ [0x4E, "Result ReadWriteRegister(uint32_t* out_value, PhysicalAddress address, uint32_t mask, uint32_t value);"],
+ [0x4F, "Result SetProcessActivity(Handle process_handle, ProcessActivity process_activity);"],
+ [0x50, "Result CreateSharedMemory(Handle* out_handle, Size size, MemoryPermission owner_perm, MemoryPermission remote_perm);"],
+ [0x51, "Result MapTransferMemory(Handle trmem_handle, Address address, Size size, MemoryPermission owner_perm);"],
+ [0x52, "Result UnmapTransferMemory(Handle trmem_handle, Address address, Size size);"],
+ [0x53, "Result CreateInterruptEvent(Handle* out_read_handle, int32_t interrupt_id, InterruptType interrupt_type);"],
+ [0x54, "Result QueryPhysicalAddress(PhysicalMemoryInfo* out_info, Address address);"],
+ [0x55, "Result QueryIoMapping(Address* out_address, Size* out_size, PhysicalAddress physical_address, Size size);"],
+ [0x56, "Result CreateDeviceAddressSpace(Handle* out_handle, uint64_t das_address, uint64_t das_size);"],
+ [0x57, "Result AttachDeviceAddressSpace(DeviceName device_name, Handle das_handle);"],
+ [0x58, "Result DetachDeviceAddressSpace(DeviceName device_name, Handle das_handle);"],
+ [0x59, "Result MapDeviceAddressSpaceByForce(Handle das_handle, Handle process_handle, uint64_t process_address, Size size, uint64_t device_address, uint32_t option);"],
+ [0x5A, "Result MapDeviceAddressSpaceAligned(Handle das_handle, Handle process_handle, uint64_t process_address, Size size, uint64_t device_address, uint32_t option);"],
+ [0x5C, "Result UnmapDeviceAddressSpace(Handle das_handle, Handle process_handle, uint64_t process_address, Size size, uint64_t device_address);"],
+ [0x5D, "Result InvalidateProcessDataCache(Handle process_handle, uint64_t address, uint64_t size);"],
+ [0x5E, "Result StoreProcessDataCache(Handle process_handle, uint64_t address, uint64_t size);"],
+ [0x5F, "Result FlushProcessDataCache(Handle process_handle, uint64_t address, uint64_t size);"],
+ [0x60, "Result DebugActiveProcess(Handle* out_handle, uint64_t process_id);"],
+ [0x61, "Result BreakDebugProcess(Handle debug_handle);"],
+ [0x62, "Result TerminateDebugProcess(Handle debug_handle);"],
+ [0x63, "Result GetDebugEvent(Address out_info, Handle debug_handle);"],
+ [0x64, "Result ContinueDebugEvent(Handle debug_handle, uint32_t flags, Address thread_ids, int32_t num_thread_ids);"],
+ [0x65, "Result GetProcessList(int32_t* out_num_processes, Address out_process_ids, int32_t max_out_count);"],
+ [0x66, "Result GetThreadList(int32_t* out_num_threads, Address out_thread_ids, int32_t max_out_count, Handle debug_handle);"],
+ [0x67, "Result GetDebugThreadContext(Address out_context, Handle debug_handle, uint64_t thread_id, uint32_t context_flags);"],
+ [0x68, "Result SetDebugThreadContext(Handle debug_handle, uint64_t thread_id, Address context, uint32_t context_flags);"],
+ [0x69, "Result QueryDebugProcessMemory(Address out_memory_info, PageInfo* out_page_info, Handle process_handle, Address address);"],
+ [0x6A, "Result ReadDebugProcessMemory(Address buffer, Handle debug_handle, Address address, Size size);"],
+ [0x6B, "Result WriteDebugProcessMemory(Handle debug_handle, Address buffer, Address address, Size size);"],
+ [0x6C, "Result SetHardwareBreakPoint(HardwareBreakPointRegisterName name, uint64_t flags, uint64_t value);"],
+ [0x6D, "Result GetDebugThreadParam(uint64_t* out_64, uint32_t* out_32, Handle debug_handle, uint64_t thread_id, DebugThreadParam param);"],
+
+ [0x6F, "Result GetSystemInfo(uint64_t* out, SystemInfoType info_type, Handle handle, uint64_t info_subtype);"],
+ [0x70, "Result CreatePort(Handle* out_server_handle, Handle* out_client_handle, int32_t max_sessions, bool is_light, Address name);"],
+ [0x71, "Result ManageNamedPort(Handle* out_server_handle, Address name, int32_t max_sessions);"],
+ [0x72, "Result ConnectToPort(Handle* out_handle, Handle port);"],
+ [0x73, "Result SetProcessMemoryPermission(Handle process_handle, uint64_t address, uint64_t size, MemoryPermission perm);"],
+ [0x74, "Result MapProcessMemory(Address dst_address, Handle process_handle, uint64_t src_address, Size size);"],
+ [0x75, "Result UnmapProcessMemory(Address dst_address, Handle process_handle, uint64_t src_address, Size size);"],
+ [0x76, "Result QueryProcessMemory(Address out_memory_info, PageInfo* out_page_info, Handle process_handle, uint64_t address);"],
+ [0x77, "Result MapProcessCodeMemory(Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);"],
+ [0x78, "Result UnmapProcessCodeMemory(Handle process_handle, uint64_t dst_address, uint64_t src_address, uint64_t size);"],
+ [0x79, "Result CreateProcess(Handle* out_handle, Address parameters, Address caps, int32_t num_caps);"],
+ [0x7A, "Result StartProcess(Handle process_handle, int32_t priority, int32_t core_id, uint64_t main_thread_stack_size);"],
+ [0x7B, "Result TerminateProcess(Handle process_handle);"],
+ [0x7C, "Result GetProcessInfo(int64_t* out_info, Handle process_handle, ProcessInfoType info_type);"],
+ [0x7D, "Result CreateResourceLimit(Handle* out_handle);"],
+ [0x7E, "Result SetResourceLimitLimitValue(Handle resource_limit_handle, LimitableResource which, int64_t limit_value);"],
+ [0x7F, "void CallSecureMonitor(SecureMonitorArguments args);"],
+
+ [0x90, "Result MapInsecureMemory(Address address, Size size);"],
+ [0x91, "Result UnmapInsecureMemory(Address address, Size size);"],
+]
+
+# These use a custom ABI, and therefore require custom wrappers
+SKIP_WRAPPERS = {
+ 0x20: "SendSyncRequestLight",
+ 0x42: "ReplyAndReceiveLight",
+ 0x7F: "CallSecureMonitor",
+}
+
+BIT_32 = 0
+BIT_64 = 1
+
+REG_SIZES = [4, 8]
+SUFFIX_NAMES = ["64From32", "64"]
+TYPE_SIZES = {
+ # SVC types
+ "ArbitrationType": 4,
+ "BreakReason": 4,
+ "CodeMemoryOperation": 4,
+ "DebugThreadParam": 4,
+ "DeviceName": 4,
+ "HardwareBreakPointRegisterName": 4,
+ "Handle": 4,
+ "InfoType": 4,
+ "InterruptType": 4,
+ "IoPoolType": 4,
+ "KernelDebugType": 4,
+ "KernelTraceState": 4,
+ "LimitableResource": 4,
+ "MemoryMapping": 4,
+ "MemoryPermission": 4,
+ "PageInfo": 4,
+ "ProcessActivity": 4,
+ "ProcessInfoType": 4,
+ "Result": 4,
+ "SignalType": 4,
+ "SystemInfoType": 4,
+ "ThreadActivity": 4,
+
+ # Arch-specific types
+ "ilp32::LastThreadContext": 16,
+ "ilp32::PhysicalMemoryInfo": 16,
+ "ilp32::SecureMonitorArguments": 32,
+ "lp64::LastThreadContext": 32,
+ "lp64::PhysicalMemoryInfo": 24,
+ "lp64::SecureMonitorArguments": 64,
+
+ # Generic types
+ "bool": 1,
+ "int32_t": 4,
+ "int64_t": 8,
+ "uint32_t": 4,
+ "uint64_t": 8,
+ "void": 0,
+}
+
+TYPE_REPLACEMENTS = {
+ "Address": ["uint32_t", "uint64_t"],
+ "LastThreadContext": ["ilp32::LastThreadContext", "lp64::LastThreadContext"],
+ "PhysicalAddress": ["uint64_t", "uint64_t"],
+ "PhysicalMemoryInfo": ["ilp32::PhysicalMemoryInfo", "lp64::PhysicalMemoryInfo"],
+ "SecureMonitorArguments": ["ilp32::SecureMonitorArguments", "lp64::SecureMonitorArguments"],
+ "Size": ["uint32_t", "uint64_t"],
+ "ThreadFunc": ["uint32_t", "uint64_t"],
+}
+
+# Statically verify that the hardcoded sizes match the intended
+# sizes in C++.
+def emit_size_check():
+ lines = []
+
+ for type, size in TYPE_SIZES.items():
+ if type != "void":
+ lines.append(f"static_assert(sizeof({type}) == {size});")
+
+ return "\n".join(lines)
+
+
+# Replaces a type with an arch-specific one, if it exists.
+def substitute_type(name, bitness):
+ if name in TYPE_REPLACEMENTS:
+ return TYPE_REPLACEMENTS[name][bitness]
+ else:
+ return name
+
+
+class Argument:
+ def __init__(self, type_name, var_name, is_output, is_outptr, is_address):
+ self.type_name = type_name
+ self.var_name = var_name
+ self.is_output = is_output
+ self.is_outptr = is_outptr
+ self.is_address = is_address
+
+
+# Parses C-style string declarations for SVCs.
+def parse_declaration(declaration, bitness):
+ return_type, rest = declaration.split(" ", 1)
+ func_name, rest = rest.split("(", 1)
+ arg_names, rest = rest.split(")", 1)
+ argument_types = []
+
+ return_type = substitute_type(return_type, bitness)
+ assert return_type in TYPE_SIZES, f"Unknown type '{return_type}'"
+
+ if arg_names:
+ for arg_name in arg_names.split(", "):
+ type_name, var_name = arg_name.replace("*", "").split(" ", 1)
+
+ # All outputs must contain out_ in the name.
+ is_output = var_name == "out" or var_name.find("out_") != -1
+
+ # User-pointer outputs are not written to registers.
+ is_outptr = is_output and arg_name.find("*") == -1
+
+ # Special handling is performed for output addresses to avoid awkwardness
+ # in conversion for the 32-bit equivalents.
+ is_address = is_output and not is_outptr and \
+ type_name in ["Address", "Size"]
+ type_name = substitute_type(type_name, bitness)
+
+ assert type_name in TYPE_SIZES, f"Unknown type '{type_name}'"
+
+ argument_types.append(
+ Argument(type_name, var_name, is_output, is_outptr, is_address))
+
+ return (return_type, func_name, argument_types)
+
+
+class RegisterAllocator:
+ def __init__(self, num_regs, byte_size, parameter_count):
+ self.registers = {}
+ self.num_regs = num_regs
+ self.byte_size = byte_size
+ self.parameter_count = parameter_count
+
+ # Mark the given register as allocated, for use in layout
+ # calculation if the NGRN exceeds the ABI parameter count.
+ def allocate(self, i):
+ assert i not in self.registers, f"Register R{i} already allocated"
+ self.registers[i] = True
+ return i
+
+ # Calculate the next available location for a register;
+ # the NGRN has exceeded the ABI parameter count.
+ def allocate_first_free(self):
+ for i in range(0, self.num_regs):
+ if i in self.registers:
+ continue
+
+ self.allocate(i)
+ return i
+
+ assert False, "No registers available"
+
+ # Add a single register at the given NGRN.
+ # If the index exceeds the ABI parameter count, try to find a
+ # location to add it. Returns the output location and increment.
+ def add_single(self, ngrn):
+ if ngrn >= self.parameter_count:
+ return (self.allocate_first_free(), 0)
+ else:
+ return (self.allocate(ngrn), 1)
+
+ # Add registers at the given NGRN for a data type of
+ # the given size. Returns the output locations and increment.
+ def add(self, ngrn, data_size, align=True):
+ if data_size <= self.byte_size:
+ r, i = self.add_single(ngrn)
+ return ([r], i)
+
+ regs = []
+ inc = ngrn % 2 if align else 0
+ remaining_size = data_size
+ while remaining_size > 0:
+ r, i = self.add_single(ngrn + inc)
+ regs.append(r)
+ inc += i
+ remaining_size -= self.byte_size
+
+ return (regs, inc)
+
+
+def reg_alloc(bitness):
+ if bitness == 0:
+ # aapcs32: 4 4-byte registers
+ return RegisterAllocator(8, 4, 4)
+ elif bitness == 1:
+ # aapcs64: 8 8-byte registers
+ return RegisterAllocator(8, 8, 8)
+
+
+# Converts a parsed SVC declaration into register lists for
+# the return value, outputs, and inputs.
+def get_registers(parse_result, bitness):
+ output_alloc = reg_alloc(bitness)
+ input_alloc = reg_alloc(bitness)
+ return_type, _, arguments = parse_result
+
+ return_write = []
+ output_writes = []
+ input_reads = []
+
+ input_ngrn = 0
+ output_ngrn = 0
+
+ # Run the input calculation.
+ for arg in arguments:
+ if arg.is_output and not arg.is_outptr:
+ input_ngrn += 1
+ continue
+
+ regs, increment = input_alloc.add(
+ input_ngrn, TYPE_SIZES[arg.type_name], align=True)
+ input_reads.append([arg.type_name, arg.var_name, regs])
+ input_ngrn += increment
+
+ # Include the return value if this SVC returns a value.
+ if return_type != "void":
+ regs, increment = output_alloc.add(
+ output_ngrn, TYPE_SIZES[return_type], align=False)
+ return_write.append([return_type, regs])
+ output_ngrn += increment
+
+ # Run the output calculation.
+ for arg in arguments:
+ if not arg.is_output or arg.is_outptr:
+ continue
+
+ regs, increment = output_alloc.add(
+ output_ngrn, TYPE_SIZES[arg.type_name], align=False)
+ output_writes.append(
+ [arg.type_name, arg.var_name, regs, arg.is_address])
+ output_ngrn += increment
+
+ return (return_write, output_writes, input_reads)
+
+
+# Collects possibly multiple source registers into the named C++ value.
+def emit_gather(sources, name, type_name, reg_size):
+ get_fn = f"GetReg{reg_size*8}"
+
+ if len(sources) == 1:
+ s, = sources
+ line = f"{name} = Convert<{type_name}>({get_fn}(system, {s}));"
+ return [line]
+
+ var_type = f"std::array<uint{reg_size*8}_t, {len(sources)}>"
+ lines = [
+ f"{var_type} {name}_gather{{}};"
+ ]
+ for i in range(0, len(sources)):
+ lines.append(
+ f"{name}_gather[{i}] = {get_fn}(system, {sources[i]});")
+
+ lines.append(f"{name} = Convert<{type_name}>({name}_gather);")
+ return lines
+
+
+# Produces one or more statements which assign the named C++ value
+# into possibly multiple registers.
+def emit_scatter(destinations, name, reg_size):
+ set_fn = f"SetReg{reg_size*8}"
+ reg_type = f"uint{reg_size*8}_t"
+
+ if len(destinations) == 1:
+ d, = destinations
+ line = f"{set_fn}(system, {d}, Convert<{reg_type}>({name}));"
+ return [line]
+
+ var_type = f"std::array<{reg_type}, {len(destinations)}>"
+ lines = [
+ f"auto {name}_scatter = Convert<{var_type}>({name});"
+ ]
+
+ for i in range(0, len(destinations)):
+ lines.append(
+ f"{set_fn}(system, {destinations[i]}, {name}_scatter[{i}]);")
+
+ return lines
+
+
+def emit_lines(lines, indent=' '):
+ output_lines = []
+ first = True
+ for line in lines:
+ if line and not first:
+ output_lines.append(indent + line)
+ else:
+ output_lines.append(line)
+ first = False
+
+ return "\n".join(output_lines)
+
+
+# Emit a C++ function to wrap a guest SVC.
+def emit_wrapper(wrapped_fn, suffix, register_info, arguments, byte_size):
+ return_write, output_writes, input_reads = register_info
+ lines = [
+ f"static void SvcWrap_{wrapped_fn}{suffix}(Core::System& system) {{"
+ ]
+
+ # Get everything ready.
+ for return_type, _ in return_write:
+ lines.append(f"{return_type} ret{{}};")
+ if return_write:
+ lines.append("")
+
+ for output_type, var_name, _, is_address in output_writes:
+ output_type = "uint64_t" if is_address else output_type
+ lines.append(f"{output_type} {var_name}{{}};")
+ for input_type, var_name, _ in input_reads:
+ lines.append(f"{input_type} {var_name}{{}};")
+
+ if output_writes or input_reads:
+ lines.append("")
+
+ for input_type, var_name, sources in input_reads:
+ lines += emit_gather(sources, var_name, input_type, byte_size)
+ if input_reads:
+ lines.append("")
+
+ # Build the call.
+ call_arguments = ["system"]
+ for arg in arguments:
+ if arg.is_output and not arg.is_outptr:
+ call_arguments.append(f"std::addressof({arg.var_name})")
+ else:
+ call_arguments.append(arg.var_name)
+
+ line = ""
+ if return_write:
+ line += "ret = "
+
+ line += f"{wrapped_fn}{suffix}({', '.join(call_arguments)});"
+ lines.append(line)
+
+ if return_write or output_writes:
+ lines.append("")
+
+ # Write back the return value and outputs.
+ for _, destinations in return_write:
+ lines += emit_scatter(destinations, "ret", byte_size)
+ for _, var_name, destinations, _ in output_writes:
+ lines += emit_scatter(destinations, var_name, byte_size)
+
+ # Finish.
+ return emit_lines(lines) + "\n}"
+
+
+COPYRIGHT = """\
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// This file is automatically generated using svc_generator.py.
+"""
+
+PROLOGUE_H = """
+#pragma once
+
+namespace Core {
+class System;
+}
+
+#include "common/common_types.h"
+#include "core/hle/kernel/svc_types.h"
+#include "core/hle/result.h"
+
+namespace Kernel::Svc {
+
+// clang-format off
+"""
+
+EPILOGUE_H = """
+// clang-format on
+
+// Custom ABI.
+Result ReplyAndReceiveLight(Core::System& system, Handle handle, uint32_t* args);
+Result ReplyAndReceiveLight64From32(Core::System& system, Handle handle, uint32_t* args);
+Result ReplyAndReceiveLight64(Core::System& system, Handle handle, uint32_t* args);
+
+Result SendSyncRequestLight(Core::System& system, Handle session_handle, uint32_t* args);
+Result SendSyncRequestLight64From32(Core::System& system, Handle session_handle, uint32_t* args);
+Result SendSyncRequestLight64(Core::System& system, Handle session_handle, uint32_t* args);
+
+void CallSecureMonitor(Core::System& system, lp64::SecureMonitorArguments* args);
+void CallSecureMonitor64From32(Core::System& system, ilp32::SecureMonitorArguments* args);
+void CallSecureMonitor64(Core::System& system, lp64::SecureMonitorArguments* args);
+
+// Defined in svc_light_ipc.cpp.
+void SvcWrap_ReplyAndReceiveLight64From32(Core::System& system);
+void SvcWrap_ReplyAndReceiveLight64(Core::System& system);
+
+void SvcWrap_SendSyncRequestLight64From32(Core::System& system);
+void SvcWrap_SendSyncRequestLight64(Core::System& system);
+
+// Defined in svc_secure_monitor_call.cpp.
+void SvcWrap_CallSecureMonitor64From32(Core::System& system);
+void SvcWrap_CallSecureMonitor64(Core::System& system);
+
+// Perform a supervisor call by index.
+void Call(Core::System& system, u32 imm);
+
+} // namespace Kernel::Svc
+"""
+
+PROLOGUE_CPP = """
+#include <type_traits>
+
+#include "core/arm/arm_interface.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/svc.h"
+
+namespace Kernel::Svc {
+
+static uint32_t GetReg32(Core::System& system, int n) {
+ return static_cast<uint32_t>(system.CurrentArmInterface().GetReg(n));
+}
+
+static void SetReg32(Core::System& system, int n, uint32_t result) {
+ system.CurrentArmInterface().SetReg(n, static_cast<uint64_t>(result));
+}
+
+static uint64_t GetReg64(Core::System& system, int n) {
+ return system.CurrentArmInterface().GetReg(n);
+}
+
+static void SetReg64(Core::System& system, int n, uint64_t result) {
+ system.CurrentArmInterface().SetReg(n, result);
+}
+
+// Like bit_cast, but handles the case when the source and dest
+// are differently-sized.
+template <typename To, typename From>
+ requires(std::is_trivial_v<To> && std::is_trivially_copyable_v<From>)
+static To Convert(const From& from) {
+ To to{};
+
+ if constexpr (sizeof(To) >= sizeof(From)) {
+ std::memcpy(std::addressof(to), std::addressof(from), sizeof(From));
+ } else {
+ std::memcpy(std::addressof(to), std::addressof(from), sizeof(To));
+ }
+
+ return to;
+}
+
+// clang-format off
+"""
+
+EPILOGUE_CPP = """
+// clang-format on
+
+void Call(Core::System& system, u32 imm) {
+ auto& kernel = system.Kernel();
+ kernel.EnterSVCProfile();
+
+ if (GetCurrentProcess(system.Kernel()).Is64BitProcess()) {
+ Call64(system, imm);
+ } else {
+ Call32(system, imm);
+ }
+
+ kernel.ExitSVCProfile();
+}
+
+} // namespace Kernel::Svc
+"""
+
+
+def emit_call(bitness, names, suffix):
+ bit_size = REG_SIZES[bitness]*8
+ indent = " "
+ lines = [
+ f"static void Call{bit_size}(Core::System& system, u32 imm) {{",
+ f"{indent}switch (static_cast<SvcId>(imm)) {{"
+ ]
+
+ for _, name in names:
+ lines.append(f"{indent}case SvcId::{name}:")
+ lines.append(f"{indent*2}return SvcWrap_{name}{suffix}(system);")
+
+ lines.append(f"{indent}default:")
+ lines.append(
+ f"{indent*2}LOG_CRITICAL(Kernel_SVC, \"Unknown SVC {{:x}}!\", imm);")
+ lines.append(f"{indent*2}break;")
+ lines.append(f"{indent}}}")
+ lines.append("}")
+
+ return "\n".join(lines)
+
+
+def build_fn_declaration(return_type, name, arguments):
+ arg_list = ["Core::System& system"]
+ for arg in arguments:
+ type_name = "uint64_t" if arg.is_address else arg.type_name
+ pointer = "*" if arg.is_output and not arg.is_outptr else ""
+ arg_list.append(f"{type_name}{pointer} {arg.var_name}")
+
+ return f"{return_type} {name}({', '.join(arg_list)});"
+
+
+def build_enum_declarations():
+ lines = ["enum class SvcId : u32 {"]
+ indent = " "
+
+ for imm, decl in SVCS:
+ _, name, _ = parse_declaration(decl, BIT_64)
+ lines.append(f"{indent}{name} = {hex(imm)},")
+
+ lines.append("};")
+ return "\n".join(lines)
+
+
+def main():
+ arch_fw_declarations = [[], []]
+ svc_fw_declarations = []
+ wrapper_fns = []
+ names = []
+
+ for imm, decl in SVCS:
+ return_type, name, arguments = parse_declaration(decl, BIT_64)
+
+ if imm not in SKIP_WRAPPERS:
+ svc_fw_declarations.append(
+ build_fn_declaration(return_type, name, arguments))
+
+ names.append([imm, name])
+
+ for bitness in range(2):
+ byte_size = REG_SIZES[bitness]
+ suffix = SUFFIX_NAMES[bitness]
+
+ for imm, decl in SVCS:
+ if imm in SKIP_WRAPPERS:
+ continue
+
+ parse_result = parse_declaration(decl, bitness)
+ return_type, name, arguments = parse_result
+
+ register_info = get_registers(parse_result, bitness)
+ wrapper_fns.append(
+ emit_wrapper(name, suffix, register_info, arguments, byte_size))
+ arch_fw_declarations[bitness].append(
+ build_fn_declaration(return_type, name + suffix, arguments))
+
+ call_32 = emit_call(BIT_32, names, SUFFIX_NAMES[BIT_32])
+ call_64 = emit_call(BIT_64, names, SUFFIX_NAMES[BIT_64])
+ enum_decls = build_enum_declarations()
+
+ with open("svc.h", "w") as f:
+ f.write(COPYRIGHT)
+ f.write(PROLOGUE_H)
+ f.write("\n".join(svc_fw_declarations))
+ f.write("\n\n")
+ f.write("\n".join(arch_fw_declarations[BIT_32]))
+ f.write("\n\n")
+ f.write("\n".join(arch_fw_declarations[BIT_64]))
+ f.write("\n\n")
+ f.write(enum_decls)
+ f.write(EPILOGUE_H)
+
+ with open("svc.cpp", "w") as f:
+ f.write(COPYRIGHT)
+ f.write(PROLOGUE_CPP)
+ f.write(emit_size_check())
+ f.write("\n\n")
+ f.write("\n\n".join(wrapper_fns))
+ f.write("\n\n")
+ f.write(call_32)
+ f.write("\n\n")
+ f.write(call_64)
+ f.write(EPILOGUE_CPP)
+
+ print(f"Done (emitted {len(names)} definitions)")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/src/core/hle/kernel/svc_results.h b/src/core/hle/kernel/svc_results.h
index b7ca53085..e1ad78607 100644
--- a/src/core/hle/kernel/svc_results.h
+++ b/src/core/hle/kernel/svc_results.h
@@ -11,6 +11,7 @@ namespace Kernel {
constexpr Result ResultOutOfSessions{ErrorModule::Kernel, 7};
constexpr Result ResultInvalidArgument{ErrorModule::Kernel, 14};
+constexpr Result ResultNotImplemented{ErrorModule::Kernel, 33};
constexpr Result ResultNoSynchronizationObject{ErrorModule::Kernel, 57};
constexpr Result ResultTerminationRequested{ErrorModule::Kernel, 59};
constexpr Result ResultInvalidSize{ErrorModule::Kernel, 101};
diff --git a/src/core/hle/kernel/svc_types.h b/src/core/hle/kernel/svc_types.h
index 33eebcef6..7f380ca4f 100644
--- a/src/core/hle/kernel/svc_types.h
+++ b/src/core/hle/kernel/svc_types.h
@@ -3,6 +3,9 @@
#pragma once
+#include <bitset>
+
+#include "common/bit_field.h"
#include "common/common_funcs.h"
#include "common/common_types.h"
@@ -148,6 +151,7 @@ enum class InfoType : u32 {
FreeThreadCount = 24,
ThreadTickCount = 25,
IsSvcPermitted = 26,
+ IoRegionHint = 27,
MesosphereMeta = 65000,
MesosphereCurrentProcess = 65001,
@@ -165,6 +169,7 @@ enum class BreakReason : u32 {
NotificationOnlyFlag = 0x80000000,
};
+DECLARE_ENUM_FLAG_OPERATORS(BreakReason);
enum class DebugEvent : u32 {
CreateProcess = 0,
@@ -248,7 +253,7 @@ struct LastThreadContext {
};
struct PhysicalMemoryInfo {
- PAddr physical_address;
+ u64 physical_address;
u64 virtual_address;
u64 size;
};
@@ -354,7 +359,7 @@ struct LastThreadContext {
};
struct PhysicalMemoryInfo {
- PAddr physical_address;
+ u64 physical_address;
u32 virtual_address;
u32 size;
};
@@ -496,6 +501,19 @@ enum class MemoryMapping : u32 {
Memory = 2,
};
+enum class MapDeviceAddressSpaceFlag : u32 {
+ None = (0U << 0),
+ NotIoRegister = (1U << 0),
+};
+DECLARE_ENUM_FLAG_OPERATORS(MapDeviceAddressSpaceFlag);
+
+union MapDeviceAddressSpaceOption {
+ u32 raw;
+ BitField<0, 16, MemoryPermission> permission;
+ BitField<16, 1, MapDeviceAddressSpaceFlag> flags;
+ BitField<17, 15, u32> reserved;
+};
+
enum class KernelDebugType : u32 {
Thread = 0,
ThreadCallStack = 1,
@@ -580,6 +598,11 @@ enum class ProcessInfoType : u32 {
ProcessState = 0,
};
+enum class ProcessActivity : u32 {
+ Runnable,
+ Paused,
+};
+
struct CreateProcessParameter {
std::array<char, 12> name;
u32 version;
@@ -592,4 +615,12 @@ struct CreateProcessParameter {
};
static_assert(sizeof(CreateProcessParameter) == 0x30);
+constexpr size_t NumSupervisorCalls = 0xC0;
+using SvcAccessFlagSet = std::bitset<NumSupervisorCalls>;
+
+enum class InitialProcessIdRangeInfo : u64 {
+ Minimum = 0,
+ Maximum = 1,
+};
+
} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc_version.h b/src/core/hle/kernel/svc_version.h
new file mode 100644
index 000000000..3eb95aa7b
--- /dev/null
+++ b/src/core/hle/kernel/svc_version.h
@@ -0,0 +1,58 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "common/bit_field.h"
+#include "common/common_types.h"
+#include "common/literals.h"
+
+namespace Kernel::Svc {
+
+constexpr inline u32 ConvertToSvcMajorVersion(u32 sdk) {
+ return sdk + 4;
+}
+constexpr inline u32 ConvertToSdkMajorVersion(u32 svc) {
+ return svc - 4;
+}
+
+constexpr inline u32 ConvertToSvcMinorVersion(u32 sdk) {
+ return sdk;
+}
+constexpr inline u32 ConvertToSdkMinorVersion(u32 svc) {
+ return svc;
+}
+
+union KernelVersion {
+ u32 value;
+ BitField<0, 4, u32> minor_version;
+ BitField<4, 13, u32> major_version;
+};
+
+constexpr inline u32 EncodeKernelVersion(u32 major, u32 minor) {
+ return decltype(KernelVersion::minor_version)::FormatValue(minor) |
+ decltype(KernelVersion::major_version)::FormatValue(major);
+}
+
+constexpr inline u32 GetKernelMajorVersion(u32 encoded) {
+ return decltype(KernelVersion::major_version)::ExtractValue(encoded);
+}
+
+constexpr inline u32 GetKernelMinorVersion(u32 encoded) {
+ return decltype(KernelVersion::minor_version)::ExtractValue(encoded);
+}
+
+// Nintendo doesn't support programs targeting SVC versions < 3.0.
+constexpr inline u32 RequiredKernelMajorVersion = 3;
+constexpr inline u32 RequiredKernelMinorVersion = 0;
+constexpr inline u32 RequiredKernelVersion =
+ EncodeKernelVersion(RequiredKernelMajorVersion, RequiredKernelMinorVersion);
+
+// This is the highest SVC version supported, to be updated on new kernel releases.
+// NOTE: Official kernel versions have SVC major = SDK major + 4, SVC minor = SDK minor.
+constexpr inline u32 SupportedKernelMajorVersion = ConvertToSvcMajorVersion(15);
+constexpr inline u32 SupportedKernelMinorVersion = ConvertToSvcMinorVersion(3);
+constexpr inline u32 SupportedKernelVersion =
+ EncodeKernelVersion(SupportedKernelMajorVersion, SupportedKernelMinorVersion);
+
+} // namespace Kernel::Svc
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h
deleted file mode 100644
index 1ea8c7fbc..000000000
--- a/src/core/hle/kernel/svc_wrap.h
+++ /dev/null
@@ -1,733 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_types.h"
-#include "core/arm/arm_interface.h"
-#include "core/core.h"
-#include "core/hle/kernel/svc_types.h"
-#include "core/hle/result.h"
-#include "core/memory.h"
-
-namespace Kernel {
-
-static inline u64 Param(const Core::System& system, int n) {
- return system.CurrentArmInterface().GetReg(n);
-}
-
-static inline u32 Param32(const Core::System& system, int n) {
- return static_cast<u32>(system.CurrentArmInterface().GetReg(n));
-}
-
-/**
- * HLE a function return from the current ARM userland process
- * @param system System context
- * @param result Result to return
- */
-static inline void FuncReturn(Core::System& system, u64 result) {
- system.CurrentArmInterface().SetReg(0, result);
-}
-
-static inline void FuncReturn32(Core::System& system, u32 result) {
- system.CurrentArmInterface().SetReg(0, (u64)result);
-}
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-// Function wrappers that return type Result
-
-template <Result func(Core::System&, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0)).raw);
-}
-
-template <Result func(Core::System&, u64, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), Param(system, 1)).raw);
-}
-
-template <Result func(Core::System&, u32)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<u32>(Param(system, 0))).raw);
-}
-
-template <Result func(Core::System&, u32, u32)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(
- system,
- func(system, static_cast<u32>(Param(system, 0)), static_cast<u32>(Param(system, 1))).raw);
-}
-
-// Used by SetThreadActivity
-template <Result func(Core::System&, Handle, Svc::ThreadActivity)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<u32>(Param(system, 0)),
- static_cast<Svc::ThreadActivity>(Param(system, 1)))
- .raw);
-}
-
-template <Result func(Core::System&, u32, u64, u64, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<u32>(Param(system, 0)), Param(system, 1),
- Param(system, 2), Param(system, 3))
- .raw);
-}
-
-// Used by MapProcessMemory and UnmapProcessMemory
-template <Result func(Core::System&, u64, u32, u64, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), static_cast<u32>(Param(system, 1)),
- Param(system, 2), Param(system, 3))
- .raw);
-}
-
-// Used by ControlCodeMemory
-template <Result func(Core::System&, Handle, u32, VAddr, size_t, Svc::MemoryPermission)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<Handle>(Param(system, 0)),
- static_cast<u32>(Param(system, 1)), Param(system, 2), Param(system, 3),
- static_cast<Svc::MemoryPermission>(Param(system, 4)))
- .raw);
-}
-
-template <Result func(Core::System&, u32*)>
-void SvcWrap64(Core::System& system) {
- u32 param = 0;
- const u32 retval = func(system, &param).raw;
- system.CurrentArmInterface().SetReg(1, param);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u32*, u32)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval = func(system, &param_1, static_cast<u32>(Param(system, 1))).raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u32*, u32*)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- u32 param_2 = 0;
- const u32 retval = func(system, &param_1, &param_2).raw;
-
- auto& arm_interface = system.CurrentArmInterface();
- arm_interface.SetReg(1, param_1);
- arm_interface.SetReg(2, param_2);
-
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u32*, u64)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1)).raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u32*, u64, u32)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval =
- func(system, &param_1, Param(system, 1), static_cast<u32>(Param(system, 2))).raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u64*, u32)>
-void SvcWrap64(Core::System& system) {
- u64 param_1 = 0;
- const u32 retval = func(system, &param_1, static_cast<u32>(Param(system, 1))).raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u64, u32)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), static_cast<u32>(Param(system, 1))).raw);
-}
-
-template <Result func(Core::System&, u64*, u64)>
-void SvcWrap64(Core::System& system) {
- u64 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1)).raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u64*, u32, u32)>
-void SvcWrap64(Core::System& system) {
- u64 param_1 = 0;
- const u32 retval = func(system, &param_1, static_cast<u32>(Param(system, 1)),
- static_cast<u32>(Param(system, 2)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by GetResourceLimitLimitValue.
-template <Result func(Core::System&, u64*, Handle, LimitableResource)>
-void SvcWrap64(Core::System& system) {
- u64 param_1 = 0;
- const u32 retval = func(system, &param_1, static_cast<Handle>(Param(system, 1)),
- static_cast<LimitableResource>(Param(system, 2)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u32, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<u32>(Param(system, 0)), Param(system, 1)).raw);
-}
-
-// Used by SetResourceLimitLimitValue
-template <Result func(Core::System&, Handle, LimitableResource, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<Handle>(Param(system, 0)),
- static_cast<LimitableResource>(Param(system, 1)), Param(system, 2))
- .raw);
-}
-
-// Used by SetThreadCoreMask
-template <Result func(Core::System&, Handle, s32, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<u32>(Param(system, 0)),
- static_cast<s32>(Param(system, 1)), Param(system, 2))
- .raw);
-}
-
-// Used by GetThreadCoreMask
-template <Result func(Core::System&, Handle, s32*, u64*)>
-void SvcWrap64(Core::System& system) {
- s32 param_1 = 0;
- u64 param_2 = 0;
- const Result retval = func(system, static_cast<u32>(Param(system, 2)), &param_1, &param_2);
-
- system.CurrentArmInterface().SetReg(1, param_1);
- system.CurrentArmInterface().SetReg(2, param_2);
- FuncReturn(system, retval.raw);
-}
-
-template <Result func(Core::System&, u64, u64, u32, u32)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), Param(system, 1),
- static_cast<u32>(Param(system, 2)), static_cast<u32>(Param(system, 3)))
- .raw);
-}
-
-template <Result func(Core::System&, u64, u64, u32, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), Param(system, 1),
- static_cast<u32>(Param(system, 2)), Param(system, 3))
- .raw);
-}
-
-template <Result func(Core::System&, u32, u64, u32)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<u32>(Param(system, 0)), Param(system, 1),
- static_cast<u32>(Param(system, 2)))
- .raw);
-}
-
-template <Result func(Core::System&, u64, u64, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), Param(system, 1), Param(system, 2)).raw);
-}
-
-template <Result func(Core::System&, u64, u64, u32)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(
- system,
- func(system, Param(system, 0), Param(system, 1), static_cast<u32>(Param(system, 2))).raw);
-}
-
-// Used by SetMemoryPermission
-template <Result func(Core::System&, u64, u64, Svc::MemoryPermission)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), Param(system, 1),
- static_cast<Svc::MemoryPermission>(Param(system, 2)))
- .raw);
-}
-
-// Used by MapSharedMemory
-template <Result func(Core::System&, Handle, u64, u64, Svc::MemoryPermission)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, static_cast<Handle>(Param(system, 0)), Param(system, 1),
- Param(system, 2), static_cast<Svc::MemoryPermission>(Param(system, 3)))
- .raw);
-}
-
-template <Result func(Core::System&, u32, u64, u64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(
- system,
- func(system, static_cast<u32>(Param(system, 0)), Param(system, 1), Param(system, 2)).raw);
-}
-
-// Used by WaitSynchronization
-template <Result func(Core::System&, s32*, u64, s32, s64)>
-void SvcWrap64(Core::System& system) {
- s32 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1), static_cast<s32>(Param(system, 2)),
- static_cast<s64>(Param(system, 3)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u64, u64, u32, s64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system, Param(system, 0), Param(system, 1),
- static_cast<u32>(Param(system, 2)), static_cast<s64>(Param(system, 3)))
- .raw);
-}
-
-// Used by GetInfo
-template <Result func(Core::System&, u64*, u64, Handle, u64)>
-void SvcWrap64(Core::System& system) {
- u64 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1),
- static_cast<Handle>(Param(system, 2)), Param(system, 3))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, u32*, u64, u64, u64, u32, s32)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1), Param(system, 2), Param(system, 3),
- static_cast<u32>(Param(system, 4)), static_cast<s32>(Param(system, 5)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by CreateTransferMemory
-template <Result func(Core::System&, Handle*, u64, u64, Svc::MemoryPermission)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1), Param(system, 2),
- static_cast<Svc::MemoryPermission>(Param(system, 3)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by CreateCodeMemory
-template <Result func(Core::System&, Handle*, VAddr, size_t)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1), Param(system, 2)).raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-template <Result func(Core::System&, Handle*, u64, u32, u32)>
-void SvcWrap64(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval = func(system, &param_1, Param(system, 1), static_cast<u32>(Param(system, 2)),
- static_cast<u32>(Param(system, 3)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by CreateSession
-template <Result func(Core::System&, Handle*, Handle*, u32, u64)>
-void SvcWrap64(Core::System& system) {
- Handle param_1 = 0;
- Handle param_2 = 0;
- const u32 retval = func(system, &param_1, &param_2, static_cast<u32>(Param(system, 2)),
- static_cast<u32>(Param(system, 3)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- system.CurrentArmInterface().SetReg(2, param_2);
- FuncReturn(system, retval);
-}
-
-// Used by ReplyAndReceive
-template <Result func(Core::System&, s32*, Handle*, s32, Handle, s64)>
-void SvcWrap64(Core::System& system) {
- s32 param_1 = 0;
- s32 num_handles = static_cast<s32>(Param(system, 2));
-
- std::vector<Handle> handles(num_handles);
- system.Memory().ReadBlock(Param(system, 1), handles.data(), num_handles * sizeof(Handle));
-
- const u32 retval = func(system, &param_1, handles.data(), num_handles,
- static_cast<s32>(Param(system, 3)), static_cast<s64>(Param(system, 4)))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by WaitForAddress
-template <Result func(Core::System&, u64, Svc::ArbitrationType, s32, s64)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system,
- func(system, Param(system, 0), static_cast<Svc::ArbitrationType>(Param(system, 1)),
- static_cast<s32>(Param(system, 2)), static_cast<s64>(Param(system, 3)))
- .raw);
-}
-
-// Used by SignalToAddress
-template <Result func(Core::System&, u64, Svc::SignalType, s32, s32)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system,
- func(system, Param(system, 0), static_cast<Svc::SignalType>(Param(system, 1)),
- static_cast<s32>(Param(system, 2)), static_cast<s32>(Param(system, 3)))
- .raw);
-}
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-// Function wrappers that return type u32
-
-template <u32 func(Core::System&)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system));
-}
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-// Function wrappers that return type u64
-
-template <u64 func(Core::System&)>
-void SvcWrap64(Core::System& system) {
- FuncReturn(system, func(system));
-}
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-/// Function wrappers that return type void
-
-template <void func(Core::System&)>
-void SvcWrap64(Core::System& system) {
- func(system);
-}
-
-template <void func(Core::System&, u32)>
-void SvcWrap64(Core::System& system) {
- func(system, static_cast<u32>(Param(system, 0)));
-}
-
-template <void func(Core::System&, u32, u64, u64, u64)>
-void SvcWrap64(Core::System& system) {
- func(system, static_cast<u32>(Param(system, 0)), Param(system, 1), Param(system, 2),
- Param(system, 3));
-}
-
-template <void func(Core::System&, s64)>
-void SvcWrap64(Core::System& system) {
- func(system, static_cast<s64>(Param(system, 0)));
-}
-
-template <void func(Core::System&, u64, s32)>
-void SvcWrap64(Core::System& system) {
- func(system, Param(system, 0), static_cast<s32>(Param(system, 1)));
-}
-
-template <void func(Core::System&, u64, u64)>
-void SvcWrap64(Core::System& system) {
- func(system, Param(system, 0), Param(system, 1));
-}
-
-template <void func(Core::System&, u64, u64, u64)>
-void SvcWrap64(Core::System& system) {
- func(system, Param(system, 0), Param(system, 1), Param(system, 2));
-}
-
-template <void func(Core::System&, u32, u64, u64)>
-void SvcWrap64(Core::System& system) {
- func(system, static_cast<u32>(Param(system, 0)), Param(system, 1), Param(system, 2));
-}
-
-// Used by QueryMemory32, ArbitrateLock32
-template <Result func(Core::System&, u32, u32, u32)>
-void SvcWrap32(Core::System& system) {
- FuncReturn32(system,
- func(system, Param32(system, 0), Param32(system, 1), Param32(system, 2)).raw);
-}
-
-// Used by Break32
-template <void func(Core::System&, u32, u32, u32)>
-void SvcWrap32(Core::System& system) {
- func(system, Param32(system, 0), Param32(system, 1), Param32(system, 2));
-}
-
-// Used by ExitProcess32, ExitThread32
-template <void func(Core::System&)>
-void SvcWrap32(Core::System& system) {
- func(system);
-}
-
-// Used by GetCurrentProcessorNumber32
-template <u32 func(Core::System&)>
-void SvcWrap32(Core::System& system) {
- FuncReturn32(system, func(system));
-}
-
-// Used by SleepThread32
-template <void func(Core::System&, u32, u32)>
-void SvcWrap32(Core::System& system) {
- func(system, Param32(system, 0), Param32(system, 1));
-}
-
-// Used by CreateThread32
-template <Result func(Core::System&, Handle*, u32, u32, u32, u32, s32)>
-void SvcWrap32(Core::System& system) {
- Handle param_1 = 0;
-
- const u32 retval = func(system, &param_1, Param32(system, 0), Param32(system, 1),
- Param32(system, 2), Param32(system, 3), Param32(system, 4))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by GetInfo32
-template <Result func(Core::System&, u32*, u32*, u32, u32, u32, u32)>
-void SvcWrap32(Core::System& system) {
- u32 param_1 = 0;
- u32 param_2 = 0;
-
- const u32 retval = func(system, &param_1, &param_2, Param32(system, 0), Param32(system, 1),
- Param32(system, 2), Param32(system, 3))
- .raw;
-
- system.CurrentArmInterface().SetReg(1, param_1);
- system.CurrentArmInterface().SetReg(2, param_2);
- FuncReturn(system, retval);
-}
-
-// Used by GetThreadPriority32, ConnectToNamedPort32
-template <Result func(Core::System&, u32*, u32)>
-void SvcWrap32(Core::System& system) {
- u32 param_1 = 0;
- const u32 retval = func(system, &param_1, Param32(system, 1)).raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by GetThreadId32
-template <Result func(Core::System&, u32*, u32*, u32)>
-void SvcWrap32(Core::System& system) {
- u32 param_1 = 0;
- u32 param_2 = 0;
-
- const u32 retval = func(system, &param_1, &param_2, Param32(system, 1)).raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- system.CurrentArmInterface().SetReg(2, param_2);
- FuncReturn(system, retval);
-}
-
-// Used by GetSystemTick32
-template <void func(Core::System&, u32*, u32*)>
-void SvcWrap32(Core::System& system) {
- u32 param_1 = 0;
- u32 param_2 = 0;
-
- func(system, &param_1, &param_2);
- system.CurrentArmInterface().SetReg(0, param_1);
- system.CurrentArmInterface().SetReg(1, param_2);
-}
-
-// Used by CreateEvent32
-template <Result func(Core::System&, Handle*, Handle*)>
-void SvcWrap32(Core::System& system) {
- Handle param_1 = 0;
- Handle param_2 = 0;
-
- const u32 retval = func(system, &param_1, &param_2).raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- system.CurrentArmInterface().SetReg(2, param_2);
- FuncReturn(system, retval);
-}
-
-// Used by GetThreadId32
-template <Result func(Core::System&, Handle, u32*, u32*, u32*)>
-void SvcWrap32(Core::System& system) {
- u32 param_1 = 0;
- u32 param_2 = 0;
- u32 param_3 = 0;
-
- const u32 retval = func(system, Param32(system, 2), &param_1, &param_2, &param_3).raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- system.CurrentArmInterface().SetReg(2, param_2);
- system.CurrentArmInterface().SetReg(3, param_3);
- FuncReturn(system, retval);
-}
-
-// Used by GetThreadCoreMask32
-template <Result func(Core::System&, Handle, s32*, u32*, u32*)>
-void SvcWrap32(Core::System& system) {
- s32 param_1 = 0;
- u32 param_2 = 0;
- u32 param_3 = 0;
-
- const u32 retval = func(system, Param32(system, 2), &param_1, &param_2, &param_3).raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- system.CurrentArmInterface().SetReg(2, param_2);
- system.CurrentArmInterface().SetReg(3, param_3);
- FuncReturn(system, retval);
-}
-
-// Used by SignalProcessWideKey32
-template <void func(Core::System&, u32, s32)>
-void SvcWrap32(Core::System& system) {
- func(system, static_cast<u32>(Param(system, 0)), static_cast<s32>(Param(system, 1)));
-}
-
-// Used by SetThreadActivity32
-template <Result func(Core::System&, Handle, Svc::ThreadActivity)>
-void SvcWrap32(Core::System& system) {
- const u32 retval = func(system, static_cast<Handle>(Param(system, 0)),
- static_cast<Svc::ThreadActivity>(Param(system, 1)))
- .raw;
- FuncReturn(system, retval);
-}
-
-// Used by SetThreadPriority32
-template <Result func(Core::System&, Handle, u32)>
-void SvcWrap32(Core::System& system) {
- const u32 retval =
- func(system, static_cast<Handle>(Param(system, 0)), static_cast<u32>(Param(system, 1))).raw;
- FuncReturn(system, retval);
-}
-
-// Used by SetMemoryAttribute32
-template <Result func(Core::System&, Handle, u32, u32, u32)>
-void SvcWrap32(Core::System& system) {
- const u32 retval =
- func(system, static_cast<Handle>(Param(system, 0)), static_cast<u32>(Param(system, 1)),
- static_cast<u32>(Param(system, 2)), static_cast<u32>(Param(system, 3)))
- .raw;
- FuncReturn(system, retval);
-}
-
-// Used by MapSharedMemory32
-template <Result func(Core::System&, Handle, u32, u32, Svc::MemoryPermission)>
-void SvcWrap32(Core::System& system) {
- const u32 retval = func(system, static_cast<Handle>(Param(system, 0)),
- static_cast<u32>(Param(system, 1)), static_cast<u32>(Param(system, 2)),
- static_cast<Svc::MemoryPermission>(Param(system, 3)))
- .raw;
- FuncReturn(system, retval);
-}
-
-// Used by SetThreadCoreMask32
-template <Result func(Core::System&, Handle, s32, u32, u32)>
-void SvcWrap32(Core::System& system) {
- const u32 retval =
- func(system, static_cast<Handle>(Param(system, 0)), static_cast<s32>(Param(system, 1)),
- static_cast<u32>(Param(system, 2)), static_cast<u32>(Param(system, 3)))
- .raw;
- FuncReturn(system, retval);
-}
-
-// Used by WaitProcessWideKeyAtomic32
-template <Result func(Core::System&, u32, u32, Handle, u32, u32)>
-void SvcWrap32(Core::System& system) {
- const u32 retval =
- func(system, static_cast<u32>(Param(system, 0)), static_cast<u32>(Param(system, 1)),
- static_cast<Handle>(Param(system, 2)), static_cast<u32>(Param(system, 3)),
- static_cast<u32>(Param(system, 4)))
- .raw;
- FuncReturn(system, retval);
-}
-
-// Used by WaitForAddress32
-template <Result func(Core::System&, u32, Svc::ArbitrationType, s32, u32, u32)>
-void SvcWrap32(Core::System& system) {
- const u32 retval = func(system, static_cast<u32>(Param(system, 0)),
- static_cast<Svc::ArbitrationType>(Param(system, 1)),
- static_cast<s32>(Param(system, 2)), static_cast<u32>(Param(system, 3)),
- static_cast<u32>(Param(system, 4)))
- .raw;
- FuncReturn(system, retval);
-}
-
-// Used by SignalToAddress32
-template <Result func(Core::System&, u32, Svc::SignalType, s32, s32)>
-void SvcWrap32(Core::System& system) {
- const u32 retval = func(system, static_cast<u32>(Param(system, 0)),
- static_cast<Svc::SignalType>(Param(system, 1)),
- static_cast<s32>(Param(system, 2)), static_cast<s32>(Param(system, 3)))
- .raw;
- FuncReturn(system, retval);
-}
-
-// Used by SendSyncRequest32, ArbitrateUnlock32
-template <Result func(Core::System&, u32)>
-void SvcWrap32(Core::System& system) {
- FuncReturn(system, func(system, static_cast<u32>(Param(system, 0))).raw);
-}
-
-// Used by CreateTransferMemory32
-template <Result func(Core::System&, Handle*, u32, u32, Svc::MemoryPermission)>
-void SvcWrap32(Core::System& system) {
- Handle handle = 0;
- const u32 retval = func(system, &handle, Param32(system, 1), Param32(system, 2),
- static_cast<Svc::MemoryPermission>(Param32(system, 3)))
- .raw;
- system.CurrentArmInterface().SetReg(1, handle);
- FuncReturn(system, retval);
-}
-
-// Used by WaitSynchronization32
-template <Result func(Core::System&, u32, u32, s32, u32, s32*)>
-void SvcWrap32(Core::System& system) {
- s32 param_1 = 0;
- const u32 retval = func(system, Param32(system, 0), Param32(system, 1), Param32(system, 2),
- Param32(system, 3), &param_1)
- .raw;
- system.CurrentArmInterface().SetReg(1, param_1);
- FuncReturn(system, retval);
-}
-
-// Used by CreateCodeMemory32
-template <Result func(Core::System&, Handle*, u32, u32)>
-void SvcWrap32(Core::System& system) {
- Handle handle = 0;
-
- const u32 retval = func(system, &handle, Param32(system, 1), Param32(system, 2)).raw;
-
- system.CurrentArmInterface().SetReg(1, handle);
- FuncReturn(system, retval);
-}
-
-// Used by ControlCodeMemory32
-template <Result func(Core::System&, Handle, u32, u64, u64, Svc::MemoryPermission)>
-void SvcWrap32(Core::System& system) {
- const u32 retval =
- func(system, Param32(system, 0), Param32(system, 1), Param(system, 2), Param(system, 4),
- static_cast<Svc::MemoryPermission>(Param32(system, 6)))
- .raw;
-
- FuncReturn(system, retval);
-}
-
-// Used by Invalidate/Store/FlushProcessDataCache32
-template <Result func(Core::System&, Handle, u64, u64)>
-void SvcWrap32(Core::System& system) {
- const u64 address = (Param(system, 3) << 32) | Param(system, 2);
- const u64 size = (Param(system, 4) << 32) | Param(system, 1);
- FuncReturn32(system, func(system, Param32(system, 0), address, size).raw);
-}
-
-} // namespace Kernel
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index 6d1084fd1..6c29cb613 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -15,7 +15,6 @@
#include "core/core_timing.h"
#include "core/file_sys/control_metadata.h"
#include "core/file_sys/patch_manager.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/acc/acc.h"
#include "core/hle/service/acc/acc_aa.h"
#include "core/hle/service/acc/acc_su.h"
@@ -25,16 +24,12 @@
#include "core/hle/service/acc/errors.h"
#include "core/hle/service/acc/profile_manager.h"
#include "core/hle/service/glue/glue_manager.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/loader/loader.h"
namespace Service::Account {
-constexpr Result ERR_INVALID_USER_ID{ErrorModule::Account, 20};
-constexpr Result ERR_INVALID_APPLICATION_ID{ErrorModule::Account, 22};
-constexpr Result ERR_INVALID_BUFFER{ErrorModule::Account, 30};
-constexpr Result ERR_INVALID_BUFFER_SIZE{ErrorModule::Account, 31};
-constexpr Result ERR_FAILED_SAVE_DATA{ErrorModule::Account, 100};
-
// Thumbnails are hard coded to be at least this size
constexpr std::size_t THUMBNAIL_SIZE = 0x24000;
@@ -76,6 +71,8 @@ public:
{141, nullptr, "RefreshNetworkServiceLicenseCacheAsync"}, // 5.0.0+
{142, nullptr, "RefreshNetworkServiceLicenseCacheAsyncIfSecondsElapsed"}, // 5.0.0+
{150, nullptr, "CreateAuthorizationRequest"},
+ {160, nullptr, "RequiresUpdateNetworkServiceAccountIdTokenCache"},
+ {161, nullptr, "RequireReauthenticationOfNetworkServiceAccount"},
};
// clang-format on
@@ -136,7 +133,10 @@ public:
{140, nullptr, "GetNetworkServiceLicenseCache"}, // 5.0.0+
{141, nullptr, "RefreshNetworkServiceLicenseCacheAsync"}, // 5.0.0+
{142, nullptr, "RefreshNetworkServiceLicenseCacheAsyncIfSecondsElapsed"}, // 5.0.0+
+ {143, nullptr, "GetNetworkServiceLicenseCacheEx"},
{150, nullptr, "CreateAuthorizationRequest"},
+ {160, nullptr, "RequiresUpdateNetworkServiceAccountIdTokenCache"},
+ {161, nullptr, "RequireReauthenticationOfNetworkServiceAccount"},
{200, nullptr, "IsRegistered"},
{201, nullptr, "RegisterAsync"},
{202, nullptr, "UnregisterAsync"},
@@ -242,6 +242,7 @@ public:
{100, nullptr, "GetRequestWithTheme"},
{101, nullptr, "IsNetworkServiceAccountReplaced"},
{199, nullptr, "GetUrlForIntroductionOfExtraMembership"}, // 2.0.0 - 5.1.0
+ {200, nullptr, "ApplyAsyncWithAuthorizedToken"},
};
// clang-format on
@@ -288,7 +289,7 @@ public:
}
protected:
- void Get(Kernel::HLERequestContext& ctx) {
+ void Get(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString());
ProfileBase profile_base{};
UserData data{};
@@ -305,7 +306,7 @@ protected:
}
}
- void GetBase(Kernel::HLERequestContext& ctx) {
+ void GetBase(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString());
ProfileBase profile_base{};
if (profile_manager.GetProfileBase(user_id, profile_base)) {
@@ -319,7 +320,7 @@ protected:
}
}
- void LoadImage(Kernel::HLERequestContext& ctx) {
+ void LoadImage(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -346,7 +347,7 @@ protected:
rb.Push<u32>(size);
}
- void GetImageSize(Kernel::HLERequestContext& ctx) {
+ void GetImageSize(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
@@ -363,7 +364,7 @@ protected:
}
}
- void Store(Kernel::HLERequestContext& ctx) {
+ void Store(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto base = rp.PopRaw<ProfileBase>();
@@ -377,7 +378,7 @@ protected:
if (user_data.size() < sizeof(UserData)) {
LOG_ERROR(Service_ACC, "UserData buffer too small!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_BUFFER);
+ rb.Push(Account::ResultInvalidArrayLength);
return;
}
@@ -387,7 +388,7 @@ protected:
if (!profile_manager.SetProfileBaseAndData(user_id, base, data)) {
LOG_ERROR(Service_ACC, "Failed to update user data and base!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_FAILED_SAVE_DATA);
+ rb.Push(Account::ResultAccountUpdateFailed);
return;
}
@@ -395,7 +396,7 @@ protected:
rb.Push(ResultSuccess);
}
- void StoreWithImage(Kernel::HLERequestContext& ctx) {
+ void StoreWithImage(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto base = rp.PopRaw<ProfileBase>();
@@ -410,7 +411,7 @@ protected:
if (user_data.size() < sizeof(UserData)) {
LOG_ERROR(Service_ACC, "UserData buffer too small!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_BUFFER);
+ rb.Push(Account::ResultInvalidArrayLength);
return;
}
@@ -425,7 +426,7 @@ protected:
!profile_manager.SetProfileBaseAndData(user_id, base, data)) {
LOG_ERROR(Service_ACC, "Failed to update profile data, base, and image!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_FAILED_SAVE_DATA);
+ rb.Push(Account::ResultAccountUpdateFailed);
return;
}
@@ -492,7 +493,7 @@ public:
}
~EnsureTokenIdCacheAsyncInterface() = default;
- void LoadIdTokenCache(Kernel::HLERequestContext& ctx) {
+ void LoadIdTokenCache(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -535,14 +536,14 @@ public:
}
private:
- void CheckAvailability(Kernel::HLERequestContext& ctx) {
+ void CheckAvailability(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(false); // TODO: Check when this is supposed to return true and when not
}
- void GetAccountId(Kernel::HLERequestContext& ctx) {
+ void GetAccountId(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 4};
@@ -550,7 +551,7 @@ private:
rb.PushRaw<u64>(profile_manager->GetLastOpenedUser().Hash());
}
- void EnsureIdTokenCacheAsync(Kernel::HLERequestContext& ctx) {
+ void EnsureIdTokenCacheAsync(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -558,13 +559,13 @@ private:
rb.PushIpcInterface(ensure_token_id);
}
- void LoadIdTokenCache(Kernel::HLERequestContext& ctx) {
+ void LoadIdTokenCache(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
ensure_token_id->LoadIdTokenCache(ctx);
}
- void GetNintendoAccountUserResourceCacheForApplication(Kernel::HLERequestContext& ctx) {
+ void GetNintendoAccountUserResourceCacheForApplication(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
std::vector<u8> nas_user_base_for_application(0x68);
@@ -580,7 +581,7 @@ private:
rb.PushRaw<u64>(profile_manager->GetLastOpenedUser().Hash());
}
- void StoreOpenContext(Kernel::HLERequestContext& ctx) {
+ void StoreOpenContext(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
profile_manager->StoreOpenedUsers();
@@ -647,9 +648,11 @@ public:
{0, nullptr, "EnsureAuthenticationTokenCacheAsync"},
{1, nullptr, "LoadAuthenticationTokenCache"},
{2, nullptr, "InvalidateAuthenticationTokenCache"},
+ {3, nullptr, "IsDeviceAuthenticationTokenCacheAvailable"},
{10, nullptr, "EnsureEdgeTokenCacheAsync"},
{11, nullptr, "LoadEdgeTokenCache"},
{12, nullptr, "InvalidateEdgeTokenCache"},
+ {13, nullptr, "IsEdgeTokenCacheAvailable"},
{20, nullptr, "EnsureApplicationAuthenticationCacheAsync"},
{21, nullptr, "LoadApplicationAuthenticationTokenCache"},
{22, nullptr, "LoadApplicationNetworkServiceClientConfigCache"},
@@ -680,14 +683,14 @@ public:
}
};
-void Module::Interface::GetUserCount(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetUserCount(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push<u32>(static_cast<u32>(profile_manager->GetUserCount()));
}
-void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetUserExistence(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
Common::UUID user_id = rp.PopRaw<Common::UUID>();
LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString());
@@ -697,28 +700,28 @@ void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) {
rb.Push(profile_manager->UserExists(user_id));
}
-void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ListAllUsers(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
ctx.WriteBuffer(profile_manager->GetAllUsers());
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ListOpenUsers(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
ctx.WriteBuffer(profile_manager->GetOpenUsers());
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Module::Interface::GetLastOpenedUser(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetLastOpenedUser(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 6};
rb.Push(ResultSuccess);
rb.PushRaw<Common::UUID>(profile_manager->GetLastOpenedUser());
}
-void Module::Interface::GetProfile(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetProfile(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
Common::UUID user_id = rp.PopRaw<Common::UUID>();
LOG_DEBUG(Service_ACC, "called user_id=0x{}", user_id.RawString());
@@ -728,20 +731,20 @@ void Module::Interface::GetProfile(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IProfile>(system, user_id, *profile_manager);
}
-void Module::Interface::IsUserRegistrationRequestPermitted(Kernel::HLERequestContext& ctx) {
+void Module::Interface::IsUserRegistrationRequestPermitted(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(profile_manager->CanSystemRegisterUser());
}
-void Module::Interface::InitializeApplicationInfo(Kernel::HLERequestContext& ctx) {
+void Module::Interface::InitializeApplicationInfo(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(InitializeApplicationInfoBase());
}
-void Module::Interface::InitializeApplicationInfoRestricted(Kernel::HLERequestContext& ctx) {
+void Module::Interface::InitializeApplicationInfoRestricted(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(Partial implementation) called");
// TODO(ogniK): We require checking if the user actually owns the title and what not. As of
@@ -755,18 +758,18 @@ void Module::Interface::InitializeApplicationInfoRestricted(Kernel::HLERequestCo
Result Module::Interface::InitializeApplicationInfoBase() {
if (application_info) {
LOG_ERROR(Service_ACC, "Application already initialized");
- return ERR_ACCOUNTINFO_ALREADY_INITIALIZED;
+ return Account::ResultApplicationInfoAlreadyInitialized;
}
// TODO(ogniK): This should be changed to reflect the target process for when we have multiple
// processes emulated. As we don't actually have pid support we should assume we're just using
// our own process
const auto launch_property =
- system.GetARPManager().GetLaunchProperty(system.GetCurrentProcessProgramID());
+ system.GetARPManager().GetLaunchProperty(system.GetApplicationProcessProgramID());
if (launch_property.Failed()) {
LOG_ERROR(Service_ACC, "Failed to get launch property");
- return ERR_ACCOUNTINFO_BAD_APPLICATION;
+ return Account::ResultInvalidApplication;
}
switch (launch_property->base_game_storage_id) {
@@ -782,23 +785,23 @@ Result Module::Interface::InitializeApplicationInfoBase() {
default:
LOG_ERROR(Service_ACC, "Invalid game storage ID! storage_id={}",
launch_property->base_game_storage_id);
- return ERR_ACCOUNTINFO_BAD_APPLICATION;
+ return Account::ResultInvalidApplication;
}
LOG_WARNING(Service_ACC, "ApplicationInfo init required");
- // TODO(ogniK): Actual initalization here
+ // TODO(ogniK): Actual initialization here
return ResultSuccess;
}
-void Module::Interface::GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetBaasAccountManagerForApplication(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IManagerForApplication>(system, profile_manager);
}
-void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx) {
+void Module::Interface::IsUserAccountSwitchLocked(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
FileSys::NACP nacp;
const auto res = system.GetAppLoader().ReadControlData(nacp);
@@ -806,7 +809,7 @@ void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx
bool is_locked = false;
if (res != Loader::ResultStatus::Success) {
- const FileSys::PatchManager pm{system.GetCurrentProcessProgramID(),
+ const FileSys::PatchManager pm{system.GetApplicationProcessProgramID(),
system.GetFileSystemController(),
system.GetContentProvider()};
const auto nacp_unique = pm.GetControlMetadata().first;
@@ -825,14 +828,14 @@ void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx
rb.Push(is_locked);
}
-void Module::Interface::InitializeApplicationInfoV2(Kernel::HLERequestContext& ctx) {
+void Module::Interface::InitializeApplicationInfoV2(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetProfileEditor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
Common::UUID user_id = rp.PopRaw<Common::UUID>();
@@ -843,7 +846,7 @@ void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IProfileEditor>(system, user_id, *profile_manager);
}
-void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ListQualifiedUsers(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
// All users should be qualified. We don't actually have parental control or anything to do with
@@ -854,7 +857,7 @@ void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ListOpenContextStoredUsers(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
ctx.WriteBuffer(profile_manager->GetStoredOpenedUsers());
@@ -862,7 +865,7 @@ void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ct
rb.Push(ResultSuccess);
}
-void Module::Interface::StoreSaveDataThumbnailApplication(Kernel::HLERequestContext& ctx) {
+void Module::Interface::StoreSaveDataThumbnailApplication(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto uuid = rp.PopRaw<Common::UUID>();
@@ -875,7 +878,7 @@ void Module::Interface::StoreSaveDataThumbnailApplication(Kernel::HLERequestCont
StoreSaveDataThumbnail(ctx, uuid, tid);
}
-void Module::Interface::StoreSaveDataThumbnailSystem(Kernel::HLERequestContext& ctx) {
+void Module::Interface::StoreSaveDataThumbnailSystem(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto uuid = rp.PopRaw<Common::UUID>();
const auto tid = rp.Pop<u64_le>();
@@ -884,26 +887,26 @@ void Module::Interface::StoreSaveDataThumbnailSystem(Kernel::HLERequestContext&
StoreSaveDataThumbnail(ctx, uuid, tid);
}
-void Module::Interface::StoreSaveDataThumbnail(Kernel::HLERequestContext& ctx,
- const Common::UUID& uuid, const u64 tid) {
+void Module::Interface::StoreSaveDataThumbnail(HLERequestContext& ctx, const Common::UUID& uuid,
+ const u64 tid) {
IPC::ResponseBuilder rb{ctx, 2};
if (tid == 0) {
LOG_ERROR(Service_ACC, "TitleID is not valid!");
- rb.Push(ERR_INVALID_APPLICATION_ID);
+ rb.Push(Account::ResultInvalidApplication);
return;
}
if (uuid.IsInvalid()) {
LOG_ERROR(Service_ACC, "User ID is not valid!");
- rb.Push(ERR_INVALID_USER_ID);
+ rb.Push(Account::ResultInvalidUserId);
return;
}
const auto thumbnail_size = ctx.GetReadBufferSize();
if (thumbnail_size != THUMBNAIL_SIZE) {
LOG_ERROR(Service_ACC, "Buffer size is empty! size={:X} expecting {:X}", thumbnail_size,
THUMBNAIL_SIZE);
- rb.Push(ERR_INVALID_BUFFER_SIZE);
+ rb.Push(Account::ResultInvalidArrayLength);
return;
}
@@ -911,7 +914,7 @@ void Module::Interface::StoreSaveDataThumbnail(Kernel::HLERequestContext& ctx,
rb.Push(ResultSuccess);
}
-void Module::Interface::TrySelectUserWithoutInteraction(Kernel::HLERequestContext& ctx) {
+void Module::Interface::TrySelectUserWithoutInteraction(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
// A u8 is passed into this function which we can safely ignore. It's to determine if we have
// access to use the network or not by the looks of it
@@ -942,18 +945,20 @@ Module::Interface::Interface(std::shared_ptr<Module> module_,
Module::Interface::~Interface() = default;
-void InstallInterfaces(Core::System& system) {
+void LoopProcess(Core::System& system) {
auto module = std::make_shared<Module>();
auto profile_manager = std::make_shared<ProfileManager>();
-
- std::make_shared<ACC_AA>(module, profile_manager, system)
- ->InstallAsService(system.ServiceManager());
- std::make_shared<ACC_SU>(module, profile_manager, system)
- ->InstallAsService(system.ServiceManager());
- std::make_shared<ACC_U0>(module, profile_manager, system)
- ->InstallAsService(system.ServiceManager());
- std::make_shared<ACC_U1>(module, profile_manager, system)
- ->InstallAsService(system.ServiceManager());
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("acc:aa",
+ std::make_shared<ACC_AA>(module, profile_manager, system));
+ server_manager->RegisterNamedService("acc:su",
+ std::make_shared<ACC_SU>(module, profile_manager, system));
+ server_manager->RegisterNamedService("acc:u0",
+ std::make_shared<ACC_U0>(module, profile_manager, system));
+ server_manager->RegisterNamedService("acc:u1",
+ std::make_shared<ACC_U1>(module, profile_manager, system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Account
diff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.h
index 9411b0b92..6b4735c2f 100644
--- a/src/core/hle/service/acc/acc.h
+++ b/src/core/hle/service/acc/acc.h
@@ -20,28 +20,28 @@ public:
const char* name);
~Interface() override;
- void GetUserCount(Kernel::HLERequestContext& ctx);
- void GetUserExistence(Kernel::HLERequestContext& ctx);
- void ListAllUsers(Kernel::HLERequestContext& ctx);
- void ListOpenUsers(Kernel::HLERequestContext& ctx);
- void GetLastOpenedUser(Kernel::HLERequestContext& ctx);
- void GetProfile(Kernel::HLERequestContext& ctx);
- void InitializeApplicationInfo(Kernel::HLERequestContext& ctx);
- void InitializeApplicationInfoRestricted(Kernel::HLERequestContext& ctx);
- void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx);
- void IsUserRegistrationRequestPermitted(Kernel::HLERequestContext& ctx);
- void TrySelectUserWithoutInteraction(Kernel::HLERequestContext& ctx);
- void IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx);
- void InitializeApplicationInfoV2(Kernel::HLERequestContext& ctx);
- void GetProfileEditor(Kernel::HLERequestContext& ctx);
- void ListQualifiedUsers(Kernel::HLERequestContext& ctx);
- void ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx);
- void StoreSaveDataThumbnailApplication(Kernel::HLERequestContext& ctx);
- void StoreSaveDataThumbnailSystem(Kernel::HLERequestContext& ctx);
+ void GetUserCount(HLERequestContext& ctx);
+ void GetUserExistence(HLERequestContext& ctx);
+ void ListAllUsers(HLERequestContext& ctx);
+ void ListOpenUsers(HLERequestContext& ctx);
+ void GetLastOpenedUser(HLERequestContext& ctx);
+ void GetProfile(HLERequestContext& ctx);
+ void InitializeApplicationInfo(HLERequestContext& ctx);
+ void InitializeApplicationInfoRestricted(HLERequestContext& ctx);
+ void GetBaasAccountManagerForApplication(HLERequestContext& ctx);
+ void IsUserRegistrationRequestPermitted(HLERequestContext& ctx);
+ void TrySelectUserWithoutInteraction(HLERequestContext& ctx);
+ void IsUserAccountSwitchLocked(HLERequestContext& ctx);
+ void InitializeApplicationInfoV2(HLERequestContext& ctx);
+ void GetProfileEditor(HLERequestContext& ctx);
+ void ListQualifiedUsers(HLERequestContext& ctx);
+ void ListOpenContextStoredUsers(HLERequestContext& ctx);
+ void StoreSaveDataThumbnailApplication(HLERequestContext& ctx);
+ void StoreSaveDataThumbnailSystem(HLERequestContext& ctx);
private:
Result InitializeApplicationInfoBase();
- void StoreSaveDataThumbnail(Kernel::HLERequestContext& ctx, const Common::UUID& uuid,
+ void StoreSaveDataThumbnail(HLERequestContext& ctx, const Common::UUID& uuid,
const u64 tid);
enum class ApplicationType : u32_le {
@@ -67,7 +67,6 @@ public:
};
};
-/// Registers all ACC services with the specified service manager.
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Account
diff --git a/src/core/hle/service/acc/acc_su.cpp b/src/core/hle/service/acc/acc_su.cpp
index b6bfd6155..d9882ecd3 100644
--- a/src/core/hle/service/acc/acc_su.cpp
+++ b/src/core/hle/service/acc/acc_su.cpp
@@ -55,6 +55,10 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module_, std::shared_ptr<ProfileManager>
{290, nullptr, "ProxyProcedureForGuestLoginWithNintendoAccount"},
{291, nullptr, "ProxyProcedureForFloatingRegistrationWithNintendoAccount"},
{299, nullptr, "SuspendBackgroundDaemon"},
+ {900, nullptr, "SetUserUnqualifiedForDebug"},
+ {901, nullptr, "UnsetUserUnqualifiedForDebug"},
+ {902, nullptr, "ListUsersUnqualifiedForDebug"},
+ {910, nullptr, "RefreshFirmwareSettingsForDebug"},
{997, nullptr, "DebugInvalidateTokenCacheForUser"},
{998, nullptr, "DebugSetUserStateClose"},
{999, nullptr, "DebugSetUserStateOpen"},
diff --git a/src/core/hle/service/acc/async_context.cpp b/src/core/hle/service/acc/async_context.cpp
index 713689d8f..c9e0af90c 100644
--- a/src/core/hle/service/acc/async_context.cpp
+++ b/src/core/hle/service/acc/async_context.cpp
@@ -2,9 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/acc/async_context.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Account {
IAsyncContext::IAsyncContext(Core::System& system_)
@@ -27,7 +27,7 @@ IAsyncContext::~IAsyncContext() {
service_context.CloseEvent(completion_event);
}
-void IAsyncContext::GetSystemEvent(Kernel::HLERequestContext& ctx) {
+void IAsyncContext::GetSystemEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -35,7 +35,7 @@ void IAsyncContext::GetSystemEvent(Kernel::HLERequestContext& ctx) {
rb.PushCopyObjects(completion_event->GetReadableEvent());
}
-void IAsyncContext::Cancel(Kernel::HLERequestContext& ctx) {
+void IAsyncContext::Cancel(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
Cancel();
@@ -45,7 +45,7 @@ void IAsyncContext::Cancel(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IAsyncContext::HasDone(Kernel::HLERequestContext& ctx) {
+void IAsyncContext::HasDone(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
is_complete.store(IsComplete());
@@ -55,7 +55,7 @@ void IAsyncContext::HasDone(Kernel::HLERequestContext& ctx) {
rb.Push(is_complete.load());
}
-void IAsyncContext::GetResult(Kernel::HLERequestContext& ctx) {
+void IAsyncContext::GetResult(HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
IPC::ResponseBuilder rb{ctx, 3};
diff --git a/src/core/hle/service/acc/async_context.h b/src/core/hle/service/acc/async_context.h
index 26332d241..d7bffc055 100644
--- a/src/core/hle/service/acc/async_context.h
+++ b/src/core/hle/service/acc/async_context.h
@@ -18,10 +18,10 @@ public:
explicit IAsyncContext(Core::System& system_);
~IAsyncContext() override;
- void GetSystemEvent(Kernel::HLERequestContext& ctx);
- void Cancel(Kernel::HLERequestContext& ctx);
- void HasDone(Kernel::HLERequestContext& ctx);
- void GetResult(Kernel::HLERequestContext& ctx);
+ void GetSystemEvent(HLERequestContext& ctx);
+ void Cancel(HLERequestContext& ctx);
+ void HasDone(HLERequestContext& ctx);
+ void GetResult(HLERequestContext& ctx);
protected:
virtual bool IsComplete() const = 0;
diff --git a/src/core/hle/service/acc/errors.h b/src/core/hle/service/acc/errors.h
index e9c16b951..433ebfe9d 100644
--- a/src/core/hle/service/acc/errors.h
+++ b/src/core/hle/service/acc/errors.h
@@ -7,7 +7,13 @@
namespace Service::Account {
-constexpr Result ERR_ACCOUNTINFO_BAD_APPLICATION{ErrorModule::Account, 22};
-constexpr Result ERR_ACCOUNTINFO_ALREADY_INITIALIZED{ErrorModule::Account, 41};
+constexpr Result ResultCancelledByUser{ErrorModule::Account, 1};
+constexpr Result ResultNoNotifications{ErrorModule::Account, 15};
+constexpr Result ResultInvalidUserId{ErrorModule::Account, 20};
+constexpr Result ResultInvalidApplication{ErrorModule::Account, 22};
+constexpr Result ResultNullptr{ErrorModule::Account, 30};
+constexpr Result ResultInvalidArrayLength{ErrorModule::Account, 32};
+constexpr Result ResultApplicationInfoAlreadyInitialized{ErrorModule::Account, 41};
+constexpr Result ResultAccountUpdateFailed{ErrorModule::Account, 100};
} // namespace Service::Account
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index 97f7c6688..5542d6cbc 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -46,6 +46,7 @@ ProfileManager::ProfileManager() {
// Create an user if none are present
if (user_count == 0) {
CreateNewUser(UUID::MakeRandom(), "yuzu");
+ WriteUserSaveFile();
}
auto current =
@@ -287,7 +288,7 @@ void ProfileManager::StoreOpenedUsers() {
});
}
-/// Return the users profile base and the unknown arbitary data.
+/// Return the users profile base and the unknown arbitrary data.
bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, ProfileBase& profile,
UserData& data) const {
if (GetProfileBase(index, profile)) {
@@ -297,13 +298,13 @@ bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, Pro
return false;
}
-/// Return the users profile base and the unknown arbitary data.
+/// Return the users profile base and the unknown arbitrary data.
bool ProfileManager::GetProfileBaseAndData(UUID uuid, ProfileBase& profile, UserData& data) const {
const auto idx = GetUserIndex(uuid);
return GetProfileBaseAndData(idx, profile, data);
}
-/// Return the users profile base and the unknown arbitary data.
+/// Return the users profile base and the unknown arbitrary data.
bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase& profile,
UserData& data) const {
return GetProfileBaseAndData(user.user_uuid, profile, data);
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 22999c942..a2375508a 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -11,9 +11,9 @@
#include "core/file_sys/patch_manager.h"
#include "core/file_sys/registered_cache.h"
#include "core/file_sys/savedata_factory.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_transfer_memory.h"
+#include "core/hle/result.h"
#include "core/hle/service/acc/profile_manager.h"
#include "core/hle/service/am/am.h"
#include "core/hle/service/am/applet_ae.h"
@@ -24,24 +24,25 @@
#include "core/hle/service/am/idle.h"
#include "core/hle/service/am/omm.h"
#include "core/hle/service/am/spsm.h"
-#include "core/hle/service/am/tcap.h"
#include "core/hle/service/apm/apm_controller.h"
#include "core/hle/service/apm/apm_interface.h"
#include "core/hle/service/bcat/backend/backend.h"
#include "core/hle/service/caps/caps.h"
#include "core/hle/service/filesystem/filesystem.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ns/ns.h"
-#include "core/hle/service/nvflinger/nvflinger.h"
+#include "core/hle/service/nvnflinger/nvnflinger.h"
#include "core/hle/service/pm/pm.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/sm/sm.h"
#include "core/hle/service/vi/vi.h"
#include "core/memory.h"
namespace Service::AM {
-constexpr Result ERR_NO_DATA_IN_CHANNEL{ErrorModule::AM, 2};
-constexpr Result ERR_NO_MESSAGES{ErrorModule::AM, 3};
-constexpr Result ERR_SIZE_OUT_OF_BOUNDS{ErrorModule::AM, 503};
+constexpr Result ResultNoDataInChannel{ErrorModule::AM, 2};
+constexpr Result ResultNoMessages{ErrorModule::AM, 3};
+constexpr Result ResultInvalidOffset{ErrorModule::AM, 503};
enum class LaunchParameterKind : u32 {
ApplicationSpecific = 1,
@@ -78,8 +79,8 @@ IWindowController::IWindowController(Core::System& system_)
IWindowController::~IWindowController() = default;
-void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) {
- const u64 process_id = system.CurrentProcess()->GetProcessID();
+void IWindowController::GetAppletResourceUserId(HLERequestContext& ctx) {
+ const u64 process_id = system.ApplicationProcess()->GetProcessId();
LOG_DEBUG(Service_AM, "called. Process ID=0x{:016X}", process_id);
@@ -88,7 +89,7 @@ void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx)
rb.Push<u64>(process_id);
}
-void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) {
+void IWindowController::AcquireForegroundRights(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
@@ -111,7 +112,7 @@ IAudioController::IAudioController(Core::System& system_)
IAudioController::~IAudioController() = default;
-void IAudioController::SetExpectedMasterVolume(Kernel::HLERequestContext& ctx) {
+void IAudioController::SetExpectedMasterVolume(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const float main_applet_volume_tmp = rp.Pop<float>();
const float library_applet_volume_tmp = rp.Pop<float>();
@@ -128,21 +129,21 @@ void IAudioController::SetExpectedMasterVolume(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IAudioController::GetMainAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx) {
+void IAudioController::GetMainAppletExpectedMasterVolume(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called. main_applet_volume={}", main_applet_volume);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(main_applet_volume);
}
-void IAudioController::GetLibraryAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx) {
+void IAudioController::GetLibraryAppletExpectedMasterVolume(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called. library_applet_volume={}", library_applet_volume);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(library_applet_volume);
}
-void IAudioController::ChangeMainAppletMasterVolume(Kernel::HLERequestContext& ctx) {
+void IAudioController::ChangeMainAppletMasterVolume(HLERequestContext& ctx) {
struct Parameters {
float volume;
s64 fade_time_ns;
@@ -162,7 +163,7 @@ void IAudioController::ChangeMainAppletMasterVolume(Kernel::HLERequestContext& c
rb.Push(ResultSuccess);
}
-void IAudioController::SetTransparentAudioRate(Kernel::HLERequestContext& ctx) {
+void IAudioController::SetTransparentAudioRate(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const float transparent_volume_rate_tmp = rp.Pop<float>();
@@ -227,6 +228,8 @@ IDebugFunctions::IDebugFunctions(Core::System& system_)
{30, nullptr, "RequestLaunchApplicationWithUserAndArgumentForDebug"},
{31, nullptr, "RequestLaunchApplicationByApplicationLaunchInfoForDebug"},
{40, nullptr, "GetAppletResourceUsageInfo"},
+ {50, nullptr, "AddSystemProgramIdAndAppletIdForDebug"},
+ {51, nullptr, "AddOperationConfirmedLibraryAppletIdForDebug"},
{100, nullptr, "SetCpuBoostModeForApplet"},
{101, nullptr, "CancelCpuBoostModeForApplet"},
{110, nullptr, "PushToAppletBoundChannelForDebug"},
@@ -238,6 +241,8 @@ IDebugFunctions::IDebugFunctions(Core::System& system_)
{131, nullptr, "FriendInvitationClearApplicationParameter"},
{132, nullptr, "FriendInvitationPushApplicationParameter"},
{140, nullptr, "RestrictPowerOperationForSecureLaunchModeForDebug"},
+ {200, nullptr, "CreateFloatingLibraryAppletAccepterForDebug"},
+ {300, nullptr, "TerminateAllRunningApplicationsForDebug"},
{900, nullptr, "GetGrcProcessLaunchedSystemEvent"},
};
// clang-format on
@@ -247,10 +252,9 @@ IDebugFunctions::IDebugFunctions(Core::System& system_)
IDebugFunctions::~IDebugFunctions() = default;
-ISelfController::ISelfController(Core::System& system_, NVFlinger::NVFlinger& nvflinger_)
- : ServiceFramework{system_, "ISelfController"}, nvflinger{nvflinger_}, service_context{
- system,
- "ISelfController"} {
+ISelfController::ISelfController(Core::System& system_, Nvnflinger::Nvnflinger& nvnflinger_)
+ : ServiceFramework{system_, "ISelfController"}, nvnflinger{nvnflinger_},
+ service_context{system, "ISelfController"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &ISelfController::Exit, "Exit"},
@@ -324,7 +328,7 @@ ISelfController::~ISelfController() {
service_context.CloseEvent(accumulated_suspended_tick_changed_event);
}
-void ISelfController::Exit(Kernel::HLERequestContext& ctx) {
+void ISelfController::Exit(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -333,7 +337,7 @@ void ISelfController::Exit(Kernel::HLERequestContext& ctx) {
system.Exit();
}
-void ISelfController::LockExit(Kernel::HLERequestContext& ctx) {
+void ISelfController::LockExit(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
system.SetExitLock(true);
@@ -342,7 +346,7 @@ void ISelfController::LockExit(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::UnlockExit(Kernel::HLERequestContext& ctx) {
+void ISelfController::UnlockExit(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
system.SetExitLock(false);
@@ -351,7 +355,7 @@ void ISelfController::UnlockExit(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::EnterFatalSection(Kernel::HLERequestContext& ctx) {
+void ISelfController::EnterFatalSection(HLERequestContext& ctx) {
++num_fatal_sections_entered;
LOG_DEBUG(Service_AM, "called. Num fatal sections entered: {}", num_fatal_sections_entered);
@@ -359,7 +363,7 @@ void ISelfController::EnterFatalSection(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::LeaveFatalSection(Kernel::HLERequestContext& ctx) {
+void ISelfController::LeaveFatalSection(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called.");
// Entry and exit of fatal sections must be balanced.
@@ -375,7 +379,7 @@ void ISelfController::LeaveFatalSection(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext& ctx) {
+void ISelfController::GetLibraryAppletLaunchableEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
launchable_event->Signal();
@@ -385,7 +389,7 @@ void ISelfController::GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext&
rb.PushCopyObjects(launchable_event->GetReadableEvent());
}
-void ISelfController::SetScreenShotPermission(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetScreenShotPermission(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto permission = rp.PopEnum<ScreenshotPermission>();
LOG_DEBUG(Service_AM, "called, permission={}", permission);
@@ -396,7 +400,7 @@ void ISelfController::SetScreenShotPermission(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetOperationModeChangedNotification(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
bool flag = rp.Pop<bool>();
@@ -406,7 +410,7 @@ void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestCont
rb.Push(ResultSuccess);
}
-void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetPerformanceModeChangedNotification(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
bool flag = rp.Pop<bool>();
@@ -416,7 +420,7 @@ void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestCo
rb.Push(ResultSuccess);
}
-void ISelfController::SetFocusHandlingMode(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetFocusHandlingMode(HLERequestContext& ctx) {
// Takes 3 input u8s with each field located immediately after the previous
// u8, these are bool flags. No output.
IPC::RequestParser rp{ctx};
@@ -435,14 +439,14 @@ void ISelfController::SetFocusHandlingMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::SetRestartMessageEnabled(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetRestartMessageEnabled(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetOutOfFocusSuspendingEnabled(HLERequestContext& ctx) {
// Takes 3 input u8s with each field located immediately after the previous
// u8, these are bool flags. No output.
IPC::RequestParser rp{ctx};
@@ -454,27 +458,27 @@ void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext&
rb.Push(ResultSuccess);
}
-void ISelfController::SetAlbumImageOrientation(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetAlbumImageOrientation(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) {
+void ISelfController::CreateManagedDisplayLayer(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
// TODO(Subv): Find out how AM determines the display to use, for now just
// create the layer in the Default display.
- const auto display_id = nvflinger.OpenDisplay("Default");
- const auto layer_id = nvflinger.CreateLayer(*display_id);
+ const auto display_id = nvnflinger.OpenDisplay("Default");
+ const auto layer_id = nvnflinger.CreateLayer(*display_id);
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
rb.Push(*layer_id);
}
-void ISelfController::CreateManagedDisplaySeparableLayer(Kernel::HLERequestContext& ctx) {
+void ISelfController::CreateManagedDisplaySeparableLayer(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
// TODO(Subv): Find out how AM determines the display to use, for now just
@@ -484,22 +488,22 @@ void ISelfController::CreateManagedDisplaySeparableLayer(Kernel::HLERequestConte
// Outputting 1 layer id instead of the expected 2 has not been observed to cause any adverse
// side effects.
// TODO: Support multiple layers
- const auto display_id = nvflinger.OpenDisplay("Default");
- const auto layer_id = nvflinger.CreateLayer(*display_id);
+ const auto display_id = nvnflinger.OpenDisplay("Default");
+ const auto layer_id = nvnflinger.CreateLayer(*display_id);
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
rb.Push(*layer_id);
}
-void ISelfController::SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetHandlesRequestToDisplay(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void ISelfController::SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetIdleTimeDetectionExtension(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
idle_time_detection_extension = rp.Pop<u32>();
LOG_WARNING(Service_AM, "(STUBBED) called idle_time_detection_extension={}",
@@ -509,7 +513,7 @@ void ISelfController::SetIdleTimeDetectionExtension(Kernel::HLERequestContext& c
rb.Push(ResultSuccess);
}
-void ISelfController::GetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx) {
+void ISelfController::GetIdleTimeDetectionExtension(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -517,14 +521,14 @@ void ISelfController::GetIdleTimeDetectionExtension(Kernel::HLERequestContext& c
rb.Push<u32>(idle_time_detection_extension);
}
-void ISelfController::ReportUserIsActive(Kernel::HLERequestContext& ctx) {
+void ISelfController::ReportUserIsActive(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void ISelfController::SetAutoSleepDisabled(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetAutoSleepDisabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
is_auto_sleep_disabled = rp.Pop<bool>();
@@ -544,7 +548,7 @@ void ISelfController::SetAutoSleepDisabled(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::IsAutoSleepDisabled(Kernel::HLERequestContext& ctx) {
+void ISelfController::IsAutoSleepDisabled(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called.");
IPC::ResponseBuilder rb{ctx, 3};
@@ -552,7 +556,7 @@ void ISelfController::IsAutoSleepDisabled(Kernel::HLERequestContext& ctx) {
rb.Push(is_auto_sleep_disabled);
}
-void ISelfController::GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx) {
+void ISelfController::GetAccumulatedSuspendedTickValue(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called.");
// This command returns the total number of system ticks since ISelfController creation
@@ -563,7 +567,7 @@ void ISelfController::GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext
rb.Push<u64>(0);
}
-void ISelfController::GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx) {
+void ISelfController::GetAccumulatedSuspendedTickChangedEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called.");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -571,7 +575,7 @@ void ISelfController::GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequest
rb.PushCopyObjects(accumulated_suspended_tick_changed_event->GetReadableEvent());
}
-void ISelfController::SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetAlbumImageTakenNotificationEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
// This service call sets an internal flag whether a notification is shown when an image is
@@ -586,7 +590,7 @@ void ISelfController::SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestCo
rb.Push(ResultSuccess);
}
-void ISelfController::SaveCurrentScreenshot(Kernel::HLERequestContext& ctx) {
+void ISelfController::SaveCurrentScreenshot(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto album_report_option = rp.PopEnum<Capture::AlbumReportOption>();
@@ -597,7 +601,7 @@ void ISelfController::SaveCurrentScreenshot(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ISelfController::SetRecordVolumeMuted(Kernel::HLERequestContext& ctx) {
+void ISelfController::SetRecordVolumeMuted(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto is_record_volume_muted = rp.Pop<bool>();
@@ -731,7 +735,7 @@ ICommonStateGetter::ICommonStateGetter(Core::System& system_,
ICommonStateGetter::~ICommonStateGetter() = default;
-void ICommonStateGetter::GetBootMode(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::GetBootMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -739,7 +743,7 @@ void ICommonStateGetter::GetBootMode(Kernel::HLERequestContext& ctx) {
rb.Push<u8>(static_cast<u8>(Service::PM::SystemBootMode::Normal)); // Normal boot mode
}
-void ICommonStateGetter::GetEventHandle(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::GetEventHandle(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -747,7 +751,7 @@ void ICommonStateGetter::GetEventHandle(Kernel::HLERequestContext& ctx) {
rb.PushCopyObjects(msg_queue->GetMessageReceiveEvent());
}
-void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::ReceiveMessage(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
const auto message = msg_queue->PopMessage();
@@ -755,7 +759,7 @@ void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) {
if (message == AppletMessageQueue::AppletMessage::None) {
LOG_ERROR(Service_AM, "Message queue is empty");
- rb.Push(ERR_NO_MESSAGES);
+ rb.Push(AM::ResultNoMessages);
rb.PushEnum<AppletMessageQueue::AppletMessage>(message);
return;
}
@@ -764,7 +768,7 @@ void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) {
rb.PushEnum<AppletMessageQueue::AppletMessage>(message);
}
-void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::GetCurrentFocusState(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -772,7 +776,7 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) {
rb.Push(static_cast<u8>(FocusState::InFocus));
}
-void ICommonStateGetter::IsVrModeEnabled(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::IsVrModeEnabled(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -780,7 +784,7 @@ void ICommonStateGetter::IsVrModeEnabled(Kernel::HLERequestContext& ctx) {
rb.Push(vr_mode_state);
}
-void ICommonStateGetter::SetVrModeEnabled(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::SetVrModeEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
vr_mode_state = rp.Pop<bool>();
@@ -790,7 +794,7 @@ void ICommonStateGetter::SetVrModeEnabled(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ICommonStateGetter::SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::SetLcdBacklighOffEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto is_lcd_backlight_off_enabled = rp.Pop<bool>();
@@ -801,21 +805,21 @@ void ICommonStateGetter::SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx
rb.Push(ResultSuccess);
}
-void ICommonStateGetter::BeginVrModeEx(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::BeginVrModeEx(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void ICommonStateGetter::EndVrModeEx(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::EndVrModeEx(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -823,7 +827,7 @@ void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(Kernel::HLEReque
rb.PushCopyObjects(msg_queue->GetOperationModeChangedEvent());
}
-void ICommonStateGetter::GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::GetDefaultDisplayResolution(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 4};
@@ -838,7 +842,7 @@ void ICommonStateGetter::GetDefaultDisplayResolution(Kernel::HLERequestContext&
}
}
-void ICommonStateGetter::SetCpuBoostMode(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::SetCpuBoostMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called, forwarding to APM:SYS");
const auto& sm = system.ServiceManager();
@@ -848,7 +852,7 @@ void ICommonStateGetter::SetCpuBoostMode(Kernel::HLERequestContext& ctx) {
apm_sys->SetCpuBoostMode(ctx);
}
-void ICommonStateGetter::PerformSystemButtonPressingIfInFocus(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::PerformSystemButtonPressingIfInFocus(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto system_button{rp.PopEnum<SystemButtonType>()};
@@ -859,7 +863,7 @@ void ICommonStateGetter::PerformSystemButtonPressingIfInFocus(Kernel::HLERequest
}
void ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(
- Kernel::HLERequestContext& ctx) {
+ HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -907,7 +911,7 @@ void IStorage::Register() {
IStorage::~IStorage() = default;
-void IStorage::Open(Kernel::HLERequestContext& ctx) {
+void IStorage::Open(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -916,7 +920,7 @@ void IStorage::Open(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IStorageAccessor>(system, *this);
}
-void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::GetOperationMode(HLERequestContext& ctx) {
const bool use_docked_mode{Settings::values.use_docked_mode.GetValue()};
LOG_DEBUG(Service_AM, "called, use_docked_mode={}", use_docked_mode);
@@ -925,7 +929,7 @@ void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) {
rb.Push(static_cast<u8>(use_docked_mode ? OperationMode::Docked : OperationMode::Handheld));
}
-void ICommonStateGetter::GetPerformanceMode(Kernel::HLERequestContext& ctx) {
+void ICommonStateGetter::GetPerformanceMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -942,7 +946,7 @@ public:
{0, &ILibraryAppletAccessor::GetAppletStateChangedEvent, "GetAppletStateChangedEvent"},
{1, &ILibraryAppletAccessor::IsCompleted, "IsCompleted"},
{10, &ILibraryAppletAccessor::Start, "Start"},
- {20, nullptr, "RequestExit"},
+ {20, &ILibraryAppletAccessor::RequestExit, "RequestExit"},
{25, nullptr, "Terminate"},
{30, &ILibraryAppletAccessor::GetResult, "GetResult"},
{50, nullptr, "SetOutOfFocusApplicationSuspendingEnabled"},
@@ -965,7 +969,7 @@ public:
}
private:
- void GetAppletStateChangedEvent(Kernel::HLERequestContext& ctx) {
+ void GetAppletStateChangedEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -973,7 +977,7 @@ private:
rb.PushCopyObjects(applet->GetBroker().GetStateChangedEvent());
}
- void IsCompleted(Kernel::HLERequestContext& ctx) {
+ void IsCompleted(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -981,21 +985,21 @@ private:
rb.Push<u32>(applet->TransactionComplete());
}
- void GetResult(Kernel::HLERequestContext& ctx) {
+ void GetResult(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(applet->GetStatus());
}
- void PresetLibraryAppletGpuTimeSliceZero(Kernel::HLERequestContext& ctx) {
+ void PresetLibraryAppletGpuTimeSliceZero(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void Start(Kernel::HLERequestContext& ctx) {
+ void Start(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
ASSERT(applet != nullptr);
@@ -1007,7 +1011,16 @@ private:
rb.Push(ResultSuccess);
}
- void PushInData(Kernel::HLERequestContext& ctx) {
+ void RequestExit(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_AM, "called");
+
+ ASSERT(applet != nullptr);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(applet->RequestExit());
+ }
+
+ void PushInData(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::RequestParser rp{ctx};
@@ -1017,7 +1030,7 @@ private:
rb.Push(ResultSuccess);
}
- void PopOutData(Kernel::HLERequestContext& ctx) {
+ void PopOutData(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
auto storage = applet->GetBroker().PopNormalDataToGame();
@@ -1025,7 +1038,7 @@ private:
LOG_DEBUG(Service_AM,
"storage is a nullptr. There is no data in the current normal channel");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NO_DATA_IN_CHANNEL);
+ rb.Push(AM::ResultNoDataInChannel);
return;
}
@@ -1034,7 +1047,7 @@ private:
rb.PushIpcInterface<IStorage>(std::move(storage));
}
- void PushInteractiveInData(Kernel::HLERequestContext& ctx) {
+ void PushInteractiveInData(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::RequestParser rp{ctx};
@@ -1048,7 +1061,7 @@ private:
rb.Push(ResultSuccess);
}
- void PopInteractiveOutData(Kernel::HLERequestContext& ctx) {
+ void PopInteractiveOutData(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
auto storage = applet->GetBroker().PopInteractiveDataToGame();
@@ -1056,7 +1069,7 @@ private:
LOG_DEBUG(Service_AM,
"storage is a nullptr. There is no data in the current interactive channel");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NO_DATA_IN_CHANNEL);
+ rb.Push(AM::ResultNoDataInChannel);
return;
}
@@ -1065,7 +1078,7 @@ private:
rb.PushIpcInterface<IStorage>(std::move(storage));
}
- void GetPopOutDataEvent(Kernel::HLERequestContext& ctx) {
+ void GetPopOutDataEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -1073,7 +1086,7 @@ private:
rb.PushCopyObjects(applet->GetBroker().GetNormalDataEvent());
}
- void GetPopInteractiveOutDataEvent(Kernel::HLERequestContext& ctx) {
+ void GetPopInteractiveOutDataEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -1081,7 +1094,7 @@ private:
rb.PushCopyObjects(applet->GetBroker().GetInteractiveDataEvent());
}
- void GetIndirectLayerConsumerHandle(Kernel::HLERequestContext& ctx) {
+ void GetIndirectLayerConsumerHandle(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
// We require a non-zero handle to be valid. Using 0xdeadbeef allows us to trace if this is
@@ -1111,7 +1124,7 @@ IStorageAccessor::IStorageAccessor(Core::System& system_, IStorage& backing_)
IStorageAccessor::~IStorageAccessor() = default;
-void IStorageAccessor::GetSize(Kernel::HLERequestContext& ctx) {
+void IStorageAccessor::GetSize(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 4};
@@ -1120,11 +1133,11 @@ void IStorageAccessor::GetSize(Kernel::HLERequestContext& ctx) {
rb.Push(static_cast<u64>(backing.GetSize()));
}
-void IStorageAccessor::Write(Kernel::HLERequestContext& ctx) {
+void IStorageAccessor::Write(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 offset{rp.Pop<u64>()};
- const std::vector<u8> data{ctx.ReadBuffer()};
+ const auto data{ctx.ReadBuffer()};
const std::size_t size{std::min<u64>(data.size(), backing.GetSize() - offset)};
LOG_DEBUG(Service_AM, "called, offset={}, size={}", offset, size);
@@ -1135,7 +1148,7 @@ void IStorageAccessor::Write(Kernel::HLERequestContext& ctx) {
backing.GetSize(), size, offset);
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_SIZE_OUT_OF_BOUNDS);
+ rb.Push(AM::ResultInvalidOffset);
return;
}
@@ -1145,7 +1158,7 @@ void IStorageAccessor::Write(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IStorageAccessor::Read(Kernel::HLERequestContext& ctx) {
+void IStorageAccessor::Read(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 offset{rp.Pop<u64>()};
@@ -1158,7 +1171,7 @@ void IStorageAccessor::Read(Kernel::HLERequestContext& ctx) {
backing.GetSize(), size, offset);
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_SIZE_OUT_OF_BOUNDS);
+ rb.Push(AM::ResultInvalidOffset);
return;
}
@@ -1183,7 +1196,7 @@ ILibraryAppletCreator::ILibraryAppletCreator(Core::System& system_)
ILibraryAppletCreator::~ILibraryAppletCreator() = default;
-void ILibraryAppletCreator::CreateLibraryApplet(Kernel::HLERequestContext& ctx) {
+void ILibraryAppletCreator::CreateLibraryApplet(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_id = rp.PopRaw<Applets::AppletId>();
@@ -1209,7 +1222,7 @@ void ILibraryAppletCreator::CreateLibraryApplet(Kernel::HLERequestContext& ctx)
rb.PushIpcInterface<ILibraryAppletAccessor>(system, applet);
}
-void ILibraryAppletCreator::CreateStorage(Kernel::HLERequestContext& ctx) {
+void ILibraryAppletCreator::CreateStorage(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s64 size{rp.Pop<s64>()};
@@ -1230,7 +1243,7 @@ void ILibraryAppletCreator::CreateStorage(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IStorage>(system, std::move(buffer));
}
-void ILibraryAppletCreator::CreateTransferMemoryStorage(Kernel::HLERequestContext& ctx) {
+void ILibraryAppletCreator::CreateTransferMemoryStorage(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
@@ -1252,7 +1265,7 @@ void ILibraryAppletCreator::CreateTransferMemoryStorage(Kernel::HLERequestContex
}
auto transfer_mem =
- system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(handle);
+ system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(handle);
if (transfer_mem.IsNull()) {
LOG_ERROR(Service_AM, "transfer_mem is a nullptr for handle={:08X}", handle);
@@ -1261,16 +1274,16 @@ void ILibraryAppletCreator::CreateTransferMemoryStorage(Kernel::HLERequestContex
return;
}
- const u8* const mem_begin = system.Memory().GetPointer(transfer_mem->GetSourceAddress());
- const u8* const mem_end = mem_begin + transfer_mem->GetSize();
- std::vector<u8> memory{mem_begin, mem_end};
+ std::vector<u8> memory(transfer_mem->GetSize());
+ system.ApplicationMemory().ReadBlock(transfer_mem->GetSourceAddress(), memory.data(),
+ memory.size());
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IStorage>(system, std::move(memory));
}
-void ILibraryAppletCreator::CreateHandleStorage(Kernel::HLERequestContext& ctx) {
+void ILibraryAppletCreator::CreateHandleStorage(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s64 size{rp.Pop<s64>()};
@@ -1286,7 +1299,7 @@ void ILibraryAppletCreator::CreateHandleStorage(Kernel::HLERequestContext& ctx)
}
auto transfer_mem =
- system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(handle);
+ system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(handle);
if (transfer_mem.IsNull()) {
LOG_ERROR(Service_AM, "transfer_mem is a nullptr for handle={:08X}", handle);
@@ -1295,9 +1308,9 @@ void ILibraryAppletCreator::CreateHandleStorage(Kernel::HLERequestContext& ctx)
return;
}
- const u8* const mem_begin = system.Memory().GetPointer(transfer_mem->GetSourceAddress());
- const u8* const mem_end = mem_begin + transfer_mem->GetSize();
- std::vector<u8> memory{mem_begin, mem_end};
+ std::vector<u8> memory(transfer_mem->GetSize());
+ system.ApplicationMemory().ReadBlock(transfer_mem->GetSourceAddress(), memory.data(),
+ memory.size());
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -1323,7 +1336,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_)
{24, nullptr, "GetLaunchStorageInfoForDebug"},
{25, &IApplicationFunctions::ExtendSaveData, "ExtendSaveData"},
{26, &IApplicationFunctions::GetSaveDataSize, "GetSaveDataSize"},
- {27, nullptr, "CreateCacheStorage"},
+ {27, &IApplicationFunctions::CreateCacheStorage, "CreateCacheStorage"},
{28, nullptr, "GetSaveDataSizeMax"},
{29, nullptr, "GetCacheStorageMax"},
{30, &IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed, "BeginBlockingHomeButtonShortAndLongPressed"},
@@ -1393,29 +1406,28 @@ IApplicationFunctions::~IApplicationFunctions() {
service_context.CloseEvent(health_warning_disappeared_system_event);
}
-void IApplicationFunctions::EnableApplicationCrashReport(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::EnableApplicationCrashReport(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer(
- Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::SetApplicationCopyrightImage(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::SetApplicationCopyrightVisibility(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto is_visible = rp.Pop<bool>();
@@ -1425,37 +1437,35 @@ void IApplicationFunctions::SetApplicationCopyrightVisibility(Kernel::HLERequest
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(
- Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed(
- Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::BeginBlockingHomeButton(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::BeginBlockingHomeButton(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::EndBlockingHomeButton(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::EndBlockingHomeButton(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::PopLaunchParameter(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto kind = rp.PopEnum<LaunchParameterKind>();
@@ -1465,11 +1475,12 @@ void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
const auto backend = BCAT::CreateBackendFromSettings(system, [this](u64 tid) {
return system.GetFileSystemController().GetBCATDirectory(tid);
});
- const auto build_id_full = system.GetCurrentProcessBuildID();
+ const auto build_id_full = system.GetApplicationProcessBuildID();
u64 build_id{};
std::memcpy(&build_id, build_id_full.data(), sizeof(u64));
- auto data = backend->GetLaunchParameter({system.GetCurrentProcessProgramID(), build_id});
+ auto data =
+ backend->GetLaunchParameter({system.GetApplicationProcessProgramID(), build_id});
if (data.has_value()) {
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -1503,25 +1514,24 @@ void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) {
LOG_ERROR(Service_AM, "Attempted to load launch parameter but none was found!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NO_DATA_IN_CHANNEL);
+ rb.Push(AM::ResultNoDataInChannel);
}
-void IApplicationFunctions::CreateApplicationAndRequestToStartForQuest(
- Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::CreateApplicationAndRequestToStartForQuest(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::EnsureSaveData(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::EnsureSaveData(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
u128 user_id = rp.PopRaw<u128>();
LOG_DEBUG(Service_AM, "called, uid={:016X}{:016X}", user_id[1], user_id[0]);
FileSys::SaveDataAttribute attribute{};
- attribute.title_id = system.GetCurrentProcessProgramID();
+ attribute.title_id = system.GetApplicationProcessProgramID();
attribute.user_id = user_id;
attribute.type = FileSys::SaveDataType::SaveData;
const auto res = system.GetFileSystemController().CreateSaveData(
@@ -1532,7 +1542,7 @@ void IApplicationFunctions::EnsureSaveData(Kernel::HLERequestContext& ctx) {
rb.Push<u64>(0);
}
-void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::SetTerminateResult(HLERequestContext& ctx) {
// Takes an input u32 Result, no output.
// For example, in some cases official apps use this with error 0x2A2 then
// uses svcBreak.
@@ -1545,13 +1555,13 @@ void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::GetDisplayVersion(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetDisplayVersion(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
std::array<u8, 0x10> version_string{};
const auto res = [this] {
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
const FileSys::PatchManager pm{title_id, system.GetFileSystemController(),
system.GetContentProvider()};
@@ -1570,7 +1580,7 @@ void IApplicationFunctions::GetDisplayVersion(Kernel::HLERequestContext& ctx) {
const auto& version = res.first->GetVersionString();
std::copy(version.begin(), version.end(), version_string.begin());
} else {
- constexpr char default_version[]{"1.0.0"};
+ static constexpr char default_version[]{"1.0.0"};
std::memcpy(version_string.data(), default_version, sizeof(default_version));
}
@@ -1579,7 +1589,7 @@ void IApplicationFunctions::GetDisplayVersion(Kernel::HLERequestContext& ctx) {
rb.PushRaw(version_string);
}
-void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetDesiredLanguage(HLERequestContext& ctx) {
// TODO(bunnei): This should be configurable
LOG_DEBUG(Service_AM, "called");
@@ -1588,7 +1598,7 @@ void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
u32 supported_languages = 0;
const auto res = [this] {
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
const FileSys::PatchManager pm{title_id, system.GetFileSystemController(),
system.GetContentProvider()};
@@ -1635,7 +1645,7 @@ void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
rb.Push(*res_code);
}
-void IApplicationFunctions::IsGamePlayRecordingSupported(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::IsGamePlayRecordingSupported(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
constexpr bool gameplay_recording_supported = false;
@@ -1645,21 +1655,21 @@ void IApplicationFunctions::IsGamePlayRecordingSupported(Kernel::HLERequestConte
rb.Push(gameplay_recording_supported);
}
-void IApplicationFunctions::InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::InitializeGamePlayRecording(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::SetGamePlayRecordingState(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::SetGamePlayRecordingState(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::NotifyRunning(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -1667,7 +1677,7 @@ void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) {
rb.Push<u8>(0); // Unknown, seems to be ignored by official processes
}
-void IApplicationFunctions::GetPseudoDeviceId(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetPseudoDeviceId(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 6};
@@ -1678,7 +1688,7 @@ void IApplicationFunctions::GetPseudoDeviceId(Kernel::HLERequestContext& ctx) {
rb.Push<u64>(0);
}
-void IApplicationFunctions::ExtendSaveData(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::ExtendSaveData(HLERequestContext& ctx) {
struct Parameters {
FileSys::SaveDataType type;
u128 user_id;
@@ -1696,7 +1706,8 @@ void IApplicationFunctions::ExtendSaveData(Kernel::HLERequestContext& ctx) {
static_cast<u8>(type), user_id[1], user_id[0], new_normal_size, new_journal_size);
system.GetFileSystemController().WriteSaveDataSize(
- type, system.GetCurrentProcessProgramID(), user_id, {new_normal_size, new_journal_size});
+ type, system.GetApplicationProcessProgramID(), user_id,
+ {new_normal_size, new_journal_size});
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
@@ -1706,7 +1717,7 @@ void IApplicationFunctions::ExtendSaveData(Kernel::HLERequestContext& ctx) {
rb.Push<u64>(0);
}
-void IApplicationFunctions::GetSaveDataSize(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetSaveDataSize(HLERequestContext& ctx) {
struct Parameters {
FileSys::SaveDataType type;
u128 user_id;
@@ -1720,7 +1731,7 @@ void IApplicationFunctions::GetSaveDataSize(Kernel::HLERequestContext& ctx) {
user_id[0]);
const auto size = system.GetFileSystemController().ReadSaveDataSize(
- type, system.GetCurrentProcessProgramID(), user_id);
+ type, system.GetApplicationProcessProgramID(), user_id);
IPC::ResponseBuilder rb{ctx, 6};
rb.Push(ResultSuccess);
@@ -1728,7 +1739,37 @@ void IApplicationFunctions::GetSaveDataSize(Kernel::HLERequestContext& ctx) {
rb.Push(size.journal);
}
-void IApplicationFunctions::QueryApplicationPlayStatistics(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::CreateCacheStorage(HLERequestContext& ctx) {
+ struct InputParameters {
+ u16 index;
+ s64 size;
+ s64 journal_size;
+ };
+ static_assert(sizeof(InputParameters) == 24);
+
+ struct OutputParameters {
+ u32 storage_target;
+ u64 required_size;
+ };
+ static_assert(sizeof(OutputParameters) == 16);
+
+ IPC::RequestParser rp{ctx};
+ const auto params = rp.PopRaw<InputParameters>();
+
+ LOG_WARNING(Service_AM, "(STUBBED) called with index={}, size={:#x}, journal_size={:#x}",
+ params.index, params.size, params.journal_size);
+
+ const OutputParameters resp{
+ .storage_target = 1,
+ .required_size = 0,
+ };
+
+ IPC::ResponseBuilder rb{ctx, 6};
+ rb.Push(ResultSuccess);
+ rb.PushRaw(resp);
+}
+
+void IApplicationFunctions::QueryApplicationPlayStatistics(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -1736,7 +1777,7 @@ void IApplicationFunctions::QueryApplicationPlayStatistics(Kernel::HLERequestCon
rb.Push<u32>(0);
}
-void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -1744,7 +1785,7 @@ void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(Kernel::HLEReque
rb.Push<u32>(0);
}
-void IApplicationFunctions::ExecuteProgram(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::ExecuteProgram(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::RequestParser rp{ctx};
@@ -1758,21 +1799,21 @@ void IApplicationFunctions::ExecuteProgram(Kernel::HLERequestContext& ctx) {
system.ExecuteProgram(program_index);
}
-void IApplicationFunctions::ClearUserChannel(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::ClearUserChannel(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::UnpopToUserChannel(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::UnpopToUserChannel(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IApplicationFunctions::GetPreviousProgramIndex(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetPreviousProgramIndex(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -1780,7 +1821,7 @@ void IApplicationFunctions::GetPreviousProgramIndex(Kernel::HLERequestContext& c
rb.Push<s32>(previous_program_index);
}
-void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -1788,7 +1829,7 @@ void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(Kernel::HLERequestCon
rb.PushCopyObjects(gpu_error_detected_event->GetReadableEvent());
}
-void IApplicationFunctions::GetFriendInvitationStorageChannelEvent(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetFriendInvitationStorageChannelEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -1796,15 +1837,14 @@ void IApplicationFunctions::GetFriendInvitationStorageChannelEvent(Kernel::HLERe
rb.PushCopyObjects(friend_invitation_storage_channel_event->GetReadableEvent());
}
-void IApplicationFunctions::TryPopFromFriendInvitationStorageChannel(
- Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_AM, "(STUBBED) called");
+void IApplicationFunctions::TryPopFromFriendInvitationStorageChannel(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NO_DATA_IN_CHANNEL);
+ rb.Push(AM::ResultNoDataInChannel);
}
-void IApplicationFunctions::GetNotificationStorageChannelEvent(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetNotificationStorageChannelEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -1812,7 +1852,7 @@ void IApplicationFunctions::GetNotificationStorageChannelEvent(Kernel::HLEReques
rb.PushCopyObjects(notification_storage_channel_event->GetReadableEvent());
}
-void IApplicationFunctions::GetHealthWarningDisappearedSystemEvent(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::GetHealthWarningDisappearedSystemEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -1820,25 +1860,28 @@ void IApplicationFunctions::GetHealthWarningDisappearedSystemEvent(Kernel::HLERe
rb.PushCopyObjects(health_warning_disappeared_system_event->GetReadableEvent());
}
-void IApplicationFunctions::PrepareForJit(Kernel::HLERequestContext& ctx) {
+void IApplicationFunctions::PrepareForJit(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void InstallInterfaces(SM::ServiceManager& service_manager, NVFlinger::NVFlinger& nvflinger,
- Core::System& system) {
+void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system) {
auto message_queue = std::make_shared<AppletMessageQueue>(system);
// Needed on game boot
message_queue->PushMessage(AppletMessageQueue::AppletMessage::FocusStateChanged);
- std::make_shared<AppletAE>(nvflinger, message_queue, system)->InstallAsService(service_manager);
- std::make_shared<AppletOE>(nvflinger, message_queue, system)->InstallAsService(service_manager);
- std::make_shared<IdleSys>(system)->InstallAsService(service_manager);
- std::make_shared<OMM>(system)->InstallAsService(service_manager);
- std::make_shared<SPSM>(system)->InstallAsService(service_manager);
- std::make_shared<TCAP>(system)->InstallAsService(service_manager);
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService(
+ "appletAE", std::make_shared<AppletAE>(nvnflinger, message_queue, system));
+ server_manager->RegisterNamedService(
+ "appletOE", std::make_shared<AppletOE>(nvnflinger, message_queue, system));
+ server_manager->RegisterNamedService("idle:sys", std::make_shared<IdleSys>(system));
+ server_manager->RegisterNamedService("omm", std::make_shared<OMM>(system));
+ server_manager->RegisterNamedService("spsm", std::make_shared<SPSM>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
IHomeMenuFunctions::IHomeMenuFunctions(Core::System& system_)
@@ -1855,6 +1898,8 @@ IHomeMenuFunctions::IHomeMenuFunctions(Core::System& system_)
{31, nullptr, "GetWriterLockAccessorEx"},
{40, nullptr, "IsSleepEnabled"},
{41, nullptr, "IsRebootEnabled"},
+ {50, nullptr, "LaunchSystemApplet"},
+ {51, nullptr, "LaunchStarter"},
{100, nullptr, "PopRequestLaunchApplicationForDebug"},
{110, nullptr, "IsForceTerminateApplicationDisabledForDebug"},
{200, nullptr, "LaunchDevMenu"},
@@ -1872,14 +1917,14 @@ IHomeMenuFunctions::~IHomeMenuFunctions() {
service_context.CloseEvent(pop_from_general_channel_event);
}
-void IHomeMenuFunctions::RequestToGetForeground(Kernel::HLERequestContext& ctx) {
+void IHomeMenuFunctions::RequestToGetForeground(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IHomeMenuFunctions::GetPopFromGeneralChannelEvent(Kernel::HLERequestContext& ctx) {
+void IHomeMenuFunctions::GetPopFromGeneralChannelEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 1};
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index a0fbfcfc5..d4fd163da 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -12,11 +12,12 @@
namespace Kernel {
class KernelCore;
+class KReadableEvent;
class KTransferMemory;
} // namespace Kernel
-namespace Service::NVFlinger {
-class NVFlinger;
+namespace Service::Nvnflinger {
+class Nvnflinger;
}
namespace Service::AM {
@@ -109,8 +110,8 @@ public:
~IWindowController() override;
private:
- void GetAppletResourceUserId(Kernel::HLERequestContext& ctx);
- void AcquireForegroundRights(Kernel::HLERequestContext& ctx);
+ void GetAppletResourceUserId(HLERequestContext& ctx);
+ void AcquireForegroundRights(HLERequestContext& ctx);
};
class IAudioController final : public ServiceFramework<IAudioController> {
@@ -119,11 +120,11 @@ public:
~IAudioController() override;
private:
- void SetExpectedMasterVolume(Kernel::HLERequestContext& ctx);
- void GetMainAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx);
- void GetLibraryAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx);
- void ChangeMainAppletMasterVolume(Kernel::HLERequestContext& ctx);
- void SetTransparentAudioRate(Kernel::HLERequestContext& ctx);
+ void SetExpectedMasterVolume(HLERequestContext& ctx);
+ void GetMainAppletExpectedMasterVolume(HLERequestContext& ctx);
+ void GetLibraryAppletExpectedMasterVolume(HLERequestContext& ctx);
+ void ChangeMainAppletMasterVolume(HLERequestContext& ctx);
+ void SetTransparentAudioRate(HLERequestContext& ctx);
static constexpr float min_allowed_volume = 0.0f;
static constexpr float max_allowed_volume = 1.0f;
@@ -153,36 +154,36 @@ public:
class ISelfController final : public ServiceFramework<ISelfController> {
public:
- explicit ISelfController(Core::System& system_, NVFlinger::NVFlinger& nvflinger_);
+ explicit ISelfController(Core::System& system_, Nvnflinger::Nvnflinger& nvnflinger_);
~ISelfController() override;
private:
- void Exit(Kernel::HLERequestContext& ctx);
- void LockExit(Kernel::HLERequestContext& ctx);
- void UnlockExit(Kernel::HLERequestContext& ctx);
- void EnterFatalSection(Kernel::HLERequestContext& ctx);
- void LeaveFatalSection(Kernel::HLERequestContext& ctx);
- void GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext& ctx);
- void SetScreenShotPermission(Kernel::HLERequestContext& ctx);
- void SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx);
- void SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx);
- void SetFocusHandlingMode(Kernel::HLERequestContext& ctx);
- void SetRestartMessageEnabled(Kernel::HLERequestContext& ctx);
- void SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx);
- void SetAlbumImageOrientation(Kernel::HLERequestContext& ctx);
- void CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx);
- void CreateManagedDisplaySeparableLayer(Kernel::HLERequestContext& ctx);
- void SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx);
- void SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
- void GetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx);
- void ReportUserIsActive(Kernel::HLERequestContext& ctx);
- void SetAutoSleepDisabled(Kernel::HLERequestContext& ctx);
- void IsAutoSleepDisabled(Kernel::HLERequestContext& ctx);
- void GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx);
- void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx);
- void SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestContext& ctx);
- void SaveCurrentScreenshot(Kernel::HLERequestContext& ctx);
- void SetRecordVolumeMuted(Kernel::HLERequestContext& ctx);
+ void Exit(HLERequestContext& ctx);
+ void LockExit(HLERequestContext& ctx);
+ void UnlockExit(HLERequestContext& ctx);
+ void EnterFatalSection(HLERequestContext& ctx);
+ void LeaveFatalSection(HLERequestContext& ctx);
+ void GetLibraryAppletLaunchableEvent(HLERequestContext& ctx);
+ void SetScreenShotPermission(HLERequestContext& ctx);
+ void SetOperationModeChangedNotification(HLERequestContext& ctx);
+ void SetPerformanceModeChangedNotification(HLERequestContext& ctx);
+ void SetFocusHandlingMode(HLERequestContext& ctx);
+ void SetRestartMessageEnabled(HLERequestContext& ctx);
+ void SetOutOfFocusSuspendingEnabled(HLERequestContext& ctx);
+ void SetAlbumImageOrientation(HLERequestContext& ctx);
+ void CreateManagedDisplayLayer(HLERequestContext& ctx);
+ void CreateManagedDisplaySeparableLayer(HLERequestContext& ctx);
+ void SetHandlesRequestToDisplay(HLERequestContext& ctx);
+ void SetIdleTimeDetectionExtension(HLERequestContext& ctx);
+ void GetIdleTimeDetectionExtension(HLERequestContext& ctx);
+ void ReportUserIsActive(HLERequestContext& ctx);
+ void SetAutoSleepDisabled(HLERequestContext& ctx);
+ void IsAutoSleepDisabled(HLERequestContext& ctx);
+ void GetAccumulatedSuspendedTickValue(HLERequestContext& ctx);
+ void GetAccumulatedSuspendedTickChangedEvent(HLERequestContext& ctx);
+ void SetAlbumImageTakenNotificationEnabled(HLERequestContext& ctx);
+ void SaveCurrentScreenshot(HLERequestContext& ctx);
+ void SetRecordVolumeMuted(HLERequestContext& ctx);
enum class ScreenshotPermission : u32 {
Inherit = 0,
@@ -190,7 +191,7 @@ private:
Disable = 2,
};
- NVFlinger::NVFlinger& nvflinger;
+ Nvnflinger::Nvnflinger& nvnflinger;
KernelHelpers::ServiceContext service_context;
@@ -235,22 +236,22 @@ private:
CaptureButtonLongPressing,
};
- void GetEventHandle(Kernel::HLERequestContext& ctx);
- void ReceiveMessage(Kernel::HLERequestContext& ctx);
- void GetCurrentFocusState(Kernel::HLERequestContext& ctx);
- void GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx);
- void GetOperationMode(Kernel::HLERequestContext& ctx);
- void GetPerformanceMode(Kernel::HLERequestContext& ctx);
- void GetBootMode(Kernel::HLERequestContext& ctx);
- void IsVrModeEnabled(Kernel::HLERequestContext& ctx);
- void SetVrModeEnabled(Kernel::HLERequestContext& ctx);
- void SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx);
- void BeginVrModeEx(Kernel::HLERequestContext& ctx);
- void EndVrModeEx(Kernel::HLERequestContext& ctx);
- void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx);
- void SetCpuBoostMode(Kernel::HLERequestContext& ctx);
- void PerformSystemButtonPressingIfInFocus(Kernel::HLERequestContext& ctx);
- void SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(Kernel::HLERequestContext& ctx);
+ void GetEventHandle(HLERequestContext& ctx);
+ void ReceiveMessage(HLERequestContext& ctx);
+ void GetCurrentFocusState(HLERequestContext& ctx);
+ void GetDefaultDisplayResolutionChangeEvent(HLERequestContext& ctx);
+ void GetOperationMode(HLERequestContext& ctx);
+ void GetPerformanceMode(HLERequestContext& ctx);
+ void GetBootMode(HLERequestContext& ctx);
+ void IsVrModeEnabled(HLERequestContext& ctx);
+ void SetVrModeEnabled(HLERequestContext& ctx);
+ void SetLcdBacklighOffEnabled(HLERequestContext& ctx);
+ void BeginVrModeEx(HLERequestContext& ctx);
+ void EndVrModeEx(HLERequestContext& ctx);
+ void GetDefaultDisplayResolution(HLERequestContext& ctx);
+ void SetCpuBoostMode(HLERequestContext& ctx);
+ void PerformSystemButtonPressingIfInFocus(HLERequestContext& ctx);
+ void SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(HLERequestContext& ctx);
std::shared_ptr<AppletMessageQueue> msg_queue;
bool vr_mode_state{};
@@ -283,7 +284,7 @@ public:
private:
void Register();
- void Open(Kernel::HLERequestContext& ctx);
+ void Open(HLERequestContext& ctx);
std::shared_ptr<IStorageImpl> impl;
};
@@ -294,9 +295,9 @@ public:
~IStorageAccessor() override;
private:
- void GetSize(Kernel::HLERequestContext& ctx);
- void Write(Kernel::HLERequestContext& ctx);
- void Read(Kernel::HLERequestContext& ctx);
+ void GetSize(HLERequestContext& ctx);
+ void Write(HLERequestContext& ctx);
+ void Read(HLERequestContext& ctx);
IStorage& backing;
};
@@ -307,10 +308,10 @@ public:
~ILibraryAppletCreator() override;
private:
- void CreateLibraryApplet(Kernel::HLERequestContext& ctx);
- void CreateStorage(Kernel::HLERequestContext& ctx);
- void CreateTransferMemoryStorage(Kernel::HLERequestContext& ctx);
- void CreateHandleStorage(Kernel::HLERequestContext& ctx);
+ void CreateLibraryApplet(HLERequestContext& ctx);
+ void CreateStorage(HLERequestContext& ctx);
+ void CreateTransferMemoryStorage(HLERequestContext& ctx);
+ void CreateHandleStorage(HLERequestContext& ctx);
};
class IApplicationFunctions final : public ServiceFramework<IApplicationFunctions> {
@@ -319,39 +320,40 @@ public:
~IApplicationFunctions() override;
private:
- void PopLaunchParameter(Kernel::HLERequestContext& ctx);
- void CreateApplicationAndRequestToStartForQuest(Kernel::HLERequestContext& ctx);
- void EnsureSaveData(Kernel::HLERequestContext& ctx);
- void SetTerminateResult(Kernel::HLERequestContext& ctx);
- void GetDisplayVersion(Kernel::HLERequestContext& ctx);
- void GetDesiredLanguage(Kernel::HLERequestContext& ctx);
- void IsGamePlayRecordingSupported(Kernel::HLERequestContext& ctx);
- void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx);
- void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx);
- void NotifyRunning(Kernel::HLERequestContext& ctx);
- void GetPseudoDeviceId(Kernel::HLERequestContext& ctx);
- void ExtendSaveData(Kernel::HLERequestContext& ctx);
- void GetSaveDataSize(Kernel::HLERequestContext& ctx);
- void BeginBlockingHomeButtonShortAndLongPressed(Kernel::HLERequestContext& ctx);
- void EndBlockingHomeButtonShortAndLongPressed(Kernel::HLERequestContext& ctx);
- void BeginBlockingHomeButton(Kernel::HLERequestContext& ctx);
- void EndBlockingHomeButton(Kernel::HLERequestContext& ctx);
- void EnableApplicationCrashReport(Kernel::HLERequestContext& ctx);
- void InitializeApplicationCopyrightFrameBuffer(Kernel::HLERequestContext& ctx);
- void SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx);
- void SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx);
- void QueryApplicationPlayStatistics(Kernel::HLERequestContext& ctx);
- void QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx);
- void ExecuteProgram(Kernel::HLERequestContext& ctx);
- void ClearUserChannel(Kernel::HLERequestContext& ctx);
- void UnpopToUserChannel(Kernel::HLERequestContext& ctx);
- void GetPreviousProgramIndex(Kernel::HLERequestContext& ctx);
- void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx);
- void GetFriendInvitationStorageChannelEvent(Kernel::HLERequestContext& ctx);
- void TryPopFromFriendInvitationStorageChannel(Kernel::HLERequestContext& ctx);
- void GetNotificationStorageChannelEvent(Kernel::HLERequestContext& ctx);
- void GetHealthWarningDisappearedSystemEvent(Kernel::HLERequestContext& ctx);
- void PrepareForJit(Kernel::HLERequestContext& ctx);
+ void PopLaunchParameter(HLERequestContext& ctx);
+ void CreateApplicationAndRequestToStartForQuest(HLERequestContext& ctx);
+ void EnsureSaveData(HLERequestContext& ctx);
+ void SetTerminateResult(HLERequestContext& ctx);
+ void GetDisplayVersion(HLERequestContext& ctx);
+ void GetDesiredLanguage(HLERequestContext& ctx);
+ void IsGamePlayRecordingSupported(HLERequestContext& ctx);
+ void InitializeGamePlayRecording(HLERequestContext& ctx);
+ void SetGamePlayRecordingState(HLERequestContext& ctx);
+ void NotifyRunning(HLERequestContext& ctx);
+ void GetPseudoDeviceId(HLERequestContext& ctx);
+ void ExtendSaveData(HLERequestContext& ctx);
+ void GetSaveDataSize(HLERequestContext& ctx);
+ void CreateCacheStorage(HLERequestContext& ctx);
+ void BeginBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx);
+ void EndBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx);
+ void BeginBlockingHomeButton(HLERequestContext& ctx);
+ void EndBlockingHomeButton(HLERequestContext& ctx);
+ void EnableApplicationCrashReport(HLERequestContext& ctx);
+ void InitializeApplicationCopyrightFrameBuffer(HLERequestContext& ctx);
+ void SetApplicationCopyrightImage(HLERequestContext& ctx);
+ void SetApplicationCopyrightVisibility(HLERequestContext& ctx);
+ void QueryApplicationPlayStatistics(HLERequestContext& ctx);
+ void QueryApplicationPlayStatisticsByUid(HLERequestContext& ctx);
+ void ExecuteProgram(HLERequestContext& ctx);
+ void ClearUserChannel(HLERequestContext& ctx);
+ void UnpopToUserChannel(HLERequestContext& ctx);
+ void GetPreviousProgramIndex(HLERequestContext& ctx);
+ void GetGpuErrorDetectedSystemEvent(HLERequestContext& ctx);
+ void GetFriendInvitationStorageChannelEvent(HLERequestContext& ctx);
+ void TryPopFromFriendInvitationStorageChannel(HLERequestContext& ctx);
+ void GetNotificationStorageChannelEvent(HLERequestContext& ctx);
+ void GetHealthWarningDisappearedSystemEvent(HLERequestContext& ctx);
+ void PrepareForJit(HLERequestContext& ctx);
KernelHelpers::ServiceContext service_context;
@@ -370,8 +372,8 @@ public:
~IHomeMenuFunctions() override;
private:
- void RequestToGetForeground(Kernel::HLERequestContext& ctx);
- void GetPopFromGeneralChannelEvent(Kernel::HLERequestContext& ctx);
+ void RequestToGetForeground(HLERequestContext& ctx);
+ void GetPopFromGeneralChannelEvent(HLERequestContext& ctx);
KernelHelpers::ServiceContext service_context;
@@ -396,8 +398,6 @@ public:
~IProcessWindingController() override;
};
-/// Registers all AM services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, NVFlinger::NVFlinger& nvflinger,
- Core::System& system);
+void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system);
} // namespace Service::AM
diff --git a/src/core/hle/service/am/applet_ae.cpp b/src/core/hle/service/am/applet_ae.cpp
index d7719da35..2764f7ceb 100644
--- a/src/core/hle/service/am/applet_ae.cpp
+++ b/src/core/hle/service/am/applet_ae.cpp
@@ -3,20 +3,20 @@
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/am/am.h"
#include "core/hle/service/am/applet_ae.h"
-#include "core/hle/service/nvflinger/nvflinger.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/nvnflinger/nvnflinger.h"
namespace Service::AM {
class ILibraryAppletProxy final : public ServiceFramework<ILibraryAppletProxy> {
public:
- explicit ILibraryAppletProxy(NVFlinger::NVFlinger& nvflinger_,
+ explicit ILibraryAppletProxy(Nvnflinger::Nvnflinger& nvnflinger_,
std::shared_ptr<AppletMessageQueue> msg_queue_,
Core::System& system_)
- : ServiceFramework{system_, "ILibraryAppletProxy"}, nvflinger{nvflinger_},
- msg_queue{std::move(msg_queue_)} {
+ : ServiceFramework{system_, "ILibraryAppletProxy"},
+ nvnflinger{nvnflinger_}, msg_queue{std::move(msg_queue_)} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &ILibraryAppletProxy::GetCommonStateGetter, "GetCommonStateGetter"},
@@ -36,7 +36,7 @@ public:
}
private:
- void GetCommonStateGetter(Kernel::HLERequestContext& ctx) {
+ void GetCommonStateGetter(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -44,15 +44,15 @@ private:
rb.PushIpcInterface<ICommonStateGetter>(system, msg_queue);
}
- void GetSelfController(Kernel::HLERequestContext& ctx) {
+ void GetSelfController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ISelfController>(system, nvflinger);
+ rb.PushIpcInterface<ISelfController>(system, nvnflinger);
}
- void GetWindowController(Kernel::HLERequestContext& ctx) {
+ void GetWindowController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -60,7 +60,7 @@ private:
rb.PushIpcInterface<IWindowController>(system);
}
- void GetAudioController(Kernel::HLERequestContext& ctx) {
+ void GetAudioController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -68,7 +68,7 @@ private:
rb.PushIpcInterface<IAudioController>(system);
}
- void GetDisplayController(Kernel::HLERequestContext& ctx) {
+ void GetDisplayController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -76,7 +76,7 @@ private:
rb.PushIpcInterface<IDisplayController>(system);
}
- void GetProcessWindingController(Kernel::HLERequestContext& ctx) {
+ void GetProcessWindingController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -84,7 +84,7 @@ private:
rb.PushIpcInterface<IProcessWindingController>(system);
}
- void GetDebugFunctions(Kernel::HLERequestContext& ctx) {
+ void GetDebugFunctions(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -92,7 +92,7 @@ private:
rb.PushIpcInterface<IDebugFunctions>(system);
}
- void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) {
+ void GetLibraryAppletCreator(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -100,7 +100,7 @@ private:
rb.PushIpcInterface<ILibraryAppletCreator>(system);
}
- void GetApplicationFunctions(Kernel::HLERequestContext& ctx) {
+ void GetApplicationFunctions(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -108,17 +108,17 @@ private:
rb.PushIpcInterface<IApplicationFunctions>(system);
}
- NVFlinger::NVFlinger& nvflinger;
+ Nvnflinger::Nvnflinger& nvnflinger;
std::shared_ptr<AppletMessageQueue> msg_queue;
};
class ISystemAppletProxy final : public ServiceFramework<ISystemAppletProxy> {
public:
- explicit ISystemAppletProxy(NVFlinger::NVFlinger& nvflinger_,
+ explicit ISystemAppletProxy(Nvnflinger::Nvnflinger& nvnflinger_,
std::shared_ptr<AppletMessageQueue> msg_queue_,
Core::System& system_)
- : ServiceFramework{system_, "ISystemAppletProxy"}, nvflinger{nvflinger_},
- msg_queue{std::move(msg_queue_)} {
+ : ServiceFramework{system_, "ISystemAppletProxy"},
+ nvnflinger{nvnflinger_}, msg_queue{std::move(msg_queue_)} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &ISystemAppletProxy::GetCommonStateGetter, "GetCommonStateGetter"},
@@ -140,7 +140,7 @@ public:
}
private:
- void GetCommonStateGetter(Kernel::HLERequestContext& ctx) {
+ void GetCommonStateGetter(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -148,15 +148,15 @@ private:
rb.PushIpcInterface<ICommonStateGetter>(system, msg_queue);
}
- void GetSelfController(Kernel::HLERequestContext& ctx) {
+ void GetSelfController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ISelfController>(system, nvflinger);
+ rb.PushIpcInterface<ISelfController>(system, nvnflinger);
}
- void GetWindowController(Kernel::HLERequestContext& ctx) {
+ void GetWindowController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -164,7 +164,7 @@ private:
rb.PushIpcInterface<IWindowController>(system);
}
- void GetAudioController(Kernel::HLERequestContext& ctx) {
+ void GetAudioController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -172,7 +172,7 @@ private:
rb.PushIpcInterface<IAudioController>(system);
}
- void GetDisplayController(Kernel::HLERequestContext& ctx) {
+ void GetDisplayController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -180,7 +180,7 @@ private:
rb.PushIpcInterface<IDisplayController>(system);
}
- void GetDebugFunctions(Kernel::HLERequestContext& ctx) {
+ void GetDebugFunctions(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -188,7 +188,7 @@ private:
rb.PushIpcInterface<IDebugFunctions>(system);
}
- void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) {
+ void GetLibraryAppletCreator(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -196,7 +196,7 @@ private:
rb.PushIpcInterface<ILibraryAppletCreator>(system);
}
- void GetHomeMenuFunctions(Kernel::HLERequestContext& ctx) {
+ void GetHomeMenuFunctions(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -204,7 +204,7 @@ private:
rb.PushIpcInterface<IHomeMenuFunctions>(system);
}
- void GetGlobalStateController(Kernel::HLERequestContext& ctx) {
+ void GetGlobalStateController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -212,7 +212,7 @@ private:
rb.PushIpcInterface<IGlobalStateController>(system);
}
- void GetApplicationCreator(Kernel::HLERequestContext& ctx) {
+ void GetApplicationCreator(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -220,38 +220,38 @@ private:
rb.PushIpcInterface<IApplicationCreator>(system);
}
- NVFlinger::NVFlinger& nvflinger;
+ Nvnflinger::Nvnflinger& nvnflinger;
std::shared_ptr<AppletMessageQueue> msg_queue;
};
-void AppletAE::OpenSystemAppletProxy(Kernel::HLERequestContext& ctx) {
+void AppletAE::OpenSystemAppletProxy(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ISystemAppletProxy>(nvflinger, msg_queue, system);
+ rb.PushIpcInterface<ISystemAppletProxy>(nvnflinger, msg_queue, system);
}
-void AppletAE::OpenLibraryAppletProxy(Kernel::HLERequestContext& ctx) {
+void AppletAE::OpenLibraryAppletProxy(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ILibraryAppletProxy>(nvflinger, msg_queue, system);
+ rb.PushIpcInterface<ILibraryAppletProxy>(nvnflinger, msg_queue, system);
}
-void AppletAE::OpenLibraryAppletProxyOld(Kernel::HLERequestContext& ctx) {
+void AppletAE::OpenLibraryAppletProxyOld(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ILibraryAppletProxy>(nvflinger, msg_queue, system);
+ rb.PushIpcInterface<ILibraryAppletProxy>(nvnflinger, msg_queue, system);
}
-AppletAE::AppletAE(NVFlinger::NVFlinger& nvflinger_, std::shared_ptr<AppletMessageQueue> msg_queue_,
- Core::System& system_)
- : ServiceFramework{system_, "appletAE"}, nvflinger{nvflinger_}, msg_queue{
- std::move(msg_queue_)} {
+AppletAE::AppletAE(Nvnflinger::Nvnflinger& nvnflinger_,
+ std::shared_ptr<AppletMessageQueue> msg_queue_, Core::System& system_)
+ : ServiceFramework{system_, "appletAE"}, nvnflinger{nvnflinger_}, msg_queue{
+ std::move(msg_queue_)} {
// clang-format off
static const FunctionInfo functions[] = {
{100, &AppletAE::OpenSystemAppletProxy, "OpenSystemAppletProxy"},
diff --git a/src/core/hle/service/am/applet_ae.h b/src/core/hle/service/am/applet_ae.h
index 2147976a6..538ce2903 100644
--- a/src/core/hle/service/am/applet_ae.h
+++ b/src/core/hle/service/am/applet_ae.h
@@ -12,8 +12,8 @@ namespace FileSystem {
class FileSystemController;
}
-namespace NVFlinger {
-class NVFlinger;
+namespace Nvnflinger {
+class Nvnflinger;
}
namespace AM {
@@ -22,18 +22,18 @@ class AppletMessageQueue;
class AppletAE final : public ServiceFramework<AppletAE> {
public:
- explicit AppletAE(NVFlinger::NVFlinger& nvflinger_,
+ explicit AppletAE(Nvnflinger::Nvnflinger& nvnflinger_,
std::shared_ptr<AppletMessageQueue> msg_queue_, Core::System& system_);
~AppletAE() override;
const std::shared_ptr<AppletMessageQueue>& GetMessageQueue() const;
private:
- void OpenSystemAppletProxy(Kernel::HLERequestContext& ctx);
- void OpenLibraryAppletProxy(Kernel::HLERequestContext& ctx);
- void OpenLibraryAppletProxyOld(Kernel::HLERequestContext& ctx);
+ void OpenSystemAppletProxy(HLERequestContext& ctx);
+ void OpenLibraryAppletProxy(HLERequestContext& ctx);
+ void OpenLibraryAppletProxyOld(HLERequestContext& ctx);
- NVFlinger::NVFlinger& nvflinger;
+ Nvnflinger::Nvnflinger& nvnflinger;
std::shared_ptr<AppletMessageQueue> msg_queue;
};
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp
index 00fc4202c..d6c565d85 100644
--- a/src/core/hle/service/am/applet_oe.cpp
+++ b/src/core/hle/service/am/applet_oe.cpp
@@ -2,20 +2,20 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/am/am.h"
#include "core/hle/service/am/applet_oe.h"
-#include "core/hle/service/nvflinger/nvflinger.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/nvnflinger/nvnflinger.h"
namespace Service::AM {
class IApplicationProxy final : public ServiceFramework<IApplicationProxy> {
public:
- explicit IApplicationProxy(NVFlinger::NVFlinger& nvflinger_,
+ explicit IApplicationProxy(Nvnflinger::Nvnflinger& nvnflinger_,
std::shared_ptr<AppletMessageQueue> msg_queue_,
Core::System& system_)
- : ServiceFramework{system_, "IApplicationProxy"}, nvflinger{nvflinger_},
- msg_queue{std::move(msg_queue_)} {
+ : ServiceFramework{system_, "IApplicationProxy"},
+ nvnflinger{nvnflinger_}, msg_queue{std::move(msg_queue_)} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &IApplicationProxy::GetCommonStateGetter, "GetCommonStateGetter"},
@@ -34,7 +34,7 @@ public:
}
private:
- void GetAudioController(Kernel::HLERequestContext& ctx) {
+ void GetAudioController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -42,7 +42,7 @@ private:
rb.PushIpcInterface<IAudioController>(system);
}
- void GetDisplayController(Kernel::HLERequestContext& ctx) {
+ void GetDisplayController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -50,7 +50,7 @@ private:
rb.PushIpcInterface<IDisplayController>(system);
}
- void GetDebugFunctions(Kernel::HLERequestContext& ctx) {
+ void GetDebugFunctions(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -58,7 +58,7 @@ private:
rb.PushIpcInterface<IDebugFunctions>(system);
}
- void GetWindowController(Kernel::HLERequestContext& ctx) {
+ void GetWindowController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -66,15 +66,15 @@ private:
rb.PushIpcInterface<IWindowController>(system);
}
- void GetSelfController(Kernel::HLERequestContext& ctx) {
+ void GetSelfController(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ISelfController>(system, nvflinger);
+ rb.PushIpcInterface<ISelfController>(system, nvnflinger);
}
- void GetCommonStateGetter(Kernel::HLERequestContext& ctx) {
+ void GetCommonStateGetter(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -82,7 +82,7 @@ private:
rb.PushIpcInterface<ICommonStateGetter>(system, msg_queue);
}
- void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) {
+ void GetLibraryAppletCreator(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -90,7 +90,7 @@ private:
rb.PushIpcInterface<ILibraryAppletCreator>(system);
}
- void GetApplicationFunctions(Kernel::HLERequestContext& ctx) {
+ void GetApplicationFunctions(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -98,22 +98,22 @@ private:
rb.PushIpcInterface<IApplicationFunctions>(system);
}
- NVFlinger::NVFlinger& nvflinger;
+ Nvnflinger::Nvnflinger& nvnflinger;
std::shared_ptr<AppletMessageQueue> msg_queue;
};
-void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) {
+void AppletOE::OpenApplicationProxy(HLERequestContext& ctx) {
LOG_DEBUG(Service_AM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<IApplicationProxy>(nvflinger, msg_queue, system);
+ rb.PushIpcInterface<IApplicationProxy>(nvnflinger, msg_queue, system);
}
-AppletOE::AppletOE(NVFlinger::NVFlinger& nvflinger_, std::shared_ptr<AppletMessageQueue> msg_queue_,
- Core::System& system_)
- : ServiceFramework{system_, "appletOE"}, nvflinger{nvflinger_}, msg_queue{
- std::move(msg_queue_)} {
+AppletOE::AppletOE(Nvnflinger::Nvnflinger& nvnflinger_,
+ std::shared_ptr<AppletMessageQueue> msg_queue_, Core::System& system_)
+ : ServiceFramework{system_, "appletOE"}, nvnflinger{nvnflinger_}, msg_queue{
+ std::move(msg_queue_)} {
static const FunctionInfo functions[] = {
{0, &AppletOE::OpenApplicationProxy, "OpenApplicationProxy"},
};
diff --git a/src/core/hle/service/am/applet_oe.h b/src/core/hle/service/am/applet_oe.h
index 8fea249f1..39eccc4ab 100644
--- a/src/core/hle/service/am/applet_oe.h
+++ b/src/core/hle/service/am/applet_oe.h
@@ -12,8 +12,8 @@ namespace FileSystem {
class FileSystemController;
}
-namespace NVFlinger {
-class NVFlinger;
+namespace Nvnflinger {
+class Nvnflinger;
}
namespace AM {
@@ -22,16 +22,16 @@ class AppletMessageQueue;
class AppletOE final : public ServiceFramework<AppletOE> {
public:
- explicit AppletOE(NVFlinger::NVFlinger& nvflinger_,
+ explicit AppletOE(Nvnflinger::Nvnflinger& nvnflinger_,
std::shared_ptr<AppletMessageQueue> msg_queue_, Core::System& system_);
~AppletOE() override;
const std::shared_ptr<AppletMessageQueue>& GetMessageQueue() const;
private:
- void OpenApplicationProxy(Kernel::HLERequestContext& ctx);
+ void OpenApplicationProxy(HLERequestContext& ctx);
- NVFlinger::NVFlinger& nvflinger;
+ Nvnflinger::Nvnflinger& nvnflinger;
std::shared_ptr<AppletMessageQueue> msg_queue;
};
diff --git a/src/core/hle/service/am/applets/applet_cabinet.cpp b/src/core/hle/service/am/applets/applet_cabinet.cpp
index d0969b0f1..19ed184e8 100644
--- a/src/core/hle/service/am/applets/applet_cabinet.cpp
+++ b/src/core/hle/service/am/applets/applet_cabinet.cpp
@@ -11,7 +11,7 @@
#include "core/hle/service/am/am.h"
#include "core/hle/service/am/applets/applet_cabinet.h"
#include "core/hle/service/mii/mii_manager.h"
-#include "core/hle/service/nfp/nfp_device.h"
+#include "core/hle/service/nfc/common/device.h"
namespace Service::AM::Applets {
@@ -72,10 +72,10 @@ void Cabinet::Execute() {
// TODO: listen on all controllers
if (nfp_device == nullptr) {
- nfp_device = std::make_shared<Service::NFP::NfpDevice>(
+ nfp_device = std::make_shared<Service::NFC::NfcDevice>(
system.HIDCore().GetFirstNpadId(), system, service_context, availability_change_event);
nfp_device->Initialize();
- nfp_device->StartDetection(Service::NFP::TagProtocol::All);
+ nfp_device->StartDetection(Service::NFC::NfcProtocol::All);
}
const Core::Frontend::CabinetParameters parameters{
@@ -106,20 +106,22 @@ void Cabinet::DisplayCompleted(bool apply_changes, std::string_view amiibo_name)
Cancel();
}
- if (nfp_device->GetCurrentState() != Service::NFP::DeviceState::TagFound &&
- nfp_device->GetCurrentState() != Service::NFP::DeviceState::TagMounted) {
+ if (nfp_device->GetCurrentState() != Service::NFC::DeviceState::TagFound &&
+ nfp_device->GetCurrentState() != Service::NFC::DeviceState::TagMounted) {
Cancel();
}
- if (nfp_device->GetCurrentState() == Service::NFP::DeviceState::TagFound) {
- nfp_device->Mount(Service::NFP::MountTarget::All);
+ if (nfp_device->GetCurrentState() == Service::NFC::DeviceState::TagFound) {
+ nfp_device->Mount(Service::NFP::ModelType::Amiibo, Service::NFP::MountTarget::All);
}
switch (applet_input_common.applet_mode) {
case Service::NFP::CabinetMode::StartNicknameAndOwnerSettings: {
- Service::NFP::AmiiboName name{};
- std::memcpy(name.data(), amiibo_name.data(), std::min(amiibo_name.size(), name.size() - 1));
- nfp_device->SetNicknameAndOwner(name);
+ Service::NFP::RegisterInfoPrivate register_info{};
+ std::memcpy(register_info.amiibo_name.data(), amiibo_name.data(),
+ std::min(amiibo_name.size(), register_info.amiibo_name.size() - 1));
+
+ nfp_device->SetRegisterInfoPrivate(register_info);
break;
}
case Service::NFP::CabinetMode::StartGameDataEraser:
@@ -129,7 +131,7 @@ void Cabinet::DisplayCompleted(bool apply_changes, std::string_view amiibo_name)
nfp_device->RestoreAmiibo();
break;
case Service::NFP::CabinetMode::StartFormatter:
- nfp_device->DeleteAllData();
+ nfp_device->Format();
break;
default:
UNIMPLEMENTED_MSG("Unknown CabinetMode={}", applet_input_common.applet_mode);
@@ -174,4 +176,9 @@ void Cabinet::Cancel() {
broker.SignalStateChanged();
}
+Result Cabinet::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
} // namespace Service::AM::Applets
diff --git a/src/core/hle/service/am/applets/applet_cabinet.h b/src/core/hle/service/am/applets/applet_cabinet.h
index 84197a807..b56427021 100644
--- a/src/core/hle/service/am/applets/applet_cabinet.h
+++ b/src/core/hle/service/am/applets/applet_cabinet.h
@@ -19,8 +19,8 @@ namespace Core {
class System;
} // namespace Core
-namespace Service::NFP {
-class NfpDevice;
+namespace Service::NFC {
+class NfcDevice;
}
namespace Service::AM::Applets {
@@ -89,13 +89,14 @@ public:
void Execute() override;
void DisplayCompleted(bool apply_changes, std::string_view amiibo_name);
void Cancel();
+ Result RequestExit() override;
private:
const Core::Frontend::CabinetApplet& frontend;
Core::System& system;
bool is_complete{false};
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device;
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device;
Kernel::KEvent* availability_change_event;
KernelHelpers::ServiceContext service_context;
StartParamForAmiiboSettings applet_input_common{};
diff --git a/src/core/hle/service/am/applets/applet_controller.cpp b/src/core/hle/service/am/applets/applet_controller.cpp
index b418031de..9840d2547 100644
--- a/src/core/hle/service/am/applets/applet_controller.cpp
+++ b/src/core/hle/service/am/applets/applet_controller.cpp
@@ -19,10 +19,9 @@
namespace Service::AM::Applets {
-// This error code (0x183ACA) is thrown when the applet fails to initialize.
-[[maybe_unused]] constexpr Result ERR_CONTROLLER_APPLET_3101{ErrorModule::HID, 3101};
-// This error code (0x183CCA) is thrown when the u32 result in ControllerSupportResultInfo is 2.
-[[maybe_unused]] constexpr Result ERR_CONTROLLER_APPLET_3102{ErrorModule::HID, 3102};
+[[maybe_unused]] constexpr Result ResultControllerSupportCanceled{ErrorModule::HID, 3101};
+[[maybe_unused]] constexpr Result ResultControllerSupportNotSupportedNpadStyle{ErrorModule::HID,
+ 3102};
static Core::Frontend::ControllerParameters ConvertToFrontendParameters(
ControllerSupportArgPrivate private_arg, ControllerSupportArgHeader header, bool enable_text,
@@ -225,7 +224,8 @@ void Controller::Execute() {
parameters.allow_dual_joycons, parameters.allow_left_joycon,
parameters.allow_right_joycon);
- frontend.ReconfigureControllers([this] { ConfigurationComplete(); }, parameters);
+ frontend.ReconfigureControllers(
+ [this](bool is_success) { ConfigurationComplete(is_success); }, parameters);
break;
}
case ControllerSupportMode::ShowControllerStrapGuide:
@@ -233,16 +233,16 @@ void Controller::Execute() {
case ControllerSupportMode::ShowControllerKeyRemappingForSystem:
UNIMPLEMENTED_MSG("ControllerSupportMode={} is not implemented",
controller_private_arg.mode);
- ConfigurationComplete();
+ ConfigurationComplete(true);
break;
default: {
- ConfigurationComplete();
+ ConfigurationComplete(true);
break;
}
}
}
-void Controller::ConfigurationComplete() {
+void Controller::ConfigurationComplete(bool is_success) {
ControllerSupportResultInfo result_info{};
// If enable_single_mode is enabled, player_count is 1 regardless of any other parameters.
@@ -251,7 +251,8 @@ void Controller::ConfigurationComplete() {
result_info.selected_id = static_cast<u32>(system.HIDCore().GetFirstNpadId());
- result_info.result = 0;
+ result_info.result =
+ is_success ? ControllerSupportResult::Success : ControllerSupportResult::Cancel;
LOG_DEBUG(Service_HID, "Result Info: player_count={}, selected_id={}, result={}",
result_info.player_count, result_info.selected_id, result_info.result);
@@ -263,4 +264,9 @@ void Controller::ConfigurationComplete() {
broker.SignalStateChanged();
}
+Result Controller::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
} // namespace Service::AM::Applets
diff --git a/src/core/hle/service/am/applets/applet_controller.h b/src/core/hle/service/am/applets/applet_controller.h
index 1f9adec65..f6c64f633 100644
--- a/src/core/hle/service/am/applets/applet_controller.h
+++ b/src/core/hle/service/am/applets/applet_controller.h
@@ -48,6 +48,11 @@ enum class ControllerSupportCaller : u8 {
MaxControllerSupportCaller,
};
+enum class ControllerSupportResult : u32 {
+ Success = 0,
+ Cancel = 2,
+};
+
struct ControllerSupportArgPrivate {
u32 arg_private_size{};
u32 arg_size{};
@@ -112,7 +117,7 @@ struct ControllerSupportResultInfo {
s8 player_count{};
INSERT_PADDING_BYTES(3);
u32 selected_id{};
- u32 result{};
+ ControllerSupportResult result{};
};
static_assert(sizeof(ControllerSupportResultInfo) == 0xC,
"ControllerSupportResultInfo has incorrect size.");
@@ -129,8 +134,9 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
- void ConfigurationComplete();
+ void ConfigurationComplete(bool is_success);
private:
const Core::Frontend::ControllerApplet& frontend;
diff --git a/src/core/hle/service/am/applets/applet_error.cpp b/src/core/hle/service/am/applets/applet_error.cpp
index bae0d99a6..b46ea840c 100644
--- a/src/core/hle/service/am/applets/applet_error.cpp
+++ b/src/core/hle/service/am/applets/applet_error.cpp
@@ -166,7 +166,7 @@ void Error::Execute() {
}
const auto callback = [this] { DisplayCompleted(); };
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
const auto& reporter{system.GetReporter()};
switch (mode) {
@@ -209,4 +209,9 @@ void Error::DisplayCompleted() {
broker.SignalStateChanged();
}
+Result Error::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
} // namespace Service::AM::Applets
diff --git a/src/core/hle/service/am/applets/applet_error.h b/src/core/hle/service/am/applets/applet_error.h
index d78d6f1d1..d822a32bb 100644
--- a/src/core/hle/service/am/applets/applet_error.h
+++ b/src/core/hle/service/am/applets/applet_error.h
@@ -34,6 +34,7 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
void DisplayCompleted();
diff --git a/src/core/hle/service/am/applets/applet_general_backend.cpp b/src/core/hle/service/am/applets/applet_general_backend.cpp
index e50acdaf6..8b352020e 100644
--- a/src/core/hle/service/am/applets/applet_general_backend.cpp
+++ b/src/core/hle/service/am/applets/applet_general_backend.cpp
@@ -150,6 +150,11 @@ void Auth::AuthFinished(bool is_successful) {
broker.SignalStateChanged();
}
+Result Auth::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
PhotoViewer::PhotoViewer(Core::System& system_, LibraryAppletMode applet_mode_,
const Core::Frontend::PhotoViewerApplet& frontend_)
: Applet{system_, applet_mode_}, frontend{frontend_}, system{system_} {}
@@ -186,7 +191,7 @@ void PhotoViewer::Execute() {
const auto callback = [this] { ViewFinished(); };
switch (mode) {
case PhotoViewerAppletMode::CurrentApp:
- frontend.ShowPhotosForApplication(system.GetCurrentProcessProgramID(), callback);
+ frontend.ShowPhotosForApplication(system.GetApplicationProcessProgramID(), callback);
break;
case PhotoViewerAppletMode::AllApps:
frontend.ShowAllPhotos(callback);
@@ -202,6 +207,11 @@ void PhotoViewer::ViewFinished() {
broker.SignalStateChanged();
}
+Result PhotoViewer::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
StubApplet::StubApplet(Core::System& system_, AppletId id_, LibraryAppletMode applet_mode_)
: Applet{system_, applet_mode_}, id{id_}, system{system_} {}
@@ -250,4 +260,9 @@ void StubApplet::Execute() {
broker.SignalStateChanged();
}
+Result StubApplet::RequestExit() {
+ // Nothing to do.
+ R_SUCCEED();
+}
+
} // namespace Service::AM::Applets
diff --git a/src/core/hle/service/am/applets/applet_general_backend.h b/src/core/hle/service/am/applets/applet_general_backend.h
index a9f2535a2..34ecaebb9 100644
--- a/src/core/hle/service/am/applets/applet_general_backend.h
+++ b/src/core/hle/service/am/applets/applet_general_backend.h
@@ -28,6 +28,7 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
void AuthFinished(bool is_successful = true);
@@ -59,6 +60,7 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
void ViewFinished();
@@ -80,6 +82,7 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
private:
AppletId id;
diff --git a/src/core/hle/service/am/applets/applet_mii_edit.cpp b/src/core/hle/service/am/applets/applet_mii_edit.cpp
index ae80ef506..d1f652c09 100644
--- a/src/core/hle/service/am/applets/applet_mii_edit.cpp
+++ b/src/core/hle/service/am/applets/applet_mii_edit.cpp
@@ -135,4 +135,9 @@ void MiiEdit::MiiEditOutputForCharInfoEditing(MiiEditResult result,
broker.SignalStateChanged();
}
+Result MiiEdit::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
} // namespace Service::AM::Applets
diff --git a/src/core/hle/service/am/applets/applet_mii_edit.h b/src/core/hle/service/am/applets/applet_mii_edit.h
index d18dd3cf5..3f46fae1b 100644
--- a/src/core/hle/service/am/applets/applet_mii_edit.h
+++ b/src/core/hle/service/am/applets/applet_mii_edit.h
@@ -25,6 +25,7 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
void MiiEditOutput(MiiEditResult result, s32 index);
diff --git a/src/core/hle/service/am/applets/applet_profile_select.cpp b/src/core/hle/service/am/applets/applet_profile_select.cpp
index c738db028..89cb323e9 100644
--- a/src/core/hle/service/am/applets/applet_profile_select.cpp
+++ b/src/core/hle/service/am/applets/applet_profile_select.cpp
@@ -7,13 +7,12 @@
#include "common/string_util.h"
#include "core/core.h"
#include "core/frontend/applets/profile_select.h"
+#include "core/hle/service/acc/errors.h"
#include "core/hle/service/am/am.h"
#include "core/hle/service/am/applets/applet_profile_select.h"
namespace Service::AM::Applets {
-constexpr Result ERR_USER_CANCELLED_SELECTION{ErrorModule::Account, 1};
-
ProfileSelect::ProfileSelect(Core::System& system_, LibraryAppletMode applet_mode_,
const Core::Frontend::ProfileSelectApplet& frontend_)
: Applet{system_, applet_mode_}, frontend{frontend_}, system{system_} {}
@@ -26,13 +25,29 @@ void ProfileSelect::Initialize() {
final_data.clear();
Applet::Initialize();
+ profile_select_version = ProfileSelectAppletVersion{common_args.library_version};
const auto user_config_storage = broker.PopNormalDataToApplet();
ASSERT(user_config_storage != nullptr);
const auto& user_config = user_config_storage->GetData();
- ASSERT(user_config.size() >= sizeof(UserSelectionConfig));
- std::memcpy(&config, user_config.data(), sizeof(UserSelectionConfig));
+ LOG_INFO(Service_AM, "Initializing Profile Select Applet with version={}",
+ profile_select_version);
+
+ switch (profile_select_version) {
+ case ProfileSelectAppletVersion::Version1:
+ ASSERT(user_config.size() == sizeof(UiSettingsV1));
+ std::memcpy(&config_old, user_config.data(), sizeof(UiSettingsV1));
+ break;
+ case ProfileSelectAppletVersion::Version2:
+ case ProfileSelectAppletVersion::Version3:
+ ASSERT(user_config.size() == sizeof(UiSettings));
+ std::memcpy(&config, user_config.data(), sizeof(UiSettings));
+ break;
+ default:
+ UNIMPLEMENTED_MSG("Unknown profile_select_version = {}", profile_select_version);
+ break;
+ }
}
bool ProfileSelect::TransactionComplete() const {
@@ -53,25 +68,56 @@ void ProfileSelect::Execute() {
return;
}
- frontend.SelectProfile([this](std::optional<Common::UUID> uuid) { SelectionComplete(uuid); });
+ Core::Frontend::ProfileSelectParameters parameters{};
+
+ switch (profile_select_version) {
+ case ProfileSelectAppletVersion::Version1:
+ parameters = {
+ .mode = config_old.mode,
+ .invalid_uid_list = config_old.invalid_uid_list,
+ .display_options = config_old.display_options,
+ .purpose = UserSelectionPurpose::General,
+ };
+ break;
+ case ProfileSelectAppletVersion::Version2:
+ case ProfileSelectAppletVersion::Version3:
+ parameters = {
+ .mode = config.mode,
+ .invalid_uid_list = config.invalid_uid_list,
+ .display_options = config.display_options,
+ .purpose = config.purpose,
+ };
+ break;
+ default:
+ UNIMPLEMENTED_MSG("Unknown profile_select_version = {}", profile_select_version);
+ break;
+ }
+
+ frontend.SelectProfile([this](std::optional<Common::UUID> uuid) { SelectionComplete(uuid); },
+ parameters);
}
void ProfileSelect::SelectionComplete(std::optional<Common::UUID> uuid) {
- UserSelectionOutput output{};
+ UiReturnArg output{};
if (uuid.has_value() && uuid->IsValid()) {
output.result = 0;
output.uuid_selected = *uuid;
} else {
- status = ERR_USER_CANCELLED_SELECTION;
- output.result = ERR_USER_CANCELLED_SELECTION.raw;
+ status = Account::ResultCancelledByUser;
+ output.result = Account::ResultCancelledByUser.raw;
output.uuid_selected = Common::InvalidUUID;
}
- final_data = std::vector<u8>(sizeof(UserSelectionOutput));
+ final_data = std::vector<u8>(sizeof(UiReturnArg));
std::memcpy(final_data.data(), &output, final_data.size());
broker.PushNormalDataFromApplet(std::make_shared<IStorage>(system, std::move(final_data)));
broker.SignalStateChanged();
}
+Result ProfileSelect::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
} // namespace Service::AM::Applets
diff --git a/src/core/hle/service/am/applets/applet_profile_select.h b/src/core/hle/service/am/applets/applet_profile_select.h
index b77f1d205..369f9250f 100644
--- a/src/core/hle/service/am/applets/applet_profile_select.h
+++ b/src/core/hle/service/am/applets/applet_profile_select.h
@@ -16,19 +16,100 @@ class System;
namespace Service::AM::Applets {
-struct UserSelectionConfig {
- // TODO(DarkLordZach): RE this structure
- // It seems to be flags and the like that determine the UI of the applet on the switch... from
- // my research this is safe to ignore for now.
- INSERT_PADDING_BYTES(0xA0);
+enum class ProfileSelectAppletVersion : u32 {
+ Version1 = 0x1, // 1.0.0+
+ Version2 = 0x10000, // 2.0.0+
+ Version3 = 0x20000, // 6.0.0+
};
-static_assert(sizeof(UserSelectionConfig) == 0xA0, "UserSelectionConfig has incorrect size.");
-struct UserSelectionOutput {
+// This is nn::account::UiMode
+enum class UiMode {
+ UserSelector,
+ UserCreator,
+ EnsureNetworkServiceAccountAvailable,
+ UserIconEditor,
+ UserNicknameEditor,
+ UserCreatorForStarter,
+ NintendoAccountAuthorizationRequestContext,
+ IntroduceExternalNetworkServiceAccount,
+ IntroduceExternalNetworkServiceAccountForRegistration,
+ NintendoAccountNnidLinker,
+ LicenseRequirementsForNetworkService,
+ LicenseRequirementsForNetworkServiceWithUserContextImpl,
+ UserCreatorForImmediateNaLoginTest,
+ UserQualificationPromoter,
+};
+
+// This is nn::account::UserSelectionPurpose
+enum class UserSelectionPurpose {
+ General,
+ GameCardRegistration,
+ EShopLaunch,
+ EShopItemShow,
+ PicturePost,
+ NintendoAccountLinkage,
+ SettingsUpdate,
+ SaveDataDeletion,
+ UserMigration,
+ SaveDataTransfer,
+};
+
+// This is nn::account::NintendoAccountStartupDialogType
+enum class NintendoAccountStartupDialogType {
+ LoginAndCreate,
+ Login,
+ Create,
+};
+
+// This is nn::account::UserSelectionSettingsForSystemService
+struct UserSelectionSettingsForSystemService {
+ UserSelectionPurpose purpose;
+ bool enable_user_creation;
+ INSERT_PADDING_BYTES(0x3);
+};
+static_assert(sizeof(UserSelectionSettingsForSystemService) == 0x8,
+ "UserSelectionSettingsForSystemService has incorrect size.");
+
+struct UiSettingsDisplayOptions {
+ bool is_network_service_account_required;
+ bool is_skip_enabled;
+ bool is_system_or_launcher;
+ bool is_registration_permitted;
+ bool show_skip_button;
+ bool aditional_select;
+ bool show_user_selector;
+ bool is_unqualified_user_selectable;
+};
+static_assert(sizeof(UiSettingsDisplayOptions) == 0x8,
+ "UiSettingsDisplayOptions has incorrect size.");
+
+struct UiSettingsV1 {
+ UiMode mode;
+ INSERT_PADDING_BYTES(0x4);
+ std::array<Common::UUID, 8> invalid_uid_list;
+ u64 application_id;
+ UiSettingsDisplayOptions display_options;
+};
+static_assert(sizeof(UiSettingsV1) == 0x98, "UiSettings has incorrect size.");
+
+// This is nn::account::UiSettings
+struct UiSettings {
+ UiMode mode;
+ INSERT_PADDING_BYTES(0x4);
+ std::array<Common::UUID, 8> invalid_uid_list;
+ u64 application_id;
+ UiSettingsDisplayOptions display_options;
+ UserSelectionPurpose purpose;
+ INSERT_PADDING_BYTES(0x4);
+};
+static_assert(sizeof(UiSettings) == 0xA0, "UiSettings has incorrect size.");
+
+// This is nn::account::UiReturnArg
+struct UiReturnArg {
u64 result;
Common::UUID uuid_selected;
};
-static_assert(sizeof(UserSelectionOutput) == 0x18, "UserSelectionOutput has incorrect size.");
+static_assert(sizeof(UiReturnArg) == 0x18, "UiReturnArg has incorrect size.");
class ProfileSelect final : public Applet {
public:
@@ -42,13 +123,17 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
void SelectionComplete(std::optional<Common::UUID> uuid);
private:
const Core::Frontend::ProfileSelectApplet& frontend;
- UserSelectionConfig config;
+ UiSettings config;
+ UiSettingsV1 config_old;
+ ProfileSelectAppletVersion profile_select_version;
+
bool complete = false;
Result status = ResultSuccess;
std::vector<u8> final_data;
diff --git a/src/core/hle/service/am/applets/applet_software_keyboard.cpp b/src/core/hle/service/am/applets/applet_software_keyboard.cpp
index c18236045..4145bb84f 100644
--- a/src/core/hle/service/am/applets/applet_software_keyboard.cpp
+++ b/src/core/hle/service/am/applets/applet_software_keyboard.cpp
@@ -770,6 +770,11 @@ void SoftwareKeyboard::ExitKeyboard() {
broker.SignalStateChanged();
}
+Result SoftwareKeyboard::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
// Inline Software Keyboard Requests
void SoftwareKeyboard::RequestFinalize(const std::vector<u8>& request_data) {
diff --git a/src/core/hle/service/am/applets/applet_software_keyboard.h b/src/core/hle/service/am/applets/applet_software_keyboard.h
index b01b31c98..2e919811b 100644
--- a/src/core/hle/service/am/applets/applet_software_keyboard.h
+++ b/src/core/hle/service/am/applets/applet_software_keyboard.h
@@ -31,6 +31,7 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
/**
* Submits the input text to the application.
diff --git a/src/core/hle/service/am/applets/applet_web_browser.cpp b/src/core/hle/service/am/applets/applet_web_browser.cpp
index 14aa6f69e..2accf7898 100644
--- a/src/core/hle/service/am/applets/applet_web_browser.cpp
+++ b/src/core/hle/service/am/applets/applet_web_browser.cpp
@@ -363,6 +363,11 @@ void WebBrowser::WebBrowserExit(WebExitReason exit_reason, std::string last_url)
broker.SignalStateChanged();
}
+Result WebBrowser::RequestExit() {
+ frontend.Close();
+ R_SUCCEED();
+}
+
bool WebBrowser::InputTLVExistsInMap(WebArgInputTLVType input_tlv_type) const {
return web_arg_input_tlv_map.find(input_tlv_type) != web_arg_input_tlv_map.end();
}
@@ -393,7 +398,7 @@ void WebBrowser::InitializeOffline() {
switch (document_kind) {
case DocumentKind::OfflineHtmlPage:
default:
- title_id = system.GetCurrentProcessProgramID();
+ title_id = system.GetApplicationProcessProgramID();
nca_type = FileSys::ContentRecordType::HtmlDocument;
additional_paths = "html-document";
break;
diff --git a/src/core/hle/service/am/applets/applet_web_browser.h b/src/core/hle/service/am/applets/applet_web_browser.h
index fd727fac8..99fe18659 100644
--- a/src/core/hle/service/am/applets/applet_web_browser.h
+++ b/src/core/hle/service/am/applets/applet_web_browser.h
@@ -35,6 +35,7 @@ public:
Result GetStatus() const override;
void ExecuteInteractive() override;
void Execute() override;
+ Result RequestExit() override;
void ExtractOfflineRomFS();
diff --git a/src/core/hle/service/am/applets/applets.h b/src/core/hle/service/am/applets/applets.h
index a22eb62a8..12f374199 100644
--- a/src/core/hle/service/am/applets/applets.h
+++ b/src/core/hle/service/am/applets/applets.h
@@ -142,6 +142,7 @@ public:
virtual Result GetStatus() const = 0;
virtual void ExecuteInteractive() = 0;
virtual void Execute() = 0;
+ virtual Result RequestExit() = 0;
AppletDataBroker& GetBroker() {
return broker;
diff --git a/src/core/hle/service/am/tcap.cpp b/src/core/hle/service/am/tcap.cpp
deleted file mode 100644
index 818420e22..000000000
--- a/src/core/hle/service/am/tcap.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/hle/service/am/tcap.h"
-
-namespace Service::AM {
-
-TCAP::TCAP(Core::System& system_) : ServiceFramework{system_, "tcap"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "GetContinuousHighSkinTemperatureEvent"},
- {1, nullptr, "SetOperationMode"},
- {2, nullptr, "LoadAndApplySettings"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
-}
-
-TCAP::~TCAP() = default;
-
-} // namespace Service::AM
diff --git a/src/core/hle/service/am/tcap.h b/src/core/hle/service/am/tcap.h
deleted file mode 100644
index 6b2148c29..000000000
--- a/src/core/hle/service/am/tcap.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/service/service.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::AM {
-
-class TCAP final : public ServiceFramework<TCAP> {
-public:
- explicit TCAP(Core::System& system_);
- ~TCAP() override;
-};
-
-} // namespace Service::AM
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index 368ccd52f..38c2138e8 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -14,9 +14,10 @@
#include "core/file_sys/nca_metadata.h"
#include "core/file_sys/patch_manager.h"
#include "core/file_sys/registered_cache.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/aoc/aoc_u.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/loader/loader.h"
namespace Service::AOC {
@@ -68,7 +69,7 @@ public:
}
private:
- void SetDefaultDeliveryTarget(Kernel::HLERequestContext& ctx) {
+ void SetDefaultDeliveryTarget(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto unknown_1 = rp.Pop<u64>();
@@ -80,7 +81,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetDeliveryTarget(Kernel::HLERequestContext& ctx) {
+ void SetDeliveryTarget(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto unknown_1 = rp.Pop<u64>();
@@ -92,7 +93,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetPurchasedEventReadableHandle(Kernel::HLERequestContext& ctx) {
+ void GetPurchasedEventReadableHandle(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -129,6 +130,9 @@ AOC_U::AOC_U(Core::System& system_)
{101, &AOC_U::CreatePermanentEcPurchasedEventManager, "CreatePermanentEcPurchasedEventManager"},
{110, nullptr, "CreateContentsServiceManager"},
{200, nullptr, "SetRequiredAddOnContentsOnContentsAvailabilityTransition"},
+ {300, nullptr, "SetupHostAddOnContent"},
+ {301, nullptr, "GetRegisteredAddOnContentPath"},
+ {302, nullptr, "UpdateCachedList"},
};
// clang-format on
@@ -141,7 +145,7 @@ AOC_U::~AOC_U() {
service_context.CloseEvent(aoc_change_event);
}
-void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {
+void AOC_U::CountAddOnContent(HLERequestContext& ctx) {
struct Parameters {
u64 process_id;
};
@@ -155,7 +159,7 @@ void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
- const auto current = system.GetCurrentProcessProgramID();
+ const auto current = system.GetApplicationProcessProgramID();
const auto& disabled = Settings::values.disabled_addons[current];
if (std::find(disabled.begin(), disabled.end(), "DLC") != disabled.end()) {
@@ -168,7 +172,7 @@ void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {
[current](u64 tid) { return CheckAOCTitleIDMatchesBase(tid, current); })));
}
-void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
+void AOC_U::ListAddOnContent(HLERequestContext& ctx) {
struct Parameters {
u32 offset;
u32 count;
@@ -182,7 +186,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_AOC, "called with offset={}, count={}, process_id={}", offset, count,
process_id);
- const auto current = system.GetCurrentProcessProgramID();
+ const auto current = system.GetApplicationProcessProgramID();
std::vector<u32> out;
const auto& disabled = Settings::values.disabled_addons[current];
@@ -214,7 +218,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
rb.Push(out_count);
}
-void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) {
+void AOC_U::GetAddOnContentBaseId(HLERequestContext& ctx) {
struct Parameters {
u64 process_id;
};
@@ -228,7 +232,7 @@ void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
const FileSys::PatchManager pm{title_id, system.GetFileSystemController(),
system.GetContentProvider()};
@@ -241,7 +245,7 @@ void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) {
rb.Push(res.first->GetDLCBaseTitleId());
}
-void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) {
+void AOC_U::PrepareAddOnContent(HLERequestContext& ctx) {
struct Parameters {
s32 addon_index;
u64 process_id;
@@ -258,7 +262,7 @@ void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void AOC_U::GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx) {
+void AOC_U::GetAddOnContentListChangedEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -266,7 +270,7 @@ void AOC_U::GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx) {
rb.PushCopyObjects(aoc_change_event->GetReadableEvent());
}
-void AOC_U::GetAddOnContentListChangedEventWithProcessId(Kernel::HLERequestContext& ctx) {
+void AOC_U::GetAddOnContentListChangedEventWithProcessId(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -274,28 +278,28 @@ void AOC_U::GetAddOnContentListChangedEventWithProcessId(Kernel::HLERequestConte
rb.PushCopyObjects(aoc_change_event->GetReadableEvent());
}
-void AOC_U::NotifyMountAddOnContent(Kernel::HLERequestContext& ctx) {
+void AOC_U::NotifyMountAddOnContent(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void AOC_U::NotifyUnmountAddOnContent(Kernel::HLERequestContext& ctx) {
+void AOC_U::NotifyUnmountAddOnContent(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void AOC_U::CheckAddOnContentMountStatus(Kernel::HLERequestContext& ctx) {
+void AOC_U::CheckAddOnContentMountStatus(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void AOC_U::CreateEcPurchasedEventManager(Kernel::HLERequestContext& ctx) {
+void AOC_U::CreateEcPurchasedEventManager(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -303,7 +307,7 @@ void AOC_U::CreateEcPurchasedEventManager(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IPurchaseEventManager>(system);
}
-void AOC_U::CreatePermanentEcPurchasedEventManager(Kernel::HLERequestContext& ctx) {
+void AOC_U::CreatePermanentEcPurchasedEventManager(HLERequestContext& ctx) {
LOG_WARNING(Service_AOC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -311,8 +315,10 @@ void AOC_U::CreatePermanentEcPurchasedEventManager(Kernel::HLERequestContext& ct
rb.PushIpcInterface<IPurchaseEventManager>(system);
}
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<AOC_U>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+ server_manager->RegisterNamedService("aoc:u", std::make_shared<AOC_U>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::AOC
diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.h
index 6c1ce601a..12ccfeb6a 100644
--- a/src/core/hle/service/aoc/aoc_u.h
+++ b/src/core/hle/service/aoc/aoc_u.h
@@ -22,17 +22,17 @@ public:
~AOC_U() override;
private:
- void CountAddOnContent(Kernel::HLERequestContext& ctx);
- void ListAddOnContent(Kernel::HLERequestContext& ctx);
- void GetAddOnContentBaseId(Kernel::HLERequestContext& ctx);
- void PrepareAddOnContent(Kernel::HLERequestContext& ctx);
- void GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx);
- void GetAddOnContentListChangedEventWithProcessId(Kernel::HLERequestContext& ctx);
- void NotifyMountAddOnContent(Kernel::HLERequestContext& ctx);
- void NotifyUnmountAddOnContent(Kernel::HLERequestContext& ctx);
- void CheckAddOnContentMountStatus(Kernel::HLERequestContext& ctx);
- void CreateEcPurchasedEventManager(Kernel::HLERequestContext& ctx);
- void CreatePermanentEcPurchasedEventManager(Kernel::HLERequestContext& ctx);
+ void CountAddOnContent(HLERequestContext& ctx);
+ void ListAddOnContent(HLERequestContext& ctx);
+ void GetAddOnContentBaseId(HLERequestContext& ctx);
+ void PrepareAddOnContent(HLERequestContext& ctx);
+ void GetAddOnContentListChangedEvent(HLERequestContext& ctx);
+ void GetAddOnContentListChangedEventWithProcessId(HLERequestContext& ctx);
+ void NotifyMountAddOnContent(HLERequestContext& ctx);
+ void NotifyUnmountAddOnContent(HLERequestContext& ctx);
+ void CheckAddOnContentMountStatus(HLERequestContext& ctx);
+ void CreateEcPurchasedEventManager(HLERequestContext& ctx);
+ void CreatePermanentEcPurchasedEventManager(HLERequestContext& ctx);
std::vector<u64> add_on_content;
KernelHelpers::ServiceContext service_context;
@@ -40,7 +40,6 @@ private:
Kernel::KEvent* aoc_change_event;
};
-/// Registers all AOC services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::AOC
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp
index 8a338d9b1..c23ff293d 100644
--- a/src/core/hle/service/apm/apm.cpp
+++ b/src/core/hle/service/apm/apm.cpp
@@ -4,22 +4,24 @@
#include "core/core.h"
#include "core/hle/service/apm/apm.h"
#include "core/hle/service/apm/apm_interface.h"
+#include "core/hle/service/server_manager.h"
namespace Service::APM {
Module::Module() = default;
Module::~Module() = default;
-void InstallInterfaces(Core::System& system) {
- auto module_ = std::make_shared<Module>();
- std::make_shared<APM>(system, module_, system.GetAPMController(), "apm")
- ->InstallAsService(system.ServiceManager());
- std::make_shared<APM>(system, module_, system.GetAPMController(), "apm:p")
- ->InstallAsService(system.ServiceManager());
- std::make_shared<APM>(system, module_, system.GetAPMController(), "apm:am")
- ->InstallAsService(system.ServiceManager());
- std::make_shared<APM_Sys>(system, system.GetAPMController())
- ->InstallAsService(system.ServiceManager());
+void LoopProcess(Core::System& system) {
+ auto module = std::make_shared<Module>();
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService(
+ "apm", std::make_shared<APM>(system, module, system.GetAPMController(), "apm"));
+ server_manager->RegisterNamedService(
+ "apm:am", std::make_shared<APM>(system, module, system.GetAPMController(), "apm:am"));
+ server_manager->RegisterNamedService(
+ "apm:sys", std::make_shared<APM_Sys>(system, system.GetAPMController()));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::APM
diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.h
index 0fecc766a..e188b4e44 100644
--- a/src/core/hle/service/apm/apm.h
+++ b/src/core/hle/service/apm/apm.h
@@ -15,7 +15,6 @@ public:
~Module();
};
-/// Registers all AM services with the specified service manager.
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::APM
diff --git a/src/core/hle/service/apm/apm_controller.cpp b/src/core/hle/service/apm/apm_controller.cpp
index d6de84066..227fdd0cf 100644
--- a/src/core/hle/service/apm/apm_controller.cpp
+++ b/src/core/hle/service/apm/apm_controller.cpp
@@ -56,7 +56,7 @@ void Controller::SetPerformanceConfiguration(PerformanceMode mode,
}
void Controller::SetFromCpuBoostMode(CpuBoostMode mode) {
- constexpr std::array<PerformanceConfiguration, 3> BOOST_MODE_TO_CONFIG_MAP{{
+ static constexpr std::array<PerformanceConfiguration, 3> BOOST_MODE_TO_CONFIG_MAP{{
PerformanceConfiguration::Config7,
PerformanceConfiguration::Config13,
PerformanceConfiguration::Config15,
diff --git a/src/core/hle/service/apm/apm_interface.cpp b/src/core/hle/service/apm/apm_interface.cpp
index 041fc16bd..d29051ee7 100644
--- a/src/core/hle/service/apm/apm_interface.cpp
+++ b/src/core/hle/service/apm/apm_interface.cpp
@@ -2,10 +2,10 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/apm/apm.h"
#include "core/hle/service/apm/apm_controller.h"
#include "core/hle/service/apm/apm_interface.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::APM {
@@ -22,7 +22,7 @@ public:
}
private:
- void SetPerformanceConfiguration(Kernel::HLERequestContext& ctx) {
+ void SetPerformanceConfiguration(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto mode = rp.PopEnum<PerformanceMode>();
@@ -35,7 +35,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) {
+ void GetPerformanceConfiguration(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto mode = rp.PopEnum<PerformanceMode>();
@@ -46,7 +46,7 @@ private:
rb.PushEnum(controller.GetCurrentPerformanceConfiguration(mode));
}
- void SetCpuOverclockEnabled(Kernel::HLERequestContext& ctx) {
+ void SetCpuOverclockEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto cpu_overclock_enabled = rp.Pop<bool>();
@@ -74,7 +74,7 @@ APM::APM(Core::System& system_, std::shared_ptr<Module> apm_, Controller& contro
APM::~APM() = default;
-void APM::OpenSession(Kernel::HLERequestContext& ctx) {
+void APM::OpenSession(HLERequestContext& ctx) {
LOG_DEBUG(Service_APM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -82,14 +82,14 @@ void APM::OpenSession(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<ISession>(system, controller);
}
-void APM::GetPerformanceMode(Kernel::HLERequestContext& ctx) {
+void APM::GetPerformanceMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_APM, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.PushEnum(controller.GetCurrentPerformanceMode());
}
-void APM::IsCpuOverclockEnabled(Kernel::HLERequestContext& ctx) {
+void APM::IsCpuOverclockEnabled(HLERequestContext& ctx) {
LOG_WARNING(Service_APM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -117,7 +117,7 @@ APM_Sys::APM_Sys(Core::System& system_, Controller& controller_)
APM_Sys::~APM_Sys() = default;
-void APM_Sys::GetPerformanceEvent(Kernel::HLERequestContext& ctx) {
+void APM_Sys::GetPerformanceEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_APM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -125,7 +125,7 @@ void APM_Sys::GetPerformanceEvent(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<ISession>(system, controller);
}
-void APM_Sys::SetCpuBoostMode(Kernel::HLERequestContext& ctx) {
+void APM_Sys::SetCpuBoostMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto mode = rp.PopEnum<CpuBoostMode>();
@@ -137,7 +137,7 @@ void APM_Sys::SetCpuBoostMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void APM_Sys::GetCurrentPerformanceConfiguration(Kernel::HLERequestContext& ctx) {
+void APM_Sys::GetCurrentPerformanceConfiguration(HLERequestContext& ctx) {
LOG_DEBUG(Service_APM, "called");
IPC::ResponseBuilder rb{ctx, 3};
diff --git a/src/core/hle/service/apm/apm_interface.h b/src/core/hle/service/apm/apm_interface.h
index 0740fd4ba..58718453b 100644
--- a/src/core/hle/service/apm/apm_interface.h
+++ b/src/core/hle/service/apm/apm_interface.h
@@ -17,9 +17,9 @@ public:
~APM() override;
private:
- void OpenSession(Kernel::HLERequestContext& ctx);
- void GetPerformanceMode(Kernel::HLERequestContext& ctx);
- void IsCpuOverclockEnabled(Kernel::HLERequestContext& ctx);
+ void OpenSession(HLERequestContext& ctx);
+ void GetPerformanceMode(HLERequestContext& ctx);
+ void IsCpuOverclockEnabled(HLERequestContext& ctx);
std::shared_ptr<Module> apm;
Controller& controller;
@@ -30,11 +30,11 @@ public:
explicit APM_Sys(Core::System& system_, Controller& controller);
~APM_Sys() override;
- void SetCpuBoostMode(Kernel::HLERequestContext& ctx);
+ void SetCpuBoostMode(HLERequestContext& ctx);
private:
- void GetPerformanceEvent(Kernel::HLERequestContext& ctx);
- void GetCurrentPerformanceConfiguration(Kernel::HLERequestContext& ctx);
+ void GetPerformanceEvent(HLERequestContext& ctx);
+ void GetCurrentPerformanceConfiguration(HLERequestContext& ctx);
Controller& controller;
};
diff --git a/src/core/hle/service/audio/audctl.cpp b/src/core/hle/service/audio/audctl.cpp
index 5abf22ba4..7ad93be6b 100644
--- a/src/core/hle/service/audio/audctl.cpp
+++ b/src/core/hle/service/audio/audctl.cpp
@@ -2,8 +2,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/audio/audctl.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Audio {
@@ -72,7 +72,7 @@ AudCtl::AudCtl(Core::System& system_) : ServiceFramework{system_, "audctl"} {
AudCtl::~AudCtl() = default;
-void AudCtl::GetTargetVolumeMin(Kernel::HLERequestContext& ctx) {
+void AudCtl::GetTargetVolumeMin(HLERequestContext& ctx) {
LOG_DEBUG(Audio, "called.");
// This service function is currently hardcoded on the
@@ -84,7 +84,7 @@ void AudCtl::GetTargetVolumeMin(Kernel::HLERequestContext& ctx) {
rb.Push(target_min_volume);
}
-void AudCtl::GetTargetVolumeMax(Kernel::HLERequestContext& ctx) {
+void AudCtl::GetTargetVolumeMax(HLERequestContext& ctx) {
LOG_DEBUG(Audio, "called.");
// This service function is currently hardcoded on the
diff --git a/src/core/hle/service/audio/audctl.h b/src/core/hle/service/audio/audctl.h
index a27ff6cfe..8e31ac237 100644
--- a/src/core/hle/service/audio/audctl.h
+++ b/src/core/hle/service/audio/audctl.h
@@ -17,8 +17,8 @@ public:
~AudCtl() override;
private:
- void GetTargetVolumeMin(Kernel::HLERequestContext& ctx);
- void GetTargetVolumeMax(Kernel::HLERequestContext& ctx);
+ void GetTargetVolumeMin(HLERequestContext& ctx);
+ void GetTargetVolumeMax(HLERequestContext& ctx);
};
} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/auddbg.cpp b/src/core/hle/service/audio/auddbg.cpp
deleted file mode 100644
index 5541af300..000000000
--- a/src/core/hle/service/audio/auddbg.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/hle/service/audio/auddbg.h"
-
-namespace Service::Audio {
-
-AudDbg::AudDbg(Core::System& system_, const char* name) : ServiceFramework{system_, name} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "RequestSuspendForDebug"},
- {1, nullptr, "RequestResumeForDebug"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
-}
-
-AudDbg::~AudDbg() = default;
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/auddbg.h b/src/core/hle/service/audio/auddbg.h
deleted file mode 100644
index 8f26be5dc..000000000
--- a/src/core/hle/service/audio/auddbg.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/service/service.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::Audio {
-
-class AudDbg final : public ServiceFramework<AudDbg> {
-public:
- explicit AudDbg(Core::System& system_, const char* name);
- ~AudDbg() override;
-};
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audin_a.cpp b/src/core/hle/service/audio/audin_a.cpp
deleted file mode 100644
index 98f4a6048..000000000
--- a/src/core/hle/service/audio/audin_a.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/hle/service/audio/audin_a.h"
-
-namespace Service::Audio {
-
-AudInA::AudInA(Core::System& system_) : ServiceFramework{system_, "audin:a"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "RequestSuspend"},
- {1, nullptr, "RequestResume"},
- {2, nullptr, "GetProcessMasterVolume"},
- {3, nullptr, "SetProcessMasterVolume"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
-}
-
-AudInA::~AudInA() = default;
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audin_a.h b/src/core/hle/service/audio/audin_a.h
deleted file mode 100644
index 19a927de5..000000000
--- a/src/core/hle/service/audio/audin_a.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/service/service.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::Audio {
-
-class AudInA final : public ServiceFramework<AudInA> {
-public:
- explicit AudInA(Core::System& system_);
- ~AudInA() override;
-};
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audin_u.cpp b/src/core/hle/service/audio/audin_u.cpp
index 053e8f9dd..c8d574993 100644
--- a/src/core/hle/service/audio/audin_u.cpp
+++ b/src/core/hle/service/audio/audin_u.cpp
@@ -5,11 +5,12 @@
#include "audio_core/renderer/audio_device.h"
#include "common/common_funcs.h"
#include "common/logging/log.h"
+#include "common/settings.h"
#include "common/string_util.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/audio/audin_u.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Audio {
using namespace AudioCore::AudioIn;
@@ -61,7 +62,7 @@ public:
}
private:
- void GetAudioInState(Kernel::HLERequestContext& ctx) {
+ void GetAudioInState(HLERequestContext& ctx) {
const auto state = static_cast<u32>(impl->GetState());
LOG_DEBUG(Service_Audio, "called. State={}", state);
@@ -71,7 +72,7 @@ private:
rb.Push(state);
}
- void Start(Kernel::HLERequestContext& ctx) {
+ void Start(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto result = impl->StartSystem();
@@ -80,7 +81,7 @@ private:
rb.Push(result);
}
- void Stop(Kernel::HLERequestContext& ctx) {
+ void Stop(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto result = impl->StopSystem();
@@ -89,7 +90,7 @@ private:
rb.Push(result);
}
- void AppendAudioInBuffer(Kernel::HLERequestContext& ctx) {
+ void AppendAudioInBuffer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
u64 tag = rp.PopRaw<u64>();
@@ -111,7 +112,7 @@ private:
rb.Push(result);
}
- void RegisterBufferEvent(Kernel::HLERequestContext& ctx) {
+ void RegisterBufferEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto& buffer_event = impl->GetBufferEvent();
@@ -121,27 +122,21 @@ private:
rb.PushCopyObjects(buffer_event);
}
- void GetReleasedAudioInBuffer(Kernel::HLERequestContext& ctx) {
+ void GetReleasedAudioInBuffer(HLERequestContext& ctx) {
const auto write_buffer_size = ctx.GetWriteBufferNumElements<u64>();
- std::vector<u64> released_buffers(write_buffer_size);
+ tmp_buffer.resize_destructive(write_buffer_size);
+ tmp_buffer[0] = 0;
- const auto count = impl->GetReleasedBuffers(released_buffers);
+ const auto count = impl->GetReleasedBuffers(tmp_buffer);
- [[maybe_unused]] std::string tags{};
- for (u32 i = 0; i < count; i++) {
- tags += fmt::format("{:08X}, ", released_buffers[i]);
- }
- [[maybe_unused]] auto sessionid{impl->GetSystem().GetSessionId()};
- LOG_TRACE(Service_Audio, "called. Session {} released {} buffers: {}", sessionid, count,
- tags);
+ ctx.WriteBuffer(tmp_buffer);
- ctx.WriteBuffer(released_buffers);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(count);
}
- void ContainsAudioInBuffer(Kernel::HLERequestContext& ctx) {
+ void ContainsAudioInBuffer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 tag{rp.Pop<u64>()};
@@ -154,7 +149,7 @@ private:
rb.Push(buffer_queued);
}
- void GetAudioInBufferCount(Kernel::HLERequestContext& ctx) {
+ void GetAudioInBufferCount(HLERequestContext& ctx) {
const auto buffer_count = impl->GetBufferCount();
LOG_DEBUG(Service_Audio, "called. Buffer count={}", buffer_count);
@@ -165,7 +160,7 @@ private:
rb.Push(buffer_count);
}
- void SetDeviceGain(Kernel::HLERequestContext& ctx) {
+ void SetDeviceGain(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto volume{rp.Pop<f32>()};
@@ -177,7 +172,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetDeviceGain(Kernel::HLERequestContext& ctx) {
+ void GetDeviceGain(HLERequestContext& ctx) {
auto volume{impl->GetVolume()};
LOG_DEBUG(Service_Audio, "called. Gain {}", volume);
@@ -187,7 +182,7 @@ private:
rb.Push(volume);
}
- void FlushAudioInBuffers(Kernel::HLERequestContext& ctx) {
+ void FlushAudioInBuffers(HLERequestContext& ctx) {
bool flushed{impl->FlushAudioInBuffers()};
LOG_DEBUG(Service_Audio, "called. Were any buffers flushed? {}", flushed);
@@ -200,12 +195,12 @@ private:
KernelHelpers::ServiceContext service_context;
Kernel::KEvent* event;
std::shared_ptr<AudioCore::AudioIn::In> impl;
+ Common::ScratchBuffer<u64> tmp_buffer;
};
AudInU::AudInU(Core::System& system_)
- : ServiceFramework{system_, "audin:u", ServiceThreadType::CreateNew},
- service_context{system_, "AudInU"}, impl{std::make_unique<AudioCore::AudioIn::Manager>(
- system_)} {
+ : ServiceFramework{system_, "audin:u"}, service_context{system_, "AudInU"},
+ impl{std::make_unique<AudioCore::AudioIn::Manager>(system_)} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &AudInU::ListAudioIns, "ListAudioIns"},
@@ -222,7 +217,7 @@ AudInU::AudInU(Core::System& system_)
AudInU::~AudInU() = default;
-void AudInU::ListAudioIns(Kernel::HLERequestContext& ctx) {
+void AudInU::ListAudioIns(HLERequestContext& ctx) {
using namespace AudioCore::AudioRenderer;
LOG_DEBUG(Service_Audio, "called");
@@ -242,7 +237,7 @@ void AudInU::ListAudioIns(Kernel::HLERequestContext& ctx) {
rb.Push(out_count);
}
-void AudInU::ListAudioInsAutoFiltered(Kernel::HLERequestContext& ctx) {
+void AudInU::ListAudioInsAutoFiltered(HLERequestContext& ctx) {
using namespace AudioCore::AudioRenderer;
LOG_DEBUG(Service_Audio, "called");
@@ -262,7 +257,7 @@ void AudInU::ListAudioInsAutoFiltered(Kernel::HLERequestContext& ctx) {
rb.Push(out_count);
}
-void AudInU::OpenAudioIn(Kernel::HLERequestContext& ctx) {
+void AudInU::OpenAudioIn(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto in_params{rp.PopRaw<AudioInParameter>()};
auto applet_resource_user_id{rp.PopRaw<u64>()};
@@ -312,7 +307,7 @@ void AudInU::OpenAudioIn(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IAudioIn>(audio_in);
}
-void AudInU::OpenAudioInProtocolSpecified(Kernel::HLERequestContext& ctx) {
+void AudInU::OpenAudioInProtocolSpecified(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto protocol_specified{rp.PopRaw<u64>()};
auto in_params{rp.PopRaw<AudioInParameter>()};
diff --git a/src/core/hle/service/audio/audin_u.h b/src/core/hle/service/audio/audin_u.h
index b45fda78a..51e770ff9 100644
--- a/src/core/hle/service/audio/audin_u.h
+++ b/src/core/hle/service/audio/audin_u.h
@@ -12,10 +12,6 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
namespace AudioCore::AudioOut {
class Manager;
class In;
@@ -29,11 +25,11 @@ public:
~AudInU() override;
private:
- void ListAudioIns(Kernel::HLERequestContext& ctx);
- void ListAudioInsAutoFiltered(Kernel::HLERequestContext& ctx);
- void OpenInOutImpl(Kernel::HLERequestContext& ctx);
- void OpenAudioIn(Kernel::HLERequestContext& ctx);
- void OpenAudioInProtocolSpecified(Kernel::HLERequestContext& ctx);
+ void ListAudioIns(HLERequestContext& ctx);
+ void ListAudioInsAutoFiltered(HLERequestContext& ctx);
+ void OpenInOutImpl(HLERequestContext& ctx);
+ void OpenAudioIn(HLERequestContext& ctx);
+ void OpenAudioInProtocolSpecified(HLERequestContext& ctx);
KernelHelpers::ServiceContext service_context;
std::unique_ptr<AudioCore::AudioIn::Manager> impl;
diff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cpp
index 97da71dfa..dccd16309 100644
--- a/src/core/hle/service/audio/audio.cpp
+++ b/src/core/hle/service/audio/audio.cpp
@@ -1,40 +1,31 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/core.h"
#include "core/hle/service/audio/audctl.h"
-#include "core/hle/service/audio/auddbg.h"
-#include "core/hle/service/audio/audin_a.h"
#include "core/hle/service/audio/audin_u.h"
#include "core/hle/service/audio/audio.h"
-#include "core/hle/service/audio/audout_a.h"
#include "core/hle/service/audio/audout_u.h"
#include "core/hle/service/audio/audrec_a.h"
#include "core/hle/service/audio/audrec_u.h"
-#include "core/hle/service/audio/audren_a.h"
#include "core/hle/service/audio/audren_u.h"
-#include "core/hle/service/audio/codecctl.h"
#include "core/hle/service/audio/hwopus.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
namespace Service::Audio {
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<AudCtl>(system)->InstallAsService(service_manager);
- std::make_shared<AudOutA>(system)->InstallAsService(service_manager);
- std::make_shared<AudOutU>(system)->InstallAsService(service_manager);
- std::make_shared<AudInA>(system)->InstallAsService(service_manager);
- std::make_shared<AudInU>(system)->InstallAsService(service_manager);
- std::make_shared<AudRecA>(system)->InstallAsService(service_manager);
- std::make_shared<AudRecU>(system)->InstallAsService(service_manager);
- std::make_shared<AudRenA>(system)->InstallAsService(service_manager);
- std::make_shared<AudRenU>(system)->InstallAsService(service_manager);
- std::make_shared<CodecCtl>(system)->InstallAsService(service_manager);
- std::make_shared<HwOpus>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
- std::make_shared<AudDbg>(system, "audin:d")->InstallAsService(service_manager);
- std::make_shared<AudDbg>(system, "audout:d")->InstallAsService(service_manager);
- std::make_shared<AudDbg>(system, "audrec:d")->InstallAsService(service_manager);
- std::make_shared<AudDbg>(system, "audren:d")->InstallAsService(service_manager);
+ server_manager->RegisterNamedService("audctl", std::make_shared<AudCtl>(system));
+ server_manager->RegisterNamedService("audout:u", std::make_shared<AudOutU>(system));
+ server_manager->RegisterNamedService("audin:u", std::make_shared<AudInU>(system));
+ server_manager->RegisterNamedService("audrec:a", std::make_shared<AudRecA>(system));
+ server_manager->RegisterNamedService("audrec:u", std::make_shared<AudRecU>(system));
+ server_manager->RegisterNamedService("audren:u", std::make_shared<AudRenU>(system));
+ server_manager->RegisterNamedService("hwopus", std::make_shared<HwOpus>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audio.h b/src/core/hle/service/audio/audio.h
index bbb2214e4..d70f022c7 100644
--- a/src/core/hle/service/audio/audio.h
+++ b/src/core/hle/service/audio/audio.h
@@ -13,7 +13,6 @@ class ServiceManager;
namespace Service::Audio {
-/// Registers all Audio services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audout_a.cpp b/src/core/hle/service/audio/audout_a.cpp
deleted file mode 100644
index 5ecb99236..000000000
--- a/src/core/hle/service/audio/audout_a.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/hle/service/audio/audout_a.h"
-
-namespace Service::Audio {
-
-AudOutA::AudOutA(Core::System& system_) : ServiceFramework{system_, "audout:a"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "RequestSuspend"},
- {1, nullptr, "RequestResume"},
- {2, nullptr, "GetProcessMasterVolume"},
- {3, nullptr, "SetProcessMasterVolume"},
- {4, nullptr, "GetProcessRecordVolume"},
- {5, nullptr, "SetProcessRecordVolume"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
-}
-
-AudOutA::~AudOutA() = default;
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audout_a.h b/src/core/hle/service/audio/audout_a.h
deleted file mode 100644
index f641cffeb..000000000
--- a/src/core/hle/service/audio/audout_a.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/service/service.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::Audio {
-
-class AudOutA final : public ServiceFramework<AudOutA> {
-public:
- explicit AudOutA(Core::System& system_);
- ~AudOutA() override;
-};
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp
index 29751f075..032c8c11f 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -12,10 +12,10 @@
#include "common/string_util.h"
#include "common/swap.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/audio/audout_u.h"
#include "core/hle/service/audio/errors.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/memory.h"
namespace Service::Audio {
@@ -26,9 +26,8 @@ public:
explicit IAudioOut(Core::System& system_, AudioCore::AudioOut::Manager& manager,
size_t session_id, const std::string& device_name,
const AudioOutParameter& in_params, u32 handle, u64 applet_resource_user_id)
- : ServiceFramework{system_, "IAudioOut", ServiceThreadType::CreateNew},
- service_context{system_, "IAudioOut"}, event{service_context.CreateEvent(
- "AudioOutEvent")},
+ : ServiceFramework{system_, "IAudioOut"}, service_context{system_, "IAudioOut"},
+ event{service_context.CreateEvent("AudioOutEvent")},
impl{std::make_shared<AudioCore::AudioOut::Out>(system_, manager, event, session_id)} {
// clang-format off
@@ -50,12 +49,6 @@ public:
};
// clang-format on
RegisterHandlers(functions);
-
- if (impl->GetSystem()
- .Initialize(device_name, in_params, handle, applet_resource_user_id)
- .IsError()) {
- LOG_ERROR(Service_Audio, "Failed to initialize the AudioOut System!");
- }
}
~IAudioOut() override {
@@ -68,7 +61,7 @@ public:
}
private:
- void GetAudioOutState(Kernel::HLERequestContext& ctx) {
+ void GetAudioOutState(HLERequestContext& ctx) {
const auto state = static_cast<u32>(impl->GetState());
LOG_DEBUG(Service_Audio, "called. State={}", state);
@@ -78,7 +71,7 @@ private:
rb.Push(state);
}
- void Start(Kernel::HLERequestContext& ctx) {
+ void Start(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto result = impl->StartSystem();
@@ -87,7 +80,7 @@ private:
rb.Push(result);
}
- void Stop(Kernel::HLERequestContext& ctx) {
+ void Stop(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto result = impl->StopSystem();
@@ -96,7 +89,7 @@ private:
rb.Push(result);
}
- void AppendAudioOutBuffer(Kernel::HLERequestContext& ctx) {
+ void AppendAudioOutBuffer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
u64 tag = rp.PopRaw<u64>();
@@ -118,7 +111,7 @@ private:
rb.Push(result);
}
- void RegisterBufferEvent(Kernel::HLERequestContext& ctx) {
+ void RegisterBufferEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto& buffer_event = impl->GetBufferEvent();
@@ -128,27 +121,21 @@ private:
rb.PushCopyObjects(buffer_event);
}
- void GetReleasedAudioOutBuffers(Kernel::HLERequestContext& ctx) {
+ void GetReleasedAudioOutBuffers(HLERequestContext& ctx) {
const auto write_buffer_size = ctx.GetWriteBufferNumElements<u64>();
- std::vector<u64> released_buffers(write_buffer_size);
+ tmp_buffer.resize_destructive(write_buffer_size);
+ tmp_buffer[0] = 0;
- const auto count = impl->GetReleasedBuffers(released_buffers);
+ const auto count = impl->GetReleasedBuffers(tmp_buffer);
- [[maybe_unused]] std::string tags{};
- for (u32 i = 0; i < count; i++) {
- tags += fmt::format("{:08X}, ", released_buffers[i]);
- }
- [[maybe_unused]] const auto sessionid{impl->GetSystem().GetSessionId()};
- LOG_TRACE(Service_Audio, "called. Session {} released {} buffers: {}", sessionid, count,
- tags);
+ ctx.WriteBuffer(tmp_buffer);
- ctx.WriteBuffer(released_buffers);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(count);
}
- void ContainsAudioOutBuffer(Kernel::HLERequestContext& ctx) {
+ void ContainsAudioOutBuffer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 tag{rp.Pop<u64>()};
@@ -161,7 +148,7 @@ private:
rb.Push(buffer_queued);
}
- void GetAudioOutBufferCount(Kernel::HLERequestContext& ctx) {
+ void GetAudioOutBufferCount(HLERequestContext& ctx) {
const auto buffer_count = impl->GetBufferCount();
LOG_DEBUG(Service_Audio, "called. Buffer count={}", buffer_count);
@@ -172,7 +159,7 @@ private:
rb.Push(buffer_count);
}
- void GetAudioOutPlayedSampleCount(Kernel::HLERequestContext& ctx) {
+ void GetAudioOutPlayedSampleCount(HLERequestContext& ctx) {
const auto samples_played = impl->GetPlayedSampleCount();
LOG_DEBUG(Service_Audio, "called. Played samples={}", samples_played);
@@ -183,7 +170,7 @@ private:
rb.Push(samples_played);
}
- void FlushAudioOutBuffers(Kernel::HLERequestContext& ctx) {
+ void FlushAudioOutBuffers(HLERequestContext& ctx) {
bool flushed{impl->FlushAudioOutBuffers()};
LOG_DEBUG(Service_Audio, "called. Were any buffers flushed? {}", flushed);
@@ -193,7 +180,7 @@ private:
rb.Push(flushed);
}
- void SetAudioOutVolume(Kernel::HLERequestContext& ctx) {
+ void SetAudioOutVolume(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto volume = rp.Pop<f32>();
@@ -205,7 +192,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetAudioOutVolume(Kernel::HLERequestContext& ctx) {
+ void GetAudioOutVolume(HLERequestContext& ctx) {
const auto volume = impl->GetVolume();
LOG_DEBUG(Service_Audio, "called. Volume={}", volume);
@@ -218,12 +205,12 @@ private:
KernelHelpers::ServiceContext service_context;
Kernel::KEvent* event;
std::shared_ptr<AudioCore::AudioOut::Out> impl;
+ Common::ScratchBuffer<u64> tmp_buffer;
};
AudOutU::AudOutU(Core::System& system_)
- : ServiceFramework{system_, "audout:u", ServiceThreadType::CreateNew},
- service_context{system_, "AudOutU"}, impl{std::make_unique<AudioCore::AudioOut::Manager>(
- system_)} {
+ : ServiceFramework{system_, "audout:u"}, service_context{system_, "AudOutU"},
+ impl{std::make_unique<AudioCore::AudioOut::Manager>(system_)} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &AudOutU::ListAudioOuts, "ListAudioOuts"},
@@ -238,7 +225,7 @@ AudOutU::AudOutU(Core::System& system_)
AudOutU::~AudOutU() = default;
-void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) {
+void AudOutU::ListAudioOuts(HLERequestContext& ctx) {
using namespace AudioCore::AudioRenderer;
std::scoped_lock l{impl->mutex};
@@ -260,7 +247,7 @@ void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(static_cast<u32>(device_names.size()));
}
-void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) {
+void AudOutU::OpenAudioOut(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto in_params{rp.PopRaw<AudioOutParameter>()};
auto applet_resource_user_id{rp.PopRaw<u64>()};
@@ -289,6 +276,14 @@ void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) {
auto audio_out = std::make_shared<IAudioOut>(system, *impl, new_session_id, device_name,
in_params, handle, applet_resource_user_id);
+ result = audio_out->GetImpl()->GetSystem().Initialize(device_name, in_params, handle,
+ applet_resource_user_id);
+ if (result.IsError()) {
+ LOG_ERROR(Service_Audio, "Failed to initialize the AudioOut System!");
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
impl->sessions[new_session_id] = audio_out->GetImpl();
impl->applet_resource_user_ids[new_session_id] = applet_resource_user_id;
diff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.h
index fdc0ee754..8f288c6e0 100644
--- a/src/core/hle/service/audio/audout_u.h
+++ b/src/core/hle/service/audio/audout_u.h
@@ -12,10 +12,6 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
namespace AudioCore::AudioOut {
class Manager;
class Out;
@@ -31,8 +27,8 @@ public:
~AudOutU() override;
private:
- void ListAudioOuts(Kernel::HLERequestContext& ctx);
- void OpenAudioOut(Kernel::HLERequestContext& ctx);
+ void ListAudioOuts(HLERequestContext& ctx);
+ void OpenAudioOut(HLERequestContext& ctx);
KernelHelpers::ServiceContext service_context;
std::unique_ptr<AudioCore::AudioOut::Manager> impl;
diff --git a/src/core/hle/service/audio/audren_a.cpp b/src/core/hle/service/audio/audren_a.cpp
deleted file mode 100644
index e775ac3bf..000000000
--- a/src/core/hle/service/audio/audren_a.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/hle/service/audio/audren_a.h"
-
-namespace Service::Audio {
-
-AudRenA::AudRenA(Core::System& system_) : ServiceFramework{system_, "audren:a"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "RequestSuspend"},
- {1, nullptr, "RequestResume"},
- {2, nullptr, "GetProcessMasterVolume"},
- {3, nullptr, "SetProcessMasterVolume"},
- {4, nullptr, "RegisterAppletResourceUserId"},
- {5, nullptr, "UnregisterAppletResourceUserId"},
- {6, nullptr, "GetProcessRecordVolume"},
- {7, nullptr, "SetProcessRecordVolume"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
-}
-
-AudRenA::~AudRenA() = default;
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audren_a.h b/src/core/hle/service/audio/audren_a.h
deleted file mode 100644
index 9e08b4245..000000000
--- a/src/core/hle/service/audio/audren_a.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/service/service.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::Audio {
-
-class AudRenA final : public ServiceFramework<AudRenA> {
-public:
- explicit AudRenA(Core::System& system_);
- ~AudRenA() override;
-};
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp
index 3a1c231b6..12845c23a 100644
--- a/src/core/hle/service/audio/audren_u.cpp
+++ b/src/core/hle/service/audio/audren_u.cpp
@@ -17,12 +17,12 @@
#include "common/polyfill_ranges.h"
#include "common/string_util.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_process.h"
#include "core/hle/kernel/k_transfer_memory.h"
#include "core/hle/service/audio/audren_u.h"
#include "core/hle/service/audio/errors.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/memory.h"
using namespace AudioCore::AudioRenderer;
@@ -35,10 +35,9 @@ public:
AudioCore::AudioRendererParameterInternal& params,
Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size,
u32 process_handle, u64 applet_resource_user_id, s32 session_id)
- : ServiceFramework{system_, "IAudioRenderer", ServiceThreadType::CreateNew},
- service_context{system_, "IAudioRenderer"}, rendered_event{service_context.CreateEvent(
- "IAudioRendererEvent")},
- manager{manager_}, impl{std::make_unique<Renderer>(system_, manager, rendered_event)} {
+ : ServiceFramework{system_, "IAudioRenderer"}, service_context{system_, "IAudioRenderer"},
+ rendered_event{service_context.CreateEvent("IAudioRendererEvent")}, manager{manager_},
+ impl{std::make_unique<Renderer>(system_, manager, rendered_event)} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &IAudioRenderer::GetSampleRate, "GetSampleRate"},
@@ -69,7 +68,7 @@ public:
}
private:
- void GetSampleRate(Kernel::HLERequestContext& ctx) {
+ void GetSampleRate(HLERequestContext& ctx) {
const auto sample_rate{impl->GetSystem().GetSampleRate()};
LOG_DEBUG(Service_Audio, "called. Sample rate {}", sample_rate);
@@ -79,7 +78,7 @@ private:
rb.Push(sample_rate);
}
- void GetSampleCount(Kernel::HLERequestContext& ctx) {
+ void GetSampleCount(HLERequestContext& ctx) {
const auto sample_count{impl->GetSystem().GetSampleCount()};
LOG_DEBUG(Service_Audio, "called. Sample count {}", sample_count);
@@ -89,7 +88,7 @@ private:
rb.Push(sample_count);
}
- void GetState(Kernel::HLERequestContext& ctx) {
+ void GetState(HLERequestContext& ctx) {
const u32 state{!impl->GetSystem().IsActive()};
LOG_DEBUG(Service_Audio, "called, state {}", state);
@@ -99,7 +98,7 @@ private:
rb.Push(state);
}
- void GetMixBufferCount(Kernel::HLERequestContext& ctx) {
+ void GetMixBufferCount(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
const auto buffer_count{impl->GetSystem().GetMixBufferCount()};
@@ -109,36 +108,34 @@ private:
rb.Push(buffer_count);
}
- void RequestUpdate(Kernel::HLERequestContext& ctx) {
+ void RequestUpdate(HLERequestContext& ctx) {
LOG_TRACE(Service_Audio, "called");
- std::vector<u8> input{ctx.ReadBuffer(0)};
+ const auto input{ctx.ReadBuffer(0)};
// These buffers are written manually to avoid an issue with WriteBuffer throwing errors for
// checking size 0. Performance size is 0 for most games.
- std::vector<u8> output{};
- std::vector<u8> performance{};
auto is_buffer_b{ctx.BufferDescriptorB()[0].Size() != 0};
if (is_buffer_b) {
const auto buffersB{ctx.BufferDescriptorB()};
- output.resize(buffersB[0].Size(), 0);
- performance.resize(buffersB[1].Size(), 0);
+ tmp_output.resize_destructive(buffersB[0].Size());
+ tmp_performance.resize_destructive(buffersB[1].Size());
} else {
const auto buffersC{ctx.BufferDescriptorC()};
- output.resize(buffersC[0].Size(), 0);
- performance.resize(buffersC[1].Size(), 0);
+ tmp_output.resize_destructive(buffersC[0].Size());
+ tmp_performance.resize_destructive(buffersC[1].Size());
}
- auto result = impl->RequestUpdate(input, performance, output);
+ auto result = impl->RequestUpdate(input, tmp_performance, tmp_output);
if (result.IsSuccess()) {
if (is_buffer_b) {
- ctx.WriteBufferB(output.data(), output.size(), 0);
- ctx.WriteBufferB(performance.data(), performance.size(), 1);
+ ctx.WriteBufferB(tmp_output.data(), tmp_output.size(), 0);
+ ctx.WriteBufferB(tmp_performance.data(), tmp_performance.size(), 1);
} else {
- ctx.WriteBufferC(output.data(), output.size(), 0);
- ctx.WriteBufferC(performance.data(), performance.size(), 1);
+ ctx.WriteBufferC(tmp_output.data(), tmp_output.size(), 0);
+ ctx.WriteBufferC(tmp_performance.data(), tmp_performance.size(), 1);
}
} else {
LOG_ERROR(Service_Audio, "RequestUpdate failed error 0x{:02X}!", result.description);
@@ -148,7 +145,7 @@ private:
rb.Push(result);
}
- void Start(Kernel::HLERequestContext& ctx) {
+ void Start(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
impl->Start();
@@ -157,7 +154,7 @@ private:
rb.Push(ResultSuccess);
}
- void Stop(Kernel::HLERequestContext& ctx) {
+ void Stop(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
impl->Stop();
@@ -166,12 +163,12 @@ private:
rb.Push(ResultSuccess);
}
- void QuerySystemEvent(Kernel::HLERequestContext& ctx) {
+ void QuerySystemEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
if (impl->GetSystem().GetExecutionMode() == AudioCore::ExecutionMode::Manual) {
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NOT_SUPPORTED);
+ rb.Push(Audio::ResultNotSupported);
return;
}
@@ -180,7 +177,7 @@ private:
rb.PushCopyObjects(rendered_event->GetReadableEvent());
}
- void SetRenderingTimeLimit(Kernel::HLERequestContext& ctx) {
+ void SetRenderingTimeLimit(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
IPC::RequestParser rp{ctx};
@@ -193,7 +190,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetRenderingTimeLimit(Kernel::HLERequestContext& ctx) {
+ void GetRenderingTimeLimit(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto& system_ = impl->GetSystem();
@@ -204,11 +201,11 @@ private:
rb.Push(time);
}
- void ExecuteAudioRendererRendering(Kernel::HLERequestContext& ctx) {
+ void ExecuteAudioRendererRendering(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
}
- void SetVoiceDropParameter(Kernel::HLERequestContext& ctx) {
+ void SetVoiceDropParameter(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
IPC::RequestParser rp{ctx};
@@ -221,7 +218,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetVoiceDropParameter(Kernel::HLERequestContext& ctx) {
+ void GetVoiceDropParameter(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
auto& system_ = impl->GetSystem();
@@ -236,6 +233,8 @@ private:
Kernel::KEvent* rendered_event;
Manager& manager;
std::unique_ptr<Renderer> impl;
+ Common::ScratchBuffer<u8> tmp_output;
+ Common::ScratchBuffer<u8> tmp_performance;
};
class IAudioDevice final : public ServiceFramework<IAudioDevice> {
@@ -243,10 +242,8 @@ class IAudioDevice final : public ServiceFramework<IAudioDevice> {
public:
explicit IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u32 revision,
u32 device_num)
- : ServiceFramework{system_, "IAudioDevice", ServiceThreadType::CreateNew},
- service_context{system_, "IAudioDevice"}, impl{std::make_unique<AudioDevice>(
- system_, applet_resource_user_id,
- revision)},
+ : ServiceFramework{system_, "IAudioDevice"}, service_context{system_, "IAudioDevice"},
+ impl{std::make_unique<AudioDevice>(system_, applet_resource_user_id, revision)},
event{service_context.CreateEvent(fmt::format("IAudioDeviceEvent-{}", device_num))} {
static const FunctionInfo functions[] = {
{0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"},
@@ -274,7 +271,7 @@ public:
}
private:
- void ListAudioDeviceName(Kernel::HLERequestContext& ctx) {
+ void ListAudioDeviceName(HLERequestContext& ctx) {
const size_t in_count = ctx.GetWriteBufferNumElements<AudioDevice::AudioDeviceName>();
std::vector<AudioDevice::AudioDeviceName> out_names{};
@@ -302,7 +299,7 @@ private:
rb.Push(out_count);
}
- void SetAudioDeviceOutputVolume(Kernel::HLERequestContext& ctx) {
+ void SetAudioDeviceOutputVolume(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const f32 volume = rp.Pop<f32>();
@@ -319,7 +316,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetAudioDeviceOutputVolume(Kernel::HLERequestContext& ctx) {
+ void GetAudioDeviceOutputVolume(HLERequestContext& ctx) {
const auto device_name_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(device_name_buffer);
@@ -335,7 +332,7 @@ private:
rb.Push(volume);
}
- void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) {
+ void GetActiveAudioDeviceName(HLERequestContext& ctx) {
const auto write_size = ctx.GetWriteBufferSize();
std::string out_name{"AudioTvOutput"};
@@ -349,7 +346,7 @@ private:
rb.Push(ResultSuccess);
}
- void QueryAudioDeviceSystemEvent(Kernel::HLERequestContext& ctx) {
+ void QueryAudioDeviceSystemEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "(STUBBED) called");
event->Signal();
@@ -359,7 +356,7 @@ private:
rb.PushCopyObjects(event->GetReadableEvent());
}
- void GetActiveChannelCount(Kernel::HLERequestContext& ctx) {
+ void GetActiveChannelCount(HLERequestContext& ctx) {
const auto& sink{system.AudioCore().GetOutputSink()};
u32 channel_count{sink.GetDeviceChannels()};
@@ -371,7 +368,7 @@ private:
rb.Push<u32>(channel_count);
}
- void QueryAudioDeviceInputEvent(Kernel::HLERequestContext& ctx) {
+ void QueryAudioDeviceInputEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -379,7 +376,7 @@ private:
rb.PushCopyObjects(event->GetReadableEvent());
}
- void QueryAudioDeviceOutputEvent(Kernel::HLERequestContext& ctx) {
+ void QueryAudioDeviceOutputEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -387,7 +384,7 @@ private:
rb.PushCopyObjects(event->GetReadableEvent());
}
- void ListAudioOutputDeviceName(Kernel::HLERequestContext& ctx) {
+ void ListAudioOutputDeviceName(HLERequestContext& ctx) {
const size_t in_count = ctx.GetWriteBufferNumElements<AudioDevice::AudioDeviceName>();
std::vector<AudioDevice::AudioDeviceName> out_names{};
@@ -421,7 +418,7 @@ private:
};
AudRenU::AudRenU(Core::System& system_)
- : ServiceFramework{system_, "audren:u", ServiceThreadType::CreateNew},
+ : ServiceFramework{system_, "audren:u"},
service_context{system_, "audren:u"}, impl{std::make_unique<Manager>(system_)} {
// clang-format off
static const FunctionInfo functions[] = {
@@ -438,7 +435,7 @@ AudRenU::AudRenU(Core::System& system_)
AudRenU::~AudRenU() = default;
-void AudRenU::OpenAudioRenderer(Kernel::HLERequestContext& ctx) {
+void AudRenU::OpenAudioRenderer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
AudioCore::AudioRendererParameterInternal params;
@@ -451,11 +448,11 @@ void AudRenU::OpenAudioRenderer(Kernel::HLERequestContext& ctx) {
if (impl->GetSessionCount() + 1 > AudioCore::MaxRendererSessions) {
LOG_ERROR(Service_Audio, "Too many AudioRenderer sessions open!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_MAXIMUM_SESSIONS_REACHED);
+ rb.Push(Audio::ResultOutOfSessions);
return;
}
- const auto& handle_table{system.CurrentProcess()->GetHandleTable()};
+ const auto& handle_table{system.ApplicationProcess()->GetHandleTable()};
auto process{handle_table.GetObject<Kernel::KProcess>(process_handle)};
auto transfer_memory{
process->GetHandleTable().GetObject<Kernel::KTransferMemory>(transfer_memory_handle)};
@@ -464,7 +461,7 @@ void AudRenU::OpenAudioRenderer(Kernel::HLERequestContext& ctx) {
if (session_id == -1) {
LOG_ERROR(Service_Audio, "Tried to open a session that's already in use!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_MAXIMUM_SESSIONS_REACHED);
+ rb.Push(Audio::ResultOutOfSessions);
return;
}
@@ -478,7 +475,7 @@ void AudRenU::OpenAudioRenderer(Kernel::HLERequestContext& ctx) {
applet_resource_user_id, session_id);
}
-void AudRenU::GetWorkBufferSize(Kernel::HLERequestContext& ctx) {
+void AudRenU::GetWorkBufferSize(HLERequestContext& ctx) {
AudioCore::AudioRendererParameterInternal params;
IPC::RequestParser rp{ctx};
@@ -509,7 +506,7 @@ void AudRenU::GetWorkBufferSize(Kernel::HLERequestContext& ctx) {
rb.Push<u64>(size);
}
-void AudRenU::GetAudioDeviceService(Kernel::HLERequestContext& ctx) {
+void AudRenU::GetAudioDeviceService(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id = rp.Pop<u64>();
@@ -523,11 +520,11 @@ void AudRenU::GetAudioDeviceService(Kernel::HLERequestContext& ctx) {
::Common::MakeMagic('R', 'E', 'V', '1'), num_audio_devices++);
}
-void AudRenU::OpenAudioRendererForManualExecution(Kernel::HLERequestContext& ctx) {
+void AudRenU::OpenAudioRendererForManualExecution(HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
}
-void AudRenU::GetAudioDeviceServiceWithRevisionInfo(Kernel::HLERequestContext& ctx) {
+void AudRenU::GetAudioDeviceServiceWithRevisionInfo(HLERequestContext& ctx) {
struct Parameters {
u32 revision;
u64 applet_resource_user_id;
diff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.h
index 4384a9b3c..d8e9c8719 100644
--- a/src/core/hle/service/audio/audren_u.h
+++ b/src/core/hle/service/audio/audren_u.h
@@ -4,6 +4,7 @@
#pragma once
#include "audio_core/audio_render_manager.h"
+#include "common/scratch_buffer.h"
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/service.h"
@@ -11,10 +12,6 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
namespace Service::Audio {
class IAudioRenderer;
@@ -24,11 +21,11 @@ public:
~AudRenU() override;
private:
- void OpenAudioRenderer(Kernel::HLERequestContext& ctx);
- void GetWorkBufferSize(Kernel::HLERequestContext& ctx);
- void GetAudioDeviceService(Kernel::HLERequestContext& ctx);
- void OpenAudioRendererForManualExecution(Kernel::HLERequestContext& ctx);
- void GetAudioDeviceServiceWithRevisionInfo(Kernel::HLERequestContext& ctx);
+ void OpenAudioRenderer(HLERequestContext& ctx);
+ void GetWorkBufferSize(HLERequestContext& ctx);
+ void GetAudioDeviceService(HLERequestContext& ctx);
+ void OpenAudioRendererForManualExecution(HLERequestContext& ctx);
+ void GetAudioDeviceServiceWithRevisionInfo(HLERequestContext& ctx);
KernelHelpers::ServiceContext service_context;
std::unique_ptr<AudioCore::AudioRenderer::Manager> impl;
diff --git a/src/core/hle/service/audio/codecctl.cpp b/src/core/hle/service/audio/codecctl.cpp
deleted file mode 100644
index 81b956d7e..000000000
--- a/src/core/hle/service/audio/codecctl.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/hle/service/audio/codecctl.h"
-
-namespace Service::Audio {
-
-CodecCtl::CodecCtl(Core::System& system_) : ServiceFramework{system_, "codecctl"} {
- static const FunctionInfo functions[] = {
- {0, nullptr, "Initialize"},
- {1, nullptr, "Finalize"},
- {2, nullptr, "Sleep"},
- {3, nullptr, "Wake"},
- {4, nullptr, "SetVolume"},
- {5, nullptr, "GetVolumeMax"},
- {6, nullptr, "GetVolumeMin"},
- {7, nullptr, "SetActiveTarget"},
- {8, nullptr, "GetActiveTarget"},
- {9, nullptr, "BindHeadphoneMicJackInterrupt"},
- {10, nullptr, "IsHeadphoneMicJackInserted"},
- {11, nullptr, "ClearHeadphoneMicJackInterrupt"},
- {12, nullptr, "IsRequested"},
- };
- RegisterHandlers(functions);
-}
-
-CodecCtl::~CodecCtl() = default;
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/codecctl.h b/src/core/hle/service/audio/codecctl.h
deleted file mode 100644
index 34da98212..000000000
--- a/src/core/hle/service/audio/codecctl.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/service/service.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::Audio {
-
-class CodecCtl final : public ServiceFramework<CodecCtl> {
-public:
- explicit CodecCtl(Core::System& system_);
- ~CodecCtl() override;
-};
-
-} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/errors.h b/src/core/hle/service/audio/errors.h
index d706978cb..3d3d3d97a 100644
--- a/src/core/hle/service/audio/errors.h
+++ b/src/core/hle/service/audio/errors.h
@@ -7,17 +7,17 @@
namespace Service::Audio {
-constexpr Result ERR_INVALID_DEVICE_NAME{ErrorModule::Audio, 1};
-constexpr Result ERR_OPERATION_FAILED{ErrorModule::Audio, 2};
-constexpr Result ERR_INVALID_SAMPLE_RATE{ErrorModule::Audio, 3};
-constexpr Result ERR_INSUFFICIENT_BUFFER_SIZE{ErrorModule::Audio, 4};
-constexpr Result ERR_MAXIMUM_SESSIONS_REACHED{ErrorModule::Audio, 5};
-constexpr Result ERR_BUFFER_COUNT_EXCEEDED{ErrorModule::Audio, 8};
-constexpr Result ERR_INVALID_CHANNEL_COUNT{ErrorModule::Audio, 10};
-constexpr Result ERR_INVALID_UPDATE_DATA{ErrorModule::Audio, 41};
-constexpr Result ERR_POOL_MAPPING_FAILED{ErrorModule::Audio, 42};
-constexpr Result ERR_NOT_SUPPORTED{ErrorModule::Audio, 513};
-constexpr Result ERR_INVALID_PROCESS_HANDLE{ErrorModule::Audio, 1536};
-constexpr Result ERR_INVALID_REVISION{ErrorModule::Audio, 1537};
+constexpr Result ResultNotFound{ErrorModule::Audio, 1};
+constexpr Result ResultOperationFailed{ErrorModule::Audio, 2};
+constexpr Result ResultInvalidSampleRate{ErrorModule::Audio, 3};
+constexpr Result ResultInsufficientBuffer{ErrorModule::Audio, 4};
+constexpr Result ResultOutOfSessions{ErrorModule::Audio, 5};
+constexpr Result ResultBufferCountReached{ErrorModule::Audio, 8};
+constexpr Result ResultInvalidChannelCount{ErrorModule::Audio, 10};
+constexpr Result ResultInvalidUpdateInfo{ErrorModule::Audio, 41};
+constexpr Result ResultInvalidAddressInfo{ErrorModule::Audio, 42};
+constexpr Result ResultNotSupported{ErrorModule::Audio, 513};
+constexpr Result ResultInvalidHandle{ErrorModule::Audio, 1536};
+constexpr Result ResultInvalidRevision{ErrorModule::Audio, 1537};
} // namespace Service::Audio
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp
index 825fb8bcc..c835f6cb7 100644
--- a/src/core/hle/service/audio/hwopus.cpp
+++ b/src/core/hle/service/audio/hwopus.cpp
@@ -11,8 +11,8 @@
#include "common/assert.h"
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/audio/hwopus.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Audio {
namespace {
@@ -53,7 +53,7 @@ public:
// Decodes interleaved Opus packets. Optionally allows reporting time taken to
// perform the decoding, as well as any relevant extra behavior.
- void DecodeInterleaved(Kernel::HLERequestContext& ctx, PerfTime perf_time,
+ void DecodeInterleaved(HLERequestContext& ctx, PerfTime perf_time,
ExtraBehavior extra_behavior) {
if (perf_time == PerfTime::Disabled) {
DecodeInterleavedHelper(ctx, nullptr, extra_behavior);
@@ -64,17 +64,17 @@ public:
}
private:
- void DecodeInterleavedHelper(Kernel::HLERequestContext& ctx, u64* performance,
+ void DecodeInterleavedHelper(HLERequestContext& ctx, u64* performance,
ExtraBehavior extra_behavior) {
u32 consumed = 0;
u32 sample_count = 0;
- std::vector<opus_int16> samples(ctx.GetWriteBufferNumElements<opus_int16>());
+ tmp_samples.resize_destructive(ctx.GetWriteBufferNumElements<opus_int16>());
if (extra_behavior == ExtraBehavior::ResetContext) {
ResetDecoderContext();
}
- if (!DecodeOpusData(consumed, sample_count, ctx.ReadBuffer(), samples, performance)) {
+ if (!DecodeOpusData(consumed, sample_count, ctx.ReadBuffer(), tmp_samples, performance)) {
LOG_ERROR(Audio, "Failed to decode opus data");
IPC::ResponseBuilder rb{ctx, 2};
// TODO(ogniK): Use correct error code
@@ -90,11 +90,11 @@ private:
if (performance) {
rb.Push<u64>(*performance);
}
- ctx.WriteBuffer(samples);
+ ctx.WriteBuffer(tmp_samples);
}
- bool DecodeOpusData(u32& consumed, u32& sample_count, const std::vector<u8>& input,
- std::vector<opus_int16>& output, u64* out_performance_time) const {
+ bool DecodeOpusData(u32& consumed, u32& sample_count, std::span<const u8> input,
+ std::span<opus_int16> output, u64* out_performance_time) const {
const auto start_time = std::chrono::steady_clock::now();
const std::size_t raw_output_sz = output.size() * sizeof(opus_int16);
if (sizeof(OpusPacketHeader) > input.size()) {
@@ -154,6 +154,7 @@ private:
OpusDecoderPtr decoder;
u32 sample_rate;
u32 channel_count;
+ Common::ScratchBuffer<opus_int16> tmp_samples;
};
class IHardwareOpusDecoderManager final : public ServiceFramework<IHardwareOpusDecoderManager> {
@@ -180,21 +181,21 @@ public:
}
private:
- void DecodeInterleavedOld(Kernel::HLERequestContext& ctx) {
+ void DecodeInterleavedOld(HLERequestContext& ctx) {
LOG_DEBUG(Audio, "called");
decoder_state.DecodeInterleaved(ctx, OpusDecoderState::PerfTime::Disabled,
OpusDecoderState::ExtraBehavior::None);
}
- void DecodeInterleavedWithPerfOld(Kernel::HLERequestContext& ctx) {
+ void DecodeInterleavedWithPerfOld(HLERequestContext& ctx) {
LOG_DEBUG(Audio, "called");
decoder_state.DecodeInterleaved(ctx, OpusDecoderState::PerfTime::Enabled,
OpusDecoderState::ExtraBehavior::None);
}
- void DecodeInterleaved(Kernel::HLERequestContext& ctx) {
+ void DecodeInterleaved(HLERequestContext& ctx) {
LOG_DEBUG(Audio, "called");
IPC::RequestParser rp{ctx};
@@ -231,7 +232,7 @@ std::array<u8, 2> CreateMappingTable(u32 channel_count) {
}
} // Anonymous namespace
-void HwOpus::GetWorkBufferSize(Kernel::HLERequestContext& ctx) {
+void HwOpus::GetWorkBufferSize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto sample_rate = rp.Pop<u32>();
const auto channel_count = rp.Pop<u32>();
@@ -251,11 +252,11 @@ void HwOpus::GetWorkBufferSize(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(worker_buffer_sz);
}
-void HwOpus::GetWorkBufferSizeEx(Kernel::HLERequestContext& ctx) {
+void HwOpus::GetWorkBufferSizeEx(HLERequestContext& ctx) {
GetWorkBufferSize(ctx);
}
-void HwOpus::GetWorkBufferSizeForMultiStreamEx(Kernel::HLERequestContext& ctx) {
+void HwOpus::GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx) {
OpusMultiStreamParametersEx param;
std::memcpy(&param, ctx.ReadBuffer().data(), ctx.GetReadBufferSize());
@@ -281,7 +282,7 @@ void HwOpus::GetWorkBufferSizeForMultiStreamEx(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(worker_buffer_sz);
}
-void HwOpus::OpenHardwareOpusDecoder(Kernel::HLERequestContext& ctx) {
+void HwOpus::OpenHardwareOpusDecoder(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto sample_rate = rp.Pop<u32>();
const auto channel_count = rp.Pop<u32>();
@@ -319,7 +320,7 @@ void HwOpus::OpenHardwareOpusDecoder(Kernel::HLERequestContext& ctx) {
system, OpusDecoderState{std::move(decoder), sample_rate, channel_count});
}
-void HwOpus::OpenHardwareOpusDecoderEx(Kernel::HLERequestContext& ctx) {
+void HwOpus::OpenHardwareOpusDecoderEx(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto sample_rate = rp.Pop<u32>();
const auto channel_count = rp.Pop<u32>();
@@ -362,6 +363,8 @@ HwOpus::HwOpus(Core::System& system_) : ServiceFramework{system_, "hwopus"} {
{5, &HwOpus::GetWorkBufferSizeEx, "GetWorkBufferSizeEx"},
{6, nullptr, "OpenHardwareOpusDecoderForMultiStreamEx"},
{7, &HwOpus::GetWorkBufferSizeForMultiStreamEx, "GetWorkBufferSizeForMultiStreamEx"},
+ {8, nullptr, "GetWorkBufferSizeExEx"},
+ {9, nullptr, "GetWorkBufferSizeForMultiStreamExEx"},
};
RegisterHandlers(functions);
}
diff --git a/src/core/hle/service/audio/hwopus.h b/src/core/hle/service/audio/hwopus.h
index e6092e290..ece65c02c 100644
--- a/src/core/hle/service/audio/hwopus.h
+++ b/src/core/hle/service/audio/hwopus.h
@@ -27,11 +27,11 @@ public:
~HwOpus() override;
private:
- void OpenHardwareOpusDecoder(Kernel::HLERequestContext& ctx);
- void OpenHardwareOpusDecoderEx(Kernel::HLERequestContext& ctx);
- void GetWorkBufferSize(Kernel::HLERequestContext& ctx);
- void GetWorkBufferSizeEx(Kernel::HLERequestContext& ctx);
- void GetWorkBufferSizeForMultiStreamEx(Kernel::HLERequestContext& ctx);
+ void OpenHardwareOpusDecoder(HLERequestContext& ctx);
+ void OpenHardwareOpusDecoderEx(HLERequestContext& ctx);
+ void GetWorkBufferSize(HLERequestContext& ctx);
+ void GetWorkBufferSizeEx(HLERequestContext& ctx);
+ void GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx);
};
} // namespace Service::Audio
diff --git a/src/core/hle/service/bcat/bcat_module.cpp b/src/core/hle/service/bcat/bcat_module.cpp
index cbe690a5d..a6281913a 100644
--- a/src/core/hle/service/bcat/bcat_module.cpp
+++ b/src/core/hle/service/bcat/bcat_module.cpp
@@ -9,12 +9,13 @@
#include "common/string_util.h"
#include "core/core.h"
#include "core/file_sys/vfs.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_readable_event.h"
#include "core/hle/service/bcat/backend/backend.h"
#include "core/hle/service/bcat/bcat.h"
#include "core/hle/service/bcat/bcat_module.h"
#include "core/hle/service/filesystem/filesystem.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
namespace Service::BCAT {
@@ -50,8 +51,7 @@ BCATDigest DigestFile(const FileSys::VirtualFile& file) {
// For a name to be valid it must be non-empty, must have a null terminating character as the final
// char, can only contain numbers, letters, underscores and a hyphen if directory and a period if
// file.
-bool VerifyNameValidInternal(Kernel::HLERequestContext& ctx, std::array<char, 0x20> name,
- char match_char) {
+bool VerifyNameValidInternal(HLERequestContext& ctx, std::array<char, 0x20> name, char match_char) {
const auto null_chars = std::count(name.begin(), name.end(), 0);
const auto bad_chars = std::count_if(name.begin(), name.end(), [match_char](char c) {
return !std::isalnum(static_cast<u8>(c)) && c != '_' && c != match_char && c != '\0';
@@ -66,11 +66,11 @@ bool VerifyNameValidInternal(Kernel::HLERequestContext& ctx, std::array<char, 0x
return true;
}
-bool VerifyNameValidDir(Kernel::HLERequestContext& ctx, DirectoryName name) {
+bool VerifyNameValidDir(HLERequestContext& ctx, DirectoryName name) {
return VerifyNameValidInternal(ctx, name, '-');
}
-bool VerifyNameValidFile(Kernel::HLERequestContext& ctx, FileName name) {
+bool VerifyNameValidFile(HLERequestContext& ctx, FileName name) {
return VerifyNameValidInternal(ctx, name, '.');
}
@@ -98,7 +98,7 @@ public:
}
private:
- void GetEvent(Kernel::HLERequestContext& ctx) {
+ void GetEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -106,7 +106,7 @@ private:
rb.PushCopyObjects(event);
}
- void GetImpl(Kernel::HLERequestContext& ctx) {
+ void GetImpl(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
ctx.WriteBuffer(impl);
@@ -173,11 +173,11 @@ private:
progress_backend.GetImpl());
}
- void RequestSyncDeliveryCache(Kernel::HLERequestContext& ctx) {
+ void RequestSyncDeliveryCache(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
- backend.Synchronize({system.GetCurrentProcessProgramID(),
- GetCurrentBuildID(system.GetCurrentProcessBuildID())},
+ backend.Synchronize({system.GetApplicationProcessProgramID(),
+ GetCurrentBuildID(system.GetApplicationProcessBuildID())},
GetProgressBackend(SyncType::Normal));
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -185,7 +185,7 @@ private:
rb.PushIpcInterface(CreateProgressService(SyncType::Normal));
}
- void RequestSyncDeliveryCacheWithDirectoryName(Kernel::HLERequestContext& ctx) {
+ void RequestSyncDeliveryCacheWithDirectoryName(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto name_raw = rp.PopRaw<DirectoryName>();
const auto name =
@@ -193,8 +193,8 @@ private:
LOG_DEBUG(Service_BCAT, "called, name={}", name);
- backend.SynchronizeDirectory({system.GetCurrentProcessProgramID(),
- GetCurrentBuildID(system.GetCurrentProcessBuildID())},
+ backend.SynchronizeDirectory({system.GetApplicationProcessProgramID(),
+ GetCurrentBuildID(system.GetApplicationProcessBuildID())},
name, GetProgressBackend(SyncType::Directory));
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -202,7 +202,7 @@ private:
rb.PushIpcInterface(CreateProgressService(SyncType::Directory));
}
- void SetPassphrase(Kernel::HLERequestContext& ctx) {
+ void SetPassphrase(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto title_id = rp.PopRaw<u64>();
@@ -234,7 +234,7 @@ private:
rb.Push(ResultSuccess);
}
- void ClearDeliveryCacheStorage(Kernel::HLERequestContext& ctx) {
+ void ClearDeliveryCacheStorage(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto title_id = rp.PopRaw<u64>();
@@ -270,7 +270,7 @@ private:
std::array<ProgressServiceBackend, static_cast<size_t>(SyncType::Count)> progress;
};
-void Module::Interface::CreateBcatService(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CreateBcatService(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -295,7 +295,7 @@ public:
}
private:
- void Open(Kernel::HLERequestContext& ctx) {
+ void Open(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto dir_name_raw = rp.PopRaw<DirectoryName>();
const auto file_name_raw = rp.PopRaw<FileName>();
@@ -339,7 +339,7 @@ private:
rb.Push(ResultSuccess);
}
- void Read(Kernel::HLERequestContext& ctx) {
+ void Read(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto offset{rp.PopRaw<u64>()};
@@ -362,7 +362,7 @@ private:
rb.Push<u64>(buffer.size());
}
- void GetSize(Kernel::HLERequestContext& ctx) {
+ void GetSize(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
if (current_file == nullptr) {
@@ -376,7 +376,7 @@ private:
rb.Push<u64>(current_file->GetSize());
}
- void GetDigest(Kernel::HLERequestContext& ctx) {
+ void GetDigest(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
if (current_file == nullptr) {
@@ -411,7 +411,7 @@ public:
}
private:
- void Open(Kernel::HLERequestContext& ctx) {
+ void Open(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto name_raw = rp.PopRaw<DirectoryName>();
const auto name =
@@ -442,7 +442,7 @@ private:
rb.Push(ResultSuccess);
}
- void Read(Kernel::HLERequestContext& ctx) {
+ void Read(HLERequestContext& ctx) {
auto write_size = ctx.GetWriteBufferNumElements<DeliveryCacheDirectoryEntry>();
LOG_DEBUG(Service_BCAT, "called, write_size={:016X}", write_size);
@@ -472,7 +472,7 @@ private:
rb.Push(static_cast<u32>(write_size * sizeof(DeliveryCacheDirectoryEntry)));
}
- void GetCount(Kernel::HLERequestContext& ctx) {
+ void GetCount(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
if (current_dir == nullptr) {
@@ -516,7 +516,7 @@ public:
}
private:
- void CreateFileService(Kernel::HLERequestContext& ctx) {
+ void CreateFileService(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -524,7 +524,7 @@ private:
rb.PushIpcInterface<IDeliveryCacheFileService>(system, root);
}
- void CreateDirectoryService(Kernel::HLERequestContext& ctx) {
+ void CreateDirectoryService(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -532,7 +532,7 @@ private:
rb.PushIpcInterface<IDeliveryCacheDirectoryService>(system, root);
}
- void EnumerateDeliveryCacheDirectory(Kernel::HLERequestContext& ctx) {
+ void EnumerateDeliveryCacheDirectory(HLERequestContext& ctx) {
auto size = ctx.GetWriteBufferNumElements<DirectoryName>();
LOG_DEBUG(Service_BCAT, "called, size={:016X}", size);
@@ -551,17 +551,16 @@ private:
u64 next_read_index = 0;
};
-void Module::Interface::CreateDeliveryCacheStorageService(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CreateDeliveryCacheStorageService(HLERequestContext& ctx) {
LOG_DEBUG(Service_BCAT, "called");
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IDeliveryCacheStorageService>(system, fsc.GetBCATDirectory(title_id));
}
-void Module::Interface::CreateDeliveryCacheStorageServiceWithApplicationId(
- Kernel::HLERequestContext& ctx) {
+void Module::Interface::CreateDeliveryCacheStorageServiceWithApplicationId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto title_id = rp.PopRaw<u64>();
@@ -585,16 +584,23 @@ Module::Interface::Interface(Core::System& system_, std::shared_ptr<Module> modu
Module::Interface::~Interface() = default;
-void InstallInterfaces(Core::System& system) {
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
auto module = std::make_shared<Module>();
- std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:a")
- ->InstallAsService(system.ServiceManager());
- std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:m")
- ->InstallAsService(system.ServiceManager());
- std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:u")
- ->InstallAsService(system.ServiceManager());
- std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:s")
- ->InstallAsService(system.ServiceManager());
+
+ server_manager->RegisterNamedService(
+ "bcat:a",
+ std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:a"));
+ server_manager->RegisterNamedService(
+ "bcat:m",
+ std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:m"));
+ server_manager->RegisterNamedService(
+ "bcat:u",
+ std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:u"));
+ server_manager->RegisterNamedService(
+ "bcat:s",
+ std::make_shared<BCAT>(system, module, system.GetFileSystemController(), "bcat:s"));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::BCAT
diff --git a/src/core/hle/service/bcat/bcat_module.h b/src/core/hle/service/bcat/bcat_module.h
index b2fcf9bfb..87576288b 100644
--- a/src/core/hle/service/bcat/bcat_module.h
+++ b/src/core/hle/service/bcat/bcat_module.h
@@ -27,9 +27,9 @@ public:
FileSystem::FileSystemController& fsc_, const char* name);
~Interface() override;
- void CreateBcatService(Kernel::HLERequestContext& ctx);
- void CreateDeliveryCacheStorageService(Kernel::HLERequestContext& ctx);
- void CreateDeliveryCacheStorageServiceWithApplicationId(Kernel::HLERequestContext& ctx);
+ void CreateBcatService(HLERequestContext& ctx);
+ void CreateDeliveryCacheStorageService(HLERequestContext& ctx);
+ void CreateDeliveryCacheStorageServiceWithApplicationId(HLERequestContext& ctx);
protected:
FileSystem::FileSystemController& fsc;
@@ -39,8 +39,7 @@ public:
};
};
-/// Registers all BCAT services with the specified service manager.
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace BCAT
diff --git a/src/core/hle/service/bpc/bpc.cpp b/src/core/hle/service/bpc/bpc.cpp
index 466163538..91b15e256 100644
--- a/src/core/hle/service/bpc/bpc.cpp
+++ b/src/core/hle/service/bpc/bpc.cpp
@@ -4,8 +4,8 @@
#include <memory>
#include "core/hle/service/bpc/bpc.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::BPC {
@@ -54,9 +54,12 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<BPC>(system)->InstallAsService(sm);
- std::make_shared<BPC_R>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("bpc", std::make_shared<BPC>(system));
+ server_manager->RegisterNamedService("bpc:r", std::make_shared<BPC_R>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::BPC
diff --git a/src/core/hle/service/bpc/bpc.h b/src/core/hle/service/bpc/bpc.h
index 8adc2f962..524391ddb 100644
--- a/src/core/hle/service/bpc/bpc.h
+++ b/src/core/hle/service/bpc/bpc.h
@@ -13,6 +13,6 @@ class ServiceManager;
namespace Service::BPC {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::BPC
diff --git a/src/core/hle/service/btdrv/btdrv.cpp b/src/core/hle/service/btdrv/btdrv.cpp
index ec7e5320c..38cdd57ad 100644
--- a/src/core/hle/service/btdrv/btdrv.cpp
+++ b/src/core/hle/service/btdrv/btdrv.cpp
@@ -3,10 +3,11 @@
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/btdrv/btdrv.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/hle/service/sm/sm.h"
@@ -40,7 +41,7 @@ public:
}
private:
- void RegisterBleEvent(Kernel::HLERequestContext& ctx) {
+ void RegisterBleEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_BTM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -196,9 +197,12 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<BtDrv>(system)->InstallAsService(sm);
- std::make_shared<Bt>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("btdrv", std::make_shared<BtDrv>(system));
+ server_manager->RegisterNamedService("bt", std::make_shared<Bt>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::BtDrv
diff --git a/src/core/hle/service/btdrv/btdrv.h b/src/core/hle/service/btdrv/btdrv.h
index 9cbe2926f..42713860e 100644
--- a/src/core/hle/service/btdrv/btdrv.h
+++ b/src/core/hle/service/btdrv/btdrv.h
@@ -13,7 +13,6 @@ class System;
namespace Service::BtDrv {
-/// Registers all BtDrv services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::BtDrv
diff --git a/src/core/hle/service/btm/btm.cpp b/src/core/hle/service/btm/btm.cpp
index eebf85e03..8069f75b7 100644
--- a/src/core/hle/service/btm/btm.cpp
+++ b/src/core/hle/service/btm/btm.cpp
@@ -5,10 +5,11 @@
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/btm/btm.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
namespace Service::BTM {
@@ -69,35 +70,39 @@ public:
}
private:
- void AcquireBleScanEvent(Kernel::HLERequestContext& ctx) {
+ void AcquireBleScanEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_BTM, "(STUBBED) called");
- IPC::ResponseBuilder rb{ctx, 2, 1};
+ IPC::ResponseBuilder rb{ctx, 3, 1};
rb.Push(ResultSuccess);
+ rb.Push(true);
rb.PushCopyObjects(scan_event->GetReadableEvent());
}
- void AcquireBleConnectionEvent(Kernel::HLERequestContext& ctx) {
+ void AcquireBleConnectionEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_BTM, "(STUBBED) called");
- IPC::ResponseBuilder rb{ctx, 2, 1};
+ IPC::ResponseBuilder rb{ctx, 3, 1};
rb.Push(ResultSuccess);
+ rb.Push(true);
rb.PushCopyObjects(connection_event->GetReadableEvent());
}
- void AcquireBleServiceDiscoveryEvent(Kernel::HLERequestContext& ctx) {
+ void AcquireBleServiceDiscoveryEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_BTM, "(STUBBED) called");
- IPC::ResponseBuilder rb{ctx, 2, 1};
+ IPC::ResponseBuilder rb{ctx, 3, 1};
rb.Push(ResultSuccess);
+ rb.Push(true);
rb.PushCopyObjects(service_discovery_event->GetReadableEvent());
}
- void AcquireBleMtuConfigEvent(Kernel::HLERequestContext& ctx) {
+ void AcquireBleMtuConfigEvent(HLERequestContext& ctx) {
LOG_WARNING(Service_BTM, "(STUBBED) called");
- IPC::ResponseBuilder rb{ctx, 2, 1};
+ IPC::ResponseBuilder rb{ctx, 3, 1};
rb.Push(ResultSuccess);
+ rb.Push(true);
rb.PushCopyObjects(config_event->GetReadableEvent());
}
@@ -121,7 +126,7 @@ public:
}
private:
- void GetCore(Kernel::HLERequestContext& ctx) {
+ void GetCore(HLERequestContext& ctx) {
LOG_DEBUG(Service_BTM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -302,7 +307,7 @@ public:
}
private:
- void GetCore(Kernel::HLERequestContext& ctx) {
+ void GetCore(HLERequestContext& ctx) {
LOG_DEBUG(Service_BTM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -311,11 +316,14 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<BTM>(system)->InstallAsService(sm);
- std::make_shared<BTM_DBG>(system)->InstallAsService(sm);
- std::make_shared<BTM_SYS>(system)->InstallAsService(sm);
- std::make_shared<BTM_USR>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("btm", std::make_shared<BTM>(system));
+ server_manager->RegisterNamedService("btm:dbg", std::make_shared<BTM_DBG>(system));
+ server_manager->RegisterNamedService("btm:sys", std::make_shared<BTM_SYS>(system));
+ server_manager->RegisterNamedService("btm:u", std::make_shared<BTM_USR>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::BTM
diff --git a/src/core/hle/service/btm/btm.h b/src/core/hle/service/btm/btm.h
index 9dcda1848..a99b34364 100644
--- a/src/core/hle/service/btm/btm.h
+++ b/src/core/hle/service/btm/btm.h
@@ -13,6 +13,6 @@ class System;
namespace Service::BTM {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::BTM
diff --git a/src/core/hle/service/caps/caps.cpp b/src/core/hle/service/caps/caps.cpp
index 13940a8c9..610fe9940 100644
--- a/src/core/hle/service/caps/caps.cpp
+++ b/src/core/hle/service/caps/caps.cpp
@@ -8,17 +8,21 @@
#include "core/hle/service/caps/caps_ss.h"
#include "core/hle/service/caps/caps_su.h"
#include "core/hle/service/caps/caps_u.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
namespace Service::Capture {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<CAPS_A>(system)->InstallAsService(sm);
- std::make_shared<CAPS_C>(system)->InstallAsService(sm);
- std::make_shared<CAPS_U>(system)->InstallAsService(sm);
- std::make_shared<CAPS_SC>(system)->InstallAsService(sm);
- std::make_shared<CAPS_SS>(system)->InstallAsService(sm);
- std::make_shared<CAPS_SU>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("caps:a", std::make_shared<CAPS_A>(system));
+ server_manager->RegisterNamedService("caps:c", std::make_shared<CAPS_C>(system));
+ server_manager->RegisterNamedService("caps:u", std::make_shared<CAPS_U>(system));
+ server_manager->RegisterNamedService("caps:sc", std::make_shared<CAPS_SC>(system));
+ server_manager->RegisterNamedService("caps:ss", std::make_shared<CAPS_SS>(system));
+ server_manager->RegisterNamedService("caps:su", std::make_shared<CAPS_SU>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Capture
diff --git a/src/core/hle/service/caps/caps.h b/src/core/hle/service/caps/caps.h
index 3e89c82cb..15f0ecfaa 100644
--- a/src/core/hle/service/caps/caps.h
+++ b/src/core/hle/service/caps/caps.h
@@ -90,7 +90,6 @@ struct ApplicationAlbumFileEntry {
static_assert(sizeof(ApplicationAlbumFileEntry) == 0x30,
"ApplicationAlbumFileEntry has incorrect size.");
-/// Registers all Capture services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Capture
diff --git a/src/core/hle/service/caps/caps_a.h b/src/core/hle/service/caps/caps_a.h
index 319c173d8..98a21a5ad 100644
--- a/src/core/hle/service/caps/caps_a.h
+++ b/src/core/hle/service/caps/caps_a.h
@@ -9,10 +9,6 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
namespace Service::Capture {
class CAPS_A final : public ServiceFramework<CAPS_A> {
diff --git a/src/core/hle/service/caps/caps_c.cpp b/src/core/hle/service/caps/caps_c.cpp
index 725a2e3a7..fc77e35cd 100644
--- a/src/core/hle/service/caps/caps_c.cpp
+++ b/src/core/hle/service/caps/caps_c.cpp
@@ -2,8 +2,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/caps/caps_c.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Capture {
@@ -74,7 +74,7 @@ CAPS_C::CAPS_C(Core::System& system_) : ServiceFramework{system_, "caps:c"} {
CAPS_C::~CAPS_C() = default;
-void CAPS_C::SetShimLibraryVersion(Kernel::HLERequestContext& ctx) {
+void CAPS_C::SetShimLibraryVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto library_version{rp.Pop<u64>()};
const auto applet_resource_user_id{rp.Pop<u64>()};
diff --git a/src/core/hle/service/caps/caps_c.h b/src/core/hle/service/caps/caps_c.h
index 983a4212d..537b3a2e3 100644
--- a/src/core/hle/service/caps/caps_c.h
+++ b/src/core/hle/service/caps/caps_c.h
@@ -9,10 +9,6 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
namespace Service::Capture {
class CAPS_C final : public ServiceFramework<CAPS_C> {
@@ -21,7 +17,7 @@ public:
~CAPS_C() override;
private:
- void SetShimLibraryVersion(Kernel::HLERequestContext& ctx);
+ void SetShimLibraryVersion(HLERequestContext& ctx);
};
} // namespace Service::Capture
diff --git a/src/core/hle/service/caps/caps_su.cpp b/src/core/hle/service/caps/caps_su.cpp
index fcb496756..3b11cc95c 100644
--- a/src/core/hle/service/caps/caps_su.cpp
+++ b/src/core/hle/service/caps/caps_su.cpp
@@ -2,8 +2,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/caps/caps_su.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Capture {
@@ -23,7 +23,7 @@ CAPS_SU::CAPS_SU(Core::System& system_) : ServiceFramework{system_, "caps:su"} {
CAPS_SU::~CAPS_SU() = default;
-void CAPS_SU::SetShimLibraryVersion(Kernel::HLERequestContext& ctx) {
+void CAPS_SU::SetShimLibraryVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto library_version{rp.Pop<u64>()};
const auto applet_resource_user_id{rp.Pop<u64>()};
diff --git a/src/core/hle/service/caps/caps_su.h b/src/core/hle/service/caps/caps_su.h
index c9a1d507b..c6398858d 100644
--- a/src/core/hle/service/caps/caps_su.h
+++ b/src/core/hle/service/caps/caps_su.h
@@ -9,10 +9,6 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
namespace Service::Capture {
class CAPS_SU final : public ServiceFramework<CAPS_SU> {
@@ -21,7 +17,7 @@ public:
~CAPS_SU() override;
private:
- void SetShimLibraryVersion(Kernel::HLERequestContext& ctx);
+ void SetShimLibraryVersion(HLERequestContext& ctx);
};
} // namespace Service::Capture
diff --git a/src/core/hle/service/caps/caps_u.cpp b/src/core/hle/service/caps/caps_u.cpp
index 5fbba8673..bffe0f8d0 100644
--- a/src/core/hle/service/caps/caps_u.cpp
+++ b/src/core/hle/service/caps/caps_u.cpp
@@ -2,9 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/caps/caps.h"
#include "core/hle/service/caps/caps_u.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Capture {
@@ -52,7 +52,7 @@ CAPS_U::CAPS_U(Core::System& system_) : ServiceFramework{system_, "caps:u"} {
CAPS_U::~CAPS_U() = default;
-void CAPS_U::SetShimLibraryVersion(Kernel::HLERequestContext& ctx) {
+void CAPS_U::SetShimLibraryVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto library_version{rp.Pop<u64>()};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -64,7 +64,7 @@ void CAPS_U::SetShimLibraryVersion(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void CAPS_U::GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& ctx) {
+void CAPS_U::GetAlbumContentsFileListForApplication(HLERequestContext& ctx) {
// Takes a type-0x6 output buffer containing an array of ApplicationAlbumFileEntry, a PID, an
// u8 ContentType, two s64s, and an u64 AppletResourceUserId. Returns an output u64 for total
// output entries (which is copied to a s32 by official SW).
@@ -93,7 +93,7 @@ void CAPS_U::GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& c
rb.Push(total_entries_2);
}
-void CAPS_U::GetAlbumFileList3AaeAruid(Kernel::HLERequestContext& ctx) {
+void CAPS_U::GetAlbumFileList3AaeAruid(HLERequestContext& ctx) {
GetAlbumContentsFileListForApplication(ctx);
}
diff --git a/src/core/hle/service/caps/caps_u.h b/src/core/hle/service/caps/caps_u.h
index c3d4b9cea..e8dd037d7 100644
--- a/src/core/hle/service/caps/caps_u.h
+++ b/src/core/hle/service/caps/caps_u.h
@@ -9,10 +9,6 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
namespace Service::Capture {
class CAPS_U final : public ServiceFramework<CAPS_U> {
@@ -21,9 +17,9 @@ public:
~CAPS_U() override;
private:
- void SetShimLibraryVersion(Kernel::HLERequestContext& ctx);
- void GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& ctx);
- void GetAlbumFileList3AaeAruid(Kernel::HLERequestContext& ctx);
+ void SetShimLibraryVersion(HLERequestContext& ctx);
+ void GetAlbumContentsFileListForApplication(HLERequestContext& ctx);
+ void GetAlbumFileList3AaeAruid(HLERequestContext& ctx);
};
} // namespace Service::Capture
diff --git a/src/core/hle/service/erpt/erpt.cpp b/src/core/hle/service/erpt/erpt.cpp
index 923c0022a..3ea862fad 100644
--- a/src/core/hle/service/erpt/erpt.cpp
+++ b/src/core/hle/service/erpt/erpt.cpp
@@ -4,6 +4,7 @@
#include <memory>
#include "core/hle/service/erpt/erpt.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/hle/service/sm/sm.h"
@@ -52,9 +53,13 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<ErrorReportContext>(system)->InstallAsService(sm);
- std::make_shared<ErrorReportSession>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("erpt:c", std::make_shared<ErrorReportContext>(system));
+ server_manager->RegisterNamedService("erpt:r", std::make_shared<ErrorReportSession>(system));
+
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::ERPT
diff --git a/src/core/hle/service/erpt/erpt.h b/src/core/hle/service/erpt/erpt.h
index 507d626ec..60094f556 100644
--- a/src/core/hle/service/erpt/erpt.h
+++ b/src/core/hle/service/erpt/erpt.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::ERPT {
-/// Registers all ERPT services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::ERPT
diff --git a/src/core/hle/service/es/es.cpp b/src/core/hle/service/es/es.cpp
index d183e5829..446f46b3c 100644
--- a/src/core/hle/service/es/es.cpp
+++ b/src/core/hle/service/es/es.cpp
@@ -2,8 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "core/crypto/key_manager.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/es/es.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
namespace Service::ES {
@@ -109,7 +110,7 @@ public:
}
private:
- bool CheckRightsId(Kernel::HLERequestContext& ctx, const u128& rights_id) {
+ bool CheckRightsId(HLERequestContext& ctx, const u128& rights_id) {
if (rights_id == u128{}) {
LOG_ERROR(Service_ETicket, "The rights ID was invalid!");
IPC::ResponseBuilder rb{ctx, 2};
@@ -120,9 +121,9 @@ private:
return true;
}
- void ImportTicket(Kernel::HLERequestContext& ctx) {
+ void ImportTicket(HLERequestContext& ctx) {
const auto ticket = ctx.ReadBuffer();
- const auto cert = ctx.ReadBuffer(1);
+ [[maybe_unused]] const auto cert = ctx.ReadBuffer(1);
if (ticket.size() < sizeof(Core::Crypto::Ticket)) {
LOG_ERROR(Service_ETicket, "The input buffer is not large enough!");
@@ -145,7 +146,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetTitleKey(Kernel::HLERequestContext& ctx) {
+ void GetTitleKey(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto rights_id = rp.PopRaw<u128>();
@@ -171,7 +172,7 @@ private:
rb.Push(ResultSuccess);
}
- void CountCommonTicket(Kernel::HLERequestContext& ctx) {
+ void CountCommonTicket(HLERequestContext& ctx) {
LOG_DEBUG(Service_ETicket, "called");
const u32 count = static_cast<u32>(keys.GetCommonTickets().size());
@@ -181,7 +182,7 @@ private:
rb.Push<u32>(count);
}
- void CountPersonalizedTicket(Kernel::HLERequestContext& ctx) {
+ void CountPersonalizedTicket(HLERequestContext& ctx) {
LOG_DEBUG(Service_ETicket, "called");
const u32 count = static_cast<u32>(keys.GetPersonalizedTickets().size());
@@ -191,7 +192,7 @@ private:
rb.Push<u32>(count);
}
- void ListCommonTicketRightsIds(Kernel::HLERequestContext& ctx) {
+ void ListCommonTicketRightsIds(HLERequestContext& ctx) {
size_t out_entries = 0;
if (!keys.GetCommonTickets().empty()) {
out_entries = ctx.GetWriteBufferNumElements<u128>();
@@ -212,7 +213,7 @@ private:
rb.Push<u32>(static_cast<u32>(out_entries));
}
- void ListPersonalizedTicketRightsIds(Kernel::HLERequestContext& ctx) {
+ void ListPersonalizedTicketRightsIds(HLERequestContext& ctx) {
size_t out_entries = 0;
if (!keys.GetPersonalizedTickets().empty()) {
out_entries = ctx.GetWriteBufferNumElements<u128>();
@@ -234,7 +235,7 @@ private:
rb.Push<u32>(static_cast<u32>(out_entries));
}
- void GetCommonTicketSize(Kernel::HLERequestContext& ctx) {
+ void GetCommonTicketSize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto rights_id = rp.PopRaw<u128>();
@@ -250,7 +251,7 @@ private:
rb.Push<u64>(ticket.GetSize());
}
- void GetPersonalizedTicketSize(Kernel::HLERequestContext& ctx) {
+ void GetPersonalizedTicketSize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto rights_id = rp.PopRaw<u128>();
@@ -266,7 +267,7 @@ private:
rb.Push<u64>(ticket.GetSize());
}
- void GetCommonTicketData(Kernel::HLERequestContext& ctx) {
+ void GetCommonTicketData(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto rights_id = rp.PopRaw<u128>();
@@ -285,7 +286,7 @@ private:
rb.Push<u64>(write_size);
}
- void GetPersonalizedTicketData(Kernel::HLERequestContext& ctx) {
+ void GetPersonalizedTicketData(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto rights_id = rp.PopRaw<u128>();
@@ -307,8 +308,11 @@ private:
Core::Crypto::KeyManager& keys = Core::Crypto::KeyManager::Instance();
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<ETicket>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("es", std::make_shared<ETicket>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::ES
diff --git a/src/core/hle/service/es/es.h b/src/core/hle/service/es/es.h
index 530563550..317680625 100644
--- a/src/core/hle/service/es/es.h
+++ b/src/core/hle/service/es/es.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::ES {
-/// Registers all ES services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::ES
diff --git a/src/core/hle/service/eupld/eupld.cpp b/src/core/hle/service/eupld/eupld.cpp
index d1553ace0..3cf27513a 100644
--- a/src/core/hle/service/eupld/eupld.cpp
+++ b/src/core/hle/service/eupld/eupld.cpp
@@ -4,8 +4,8 @@
#include <memory>
#include "core/hle/service/eupld/eupld.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::EUPLD {
@@ -44,9 +44,12 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<ErrorUploadContext>(system)->InstallAsService(sm);
- std::make_shared<ErrorUploadRequest>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("eupld:c", std::make_shared<ErrorUploadContext>(system));
+ server_manager->RegisterNamedService("eupld:r", std::make_shared<ErrorUploadRequest>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::EUPLD
diff --git a/src/core/hle/service/eupld/eupld.h b/src/core/hle/service/eupld/eupld.h
index 5de8219be..8eb0a5b4f 100644
--- a/src/core/hle/service/eupld/eupld.h
+++ b/src/core/hle/service/eupld/eupld.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::EUPLD {
-/// Registers all EUPLD services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::EUPLD
diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cpp
index 27675615b..fe2ed8df8 100644
--- a/src/core/hle/service/fatal/fatal.cpp
+++ b/src/core/hle/service/fatal/fatal.cpp
@@ -9,10 +9,11 @@
#include "common/scm_rev.h"
#include "common/swap.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/fatal/fatal.h"
#include "core/hle/service/fatal/fatal_p.h"
#include "core/hle/service/fatal/fatal_u.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/reporter.h"
namespace Service::Fatal {
@@ -63,7 +64,7 @@ enum class FatalType : u32 {
};
static void GenerateErrorReport(Core::System& system, Result error_code, const FatalInfo& info) {
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
std::string crash_report = fmt::format(
"Yuzu {}-{} crash report\n"
"Title ID: {:016x}\n"
@@ -125,7 +126,7 @@ static void ThrowFatalError(Core::System& system, Result error_code, FatalType f
}
}
-void Module::Interface::ThrowFatal(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ThrowFatal(HLERequestContext& ctx) {
LOG_ERROR(Service_Fatal, "called");
IPC::RequestParser rp{ctx};
const auto error_code = rp.Pop<Result>();
@@ -135,7 +136,7 @@ void Module::Interface::ThrowFatal(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Module::Interface::ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ThrowFatalWithPolicy(HLERequestContext& ctx) {
LOG_ERROR(Service_Fatal, "called");
IPC::RequestParser rp(ctx);
const auto error_code = rp.Pop<Result>();
@@ -147,7 +148,7 @@ void Module::Interface::ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Module::Interface::ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ThrowFatalWithCpuContext(HLERequestContext& ctx) {
LOG_ERROR(Service_Fatal, "called");
IPC::RequestParser rp(ctx);
const auto error_code = rp.Pop<Result>();
@@ -163,10 +164,13 @@ void Module::Interface::ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx)
rb.Push(ResultSuccess);
}
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
auto module = std::make_shared<Module>();
- std::make_shared<Fatal_P>(module, system)->InstallAsService(service_manager);
- std::make_shared<Fatal_U>(module, system)->InstallAsService(service_manager);
+
+ server_manager->RegisterNamedService("fatal:p", std::make_shared<Fatal_P>(module, system));
+ server_manager->RegisterNamedService("fatal:u", std::make_shared<Fatal_U>(module, system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Fatal
diff --git a/src/core/hle/service/fatal/fatal.h b/src/core/hle/service/fatal/fatal.h
index a7a310f7b..f1c110406 100644
--- a/src/core/hle/service/fatal/fatal.h
+++ b/src/core/hle/service/fatal/fatal.h
@@ -19,15 +19,15 @@ public:
const char* name);
~Interface() override;
- void ThrowFatal(Kernel::HLERequestContext& ctx);
- void ThrowFatalWithPolicy(Kernel::HLERequestContext& ctx);
- void ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx);
+ void ThrowFatal(HLERequestContext& ctx);
+ void ThrowFatalWithPolicy(HLERequestContext& ctx);
+ void ThrowFatalWithCpuContext(HLERequestContext& ctx);
protected:
std::shared_ptr<Module> module;
};
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Fatal
diff --git a/src/core/hle/service/fgm/fgm.cpp b/src/core/hle/service/fgm/fgm.cpp
index 7e9fb0385..6b3f77be2 100644
--- a/src/core/hle/service/fgm/fgm.cpp
+++ b/src/core/hle/service/fgm/fgm.cpp
@@ -3,8 +3,9 @@
#include <memory>
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/fgm/fgm.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/hle/service/sm/sm.h"
@@ -39,7 +40,7 @@ public:
}
private:
- void Initialize(Kernel::HLERequestContext& ctx) {
+ void Initialize(HLERequestContext& ctx) {
LOG_DEBUG(Service_FGM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -63,11 +64,14 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<FGM>(system, "fgm")->InstallAsService(sm);
- std::make_shared<FGM>(system, "fgm:0")->InstallAsService(sm);
- std::make_shared<FGM>(system, "fgm:9")->InstallAsService(sm);
- std::make_shared<FGM_DBG>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("fgm", std::make_shared<FGM>(system, "fgm"));
+ server_manager->RegisterNamedService("fgm:0", std::make_shared<FGM>(system, "fgm:0"));
+ server_manager->RegisterNamedService("fgm:9", std::make_shared<FGM>(system, "fgm:9"));
+ server_manager->RegisterNamedService("fgm:dbg", std::make_shared<FGM_DBG>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::FGM
diff --git a/src/core/hle/service/fgm/fgm.h b/src/core/hle/service/fgm/fgm.h
index 077e48812..9d2465c0f 100644
--- a/src/core/hle/service/fgm/fgm.h
+++ b/src/core/hle/service/fgm/fgm.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::FGM {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::FGM
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index 11c604a0f..dfcdd3ada 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -23,6 +23,7 @@
#include "core/hle/service/filesystem/fsp_ldr.h"
#include "core/hle/service/filesystem/fsp_pr.h"
#include "core/hle/service/filesystem/fsp_srv.h"
+#include "core/hle/service/server_manager.h"
#include "core/loader/loader.h"
namespace Service::FileSystem {
@@ -317,7 +318,7 @@ ResultVal<FileSys::VirtualFile> FileSystemController::OpenRomFSCurrentProcess()
return ResultUnknown;
}
- return romfs_factory->OpenCurrentProcess(system.GetCurrentProcessProgramID());
+ return romfs_factory->OpenCurrentProcess(system.GetApplicationProcessProgramID());
}
ResultVal<FileSys::VirtualFile> FileSystemController::OpenPatchedRomFS(
@@ -502,7 +503,7 @@ FileSys::SaveDataSize FileSystemController::ReadSaveDataSize(FileSys::SaveDataTy
const auto res = system.GetAppLoader().ReadControlData(nacp);
if (res != Loader::ResultStatus::Success) {
- const FileSys::PatchManager pm{system.GetCurrentProcessProgramID(),
+ const FileSys::PatchManager pm{system.GetApplicationProcessProgramID(),
system.GetFileSystemController(),
system.GetContentProvider()};
const auto metadata = pm.GetControlMetadata();
@@ -796,10 +797,13 @@ void FileSystemController::CreateFactories(FileSys::VfsFilesystem& vfs, bool ove
}
}
-void InstallInterfaces(Core::System& system) {
- std::make_shared<FSP_LDR>(system)->InstallAsService(system.ServiceManager());
- std::make_shared<FSP_PR>(system)->InstallAsService(system.ServiceManager());
- std::make_shared<FSP_SRV>(system)->InstallAsService(system.ServiceManager());
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("fsp-ldr", std::make_shared<FSP_LDR>(system));
+ server_manager->RegisterNamedService("fsp:pr", std::make_shared<FSP_PR>(system));
+ server_manager->RegisterNamedService("fsp-srv", std::make_shared<FSP_SRV>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::FileSystem
diff --git a/src/core/hle/service/filesystem/filesystem.h b/src/core/hle/service/filesystem/filesystem.h
index 5b27de9fa..a5c1c9d3e 100644
--- a/src/core/hle/service/filesystem/filesystem.h
+++ b/src/core/hle/service/filesystem/filesystem.h
@@ -139,7 +139,7 @@ private:
Core::System& system;
};
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
// A class that wraps a VfsDirectory with methods that return ResultVal and Result instead of
// pointers and booleans. This makes using a VfsDirectory with switch services much easier and
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index fbb16a7da..427dbc8b3 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -24,9 +24,11 @@
#include "core/file_sys/savedata_factory.h"
#include "core/file_sys/system_archive/system_archive.h"
#include "core/file_sys/vfs.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/result.h"
#include "core/hle/service/filesystem/filesystem.h"
#include "core/hle/service/filesystem/fsp_srv.h"
+#include "core/hle/service/hle_ipc.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/reporter.h"
namespace Service::FileSystem {
@@ -57,8 +59,7 @@ enum class FileSystemType : u8 {
class IStorage final : public ServiceFramework<IStorage> {
public:
explicit IStorage(Core::System& system_, FileSys::VirtualFile backend_)
- : ServiceFramework{system_, "IStorage", ServiceThreadType::CreateNew},
- backend(std::move(backend_)) {
+ : ServiceFramework{system_, "IStorage"}, backend(std::move(backend_)) {
static const FunctionInfo functions[] = {
{0, &IStorage::Read, "Read"},
{1, nullptr, "Write"},
@@ -73,7 +74,7 @@ public:
private:
FileSys::VirtualFile backend;
- void Read(Kernel::HLERequestContext& ctx) {
+ void Read(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s64 offset = rp.Pop<s64>();
const s64 length = rp.Pop<s64>();
@@ -103,7 +104,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetSize(Kernel::HLERequestContext& ctx) {
+ void GetSize(HLERequestContext& ctx) {
const u64 size = backend->GetSize();
LOG_DEBUG(Service_FS, "called, size={}", size);
@@ -116,8 +117,7 @@ private:
class IFile final : public ServiceFramework<IFile> {
public:
explicit IFile(Core::System& system_, FileSys::VirtualFile backend_)
- : ServiceFramework{system_, "IFile", ServiceThreadType::CreateNew},
- backend(std::move(backend_)) {
+ : ServiceFramework{system_, "IFile"}, backend(std::move(backend_)) {
static const FunctionInfo functions[] = {
{0, &IFile::Read, "Read"},
{1, &IFile::Write, "Write"},
@@ -133,7 +133,7 @@ public:
private:
FileSys::VirtualFile backend;
- void Read(Kernel::HLERequestContext& ctx) {
+ void Read(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 option = rp.Pop<u64>();
const s64 offset = rp.Pop<s64>();
@@ -167,7 +167,7 @@ private:
rb.Push(static_cast<u64>(output.size()));
}
- void Write(Kernel::HLERequestContext& ctx) {
+ void Write(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 option = rp.Pop<u64>();
const s64 offset = rp.Pop<s64>();
@@ -190,7 +190,7 @@ private:
return;
}
- const std::vector<u8> data = ctx.ReadBuffer();
+ const auto data = ctx.ReadBuffer();
ASSERT_MSG(
static_cast<s64>(data.size()) <= length,
@@ -210,7 +210,7 @@ private:
rb.Push(ResultSuccess);
}
- void Flush(Kernel::HLERequestContext& ctx) {
+ void Flush(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
// Exists for SDK compatibiltity -- No need to flush file.
@@ -219,7 +219,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetSize(Kernel::HLERequestContext& ctx) {
+ void SetSize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 size = rp.Pop<u64>();
LOG_DEBUG(Service_FS, "called, size={}", size);
@@ -230,7 +230,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetSize(Kernel::HLERequestContext& ctx) {
+ void GetSize(HLERequestContext& ctx) {
const u64 size = backend->GetSize();
LOG_DEBUG(Service_FS, "called, size={}", size);
@@ -254,8 +254,7 @@ static void BuildEntryIndex(std::vector<FileSys::Entry>& entries, const std::vec
class IDirectory final : public ServiceFramework<IDirectory> {
public:
explicit IDirectory(Core::System& system_, FileSys::VirtualDir backend_)
- : ServiceFramework{system_, "IDirectory", ServiceThreadType::CreateNew},
- backend(std::move(backend_)) {
+ : ServiceFramework{system_, "IDirectory"}, backend(std::move(backend_)) {
static const FunctionInfo functions[] = {
{0, &IDirectory::Read, "Read"},
{1, &IDirectory::GetEntryCount, "GetEntryCount"},
@@ -273,7 +272,7 @@ private:
std::vector<FileSys::Entry> entries;
u64 next_entry_index = 0;
- void Read(Kernel::HLERequestContext& ctx) {
+ void Read(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called.");
// Calculate how many entries we can fit in the output buffer
@@ -297,7 +296,7 @@ private:
rb.Push(actual_entries);
}
- void GetEntryCount(Kernel::HLERequestContext& ctx) {
+ void GetEntryCount(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
u64 count = entries.size() - next_entry_index;
@@ -311,8 +310,8 @@ private:
class IFileSystem final : public ServiceFramework<IFileSystem> {
public:
explicit IFileSystem(Core::System& system_, FileSys::VirtualDir backend_, SizeGetter size_)
- : ServiceFramework{system_, "IFileSystem", ServiceThreadType::CreateNew},
- backend{std::move(backend_)}, size{std::move(size_)} {
+ : ServiceFramework{system_, "IFileSystem"}, backend{std::move(backend_)}, size{std::move(
+ size_)} {
static const FunctionInfo functions[] = {
{0, &IFileSystem::CreateFile, "CreateFile"},
{1, &IFileSystem::DeleteFile, "DeleteFile"},
@@ -334,7 +333,7 @@ public:
RegisterHandlers(functions);
}
- void CreateFile(Kernel::HLERequestContext& ctx) {
+ void CreateFile(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto file_buffer = ctx.ReadBuffer();
@@ -350,7 +349,7 @@ public:
rb.Push(backend.CreateFile(name, file_size));
}
- void DeleteFile(Kernel::HLERequestContext& ctx) {
+ void DeleteFile(HLERequestContext& ctx) {
const auto file_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(file_buffer);
@@ -360,7 +359,7 @@ public:
rb.Push(backend.DeleteFile(name));
}
- void CreateDirectory(Kernel::HLERequestContext& ctx) {
+ void CreateDirectory(HLERequestContext& ctx) {
const auto file_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(file_buffer);
@@ -370,7 +369,7 @@ public:
rb.Push(backend.CreateDirectory(name));
}
- void DeleteDirectory(Kernel::HLERequestContext& ctx) {
+ void DeleteDirectory(HLERequestContext& ctx) {
const auto file_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(file_buffer);
@@ -380,7 +379,7 @@ public:
rb.Push(backend.DeleteDirectory(name));
}
- void DeleteDirectoryRecursively(Kernel::HLERequestContext& ctx) {
+ void DeleteDirectoryRecursively(HLERequestContext& ctx) {
const auto file_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(file_buffer);
@@ -390,7 +389,7 @@ public:
rb.Push(backend.DeleteDirectoryRecursively(name));
}
- void CleanDirectoryRecursively(Kernel::HLERequestContext& ctx) {
+ void CleanDirectoryRecursively(HLERequestContext& ctx) {
const auto file_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(file_buffer);
@@ -400,12 +399,9 @@ public:
rb.Push(backend.CleanDirectoryRecursively(name));
}
- void RenameFile(Kernel::HLERequestContext& ctx) {
- std::vector<u8> buffer = ctx.ReadBuffer(0);
- const std::string src_name = Common::StringFromBuffer(buffer);
-
- buffer = ctx.ReadBuffer(1);
- const std::string dst_name = Common::StringFromBuffer(buffer);
+ void RenameFile(HLERequestContext& ctx) {
+ const std::string src_name = Common::StringFromBuffer(ctx.ReadBuffer(0));
+ const std::string dst_name = Common::StringFromBuffer(ctx.ReadBuffer(1));
LOG_DEBUG(Service_FS, "called. file '{}' to file '{}'", src_name, dst_name);
@@ -413,7 +409,7 @@ public:
rb.Push(backend.RenameFile(src_name, dst_name));
}
- void OpenFile(Kernel::HLERequestContext& ctx) {
+ void OpenFile(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto file_buffer = ctx.ReadBuffer();
@@ -437,7 +433,7 @@ public:
rb.PushIpcInterface<IFile>(std::move(file));
}
- void OpenDirectory(Kernel::HLERequestContext& ctx) {
+ void OpenDirectory(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto file_buffer = ctx.ReadBuffer();
@@ -462,7 +458,7 @@ public:
rb.PushIpcInterface<IDirectory>(std::move(directory));
}
- void GetEntryType(Kernel::HLERequestContext& ctx) {
+ void GetEntryType(HLERequestContext& ctx) {
const auto file_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(file_buffer);
@@ -480,14 +476,14 @@ public:
rb.Push<u32>(static_cast<u32>(*result));
}
- void Commit(Kernel::HLERequestContext& ctx) {
+ void Commit(HLERequestContext& ctx) {
LOG_WARNING(Service_FS, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void GetFreeSpaceSize(Kernel::HLERequestContext& ctx) {
+ void GetFreeSpaceSize(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
IPC::ResponseBuilder rb{ctx, 4};
@@ -495,7 +491,7 @@ public:
rb.Push(size.get_free_size());
}
- void GetTotalSpaceSize(Kernel::HLERequestContext& ctx) {
+ void GetTotalSpaceSize(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
IPC::ResponseBuilder rb{ctx, 4};
@@ -503,7 +499,7 @@ public:
rb.Push(size.get_total_size());
}
- void GetFileTimeStampRaw(Kernel::HLERequestContext& ctx) {
+ void GetFileTimeStampRaw(HLERequestContext& ctx) {
const auto file_buffer = ctx.ReadBuffer();
const std::string name = Common::StringFromBuffer(file_buffer);
@@ -539,7 +535,7 @@ public:
FindAllSaves(space);
}
- void ReadSaveDataInfo(Kernel::HLERequestContext& ctx) {
+ void ReadSaveDataInfo(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
// Calculate how many entries we can fit in the output buffer
@@ -558,9 +554,9 @@ public:
// Write the data to memory
ctx.WriteBuffer(begin, range_size);
- IPC::ResponseBuilder rb{ctx, 3};
+ IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
- rb.Push<u32>(static_cast<u32>(actual_entries));
+ rb.Push<u64>(actual_entries);
}
private:
@@ -718,7 +714,7 @@ FSP_SRV::FSP_SRV(Core::System& system_)
{59, nullptr, "WriteSaveDataFileSystemExtraData"},
{60, nullptr, "OpenSaveDataInfoReader"},
{61, &FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId, "OpenSaveDataInfoReaderBySaveDataSpaceId"},
- {62, nullptr, "OpenCacheStorageList"},
+ {62, &FSP_SRV::OpenSaveDataInfoReaderOnlyCacheStorage, "OpenSaveDataInfoReaderOnlyCacheStorage"},
{64, nullptr, "OpenSaveDataInternalStorageFileSystem"},
{65, nullptr, "UpdateSaveDataMacForDebug"},
{66, nullptr, "WriteSaveDataFileSystemExtraData2"},
@@ -817,7 +813,7 @@ FSP_SRV::FSP_SRV(Core::System& system_)
FSP_SRV::~FSP_SRV() = default;
-void FSP_SRV::SetCurrentProcess(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::SetCurrentProcess(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
current_process_id = rp.Pop<u64>();
@@ -827,7 +823,7 @@ void FSP_SRV::SetCurrentProcess(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void FSP_SRV::OpenFileSystemWithPatch(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenFileSystemWithPatch(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto type = rp.PopRaw<FileSystemType>();
@@ -838,7 +834,7 @@ void FSP_SRV::OpenFileSystemWithPatch(Kernel::HLERequestContext& ctx) {
rb.Push(ResultUnknown);
}
-void FSP_SRV::OpenSdCardFileSystem(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenSdCardFileSystem(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
auto filesystem =
@@ -850,7 +846,7 @@ void FSP_SRV::OpenSdCardFileSystem(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IFileSystem>(std::move(filesystem));
}
-void FSP_SRV::CreateSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::CreateSaveDataFileSystem(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto save_struct = rp.PopRaw<FileSys::SaveDataAttribute>();
@@ -866,7 +862,7 @@ void FSP_SRV::CreateSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenSaveDataFileSystem(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
@@ -911,12 +907,12 @@ void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IFileSystem>(std::move(filesystem));
}
-void FSP_SRV::OpenReadOnlySaveDataFileSystem(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenReadOnlySaveDataFileSystem(HLERequestContext& ctx) {
LOG_WARNING(Service_FS, "(STUBBED) called, delegating to 51 OpenSaveDataFilesystem");
OpenSaveDataFileSystem(ctx);
}
-void FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto space = rp.PopRaw<FileSys::SaveDataSpaceId>();
LOG_INFO(Service_FS, "called, space={}", space);
@@ -927,15 +923,23 @@ void FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId(Kernel::HLERequestContext&
std::make_shared<ISaveDataInfoReader>(system, space, fsc));
}
-void FSP_SRV::WriteSaveDataFileSystemExtraDataBySaveDataAttribute(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenSaveDataInfoReaderOnlyCacheStorage(HLERequestContext& ctx) {
+ LOG_WARNING(Service_FS, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2, 0, 1};
+ rb.Push(ResultSuccess);
+ rb.PushIpcInterface<ISaveDataInfoReader>(system, FileSys::SaveDataSpaceId::TemporaryStorage,
+ fsc);
+}
+
+void FSP_SRV::WriteSaveDataFileSystemExtraDataBySaveDataAttribute(HLERequestContext& ctx) {
LOG_WARNING(Service_FS, "(STUBBED) called.");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void FSP_SRV::ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(
- Kernel::HLERequestContext& ctx) {
+void FSP_SRV::ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
@@ -961,26 +965,30 @@ void FSP_SRV::ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(
rb.Push(flags);
}
-void FSP_SRV::OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenDataStorageByCurrentProcess(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
- auto current_romfs = fsc.OpenRomFSCurrentProcess();
- if (current_romfs.Failed()) {
- // TODO (bunnei): Find the right error code to use here
- LOG_CRITICAL(Service_FS, "no file system interface available!");
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultUnknown);
- return;
+ if (!romfs) {
+ auto current_romfs = fsc.OpenRomFSCurrentProcess();
+ if (current_romfs.Failed()) {
+ // TODO (bunnei): Find the right error code to use here
+ LOG_CRITICAL(Service_FS, "no file system interface available!");
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultUnknown);
+ return;
+ }
+
+ romfs = current_romfs.Unwrap();
}
- auto storage = std::make_shared<IStorage>(system, std::move(current_romfs.Unwrap()));
+ auto storage = std::make_shared<IStorage>(system, romfs);
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IStorage>(std::move(storage));
}
-void FSP_SRV::OpenDataStorageByDataId(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenDataStorageByDataId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto storage_id = rp.PopRaw<FileSys::StorageId>();
const auto unknown = rp.PopRaw<u32>();
@@ -1020,7 +1028,7 @@ void FSP_SRV::OpenDataStorageByDataId(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IStorage>(std::move(storage));
}
-void FSP_SRV::OpenPatchDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenPatchDataStorageByCurrentProcess(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto storage_id = rp.PopRaw<FileSys::StorageId>();
@@ -1032,15 +1040,16 @@ void FSP_SRV::OpenPatchDataStorageByCurrentProcess(Kernel::HLERequestContext& ct
rb.Push(FileSys::ERROR_ENTITY_NOT_FOUND);
}
-void FSP_SRV::OpenDataStorageWithProgramIndex(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenDataStorageWithProgramIndex(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto program_index = rp.PopRaw<u8>();
LOG_DEBUG(Service_FS, "called, program_index={}", program_index);
- auto patched_romfs = fsc.OpenPatchedRomFSWithProgramIndex(
- system.GetCurrentProcessProgramID(), program_index, FileSys::ContentRecordType::Program);
+ auto patched_romfs =
+ fsc.OpenPatchedRomFSWithProgramIndex(system.GetApplicationProcessProgramID(), program_index,
+ FileSys::ContentRecordType::Program);
if (patched_romfs.Failed()) {
// TODO: Find the right error code to use here
@@ -1058,7 +1067,7 @@ void FSP_SRV::OpenDataStorageWithProgramIndex(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IStorage>(std::move(storage));
}
-void FSP_SRV::DisableAutoSaveDataCreation(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::DisableAutoSaveDataCreation(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
fsc.SetAutoSaveDataCreation(false);
@@ -1067,7 +1076,7 @@ void FSP_SRV::DisableAutoSaveDataCreation(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void FSP_SRV::SetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::SetGlobalAccessLogMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
access_log_mode = rp.PopEnum<AccessLogMode>();
@@ -1077,7 +1086,7 @@ void FSP_SRV::SetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::GetGlobalAccessLogMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -1085,8 +1094,8 @@ void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) {
rb.PushEnum(access_log_mode);
}
-void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) {
- const auto raw = ctx.ReadBuffer();
+void FSP_SRV::OutputAccessLogToSdCard(HLERequestContext& ctx) {
+ const auto raw = ctx.ReadBufferCopy();
auto log = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(raw.data()), raw.size());
@@ -1098,7 +1107,7 @@ void FSP_SRV::OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void FSP_SRV::GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::GetProgramIndexForAccessLog(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
IPC::ResponseBuilder rb{ctx, 4};
@@ -1107,7 +1116,7 @@ void FSP_SRV::GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx) {
rb.Push(access_log_program_index);
}
-void FSP_SRV::GetCacheStorageSize(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::GetCacheStorageSize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto index{rp.Pop<s32>()};
@@ -1133,14 +1142,14 @@ public:
private:
FileSys::VirtualFile backend;
- void Add(Kernel::HLERequestContext& ctx) {
+ void Add(HLERequestContext& ctx) {
LOG_WARNING(Service_FS, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void Commit(Kernel::HLERequestContext& ctx) {
+ void Commit(HLERequestContext& ctx) {
LOG_WARNING(Service_FS, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -1148,7 +1157,7 @@ private:
}
};
-void FSP_SRV::OpenMultiCommitManager(Kernel::HLERequestContext& ctx) {
+void FSP_SRV::OpenMultiCommitManager(HLERequestContext& ctx) {
LOG_DEBUG(Service_FS, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h
index 3d88b97f9..4f3c2f6de 100644
--- a/src/core/hle/service/filesystem/fsp_srv.h
+++ b/src/core/hle/service/filesystem/fsp_srv.h
@@ -35,26 +35,27 @@ public:
~FSP_SRV() override;
private:
- void SetCurrentProcess(Kernel::HLERequestContext& ctx);
- void OpenFileSystemWithPatch(Kernel::HLERequestContext& ctx);
- void OpenSdCardFileSystem(Kernel::HLERequestContext& ctx);
- void CreateSaveDataFileSystem(Kernel::HLERequestContext& ctx);
- void OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx);
- void OpenReadOnlySaveDataFileSystem(Kernel::HLERequestContext& ctx);
- void OpenSaveDataInfoReaderBySaveDataSpaceId(Kernel::HLERequestContext& ctx);
- void WriteSaveDataFileSystemExtraDataBySaveDataAttribute(Kernel::HLERequestContext& ctx);
- void ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(Kernel::HLERequestContext& ctx);
- void OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx);
- void OpenDataStorageByDataId(Kernel::HLERequestContext& ctx);
- void OpenPatchDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx);
- void OpenDataStorageWithProgramIndex(Kernel::HLERequestContext& ctx);
- void DisableAutoSaveDataCreation(Kernel::HLERequestContext& ctx);
- void SetGlobalAccessLogMode(Kernel::HLERequestContext& ctx);
- void GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx);
- void OutputAccessLogToSdCard(Kernel::HLERequestContext& ctx);
- void GetProgramIndexForAccessLog(Kernel::HLERequestContext& ctx);
- void OpenMultiCommitManager(Kernel::HLERequestContext& ctx);
- void GetCacheStorageSize(Kernel::HLERequestContext& ctx);
+ void SetCurrentProcess(HLERequestContext& ctx);
+ void OpenFileSystemWithPatch(HLERequestContext& ctx);
+ void OpenSdCardFileSystem(HLERequestContext& ctx);
+ void CreateSaveDataFileSystem(HLERequestContext& ctx);
+ void OpenSaveDataFileSystem(HLERequestContext& ctx);
+ void OpenReadOnlySaveDataFileSystem(HLERequestContext& ctx);
+ void OpenSaveDataInfoReaderBySaveDataSpaceId(HLERequestContext& ctx);
+ void OpenSaveDataInfoReaderOnlyCacheStorage(HLERequestContext& ctx);
+ void WriteSaveDataFileSystemExtraDataBySaveDataAttribute(HLERequestContext& ctx);
+ void ReadSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute(HLERequestContext& ctx);
+ void OpenDataStorageByCurrentProcess(HLERequestContext& ctx);
+ void OpenDataStorageByDataId(HLERequestContext& ctx);
+ void OpenPatchDataStorageByCurrentProcess(HLERequestContext& ctx);
+ void OpenDataStorageWithProgramIndex(HLERequestContext& ctx);
+ void DisableAutoSaveDataCreation(HLERequestContext& ctx);
+ void SetGlobalAccessLogMode(HLERequestContext& ctx);
+ void GetGlobalAccessLogMode(HLERequestContext& ctx);
+ void OutputAccessLogToSdCard(HLERequestContext& ctx);
+ void GetProgramIndexForAccessLog(HLERequestContext& ctx);
+ void OpenMultiCommitManager(HLERequestContext& ctx);
+ void GetCacheStorageSize(HLERequestContext& ctx);
FileSystemController& fsc;
const FileSys::ContentProvider& content_provider;
diff --git a/src/core/hle/service/friend/errors.h b/src/core/hle/service/friend/errors.h
deleted file mode 100644
index ff525d865..000000000
--- a/src/core/hle/service/friend/errors.h
+++ /dev/null
@@ -1,11 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/result.h"
-
-namespace Service::Friend {
-
-constexpr Result ERR_NO_NOTIFICATIONS{ErrorModule::Account, 15};
-}
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp
index fad532115..9d05f9801 100644
--- a/src/core/hle/service/friend/friend.cpp
+++ b/src/core/hle/service/friend/friend.cpp
@@ -5,12 +5,13 @@
#include "common/logging/log.h"
#include "common/uuid.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
-#include "core/hle/service/friend/errors.h"
+#include "core/hle/service/acc/errors.h"
#include "core/hle/service/friend/friend.h"
#include "core/hle/service/friend/friend_interface.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/server_manager.h"
namespace Service::Friend {
@@ -135,7 +136,7 @@ private:
};
static_assert(sizeof(SizedFriendFilter) == 0x10, "SizedFriendFilter is an invalid size");
- void GetCompletionEvent(Kernel::HLERequestContext& ctx) {
+ void GetCompletionEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Friend, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -143,7 +144,7 @@ private:
rb.PushCopyObjects(completion_event->GetReadableEvent());
}
- void GetBlockedUserListIds(Kernel::HLERequestContext& ctx) {
+ void GetBlockedUserListIds(HLERequestContext& ctx) {
// This is safe to stub, as there should be no adverse consequences from reporting no
// blocked users.
LOG_WARNING(Service_Friend, "(STUBBED) called");
@@ -152,21 +153,21 @@ private:
rb.Push<u32>(0); // Indicates there are no blocked users
}
- void DeclareCloseOnlinePlaySession(Kernel::HLERequestContext& ctx) {
+ void DeclareCloseOnlinePlaySession(HLERequestContext& ctx) {
// Stub used by Splatoon 2
LOG_WARNING(Service_Friend, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void UpdateUserPresence(Kernel::HLERequestContext& ctx) {
+ void UpdateUserPresence(HLERequestContext& ctx) {
// Stub used by Retro City Rampage
LOG_WARNING(Service_Friend, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void GetPlayHistoryRegistrationKey(Kernel::HLERequestContext& ctx) {
+ void GetPlayHistoryRegistrationKey(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto local_play = rp.Pop<bool>();
const auto uuid = rp.PopRaw<Common::UUID>();
@@ -178,7 +179,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetFriendList(Kernel::HLERequestContext& ctx) {
+ void GetFriendList(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto friend_offset = rp.Pop<u32>();
const auto uuid = rp.PopRaw<Common::UUID>();
@@ -194,7 +195,7 @@ private:
// TODO(ogniK): Return a buffer of u64s which are the "NetworkServiceAccountId"
}
- void CheckFriendListAvailability(Kernel::HLERequestContext& ctx) {
+ void CheckFriendListAvailability(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto uuid{rp.PopRaw<Common::UUID>()};
@@ -233,7 +234,7 @@ public:
}
private:
- void GetEvent(Kernel::HLERequestContext& ctx) {
+ void GetEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_Friend, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -241,7 +242,7 @@ private:
rb.PushCopyObjects(notification_event->GetReadableEvent());
}
- void Clear(Kernel::HLERequestContext& ctx) {
+ void Clear(HLERequestContext& ctx) {
LOG_DEBUG(Service_Friend, "called");
while (!notifications.empty()) {
notifications.pop();
@@ -252,13 +253,13 @@ private:
rb.Push(ResultSuccess);
}
- void Pop(Kernel::HLERequestContext& ctx) {
+ void Pop(HLERequestContext& ctx) {
LOG_DEBUG(Service_Friend, "called");
if (notifications.empty()) {
LOG_ERROR(Service_Friend, "No notifications in queue!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NO_NOTIFICATIONS);
+ rb.Push(Account::ResultNoNotifications);
return;
}
@@ -311,14 +312,14 @@ private:
States states{};
};
-void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CreateFriendService(HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IFriendService>(system);
LOG_DEBUG(Service_Friend, "called");
}
-void Module::Interface::CreateNotificationService(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CreateNotificationService(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto uuid = rp.PopRaw<Common::UUID>();
@@ -335,13 +336,22 @@ Module::Interface::Interface(std::shared_ptr<Module> module_, Core::System& syst
Module::Interface::~Interface() = default;
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
auto module = std::make_shared<Module>();
- std::make_shared<Friend>(module, system, "friend:a")->InstallAsService(service_manager);
- std::make_shared<Friend>(module, system, "friend:m")->InstallAsService(service_manager);
- std::make_shared<Friend>(module, system, "friend:s")->InstallAsService(service_manager);
- std::make_shared<Friend>(module, system, "friend:u")->InstallAsService(service_manager);
- std::make_shared<Friend>(module, system, "friend:v")->InstallAsService(service_manager);
+
+ server_manager->RegisterNamedService("friend:a",
+ std::make_shared<Friend>(module, system, "friend:a"));
+ server_manager->RegisterNamedService("friend:m",
+ std::make_shared<Friend>(module, system, "friend:m"));
+ server_manager->RegisterNamedService("friend:s",
+ std::make_shared<Friend>(module, system, "friend:s"));
+ server_manager->RegisterNamedService("friend:u",
+ std::make_shared<Friend>(module, system, "friend:u"));
+ server_manager->RegisterNamedService("friend:v",
+ std::make_shared<Friend>(module, system, "friend:v"));
+
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Friend
diff --git a/src/core/hle/service/friend/friend.h b/src/core/hle/service/friend/friend.h
index 444da8b35..2824dc786 100644
--- a/src/core/hle/service/friend/friend.h
+++ b/src/core/hle/service/friend/friend.h
@@ -19,15 +19,14 @@ public:
const char* name);
~Interface() override;
- void CreateFriendService(Kernel::HLERequestContext& ctx);
- void CreateNotificationService(Kernel::HLERequestContext& ctx);
+ void CreateFriendService(HLERequestContext& ctx);
+ void CreateNotificationService(HLERequestContext& ctx);
protected:
std::shared_ptr<Module> module;
};
};
-/// Registers all Friend services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Friend
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp
index 49b6d45fe..ed6fcb5f6 100644
--- a/src/core/hle/service/glue/arp.cpp
+++ b/src/core/hle/service/glue/arp.cpp
@@ -5,12 +5,12 @@
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_process.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/service/glue/arp.h"
#include "core/hle/service/glue/errors.h"
#include "core/hle/service/glue/glue_manager.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Glue {
@@ -18,14 +18,14 @@ namespace {
std::optional<u64> GetTitleIDForProcessID(const Core::System& system, u64 process_id) {
const auto& list = system.Kernel().GetProcessList();
const auto iter = std::find_if(list.begin(), list.end(), [&process_id](const auto& process) {
- return process->GetProcessID() == process_id;
+ return process->GetProcessId() == process_id;
});
if (iter == list.end()) {
return std::nullopt;
}
- return (*iter)->GetProgramID();
+ return (*iter)->GetProgramId();
}
} // Anonymous namespace
@@ -51,7 +51,7 @@ ARP_R::ARP_R(Core::System& system_, const ARPManager& manager_)
ARP_R::~ARP_R() = default;
-void ARP_R::GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx) {
+void ARP_R::GetApplicationLaunchProperty(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto process_id = rp.PopRaw<u64>();
@@ -61,7 +61,7 @@ void ARP_R::GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx) {
if (!title_id.has_value()) {
LOG_ERROR(Service_ARP, "Failed to get title ID for process ID!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NOT_REGISTERED);
+ rb.Push(Glue::ResultProcessIdNotRegistered);
return;
}
@@ -79,7 +79,7 @@ void ARP_R::GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx) {
rb.PushRaw(*res);
}
-void ARP_R::GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestContext& ctx) {
+void ARP_R::GetApplicationLaunchPropertyWithApplicationId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto title_id = rp.PopRaw<u64>();
@@ -99,7 +99,7 @@ void ARP_R::GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestCont
rb.PushRaw(*res);
}
-void ARP_R::GetApplicationControlProperty(Kernel::HLERequestContext& ctx) {
+void ARP_R::GetApplicationControlProperty(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto process_id = rp.PopRaw<u64>();
@@ -109,7 +109,7 @@ void ARP_R::GetApplicationControlProperty(Kernel::HLERequestContext& ctx) {
if (!title_id.has_value()) {
LOG_ERROR(Service_ARP, "Failed to get title ID for process ID!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NOT_REGISTERED);
+ rb.Push(Glue::ResultProcessIdNotRegistered);
return;
}
@@ -128,7 +128,7 @@ void ARP_R::GetApplicationControlProperty(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void ARP_R::GetApplicationControlPropertyWithApplicationId(Kernel::HLERequestContext& ctx) {
+void ARP_R::GetApplicationControlPropertyWithApplicationId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto title_id = rp.PopRaw<u64>();
@@ -169,7 +169,7 @@ public:
}
private:
- void Issue(Kernel::HLERequestContext& ctx) {
+ void Issue(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto process_id = rp.PopRaw<u64>();
@@ -178,7 +178,7 @@ private:
if (process_id == 0) {
LOG_ERROR(Service_ARP, "Must have non-zero process ID!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_PROCESS_ID);
+ rb.Push(Glue::ResultInvalidProcessId);
return;
}
@@ -186,7 +186,7 @@ private:
LOG_ERROR(Service_ARP,
"Attempted to issue registrar, but registrar is already issued!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_ACCESS);
+ rb.Push(Glue::ResultAlreadyBound);
return;
}
@@ -197,7 +197,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetApplicationLaunchProperty(Kernel::HLERequestContext& ctx) {
+ void SetApplicationLaunchProperty(HLERequestContext& ctx) {
LOG_DEBUG(Service_ARP, "called");
if (issued) {
@@ -205,7 +205,7 @@ private:
Service_ARP,
"Attempted to set application launch property, but registrar is already issued!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_ACCESS);
+ rb.Push(Glue::ResultAlreadyBound);
return;
}
@@ -216,7 +216,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetApplicationControlProperty(Kernel::HLERequestContext& ctx) {
+ void SetApplicationControlProperty(HLERequestContext& ctx) {
LOG_DEBUG(Service_ARP, "called");
if (issued) {
@@ -224,11 +224,12 @@ private:
Service_ARP,
"Attempted to set application control property, but registrar is already issued!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_ACCESS);
+ rb.Push(Glue::ResultAlreadyBound);
return;
}
- control = ctx.ReadBuffer();
+ // TODO: Can this be a span?
+ control = ctx.ReadBufferCopy();
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
@@ -255,14 +256,14 @@ ARP_W::ARP_W(Core::System& system_, ARPManager& manager_)
ARP_W::~ARP_W() = default;
-void ARP_W::AcquireRegistrar(Kernel::HLERequestContext& ctx) {
+void ARP_W::AcquireRegistrar(HLERequestContext& ctx) {
LOG_DEBUG(Service_ARP, "called");
registrar = std::make_shared<IRegistrar>(
system, [this](u64 process_id, ApplicationLaunchProperty launch, std::vector<u8> control) {
const auto res = GetTitleIDForProcessID(system, process_id);
if (!res.has_value()) {
- return ERR_NOT_REGISTERED;
+ return Glue::ResultProcessIdNotRegistered;
}
return manager.Register(*res, launch, std::move(control));
@@ -273,7 +274,7 @@ void ARP_W::AcquireRegistrar(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface(registrar);
}
-void ARP_W::UnregisterApplicationInstance(Kernel::HLERequestContext& ctx) {
+void ARP_W::UnregisterApplicationInstance(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto process_id = rp.PopRaw<u64>();
@@ -282,7 +283,7 @@ void ARP_W::UnregisterApplicationInstance(Kernel::HLERequestContext& ctx) {
if (process_id == 0) {
LOG_ERROR(Service_ARP, "Must have non-zero process ID!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_PROCESS_ID);
+ rb.Push(Glue::ResultInvalidProcessId);
return;
}
@@ -291,7 +292,7 @@ void ARP_W::UnregisterApplicationInstance(Kernel::HLERequestContext& ctx) {
if (!title_id.has_value()) {
LOG_ERROR(Service_ARP, "No title ID for process ID!");
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_NOT_REGISTERED);
+ rb.Push(Glue::ResultProcessIdNotRegistered);
return;
}
diff --git a/src/core/hle/service/glue/arp.h b/src/core/hle/service/glue/arp.h
index 06c992e88..5bce80175 100644
--- a/src/core/hle/service/glue/arp.h
+++ b/src/core/hle/service/glue/arp.h
@@ -16,10 +16,10 @@ public:
~ARP_R() override;
private:
- void GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx);
- void GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestContext& ctx);
- void GetApplicationControlProperty(Kernel::HLERequestContext& ctx);
- void GetApplicationControlPropertyWithApplicationId(Kernel::HLERequestContext& ctx);
+ void GetApplicationLaunchProperty(HLERequestContext& ctx);
+ void GetApplicationLaunchPropertyWithApplicationId(HLERequestContext& ctx);
+ void GetApplicationControlProperty(HLERequestContext& ctx);
+ void GetApplicationControlPropertyWithApplicationId(HLERequestContext& ctx);
const ARPManager& manager;
};
@@ -30,8 +30,8 @@ public:
~ARP_W() override;
private:
- void AcquireRegistrar(Kernel::HLERequestContext& ctx);
- void UnregisterApplicationInstance(Kernel::HLERequestContext& ctx);
+ void AcquireRegistrar(HLERequestContext& ctx);
+ void UnregisterApplicationInstance(HLERequestContext& ctx);
ARPManager& manager;
std::shared_ptr<IRegistrar> registrar;
diff --git a/src/core/hle/service/glue/bgtc.cpp b/src/core/hle/service/glue/bgtc.cpp
index 3248091c3..ae22ac4f7 100644
--- a/src/core/hle/service/glue/bgtc.cpp
+++ b/src/core/hle/service/glue/bgtc.cpp
@@ -3,8 +3,8 @@
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/glue/bgtc.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Glue {
@@ -20,7 +20,7 @@ BGTC_T::BGTC_T(Core::System& system_) : ServiceFramework{system_, "bgtc:t"} {
BGTC_T::~BGTC_T() = default;
-void BGTC_T::OpenTaskService(Kernel::HLERequestContext& ctx) {
+void BGTC_T::OpenTaskService(HLERequestContext& ctx) {
LOG_DEBUG(Service_BGTC, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
diff --git a/src/core/hle/service/glue/bgtc.h b/src/core/hle/service/glue/bgtc.h
index d6e2baec1..5a5d9c9a7 100644
--- a/src/core/hle/service/glue/bgtc.h
+++ b/src/core/hle/service/glue/bgtc.h
@@ -16,7 +16,7 @@ public:
explicit BGTC_T(Core::System& system_);
~BGTC_T() override;
- void OpenTaskService(Kernel::HLERequestContext& ctx);
+ void OpenTaskService(HLERequestContext& ctx);
};
class ITaskService final : public ServiceFramework<ITaskService> {
diff --git a/src/core/hle/service/glue/errors.h b/src/core/hle/service/glue/errors.h
index d4ce7f44e..30feaa5c0 100644
--- a/src/core/hle/service/glue/errors.h
+++ b/src/core/hle/service/glue/errors.h
@@ -7,9 +7,8 @@
namespace Service::Glue {
-constexpr Result ERR_INVALID_RESOURCE{ErrorModule::ARP, 30};
-constexpr Result ERR_INVALID_PROCESS_ID{ErrorModule::ARP, 31};
-constexpr Result ERR_INVALID_ACCESS{ErrorModule::ARP, 42};
-constexpr Result ERR_NOT_REGISTERED{ErrorModule::ARP, 102};
+constexpr Result ResultInvalidProcessId{ErrorModule::ARP, 31};
+constexpr Result ResultAlreadyBound{ErrorModule::ARP, 42};
+constexpr Result ResultProcessIdNotRegistered{ErrorModule::ARP, 102};
} // namespace Service::Glue
diff --git a/src/core/hle/service/glue/glue.cpp b/src/core/hle/service/glue/glue.cpp
index 717f2562b..993c3d21d 100644
--- a/src/core/hle/service/glue/glue.cpp
+++ b/src/core/hle/service/glue/glue.cpp
@@ -8,25 +8,30 @@
#include "core/hle/service/glue/ectx.h"
#include "core/hle/service/glue/glue.h"
#include "core/hle/service/glue/notif.h"
+#include "core/hle/service/server_manager.h"
namespace Service::Glue {
-void InstallInterfaces(Core::System& system) {
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
// ARP
- std::make_shared<ARP_R>(system, system.GetARPManager())
- ->InstallAsService(system.ServiceManager());
- std::make_shared<ARP_W>(system, system.GetARPManager())
- ->InstallAsService(system.ServiceManager());
+ server_manager->RegisterNamedService("arp:r",
+ std::make_shared<ARP_R>(system, system.GetARPManager()));
+ server_manager->RegisterNamedService("arp:w",
+ std::make_shared<ARP_W>(system, system.GetARPManager()));
// BackGround Task Controller
- std::make_shared<BGTC_T>(system)->InstallAsService(system.ServiceManager());
- std::make_shared<BGTC_SC>(system)->InstallAsService(system.ServiceManager());
+ server_manager->RegisterNamedService("bgtc:t", std::make_shared<BGTC_T>(system));
+ server_manager->RegisterNamedService("bgtc:sc", std::make_shared<BGTC_SC>(system));
// Error Context
- std::make_shared<ECTX_AW>(system)->InstallAsService(system.ServiceManager());
+ server_manager->RegisterNamedService("ectx:aw", std::make_shared<ECTX_AW>(system));
// Notification Services for application
- std::make_shared<NOTIF_A>(system)->InstallAsService(system.ServiceManager());
+ server_manager->RegisterNamedService("notif:a", std::make_shared<NOTIF_A>(system));
+
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Glue
diff --git a/src/core/hle/service/glue/glue.h b/src/core/hle/service/glue/glue.h
index ae7c6d235..2a906f5ad 100644
--- a/src/core/hle/service/glue/glue.h
+++ b/src/core/hle/service/glue/glue.h
@@ -9,7 +9,6 @@ class System;
namespace Service::Glue {
-/// Registers all Glue services with the specified service manager.
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Glue
diff --git a/src/core/hle/service/glue/glue_manager.cpp b/src/core/hle/service/glue/glue_manager.cpp
index 8a654cdca..4bf67921b 100644
--- a/src/core/hle/service/glue/glue_manager.cpp
+++ b/src/core/hle/service/glue/glue_manager.cpp
@@ -17,12 +17,12 @@ ARPManager::~ARPManager() = default;
ResultVal<ApplicationLaunchProperty> ARPManager::GetLaunchProperty(u64 title_id) const {
if (title_id == 0) {
- return ERR_INVALID_PROCESS_ID;
+ return Glue::ResultInvalidProcessId;
}
const auto iter = entries.find(title_id);
if (iter == entries.end()) {
- return ERR_NOT_REGISTERED;
+ return Glue::ResultProcessIdNotRegistered;
}
return iter->second.launch;
@@ -30,12 +30,12 @@ ResultVal<ApplicationLaunchProperty> ARPManager::GetLaunchProperty(u64 title_id)
ResultVal<std::vector<u8>> ARPManager::GetControlProperty(u64 title_id) const {
if (title_id == 0) {
- return ERR_INVALID_PROCESS_ID;
+ return Glue::ResultInvalidProcessId;
}
const auto iter = entries.find(title_id);
if (iter == entries.end()) {
- return ERR_NOT_REGISTERED;
+ return Glue::ResultProcessIdNotRegistered;
}
return iter->second.control;
@@ -44,12 +44,12 @@ ResultVal<std::vector<u8>> ARPManager::GetControlProperty(u64 title_id) const {
Result ARPManager::Register(u64 title_id, ApplicationLaunchProperty launch,
std::vector<u8> control) {
if (title_id == 0) {
- return ERR_INVALID_PROCESS_ID;
+ return Glue::ResultInvalidProcessId;
}
const auto iter = entries.find(title_id);
if (iter != entries.end()) {
- return ERR_INVALID_ACCESS;
+ return Glue::ResultAlreadyBound;
}
entries.insert_or_assign(title_id, MapEntry{launch, std::move(control)});
@@ -58,12 +58,12 @@ Result ARPManager::Register(u64 title_id, ApplicationLaunchProperty launch,
Result ARPManager::Unregister(u64 title_id) {
if (title_id == 0) {
- return ERR_INVALID_PROCESS_ID;
+ return Glue::ResultInvalidProcessId;
}
const auto iter = entries.find(title_id);
if (iter == entries.end()) {
- return ERR_NOT_REGISTERED;
+ return Glue::ResultProcessIdNotRegistered;
}
entries.erase(iter);
diff --git a/src/core/hle/service/glue/glue_manager.h b/src/core/hle/service/glue/glue_manager.h
index cd0b092ac..1cf53d9d9 100644
--- a/src/core/hle/service/glue/glue_manager.h
+++ b/src/core/hle/service/glue/glue_manager.h
@@ -30,23 +30,23 @@ public:
~ARPManager();
// Returns the ApplicationLaunchProperty corresponding to the provided title ID if it was
- // previously registered, otherwise ERR_NOT_REGISTERED if it was never registered or
- // ERR_INVALID_PROCESS_ID if the title ID is 0.
+ // previously registered, otherwise ResultProcessIdNotRegistered if it was never registered or
+ // ResultInvalidProcessId if the title ID is 0.
ResultVal<ApplicationLaunchProperty> GetLaunchProperty(u64 title_id) const;
// Returns a vector of the raw bytes of NACP data (necessarily 0x4000 in size) corresponding to
- // the provided title ID if it was previously registered, otherwise ERR_NOT_REGISTERED if it was
- // never registered or ERR_INVALID_PROCESS_ID if the title ID is 0.
+ // the provided title ID if it was previously registered, otherwise ResultProcessIdNotRegistered
+ // if it was never registered or ResultInvalidProcessId if the title ID is 0.
ResultVal<std::vector<u8>> GetControlProperty(u64 title_id) const;
// Adds a new entry to the internal database with the provided parameters, returning
- // ERR_INVALID_ACCESS if attempting to re-register a title ID without an intermediate Unregister
- // step, and ERR_INVALID_PROCESS_ID if the title ID is 0.
+ // ResultProcessIdNotRegistered if attempting to re-register a title ID without an intermediate
+ // Unregister step, and ResultInvalidProcessId if the title ID is 0.
Result Register(u64 title_id, ApplicationLaunchProperty launch, std::vector<u8> control);
// Removes the registration for the provided title ID from the database, returning
- // ERR_NOT_REGISTERED if it doesn't exist in the database and ERR_INVALID_PROCESS_ID if the
- // title ID is 0.
+ // ResultProcessIdNotRegistered if it doesn't exist in the database and ResultInvalidProcessId
+ // if the title ID is 0.
Result Unregister(u64 title_id);
// Removes all entries from the database, always succeeds. Should only be used when resetting
diff --git a/src/core/hle/service/glue/notif.cpp b/src/core/hle/service/glue/notif.cpp
index 3ace2dabd..fec4ad86c 100644
--- a/src/core/hle/service/glue/notif.cpp
+++ b/src/core/hle/service/glue/notif.cpp
@@ -6,8 +6,8 @@
#include "common/assert.h"
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/glue/notif.h"
+#include "core/hle/service/ipc_helpers.h"
namespace Service::Glue {
@@ -28,7 +28,7 @@ NOTIF_A::NOTIF_A(Core::System& system_) : ServiceFramework{system_, "notif:a"} {
NOTIF_A::~NOTIF_A() = default;
-void NOTIF_A::RegisterAlarmSetting(Kernel::HLERequestContext& ctx) {
+void NOTIF_A::RegisterAlarmSetting(HLERequestContext& ctx) {
const auto alarm_setting_buffer_size = ctx.GetReadBufferSize(0);
const auto application_parameter_size = ctx.GetReadBufferSize(1);
@@ -63,7 +63,7 @@ void NOTIF_A::RegisterAlarmSetting(Kernel::HLERequestContext& ctx) {
rb.Push(new_alarm.alarm_setting_id);
}
-void NOTIF_A::UpdateAlarmSetting(Kernel::HLERequestContext& ctx) {
+void NOTIF_A::UpdateAlarmSetting(HLERequestContext& ctx) {
const auto alarm_setting_buffer_size = ctx.GetReadBufferSize(0);
const auto application_parameter_size = ctx.GetReadBufferSize(1);
@@ -91,7 +91,7 @@ void NOTIF_A::UpdateAlarmSetting(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void NOTIF_A::ListAlarmSettings(Kernel::HLERequestContext& ctx) {
+void NOTIF_A::ListAlarmSettings(HLERequestContext& ctx) {
LOG_INFO(Service_NOTIF, "called, alarm_count={}", alarms.size());
// TODO: Only return alarms of this game id
@@ -102,7 +102,7 @@ void NOTIF_A::ListAlarmSettings(Kernel::HLERequestContext& ctx) {
rb.Push(static_cast<u32>(alarms.size()));
}
-void NOTIF_A::LoadApplicationParameter(Kernel::HLERequestContext& ctx) {
+void NOTIF_A::LoadApplicationParameter(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto alarm_setting_id{rp.Pop<AlarmSettingId>()};
@@ -126,7 +126,7 @@ void NOTIF_A::LoadApplicationParameter(Kernel::HLERequestContext& ctx) {
rb.Push(static_cast<u32>(application_parameter.size()));
}
-void NOTIF_A::DeleteAlarmSetting(Kernel::HLERequestContext& ctx) {
+void NOTIF_A::DeleteAlarmSetting(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto alarm_setting_id{rp.Pop<AlarmSettingId>()};
@@ -140,7 +140,7 @@ void NOTIF_A::DeleteAlarmSetting(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void NOTIF_A::Initialize(Kernel::HLERequestContext& ctx) {
+void NOTIF_A::Initialize(HLERequestContext& ctx) {
// TODO: Load previous alarms from config
LOG_WARNING(Service_NOTIF, "(STUBBED) called");
diff --git a/src/core/hle/service/glue/notif.h b/src/core/hle/service/glue/notif.h
index 4467e1f35..b1187f3a3 100644
--- a/src/core/hle/service/glue/notif.h
+++ b/src/core/hle/service/glue/notif.h
@@ -56,12 +56,12 @@ private:
};
static_assert(sizeof(AlarmSetting) == 0x40, "AlarmSetting is an invalid size");
- void RegisterAlarmSetting(Kernel::HLERequestContext& ctx);
- void UpdateAlarmSetting(Kernel::HLERequestContext& ctx);
- void ListAlarmSettings(Kernel::HLERequestContext& ctx);
- void LoadApplicationParameter(Kernel::HLERequestContext& ctx);
- void DeleteAlarmSetting(Kernel::HLERequestContext& ctx);
- void Initialize(Kernel::HLERequestContext& ctx);
+ void RegisterAlarmSetting(HLERequestContext& ctx);
+ void UpdateAlarmSetting(HLERequestContext& ctx);
+ void ListAlarmSettings(HLERequestContext& ctx);
+ void LoadApplicationParameter(HLERequestContext& ctx);
+ void DeleteAlarmSetting(HLERequestContext& ctx);
+ void Initialize(HLERequestContext& ctx);
std::vector<AlarmSetting>::iterator GetAlarmFromId(AlarmSettingId alarm_setting_id);
diff --git a/src/core/hle/service/grc/grc.cpp b/src/core/hle/service/grc/grc.cpp
index 4b684f6d0..64275da36 100644
--- a/src/core/hle/service/grc/grc.cpp
+++ b/src/core/hle/service/grc/grc.cpp
@@ -4,8 +4,8 @@
#include <memory>
#include "core/hle/service/grc/grc.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::GRC {
@@ -26,8 +26,11 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<GRC>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("grc:c", std::make_shared<GRC>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::GRC
diff --git a/src/core/hle/service/grc/grc.h b/src/core/hle/service/grc/grc.h
index f8c2f8dab..a3f8a5b90 100644
--- a/src/core/hle/service/grc/grc.h
+++ b/src/core/hle/service/grc/grc.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::GRC {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::GRC
diff --git a/src/core/hle/service/hid/controllers/console_sixaxis.cpp b/src/core/hle/service/hid/controllers/console_sixaxis.cpp
index bb3cba910..bcb272eaf 100644
--- a/src/core/hle/service/hid/controllers/console_sixaxis.cpp
+++ b/src/core/hle/service/hid/controllers/console_sixaxis.cpp
@@ -1,17 +1,18 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/core.h"
#include "core/core_timing.h"
#include "core/hid/emulated_console.h"
#include "core/hid/hid_core.h"
#include "core/hle/service/hid/controllers/console_sixaxis.h"
+#include "core/memory.h"
namespace Service::HID {
constexpr std::size_t SHARED_MEMORY_OFFSET = 0x3C200;
-Controller_ConsoleSixAxis::Controller_ConsoleSixAxis(Core::HID::HIDCore& hid_core_,
- u8* raw_shared_memory_)
- : ControllerBase{hid_core_} {
+Controller_ConsoleSixAxis::Controller_ConsoleSixAxis(Core::System& system_, u8* raw_shared_memory_)
+ : ControllerBase{system_.HIDCore()}, system{system_} {
console = hid_core.GetEmulatedConsole();
static_assert(SHARED_MEMORY_OFFSET + sizeof(ConsoleSharedMemory) < shared_memory_size,
"ConsoleSharedMemory is bigger than the shared memory");
@@ -26,7 +27,7 @@ void Controller_ConsoleSixAxis::OnInit() {}
void Controller_ConsoleSixAxis::OnRelease() {}
void Controller_ConsoleSixAxis::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
- if (!IsControllerActivated() || !is_transfer_memory_set) {
+ if (!IsControllerActivated() || transfer_memory == 0) {
seven_sixaxis_lifo.buffer_count = 0;
seven_sixaxis_lifo.buffer_tail = 0;
return;
@@ -59,11 +60,11 @@ void Controller_ConsoleSixAxis::OnUpdate(const Core::Timing::CoreTiming& core_ti
// Update seven six axis transfer memory
seven_sixaxis_lifo.WriteNextEntry(next_seven_sixaxis_state);
- std::memcpy(transfer_memory, &seven_sixaxis_lifo, sizeof(seven_sixaxis_lifo));
+ system.ApplicationMemory().WriteBlock(transfer_memory, &seven_sixaxis_lifo,
+ sizeof(seven_sixaxis_lifo));
}
-void Controller_ConsoleSixAxis::SetTransferMemoryPointer(u8* t_mem) {
- is_transfer_memory_set = true;
+void Controller_ConsoleSixAxis::SetTransferMemoryAddress(Common::ProcessAddress t_mem) {
transfer_memory = t_mem;
}
diff --git a/src/core/hle/service/hid/controllers/console_sixaxis.h b/src/core/hle/service/hid/controllers/console_sixaxis.h
index 2fd11538f..7015d924c 100644
--- a/src/core/hle/service/hid/controllers/console_sixaxis.h
+++ b/src/core/hle/service/hid/controllers/console_sixaxis.h
@@ -5,11 +5,15 @@
#include <array>
-#include "common/common_types.h"
#include "common/quaternion.h"
+#include "common/typed_address.h"
#include "core/hle/service/hid/controllers/controller_base.h"
#include "core/hle/service/hid/ring_lifo.h"
+namespace Core {
+class System;
+} // namespace Core
+
namespace Core::HID {
class EmulatedConsole;
} // namespace Core::HID
@@ -17,7 +21,7 @@ class EmulatedConsole;
namespace Service::HID {
class Controller_ConsoleSixAxis final : public ControllerBase {
public:
- explicit Controller_ConsoleSixAxis(Core::HID::HIDCore& hid_core_, u8* raw_shared_memory_);
+ explicit Controller_ConsoleSixAxis(Core::System& system_, u8* raw_shared_memory_);
~Controller_ConsoleSixAxis() override;
// Called when the controller is initialized
@@ -30,7 +34,7 @@ public:
void OnUpdate(const Core::Timing::CoreTiming& core_timing) override;
// Called on InitializeSevenSixAxisSensor
- void SetTransferMemoryPointer(u8* t_mem);
+ void SetTransferMemoryAddress(Common::ProcessAddress t_mem);
// Called on ResetSevenSixAxisSensorTimestamp
void ResetTimestamp();
@@ -62,12 +66,13 @@ private:
static_assert(sizeof(seven_sixaxis_lifo) == 0xA70, "SevenSixAxisState is an invalid size");
SevenSixAxisState next_seven_sixaxis_state{};
- u8* transfer_memory = nullptr;
+ Common::ProcessAddress transfer_memory{};
ConsoleSharedMemory* shared_memory = nullptr;
Core::HID::EmulatedConsole* console = nullptr;
- bool is_transfer_memory_set = false;
u64 last_saved_timestamp{};
u64 last_global_timestamp{};
+
+ Core::System& system;
};
} // namespace Service::HID
diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/core/hle/service/hid/controllers/gesture.cpp
index 32e0708ba..03432f7cb 100644
--- a/src/core/hle/service/hid/controllers/gesture.cpp
+++ b/src/core/hle/service/hid/controllers/gesture.cpp
@@ -55,7 +55,7 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
static_cast<f32>(shared_memory->gesture_lifo.timestamp - last_update_timestamp) /
(1000 * 1000 * 1000);
- // Only update if necesary
+ // Only update if necessary
if (!ShouldUpdateGesture(gesture, time_difference)) {
return;
}
@@ -65,6 +65,11 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
}
void Controller_Gesture::ReadTouchInput() {
+ if (!Settings::values.touchscreen.enabled) {
+ fingers = {};
+ return;
+ }
+
const auto touch_status = console->GetTouch();
for (std::size_t id = 0; id < fingers.size(); ++id) {
fingers[id] = touch_status[id];
diff --git a/src/core/hle/service/hid/controllers/mouse.cpp b/src/core/hle/service/hid/controllers/mouse.cpp
index b11cb438d..0afc66681 100644
--- a/src/core/hle/service/hid/controllers/mouse.cpp
+++ b/src/core/hle/service/hid/controllers/mouse.cpp
@@ -33,10 +33,11 @@ void Controller_Mouse::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
return;
}
+ next_state = {};
+
const auto& last_entry = shared_memory->mouse_lifo.ReadCurrentEntry().state;
next_state.sampling_number = last_entry.sampling_number + 1;
- next_state.attribute.raw = 0;
if (Settings::values.mouse_enabled) {
const auto& mouse_button_state = emulated_devices->GetMouseButtons();
const auto& mouse_position_state = emulated_devices->GetMousePosition();
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 2f871de31..28818c813 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -70,7 +70,6 @@ Result Controller_NPad::VerifyValidSixAxisSensorHandle(
const Core::HID::SixAxisSensorHandle& device_handle) {
const auto npad_id = IsNpadIdValid(static_cast<Core::HID::NpadIdType>(device_handle.npad_id));
const bool device_index = device_handle.device_index < Core::HID::DeviceIndex::MaxDeviceIndex;
- const bool npad_type = device_handle.npad_type < Core::HID::NpadStyleIndex::MaxNpadType;
if (!npad_id) {
return InvalidNpadId;
@@ -78,10 +77,6 @@ Result Controller_NPad::VerifyValidSixAxisSensorHandle(
if (!device_index) {
return NpadDeviceIndexOutOfRange;
}
- // This doesn't get validated on nnsdk
- if (!npad_type) {
- return NpadInvalidHandle;
- }
return ResultSuccess;
}
@@ -272,6 +267,8 @@ void Controller_NPad::InitNewlyAddedController(Core::HID::NpadIdType npad_id) {
}
break;
case Core::HID::NpadStyleIndex::JoyconLeft:
+ shared_memory->fullkey_color.attribute = ColorAttribute::Ok;
+ shared_memory->fullkey_color.fullkey = body_colors.left;
shared_memory->joycon_color.attribute = ColorAttribute::Ok;
shared_memory->joycon_color.left = body_colors.left;
shared_memory->battery_level_dual = battery_level.left.battery_level;
@@ -285,6 +282,8 @@ void Controller_NPad::InitNewlyAddedController(Core::HID::NpadIdType npad_id) {
shared_memory->sixaxis_left_properties.is_newly_assigned.Assign(1);
break;
case Core::HID::NpadStyleIndex::JoyconRight:
+ shared_memory->fullkey_color.attribute = ColorAttribute::Ok;
+ shared_memory->fullkey_color.fullkey = body_colors.right;
shared_memory->joycon_color.attribute = ColorAttribute::Ok;
shared_memory->joycon_color.right = body_colors.right;
shared_memory->battery_level_right = battery_level.right.battery_level;
@@ -332,6 +331,20 @@ void Controller_NPad::InitNewlyAddedController(Core::HID::NpadIdType npad_id) {
controller.is_connected = true;
controller.device->Connect();
+ controller.device->SetLedPattern();
+ if (controller_type == Core::HID::NpadStyleIndex::JoyconDual) {
+ if (controller.is_dual_left_connected) {
+ controller.device->SetPollingMode(Core::HID::EmulatedDeviceIndex::LeftIndex,
+ Common::Input::PollingMode::Active);
+ }
+ if (controller.is_dual_right_connected) {
+ controller.device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Active);
+ }
+ } else {
+ controller.device->SetPollingMode(Core::HID::EmulatedDeviceIndex::AllDevices,
+ Common::Input::PollingMode::Active);
+ }
SignalStyleSetChangedEvent(npad_id);
WriteEmptyEntry(controller.shared_memory);
}
@@ -410,6 +423,9 @@ void Controller_NPad::RequestPadStateUpdate(Core::HID::NpadIdType npad_id) {
return;
}
+ // This function is unique to yuzu for the turbo buttons and motion to work properly
+ controller.device->StatusUpdate();
+
auto& pad_entry = controller.npad_pad_state;
auto& trigger_entry = controller.npad_trigger_state;
const auto button_state = controller.device->GetNpadButtons();
@@ -737,11 +753,20 @@ Core::HID::NpadStyleTag Controller_NPad::GetSupportedStyleSet() const {
return hid_core.GetSupportedStyleTag();
}
-void Controller_NPad::SetSupportedNpadIdTypes(u8* data, std::size_t length) {
+Result Controller_NPad::SetSupportedNpadIdTypes(std::span<const u8> data) {
+ constexpr std::size_t max_number_npad_ids = 0xa;
+ const auto length = data.size();
ASSERT(length > 0 && (length % sizeof(u32)) == 0);
+ const std::size_t elements = length / sizeof(u32);
+
+ if (elements > max_number_npad_ids) {
+ return InvalidArraySize;
+ }
+
supported_npad_id_types.clear();
- supported_npad_id_types.resize(length / sizeof(u32));
- std::memcpy(supported_npad_id_types.data(), data, length);
+ supported_npad_id_types.resize(elements);
+ std::memcpy(supported_npad_id_types.data(), data.data(), length);
+ return ResultSuccess;
}
void Controller_NPad::GetSupportedNpadIdTypes(u32* data, std::size_t max_length) {
@@ -789,12 +814,12 @@ Controller_NPad::NpadCommunicationMode Controller_NPad::GetNpadCommunicationMode
return communication_mode;
}
-Result Controller_NPad::SetNpadMode(Core::HID::NpadIdType npad_id,
- NpadJoyDeviceType npad_device_type,
- NpadJoyAssignmentMode assignment_mode) {
+bool Controller_NPad::SetNpadMode(Core::HID::NpadIdType& new_npad_id, Core::HID::NpadIdType npad_id,
+ NpadJoyDeviceType npad_device_type,
+ NpadJoyAssignmentMode assignment_mode) {
if (!IsNpadIdValid(npad_id)) {
LOG_ERROR(Service_HID, "Invalid NpadIdType npad_id:{}", npad_id);
- return InvalidNpadId;
+ return false;
}
auto& controller = GetControllerFromNpadIdType(npad_id);
@@ -803,7 +828,7 @@ Result Controller_NPad::SetNpadMode(Core::HID::NpadIdType npad_id,
}
if (!controller.device->IsConnected()) {
- return ResultSuccess;
+ return false;
}
if (assignment_mode == NpadJoyAssignmentMode::Dual) {
@@ -812,52 +837,52 @@ Result Controller_NPad::SetNpadMode(Core::HID::NpadIdType npad_id,
controller.is_dual_left_connected = true;
controller.is_dual_right_connected = false;
UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconDual, npad_id, true);
- return ResultSuccess;
+ return false;
}
if (controller.device->GetNpadStyleIndex() == Core::HID::NpadStyleIndex::JoyconRight) {
DisconnectNpad(npad_id);
controller.is_dual_left_connected = false;
controller.is_dual_right_connected = true;
UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconDual, npad_id, true);
- return ResultSuccess;
+ return false;
}
- return ResultSuccess;
+ return false;
}
// This is for NpadJoyAssignmentMode::Single
// Only JoyconDual get affected by this function
if (controller.device->GetNpadStyleIndex() != Core::HID::NpadStyleIndex::JoyconDual) {
- return ResultSuccess;
+ return false;
}
if (controller.is_dual_left_connected && !controller.is_dual_right_connected) {
DisconnectNpad(npad_id);
UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconLeft, npad_id, true);
- return ResultSuccess;
+ return false;
}
if (!controller.is_dual_left_connected && controller.is_dual_right_connected) {
DisconnectNpad(npad_id);
UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconRight, npad_id, true);
- return ResultSuccess;
+ return false;
}
// We have two controllers connected to the same npad_id we need to split them
- const auto npad_id_2 = hid_core.GetFirstDisconnectedNpadId();
- auto& controller_2 = GetControllerFromNpadIdType(npad_id_2);
+ new_npad_id = hid_core.GetFirstDisconnectedNpadId();
+ auto& controller_2 = GetControllerFromNpadIdType(new_npad_id);
DisconnectNpad(npad_id);
if (npad_device_type == NpadJoyDeviceType::Left) {
UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconLeft, npad_id, true);
controller_2.is_dual_left_connected = false;
controller_2.is_dual_right_connected = true;
- UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconDual, npad_id_2, true);
+ UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconDual, new_npad_id, true);
} else {
UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconRight, npad_id, true);
controller_2.is_dual_left_connected = true;
controller_2.is_dual_right_connected = false;
- UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconDual, npad_id_2, true);
+ UpdateControllerAt(Core::HID::NpadStyleIndex::JoyconDual, new_npad_id, true);
}
- return ResultSuccess;
+ return true;
}
bool Controller_NPad::VibrateControllerAtIndex(Core::HID::NpadIdType npad_id,
@@ -954,8 +979,8 @@ void Controller_NPad::VibrateController(
}
void Controller_NPad::VibrateControllers(
- const std::vector<Core::HID::VibrationDeviceHandle>& vibration_device_handles,
- const std::vector<Core::HID::VibrationValue>& vibration_values) {
+ std::span<const Core::HID::VibrationDeviceHandle> vibration_device_handles,
+ std::span<const Core::HID::VibrationValue> vibration_values) {
if (!Settings::values.vibration_enabled.GetValue() && !permit_vibration_session_enabled) {
return;
}
@@ -1101,8 +1126,10 @@ Result Controller_NPad::DisconnectNpad(Core::HID::NpadIdType npad_id) {
WriteEmptyEntry(shared_memory);
return ResultSuccess;
}
+
Result Controller_NPad::SetGyroscopeZeroDriftMode(
- const Core::HID::SixAxisSensorHandle& sixaxis_handle, GyroscopeZeroDriftMode drift_mode) {
+ const Core::HID::SixAxisSensorHandle& sixaxis_handle,
+ Core::HID::GyroscopeZeroDriftMode drift_mode) {
const auto is_valid = VerifyValidSixAxisSensorHandle(sixaxis_handle);
if (is_valid.IsError()) {
LOG_ERROR(Service_HID, "Invalid handle, error_code={}", is_valid.raw);
@@ -1110,14 +1137,16 @@ Result Controller_NPad::SetGyroscopeZeroDriftMode(
}
auto& sixaxis = GetSixaxisState(sixaxis_handle);
+ auto& controller = GetControllerFromHandle(sixaxis_handle);
sixaxis.gyroscope_zero_drift_mode = drift_mode;
+ controller.device->SetGyroscopeZeroDriftMode(drift_mode);
return ResultSuccess;
}
Result Controller_NPad::GetGyroscopeZeroDriftMode(
const Core::HID::SixAxisSensorHandle& sixaxis_handle,
- GyroscopeZeroDriftMode& drift_mode) const {
+ Core::HID::GyroscopeZeroDriftMode& drift_mode) const {
const auto is_valid = VerifyValidSixAxisSensorHandle(sixaxis_handle);
if (is_valid.IsError()) {
LOG_ERROR(Service_HID, "Invalid handle, error_code={}", is_valid.raw);
@@ -1355,7 +1384,8 @@ Result Controller_NPad::MergeSingleJoyAsDualJoy(Core::HID::NpadIdType npad_id_1,
return NpadIsDualJoycon;
}
- // Disconnect the joycon at the second id and connect the dual joycon at the first index.
+ // Disconnect the joycons and connect them as dual joycon at the first index.
+ DisconnectNpad(npad_id_1);
DisconnectNpad(npad_id_2);
controller_1.is_dual_left_connected = true;
controller_1.is_dual_right_connected = true;
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index 1a589cca2..776411261 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -6,6 +6,7 @@
#include <array>
#include <atomic>
#include <mutex>
+#include <span>
#include "common/bit_field.h"
#include "common/common_types.h"
@@ -51,13 +52,6 @@ public:
// When the controller is requesting a motion update for the shared memory
void OnMotionUpdate(const Core::Timing::CoreTiming& core_timing) override;
- // This is nn::hid::GyroscopeZeroDriftMode
- enum class GyroscopeZeroDriftMode : u32 {
- Loose = 0,
- Standard = 1,
- Tight = 2,
- };
-
// This is nn::hid::NpadJoyHoldType
enum class NpadJoyHoldType : u64 {
Vertical = 0,
@@ -95,7 +89,7 @@ public:
void SetSupportedStyleSet(Core::HID::NpadStyleTag style_set);
Core::HID::NpadStyleTag GetSupportedStyleSet() const;
- void SetSupportedNpadIdTypes(u8* data, std::size_t length);
+ Result SetSupportedNpadIdTypes(std::span<const u8> data);
void GetSupportedNpadIdTypes(u32* data, std::size_t max_length);
std::size_t GetSupportedNpadIdTypesSize() const;
@@ -108,8 +102,8 @@ public:
void SetNpadCommunicationMode(NpadCommunicationMode communication_mode_);
NpadCommunicationMode GetNpadCommunicationMode() const;
- Result SetNpadMode(Core::HID::NpadIdType npad_id, NpadJoyDeviceType npad_device_type,
- NpadJoyAssignmentMode assignment_mode);
+ bool SetNpadMode(Core::HID::NpadIdType& new_npad_id, Core::HID::NpadIdType npad_id,
+ NpadJoyDeviceType npad_device_type, NpadJoyAssignmentMode assignment_mode);
bool VibrateControllerAtIndex(Core::HID::NpadIdType npad_id, std::size_t device_index,
const Core::HID::VibrationValue& vibration_value);
@@ -118,8 +112,8 @@ public:
const Core::HID::VibrationValue& vibration_value);
void VibrateControllers(
- const std::vector<Core::HID::VibrationDeviceHandle>& vibration_device_handles,
- const std::vector<Core::HID::VibrationValue>& vibration_values);
+ std::span<const Core::HID::VibrationDeviceHandle> vibration_device_handles,
+ std::span<const Core::HID::VibrationValue> vibration_values);
Core::HID::VibrationValue GetLastVibration(
const Core::HID::VibrationDeviceHandle& vibration_device_handle) const;
@@ -145,9 +139,9 @@ public:
Result DisconnectNpad(Core::HID::NpadIdType npad_id);
Result SetGyroscopeZeroDriftMode(const Core::HID::SixAxisSensorHandle& sixaxis_handle,
- GyroscopeZeroDriftMode drift_mode);
+ Core::HID::GyroscopeZeroDriftMode drift_mode);
Result GetGyroscopeZeroDriftMode(const Core::HID::SixAxisSensorHandle& sixaxis_handle,
- GyroscopeZeroDriftMode& drift_mode) const;
+ Core::HID::GyroscopeZeroDriftMode& drift_mode) const;
Result IsSixAxisSensorAtRest(const Core::HID::SixAxisSensorHandle& sixaxis_handle,
bool& is_at_rest) const;
Result IsFirmwareUpdateAvailableForSixAxisSensor(
@@ -488,7 +482,8 @@ private:
Core::HID::SixAxisSensorFusionParameters fusion{};
Core::HID::SixAxisSensorCalibrationParameter calibration{};
Core::HID::SixAxisSensorIcInformation ic_information{};
- GyroscopeZeroDriftMode gyroscope_zero_drift_mode{GyroscopeZeroDriftMode::Standard};
+ Core::HID::GyroscopeZeroDriftMode gyroscope_zero_drift_mode{
+ Core::HID::GyroscopeZeroDriftMode::Standard};
};
struct NpadControllerData {
diff --git a/src/core/hle/service/hid/controllers/palma.cpp b/src/core/hle/service/hid/controllers/palma.cpp
index 4564ea1e2..14c67e454 100644
--- a/src/core/hle/service/hid/controllers/palma.cpp
+++ b/src/core/hle/service/hid/controllers/palma.cpp
@@ -152,7 +152,7 @@ Result Controller_Palma::WritePalmaRgbLedPatternEntry(const PalmaConnectionHandl
}
Result Controller_Palma::WritePalmaWaveEntry(const PalmaConnectionHandle& handle, PalmaWaveSet wave,
- u8* t_mem, u64 size) {
+ Common::ProcessAddress t_mem, u64 size) {
if (handle.npad_id != active_handle.npad_id) {
return InvalidPalmaHandle;
}
diff --git a/src/core/hle/service/hid/controllers/palma.h b/src/core/hle/service/hid/controllers/palma.h
index 1d7fc94e1..a0491a819 100644
--- a/src/core/hle/service/hid/controllers/palma.h
+++ b/src/core/hle/service/hid/controllers/palma.h
@@ -5,7 +5,7 @@
#include <array>
#include "common/common_funcs.h"
-#include "common/common_types.h"
+#include "common/typed_address.h"
#include "core/hle/service/hid/controllers/controller_base.h"
#include "core/hle/service/hid/errors.h"
@@ -125,8 +125,8 @@ public:
Result ReadPalmaUniqueCode(const PalmaConnectionHandle& handle);
Result SetPalmaUniqueCodeInvalid(const PalmaConnectionHandle& handle);
Result WritePalmaRgbLedPatternEntry(const PalmaConnectionHandle& handle, u64 unknown);
- Result WritePalmaWaveEntry(const PalmaConnectionHandle& handle, PalmaWaveSet wave, u8* t_mem,
- u64 size);
+ Result WritePalmaWaveEntry(const PalmaConnectionHandle& handle, PalmaWaveSet wave,
+ Common::ProcessAddress t_mem, u64 size);
Result SetPalmaDataBaseIdentificationVersion(const PalmaConnectionHandle& handle,
s32 database_id_version_);
Result GetPalmaDataBaseIdentificationVersion(const PalmaConnectionHandle& handle);
diff --git a/src/core/hle/service/hid/controllers/stubbed.cpp b/src/core/hle/service/hid/controllers/stubbed.cpp
index df9ee0c3f..9e2f3ab21 100644
--- a/src/core/hle/service/hid/controllers/stubbed.cpp
+++ b/src/core/hle/service/hid/controllers/stubbed.cpp
@@ -26,7 +26,7 @@ void Controller_Stubbed::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
}
CommonHeader header{};
- header.timestamp = core_timing.GetCPUTicks();
+ header.timestamp = core_timing.GetGlobalTimeNs().count();
header.total_entry_count = 17;
header.entry_count = 0;
header.last_entry_index = 0;
diff --git a/src/core/hle/service/hid/controllers/touchscreen.cpp b/src/core/hle/service/hid/controllers/touchscreen.cpp
index 1da8d3eb0..3ef91df4b 100644
--- a/src/core/hle/service/hid/controllers/touchscreen.cpp
+++ b/src/core/hle/service/hid/controllers/touchscreen.cpp
@@ -32,7 +32,7 @@ void Controller_Touchscreen::OnInit() {}
void Controller_Touchscreen::OnRelease() {}
void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
- shared_memory->touch_screen_lifo.timestamp = core_timing.GetCPUTicks();
+ shared_memory->touch_screen_lifo.timestamp = core_timing.GetGlobalTimeNs().count();
if (!IsControllerActivated()) {
shared_memory->touch_screen_lifo.buffer_count = 0;
@@ -58,6 +58,11 @@ void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timin
}
if (!finger.pressed && current_touch.pressed) {
+ // Ignore all touch fingers if disabled
+ if (!Settings::values.touchscreen.enabled) {
+ continue;
+ }
+
finger.attribute.start_touch.Assign(1);
finger.pressed = true;
finger.position = current_touch.position;
@@ -80,7 +85,7 @@ void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timin
const auto active_fingers_count =
static_cast<std::size_t>(std::distance(active_fingers.begin(), end_iter));
- const u64 tick = core_timing.GetCPUTicks();
+ const u64 timestamp = static_cast<u64>(core_timing.GetGlobalTimeNs().count());
const auto& last_entry = shared_memory->touch_screen_lifo.ReadCurrentEntry().state;
next_state.sampling_number = last_entry.sampling_number + 1;
@@ -97,8 +102,8 @@ void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timin
touch_entry.diameter_x = Settings::values.touchscreen.diameter_x;
touch_entry.diameter_y = Settings::values.touchscreen.diameter_y;
touch_entry.rotation_angle = Settings::values.touchscreen.rotation_angle;
- touch_entry.delta_time = tick - active_fingers[id].last_touch;
- fingers[active_fingers[id].id].last_touch = tick;
+ touch_entry.delta_time = timestamp - active_fingers[id].last_touch;
+ fingers[active_fingers[id].id].last_touch = timestamp;
touch_entry.finger = active_fingers[id].id;
touch_entry.attribute.raw = active_fingers[id].attribute.raw;
} else {
diff --git a/src/core/hle/service/hid/errors.h b/src/core/hle/service/hid/errors.h
index 76208e9a4..9585bdaf0 100644
--- a/src/core/hle/service/hid/errors.h
+++ b/src/core/hle/service/hid/errors.h
@@ -18,6 +18,7 @@ constexpr Result NpadIsDualJoycon{ErrorModule::HID, 601};
constexpr Result NpadIsSameType{ErrorModule::HID, 602};
constexpr Result InvalidNpadId{ErrorModule::HID, 709};
constexpr Result NpadNotConnected{ErrorModule::HID, 710};
+constexpr Result InvalidArraySize{ErrorModule::HID, 715};
constexpr Result InvalidPalmaHandle{ErrorModule::HID, 3302};
} // namespace Service::HID
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index bf28440c6..2bf1d8a27 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -8,7 +8,6 @@
#include "core/core.h"
#include "core/core_timing.h"
#include "core/hid/hid_core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_readable_event.h"
#include "core/hle/kernel/k_shared_memory.h"
#include "core/hle/kernel/k_transfer_memory.h"
@@ -18,6 +17,8 @@
#include "core/hle/service/hid/hidbus.h"
#include "core/hle/service/hid/irs.h"
#include "core/hle/service/hid/xcd.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/memory.h"
#include "core/hle/service/hid/controllers/console_sixaxis.h"
@@ -63,6 +64,7 @@ IAppletResource::IAppletResource(Core::System& system_,
MakeControllerWithServiceContext<Controller_NPad>(HidController::NPad, shared_memory);
MakeController<Controller_Gesture>(HidController::Gesture, shared_memory);
MakeController<Controller_ConsoleSixAxis>(HidController::ConsoleSixAxisSensor, shared_memory);
+ MakeController<Controller_Stubbed>(HidController::DebugMouse, shared_memory);
MakeControllerWithServiceContext<Controller_Palma>(HidController::Palma, shared_memory);
// Homebrew doesn't try to activate some controllers, so we activate them by default
@@ -74,6 +76,7 @@ IAppletResource::IAppletResource(Core::System& system_,
GetController<Controller_Stubbed>(HidController::CaptureButton).SetCommonHeaderOffset(0x5000);
GetController<Controller_Stubbed>(HidController::InputDetector).SetCommonHeaderOffset(0x5200);
GetController<Controller_Stubbed>(HidController::UniquePad).SetCommonHeaderOffset(0x5A00);
+ GetController<Controller_Stubbed>(HidController::DebugMouse).SetCommonHeaderOffset(0x3DC00);
// Register update callbacks
npad_update_event = Core::Timing::CreateEvent(
@@ -135,7 +138,7 @@ IAppletResource::~IAppletResource() {
system.CoreTiming().UnscheduleEvent(motion_update_event, 0);
}
-void IAppletResource::GetSharedMemoryHandle(Kernel::HLERequestContext& ctx) {
+void IAppletResource::GetSharedMemoryHandle(HLERequestContext& ctx) {
LOG_DEBUG(Service_HID, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -200,7 +203,7 @@ public:
}
private:
- void InitializeVibrationDevice(Kernel::HLERequestContext& ctx) {
+ void InitializeVibrationDevice(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()};
@@ -236,6 +239,7 @@ Hid::Hid(Core::System& system_)
{1, &Hid::ActivateDebugPad, "ActivateDebugPad"},
{11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"},
{21, &Hid::ActivateMouse, "ActivateMouse"},
+ {26, nullptr, "ActivateDebugMouse"},
{31, &Hid::ActivateKeyboard, "ActivateKeyboard"},
{32, &Hid::SendKeyboardLockKeyEvent, "SendKeyboardLockKeyEvent"},
{40, nullptr, "AcquireXpadIdEventHandle"},
@@ -298,7 +302,7 @@ Hid::Hid(Core::System& system_)
{130, &Hid::SwapNpadAssignment, "SwapNpadAssignment"},
{131, &Hid::IsUnintendedHomeButtonInputProtectionEnabled, "IsUnintendedHomeButtonInputProtectionEnabled"},
{132, &Hid::EnableUnintendedHomeButtonInputProtection, "EnableUnintendedHomeButtonInputProtection"},
- {133, nullptr, "SetNpadJoyAssignmentModeSingleWithDestination"},
+ {133, &Hid::SetNpadJoyAssignmentModeSingleWithDestination, "SetNpadJoyAssignmentModeSingleWithDestination"},
{134, &Hid::SetNpadAnalogStickUseCenterClamp, "SetNpadAnalogStickUseCenterClamp"},
{135, &Hid::SetNpadCaptureButtonAssignment, "SetNpadCaptureButtonAssignment"},
{136, &Hid::ClearNpadCaptureButtonAssignment, "ClearNpadCaptureButtonAssignment"},
@@ -378,7 +382,7 @@ Hid::Hid(Core::System& system_)
Hid::~Hid() = default;
-void Hid::CreateAppletResource(Kernel::HLERequestContext& ctx) {
+void Hid::CreateAppletResource(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -393,7 +397,7 @@ void Hid::CreateAppletResource(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IAppletResource>(applet_resource);
}
-void Hid::ActivateDebugPad(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateDebugPad(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -405,7 +409,7 @@ void Hid::ActivateDebugPad(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::ActivateTouchScreen(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateTouchScreen(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -417,7 +421,7 @@ void Hid::ActivateTouchScreen(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::ActivateMouse(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateMouse(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -429,7 +433,7 @@ void Hid::ActivateMouse(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::ActivateKeyboard(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateKeyboard(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -441,7 +445,7 @@ void Hid::ActivateKeyboard(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SendKeyboardLockKeyEvent(Kernel::HLERequestContext& ctx) {
+void Hid::SendKeyboardLockKeyEvent(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto flags{rp.Pop<u32>()};
@@ -451,7 +455,7 @@ void Hid::SendKeyboardLockKeyEvent(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::ActivateXpad(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateXpad(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
u32 basic_xpad_id;
@@ -471,7 +475,7 @@ void Hid::ActivateXpad(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetXpadIDs(Kernel::HLERequestContext& ctx) {
+void Hid::GetXpadIDs(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -482,7 +486,7 @@ void Hid::GetXpadIDs(Kernel::HLERequestContext& ctx) {
rb.Push(0);
}
-void Hid::ActivateSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
u32 basic_xpad_id;
@@ -502,7 +506,7 @@ void Hid::ActivateSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::DeactivateSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::DeactivateSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
u32 basic_xpad_id;
@@ -522,7 +526,7 @@ void Hid::DeactivateSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::StartSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::StartSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -545,7 +549,7 @@ void Hid::StartSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::StopSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::StopSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -568,7 +572,7 @@ void Hid::StopSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::IsSixAxisSensorFusionEnabled(Kernel::HLERequestContext& ctx) {
+void Hid::IsSixAxisSensorFusionEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -594,7 +598,7 @@ void Hid::IsSixAxisSensorFusionEnabled(Kernel::HLERequestContext& ctx) {
rb.Push(is_enabled);
}
-void Hid::EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx) {
+void Hid::EnableSixAxisSensorFusion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
bool enable_sixaxis_sensor_fusion;
@@ -621,7 +625,7 @@ void Hid::EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::SetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx) {
+void Hid::SetSixAxisSensorFusionParameters(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -648,7 +652,7 @@ void Hid::SetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::GetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx) {
+void Hid::GetSixAxisSensorFusionParameters(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -675,7 +679,7 @@ void Hid::GetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx) {
rb.PushRaw(fusion_parameters);
}
-void Hid::ResetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx) {
+void Hid::ResetSixAxisSensorFusionParameters(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -686,7 +690,7 @@ void Hid::ResetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
- // Since these parameters are unknow just use what HW outputs
+ // Since these parameters are unknown just use what HW outputs
const Core::HID::SixAxisSensorFusionParameters fusion_parameters{
.parameter1 = 0.03f,
.parameter2 = 0.4f,
@@ -709,10 +713,10 @@ void Hid::ResetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx) {
rb.Push(result2);
}
-void Hid::SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
+void Hid::SetGyroscopeZeroDriftMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto sixaxis_handle{rp.PopRaw<Core::HID::SixAxisSensorHandle>()};
- const auto drift_mode{rp.PopEnum<Controller_NPad::GyroscopeZeroDriftMode>()};
+ const auto drift_mode{rp.PopEnum<Core::HID::GyroscopeZeroDriftMode>()};
const auto applet_resource_user_id{rp.Pop<u64>()};
auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
@@ -728,7 +732,7 @@ void Hid::SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
+void Hid::GetGyroscopeZeroDriftMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -739,7 +743,7 @@ void Hid::GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
- auto drift_mode{Controller_NPad::GyroscopeZeroDriftMode::Standard};
+ auto drift_mode{Core::HID::GyroscopeZeroDriftMode::Standard};
auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
const auto result = controller.GetGyroscopeZeroDriftMode(parameters.sixaxis_handle, drift_mode);
@@ -753,7 +757,7 @@ void Hid::GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
rb.PushEnum(drift_mode);
}
-void Hid::ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
+void Hid::ResetGyroscopeZeroDriftMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -764,7 +768,7 @@ void Hid::ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
- const auto drift_mode{Controller_NPad::GyroscopeZeroDriftMode::Standard};
+ const auto drift_mode{Core::HID::GyroscopeZeroDriftMode::Standard};
auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
const auto result = controller.SetGyroscopeZeroDriftMode(parameters.sixaxis_handle, drift_mode);
@@ -777,7 +781,7 @@ void Hid::ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::IsSixAxisSensorAtRest(Kernel::HLERequestContext& ctx) {
+void Hid::IsSixAxisSensorAtRest(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -802,7 +806,7 @@ void Hid::IsSixAxisSensorAtRest(Kernel::HLERequestContext& ctx) {
rb.Push(is_at_rest);
}
-void Hid::IsFirmwareUpdateAvailableForSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::IsFirmwareUpdateAvailableForSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -829,7 +833,7 @@ void Hid::IsFirmwareUpdateAvailableForSixAxisSensor(Kernel::HLERequestContext& c
rb.Push(is_firmware_available);
}
-void Hid::EnableSixAxisSensorUnalteredPassthrough(Kernel::HLERequestContext& ctx) {
+void Hid::EnableSixAxisSensorUnalteredPassthrough(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
bool enabled;
@@ -855,7 +859,7 @@ void Hid::EnableSixAxisSensorUnalteredPassthrough(Kernel::HLERequestContext& ctx
rb.Push(result);
}
-void Hid::IsSixAxisSensorUnalteredPassthroughEnabled(Kernel::HLERequestContext& ctx) {
+void Hid::IsSixAxisSensorUnalteredPassthroughEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -882,7 +886,7 @@ void Hid::IsSixAxisSensorUnalteredPassthroughEnabled(Kernel::HLERequestContext&
rb.Push(is_unaltered_sisxaxis_enabled);
}
-void Hid::LoadSixAxisSensorCalibrationParameter(Kernel::HLERequestContext& ctx) {
+void Hid::LoadSixAxisSensorCalibrationParameter(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -912,7 +916,7 @@ void Hid::LoadSixAxisSensorCalibrationParameter(Kernel::HLERequestContext& ctx)
rb.Push(result);
}
-void Hid::GetSixAxisSensorIcInformation(Kernel::HLERequestContext& ctx) {
+void Hid::GetSixAxisSensorIcInformation(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -942,7 +946,7 @@ void Hid::GetSixAxisSensorIcInformation(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::ResetIsSixAxisSensorDeviceNewlyAssigned(Kernel::HLERequestContext& ctx) {
+void Hid::ResetIsSixAxisSensorDeviceNewlyAssigned(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::SixAxisSensorHandle sixaxis_handle;
@@ -967,7 +971,7 @@ void Hid::ResetIsSixAxisSensorDeviceNewlyAssigned(Kernel::HLERequestContext& ctx
rb.Push(result);
}
-void Hid::ActivateGesture(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateGesture(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
u32 unknown;
@@ -987,7 +991,7 @@ void Hid::ActivateGesture(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {
+void Hid::SetSupportedNpadStyleSet(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadStyleSet supported_styleset;
@@ -1008,7 +1012,7 @@ void Hid::SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {
+void Hid::GetSupportedNpadStyleSet(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1021,20 +1025,20 @@ void Hid::GetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {
.raw);
}
-void Hid::SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) {
+void Hid::SetSupportedNpadIdType(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
- applet_resource->GetController<Controller_NPad>(HidController::NPad)
- .SetSupportedNpadIdTypes(ctx.ReadBuffer().data(), ctx.GetReadBufferSize());
+ const auto result = applet_resource->GetController<Controller_NPad>(HidController::NPad)
+ .SetSupportedNpadIdTypes(ctx.ReadBuffer());
LOG_DEBUG(Service_HID, "called, applet_resource_user_id={}", applet_resource_user_id);
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultSuccess);
+ rb.Push(result);
}
-void Hid::ActivateNpad(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateNpad(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1046,7 +1050,7 @@ void Hid::ActivateNpad(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::DeactivateNpad(Kernel::HLERequestContext& ctx) {
+void Hid::DeactivateNpad(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1058,7 +1062,7 @@ void Hid::DeactivateNpad(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx) {
+void Hid::AcquireNpadStyleSetUpdateEventHandle(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -1083,7 +1087,7 @@ void Hid::AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx) {
.GetStyleSetChangedEvent(parameters.npad_id));
}
-void Hid::DisconnectNpad(Kernel::HLERequestContext& ctx) {
+void Hid::DisconnectNpad(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -1104,7 +1108,7 @@ void Hid::DisconnectNpad(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetPlayerLedPattern(Kernel::HLERequestContext& ctx) {
+void Hid::GetPlayerLedPattern(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto npad_id{rp.PopEnum<Core::HID::NpadIdType>()};
@@ -1119,7 +1123,7 @@ void Hid::GetPlayerLedPattern(Kernel::HLERequestContext& ctx) {
rb.Push(pattern.raw);
}
-void Hid::ActivateNpadWithRevision(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateNpadWithRevision(HLERequestContext& ctx) {
// Should have no effect with how our npad sets up the data
IPC::RequestParser rp{ctx};
struct Parameters {
@@ -1140,7 +1144,7 @@ void Hid::ActivateNpadWithRevision(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadJoyHoldType(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
const auto hold_type{rp.PopEnum<Controller_NPad::NpadJoyHoldType>()};
@@ -1154,7 +1158,7 @@ void Hid::SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {
+void Hid::GetNpadJoyHoldType(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1165,7 +1169,7 @@ void Hid::GetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {
rb.PushEnum(applet_resource->GetController<Controller_NPad>(HidController::NPad).GetHoldType());
}
-void Hid::SetNpadJoyAssignmentModeSingleByDefault(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadJoyAssignmentModeSingleByDefault(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -1176,8 +1180,10 @@ void Hid::SetNpadJoyAssignmentModeSingleByDefault(Kernel::HLERequestContext& ctx
const auto parameters{rp.PopRaw<Parameters>()};
+ Core::HID::NpadIdType new_npad_id{};
auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
- controller.SetNpadMode(parameters.npad_id, Controller_NPad::NpadJoyDeviceType::Left,
+ controller.SetNpadMode(new_npad_id, parameters.npad_id,
+ Controller_NPad::NpadJoyDeviceType::Left,
Controller_NPad::NpadJoyAssignmentMode::Single);
LOG_INFO(Service_HID, "called, npad_id={}, applet_resource_user_id={}", parameters.npad_id,
@@ -1187,7 +1193,7 @@ void Hid::SetNpadJoyAssignmentModeSingleByDefault(Kernel::HLERequestContext& ctx
rb.Push(ResultSuccess);
}
-void Hid::SetNpadJoyAssignmentModeSingle(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadJoyAssignmentModeSingle(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -1199,8 +1205,9 @@ void Hid::SetNpadJoyAssignmentModeSingle(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
+ Core::HID::NpadIdType new_npad_id{};
auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
- controller.SetNpadMode(parameters.npad_id, parameters.npad_joy_device_type,
+ controller.SetNpadMode(new_npad_id, parameters.npad_id, parameters.npad_joy_device_type,
Controller_NPad::NpadJoyAssignmentMode::Single);
LOG_INFO(Service_HID, "called, npad_id={}, applet_resource_user_id={}, npad_joy_device_type={}",
@@ -1211,7 +1218,7 @@ void Hid::SetNpadJoyAssignmentModeSingle(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetNpadJoyAssignmentModeDual(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadJoyAssignmentModeDual(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -1222,8 +1229,10 @@ void Hid::SetNpadJoyAssignmentModeDual(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
+ Core::HID::NpadIdType new_npad_id{};
auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
- controller.SetNpadMode(parameters.npad_id, {}, Controller_NPad::NpadJoyAssignmentMode::Dual);
+ controller.SetNpadMode(new_npad_id, parameters.npad_id, {},
+ Controller_NPad::NpadJoyAssignmentMode::Dual);
LOG_INFO(Service_HID, "called, npad_id={}, applet_resource_user_id={}", parameters.npad_id,
parameters.applet_resource_user_id);
@@ -1232,7 +1241,7 @@ void Hid::SetNpadJoyAssignmentModeDual(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::MergeSingleJoyAsDualJoy(Kernel::HLERequestContext& ctx) {
+void Hid::MergeSingleJoyAsDualJoy(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto npad_id_1{rp.PopEnum<Core::HID::NpadIdType>()};
const auto npad_id_2{rp.PopEnum<Core::HID::NpadIdType>()};
@@ -1248,7 +1257,7 @@ void Hid::MergeSingleJoyAsDualJoy(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::StartLrAssignmentMode(Kernel::HLERequestContext& ctx) {
+void Hid::StartLrAssignmentMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1260,7 +1269,7 @@ void Hid::StartLrAssignmentMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::StopLrAssignmentMode(Kernel::HLERequestContext& ctx) {
+void Hid::StopLrAssignmentMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1272,7 +1281,7 @@ void Hid::StopLrAssignmentMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadHandheldActivationMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
const auto activation_mode{rp.PopEnum<Controller_NPad::NpadHandheldActivationMode>()};
@@ -1287,7 +1296,7 @@ void Hid::SetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx) {
+void Hid::GetNpadHandheldActivationMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1299,7 +1308,7 @@ void Hid::GetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx) {
.GetNpadHandheldActivationMode());
}
-void Hid::SwapNpadAssignment(Kernel::HLERequestContext& ctx) {
+void Hid::SwapNpadAssignment(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto npad_id_1{rp.PopEnum<Core::HID::NpadIdType>()};
const auto npad_id_2{rp.PopEnum<Core::HID::NpadIdType>()};
@@ -1315,7 +1324,7 @@ void Hid::SwapNpadAssignment(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::IsUnintendedHomeButtonInputProtectionEnabled(Kernel::HLERequestContext& ctx) {
+void Hid::IsUnintendedHomeButtonInputProtectionEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -1339,7 +1348,7 @@ void Hid::IsUnintendedHomeButtonInputProtectionEnabled(Kernel::HLERequestContext
rb.Push(is_enabled);
}
-void Hid::EnableUnintendedHomeButtonInputProtection(Kernel::HLERequestContext& ctx) {
+void Hid::EnableUnintendedHomeButtonInputProtection(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
bool unintended_home_button_input_protection;
@@ -1365,7 +1374,35 @@ void Hid::EnableUnintendedHomeButtonInputProtection(Kernel::HLERequestContext& c
rb.Push(result);
}
-void Hid::SetNpadAnalogStickUseCenterClamp(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadJoyAssignmentModeSingleWithDestination(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ struct Parameters {
+ Core::HID::NpadIdType npad_id;
+ INSERT_PADDING_WORDS_NOINIT(1);
+ u64 applet_resource_user_id;
+ Controller_NPad::NpadJoyDeviceType npad_joy_device_type;
+ };
+ static_assert(sizeof(Parameters) == 0x18, "Parameters has incorrect size.");
+
+ const auto parameters{rp.PopRaw<Parameters>()};
+
+ Core::HID::NpadIdType new_npad_id{};
+ auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
+ const auto is_reassigned =
+ controller.SetNpadMode(new_npad_id, parameters.npad_id, parameters.npad_joy_device_type,
+ Controller_NPad::NpadJoyAssignmentMode::Single);
+
+ LOG_INFO(Service_HID, "called, npad_id={}, applet_resource_user_id={}, npad_joy_device_type={}",
+ parameters.npad_id, parameters.applet_resource_user_id,
+ parameters.npad_joy_device_type);
+
+ IPC::ResponseBuilder rb{ctx, 4};
+ rb.Push(ResultSuccess);
+ rb.Push(is_reassigned);
+ rb.PushEnum(new_npad_id);
+}
+
+void Hid::SetNpadAnalogStickUseCenterClamp(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
bool analog_stick_use_center_clamp;
@@ -1388,7 +1425,7 @@ void Hid::SetNpadAnalogStickUseCenterClamp(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetNpadCaptureButtonAssignment(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadCaptureButtonAssignment(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadStyleSet npad_styleset;
@@ -1408,7 +1445,7 @@ void Hid::SetNpadCaptureButtonAssignment(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::ClearNpadCaptureButtonAssignment(Kernel::HLERequestContext& ctx) {
+void Hid::ClearNpadCaptureButtonAssignment(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1419,7 +1456,7 @@ void Hid::ClearNpadCaptureButtonAssignment(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx) {
+void Hid::GetVibrationDeviceInfo(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()};
const auto& controller =
@@ -1479,7 +1516,7 @@ void Hid::GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx) {
rb.PushRaw(vibration_device_info);
}
-void Hid::SendVibrationValue(Kernel::HLERequestContext& ctx) {
+void Hid::SendVibrationValue(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::VibrationDeviceHandle vibration_device_handle;
@@ -1504,7 +1541,7 @@ void Hid::SendVibrationValue(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetActualVibrationValue(Kernel::HLERequestContext& ctx) {
+void Hid::GetActualVibrationValue(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::VibrationDeviceHandle vibration_device_handle;
@@ -1527,7 +1564,7 @@ void Hid::GetActualVibrationValue(Kernel::HLERequestContext& ctx) {
.GetLastVibration(parameters.vibration_device_handle));
}
-void Hid::CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {
+void Hid::CreateActiveVibrationDeviceList(HLERequestContext& ctx) {
LOG_DEBUG(Service_HID, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -1535,7 +1572,7 @@ void Hid::CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IActiveVibrationDeviceList>(system, applet_resource);
}
-void Hid::PermitVibration(Kernel::HLERequestContext& ctx) {
+void Hid::PermitVibration(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto can_vibrate{rp.Pop<bool>()};
@@ -1549,7 +1586,7 @@ void Hid::PermitVibration(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::IsVibrationPermitted(Kernel::HLERequestContext& ctx) {
+void Hid::IsVibrationPermitted(HLERequestContext& ctx) {
LOG_DEBUG(Service_HID, "called");
// nnSDK checks if a float is greater than zero. We return the bool we stored earlier
@@ -1560,20 +1597,20 @@ void Hid::IsVibrationPermitted(Kernel::HLERequestContext& ctx) {
rb.Push(is_enabled);
}
-void Hid::SendVibrationValues(Kernel::HLERequestContext& ctx) {
+void Hid::SendVibrationValues(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
- const auto handles = ctx.ReadBuffer(0);
- const auto vibrations = ctx.ReadBuffer(1);
+ const auto handle_data = ctx.ReadBuffer(0);
+ const auto handle_count = ctx.GetReadBufferNumElements<Core::HID::VibrationDeviceHandle>(0);
+ const auto vibration_data = ctx.ReadBuffer(1);
+ const auto vibration_count = ctx.GetReadBufferNumElements<Core::HID::VibrationValue>(1);
- std::vector<Core::HID::VibrationDeviceHandle> vibration_device_handles(
- handles.size() / sizeof(Core::HID::VibrationDeviceHandle));
- std::vector<Core::HID::VibrationValue> vibration_values(vibrations.size() /
- sizeof(Core::HID::VibrationValue));
-
- std::memcpy(vibration_device_handles.data(), handles.data(), handles.size());
- std::memcpy(vibration_values.data(), vibrations.data(), vibrations.size());
+ auto vibration_device_handles =
+ std::span(reinterpret_cast<const Core::HID::VibrationDeviceHandle*>(handle_data.data()),
+ handle_count);
+ auto vibration_values = std::span(
+ reinterpret_cast<const Core::HID::VibrationValue*>(vibration_data.data()), vibration_count);
applet_resource->GetController<Controller_NPad>(HidController::NPad)
.VibrateControllers(vibration_device_handles, vibration_values);
@@ -1584,7 +1621,7 @@ void Hid::SendVibrationValues(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SendVibrationGcErmCommand(Kernel::HLERequestContext& ctx) {
+void Hid::SendVibrationGcErmCommand(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::VibrationDeviceHandle vibration_device_handle;
@@ -1645,7 +1682,7 @@ void Hid::SendVibrationGcErmCommand(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetActualVibrationGcErmCommand(Kernel::HLERequestContext& ctx) {
+void Hid::GetActualVibrationGcErmCommand(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::VibrationDeviceHandle vibration_device_handle;
@@ -1687,7 +1724,7 @@ void Hid::GetActualVibrationGcErmCommand(Kernel::HLERequestContext& ctx) {
rb.PushEnum(gc_erm_command);
}
-void Hid::BeginPermitVibrationSession(Kernel::HLERequestContext& ctx) {
+void Hid::BeginPermitVibrationSession(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1700,7 +1737,7 @@ void Hid::BeginPermitVibrationSession(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::EndPermitVibrationSession(Kernel::HLERequestContext& ctx) {
+void Hid::EndPermitVibrationSession(HLERequestContext& ctx) {
applet_resource->GetController<Controller_NPad>(HidController::NPad)
.SetPermitVibrationSession(false);
@@ -1710,7 +1747,7 @@ void Hid::EndPermitVibrationSession(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::IsVibrationDeviceMounted(Kernel::HLERequestContext& ctx) {
+void Hid::IsVibrationDeviceMounted(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::VibrationDeviceHandle vibration_device_handle;
@@ -1733,7 +1770,7 @@ void Hid::IsVibrationDeviceMounted(Kernel::HLERequestContext& ctx) {
.IsVibrationDeviceMounted(parameters.vibration_device_handle));
}
-void Hid::ActivateConsoleSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateConsoleSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1745,7 +1782,7 @@ void Hid::ActivateConsoleSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::StartConsoleSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::StartConsoleSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::ConsoleSixAxisSensorHandle console_sixaxis_handle;
@@ -1765,7 +1802,7 @@ void Hid::StartConsoleSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::StopConsoleSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::StopConsoleSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::ConsoleSixAxisSensorHandle console_sixaxis_handle;
@@ -1785,7 +1822,7 @@ void Hid::StopConsoleSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::ActivateSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::ActivateSevenSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1797,7 +1834,7 @@ void Hid::ActivateSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::StartSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::StartSevenSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1808,7 +1845,7 @@ void Hid::StartSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::StopSevenSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1819,7 +1856,7 @@ void Hid::StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::InitializeSevenSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
const auto t_mem_1_size{rp.Pop<u64>()};
@@ -1830,7 +1867,7 @@ void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
ASSERT_MSG(t_mem_1_size == 0x1000, "t_mem_1_size is not 0x1000 bytes");
ASSERT_MSG(t_mem_2_size == 0x7F000, "t_mem_2_size is not 0x7F000 bytes");
- auto t_mem_1 = system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
+ auto t_mem_1 = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
t_mem_1_handle);
if (t_mem_1.IsNull()) {
@@ -1840,7 +1877,7 @@ void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
return;
}
- auto t_mem_2 = system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
+ auto t_mem_2 = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
t_mem_2_handle);
if (t_mem_2.IsNull()) {
@@ -1858,7 +1895,7 @@ void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
.ActivateController();
applet_resource->GetController<Controller_ConsoleSixAxis>(HidController::ConsoleSixAxisSensor)
- .SetTransferMemoryPointer(system.Memory().GetPointer(t_mem_1->GetSourceAddress()));
+ .SetTransferMemoryAddress(t_mem_1->GetSourceAddress());
LOG_WARNING(Service_HID,
"called, t_mem_1_handle=0x{:08X}, t_mem_2_handle=0x{:08X}, "
@@ -1869,7 +1906,7 @@ void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::FinalizeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
+void Hid::FinalizeSevenSixAxisSensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1880,7 +1917,7 @@ void Hid::FinalizeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::ResetSevenSixAxisSensorTimestamp(Kernel::HLERequestContext& ctx) {
+void Hid::ResetSevenSixAxisSensorTimestamp(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -1893,7 +1930,7 @@ void Hid::ResetSevenSixAxisSensorTimestamp(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::IsUsbFullKeyControllerEnabled(Kernel::HLERequestContext& ctx) {
+void Hid::IsUsbFullKeyControllerEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
LOG_WARNING(Service_HID, "(STUBBED) called");
@@ -1903,7 +1940,7 @@ void Hid::IsUsbFullKeyControllerEnabled(Kernel::HLERequestContext& ctx) {
rb.Push(false);
}
-void Hid::GetPalmaConnectionHandle(Kernel::HLERequestContext& ctx) {
+void Hid::GetPalmaConnectionHandle(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -1926,7 +1963,7 @@ void Hid::GetPalmaConnectionHandle(Kernel::HLERequestContext& ctx) {
rb.PushRaw(handle);
}
-void Hid::InitializePalma(Kernel::HLERequestContext& ctx) {
+void Hid::InitializePalma(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -1939,7 +1976,7 @@ void Hid::InitializePalma(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::AcquirePalmaOperationCompleteEvent(Kernel::HLERequestContext& ctx) {
+void Hid::AcquirePalmaOperationCompleteEvent(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -1952,7 +1989,7 @@ void Hid::AcquirePalmaOperationCompleteEvent(Kernel::HLERequestContext& ctx) {
rb.PushCopyObjects(controller.AcquirePalmaOperationCompleteEvent(connection_handle));
}
-void Hid::GetPalmaOperationInfo(Kernel::HLERequestContext& ctx) {
+void Hid::GetPalmaOperationInfo(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -1974,7 +2011,7 @@ void Hid::GetPalmaOperationInfo(Kernel::HLERequestContext& ctx) {
rb.Push(static_cast<u64>(operation_type));
}
-void Hid::PlayPalmaActivity(Kernel::HLERequestContext& ctx) {
+void Hid::PlayPalmaActivity(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
const auto palma_activity{rp.Pop<u64>()};
@@ -1989,7 +2026,7 @@ void Hid::PlayPalmaActivity(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::SetPalmaFrModeType(Kernel::HLERequestContext& ctx) {
+void Hid::SetPalmaFrModeType(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
const auto fr_mode{rp.PopEnum<Controller_Palma::PalmaFrModeType>()};
@@ -2004,7 +2041,7 @@ void Hid::SetPalmaFrModeType(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::ReadPalmaStep(Kernel::HLERequestContext& ctx) {
+void Hid::ReadPalmaStep(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -2017,7 +2054,7 @@ void Hid::ReadPalmaStep(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::EnablePalmaStep(Kernel::HLERequestContext& ctx) {
+void Hid::EnablePalmaStep(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
bool is_enabled;
@@ -2039,7 +2076,7 @@ void Hid::EnablePalmaStep(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::ResetPalmaStep(Kernel::HLERequestContext& ctx) {
+void Hid::ResetPalmaStep(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -2052,21 +2089,21 @@ void Hid::ResetPalmaStep(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::ReadPalmaApplicationSection(Kernel::HLERequestContext& ctx) {
+void Hid::ReadPalmaApplicationSection(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::WritePalmaApplicationSection(Kernel::HLERequestContext& ctx) {
+void Hid::WritePalmaApplicationSection(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::ReadPalmaUniqueCode(Kernel::HLERequestContext& ctx) {
+void Hid::ReadPalmaUniqueCode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -2079,7 +2116,7 @@ void Hid::ReadPalmaUniqueCode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetPalmaUniqueCodeInvalid(Kernel::HLERequestContext& ctx) {
+void Hid::SetPalmaUniqueCodeInvalid(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -2092,19 +2129,19 @@ void Hid::SetPalmaUniqueCodeInvalid(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::WritePalmaActivityEntry(Kernel::HLERequestContext& ctx) {
+void Hid::WritePalmaActivityEntry(HLERequestContext& ctx) {
LOG_CRITICAL(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::WritePalmaRgbLedPatternEntry(Kernel::HLERequestContext& ctx) {
+void Hid::WritePalmaRgbLedPatternEntry(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
const auto unknown{rp.Pop<u64>()};
- const auto buffer = ctx.ReadBuffer();
+ [[maybe_unused]] const auto buffer = ctx.ReadBuffer();
LOG_WARNING(Service_HID, "(STUBBED) called, connection_handle={}, unknown={}",
connection_handle.npad_id, unknown);
@@ -2116,7 +2153,7 @@ void Hid::WritePalmaRgbLedPatternEntry(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::WritePalmaWaveEntry(Kernel::HLERequestContext& ctx) {
+void Hid::WritePalmaWaveEntry(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
const auto wave_set{rp.PopEnum<Controller_Palma::PalmaWaveSet>()};
@@ -2127,8 +2164,8 @@ void Hid::WritePalmaWaveEntry(Kernel::HLERequestContext& ctx) {
ASSERT_MSG(t_mem_size == 0x3000, "t_mem_size is not 0x3000 bytes");
- auto t_mem =
- system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(t_mem_handle);
+ auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
+ t_mem_handle);
if (t_mem.IsNull()) {
LOG_ERROR(Service_HID, "t_mem is a nullptr for handle=0x{:08X}", t_mem_handle);
@@ -2145,14 +2182,13 @@ void Hid::WritePalmaWaveEntry(Kernel::HLERequestContext& ctx) {
connection_handle.npad_id, wave_set, unknown, t_mem_handle, t_mem_size, size);
applet_resource->GetController<Controller_Palma>(HidController::Palma)
- .WritePalmaWaveEntry(connection_handle, wave_set,
- system.Memory().GetPointer(t_mem->GetSourceAddress()), t_mem_size);
+ .WritePalmaWaveEntry(connection_handle, wave_set, t_mem->GetSourceAddress(), t_mem_size);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::SetPalmaDataBaseIdentificationVersion(Kernel::HLERequestContext& ctx) {
+void Hid::SetPalmaDataBaseIdentificationVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
s32 database_id_version;
@@ -2174,7 +2210,7 @@ void Hid::SetPalmaDataBaseIdentificationVersion(Kernel::HLERequestContext& ctx)
rb.Push(ResultSuccess);
}
-void Hid::GetPalmaDataBaseIdentificationVersion(Kernel::HLERequestContext& ctx) {
+void Hid::GetPalmaDataBaseIdentificationVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -2187,14 +2223,14 @@ void Hid::GetPalmaDataBaseIdentificationVersion(Kernel::HLERequestContext& ctx)
rb.Push(ResultSuccess);
}
-void Hid::SuspendPalmaFeature(Kernel::HLERequestContext& ctx) {
+void Hid::SuspendPalmaFeature(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::GetPalmaOperationResult(Kernel::HLERequestContext& ctx) {
+void Hid::GetPalmaOperationResult(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -2207,21 +2243,21 @@ void Hid::GetPalmaOperationResult(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void Hid::ReadPalmaPlayLog(Kernel::HLERequestContext& ctx) {
+void Hid::ReadPalmaPlayLog(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::ResetPalmaPlayLog(Kernel::HLERequestContext& ctx) {
+void Hid::ResetPalmaPlayLog(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx) {
+void Hid::SetIsPalmaAllConnectable(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
bool is_palma_all_connectable;
@@ -2243,14 +2279,14 @@ void Hid::SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetIsPalmaPairedConnectable(Kernel::HLERequestContext& ctx) {
+void Hid::SetIsPalmaPairedConnectable(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::PairPalma(Kernel::HLERequestContext& ctx) {
+void Hid::PairPalma(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto connection_handle{rp.PopRaw<Controller_Palma::PalmaConnectionHandle>()};
@@ -2263,7 +2299,7 @@ void Hid::PairPalma(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::SetPalmaBoostMode(Kernel::HLERequestContext& ctx) {
+void Hid::SetPalmaBoostMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto palma_boost_mode{rp.Pop<bool>()};
@@ -2276,35 +2312,35 @@ void Hid::SetPalmaBoostMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::CancelWritePalmaWaveEntry(Kernel::HLERequestContext& ctx) {
+void Hid::CancelWritePalmaWaveEntry(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::EnablePalmaBoostMode(Kernel::HLERequestContext& ctx) {
+void Hid::EnablePalmaBoostMode(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::GetPalmaBluetoothAddress(Kernel::HLERequestContext& ctx) {
+void Hid::GetPalmaBluetoothAddress(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::SetDisallowedPalmaConnection(Kernel::HLERequestContext& ctx) {
+void Hid::SetDisallowedPalmaConnection(HLERequestContext& ctx) {
LOG_WARNING(Service_HID, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void Hid::SetNpadCommunicationMode(Kernel::HLERequestContext& ctx) {
+void Hid::SetNpadCommunicationMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
const auto communication_mode{rp.PopEnum<Controller_NPad::NpadCommunicationMode>()};
@@ -2319,7 +2355,7 @@ void Hid::SetNpadCommunicationMode(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::GetNpadCommunicationMode(Kernel::HLERequestContext& ctx) {
+void Hid::GetNpadCommunicationMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
LOG_WARNING(Service_HID, "(STUBBED) called");
@@ -2330,7 +2366,7 @@ void Hid::GetNpadCommunicationMode(Kernel::HLERequestContext& ctx) {
.GetNpadCommunicationMode());
}
-void Hid::SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx) {
+void Hid::SetTouchScreenConfiguration(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto touchscreen_mode{rp.PopRaw<Controller_Touchscreen::TouchScreenConfigurationForNx>()};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -2342,7 +2378,7 @@ void Hid::SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Hid::IsFirmwareUpdateNeededForNotification(Kernel::HLERequestContext& ctx) {
+void Hid::IsFirmwareUpdateNeededForNotification(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
s32 unknown;
@@ -2380,6 +2416,8 @@ public:
{20, nullptr, "DeactivateMouse"},
{21, nullptr, "SetMouseAutoPilotState"},
{22, nullptr, "UnsetMouseAutoPilotState"},
+ {25, nullptr, "SetDebugMouseAutoPilotState"},
+ {26, nullptr, "UnsetDebugMouseAutoPilotState"},
{30, nullptr, "DeactivateKeyboard"},
{31, nullptr, "SetKeyboardAutoPilotState"},
{32, nullptr, "UnsetKeyboardAutoPilotState"},
@@ -2495,6 +2533,7 @@ public:
{2000, nullptr, "DeactivateDigitizer"},
{2001, nullptr, "SetDigitizerAutoPilotState"},
{2002, nullptr, "UnsetDigitizerAutoPilotState"},
+ {2002, nullptr, "ReloadFirmwareDebugSettings"},
};
// clang-format on
@@ -2713,7 +2752,7 @@ public:
}
private:
- void ApplyNpadSystemCommonPolicy(Kernel::HLERequestContext& ctx) {
+ void ApplyNpadSystemCommonPolicy(HLERequestContext& ctx) {
// We already do this for homebrew so we can just stub it out
LOG_WARNING(Service_HID, "called");
@@ -2721,7 +2760,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetUniquePadsFromNpad(Kernel::HLERequestContext& ctx) {
+ void GetUniquePadsFromNpad(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto npad_id_type{rp.PopEnum<Core::HID::NpadIdType>()};
@@ -2734,30 +2773,20 @@ private:
}
};
-class HidTmp final : public ServiceFramework<HidTmp> {
-public:
- explicit HidTmp(Core::System& system_) : ServiceFramework{system_, "hid:tmp"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "GetConsoleSixAxisSensorCalibrationValues"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<Hid>(system)->InstallAsService(service_manager);
- std::make_shared<HidBus>(system)->InstallAsService(service_manager);
- std::make_shared<HidDbg>(system)->InstallAsService(service_manager);
- std::make_shared<HidSys>(system)->InstallAsService(service_manager);
- std::make_shared<HidTmp>(system)->InstallAsService(service_manager);
+ server_manager->RegisterNamedService("hid", std::make_shared<Hid>(system));
+ server_manager->RegisterNamedService("hidbus", std::make_shared<HidBus>(system));
+ server_manager->RegisterNamedService("hid:dbg", std::make_shared<HidDbg>(system));
+ server_manager->RegisterNamedService("hid:sys", std::make_shared<HidSys>(system));
- std::make_shared<Service::IRS::IRS>(system)->InstallAsService(service_manager);
- std::make_shared<Service::IRS::IRS_SYS>(system)->InstallAsService(service_manager);
+ server_manager->RegisterNamedService("irs", std::make_shared<Service::IRS::IRS>(system));
+ server_manager->RegisterNamedService("irs:sys",
+ std::make_shared<Service::IRS::IRS_SYS>(system));
- std::make_shared<XCD_SYS>(system)->InstallAsService(service_manager);
+ server_manager->RegisterNamedService("xcd:sys", std::make_shared<XCD_SYS>(system));
+ system.RunServer(std::move(server_manager));
}
} // namespace Service::HID
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h
index b7c2a23ef..f247b83c2 100644
--- a/src/core/hle/service/hid/hid.h
+++ b/src/core/hle/service/hid/hid.h
@@ -33,6 +33,7 @@ enum class HidController : std::size_t {
NPad,
Gesture,
ConsoleSixAxisSensor,
+ DebugMouse,
Palma,
MaxControllers,
@@ -60,16 +61,22 @@ public:
private:
template <typename T>
void MakeController(HidController controller, u8* shared_memory) {
- controllers[static_cast<std::size_t>(controller)] =
- std::make_unique<T>(system.HIDCore(), shared_memory);
+ if constexpr (std::is_constructible_v<T, Core::System&, u8*>) {
+ controllers[static_cast<std::size_t>(controller)] =
+ std::make_unique<T>(system, shared_memory);
+ } else {
+ controllers[static_cast<std::size_t>(controller)] =
+ std::make_unique<T>(system.HIDCore(), shared_memory);
+ }
}
+
template <typename T>
void MakeControllerWithServiceContext(HidController controller, u8* shared_memory) {
controllers[static_cast<std::size_t>(controller)] =
std::make_unique<T>(system.HIDCore(), shared_memory, service_context);
}
- void GetSharedMemoryHandle(Kernel::HLERequestContext& ctx);
+ void GetSharedMemoryHandle(HLERequestContext& ctx);
void UpdateControllers(std::uintptr_t user_data, std::chrono::nanoseconds ns_late);
void UpdateNpad(std::uintptr_t user_data, std::chrono::nanoseconds ns_late);
void UpdateMouseKeyboard(std::uintptr_t user_data, std::chrono::nanoseconds ns_late);
@@ -94,122 +101,122 @@ public:
std::shared_ptr<IAppletResource> GetAppletResource();
private:
- void CreateAppletResource(Kernel::HLERequestContext& ctx);
- void ActivateDebugPad(Kernel::HLERequestContext& ctx);
- void ActivateTouchScreen(Kernel::HLERequestContext& ctx);
- void ActivateMouse(Kernel::HLERequestContext& ctx);
- void ActivateKeyboard(Kernel::HLERequestContext& ctx);
- void SendKeyboardLockKeyEvent(Kernel::HLERequestContext& ctx);
- void ActivateXpad(Kernel::HLERequestContext& ctx);
- void GetXpadIDs(Kernel::HLERequestContext& ctx);
- void ActivateSixAxisSensor(Kernel::HLERequestContext& ctx);
- void DeactivateSixAxisSensor(Kernel::HLERequestContext& ctx);
- void StartSixAxisSensor(Kernel::HLERequestContext& ctx);
- void StopSixAxisSensor(Kernel::HLERequestContext& ctx);
- void IsSixAxisSensorFusionEnabled(Kernel::HLERequestContext& ctx);
- void EnableSixAxisSensorFusion(Kernel::HLERequestContext& ctx);
- void SetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx);
- void GetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx);
- void ResetSixAxisSensorFusionParameters(Kernel::HLERequestContext& ctx);
- void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx);
- void GetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx);
- void ResetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx);
- void IsSixAxisSensorAtRest(Kernel::HLERequestContext& ctx);
- void IsFirmwareUpdateAvailableForSixAxisSensor(Kernel::HLERequestContext& ctx);
- void EnableSixAxisSensorUnalteredPassthrough(Kernel::HLERequestContext& ctx);
- void IsSixAxisSensorUnalteredPassthroughEnabled(Kernel::HLERequestContext& ctx);
- void LoadSixAxisSensorCalibrationParameter(Kernel::HLERequestContext& ctx);
- void GetSixAxisSensorIcInformation(Kernel::HLERequestContext& ctx);
- void ResetIsSixAxisSensorDeviceNewlyAssigned(Kernel::HLERequestContext& ctx);
- void ActivateGesture(Kernel::HLERequestContext& ctx);
- void SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx);
- void GetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx);
- void SetSupportedNpadIdType(Kernel::HLERequestContext& ctx);
- void ActivateNpad(Kernel::HLERequestContext& ctx);
- void DeactivateNpad(Kernel::HLERequestContext& ctx);
- void AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx);
- void DisconnectNpad(Kernel::HLERequestContext& ctx);
- void GetPlayerLedPattern(Kernel::HLERequestContext& ctx);
- void ActivateNpadWithRevision(Kernel::HLERequestContext& ctx);
- void SetNpadJoyHoldType(Kernel::HLERequestContext& ctx);
- void GetNpadJoyHoldType(Kernel::HLERequestContext& ctx);
- void SetNpadJoyAssignmentModeSingleByDefault(Kernel::HLERequestContext& ctx);
- void SetNpadJoyAssignmentModeSingle(Kernel::HLERequestContext& ctx);
- void SetNpadJoyAssignmentModeDual(Kernel::HLERequestContext& ctx);
- void MergeSingleJoyAsDualJoy(Kernel::HLERequestContext& ctx);
- void StartLrAssignmentMode(Kernel::HLERequestContext& ctx);
- void StopLrAssignmentMode(Kernel::HLERequestContext& ctx);
- void SetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx);
- void GetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx);
- void SwapNpadAssignment(Kernel::HLERequestContext& ctx);
- void IsUnintendedHomeButtonInputProtectionEnabled(Kernel::HLERequestContext& ctx);
- void EnableUnintendedHomeButtonInputProtection(Kernel::HLERequestContext& ctx);
- void SetNpadAnalogStickUseCenterClamp(Kernel::HLERequestContext& ctx);
- void SetNpadCaptureButtonAssignment(Kernel::HLERequestContext& ctx);
- void ClearNpadCaptureButtonAssignment(Kernel::HLERequestContext& ctx);
- void GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx);
- void SendVibrationValue(Kernel::HLERequestContext& ctx);
- void GetActualVibrationValue(Kernel::HLERequestContext& ctx);
- void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx);
- void PermitVibration(Kernel::HLERequestContext& ctx);
- void IsVibrationPermitted(Kernel::HLERequestContext& ctx);
- void SendVibrationValues(Kernel::HLERequestContext& ctx);
- void SendVibrationGcErmCommand(Kernel::HLERequestContext& ctx);
- void GetActualVibrationGcErmCommand(Kernel::HLERequestContext& ctx);
- void BeginPermitVibrationSession(Kernel::HLERequestContext& ctx);
- void EndPermitVibrationSession(Kernel::HLERequestContext& ctx);
- void IsVibrationDeviceMounted(Kernel::HLERequestContext& ctx);
- void ActivateConsoleSixAxisSensor(Kernel::HLERequestContext& ctx);
- void StartConsoleSixAxisSensor(Kernel::HLERequestContext& ctx);
- void StopConsoleSixAxisSensor(Kernel::HLERequestContext& ctx);
- void ActivateSevenSixAxisSensor(Kernel::HLERequestContext& ctx);
- void StartSevenSixAxisSensor(Kernel::HLERequestContext& ctx);
- void StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx);
- void InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx);
- void FinalizeSevenSixAxisSensor(Kernel::HLERequestContext& ctx);
- void ResetSevenSixAxisSensorTimestamp(Kernel::HLERequestContext& ctx);
- void IsUsbFullKeyControllerEnabled(Kernel::HLERequestContext& ctx);
- void GetPalmaConnectionHandle(Kernel::HLERequestContext& ctx);
- void InitializePalma(Kernel::HLERequestContext& ctx);
- void AcquirePalmaOperationCompleteEvent(Kernel::HLERequestContext& ctx);
- void GetPalmaOperationInfo(Kernel::HLERequestContext& ctx);
- void PlayPalmaActivity(Kernel::HLERequestContext& ctx);
- void SetPalmaFrModeType(Kernel::HLERequestContext& ctx);
- void ReadPalmaStep(Kernel::HLERequestContext& ctx);
- void EnablePalmaStep(Kernel::HLERequestContext& ctx);
- void ResetPalmaStep(Kernel::HLERequestContext& ctx);
- void ReadPalmaApplicationSection(Kernel::HLERequestContext& ctx);
- void WritePalmaApplicationSection(Kernel::HLERequestContext& ctx);
- void ReadPalmaUniqueCode(Kernel::HLERequestContext& ctx);
- void SetPalmaUniqueCodeInvalid(Kernel::HLERequestContext& ctx);
- void WritePalmaActivityEntry(Kernel::HLERequestContext& ctx);
- void WritePalmaRgbLedPatternEntry(Kernel::HLERequestContext& ctx);
- void WritePalmaWaveEntry(Kernel::HLERequestContext& ctx);
- void SetPalmaDataBaseIdentificationVersion(Kernel::HLERequestContext& ctx);
- void GetPalmaDataBaseIdentificationVersion(Kernel::HLERequestContext& ctx);
- void SuspendPalmaFeature(Kernel::HLERequestContext& ctx);
- void GetPalmaOperationResult(Kernel::HLERequestContext& ctx);
- void ReadPalmaPlayLog(Kernel::HLERequestContext& ctx);
- void ResetPalmaPlayLog(Kernel::HLERequestContext& ctx);
- void SetIsPalmaAllConnectable(Kernel::HLERequestContext& ctx);
- void SetIsPalmaPairedConnectable(Kernel::HLERequestContext& ctx);
- void PairPalma(Kernel::HLERequestContext& ctx);
- void SetPalmaBoostMode(Kernel::HLERequestContext& ctx);
- void CancelWritePalmaWaveEntry(Kernel::HLERequestContext& ctx);
- void EnablePalmaBoostMode(Kernel::HLERequestContext& ctx);
- void GetPalmaBluetoothAddress(Kernel::HLERequestContext& ctx);
- void SetDisallowedPalmaConnection(Kernel::HLERequestContext& ctx);
- void SetNpadCommunicationMode(Kernel::HLERequestContext& ctx);
- void GetNpadCommunicationMode(Kernel::HLERequestContext& ctx);
- void SetTouchScreenConfiguration(Kernel::HLERequestContext& ctx);
- void IsFirmwareUpdateNeededForNotification(Kernel::HLERequestContext& ctx);
+ void CreateAppletResource(HLERequestContext& ctx);
+ void ActivateDebugPad(HLERequestContext& ctx);
+ void ActivateTouchScreen(HLERequestContext& ctx);
+ void ActivateMouse(HLERequestContext& ctx);
+ void ActivateKeyboard(HLERequestContext& ctx);
+ void SendKeyboardLockKeyEvent(HLERequestContext& ctx);
+ void ActivateXpad(HLERequestContext& ctx);
+ void GetXpadIDs(HLERequestContext& ctx);
+ void ActivateSixAxisSensor(HLERequestContext& ctx);
+ void DeactivateSixAxisSensor(HLERequestContext& ctx);
+ void StartSixAxisSensor(HLERequestContext& ctx);
+ void StopSixAxisSensor(HLERequestContext& ctx);
+ void IsSixAxisSensorFusionEnabled(HLERequestContext& ctx);
+ void EnableSixAxisSensorFusion(HLERequestContext& ctx);
+ void SetSixAxisSensorFusionParameters(HLERequestContext& ctx);
+ void GetSixAxisSensorFusionParameters(HLERequestContext& ctx);
+ void ResetSixAxisSensorFusionParameters(HLERequestContext& ctx);
+ void SetGyroscopeZeroDriftMode(HLERequestContext& ctx);
+ void GetGyroscopeZeroDriftMode(HLERequestContext& ctx);
+ void ResetGyroscopeZeroDriftMode(HLERequestContext& ctx);
+ void IsSixAxisSensorAtRest(HLERequestContext& ctx);
+ void IsFirmwareUpdateAvailableForSixAxisSensor(HLERequestContext& ctx);
+ void EnableSixAxisSensorUnalteredPassthrough(HLERequestContext& ctx);
+ void IsSixAxisSensorUnalteredPassthroughEnabled(HLERequestContext& ctx);
+ void LoadSixAxisSensorCalibrationParameter(HLERequestContext& ctx);
+ void GetSixAxisSensorIcInformation(HLERequestContext& ctx);
+ void ResetIsSixAxisSensorDeviceNewlyAssigned(HLERequestContext& ctx);
+ void ActivateGesture(HLERequestContext& ctx);
+ void SetSupportedNpadStyleSet(HLERequestContext& ctx);
+ void GetSupportedNpadStyleSet(HLERequestContext& ctx);
+ void SetSupportedNpadIdType(HLERequestContext& ctx);
+ void ActivateNpad(HLERequestContext& ctx);
+ void DeactivateNpad(HLERequestContext& ctx);
+ void AcquireNpadStyleSetUpdateEventHandle(HLERequestContext& ctx);
+ void DisconnectNpad(HLERequestContext& ctx);
+ void GetPlayerLedPattern(HLERequestContext& ctx);
+ void ActivateNpadWithRevision(HLERequestContext& ctx);
+ void SetNpadJoyHoldType(HLERequestContext& ctx);
+ void GetNpadJoyHoldType(HLERequestContext& ctx);
+ void SetNpadJoyAssignmentModeSingleByDefault(HLERequestContext& ctx);
+ void SetNpadJoyAssignmentModeSingle(HLERequestContext& ctx);
+ void SetNpadJoyAssignmentModeDual(HLERequestContext& ctx);
+ void MergeSingleJoyAsDualJoy(HLERequestContext& ctx);
+ void StartLrAssignmentMode(HLERequestContext& ctx);
+ void StopLrAssignmentMode(HLERequestContext& ctx);
+ void SetNpadHandheldActivationMode(HLERequestContext& ctx);
+ void GetNpadHandheldActivationMode(HLERequestContext& ctx);
+ void SwapNpadAssignment(HLERequestContext& ctx);
+ void IsUnintendedHomeButtonInputProtectionEnabled(HLERequestContext& ctx);
+ void EnableUnintendedHomeButtonInputProtection(HLERequestContext& ctx);
+ void SetNpadJoyAssignmentModeSingleWithDestination(HLERequestContext& ctx);
+ void SetNpadAnalogStickUseCenterClamp(HLERequestContext& ctx);
+ void SetNpadCaptureButtonAssignment(HLERequestContext& ctx);
+ void ClearNpadCaptureButtonAssignment(HLERequestContext& ctx);
+ void GetVibrationDeviceInfo(HLERequestContext& ctx);
+ void SendVibrationValue(HLERequestContext& ctx);
+ void GetActualVibrationValue(HLERequestContext& ctx);
+ void CreateActiveVibrationDeviceList(HLERequestContext& ctx);
+ void PermitVibration(HLERequestContext& ctx);
+ void IsVibrationPermitted(HLERequestContext& ctx);
+ void SendVibrationValues(HLERequestContext& ctx);
+ void SendVibrationGcErmCommand(HLERequestContext& ctx);
+ void GetActualVibrationGcErmCommand(HLERequestContext& ctx);
+ void BeginPermitVibrationSession(HLERequestContext& ctx);
+ void EndPermitVibrationSession(HLERequestContext& ctx);
+ void IsVibrationDeviceMounted(HLERequestContext& ctx);
+ void ActivateConsoleSixAxisSensor(HLERequestContext& ctx);
+ void StartConsoleSixAxisSensor(HLERequestContext& ctx);
+ void StopConsoleSixAxisSensor(HLERequestContext& ctx);
+ void ActivateSevenSixAxisSensor(HLERequestContext& ctx);
+ void StartSevenSixAxisSensor(HLERequestContext& ctx);
+ void StopSevenSixAxisSensor(HLERequestContext& ctx);
+ void InitializeSevenSixAxisSensor(HLERequestContext& ctx);
+ void FinalizeSevenSixAxisSensor(HLERequestContext& ctx);
+ void ResetSevenSixAxisSensorTimestamp(HLERequestContext& ctx);
+ void IsUsbFullKeyControllerEnabled(HLERequestContext& ctx);
+ void GetPalmaConnectionHandle(HLERequestContext& ctx);
+ void InitializePalma(HLERequestContext& ctx);
+ void AcquirePalmaOperationCompleteEvent(HLERequestContext& ctx);
+ void GetPalmaOperationInfo(HLERequestContext& ctx);
+ void PlayPalmaActivity(HLERequestContext& ctx);
+ void SetPalmaFrModeType(HLERequestContext& ctx);
+ void ReadPalmaStep(HLERequestContext& ctx);
+ void EnablePalmaStep(HLERequestContext& ctx);
+ void ResetPalmaStep(HLERequestContext& ctx);
+ void ReadPalmaApplicationSection(HLERequestContext& ctx);
+ void WritePalmaApplicationSection(HLERequestContext& ctx);
+ void ReadPalmaUniqueCode(HLERequestContext& ctx);
+ void SetPalmaUniqueCodeInvalid(HLERequestContext& ctx);
+ void WritePalmaActivityEntry(HLERequestContext& ctx);
+ void WritePalmaRgbLedPatternEntry(HLERequestContext& ctx);
+ void WritePalmaWaveEntry(HLERequestContext& ctx);
+ void SetPalmaDataBaseIdentificationVersion(HLERequestContext& ctx);
+ void GetPalmaDataBaseIdentificationVersion(HLERequestContext& ctx);
+ void SuspendPalmaFeature(HLERequestContext& ctx);
+ void GetPalmaOperationResult(HLERequestContext& ctx);
+ void ReadPalmaPlayLog(HLERequestContext& ctx);
+ void ResetPalmaPlayLog(HLERequestContext& ctx);
+ void SetIsPalmaAllConnectable(HLERequestContext& ctx);
+ void SetIsPalmaPairedConnectable(HLERequestContext& ctx);
+ void PairPalma(HLERequestContext& ctx);
+ void SetPalmaBoostMode(HLERequestContext& ctx);
+ void CancelWritePalmaWaveEntry(HLERequestContext& ctx);
+ void EnablePalmaBoostMode(HLERequestContext& ctx);
+ void GetPalmaBluetoothAddress(HLERequestContext& ctx);
+ void SetDisallowedPalmaConnection(HLERequestContext& ctx);
+ void SetNpadCommunicationMode(HLERequestContext& ctx);
+ void GetNpadCommunicationMode(HLERequestContext& ctx);
+ void SetTouchScreenConfiguration(HLERequestContext& ctx);
+ void IsFirmwareUpdateNeededForNotification(HLERequestContext& ctx);
std::shared_ptr<IAppletResource> applet_resource;
KernelHelpers::ServiceContext service_context;
};
-/// Registers all HID services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::HID
diff --git a/src/core/hle/service/hid/hidbus.cpp b/src/core/hle/service/hid/hidbus.cpp
index e5e50845f..80aac221b 100644
--- a/src/core/hle/service/hid/hidbus.cpp
+++ b/src/core/hle/service/hid/hidbus.cpp
@@ -5,9 +5,7 @@
#include "common/settings.h"
#include "core/core.h"
#include "core/core_timing.h"
-#include "core/core_timing_util.h"
#include "core/hid/hid_types.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_readable_event.h"
#include "core/hle/kernel/k_shared_memory.h"
@@ -16,6 +14,7 @@
#include "core/hle/service/hid/hidbus/ringcon.h"
#include "core/hle/service/hid/hidbus/starlink.h"
#include "core/hle/service/hid/hidbus/stubbed.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/service.h"
#include "core/memory.h"
@@ -91,7 +90,7 @@ std::optional<std::size_t> HidBus::GetDeviceIndexFromHandle(BusHandle handle) co
if (handle.abstracted_pad_id == device_handle.abstracted_pad_id &&
handle.internal_index == device_handle.internal_index &&
handle.player_number == device_handle.player_number &&
- handle.bus_type == device_handle.bus_type &&
+ handle.bus_type_id == device_handle.bus_type_id &&
handle.is_valid == device_handle.is_valid) {
return i;
}
@@ -99,7 +98,7 @@ std::optional<std::size_t> HidBus::GetDeviceIndexFromHandle(BusHandle handle) co
return std::nullopt;
}
-void HidBus::GetBusHandle(Kernel::HLERequestContext& ctx) {
+void HidBus::GetBusHandle(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::HID::NpadIdType npad_id;
@@ -123,7 +122,7 @@ void HidBus::GetBusHandle(Kernel::HLERequestContext& ctx) {
continue;
}
if (static_cast<Core::HID::NpadIdType>(handle.player_number) == parameters.npad_id &&
- handle.bus_type == parameters.bus_type) {
+ handle.bus_type_id == static_cast<u8>(parameters.bus_type)) {
is_handle_found = true;
handle_index = i;
break;
@@ -140,7 +139,7 @@ void HidBus::GetBusHandle(Kernel::HLERequestContext& ctx) {
.abstracted_pad_id = static_cast<u8>(i),
.internal_index = static_cast<u8>(i),
.player_number = static_cast<u8>(parameters.npad_id),
- .bus_type = parameters.bus_type,
+ .bus_type_id = static_cast<u8>(parameters.bus_type),
.is_valid = true,
};
handle_index = i;
@@ -165,14 +164,14 @@ void HidBus::GetBusHandle(Kernel::HLERequestContext& ctx) {
rb.PushRaw(out_data);
}
-void HidBus::IsExternalDeviceConnected(Kernel::HLERequestContext& ctx) {
+void HidBus::IsExternalDeviceConnected(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto bus_handle_{rp.PopRaw<BusHandle>()};
LOG_INFO(Service_HID,
"Called, abstracted_pad_id={}, bus_type={}, internal_index={}, "
"player_number={}, is_valid={}",
- bus_handle_.abstracted_pad_id, bus_handle_.bus_type, bus_handle_.internal_index,
+ bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id, bus_handle_.internal_index,
bus_handle_.player_number, bus_handle_.is_valid);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -193,7 +192,7 @@ void HidBus::IsExternalDeviceConnected(Kernel::HLERequestContext& ctx) {
return;
}
-void HidBus::Initialize(Kernel::HLERequestContext& ctx) {
+void HidBus::Initialize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto bus_handle_{rp.PopRaw<BusHandle>()};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -201,7 +200,7 @@ void HidBus::Initialize(Kernel::HLERequestContext& ctx) {
LOG_INFO(Service_HID,
"called, abstracted_pad_id={} bus_type={} internal_index={} "
"player_number={} is_valid={}, applet_resource_user_id={}",
- bus_handle_.abstracted_pad_id, bus_handle_.bus_type, bus_handle_.internal_index,
+ bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id, bus_handle_.internal_index,
bus_handle_.player_number, bus_handle_.is_valid, applet_resource_user_id);
is_hidbus_enabled = true;
@@ -245,7 +244,7 @@ void HidBus::Initialize(Kernel::HLERequestContext& ctx) {
return;
}
-void HidBus::Finalize(Kernel::HLERequestContext& ctx) {
+void HidBus::Finalize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto bus_handle_{rp.PopRaw<BusHandle>()};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -253,7 +252,7 @@ void HidBus::Finalize(Kernel::HLERequestContext& ctx) {
LOG_INFO(Service_HID,
"called, abstracted_pad_id={}, bus_type={}, internal_index={}, "
"player_number={}, is_valid={}, applet_resource_user_id={}",
- bus_handle_.abstracted_pad_id, bus_handle_.bus_type, bus_handle_.internal_index,
+ bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id, bus_handle_.internal_index,
bus_handle_.player_number, bus_handle_.is_valid, applet_resource_user_id);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -284,7 +283,7 @@ void HidBus::Finalize(Kernel::HLERequestContext& ctx) {
return;
}
-void HidBus::EnableExternalDevice(Kernel::HLERequestContext& ctx) {
+void HidBus::EnableExternalDevice(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
bool enable;
@@ -297,13 +296,13 @@ void HidBus::EnableExternalDevice(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
- LOG_INFO(Service_HID,
- "called, enable={}, abstracted_pad_id={}, bus_type={}, internal_index={}, "
- "player_number={}, is_valid={}, inval={}, applet_resource_user_id{}",
- parameters.enable, parameters.bus_handle.abstracted_pad_id,
- parameters.bus_handle.bus_type, parameters.bus_handle.internal_index,
- parameters.bus_handle.player_number, parameters.bus_handle.is_valid, parameters.inval,
- parameters.applet_resource_user_id);
+ LOG_DEBUG(Service_HID,
+ "called, enable={}, abstracted_pad_id={}, bus_type={}, internal_index={}, "
+ "player_number={}, is_valid={}, inval={}, applet_resource_user_id{}",
+ parameters.enable, parameters.bus_handle.abstracted_pad_id,
+ parameters.bus_handle.bus_type_id, parameters.bus_handle.internal_index,
+ parameters.bus_handle.player_number, parameters.bus_handle.is_valid, parameters.inval,
+ parameters.applet_resource_user_id);
const auto device_index = GetDeviceIndexFromHandle(parameters.bus_handle);
@@ -322,15 +321,15 @@ void HidBus::EnableExternalDevice(Kernel::HLERequestContext& ctx) {
return;
}
-void HidBus::GetExternalDeviceId(Kernel::HLERequestContext& ctx) {
+void HidBus::GetExternalDeviceId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto bus_handle_{rp.PopRaw<BusHandle>()};
- LOG_INFO(Service_HID,
- "called, abstracted_pad_id={}, bus_type={}, internal_index={}, player_number={}, "
- "is_valid={}",
- bus_handle_.abstracted_pad_id, bus_handle_.bus_type, bus_handle_.internal_index,
- bus_handle_.player_number, bus_handle_.is_valid);
+ LOG_DEBUG(Service_HID,
+ "called, abstracted_pad_id={}, bus_type={}, internal_index={}, player_number={}, "
+ "is_valid={}",
+ bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id, bus_handle_.internal_index,
+ bus_handle_.player_number, bus_handle_.is_valid);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -349,7 +348,7 @@ void HidBus::GetExternalDeviceId(Kernel::HLERequestContext& ctx) {
return;
}
-void HidBus::SendCommandAsync(Kernel::HLERequestContext& ctx) {
+void HidBus::SendCommandAsync(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto data = ctx.ReadBuffer();
const auto bus_handle_{rp.PopRaw<BusHandle>()};
@@ -357,7 +356,7 @@ void HidBus::SendCommandAsync(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_HID,
"called, data_size={}, abstracted_pad_id={}, bus_type={}, internal_index={}, "
"player_number={}, is_valid={}",
- data.size(), bus_handle_.abstracted_pad_id, bus_handle_.bus_type,
+ data.size(), bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id,
bus_handle_.internal_index, bus_handle_.player_number, bus_handle_.is_valid);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -377,14 +376,14 @@ void HidBus::SendCommandAsync(Kernel::HLERequestContext& ctx) {
return;
};
-void HidBus::GetSendCommandAsynceResult(Kernel::HLERequestContext& ctx) {
+void HidBus::GetSendCommandAsynceResult(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto bus_handle_{rp.PopRaw<BusHandle>()};
LOG_DEBUG(Service_HID,
"called, abstracted_pad_id={}, bus_type={}, internal_index={}, player_number={}, "
"is_valid={}",
- bus_handle_.abstracted_pad_id, bus_handle_.bus_type, bus_handle_.internal_index,
+ bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id, bus_handle_.internal_index,
bus_handle_.player_number, bus_handle_.is_valid);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -406,14 +405,14 @@ void HidBus::GetSendCommandAsynceResult(Kernel::HLERequestContext& ctx) {
return;
};
-void HidBus::SetEventForSendCommandAsycResult(Kernel::HLERequestContext& ctx) {
+void HidBus::SetEventForSendCommandAsycResult(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto bus_handle_{rp.PopRaw<BusHandle>()};
LOG_INFO(Service_HID,
"called, abstracted_pad_id={}, bus_type={}, internal_index={}, player_number={}, "
"is_valid={}",
- bus_handle_.abstracted_pad_id, bus_handle_.bus_type, bus_handle_.internal_index,
+ bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id, bus_handle_.internal_index,
bus_handle_.player_number, bus_handle_.is_valid);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -432,7 +431,7 @@ void HidBus::SetEventForSendCommandAsycResult(Kernel::HLERequestContext& ctx) {
return;
};
-void HidBus::GetSharedMemoryHandle(Kernel::HLERequestContext& ctx) {
+void HidBus::GetSharedMemoryHandle(HLERequestContext& ctx) {
LOG_DEBUG(Service_HID, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -440,7 +439,7 @@ void HidBus::GetSharedMemoryHandle(Kernel::HLERequestContext& ctx) {
rb.PushCopyObjects(&system.Kernel().GetHidBusSharedMem());
}
-void HidBus::EnableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx) {
+void HidBus::EnableJoyPollingReceiveMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto t_mem_size{rp.Pop<u32>()};
const auto t_mem_handle{ctx.GetCopyHandle(0)};
@@ -449,8 +448,8 @@ void HidBus::EnableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx) {
ASSERT_MSG(t_mem_size == 0x1000, "t_mem_size is not 0x1000 bytes");
- auto t_mem =
- system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(t_mem_handle);
+ auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
+ t_mem_handle);
if (t_mem.IsNull()) {
LOG_ERROR(Service_HID, "t_mem is a nullptr for handle=0x{:08X}", t_mem_handle);
@@ -464,7 +463,7 @@ void HidBus::EnableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx) {
LOG_INFO(Service_HID,
"called, t_mem_handle=0x{:08X}, polling_mode={}, abstracted_pad_id={}, bus_type={}, "
"internal_index={}, player_number={}, is_valid={}",
- t_mem_handle, polling_mode_, bus_handle_.abstracted_pad_id, bus_handle_.bus_type,
+ t_mem_handle, polling_mode_, bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id,
bus_handle_.internal_index, bus_handle_.player_number, bus_handle_.is_valid);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -472,7 +471,7 @@ void HidBus::EnableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx) {
if (device_index) {
auto& device = devices[device_index.value()].device;
device->SetPollingMode(polling_mode_);
- device->SetTransferMemoryPointer(system.Memory().GetPointer(t_mem->GetSourceAddress()));
+ device->SetTransferMemoryAddress(t_mem->GetSourceAddress());
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
@@ -485,14 +484,14 @@ void HidBus::EnableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx) {
return;
}
-void HidBus::DisableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx) {
+void HidBus::DisableJoyPollingReceiveMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto bus_handle_{rp.PopRaw<BusHandle>()};
LOG_INFO(Service_HID,
"called, abstracted_pad_id={}, bus_type={}, internal_index={}, player_number={}, "
"is_valid={}",
- bus_handle_.abstracted_pad_id, bus_handle_.bus_type, bus_handle_.internal_index,
+ bus_handle_.abstracted_pad_id, bus_handle_.bus_type_id, bus_handle_.internal_index,
bus_handle_.player_number, bus_handle_.is_valid);
const auto device_index = GetDeviceIndexFromHandle(bus_handle_);
@@ -512,7 +511,7 @@ void HidBus::DisableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx) {
return;
}
-void HidBus::SetStatusManagerType(Kernel::HLERequestContext& ctx) {
+void HidBus::SetStatusManagerType(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto manager_type{rp.PopEnum<StatusManagerType>()};
diff --git a/src/core/hle/service/hid/hidbus.h b/src/core/hle/service/hid/hidbus.h
index 8c687f678..c29b5e882 100644
--- a/src/core/hle/service/hid/hidbus.h
+++ b/src/core/hle/service/hid/hidbus.h
@@ -41,7 +41,7 @@ private:
};
// This is nn::hidbus::BusType
- enum class BusType : u8 {
+ enum class BusType : u32 {
LeftJoyRail,
RightJoyRail,
InternalBus, // Lark microphone
@@ -54,7 +54,7 @@ private:
u32 abstracted_pad_id;
u8 internal_index;
u8 player_number;
- BusType bus_type;
+ u8 bus_type_id;
bool is_valid;
};
static_assert(sizeof(BusHandle) == 0x8, "BusHandle is an invalid size");
@@ -94,19 +94,19 @@ private:
std::unique_ptr<HidbusBase> device{nullptr};
};
- void GetBusHandle(Kernel::HLERequestContext& ctx);
- void IsExternalDeviceConnected(Kernel::HLERequestContext& ctx);
- void Initialize(Kernel::HLERequestContext& ctx);
- void Finalize(Kernel::HLERequestContext& ctx);
- void EnableExternalDevice(Kernel::HLERequestContext& ctx);
- void GetExternalDeviceId(Kernel::HLERequestContext& ctx);
- void SendCommandAsync(Kernel::HLERequestContext& ctx);
- void GetSendCommandAsynceResult(Kernel::HLERequestContext& ctx);
- void SetEventForSendCommandAsycResult(Kernel::HLERequestContext& ctx);
- void GetSharedMemoryHandle(Kernel::HLERequestContext& ctx);
- void EnableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx);
- void DisableJoyPollingReceiveMode(Kernel::HLERequestContext& ctx);
- void SetStatusManagerType(Kernel::HLERequestContext& ctx);
+ void GetBusHandle(HLERequestContext& ctx);
+ void IsExternalDeviceConnected(HLERequestContext& ctx);
+ void Initialize(HLERequestContext& ctx);
+ void Finalize(HLERequestContext& ctx);
+ void EnableExternalDevice(HLERequestContext& ctx);
+ void GetExternalDeviceId(HLERequestContext& ctx);
+ void SendCommandAsync(HLERequestContext& ctx);
+ void GetSendCommandAsynceResult(HLERequestContext& ctx);
+ void SetEventForSendCommandAsycResult(HLERequestContext& ctx);
+ void GetSharedMemoryHandle(HLERequestContext& ctx);
+ void EnableJoyPollingReceiveMode(HLERequestContext& ctx);
+ void DisableJoyPollingReceiveMode(HLERequestContext& ctx);
+ void SetStatusManagerType(HLERequestContext& ctx);
void UpdateHidbus(std::uintptr_t user_data, std::chrono::nanoseconds ns_late);
std::optional<std::size_t> GetDeviceIndexFromHandle(BusHandle handle) const;
@@ -115,8 +115,7 @@ private:
void MakeDevice(BusHandle handle) {
const auto device_index = GetDeviceIndexFromHandle(handle);
if (device_index) {
- devices[device_index.value()].device =
- std::make_unique<T>(system.HIDCore(), service_context);
+ devices[device_index.value()].device = std::make_unique<T>(system, service_context);
}
}
diff --git a/src/core/hle/service/hid/hidbus/hidbus_base.cpp b/src/core/hle/service/hid/hidbus/hidbus_base.cpp
index b569b3c20..ee522c36e 100644
--- a/src/core/hle/service/hid/hidbus/hidbus_base.cpp
+++ b/src/core/hle/service/hid/hidbus/hidbus_base.cpp
@@ -9,8 +9,8 @@
namespace Service::HID {
-HidbusBase::HidbusBase(KernelHelpers::ServiceContext& service_context_)
- : service_context(service_context_) {
+HidbusBase::HidbusBase(Core::System& system_, KernelHelpers::ServiceContext& service_context_)
+ : system(system_), service_context(service_context_) {
send_command_async_event = service_context.CreateEvent("hidbus:SendCommandAsyncEvent");
}
HidbusBase::~HidbusBase() = default;
@@ -59,8 +59,7 @@ void HidbusBase::DisablePollingMode() {
polling_mode_enabled = false;
}
-void HidbusBase::SetTransferMemoryPointer(u8* t_mem) {
- is_transfer_memory_set = true;
+void HidbusBase::SetTransferMemoryAddress(Common::ProcessAddress t_mem) {
transfer_memory = t_mem;
}
diff --git a/src/core/hle/service/hid/hidbus/hidbus_base.h b/src/core/hle/service/hid/hidbus/hidbus_base.h
index d3960f506..ec41684e1 100644
--- a/src/core/hle/service/hid/hidbus/hidbus_base.h
+++ b/src/core/hle/service/hid/hidbus/hidbus_base.h
@@ -4,9 +4,14 @@
#pragma once
#include <array>
-#include "common/common_types.h"
+#include <span>
+#include "common/typed_address.h"
#include "core/hle/result.h"
+namespace Core {
+class System;
+}
+
namespace Kernel {
class KEvent;
class KReadableEvent;
@@ -105,7 +110,7 @@ static_assert(sizeof(ButtonOnlyPollingDataAccessor) == 0x2F0,
class HidbusBase {
public:
- explicit HidbusBase(KernelHelpers::ServiceContext& service_context_);
+ explicit HidbusBase(Core::System& system_, KernelHelpers::ServiceContext& service_context_);
virtual ~HidbusBase();
void ActivateDevice();
@@ -133,7 +138,7 @@ public:
void DisablePollingMode();
// Called on EnableJoyPollingReceiveMode
- void SetTransferMemoryPointer(u8* t_mem);
+ void SetTransferMemoryAddress(Common::ProcessAddress t_mem);
Kernel::KReadableEvent& GetSendCommandAsycEvent() const;
@@ -150,7 +155,7 @@ public:
}
// Assigns a command from data
- virtual bool SetCommand(const std::vector<u8>& data) {
+ virtual bool SetCommand(std::span<const u8> data) {
return {};
}
@@ -169,9 +174,9 @@ protected:
JoyEnableSixAxisDataAccessor enable_sixaxis_data{};
ButtonOnlyPollingDataAccessor button_only_data{};
- u8* transfer_memory{nullptr};
- bool is_transfer_memory_set{};
+ Common::ProcessAddress transfer_memory{};
+ Core::System& system;
Kernel::KEvent* send_command_async_event;
KernelHelpers::ServiceContext& service_context;
};
diff --git a/src/core/hle/service/hid/hidbus/ringcon.cpp b/src/core/hle/service/hid/hidbus/ringcon.cpp
index 57f1a2a26..378108012 100644
--- a/src/core/hle/service/hid/hidbus/ringcon.cpp
+++ b/src/core/hle/service/hid/hidbus/ringcon.cpp
@@ -1,27 +1,33 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include "core/hid/emulated_devices.h"
+#include "core/core.h"
+#include "core/hid/emulated_controller.h"
#include "core/hid/hid_core.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_readable_event.h"
#include "core/hle/service/hid/hidbus/ringcon.h"
+#include "core/memory.h"
namespace Service::HID {
-RingController::RingController(Core::HID::HIDCore& hid_core_,
+RingController::RingController(Core::System& system_,
KernelHelpers::ServiceContext& service_context_)
- : HidbusBase(service_context_) {
- input = hid_core_.GetEmulatedDevices();
+ : HidbusBase(system_, service_context_) {
+ input = system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Player1);
}
RingController::~RingController() = default;
void RingController::OnInit() {
+ input->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Ring);
return;
}
void RingController::OnRelease() {
+ input->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Active);
return;
};
@@ -34,7 +40,7 @@ void RingController::OnUpdate() {
return;
}
- if (!polling_mode_enabled || !is_transfer_memory_set) {
+ if (!polling_mode_enabled || transfer_memory == 0) {
return;
}
@@ -58,7 +64,8 @@ void RingController::OnUpdate() {
curr_entry.polling_data.out_size = sizeof(ringcon_value);
std::memcpy(curr_entry.polling_data.data.data(), &ringcon_value, sizeof(ringcon_value));
- std::memcpy(transfer_memory, &enable_sixaxis_data, sizeof(enable_sixaxis_data));
+ system.ApplicationMemory().WriteBlock(transfer_memory, &enable_sixaxis_data,
+ sizeof(enable_sixaxis_data));
break;
}
default:
@@ -112,7 +119,7 @@ std::vector<u8> RingController::GetReply() const {
}
}
-bool RingController::SetCommand(const std::vector<u8>& data) {
+bool RingController::SetCommand(std::span<const u8> data) {
if (data.size() < 4) {
LOG_ERROR(Service_HID, "Command size not supported {}", data.size());
command = RingConCommands::Error;
diff --git a/src/core/hle/service/hid/hidbus/ringcon.h b/src/core/hle/service/hid/hidbus/ringcon.h
index b37df50ac..f42f3ea41 100644
--- a/src/core/hle/service/hid/hidbus/ringcon.h
+++ b/src/core/hle/service/hid/hidbus/ringcon.h
@@ -4,20 +4,20 @@
#pragma once
#include <array>
+#include <span>
#include "common/common_types.h"
#include "core/hle/service/hid/hidbus/hidbus_base.h"
namespace Core::HID {
-class EmulatedDevices;
+class EmulatedController;
} // namespace Core::HID
namespace Service::HID {
class RingController final : public HidbusBase {
public:
- explicit RingController(Core::HID::HIDCore& hid_core_,
- KernelHelpers::ServiceContext& service_context_);
+ explicit RingController(Core::System& system_, KernelHelpers::ServiceContext& service_context_);
~RingController() override;
void OnInit() override;
@@ -31,7 +31,7 @@ public:
u8 GetDeviceId() const override;
// Assigns a command from data
- bool SetCommand(const std::vector<u8>& data) override;
+ bool SetCommand(std::span<const u8> data) override;
// Returns a reply from a command
std::vector<u8> GetReply() const override;
@@ -248,6 +248,6 @@ private:
.zero = {.value = idle_value, .crc = 225},
};
- Core::HID::EmulatedDevices* input;
+ Core::HID::EmulatedController* input;
};
} // namespace Service::HID
diff --git a/src/core/hle/service/hid/hidbus/starlink.cpp b/src/core/hle/service/hid/hidbus/starlink.cpp
index dd439f60a..36573274e 100644
--- a/src/core/hle/service/hid/hidbus/starlink.cpp
+++ b/src/core/hle/service/hid/hidbus/starlink.cpp
@@ -8,8 +8,8 @@
namespace Service::HID {
constexpr u8 DEVICE_ID = 0x28;
-Starlink::Starlink(Core::HID::HIDCore& hid_core_, KernelHelpers::ServiceContext& service_context_)
- : HidbusBase(service_context_) {}
+Starlink::Starlink(Core::System& system_, KernelHelpers::ServiceContext& service_context_)
+ : HidbusBase(system_, service_context_) {}
Starlink::~Starlink() = default;
void Starlink::OnInit() {
@@ -27,7 +27,7 @@ void Starlink::OnUpdate() {
if (!device_enabled) {
return;
}
- if (!polling_mode_enabled || !is_transfer_memory_set) {
+ if (!polling_mode_enabled || transfer_memory == 0) {
return;
}
@@ -42,7 +42,7 @@ std::vector<u8> Starlink::GetReply() const {
return {};
}
-bool Starlink::SetCommand(const std::vector<u8>& data) {
+bool Starlink::SetCommand(std::span<const u8> data) {
LOG_ERROR(Service_HID, "Command not implemented");
return false;
}
diff --git a/src/core/hle/service/hid/hidbus/starlink.h b/src/core/hle/service/hid/hidbus/starlink.h
index 0b1b7ba49..a276aa88f 100644
--- a/src/core/hle/service/hid/hidbus/starlink.h
+++ b/src/core/hle/service/hid/hidbus/starlink.h
@@ -14,8 +14,7 @@ namespace Service::HID {
class Starlink final : public HidbusBase {
public:
- explicit Starlink(Core::HID::HIDCore& hid_core_,
- KernelHelpers::ServiceContext& service_context_);
+ explicit Starlink(Core::System& system_, KernelHelpers::ServiceContext& service_context_);
~Starlink() override;
void OnInit() override;
@@ -29,7 +28,7 @@ public:
u8 GetDeviceId() const override;
// Assigns a command from data
- bool SetCommand(const std::vector<u8>& data) override;
+ bool SetCommand(std::span<const u8> data) override;
// Returns a reply from a command
std::vector<u8> GetReply() const override;
diff --git a/src/core/hle/service/hid/hidbus/stubbed.cpp b/src/core/hle/service/hid/hidbus/stubbed.cpp
index e477443e3..8160b7218 100644
--- a/src/core/hle/service/hid/hidbus/stubbed.cpp
+++ b/src/core/hle/service/hid/hidbus/stubbed.cpp
@@ -8,9 +8,8 @@
namespace Service::HID {
constexpr u8 DEVICE_ID = 0xFF;
-HidbusStubbed::HidbusStubbed(Core::HID::HIDCore& hid_core_,
- KernelHelpers::ServiceContext& service_context_)
- : HidbusBase(service_context_) {}
+HidbusStubbed::HidbusStubbed(Core::System& system_, KernelHelpers::ServiceContext& service_context_)
+ : HidbusBase(system_, service_context_) {}
HidbusStubbed::~HidbusStubbed() = default;
void HidbusStubbed::OnInit() {
@@ -28,7 +27,7 @@ void HidbusStubbed::OnUpdate() {
if (!device_enabled) {
return;
}
- if (!polling_mode_enabled || !is_transfer_memory_set) {
+ if (!polling_mode_enabled || transfer_memory == 0) {
return;
}
@@ -43,7 +42,7 @@ std::vector<u8> HidbusStubbed::GetReply() const {
return {};
}
-bool HidbusStubbed::SetCommand(const std::vector<u8>& data) {
+bool HidbusStubbed::SetCommand(std::span<const u8> data) {
LOG_ERROR(Service_HID, "Command not implemented");
return false;
}
diff --git a/src/core/hle/service/hid/hidbus/stubbed.h b/src/core/hle/service/hid/hidbus/stubbed.h
index 91165ceff..2e58d42fc 100644
--- a/src/core/hle/service/hid/hidbus/stubbed.h
+++ b/src/core/hle/service/hid/hidbus/stubbed.h
@@ -14,8 +14,7 @@ namespace Service::HID {
class HidbusStubbed final : public HidbusBase {
public:
- explicit HidbusStubbed(Core::HID::HIDCore& hid_core_,
- KernelHelpers::ServiceContext& service_context_);
+ explicit HidbusStubbed(Core::System& system_, KernelHelpers::ServiceContext& service_context_);
~HidbusStubbed() override;
void OnInit() override;
@@ -29,7 +28,7 @@ public:
u8 GetDeviceId() const override;
// Assigns a command from data
- bool SetCommand(const std::vector<u8>& data) override;
+ bool SetCommand(std::span<const u8> data) override;
// Returns a reply from a command
std::vector<u8> GetReply() const override;
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp
index 6a3453457..221c33b86 100644
--- a/src/core/hle/service/hid/irs.cpp
+++ b/src/core/hle/service/hid/irs.cpp
@@ -8,7 +8,6 @@
#include "core/core_timing.h"
#include "core/hid/emulated_controller.h"
#include "core/hid/hid_core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_shared_memory.h"
#include "core/hle/kernel/k_transfer_memory.h"
#include "core/hle/kernel/kernel.h"
@@ -20,6 +19,7 @@
#include "core/hle/service/hid/irsensor/moment_processor.h"
#include "core/hle/service/hid/irsensor/pointing_processor.h"
#include "core/hle/service/hid/irsensor/tera_plugin_processor.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/memory.h"
namespace Service::IRS {
@@ -56,7 +56,7 @@ IRS::IRS(Core::System& system_) : ServiceFramework{system_, "irs"} {
}
IRS::~IRS() = default;
-void IRS::ActivateIrsensor(Kernel::HLERequestContext& ctx) {
+void IRS::ActivateIrsensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -67,7 +67,7 @@ void IRS::ActivateIrsensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IRS::DeactivateIrsensor(Kernel::HLERequestContext& ctx) {
+void IRS::DeactivateIrsensor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -78,7 +78,7 @@ void IRS::DeactivateIrsensor(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IRS::GetIrsensorSharedMemoryHandle(Kernel::HLERequestContext& ctx) {
+void IRS::GetIrsensorSharedMemoryHandle(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto applet_resource_user_id{rp.Pop<u64>()};
@@ -89,7 +89,7 @@ void IRS::GetIrsensorSharedMemoryHandle(Kernel::HLERequestContext& ctx) {
rb.PushCopyObjects(&system.Kernel().GetIrsSharedMem());
}
-void IRS::StopImageProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::StopImageProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -108,6 +108,8 @@ void IRS::StopImageProcessor(Kernel::HLERequestContext& ctx) {
auto result = IsIrCameraHandleValid(parameters.camera_handle);
if (result.IsSuccess()) {
// TODO: Stop Image processor
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Active);
result = ResultSuccess;
}
@@ -115,7 +117,7 @@ void IRS::StopImageProcessor(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void IRS::RunMomentProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::RunMomentProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -139,13 +141,15 @@ void IRS::RunMomentProcessor(Kernel::HLERequestContext& ctx) {
MakeProcessor<MomentProcessor>(parameters.camera_handle, device);
auto& image_transfer_processor = GetProcessor<MomentProcessor>(parameters.camera_handle);
image_transfer_processor.SetConfig(parameters.processor_config);
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::IR);
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
}
-void IRS::RunClusteringProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::RunClusteringProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -170,13 +174,15 @@ void IRS::RunClusteringProcessor(Kernel::HLERequestContext& ctx) {
auto& image_transfer_processor =
GetProcessor<ClusteringProcessor>(parameters.camera_handle);
image_transfer_processor.SetConfig(parameters.processor_config);
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::IR);
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
}
-void IRS::RunImageTransferProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::RunImageTransferProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -190,8 +196,8 @@ void IRS::RunImageTransferProcessor(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
const auto t_mem_handle{ctx.GetCopyHandle(0)};
- auto t_mem =
- system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(t_mem_handle);
+ auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
+ t_mem_handle);
if (t_mem.IsNull()) {
LOG_ERROR(Service_IRS, "t_mem is a nullptr for handle=0x{:08X}", t_mem_handle);
@@ -202,8 +208,6 @@ void IRS::RunImageTransferProcessor(Kernel::HLERequestContext& ctx) {
ASSERT_MSG(t_mem->GetSize() == parameters.transfer_memory_size, "t_mem has incorrect size");
- u8* transfer_memory = system.Memory().GetPointer(t_mem->GetSourceAddress());
-
LOG_INFO(Service_IRS,
"called, npad_type={}, npad_id={}, transfer_memory_size={}, transfer_memory_size={}, "
"applet_resource_user_id={}",
@@ -218,14 +222,16 @@ void IRS::RunImageTransferProcessor(Kernel::HLERequestContext& ctx) {
auto& image_transfer_processor =
GetProcessor<ImageTransferProcessor>(parameters.camera_handle);
image_transfer_processor.SetConfig(parameters.processor_config);
- image_transfer_processor.SetTransferMemoryPointer(transfer_memory);
+ image_transfer_processor.SetTransferMemoryAddress(t_mem->GetSourceAddress());
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::IR);
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
}
-void IRS::GetImageTransferProcessorState(Kernel::HLERequestContext& ctx) {
+void IRS::GetImageTransferProcessorState(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -266,7 +272,7 @@ void IRS::GetImageTransferProcessorState(Kernel::HLERequestContext& ctx) {
rb.PushRaw(state);
}
-void IRS::RunTeraPluginProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::RunTeraPluginProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -294,13 +300,15 @@ void IRS::RunTeraPluginProcessor(Kernel::HLERequestContext& ctx) {
auto& image_transfer_processor =
GetProcessor<TeraPluginProcessor>(parameters.camera_handle);
image_transfer_processor.SetConfig(parameters.processor_config);
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::IR);
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
}
-void IRS::GetNpadIrCameraHandle(Kernel::HLERequestContext& ctx) {
+void IRS::GetNpadIrCameraHandle(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto npad_id{rp.PopEnum<Core::HID::NpadIdType>()};
@@ -324,7 +332,7 @@ void IRS::GetNpadIrCameraHandle(Kernel::HLERequestContext& ctx) {
rb.PushRaw(camera_handle);
}
-void IRS::RunPointingProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::RunPointingProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto camera_handle{rp.PopRaw<Core::IrSensor::IrCameraHandle>()};
const auto processor_config{rp.PopRaw<Core::IrSensor::PackedPointingProcessorConfig>()};
@@ -343,13 +351,15 @@ void IRS::RunPointingProcessor(Kernel::HLERequestContext& ctx) {
MakeProcessor<PointingProcessor>(camera_handle, device);
auto& image_transfer_processor = GetProcessor<PointingProcessor>(camera_handle);
image_transfer_processor.SetConfig(processor_config);
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::IR);
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
}
-void IRS::SuspendImageProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::SuspendImageProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -375,7 +385,7 @@ void IRS::SuspendImageProcessor(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void IRS::CheckFirmwareVersion(Kernel::HLERequestContext& ctx) {
+void IRS::CheckFirmwareVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto camera_handle{rp.PopRaw<Core::IrSensor::IrCameraHandle>()};
const auto mcu_version{rp.PopRaw<Core::IrSensor::PackedMcuVersion>()};
@@ -397,7 +407,7 @@ void IRS::CheckFirmwareVersion(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void IRS::SetFunctionLevel(Kernel::HLERequestContext& ctx) {
+void IRS::SetFunctionLevel(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto camera_handle{rp.PopRaw<Core::IrSensor::IrCameraHandle>()};
const auto function_level{rp.PopRaw<Core::IrSensor::PackedFunctionLevel>()};
@@ -419,7 +429,7 @@ void IRS::SetFunctionLevel(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void IRS::RunImageTransferExProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::RunImageTransferExProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -433,10 +443,8 @@ void IRS::RunImageTransferExProcessor(Kernel::HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
const auto t_mem_handle{ctx.GetCopyHandle(0)};
- auto t_mem =
- system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(t_mem_handle);
-
- u8* transfer_memory = system.Memory().GetPointer(t_mem->GetSourceAddress());
+ auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
+ t_mem_handle);
LOG_INFO(Service_IRS,
"called, npad_type={}, npad_id={}, transfer_memory_size={}, "
@@ -452,14 +460,16 @@ void IRS::RunImageTransferExProcessor(Kernel::HLERequestContext& ctx) {
auto& image_transfer_processor =
GetProcessor<ImageTransferProcessor>(parameters.camera_handle);
image_transfer_processor.SetConfig(parameters.processor_config);
- image_transfer_processor.SetTransferMemoryPointer(transfer_memory);
+ image_transfer_processor.SetTransferMemoryAddress(t_mem->GetSourceAddress());
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::IR);
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
}
-void IRS::RunIrLedProcessor(Kernel::HLERequestContext& ctx) {
+void IRS::RunIrLedProcessor(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto camera_handle{rp.PopRaw<Core::IrSensor::IrCameraHandle>()};
const auto processor_config{rp.PopRaw<Core::IrSensor::PackedIrLedProcessorConfig>()};
@@ -479,13 +489,15 @@ void IRS::RunIrLedProcessor(Kernel::HLERequestContext& ctx) {
MakeProcessor<IrLedProcessor>(camera_handle, device);
auto& image_transfer_processor = GetProcessor<IrLedProcessor>(camera_handle);
image_transfer_processor.SetConfig(processor_config);
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::IR);
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
}
-void IRS::StopImageProcessorAsync(Kernel::HLERequestContext& ctx) {
+void IRS::StopImageProcessorAsync(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::IrCameraHandle camera_handle;
@@ -504,6 +516,8 @@ void IRS::StopImageProcessorAsync(Kernel::HLERequestContext& ctx) {
auto result = IsIrCameraHandleValid(parameters.camera_handle);
if (result.IsSuccess()) {
// TODO: Stop image processor async
+ npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Active);
result = ResultSuccess;
}
@@ -511,7 +525,7 @@ void IRS::StopImageProcessorAsync(Kernel::HLERequestContext& ctx) {
rb.Push(result);
}
-void IRS::ActivateIrsensorWithFunctionLevel(Kernel::HLERequestContext& ctx) {
+void IRS::ActivateIrsensorWithFunctionLevel(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
Core::IrSensor::PackedFunctionLevel function_level;
diff --git a/src/core/hle/service/hid/irs.h b/src/core/hle/service/hid/irs.h
index 2e6115c73..a8fa19025 100644
--- a/src/core/hle/service/hid/irs.h
+++ b/src/core/hle/service/hid/irs.h
@@ -38,24 +38,24 @@ private:
};
static_assert(sizeof(StatusManager) == 0x8000, "StatusManager is an invalid size");
- void ActivateIrsensor(Kernel::HLERequestContext& ctx);
- void DeactivateIrsensor(Kernel::HLERequestContext& ctx);
- void GetIrsensorSharedMemoryHandle(Kernel::HLERequestContext& ctx);
- void StopImageProcessor(Kernel::HLERequestContext& ctx);
- void RunMomentProcessor(Kernel::HLERequestContext& ctx);
- void RunClusteringProcessor(Kernel::HLERequestContext& ctx);
- void RunImageTransferProcessor(Kernel::HLERequestContext& ctx);
- void GetImageTransferProcessorState(Kernel::HLERequestContext& ctx);
- void RunTeraPluginProcessor(Kernel::HLERequestContext& ctx);
- void GetNpadIrCameraHandle(Kernel::HLERequestContext& ctx);
- void RunPointingProcessor(Kernel::HLERequestContext& ctx);
- void SuspendImageProcessor(Kernel::HLERequestContext& ctx);
- void CheckFirmwareVersion(Kernel::HLERequestContext& ctx);
- void SetFunctionLevel(Kernel::HLERequestContext& ctx);
- void RunImageTransferExProcessor(Kernel::HLERequestContext& ctx);
- void RunIrLedProcessor(Kernel::HLERequestContext& ctx);
- void StopImageProcessorAsync(Kernel::HLERequestContext& ctx);
- void ActivateIrsensorWithFunctionLevel(Kernel::HLERequestContext& ctx);
+ void ActivateIrsensor(HLERequestContext& ctx);
+ void DeactivateIrsensor(HLERequestContext& ctx);
+ void GetIrsensorSharedMemoryHandle(HLERequestContext& ctx);
+ void StopImageProcessor(HLERequestContext& ctx);
+ void RunMomentProcessor(HLERequestContext& ctx);
+ void RunClusteringProcessor(HLERequestContext& ctx);
+ void RunImageTransferProcessor(HLERequestContext& ctx);
+ void GetImageTransferProcessorState(HLERequestContext& ctx);
+ void RunTeraPluginProcessor(HLERequestContext& ctx);
+ void GetNpadIrCameraHandle(HLERequestContext& ctx);
+ void RunPointingProcessor(HLERequestContext& ctx);
+ void SuspendImageProcessor(HLERequestContext& ctx);
+ void CheckFirmwareVersion(HLERequestContext& ctx);
+ void SetFunctionLevel(HLERequestContext& ctx);
+ void RunImageTransferExProcessor(HLERequestContext& ctx);
+ void RunIrLedProcessor(HLERequestContext& ctx);
+ void StopImageProcessorAsync(HLERequestContext& ctx);
+ void ActivateIrsensorWithFunctionLevel(HLERequestContext& ctx);
Result IsIrCameraHandleValid(const Core::IrSensor::IrCameraHandle& camera_handle) const;
Core::IrSensor::DeviceFormat& GetIrCameraSharedMemoryDeviceEntry(
@@ -80,7 +80,13 @@ private:
LOG_CRITICAL(Service_IRS, "Invalid index {}", index);
return;
}
- processors[index] = std::make_unique<T>(system.HIDCore(), device_state, index);
+
+ if constexpr (std::is_constructible_v<T, Core::System&, Core::IrSensor::DeviceFormat&,
+ std::size_t>) {
+ processors[index] = std::make_unique<T>(system, device_state, index);
+ } else {
+ processors[index] = std::make_unique<T>(system.HIDCore(), device_state, index);
+ }
}
template <typename T>
diff --git a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp b/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp
index 98f0c579d..803a6277c 100644
--- a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp
+++ b/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp
@@ -1,16 +1,18 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
+#include "core/core.h"
#include "core/hid/emulated_controller.h"
#include "core/hid/hid_core.h"
#include "core/hle/service/hid/irsensor/image_transfer_processor.h"
+#include "core/memory.h"
namespace Service::IRS {
-ImageTransferProcessor::ImageTransferProcessor(Core::HID::HIDCore& hid_core_,
+ImageTransferProcessor::ImageTransferProcessor(Core::System& system_,
Core::IrSensor::DeviceFormat& device_format,
std::size_t npad_index)
- : device{device_format} {
- npad_device = hid_core_.GetEmulatedControllerByIndex(npad_index);
+ : device{device_format}, system{system_} {
+ npad_device = system.HIDCore().GetEmulatedControllerByIndex(npad_index);
Core::HID::ControllerUpdateCallback engine_callback{
.on_change = [this](Core::HID::ControllerTriggerType type) { OnControllerUpdate(type); },
@@ -43,27 +45,29 @@ void ImageTransferProcessor::OnControllerUpdate(Core::HID::ControllerTriggerType
if (type != Core::HID::ControllerTriggerType::IrSensor) {
return;
}
- if (!is_transfer_memory_set) {
+ if (transfer_memory == 0) {
return;
}
const auto camera_data = npad_device->GetCamera();
- // This indicates how much ambient light is precent
+ // This indicates how much ambient light is present
processor_state.ambient_noise_level = Core::IrSensor::CameraAmbientNoiseLevel::Low;
processor_state.sampling_number = camera_data.sample;
if (camera_data.format != current_config.origin_format) {
LOG_WARNING(Service_IRS, "Wrong Input format {} expected {}", camera_data.format,
current_config.origin_format);
- memset(transfer_memory, 0, GetDataSize(current_config.trimming_format));
+ system.ApplicationMemory().ZeroBlock(transfer_memory,
+ GetDataSize(current_config.trimming_format));
return;
}
if (current_config.origin_format > current_config.trimming_format) {
LOG_WARNING(Service_IRS, "Origin format {} is smaller than trimming format {}",
current_config.origin_format, current_config.trimming_format);
- memset(transfer_memory, 0, GetDataSize(current_config.trimming_format));
+ system.ApplicationMemory().ZeroBlock(transfer_memory,
+ GetDataSize(current_config.trimming_format));
return;
}
@@ -80,7 +84,8 @@ void ImageTransferProcessor::OnControllerUpdate(Core::HID::ControllerTriggerType
"Trimming area ({}, {}, {}, {}) is outside of origin area ({}, {})",
current_config.trimming_start_x, current_config.trimming_start_y,
trimming_width, trimming_height, origin_width, origin_height);
- memset(transfer_memory, 0, GetDataSize(current_config.trimming_format));
+ system.ApplicationMemory().ZeroBlock(transfer_memory,
+ GetDataSize(current_config.trimming_format));
return;
}
@@ -94,7 +99,8 @@ void ImageTransferProcessor::OnControllerUpdate(Core::HID::ControllerTriggerType
}
}
- memcpy(transfer_memory, window_data.data(), GetDataSize(current_config.trimming_format));
+ system.ApplicationMemory().WriteBlock(transfer_memory, window_data.data(),
+ GetDataSize(current_config.trimming_format));
if (!IsProcessorActive()) {
StartProcessor();
@@ -134,8 +140,7 @@ void ImageTransferProcessor::SetConfig(
npad_device->SetCameraFormat(current_config.origin_format);
}
-void ImageTransferProcessor::SetTransferMemoryPointer(u8* t_mem) {
- is_transfer_memory_set = true;
+void ImageTransferProcessor::SetTransferMemoryAddress(Common::ProcessAddress t_mem) {
transfer_memory = t_mem;
}
@@ -143,7 +148,7 @@ Core::IrSensor::ImageTransferProcessorState ImageTransferProcessor::GetState(
std::vector<u8>& data) const {
const auto size = GetDataSize(current_config.trimming_format);
data.resize(size);
- memcpy(data.data(), transfer_memory, size);
+ system.ApplicationMemory().ReadBlock(transfer_memory, data.data(), size);
return processor_state;
}
diff --git a/src/core/hle/service/hid/irsensor/image_transfer_processor.h b/src/core/hle/service/hid/irsensor/image_transfer_processor.h
index 393df492d..7f42d8453 100644
--- a/src/core/hle/service/hid/irsensor/image_transfer_processor.h
+++ b/src/core/hle/service/hid/irsensor/image_transfer_processor.h
@@ -3,10 +3,14 @@
#pragma once
-#include "common/common_types.h"
+#include "common/typed_address.h"
#include "core/hid/irs_types.h"
#include "core/hle/service/hid/irsensor/processor_base.h"
+namespace Core {
+class System;
+}
+
namespace Core::HID {
class EmulatedController;
} // namespace Core::HID
@@ -14,7 +18,7 @@ class EmulatedController;
namespace Service::IRS {
class ImageTransferProcessor final : public ProcessorBase {
public:
- explicit ImageTransferProcessor(Core::HID::HIDCore& hid_core_,
+ explicit ImageTransferProcessor(Core::System& system_,
Core::IrSensor::DeviceFormat& device_format,
std::size_t npad_index);
~ImageTransferProcessor() override;
@@ -33,7 +37,7 @@ public:
void SetConfig(Core::IrSensor::PackedImageTransferProcessorExConfig config);
// Transfer memory where the image data will be stored
- void SetTransferMemoryPointer(u8* t_mem);
+ void SetTransferMemoryAddress(Common::ProcessAddress t_mem);
Core::IrSensor::ImageTransferProcessorState GetState(std::vector<u8>& data) const;
@@ -67,7 +71,7 @@ private:
Core::HID::EmulatedController* npad_device;
int callback_key{};
- u8* transfer_memory = nullptr;
- bool is_transfer_memory_set = false;
+ Core::System& system;
+ Common::ProcessAddress transfer_memory{};
};
} // namespace Service::IRS
diff --git a/src/core/hle/service/hle_ipc.cpp b/src/core/hle/service/hle_ipc.cpp
new file mode 100644
index 000000000..2290df705
--- /dev/null
+++ b/src/core/hle/service/hle_ipc.cpp
@@ -0,0 +1,531 @@
+// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <algorithm>
+#include <array>
+#include <sstream>
+
+#include <boost/range/algorithm_ext/erase.hpp>
+
+#include "common/assert.h"
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "common/logging/log.h"
+#include "common/scratch_buffer.h"
+#include "core/hle/kernel/k_auto_object.h"
+#include "core/hle/kernel/k_handle_table.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_server_port.h"
+#include "core/hle/kernel/k_server_session.h"
+#include "core/hle/kernel/k_thread.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/service/hle_ipc.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/memory.h"
+
+namespace Service {
+
+SessionRequestHandler::SessionRequestHandler(Kernel::KernelCore& kernel_, const char* service_name_)
+ : kernel{kernel_} {}
+
+SessionRequestHandler::~SessionRequestHandler() = default;
+
+SessionRequestManager::SessionRequestManager(Kernel::KernelCore& kernel_,
+ ServerManager& server_manager_)
+ : kernel{kernel_}, server_manager{server_manager_} {}
+
+SessionRequestManager::~SessionRequestManager() = default;
+
+bool SessionRequestManager::HasSessionRequestHandler(const HLERequestContext& context) const {
+ if (IsDomain() && context.HasDomainMessageHeader()) {
+ const auto& message_header = context.GetDomainMessageHeader();
+ const auto object_id = message_header.object_id;
+
+ if (object_id > DomainHandlerCount()) {
+ LOG_CRITICAL(IPC, "object_id {} is too big!", object_id);
+ return false;
+ }
+ return !DomainHandler(object_id - 1).expired();
+ } else {
+ return session_handler != nullptr;
+ }
+}
+
+Result SessionRequestManager::CompleteSyncRequest(Kernel::KServerSession* server_session,
+ HLERequestContext& context) {
+ Result result = ResultSuccess;
+
+ // If the session has been converted to a domain, handle the domain request
+ if (this->HasSessionRequestHandler(context)) {
+ if (IsDomain() && context.HasDomainMessageHeader()) {
+ result = HandleDomainSyncRequest(server_session, context);
+ // If there is no domain header, the regular session handler is used
+ } else if (this->HasSessionHandler()) {
+ // If this manager has an associated HLE handler, forward the request to it.
+ result = this->SessionHandler().HandleSyncRequest(*server_session, context);
+ }
+ } else {
+ ASSERT_MSG(false, "Session handler is invalid, stubbing response!");
+ IPC::ResponseBuilder rb(context, 2);
+ rb.Push(ResultSuccess);
+ }
+
+ if (convert_to_domain) {
+ ASSERT_MSG(!IsDomain(), "ServerSession is already a domain instance.");
+ this->ConvertToDomain();
+ convert_to_domain = false;
+ }
+
+ return result;
+}
+
+Result SessionRequestManager::HandleDomainSyncRequest(Kernel::KServerSession* server_session,
+ HLERequestContext& context) {
+ if (!context.HasDomainMessageHeader()) {
+ return ResultSuccess;
+ }
+
+ // Set domain handlers in HLE context, used for domain objects (IPC interfaces) as inputs
+ ASSERT(context.GetManager().get() == this);
+
+ // If there is a DomainMessageHeader, then this is CommandType "Request"
+ const auto& domain_message_header = context.GetDomainMessageHeader();
+ const u32 object_id{domain_message_header.object_id};
+ switch (domain_message_header.command) {
+ case IPC::DomainMessageHeader::CommandType::SendMessage:
+ if (object_id > this->DomainHandlerCount()) {
+ LOG_CRITICAL(IPC,
+ "object_id {} is too big! This probably means a recent service call "
+ "needed to return a new interface!",
+ object_id);
+ ASSERT(false);
+ return ResultSuccess; // Ignore error if asserts are off
+ }
+ if (auto strong_ptr = this->DomainHandler(object_id - 1).lock()) {
+ return strong_ptr->HandleSyncRequest(*server_session, context);
+ } else {
+ ASSERT(false);
+ return ResultSuccess;
+ }
+
+ case IPC::DomainMessageHeader::CommandType::CloseVirtualHandle: {
+ LOG_DEBUG(IPC, "CloseVirtualHandle, object_id=0x{:08X}", object_id);
+
+ this->CloseDomainHandler(object_id - 1);
+
+ IPC::ResponseBuilder rb{context, 2};
+ rb.Push(ResultSuccess);
+ return ResultSuccess;
+ }
+ }
+
+ LOG_CRITICAL(IPC, "Unknown domain command={}", domain_message_header.command.Value());
+ ASSERT(false);
+ return ResultSuccess;
+}
+
+HLERequestContext::HLERequestContext(Kernel::KernelCore& kernel_, Core::Memory::Memory& memory_,
+ Kernel::KServerSession* server_session_,
+ Kernel::KThread* thread_)
+ : server_session(server_session_), thread(thread_), kernel{kernel_}, memory{memory_} {
+ cmd_buf[0] = 0;
+}
+
+HLERequestContext::~HLERequestContext() = default;
+
+void HLERequestContext::ParseCommandBuffer(const Kernel::KHandleTable& handle_table,
+ u32_le* src_cmdbuf, bool incoming) {
+ IPC::RequestParser rp(src_cmdbuf);
+ command_header = rp.PopRaw<IPC::CommandHeader>();
+
+ if (command_header->IsCloseCommand()) {
+ // Close does not populate the rest of the IPC header
+ return;
+ }
+
+ // If handle descriptor is present, add size of it
+ if (command_header->enable_handle_descriptor) {
+ handle_descriptor_header = rp.PopRaw<IPC::HandleDescriptorHeader>();
+ if (handle_descriptor_header->send_current_pid) {
+ pid = rp.Pop<u64>();
+ }
+ if (incoming) {
+ // Populate the object lists with the data in the IPC request.
+ incoming_copy_handles.reserve(handle_descriptor_header->num_handles_to_copy);
+ incoming_move_handles.reserve(handle_descriptor_header->num_handles_to_move);
+
+ for (u32 handle = 0; handle < handle_descriptor_header->num_handles_to_copy; ++handle) {
+ incoming_copy_handles.push_back(rp.Pop<Handle>());
+ }
+ for (u32 handle = 0; handle < handle_descriptor_header->num_handles_to_move; ++handle) {
+ incoming_move_handles.push_back(rp.Pop<Handle>());
+ }
+ } else {
+ // For responses we just ignore the handles, they're empty and will be populated when
+ // translating the response.
+ rp.Skip(handle_descriptor_header->num_handles_to_copy, false);
+ rp.Skip(handle_descriptor_header->num_handles_to_move, false);
+ }
+ }
+
+ buffer_x_desciptors.reserve(command_header->num_buf_x_descriptors);
+ buffer_a_desciptors.reserve(command_header->num_buf_a_descriptors);
+ buffer_b_desciptors.reserve(command_header->num_buf_b_descriptors);
+ buffer_w_desciptors.reserve(command_header->num_buf_w_descriptors);
+
+ for (u32 i = 0; i < command_header->num_buf_x_descriptors; ++i) {
+ buffer_x_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>());
+ }
+ for (u32 i = 0; i < command_header->num_buf_a_descriptors; ++i) {
+ buffer_a_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
+ }
+ for (u32 i = 0; i < command_header->num_buf_b_descriptors; ++i) {
+ buffer_b_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
+ }
+ for (u32 i = 0; i < command_header->num_buf_w_descriptors; ++i) {
+ buffer_w_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
+ }
+
+ const auto buffer_c_offset = rp.GetCurrentOffset() + command_header->data_size;
+
+ if (!command_header->IsTipc()) {
+ // Padding to align to 16 bytes
+ rp.AlignWithPadding();
+
+ if (GetManager()->IsDomain() &&
+ ((command_header->type == IPC::CommandType::Request ||
+ command_header->type == IPC::CommandType::RequestWithContext) ||
+ !incoming)) {
+ // If this is an incoming message, only CommandType "Request" has a domain header
+ // All outgoing domain messages have the domain header, if only incoming has it
+ if (incoming || domain_message_header) {
+ domain_message_header = rp.PopRaw<IPC::DomainMessageHeader>();
+ } else {
+ if (GetManager()->IsDomain()) {
+ LOG_WARNING(IPC, "Domain request has no DomainMessageHeader!");
+ }
+ }
+ }
+
+ data_payload_header = rp.PopRaw<IPC::DataPayloadHeader>();
+
+ data_payload_offset = rp.GetCurrentOffset();
+
+ if (domain_message_header &&
+ domain_message_header->command ==
+ IPC::DomainMessageHeader::CommandType::CloseVirtualHandle) {
+ // CloseVirtualHandle command does not have SFC* or any data
+ return;
+ }
+
+ if (incoming) {
+ ASSERT(data_payload_header->magic == Common::MakeMagic('S', 'F', 'C', 'I'));
+ } else {
+ ASSERT(data_payload_header->magic == Common::MakeMagic('S', 'F', 'C', 'O'));
+ }
+ }
+
+ rp.SetCurrentOffset(buffer_c_offset);
+
+ // For Inline buffers, the response data is written directly to buffer_c_offset
+ // and in this case we don't have any BufferDescriptorC on the request.
+ if (command_header->buf_c_descriptor_flags >
+ IPC::CommandHeader::BufferDescriptorCFlag::InlineDescriptor) {
+ if (command_header->buf_c_descriptor_flags ==
+ IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) {
+ buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
+ } else {
+ u32 num_buf_c_descriptors =
+ static_cast<u32>(command_header->buf_c_descriptor_flags.Value()) - 2;
+
+ // This is used to detect possible underflows, in case something is broken
+ // with the two ifs above and the flags value is == 0 || == 1.
+ ASSERT(num_buf_c_descriptors < 14);
+
+ for (u32 i = 0; i < num_buf_c_descriptors; ++i) {
+ buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
+ }
+ }
+ }
+
+ rp.SetCurrentOffset(data_payload_offset);
+
+ command = rp.Pop<u32_le>();
+ rp.Skip(1, false); // The command is actually an u64, but we don't use the high part.
+}
+
+Result HLERequestContext::PopulateFromIncomingCommandBuffer(
+ const Kernel::KHandleTable& handle_table, u32_le* src_cmdbuf) {
+ ParseCommandBuffer(handle_table, src_cmdbuf, true);
+
+ if (command_header->IsCloseCommand()) {
+ // Close does not populate the rest of the IPC header
+ return ResultSuccess;
+ }
+
+ std::copy_n(src_cmdbuf, IPC::COMMAND_BUFFER_LENGTH, cmd_buf.begin());
+
+ return ResultSuccess;
+}
+
+Result HLERequestContext::WriteToOutgoingCommandBuffer(Kernel::KThread& requesting_thread) {
+ auto current_offset = handles_offset;
+ auto& owner_process = *requesting_thread.GetOwnerProcess();
+ auto& handle_table = owner_process.GetHandleTable();
+
+ for (auto& object : outgoing_copy_objects) {
+ Handle handle{};
+ if (object) {
+ R_TRY(handle_table.Add(&handle, object));
+ }
+ cmd_buf[current_offset++] = handle;
+ }
+ for (auto& object : outgoing_move_objects) {
+ Handle handle{};
+ if (object) {
+ R_TRY(handle_table.Add(&handle, object));
+
+ // Close our reference to the object, as it is being moved to the caller.
+ object->Close();
+ }
+ cmd_buf[current_offset++] = handle;
+ }
+
+ // Write the domain objects to the command buffer, these go after the raw untranslated data.
+ // TODO(Subv): This completely ignores C buffers.
+
+ if (GetManager()->IsDomain()) {
+ current_offset = domain_offset - static_cast<u32>(outgoing_domain_objects.size());
+ for (auto& object : outgoing_domain_objects) {
+ GetManager()->AppendDomainHandler(std::move(object));
+ cmd_buf[current_offset++] = static_cast<u32_le>(GetManager()->DomainHandlerCount());
+ }
+ }
+
+ // Copy the translated command buffer back into the thread's command buffer area.
+ memory.WriteBlock(requesting_thread.GetTlsAddress(), cmd_buf.data(), write_size * sizeof(u32));
+
+ return ResultSuccess;
+}
+
+std::vector<u8> HLERequestContext::ReadBufferCopy(std::size_t buffer_index) const {
+ const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
+ BufferDescriptorA()[buffer_index].Size()};
+ if (is_buffer_a) {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorA().size() > buffer_index, { return {}; },
+ "BufferDescriptorA invalid buffer_index {}", buffer_index);
+ std::vector<u8> buffer(BufferDescriptorA()[buffer_index].Size());
+ memory.ReadBlock(BufferDescriptorA()[buffer_index].Address(), buffer.data(), buffer.size());
+ return buffer;
+ } else {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorX().size() > buffer_index, { return {}; },
+ "BufferDescriptorX invalid buffer_index {}", buffer_index);
+ std::vector<u8> buffer(BufferDescriptorX()[buffer_index].Size());
+ memory.ReadBlock(BufferDescriptorX()[buffer_index].Address(), buffer.data(), buffer.size());
+ return buffer;
+ }
+}
+
+std::span<const u8> HLERequestContext::ReadBuffer(std::size_t buffer_index) const {
+ static thread_local std::array<Common::ScratchBuffer<u8>, 2> read_buffer_a;
+ static thread_local std::array<Common::ScratchBuffer<u8>, 2> read_buffer_x;
+
+ const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
+ BufferDescriptorA()[buffer_index].Size()};
+ if (is_buffer_a) {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorA().size() > buffer_index, { return {}; },
+ "BufferDescriptorA invalid buffer_index {}", buffer_index);
+ auto& read_buffer = read_buffer_a[buffer_index];
+ read_buffer.resize_destructive(BufferDescriptorA()[buffer_index].Size());
+ memory.ReadBlock(BufferDescriptorA()[buffer_index].Address(), read_buffer.data(),
+ read_buffer.size());
+ return read_buffer;
+ } else {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorX().size() > buffer_index, { return {}; },
+ "BufferDescriptorX invalid buffer_index {}", buffer_index);
+ auto& read_buffer = read_buffer_x[buffer_index];
+ read_buffer.resize_destructive(BufferDescriptorX()[buffer_index].Size());
+ memory.ReadBlock(BufferDescriptorX()[buffer_index].Address(), read_buffer.data(),
+ read_buffer.size());
+ return read_buffer;
+ }
+}
+
+std::size_t HLERequestContext::WriteBuffer(const void* buffer, std::size_t size,
+ std::size_t buffer_index) const {
+ if (size == 0) {
+ LOG_WARNING(Core, "skip empty buffer write");
+ return 0;
+ }
+
+ const bool is_buffer_b{BufferDescriptorB().size() > buffer_index &&
+ BufferDescriptorB()[buffer_index].Size()};
+ const std::size_t buffer_size{GetWriteBufferSize(buffer_index)};
+ if (size > buffer_size) {
+ LOG_CRITICAL(Core, "size ({:016X}) is greater than buffer_size ({:016X})", size,
+ buffer_size);
+ size = buffer_size; // TODO(bunnei): This needs to be HW tested
+ }
+
+ if (is_buffer_b) {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorB().size() > buffer_index &&
+ BufferDescriptorB()[buffer_index].Size() >= size,
+ { return 0; }, "BufferDescriptorB is invalid, index={}, size={}", buffer_index, size);
+ WriteBufferB(buffer, size, buffer_index);
+ } else {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorC().size() > buffer_index &&
+ BufferDescriptorC()[buffer_index].Size() >= size,
+ { return 0; }, "BufferDescriptorC is invalid, index={}, size={}", buffer_index, size);
+ WriteBufferC(buffer, size, buffer_index);
+ }
+
+ return size;
+}
+
+std::size_t HLERequestContext::WriteBufferB(const void* buffer, std::size_t size,
+ std::size_t buffer_index) const {
+ if (buffer_index >= BufferDescriptorB().size() || size == 0) {
+ return 0;
+ }
+
+ const auto buffer_size{BufferDescriptorB()[buffer_index].Size()};
+ if (size > buffer_size) {
+ LOG_CRITICAL(Core, "size ({:016X}) is greater than buffer_size ({:016X})", size,
+ buffer_size);
+ size = buffer_size; // TODO(bunnei): This needs to be HW tested
+ }
+
+ memory.WriteBlock(BufferDescriptorB()[buffer_index].Address(), buffer, size);
+ return size;
+}
+
+std::size_t HLERequestContext::WriteBufferC(const void* buffer, std::size_t size,
+ std::size_t buffer_index) const {
+ if (buffer_index >= BufferDescriptorC().size() || size == 0) {
+ return 0;
+ }
+
+ const auto buffer_size{BufferDescriptorC()[buffer_index].Size()};
+ if (size > buffer_size) {
+ LOG_CRITICAL(Core, "size ({:016X}) is greater than buffer_size ({:016X})", size,
+ buffer_size);
+ size = buffer_size; // TODO(bunnei): This needs to be HW tested
+ }
+
+ memory.WriteBlock(BufferDescriptorC()[buffer_index].Address(), buffer, size);
+ return size;
+}
+
+std::size_t HLERequestContext::GetReadBufferSize(std::size_t buffer_index) const {
+ const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
+ BufferDescriptorA()[buffer_index].Size()};
+ if (is_buffer_a) {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorA().size() > buffer_index, { return 0; },
+ "BufferDescriptorA invalid buffer_index {}", buffer_index);
+ return BufferDescriptorA()[buffer_index].Size();
+ } else {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorX().size() > buffer_index, { return 0; },
+ "BufferDescriptorX invalid buffer_index {}", buffer_index);
+ return BufferDescriptorX()[buffer_index].Size();
+ }
+}
+
+std::size_t HLERequestContext::GetWriteBufferSize(std::size_t buffer_index) const {
+ const bool is_buffer_b{BufferDescriptorB().size() > buffer_index &&
+ BufferDescriptorB()[buffer_index].Size()};
+ if (is_buffer_b) {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorB().size() > buffer_index, { return 0; },
+ "BufferDescriptorB invalid buffer_index {}", buffer_index);
+ return BufferDescriptorB()[buffer_index].Size();
+ } else {
+ ASSERT_OR_EXECUTE_MSG(
+ BufferDescriptorC().size() > buffer_index, { return 0; },
+ "BufferDescriptorC invalid buffer_index {}", buffer_index);
+ return BufferDescriptorC()[buffer_index].Size();
+ }
+ return 0;
+}
+
+bool HLERequestContext::CanReadBuffer(std::size_t buffer_index) const {
+ const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
+ BufferDescriptorA()[buffer_index].Size()};
+
+ if (is_buffer_a) {
+ return BufferDescriptorA().size() > buffer_index;
+ } else {
+ return BufferDescriptorX().size() > buffer_index;
+ }
+}
+
+bool HLERequestContext::CanWriteBuffer(std::size_t buffer_index) const {
+ const bool is_buffer_b{BufferDescriptorB().size() > buffer_index &&
+ BufferDescriptorB()[buffer_index].Size()};
+
+ if (is_buffer_b) {
+ return BufferDescriptorB().size() > buffer_index;
+ } else {
+ return BufferDescriptorC().size() > buffer_index;
+ }
+}
+
+std::string HLERequestContext::Description() const {
+ if (!command_header) {
+ return "No command header available";
+ }
+ std::ostringstream s;
+ s << "IPC::CommandHeader: Type:" << static_cast<u32>(command_header->type.Value());
+ s << ", X(Pointer):" << command_header->num_buf_x_descriptors;
+ if (command_header->num_buf_x_descriptors) {
+ s << '[';
+ for (u64 i = 0; i < command_header->num_buf_x_descriptors; ++i) {
+ s << "0x" << std::hex << BufferDescriptorX()[i].Size();
+ if (i < command_header->num_buf_x_descriptors - 1)
+ s << ", ";
+ }
+ s << ']';
+ }
+ s << ", A(Send):" << command_header->num_buf_a_descriptors;
+ if (command_header->num_buf_a_descriptors) {
+ s << '[';
+ for (u64 i = 0; i < command_header->num_buf_a_descriptors; ++i) {
+ s << "0x" << std::hex << BufferDescriptorA()[i].Size();
+ if (i < command_header->num_buf_a_descriptors - 1)
+ s << ", ";
+ }
+ s << ']';
+ }
+ s << ", B(Receive):" << command_header->num_buf_b_descriptors;
+ if (command_header->num_buf_b_descriptors) {
+ s << '[';
+ for (u64 i = 0; i < command_header->num_buf_b_descriptors; ++i) {
+ s << "0x" << std::hex << BufferDescriptorB()[i].Size();
+ if (i < command_header->num_buf_b_descriptors - 1)
+ s << ", ";
+ }
+ s << ']';
+ }
+ s << ", C(ReceiveList):" << BufferDescriptorC().size();
+ if (!BufferDescriptorC().empty()) {
+ s << '[';
+ for (u64 i = 0; i < BufferDescriptorC().size(); ++i) {
+ s << "0x" << std::hex << BufferDescriptorC()[i].Size();
+ if (i < BufferDescriptorC().size() - 1)
+ s << ", ";
+ }
+ s << ']';
+ }
+ s << ", data_size:" << command_header->data_size.Value();
+
+ return s.str();
+}
+
+} // namespace Service
diff --git a/src/core/hle/service/hle_ipc.h b/src/core/hle/service/hle_ipc.h
new file mode 100644
index 000000000..4bd24c899
--- /dev/null
+++ b/src/core/hle/service/hle_ipc.h
@@ -0,0 +1,408 @@
+// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <array>
+#include <functional>
+#include <memory>
+#include <optional>
+#include <span>
+#include <string>
+#include <type_traits>
+#include <vector>
+
+#include "common/assert.h"
+#include "common/common_types.h"
+#include "common/concepts.h"
+#include "common/swap.h"
+#include "core/hle/ipc.h"
+#include "core/hle/kernel/svc_common.h"
+
+union Result;
+
+namespace Core::Memory {
+class Memory;
+}
+
+namespace IPC {
+class ResponseBuilder;
+}
+
+namespace Service {
+class ServiceFrameworkBase;
+class ServerManager;
+} // namespace Service
+
+namespace Kernel {
+class KAutoObject;
+class KernelCore;
+class KHandleTable;
+class KServerSession;
+class KThread;
+} // namespace Kernel
+
+namespace Service {
+
+using Handle = Kernel::Handle;
+
+class HLERequestContext;
+
+/**
+ * Interface implemented by HLE Session handlers.
+ * This can be provided to a ServerSession in order to hook into several relevant events
+ * (such as a new connection or a SyncRequest) so they can be implemented in the emulator.
+ */
+class SessionRequestHandler : public std::enable_shared_from_this<SessionRequestHandler> {
+public:
+ SessionRequestHandler(Kernel::KernelCore& kernel_, const char* service_name_);
+ virtual ~SessionRequestHandler();
+
+ /**
+ * Handles a sync request from the emulated application.
+ * @param server_session The ServerSession that was triggered for this sync request,
+ * it should be used to differentiate which client (As in ClientSession) we're answering to.
+ * TODO(Subv): Use a wrapper structure to hold all the information relevant to
+ * this request (ServerSession, Originator thread, Translated command buffer, etc).
+ * @returns Result the result code of the translate operation.
+ */
+ virtual Result HandleSyncRequest(Kernel::KServerSession& session,
+ HLERequestContext& context) = 0;
+
+protected:
+ Kernel::KernelCore& kernel;
+};
+
+using SessionRequestHandlerWeakPtr = std::weak_ptr<SessionRequestHandler>;
+using SessionRequestHandlerPtr = std::shared_ptr<SessionRequestHandler>;
+
+/**
+ * Manages the underlying HLE requests for a session, and whether (or not) the session should be
+ * treated as a domain. This is managed separately from server sessions, as this state is shared
+ * when objects are cloned.
+ */
+class SessionRequestManager final {
+public:
+ explicit SessionRequestManager(Kernel::KernelCore& kernel,
+ Service::ServerManager& server_manager);
+ ~SessionRequestManager();
+
+ bool IsDomain() const {
+ return is_domain;
+ }
+
+ void ConvertToDomain() {
+ domain_handlers = {session_handler};
+ is_domain = true;
+ }
+
+ void ConvertToDomainOnRequestEnd() {
+ convert_to_domain = true;
+ }
+
+ std::size_t DomainHandlerCount() const {
+ return domain_handlers.size();
+ }
+
+ bool HasSessionHandler() const {
+ return session_handler != nullptr;
+ }
+
+ SessionRequestHandler& SessionHandler() {
+ return *session_handler;
+ }
+
+ const SessionRequestHandler& SessionHandler() const {
+ return *session_handler;
+ }
+
+ void CloseDomainHandler(std::size_t index) {
+ if (index < DomainHandlerCount()) {
+ domain_handlers[index] = nullptr;
+ } else {
+ ASSERT_MSG(false, "Unexpected handler index {}", index);
+ }
+ }
+
+ SessionRequestHandlerWeakPtr DomainHandler(std::size_t index) const {
+ ASSERT_MSG(index < DomainHandlerCount(), "Unexpected handler index {}", index);
+ return domain_handlers.at(index);
+ }
+
+ void AppendDomainHandler(SessionRequestHandlerPtr&& handler) {
+ domain_handlers.emplace_back(std::move(handler));
+ }
+
+ void SetSessionHandler(SessionRequestHandlerPtr&& handler) {
+ session_handler = std::move(handler);
+ }
+
+ bool HasSessionRequestHandler(const HLERequestContext& context) const;
+
+ Result HandleDomainSyncRequest(Kernel::KServerSession* server_session,
+ HLERequestContext& context);
+ Result CompleteSyncRequest(Kernel::KServerSession* server_session, HLERequestContext& context);
+
+ Service::ServerManager& GetServerManager() {
+ return server_manager;
+ }
+
+ // TODO: remove this when sm: is implemented with the proper IUserInterface
+ // abstraction, creating a new C++ handler object for each session:
+
+ bool GetIsInitializedForSm() const {
+ return is_initialized_for_sm;
+ }
+
+ void SetIsInitializedForSm() {
+ is_initialized_for_sm = true;
+ }
+
+private:
+ bool convert_to_domain{};
+ bool is_domain{};
+ bool is_initialized_for_sm{};
+ SessionRequestHandlerPtr session_handler;
+ std::vector<SessionRequestHandlerPtr> domain_handlers;
+
+private:
+ Kernel::KernelCore& kernel;
+ Service::ServerManager& server_manager;
+};
+
+/**
+ * Class containing information about an in-flight IPC request being handled by an HLE service
+ * implementation.
+ */
+class HLERequestContext {
+public:
+ explicit HLERequestContext(Kernel::KernelCore& kernel, Core::Memory::Memory& memory,
+ Kernel::KServerSession* session, Kernel::KThread* thread);
+ ~HLERequestContext();
+
+ /// Returns a pointer to the IPC command buffer for this request.
+ [[nodiscard]] u32* CommandBuffer() {
+ return cmd_buf.data();
+ }
+
+ /**
+ * Returns the session through which this request was made. This can be used as a map key to
+ * access per-client data on services.
+ */
+ [[nodiscard]] Kernel::KServerSession* Session() {
+ return server_session;
+ }
+
+ /// Populates this context with data from the requesting process/thread.
+ Result PopulateFromIncomingCommandBuffer(const Kernel::KHandleTable& handle_table,
+ u32_le* src_cmdbuf);
+
+ /// Writes data from this context back to the requesting process/thread.
+ Result WriteToOutgoingCommandBuffer(Kernel::KThread& requesting_thread);
+
+ [[nodiscard]] u32_le GetHipcCommand() const {
+ return command;
+ }
+
+ [[nodiscard]] u32_le GetTipcCommand() const {
+ return static_cast<u32_le>(command_header->type.Value()) -
+ static_cast<u32_le>(IPC::CommandType::TIPC_CommandRegion);
+ }
+
+ [[nodiscard]] u32_le GetCommand() const {
+ return command_header->IsTipc() ? GetTipcCommand() : GetHipcCommand();
+ }
+
+ [[nodiscard]] bool IsTipc() const {
+ return command_header->IsTipc();
+ }
+
+ [[nodiscard]] IPC::CommandType GetCommandType() const {
+ return command_header->type;
+ }
+
+ [[nodiscard]] u64 GetPID() const {
+ return pid;
+ }
+
+ [[nodiscard]] u32 GetDataPayloadOffset() const {
+ return data_payload_offset;
+ }
+
+ [[nodiscard]] const std::vector<IPC::BufferDescriptorX>& BufferDescriptorX() const {
+ return buffer_x_desciptors;
+ }
+
+ [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorA() const {
+ return buffer_a_desciptors;
+ }
+
+ [[nodiscard]] const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorB() const {
+ return buffer_b_desciptors;
+ }
+
+ [[nodiscard]] const std::vector<IPC::BufferDescriptorC>& BufferDescriptorC() const {
+ return buffer_c_desciptors;
+ }
+
+ [[nodiscard]] const IPC::DomainMessageHeader& GetDomainMessageHeader() const {
+ return domain_message_header.value();
+ }
+
+ [[nodiscard]] bool HasDomainMessageHeader() const {
+ return domain_message_header.has_value();
+ }
+
+ /// Helper function to get a span of a buffer using the appropriate buffer descriptor
+ [[nodiscard]] std::span<const u8> ReadBuffer(std::size_t buffer_index = 0) const;
+
+ /// Helper function to read a copy of a buffer using the appropriate buffer descriptor
+ [[nodiscard]] std::vector<u8> ReadBufferCopy(std::size_t buffer_index = 0) const;
+
+ /// Helper function to write a buffer using the appropriate buffer descriptor
+ std::size_t WriteBuffer(const void* buffer, std::size_t size,
+ std::size_t buffer_index = 0) const;
+
+ /// Helper function to write buffer B
+ std::size_t WriteBufferB(const void* buffer, std::size_t size,
+ std::size_t buffer_index = 0) const;
+
+ /// Helper function to write buffer C
+ std::size_t WriteBufferC(const void* buffer, std::size_t size,
+ std::size_t buffer_index = 0) const;
+
+ /* Helper function to write a buffer using the appropriate buffer descriptor
+ *
+ * @tparam T an arbitrary container that satisfies the
+ * ContiguousContainer concept in the C++ standard library or a trivially copyable type.
+ *
+ * @param data The container/data to write into a buffer.
+ * @param buffer_index The buffer in particular to write to.
+ */
+ template <typename T, typename = std::enable_if_t<!std::is_pointer_v<T>>>
+ std::size_t WriteBuffer(const T& data, std::size_t buffer_index = 0) const {
+ if constexpr (Common::IsContiguousContainer<T>) {
+ using ContiguousType = typename T::value_type;
+ static_assert(std::is_trivially_copyable_v<ContiguousType>,
+ "Container to WriteBuffer must contain trivially copyable objects");
+ return WriteBuffer(std::data(data), std::size(data) * sizeof(ContiguousType),
+ buffer_index);
+ } else {
+ static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable");
+ return WriteBuffer(&data, sizeof(T), buffer_index);
+ }
+ }
+
+ /// Helper function to get the size of the input buffer
+ [[nodiscard]] std::size_t GetReadBufferSize(std::size_t buffer_index = 0) const;
+
+ /// Helper function to get the size of the output buffer
+ [[nodiscard]] std::size_t GetWriteBufferSize(std::size_t buffer_index = 0) const;
+
+ /// Helper function to derive the number of elements able to be contained in the read buffer
+ template <typename T>
+ [[nodiscard]] std::size_t GetReadBufferNumElements(std::size_t buffer_index = 0) const {
+ return GetReadBufferSize(buffer_index) / sizeof(T);
+ }
+
+ /// Helper function to derive the number of elements able to be contained in the write buffer
+ template <typename T>
+ [[nodiscard]] std::size_t GetWriteBufferNumElements(std::size_t buffer_index = 0) const {
+ return GetWriteBufferSize(buffer_index) / sizeof(T);
+ }
+
+ /// Helper function to test whether the input buffer at buffer_index can be read
+ [[nodiscard]] bool CanReadBuffer(std::size_t buffer_index = 0) const;
+
+ /// Helper function to test whether the output buffer at buffer_index can be written
+ [[nodiscard]] bool CanWriteBuffer(std::size_t buffer_index = 0) const;
+
+ [[nodiscard]] Handle GetCopyHandle(std::size_t index) const {
+ return incoming_copy_handles.at(index);
+ }
+
+ [[nodiscard]] Handle GetMoveHandle(std::size_t index) const {
+ return incoming_move_handles.at(index);
+ }
+
+ void AddMoveObject(Kernel::KAutoObject* object) {
+ outgoing_move_objects.emplace_back(object);
+ }
+
+ void AddCopyObject(Kernel::KAutoObject* object) {
+ outgoing_copy_objects.emplace_back(object);
+ }
+
+ void AddDomainObject(SessionRequestHandlerPtr object) {
+ outgoing_domain_objects.emplace_back(std::move(object));
+ }
+
+ template <typename T>
+ std::shared_ptr<T> GetDomainHandler(std::size_t index) const {
+ return std::static_pointer_cast<T>(GetManager()->DomainHandler(index).lock());
+ }
+
+ void SetSessionRequestManager(std::weak_ptr<SessionRequestManager> manager_) {
+ manager = manager_;
+ }
+
+ [[nodiscard]] std::string Description() const;
+
+ [[nodiscard]] Kernel::KThread& GetThread() {
+ return *thread;
+ }
+
+ [[nodiscard]] std::shared_ptr<SessionRequestManager> GetManager() const {
+ return manager.lock();
+ }
+
+ bool GetIsDeferred() const {
+ return is_deferred;
+ }
+
+ void SetIsDeferred(bool is_deferred_ = true) {
+ is_deferred = is_deferred_;
+ }
+
+private:
+ friend class IPC::ResponseBuilder;
+
+ void ParseCommandBuffer(const Kernel::KHandleTable& handle_table, u32_le* src_cmdbuf,
+ bool incoming);
+
+ std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf;
+ Kernel::KServerSession* server_session{};
+ Kernel::KThread* thread;
+
+ std::vector<Handle> incoming_move_handles;
+ std::vector<Handle> incoming_copy_handles;
+
+ std::vector<Kernel::KAutoObject*> outgoing_move_objects;
+ std::vector<Kernel::KAutoObject*> outgoing_copy_objects;
+ std::vector<SessionRequestHandlerPtr> outgoing_domain_objects;
+
+ std::optional<IPC::CommandHeader> command_header;
+ std::optional<IPC::HandleDescriptorHeader> handle_descriptor_header;
+ std::optional<IPC::DataPayloadHeader> data_payload_header;
+ std::optional<IPC::DomainMessageHeader> domain_message_header;
+ std::vector<IPC::BufferDescriptorX> buffer_x_desciptors;
+ std::vector<IPC::BufferDescriptorABW> buffer_a_desciptors;
+ std::vector<IPC::BufferDescriptorABW> buffer_b_desciptors;
+ std::vector<IPC::BufferDescriptorABW> buffer_w_desciptors;
+ std::vector<IPC::BufferDescriptorC> buffer_c_desciptors;
+
+ u32_le command{};
+ u64 pid{};
+ u32 write_size{};
+ u32 data_payload_offset{};
+ u32 handles_offset{};
+ u32 domain_offset{};
+
+ std::weak_ptr<SessionRequestManager> manager{};
+ bool is_deferred{false};
+
+ Kernel::KernelCore& kernel;
+ Core::Memory::Memory& memory;
+};
+
+} // namespace Service
diff --git a/src/core/hle/service/ipc_helpers.h b/src/core/hle/service/ipc_helpers.h
new file mode 100644
index 000000000..0e222362e
--- /dev/null
+++ b/src/core/hle/service/ipc_helpers.h
@@ -0,0 +1,506 @@
+// SPDX-FileCopyrightText: 2016 Citra Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <cstring>
+#include <memory>
+#include <type_traits>
+#include <utility>
+#include "common/assert.h"
+#include "common/common_types.h"
+#include "core/hle/ipc.h"
+#include "core/hle/kernel/k_process.h"
+#include "core/hle/kernel/k_resource_limit.h"
+#include "core/hle/kernel/k_session.h"
+#include "core/hle/result.h"
+#include "core/hle/service/hle_ipc.h"
+#include "core/hle/service/server_manager.h"
+
+namespace IPC {
+
+constexpr Result ResultSessionClosed{ErrorModule::HIPC, 301};
+
+class RequestHelperBase {
+protected:
+ Service::HLERequestContext* context = nullptr;
+ u32* cmdbuf;
+ u32 index = 0;
+
+public:
+ explicit RequestHelperBase(u32* command_buffer) : cmdbuf(command_buffer) {}
+
+ explicit RequestHelperBase(Service::HLERequestContext& ctx)
+ : context(&ctx), cmdbuf(ctx.CommandBuffer()) {}
+
+ void Skip(u32 size_in_words, bool set_to_null) {
+ if (set_to_null) {
+ memset(cmdbuf + index, 0, size_in_words * sizeof(u32));
+ }
+ index += size_in_words;
+ }
+
+ /**
+ * Aligns the current position forward to a 16-byte boundary, padding with zeros.
+ */
+ void AlignWithPadding() {
+ if (index & 3) {
+ Skip(static_cast<u32>(4 - (index & 3)), true);
+ }
+ }
+
+ u32 GetCurrentOffset() const {
+ return index;
+ }
+
+ void SetCurrentOffset(u32 offset) {
+ index = offset;
+ }
+};
+
+class ResponseBuilder : public RequestHelperBase {
+public:
+ /// Flags used for customizing the behavior of ResponseBuilder
+ enum class Flags : u32 {
+ None = 0,
+ /// Uses move handles to move objects in the response, even when in a domain. This is
+ /// required when PushMoveObjects is used.
+ AlwaysMoveHandles = 1,
+ };
+
+ explicit ResponseBuilder(Service::HLERequestContext& ctx, u32 normal_params_size_,
+ u32 num_handles_to_copy_ = 0, u32 num_objects_to_move_ = 0,
+ Flags flags = Flags::None)
+ : RequestHelperBase(ctx), normal_params_size(normal_params_size_),
+ num_handles_to_copy(num_handles_to_copy_),
+ num_objects_to_move(num_objects_to_move_), kernel{ctx.kernel} {
+
+ memset(cmdbuf, 0, sizeof(u32) * IPC::COMMAND_BUFFER_LENGTH);
+
+ IPC::CommandHeader header{};
+
+ // The entire size of the raw data section in u32 units, including the 16 bytes of mandatory
+ // padding.
+ u32 raw_data_size = ctx.write_size =
+ ctx.IsTipc() ? normal_params_size - 1 : normal_params_size;
+ u32 num_handles_to_move{};
+ u32 num_domain_objects{};
+ const bool always_move_handles{
+ (static_cast<u32>(flags) & static_cast<u32>(Flags::AlwaysMoveHandles)) != 0};
+ if (!ctx.GetManager()->IsDomain() || always_move_handles) {
+ num_handles_to_move = num_objects_to_move;
+ } else {
+ num_domain_objects = num_objects_to_move;
+ }
+
+ if (ctx.GetManager()->IsDomain()) {
+ raw_data_size +=
+ static_cast<u32>(sizeof(DomainMessageHeader) / sizeof(u32) + num_domain_objects);
+ ctx.write_size += num_domain_objects;
+ }
+
+ if (ctx.IsTipc()) {
+ header.type.Assign(ctx.GetCommandType());
+ } else {
+ raw_data_size += static_cast<u32>(sizeof(IPC::DataPayloadHeader) / sizeof(u32) + 4 +
+ normal_params_size);
+ }
+
+ header.data_size.Assign(raw_data_size);
+ if (num_handles_to_copy || num_handles_to_move) {
+ header.enable_handle_descriptor.Assign(1);
+ }
+ PushRaw(header);
+
+ if (header.enable_handle_descriptor) {
+ IPC::HandleDescriptorHeader handle_descriptor_header{};
+ handle_descriptor_header.num_handles_to_copy.Assign(num_handles_to_copy_);
+ handle_descriptor_header.num_handles_to_move.Assign(num_handles_to_move);
+ PushRaw(handle_descriptor_header);
+
+ ctx.handles_offset = index;
+
+ Skip(num_handles_to_copy + num_handles_to_move, true);
+ }
+
+ if (!ctx.IsTipc()) {
+ AlignWithPadding();
+
+ if (ctx.GetManager()->IsDomain() && ctx.HasDomainMessageHeader()) {
+ IPC::DomainMessageHeader domain_header{};
+ domain_header.num_objects = num_domain_objects;
+ PushRaw(domain_header);
+ }
+
+ IPC::DataPayloadHeader data_payload_header{};
+ data_payload_header.magic = Common::MakeMagic('S', 'F', 'C', 'O');
+ PushRaw(data_payload_header);
+ }
+
+ data_payload_index = index;
+
+ ctx.data_payload_offset = index;
+ ctx.write_size += index;
+ ctx.domain_offset = static_cast<u32>(index + raw_data_size / sizeof(u32));
+ }
+
+ template <class T>
+ void PushIpcInterface(std::shared_ptr<T> iface) {
+ auto manager{context->GetManager()};
+
+ if (manager->IsDomain()) {
+ context->AddDomainObject(std::move(iface));
+ } else {
+ kernel.ApplicationProcess()->GetResourceLimit()->Reserve(
+ Kernel::LimitableResource::SessionCountMax, 1);
+
+ auto* session = Kernel::KSession::Create(kernel);
+ session->Initialize(nullptr, 0);
+ Kernel::KSession::Register(kernel, session);
+
+ auto next_manager = std::make_shared<Service::SessionRequestManager>(
+ kernel, manager->GetServerManager());
+ next_manager->SetSessionHandler(iface);
+ manager->GetServerManager().RegisterSession(&session->GetServerSession(), next_manager);
+
+ context->AddMoveObject(&session->GetClientSession());
+ }
+ }
+
+ template <class T, class... Args>
+ void PushIpcInterface(Args&&... args) {
+ PushIpcInterface<T>(std::make_shared<T>(std::forward<Args>(args)...));
+ }
+
+ void PushImpl(s8 value);
+ void PushImpl(s16 value);
+ void PushImpl(s32 value);
+ void PushImpl(s64 value);
+ void PushImpl(u8 value);
+ void PushImpl(u16 value);
+ void PushImpl(u32 value);
+ void PushImpl(u64 value);
+ void PushImpl(float value);
+ void PushImpl(double value);
+ void PushImpl(bool value);
+ void PushImpl(Result value);
+
+ template <typename T>
+ void Push(T value) {
+ return PushImpl(value);
+ }
+
+ template <typename First, typename... Other>
+ void Push(const First& first_value, const Other&... other_values);
+
+ /**
+ * Helper function for pushing strongly-typed enumeration values.
+ *
+ * @tparam Enum The enumeration type to be pushed
+ *
+ * @param value The value to push.
+ *
+ * @note The underlying size of the enumeration type is the size of the
+ * data that gets pushed. e.g. "enum class SomeEnum : u16" will
+ * push a u16-sized amount of data.
+ */
+ template <typename Enum>
+ void PushEnum(Enum value) {
+ static_assert(std::is_enum_v<Enum>, "T must be an enum type within a PushEnum call.");
+ static_assert(!std::is_convertible_v<Enum, int>,
+ "enum type in PushEnum must be a strongly typed enum.");
+ Push(static_cast<std::underlying_type_t<Enum>>(value));
+ }
+
+ /**
+ * @brief Copies the content of the given trivially copyable class to the buffer as a normal
+ * param
+ * @note: The input class must be correctly packed/padded to fit hardware layout.
+ */
+ template <typename T>
+ void PushRaw(const T& value);
+
+ template <typename... O>
+ void PushMoveObjects(O*... pointers);
+
+ template <typename... O>
+ void PushMoveObjects(O&... pointers);
+
+ template <typename... O>
+ void PushCopyObjects(O*... pointers);
+
+ template <typename... O>
+ void PushCopyObjects(O&... pointers);
+
+private:
+ u32 normal_params_size{};
+ u32 num_handles_to_copy{};
+ u32 num_objects_to_move{}; ///< Domain objects or move handles, context dependent
+ u32 data_payload_index{};
+ Kernel::KernelCore& kernel;
+};
+
+/// Push ///
+
+inline void ResponseBuilder::PushImpl(s32 value) {
+ cmdbuf[index++] = value;
+}
+
+inline void ResponseBuilder::PushImpl(u32 value) {
+ cmdbuf[index++] = value;
+}
+
+template <typename T>
+void ResponseBuilder::PushRaw(const T& value) {
+ static_assert(std::is_trivially_copyable_v<T>,
+ "It's undefined behavior to use memcpy with non-trivially copyable objects");
+ std::memcpy(cmdbuf + index, &value, sizeof(T));
+ index += (sizeof(T) + 3) / 4; // round up to word length
+}
+
+inline void ResponseBuilder::PushImpl(Result value) {
+ // Result codes are actually 64-bit in the IPC buffer, but only the high part is discarded.
+ Push(value.raw);
+ Push<u32>(0);
+}
+
+inline void ResponseBuilder::PushImpl(s8 value) {
+ PushRaw(value);
+}
+
+inline void ResponseBuilder::PushImpl(s16 value) {
+ PushRaw(value);
+}
+
+inline void ResponseBuilder::PushImpl(s64 value) {
+ PushImpl(static_cast<u32>(value));
+ PushImpl(static_cast<u32>(value >> 32));
+}
+
+inline void ResponseBuilder::PushImpl(u8 value) {
+ PushRaw(value);
+}
+
+inline void ResponseBuilder::PushImpl(u16 value) {
+ PushRaw(value);
+}
+
+inline void ResponseBuilder::PushImpl(u64 value) {
+ PushImpl(static_cast<u32>(value));
+ PushImpl(static_cast<u32>(value >> 32));
+}
+
+inline void ResponseBuilder::PushImpl(float value) {
+ u32 integral;
+ std::memcpy(&integral, &value, sizeof(u32));
+ PushImpl(integral);
+}
+
+inline void ResponseBuilder::PushImpl(double value) {
+ u64 integral;
+ std::memcpy(&integral, &value, sizeof(u64));
+ PushImpl(integral);
+}
+
+inline void ResponseBuilder::PushImpl(bool value) {
+ PushImpl(static_cast<u8>(value));
+}
+
+template <typename First, typename... Other>
+void ResponseBuilder::Push(const First& first_value, const Other&... other_values) {
+ Push(first_value);
+ Push(other_values...);
+}
+
+template <typename... O>
+inline void ResponseBuilder::PushCopyObjects(O*... pointers) {
+ auto objects = {pointers...};
+ for (auto& object : objects) {
+ context->AddCopyObject(object);
+ }
+}
+
+template <typename... O>
+inline void ResponseBuilder::PushCopyObjects(O&... pointers) {
+ auto objects = {&pointers...};
+ for (auto& object : objects) {
+ context->AddCopyObject(object);
+ }
+}
+
+template <typename... O>
+inline void ResponseBuilder::PushMoveObjects(O*... pointers) {
+ auto objects = {pointers...};
+ for (auto& object : objects) {
+ context->AddMoveObject(object);
+ }
+}
+
+template <typename... O>
+inline void ResponseBuilder::PushMoveObjects(O&... pointers) {
+ auto objects = {&pointers...};
+ for (auto& object : objects) {
+ context->AddMoveObject(object);
+ }
+}
+
+class RequestParser : public RequestHelperBase {
+public:
+ explicit RequestParser(u32* command_buffer) : RequestHelperBase(command_buffer) {}
+
+ explicit RequestParser(Service::HLERequestContext& ctx) : RequestHelperBase(ctx) {
+ // TIPC does not have data payload offset
+ if (!ctx.IsTipc()) {
+ ASSERT_MSG(ctx.GetDataPayloadOffset(), "context is incomplete");
+ Skip(ctx.GetDataPayloadOffset(), false);
+ }
+
+ // Skip the u64 command id, it's already stored in the context
+ static constexpr u32 CommandIdSize = 2;
+ Skip(CommandIdSize, false);
+ }
+
+ template <typename T>
+ T Pop();
+
+ template <typename T>
+ void Pop(T& value);
+
+ template <typename First, typename... Other>
+ void Pop(First& first_value, Other&... other_values);
+
+ template <typename T>
+ T PopEnum() {
+ static_assert(std::is_enum_v<T>, "T must be an enum type within a PopEnum call.");
+ static_assert(!std::is_convertible_v<T, int>,
+ "enum type in PopEnum must be a strongly typed enum.");
+ return static_cast<T>(Pop<std::underlying_type_t<T>>());
+ }
+
+ /**
+ * @brief Reads the next normal parameters as a struct, by copying it
+ * @note: The output class must be correctly packed/padded to fit hardware layout.
+ */
+ template <typename T>
+ void PopRaw(T& value);
+
+ /**
+ * @brief Reads the next normal parameters as a struct, by copying it into a new value
+ * @note: The output class must be correctly packed/padded to fit hardware layout.
+ */
+ template <typename T>
+ T PopRaw();
+
+ template <class T>
+ std::weak_ptr<T> PopIpcInterface() {
+ ASSERT(context->GetManager()->IsDomain());
+ ASSERT(context->GetDomainMessageHeader().input_object_count > 0);
+ return context->GetDomainHandler<T>(Pop<u32>() - 1);
+ }
+};
+
+/// Pop ///
+
+template <>
+inline u32 RequestParser::Pop() {
+ return cmdbuf[index++];
+}
+
+template <>
+inline s32 RequestParser::Pop() {
+ return static_cast<s32>(Pop<u32>());
+}
+
+// Ignore the -Wclass-memaccess warning on memcpy for non-trivially default constructible objects.
+#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wclass-memaccess"
+#endif
+template <typename T>
+void RequestParser::PopRaw(T& value) {
+ static_assert(std::is_trivially_copyable_v<T>,
+ "It's undefined behavior to use memcpy with non-trivially copyable objects");
+ std::memcpy(&value, cmdbuf + index, sizeof(T));
+ index += (sizeof(T) + 3) / 4; // round up to word length
+}
+#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
+#pragma GCC diagnostic pop
+#endif
+
+template <typename T>
+T RequestParser::PopRaw() {
+ T value;
+ PopRaw(value);
+ return value;
+}
+
+template <>
+inline u8 RequestParser::Pop() {
+ return PopRaw<u8>();
+}
+
+template <>
+inline u16 RequestParser::Pop() {
+ return PopRaw<u16>();
+}
+
+template <>
+inline u64 RequestParser::Pop() {
+ const u64 lsw = Pop<u32>();
+ const u64 msw = Pop<u32>();
+ return msw << 32 | lsw;
+}
+
+template <>
+inline s8 RequestParser::Pop() {
+ return static_cast<s8>(Pop<u8>());
+}
+
+template <>
+inline s16 RequestParser::Pop() {
+ return static_cast<s16>(Pop<u16>());
+}
+
+template <>
+inline s64 RequestParser::Pop() {
+ return static_cast<s64>(Pop<u64>());
+}
+
+template <>
+inline float RequestParser::Pop() {
+ const u32 value = Pop<u32>();
+ float real;
+ std::memcpy(&real, &value, sizeof(real));
+ return real;
+}
+
+template <>
+inline double RequestParser::Pop() {
+ const u64 value = Pop<u64>();
+ double real;
+ std::memcpy(&real, &value, sizeof(real));
+ return real;
+}
+
+template <>
+inline bool RequestParser::Pop() {
+ return Pop<u8>() != 0;
+}
+
+template <>
+inline Result RequestParser::Pop() {
+ return Result{Pop<u32>()};
+}
+
+template <typename T>
+void RequestParser::Pop(T& value) {
+ value = Pop<T>();
+}
+
+template <typename First, typename... Other>
+void RequestParser::Pop(First& first_value, Other&... other_values) {
+ first_value = Pop<First>();
+ Pop(other_values...);
+}
+
+} // namespace IPC
diff --git a/src/core/hle/service/jit/jit.cpp b/src/core/hle/service/jit/jit.cpp
index 8f2920c51..be996870f 100644
--- a/src/core/hle/service/jit/jit.cpp
+++ b/src/core/hle/service/jit/jit.cpp
@@ -3,12 +3,13 @@
#include "core/arm/symbols.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_code_memory.h"
#include "core/hle/kernel/k_transfer_memory.h"
#include "core/hle/result.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/jit/jit.h"
#include "core/hle/service/jit/jit_context.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/memory.h"
@@ -23,8 +24,8 @@ class IJitEnvironment final : public ServiceFramework<IJitEnvironment> {
public:
explicit IJitEnvironment(Core::System& system_, Kernel::KProcess& process_, CodeRange user_rx,
CodeRange user_ro)
- : ServiceFramework{system_, "IJitEnvironment", ServiceThreadType::CreateNew},
- process{&process_}, context{system_.Memory()} {
+ : ServiceFramework{system_, "IJitEnvironment"}, process{&process_},
+ context{system_.ApplicationMemory()} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &IJitEnvironment::GenerateCode, "GenerateCode"},
@@ -43,7 +44,7 @@ public:
configuration.sys_rx_memory = user_rx;
}
- void GenerateCode(Kernel::HLERequestContext& ctx) {
+ void GenerateCode(HLERequestContext& ctx) {
LOG_DEBUG(Service_JIT, "called");
struct InputParameters {
@@ -62,7 +63,7 @@ public:
const auto parameters{rp.PopRaw<InputParameters>()};
// Optional input/output buffers
- std::vector<u8> input_buffer{ctx.CanReadBuffer() ? ctx.ReadBuffer() : std::vector<u8>()};
+ const auto input_buffer{ctx.CanReadBuffer() ? ctx.ReadBuffer() : std::span<const u8>()};
std::vector<u8> output_buffer(ctx.CanWriteBuffer() ? ctx.GetWriteBufferSize() : 0);
// Function call prototype:
@@ -125,14 +126,14 @@ public:
}
};
- void Control(Kernel::HLERequestContext& ctx) {
+ void Control(HLERequestContext& ctx) {
LOG_DEBUG(Service_JIT, "called");
IPC::RequestParser rp{ctx};
const auto command{rp.PopRaw<u64>()};
// Optional input/output buffers
- std::vector<u8> input_buffer{ctx.CanReadBuffer() ? ctx.ReadBuffer() : std::vector<u8>()};
+ const auto input_buffer{ctx.CanReadBuffer() ? ctx.ReadBuffer() : std::span<const u8>()};
std::vector<u8> output_buffer(ctx.CanWriteBuffer() ? ctx.GetWriteBufferSize() : 0);
// Function call prototype:
@@ -170,7 +171,7 @@ public:
}
}
- void LoadPlugin(Kernel::HLERequestContext& ctx) {
+ void LoadPlugin(HLERequestContext& ctx) {
LOG_DEBUG(Service_JIT, "called");
IPC::RequestParser rp{ctx};
@@ -194,7 +195,7 @@ public:
}
// Set up the configuration with the required TransferMemory address
- configuration.transfer_memory.offset = tmem->GetSourceAddress();
+ configuration.transfer_memory.offset = GetInteger(tmem->GetSourceAddress());
configuration.transfer_memory.size = tmem_size;
// Gather up all the callbacks from the loaded plugin
@@ -276,7 +277,7 @@ public:
rb.Push(ResultSuccess);
}
- void GetCodeAddress(Kernel::HLERequestContext& ctx) {
+ void GetCodeAddress(HLERequestContext& ctx) {
LOG_DEBUG(Service_JIT, "called");
IPC::ResponseBuilder rb{ctx, 6};
@@ -332,7 +333,7 @@ public:
RegisterHandlers(functions);
}
- void CreateJitEnvironment(Kernel::HLERequestContext& ctx) {
+ void CreateJitEnvironment(HLERequestContext& ctx) {
LOG_DEBUG(Service_JIT, "called");
struct Parameters {
@@ -353,9 +354,9 @@ public:
return;
}
- // Fetch using the handle table for the current process here,
+ // Fetch using the handle table for the application process here,
// since we are not multiprocess yet.
- const auto& handle_table{system.CurrentProcess()->GetHandleTable()};
+ const auto& handle_table{system.ApplicationProcess()->GetHandleTable()};
auto process{handle_table.GetObject<Kernel::KProcess>(process_handle)};
if (process.IsNull()) {
@@ -382,12 +383,12 @@ public:
}
const CodeRange user_rx{
- .offset = rx_mem->GetSourceAddress(),
+ .offset = GetInteger(rx_mem->GetSourceAddress()),
.size = parameters.rx_size,
};
const CodeRange user_ro{
- .offset = ro_mem->GetSourceAddress(),
+ .offset = GetInteger(ro_mem->GetSourceAddress()),
.size = parameters.ro_size,
};
@@ -397,8 +398,11 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<JITU>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("jit:u", std::make_shared<JITU>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::JIT
diff --git a/src/core/hle/service/jit/jit.h b/src/core/hle/service/jit/jit.h
index af0f5b4f3..19014c75a 100644
--- a/src/core/hle/service/jit/jit.h
+++ b/src/core/hle/service/jit/jit.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::JIT {
-/// Registers all JIT services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::JIT
diff --git a/src/core/hle/service/kernel_helpers.cpp b/src/core/hle/service/kernel_helpers.cpp
index 42991928e..6a313a03b 100644
--- a/src/core/hle/service/kernel_helpers.cpp
+++ b/src/core/hle/service/kernel_helpers.cpp
@@ -15,17 +15,27 @@ namespace Service::KernelHelpers {
ServiceContext::ServiceContext(Core::System& system_, std::string name_)
: kernel(system_.Kernel()) {
+ if (process = Kernel::GetCurrentProcessPointer(kernel); process != nullptr) {
+ return;
+ }
+
// Create the process.
process = Kernel::KProcess::Create(kernel);
ASSERT(Kernel::KProcess::Initialize(process, system_, std::move(name_),
Kernel::KProcess::ProcessType::KernelInternal,
kernel.GetSystemResourceLimit())
.IsSuccess());
+
+ // Register the process.
+ Kernel::KProcess::Register(kernel, process);
+ process_created = true;
}
ServiceContext::~ServiceContext() {
- process->Close();
- process = nullptr;
+ if (process_created) {
+ process->Close();
+ process = nullptr;
+ }
}
Kernel::KEvent* ServiceContext::CreateEvent(std::string&& name) {
diff --git a/src/core/hle/service/kernel_helpers.h b/src/core/hle/service/kernel_helpers.h
index 6415838e5..eca9aefb5 100644
--- a/src/core/hle/service/kernel_helpers.h
+++ b/src/core/hle/service/kernel_helpers.h
@@ -29,6 +29,7 @@ public:
private:
Kernel::KernelCore& kernel;
Kernel::KProcess* process{};
+ bool process_created{false};
};
} // namespace Service::KernelHelpers
diff --git a/src/core/hle/service/lbl/lbl.cpp b/src/core/hle/service/lbl/lbl.cpp
index c8415e0bf..98a79365d 100644
--- a/src/core/hle/service/lbl/lbl.cpp
+++ b/src/core/hle/service/lbl/lbl.cpp
@@ -5,8 +5,9 @@
#include <memory>
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/lbl/lbl.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/hle/service/sm/sm.h"
@@ -59,7 +60,7 @@ private:
On = 1,
};
- void SetCurrentBrightnessSetting(Kernel::HLERequestContext& ctx) {
+ void SetCurrentBrightnessSetting(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto brightness = rp.Pop<float>();
@@ -77,7 +78,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetCurrentBrightnessSetting(Kernel::HLERequestContext& ctx) {
+ void GetCurrentBrightnessSetting(HLERequestContext& ctx) {
auto brightness = current_brightness;
if (!std::isfinite(brightness)) {
LOG_ERROR(Service_LBL, "Brightness is infinite!");
@@ -91,7 +92,7 @@ private:
rb.Push(brightness);
}
- void SwitchBacklightOn(Kernel::HLERequestContext& ctx) {
+ void SwitchBacklightOn(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto fade_time = rp.Pop<u64_le>();
LOG_WARNING(Service_LBL, "(STUBBED) called, fade_time={}", fade_time);
@@ -102,7 +103,7 @@ private:
rb.Push(ResultSuccess);
}
- void SwitchBacklightOff(Kernel::HLERequestContext& ctx) {
+ void SwitchBacklightOff(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto fade_time = rp.Pop<u64_le>();
LOG_WARNING(Service_LBL, "(STUBBED) called, fade_time={}", fade_time);
@@ -113,7 +114,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetBacklightSwitchStatus(Kernel::HLERequestContext& ctx) {
+ void GetBacklightSwitchStatus(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -122,7 +123,7 @@ private:
: BacklightSwitchStatus::Off);
}
- void EnableDimming(Kernel::HLERequestContext& ctx) {
+ void EnableDimming(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
dimming = true;
@@ -131,7 +132,7 @@ private:
rb.Push(ResultSuccess);
}
- void DisableDimming(Kernel::HLERequestContext& ctx) {
+ void DisableDimming(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
dimming = false;
@@ -140,7 +141,7 @@ private:
rb.Push(ResultSuccess);
}
- void IsDimmingEnabled(Kernel::HLERequestContext& ctx) {
+ void IsDimmingEnabled(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -148,7 +149,7 @@ private:
rb.Push(dimming);
}
- void EnableAutoBrightnessControl(Kernel::HLERequestContext& ctx) {
+ void EnableAutoBrightnessControl(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
auto_brightness = true;
update_instantly = true;
@@ -157,7 +158,7 @@ private:
rb.Push(ResultSuccess);
}
- void DisableAutoBrightnessControl(Kernel::HLERequestContext& ctx) {
+ void DisableAutoBrightnessControl(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
auto_brightness = false;
@@ -165,7 +166,7 @@ private:
rb.Push(ResultSuccess);
}
- void IsAutoBrightnessControlEnabled(Kernel::HLERequestContext& ctx) {
+ void IsAutoBrightnessControlEnabled(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -173,7 +174,7 @@ private:
rb.Push(auto_brightness);
}
- void SetAmbientLightSensorValue(Kernel::HLERequestContext& ctx) {
+ void SetAmbientLightSensorValue(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto light_value = rp.Pop<float>();
@@ -185,7 +186,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetAmbientLightSensorValue(Kernel::HLERequestContext& ctx) {
+ void GetAmbientLightSensorValue(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -193,7 +194,7 @@ private:
rb.Push(ambient_light_value);
}
- void SetBrightnessReflectionDelayLevel(Kernel::HLERequestContext& ctx) {
+ void SetBrightnessReflectionDelayLevel(HLERequestContext& ctx) {
// This is Intentional, this function does absolutely nothing
LOG_DEBUG(Service_LBL, "called");
@@ -201,7 +202,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetBrightnessReflectionDelayLevel(Kernel::HLERequestContext& ctx) {
+ void GetBrightnessReflectionDelayLevel(HLERequestContext& ctx) {
// This is intentional, the function is hard coded to return 0.0f on hardware
LOG_DEBUG(Service_LBL, "called");
@@ -210,7 +211,7 @@ private:
rb.Push(0.0f);
}
- void SetCurrentBrightnessMapping(Kernel::HLERequestContext& ctx) {
+ void SetCurrentBrightnessMapping(HLERequestContext& ctx) {
// This is Intentional, this function does absolutely nothing
LOG_DEBUG(Service_LBL, "called");
@@ -218,7 +219,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetCurrentBrightnessMapping(Kernel::HLERequestContext& ctx) {
+ void GetCurrentBrightnessMapping(HLERequestContext& ctx) {
// This is Intentional, this function does absolutely nothing
LOG_DEBUG(Service_LBL, "called");
@@ -227,7 +228,7 @@ private:
// This function is suppose to return something but it seems like it doesn't
}
- void SetCurrentAmbientLightSensorMapping(Kernel::HLERequestContext& ctx) {
+ void SetCurrentAmbientLightSensorMapping(HLERequestContext& ctx) {
// This is Intentional, this function does absolutely nothing
LOG_DEBUG(Service_LBL, "called");
@@ -235,7 +236,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetCurrentAmbientLightSensorMapping(Kernel::HLERequestContext& ctx) {
+ void GetCurrentAmbientLightSensorMapping(HLERequestContext& ctx) {
// This is Intentional, this function does absolutely nothing
LOG_DEBUG(Service_LBL, "called");
@@ -244,7 +245,7 @@ private:
// This function is suppose to return something but it seems like it doesn't
}
- void IsAmbientLightSensorAvailable(Kernel::HLERequestContext& ctx) {
+ void IsAmbientLightSensorAvailable(HLERequestContext& ctx) {
LOG_WARNING(Service_LBL, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
@@ -252,7 +253,7 @@ private:
rb.Push(true);
}
- void SetCurrentBrightnessSettingForVrMode(Kernel::HLERequestContext& ctx) {
+ void SetCurrentBrightnessSettingForVrMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto brightness = rp.Pop<float>();
@@ -269,7 +270,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetCurrentBrightnessSettingForVrMode(Kernel::HLERequestContext& ctx) {
+ void GetCurrentBrightnessSettingForVrMode(HLERequestContext& ctx) {
auto brightness = current_vr_brightness;
if (!std::isfinite(brightness)) {
LOG_ERROR(Service_LBL, "Brightness is infinite!");
@@ -283,7 +284,7 @@ private:
rb.Push(brightness);
}
- void EnableVrMode(Kernel::HLERequestContext& ctx) {
+ void EnableVrMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -292,7 +293,7 @@ private:
vr_mode_enabled = true;
}
- void DisableVrMode(Kernel::HLERequestContext& ctx) {
+ void DisableVrMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -301,7 +302,7 @@ private:
vr_mode_enabled = false;
}
- void IsVrModeEnabled(Kernel::HLERequestContext& ctx) {
+ void IsVrModeEnabled(HLERequestContext& ctx) {
LOG_DEBUG(Service_LBL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -319,8 +320,11 @@ private:
bool auto_brightness = false; // TODO(ogniK): Move to system settings
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<LBL>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("lbl", std::make_shared<LBL>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::LBL
diff --git a/src/core/hle/service/lbl/lbl.h b/src/core/hle/service/lbl/lbl.h
index 6484105c2..e47759c01 100644
--- a/src/core/hle/service/lbl/lbl.h
+++ b/src/core/hle/service/lbl/lbl.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::LBL {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::LBL
diff --git a/src/core/hle/service/ldn/ldn.cpp b/src/core/hle/service/ldn/ldn.cpp
index c49c61cff..9d149a7cd 100644
--- a/src/core/hle/service/ldn/ldn.cpp
+++ b/src/core/hle/service/ldn/ldn.cpp
@@ -8,6 +8,7 @@
#include "core/hle/service/ldn/ldn.h"
#include "core/hle/service/ldn/ldn_results.h"
#include "core/hle/service/ldn/ldn_types.h"
+#include "core/hle/service/server_manager.h"
#include "core/internal_network/network.h"
#include "core/internal_network/network_interface.h"
#include "network/network.h"
@@ -49,7 +50,7 @@ public:
RegisterHandlers(functions);
}
- void CreateMonitorService(Kernel::HLERequestContext& ctx) {
+ void CreateMonitorService(HLERequestContext& ctx) {
LOG_DEBUG(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -106,7 +107,7 @@ class IUserLocalCommunicationService final
: public ServiceFramework<IUserLocalCommunicationService> {
public:
explicit IUserLocalCommunicationService(Core::System& system_)
- : ServiceFramework{system_, "IUserLocalCommunicationService", ServiceThreadType::CreateNew},
+ : ServiceFramework{system_, "IUserLocalCommunicationService"},
service_context{system, "IUserLocalCommunicationService"},
room_network{system_.GetRoomNetwork()}, lan_discovery{room_network} {
// clang-format off
@@ -168,7 +169,7 @@ public:
state_change_event->Signal();
}
- void GetState(Kernel::HLERequestContext& ctx) {
+ void GetState(HLERequestContext& ctx) {
State state = State::Error;
if (is_initialized) {
@@ -180,7 +181,7 @@ public:
rb.PushEnum(state);
}
- void GetNetworkInfo(Kernel::HLERequestContext& ctx) {
+ void GetNetworkInfo(HLERequestContext& ctx) {
const auto write_buffer_size = ctx.GetWriteBufferSize();
if (write_buffer_size != sizeof(NetworkInfo)) {
@@ -204,7 +205,7 @@ public:
rb.Push(ResultSuccess);
}
- void GetIpv4Address(Kernel::HLERequestContext& ctx) {
+ void GetIpv4Address(HLERequestContext& ctx) {
const auto network_interface = Network::GetSelectedNetworkInterface();
if (!network_interface) {
@@ -233,13 +234,13 @@ public:
rb.PushRaw(subnet_mask);
}
- void GetDisconnectReason(Kernel::HLERequestContext& ctx) {
+ void GetDisconnectReason(HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.PushEnum(lan_discovery.GetDisconnectReason());
}
- void GetSecurityParameter(Kernel::HLERequestContext& ctx) {
+ void GetSecurityParameter(HLERequestContext& ctx) {
SecurityParameter security_parameter{};
NetworkInfo info{};
const Result rc = lan_discovery.GetNetworkInfo(info);
@@ -260,7 +261,7 @@ public:
rb.PushRaw<SecurityParameter>(security_parameter);
}
- void GetNetworkConfig(Kernel::HLERequestContext& ctx) {
+ void GetNetworkConfig(HLERequestContext& ctx) {
NetworkConfig config{};
NetworkInfo info{};
const Result rc = lan_discovery.GetNetworkInfo(info);
@@ -282,7 +283,7 @@ public:
rb.PushRaw<NetworkConfig>(config);
}
- void AttachStateChangeEvent(Kernel::HLERequestContext& ctx) {
+ void AttachStateChangeEvent(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -290,7 +291,7 @@ public:
rb.PushCopyObjects(state_change_event->GetReadableEvent());
}
- void GetNetworkInfoLatestUpdate(Kernel::HLERequestContext& ctx) {
+ void GetNetworkInfoLatestUpdate(HLERequestContext& ctx) {
const std::size_t network_buffer_size = ctx.GetWriteBufferSize(0);
const std::size_t node_buffer_count = ctx.GetWriteBufferNumElements<NodeLatestUpdate>(1);
@@ -320,15 +321,15 @@ public:
rb.Push(ResultSuccess);
}
- void Scan(Kernel::HLERequestContext& ctx) {
+ void Scan(HLERequestContext& ctx) {
ScanImpl(ctx);
}
- void ScanPrivate(Kernel::HLERequestContext& ctx) {
+ void ScanPrivate(HLERequestContext& ctx) {
ScanImpl(ctx, true);
}
- void ScanImpl(Kernel::HLERequestContext& ctx, bool is_private = false) {
+ void ScanImpl(HLERequestContext& ctx, bool is_private = false) {
IPC::RequestParser rp{ctx};
const auto channel{rp.PopEnum<WifiChannel>()};
const auto scan_filter{rp.PopRaw<ScanFilter>()};
@@ -357,40 +358,40 @@ public:
rb.Push<u32>(count);
}
- void SetWirelessControllerRestriction(Kernel::HLERequestContext& ctx) {
+ void SetWirelessControllerRestriction(HLERequestContext& ctx) {
LOG_WARNING(Service_LDN, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void OpenAccessPoint(Kernel::HLERequestContext& ctx) {
+ void OpenAccessPoint(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(lan_discovery.OpenAccessPoint());
}
- void CloseAccessPoint(Kernel::HLERequestContext& ctx) {
+ void CloseAccessPoint(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(lan_discovery.CloseAccessPoint());
}
- void CreateNetwork(Kernel::HLERequestContext& ctx) {
+ void CreateNetwork(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
CreateNetworkImpl(ctx);
}
- void CreateNetworkPrivate(Kernel::HLERequestContext& ctx) {
+ void CreateNetworkPrivate(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
CreateNetworkImpl(ctx, true);
}
- void CreateNetworkImpl(Kernel::HLERequestContext& ctx, bool is_private = false) {
+ void CreateNetworkImpl(HLERequestContext& ctx, bool is_private = false) {
IPC::RequestParser rp{ctx};
const auto security_config{rp.PopRaw<SecurityConfig>()};
@@ -404,49 +405,49 @@ public:
rb.Push(lan_discovery.CreateNetwork(security_config, user_config, network_Config));
}
- void DestroyNetwork(Kernel::HLERequestContext& ctx) {
+ void DestroyNetwork(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(lan_discovery.DestroyNetwork());
}
- void SetAdvertiseData(Kernel::HLERequestContext& ctx) {
- std::vector<u8> read_buffer = ctx.ReadBuffer();
+ void SetAdvertiseData(HLERequestContext& ctx) {
+ const auto read_buffer = ctx.ReadBuffer();
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(lan_discovery.SetAdvertiseData(read_buffer));
}
- void SetStationAcceptPolicy(Kernel::HLERequestContext& ctx) {
+ void SetStationAcceptPolicy(HLERequestContext& ctx) {
LOG_WARNING(Service_LDN, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void AddAcceptFilterEntry(Kernel::HLERequestContext& ctx) {
+ void AddAcceptFilterEntry(HLERequestContext& ctx) {
LOG_WARNING(Service_LDN, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void OpenStation(Kernel::HLERequestContext& ctx) {
+ void OpenStation(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(lan_discovery.OpenStation());
}
- void CloseStation(Kernel::HLERequestContext& ctx) {
+ void CloseStation(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(lan_discovery.CloseStation());
}
- void Connect(Kernel::HLERequestContext& ctx) {
+ void Connect(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
SecurityConfig security_config;
@@ -464,7 +465,7 @@ public:
parameters.security_config.passphrase_size,
parameters.security_config.security_mode, parameters.local_communication_version);
- const std::vector<u8> read_buffer = ctx.ReadBuffer();
+ const auto read_buffer = ctx.ReadBuffer();
if (read_buffer.size() != sizeof(NetworkInfo)) {
LOG_ERROR(Frontend, "NetworkInfo doesn't match read_buffer size!");
IPC::ResponseBuilder rb{ctx, 2};
@@ -480,14 +481,14 @@ public:
static_cast<u16>(parameters.local_communication_version)));
}
- void Disconnect(Kernel::HLERequestContext& ctx) {
+ void Disconnect(HLERequestContext& ctx) {
LOG_INFO(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(lan_discovery.Disconnect());
}
- void Initialize(Kernel::HLERequestContext& ctx) {
+ void Initialize(HLERequestContext& ctx) {
const auto rc = InitializeImpl(ctx);
if (rc.IsError()) {
LOG_ERROR(Service_LDN, "Network isn't initialized, rc={}", rc.raw);
@@ -497,7 +498,7 @@ public:
rb.Push(rc);
}
- void Finalize(Kernel::HLERequestContext& ctx) {
+ void Finalize(HLERequestContext& ctx) {
if (auto room_member = room_network.GetRoomMember().lock()) {
room_member->Unbind(ldn_packet_received);
}
@@ -508,7 +509,7 @@ public:
rb.Push(lan_discovery.Finalize());
}
- void Initialize2(Kernel::HLERequestContext& ctx) {
+ void Initialize2(HLERequestContext& ctx) {
const auto rc = InitializeImpl(ctx);
if (rc.IsError()) {
LOG_ERROR(Service_LDN, "Network isn't initialized, rc={}", rc.raw);
@@ -518,7 +519,7 @@ public:
rb.Push(rc);
}
- Result InitializeImpl(Kernel::HLERequestContext& ctx) {
+ Result InitializeImpl(HLERequestContext& ctx) {
const auto network_interface = Network::GetSelectedNetworkInterface();
if (!network_interface) {
LOG_ERROR(Service_LDN, "No network interface is set");
@@ -561,7 +562,7 @@ public:
RegisterHandlers(functions);
}
- void CreateSystemLocalCommunicationService(Kernel::HLERequestContext& ctx) {
+ void CreateSystemLocalCommunicationService(HLERequestContext& ctx) {
LOG_DEBUG(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -582,7 +583,7 @@ public:
RegisterHandlers(functions);
}
- void CreateUserLocalCommunicationService(Kernel::HLERequestContext& ctx) {
+ void CreateUserLocalCommunicationService(HLERequestContext& ctx) {
LOG_DEBUG(Service_LDN, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -646,7 +647,7 @@ public:
RegisterHandlers(functions);
}
- void Initialize(Kernel::HLERequestContext& ctx) {
+ void Initialize(HLERequestContext& ctx) {
LOG_WARNING(Service_LDN, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -667,7 +668,7 @@ public:
RegisterHandlers(functions);
}
- void CreateNetworkervice(Kernel::HLERequestContext& ctx) {
+ void CreateNetworkervice(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 reserved_input = rp.Pop<u64>();
const u32 input = rp.Pop<u32>();
@@ -680,7 +681,7 @@ public:
rb.PushIpcInterface<INetworkService>(system);
}
- void CreateMonitorService(Kernel::HLERequestContext& ctx) {
+ void CreateMonitorService(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 reserved_input = rp.Pop<u64>();
@@ -705,7 +706,7 @@ public:
RegisterHandlers(functions);
}
- void CreateNetworkervice(Kernel::HLERequestContext& ctx) {
+ void CreateNetworkervice(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 reserved_input = rp.Pop<u64>();
const u32 input = rp.Pop<u32>();
@@ -718,7 +719,7 @@ public:
rb.PushIpcInterface<INetworkService>(system);
}
- void CreateMonitorService(Kernel::HLERequestContext& ctx) {
+ void CreateMonitorService(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 reserved_input = rp.Pop<u64>();
@@ -730,12 +731,15 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<LDNM>(system)->InstallAsService(sm);
- std::make_shared<LDNS>(system)->InstallAsService(sm);
- std::make_shared<LDNU>(system)->InstallAsService(sm);
- std::make_shared<LP2PAPP>(system)->InstallAsService(sm);
- std::make_shared<LP2PSYS>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("ldn:m", std::make_shared<LDNM>(system));
+ server_manager->RegisterNamedService("ldn:s", std::make_shared<LDNS>(system));
+ server_manager->RegisterNamedService("ldn:u", std::make_shared<LDNU>(system));
+ server_manager->RegisterNamedService("lp2p:app", std::make_shared<LP2PAPP>(system));
+ server_manager->RegisterNamedService("lp2p:sys", std::make_shared<LP2PSYS>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::LDN
diff --git a/src/core/hle/service/ldn/ldn.h b/src/core/hle/service/ldn/ldn.h
index 6afe2ea6f..f4a319168 100644
--- a/src/core/hle/service/ldn/ldn.h
+++ b/src/core/hle/service/ldn/ldn.h
@@ -3,9 +3,9 @@
#pragma once
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/result.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/sm/sm.h"
@@ -13,13 +13,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::LDN {
-/// Registers all LDN services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::LDN
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp
index 652441bc2..c42489ff9 100644
--- a/src/core/hle/service/ldr/ldr.cpp
+++ b/src/core/hle/service/ldr/ldr.cpp
@@ -9,11 +9,12 @@
#include "common/hex_util.h"
#include "common/scope_exit.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_page_table.h"
#include "core/hle/kernel/svc_results.h"
#include "core/hle/kernel/svc_types.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ldr/ldr.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/loader/nro.h"
#include "core/memory.h"
@@ -159,8 +160,7 @@ public:
class RelocatableObject final : public ServiceFramework<RelocatableObject> {
public:
- explicit RelocatableObject(Core::System& system_)
- : ServiceFramework{system_, "ldr:ro", ServiceThreadType::CreateNew} {
+ explicit RelocatableObject(Core::System& system_) : ServiceFramework{system_, "ldr:ro"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &RelocatableObject::LoadModule, "LoadModule"},
@@ -175,7 +175,7 @@ public:
RegisterHandlers(functions);
}
- void RegisterModuleInfo(Kernel::HLERequestContext& ctx) {
+ void RegisterModuleInfo(HLERequestContext& ctx) {
struct Parameters {
u64_le process_id;
u64_le nrr_address;
@@ -225,7 +225,7 @@ public:
// Read NRR data from memory
std::vector<u8> nrr_data(nrr_size);
- system.Memory().ReadBlock(nrr_address, nrr_data.data(), nrr_size);
+ system.ApplicationMemory().ReadBlock(nrr_address, nrr_data.data(), nrr_size);
NRRHeader header;
std::memcpy(&header, nrr_data.data(), sizeof(NRRHeader));
@@ -246,7 +246,7 @@ public:
return;
}
- if (system.GetCurrentProcessProgramID() != header.application_id) {
+ if (system.GetApplicationProcessProgramID() != header.application_id) {
LOG_ERROR(Service_LDR,
"Attempting to load NRR with title ID other than current process. (actual "
"{:016X})!",
@@ -272,7 +272,7 @@ public:
rb.Push(ResultSuccess);
}
- void UnregisterModuleInfo(Kernel::HLERequestContext& ctx) {
+ void UnregisterModuleInfo(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto pid = rp.Pop<u64>();
const auto nrr_address = rp.Pop<VAddr>();
@@ -314,7 +314,7 @@ public:
const auto is_region_available = [&](VAddr addr) {
const auto end_addr = addr + size;
while (addr < end_addr) {
- if (system.Memory().IsValidVirtualAddress(addr)) {
+ if (system.ApplicationMemory().IsValidVirtualAddress(addr)) {
return false;
}
@@ -337,7 +337,7 @@ public:
bool succeeded = false;
const auto map_region_end =
- page_table.GetAliasCodeRegionStart() + page_table.GetAliasCodeRegionSize();
+ GetInteger(page_table.GetAliasCodeRegionStart()) + page_table.GetAliasCodeRegionSize();
while (current_map_addr < map_region_end) {
if (is_region_available(current_map_addr)) {
succeeded = true;
@@ -427,8 +427,8 @@ public:
const VAddr bss_end_addr{
Common::AlignUp(bss_start + nro_header.bss_size, Kernel::PageSize)};
- const auto CopyCode = [this, process](VAddr src_addr, VAddr dst_addr, u64 size) {
- system.Memory().CopyBlock(*process, dst_addr, src_addr, size);
+ const auto CopyCode = [this](VAddr src_addr, VAddr dst_addr, u64 size) {
+ system.ApplicationMemory().CopyBlock(dst_addr, src_addr, size);
};
CopyCode(nro_addr + nro_header.segment_headers[TEXT_INDEX].memory_offset, text_start,
nro_header.segment_headers[TEXT_INDEX].memory_size);
@@ -446,7 +446,7 @@ public:
data_start, bss_end_addr - data_start, Kernel::Svc::MemoryPermission::ReadWrite);
}
- void LoadModule(Kernel::HLERequestContext& ctx) {
+ void LoadModule(HLERequestContext& ctx) {
struct Parameters {
u64_le process_id;
u64_le image_address;
@@ -506,7 +506,7 @@ public:
// Read NRO data from memory
std::vector<u8> nro_data(nro_size);
- system.Memory().ReadBlock(nro_address, nro_data.data(), nro_size);
+ system.ApplicationMemory().ReadBlock(nro_address, nro_data.data(), nro_size);
SHA256Hash hash{};
mbedtls_sha256_ret(nro_data.data(), nro_data.size(), hash.data(), 0);
@@ -542,15 +542,16 @@ public:
}
// Map memory for the NRO
- const auto map_result{MapNro(system.CurrentProcess(), nro_address, nro_size, bss_address,
- bss_size, nro_size + bss_size)};
+ const auto map_result{MapNro(system.ApplicationProcess(), nro_address, nro_size,
+ bss_address, bss_size, nro_size + bss_size)};
if (map_result.Failed()) {
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(map_result.Code());
}
// Load the NRO into the mapped memory
- if (const auto result{LoadNro(system.CurrentProcess(), header, nro_address, *map_result)};
+ if (const auto result{
+ LoadNro(system.ApplicationProcess(), header, nro_address, *map_result)};
result.IsError()) {
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(map_result.Code());
@@ -570,7 +571,7 @@ public:
Result UnmapNro(const NROInfo& info) {
// Each region must be unmapped separately to validate memory state
- auto& page_table{system.CurrentProcess()->PageTable()};
+ auto& page_table{system.ApplicationProcess()->PageTable()};
if (info.bss_size != 0) {
CASCADE_CODE(page_table.UnmapCodeMemory(
@@ -591,7 +592,7 @@ public:
return ResultSuccess;
}
- void UnloadModule(Kernel::HLERequestContext& ctx) {
+ void UnloadModule(HLERequestContext& ctx) {
if (!initialized) {
LOG_ERROR(Service_LDR, "LDR:RO not initialized before use!");
IPC::ResponseBuilder rb{ctx, 2};
@@ -637,11 +638,12 @@ public:
rb.Push(result);
}
- void Initialize(Kernel::HLERequestContext& ctx) {
+ void Initialize(HLERequestContext& ctx) {
LOG_WARNING(Service_LDR, "(STUBBED) called");
initialized = true;
- current_map_addr = system.CurrentProcess()->PageTable().GetAliasCodeRegionStart();
+ current_map_addr =
+ GetInteger(system.ApplicationProcess()->PageTable().GetAliasCodeRegionStart());
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
@@ -681,11 +683,15 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<DebugMonitor>(system)->InstallAsService(sm);
- std::make_shared<ProcessManager>(system)->InstallAsService(sm);
- std::make_shared<Shell>(system)->InstallAsService(sm);
- std::make_shared<RelocatableObject>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("ldr:dmnt", std::make_shared<DebugMonitor>(system));
+ server_manager->RegisterNamedService("ldr:pm", std::make_shared<ProcessManager>(system));
+ server_manager->RegisterNamedService("ldr:shel", std::make_shared<Shell>(system));
+ server_manager->RegisterNamedService("ldr:ro", std::make_shared<RelocatableObject>(system));
+
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::LDR
diff --git a/src/core/hle/service/ldr/ldr.h b/src/core/hle/service/ldr/ldr.h
index 25ffd8442..c9281dbfb 100644
--- a/src/core/hle/service/ldr/ldr.h
+++ b/src/core/hle/service/ldr/ldr.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::LDR {
-/// Registers all LDR services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::LDR
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
index ef4b54046..20df00233 100644
--- a/src/core/hle/service/lm/lm.cpp
+++ b/src/core/hle/service/lm/lm.cpp
@@ -8,8 +8,9 @@
#include <boost/container_hash/hash.hpp>
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/lm/lm.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
namespace Service::LM {
@@ -92,7 +93,7 @@ public:
}
private:
- void Log(Kernel::HLERequestContext& ctx) {
+ void Log(HLERequestContext& ctx) {
std::size_t offset{};
const auto data = ctx.ReadBuffer();
@@ -147,7 +148,7 @@ private:
}
}
- void SetDestination(Kernel::HLERequestContext& ctx) {
+ void SetDestination(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto log_destination = rp.PopEnum<LogDestination>();
@@ -342,7 +343,7 @@ public:
}
private:
- void OpenLogger(Kernel::HLERequestContext& ctx) {
+ void OpenLogger(HLERequestContext& ctx) {
LOG_DEBUG(Service_LM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -351,8 +352,11 @@ private:
}
};
-void InstallInterfaces(Core::System& system) {
- std::make_shared<LM>(system)->InstallAsService(system.ServiceManager());
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("lm", std::make_shared<LM>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::LM
diff --git a/src/core/hle/service/lm/lm.h b/src/core/hle/service/lm/lm.h
index 266019c30..0d7c39cbc 100644
--- a/src/core/hle/service/lm/lm.h
+++ b/src/core/hle/service/lm/lm.h
@@ -9,7 +9,6 @@ class System;
namespace Service::LM {
-/// Registers all LM services with the specified service manager.
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::LM
diff --git a/src/core/hle/service/mig/mig.cpp b/src/core/hle/service/mig/mig.cpp
index b9fe0cecd..082e470ab 100644
--- a/src/core/hle/service/mig/mig.cpp
+++ b/src/core/hle/service/mig/mig.cpp
@@ -4,8 +4,8 @@
#include <memory>
#include "core/hle/service/mig/mig.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::Migration {
@@ -32,8 +32,11 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<MIG_USR>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("mig:user", std::make_shared<MIG_USR>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Migration
diff --git a/src/core/hle/service/mig/mig.h b/src/core/hle/service/mig/mig.h
index f1641a521..c8ed732a5 100644
--- a/src/core/hle/service/mig/mig.h
+++ b/src/core/hle/service/mig/mig.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::Migration {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Migration
diff --git a/src/core/hle/service/mii/mii.cpp b/src/core/hle/service/mii/mii.cpp
index 390514fdc..5c7adf97d 100644
--- a/src/core/hle/service/mii/mii.cpp
+++ b/src/core/hle/service/mii/mii.cpp
@@ -4,11 +4,11 @@
#include <memory>
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/mii/mii.h"
#include "core/hle/service/mii/mii_manager.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::Mii {
@@ -65,7 +65,7 @@ private:
return out;
}
- void IsUpdated(Kernel::HLERequestContext& ctx) {
+ void IsUpdated(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto source_flag{rp.PopRaw<SourceFlag>()};
@@ -76,7 +76,7 @@ private:
rb.Push(manager.CheckAndResetUpdateCounter(source_flag, current_update_counter));
}
- void IsFullDatabase(Kernel::HLERequestContext& ctx) {
+ void IsFullDatabase(HLERequestContext& ctx) {
LOG_DEBUG(Service_Mii, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -84,7 +84,7 @@ private:
rb.Push(manager.IsFullDatabase());
}
- void GetCount(Kernel::HLERequestContext& ctx) {
+ void GetCount(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto source_flag{rp.PopRaw<SourceFlag>()};
@@ -95,7 +95,7 @@ private:
rb.Push<u32>(manager.GetCount(source_flag));
}
- void Get(Kernel::HLERequestContext& ctx) {
+ void Get(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto source_flag{rp.PopRaw<SourceFlag>()};
@@ -117,7 +117,7 @@ private:
rb.Push<u32>(static_cast<u32>(result->size()));
}
- void Get1(Kernel::HLERequestContext& ctx) {
+ void Get1(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto source_flag{rp.PopRaw<SourceFlag>()};
@@ -142,7 +142,7 @@ private:
rb.Push<u32>(static_cast<u32>(result->size()));
}
- void UpdateLatest(Kernel::HLERequestContext& ctx) {
+ void UpdateLatest(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto info{rp.PopRaw<CharInfo>()};
const auto source_flag{rp.PopRaw<SourceFlag>()};
@@ -161,7 +161,7 @@ private:
rb.PushRaw<CharInfo>(*result);
}
- void BuildRandom(Kernel::HLERequestContext& ctx) {
+ void BuildRandom(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto age{rp.PopRaw<Age>()};
@@ -196,7 +196,7 @@ private:
rb.PushRaw<CharInfo>(manager.BuildRandom(age, gender, race));
}
- void BuildDefault(Kernel::HLERequestContext& ctx) {
+ void BuildDefault(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto index{rp.Pop<u32>()};
@@ -215,7 +215,7 @@ private:
rb.PushRaw<CharInfo>(manager.BuildDefault(index));
}
- void GetIndex(Kernel::HLERequestContext& ctx) {
+ void GetIndex(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto info{rp.PopRaw<CharInfo>()};
@@ -227,7 +227,7 @@ private:
rb.Push(index);
}
- void SetInterfaceVersion(Kernel::HLERequestContext& ctx) {
+ void SetInterfaceVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
current_interface_version = rp.PopRaw<u32>();
@@ -239,7 +239,7 @@ private:
rb.Push(ResultSuccess);
}
- void Convert(Kernel::HLERequestContext& ctx) {
+ void Convert(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto mii_v3{rp.PopRaw<Ver3StoreData>()};
@@ -275,7 +275,7 @@ public:
}
private:
- void GetDatabaseService(Kernel::HLERequestContext& ctx) {
+ void GetDatabaseService(HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IDatabaseService>(system);
@@ -310,11 +310,13 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<MiiDBModule>(system, "mii:e")->InstallAsService(sm);
- std::make_shared<MiiDBModule>(system, "mii:u")->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
- std::make_shared<MiiImg>(system)->InstallAsService(sm);
+ server_manager->RegisterNamedService("mii:e", std::make_shared<MiiDBModule>(system, "mii:e"));
+ server_manager->RegisterNamedService("mii:u", std::make_shared<MiiDBModule>(system, "mii:u"));
+ server_manager->RegisterNamedService("miiimg", std::make_shared<MiiImg>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Mii
diff --git a/src/core/hle/service/mii/mii.h b/src/core/hle/service/mii/mii.h
index 009d80d58..ed4e3f62b 100644
--- a/src/core/hle/service/mii/mii.h
+++ b/src/core/hle/service/mii/mii.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::Mii {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Mii
diff --git a/src/core/hle/service/mii/mii_manager.cpp b/src/core/hle/service/mii/mii_manager.cpp
index 3a2fe938f..c920650f5 100644
--- a/src/core/hle/service/mii/mii_manager.cpp
+++ b/src/core/hle/service/mii/mii_manager.cpp
@@ -510,7 +510,7 @@ CharInfo MiiManager::ConvertV3ToCharInfo(const Ver3StoreData& mii_v3) const {
return mii;
}
-Ver3StoreData MiiManager::ConvertCharInfoToV3(const CharInfo& mii) const {
+Ver3StoreData MiiManager::BuildFromStoreData(const CharInfo& mii) const {
Service::Mii::MiiManager manager;
Ver3StoreData mii_v3{};
@@ -534,16 +534,13 @@ Ver3StoreData MiiManager::ConvertCharInfoToV3(const CharInfo& mii) const {
mii_v3.region_information.character_set.Assign(mii.font_region);
mii_v3.appearance_bits1.face_shape.Assign(mii.faceline_type);
- mii_v3.appearance_bits1.skin_color.Assign(mii.faceline_color);
mii_v3.appearance_bits2.wrinkles.Assign(mii.faceline_wrinkle);
mii_v3.appearance_bits2.makeup.Assign(mii.faceline_make);
mii_v3.hair_style = mii.hair_type;
- mii_v3.appearance_bits3.hair_color.Assign(mii.hair_color);
mii_v3.appearance_bits3.flip_hair.Assign(mii.hair_flip);
mii_v3.appearance_bits4.eye_type.Assign(mii.eye_type);
- mii_v3.appearance_bits4.eye_color.Assign(mii.eye_color);
mii_v3.appearance_bits4.eye_scale.Assign(mii.eye_scale);
mii_v3.appearance_bits4.eye_vertical_stretch.Assign(mii.eye_aspect);
mii_v3.appearance_bits4.eye_rotation.Assign(mii.eye_rotate);
@@ -551,7 +548,6 @@ Ver3StoreData MiiManager::ConvertCharInfoToV3(const CharInfo& mii) const {
mii_v3.appearance_bits4.eye_y_position.Assign(mii.eye_y);
mii_v3.appearance_bits5.eyebrow_style.Assign(mii.eyebrow_type);
- mii_v3.appearance_bits5.eyebrow_color.Assign(mii.eyebrow_color);
mii_v3.appearance_bits5.eyebrow_scale.Assign(mii.eyebrow_scale);
mii_v3.appearance_bits5.eyebrow_yscale.Assign(mii.eyebrow_aspect);
mii_v3.appearance_bits5.eyebrow_rotation.Assign(mii.eyebrow_rotate);
@@ -563,7 +559,6 @@ Ver3StoreData MiiManager::ConvertCharInfoToV3(const CharInfo& mii) const {
mii_v3.appearance_bits6.nose_y_position.Assign(mii.nose_y);
mii_v3.appearance_bits7.mouth_type.Assign(mii.mouth_type);
- mii_v3.appearance_bits7.mouth_color.Assign(mii.mouth_color);
mii_v3.appearance_bits7.mouth_scale.Assign(mii.mouth_scale);
mii_v3.appearance_bits7.mouth_horizontal_stretch.Assign(mii.mouth_aspect);
mii_v3.appearance_bits8.mouth_y_position.Assign(mii.mouth_y);
@@ -573,10 +568,7 @@ Ver3StoreData MiiManager::ConvertCharInfoToV3(const CharInfo& mii) const {
mii_v3.appearance_bits9.mustache_y_position.Assign(mii.mustache_y);
mii_v3.appearance_bits9.bear_type.Assign(mii.beard_type);
- mii_v3.appearance_bits9.facial_hair_color.Assign(mii.beard_color);
- mii_v3.appearance_bits10.glasses_type.Assign(mii.glasses_type);
- mii_v3.appearance_bits10.glasses_color.Assign(mii.glasses_color);
mii_v3.appearance_bits10.glasses_scale.Assign(mii.glasses_scale);
mii_v3.appearance_bits10.glasses_y_position.Assign(mii.glasses_y);
@@ -585,11 +577,36 @@ Ver3StoreData MiiManager::ConvertCharInfoToV3(const CharInfo& mii) const {
mii_v3.appearance_bits11.mole_x_position.Assign(mii.mole_x);
mii_v3.appearance_bits11.mole_y_position.Assign(mii.mole_y);
+ // These types are converted to V3 from a table
+ mii_v3.appearance_bits1.skin_color.Assign(Ver3FacelineColorTable[mii.faceline_color]);
+ mii_v3.appearance_bits3.hair_color.Assign(Ver3HairColorTable[mii.hair_color]);
+ mii_v3.appearance_bits4.eye_color.Assign(Ver3EyeColorTable[mii.eye_color]);
+ mii_v3.appearance_bits5.eyebrow_color.Assign(Ver3HairColorTable[mii.eyebrow_color]);
+ mii_v3.appearance_bits7.mouth_color.Assign(Ver3MouthlineColorTable[mii.mouth_color]);
+ mii_v3.appearance_bits9.facial_hair_color.Assign(Ver3HairColorTable[mii.beard_color]);
+ mii_v3.appearance_bits10.glasses_color.Assign(Ver3GlassColorTable[mii.glasses_color]);
+ mii_v3.appearance_bits10.glasses_type.Assign(Ver3GlassTypeTable[mii.glasses_type]);
+
+ mii_v3.crc = GenerateCrc16(&mii_v3, sizeof(Ver3StoreData) - sizeof(u16));
+
// TODO: Validate mii_v3 data
return mii_v3;
}
+NfpStoreDataExtension MiiManager::SetFromStoreData(const CharInfo& mii) const {
+ return {
+ .faceline_color = static_cast<u8>(mii.faceline_color & 0xf),
+ .hair_color = static_cast<u8>(mii.hair_color & 0x7f),
+ .eye_color = static_cast<u8>(mii.eyebrow_color & 0x7f),
+ .eyebrow_color = static_cast<u8>(mii.eyebrow_color & 0x7f),
+ .mouth_color = static_cast<u8>(mii.mouth_color & 0x7f),
+ .beard_color = static_cast<u8>(mii.beard_color & 0x7f),
+ .glass_color = static_cast<u8>(mii.glasses_color & 0x7f),
+ .glass_type = static_cast<u8>(mii.glasses_type & 0x1f),
+ };
+}
+
bool MiiManager::ValidateV3Info(const Ver3StoreData& mii_v3) const {
bool is_valid = mii_v3.version == 0 || mii_v3.version == 3;
diff --git a/src/core/hle/service/mii/mii_manager.h b/src/core/hle/service/mii/mii_manager.h
index 83ad3d343..5525fcd1c 100644
--- a/src/core/hle/service/mii/mii_manager.h
+++ b/src/core/hle/service/mii/mii_manager.h
@@ -23,11 +23,16 @@ public:
CharInfo BuildRandom(Age age, Gender gender, Race race);
CharInfo BuildDefault(std::size_t index);
CharInfo ConvertV3ToCharInfo(const Ver3StoreData& mii_v3) const;
- Ver3StoreData ConvertCharInfoToV3(const CharInfo& mii) const;
bool ValidateV3Info(const Ver3StoreData& mii_v3) const;
ResultVal<std::vector<MiiInfoElement>> GetDefault(SourceFlag source_flag);
Result GetIndex(const CharInfo& info, u32& index);
+ // This is nn::mii::detail::Ver::StoreDataRaw::BuildFromStoreData
+ Ver3StoreData BuildFromStoreData(const CharInfo& mii) const;
+
+ // This is nn::mii::detail::NfpStoreDataExtentionRaw::SetFromStoreData
+ NfpStoreDataExtension SetFromStoreData(const CharInfo& mii) const;
+
private:
const Common::UUID user_id{};
u64 update_counter{};
diff --git a/src/core/hle/service/mii/types.h b/src/core/hle/service/mii/types.h
index 9e3247397..c48d08d79 100644
--- a/src/core/hle/service/mii/types.h
+++ b/src/core/hle/service/mii/types.h
@@ -365,10 +365,68 @@ struct Ver3StoreData {
} appearance_bits11;
std::array<u16_le, 0xA> author_name;
- INSERT_PADDING_BYTES(0x4);
+ INSERT_PADDING_BYTES(0x2);
+ u16_be crc;
};
static_assert(sizeof(Ver3StoreData) == 0x60, "Ver3StoreData is an invalid size");
+struct NfpStoreDataExtension {
+ u8 faceline_color;
+ u8 hair_color;
+ u8 eye_color;
+ u8 eyebrow_color;
+ u8 mouth_color;
+ u8 beard_color;
+ u8 glass_color;
+ u8 glass_type;
+};
+static_assert(sizeof(NfpStoreDataExtension) == 0x8, "NfpStoreDataExtension is an invalid size");
+
+constexpr std::array<u8, 0x10> Ver3FacelineColorTable{
+ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x0, 0x1, 0x5, 0x5,
+};
+
+constexpr std::array<u8, 100> Ver3HairColorTable{
+ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x0, 0x4, 0x3, 0x5, 0x4, 0x4, 0x6, 0x2, 0x0,
+ 0x6, 0x4, 0x3, 0x2, 0x2, 0x7, 0x3, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2,
+ 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x0, 0x0, 0x4,
+ 0x4, 0x4, 0x4, 0x4, 0x4, 0x0, 0x0, 0x0, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x5, 0x5, 0x5,
+ 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x5, 0x7, 0x5, 0x7, 0x7, 0x7, 0x7, 0x7, 0x6, 0x7,
+ 0x7, 0x7, 0x7, 0x7, 0x3, 0x7, 0x7, 0x7, 0x7, 0x7, 0x0, 0x4, 0x4, 0x4, 0x4,
+};
+
+constexpr std::array<u8, 100> Ver3EyeColorTable{
+ 0x0, 0x2, 0x2, 0x2, 0x1, 0x3, 0x2, 0x3, 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x2, 0x2, 0x4,
+ 0x2, 0x1, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2,
+ 0x2, 0x2, 0x2, 0x2, 0x0, 0x0, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x1, 0x0, 0x4, 0x4,
+ 0x4, 0x4, 0x4, 0x4, 0x4, 0x0, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5,
+ 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x2, 0x2,
+ 0x3, 0x3, 0x3, 0x3, 0x2, 0x2, 0x2, 0x2, 0x2, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1,
+};
+
+constexpr std::array<u8, 100> Ver3MouthlineColorTable{
+ 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x3, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x1, 0x4,
+ 0x4, 0x4, 0x0, 0x1, 0x2, 0x3, 0x4, 0x4, 0x2, 0x3, 0x3, 0x4, 0x4, 0x4, 0x4, 0x1, 0x4,
+ 0x4, 0x2, 0x3, 0x3, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x3, 0x3, 0x3, 0x4, 0x4, 0x4,
+ 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x4, 0x4, 0x4, 0x4, 0x3, 0x3, 0x3, 0x3, 0x4, 0x4, 0x4,
+ 0x4, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x4, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3,
+ 0x3, 0x3, 0x3, 0x3, 0x4, 0x0, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, 0x3, 0x3,
+};
+
+constexpr std::array<u8, 100> Ver3GlassColorTable{
+ 0x0, 0x1, 0x1, 0x1, 0x5, 0x1, 0x1, 0x4, 0x0, 0x5, 0x1, 0x1, 0x3, 0x5, 0x1, 0x2, 0x3,
+ 0x4, 0x5, 0x4, 0x2, 0x2, 0x4, 0x4, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2, 0x2,
+ 0x2, 0x2, 0x2, 0x2, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3,
+ 0x3, 0x3, 0x3, 0x3, 0x3, 0x0, 0x0, 0x0, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x0, 0x5, 0x5,
+ 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x1, 0x4,
+ 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x4, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5,
+};
+
+constexpr std::array<u8, 20> Ver3GlassTypeTable{
+ 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x1,
+ 0x2, 0x1, 0x3, 0x7, 0x7, 0x6, 0x7, 0x8, 0x7, 0x7,
+};
+
struct MiiStoreData {
using Name = std::array<char16_t, 10>;
diff --git a/src/core/hle/service/mm/mm_u.cpp b/src/core/hle/service/mm/mm_u.cpp
index ba8c0e230..6f43b1968 100644
--- a/src/core/hle/service/mm/mm_u.cpp
+++ b/src/core/hle/service/mm/mm_u.cpp
@@ -2,8 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/mm/mm_u.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/sm/sm.h"
namespace Service::MM {
@@ -28,21 +29,21 @@ public:
}
private:
- void InitializeOld(Kernel::HLERequestContext& ctx) {
+ void InitializeOld(HLERequestContext& ctx) {
LOG_WARNING(Service_MM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void FinalizeOld(Kernel::HLERequestContext& ctx) {
+ void FinalizeOld(HLERequestContext& ctx) {
LOG_WARNING(Service_MM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void SetAndWaitOld(Kernel::HLERequestContext& ctx) {
+ void SetAndWaitOld(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
min = rp.Pop<u32>();
max = rp.Pop<u32>();
@@ -53,7 +54,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetOld(Kernel::HLERequestContext& ctx) {
+ void GetOld(HLERequestContext& ctx) {
LOG_DEBUG(Service_MM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -61,7 +62,7 @@ private:
rb.Push(current);
}
- void Initialize(Kernel::HLERequestContext& ctx) {
+ void Initialize(HLERequestContext& ctx) {
LOG_WARNING(Service_MM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -69,14 +70,14 @@ private:
rb.Push<u32>(id); // Any non zero value
}
- void Finalize(Kernel::HLERequestContext& ctx) {
+ void Finalize(HLERequestContext& ctx) {
LOG_WARNING(Service_MM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void SetAndWait(Kernel::HLERequestContext& ctx) {
+ void SetAndWait(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
u32 input_id = rp.Pop<u32>();
min = rp.Pop<u32>();
@@ -89,7 +90,7 @@ private:
rb.Push(ResultSuccess);
}
- void Get(Kernel::HLERequestContext& ctx) {
+ void Get(HLERequestContext& ctx) {
LOG_DEBUG(Service_MM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -103,8 +104,11 @@ private:
u32 id{1};
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<MM_U>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("mm:u", std::make_shared<MM_U>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::MM
diff --git a/src/core/hle/service/mm/mm_u.h b/src/core/hle/service/mm/mm_u.h
index b40941e35..43117c9b1 100644
--- a/src/core/hle/service/mm/mm_u.h
+++ b/src/core/hle/service/mm/mm_u.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::MM {
-/// Registers all MM services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::MM
diff --git a/src/core/hle/service/mnpp/mnpp_app.cpp b/src/core/hle/service/mnpp/mnpp_app.cpp
index c3aad5714..b11a92056 100644
--- a/src/core/hle/service/mnpp/mnpp_app.cpp
+++ b/src/core/hle/service/mnpp/mnpp_app.cpp
@@ -2,9 +2,10 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/mnpp/mnpp_app.h"
-#include "core/hle/service/sm/sm.h"
+#include "core/hle/service/server_manager.h"
+#include "core/hle/service/service.h"
namespace Service::MNPP {
@@ -22,14 +23,14 @@ public:
}
private:
- void Unknown0(Kernel::HLERequestContext& ctx) {
+ void Unknown0(HLERequestContext& ctx) {
LOG_WARNING(Service_MNPP, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void Unknown1(Kernel::HLERequestContext& ctx) {
+ void Unknown1(HLERequestContext& ctx) {
LOG_WARNING(Service_MNPP, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -37,8 +38,11 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<MNPP_APP>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("mnpp:app", std::make_shared<MNPP_APP>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::MNPP
diff --git a/src/core/hle/service/mnpp/mnpp_app.h b/src/core/hle/service/mnpp/mnpp_app.h
index eec75fe0e..40d0395bd 100644
--- a/src/core/hle/service/mnpp/mnpp_app.h
+++ b/src/core/hle/service/mnpp/mnpp_app.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::MNPP {
-/// Registers all MNPP services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::MNPP
diff --git a/src/core/hle/service/mutex.cpp b/src/core/hle/service/mutex.cpp
new file mode 100644
index 000000000..b0ff71d1b
--- /dev/null
+++ b/src/core/hle/service/mutex.cpp
@@ -0,0 +1,46 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/core.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/kernel/k_synchronization_object.h"
+#include "core/hle/service/mutex.h"
+
+namespace Service {
+
+Mutex::Mutex(Core::System& system) : m_system(system) {
+ m_event = Kernel::KEvent::Create(system.Kernel());
+ m_event->Initialize(nullptr);
+
+ // Register the event.
+ Kernel::KEvent::Register(system.Kernel(), m_event);
+
+ ASSERT(R_SUCCEEDED(m_event->Signal()));
+}
+
+Mutex::~Mutex() {
+ m_event->GetReadableEvent().Close();
+ m_event->Close();
+}
+
+void Mutex::lock() {
+ // Infinitely retry until we successfully clear the event.
+ while (R_FAILED(m_event->GetReadableEvent().Reset())) {
+ s32 index;
+ Kernel::KSynchronizationObject* obj = &m_event->GetReadableEvent();
+
+ // The event was already cleared!
+ // Wait for it to become signaled again.
+ ASSERT(R_SUCCEEDED(
+ Kernel::KSynchronizationObject::Wait(m_system.Kernel(), &index, &obj, 1, -1)));
+ }
+
+ // We successfully cleared the event, and now have exclusive ownership.
+}
+
+void Mutex::unlock() {
+ // Unlock.
+ ASSERT(R_SUCCEEDED(m_event->Signal()));
+}
+
+} // namespace Service
diff --git a/src/core/hle/service/mutex.h b/src/core/hle/service/mutex.h
new file mode 100644
index 000000000..95ac9b117
--- /dev/null
+++ b/src/core/hle/service/mutex.h
@@ -0,0 +1,31 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "common/common_types.h"
+
+namespace Core {
+class System;
+}
+
+namespace Kernel {
+class KEvent;
+}
+
+namespace Service {
+
+class Mutex {
+public:
+ explicit Mutex(Core::System& system);
+ ~Mutex();
+
+ void lock();
+ void unlock();
+
+private:
+ Core::System& m_system;
+ Kernel::KEvent* m_event{};
+};
+
+} // namespace Service
diff --git a/src/core/hle/service/ncm/ncm.cpp b/src/core/hle/service/ncm/ncm.cpp
index 68210a108..650666d6b 100644
--- a/src/core/hle/service/ncm/ncm.cpp
+++ b/src/core/hle/service/ncm/ncm.cpp
@@ -4,10 +4,10 @@
#include <memory>
#include "core/file_sys/romfs_factory.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ncm/ncm.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::NCM {
@@ -124,6 +124,7 @@ public:
{12, nullptr, "InactivateContentMetaDatabase"},
{13, nullptr, "InvalidateRightsIdCache"},
{14, nullptr, "GetMemoryReport"},
+ {15, nullptr, "ActivateFsContentStorage"},
};
// clang-format on
@@ -131,9 +132,12 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<LR>(system)->InstallAsService(sm);
- std::make_shared<NCM>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("lr", std::make_shared<LR>(system));
+ server_manager->RegisterNamedService("ncm", std::make_shared<NCM>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NCM
diff --git a/src/core/hle/service/ncm/ncm.h b/src/core/hle/service/ncm/ncm.h
index de3971437..b78efdcd7 100644
--- a/src/core/hle/service/ncm/ncm.h
+++ b/src/core/hle/service/ncm/ncm.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::NCM {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::NCM
diff --git a/src/core/hle/service/nfc/common/amiibo_crypto.cpp b/src/core/hle/service/nfc/common/amiibo_crypto.cpp
new file mode 100644
index 000000000..bc232c334
--- /dev/null
+++ b/src/core/hle/service/nfc/common/amiibo_crypto.cpp
@@ -0,0 +1,392 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+// SPDX-FileCopyrightText: Copyright 2017 socram8888/amiitool
+// SPDX-License-Identifier: MIT
+
+#include <array>
+#include <mbedtls/aes.h>
+#include <mbedtls/hmac_drbg.h>
+
+#include "common/fs/file.h"
+#include "common/fs/fs.h"
+#include "common/fs/path_util.h"
+#include "common/logging/log.h"
+#include "core/hle/service/nfc/common/amiibo_crypto.h"
+
+namespace Service::NFP::AmiiboCrypto {
+
+bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file) {
+ const auto& amiibo_data = ntag_file.user_memory;
+ LOG_DEBUG(Service_NFP, "uuid_lock=0x{0:x}", ntag_file.static_lock);
+ LOG_DEBUG(Service_NFP, "compability_container=0x{0:x}", ntag_file.compability_container);
+ LOG_DEBUG(Service_NFP, "write_count={}", static_cast<u16>(amiibo_data.write_counter));
+
+ LOG_DEBUG(Service_NFP, "character_id=0x{0:x}", amiibo_data.model_info.character_id);
+ LOG_DEBUG(Service_NFP, "character_variant={}", amiibo_data.model_info.character_variant);
+ LOG_DEBUG(Service_NFP, "amiibo_type={}", amiibo_data.model_info.amiibo_type);
+ LOG_DEBUG(Service_NFP, "model_number=0x{0:x}",
+ static_cast<u16>(amiibo_data.model_info.model_number));
+ LOG_DEBUG(Service_NFP, "series={}", amiibo_data.model_info.series);
+ LOG_DEBUG(Service_NFP, "tag_type=0x{0:x}", amiibo_data.model_info.tag_type);
+
+ LOG_DEBUG(Service_NFP, "tag_dynamic_lock=0x{0:x}", ntag_file.dynamic_lock);
+ LOG_DEBUG(Service_NFP, "tag_CFG0=0x{0:x}", ntag_file.CFG0);
+ LOG_DEBUG(Service_NFP, "tag_CFG1=0x{0:x}", ntag_file.CFG1);
+
+ // Validate UUID
+ constexpr u8 CT = 0x88; // As defined in `ISO / IEC 14443 - 3`
+ if ((CT ^ ntag_file.uuid.part1[0] ^ ntag_file.uuid.part1[1] ^ ntag_file.uuid.part1[2]) !=
+ ntag_file.uuid.crc_check1) {
+ return false;
+ }
+ if ((ntag_file.uuid.part2[0] ^ ntag_file.uuid.part2[1] ^ ntag_file.uuid.part2[2] ^
+ ntag_file.uuid.nintendo_id) != ntag_file.uuid_crc_check2) {
+ return false;
+ }
+
+ // Check against all know constants on an amiibo binary
+ if (ntag_file.static_lock != 0xE00F) {
+ return false;
+ }
+ if (ntag_file.compability_container != 0xEEFF10F1U) {
+ return false;
+ }
+ if (amiibo_data.model_info.tag_type != NFC::PackedTagType::Type2) {
+ return false;
+ }
+ if ((ntag_file.dynamic_lock & 0xFFFFFF) != 0x0F0001U) {
+ return false;
+ }
+ if (ntag_file.CFG0 != 0x04000000U) {
+ return false;
+ }
+ if (ntag_file.CFG1 != 0x5F) {
+ return false;
+ }
+ return true;
+}
+
+bool IsAmiiboValid(const NTAG215File& ntag_file) {
+ return IsAmiiboValid(EncodedDataToNfcData(ntag_file));
+}
+
+NTAG215File NfcDataToEncodedData(const EncryptedNTAG215File& nfc_data) {
+ NTAG215File encoded_data{};
+
+ encoded_data.uid = nfc_data.uuid;
+ encoded_data.uid_crc_check2 = nfc_data.uuid_crc_check2;
+ encoded_data.internal_number = nfc_data.internal_number;
+ encoded_data.static_lock = nfc_data.static_lock;
+ encoded_data.compability_container = nfc_data.compability_container;
+ encoded_data.hmac_data = nfc_data.user_memory.hmac_data;
+ encoded_data.constant_value = nfc_data.user_memory.constant_value;
+ encoded_data.write_counter = nfc_data.user_memory.write_counter;
+ encoded_data.amiibo_version = nfc_data.user_memory.amiibo_version;
+ encoded_data.settings = nfc_data.user_memory.settings;
+ encoded_data.owner_mii = nfc_data.user_memory.owner_mii;
+ encoded_data.application_id = nfc_data.user_memory.application_id;
+ encoded_data.application_write_counter = nfc_data.user_memory.application_write_counter;
+ encoded_data.application_area_id = nfc_data.user_memory.application_area_id;
+ encoded_data.application_id_byte = nfc_data.user_memory.application_id_byte;
+ encoded_data.unknown = nfc_data.user_memory.unknown;
+ encoded_data.mii_extension = nfc_data.user_memory.mii_extension;
+ encoded_data.unknown2 = nfc_data.user_memory.unknown2;
+ encoded_data.register_info_crc = nfc_data.user_memory.register_info_crc;
+ encoded_data.application_area = nfc_data.user_memory.application_area;
+ encoded_data.hmac_tag = nfc_data.user_memory.hmac_tag;
+ encoded_data.model_info = nfc_data.user_memory.model_info;
+ encoded_data.keygen_salt = nfc_data.user_memory.keygen_salt;
+ encoded_data.dynamic_lock = nfc_data.dynamic_lock;
+ encoded_data.CFG0 = nfc_data.CFG0;
+ encoded_data.CFG1 = nfc_data.CFG1;
+ encoded_data.password = nfc_data.password;
+
+ return encoded_data;
+}
+
+EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data) {
+ EncryptedNTAG215File nfc_data{};
+
+ nfc_data.uuid = encoded_data.uid;
+ nfc_data.uuid_crc_check2 = encoded_data.uid_crc_check2;
+ nfc_data.internal_number = encoded_data.internal_number;
+ nfc_data.static_lock = encoded_data.static_lock;
+ nfc_data.compability_container = encoded_data.compability_container;
+ nfc_data.user_memory.hmac_data = encoded_data.hmac_data;
+ nfc_data.user_memory.constant_value = encoded_data.constant_value;
+ nfc_data.user_memory.write_counter = encoded_data.write_counter;
+ nfc_data.user_memory.amiibo_version = encoded_data.amiibo_version;
+ nfc_data.user_memory.settings = encoded_data.settings;
+ nfc_data.user_memory.owner_mii = encoded_data.owner_mii;
+ nfc_data.user_memory.application_id = encoded_data.application_id;
+ nfc_data.user_memory.application_write_counter = encoded_data.application_write_counter;
+ nfc_data.user_memory.application_area_id = encoded_data.application_area_id;
+ nfc_data.user_memory.application_id_byte = encoded_data.application_id_byte;
+ nfc_data.user_memory.unknown = encoded_data.unknown;
+ nfc_data.user_memory.mii_extension = encoded_data.mii_extension;
+ nfc_data.user_memory.unknown2 = encoded_data.unknown2;
+ nfc_data.user_memory.register_info_crc = encoded_data.register_info_crc;
+ nfc_data.user_memory.application_area = encoded_data.application_area;
+ nfc_data.user_memory.hmac_tag = encoded_data.hmac_tag;
+ nfc_data.user_memory.model_info = encoded_data.model_info;
+ nfc_data.user_memory.keygen_salt = encoded_data.keygen_salt;
+ nfc_data.dynamic_lock = encoded_data.dynamic_lock;
+ nfc_data.CFG0 = encoded_data.CFG0;
+ nfc_data.CFG1 = encoded_data.CFG1;
+ nfc_data.password = encoded_data.password;
+
+ return nfc_data;
+}
+
+HashSeed GetSeed(const NTAG215File& data) {
+ HashSeed seed{
+ .magic = data.write_counter,
+ .padding = {},
+ .uid_1 = data.uid,
+ .uid_2 = data.uid,
+ .keygen_salt = data.keygen_salt,
+ };
+
+ return seed;
+}
+
+std::vector<u8> GenerateInternalKey(const InternalKey& key, const HashSeed& seed) {
+ const std::size_t seedPart1Len = sizeof(key.magic_bytes) - key.magic_length;
+ const std::size_t string_size = key.type_string.size();
+ std::vector<u8> output(string_size + seedPart1Len);
+
+ // Copy whole type string
+ memccpy(output.data(), key.type_string.data(), '\0', string_size);
+
+ // Append (16 - magic_length) from the input seed
+ memcpy(output.data() + string_size, &seed, seedPart1Len);
+
+ // Append all bytes from magicBytes
+ output.insert(output.end(), key.magic_bytes.begin(),
+ key.magic_bytes.begin() + key.magic_length);
+
+ std::array<u8, sizeof(NFP::TagUuid)> seed_uuid{};
+ memcpy(seed_uuid.data(), &seed.uid_1, sizeof(NFP::TagUuid));
+ output.insert(output.end(), seed_uuid.begin(), seed_uuid.end());
+ memcpy(seed_uuid.data(), &seed.uid_2, sizeof(NFP::TagUuid));
+ output.insert(output.end(), seed_uuid.begin(), seed_uuid.end());
+
+ for (std::size_t i = 0; i < sizeof(seed.keygen_salt); i++) {
+ output.emplace_back(static_cast<u8>(seed.keygen_salt[i] ^ key.xor_pad[i]));
+ }
+
+ return output;
+}
+
+void CryptoInit(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, const HmacKey& hmac_key,
+ const std::vector<u8>& seed) {
+ // Initialize context
+ ctx.used = false;
+ ctx.counter = 0;
+ ctx.buffer_size = sizeof(ctx.counter) + seed.size();
+ memcpy(ctx.buffer.data() + sizeof(u16), seed.data(), seed.size());
+
+ // Initialize HMAC context
+ mbedtls_md_init(&hmac_ctx);
+ mbedtls_md_setup(&hmac_ctx, mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), 1);
+ mbedtls_md_hmac_starts(&hmac_ctx, hmac_key.data(), hmac_key.size());
+}
+
+void CryptoStep(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, DrgbOutput& output) {
+ // If used at least once, reinitialize the HMAC
+ if (ctx.used) {
+ mbedtls_md_hmac_reset(&hmac_ctx);
+ }
+
+ ctx.used = true;
+
+ // Store counter in big endian, and increment it
+ ctx.buffer[0] = static_cast<u8>(ctx.counter >> 8);
+ ctx.buffer[1] = static_cast<u8>(ctx.counter >> 0);
+ ctx.counter++;
+
+ // Do HMAC magic
+ mbedtls_md_hmac_update(&hmac_ctx, reinterpret_cast<const unsigned char*>(ctx.buffer.data()),
+ ctx.buffer_size);
+ mbedtls_md_hmac_finish(&hmac_ctx, output.data());
+}
+
+DerivedKeys GenerateKey(const InternalKey& key, const NTAG215File& data) {
+ const auto seed = GetSeed(data);
+
+ // Generate internal seed
+ const std::vector<u8> internal_key = GenerateInternalKey(key, seed);
+
+ // Initialize context
+ CryptoCtx ctx{};
+ mbedtls_md_context_t hmac_ctx;
+ CryptoInit(ctx, hmac_ctx, key.hmac_key, internal_key);
+
+ // Generate derived keys
+ DerivedKeys derived_keys{};
+ std::array<DrgbOutput, 2> temp{};
+ CryptoStep(ctx, hmac_ctx, temp[0]);
+ CryptoStep(ctx, hmac_ctx, temp[1]);
+ memcpy(&derived_keys, temp.data(), sizeof(DerivedKeys));
+
+ // Cleanup context
+ mbedtls_md_free(&hmac_ctx);
+
+ return derived_keys;
+}
+
+void Cipher(const DerivedKeys& keys, const NTAG215File& in_data, NTAG215File& out_data) {
+ mbedtls_aes_context aes;
+ std::size_t nc_off = 0;
+ std::array<u8, sizeof(keys.aes_iv)> nonce_counter{};
+ std::array<u8, sizeof(keys.aes_iv)> stream_block{};
+
+ const auto aes_key_size = static_cast<u32>(keys.aes_key.size() * 8);
+ mbedtls_aes_setkey_enc(&aes, keys.aes_key.data(), aes_key_size);
+ memcpy(nonce_counter.data(), keys.aes_iv.data(), sizeof(keys.aes_iv));
+
+ constexpr std::size_t encrypted_data_size = HMAC_TAG_START - SETTINGS_START;
+ mbedtls_aes_crypt_ctr(&aes, encrypted_data_size, &nc_off, nonce_counter.data(),
+ stream_block.data(),
+ reinterpret_cast<const unsigned char*>(&in_data.settings),
+ reinterpret_cast<unsigned char*>(&out_data.settings));
+
+ // Copy the rest of the data directly
+ out_data.uid = in_data.uid;
+ out_data.uid_crc_check2 = in_data.uid_crc_check2;
+ out_data.internal_number = in_data.internal_number;
+ out_data.static_lock = in_data.static_lock;
+ out_data.compability_container = in_data.compability_container;
+
+ out_data.constant_value = in_data.constant_value;
+ out_data.write_counter = in_data.write_counter;
+
+ out_data.model_info = in_data.model_info;
+ out_data.keygen_salt = in_data.keygen_salt;
+ out_data.dynamic_lock = in_data.dynamic_lock;
+ out_data.CFG0 = in_data.CFG0;
+ out_data.CFG1 = in_data.CFG1;
+ out_data.password = in_data.password;
+}
+
+bool LoadKeys(InternalKey& locked_secret, InternalKey& unfixed_info) {
+ const auto yuzu_keys_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::KeysDir);
+
+ const Common::FS::IOFile keys_file{yuzu_keys_dir / "key_retail.bin",
+ Common::FS::FileAccessMode::Read,
+ Common::FS::FileType::BinaryFile};
+
+ if (!keys_file.IsOpen()) {
+ LOG_ERROR(Service_NFP, "Failed to open key file");
+ return false;
+ }
+
+ if (keys_file.Read(unfixed_info) != 1) {
+ LOG_ERROR(Service_NFP, "Failed to read unfixed_info");
+ return false;
+ }
+ if (keys_file.Read(locked_secret) != 1) {
+ LOG_ERROR(Service_NFP, "Failed to read locked-secret");
+ return false;
+ }
+
+ return true;
+}
+
+bool IsKeyAvailable() {
+ const auto yuzu_keys_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::KeysDir);
+ return Common::FS::Exists(yuzu_keys_dir / "key_retail.bin");
+}
+
+bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data) {
+ InternalKey locked_secret{};
+ InternalKey unfixed_info{};
+
+ if (!LoadKeys(locked_secret, unfixed_info)) {
+ return false;
+ }
+
+ // Generate keys
+ NTAG215File encoded_data = NfcDataToEncodedData(encrypted_tag_data);
+ const auto data_keys = GenerateKey(unfixed_info, encoded_data);
+ const auto tag_keys = GenerateKey(locked_secret, encoded_data);
+
+ // Decrypt
+ Cipher(data_keys, encoded_data, tag_data);
+
+ // Regenerate tag HMAC. Note: order matters, data HMAC depends on tag HMAC!
+ constexpr std::size_t input_length = DYNAMIC_LOCK_START - UUID_START;
+ mbedtls_md_hmac(mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), tag_keys.hmac_key.data(),
+ sizeof(HmacKey), reinterpret_cast<const unsigned char*>(&tag_data.uid),
+ input_length, reinterpret_cast<unsigned char*>(&tag_data.hmac_tag));
+
+ // Regenerate data HMAC
+ constexpr std::size_t input_length2 = DYNAMIC_LOCK_START - WRITE_COUNTER_START;
+ mbedtls_md_hmac(mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), data_keys.hmac_key.data(),
+ sizeof(HmacKey),
+ reinterpret_cast<const unsigned char*>(&tag_data.write_counter), input_length2,
+ reinterpret_cast<unsigned char*>(&tag_data.hmac_data));
+
+ if (tag_data.hmac_data != encrypted_tag_data.user_memory.hmac_data) {
+ LOG_ERROR(Service_NFP, "hmac_data doesn't match");
+ return false;
+ }
+
+ if (tag_data.hmac_tag != encrypted_tag_data.user_memory.hmac_tag) {
+ LOG_ERROR(Service_NFP, "hmac_tag doesn't match");
+ return false;
+ }
+
+ return true;
+}
+
+bool EncodeAmiibo(const NTAG215File& tag_data, EncryptedNTAG215File& encrypted_tag_data) {
+ InternalKey locked_secret{};
+ InternalKey unfixed_info{};
+
+ if (!LoadKeys(locked_secret, unfixed_info)) {
+ return false;
+ }
+
+ // Generate keys
+ const auto data_keys = GenerateKey(unfixed_info, tag_data);
+ const auto tag_keys = GenerateKey(locked_secret, tag_data);
+
+ NTAG215File encoded_tag_data{};
+
+ // Generate tag HMAC
+ constexpr std::size_t input_length = DYNAMIC_LOCK_START - UUID_START;
+ constexpr std::size_t input_length2 = HMAC_TAG_START - WRITE_COUNTER_START;
+ mbedtls_md_hmac(mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), tag_keys.hmac_key.data(),
+ sizeof(HmacKey), reinterpret_cast<const unsigned char*>(&tag_data.uid),
+ input_length, reinterpret_cast<unsigned char*>(&encoded_tag_data.hmac_tag));
+
+ // Init mbedtls HMAC context
+ mbedtls_md_context_t ctx;
+ mbedtls_md_init(&ctx);
+ mbedtls_md_setup(&ctx, mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), 1);
+
+ // Generate data HMAC
+ mbedtls_md_hmac_starts(&ctx, data_keys.hmac_key.data(), sizeof(HmacKey));
+ mbedtls_md_hmac_update(&ctx, reinterpret_cast<const unsigned char*>(&tag_data.write_counter),
+ input_length2); // Data
+ mbedtls_md_hmac_update(&ctx, reinterpret_cast<unsigned char*>(&encoded_tag_data.hmac_tag),
+ sizeof(HashData)); // Tag HMAC
+ mbedtls_md_hmac_update(&ctx, reinterpret_cast<const unsigned char*>(&tag_data.uid),
+ input_length);
+ mbedtls_md_hmac_finish(&ctx, reinterpret_cast<unsigned char*>(&encoded_tag_data.hmac_data));
+
+ // HMAC cleanup
+ mbedtls_md_free(&ctx);
+
+ // Encrypt
+ Cipher(data_keys, tag_data, encoded_tag_data);
+
+ // Convert back to hardware
+ encrypted_tag_data = EncodedDataToNfcData(encoded_tag_data);
+
+ return true;
+}
+
+} // namespace Service::NFP::AmiiboCrypto
diff --git a/src/core/hle/service/nfc/common/amiibo_crypto.h b/src/core/hle/service/nfc/common/amiibo_crypto.h
new file mode 100644
index 000000000..6a3e0841e
--- /dev/null
+++ b/src/core/hle/service/nfc/common/amiibo_crypto.h
@@ -0,0 +1,101 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <array>
+
+#include "core/hle/service/nfp/nfp_types.h"
+
+struct mbedtls_md_context_t;
+
+namespace Service::NFP::AmiiboCrypto {
+// Byte locations in Service::NFP::NTAG215File
+constexpr std::size_t HMAC_DATA_START = 0x8;
+constexpr std::size_t SETTINGS_START = 0x2c;
+constexpr std::size_t WRITE_COUNTER_START = 0x29;
+constexpr std::size_t HMAC_TAG_START = 0x1B4;
+constexpr std::size_t UUID_START = 0x1D4;
+constexpr std::size_t DYNAMIC_LOCK_START = 0x208;
+
+using HmacKey = std::array<u8, 0x10>;
+using DrgbOutput = std::array<u8, 0x20>;
+
+struct HashSeed {
+ u16_be magic;
+ std::array<u8, 0xE> padding;
+ TagUuid uid_1;
+ TagUuid uid_2;
+ std::array<u8, 0x20> keygen_salt;
+};
+static_assert(sizeof(HashSeed) == 0x40, "HashSeed is an invalid size");
+
+struct InternalKey {
+ HmacKey hmac_key;
+ std::array<char, 0xE> type_string;
+ u8 reserved;
+ u8 magic_length;
+ std::array<u8, 0x10> magic_bytes;
+ std::array<u8, 0x20> xor_pad;
+};
+static_assert(sizeof(InternalKey) == 0x50, "InternalKey is an invalid size");
+static_assert(std::is_trivially_copyable_v<InternalKey>, "InternalKey must be trivially copyable.");
+
+struct CryptoCtx {
+ std::array<char, 480> buffer;
+ bool used;
+ std::size_t buffer_size;
+ s16 counter;
+};
+
+struct DerivedKeys {
+ std::array<u8, 0x10> aes_key;
+ std::array<u8, 0x10> aes_iv;
+ std::array<u8, 0x10> hmac_key;
+};
+static_assert(sizeof(DerivedKeys) == 0x30, "DerivedKeys is an invalid size");
+
+/// Validates that the amiibo file is not corrupted
+bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file);
+
+/// Validates that the amiibo file is not corrupted
+bool IsAmiiboValid(const NTAG215File& ntag_file);
+
+/// Converts from encrypted file format to encoded file format
+NTAG215File NfcDataToEncodedData(const EncryptedNTAG215File& nfc_data);
+
+/// Converts from encoded file format to encrypted file format
+EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data);
+
+// Generates Seed needed for key derivation
+HashSeed GetSeed(const NTAG215File& data);
+
+// Middle step on the generation of derived keys
+std::vector<u8> GenerateInternalKey(const InternalKey& key, const HashSeed& seed);
+
+// Initializes mbedtls context
+void CryptoInit(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, const HmacKey& hmac_key,
+ const std::vector<u8>& seed);
+
+// Feeds data to mbedtls context to generate the derived key
+void CryptoStep(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, DrgbOutput& output);
+
+// Generates the derived key from amiibo data
+DerivedKeys GenerateKey(const InternalKey& key, const NTAG215File& data);
+
+// Encodes or decodes amiibo data
+void Cipher(const DerivedKeys& keys, const NTAG215File& in_data, NTAG215File& out_data);
+
+/// Loads both amiibo keys from key_retail.bin
+bool LoadKeys(InternalKey& locked_secret, InternalKey& unfixed_info);
+
+/// Returns true if key_retail.bin exist
+bool IsKeyAvailable();
+
+/// Decodes encrypted amiibo data returns true if output is valid
+bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data);
+
+/// Encodes plain amiibo data returns true if output is valid
+bool EncodeAmiibo(const NTAG215File& tag_data, EncryptedNTAG215File& encrypted_tag_data);
+
+} // namespace Service::NFP::AmiiboCrypto
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp
new file mode 100644
index 000000000..5bf289818
--- /dev/null
+++ b/src/core/hle/service/nfc/common/device.cpp
@@ -0,0 +1,1483 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4701) // Potentially uninitialized local variable 'result' used
+#endif
+
+#include <boost/crc.hpp>
+
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
+#include <fmt/format.h>
+
+#include "common/fs/file.h"
+#include "common/fs/fs.h"
+#include "common/fs/path_util.h"
+#include "common/input.h"
+#include "common/logging/log.h"
+#include "common/string_util.h"
+#include "common/tiny_mt.h"
+#include "core/core.h"
+#include "core/hid/emulated_controller.h"
+#include "core/hid/hid_core.h"
+#include "core/hid/hid_types.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/mii/mii_manager.h"
+#include "core/hle/service/mii/types.h"
+#include "core/hle/service/nfc/common/amiibo_crypto.h"
+#include "core/hle/service/nfc/common/device.h"
+#include "core/hle/service/nfc/mifare_result.h"
+#include "core/hle/service/nfc/nfc_result.h"
+#include "core/hle/service/time/time_manager.h"
+#include "core/hle/service/time/time_zone_content_manager.h"
+#include "core/hle/service/time/time_zone_types.h"
+
+namespace Service::NFC {
+NfcDevice::NfcDevice(Core::HID::NpadIdType npad_id_, Core::System& system_,
+ KernelHelpers::ServiceContext& service_context_,
+ Kernel::KEvent* availability_change_event_)
+ : npad_id{npad_id_}, system{system_}, service_context{service_context_},
+ availability_change_event{availability_change_event_} {
+ activate_event = service_context.CreateEvent("NFC:ActivateEvent");
+ deactivate_event = service_context.CreateEvent("NFC:DeactivateEvent");
+ npad_device = system.HIDCore().GetEmulatedController(npad_id);
+
+ Core::HID::ControllerUpdateCallback engine_callback{
+ .on_change = [this](Core::HID::ControllerTriggerType type) { NpadUpdate(type); },
+ .is_npad_service = false,
+ };
+ is_controller_set = true;
+ callback_key = npad_device->SetCallback(engine_callback);
+}
+
+NfcDevice::~NfcDevice() {
+ service_context.CloseEvent(activate_event);
+ service_context.CloseEvent(deactivate_event);
+ if (!is_controller_set) {
+ return;
+ }
+ npad_device->DeleteCallback(callback_key);
+ is_controller_set = false;
+};
+
+void NfcDevice::NpadUpdate(Core::HID::ControllerTriggerType type) {
+ if (!is_initalized) {
+ return;
+ }
+
+ if (type == Core::HID::ControllerTriggerType::Connected) {
+ Initialize();
+ availability_change_event->Signal();
+ return;
+ }
+
+ if (type == Core::HID::ControllerTriggerType::Disconnected) {
+ device_state = DeviceState::Unavailable;
+ availability_change_event->Signal();
+ return;
+ }
+
+ if (type != Core::HID::ControllerTriggerType::Nfc) {
+ return;
+ }
+
+ if (!npad_device->IsConnected()) {
+ return;
+ }
+
+ const auto nfc_status = npad_device->GetNfc();
+ switch (nfc_status.state) {
+ case Common::Input::NfcState::NewAmiibo:
+ LoadNfcTag(nfc_status.protocol, nfc_status.tag_type, nfc_status.uuid_length,
+ nfc_status.uuid);
+ break;
+ case Common::Input::NfcState::AmiiboRemoved:
+ if (device_state == DeviceState::Initialized || device_state == DeviceState::TagRemoved) {
+ break;
+ }
+ if (device_state != DeviceState::SearchingForTag) {
+ CloseNfcTag();
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+bool NfcDevice::LoadNfcTag(u8 protocol, u8 tag_type, u8 uuid_length, UniqueSerialNumber uuid) {
+ if (device_state != DeviceState::SearchingForTag) {
+ LOG_ERROR(Service_NFC, "Game is not looking for nfc tag, current state {}", device_state);
+ return false;
+ }
+
+ if ((protocol & static_cast<u8>(allowed_protocols)) == 0) {
+ LOG_ERROR(Service_NFC, "Protocol not supported {}", protocol);
+ return false;
+ }
+
+ real_tag_info = {
+ .uuid = uuid,
+ .uuid_length = uuid_length,
+ .protocol = static_cast<NfcProtocol>(protocol),
+ .tag_type = static_cast<TagType>(tag_type),
+ };
+
+ device_state = DeviceState::TagFound;
+ deactivate_event->GetReadableEvent().Clear();
+ activate_event->Signal();
+ return true;
+}
+
+bool NfcDevice::LoadAmiiboData() {
+ std::vector<u8> data{};
+
+ if (!npad_device->ReadAmiiboData(data)) {
+ return false;
+ }
+
+ if (data.size() < sizeof(NFP::EncryptedNTAG215File)) {
+ LOG_ERROR(Service_NFC, "Not an amiibo, size={}", data.size());
+ return false;
+ }
+
+ memcpy(&tag_data, data.data(), sizeof(NFP::EncryptedNTAG215File));
+ is_plain_amiibo = NFP::AmiiboCrypto::IsAmiiboValid(tag_data);
+ is_write_protected = false;
+
+ // Fallback for plain amiibos
+ if (is_plain_amiibo) {
+ LOG_INFO(Service_NFP, "Using plain amiibo");
+ encrypted_tag_data = NFP::AmiiboCrypto::EncodedDataToNfcData(tag_data);
+ return true;
+ }
+
+ // Fallback for encrypted amiibos without keys
+ if (!NFP::AmiiboCrypto::IsKeyAvailable()) {
+ LOG_INFO(Service_NFC, "Loading amiibo without keys");
+ memcpy(&encrypted_tag_data, data.data(), sizeof(NFP::EncryptedNTAG215File));
+ BuildAmiiboWithoutKeys(tag_data, encrypted_tag_data);
+ is_plain_amiibo = true;
+ is_write_protected = true;
+ return true;
+ }
+
+ LOG_INFO(Service_NFP, "Using encrypted amiibo");
+ tag_data = {};
+ memcpy(&encrypted_tag_data, data.data(), sizeof(NFP::EncryptedNTAG215File));
+ return true;
+}
+
+void NfcDevice::CloseNfcTag() {
+ LOG_INFO(Service_NFC, "Remove nfc tag");
+
+ if (device_state == DeviceState::TagMounted) {
+ Unmount();
+ }
+
+ device_state = DeviceState::TagRemoved;
+ encrypted_tag_data = {};
+ tag_data = {};
+ activate_event->GetReadableEvent().Clear();
+ deactivate_event->Signal();
+}
+
+Kernel::KReadableEvent& NfcDevice::GetActivateEvent() const {
+ return activate_event->GetReadableEvent();
+}
+
+Kernel::KReadableEvent& NfcDevice::GetDeactivateEvent() const {
+ return deactivate_event->GetReadableEvent();
+}
+
+void NfcDevice::Initialize() {
+ device_state = npad_device->HasNfc() ? DeviceState::Initialized : DeviceState::Unavailable;
+ encrypted_tag_data = {};
+ tag_data = {};
+
+ if (device_state != DeviceState::Initialized) {
+ return;
+ }
+
+ is_initalized = npad_device->AddNfcHandle();
+}
+
+void NfcDevice::Finalize() {
+ if (device_state == DeviceState::TagMounted) {
+ Unmount();
+ }
+ if (device_state == DeviceState::SearchingForTag || device_state == DeviceState::TagRemoved) {
+ StopDetection();
+ }
+
+ if (device_state != DeviceState::Unavailable) {
+ npad_device->RemoveNfcHandle();
+ }
+
+ device_state = DeviceState::Unavailable;
+ is_initalized = false;
+}
+
+Result NfcDevice::StartDetection(NfcProtocol allowed_protocol) {
+ if (device_state != DeviceState::Initialized && device_state != DeviceState::TagRemoved) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (!npad_device->StartNfcPolling()) {
+ LOG_ERROR(Service_NFC, "Nfc polling not supported");
+ return ResultNfcDisabled;
+ }
+
+ device_state = DeviceState::SearchingForTag;
+ allowed_protocols = allowed_protocol;
+ return ResultSuccess;
+}
+
+Result NfcDevice::StopDetection() {
+ if (device_state == DeviceState::Initialized) {
+ return ResultSuccess;
+ }
+
+ if (device_state == DeviceState::TagFound || device_state == DeviceState::TagMounted) {
+ CloseNfcTag();
+ }
+
+ if (device_state == DeviceState::SearchingForTag || device_state == DeviceState::TagRemoved) {
+ npad_device->StopNfcPolling();
+ device_state = DeviceState::Initialized;
+ return ResultSuccess;
+ }
+
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ return ResultWrongDeviceState;
+}
+
+Result NfcDevice::GetTagInfo(NFP::TagInfo& tag_info) const {
+ if (device_state != DeviceState::TagFound && device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ tag_info = real_tag_info;
+
+ // Generate random UUID to bypass amiibo load limits
+ if (real_tag_info.tag_type == TagType::Type2 && Settings::values.random_amiibo_id) {
+ Common::TinyMT rng{};
+ rng.Initialize(static_cast<u32>(GetCurrentPosixTime()));
+ rng.GenerateRandomBytes(tag_info.uuid.data(), tag_info.uuid_length);
+ }
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::ReadMifare(std::span<const MifareReadBlockParameter> parameters,
+ std::span<MifareReadBlockData> read_block_data) const {
+ if (device_state != DeviceState::TagFound && device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ Result result = ResultSuccess;
+
+ TagInfo tag_info{};
+ result = GetTagInfo(tag_info);
+
+ if (result.IsError()) {
+ return result;
+ }
+
+ if (tag_info.protocol != NfcProtocol::TypeA || tag_info.tag_type != TagType::Mifare) {
+ return ResultInvalidTagType;
+ }
+
+ if (parameters.size() == 0) {
+ return ResultInvalidArgument;
+ }
+
+ Common::Input::MifareRequest request{};
+ Common::Input::MifareRequest out_data{};
+ const auto unknown = parameters[0].sector_key.unknown;
+ for (std::size_t i = 0; i < parameters.size(); i++) {
+ if (unknown != parameters[i].sector_key.unknown) {
+ return ResultInvalidArgument;
+ }
+ }
+
+ for (std::size_t i = 0; i < parameters.size(); i++) {
+ if (parameters[i].sector_key.command == MifareCmd::None) {
+ continue;
+ }
+ request.data[i].command = static_cast<u8>(parameters[i].sector_key.command);
+ request.data[i].sector = parameters[i].sector_number;
+ memcpy(request.data[i].key.data(), parameters[i].sector_key.sector_key.data(),
+ sizeof(KeyData));
+ }
+
+ if (!npad_device->ReadMifareData(request, out_data)) {
+ return ResultMifareError288;
+ }
+
+ for (std::size_t i = 0; i < read_block_data.size(); i++) {
+ if (static_cast<MifareCmd>(out_data.data[i].command) == MifareCmd::None) {
+ continue;
+ }
+
+ read_block_data[i] = {
+ .data = out_data.data[i].data,
+ .sector_number = out_data.data[i].sector,
+ };
+ }
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::WriteMifare(std::span<const MifareWriteBlockParameter> parameters) {
+ Result result = ResultSuccess;
+
+ TagInfo tag_info{};
+ result = GetTagInfo(tag_info);
+
+ if (result.IsError()) {
+ return result;
+ }
+
+ if (tag_info.protocol != NfcProtocol::TypeA || tag_info.tag_type != TagType::Mifare) {
+ return ResultInvalidTagType;
+ }
+
+ if (parameters.size() == 0) {
+ return ResultInvalidArgument;
+ }
+
+ const auto unknown = parameters[0].sector_key.unknown;
+ for (std::size_t i = 0; i < parameters.size(); i++) {
+ if (unknown != parameters[i].sector_key.unknown) {
+ return ResultInvalidArgument;
+ }
+ }
+
+ Common::Input::MifareRequest request{};
+ for (std::size_t i = 0; i < parameters.size(); i++) {
+ if (parameters[i].sector_key.command == MifareCmd::None) {
+ continue;
+ }
+ request.data[i].command = static_cast<u8>(parameters[i].sector_key.command);
+ request.data[i].sector = parameters[i].sector_number;
+ memcpy(request.data[i].key.data(), parameters[i].sector_key.sector_key.data(),
+ sizeof(KeyData));
+ memcpy(request.data[i].data.data(), parameters[i].data.data(), sizeof(KeyData));
+ }
+
+ if (!npad_device->WriteMifareData(request)) {
+ return ResultMifareError288;
+ }
+
+ return result;
+}
+
+Result NfcDevice::SendCommandByPassThrough(const Time::Clock::TimeSpanType& timeout,
+ std::span<const u8> command_data,
+ std::span<u8> out_data) {
+ // Not implemented
+ return ResultSuccess;
+}
+
+Result NfcDevice::Mount(NFP::ModelType model_type, NFP::MountTarget mount_target_) {
+ if (device_state != DeviceState::TagFound) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (!LoadAmiiboData()) {
+ LOG_ERROR(Service_NFP, "Not an amiibo");
+ return ResultInvalidTagType;
+ }
+
+ if (!NFP::AmiiboCrypto::IsAmiiboValid(encrypted_tag_data)) {
+ LOG_ERROR(Service_NFP, "Not an amiibo");
+ return ResultInvalidTagType;
+ }
+
+ // The loaded amiibo is not encrypted
+ if (is_plain_amiibo) {
+ std::vector<u8> data(sizeof(NFP::NTAG215File));
+ memcpy(data.data(), &tag_data, sizeof(tag_data));
+ WriteBackupData(tag_data.uid, data);
+
+ device_state = DeviceState::TagMounted;
+ mount_target = mount_target_;
+ return ResultSuccess;
+ }
+
+ if (!NFP::AmiiboCrypto::DecodeAmiibo(encrypted_tag_data, tag_data)) {
+ bool has_backup = HasBackup(encrypted_tag_data.uuid).IsSuccess();
+ LOG_ERROR(Service_NFP, "Can't decode amiibo, has_backup= {}", has_backup);
+ return has_backup ? ResultCorruptedDataWithBackup : ResultCorruptedData;
+ }
+
+ std::vector<u8> data(sizeof(NFP::EncryptedNTAG215File));
+ memcpy(data.data(), &encrypted_tag_data, sizeof(encrypted_tag_data));
+ WriteBackupData(encrypted_tag_data.uuid, data);
+
+ device_state = DeviceState::TagMounted;
+ mount_target = mount_target_;
+ return ResultSuccess;
+}
+
+Result NfcDevice::Unmount() {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ // Save data before unloading the amiibo
+ if (is_data_moddified) {
+ Flush();
+ }
+
+ device_state = DeviceState::TagFound;
+ mount_target = NFP::MountTarget::None;
+ is_app_area_open = false;
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::Flush() {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ auto& settings = tag_data.settings;
+
+ const auto& current_date = GetAmiiboDate(GetCurrentPosixTime());
+ if (settings.write_date.raw_date != current_date.raw_date) {
+ settings.write_date = current_date;
+ UpdateSettingsCrc();
+ }
+
+ tag_data.write_counter++;
+
+ const auto result = FlushWithBreak(NFP::BreakType::Normal);
+
+ is_data_moddified = false;
+
+ return result;
+}
+
+Result NfcDevice::FlushDebug() {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ tag_data.write_counter++;
+
+ const auto result = FlushWithBreak(NFP::BreakType::Normal);
+
+ is_data_moddified = false;
+
+ return result;
+}
+
+Result NfcDevice::FlushWithBreak(NFP::BreakType break_type) {
+ if (break_type != NFP::BreakType::Normal) {
+ LOG_ERROR(Service_NFC, "Break type not implemented {}", break_type);
+ return ResultWrongDeviceState;
+ }
+
+ if (is_write_protected) {
+ LOG_ERROR(Service_NFP, "No keys available skipping write request");
+ return ResultSuccess;
+ }
+
+ std::vector<u8> data(sizeof(NFP::EncryptedNTAG215File));
+ if (is_plain_amiibo) {
+ memcpy(data.data(), &tag_data, sizeof(tag_data));
+ WriteBackupData(tag_data.uid, data);
+ } else {
+ if (!NFP::AmiiboCrypto::EncodeAmiibo(tag_data, encrypted_tag_data)) {
+ LOG_ERROR(Service_NFP, "Failed to encode data");
+ return ResultWriteAmiiboFailed;
+ }
+
+ memcpy(data.data(), &encrypted_tag_data, sizeof(encrypted_tag_data));
+ WriteBackupData(encrypted_tag_data.uuid, data);
+ }
+
+ if (!npad_device->WriteNfc(data)) {
+ LOG_ERROR(Service_NFP, "Error writing to file");
+ return ResultWriteAmiiboFailed;
+ }
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::Restore() {
+ if (device_state != DeviceState::TagFound) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ NFC::TagInfo tag_info{};
+ std::array<u8, sizeof(NFP::EncryptedNTAG215File)> data{};
+ Result result = GetTagInfo(tag_info);
+
+ if (result.IsError()) {
+ return result;
+ }
+
+ result = ReadBackupData(tag_info.uuid, tag_info.uuid_length, data);
+
+ if (result.IsError()) {
+ return result;
+ }
+
+ NFP::NTAG215File temporary_tag_data{};
+ NFP::EncryptedNTAG215File temporary_encrypted_tag_data{};
+
+ // Fallback for encrypted amiibos without keys
+ if (is_write_protected) {
+ return ResultWriteAmiiboFailed;
+ }
+
+ // Fallback for plain amiibos
+ if (is_plain_amiibo) {
+ LOG_INFO(Service_NFP, "Restoring backup of plain amiibo");
+ memcpy(&temporary_tag_data, data.data(), sizeof(NFP::EncryptedNTAG215File));
+ temporary_encrypted_tag_data = NFP::AmiiboCrypto::EncodedDataToNfcData(temporary_tag_data);
+ }
+
+ if (!is_plain_amiibo) {
+ LOG_INFO(Service_NFP, "Restoring backup of encrypted amiibo");
+ temporary_tag_data = {};
+ memcpy(&temporary_encrypted_tag_data, data.data(), sizeof(NFP::EncryptedNTAG215File));
+ }
+
+ if (!NFP::AmiiboCrypto::IsAmiiboValid(temporary_encrypted_tag_data)) {
+ return ResultInvalidTagType;
+ }
+
+ if (!is_plain_amiibo) {
+ if (!NFP::AmiiboCrypto::DecodeAmiibo(temporary_encrypted_tag_data, temporary_tag_data)) {
+ LOG_ERROR(Service_NFP, "Can't decode amiibo");
+ return ResultCorruptedData;
+ }
+ }
+
+ // Overwrite tag contents with backup and mount the tag
+ tag_data = temporary_tag_data;
+ encrypted_tag_data = temporary_encrypted_tag_data;
+ device_state = DeviceState::TagMounted;
+ mount_target = NFP::MountTarget::All;
+ is_data_moddified = true;
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetCommonInfo(NFP::CommonInfo& common_info) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ const auto& settings = tag_data.settings;
+
+ // TODO: Validate this data
+ common_info = {
+ .last_write_date = settings.write_date.GetWriteDate(),
+ .write_counter = tag_data.application_write_counter,
+ .version = tag_data.amiibo_version,
+ .application_area_size = sizeof(NFP::ApplicationArea),
+ };
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetModelInfo(NFP::ModelInfo& model_info) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ const auto& model_info_data = encrypted_tag_data.user_memory.model_info;
+
+ model_info = {
+ .character_id = model_info_data.character_id,
+ .character_variant = model_info_data.character_variant,
+ .amiibo_type = model_info_data.amiibo_type,
+ .model_number = model_info_data.model_number,
+ .series = model_info_data.series,
+ };
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetRegisterInfo(NFP::RegisterInfo& register_info) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.amiibo_initialized == 0) {
+ return ResultRegistrationIsNotInitialized;
+ }
+
+ Service::Mii::MiiManager manager;
+ const auto& settings = tag_data.settings;
+
+ // TODO: Validate this data
+ register_info = {
+ .mii_char_info = manager.ConvertV3ToCharInfo(tag_data.owner_mii),
+ .creation_date = settings.init_date.GetWriteDate(),
+ .amiibo_name = GetAmiiboName(settings),
+ .font_region = settings.settings.font_region,
+ };
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetRegisterInfoPrivate(NFP::RegisterInfoPrivate& register_info) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.amiibo_initialized == 0) {
+ return ResultRegistrationIsNotInitialized;
+ }
+
+ Service::Mii::MiiManager manager;
+ const auto& settings = tag_data.settings;
+
+ // TODO: Validate and complete this data
+ register_info = {
+ .mii_store_data = {},
+ .creation_date = settings.init_date.GetWriteDate(),
+ .amiibo_name = GetAmiiboName(settings),
+ .font_region = settings.settings.font_region,
+ };
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetAdminInfo(NFP::AdminInfo& admin_info) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ u8 flags = static_cast<u8>(tag_data.settings.settings.raw >> 0x4);
+ if (tag_data.settings.settings.amiibo_initialized == 0) {
+ flags = flags & 0xfe;
+ }
+
+ u64 application_id = 0;
+ u32 application_area_id = 0;
+ NFP::AppAreaVersion app_area_version = NFP::AppAreaVersion::NotSet;
+ if (tag_data.settings.settings.appdata_initialized != 0) {
+ application_id = tag_data.application_id;
+ app_area_version = static_cast<NFP::AppAreaVersion>(
+ application_id >> NFP::application_id_version_offset & 0xf);
+
+ // Restore application id to original value
+ if (application_id >> 0x38 != 0) {
+ const u8 application_byte = tag_data.application_id_byte & 0xf;
+ application_id =
+ RemoveVersionByte(application_id) |
+ (static_cast<u64>(application_byte) << NFP::application_id_version_offset);
+ }
+
+ application_area_id = tag_data.application_area_id;
+ }
+
+ // TODO: Validate this data
+ admin_info = {
+ .application_id = application_id,
+ .application_area_id = application_area_id,
+ .crc_change_counter = tag_data.settings.crc_counter,
+ .flags = flags,
+ .tag_type = PackedTagType::Type2,
+ .app_area_version = app_area_version,
+ };
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::DeleteRegisterInfo() {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.amiibo_initialized == 0) {
+ return ResultRegistrationIsNotInitialized;
+ }
+
+ Common::TinyMT rng{};
+ rng.Initialize(static_cast<u32>(GetCurrentPosixTime()));
+ rng.GenerateRandomBytes(&tag_data.owner_mii, sizeof(tag_data.owner_mii));
+ rng.GenerateRandomBytes(&tag_data.settings.amiibo_name, sizeof(tag_data.settings.amiibo_name));
+ rng.GenerateRandomBytes(&tag_data.unknown, sizeof(u8));
+ rng.GenerateRandomBytes(&tag_data.unknown2[0], sizeof(u32));
+ rng.GenerateRandomBytes(&tag_data.unknown2[1], sizeof(u32));
+ rng.GenerateRandomBytes(&tag_data.register_info_crc, sizeof(u32));
+ rng.GenerateRandomBytes(&tag_data.settings.init_date, sizeof(u32));
+ tag_data.settings.settings.font_region.Assign(0);
+ tag_data.settings.settings.amiibo_initialized.Assign(0);
+
+ return Flush();
+}
+
+Result NfcDevice::SetRegisterInfoPrivate(const NFP::RegisterInfoPrivate& register_info) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ Service::Mii::MiiManager manager;
+ const auto mii = manager.BuildDefault(0);
+ auto& settings = tag_data.settings;
+
+ if (tag_data.settings.settings.amiibo_initialized == 0) {
+ settings.init_date = GetAmiiboDate(GetCurrentPosixTime());
+ settings.write_date.raw_date = 0;
+ }
+
+ SetAmiiboName(settings, register_info.amiibo_name);
+ tag_data.owner_mii = manager.BuildFromStoreData(mii);
+ tag_data.mii_extension = manager.SetFromStoreData(mii);
+ tag_data.unknown = 0;
+ tag_data.unknown2 = {};
+ settings.country_code_id = 0;
+ settings.settings.font_region.Assign(0);
+ settings.settings.amiibo_initialized.Assign(1);
+
+ UpdateRegisterInfoCrc();
+
+ return Flush();
+}
+
+Result NfcDevice::RestoreAmiibo() {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ // TODO: Load amiibo from backup on system
+ LOG_ERROR(Service_NFP, "Not Implemented");
+ return ResultSuccess;
+}
+
+Result NfcDevice::Format() {
+ auto result1 = DeleteApplicationArea();
+ auto result2 = DeleteRegisterInfo();
+
+ if (result1.IsError()) {
+ return result1;
+ }
+
+ if (result2.IsError()) {
+ return result2;
+ }
+
+ return Flush();
+}
+
+Result NfcDevice::OpenApplicationArea(u32 access_id) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
+ LOG_WARNING(Service_NFP, "Application area is not initialized");
+ return ResultApplicationAreaIsNotInitialized;
+ }
+
+ if (tag_data.application_area_id != access_id) {
+ LOG_WARNING(Service_NFP, "Wrong application area id");
+ return ResultWrongApplicationAreaId;
+ }
+
+ is_app_area_open = true;
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetApplicationAreaId(u32& application_area_id) const {
+ application_area_id = {};
+
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
+ LOG_WARNING(Service_NFP, "Application area is not initialized");
+ return ResultApplicationAreaIsNotInitialized;
+ }
+
+ application_area_id = tag_data.application_area_id;
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetApplicationArea(std::span<u8> data) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (!is_app_area_open) {
+ LOG_ERROR(Service_NFP, "Application area is not open");
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
+ LOG_ERROR(Service_NFP, "Application area is not initialized");
+ return ResultApplicationAreaIsNotInitialized;
+ }
+
+ memcpy(data.data(), tag_data.application_area.data(),
+ std::min(data.size(), sizeof(NFP::ApplicationArea)));
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::SetApplicationArea(std::span<const u8> data) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (!is_app_area_open) {
+ LOG_ERROR(Service_NFP, "Application area is not open");
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
+ LOG_ERROR(Service_NFP, "Application area is not initialized");
+ return ResultApplicationAreaIsNotInitialized;
+ }
+
+ if (data.size() > sizeof(NFP::ApplicationArea)) {
+ LOG_ERROR(Service_NFP, "Wrong data size {}", data.size());
+ return ResultUnknown;
+ }
+
+ Common::TinyMT rng{};
+ rng.Initialize(static_cast<u32>(GetCurrentPosixTime()));
+ std::memcpy(tag_data.application_area.data(), data.data(), data.size());
+ // Fill remaining data with random numbers
+ rng.GenerateRandomBytes(tag_data.application_area.data() + data.size(),
+ sizeof(NFP::ApplicationArea) - data.size());
+
+ if (tag_data.application_write_counter != NFP::counter_limit) {
+ tag_data.application_write_counter++;
+ }
+
+ is_data_moddified = true;
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::CreateApplicationArea(u32 access_id, std::span<const u8> data) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.appdata_initialized.Value() != 0) {
+ LOG_ERROR(Service_NFP, "Application area already exist");
+ return ResultApplicationAreaExist;
+ }
+
+ return RecreateApplicationArea(access_id, data);
+}
+
+Result NfcDevice::RecreateApplicationArea(u32 access_id, std::span<const u8> data) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (is_app_area_open) {
+ LOG_ERROR(Service_NFP, "Application area is open");
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (data.size() > sizeof(NFP::ApplicationArea)) {
+ LOG_ERROR(Service_NFP, "Wrong data size {}", data.size());
+ return ResultWrongApplicationAreaSize;
+ }
+
+ Common::TinyMT rng{};
+ rng.Initialize(static_cast<u32>(GetCurrentPosixTime()));
+ std::memcpy(tag_data.application_area.data(), data.data(), data.size());
+ // Fill remaining data with random numbers
+ rng.GenerateRandomBytes(tag_data.application_area.data() + data.size(),
+ sizeof(NFP::ApplicationArea) - data.size());
+
+ if (tag_data.application_write_counter != NFP::counter_limit) {
+ tag_data.application_write_counter++;
+ }
+
+ const u64 application_id = system.GetApplicationProcessProgramID();
+
+ tag_data.application_id_byte =
+ static_cast<u8>(application_id >> NFP::application_id_version_offset & 0xf);
+ tag_data.application_id =
+ RemoveVersionByte(application_id) | (static_cast<u64>(NFP::AppAreaVersion::NintendoSwitch)
+ << NFP::application_id_version_offset);
+ tag_data.settings.settings.appdata_initialized.Assign(1);
+ tag_data.application_area_id = access_id;
+ tag_data.unknown = {};
+ tag_data.unknown2 = {};
+
+ UpdateRegisterInfoCrc();
+
+ return Flush();
+}
+
+Result NfcDevice::DeleteApplicationArea() {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ if (tag_data.settings.settings.appdata_initialized == 0) {
+ return ResultApplicationAreaIsNotInitialized;
+ }
+
+ if (tag_data.application_write_counter != NFP::counter_limit) {
+ tag_data.application_write_counter++;
+ }
+
+ Common::TinyMT rng{};
+ rng.Initialize(static_cast<u32>(GetCurrentPosixTime()));
+ rng.GenerateRandomBytes(tag_data.application_area.data(), sizeof(NFP::ApplicationArea));
+ rng.GenerateRandomBytes(&tag_data.application_id, sizeof(u64));
+ rng.GenerateRandomBytes(&tag_data.application_area_id, sizeof(u32));
+ rng.GenerateRandomBytes(&tag_data.application_id_byte, sizeof(u8));
+ tag_data.settings.settings.appdata_initialized.Assign(0);
+ tag_data.unknown = {};
+ tag_data.unknown2 = {};
+ is_app_area_open = false;
+
+ UpdateRegisterInfoCrc();
+
+ return Flush();
+}
+
+Result NfcDevice::ExistsApplicationArea(bool& has_application_area) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ has_application_area = tag_data.settings.settings.appdata_initialized.Value() != 0;
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::GetAll(NFP::NfpData& data) const {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ NFP::CommonInfo common_info{};
+ const u64 application_id = tag_data.application_id;
+
+ GetCommonInfo(common_info);
+
+ data = {
+ .magic = tag_data.constant_value,
+ .write_counter = tag_data.write_counter,
+ .settings_crc = tag_data.settings.crc,
+ .common_info = common_info,
+ .mii_char_info = tag_data.owner_mii,
+ .mii_store_data_extension = tag_data.mii_extension,
+ .creation_date = tag_data.settings.init_date.GetWriteDate(),
+ .amiibo_name = tag_data.settings.amiibo_name,
+ .amiibo_name_null_terminated = 0,
+ .settings = tag_data.settings.settings,
+ .unknown1 = tag_data.unknown,
+ .register_info_crc = tag_data.register_info_crc,
+ .unknown2 = tag_data.unknown2,
+ .application_id = application_id,
+ .access_id = tag_data.application_area_id,
+ .settings_crc_counter = tag_data.settings.crc_counter,
+ .font_region = tag_data.settings.settings.font_region,
+ .tag_type = PackedTagType::Type2,
+ .console_type = static_cast<NFP::AppAreaVersion>(
+ application_id >> NFP::application_id_version_offset & 0xf),
+ .application_id_byte = tag_data.application_id_byte,
+ .application_area = tag_data.application_area,
+ };
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::SetAll(const NFP::NfpData& data) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ tag_data.constant_value = data.magic;
+ tag_data.write_counter = data.write_counter;
+ tag_data.settings.crc = data.settings_crc;
+ tag_data.settings.write_date.SetWriteDate(data.common_info.last_write_date);
+ tag_data.write_counter = data.common_info.write_counter;
+ tag_data.amiibo_version = data.common_info.version;
+ tag_data.owner_mii = data.mii_char_info;
+ tag_data.mii_extension = data.mii_store_data_extension;
+ tag_data.settings.init_date.SetWriteDate(data.creation_date);
+ tag_data.settings.amiibo_name = data.amiibo_name;
+ tag_data.settings.settings = data.settings;
+ tag_data.unknown = data.unknown1;
+ tag_data.register_info_crc = data.register_info_crc;
+ tag_data.unknown2 = data.unknown2;
+ tag_data.application_id = data.application_id;
+ tag_data.application_area_id = data.access_id;
+ tag_data.settings.crc_counter = data.settings_crc_counter;
+ tag_data.settings.settings.font_region.Assign(data.font_region);
+ tag_data.application_id_byte = data.application_id_byte;
+ tag_data.application_area = data.application_area;
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::BreakTag(NFP::BreakType break_type) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ // TODO: Complete this implementation
+
+ return FlushWithBreak(break_type);
+}
+
+Result NfcDevice::HasBackup(const UniqueSerialNumber& uid, std::size_t uuid_size) const {
+ ASSERT_MSG(uuid_size < sizeof(UniqueSerialNumber), "Invalid UUID size");
+ constexpr auto backup_dir = "backup";
+ const auto yuzu_amiibo_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::AmiiboDir);
+ const auto file_name =
+ fmt::format("{0:02x}.bin", fmt::join(uid.begin(), uid.begin() + uuid_size, ""));
+
+ if (!Common::FS::Exists(yuzu_amiibo_dir / backup_dir / file_name)) {
+ return ResultUnableToAccessBackupFile;
+ }
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::HasBackup(const NFP::TagUuid& tag_uid) const {
+ UniqueSerialNumber uuid{};
+ memcpy(uuid.data(), &tag_uid, sizeof(NFP::TagUuid));
+ return HasBackup(uuid, sizeof(NFP::TagUuid));
+}
+
+Result NfcDevice::ReadBackupData(const UniqueSerialNumber& uid, std::size_t uuid_size,
+ std::span<u8> data) const {
+ ASSERT_MSG(uuid_size < sizeof(UniqueSerialNumber), "Invalid UUID size");
+ constexpr auto backup_dir = "backup";
+ const auto yuzu_amiibo_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::AmiiboDir);
+ const auto file_name =
+ fmt::format("{0:02x}.bin", fmt::join(uid.begin(), uid.begin() + uuid_size, ""));
+
+ const Common::FS::IOFile keys_file{yuzu_amiibo_dir / backup_dir / file_name,
+ Common::FS::FileAccessMode::Read,
+ Common::FS::FileType::BinaryFile};
+
+ if (!keys_file.IsOpen()) {
+ LOG_ERROR(Service_NFP, "Failed to open amiibo backup");
+ return ResultUnableToAccessBackupFile;
+ }
+
+ if (keys_file.Read(data) != data.size()) {
+ LOG_ERROR(Service_NFP, "Failed to read amiibo backup");
+ return ResultUnableToAccessBackupFile;
+ }
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::ReadBackupData(const NFP::TagUuid& tag_uid, std::span<u8> data) const {
+ UniqueSerialNumber uuid{};
+ memcpy(uuid.data(), &tag_uid, sizeof(NFP::TagUuid));
+ return ReadBackupData(uuid, sizeof(NFP::TagUuid), data);
+}
+
+Result NfcDevice::WriteBackupData(const UniqueSerialNumber& uid, std::size_t uuid_size,
+ std::span<const u8> data) {
+ ASSERT_MSG(uuid_size < sizeof(UniqueSerialNumber), "Invalid UUID size");
+ constexpr auto backup_dir = "backup";
+ const auto yuzu_amiibo_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::AmiiboDir);
+ const auto file_name =
+ fmt::format("{0:02x}.bin", fmt::join(uid.begin(), uid.begin() + uuid_size, ""));
+
+ if (HasBackup(uid, uuid_size).IsError()) {
+ if (!Common::FS::CreateDir(yuzu_amiibo_dir / backup_dir)) {
+ return ResultBackupPathAlreadyExist;
+ }
+
+ if (!Common::FS::NewFile(yuzu_amiibo_dir / backup_dir / file_name)) {
+ return ResultBackupPathAlreadyExist;
+ }
+ }
+
+ const Common::FS::IOFile keys_file{yuzu_amiibo_dir / backup_dir / file_name,
+ Common::FS::FileAccessMode::ReadWrite,
+ Common::FS::FileType::BinaryFile};
+
+ if (!keys_file.IsOpen()) {
+ LOG_ERROR(Service_NFP, "Failed to open amiibo backup");
+ return ResultUnableToAccessBackupFile;
+ }
+
+ if (keys_file.Write(data) != data.size()) {
+ LOG_ERROR(Service_NFP, "Failed to write amiibo backup");
+ return ResultUnableToAccessBackupFile;
+ }
+
+ return ResultSuccess;
+}
+
+Result NfcDevice::WriteBackupData(const NFP::TagUuid& tag_uid, std::span<const u8> data) {
+ UniqueSerialNumber uuid{};
+ memcpy(uuid.data(), &tag_uid, sizeof(NFP::TagUuid));
+ return WriteBackupData(uuid, sizeof(NFP::TagUuid), data);
+}
+
+Result NfcDevice::WriteNtf(std::span<const u8> data) {
+ if (device_state != DeviceState::TagMounted) {
+ LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
+ if (device_state == DeviceState::TagRemoved) {
+ return ResultTagRemoved;
+ }
+ return ResultWrongDeviceState;
+ }
+
+ if (mount_target == NFP::MountTarget::None || mount_target == NFP::MountTarget::Rom) {
+ LOG_ERROR(Service_NFC, "Amiibo is read only", device_state);
+ return ResultWrongDeviceState;
+ }
+
+ // Not implemented
+
+ return ResultSuccess;
+}
+
+NFP::AmiiboName NfcDevice::GetAmiiboName(const NFP::AmiiboSettings& settings) const {
+ std::array<char16_t, NFP::amiibo_name_length> settings_amiibo_name{};
+ NFP::AmiiboName amiibo_name{};
+
+ // Convert from big endian to little endian
+ for (std::size_t i = 0; i < NFP::amiibo_name_length; i++) {
+ settings_amiibo_name[i] = static_cast<u16>(settings.amiibo_name[i]);
+ }
+
+ // Convert from utf16 to utf8
+ const auto amiibo_name_utf8 = Common::UTF16ToUTF8(settings_amiibo_name.data());
+ memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size());
+
+ return amiibo_name;
+}
+
+void NfcDevice::SetAmiiboName(NFP::AmiiboSettings& settings,
+ const NFP::AmiiboName& amiibo_name) const {
+ std::array<char16_t, NFP::amiibo_name_length> settings_amiibo_name{};
+
+ // Convert from utf8 to utf16
+ const auto amiibo_name_utf16 = Common::UTF8ToUTF16(amiibo_name.data());
+ memcpy(settings_amiibo_name.data(), amiibo_name_utf16.data(),
+ amiibo_name_utf16.size() * sizeof(char16_t));
+
+ // Convert from little endian to big endian
+ for (std::size_t i = 0; i < NFP::amiibo_name_length; i++) {
+ settings.amiibo_name[i] = static_cast<u16_be>(settings_amiibo_name[i]);
+ }
+}
+
+NFP::AmiiboDate NfcDevice::GetAmiiboDate(s64 posix_time) const {
+ const auto& time_zone_manager =
+ system.GetTimeManager().GetTimeZoneContentManager().GetTimeZoneManager();
+ Time::TimeZone::CalendarInfo calendar_info{};
+ NFP::AmiiboDate amiibo_date{};
+
+ amiibo_date.SetYear(2000);
+ amiibo_date.SetMonth(1);
+ amiibo_date.SetDay(1);
+
+ if (time_zone_manager.ToCalendarTime({}, posix_time, calendar_info) == ResultSuccess) {
+ amiibo_date.SetYear(calendar_info.time.year);
+ amiibo_date.SetMonth(calendar_info.time.month);
+ amiibo_date.SetDay(calendar_info.time.day);
+ }
+
+ return amiibo_date;
+}
+
+u64 NfcDevice::GetCurrentPosixTime() const {
+ auto& standard_steady_clock{system.GetTimeManager().GetStandardSteadyClockCore()};
+ return standard_steady_clock.GetCurrentTimePoint(system).time_point;
+}
+
+u64 NfcDevice::RemoveVersionByte(u64 application_id) const {
+ return application_id & ~(0xfULL << NFP::application_id_version_offset);
+}
+
+void NfcDevice::UpdateSettingsCrc() {
+ auto& settings = tag_data.settings;
+
+ if (settings.crc_counter != NFP::counter_limit) {
+ settings.crc_counter++;
+ }
+
+ // TODO: this reads data from a global, find what it is
+ std::array<u8, 8> unknown_input{};
+ boost::crc_32_type crc;
+ crc.process_bytes(&unknown_input, sizeof(unknown_input));
+ settings.crc = crc.checksum();
+}
+
+void NfcDevice::UpdateRegisterInfoCrc() {
+#pragma pack(push, 1)
+ struct CrcData {
+ Mii::Ver3StoreData mii;
+ u8 application_id_byte;
+ u8 unknown;
+ Mii::NfpStoreDataExtension mii_extension;
+ std::array<u32, 0x5> unknown2;
+ };
+ static_assert(sizeof(CrcData) == 0x7e, "CrcData is an invalid size");
+#pragma pack(pop)
+
+ const CrcData crc_data{
+ .mii = tag_data.owner_mii,
+ .application_id_byte = tag_data.application_id_byte,
+ .unknown = tag_data.unknown,
+ .mii_extension = tag_data.mii_extension,
+ .unknown2 = tag_data.unknown2,
+ };
+
+ boost::crc_32_type crc;
+ crc.process_bytes(&crc_data, sizeof(CrcData));
+ tag_data.register_info_crc = crc.checksum();
+}
+
+void NfcDevice::BuildAmiiboWithoutKeys(NFP::NTAG215File& stubbed_tag_data,
+ const NFP::EncryptedNTAG215File& encrypted_file) const {
+ Service::Mii::MiiManager manager;
+ auto& settings = stubbed_tag_data.settings;
+
+ stubbed_tag_data = NFP::AmiiboCrypto::NfcDataToEncodedData(encrypted_file);
+
+ // Common info
+ stubbed_tag_data.write_counter = 0;
+ stubbed_tag_data.amiibo_version = 0;
+ settings.write_date = GetAmiiboDate(GetCurrentPosixTime());
+
+ // Register info
+ SetAmiiboName(settings, {'y', 'u', 'z', 'u', 'A', 'm', 'i', 'i', 'b', 'o'});
+ settings.settings.font_region.Assign(0);
+ settings.init_date = GetAmiiboDate(GetCurrentPosixTime());
+ stubbed_tag_data.owner_mii = manager.BuildFromStoreData(manager.BuildDefault(0));
+
+ // Admin info
+ settings.settings.amiibo_initialized.Assign(1);
+ settings.settings.appdata_initialized.Assign(0);
+}
+
+u64 NfcDevice::GetHandle() const {
+ // Generate a handle based of the npad id
+ return static_cast<u64>(npad_id);
+}
+
+DeviceState NfcDevice::GetCurrentState() const {
+ return device_state;
+}
+
+Result NfcDevice::GetNpadId(Core::HID::NpadIdType& out_npad_id) const {
+ out_npad_id = npad_id;
+ return ResultSuccess;
+}
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/common/device.h b/src/core/hle/service/nfc/common/device.h
new file mode 100644
index 000000000..0ed1ff34c
--- /dev/null
+++ b/src/core/hle/service/nfc/common/device.h
@@ -0,0 +1,146 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <span>
+
+#include "common/common_types.h"
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/nfc/mifare_types.h"
+#include "core/hle/service/nfc/nfc_types.h"
+#include "core/hle/service/nfp/nfp_types.h"
+#include "core/hle/service/service.h"
+#include "core/hle/service/time/clock_types.h"
+
+namespace Kernel {
+class KEvent;
+class KReadableEvent;
+} // namespace Kernel
+
+namespace Core {
+class System;
+} // namespace Core
+
+namespace Core::HID {
+class EmulatedController;
+enum class ControllerTriggerType;
+enum class NpadIdType : u32;
+} // namespace Core::HID
+
+namespace Service::NFC {
+class NfcDevice {
+public:
+ NfcDevice(Core::HID::NpadIdType npad_id_, Core::System& system_,
+ KernelHelpers::ServiceContext& service_context_,
+ Kernel::KEvent* availability_change_event_);
+ ~NfcDevice();
+
+ void Initialize();
+ void Finalize();
+
+ Result StartDetection(NfcProtocol allowed_protocol);
+ Result StopDetection();
+
+ Result GetTagInfo(TagInfo& tag_info) const;
+
+ Result ReadMifare(std::span<const MifareReadBlockParameter> parameters,
+ std::span<MifareReadBlockData> read_block_data) const;
+
+ Result WriteMifare(std::span<const MifareWriteBlockParameter> parameters);
+
+ Result SendCommandByPassThrough(const Time::Clock::TimeSpanType& timeout,
+ std::span<const u8> command_data, std::span<u8> out_data);
+
+ Result Mount(NFP::ModelType model_type, NFP::MountTarget mount_target);
+ Result Unmount();
+
+ Result Flush();
+ Result FlushDebug();
+ Result FlushWithBreak(NFP::BreakType break_type);
+ Result Restore();
+
+ Result GetCommonInfo(NFP::CommonInfo& common_info) const;
+ Result GetModelInfo(NFP::ModelInfo& model_info) const;
+ Result GetRegisterInfo(NFP::RegisterInfo& register_info) const;
+ Result GetRegisterInfoPrivate(NFP::RegisterInfoPrivate& register_info) const;
+ Result GetAdminInfo(NFP::AdminInfo& admin_info) const;
+
+ Result DeleteRegisterInfo();
+ Result SetRegisterInfoPrivate(const NFP::RegisterInfoPrivate& register_info);
+ Result RestoreAmiibo();
+ Result Format();
+
+ Result OpenApplicationArea(u32 access_id);
+ Result GetApplicationAreaId(u32& application_area_id) const;
+ Result GetApplicationArea(std::span<u8> data) const;
+ Result SetApplicationArea(std::span<const u8> data);
+ Result CreateApplicationArea(u32 access_id, std::span<const u8> data);
+ Result RecreateApplicationArea(u32 access_id, std::span<const u8> data);
+ Result DeleteApplicationArea();
+ Result ExistsApplicationArea(bool& has_application_area) const;
+
+ Result GetAll(NFP::NfpData& data) const;
+ Result SetAll(const NFP::NfpData& data);
+ Result BreakTag(NFP::BreakType break_type);
+ Result HasBackup(const UniqueSerialNumber& uid, std::size_t uuid_size) const;
+ Result HasBackup(const NFP::TagUuid& tag_uid) const;
+ Result ReadBackupData(const UniqueSerialNumber& uid, std::size_t uuid_size,
+ std::span<u8> data) const;
+ Result ReadBackupData(const NFP::TagUuid& tag_uid, std::span<u8> data) const;
+ Result WriteBackupData(const UniqueSerialNumber& uid, std::size_t uuid_size,
+ std::span<const u8> data);
+ Result WriteBackupData(const NFP::TagUuid& tag_uid, std::span<const u8> data);
+ Result WriteNtf(std::span<const u8> data);
+
+ u64 GetHandle() const;
+ DeviceState GetCurrentState() const;
+ Result GetNpadId(Core::HID::NpadIdType& out_npad_id) const;
+
+ Kernel::KReadableEvent& GetActivateEvent() const;
+ Kernel::KReadableEvent& GetDeactivateEvent() const;
+
+private:
+ void NpadUpdate(Core::HID::ControllerTriggerType type);
+ bool LoadNfcTag(u8 protocol, u8 tag_type, u8 uuid_length, UniqueSerialNumber uuid);
+ bool LoadAmiiboData();
+ void CloseNfcTag();
+
+ NFP::AmiiboName GetAmiiboName(const NFP::AmiiboSettings& settings) const;
+ void SetAmiiboName(NFP::AmiiboSettings& settings, const NFP::AmiiboName& amiibo_name) const;
+ NFP::AmiiboDate GetAmiiboDate(s64 posix_time) const;
+ u64 GetCurrentPosixTime() const;
+ u64 RemoveVersionByte(u64 application_id) const;
+ void UpdateSettingsCrc();
+ void UpdateRegisterInfoCrc();
+
+ void BuildAmiiboWithoutKeys(NFP::NTAG215File& stubbed_tag_data,
+ const NFP::EncryptedNTAG215File& encrypted_file) const;
+
+ bool is_controller_set{};
+ int callback_key;
+ const Core::HID::NpadIdType npad_id;
+ Core::System& system;
+ Core::HID::EmulatedController* npad_device = nullptr;
+ KernelHelpers::ServiceContext& service_context;
+ Kernel::KEvent* activate_event = nullptr;
+ Kernel::KEvent* deactivate_event = nullptr;
+ Kernel::KEvent* availability_change_event = nullptr;
+
+ bool is_initalized{};
+ NfcProtocol allowed_protocols{};
+ DeviceState device_state{DeviceState::Unavailable};
+
+ // NFP data
+ bool is_data_moddified{};
+ bool is_app_area_open{};
+ bool is_plain_amiibo{};
+ bool is_write_protected{};
+ NFP::MountTarget mount_target{NFP::MountTarget::None};
+
+ TagInfo real_tag_info{};
+ NFP::NTAG215File tag_data{};
+ NFP::EncryptedNTAG215File encrypted_tag_data{};
+};
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/common/device_manager.cpp b/src/core/hle/service/nfc/common/device_manager.cpp
new file mode 100644
index 000000000..562f3a28e
--- /dev/null
+++ b/src/core/hle/service/nfc/common/device_manager.cpp
@@ -0,0 +1,708 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include "common/logging/log.h"
+#include "core/core.h"
+#include "core/hid/hid_types.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/nfc/common/device.h"
+#include "core/hle/service/nfc/common/device_manager.h"
+#include "core/hle/service/nfc/nfc_result.h"
+#include "core/hle/service/time/clock_types.h"
+
+namespace Service::NFC {
+
+DeviceManager::DeviceManager(Core::System& system_, KernelHelpers::ServiceContext& service_context_)
+ : system{system_}, service_context{service_context_} {
+
+ availability_change_event =
+ service_context.CreateEvent("Nfc:DeviceManager:AvailabilityChangeEvent");
+
+ for (u32 device_index = 0; device_index < devices.size(); device_index++) {
+ devices[device_index] =
+ std::make_shared<NfcDevice>(Core::HID::IndexToNpadIdType(device_index), system,
+ service_context, availability_change_event);
+ }
+
+ is_initialized = false;
+}
+
+DeviceManager ::~DeviceManager() {
+ if (is_initialized) {
+ Finalize();
+ }
+ service_context.CloseEvent(availability_change_event);
+}
+
+Result DeviceManager::Initialize() {
+ for (auto& device : devices) {
+ device->Initialize();
+ }
+ is_initialized = true;
+ return ResultSuccess;
+}
+
+Result DeviceManager::Finalize() {
+ for (auto& device : devices) {
+ device->Finalize();
+ }
+ is_initialized = false;
+ return ResultSuccess;
+}
+
+Result DeviceManager::ListDevices(std::vector<u64>& nfp_devices,
+ std::size_t max_allowed_devices) const {
+ for (auto& device : devices) {
+ if (nfp_devices.size() >= max_allowed_devices) {
+ continue;
+ }
+ if (device->GetCurrentState() != DeviceState::Unavailable) {
+ nfp_devices.push_back(device->GetHandle());
+ }
+ }
+
+ if (nfp_devices.empty()) {
+ return ResultDeviceNotFound;
+ }
+
+ return ResultSuccess;
+}
+
+DeviceState DeviceManager::GetDeviceState(u64 device_handle) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ const auto result = GetDeviceFromHandle(device_handle, device, false);
+
+ if (result.IsSuccess()) {
+ return device->GetCurrentState();
+ }
+
+ return DeviceState::Unavailable;
+}
+
+Result DeviceManager::GetNpadId(u64 device_handle, Core::HID::NpadIdType& npad_id) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetNpadId(npad_id);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Kernel::KReadableEvent& DeviceManager::AttachAvailabilityChangeEvent() const {
+ return availability_change_event->GetReadableEvent();
+}
+
+Result DeviceManager::StartDetection(u64 device_handle, NfcProtocol tag_protocol) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->StartDetection(tag_protocol);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::StopDetection(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->StopDetection();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetTagInfo(u64 device_handle, TagInfo& tag_info) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetTagInfo(tag_info);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Kernel::KReadableEvent& DeviceManager::AttachActivateEvent(u64 device_handle) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ GetDeviceFromHandle(device_handle, device, false);
+
+ // TODO: Return proper error code on failure
+ return device->GetActivateEvent();
+}
+
+Kernel::KReadableEvent& DeviceManager::AttachDeactivateEvent(u64 device_handle) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ GetDeviceFromHandle(device_handle, device, false);
+
+ // TODO: Return proper error code on failure
+ return device->GetDeactivateEvent();
+}
+
+Result DeviceManager::ReadMifare(u64 device_handle,
+ std::span<const MifareReadBlockParameter> read_parameters,
+ std::span<MifareReadBlockData> read_data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->ReadMifare(read_parameters, read_data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::WriteMifare(u64 device_handle,
+ std::span<const MifareWriteBlockParameter> write_parameters) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->WriteMifare(write_parameters);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::SendCommandByPassThrough(u64 device_handle,
+ const Time::Clock::TimeSpanType& timeout,
+ std::span<const u8> command_data,
+ std::span<u8> out_data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->SendCommandByPassThrough(timeout, command_data, out_data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::Mount(u64 device_handle, NFP::ModelType model_type,
+ NFP::MountTarget mount_target) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->Mount(model_type, mount_target);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::Unmount(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->Unmount();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::OpenApplicationArea(u64 device_handle, u32 access_id) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->OpenApplicationArea(access_id);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetApplicationArea(u64 device_handle, std::span<u8> data) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetApplicationArea(data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::SetApplicationArea(u64 device_handle, std::span<const u8> data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->SetApplicationArea(data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::Flush(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->Flush();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::Restore(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->Restore();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::CreateApplicationArea(u64 device_handle, u32 access_id,
+ std::span<const u8> data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->CreateApplicationArea(access_id, data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetRegisterInfo(u64 device_handle, NFP::RegisterInfo& register_info) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetRegisterInfo(register_info);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetCommonInfo(u64 device_handle, NFP::CommonInfo& common_info) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetCommonInfo(common_info);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetModelInfo(u64 device_handle, NFP::ModelInfo& model_info) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetModelInfo(model_info);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+u32 DeviceManager::GetApplicationAreaSize() const {
+ return sizeof(NFP::ApplicationArea);
+}
+
+Result DeviceManager::RecreateApplicationArea(u64 device_handle, u32 access_id,
+ std::span<const u8> data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->RecreateApplicationArea(access_id, data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::Format(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->Format();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetAdminInfo(u64 device_handle, NFP::AdminInfo& admin_info) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetAdminInfo(admin_info);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetRegisterInfoPrivate(u64 device_handle,
+ NFP::RegisterInfoPrivate& register_info) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetRegisterInfoPrivate(register_info);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::SetRegisterInfoPrivate(u64 device_handle,
+ const NFP::RegisterInfoPrivate& register_info) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->SetRegisterInfoPrivate(register_info);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::DeleteRegisterInfo(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->DeleteRegisterInfo();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::DeleteApplicationArea(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->DeleteApplicationArea();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::ExistsApplicationArea(u64 device_handle, bool& has_application_area) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->ExistsApplicationArea(has_application_area);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetAll(u64 device_handle, NFP::NfpData& nfp_data) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->GetAll(nfp_data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::SetAll(u64 device_handle, const NFP::NfpData& nfp_data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->SetAll(nfp_data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::FlushDebug(u64 device_handle) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->FlushDebug();
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::BreakTag(u64 device_handle, NFP::BreakType break_type) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->BreakTag(break_type);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::ReadBackupData(u64 device_handle, std::span<u8> data) const {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+ NFC::TagInfo tag_info{};
+
+ if (result.IsSuccess()) {
+ result = device->GetTagInfo(tag_info);
+ }
+
+ if (result.IsSuccess()) {
+ result = device->ReadBackupData(tag_info.uuid, tag_info.uuid_length, data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::WriteBackupData(u64 device_handle, std::span<const u8> data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+ NFC::TagInfo tag_info{};
+
+ if (result.IsSuccess()) {
+ result = device->GetTagInfo(tag_info);
+ }
+
+ if (result.IsSuccess()) {
+ result = device->WriteBackupData(tag_info.uuid, tag_info.uuid_length, data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::WriteNtf(u64 device_handle, NFP::WriteType, std::span<const u8> data) {
+ std::scoped_lock lock{mutex};
+
+ std::shared_ptr<NfcDevice> device = nullptr;
+ auto result = GetDeviceHandle(device_handle, device);
+
+ if (result.IsSuccess()) {
+ result = device->WriteNtf(data);
+ result = VerifyDeviceResult(device, result);
+ }
+
+ return result;
+}
+
+Result DeviceManager::GetDeviceFromHandle(u64 handle, std::shared_ptr<NfcDevice>& nfc_device,
+ bool check_state) const {
+ if (check_state) {
+ const Result is_parameter_set = IsNfcParameterSet();
+ if (is_parameter_set.IsError()) {
+ return is_parameter_set;
+ }
+ const Result is_enabled = IsNfcEnabled();
+ if (is_enabled.IsError()) {
+ return is_enabled;
+ }
+ const Result is_nfc_initialized = IsNfcInitialized();
+ if (is_nfc_initialized.IsError()) {
+ return is_nfc_initialized;
+ }
+ }
+
+ for (auto& device : devices) {
+ if (device->GetHandle() == handle) {
+ nfc_device = device;
+ return ResultSuccess;
+ }
+ }
+
+ return ResultDeviceNotFound;
+}
+
+std::optional<std::shared_ptr<NfcDevice>> DeviceManager::GetNfcDevice(u64 handle) {
+ for (auto& device : devices) {
+ if (device->GetHandle() == handle) {
+ return device;
+ }
+ }
+ return std::nullopt;
+}
+
+const std::optional<std::shared_ptr<NfcDevice>> DeviceManager::GetNfcDevice(u64 handle) const {
+ for (auto& device : devices) {
+ if (device->GetHandle() == handle) {
+ return device;
+ }
+ }
+ return std::nullopt;
+}
+
+Result DeviceManager::GetDeviceHandle(u64 handle, std::shared_ptr<NfcDevice>& device) const {
+ const auto result = GetDeviceFromHandle(handle, device, true);
+ if (result.IsError()) {
+ return result;
+ }
+ return CheckDeviceState(device);
+}
+
+Result DeviceManager::VerifyDeviceResult(std::shared_ptr<NfcDevice> device,
+ Result operation_result) const {
+ if (operation_result.IsSuccess()) {
+ return operation_result;
+ }
+
+ const Result is_parameter_set = IsNfcParameterSet();
+ if (is_parameter_set.IsError()) {
+ return is_parameter_set;
+ }
+ const Result is_enabled = IsNfcEnabled();
+ if (is_enabled.IsError()) {
+ return is_enabled;
+ }
+ const Result is_nfc_initialized = IsNfcInitialized();
+ if (is_nfc_initialized.IsError()) {
+ return is_nfc_initialized;
+ }
+ const Result device_state = CheckDeviceState(device);
+ if (device_state.IsError()) {
+ return device_state;
+ }
+
+ return operation_result;
+}
+
+Result DeviceManager::CheckDeviceState(std::shared_ptr<NfcDevice> device) const {
+ if (device == nullptr) {
+ return ResultInvalidArgument;
+ }
+
+ return ResultSuccess;
+}
+
+Result DeviceManager::IsNfcEnabled() const {
+ // TODO: This calls nn::settings::detail::GetNfcEnableFlag
+ const bool is_enabled = true;
+ if (!is_enabled) {
+ return ResultNfcDisabled;
+ }
+ return ResultSuccess;
+}
+
+Result DeviceManager::IsNfcParameterSet() const {
+ // TODO: This calls checks against a bool on offset 0x450
+ const bool is_set = true;
+ if (!is_set) {
+ return ResultUnknown76;
+ }
+ return ResultSuccess;
+}
+
+Result DeviceManager::IsNfcInitialized() const {
+ if (!is_initialized) {
+ return ResultNfcNotInitialized;
+ }
+ return ResultSuccess;
+}
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/common/device_manager.h b/src/core/hle/service/nfc/common/device_manager.h
new file mode 100644
index 000000000..c61ba0cf3
--- /dev/null
+++ b/src/core/hle/service/nfc/common/device_manager.h
@@ -0,0 +1,100 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <array>
+#include <memory>
+#include <optional>
+#include <span>
+
+#include "core/hid/hid_types.h"
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/nfc/mifare_types.h"
+#include "core/hle/service/nfc/nfc_types.h"
+#include "core/hle/service/nfp/nfp_types.h"
+#include "core/hle/service/service.h"
+#include "core/hle/service/time/clock_types.h"
+
+namespace Service::NFC {
+class NfcDevice;
+
+class DeviceManager {
+public:
+ explicit DeviceManager(Core::System& system_, KernelHelpers::ServiceContext& service_context_);
+ ~DeviceManager();
+
+ // Nfc device manager
+ Result Initialize();
+ Result Finalize();
+ Result ListDevices(std::vector<u64>& nfp_devices, std::size_t max_allowed_devices) const;
+ DeviceState GetDeviceState(u64 device_handle) const;
+ Result GetNpadId(u64 device_handle, Core::HID::NpadIdType& npad_id) const;
+ Kernel::KReadableEvent& AttachAvailabilityChangeEvent() const;
+ Result StartDetection(u64 device_handle, NfcProtocol tag_protocol);
+ Result StopDetection(u64 device_handle);
+ Result GetTagInfo(u64 device_handle, NFP::TagInfo& tag_info) const;
+ Kernel::KReadableEvent& AttachActivateEvent(u64 device_handle) const;
+ Kernel::KReadableEvent& AttachDeactivateEvent(u64 device_handle) const;
+ Result ReadMifare(u64 device_handle,
+ const std::span<const MifareReadBlockParameter> read_parameters,
+ std::span<MifareReadBlockData> read_data);
+ Result WriteMifare(u64 device_handle,
+ std::span<const MifareWriteBlockParameter> write_parameters);
+ Result SendCommandByPassThrough(u64 device_handle, const Time::Clock::TimeSpanType& timeout,
+ std::span<const u8> command_data, std::span<u8> out_data);
+
+ // Nfp device manager
+ Result Mount(u64 device_handle, NFP::ModelType model_type, NFP::MountTarget mount_target);
+ Result Unmount(u64 device_handle);
+ Result OpenApplicationArea(u64 device_handle, u32 access_id);
+ Result GetApplicationArea(u64 device_handle, std::span<u8> data) const;
+ Result SetApplicationArea(u64 device_handle, std::span<const u8> data);
+ Result Flush(u64 device_handle);
+ Result Restore(u64 device_handle);
+ Result CreateApplicationArea(u64 device_handle, u32 access_id, std::span<const u8> data);
+ Result GetRegisterInfo(u64 device_handle, NFP::RegisterInfo& register_info) const;
+ Result GetCommonInfo(u64 device_handle, NFP::CommonInfo& common_info) const;
+ Result GetModelInfo(u64 device_handle, NFP::ModelInfo& model_info) const;
+ u32 GetApplicationAreaSize() const;
+ Result RecreateApplicationArea(u64 device_handle, u32 access_id, std::span<const u8> data);
+ Result Format(u64 device_handle);
+ Result GetAdminInfo(u64 device_handle, NFP::AdminInfo& admin_info) const;
+ Result GetRegisterInfoPrivate(u64 device_handle, NFP::RegisterInfoPrivate& register_info) const;
+ Result SetRegisterInfoPrivate(u64 device_handle, const NFP::RegisterInfoPrivate& register_info);
+ Result DeleteRegisterInfo(u64 device_handle);
+ Result DeleteApplicationArea(u64 device_handle);
+ Result ExistsApplicationArea(u64 device_handle, bool& has_application_area) const;
+ Result GetAll(u64 device_handle, NFP::NfpData& nfp_data) const;
+ Result SetAll(u64 device_handle, const NFP::NfpData& nfp_data);
+ Result FlushDebug(u64 device_handle);
+ Result BreakTag(u64 device_handle, NFP::BreakType break_type);
+ Result ReadBackupData(u64 device_handle, std::span<u8> data) const;
+ Result WriteBackupData(u64 device_handle, std::span<const u8> data);
+ Result WriteNtf(u64 device_handle, NFP::WriteType, std::span<const u8> data);
+
+private:
+ Result IsNfcEnabled() const;
+ Result IsNfcParameterSet() const;
+ Result IsNfcInitialized() const;
+
+ Result GetDeviceFromHandle(u64 handle, std::shared_ptr<NfcDevice>& device,
+ bool check_state) const;
+
+ Result GetDeviceHandle(u64 handle, std::shared_ptr<NfcDevice>& device) const;
+ Result VerifyDeviceResult(std::shared_ptr<NfcDevice> device, Result operation_result) const;
+ Result CheckDeviceState(std::shared_ptr<NfcDevice> device) const;
+
+ std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle);
+ const std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle) const;
+
+ bool is_initialized = false;
+ mutable std::mutex mutex;
+ std::array<std::shared_ptr<NfcDevice>, 10> devices{};
+
+ Core::System& system;
+ KernelHelpers::ServiceContext service_context;
+ Kernel::KEvent* availability_change_event;
+};
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/mifare_result.h b/src/core/hle/service/nfc/mifare_result.h
new file mode 100644
index 000000000..16a9171e6
--- /dev/null
+++ b/src/core/hle/service/nfc/mifare_result.h
@@ -0,0 +1,17 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include "core/hle/result.h"
+
+namespace Service::NFC::Mifare {
+
+constexpr Result ResultDeviceNotFound(ErrorModule::NFCMifare, 64);
+constexpr Result ResultInvalidArgument(ErrorModule::NFCMifare, 65);
+constexpr Result ResultWrongDeviceState(ErrorModule::NFCMifare, 73);
+constexpr Result ResultNfcDisabled(ErrorModule::NFCMifare, 80);
+constexpr Result ResultTagRemoved(ErrorModule::NFCMifare, 97);
+constexpr Result ResultNotAMifare(ErrorModule::NFCMifare, 288);
+
+} // namespace Service::NFC::Mifare
diff --git a/src/core/hle/service/nfc/mifare_types.h b/src/core/hle/service/nfc/mifare_types.h
new file mode 100644
index 000000000..467937399
--- /dev/null
+++ b/src/core/hle/service/nfc/mifare_types.h
@@ -0,0 +1,64 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <array>
+
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+
+namespace Service::NFC {
+
+enum class MifareCmd : u8 {
+ None = 0x00,
+ Read = 0x30,
+ AuthA = 0x60,
+ AuthB = 0x61,
+ Write = 0xA0,
+ Transfer = 0xB0,
+ Decrement = 0xC0,
+ Increment = 0xC1,
+ Store = 0xC2
+};
+
+using DataBlock = std::array<u8, 0x10>;
+using KeyData = std::array<u8, 0x6>;
+
+struct SectorKey {
+ MifareCmd command;
+ u8 unknown; // Usually 1
+ INSERT_PADDING_BYTES(0x6);
+ KeyData sector_key;
+ INSERT_PADDING_BYTES(0x2);
+};
+static_assert(sizeof(SectorKey) == 0x10, "SectorKey is an invalid size");
+
+// This is nn::nfc::MifareReadBlockParameter
+struct MifareReadBlockParameter {
+ u8 sector_number{};
+ INSERT_PADDING_BYTES(0x7);
+ SectorKey sector_key{};
+};
+static_assert(sizeof(MifareReadBlockParameter) == 0x18,
+ "MifareReadBlockParameter is an invalid size");
+
+// This is nn::nfc::MifareReadBlockData
+struct MifareReadBlockData {
+ DataBlock data{};
+ u8 sector_number{};
+ INSERT_PADDING_BYTES(0x7);
+};
+static_assert(sizeof(MifareReadBlockData) == 0x18, "MifareReadBlockData is an invalid size");
+
+// This is nn::nfc::MifareWriteBlockParameter
+struct MifareWriteBlockParameter {
+ DataBlock data;
+ u8 sector_number;
+ INSERT_PADDING_BYTES(0x7);
+ SectorKey sector_key;
+};
+static_assert(sizeof(MifareWriteBlockParameter) == 0x28,
+ "MifareWriteBlockParameter is an invalid size");
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/mifare_user.cpp b/src/core/hle/service/nfc/mifare_user.cpp
deleted file mode 100644
index 51523a3ae..000000000
--- a/src/core/hle/service/nfc/mifare_user.cpp
+++ /dev/null
@@ -1,400 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "common/logging/log.h"
-#include "core/core.h"
-#include "core/hid/hid_types.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/service/nfc/mifare_user.h"
-#include "core/hle/service/nfc/nfc_device.h"
-#include "core/hle/service/nfc/nfc_result.h"
-
-namespace Service::NFC {
-
-MFIUser::MFIUser(Core::System& system_)
- : ServiceFramework{system_, "NFC::MFIUser"}, service_context{system_, service_name} {
- static const FunctionInfo functions[] = {
- {0, &MFIUser::Initialize, "Initialize"},
- {1, &MFIUser::Finalize, "Finalize"},
- {2, &MFIUser::ListDevices, "ListDevices"},
- {3, &MFIUser::StartDetection, "StartDetection"},
- {4, &MFIUser::StopDetection, "StopDetection"},
- {5, &MFIUser::Read, "Read"},
- {6, &MFIUser::Write, "Write"},
- {7, &MFIUser::GetTagInfo, "GetTagInfo"},
- {8, &MFIUser::GetActivateEventHandle, "GetActivateEventHandle"},
- {9, &MFIUser::GetDeactivateEventHandle, "GetDeactivateEventHandle"},
- {10, &MFIUser::GetState, "GetState"},
- {11, &MFIUser::GetDeviceState, "GetDeviceState"},
- {12, &MFIUser::GetNpadId, "GetNpadId"},
- {13, &MFIUser::GetAvailabilityChangeEventHandle, "GetAvailabilityChangeEventHandle"},
- };
- RegisterHandlers(functions);
-
- availability_change_event = service_context.CreateEvent("MFIUser:AvailabilityChangeEvent");
-
- for (u32 device_index = 0; device_index < 10; device_index++) {
- devices[device_index] =
- std::make_shared<NfcDevice>(Core::HID::IndexToNpadIdType(device_index), system,
- service_context, availability_change_event);
- }
-}
-
-MFIUser ::~MFIUser() {
- availability_change_event->Close();
-}
-
-void MFIUser::Initialize(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFC, "called");
-
- state = State::Initialized;
-
- for (auto& device : devices) {
- device->Initialize();
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 0};
- rb.Push(ResultSuccess);
-}
-
-void MFIUser::Finalize(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFC, "called");
-
- state = State::NonInitialized;
-
- for (auto& device : devices) {
- device->Finalize();
- }
-
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultSuccess);
-}
-
-void MFIUser::ListDevices(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFC, "called");
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- if (!ctx.CanWriteBuffer()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareInvalidArgument);
- return;
- }
-
- if (ctx.GetWriteBufferSize() == 0) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareInvalidArgument);
- return;
- }
-
- std::vector<u64> nfp_devices;
- const std::size_t max_allowed_devices = ctx.GetWriteBufferNumElements<u64>();
-
- for (const auto& device : devices) {
- if (nfp_devices.size() >= max_allowed_devices) {
- continue;
- }
- if (device->GetCurrentState() != NFP::DeviceState::Unavailable) {
- nfp_devices.push_back(device->GetHandle());
- }
- }
-
- if (nfp_devices.empty()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- ctx.WriteBuffer(nfp_devices);
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.Push(static_cast<s32>(nfp_devices.size()));
-}
-
-void MFIUser::StartDetection(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- const auto result = device.value()->StartDetection(NFP::TagProtocol::All);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void MFIUser::StopDetection(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- const auto result = device.value()->StopDetection();
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void MFIUser::Read(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto buffer{ctx.ReadBuffer()};
- const auto number_of_commands{ctx.GetReadBufferNumElements<NFP::MifareReadBlockParameter>()};
- std::vector<NFP::MifareReadBlockParameter> read_commands(number_of_commands);
-
- memcpy(read_commands.data(), buffer.data(),
- number_of_commands * sizeof(NFP::MifareReadBlockParameter));
-
- LOG_INFO(Service_NFC, "(STUBBED) called, device_handle={}, read_commands_size={}",
- device_handle, number_of_commands);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- Result result = ResultSuccess;
- std::vector<NFP::MifareReadBlockData> out_data(number_of_commands);
- for (std::size_t i = 0; i < number_of_commands; i++) {
- result = device.value()->MifareRead(read_commands[i], out_data[i]);
- if (result.IsError()) {
- break;
- }
- }
-
- ctx.WriteBuffer(out_data);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void MFIUser::Write(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto buffer{ctx.ReadBuffer()};
- const auto number_of_commands{ctx.GetReadBufferNumElements<NFP::MifareWriteBlockParameter>()};
- std::vector<NFP::MifareWriteBlockParameter> write_commands(number_of_commands);
-
- memcpy(write_commands.data(), buffer.data(),
- number_of_commands * sizeof(NFP::MifareWriteBlockParameter));
-
- LOG_INFO(Service_NFC, "(STUBBED) called, device_handle={}, write_commands_size={}",
- device_handle, number_of_commands);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- Result result = ResultSuccess;
- std::vector<NFP::MifareReadBlockData> out_data(number_of_commands);
- for (std::size_t i = 0; i < number_of_commands; i++) {
- result = device.value()->MifareWrite(write_commands[i]);
- if (result.IsError()) {
- break;
- }
- }
-
- if (result.IsSuccess()) {
- result = device.value()->Flush();
- }
-
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void MFIUser::GetTagInfo(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- NFP::TagInfo tag_info{};
- const auto result = device.value()->GetTagInfo(tag_info, true);
- ctx.WriteBuffer(tag_info);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void MFIUser::GetActivateEventHandle(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(device.value()->GetActivateEvent());
-}
-
-void MFIUser::GetDeactivateEventHandle(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(device.value()->GetDeactivateEvent());
-}
-
-void MFIUser::GetState(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFC, "called");
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(state);
-}
-
-void MFIUser::GetDeviceState(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(device.value()->GetCurrentState());
-}
-
-void MFIUser::GetNpadId(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareDeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(device.value()->GetNpadId());
-}
-
-void MFIUser::GetAvailabilityChangeEventHandle(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFC, "called");
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(MifareNfcDisabled);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(availability_change_event->GetReadableEvent());
-}
-
-std::optional<std::shared_ptr<NfcDevice>> MFIUser::GetNfcDevice(u64 handle) {
- for (auto& device : devices) {
- if (device->GetHandle() == handle) {
- return device;
- }
- }
- return std::nullopt;
-}
-
-} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/mifare_user.h b/src/core/hle/service/nfc/mifare_user.h
deleted file mode 100644
index 0e0638cb6..000000000
--- a/src/core/hle/service/nfc/mifare_user.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <array>
-#include <memory>
-#include <optional>
-
-#include "core/hle/service/kernel_helpers.h"
-#include "core/hle/service/service.h"
-
-namespace Service::NFC {
-class NfcDevice;
-
-class MFIUser final : public ServiceFramework<MFIUser> {
-public:
- explicit MFIUser(Core::System& system_);
- ~MFIUser();
-
-private:
- enum class State : u32 {
- NonInitialized,
- Initialized,
- };
-
- void Initialize(Kernel::HLERequestContext& ctx);
- void Finalize(Kernel::HLERequestContext& ctx);
- void ListDevices(Kernel::HLERequestContext& ctx);
- void StartDetection(Kernel::HLERequestContext& ctx);
- void StopDetection(Kernel::HLERequestContext& ctx);
- void Read(Kernel::HLERequestContext& ctx);
- void Write(Kernel::HLERequestContext& ctx);
- void GetTagInfo(Kernel::HLERequestContext& ctx);
- void GetActivateEventHandle(Kernel::HLERequestContext& ctx);
- void GetDeactivateEventHandle(Kernel::HLERequestContext& ctx);
- void GetState(Kernel::HLERequestContext& ctx);
- void GetDeviceState(Kernel::HLERequestContext& ctx);
- void GetNpadId(Kernel::HLERequestContext& ctx);
- void GetAvailabilityChangeEventHandle(Kernel::HLERequestContext& ctx);
-
- std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle);
-
- KernelHelpers::ServiceContext service_context;
-
- std::array<std::shared_ptr<NfcDevice>, 10> devices{};
-
- State state{State::NonInitialized};
- Kernel::KEvent* availability_change_event;
-};
-
-} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc.cpp b/src/core/hle/service/nfc/nfc.cpp
index b17b18ab9..30ae989b9 100644
--- a/src/core/hle/service/nfc/nfc.cpp
+++ b/src/core/hle/service/nfc/nfc.cpp
@@ -5,15 +5,116 @@
#include "common/logging/log.h"
#include "common/settings.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/service/nfc/mifare_user.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/nfc/nfc.h"
-#include "core/hle/service/nfc/nfc_user.h"
+#include "core/hle/service/nfc/nfc_interface.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::NFC {
+class IUser final : public NfcInterface {
+public:
+ explicit IUser(Core::System& system_) : NfcInterface(system_, "NFC::IUser", BackendType::Nfc) {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, &NfcInterface::Initialize, "InitializeOld"},
+ {1, &NfcInterface::Finalize, "FinalizeOld"},
+ {2, &NfcInterface::GetState, "GetStateOld"},
+ {3, &NfcInterface::IsNfcEnabled, "IsNfcEnabledOld"},
+ {400, &NfcInterface::Initialize, "Initialize"},
+ {401, &NfcInterface::Finalize, "Finalize"},
+ {402, &NfcInterface::GetState, "GetState"},
+ {403, &NfcInterface::IsNfcEnabled, "IsNfcEnabled"},
+ {404, &NfcInterface::ListDevices, "ListDevices"},
+ {405, &NfcInterface::GetDeviceState, "GetDeviceState"},
+ {406, &NfcInterface::GetNpadId, "GetNpadId"},
+ {407, &NfcInterface::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
+ {408, &NfcInterface::StartDetection, "StartDetection"},
+ {409, &NfcInterface::StopDetection, "StopDetection"},
+ {410, &NfcInterface::GetTagInfo, "GetTagInfo"},
+ {411, &NfcInterface::AttachActivateEvent, "AttachActivateEvent"},
+ {412, &NfcInterface::AttachDeactivateEvent, "AttachDeactivateEvent"},
+ {1000, &NfcInterface::ReadMifare, "ReadMifare"},
+ {1001, &NfcInterface::WriteMifare ,"WriteMifare"},
+ {1300, &NfcInterface::SendCommandByPassThrough, "SendCommandByPassThrough"},
+ {1301, nullptr, "KeepPassThroughSession"},
+ {1302, nullptr, "ReleasePassThroughSession"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+};
+
+class ISystem final : public NfcInterface {
+public:
+ explicit ISystem(Core::System& system_)
+ : NfcInterface{system_, "NFC::ISystem", BackendType::Nfc} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, &NfcInterface::Initialize, "InitializeOld"},
+ {1, &NfcInterface::Finalize, "FinalizeOld"},
+ {2, &NfcInterface::GetState, "GetStateOld"},
+ {3, &NfcInterface::IsNfcEnabled, "IsNfcEnabledOld"},
+ {100, nullptr, "SetNfcEnabledOld"},
+ {400, &NfcInterface::Initialize, "Initialize"},
+ {401, &NfcInterface::Finalize, "Finalize"},
+ {402, &NfcInterface::GetState, "GetState"},
+ {403, &NfcInterface::IsNfcEnabled, "IsNfcEnabled"},
+ {404, &NfcInterface::ListDevices, "ListDevices"},
+ {405, &NfcInterface::GetDeviceState, "GetDeviceState"},
+ {406, &NfcInterface::GetNpadId, "GetNpadId"},
+ {407, &NfcInterface::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
+ {408, &NfcInterface::StartDetection, "StartDetection"},
+ {409, &NfcInterface::StopDetection, "StopDetection"},
+ {410, &NfcInterface::GetTagInfo, "GetTagInfo"},
+ {411, &NfcInterface::AttachActivateEvent, "AttachActivateEvent"},
+ {412, &NfcInterface::AttachDeactivateEvent, "AttachDeactivateEvent"},
+ {500, nullptr, "SetNfcEnabled"},
+ {510, nullptr, "OutputTestWave"},
+ {1000, &NfcInterface::ReadMifare, "ReadMifare"},
+ {1001, &NfcInterface::WriteMifare, "WriteMifare"},
+ {1300, &NfcInterface::SendCommandByPassThrough, "SendCommandByPassThrough"},
+ {1301, nullptr, "KeepPassThroughSession"},
+ {1302, nullptr, "ReleasePassThroughSession"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+};
+
+// MFInterface has an unique interface but it's identical to NfcInterface so we can keep the code
+// simpler
+using MFInterface = NfcInterface;
+class MFIUser final : public MFInterface {
+public:
+ explicit MFIUser(Core::System& system_)
+ : MFInterface{system_, "NFC::MFInterface", BackendType::Mifare} {
+ // clang-format off
+ static const FunctionInfoTyped<MFIUser> functions[] = {
+ {0, &MFIUser::Initialize, "Initialize"},
+ {1, &MFIUser::Finalize, "Finalize"},
+ {2, &MFIUser::ListDevices, "ListDevices"},
+ {3, &MFIUser::StartDetection, "StartDetection"},
+ {4, &MFIUser::StopDetection, "StopDetection"},
+ {5, &MFIUser::ReadMifare, "Read"},
+ {6, &MFIUser::WriteMifare, "Write"},
+ {7, &MFIUser::GetTagInfo, "GetTagInfo"},
+ {8, &MFIUser::AttachActivateEvent, "GetActivateEventHandle"},
+ {9, &MFIUser::AttachDeactivateEvent, "GetDeactivateEventHandle"},
+ {10, &MFIUser::GetState, "GetState"},
+ {11, &MFIUser::GetDeviceState, "GetDeviceState"},
+ {12, &MFIUser::GetNpadId, "GetNpadId"},
+ {13, &MFIUser::AttachAvailabilityChangeEvent, "GetAvailabilityChangeEventHandle"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+};
+
class IAm final : public ServiceFramework<IAm> {
public:
explicit IAm(Core::System& system_) : ServiceFramework{system_, "NFC::IAm"} {
@@ -34,7 +135,7 @@ public:
explicit NFC_AM(Core::System& system_) : ServiceFramework{system_, "nfc:am"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &NFC_AM::CreateAmInterface, "CreateAmInterface"},
+ {0, &NFC_AM::CreateAmNfcInterface, "CreateAmNfcInterface"},
};
// clang-format on
@@ -42,7 +143,7 @@ public:
}
private:
- void CreateAmInterface(Kernel::HLERequestContext& ctx) {
+ void CreateAmNfcInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFC, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -56,7 +157,7 @@ public:
explicit NFC_MF_U(Core::System& system_) : ServiceFramework{system_, "nfc:mf:u"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &NFC_MF_U::CreateUserInterface, "CreateUserInterface"},
+ {0, &NFC_MF_U::CreateUserNfcInterface, "CreateUserNfcInterface"},
};
// clang-format on
@@ -64,7 +165,7 @@ public:
}
private:
- void CreateUserInterface(Kernel::HLERequestContext& ctx) {
+ void CreateUserNfcInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFC, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -78,7 +179,7 @@ public:
explicit NFC_U(Core::System& system_) : ServiceFramework{system_, "nfc:user"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &NFC_U::CreateUserInterface, "CreateUserInterface"},
+ {0, &NFC_U::CreateUserNfcInterface, "CreateUserNfcInterface"},
};
// clang-format on
@@ -86,7 +187,7 @@ public:
}
private:
- void CreateUserInterface(Kernel::HLERequestContext& ctx) {
+ void CreateUserNfcInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFC, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -95,49 +196,12 @@ private:
}
};
-class ISystem final : public ServiceFramework<ISystem> {
-public:
- explicit ISystem(Core::System& system_) : ServiceFramework{system_, "ISystem"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "Initialize"},
- {1, nullptr, "Finalize"},
- {2, nullptr, "GetStateOld"},
- {3, nullptr, "IsNfcEnabledOld"},
- {100, nullptr, "SetNfcEnabledOld"},
- {400, nullptr, "InitializeSystem"},
- {401, nullptr, "FinalizeSystem"},
- {402, nullptr, "GetState"},
- {403, nullptr, "IsNfcEnabled"},
- {404, nullptr, "ListDevices"},
- {405, nullptr, "GetDeviceState"},
- {406, nullptr, "GetNpadId"},
- {407, nullptr, "AttachAvailabilityChangeEvent"},
- {408, nullptr, "StartDetection"},
- {409, nullptr, "StopDetection"},
- {410, nullptr, "GetTagInfo"},
- {411, nullptr, "AttachActivateEvent"},
- {412, nullptr, "AttachDeactivateEvent"},
- {500, nullptr, "SetNfcEnabled"},
- {510, nullptr, "OutputTestWave"},
- {1000, nullptr, "ReadMifare"},
- {1001, nullptr, "WriteMifare"},
- {1300, nullptr, "SendCommandByPassThrough"},
- {1301, nullptr, "KeepPassThroughSession"},
- {1302, nullptr, "ReleasePassThroughSession"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
class NFC_SYS final : public ServiceFramework<NFC_SYS> {
public:
explicit NFC_SYS(Core::System& system_) : ServiceFramework{system_, "nfc:sys"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &NFC_SYS::CreateSystemInterface, "CreateSystemInterface"},
+ {0, &NFC_SYS::CreateSystemNfcInterface, "CreateSystemNfcInterface"},
};
// clang-format on
@@ -145,7 +209,7 @@ public:
}
private:
- void CreateSystemInterface(Kernel::HLERequestContext& ctx) {
+ void CreateSystemNfcInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFC, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -154,11 +218,15 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<NFC_AM>(system)->InstallAsService(sm);
- std::make_shared<NFC_MF_U>(system)->InstallAsService(sm);
- std::make_shared<NFC_U>(system)->InstallAsService(sm);
- std::make_shared<NFC_SYS>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("nfc:am", std::make_shared<NFC_AM>(system));
+ server_manager->RegisterNamedService("nfc:mf:u", std::make_shared<NFC_MF_U>(system));
+ server_manager->RegisterNamedService("nfc:user", std::make_shared<NFC_U>(system));
+ server_manager->RegisterNamedService("nfc:sys", std::make_shared<NFC_SYS>(system));
+
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc.h b/src/core/hle/service/nfc/nfc.h
index 0107b696c..d15955b75 100644
--- a/src/core/hle/service/nfc/nfc.h
+++ b/src/core/hle/service/nfc/nfc.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::NFC {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_device.cpp b/src/core/hle/service/nfc/nfc_device.cpp
deleted file mode 100644
index 78578f723..000000000
--- a/src/core/hle/service/nfc/nfc_device.cpp
+++ /dev/null
@@ -1,273 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "common/input.h"
-#include "common/logging/log.h"
-#include "core/core.h"
-#include "core/hid/emulated_controller.h"
-#include "core/hid/hid_core.h"
-#include "core/hid/hid_types.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/service/nfc/nfc_device.h"
-#include "core/hle/service/nfc/nfc_result.h"
-#include "core/hle/service/nfc/nfc_user.h"
-
-namespace Service::NFC {
-NfcDevice::NfcDevice(Core::HID::NpadIdType npad_id_, Core::System& system_,
- KernelHelpers::ServiceContext& service_context_,
- Kernel::KEvent* availability_change_event_)
- : npad_id{npad_id_}, system{system_}, service_context{service_context_},
- availability_change_event{availability_change_event_} {
- activate_event = service_context.CreateEvent("IUser:NFCActivateEvent");
- deactivate_event = service_context.CreateEvent("IUser:NFCDeactivateEvent");
- npad_device = system.HIDCore().GetEmulatedController(npad_id);
-
- Core::HID::ControllerUpdateCallback engine_callback{
- .on_change = [this](Core::HID::ControllerTriggerType type) { NpadUpdate(type); },
- .is_npad_service = false,
- };
- is_controller_set = true;
- callback_key = npad_device->SetCallback(engine_callback);
-}
-
-NfcDevice::~NfcDevice() {
- activate_event->Close();
- deactivate_event->Close();
- if (!is_controller_set) {
- return;
- }
- npad_device->DeleteCallback(callback_key);
- is_controller_set = false;
-};
-
-void NfcDevice::NpadUpdate(Core::HID::ControllerTriggerType type) {
- if (type == Core::HID::ControllerTriggerType::Connected ||
- type == Core::HID::ControllerTriggerType::Disconnected) {
- availability_change_event->Signal();
- return;
- }
-
- if (type != Core::HID::ControllerTriggerType::Nfc) {
- return;
- }
-
- if (!npad_device->IsConnected()) {
- return;
- }
-
- const auto nfc_status = npad_device->GetNfc();
- switch (nfc_status.state) {
- case Common::Input::NfcState::NewAmiibo:
- LoadNfcTag(nfc_status.data);
- break;
- case Common::Input::NfcState::AmiiboRemoved:
- if (device_state != NFP::DeviceState::SearchingForTag) {
- CloseNfcTag();
- }
- break;
- default:
- break;
- }
-}
-
-bool NfcDevice::LoadNfcTag(std::span<const u8> data) {
- if (device_state != NFP::DeviceState::SearchingForTag) {
- LOG_ERROR(Service_NFC, "Game is not looking for nfc tag, current state {}", device_state);
- return false;
- }
-
- if (data.size() < sizeof(NFP::EncryptedNTAG215File)) {
- LOG_ERROR(Service_NFC, "Not an amiibo, size={}", data.size());
- return false;
- }
-
- tag_data.resize(data.size());
- memcpy(tag_data.data(), data.data(), data.size());
- memcpy(&encrypted_tag_data, data.data(), sizeof(NFP::EncryptedNTAG215File));
-
- device_state = NFP::DeviceState::TagFound;
- deactivate_event->GetReadableEvent().Clear();
- activate_event->Signal();
- return true;
-}
-
-void NfcDevice::CloseNfcTag() {
- LOG_INFO(Service_NFC, "Remove nfc tag");
-
- device_state = NFP::DeviceState::TagRemoved;
- encrypted_tag_data = {};
- activate_event->GetReadableEvent().Clear();
- deactivate_event->Signal();
-}
-
-Kernel::KReadableEvent& NfcDevice::GetActivateEvent() const {
- return activate_event->GetReadableEvent();
-}
-
-Kernel::KReadableEvent& NfcDevice::GetDeactivateEvent() const {
- return deactivate_event->GetReadableEvent();
-}
-
-void NfcDevice::Initialize() {
- device_state =
- npad_device->HasNfc() ? NFP::DeviceState::Initialized : NFP::DeviceState::Unavailable;
- encrypted_tag_data = {};
-}
-
-void NfcDevice::Finalize() {
- if (device_state == NFP::DeviceState::SearchingForTag ||
- device_state == NFP::DeviceState::TagRemoved) {
- StopDetection();
- }
- device_state = NFP::DeviceState::Unavailable;
-}
-
-Result NfcDevice::StartDetection(NFP::TagProtocol allowed_protocol) {
- if (device_state != NFP::DeviceState::Initialized &&
- device_state != NFP::DeviceState::TagRemoved) {
- LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
- return WrongDeviceState;
- }
-
- if (!npad_device->SetPollingMode(Common::Input::PollingMode::NFC)) {
- LOG_ERROR(Service_NFC, "Nfc not supported");
- return NfcDisabled;
- }
-
- device_state = NFP::DeviceState::SearchingForTag;
- allowed_protocols = allowed_protocol;
- return ResultSuccess;
-}
-
-Result NfcDevice::StopDetection() {
- npad_device->SetPollingMode(Common::Input::PollingMode::Active);
-
- if (device_state == NFP::DeviceState::Initialized) {
- return ResultSuccess;
- }
-
- if (device_state == NFP::DeviceState::TagFound ||
- device_state == NFP::DeviceState::TagMounted) {
- CloseNfcTag();
- return ResultSuccess;
- }
- if (device_state == NFP::DeviceState::SearchingForTag ||
- device_state == NFP::DeviceState::TagRemoved) {
- device_state = NFP::DeviceState::Initialized;
- return ResultSuccess;
- }
-
- LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
- return WrongDeviceState;
-}
-
-Result NfcDevice::Flush() {
- if (device_state != NFP::DeviceState::TagFound &&
- device_state != NFP::DeviceState::TagMounted) {
- LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
- if (device_state == NFP::DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (!npad_device->WriteNfc(tag_data)) {
- LOG_ERROR(Service_NFP, "Error writing to file");
- return MifareReadError;
- }
-
- return ResultSuccess;
-}
-
-Result NfcDevice::GetTagInfo(NFP::TagInfo& tag_info, bool is_mifare) const {
- if (device_state != NFP::DeviceState::TagFound &&
- device_state != NFP::DeviceState::TagMounted) {
- LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
- if (device_state == NFP::DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (is_mifare) {
- tag_info = {
- .uuid = encrypted_tag_data.uuid.uid,
- .uuid_length = static_cast<u8>(encrypted_tag_data.uuid.uid.size()),
- .protocol = NFP::TagProtocol::TypeA,
- .tag_type = NFP::TagType::Type4,
- };
- return ResultSuccess;
- }
-
- // Protocol and tag type may change here
- tag_info = {
- .uuid = encrypted_tag_data.uuid.uid,
- .uuid_length = static_cast<u8>(encrypted_tag_data.uuid.uid.size()),
- .protocol = NFP::TagProtocol::TypeA,
- .tag_type = NFP::TagType::Type2,
- };
-
- return ResultSuccess;
-}
-
-Result NfcDevice::MifareRead(const NFP::MifareReadBlockParameter& parameter,
- NFP::MifareReadBlockData& read_block_data) {
- const std::size_t sector_index = parameter.sector_number * sizeof(NFP::DataBlock);
- read_block_data.sector_number = parameter.sector_number;
-
- if (device_state != NFP::DeviceState::TagFound &&
- device_state != NFP::DeviceState::TagMounted) {
- LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
- if (device_state == NFP::DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (tag_data.size() < sector_index + sizeof(NFP::DataBlock)) {
- return MifareReadError;
- }
-
- // TODO: Use parameter.sector_key to read encrypted data
- memcpy(read_block_data.data.data(), tag_data.data() + sector_index, sizeof(NFP::DataBlock));
-
- return ResultSuccess;
-}
-
-Result NfcDevice::MifareWrite(const NFP::MifareWriteBlockParameter& parameter) {
- const std::size_t sector_index = parameter.sector_number * sizeof(NFP::DataBlock);
-
- if (device_state != NFP::DeviceState::TagFound &&
- device_state != NFP::DeviceState::TagMounted) {
- LOG_ERROR(Service_NFC, "Wrong device state {}", device_state);
- if (device_state == NFP::DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (tag_data.size() < sector_index + sizeof(NFP::DataBlock)) {
- return MifareReadError;
- }
-
- // TODO: Use parameter.sector_key to encrypt the data
- memcpy(tag_data.data() + sector_index, parameter.data.data(), sizeof(NFP::DataBlock));
-
- return ResultSuccess;
-}
-
-u64 NfcDevice::GetHandle() const {
- // Generate a handle based of the npad id
- return static_cast<u64>(npad_id);
-}
-
-NFP::DeviceState NfcDevice::GetCurrentState() const {
- return device_state;
-}
-
-Core::HID::NpadIdType NfcDevice::GetNpadId() const {
- return npad_id;
-}
-
-} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_device.h b/src/core/hle/service/nfc/nfc_device.h
deleted file mode 100644
index a6e114d36..000000000
--- a/src/core/hle/service/nfc/nfc_device.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_types.h"
-#include "core/hle/service/kernel_helpers.h"
-#include "core/hle/service/nfp/nfp_types.h"
-#include "core/hle/service/service.h"
-
-namespace Kernel {
-class KEvent;
-class KReadableEvent;
-} // namespace Kernel
-
-namespace Core {
-class System;
-} // namespace Core
-
-namespace Core::HID {
-class EmulatedController;
-enum class ControllerTriggerType;
-enum class NpadIdType : u32;
-} // namespace Core::HID
-
-namespace Service::NFC {
-class NfcDevice {
-public:
- NfcDevice(Core::HID::NpadIdType npad_id_, Core::System& system_,
- KernelHelpers::ServiceContext& service_context_,
- Kernel::KEvent* availability_change_event_);
- ~NfcDevice();
-
- void Initialize();
- void Finalize();
-
- Result StartDetection(NFP::TagProtocol allowed_protocol);
- Result StopDetection();
- Result Flush();
-
- Result GetTagInfo(NFP::TagInfo& tag_info, bool is_mifare) const;
-
- Result MifareRead(const NFP::MifareReadBlockParameter& parameter,
- NFP::MifareReadBlockData& read_block_data);
-
- Result MifareWrite(const NFP::MifareWriteBlockParameter& parameter);
-
- u64 GetHandle() const;
- NFP::DeviceState GetCurrentState() const;
- Core::HID::NpadIdType GetNpadId() const;
-
- Kernel::KReadableEvent& GetActivateEvent() const;
- Kernel::KReadableEvent& GetDeactivateEvent() const;
-
-private:
- void NpadUpdate(Core::HID::ControllerTriggerType type);
- bool LoadNfcTag(std::span<const u8> data);
- void CloseNfcTag();
-
- bool is_controller_set{};
- int callback_key;
- const Core::HID::NpadIdType npad_id;
- Core::System& system;
- Core::HID::EmulatedController* npad_device = nullptr;
- KernelHelpers::ServiceContext& service_context;
- Kernel::KEvent* activate_event = nullptr;
- Kernel::KEvent* deactivate_event = nullptr;
- Kernel::KEvent* availability_change_event = nullptr;
-
- NFP::TagProtocol allowed_protocols{};
- NFP::DeviceState device_state{NFP::DeviceState::Unavailable};
-
- NFP::EncryptedNTAG215File encrypted_tag_data{};
- std::vector<u8> tag_data{};
-};
-
-} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_interface.cpp b/src/core/hle/service/nfc/nfc_interface.cpp
new file mode 100644
index 000000000..e7ca7582e
--- /dev/null
+++ b/src/core/hle/service/nfc/nfc_interface.cpp
@@ -0,0 +1,394 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "core/core.h"
+#include "core/hid/hid_types.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/nfc/common/device.h"
+#include "core/hle/service/nfc/common/device_manager.h"
+#include "core/hle/service/nfc/mifare_result.h"
+#include "core/hle/service/nfc/mifare_types.h"
+#include "core/hle/service/nfc/nfc_interface.h"
+#include "core/hle/service/nfc/nfc_result.h"
+#include "core/hle/service/nfc/nfc_types.h"
+#include "core/hle/service/nfp/nfp_result.h"
+#include "core/hle/service/time/clock_types.h"
+
+namespace Service::NFC {
+
+NfcInterface::NfcInterface(Core::System& system_, const char* name, BackendType service_backend)
+ : ServiceFramework{system_, name}, service_context{system_, service_name},
+ backend_type{service_backend} {}
+
+NfcInterface ::~NfcInterface() = default;
+
+void NfcInterface::Initialize(HLERequestContext& ctx) {
+ LOG_INFO(Service_NFC, "called");
+
+ auto manager = GetManager();
+ auto result = manager->Initialize();
+
+ if (result.IsSuccess()) {
+ state = State::Initialized;
+ } else {
+ manager->Finalize();
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2, 0};
+ rb.Push(result);
+}
+
+void NfcInterface::Finalize(HLERequestContext& ctx) {
+ LOG_INFO(Service_NFC, "called");
+
+ if (state != State::NonInitialized) {
+ if (GetBackendType() != BackendType::None) {
+ GetManager()->Finalize();
+ }
+ device_manager = nullptr;
+ state = State::NonInitialized;
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultSuccess);
+}
+
+void NfcInterface::GetState(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NFC, "called");
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.PushEnum(state);
+}
+
+void NfcInterface::IsNfcEnabled(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NFC, "called");
+
+ // TODO: This calls nn::settings::detail::GetNfcEnableFlag
+ const bool is_enabled = true;
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.Push(is_enabled);
+}
+
+void NfcInterface::ListDevices(HLERequestContext& ctx) {
+ std::vector<u64> nfp_devices;
+ const std::size_t max_allowed_devices = ctx.GetWriteBufferNumElements<u64>();
+ LOG_DEBUG(Service_NFC, "called");
+
+ auto result = GetManager()->ListDevices(nfp_devices, max_allowed_devices);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsError()) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ ctx.WriteBuffer(nfp_devices);
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.Push(static_cast<s32>(nfp_devices.size()));
+}
+
+void NfcInterface::GetDeviceState(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
+
+ const auto device_state = GetManager()->GetDeviceState(device_handle);
+
+ if (device_state > DeviceState::Finalized) {
+ ASSERT_MSG(false, "Invalid device state");
+ }
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.PushEnum(device_state);
+}
+
+void NfcInterface::GetNpadId(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
+
+ Core::HID::NpadIdType npad_id{};
+ auto result = GetManager()->GetNpadId(device_handle, npad_id);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsError()) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.PushEnum(npad_id);
+}
+
+void NfcInterface::AttachAvailabilityChangeEvent(HLERequestContext& ctx) {
+ LOG_INFO(Service_NFC, "called");
+
+ IPC::ResponseBuilder rb{ctx, 2, 1};
+ rb.Push(ResultSuccess);
+ rb.PushCopyObjects(GetManager()->AttachAvailabilityChangeEvent());
+}
+
+void NfcInterface::StartDetection(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ auto tag_protocol{NfcProtocol::All};
+
+ if (backend_type == BackendType::Nfc) {
+ tag_protocol = rp.PopEnum<NfcProtocol>();
+ }
+
+ LOG_INFO(Service_NFC, "called, device_handle={}, nfp_protocol={}", device_handle, tag_protocol);
+ auto result = GetManager()->StartDetection(device_handle, tag_protocol);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void NfcInterface::StopDetection(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->StopDetection(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void NfcInterface::GetTagInfo(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
+
+ TagInfo tag_info{};
+ auto result = GetManager()->GetTagInfo(device_handle, tag_info);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(tag_info);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void NfcInterface::AttachActivateEvent(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
+
+ IPC::ResponseBuilder rb{ctx, 2, 1};
+ rb.Push(ResultSuccess);
+ rb.PushCopyObjects(GetManager()->AttachActivateEvent(device_handle));
+}
+
+void NfcInterface::AttachDeactivateEvent(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
+
+ IPC::ResponseBuilder rb{ctx, 2, 1};
+ rb.Push(ResultSuccess);
+ rb.PushCopyObjects(GetManager()->AttachDeactivateEvent(device_handle));
+}
+
+void NfcInterface::ReadMifare(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto buffer{ctx.ReadBuffer()};
+ const auto number_of_commands{ctx.GetReadBufferNumElements<MifareReadBlockParameter>()};
+ std::vector<MifareReadBlockParameter> read_commands(number_of_commands);
+
+ memcpy(read_commands.data(), buffer.data(),
+ number_of_commands * sizeof(MifareReadBlockParameter));
+
+ LOG_INFO(Service_NFC, "called, device_handle={}, read_commands_size={}", device_handle,
+ number_of_commands);
+
+ std::vector<MifareReadBlockData> out_data(number_of_commands);
+ auto result = GetManager()->ReadMifare(device_handle, read_commands, out_data);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(out_data);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void NfcInterface::WriteMifare(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto buffer{ctx.ReadBuffer()};
+ const auto number_of_commands{ctx.GetReadBufferNumElements<MifareWriteBlockParameter>()};
+ std::vector<MifareWriteBlockParameter> write_commands(number_of_commands);
+
+ memcpy(write_commands.data(), buffer.data(),
+ number_of_commands * sizeof(MifareWriteBlockParameter));
+
+ LOG_INFO(Service_NFC, "(STUBBED) called, device_handle={}, write_commands_size={}",
+ device_handle, number_of_commands);
+
+ auto result = GetManager()->WriteMifare(device_handle, write_commands);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void NfcInterface::SendCommandByPassThrough(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto timeout{rp.PopRaw<Time::Clock::TimeSpanType>()};
+ const auto command_data{ctx.ReadBuffer()};
+ LOG_INFO(Service_NFC, "(STUBBED) called, device_handle={}, timeout={}, data_size={}",
+ device_handle, timeout.ToSeconds(), command_data.size());
+
+ std::vector<u8> out_data(1);
+ auto result =
+ GetManager()->SendCommandByPassThrough(device_handle, timeout, command_data, out_data);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsError()) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ ctx.WriteBuffer(out_data);
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.Push(static_cast<u32>(out_data.size()));
+}
+
+std::shared_ptr<DeviceManager> NfcInterface::GetManager() {
+ if (device_manager == nullptr) {
+ device_manager = std::make_shared<DeviceManager>(system, service_context);
+ }
+ return device_manager;
+}
+
+BackendType NfcInterface::GetBackendType() const {
+ return backend_type;
+}
+
+Result NfcInterface::TranslateResultToServiceError(Result result) const {
+ const auto backend = GetBackendType();
+
+ if (result.IsSuccess()) {
+ return result;
+ }
+
+ if (result.module != ErrorModule::NFC) {
+ return result;
+ }
+
+ switch (backend) {
+ case BackendType::Mifare:
+ return TranslateResultToNfp(result);
+ case BackendType::Nfp: {
+ return TranslateResultToNfp(result);
+ }
+ default:
+ if (result != ResultBackupPathAlreadyExist) {
+ return result;
+ }
+ return ResultUnknown74;
+ }
+}
+
+Result NfcInterface::TranslateResultToNfp(Result result) const {
+ if (result == ResultDeviceNotFound) {
+ return NFP::ResultDeviceNotFound;
+ }
+ if (result == ResultInvalidArgument) {
+ return NFP::ResultInvalidArgument;
+ }
+ if (result == ResultWrongApplicationAreaSize) {
+ return NFP::ResultWrongApplicationAreaSize;
+ }
+ if (result == ResultWrongDeviceState) {
+ return NFP::ResultWrongDeviceState;
+ }
+ if (result == ResultUnknown74) {
+ return NFP::ResultUnknown74;
+ }
+ if (result == ResultNfcDisabled) {
+ return NFP::ResultNfcDisabled;
+ }
+ if (result == ResultNfcNotInitialized) {
+ return NFP::ResultNfcDisabled;
+ }
+ if (result == ResultWriteAmiiboFailed) {
+ return NFP::ResultWriteAmiiboFailed;
+ }
+ if (result == ResultTagRemoved) {
+ return NFP::ResultTagRemoved;
+ }
+ if (result == ResultRegistrationIsNotInitialized) {
+ return NFP::ResultRegistrationIsNotInitialized;
+ }
+ if (result == ResultApplicationAreaIsNotInitialized) {
+ return NFP::ResultApplicationAreaIsNotInitialized;
+ }
+ if (result == ResultCorruptedDataWithBackup) {
+ return NFP::ResultCorruptedDataWithBackup;
+ }
+ if (result == ResultCorruptedData) {
+ return NFP::ResultCorruptedData;
+ }
+ if (result == ResultWrongApplicationAreaId) {
+ return NFP::ResultWrongApplicationAreaId;
+ }
+ if (result == ResultApplicationAreaExist) {
+ return NFP::ResultApplicationAreaExist;
+ }
+ if (result == ResultInvalidTagType) {
+ return NFP::ResultNotAnAmiibo;
+ }
+ if (result == ResultUnableToAccessBackupFile) {
+ return NFP::ResultUnableToAccessBackupFile;
+ }
+ LOG_WARNING(Service_NFC, "Result conversion not handled");
+ return result;
+}
+
+Result NfcInterface::TranslateResultToMifare(Result result) const {
+ if (result == ResultDeviceNotFound) {
+ return Mifare::ResultDeviceNotFound;
+ }
+ if (result == ResultInvalidArgument) {
+ return Mifare::ResultInvalidArgument;
+ }
+ if (result == ResultWrongDeviceState) {
+ return Mifare::ResultWrongDeviceState;
+ }
+ if (result == ResultNfcDisabled) {
+ return Mifare::ResultNfcDisabled;
+ }
+ if (result == ResultTagRemoved) {
+ return Mifare::ResultTagRemoved;
+ }
+ if (result == ResultInvalidTagType) {
+ return Mifare::ResultNotAMifare;
+ }
+ LOG_WARNING(Service_NFC, "Result conversion not handled");
+ return result;
+}
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_interface.h b/src/core/hle/service/nfc/nfc_interface.h
new file mode 100644
index 000000000..08be174d8
--- /dev/null
+++ b/src/core/hle/service/nfc/nfc_interface.h
@@ -0,0 +1,49 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/nfc/nfc_types.h"
+#include "core/hle/service/service.h"
+
+namespace Service::NFC {
+class DeviceManager;
+
+class NfcInterface : public ServiceFramework<NfcInterface> {
+public:
+ explicit NfcInterface(Core::System& system_, const char* name, BackendType service_backend);
+ ~NfcInterface();
+
+ void Initialize(HLERequestContext& ctx);
+ void Finalize(HLERequestContext& ctx);
+ void GetState(HLERequestContext& ctx);
+ void IsNfcEnabled(HLERequestContext& ctx);
+ void ListDevices(HLERequestContext& ctx);
+ void GetDeviceState(HLERequestContext& ctx);
+ void GetNpadId(HLERequestContext& ctx);
+ void AttachAvailabilityChangeEvent(HLERequestContext& ctx);
+ void StartDetection(HLERequestContext& ctx);
+ void StopDetection(HLERequestContext& ctx);
+ void GetTagInfo(HLERequestContext& ctx);
+ void AttachActivateEvent(HLERequestContext& ctx);
+ void AttachDeactivateEvent(HLERequestContext& ctx);
+ void ReadMifare(HLERequestContext& ctx);
+ void WriteMifare(HLERequestContext& ctx);
+ void SendCommandByPassThrough(HLERequestContext& ctx);
+
+protected:
+ std::shared_ptr<DeviceManager> GetManager();
+ BackendType GetBackendType() const;
+ Result TranslateResultToServiceError(Result result) const;
+ Result TranslateResultToNfp(Result result) const;
+ Result TranslateResultToMifare(Result result) const;
+
+ KernelHelpers::ServiceContext service_context;
+
+ BackendType backend_type;
+ State state{State::NonInitialized};
+ std::shared_ptr<DeviceManager> device_manager = nullptr;
+};
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_result.h b/src/core/hle/service/nfc/nfc_result.h
index 146b8ba61..715c0e80c 100644
--- a/src/core/hle/service/nfc/nfc_result.h
+++ b/src/core/hle/service/nfc/nfc_result.h
@@ -1,5 +1,5 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
@@ -7,17 +7,25 @@
namespace Service::NFC {
-constexpr Result DeviceNotFound(ErrorModule::NFC, 64);
-constexpr Result InvalidArgument(ErrorModule::NFC, 65);
-constexpr Result WrongDeviceState(ErrorModule::NFC, 73);
-constexpr Result NfcDisabled(ErrorModule::NFC, 80);
-constexpr Result TagRemoved(ErrorModule::NFC, 97);
-
-constexpr Result MifareDeviceNotFound(ErrorModule::NFCMifare, 64);
-constexpr Result MifareInvalidArgument(ErrorModule::NFCMifare, 65);
-constexpr Result MifareWrongDeviceState(ErrorModule::NFCMifare, 73);
-constexpr Result MifareNfcDisabled(ErrorModule::NFCMifare, 80);
-constexpr Result MifareTagRemoved(ErrorModule::NFCMifare, 97);
-constexpr Result MifareReadError(ErrorModule::NFCMifare, 288);
+constexpr Result ResultDeviceNotFound(ErrorModule::NFC, 64);
+constexpr Result ResultInvalidArgument(ErrorModule::NFC, 65);
+constexpr Result ResultWrongApplicationAreaSize(ErrorModule::NFC, 68);
+constexpr Result ResultWrongDeviceState(ErrorModule::NFC, 73);
+constexpr Result ResultUnknown74(ErrorModule::NFC, 74);
+constexpr Result ResultUnknown76(ErrorModule::NFC, 76);
+constexpr Result ResultNfcNotInitialized(ErrorModule::NFC, 77);
+constexpr Result ResultNfcDisabled(ErrorModule::NFC, 80);
+constexpr Result ResultWriteAmiiboFailed(ErrorModule::NFC, 88);
+constexpr Result ResultTagRemoved(ErrorModule::NFC, 97);
+constexpr Result ResultUnableToAccessBackupFile(ErrorModule::NFC, 113);
+constexpr Result ResultRegistrationIsNotInitialized(ErrorModule::NFC, 120);
+constexpr Result ResultApplicationAreaIsNotInitialized(ErrorModule::NFC, 128);
+constexpr Result ResultCorruptedDataWithBackup(ErrorModule::NFC, 136);
+constexpr Result ResultCorruptedData(ErrorModule::NFC, 144);
+constexpr Result ResultWrongApplicationAreaId(ErrorModule::NFC, 152);
+constexpr Result ResultApplicationAreaExist(ErrorModule::NFC, 168);
+constexpr Result ResultInvalidTagType(ErrorModule::NFC, 178);
+constexpr Result ResultBackupPathAlreadyExist(ErrorModule::NFC, 216);
+constexpr Result ResultMifareError288(ErrorModule::NFC, 288);
} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_types.h b/src/core/hle/service/nfc/nfc_types.h
new file mode 100644
index 000000000..68e724442
--- /dev/null
+++ b/src/core/hle/service/nfc/nfc_types.h
@@ -0,0 +1,91 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <array>
+
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+
+namespace Service::NFC {
+enum class BackendType : u32 {
+ None,
+ Nfc,
+ Nfp,
+ Mifare,
+};
+
+// This is nn::nfc::DeviceState
+enum class DeviceState : u32 {
+ Initialized,
+ SearchingForTag,
+ TagFound,
+ TagRemoved,
+ TagMounted,
+ Unavailable,
+ Finalized,
+};
+
+// This is nn::nfc::State
+enum class State : u32 {
+ NonInitialized,
+ Initialized,
+};
+
+// This is nn::nfc::TagType
+enum class TagType : u32 {
+ None = 0,
+ Type1 = 1U << 0, // ISO14443A RW. Topaz
+ Type2 = 1U << 1, // ISO14443A RW. Ultralight, NTAGX, ST25TN
+ Type3 = 1U << 2, // ISO14443A RW/RO. Sony FeliCa
+ Type4A = 1U << 3, // ISO14443A RW/RO. DESFire
+ Type4B = 1U << 4, // ISO14443B RW/RO. DESFire
+ Type5 = 1U << 5, // ISO15693 RW/RO. SLI, SLIX, ST25TV
+ Mifare = 1U << 6, // Mifare classic. Skylanders
+ All = 0xFFFFFFFF,
+};
+
+enum class PackedTagType : u8 {
+ None = 0,
+ Type1 = 1U << 0, // ISO14443A RW. Topaz
+ Type2 = 1U << 1, // ISO14443A RW. Ultralight, NTAGX, ST25TN
+ Type3 = 1U << 2, // ISO14443A RW/RO. Sony FeliCa
+ Type4A = 1U << 3, // ISO14443A RW/RO. DESFire
+ Type4B = 1U << 4, // ISO14443B RW/RO. DESFire
+ Type5 = 1U << 5, // ISO15693 RW/RO. SLI, SLIX, ST25TV
+ Mifare = 1U << 6, // Mifare classic. Skylanders
+ All = 0xFF,
+};
+
+// This is nn::nfc::NfcProtocol
+enum class NfcProtocol : u32 {
+ None,
+ TypeA = 1U << 0, // ISO14443A
+ TypeB = 1U << 1, // ISO14443B
+ TypeF = 1U << 2, // Sony FeliCa
+ All = 0xFFFFFFFFU,
+};
+
+// this is nn::nfc::TestWaveType
+enum class TestWaveType : u32 {
+ Unknown,
+};
+
+using UniqueSerialNumber = std::array<u8, 10>;
+
+// This is nn::nfc::DeviceHandle
+using DeviceHandle = u64;
+
+// This is nn::nfc::TagInfo
+struct TagInfo {
+ UniqueSerialNumber uuid;
+ u8 uuid_length;
+ INSERT_PADDING_BYTES(0x15);
+ NfcProtocol protocol;
+ TagType tag_type;
+ INSERT_PADDING_BYTES(0x30);
+};
+static_assert(sizeof(TagInfo) == 0x58, "TagInfo is an invalid size");
+
+} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_user.cpp b/src/core/hle/service/nfc/nfc_user.cpp
deleted file mode 100644
index 89aa6b3f5..000000000
--- a/src/core/hle/service/nfc/nfc_user.cpp
+++ /dev/null
@@ -1,365 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "common/logging/log.h"
-#include "core/core.h"
-#include "core/hid/hid_types.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/service/nfc/nfc_device.h"
-#include "core/hle/service/nfc/nfc_result.h"
-#include "core/hle/service/nfc/nfc_user.h"
-#include "core/hle/service/time/clock_types.h"
-
-namespace Service::NFC {
-
-IUser::IUser(Core::System& system_)
- : ServiceFramework{system_, "NFC::IUser"}, service_context{system_, service_name} {
- static const FunctionInfo functions[] = {
- {0, &IUser::Initialize, "InitializeOld"},
- {1, &IUser::Finalize, "FinalizeOld"},
- {2, &IUser::GetState, "GetStateOld"},
- {3, &IUser::IsNfcEnabled, "IsNfcEnabledOld"},
- {400, &IUser::Initialize, "Initialize"},
- {401, &IUser::Finalize, "Finalize"},
- {402, &IUser::GetState, "GetState"},
- {403, &IUser::IsNfcEnabled, "IsNfcEnabled"},
- {404, &IUser::ListDevices, "ListDevices"},
- {405, &IUser::GetDeviceState, "GetDeviceState"},
- {406, &IUser::GetNpadId, "GetNpadId"},
- {407, &IUser::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
- {408, &IUser::StartDetection, "StartDetection"},
- {409, &IUser::StopDetection, "StopDetection"},
- {410, &IUser::GetTagInfo, "GetTagInfo"},
- {411, &IUser::AttachActivateEvent, "AttachActivateEvent"},
- {412, &IUser::AttachDeactivateEvent, "AttachDeactivateEvent"},
- {1000, nullptr, "ReadMifare"},
- {1001, nullptr, "WriteMifare"},
- {1300, &IUser::SendCommandByPassThrough, "SendCommandByPassThrough"},
- {1301, nullptr, "KeepPassThroughSession"},
- {1302, nullptr, "ReleasePassThroughSession"},
- };
- RegisterHandlers(functions);
-
- availability_change_event = service_context.CreateEvent("IUser:AvailabilityChangeEvent");
-
- for (u32 device_index = 0; device_index < 10; device_index++) {
- devices[device_index] =
- std::make_shared<NfcDevice>(Core::HID::IndexToNpadIdType(device_index), system,
- service_context, availability_change_event);
- }
-}
-
-IUser ::~IUser() {
- availability_change_event->Close();
-}
-
-void IUser::Initialize(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFC, "called");
-
- state = State::Initialized;
-
- for (auto& device : devices) {
- device->Initialize();
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 0};
- rb.Push(ResultSuccess);
-}
-
-void IUser::Finalize(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFC, "called");
-
- state = State::NonInitialized;
-
- for (auto& device : devices) {
- device->Finalize();
- }
-
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultSuccess);
-}
-
-void IUser::GetState(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFC, "called");
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(state);
-}
-
-void IUser::IsNfcEnabled(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFC, "called");
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.Push(state != State::NonInitialized);
-}
-
-void IUser::ListDevices(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFC, "called");
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- if (!ctx.CanWriteBuffer()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(InvalidArgument);
- return;
- }
-
- if (ctx.GetWriteBufferSize() == 0) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(InvalidArgument);
- return;
- }
-
- std::vector<u64> nfp_devices;
- const std::size_t max_allowed_devices = ctx.GetWriteBufferNumElements<u64>();
-
- for (auto& device : devices) {
- if (nfp_devices.size() >= max_allowed_devices) {
- continue;
- }
- if (device->GetCurrentState() != NFP::DeviceState::Unavailable) {
- nfp_devices.push_back(device->GetHandle());
- }
- }
-
- if (nfp_devices.empty()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- ctx.WriteBuffer(nfp_devices);
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.Push(static_cast<s32>(nfp_devices.size()));
-}
-
-void IUser::GetDeviceState(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(device.value()->GetCurrentState());
-}
-
-void IUser::GetNpadId(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(device.value()->GetNpadId());
-}
-
-void IUser::AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFC, "called");
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(availability_change_event->GetReadableEvent());
-}
-
-void IUser::StartDetection(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto nfp_protocol{rp.PopEnum<NFP::TagProtocol>()};
- LOG_INFO(Service_NFC, "called, device_handle={}, nfp_protocol={}", device_handle, nfp_protocol);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->StartDetection(nfp_protocol);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::StopDetection(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->StopDetection();
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::GetTagInfo(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- NFP::TagInfo tag_info{};
- const auto result = device.value()->GetTagInfo(tag_info, false);
- ctx.WriteBuffer(tag_info);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::AttachActivateEvent(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(device.value()->GetActivateEvent());
-}
-
-void IUser::AttachDeactivateEvent(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFC, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(device.value()->GetDeactivateEvent());
-}
-
-void IUser::SendCommandByPassThrough(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto timeout{rp.PopRaw<Time::Clock::TimeSpanType>()};
- const auto command_data{ctx.ReadBuffer()};
-
- LOG_INFO(Service_NFC, "(STUBBED) called, device_handle={}, timeout={}, data_size={}",
- device_handle, timeout.ToSeconds(), command_data.size());
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfcDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- std::vector<u8> out_data(1);
- // TODO: Request data from nfc device
- ctx.WriteBuffer(out_data);
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.Push(static_cast<u32>(out_data.size()));
-}
-
-std::optional<std::shared_ptr<NfcDevice>> IUser::GetNfcDevice(u64 handle) {
- for (auto& device : devices) {
- if (device->GetHandle() == handle) {
- return device;
- }
- }
- return std::nullopt;
-}
-
-} // namespace Service::NFC
diff --git a/src/core/hle/service/nfc/nfc_user.h b/src/core/hle/service/nfc/nfc_user.h
deleted file mode 100644
index a5a4f12f9..000000000
--- a/src/core/hle/service/nfc/nfc_user.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <array>
-#include <memory>
-#include <optional>
-
-#include "core/hle/service/kernel_helpers.h"
-#include "core/hle/service/service.h"
-
-namespace Service::NFC {
-class NfcDevice;
-
-class IUser final : public ServiceFramework<IUser> {
-public:
- explicit IUser(Core::System& system_);
- ~IUser();
-
-private:
- enum class State : u32 {
- NonInitialized,
- Initialized,
- };
-
- void Initialize(Kernel::HLERequestContext& ctx);
- void Finalize(Kernel::HLERequestContext& ctx);
- void GetState(Kernel::HLERequestContext& ctx);
- void IsNfcEnabled(Kernel::HLERequestContext& ctx);
- void ListDevices(Kernel::HLERequestContext& ctx);
- void GetDeviceState(Kernel::HLERequestContext& ctx);
- void GetNpadId(Kernel::HLERequestContext& ctx);
- void AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx);
- void StartDetection(Kernel::HLERequestContext& ctx);
- void StopDetection(Kernel::HLERequestContext& ctx);
- void GetTagInfo(Kernel::HLERequestContext& ctx);
- void AttachActivateEvent(Kernel::HLERequestContext& ctx);
- void AttachDeactivateEvent(Kernel::HLERequestContext& ctx);
- void SendCommandByPassThrough(Kernel::HLERequestContext& ctx);
-
- std::optional<std::shared_ptr<NfcDevice>> GetNfcDevice(u64 handle);
-
- KernelHelpers::ServiceContext service_context;
-
- std::array<std::shared_ptr<NfcDevice>, 10> devices{};
-
- State state{State::NonInitialized};
- Kernel::KEvent* availability_change_event;
-};
-
-} // namespace Service::NFC
diff --git a/src/core/hle/service/nfp/amiibo_crypto.cpp b/src/core/hle/service/nfp/amiibo_crypto.cpp
deleted file mode 100644
index ffb2f959c..000000000
--- a/src/core/hle/service/nfp/amiibo_crypto.cpp
+++ /dev/null
@@ -1,393 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-// SPDX-FileCopyrightText: Copyright 2017 socram8888/amiitool
-// SPDX-License-Identifier: MIT
-
-#include <array>
-#include <mbedtls/aes.h>
-#include <mbedtls/hmac_drbg.h>
-
-#include "common/fs/file.h"
-#include "common/fs/fs.h"
-#include "common/fs/path_util.h"
-#include "common/logging/log.h"
-#include "core/hle/service/nfp/amiibo_crypto.h"
-
-namespace Service::NFP::AmiiboCrypto {
-
-bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file) {
- const auto& amiibo_data = ntag_file.user_memory;
- LOG_DEBUG(Service_NFP, "uuid_lock=0x{0:x}", ntag_file.static_lock);
- LOG_DEBUG(Service_NFP, "compability_container=0x{0:x}", ntag_file.compability_container);
- LOG_DEBUG(Service_NFP, "write_count={}", static_cast<u16>(amiibo_data.write_counter));
-
- LOG_DEBUG(Service_NFP, "character_id=0x{0:x}", amiibo_data.model_info.character_id);
- LOG_DEBUG(Service_NFP, "character_variant={}", amiibo_data.model_info.character_variant);
- LOG_DEBUG(Service_NFP, "amiibo_type={}", amiibo_data.model_info.amiibo_type);
- LOG_DEBUG(Service_NFP, "model_number=0x{0:x}",
- static_cast<u16>(amiibo_data.model_info.model_number));
- LOG_DEBUG(Service_NFP, "series={}", amiibo_data.model_info.series);
- LOG_DEBUG(Service_NFP, "tag_type=0x{0:x}", amiibo_data.model_info.tag_type);
-
- LOG_DEBUG(Service_NFP, "tag_dynamic_lock=0x{0:x}", ntag_file.dynamic_lock);
- LOG_DEBUG(Service_NFP, "tag_CFG0=0x{0:x}", ntag_file.CFG0);
- LOG_DEBUG(Service_NFP, "tag_CFG1=0x{0:x}", ntag_file.CFG1);
-
- // Validate UUID
- constexpr u8 CT = 0x88; // As defined in `ISO / IEC 14443 - 3`
- if ((CT ^ ntag_file.uuid.uid[0] ^ ntag_file.uuid.uid[1] ^ ntag_file.uuid.uid[2]) !=
- ntag_file.uuid.uid[3]) {
- return false;
- }
- if ((ntag_file.uuid.uid[4] ^ ntag_file.uuid.uid[5] ^ ntag_file.uuid.uid[6] ^
- ntag_file.uuid.nintendo_id) != ntag_file.uuid.lock_bytes[0]) {
- return false;
- }
-
- // Check against all know constants on an amiibo binary
- if (ntag_file.static_lock != 0xE00F) {
- return false;
- }
- if (ntag_file.compability_container != 0xEEFF10F1U) {
- return false;
- }
- if (amiibo_data.constant_value != 0xA5) {
- return false;
- }
- if (amiibo_data.model_info.tag_type != PackedTagType::Type2) {
- return false;
- }
- if ((ntag_file.dynamic_lock & 0xFFFFFF) != 0x0F0001U) {
- return false;
- }
- if (ntag_file.CFG0 != 0x04000000U) {
- return false;
- }
- if (ntag_file.CFG1 != 0x5F) {
- return false;
- }
- return true;
-}
-
-NTAG215File NfcDataToEncodedData(const EncryptedNTAG215File& nfc_data) {
- NTAG215File encoded_data{};
-
- encoded_data.uid = nfc_data.uuid.uid;
- encoded_data.nintendo_id = nfc_data.uuid.nintendo_id;
- encoded_data.static_lock = nfc_data.static_lock;
- encoded_data.compability_container = nfc_data.compability_container;
- encoded_data.hmac_data = nfc_data.user_memory.hmac_data;
- encoded_data.constant_value = nfc_data.user_memory.constant_value;
- encoded_data.write_counter = nfc_data.user_memory.write_counter;
- encoded_data.settings = nfc_data.user_memory.settings;
- encoded_data.owner_mii = nfc_data.user_memory.owner_mii;
- encoded_data.title_id = nfc_data.user_memory.title_id;
- encoded_data.applicaton_write_counter = nfc_data.user_memory.applicaton_write_counter;
- encoded_data.application_area_id = nfc_data.user_memory.application_area_id;
- encoded_data.unknown = nfc_data.user_memory.unknown;
- encoded_data.unknown2 = nfc_data.user_memory.unknown2;
- encoded_data.application_area = nfc_data.user_memory.application_area;
- encoded_data.hmac_tag = nfc_data.user_memory.hmac_tag;
- encoded_data.lock_bytes = nfc_data.uuid.lock_bytes;
- encoded_data.model_info = nfc_data.user_memory.model_info;
- encoded_data.keygen_salt = nfc_data.user_memory.keygen_salt;
- encoded_data.dynamic_lock = nfc_data.dynamic_lock;
- encoded_data.CFG0 = nfc_data.CFG0;
- encoded_data.CFG1 = nfc_data.CFG1;
- encoded_data.password = nfc_data.password;
-
- return encoded_data;
-}
-
-EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data) {
- EncryptedNTAG215File nfc_data{};
-
- nfc_data.uuid.uid = encoded_data.uid;
- nfc_data.uuid.nintendo_id = encoded_data.nintendo_id;
- nfc_data.uuid.lock_bytes = encoded_data.lock_bytes;
- nfc_data.static_lock = encoded_data.static_lock;
- nfc_data.compability_container = encoded_data.compability_container;
- nfc_data.user_memory.hmac_data = encoded_data.hmac_data;
- nfc_data.user_memory.constant_value = encoded_data.constant_value;
- nfc_data.user_memory.write_counter = encoded_data.write_counter;
- nfc_data.user_memory.settings = encoded_data.settings;
- nfc_data.user_memory.owner_mii = encoded_data.owner_mii;
- nfc_data.user_memory.title_id = encoded_data.title_id;
- nfc_data.user_memory.applicaton_write_counter = encoded_data.applicaton_write_counter;
- nfc_data.user_memory.application_area_id = encoded_data.application_area_id;
- nfc_data.user_memory.unknown = encoded_data.unknown;
- nfc_data.user_memory.unknown2 = encoded_data.unknown2;
- nfc_data.user_memory.application_area = encoded_data.application_area;
- nfc_data.user_memory.hmac_tag = encoded_data.hmac_tag;
- nfc_data.user_memory.model_info = encoded_data.model_info;
- nfc_data.user_memory.keygen_salt = encoded_data.keygen_salt;
- nfc_data.dynamic_lock = encoded_data.dynamic_lock;
- nfc_data.CFG0 = encoded_data.CFG0;
- nfc_data.CFG1 = encoded_data.CFG1;
- nfc_data.password = encoded_data.password;
-
- return nfc_data;
-}
-
-u32 GetTagPassword(const TagUuid& uuid) {
- // Verifiy that the generated password is correct
- u32 password = 0xAA ^ (uuid.uid[1] ^ uuid.uid[3]);
- password &= (0x55 ^ (uuid.uid[2] ^ uuid.uid[4])) << 8;
- password &= (0xAA ^ (uuid.uid[3] ^ uuid.uid[5])) << 16;
- password &= (0x55 ^ (uuid.uid[4] ^ uuid.uid[6])) << 24;
- return password;
-}
-
-HashSeed GetSeed(const NTAG215File& data) {
- HashSeed seed{
- .magic = data.write_counter,
- .padding = {},
- .uid_1 = data.uid,
- .nintendo_id_1 = data.nintendo_id,
- .uid_2 = data.uid,
- .nintendo_id_2 = data.nintendo_id,
- .keygen_salt = data.keygen_salt,
- };
-
- return seed;
-}
-
-std::vector<u8> GenerateInternalKey(const InternalKey& key, const HashSeed& seed) {
- const std::size_t seedPart1Len = sizeof(key.magic_bytes) - key.magic_length;
- const std::size_t string_size = key.type_string.size();
- std::vector<u8> output(string_size + seedPart1Len);
-
- // Copy whole type string
- memccpy(output.data(), key.type_string.data(), '\0', string_size);
-
- // Append (16 - magic_length) from the input seed
- memcpy(output.data() + string_size, &seed, seedPart1Len);
-
- // Append all bytes from magicBytes
- output.insert(output.end(), key.magic_bytes.begin(),
- key.magic_bytes.begin() + key.magic_length);
-
- output.insert(output.end(), seed.uid_1.begin(), seed.uid_1.end());
- output.emplace_back(seed.nintendo_id_1);
- output.insert(output.end(), seed.uid_2.begin(), seed.uid_2.end());
- output.emplace_back(seed.nintendo_id_2);
-
- for (std::size_t i = 0; i < sizeof(seed.keygen_salt); i++) {
- output.emplace_back(static_cast<u8>(seed.keygen_salt[i] ^ key.xor_pad[i]));
- }
-
- return output;
-}
-
-void CryptoInit(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, const HmacKey& hmac_key,
- const std::vector<u8>& seed) {
- // Initialize context
- ctx.used = false;
- ctx.counter = 0;
- ctx.buffer_size = sizeof(ctx.counter) + seed.size();
- memcpy(ctx.buffer.data() + sizeof(u16), seed.data(), seed.size());
-
- // Initialize HMAC context
- mbedtls_md_init(&hmac_ctx);
- mbedtls_md_setup(&hmac_ctx, mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), 1);
- mbedtls_md_hmac_starts(&hmac_ctx, hmac_key.data(), hmac_key.size());
-}
-
-void CryptoStep(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, DrgbOutput& output) {
- // If used at least once, reinitialize the HMAC
- if (ctx.used) {
- mbedtls_md_hmac_reset(&hmac_ctx);
- }
-
- ctx.used = true;
-
- // Store counter in big endian, and increment it
- ctx.buffer[0] = static_cast<u8>(ctx.counter >> 8);
- ctx.buffer[1] = static_cast<u8>(ctx.counter >> 0);
- ctx.counter++;
-
- // Do HMAC magic
- mbedtls_md_hmac_update(&hmac_ctx, reinterpret_cast<const unsigned char*>(ctx.buffer.data()),
- ctx.buffer_size);
- mbedtls_md_hmac_finish(&hmac_ctx, output.data());
-}
-
-DerivedKeys GenerateKey(const InternalKey& key, const NTAG215File& data) {
- const auto seed = GetSeed(data);
-
- // Generate internal seed
- const std::vector<u8> internal_key = GenerateInternalKey(key, seed);
-
- // Initialize context
- CryptoCtx ctx{};
- mbedtls_md_context_t hmac_ctx;
- CryptoInit(ctx, hmac_ctx, key.hmac_key, internal_key);
-
- // Generate derived keys
- DerivedKeys derived_keys{};
- std::array<DrgbOutput, 2> temp{};
- CryptoStep(ctx, hmac_ctx, temp[0]);
- CryptoStep(ctx, hmac_ctx, temp[1]);
- memcpy(&derived_keys, temp.data(), sizeof(DerivedKeys));
-
- // Cleanup context
- mbedtls_md_free(&hmac_ctx);
-
- return derived_keys;
-}
-
-void Cipher(const DerivedKeys& keys, const NTAG215File& in_data, NTAG215File& out_data) {
- mbedtls_aes_context aes;
- std::size_t nc_off = 0;
- std::array<u8, sizeof(keys.aes_iv)> nonce_counter{};
- std::array<u8, sizeof(keys.aes_iv)> stream_block{};
-
- const auto aes_key_size = static_cast<u32>(keys.aes_key.size() * 8);
- mbedtls_aes_setkey_enc(&aes, keys.aes_key.data(), aes_key_size);
- memcpy(nonce_counter.data(), keys.aes_iv.data(), sizeof(keys.aes_iv));
-
- constexpr std::size_t encrypted_data_size = HMAC_TAG_START - SETTINGS_START;
- mbedtls_aes_crypt_ctr(&aes, encrypted_data_size, &nc_off, nonce_counter.data(),
- stream_block.data(),
- reinterpret_cast<const unsigned char*>(&in_data.settings),
- reinterpret_cast<unsigned char*>(&out_data.settings));
-
- // Copy the rest of the data directly
- out_data.uid = in_data.uid;
- out_data.nintendo_id = in_data.nintendo_id;
- out_data.lock_bytes = in_data.lock_bytes;
- out_data.static_lock = in_data.static_lock;
- out_data.compability_container = in_data.compability_container;
-
- out_data.constant_value = in_data.constant_value;
- out_data.write_counter = in_data.write_counter;
-
- out_data.model_info = in_data.model_info;
- out_data.keygen_salt = in_data.keygen_salt;
- out_data.dynamic_lock = in_data.dynamic_lock;
- out_data.CFG0 = in_data.CFG0;
- out_data.CFG1 = in_data.CFG1;
- out_data.password = in_data.password;
-}
-
-bool LoadKeys(InternalKey& locked_secret, InternalKey& unfixed_info) {
- const auto yuzu_keys_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::KeysDir);
-
- const Common::FS::IOFile keys_file{yuzu_keys_dir / "key_retail.bin",
- Common::FS::FileAccessMode::Read,
- Common::FS::FileType::BinaryFile};
-
- if (!keys_file.IsOpen()) {
- LOG_ERROR(Service_NFP, "Failed to open key file");
- return false;
- }
-
- if (keys_file.Read(unfixed_info) != 1) {
- LOG_ERROR(Service_NFP, "Failed to read unfixed_info");
- return false;
- }
- if (keys_file.Read(locked_secret) != 1) {
- LOG_ERROR(Service_NFP, "Failed to read locked-secret");
- return false;
- }
-
- return true;
-}
-
-bool IsKeyAvailable() {
- const auto yuzu_keys_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::KeysDir);
- return Common::FS::Exists(yuzu_keys_dir / "key_retail.bin");
-}
-
-bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data) {
- InternalKey locked_secret{};
- InternalKey unfixed_info{};
-
- if (!LoadKeys(locked_secret, unfixed_info)) {
- return false;
- }
-
- // Generate keys
- NTAG215File encoded_data = NfcDataToEncodedData(encrypted_tag_data);
- const auto data_keys = GenerateKey(unfixed_info, encoded_data);
- const auto tag_keys = GenerateKey(locked_secret, encoded_data);
-
- // Decrypt
- Cipher(data_keys, encoded_data, tag_data);
-
- // Regenerate tag HMAC. Note: order matters, data HMAC depends on tag HMAC!
- constexpr std::size_t input_length = DYNAMIC_LOCK_START - UUID_START;
- mbedtls_md_hmac(mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), tag_keys.hmac_key.data(),
- sizeof(HmacKey), reinterpret_cast<const unsigned char*>(&tag_data.uid),
- input_length, reinterpret_cast<unsigned char*>(&tag_data.hmac_tag));
-
- // Regenerate data HMAC
- constexpr std::size_t input_length2 = DYNAMIC_LOCK_START - WRITE_COUNTER_START;
- mbedtls_md_hmac(mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), data_keys.hmac_key.data(),
- sizeof(HmacKey),
- reinterpret_cast<const unsigned char*>(&tag_data.write_counter), input_length2,
- reinterpret_cast<unsigned char*>(&tag_data.hmac_data));
-
- if (tag_data.hmac_data != encrypted_tag_data.user_memory.hmac_data) {
- LOG_ERROR(Service_NFP, "hmac_data doesn't match");
- return false;
- }
-
- if (tag_data.hmac_tag != encrypted_tag_data.user_memory.hmac_tag) {
- LOG_ERROR(Service_NFP, "hmac_tag doesn't match");
- return false;
- }
-
- return true;
-}
-
-bool EncodeAmiibo(const NTAG215File& tag_data, EncryptedNTAG215File& encrypted_tag_data) {
- InternalKey locked_secret{};
- InternalKey unfixed_info{};
-
- if (!LoadKeys(locked_secret, unfixed_info)) {
- return false;
- }
-
- // Generate keys
- const auto data_keys = GenerateKey(unfixed_info, tag_data);
- const auto tag_keys = GenerateKey(locked_secret, tag_data);
-
- NTAG215File encoded_tag_data{};
-
- // Generate tag HMAC
- constexpr std::size_t input_length = DYNAMIC_LOCK_START - UUID_START;
- constexpr std::size_t input_length2 = HMAC_TAG_START - WRITE_COUNTER_START;
- mbedtls_md_hmac(mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), tag_keys.hmac_key.data(),
- sizeof(HmacKey), reinterpret_cast<const unsigned char*>(&tag_data.uid),
- input_length, reinterpret_cast<unsigned char*>(&encoded_tag_data.hmac_tag));
-
- // Init mbedtls HMAC context
- mbedtls_md_context_t ctx;
- mbedtls_md_init(&ctx);
- mbedtls_md_setup(&ctx, mbedtls_md_info_from_type(MBEDTLS_MD_SHA256), 1);
-
- // Generate data HMAC
- mbedtls_md_hmac_starts(&ctx, data_keys.hmac_key.data(), sizeof(HmacKey));
- mbedtls_md_hmac_update(&ctx, reinterpret_cast<const unsigned char*>(&tag_data.write_counter),
- input_length2); // Data
- mbedtls_md_hmac_update(&ctx, reinterpret_cast<unsigned char*>(&encoded_tag_data.hmac_tag),
- sizeof(HashData)); // Tag HMAC
- mbedtls_md_hmac_update(&ctx, reinterpret_cast<const unsigned char*>(&tag_data.uid),
- input_length);
- mbedtls_md_hmac_finish(&ctx, reinterpret_cast<unsigned char*>(&encoded_tag_data.hmac_data));
-
- // HMAC cleanup
- mbedtls_md_free(&ctx);
-
- // Encrypt
- Cipher(data_keys, tag_data, encoded_tag_data);
-
- // Convert back to hardware
- encrypted_tag_data = EncodedDataToNfcData(encoded_tag_data);
-
- return true;
-}
-
-} // namespace Service::NFP::AmiiboCrypto
diff --git a/src/core/hle/service/nfp/amiibo_crypto.h b/src/core/hle/service/nfp/amiibo_crypto.h
deleted file mode 100644
index 1fa61174e..000000000
--- a/src/core/hle/service/nfp/amiibo_crypto.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#pragma once
-
-#include <array>
-
-#include "core/hle/service/nfp/nfp_types.h"
-
-struct mbedtls_md_context_t;
-
-namespace Service::NFP::AmiiboCrypto {
-// Byte locations in Service::NFP::NTAG215File
-constexpr std::size_t HMAC_DATA_START = 0x8;
-constexpr std::size_t SETTINGS_START = 0x2c;
-constexpr std::size_t WRITE_COUNTER_START = 0x29;
-constexpr std::size_t HMAC_TAG_START = 0x1B4;
-constexpr std::size_t UUID_START = 0x1D4;
-constexpr std::size_t DYNAMIC_LOCK_START = 0x208;
-
-using HmacKey = std::array<u8, 0x10>;
-using DrgbOutput = std::array<u8, 0x20>;
-
-struct HashSeed {
- u16_be magic;
- std::array<u8, 0xE> padding;
- UniqueSerialNumber uid_1;
- u8 nintendo_id_1;
- UniqueSerialNumber uid_2;
- u8 nintendo_id_2;
- std::array<u8, 0x20> keygen_salt;
-};
-static_assert(sizeof(HashSeed) == 0x40, "HashSeed is an invalid size");
-
-struct InternalKey {
- HmacKey hmac_key;
- std::array<char, 0xE> type_string;
- u8 reserved;
- u8 magic_length;
- std::array<u8, 0x10> magic_bytes;
- std::array<u8, 0x20> xor_pad;
-};
-static_assert(sizeof(InternalKey) == 0x50, "InternalKey is an invalid size");
-static_assert(std::is_trivially_copyable_v<InternalKey>, "InternalKey must be trivially copyable.");
-
-struct CryptoCtx {
- std::array<char, 480> buffer;
- bool used;
- std::size_t buffer_size;
- s16 counter;
-};
-
-struct DerivedKeys {
- std::array<u8, 0x10> aes_key;
- std::array<u8, 0x10> aes_iv;
- std::array<u8, 0x10> hmac_key;
-};
-static_assert(sizeof(DerivedKeys) == 0x30, "DerivedKeys is an invalid size");
-
-/// Validates that the amiibo file is not corrupted
-bool IsAmiiboValid(const EncryptedNTAG215File& ntag_file);
-
-/// Converts from encrypted file format to encoded file format
-NTAG215File NfcDataToEncodedData(const EncryptedNTAG215File& nfc_data);
-
-/// Converts from encoded file format to encrypted file format
-EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data);
-
-/// Returns password needed to allow write access to protected memory
-u32 GetTagPassword(const TagUuid& uuid);
-
-// Generates Seed needed for key derivation
-HashSeed GetSeed(const NTAG215File& data);
-
-// Middle step on the generation of derived keys
-std::vector<u8> GenerateInternalKey(const InternalKey& key, const HashSeed& seed);
-
-// Initializes mbedtls context
-void CryptoInit(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, const HmacKey& hmac_key,
- const std::vector<u8>& seed);
-
-// Feeds data to mbedtls context to generate the derived key
-void CryptoStep(CryptoCtx& ctx, mbedtls_md_context_t& hmac_ctx, DrgbOutput& output);
-
-// Generates the derived key from amiibo data
-DerivedKeys GenerateKey(const InternalKey& key, const NTAG215File& data);
-
-// Encodes or decodes amiibo data
-void Cipher(const DerivedKeys& keys, const NTAG215File& in_data, NTAG215File& out_data);
-
-/// Loads both amiibo keys from key_retail.bin
-bool LoadKeys(InternalKey& locked_secret, InternalKey& unfixed_info);
-
-/// Returns true if key_retail.bin exist
-bool IsKeyAvailable();
-
-/// Decodes encripted amiibo data returns true if output is valid
-bool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data);
-
-/// Encodes plain amiibo data returns true if output is valid
-bool EncodeAmiibo(const NTAG215File& tag_data, EncryptedNTAG215File& encrypted_tag_data);
-
-} // namespace Service::NFP::AmiiboCrypto
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp
index 0cb55ca49..2eeabc138 100644
--- a/src/core/hle/service/nfp/nfp.cpp
+++ b/src/core/hle/service/nfp/nfp.cpp
@@ -2,12 +2,140 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/nfp/nfp.h"
-#include "core/hle/service/nfp/nfp_user.h"
+#include "core/hle/service/nfp/nfp_interface.h"
+#include "core/hle/service/server_manager.h"
namespace Service::NFP {
+class IUser final : public Interface {
+public:
+ explicit IUser(Core::System& system_) : Interface(system_, "NFP:IUser") {
+ // clang-format off
+ static const FunctionInfoTyped<IUser> functions[] = {
+ {0, &IUser::Initialize, "Initialize"},
+ {1, &IUser::Finalize, "Finalize"},
+ {2, &IUser::ListDevices, "ListDevices"},
+ {3, &IUser::StartDetection, "StartDetection"},
+ {4, &IUser::StopDetection, "StopDetection"},
+ {5, &IUser::Mount, "Mount"},
+ {6, &IUser::Unmount, "Unmount"},
+ {7, &IUser::OpenApplicationArea, "OpenApplicationArea"},
+ {8, &IUser::GetApplicationArea, "GetApplicationArea"},
+ {9, &IUser::SetApplicationArea, "SetApplicationArea"},
+ {10, &IUser::Flush, "Flush"},
+ {11, &IUser::Restore, "Restore"},
+ {12, &IUser::CreateApplicationArea, "CreateApplicationArea"},
+ {13, &IUser::GetTagInfo, "GetTagInfo"},
+ {14, &IUser::GetRegisterInfo, "GetRegisterInfo"},
+ {15, &IUser::GetCommonInfo, "GetCommonInfo"},
+ {16, &IUser::GetModelInfo, "GetModelInfo"},
+ {17, &IUser::AttachActivateEvent, "AttachActivateEvent"},
+ {18, &IUser::AttachDeactivateEvent, "AttachDeactivateEvent"},
+ {19, &IUser::GetState, "GetState"},
+ {20, &IUser::GetDeviceState, "GetDeviceState"},
+ {21, &IUser::GetNpadId, "GetNpadId"},
+ {22, &IUser::GetApplicationAreaSize, "GetApplicationAreaSize"},
+ {23, &IUser::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
+ {24, &IUser::RecreateApplicationArea, "RecreateApplicationArea"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+};
+
+class ISystem final : public Interface {
+public:
+ explicit ISystem(Core::System& system_) : Interface(system_, "NFP:ISystem") {
+ // clang-format off
+ static const FunctionInfoTyped<ISystem> functions[] = {
+ {0, &ISystem::InitializeSystem, "InitializeSystem"},
+ {1, &ISystem::FinalizeSystem, "FinalizeSystem"},
+ {2, &ISystem::ListDevices, "ListDevices"},
+ {3, &ISystem::StartDetection, "StartDetection"},
+ {4, &ISystem::StopDetection, "StopDetection"},
+ {5, &ISystem::Mount, "Mount"},
+ {6, &ISystem::Unmount, "Unmount"},
+ {10, &ISystem::Flush, "Flush"},
+ {11, &ISystem::Restore, "Restore"},
+ {12, &ISystem::CreateApplicationArea, "CreateApplicationArea"},
+ {13, &ISystem::GetTagInfo, "GetTagInfo"},
+ {14, &ISystem::GetRegisterInfo, "GetRegisterInfo"},
+ {15, &ISystem::GetCommonInfo, "GetCommonInfo"},
+ {16, &ISystem::GetModelInfo, "GetModelInfo"},
+ {17, &ISystem::AttachActivateEvent, "AttachActivateEvent"},
+ {18, &ISystem::AttachDeactivateEvent, "AttachDeactivateEvent"},
+ {19, &ISystem::GetState, "GetState"},
+ {20, &ISystem::GetDeviceState, "GetDeviceState"},
+ {21, &ISystem::GetNpadId, "GetNpadId"},
+ {23, &ISystem::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
+ {100, &ISystem::Format, "Format"},
+ {101, &ISystem::GetAdminInfo, "GetAdminInfo"},
+ {102, &ISystem::GetRegisterInfoPrivate, "GetRegisterInfoPrivate"},
+ {103, &ISystem::SetRegisterInfoPrivate, "SetRegisterInfoPrivate"},
+ {104, &ISystem::DeleteRegisterInfo, "DeleteRegisterInfo"},
+ {105, &ISystem::DeleteApplicationArea, "DeleteApplicationArea"},
+ {106, &ISystem::ExistsApplicationArea, "ExistsApplicationArea"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+};
+
+class IDebug final : public Interface {
+public:
+ explicit IDebug(Core::System& system_) : Interface(system_, "NFP:IDebug") {
+ // clang-format off
+ static const FunctionInfoTyped<IDebug> functions[] = {
+ {0, &IDebug::InitializeDebug, "InitializeDebug"},
+ {1, &IDebug::FinalizeDebug, "FinalizeDebug"},
+ {2, &IDebug::ListDevices, "ListDevices"},
+ {3, &IDebug::StartDetection, "StartDetection"},
+ {4, &IDebug::StopDetection, "StopDetection"},
+ {5, &IDebug::Mount, "Mount"},
+ {6, &IDebug::Unmount, "Unmount"},
+ {7, &IDebug::OpenApplicationArea, "OpenApplicationArea"},
+ {8, &IDebug::GetApplicationArea, "GetApplicationArea"},
+ {9, &IDebug::SetApplicationArea, "SetApplicationArea"},
+ {10, &IDebug::Flush, "Flush"},
+ {11, &IDebug::Restore, "Restore"},
+ {12, &IDebug::CreateApplicationArea, "CreateApplicationArea"},
+ {13, &IDebug::GetTagInfo, "GetTagInfo"},
+ {14, &IDebug::GetRegisterInfo, "GetRegisterInfo"},
+ {15, &IDebug::GetCommonInfo, "GetCommonInfo"},
+ {16, &IDebug::GetModelInfo, "GetModelInfo"},
+ {17, &IDebug::AttachActivateEvent, "AttachActivateEvent"},
+ {18, &IDebug::AttachDeactivateEvent, "AttachDeactivateEvent"},
+ {19, &IDebug::GetState, "GetState"},
+ {20, &IDebug::GetDeviceState, "GetDeviceState"},
+ {21, &IDebug::GetNpadId, "GetNpadId"},
+ {22, &IDebug::GetApplicationAreaSize, "GetApplicationAreaSize"},
+ {23, &IDebug::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
+ {24, &IDebug::RecreateApplicationArea, "RecreateApplicationArea"},
+ {100, &IDebug::Format, "Format"},
+ {101, &IDebug::GetAdminInfo, "GetAdminInfo"},
+ {102, &IDebug::GetRegisterInfoPrivate, "GetRegisterInfoPrivate"},
+ {103, &IDebug::SetRegisterInfoPrivate, "SetRegisterInfoPrivate"},
+ {104, &IDebug::DeleteRegisterInfo, "DeleteRegisterInfo"},
+ {105, &IDebug::DeleteApplicationArea, "DeleteApplicationArea"},
+ {106, &IDebug::ExistsApplicationArea, "ExistsApplicationArea"},
+ {200, &IDebug::GetAll, "GetAll"},
+ {201, &IDebug::SetAll, "SetAll"},
+ {202, &IDebug::FlushDebug, "FlushDebug"},
+ {203, &IDebug::BreakTag, "BreakTag"},
+ {204, &IDebug::ReadBackupData, "ReadBackupData"},
+ {205, &IDebug::WriteBackupData, "WriteBackupData"},
+ {206, &IDebug::WriteNtf, "WriteNtf"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+};
+
class IUserManager final : public ServiceFramework<IUserManager> {
public:
explicit IUserManager(Core::System& system_) : ServiceFramework{system_, "nfp:user"} {
@@ -21,23 +149,66 @@ public:
}
private:
- void CreateUserInterface(Kernel::HLERequestContext& ctx) {
+ void CreateUserInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFP, "called");
- if (user_interface == nullptr) {
- user_interface = std::make_shared<IUser>(system);
- }
+ IPC::ResponseBuilder rb{ctx, 2, 0, 1};
+ rb.Push(ResultSuccess);
+ rb.PushIpcInterface<IUser>(system);
+ }
+};
+
+class ISystemManager final : public ServiceFramework<ISystemManager> {
+public:
+ explicit ISystemManager(Core::System& system_) : ServiceFramework{system_, "nfp:sys"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, &ISystemManager::CreateSystemInterface, "CreateSystemInterface"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+ }
+
+private:
+ void CreateSystemInterface(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NFP, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<IUser>(user_interface);
+ rb.PushIpcInterface<ISystem>(system);
+ }
+};
+
+class IDebugManager final : public ServiceFramework<IDebugManager> {
+public:
+ explicit IDebugManager(Core::System& system_) : ServiceFramework{system_, "nfp:dbg"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, &IDebugManager::CreateDebugInterface, "CreateDebugInterface"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
}
- std::shared_ptr<IUser> user_interface;
+private:
+ void CreateDebugInterface(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NFP, "called");
+
+ IPC::ResponseBuilder rb{ctx, 2, 0, 1};
+ rb.Push(ResultSuccess);
+ rb.PushIpcInterface<IDebug>(system);
+ }
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<IUserManager>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("nfp:user", std::make_shared<IUserManager>(system));
+ server_manager->RegisterNamedService("nfp:sys", std::make_shared<ISystemManager>(system));
+ server_manager->RegisterNamedService("nfp:dbg", std::make_shared<IDebugManager>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp.h b/src/core/hle/service/nfp/nfp.h
index a25c362b8..a5aac710b 100644
--- a/src/core/hle/service/nfp/nfp.h
+++ b/src/core/hle/service/nfp/nfp.h
@@ -7,6 +7,6 @@
namespace Service::NFP {
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_device.cpp b/src/core/hle/service/nfp/nfp_device.cpp
deleted file mode 100644
index c860fd1a1..000000000
--- a/src/core/hle/service/nfp/nfp_device.cpp
+++ /dev/null
@@ -1,719 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <array>
-
-#include "common/input.h"
-#include "common/logging/log.h"
-#include "common/string_util.h"
-#include "common/tiny_mt.h"
-#include "core/core.h"
-#include "core/hid/emulated_controller.h"
-#include "core/hid/hid_core.h"
-#include "core/hid/hid_types.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/service/mii/mii_manager.h"
-#include "core/hle/service/mii/types.h"
-#include "core/hle/service/nfp/amiibo_crypto.h"
-#include "core/hle/service/nfp/nfp_device.h"
-#include "core/hle/service/nfp/nfp_result.h"
-#include "core/hle/service/nfp/nfp_user.h"
-#include "core/hle/service/time/time_manager.h"
-#include "core/hle/service/time/time_zone_content_manager.h"
-#include "core/hle/service/time/time_zone_types.h"
-
-namespace Service::NFP {
-NfpDevice::NfpDevice(Core::HID::NpadIdType npad_id_, Core::System& system_,
- KernelHelpers::ServiceContext& service_context_,
- Kernel::KEvent* availability_change_event_)
- : npad_id{npad_id_}, system{system_}, service_context{service_context_},
- availability_change_event{availability_change_event_} {
- activate_event = service_context.CreateEvent("IUser:NFPActivateEvent");
- deactivate_event = service_context.CreateEvent("IUser:NFPDeactivateEvent");
- npad_device = system.HIDCore().GetEmulatedController(npad_id);
-
- Core::HID::ControllerUpdateCallback engine_callback{
- .on_change = [this](Core::HID::ControllerTriggerType type) { NpadUpdate(type); },
- .is_npad_service = false,
- };
- is_controller_set = true;
- callback_key = npad_device->SetCallback(engine_callback);
-
- auto& standard_steady_clock{system.GetTimeManager().GetStandardSteadyClockCore()};
- current_posix_time = standard_steady_clock.GetCurrentTimePoint(system).time_point;
-}
-
-NfpDevice::~NfpDevice() {
- activate_event->Close();
- deactivate_event->Close();
- if (!is_controller_set) {
- return;
- }
- npad_device->DeleteCallback(callback_key);
- is_controller_set = false;
-};
-
-void NfpDevice::NpadUpdate(Core::HID::ControllerTriggerType type) {
- if (type == Core::HID::ControllerTriggerType::Connected ||
- type == Core::HID::ControllerTriggerType::Disconnected) {
- availability_change_event->Signal();
- return;
- }
-
- if (type != Core::HID::ControllerTriggerType::Nfc) {
- return;
- }
-
- if (!npad_device->IsConnected()) {
- return;
- }
-
- const auto nfc_status = npad_device->GetNfc();
- switch (nfc_status.state) {
- case Common::Input::NfcState::NewAmiibo:
- LoadAmiibo(nfc_status.data);
- break;
- case Common::Input::NfcState::AmiiboRemoved:
- if (device_state == DeviceState::Initialized || device_state == DeviceState::TagRemoved) {
- break;
- }
- if (device_state != DeviceState::SearchingForTag) {
- CloseAmiibo();
- }
- break;
- default:
- break;
- }
-}
-
-bool NfpDevice::LoadAmiibo(std::span<const u8> data) {
- if (device_state != DeviceState::SearchingForTag) {
- LOG_ERROR(Service_NFP, "Game is not looking for amiibos, current state {}", device_state);
- return false;
- }
-
- if (data.size() != sizeof(EncryptedNTAG215File)) {
- LOG_ERROR(Service_NFP, "Not an amiibo, size={}", data.size());
- return false;
- }
-
- // TODO: Filter by allowed_protocols here
-
- memcpy(&encrypted_tag_data, data.data(), sizeof(EncryptedNTAG215File));
-
- device_state = DeviceState::TagFound;
- deactivate_event->GetReadableEvent().Clear();
- activate_event->Signal();
- return true;
-}
-
-void NfpDevice::CloseAmiibo() {
- LOG_INFO(Service_NFP, "Remove amiibo");
-
- if (device_state == DeviceState::TagMounted) {
- Unmount();
- }
-
- device_state = DeviceState::TagRemoved;
- encrypted_tag_data = {};
- tag_data = {};
- activate_event->GetReadableEvent().Clear();
- deactivate_event->Signal();
-}
-
-Kernel::KReadableEvent& NfpDevice::GetActivateEvent() const {
- return activate_event->GetReadableEvent();
-}
-
-Kernel::KReadableEvent& NfpDevice::GetDeactivateEvent() const {
- return deactivate_event->GetReadableEvent();
-}
-
-void NfpDevice::Initialize() {
- device_state = npad_device->HasNfc() ? DeviceState::Initialized : DeviceState::Unavailable;
- encrypted_tag_data = {};
- tag_data = {};
-}
-
-void NfpDevice::Finalize() {
- if (device_state == DeviceState::TagMounted) {
- Unmount();
- }
- if (device_state == DeviceState::SearchingForTag || device_state == DeviceState::TagRemoved) {
- StopDetection();
- }
- device_state = DeviceState::Unavailable;
-}
-
-Result NfpDevice::StartDetection(TagProtocol allowed_protocol) {
- if (device_state != DeviceState::Initialized && device_state != DeviceState::TagRemoved) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- return WrongDeviceState;
- }
-
- if (!npad_device->SetPollingMode(Common::Input::PollingMode::NFC)) {
- LOG_ERROR(Service_NFP, "Nfc not supported");
- return NfcDisabled;
- }
-
- device_state = DeviceState::SearchingForTag;
- allowed_protocols = allowed_protocol;
- return ResultSuccess;
-}
-
-Result NfpDevice::StopDetection() {
- npad_device->SetPollingMode(Common::Input::PollingMode::Active);
-
- if (device_state == DeviceState::Initialized) {
- return ResultSuccess;
- }
-
- if (device_state == DeviceState::TagFound || device_state == DeviceState::TagMounted) {
- CloseAmiibo();
- return ResultSuccess;
- }
- if (device_state == DeviceState::SearchingForTag || device_state == DeviceState::TagRemoved) {
- device_state = DeviceState::Initialized;
- return ResultSuccess;
- }
-
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- return WrongDeviceState;
-}
-
-Result NfpDevice::Flush() {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- auto& settings = tag_data.settings;
-
- const auto& current_date = GetAmiiboDate(current_posix_time);
- if (settings.write_date.raw_date != current_date.raw_date) {
- settings.write_date = current_date;
- settings.crc_counter++;
- // TODO: Find how to calculate the crc check
- // settings.crc = CalculateCRC(settings);
- }
-
- tag_data.write_counter++;
-
- if (!AmiiboCrypto::EncodeAmiibo(tag_data, encrypted_tag_data)) {
- LOG_ERROR(Service_NFP, "Failed to encode data");
- return WriteAmiiboFailed;
- }
-
- std::vector<u8> data(sizeof(encrypted_tag_data));
- memcpy(data.data(), &encrypted_tag_data, sizeof(encrypted_tag_data));
-
- if (!npad_device->WriteNfc(data)) {
- LOG_ERROR(Service_NFP, "Error writing to file");
- return WriteAmiiboFailed;
- }
-
- is_data_moddified = false;
-
- return ResultSuccess;
-}
-
-Result NfpDevice::Mount(MountTarget mount_target_) {
- if (device_state != DeviceState::TagFound) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- return WrongDeviceState;
- }
-
- if (!AmiiboCrypto::IsAmiiboValid(encrypted_tag_data)) {
- LOG_ERROR(Service_NFP, "Not an amiibo");
- return NotAnAmiibo;
- }
-
- // Mark amiibos as read only when keys are missing
- if (!AmiiboCrypto::IsKeyAvailable()) {
- LOG_ERROR(Service_NFP, "No keys detected");
- device_state = DeviceState::TagMounted;
- mount_target = MountTarget::Rom;
- return ResultSuccess;
- }
-
- if (!AmiiboCrypto::DecodeAmiibo(encrypted_tag_data, tag_data)) {
- LOG_ERROR(Service_NFP, "Can't decode amiibo {}", device_state);
- return CorruptedData;
- }
-
- device_state = DeviceState::TagMounted;
- mount_target = mount_target_;
- return ResultSuccess;
-}
-
-Result NfpDevice::Unmount() {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- // Save data before unloading the amiibo
- if (is_data_moddified) {
- Flush();
- }
-
- device_state = DeviceState::TagFound;
- mount_target = MountTarget::None;
- is_app_area_open = false;
-
- return ResultSuccess;
-}
-
-Result NfpDevice::GetTagInfo(TagInfo& tag_info) const {
- if (device_state != DeviceState::TagFound && device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- tag_info = {
- .uuid = encrypted_tag_data.uuid.uid,
- .uuid_length = static_cast<u8>(encrypted_tag_data.uuid.uid.size()),
- .protocol = TagProtocol::TypeA,
- .tag_type = TagType::Type2,
- };
-
- return ResultSuccess;
-}
-
-Result NfpDevice::GetCommonInfo(CommonInfo& common_info) const {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- const auto& settings = tag_data.settings;
-
- // TODO: Validate this data
- common_info = {
- .last_write_date = settings.write_date.GetWriteDate(),
- .write_counter = tag_data.write_counter,
- .version = 0,
- .application_area_size = sizeof(ApplicationArea),
- };
- return ResultSuccess;
-}
-
-Result NfpDevice::GetModelInfo(ModelInfo& model_info) const {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- const auto& model_info_data = encrypted_tag_data.user_memory.model_info;
- model_info = {
- .character_id = model_info_data.character_id,
- .character_variant = model_info_data.character_variant,
- .amiibo_type = model_info_data.amiibo_type,
- .model_number = model_info_data.model_number,
- .series = model_info_data.series,
- };
- return ResultSuccess;
-}
-
-Result NfpDevice::GetRegisterInfo(RegisterInfo& register_info) const {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- if (tag_data.settings.settings.amiibo_initialized == 0) {
- return RegistrationIsNotInitialized;
- }
-
- Service::Mii::MiiManager manager;
- const auto& settings = tag_data.settings;
-
- // TODO: Validate this data
- register_info = {
- .mii_char_info = manager.ConvertV3ToCharInfo(tag_data.owner_mii),
- .creation_date = settings.init_date.GetWriteDate(),
- .amiibo_name = GetAmiiboName(settings),
- .font_region = {},
- };
-
- return ResultSuccess;
-}
-
-Result NfpDevice::SetNicknameAndOwner(const AmiiboName& amiibo_name) {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- Service::Mii::MiiManager manager;
- auto& settings = tag_data.settings;
-
- settings.init_date = GetAmiiboDate(current_posix_time);
- settings.write_date = GetAmiiboDate(current_posix_time);
- settings.crc_counter++;
- // TODO: Find how to calculate the crc check
- // settings.crc = CalculateCRC(settings);
-
- SetAmiiboName(settings, amiibo_name);
- tag_data.owner_mii = manager.ConvertCharInfoToV3(manager.BuildDefault(0));
- settings.settings.amiibo_initialized.Assign(1);
-
- return Flush();
-}
-
-Result NfpDevice::RestoreAmiibo() {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- // TODO: Load amiibo from backup on system
- LOG_ERROR(Service_NFP, "Not Implemented");
- return ResultSuccess;
-}
-
-Result NfpDevice::DeleteAllData() {
- const auto result = DeleteApplicationArea();
- if (result.IsError()) {
- return result;
- }
-
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- Common::TinyMT rng{};
- rng.GenerateRandomBytes(&tag_data.owner_mii, sizeof(tag_data.owner_mii));
- tag_data.settings.settings.amiibo_initialized.Assign(0);
-
- return Flush();
-}
-
-Result NfpDevice::OpenApplicationArea(u32 access_id) {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
- LOG_WARNING(Service_NFP, "Application area is not initialized");
- return ApplicationAreaIsNotInitialized;
- }
-
- if (tag_data.application_area_id != access_id) {
- LOG_WARNING(Service_NFP, "Wrong application area id");
- return WrongApplicationAreaId;
- }
-
- is_app_area_open = true;
-
- return ResultSuccess;
-}
-
-Result NfpDevice::GetApplicationAreaId(u32& application_area_id) const {
- application_area_id = {};
-
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
- LOG_WARNING(Service_NFP, "Application area is not initialized");
- return ApplicationAreaIsNotInitialized;
- }
-
- application_area_id = tag_data.application_area_id;
-
- return ResultSuccess;
-}
-
-Result NfpDevice::GetApplicationArea(std::vector<u8>& data) const {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- if (!is_app_area_open) {
- LOG_ERROR(Service_NFP, "Application area is not open");
- return WrongDeviceState;
- }
-
- if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
- LOG_ERROR(Service_NFP, "Application area is not initialized");
- return ApplicationAreaIsNotInitialized;
- }
-
- if (data.size() > sizeof(ApplicationArea)) {
- data.resize(sizeof(ApplicationArea));
- }
-
- memcpy(data.data(), tag_data.application_area.data(), data.size());
-
- return ResultSuccess;
-}
-
-Result NfpDevice::SetApplicationArea(std::span<const u8> data) {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- if (!is_app_area_open) {
- LOG_ERROR(Service_NFP, "Application area is not open");
- return WrongDeviceState;
- }
-
- if (tag_data.settings.settings.appdata_initialized.Value() == 0) {
- LOG_ERROR(Service_NFP, "Application area is not initialized");
- return ApplicationAreaIsNotInitialized;
- }
-
- if (data.size() > sizeof(ApplicationArea)) {
- LOG_ERROR(Service_NFP, "Wrong data size {}", data.size());
- return ResultUnknown;
- }
-
- Common::TinyMT rng{};
- std::memcpy(tag_data.application_area.data(), data.data(), data.size());
- // Fill remaining data with random numbers
- rng.GenerateRandomBytes(tag_data.application_area.data() + data.size(),
- sizeof(ApplicationArea) - data.size());
-
- tag_data.applicaton_write_counter++;
- is_data_moddified = true;
-
- return ResultSuccess;
-}
-
-Result NfpDevice::CreateApplicationArea(u32 access_id, std::span<const u8> data) {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (tag_data.settings.settings.appdata_initialized.Value() != 0) {
- LOG_ERROR(Service_NFP, "Application area already exist");
- return ApplicationAreaExist;
- }
-
- return RecreateApplicationArea(access_id, data);
-}
-
-Result NfpDevice::RecreateApplicationArea(u32 access_id, std::span<const u8> data) {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- if (data.size() > sizeof(ApplicationArea)) {
- LOG_ERROR(Service_NFP, "Wrong data size {}", data.size());
- return WrongApplicationAreaSize;
- }
-
- Common::TinyMT rng{};
- std::memcpy(tag_data.application_area.data(), data.data(), data.size());
- // Fill remaining data with random numbers
- rng.GenerateRandomBytes(tag_data.application_area.data() + data.size(),
- sizeof(ApplicationArea) - data.size());
-
- // TODO: Investigate why the title id needs to be moddified
- tag_data.title_id = system.GetCurrentProcessProgramID();
- tag_data.title_id = tag_data.title_id | 0x30000000ULL;
- tag_data.settings.settings.appdata_initialized.Assign(1);
- tag_data.application_area_id = access_id;
- tag_data.applicaton_write_counter++;
- tag_data.unknown = {};
-
- return Flush();
-}
-
-Result NfpDevice::DeleteApplicationArea() {
- if (device_state != DeviceState::TagMounted) {
- LOG_ERROR(Service_NFP, "Wrong device state {}", device_state);
- if (device_state == DeviceState::TagRemoved) {
- return TagRemoved;
- }
- return WrongDeviceState;
- }
-
- if (mount_target == MountTarget::None || mount_target == MountTarget::Rom) {
- LOG_ERROR(Service_NFP, "Amiibo is read only", device_state);
- return WrongDeviceState;
- }
-
- Common::TinyMT rng{};
- rng.GenerateRandomBytes(tag_data.application_area.data(), sizeof(ApplicationArea));
- rng.GenerateRandomBytes(&tag_data.title_id, sizeof(u64));
- rng.GenerateRandomBytes(&tag_data.application_area_id, sizeof(u32));
- tag_data.settings.settings.appdata_initialized.Assign(0);
- tag_data.applicaton_write_counter++;
- tag_data.unknown = {};
-
- return Flush();
-}
-
-u64 NfpDevice::GetHandle() const {
- // Generate a handle based of the npad id
- return static_cast<u64>(npad_id);
-}
-
-u32 NfpDevice::GetApplicationAreaSize() const {
- return sizeof(ApplicationArea);
-}
-
-DeviceState NfpDevice::GetCurrentState() const {
- return device_state;
-}
-
-Core::HID::NpadIdType NfpDevice::GetNpadId() const {
- return npad_id;
-}
-
-AmiiboName NfpDevice::GetAmiiboName(const AmiiboSettings& settings) const {
- std::array<char16_t, amiibo_name_length> settings_amiibo_name{};
- AmiiboName amiibo_name{};
-
- // Convert from big endian to little endian
- for (std::size_t i = 0; i < amiibo_name_length; i++) {
- settings_amiibo_name[i] = static_cast<u16>(settings.amiibo_name[i]);
- }
-
- // Convert from utf16 to utf8
- const auto amiibo_name_utf8 = Common::UTF16ToUTF8(settings_amiibo_name.data());
- memcpy(amiibo_name.data(), amiibo_name_utf8.data(), amiibo_name_utf8.size());
-
- return amiibo_name;
-}
-
-void NfpDevice::SetAmiiboName(AmiiboSettings& settings, const AmiiboName& amiibo_name) {
- std::array<char16_t, amiibo_name_length> settings_amiibo_name{};
-
- // Convert from utf8 to utf16
- const auto amiibo_name_utf16 = Common::UTF8ToUTF16(amiibo_name.data());
- memcpy(settings_amiibo_name.data(), amiibo_name_utf16.data(),
- amiibo_name_utf16.size() * sizeof(char16_t));
-
- // Convert from little endian to big endian
- for (std::size_t i = 0; i < amiibo_name_length; i++) {
- settings.amiibo_name[i] = static_cast<u16_be>(settings_amiibo_name[i]);
- }
-}
-
-AmiiboDate NfpDevice::GetAmiiboDate(s64 posix_time) const {
- const auto& time_zone_manager =
- system.GetTimeManager().GetTimeZoneContentManager().GetTimeZoneManager();
- Time::TimeZone::CalendarInfo calendar_info{};
- AmiiboDate amiibo_date{};
-
- amiibo_date.SetYear(2000);
- amiibo_date.SetMonth(1);
- amiibo_date.SetDay(1);
-
- if (time_zone_manager.ToCalendarTime({}, posix_time, calendar_info) == ResultSuccess) {
- amiibo_date.SetYear(calendar_info.time.year);
- amiibo_date.SetMonth(calendar_info.time.month);
- amiibo_date.SetDay(calendar_info.time.day);
- }
-
- return amiibo_date;
-}
-
-} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_device.h b/src/core/hle/service/nfp/nfp_device.h
deleted file mode 100644
index b6a46f2ac..000000000
--- a/src/core/hle/service/nfp/nfp_device.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <span>
-#include <vector>
-
-#include "common/common_types.h"
-#include "core/hle/service/kernel_helpers.h"
-#include "core/hle/service/nfp/nfp_types.h"
-#include "core/hle/service/service.h"
-
-namespace Kernel {
-class KEvent;
-class KReadableEvent;
-} // namespace Kernel
-
-namespace Core {
-class System;
-} // namespace Core
-
-namespace Core::HID {
-class EmulatedController;
-enum class ControllerTriggerType;
-enum class NpadIdType : u32;
-} // namespace Core::HID
-
-namespace Service::NFP {
-class NfpDevice {
-public:
- NfpDevice(Core::HID::NpadIdType npad_id_, Core::System& system_,
- KernelHelpers::ServiceContext& service_context_,
- Kernel::KEvent* availability_change_event_);
- ~NfpDevice();
-
- void Initialize();
- void Finalize();
-
- Result StartDetection(TagProtocol allowed_protocol);
- Result StopDetection();
- Result Mount(MountTarget mount_target);
- Result Unmount();
- Result Flush();
-
- Result GetTagInfo(TagInfo& tag_info) const;
- Result GetCommonInfo(CommonInfo& common_info) const;
- Result GetModelInfo(ModelInfo& model_info) const;
- Result GetRegisterInfo(RegisterInfo& register_info) const;
-
- Result SetNicknameAndOwner(const AmiiboName& amiibo_name);
- Result RestoreAmiibo();
- Result DeleteAllData();
-
- Result OpenApplicationArea(u32 access_id);
- Result GetApplicationAreaId(u32& application_area_id) const;
- Result GetApplicationArea(std::vector<u8>& data) const;
- Result SetApplicationArea(std::span<const u8> data);
- Result CreateApplicationArea(u32 access_id, std::span<const u8> data);
- Result RecreateApplicationArea(u32 access_id, std::span<const u8> data);
- Result DeleteApplicationArea();
-
- u64 GetHandle() const;
- u32 GetApplicationAreaSize() const;
- DeviceState GetCurrentState() const;
- Core::HID::NpadIdType GetNpadId() const;
-
- Kernel::KReadableEvent& GetActivateEvent() const;
- Kernel::KReadableEvent& GetDeactivateEvent() const;
-
-private:
- void NpadUpdate(Core::HID::ControllerTriggerType type);
- bool LoadAmiibo(std::span<const u8> data);
- void CloseAmiibo();
-
- AmiiboName GetAmiiboName(const AmiiboSettings& settings) const;
- void SetAmiiboName(AmiiboSettings& settings, const AmiiboName& amiibo_name);
- AmiiboDate GetAmiiboDate(s64 posix_time) const;
-
- bool is_controller_set{};
- int callback_key;
- const Core::HID::NpadIdType npad_id;
- Core::System& system;
- Core::HID::EmulatedController* npad_device = nullptr;
- KernelHelpers::ServiceContext& service_context;
- Kernel::KEvent* activate_event = nullptr;
- Kernel::KEvent* deactivate_event = nullptr;
- Kernel::KEvent* availability_change_event = nullptr;
-
- bool is_data_moddified{};
- bool is_app_area_open{};
- TagProtocol allowed_protocols{};
- s64 current_posix_time{};
- MountTarget mount_target{MountTarget::None};
- DeviceState device_state{DeviceState::Unavailable};
-
- NTAG215File tag_data{};
- EncryptedNTAG215File encrypted_tag_data{};
-};
-
-} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_interface.cpp b/src/core/hle/service/nfp/nfp_interface.cpp
new file mode 100644
index 000000000..34ef9d82d
--- /dev/null
+++ b/src/core/hle/service/nfp/nfp_interface.cpp
@@ -0,0 +1,438 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "core/core.h"
+#include "core/hid/hid_types.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/nfc/common/device.h"
+#include "core/hle/service/nfc/common/device_manager.h"
+#include "core/hle/service/nfc/nfc_types.h"
+#include "core/hle/service/nfp/nfp_interface.h"
+#include "core/hle/service/nfp/nfp_result.h"
+#include "core/hle/service/nfp/nfp_types.h"
+
+namespace Service::NFP {
+
+Interface::Interface(Core::System& system_, const char* name)
+ : NfcInterface{system_, name, NFC::BackendType::Nfp} {}
+
+Interface::~Interface() = default;
+
+void Interface::InitializeSystem(HLERequestContext& ctx) {
+ Initialize(ctx);
+}
+
+void Interface::InitializeDebug(HLERequestContext& ctx) {
+ Initialize(ctx);
+}
+
+void Interface::FinalizeSystem(HLERequestContext& ctx) {
+ Finalize(ctx);
+}
+
+void Interface::FinalizeDebug(HLERequestContext& ctx) {
+ Finalize(ctx);
+}
+
+void Interface::Mount(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto model_type{rp.PopEnum<ModelType>()};
+ const auto mount_target{rp.PopEnum<MountTarget>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}, model_type={}, mount_target={}", device_handle,
+ model_type, mount_target);
+
+ auto result = GetManager()->Mount(device_handle, model_type, mount_target);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::Unmount(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->Unmount(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::OpenApplicationArea(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto access_id{rp.Pop<u32>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}, access_id={}", device_handle, access_id);
+
+ auto result = GetManager()->OpenApplicationArea(device_handle, access_id);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::GetApplicationArea(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto data_size = ctx.GetWriteBufferSize();
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ std::vector<u8> data(data_size);
+ auto result = GetManager()->GetApplicationArea(device_handle, data);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsError()) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ ctx.WriteBuffer(data);
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(result);
+ rb.Push(static_cast<u32>(data_size));
+}
+
+void Interface::SetApplicationArea(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto data{ctx.ReadBuffer()};
+ LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}", device_handle, data.size());
+
+ auto result = GetManager()->SetApplicationArea(device_handle, data);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::Flush(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->Flush(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::Restore(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->Restore(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::CreateApplicationArea(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto access_id{rp.Pop<u32>()};
+ const auto data{ctx.ReadBuffer()};
+ LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}, access_id={}", device_handle,
+ access_id, data.size());
+
+ auto result = GetManager()->CreateApplicationArea(device_handle, access_id, data);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::GetRegisterInfo(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ RegisterInfo register_info{};
+ auto result = GetManager()->GetRegisterInfo(device_handle, register_info);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(register_info);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::GetCommonInfo(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ CommonInfo common_info{};
+ auto result = GetManager()->GetCommonInfo(device_handle, common_info);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(common_info);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::GetModelInfo(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ ModelInfo model_info{};
+ auto result = GetManager()->GetModelInfo(device_handle, model_info);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(model_info);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::GetApplicationAreaSize(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_DEBUG(Service_NFP, "called, device_handle={}", device_handle);
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.Push(GetManager()->GetApplicationAreaSize());
+}
+
+void Interface::RecreateApplicationArea(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto access_id{rp.Pop<u32>()};
+ const auto data{ctx.ReadBuffer()};
+ LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}, access_id={}", device_handle,
+ access_id, data.size());
+
+ auto result = GetManager()->RecreateApplicationArea(device_handle, access_id, data);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::Format(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->Format(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::GetAdminInfo(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ AdminInfo admin_info{};
+ auto result = GetManager()->GetAdminInfo(device_handle, admin_info);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(admin_info);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::GetRegisterInfoPrivate(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ RegisterInfoPrivate register_info{};
+ auto result = GetManager()->GetRegisterInfoPrivate(device_handle, register_info);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(register_info);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::SetRegisterInfoPrivate(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto register_info_buffer{ctx.ReadBuffer()};
+ LOG_INFO(Service_NFP, "called, device_handle={}, buffer_size={}", device_handle,
+ register_info_buffer.size());
+
+ RegisterInfoPrivate register_info{};
+ memcpy(&register_info, register_info_buffer.data(), sizeof(RegisterInfoPrivate));
+ auto result = GetManager()->SetRegisterInfoPrivate(device_handle, register_info);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::DeleteRegisterInfo(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->DeleteRegisterInfo(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::DeleteApplicationArea(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->DeleteApplicationArea(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::ExistsApplicationArea(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ bool has_application_area = false;
+ auto result = GetManager()->ExistsApplicationArea(device_handle, has_application_area);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsError()) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(result);
+ rb.Push(has_application_area);
+}
+
+void Interface::GetAll(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ NfpData nfp_data{};
+ auto result = GetManager()->GetAll(device_handle, nfp_data);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(nfp_data);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::SetAll(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto nfp_data_buffer{ctx.ReadBuffer()};
+
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ NfpData nfp_data{};
+ memcpy(&nfp_data, nfp_data_buffer.data(), sizeof(NfpData));
+ auto result = GetManager()->SetAll(device_handle, nfp_data);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::FlushDebug(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->FlushDebug(device_handle);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::BreakTag(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto break_type{rp.PopEnum<BreakType>()};
+ LOG_WARNING(Service_NFP, "(STUBBED) called, device_handle={}, break_type={}", device_handle,
+ break_type);
+
+ auto result = GetManager()->BreakTag(device_handle, break_type);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::ReadBackupData(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ std::vector<u8> backup_data{};
+ auto result = GetManager()->ReadBackupData(device_handle, backup_data);
+ result = TranslateResultToServiceError(result);
+
+ if (result.IsSuccess()) {
+ ctx.WriteBuffer(backup_data);
+ }
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::WriteBackupData(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto backup_data_buffer{ctx.ReadBuffer()};
+ LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
+
+ auto result = GetManager()->WriteBackupData(device_handle, backup_data_buffer);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+void Interface::WriteNtf(HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const auto device_handle{rp.Pop<u64>()};
+ const auto write_type{rp.PopEnum<WriteType>()};
+ const auto ntf_data_buffer{ctx.ReadBuffer()};
+ LOG_WARNING(Service_NFP, "(STUBBED) called, device_handle={}", device_handle);
+
+ auto result = GetManager()->WriteNtf(device_handle, write_type, ntf_data_buffer);
+ result = TranslateResultToServiceError(result);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+}
+
+} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_interface.h b/src/core/hle/service/nfp/nfp_interface.h
new file mode 100644
index 000000000..fa985b068
--- /dev/null
+++ b/src/core/hle/service/nfp/nfp_interface.h
@@ -0,0 +1,50 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/nfc/nfc_interface.h"
+#include "core/hle/service/service.h"
+
+namespace Service::NFP {
+
+class Interface : public NFC::NfcInterface {
+public:
+ explicit Interface(Core::System& system_, const char* name);
+ ~Interface() override;
+
+ void InitializeSystem(HLERequestContext& ctx);
+ void InitializeDebug(HLERequestContext& ctx);
+ void FinalizeSystem(HLERequestContext& ctx);
+ void FinalizeDebug(HLERequestContext& ctx);
+ void Mount(HLERequestContext& ctx);
+ void Unmount(HLERequestContext& ctx);
+ void OpenApplicationArea(HLERequestContext& ctx);
+ void GetApplicationArea(HLERequestContext& ctx);
+ void SetApplicationArea(HLERequestContext& ctx);
+ void Flush(HLERequestContext& ctx);
+ void Restore(HLERequestContext& ctx);
+ void CreateApplicationArea(HLERequestContext& ctx);
+ void GetRegisterInfo(HLERequestContext& ctx);
+ void GetCommonInfo(HLERequestContext& ctx);
+ void GetModelInfo(HLERequestContext& ctx);
+ void GetApplicationAreaSize(HLERequestContext& ctx);
+ void RecreateApplicationArea(HLERequestContext& ctx);
+ void Format(HLERequestContext& ctx);
+ void GetAdminInfo(HLERequestContext& ctx);
+ void GetRegisterInfoPrivate(HLERequestContext& ctx);
+ void SetRegisterInfoPrivate(HLERequestContext& ctx);
+ void DeleteRegisterInfo(HLERequestContext& ctx);
+ void DeleteApplicationArea(HLERequestContext& ctx);
+ void ExistsApplicationArea(HLERequestContext& ctx);
+ void GetAll(HLERequestContext& ctx);
+ void SetAll(HLERequestContext& ctx);
+ void FlushDebug(HLERequestContext& ctx);
+ void BreakTag(HLERequestContext& ctx);
+ void ReadBackupData(HLERequestContext& ctx);
+ void WriteBackupData(HLERequestContext& ctx);
+ void WriteNtf(HLERequestContext& ctx);
+};
+
+} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_result.h b/src/core/hle/service/nfp/nfp_result.h
index d8e4cf094..618533843 100644
--- a/src/core/hle/service/nfp/nfp_result.h
+++ b/src/core/hle/service/nfp/nfp_result.h
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
+// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
@@ -7,18 +7,21 @@
namespace Service::NFP {
-constexpr Result DeviceNotFound(ErrorModule::NFP, 64);
-constexpr Result InvalidArgument(ErrorModule::NFP, 65);
-constexpr Result WrongApplicationAreaSize(ErrorModule::NFP, 68);
-constexpr Result WrongDeviceState(ErrorModule::NFP, 73);
-constexpr Result NfcDisabled(ErrorModule::NFP, 80);
-constexpr Result WriteAmiiboFailed(ErrorModule::NFP, 88);
-constexpr Result TagRemoved(ErrorModule::NFP, 97);
-constexpr Result RegistrationIsNotInitialized(ErrorModule::NFP, 120);
-constexpr Result ApplicationAreaIsNotInitialized(ErrorModule::NFP, 128);
-constexpr Result CorruptedData(ErrorModule::NFP, 144);
-constexpr Result WrongApplicationAreaId(ErrorModule::NFP, 152);
-constexpr Result ApplicationAreaExist(ErrorModule::NFP, 168);
-constexpr Result NotAnAmiibo(ErrorModule::NFP, 178);
+constexpr Result ResultDeviceNotFound(ErrorModule::NFP, 64);
+constexpr Result ResultInvalidArgument(ErrorModule::NFP, 65);
+constexpr Result ResultWrongApplicationAreaSize(ErrorModule::NFP, 68);
+constexpr Result ResultWrongDeviceState(ErrorModule::NFP, 73);
+constexpr Result ResultUnknown74(ErrorModule::NFC, 74);
+constexpr Result ResultNfcDisabled(ErrorModule::NFP, 80);
+constexpr Result ResultWriteAmiiboFailed(ErrorModule::NFP, 88);
+constexpr Result ResultTagRemoved(ErrorModule::NFP, 97);
+constexpr Result ResultRegistrationIsNotInitialized(ErrorModule::NFP, 120);
+constexpr Result ResultApplicationAreaIsNotInitialized(ErrorModule::NFP, 128);
+constexpr Result ResultCorruptedDataWithBackup(ErrorModule::NFP, 136);
+constexpr Result ResultCorruptedData(ErrorModule::NFP, 144);
+constexpr Result ResultWrongApplicationAreaId(ErrorModule::NFP, 152);
+constexpr Result ResultApplicationAreaExist(ErrorModule::NFP, 168);
+constexpr Result ResultNotAnAmiibo(ErrorModule::NFP, 178);
+constexpr Result ResultUnableToAccessBackupFile(ErrorModule::NFP, 200);
} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_types.h b/src/core/hle/service/nfp/nfp_types.h
index fc228c2b2..aed12a7f8 100644
--- a/src/core/hle/service/nfp/nfp_types.h
+++ b/src/core/hle/service/nfp/nfp_types.h
@@ -7,30 +7,19 @@
#include "common/swap.h"
#include "core/hle/service/mii/types.h"
+#include "core/hle/service/nfc/nfc_types.h"
namespace Service::NFP {
static constexpr std::size_t amiibo_name_length = 0xA;
+static constexpr std::size_t application_id_version_offset = 0x1c;
+static constexpr std::size_t counter_limit = 0xffff;
-enum class ServiceType : u32 {
- User,
- Debug,
- System,
-};
-
-enum class DeviceState : u32 {
- Initialized,
- SearchingForTag,
- TagFound,
- TagRemoved,
- TagMounted,
- Unavailable,
- Finalized,
-};
-
+// This is nn::nfp::ModelType
enum class ModelType : u32 {
Amiibo,
};
+// This is nn::nfp::MountTarget
enum class MountTarget : u32 {
None,
Rom,
@@ -70,33 +59,23 @@ enum class AmiiboSeries : u8 {
Diablo,
};
-enum class TagType : u32 {
- None,
- Type1, // ISO14443A RW 96-2k bytes 106kbit/s
- Type2, // ISO14443A RW/RO 540 bytes 106kbit/s
- Type3, // Sony Felica RW/RO 2k bytes 212kbit/s
- Type4, // ISO14443A RW/RO 4k-32k bytes 424kbit/s
- Type5, // ISO15693 RW/RO 540 bytes 106kbit/s
+enum class AppAreaVersion : u8 {
+ Nintendo3DS = 0,
+ NintendoWiiU = 1,
+ Nintendo3DSv2 = 2,
+ NintendoSwitch = 3,
+ NotSet = 0xFF,
};
-enum class PackedTagType : u8 {
- None,
- Type1, // ISO14443A RW 96-2k bytes 106kbit/s
- Type2, // ISO14443A RW/RO 540 bytes 106kbit/s
- Type3, // Sony Felica RW/RO 2k bytes 212kbit/s
- Type4, // ISO14443A RW/RO 4k-32k bytes 424kbit/s
- Type5, // ISO15693 RW/RO 540 bytes 106kbit/s
+enum class BreakType : u32 {
+ Normal,
+ Unknown1,
+ Unknown2,
};
-// Verify this enum. It might be completely wrong default protocol is 0x48
-enum class TagProtocol : u32 {
- None,
- TypeA = 1U << 0, // ISO14443A
- TypeB = 1U << 1, // ISO14443B
- TypeF = 1U << 2, // Sony Felica
- Unknown1 = 1U << 3,
- Unknown2 = 1U << 5,
- All = 0xFFFFFFFFU,
+enum class WriteType : u32 {
+ Unknown0,
+ Unknown1,
};
enum class CabinetMode : u8 {
@@ -106,31 +85,28 @@ enum class CabinetMode : u8 {
StartFormatter,
};
-enum class MifareCmd : u8 {
- AuthA = 0x60,
- AuthB = 0x61,
- Read = 0x30,
- Write = 0xA0,
- Transfer = 0xB0,
- Decrement = 0xC0,
- Increment = 0xC1,
- Store = 0xC2
-};
-
-using UniqueSerialNumber = std::array<u8, 7>;
-using LockBytes = std::array<u8, 2>;
+using UuidPart = std::array<u8, 3>;
using HashData = std::array<u8, 0x20>;
using ApplicationArea = std::array<u8, 0xD8>;
using AmiiboName = std::array<char, (amiibo_name_length * 4) + 1>;
-using DataBlock = std::array<u8, 0x10>;
-using KeyData = std::array<u8, 0x6>;
+
+// This is nn::nfp::TagInfo
+using TagInfo = NFC::TagInfo;
+
+struct NtagTagUuid {
+ UuidPart part1;
+ UuidPart part2;
+ u8 nintendo_id;
+};
+static_assert(sizeof(NtagTagUuid) == 7, "NtagTagUuid is an invalid size");
struct TagUuid {
- UniqueSerialNumber uid;
+ UuidPart part1;
+ u8 crc_check1;
+ UuidPart part2;
u8 nintendo_id;
- LockBytes lock_bytes;
};
-static_assert(sizeof(TagUuid) == 10, "TagUuid is an invalid size");
+static_assert(sizeof(TagUuid) == 8, "TagUuid is an invalid size");
struct WriteDate {
u16 year;
@@ -171,6 +147,12 @@ struct AmiiboDate {
};
}
+ void SetWriteDate(const WriteDate& write_date) {
+ SetYear(write_date.year);
+ SetMonth(write_date.month);
+ SetDay(write_date.day);
+ }
+
void SetYear(u16 year) {
const u16 year_converted = static_cast<u16>((year - 2000) << 9);
raw_date = Common::swap16((GetValue() & ~0xFE00) | year_converted);
@@ -197,6 +179,7 @@ struct Settings {
union {
u8 raw{};
+ BitField<0, 4, u8> font_region;
BitField<4, 1, u8> amiibo_initialized;
BitField<5, 1, u8> appdata_initialized;
};
@@ -220,7 +203,7 @@ struct AmiiboModelInfo {
AmiiboType amiibo_type;
u16_be model_number;
AmiiboSeries series;
- PackedTagType tag_type;
+ NFC::PackedTagType tag_type;
INSERT_PADDING_BYTES(0x4); // Unknown
};
static_assert(sizeof(AmiiboModelInfo) == 0xC, "AmiiboModelInfo is an invalid size");
@@ -236,41 +219,47 @@ static_assert(sizeof(NTAG215Password) == 0x8, "NTAG215Password is an invalid siz
struct EncryptedAmiiboFile {
u8 constant_value; // Must be A5
u16_be write_counter; // Number of times the amiibo has been written?
- INSERT_PADDING_BYTES(0x1); // Unknown 1
+ u8 amiibo_version; // Amiibo file version
AmiiboSettings settings; // Encrypted amiibo settings
HashData hmac_tag; // Hash
AmiiboModelInfo model_info; // Encrypted amiibo model info
HashData keygen_salt; // Salt
HashData hmac_data; // Hash
Service::Mii::Ver3StoreData owner_mii; // Encrypted Mii data
- u64_be title_id; // Encrypted Game id
- u16_be applicaton_write_counter; // Encrypted Counter
+ u64_be application_id; // Encrypted Game id
+ u16_be application_write_counter; // Encrypted Counter
u32_be application_area_id; // Encrypted Game id
- std::array<u8, 0x2> unknown;
- std::array<u32, 0x8> unknown2;
+ u8 application_id_byte;
+ u8 unknown;
+ Service::Mii::NfpStoreDataExtension mii_extension;
+ std::array<u32, 0x5> unknown2;
+ u32_be register_info_crc;
ApplicationArea application_area; // Encrypted Game data
};
static_assert(sizeof(EncryptedAmiiboFile) == 0x1F8, "AmiiboFile is an invalid size");
struct NTAG215File {
- LockBytes lock_bytes; // Tag UUID
+ u8 uid_crc_check2;
+ u8 internal_number;
u16 static_lock; // Set defined pages as read only
u32 compability_container; // Defines available memory
HashData hmac_data; // Hash
u8 constant_value; // Must be A5
u16_be write_counter; // Number of times the amiibo has been written?
- INSERT_PADDING_BYTES(0x1); // Unknown 1
+ u8 amiibo_version; // Amiibo file version
AmiiboSettings settings;
- Service::Mii::Ver3StoreData owner_mii; // Encrypted Mii data
- u64_be title_id;
- u16_be applicaton_write_counter; // Encrypted Counter
+ Service::Mii::Ver3StoreData owner_mii; // Mii data
+ u64_be application_id; // Game id
+ u16_be application_write_counter; // Counter
u32_be application_area_id;
- std::array<u8, 0x2> unknown;
- std::array<u32, 0x8> unknown2;
+ u8 application_id_byte;
+ u8 unknown;
+ Service::Mii::NfpStoreDataExtension mii_extension;
+ std::array<u32, 0x5> unknown2;
+ u32_be register_info_crc;
ApplicationArea application_area; // Encrypted Game data
HashData hmac_tag; // Hash
- UniqueSerialNumber uid; // Unique serial number
- u8 nintendo_id; // Tag UUID
+ TagUuid uid;
AmiiboModelInfo model_info;
HashData keygen_salt; // Salt
u32 dynamic_lock; // Dynamic lock
@@ -283,7 +272,9 @@ static_assert(std::is_trivially_copyable_v<NTAG215File>, "NTAG215File must be tr
#pragma pack()
struct EncryptedNTAG215File {
- TagUuid uuid; // Unique serial number
+ TagUuid uuid;
+ u8 uuid_crc_check2;
+ u8 internal_number;
u16 static_lock; // Set defined pages as read only
u32 compability_container; // Defines available memory
EncryptedAmiiboFile user_memory; // Writable data
@@ -292,21 +283,12 @@ struct EncryptedNTAG215File {
u32 CFG1; // Defines number of verification attempts
NTAG215Password password; // Password data
};
-static_assert(sizeof(EncryptedNTAG215File) == 0x21C, "EncryptedNTAG215File is an invalid size");
+static_assert(sizeof(EncryptedNTAG215File) == sizeof(NTAG215File),
+ "EncryptedNTAG215File is an invalid size");
static_assert(std::is_trivially_copyable_v<EncryptedNTAG215File>,
"EncryptedNTAG215File must be trivially copyable.");
-struct TagInfo {
- UniqueSerialNumber uuid;
- INSERT_PADDING_BYTES(0x3);
- u8 uuid_length;
- INSERT_PADDING_BYTES(0x15);
- TagProtocol protocol;
- TagType tag_type;
- INSERT_PADDING_BYTES(0x30);
-};
-static_assert(sizeof(TagInfo) == 0x58, "TagInfo is an invalid size");
-
+// This is nn::nfp::CommonInfo
struct CommonInfo {
WriteDate last_write_date;
u16 write_counter;
@@ -317,6 +299,7 @@ struct CommonInfo {
};
static_assert(sizeof(CommonInfo) == 0x40, "CommonInfo is an invalid size");
+// This is nn::nfp::ModelInfo
struct ModelInfo {
u16 character_id;
u8 character_variant;
@@ -327,6 +310,7 @@ struct ModelInfo {
};
static_assert(sizeof(ModelInfo) == 0x40, "ModelInfo is an invalid size");
+// This is nn::nfp::RegisterInfo
struct RegisterInfo {
Service::Mii::CharInfo mii_char_info;
WriteDate creation_date;
@@ -336,37 +320,60 @@ struct RegisterInfo {
};
static_assert(sizeof(RegisterInfo) == 0x100, "RegisterInfo is an invalid size");
-struct SectorKey {
- MifareCmd command;
- u8 unknown; // Usually 1
- INSERT_PADDING_BYTES(0x6);
- KeyData sector_key;
- INSERT_PADDING_BYTES(0x2);
-};
-static_assert(sizeof(SectorKey) == 0x10, "SectorKey is an invalid size");
-
-struct MifareReadBlockParameter {
- u8 sector_number;
- INSERT_PADDING_BYTES(0x7);
- SectorKey sector_key;
+// This is nn::nfp::RegisterInfoPrivate
+struct RegisterInfoPrivate {
+ Service::Mii::MiiStoreData mii_store_data;
+ WriteDate creation_date;
+ AmiiboName amiibo_name;
+ u8 font_region;
+ INSERT_PADDING_BYTES(0x8E);
};
-static_assert(sizeof(MifareReadBlockParameter) == 0x18,
- "MifareReadBlockParameter is an invalid size");
-
-struct MifareReadBlockData {
- DataBlock data;
- u8 sector_number;
+static_assert(sizeof(RegisterInfoPrivate) == 0x100, "RegisterInfoPrivate is an invalid size");
+
+// This is nn::nfp::AdminInfo
+struct AdminInfo {
+ u64 application_id;
+ u32 application_area_id;
+ u16 crc_change_counter;
+ u8 flags;
+ NFC::PackedTagType tag_type;
+ AppAreaVersion app_area_version;
INSERT_PADDING_BYTES(0x7);
+ INSERT_PADDING_BYTES(0x28);
};
-static_assert(sizeof(MifareReadBlockData) == 0x18, "MifareReadBlockData is an invalid size");
+static_assert(sizeof(AdminInfo) == 0x40, "AdminInfo is an invalid size");
-struct MifareWriteBlockParameter {
- DataBlock data;
- u8 sector_number;
- INSERT_PADDING_BYTES(0x7);
- SectorKey sector_key;
+#pragma pack(1)
+// This is nn::nfp::NfpData
+struct NfpData {
+ u8 magic;
+ INSERT_PADDING_BYTES(0x1);
+ u8 write_counter;
+ INSERT_PADDING_BYTES(0x1);
+ u32 settings_crc;
+ INSERT_PADDING_BYTES(0x38);
+ CommonInfo common_info;
+ Service::Mii::Ver3StoreData mii_char_info;
+ Service::Mii::NfpStoreDataExtension mii_store_data_extension;
+ WriteDate creation_date;
+ std::array<u16_be, amiibo_name_length> amiibo_name;
+ u16 amiibo_name_null_terminated;
+ Settings settings;
+ u8 unknown1;
+ u32 register_info_crc;
+ std::array<u32, 5> unknown2;
+ INSERT_PADDING_BYTES(0x64);
+ u64 application_id;
+ u32 access_id;
+ u16 settings_crc_counter;
+ u8 font_region;
+ NFC::PackedTagType tag_type;
+ AppAreaVersion console_type;
+ u8 application_id_byte;
+ INSERT_PADDING_BYTES(0x2E);
+ ApplicationArea application_area;
};
-static_assert(sizeof(MifareWriteBlockParameter) == 0x28,
- "MifareWriteBlockParameter is an invalid size");
+static_assert(sizeof(NfpData) == 0x298, "NfpData is an invalid size");
+#pragma pack()
} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_user.cpp b/src/core/hle/service/nfp/nfp_user.cpp
deleted file mode 100644
index a4d3d1bc7..000000000
--- a/src/core/hle/service/nfp/nfp_user.cpp
+++ /dev/null
@@ -1,672 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "common/logging/log.h"
-#include "core/core.h"
-#include "core/hid/hid_types.h"
-#include "core/hle/ipc_helpers.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/service/nfp/nfp_device.h"
-#include "core/hle/service/nfp/nfp_result.h"
-#include "core/hle/service/nfp/nfp_user.h"
-
-namespace Service::NFP {
-
-IUser::IUser(Core::System& system_)
- : ServiceFramework{system_, "NFP::IUser"}, service_context{system_, service_name} {
- static const FunctionInfo functions[] = {
- {0, &IUser::Initialize, "Initialize"},
- {1, &IUser::Finalize, "Finalize"},
- {2, &IUser::ListDevices, "ListDevices"},
- {3, &IUser::StartDetection, "StartDetection"},
- {4, &IUser::StopDetection, "StopDetection"},
- {5, &IUser::Mount, "Mount"},
- {6, &IUser::Unmount, "Unmount"},
- {7, &IUser::OpenApplicationArea, "OpenApplicationArea"},
- {8, &IUser::GetApplicationArea, "GetApplicationArea"},
- {9, &IUser::SetApplicationArea, "SetApplicationArea"},
- {10, &IUser::Flush, "Flush"},
- {11, &IUser::Restore, "Restore"},
- {12, &IUser::CreateApplicationArea, "CreateApplicationArea"},
- {13, &IUser::GetTagInfo, "GetTagInfo"},
- {14, &IUser::GetRegisterInfo, "GetRegisterInfo"},
- {15, &IUser::GetCommonInfo, "GetCommonInfo"},
- {16, &IUser::GetModelInfo, "GetModelInfo"},
- {17, &IUser::AttachActivateEvent, "AttachActivateEvent"},
- {18, &IUser::AttachDeactivateEvent, "AttachDeactivateEvent"},
- {19, &IUser::GetState, "GetState"},
- {20, &IUser::GetDeviceState, "GetDeviceState"},
- {21, &IUser::GetNpadId, "GetNpadId"},
- {22, &IUser::GetApplicationAreaSize, "GetApplicationAreaSize"},
- {23, &IUser::AttachAvailabilityChangeEvent, "AttachAvailabilityChangeEvent"},
- {24, &IUser::RecreateApplicationArea, "RecreateApplicationArea"},
- };
- RegisterHandlers(functions);
-
- availability_change_event = service_context.CreateEvent("IUser:AvailabilityChangeEvent");
-
- for (u32 device_index = 0; device_index < 10; device_index++) {
- devices[device_index] =
- std::make_shared<NfpDevice>(Core::HID::IndexToNpadIdType(device_index), system,
- service_context, availability_change_event);
- }
-}
-
-IUser ::~IUser() {
- availability_change_event->Close();
-}
-
-void IUser::Initialize(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFP, "called");
-
- state = State::Initialized;
-
- for (auto& device : devices) {
- device->Initialize();
- }
-
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultSuccess);
-}
-
-void IUser::Finalize(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFP, "called");
-
- state = State::NonInitialized;
-
- for (auto& device : devices) {
- device->Finalize();
- }
-
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultSuccess);
-}
-
-void IUser::ListDevices(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFP, "called");
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- if (!ctx.CanWriteBuffer()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(InvalidArgument);
- return;
- }
-
- if (ctx.GetWriteBufferSize() == 0) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(InvalidArgument);
- return;
- }
-
- std::vector<u64> nfp_devices;
- const std::size_t max_allowed_devices = ctx.GetWriteBufferNumElements<u64>();
-
- for (const auto& device : devices) {
- if (nfp_devices.size() >= max_allowed_devices) {
- continue;
- }
- if (device->GetCurrentState() != DeviceState::Unavailable) {
- nfp_devices.push_back(device->GetHandle());
- }
- }
-
- if (nfp_devices.empty()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- ctx.WriteBuffer(nfp_devices);
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.Push(static_cast<s32>(nfp_devices.size()));
-}
-
-void IUser::StartDetection(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto nfp_protocol{rp.PopEnum<TagProtocol>()};
- LOG_INFO(Service_NFP, "called, device_handle={}, nfp_protocol={}", device_handle, nfp_protocol);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->StartDetection(nfp_protocol);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::StopDetection(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->StopDetection();
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::Mount(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto model_type{rp.PopEnum<ModelType>()};
- const auto mount_target{rp.PopEnum<MountTarget>()};
- LOG_INFO(Service_NFP, "called, device_handle={}, model_type={}, mount_target={}", device_handle,
- model_type, mount_target);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->Mount(mount_target);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::Unmount(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->Unmount();
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::OpenApplicationArea(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto access_id{rp.Pop<u32>()};
- LOG_INFO(Service_NFP, "called, device_handle={}, access_id={}", device_handle, access_id);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->OpenApplicationArea(access_id);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::GetApplicationArea(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto data_size = ctx.GetWriteBufferSize();
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- if (!ctx.CanWriteBuffer()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(InvalidArgument);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- std::vector<u8> data(data_size);
- const auto result = device.value()->GetApplicationArea(data);
- ctx.WriteBuffer(data);
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(result);
- rb.Push(static_cast<u32>(data_size));
-}
-
-void IUser::SetApplicationArea(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto data{ctx.ReadBuffer()};
- LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}", device_handle, data.size());
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- if (!ctx.CanReadBuffer()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(InvalidArgument);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->SetApplicationArea(data);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::Flush(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->Flush();
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::Restore(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_WARNING(Service_NFP, "(STUBBED) called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->RestoreAmiibo();
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::CreateApplicationArea(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto access_id{rp.Pop<u32>()};
- const auto data{ctx.ReadBuffer()};
- LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}, access_id={}", device_handle,
- access_id, data.size());
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- if (!ctx.CanReadBuffer()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(InvalidArgument);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->CreateApplicationArea(access_id, data);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::GetTagInfo(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- TagInfo tag_info{};
- const auto result = device.value()->GetTagInfo(tag_info);
- ctx.WriteBuffer(tag_info);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::GetRegisterInfo(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- RegisterInfo register_info{};
- const auto result = device.value()->GetRegisterInfo(register_info);
- ctx.WriteBuffer(register_info);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::GetCommonInfo(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- CommonInfo common_info{};
- const auto result = device.value()->GetCommonInfo(common_info);
- ctx.WriteBuffer(common_info);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::GetModelInfo(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_INFO(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- ModelInfo model_info{};
- const auto result = device.value()->GetModelInfo(model_info);
- ctx.WriteBuffer(model_info);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-void IUser::AttachActivateEvent(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(device.value()->GetActivateEvent());
-}
-
-void IUser::AttachDeactivateEvent(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(device.value()->GetDeactivateEvent());
-}
-
-void IUser::GetState(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_NFP, "called");
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(state);
-}
-
-void IUser::GetDeviceState(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFP, "called, device_handle={}", device_handle);
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(device.value()->GetCurrentState());
-}
-
-void IUser::GetNpadId(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFP, "called, device_handle={}", device_handle);
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.PushEnum(device.value()->GetNpadId());
-}
-
-void IUser::GetApplicationAreaSize(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- LOG_DEBUG(Service_NFP, "called, device_handle={}", device_handle);
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 3};
- rb.Push(ResultSuccess);
- rb.Push(device.value()->GetApplicationAreaSize());
-}
-
-void IUser::AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx) {
- LOG_INFO(Service_NFP, "called");
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- IPC::ResponseBuilder rb{ctx, 2, 1};
- rb.Push(ResultSuccess);
- rb.PushCopyObjects(availability_change_event->GetReadableEvent());
-}
-
-void IUser::RecreateApplicationArea(Kernel::HLERequestContext& ctx) {
- IPC::RequestParser rp{ctx};
- const auto device_handle{rp.Pop<u64>()};
- const auto access_id{rp.Pop<u32>()};
- const auto data{ctx.ReadBuffer()};
- LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}, access_id={}", device_handle,
- access_id, data.size());
-
- if (state == State::NonInitialized) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(NfcDisabled);
- return;
- }
-
- auto device = GetNfpDevice(device_handle);
-
- if (!device.has_value()) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(DeviceNotFound);
- return;
- }
-
- const auto result = device.value()->RecreateApplicationArea(access_id, data);
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
-}
-
-std::optional<std::shared_ptr<NfpDevice>> IUser::GetNfpDevice(u64 handle) {
- for (auto& device : devices) {
- if (device->GetHandle() == handle) {
- return device;
- }
- }
- return std::nullopt;
-}
-
-} // namespace Service::NFP
diff --git a/src/core/hle/service/nfp/nfp_user.h b/src/core/hle/service/nfp/nfp_user.h
deleted file mode 100644
index 7e9a90af8..000000000
--- a/src/core/hle/service/nfp/nfp_user.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <array>
-#include <memory>
-#include <optional>
-
-#include "core/hle/service/kernel_helpers.h"
-#include "core/hle/service/service.h"
-
-namespace Service::NFP {
-class NfpDevice;
-
-class IUser final : public ServiceFramework<IUser> {
-public:
- explicit IUser(Core::System& system_);
- ~IUser();
-
-private:
- enum class State : u32 {
- NonInitialized,
- Initialized,
- };
-
- void Initialize(Kernel::HLERequestContext& ctx);
- void Finalize(Kernel::HLERequestContext& ctx);
- void ListDevices(Kernel::HLERequestContext& ctx);
- void StartDetection(Kernel::HLERequestContext& ctx);
- void StopDetection(Kernel::HLERequestContext& ctx);
- void Mount(Kernel::HLERequestContext& ctx);
- void Unmount(Kernel::HLERequestContext& ctx);
- void OpenApplicationArea(Kernel::HLERequestContext& ctx);
- void GetApplicationArea(Kernel::HLERequestContext& ctx);
- void SetApplicationArea(Kernel::HLERequestContext& ctx);
- void Flush(Kernel::HLERequestContext& ctx);
- void Restore(Kernel::HLERequestContext& ctx);
- void CreateApplicationArea(Kernel::HLERequestContext& ctx);
- void GetTagInfo(Kernel::HLERequestContext& ctx);
- void GetRegisterInfo(Kernel::HLERequestContext& ctx);
- void GetCommonInfo(Kernel::HLERequestContext& ctx);
- void GetModelInfo(Kernel::HLERequestContext& ctx);
- void AttachActivateEvent(Kernel::HLERequestContext& ctx);
- void AttachDeactivateEvent(Kernel::HLERequestContext& ctx);
- void GetState(Kernel::HLERequestContext& ctx);
- void GetDeviceState(Kernel::HLERequestContext& ctx);
- void GetNpadId(Kernel::HLERequestContext& ctx);
- void GetApplicationAreaSize(Kernel::HLERequestContext& ctx);
- void AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx);
- void RecreateApplicationArea(Kernel::HLERequestContext& ctx);
-
- std::optional<std::shared_ptr<NfpDevice>> GetNfpDevice(u64 handle);
-
- KernelHelpers::ServiceContext service_context;
-
- std::array<std::shared_ptr<NfpDevice>, 10> devices{};
-
- State state{State::NonInitialized};
- Kernel::KEvent* availability_change_event;
-};
-
-} // namespace Service::NFP
diff --git a/src/core/hle/service/ngct/ngct.cpp b/src/core/hle/service/ngct/ngct.cpp
index 8af8a835d..493c80ed2 100644
--- a/src/core/hle/service/ngct/ngct.cpp
+++ b/src/core/hle/service/ngct/ngct.cpp
@@ -3,8 +3,9 @@
#include "common/string_util.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ngct/ngct.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
namespace Service::NGCT {
@@ -23,7 +24,7 @@ public:
}
private:
- void Match(Kernel::HLERequestContext& ctx) {
+ void Match(HLERequestContext& ctx) {
const auto buffer = ctx.ReadBuffer();
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(buffer.data()), buffer.size());
@@ -36,7 +37,7 @@ private:
rb.Push(false);
}
- void Filter(Kernel::HLERequestContext& ctx) {
+ void Filter(HLERequestContext& ctx) {
const auto buffer = ctx.ReadBuffer();
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(buffer.data()), buffer.size());
@@ -51,8 +52,11 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<IService>(system)->InstallAsService(system.ServiceManager());
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("ngct:u", std::make_shared<IService>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NGCT
diff --git a/src/core/hle/service/ngct/ngct.h b/src/core/hle/service/ngct/ngct.h
index 370bd4a25..27c34dad4 100644
--- a/src/core/hle/service/ngct/ngct.h
+++ b/src/core/hle/service/ngct/ngct.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::NGCT {
-/// Registers all NGCT services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::NGCT
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index 5d32adf64..91d42853e 100644
--- a/src/core/hle/service/nifm/nifm.cpp
+++ b/src/core/hle/service/nifm/nifm.cpp
@@ -2,10 +2,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/nifm/nifm.h"
+#include "core/hle/service/server_manager.h"
namespace {
@@ -216,8 +217,8 @@ public:
}
private:
- void Submit(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_NIFM, "(STUBBED) called");
+ void Submit(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NIFM, "(STUBBED) called");
if (state == RequestState::NotSubmitted) {
UpdateState(RequestState::OnHold);
@@ -227,16 +228,16 @@ private:
rb.Push(ResultSuccess);
}
- void GetRequestState(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_NIFM, "(STUBBED) called");
+ void GetRequestState(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.PushEnum(state);
}
- void GetResult(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_NIFM, "(STUBBED) called");
+ void GetResult(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NIFM, "(STUBBED) called");
const auto result = [this] {
const auto has_connection = Network::GetHostIPv4Address().has_value();
@@ -260,7 +261,7 @@ private:
rb.Push(result);
}
- void GetSystemEventReadableHandles(Kernel::HLERequestContext& ctx) {
+ void GetSystemEventReadableHandles(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 2};
@@ -268,21 +269,21 @@ private:
rb.PushCopyObjects(event1->GetReadableEvent(), event2->GetReadableEvent());
}
- void Cancel(Kernel::HLERequestContext& ctx) {
+ void Cancel(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void SetConnectionConfirmationOption(Kernel::HLERequestContext& ctx) {
+ void SetConnectionConfirmationOption(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void GetAppletInfo(Kernel::HLERequestContext& ctx) {
+ void GetAppletInfo(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
std::vector<u8> out_buffer(ctx.GetWriteBufferSize());
@@ -321,7 +322,7 @@ public:
}
};
-void IGeneralService::GetClientId(Kernel::HLERequestContext& ctx) {
+void IGeneralService::GetClientId(HLERequestContext& ctx) {
static constexpr u32 client_id = 1;
LOG_WARNING(Service_NIFM, "(STUBBED) called");
@@ -330,7 +331,7 @@ void IGeneralService::GetClientId(Kernel::HLERequestContext& ctx) {
rb.Push<u64>(client_id); // Client ID needs to be non zero otherwise it's considered invalid
}
-void IGeneralService::CreateScanRequest(Kernel::HLERequestContext& ctx) {
+void IGeneralService::CreateScanRequest(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIFM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -339,7 +340,7 @@ void IGeneralService::CreateScanRequest(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IScanRequest>(system);
}
-void IGeneralService::CreateRequest(Kernel::HLERequestContext& ctx) {
+void IGeneralService::CreateRequest(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIFM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -348,7 +349,7 @@ void IGeneralService::CreateRequest(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IRequest>(system);
}
-void IGeneralService::GetCurrentNetworkProfile(Kernel::HLERequestContext& ctx) {
+void IGeneralService::GetCurrentNetworkProfile(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
const auto net_iface = Network::GetSelectedNetworkInterface();
@@ -407,14 +408,14 @@ void IGeneralService::GetCurrentNetworkProfile(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IGeneralService::RemoveNetworkProfile(Kernel::HLERequestContext& ctx) {
+void IGeneralService::RemoveNetworkProfile(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void IGeneralService::GetCurrentIpAddress(Kernel::HLERequestContext& ctx) {
+void IGeneralService::GetCurrentIpAddress(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
auto ipv4 = Network::GetHostIPv4Address();
@@ -435,7 +436,7 @@ void IGeneralService::GetCurrentIpAddress(Kernel::HLERequestContext& ctx) {
rb.PushRaw(*ipv4);
}
-void IGeneralService::CreateTemporaryNetworkProfile(Kernel::HLERequestContext& ctx) {
+void IGeneralService::CreateTemporaryNetworkProfile(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIFM, "called");
ASSERT_MSG(ctx.GetReadBufferSize() == 0x17c, "SfNetworkProfileData is not the correct size");
@@ -450,7 +451,7 @@ void IGeneralService::CreateTemporaryNetworkProfile(Kernel::HLERequestContext& c
rb.PushRaw<u128>(uuid);
}
-void IGeneralService::GetCurrentIpConfigInfo(Kernel::HLERequestContext& ctx) {
+void IGeneralService::GetCurrentIpConfigInfo(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
struct IpConfigInfo {
@@ -494,7 +495,7 @@ void IGeneralService::GetCurrentIpConfigInfo(Kernel::HLERequestContext& ctx) {
rb.PushRaw<IpConfigInfo>(ip_config_info);
}
-void IGeneralService::IsWirelessCommunicationEnabled(Kernel::HLERequestContext& ctx) {
+void IGeneralService::IsWirelessCommunicationEnabled(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -502,7 +503,7 @@ void IGeneralService::IsWirelessCommunicationEnabled(Kernel::HLERequestContext&
rb.Push<u8>(1);
}
-void IGeneralService::GetInternetConnectionStatus(Kernel::HLERequestContext& ctx) {
+void IGeneralService::GetInternetConnectionStatus(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
struct Output {
@@ -519,7 +520,7 @@ void IGeneralService::GetInternetConnectionStatus(Kernel::HLERequestContext& ctx
rb.PushRaw(out);
}
-void IGeneralService::IsEthernetCommunicationEnabled(Kernel::HLERequestContext& ctx) {
+void IGeneralService::IsEthernetCommunicationEnabled(HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -531,7 +532,7 @@ void IGeneralService::IsEthernetCommunicationEnabled(Kernel::HLERequestContext&
}
}
-void IGeneralService::IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx) {
+void IGeneralService::IsAnyInternetRequestAccepted(HLERequestContext& ctx) {
LOG_ERROR(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -609,7 +610,7 @@ public:
}
private:
- void CreateGeneralServiceOld(Kernel::HLERequestContext& ctx) {
+ void CreateGeneralServiceOld(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIFM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -617,7 +618,7 @@ private:
rb.PushIpcInterface<IGeneralService>(system);
}
- void CreateGeneralService(Kernel::HLERequestContext& ctx) {
+ void CreateGeneralService(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIFM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -626,10 +627,16 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<NetworkInterface>("nifm:a", system)->InstallAsService(service_manager);
- std::make_shared<NetworkInterface>("nifm:s", system)->InstallAsService(service_manager);
- std::make_shared<NetworkInterface>("nifm:u", system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("nifm:a",
+ std::make_shared<NetworkInterface>("nifm:a", system));
+ server_manager->RegisterNamedService("nifm:s",
+ std::make_shared<NetworkInterface>("nifm:s", system));
+ server_manager->RegisterNamedService("nifm:u",
+ std::make_shared<NetworkInterface>("nifm:u", system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NIFM
diff --git a/src/core/hle/service/nifm/nifm.h b/src/core/hle/service/nifm/nifm.h
index 48161be28..9b20e6823 100644
--- a/src/core/hle/service/nifm/nifm.h
+++ b/src/core/hle/service/nifm/nifm.h
@@ -12,14 +12,9 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::NIFM {
-/// Registers all NIFM services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
class IGeneralService final : public ServiceFramework<IGeneralService> {
public:
@@ -27,18 +22,18 @@ public:
~IGeneralService() override;
private:
- void GetClientId(Kernel::HLERequestContext& ctx);
- void CreateScanRequest(Kernel::HLERequestContext& ctx);
- void CreateRequest(Kernel::HLERequestContext& ctx);
- void GetCurrentNetworkProfile(Kernel::HLERequestContext& ctx);
- void RemoveNetworkProfile(Kernel::HLERequestContext& ctx);
- void GetCurrentIpAddress(Kernel::HLERequestContext& ctx);
- void CreateTemporaryNetworkProfile(Kernel::HLERequestContext& ctx);
- void GetCurrentIpConfigInfo(Kernel::HLERequestContext& ctx);
- void IsWirelessCommunicationEnabled(Kernel::HLERequestContext& ctx);
- void GetInternetConnectionStatus(Kernel::HLERequestContext& ctx);
- void IsEthernetCommunicationEnabled(Kernel::HLERequestContext& ctx);
- void IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx);
+ void GetClientId(HLERequestContext& ctx);
+ void CreateScanRequest(HLERequestContext& ctx);
+ void CreateRequest(HLERequestContext& ctx);
+ void GetCurrentNetworkProfile(HLERequestContext& ctx);
+ void RemoveNetworkProfile(HLERequestContext& ctx);
+ void GetCurrentIpAddress(HLERequestContext& ctx);
+ void CreateTemporaryNetworkProfile(HLERequestContext& ctx);
+ void GetCurrentIpConfigInfo(HLERequestContext& ctx);
+ void IsWirelessCommunicationEnabled(HLERequestContext& ctx);
+ void GetInternetConnectionStatus(HLERequestContext& ctx);
+ void IsEthernetCommunicationEnabled(HLERequestContext& ctx);
+ void IsAnyInternetRequestAccepted(HLERequestContext& ctx);
Network::RoomNetwork& network;
};
diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp
index 5a8a91e0b..42de87f9a 100644
--- a/src/core/hle/service/nim/nim.cpp
+++ b/src/core/hle/service/nim/nim.cpp
@@ -4,12 +4,12 @@
#include <chrono>
#include <ctime>
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/nim/nim.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::NIM {
@@ -46,7 +46,7 @@ public:
}
private:
- void CreateAsyncInterface(Kernel::HLERequestContext& ctx) {
+ void CreateAsyncInterface(HLERequestContext& ctx) {
LOG_WARNING(Service_NIM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -68,7 +68,7 @@ public:
}
private:
- void CreateAccessorInterface(Kernel::HLERequestContext& ctx) {
+ void CreateAccessorInterface(HLERequestContext& ctx) {
LOG_WARNING(Service_NIM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -239,14 +239,14 @@ public:
}
private:
- void CreateServerInterface(Kernel::HLERequestContext& ctx) {
+ void CreateServerInterface(HLERequestContext& ctx) {
LOG_WARNING(Service_NIM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IShopServiceAccessServer>(system);
}
- void IsLargeResourceAvailable(Kernel::HLERequestContext& ctx) {
+ void IsLargeResourceAvailable(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto unknown{rp.Pop<u64>()};
@@ -325,7 +325,7 @@ public:
}
private:
- void StartTask(Kernel::HLERequestContext& ctx) {
+ void StartTask(HLERequestContext& ctx) {
// No need to connect to the internet, just finish the task straight away.
LOG_DEBUG(Service_NIM, "called");
finished_event->Signal();
@@ -333,7 +333,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetFinishNotificationEvent(Kernel::HLERequestContext& ctx) {
+ void GetFinishNotificationEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIM, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
@@ -341,21 +341,21 @@ private:
rb.PushCopyObjects(finished_event->GetReadableEvent());
}
- void GetResult(Kernel::HLERequestContext& ctx) {
+ void GetResult(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIM, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void Cancel(Kernel::HLERequestContext& ctx) {
+ void Cancel(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIM, "called");
finished_event->Clear();
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void IsProcessing(Kernel::HLERequestContext& ctx) {
+ void IsProcessing(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -363,7 +363,7 @@ private:
rb.PushRaw<u32>(0); // We instantly process the request
}
- void GetServerTime(Kernel::HLERequestContext& ctx) {
+ void GetServerTime(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIM, "called");
const s64 server_time{std::chrono::duration_cast<std::chrono::seconds>(
@@ -394,7 +394,7 @@ public:
}
private:
- void OpenEnsureNetworkClockAvailabilityService(Kernel::HLERequestContext& ctx) {
+ void OpenEnsureNetworkClockAvailabilityService(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -403,14 +403,14 @@ private:
}
// TODO(ogniK): Do we need these?
- void SuspendAutonomicTimeCorrection(Kernel::HLERequestContext& ctx) {
+ void SuspendAutonomicTimeCorrection(HLERequestContext& ctx) {
LOG_WARNING(Service_NIM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void ResumeAutonomicTimeCorrection(Kernel::HLERequestContext& ctx) {
+ void ResumeAutonomicTimeCorrection(HLERequestContext& ctx) {
LOG_WARNING(Service_NIM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -418,11 +418,14 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<NIM>(system)->InstallAsService(sm);
- std::make_shared<NIM_ECA>(system)->InstallAsService(sm);
- std::make_shared<NIM_SHP>(system)->InstallAsService(sm);
- std::make_shared<NTC>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("nim", std::make_shared<NIM>(system));
+ server_manager->RegisterNamedService("nim:eca", std::make_shared<NIM_ECA>(system));
+ server_manager->RegisterNamedService("nim:shp", std::make_shared<NIM_SHP>(system));
+ server_manager->RegisterNamedService("ntc", std::make_shared<NTC>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NIM
diff --git a/src/core/hle/service/nim/nim.h b/src/core/hle/service/nim/nim.h
index 8f6ff28e8..e7d599908 100644
--- a/src/core/hle/service/nim/nim.h
+++ b/src/core/hle/service/nim/nim.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::NIM {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::NIM
diff --git a/src/core/hle/service/npns/npns.cpp b/src/core/hle/service/npns/npns.cpp
index 8133711c2..a162e5c54 100644
--- a/src/core/hle/service/npns/npns.cpp
+++ b/src/core/hle/service/npns/npns.cpp
@@ -4,8 +4,8 @@
#include <memory>
#include "core/hle/service/npns/npns.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::NPNS {
@@ -94,9 +94,12 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<NPNS_S>(system)->InstallAsService(sm);
- std::make_shared<NPNS_U>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("npns:s", std::make_shared<NPNS_S>(system));
+ server_manager->RegisterNamedService("npns:u", std::make_shared<NPNS_U>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NPNS
diff --git a/src/core/hle/service/npns/npns.h b/src/core/hle/service/npns/npns.h
index 84e6ec437..0019fca76 100644
--- a/src/core/hle/service/npns/npns.h
+++ b/src/core/hle/service/npns/npns.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::NPNS {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::NPNS
diff --git a/src/core/hle/service/ns/errors.h b/src/core/hle/service/ns/errors.h
index 8a7621798..16d2ea6f7 100644
--- a/src/core/hle/service/ns/errors.h
+++ b/src/core/hle/service/ns/errors.h
@@ -7,5 +7,6 @@
namespace Service::NS {
-constexpr Result ERR_APPLICATION_LANGUAGE_NOT_FOUND{ErrorModule::NS, 300};
-} \ No newline at end of file
+constexpr Result ResultApplicationLanguageNotFound{ErrorModule::NS, 300};
+
+}
diff --git a/src/core/hle/service/ns/iplatform_service_manager.cpp b/src/core/hle/service/ns/iplatform_service_manager.cpp
index 1fab2f0dd..6c2f5e70b 100644
--- a/src/core/hle/service/ns/iplatform_service_manager.cpp
+++ b/src/core/hle/service/ns/iplatform_service_manager.cpp
@@ -15,11 +15,11 @@
#include "core/file_sys/registered_cache.h"
#include "core/file_sys/romfs.h"
#include "core/file_sys/system_archive/system_archive.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_shared_memory.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/physical_memory.h"
#include "core/hle/service/filesystem/filesystem.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ns/iplatform_service_manager.h"
namespace Service::NS {
@@ -119,7 +119,7 @@ struct IPlatformServiceManager::Impl {
break;
}
- // Derive key withing inverse xor
+ // Derive key within inverse xor
const u32 KEY = GetU32Swapped(input.data() + cur_offset) ^ EXPECTED_MAGIC;
const u32 SIZE = GetU32Swapped(input.data() + cur_offset + 4) ^ KEY;
shared_font_regions.push_back(FontRegion{cur_offset + 8, SIZE});
@@ -208,7 +208,7 @@ IPlatformServiceManager::IPlatformServiceManager(Core::System& system_, const ch
IPlatformServiceManager::~IPlatformServiceManager() = default;
-void IPlatformServiceManager::RequestLoad(Kernel::HLERequestContext& ctx) {
+void IPlatformServiceManager::RequestLoad(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 shared_font_type{rp.Pop<u32>()};
// Games don't call this so all fonts should be loaded
@@ -218,7 +218,7 @@ void IPlatformServiceManager::RequestLoad(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void IPlatformServiceManager::GetLoadState(Kernel::HLERequestContext& ctx) {
+void IPlatformServiceManager::GetLoadState(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 font_id{rp.Pop<u32>()};
LOG_DEBUG(Service_NS, "called, font_id={}", font_id);
@@ -228,7 +228,7 @@ void IPlatformServiceManager::GetLoadState(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(static_cast<u32>(LoadState::Done));
}
-void IPlatformServiceManager::GetSize(Kernel::HLERequestContext& ctx) {
+void IPlatformServiceManager::GetSize(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 font_id{rp.Pop<u32>()};
LOG_DEBUG(Service_NS, "called, font_id={}", font_id);
@@ -238,7 +238,7 @@ void IPlatformServiceManager::GetSize(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(impl->GetSharedFontRegion(font_id).size);
}
-void IPlatformServiceManager::GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx) {
+void IPlatformServiceManager::GetSharedMemoryAddressOffset(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 font_id{rp.Pop<u32>()};
LOG_DEBUG(Service_NS, "called, font_id={}", font_id);
@@ -248,7 +248,7 @@ void IPlatformServiceManager::GetSharedMemoryAddressOffset(Kernel::HLERequestCon
rb.Push<u32>(impl->GetSharedFontRegion(font_id).offset);
}
-void IPlatformServiceManager::GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx) {
+void IPlatformServiceManager::GetSharedMemoryNativeHandle(HLERequestContext& ctx) {
// Map backing memory for the font data
LOG_DEBUG(Service_NS, "called");
@@ -261,7 +261,7 @@ void IPlatformServiceManager::GetSharedMemoryNativeHandle(Kernel::HLERequestCont
rb.PushCopyObjects(&kernel.GetFontSharedMem());
}
-void IPlatformServiceManager::GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx) {
+void IPlatformServiceManager::GetSharedFontInOrderOfPriority(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 language_code{rp.Pop<u64>()}; // TODO(ogniK): Find out what this is used for
LOG_DEBUG(Service_NS, "called, language_code={:X}", language_code);
diff --git a/src/core/hle/service/ns/iplatform_service_manager.h b/src/core/hle/service/ns/iplatform_service_manager.h
index ed6eda89f..03071e02b 100644
--- a/src/core/hle/service/ns/iplatform_service_manager.h
+++ b/src/core/hle/service/ns/iplatform_service_manager.h
@@ -42,12 +42,12 @@ public:
~IPlatformServiceManager() override;
private:
- void RequestLoad(Kernel::HLERequestContext& ctx);
- void GetLoadState(Kernel::HLERequestContext& ctx);
- void GetSize(Kernel::HLERequestContext& ctx);
- void GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx);
- void GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx);
- void GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx);
+ void RequestLoad(HLERequestContext& ctx);
+ void GetLoadState(HLERequestContext& ctx);
+ void GetSize(HLERequestContext& ctx);
+ void GetSharedMemoryAddressOffset(HLERequestContext& ctx);
+ void GetSharedMemoryNativeHandle(HLERequestContext& ctx);
+ void GetSharedFontInOrderOfPriority(HLERequestContext& ctx);
struct Impl;
std::unique_ptr<Impl> impl;
diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp
index f59a1a63d..376067a95 100644
--- a/src/core/hle/service/ns/ns.cpp
+++ b/src/core/hle/service/ns/ns.cpp
@@ -7,13 +7,14 @@
#include "core/file_sys/control_metadata.h"
#include "core/file_sys/patch_manager.h"
#include "core/file_sys/vfs.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/glue/glue_manager.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ns/errors.h"
#include "core/hle/service/ns/iplatform_service_manager.h"
#include "core/hle/service/ns/language.h"
#include "core/hle/service/ns/ns.h"
#include "core/hle/service/ns/pdm_qry.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/set/set.h"
namespace Service::NS {
@@ -159,6 +160,8 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
{606, nullptr, "GetContentMetaStorage"},
{607, nullptr, "ListAvailableAddOnContent"},
{609, nullptr, "ListAvailabilityAssuredAddOnContent"},
+ {610, nullptr, "GetInstalledContentMetaStorage"},
+ {611, nullptr, "PrepareAddOnContent"},
{700, nullptr, "PushDownloadTaskList"},
{701, nullptr, "ClearTaskStatusList"},
{702, nullptr, "RequestDownloadTaskList"},
@@ -228,6 +231,7 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
{1900, nullptr, "IsActiveAccount"},
{1901, nullptr, "RequestDownloadApplicationPrepurchasedRights"},
{1902, nullptr, "GetApplicationTicketInfo"},
+ {1903, nullptr, "RequestDownloadApplicationPrepurchasedRightsForAccount"},
{2000, nullptr, "GetSystemDeliveryInfo"},
{2001, nullptr, "SelectLatestSystemDeliveryInfo"},
{2002, nullptr, "VerifyDeliveryProtocolVersion"},
@@ -276,8 +280,11 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
{2352, nullptr, "RequestResolveNoDownloadRightsError"},
{2353, nullptr, "GetApplicationDownloadTaskInfo"},
{2354, nullptr, "PrioritizeApplicationBackgroundTask"},
- {2355, nullptr, "Unknown2355"},
- {2356, nullptr, "Unknown2356"},
+ {2355, nullptr, "PreferStorageEfficientUpdate"},
+ {2356, nullptr, "RequestStorageEfficientUpdatePreferable"},
+ {2357, nullptr, "EnableMultiCoreDownload"},
+ {2358, nullptr, "DisableMultiCoreDownload"},
+ {2359, nullptr, "IsMultiCoreDownloadEnabled"},
{2400, nullptr, "GetPromotionInfo"},
{2401, nullptr, "CountPromotionInfo"},
{2402, nullptr, "ListPromotionInfo"},
@@ -295,6 +302,7 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
{2519, nullptr, "IsQualificationTransitionSupported"},
{2520, nullptr, "IsQualificationTransitionSupportedByProcessId"},
{2521, nullptr, "GetRightsUserChangedEvent"},
+ {2522, nullptr, "IsRomRedirectionAvailable"},
{2800, nullptr, "GetApplicationIdOfPreomia"},
{3000, nullptr, "RegisterDeviceLockKey"},
{3001, nullptr, "UnregisterDeviceLockKey"},
@@ -311,6 +319,7 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
{3012, nullptr, "IsApplicationTitleHidden"},
{3013, nullptr, "IsGameCardEnabled"},
{3014, nullptr, "IsLocalContentShareEnabled"},
+ {3050, nullptr, "ListAssignELicenseTaskResult"},
{9999, nullptr, "GetApplicationCertificate"},
};
// clang-format on
@@ -320,7 +329,7 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_
IApplicationManagerInterface::~IApplicationManagerInterface() = default;
-void IApplicationManagerInterface::GetApplicationControlData(Kernel::HLERequestContext& ctx) {
+void IApplicationManagerInterface::GetApplicationControlData(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto flag = rp.PopRaw<u64>();
LOG_DEBUG(Service_NS, "called with flag={:016X}", flag);
@@ -379,7 +388,7 @@ void IApplicationManagerInterface::GetApplicationControlData(Kernel::HLERequestC
rb.Push<u32>(static_cast<u32>(out.size()));
}
-void IApplicationManagerInterface::GetApplicationDesiredLanguage(Kernel::HLERequestContext& ctx) {
+void IApplicationManagerInterface::GetApplicationDesiredLanguage(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto supported_languages = rp.Pop<u32>();
@@ -407,14 +416,14 @@ ResultVal<u8> IApplicationManagerInterface::GetApplicationDesiredLanguage(
if (application_language == std::nullopt) {
LOG_ERROR(Service_NS, "Could not convert application language! language_code={}",
language_code);
- return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
+ return Service::NS::ResultApplicationLanguageNotFound;
}
const auto priority_list = GetApplicationLanguagePriorityList(*application_language);
if (!priority_list) {
LOG_ERROR(Service_NS,
"Could not find application language priorities! application_language={}",
*application_language);
- return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
+ return Service::NS::ResultApplicationLanguageNotFound;
}
// Try to find a valid language.
@@ -427,11 +436,11 @@ ResultVal<u8> IApplicationManagerInterface::GetApplicationDesiredLanguage(
LOG_ERROR(Service_NS, "Could not find a valid language! supported_languages={:08X}",
supported_languages);
- return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
+ return Service::NS::ResultApplicationLanguageNotFound;
}
void IApplicationManagerInterface::ConvertApplicationLanguageToLanguageCode(
- Kernel::HLERequestContext& ctx) {
+ HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto application_language = rp.Pop<u8>();
@@ -452,7 +461,7 @@ ResultVal<u64> IApplicationManagerInterface::ConvertApplicationLanguageToLanguag
ConvertToLanguageCode(static_cast<ApplicationLanguage>(application_language));
if (language_code == std::nullopt) {
LOG_ERROR(Service_NS, "Language not found! application_language={}", application_language);
- return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
+ return Service::NS::ResultApplicationLanguageNotFound;
}
return static_cast<u64>(*language_code);
@@ -595,8 +604,7 @@ IReadOnlyApplicationControlDataInterface::IReadOnlyApplicationControlDataInterfa
IReadOnlyApplicationControlDataInterface::~IReadOnlyApplicationControlDataInterface() = default;
-void IReadOnlyApplicationControlDataInterface::GetApplicationControlData(
- Kernel::HLERequestContext& ctx) {
+void IReadOnlyApplicationControlDataInterface::GetApplicationControlData(HLERequestContext& ctx) {
enum class ApplicationControlSource : u8 {
CacheOnly,
Storage,
@@ -744,7 +752,7 @@ public:
}
private:
- void OpenSystemUpdateControl(Kernel::HLERequestContext& ctx) {
+ void OpenSystemUpdateControl(HLERequestContext& ctx) {
LOG_DEBUG(Service_NS, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -768,7 +776,7 @@ public:
}
private:
- void NeedsUpdateVulnerability(Kernel::HLERequestContext& ctx) {
+ void NeedsUpdateVulnerability(HLERequestContext& ctx) {
LOG_WARNING(Service_NS, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -777,23 +785,26 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
-
- std::make_shared<NS>("ns:am2", system)->InstallAsService(service_manager);
- std::make_shared<NS>("ns:ec", system)->InstallAsService(service_manager);
- std::make_shared<NS>("ns:rid", system)->InstallAsService(service_manager);
- std::make_shared<NS>("ns:rt", system)->InstallAsService(service_manager);
- std::make_shared<NS>("ns:web", system)->InstallAsService(service_manager);
- std::make_shared<NS>("ns:ro", system)->InstallAsService(service_manager);
-
- std::make_shared<NS_DEV>(system)->InstallAsService(service_manager);
- std::make_shared<NS_SU>(system)->InstallAsService(service_manager);
- std::make_shared<NS_VM>(system)->InstallAsService(service_manager);
-
- std::make_shared<PDM_QRY>(system)->InstallAsService(service_manager);
-
- std::make_shared<IPlatformServiceManager>(system, "pl:s")->InstallAsService(service_manager);
- std::make_shared<IPlatformServiceManager>(system, "pl:u")->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("ns:am2", std::make_shared<NS>("ns:am2", system));
+ server_manager->RegisterNamedService("ns:ec", std::make_shared<NS>("ns:ec", system));
+ server_manager->RegisterNamedService("ns:rid", std::make_shared<NS>("ns:rid", system));
+ server_manager->RegisterNamedService("ns:rt", std::make_shared<NS>("ns:rt", system));
+ server_manager->RegisterNamedService("ns:web", std::make_shared<NS>("ns:web", system));
+ server_manager->RegisterNamedService("ns:ro", std::make_shared<NS>("ns:ro", system));
+
+ server_manager->RegisterNamedService("ns:dev", std::make_shared<NS_DEV>(system));
+ server_manager->RegisterNamedService("ns:su", std::make_shared<NS_SU>(system));
+ server_manager->RegisterNamedService("ns:vm", std::make_shared<NS_VM>(system));
+ server_manager->RegisterNamedService("pdm:qry", std::make_shared<PDM_QRY>(system));
+
+ server_manager->RegisterNamedService("pl:s",
+ std::make_shared<IPlatformServiceManager>(system, "pl:s"));
+ server_manager->RegisterNamedService("pl:u",
+ std::make_shared<IPlatformServiceManager>(system, "pl:u"));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::NS
diff --git a/src/core/hle/service/ns/ns.h b/src/core/hle/service/ns/ns.h
index 9c18e935c..203388e1f 100644
--- a/src/core/hle/service/ns/ns.h
+++ b/src/core/hle/service/ns/ns.h
@@ -32,9 +32,9 @@ public:
ResultVal<u64> ConvertApplicationLanguageToLanguageCode(u8 application_language);
private:
- void GetApplicationControlData(Kernel::HLERequestContext& ctx);
- void GetApplicationDesiredLanguage(Kernel::HLERequestContext& ctx);
- void ConvertApplicationLanguageToLanguageCode(Kernel::HLERequestContext& ctx);
+ void GetApplicationControlData(HLERequestContext& ctx);
+ void GetApplicationDesiredLanguage(HLERequestContext& ctx);
+ void ConvertApplicationLanguageToLanguageCode(HLERequestContext& ctx);
};
class IApplicationVersionInterface final : public ServiceFramework<IApplicationVersionInterface> {
@@ -80,7 +80,7 @@ public:
~IReadOnlyApplicationControlDataInterface() override;
private:
- void GetApplicationControlData(Kernel::HLERequestContext& ctx);
+ void GetApplicationControlData(HLERequestContext& ctx);
};
class NS final : public ServiceFramework<NS> {
@@ -92,7 +92,7 @@ public:
private:
template <typename T, typename... Args>
- void PushInterface(Kernel::HLERequestContext& ctx) {
+ void PushInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NS, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -100,7 +100,7 @@ private:
rb.PushIpcInterface<T>(system);
}
- void PushIApplicationManagerInterface(Kernel::HLERequestContext& ctx) {
+ void PushIApplicationManagerInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NS, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -110,15 +110,14 @@ private:
template <typename T, typename... Args>
std::shared_ptr<T> GetInterface(Args&&... args) const {
- static_assert(std::is_base_of_v<Kernel::SessionRequestHandler, T>,
+ static_assert(std::is_base_of_v<SessionRequestHandler, T>,
"Not a base of ServiceFrameworkBase");
return std::make_shared<T>(std::forward<Args>(args)...);
}
};
-/// Registers all NS services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace NS
} // namespace Service
diff --git a/src/core/hle/service/ns/pdm_qry.cpp b/src/core/hle/service/ns/pdm_qry.cpp
index aac8f573f..ce0ee30e0 100644
--- a/src/core/hle/service/ns/pdm_qry.cpp
+++ b/src/core/hle/service/ns/pdm_qry.cpp
@@ -5,7 +5,7 @@
#include "common/logging/log.h"
#include "common/uuid.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ns/pdm_qry.h"
#include "core/hle/service/service.h"
@@ -42,7 +42,7 @@ PDM_QRY::PDM_QRY(Core::System& system_) : ServiceFramework{system_, "pdm:qry"} {
PDM_QRY::~PDM_QRY() = default;
-void PDM_QRY::QueryPlayStatisticsByApplicationIdAndUserAccountId(Kernel::HLERequestContext& ctx) {
+void PDM_QRY::QueryPlayStatisticsByApplicationIdAndUserAccountId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto unknown = rp.Pop<bool>();
rp.Pop<u8>(); // Padding
diff --git a/src/core/hle/service/ns/pdm_qry.h b/src/core/hle/service/ns/pdm_qry.h
index abcc3bef3..c98e01660 100644
--- a/src/core/hle/service/ns/pdm_qry.h
+++ b/src/core/hle/service/ns/pdm_qry.h
@@ -26,7 +26,7 @@ public:
~PDM_QRY() override;
private:
- void QueryPlayStatisticsByApplicationIdAndUserAccountId(Kernel::HLERequestContext& ctx);
+ void QueryPlayStatisticsByApplicationIdAndUserAccountId(HLERequestContext& ctx);
};
} // namespace Service::NS
diff --git a/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp b/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp
index aba51d280..c4c4c2593 100644
--- a/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp
+++ b/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp
@@ -64,7 +64,7 @@ void SyncpointManager::FreeSyncpoint(u32 id) {
}
bool SyncpointManager::IsSyncpointAllocated(u32 id) const {
- return (id <= SyncpointCount) && syncpoints[id].reserved;
+ return (id < SyncpointCount) && syncpoints[id].reserved;
}
bool SyncpointManager::HasSyncpointExpired(u32 id, u32 threshold) const {
diff --git a/src/core/hle/service/nvdrv/core/syncpoint_manager.h b/src/core/hle/service/nvdrv/core/syncpoint_manager.h
index 4f2cefae5..7728ff596 100644
--- a/src/core/hle/service/nvdrv/core/syncpoint_manager.h
+++ b/src/core/hle/service/nvdrv/core/syncpoint_manager.h
@@ -124,7 +124,7 @@ private:
//!< value
};
- constexpr static std::size_t SyncpointCount{192};
+ static constexpr std::size_t SyncpointCount{192};
std::array<SyncpointInfo, SyncpointCount> syncpoints{};
std::mutex reservation_lock;
diff --git a/src/core/hle/service/nvdrv/devices/nvdevice.h b/src/core/hle/service/nvdrv/devices/nvdevice.h
index 204b0e757..a04538d5d 100644
--- a/src/core/hle/service/nvdrv/devices/nvdevice.h
+++ b/src/core/hle/service/nvdrv/devices/nvdevice.h
@@ -3,7 +3,9 @@
#pragma once
+#include <span>
#include <vector>
+
#include "common/common_types.h"
#include "core/hle/service/nvdrv/nvdata.h"
@@ -31,8 +33,8 @@ public:
* @param output A buffer where the output data will be written to.
* @returns The result code of the ioctl.
*/
- virtual NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) = 0;
+ virtual NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) = 0;
/**
* Handles an ioctl2 request.
@@ -42,8 +44,8 @@ public:
* @param output A buffer where the output data will be written to.
* @returns The result code of the ioctl.
*/
- virtual NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) = 0;
+ virtual NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) = 0;
/**
* Handles an ioctl3 request.
@@ -53,11 +55,11 @@ public:
* @param inline_output A buffer where the inlined output data will be written to.
* @returns The result code of the ioctl.
*/
- virtual NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) = 0;
+ virtual NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) = 0;
/**
- * Called once a device is openned
+ * Called once a device is opened
* @param fd The device fd
*/
virtual void OnOpen(DeviceFD fd) = 0;
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
index 4122fc98d..05a43d8dc 100644
--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
@@ -17,20 +17,20 @@ nvdisp_disp0::nvdisp_disp0(Core::System& system_, NvCore::Container& core)
: nvdevice{system_}, container{core}, nvmap{core.GetNvMapFile()} {}
nvdisp_disp0::~nvdisp_disp0() = default;
-NvResult nvdisp_disp0::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvdisp_disp0::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvdisp_disp0::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvdisp_disp0::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvdisp_disp0::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvdisp_disp0::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
@@ -51,8 +51,8 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, android::PixelFormat form
stride, format, transform, crop_rect};
system.GPU().RequestSwapBuffers(&framebuffer, fences, num_fences);
- system.GetPerfStats().EndSystemFrame();
system.SpeedLimiter().DoSpeedLimiting(system.CoreTiming().GetGlobalTimeUs());
+ system.GetPerfStats().EndSystemFrame();
system.GetPerfStats().BeginSystemFrame();
}
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h
index 04217ab12..daee05fe8 100644
--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h
+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.h
@@ -8,8 +8,8 @@
#include "common/common_types.h"
#include "common/math_util.h"
#include "core/hle/service/nvdrv/devices/nvdevice.h"
-#include "core/hle/service/nvflinger/buffer_transform_flags.h"
-#include "core/hle/service/nvflinger/pixel_format.h"
+#include "core/hle/service/nvnflinger/buffer_transform_flags.h"
+#include "core/hle/service/nvnflinger/pixel_format.h"
namespace Service::Nvidia::NvCore {
class Container;
@@ -25,12 +25,12 @@ public:
explicit nvdisp_disp0(Core::System& system_, NvCore::Container& core);
~nvdisp_disp0() override;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
index b635e6ed1..07e570a9f 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
@@ -27,8 +27,8 @@ nvhost_as_gpu::nvhost_as_gpu(Core::System& system_, Module& module_, NvCore::Con
nvhost_as_gpu::~nvhost_as_gpu() = default;
-NvResult nvhost_as_gpu::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_as_gpu::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 'A':
switch (command.cmd) {
@@ -60,14 +60,14 @@ NvResult nvhost_as_gpu::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>
return NvResult::NotImplemented;
}
-NvResult nvhost_as_gpu::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvhost_as_gpu::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvhost_as_gpu::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) {
switch (command.group) {
case 'A':
switch (command.cmd) {
@@ -87,7 +87,7 @@ NvResult nvhost_as_gpu::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>
void nvhost_as_gpu::OnOpen(DeviceFD fd) {}
void nvhost_as_gpu::OnClose(DeviceFD fd) {}
-NvResult nvhost_as_gpu::AllocAsEx(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::AllocAsEx(std::span<const u8> input, std::span<u8> output) {
IoctlAllocAsEx params{};
std::memcpy(&params, input.data(), input.size());
@@ -141,7 +141,7 @@ NvResult nvhost_as_gpu::AllocAsEx(const std::vector<u8>& input, std::vector<u8>&
return NvResult::Success;
}
-NvResult nvhost_as_gpu::AllocateSpace(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::AllocateSpace(std::span<const u8> input, std::span<u8> output) {
IoctlAllocSpace params{};
std::memcpy(&params, input.data(), input.size());
@@ -220,7 +220,7 @@ void nvhost_as_gpu::FreeMappingLocked(u64 offset) {
mapping_map.erase(offset);
}
-NvResult nvhost_as_gpu::FreeSpace(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::FreeSpace(std::span<const u8> input, std::span<u8> output) {
IoctlFreeSpace params{};
std::memcpy(&params, input.data(), input.size());
@@ -266,15 +266,14 @@ NvResult nvhost_as_gpu::FreeSpace(const std::vector<u8>& input, std::vector<u8>&
return NvResult::Success;
}
-NvResult nvhost_as_gpu::Remap(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::Remap(std::span<const u8> input, std::span<u8> output) {
const auto num_entries = input.size() / sizeof(IoctlRemapEntry);
LOG_DEBUG(Service_NVDRV, "called, num_entries=0x{:X}", num_entries);
- std::vector<IoctlRemapEntry> entries(num_entries);
- std::memcpy(entries.data(), input.data(), input.size());
-
std::scoped_lock lock(mutex);
+ entries.resize_destructive(num_entries);
+ std::memcpy(entries.data(), input.data(), input.size());
if (!vm.initialised) {
return NvResult::BadValue;
@@ -320,7 +319,7 @@ NvResult nvhost_as_gpu::Remap(const std::vector<u8>& input, std::vector<u8>& out
return NvResult::Success;
}
-NvResult nvhost_as_gpu::MapBufferEx(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::MapBufferEx(std::span<const u8> input, std::span<u8> output) {
IoctlMapBufferEx params{};
std::memcpy(&params, input.data(), input.size());
@@ -424,7 +423,7 @@ NvResult nvhost_as_gpu::MapBufferEx(const std::vector<u8>& input, std::vector<u8
return NvResult::Success;
}
-NvResult nvhost_as_gpu::UnmapBuffer(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::UnmapBuffer(std::span<const u8> input, std::span<u8> output) {
IoctlUnmapBuffer params{};
std::memcpy(&params, input.data(), input.size());
@@ -463,7 +462,7 @@ NvResult nvhost_as_gpu::UnmapBuffer(const std::vector<u8>& input, std::vector<u8
return NvResult::Success;
}
-NvResult nvhost_as_gpu::BindChannel(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::BindChannel(std::span<const u8> input, std::span<u8> output) {
IoctlBindChannel params{};
std::memcpy(&params, input.data(), input.size());
LOG_DEBUG(Service_NVDRV, "called, fd={:X}", params.fd);
@@ -492,7 +491,7 @@ void nvhost_as_gpu::GetVARegionsImpl(IoctlGetVaRegions& params) {
};
}
-NvResult nvhost_as_gpu::GetVARegions(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_as_gpu::GetVARegions(std::span<const u8> input, std::span<u8> output) {
IoctlGetVaRegions params{};
std::memcpy(&params, input.data(), input.size());
@@ -511,8 +510,8 @@ NvResult nvhost_as_gpu::GetVARegions(const std::vector<u8>& input, std::vector<u
return NvResult::Success;
}
-NvResult nvhost_as_gpu::GetVARegions(const std::vector<u8>& input, std::vector<u8>& output,
- std::vector<u8>& inline_output) {
+NvResult nvhost_as_gpu::GetVARegions(std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) {
IoctlGetVaRegions params{};
std::memcpy(&params, input.data(), input.size());
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
index 86fe71c75..2af3e1260 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
@@ -15,6 +15,7 @@
#include "common/address_space.h"
#include "common/common_funcs.h"
#include "common/common_types.h"
+#include "common/scratch_buffer.h"
#include "common/swap.h"
#include "core/hle/service/nvdrv/core/nvmap.h"
#include "core/hle/service/nvdrv/devices/nvdevice.h"
@@ -47,12 +48,12 @@ public:
explicit nvhost_as_gpu(Core::System& system_, Module& module, NvCore::Container& core);
~nvhost_as_gpu() override;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
@@ -138,18 +139,18 @@ private:
static_assert(sizeof(IoctlGetVaRegions) == 16 + sizeof(VaRegion) * 2,
"IoctlGetVaRegions is incorrect size");
- NvResult AllocAsEx(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult AllocateSpace(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult Remap(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult MapBufferEx(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult UnmapBuffer(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult FreeSpace(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult BindChannel(const std::vector<u8>& input, std::vector<u8>& output);
+ NvResult AllocAsEx(std::span<const u8> input, std::span<u8> output);
+ NvResult AllocateSpace(std::span<const u8> input, std::span<u8> output);
+ NvResult Remap(std::span<const u8> input, std::span<u8> output);
+ NvResult MapBufferEx(std::span<const u8> input, std::span<u8> output);
+ NvResult UnmapBuffer(std::span<const u8> input, std::span<u8> output);
+ NvResult FreeSpace(std::span<const u8> input, std::span<u8> output);
+ NvResult BindChannel(std::span<const u8> input, std::span<u8> output);
void GetVARegionsImpl(IoctlGetVaRegions& params);
- NvResult GetVARegions(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult GetVARegions(const std::vector<u8>& input, std::vector<u8>& output,
- std::vector<u8>& inline_output);
+ NvResult GetVARegions(std::span<const u8> input, std::span<u8> output);
+ NvResult GetVARegions(std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output);
void FreeMappingLocked(u64 offset);
@@ -212,6 +213,7 @@ private:
bool initialised{};
} vm;
std::shared_ptr<Tegra::MemoryManager> gmmu;
+ Common::ScratchBuffer<IoctlRemapEntry> entries;
// s32 channel{};
// u32 big_page_size{VM::DEFAULT_BIG_PAGE_SIZE};
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
index eee11fab8..4d55554b4 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
@@ -34,8 +34,8 @@ nvhost_ctrl::~nvhost_ctrl() {
}
}
-NvResult nvhost_ctrl::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_ctrl::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 0x0:
switch (command.cmd) {
@@ -63,14 +63,14 @@ NvResult nvhost_ctrl::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>&
return NvResult::NotImplemented;
}
-NvResult nvhost_ctrl::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvhost_ctrl::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvhost_ctrl::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_outpu) {
+NvResult nvhost_ctrl::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_outpu) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
@@ -79,7 +79,7 @@ void nvhost_ctrl::OnOpen(DeviceFD fd) {}
void nvhost_ctrl::OnClose(DeviceFD fd) {}
-NvResult nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl::NvOsGetConfigU32(std::span<const u8> input, std::span<u8> output) {
IocGetConfigParams params{};
std::memcpy(&params, input.data(), sizeof(params));
LOG_TRACE(Service_NVDRV, "called, setting={}!{}", params.domain_str.data(),
@@ -87,7 +87,7 @@ NvResult nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector
return NvResult::ConfigVarNotFound; // Returns error on production mode
}
-NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output,
+NvResult nvhost_ctrl::IocCtrlEventWait(std::span<const u8> input, std::span<u8> output,
bool is_allocation) {
IocCtrlEventWaitParams params{};
std::memcpy(&params, input.data(), sizeof(params));
@@ -150,9 +150,9 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
const auto check_failing = [&]() {
if (events[slot].fails > 2) {
{
- auto lk = system.StallProcesses();
+ auto lk = system.StallApplication();
host1x_syncpoint_manager.WaitHost(fence_id, target_value);
- system.UnstallProcesses();
+ system.UnstallApplication();
}
params.value.raw = target_value;
return true;
@@ -231,7 +231,7 @@ NvResult nvhost_ctrl::FreeEvent(u32 slot) {
return NvResult::Success;
}
-NvResult nvhost_ctrl::IocCtrlEventRegister(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl::IocCtrlEventRegister(std::span<const u8> input, std::span<u8> output) {
IocCtrlEventRegisterParams params{};
std::memcpy(&params, input.data(), sizeof(params));
const u32 event_id = params.user_event_id;
@@ -252,8 +252,7 @@ NvResult nvhost_ctrl::IocCtrlEventRegister(const std::vector<u8>& input, std::ve
return NvResult::Success;
}
-NvResult nvhost_ctrl::IocCtrlEventUnregister(const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_ctrl::IocCtrlEventUnregister(std::span<const u8> input, std::span<u8> output) {
IocCtrlEventUnregisterParams params{};
std::memcpy(&params, input.data(), sizeof(params));
const u32 event_id = params.user_event_id & 0x00FF;
@@ -263,8 +262,7 @@ NvResult nvhost_ctrl::IocCtrlEventUnregister(const std::vector<u8>& input,
return FreeEvent(event_id);
}
-NvResult nvhost_ctrl::IocCtrlEventUnregisterBatch(const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_ctrl::IocCtrlEventUnregisterBatch(std::span<const u8> input, std::span<u8> output) {
IocCtrlEventUnregisterBatchParams params{};
std::memcpy(&params, input.data(), sizeof(params));
u64 event_mask = params.user_events;
@@ -282,7 +280,7 @@ NvResult nvhost_ctrl::IocCtrlEventUnregisterBatch(const std::vector<u8>& input,
return NvResult::Success;
}
-NvResult nvhost_ctrl::IocCtrlClearEventWait(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl::IocCtrlClearEventWait(std::span<const u8> input, std::span<u8> output) {
IocCtrlEventClearParams params{};
std::memcpy(&params, input.data(), sizeof(params));
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
index 0b56d7070..2efed4862 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.h
@@ -25,12 +25,12 @@ public:
NvCore::Container& core);
~nvhost_ctrl() override;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
@@ -186,13 +186,12 @@ private:
static_assert(sizeof(IocCtrlEventUnregisterBatchParams) == 8,
"IocCtrlEventKill is incorrect size");
- NvResult NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output,
- bool is_allocation);
- NvResult IocCtrlEventRegister(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocCtrlEventUnregister(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocCtrlEventUnregisterBatch(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocCtrlClearEventWait(const std::vector<u8>& input, std::vector<u8>& output);
+ NvResult NvOsGetConfigU32(std::span<const u8> input, std::span<u8> output);
+ NvResult IocCtrlEventWait(std::span<const u8> input, std::span<u8> output, bool is_allocation);
+ NvResult IocCtrlEventRegister(std::span<const u8> input, std::span<u8> output);
+ NvResult IocCtrlEventUnregister(std::span<const u8> input, std::span<u8> output);
+ NvResult IocCtrlEventUnregisterBatch(std::span<const u8> input, std::span<u8> output);
+ NvResult IocCtrlClearEventWait(std::span<const u8> input, std::span<u8> output);
NvResult FreeEvent(u32 slot);
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
index b97813fbc..6081d92e9 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
@@ -21,8 +21,8 @@ nvhost_ctrl_gpu::~nvhost_ctrl_gpu() {
events_interface.FreeEvent(unknown_event);
}
-NvResult nvhost_ctrl_gpu::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 'G':
switch (command.cmd) {
@@ -53,14 +53,14 @@ NvResult nvhost_ctrl_gpu::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u
return NvResult::NotImplemented;
}
-NvResult nvhost_ctrl_gpu::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvhost_ctrl_gpu::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvhost_ctrl_gpu::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) {
switch (command.group) {
case 'G':
switch (command.cmd) {
@@ -82,8 +82,7 @@ NvResult nvhost_ctrl_gpu::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u
void nvhost_ctrl_gpu::OnOpen(DeviceFD fd) {}
void nvhost_ctrl_gpu::OnClose(DeviceFD fd) {}
-NvResult nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::GetCharacteristics(std::span<const u8> input, std::span<u8> output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlCharacteristics params{};
std::memcpy(&params, input.data(), input.size());
@@ -128,8 +127,8 @@ NvResult nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input,
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vector<u8>& output,
- std::vector<u8>& inline_output) {
+NvResult nvhost_ctrl_gpu::GetCharacteristics(std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlCharacteristics params{};
std::memcpy(&params, input.data(), input.size());
@@ -176,7 +175,7 @@ NvResult nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::GetTPCMasks(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::GetTPCMasks(std::span<const u8> input, std::span<u8> output) {
IoctlGpuGetTpcMasksArgs params{};
std::memcpy(&params, input.data(), input.size());
LOG_DEBUG(Service_NVDRV, "called, mask_buffer_size=0x{:X}", params.mask_buffer_size);
@@ -187,8 +186,8 @@ NvResult nvhost_ctrl_gpu::GetTPCMasks(const std::vector<u8>& input, std::vector<
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::GetTPCMasks(const std::vector<u8>& input, std::vector<u8>& output,
- std::vector<u8>& inline_output) {
+NvResult nvhost_ctrl_gpu::GetTPCMasks(std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) {
IoctlGpuGetTpcMasksArgs params{};
std::memcpy(&params, input.data(), input.size());
LOG_DEBUG(Service_NVDRV, "called, mask_buffer_size=0x{:X}", params.mask_buffer_size);
@@ -200,7 +199,7 @@ NvResult nvhost_ctrl_gpu::GetTPCMasks(const std::vector<u8>& input, std::vector<
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::GetActiveSlotMask(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::GetActiveSlotMask(std::span<const u8> input, std::span<u8> output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlActiveSlotMask params{};
@@ -213,7 +212,7 @@ NvResult nvhost_ctrl_gpu::GetActiveSlotMask(const std::vector<u8>& input, std::v
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::ZCullGetCtxSize(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::ZCullGetCtxSize(std::span<const u8> input, std::span<u8> output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlZcullGetCtxSize params{};
@@ -225,7 +224,7 @@ NvResult nvhost_ctrl_gpu::ZCullGetCtxSize(const std::vector<u8>& input, std::vec
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::ZCullGetInfo(std::span<const u8> input, std::span<u8> output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlNvgpuGpuZcullGetInfoArgs params{};
@@ -248,7 +247,7 @@ NvResult nvhost_ctrl_gpu::ZCullGetInfo(const std::vector<u8>& input, std::vector
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::ZBCSetTable(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::ZBCSetTable(std::span<const u8> input, std::span<u8> output) {
LOG_WARNING(Service_NVDRV, "(STUBBED) called");
IoctlZbcSetTable params{};
@@ -264,7 +263,7 @@ NvResult nvhost_ctrl_gpu::ZBCSetTable(const std::vector<u8>& input, std::vector<
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::ZBCQueryTable(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::ZBCQueryTable(std::span<const u8> input, std::span<u8> output) {
LOG_WARNING(Service_NVDRV, "(STUBBED) called");
IoctlZbcQueryTable params{};
@@ -274,7 +273,7 @@ NvResult nvhost_ctrl_gpu::ZBCQueryTable(const std::vector<u8>& input, std::vecto
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::FlushL2(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::FlushL2(std::span<const u8> input, std::span<u8> output) {
LOG_WARNING(Service_NVDRV, "(STUBBED) called");
IoctlFlushL2 params{};
@@ -284,7 +283,7 @@ NvResult nvhost_ctrl_gpu::FlushL2(const std::vector<u8>& input, std::vector<u8>&
return NvResult::Success;
}
-NvResult nvhost_ctrl_gpu::GetGpuTime(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_ctrl_gpu::GetGpuTime(std::span<const u8> input, std::span<u8> output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlGetGpuTime params{};
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
index 1e8f254e2..97995551c 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.h
@@ -21,12 +21,12 @@ public:
explicit nvhost_ctrl_gpu(Core::System& system_, EventInterface& events_interface_);
~nvhost_ctrl_gpu() override;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
@@ -151,21 +151,21 @@ private:
};
static_assert(sizeof(IoctlGetGpuTime) == 0x10, "IoctlGetGpuTime is incorrect size");
- NvResult GetCharacteristics(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult GetCharacteristics(const std::vector<u8>& input, std::vector<u8>& output,
- std::vector<u8>& inline_output);
-
- NvResult GetTPCMasks(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult GetTPCMasks(const std::vector<u8>& input, std::vector<u8>& output,
- std::vector<u8>& inline_output);
-
- NvResult GetActiveSlotMask(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult ZCullGetCtxSize(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult ZCullGetInfo(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult ZBCSetTable(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult ZBCQueryTable(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult FlushL2(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult GetGpuTime(const std::vector<u8>& input, std::vector<u8>& output);
+ NvResult GetCharacteristics(std::span<const u8> input, std::span<u8> output);
+ NvResult GetCharacteristics(std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output);
+
+ NvResult GetTPCMasks(std::span<const u8> input, std::span<u8> output);
+ NvResult GetTPCMasks(std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output);
+
+ NvResult GetActiveSlotMask(std::span<const u8> input, std::span<u8> output);
+ NvResult ZCullGetCtxSize(std::span<const u8> input, std::span<u8> output);
+ NvResult ZCullGetInfo(std::span<const u8> input, std::span<u8> output);
+ NvResult ZBCSetTable(std::span<const u8> input, std::span<u8> output);
+ NvResult ZBCQueryTable(std::span<const u8> input, std::span<u8> output);
+ NvResult FlushL2(std::span<const u8> input, std::span<u8> output);
+ NvResult GetGpuTime(std::span<const u8> input, std::span<u8> output);
EventInterface& events_interface;
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
index e123564c6..46a25fcab 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
@@ -46,8 +46,8 @@ nvhost_gpu::~nvhost_gpu() {
syncpoint_manager.FreeSyncpoint(channel_syncpoint);
}
-NvResult nvhost_gpu::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_gpu::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 0x0:
switch (command.cmd) {
@@ -98,8 +98,8 @@ NvResult nvhost_gpu::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& i
return NvResult::NotImplemented;
};
-NvResult nvhost_gpu::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvhost_gpu::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
switch (command.group) {
case 'H':
switch (command.cmd) {
@@ -112,8 +112,8 @@ NvResult nvhost_gpu::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& i
return NvResult::NotImplemented;
}
-NvResult nvhost_gpu::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvhost_gpu::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
@@ -121,7 +121,7 @@ NvResult nvhost_gpu::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& i
void nvhost_gpu::OnOpen(DeviceFD fd) {}
void nvhost_gpu::OnClose(DeviceFD fd) {}
-NvResult nvhost_gpu::SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::SetNVMAPfd(std::span<const u8> input, std::span<u8> output) {
IoctlSetNvmapFD params{};
std::memcpy(&params, input.data(), input.size());
LOG_DEBUG(Service_NVDRV, "called, fd={}", params.nvmap_fd);
@@ -130,7 +130,7 @@ NvResult nvhost_gpu::SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& o
return NvResult::Success;
}
-NvResult nvhost_gpu::SetClientData(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::SetClientData(std::span<const u8> input, std::span<u8> output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlClientData params{};
@@ -139,7 +139,7 @@ NvResult nvhost_gpu::SetClientData(const std::vector<u8>& input, std::vector<u8>
return NvResult::Success;
}
-NvResult nvhost_gpu::GetClientData(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::GetClientData(std::span<const u8> input, std::span<u8> output) {
LOG_DEBUG(Service_NVDRV, "called");
IoctlClientData params{};
@@ -149,7 +149,7 @@ NvResult nvhost_gpu::GetClientData(const std::vector<u8>& input, std::vector<u8>
return NvResult::Success;
}
-NvResult nvhost_gpu::ZCullBind(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::ZCullBind(std::span<const u8> input, std::span<u8> output) {
std::memcpy(&zcull_params, input.data(), input.size());
LOG_DEBUG(Service_NVDRV, "called, gpu_va={:X}, mode={:X}", zcull_params.gpu_va,
zcull_params.mode);
@@ -158,7 +158,7 @@ NvResult nvhost_gpu::ZCullBind(const std::vector<u8>& input, std::vector<u8>& ou
return NvResult::Success;
}
-NvResult nvhost_gpu::SetErrorNotifier(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::SetErrorNotifier(std::span<const u8> input, std::span<u8> output) {
IoctlSetErrorNotifier params{};
std::memcpy(&params, input.data(), input.size());
LOG_WARNING(Service_NVDRV, "(STUBBED) called, offset={:X}, size={:X}, mem={:X}", params.offset,
@@ -168,14 +168,14 @@ NvResult nvhost_gpu::SetErrorNotifier(const std::vector<u8>& input, std::vector<
return NvResult::Success;
}
-NvResult nvhost_gpu::SetChannelPriority(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::SetChannelPriority(std::span<const u8> input, std::span<u8> output) {
std::memcpy(&channel_priority, input.data(), input.size());
LOG_DEBUG(Service_NVDRV, "(STUBBED) called, priority={:X}", channel_priority);
return NvResult::Success;
}
-NvResult nvhost_gpu::AllocGPFIFOEx2(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::AllocGPFIFOEx2(std::span<const u8> input, std::span<u8> output) {
IoctlAllocGpfifoEx2 params{};
std::memcpy(&params, input.data(), input.size());
LOG_WARNING(Service_NVDRV,
@@ -197,7 +197,7 @@ NvResult nvhost_gpu::AllocGPFIFOEx2(const std::vector<u8>& input, std::vector<u8
return NvResult::Success;
}
-NvResult nvhost_gpu::AllocateObjectContext(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::AllocateObjectContext(std::span<const u8> input, std::span<u8> output) {
IoctlAllocObjCtx params{};
std::memcpy(&params, input.data(), input.size());
LOG_WARNING(Service_NVDRV, "(STUBBED) called, class_num={:X}, flags={:X}", params.class_num,
@@ -208,7 +208,8 @@ NvResult nvhost_gpu::AllocateObjectContext(const std::vector<u8>& input, std::ve
return NvResult::Success;
}
-static std::vector<Tegra::CommandHeader> BuildWaitCommandList(NvFence fence) {
+static boost::container::small_vector<Tegra::CommandHeader, 512> BuildWaitCommandList(
+ NvFence fence) {
return {
Tegra::BuildCommandHeader(Tegra::BufferMethods::SyncpointPayload, 1,
Tegra::SubmissionMode::Increasing),
@@ -219,35 +220,35 @@ static std::vector<Tegra::CommandHeader> BuildWaitCommandList(NvFence fence) {
};
}
-static std::vector<Tegra::CommandHeader> BuildIncrementCommandList(NvFence fence) {
- std::vector<Tegra::CommandHeader> result{
+static boost::container::small_vector<Tegra::CommandHeader, 512> BuildIncrementCommandList(
+ NvFence fence) {
+ boost::container::small_vector<Tegra::CommandHeader, 512> result{
Tegra::BuildCommandHeader(Tegra::BufferMethods::SyncpointPayload, 1,
Tegra::SubmissionMode::Increasing),
{}};
for (u32 count = 0; count < 2; ++count) {
- result.emplace_back(Tegra::BuildCommandHeader(Tegra::BufferMethods::SyncpointOperation, 1,
- Tegra::SubmissionMode::Increasing));
- result.emplace_back(
+ result.push_back(Tegra::BuildCommandHeader(Tegra::BufferMethods::SyncpointOperation, 1,
+ Tegra::SubmissionMode::Increasing));
+ result.push_back(
BuildFenceAction(Tegra::Engines::Puller::FenceOperation::Increment, fence.id));
}
return result;
}
-static std::vector<Tegra::CommandHeader> BuildIncrementWithWfiCommandList(NvFence fence) {
- std::vector<Tegra::CommandHeader> result{
+static boost::container::small_vector<Tegra::CommandHeader, 512> BuildIncrementWithWfiCommandList(
+ NvFence fence) {
+ boost::container::small_vector<Tegra::CommandHeader, 512> result{
Tegra::BuildCommandHeader(Tegra::BufferMethods::WaitForIdle, 1,
Tegra::SubmissionMode::Increasing),
{}};
- const std::vector<Tegra::CommandHeader> increment{BuildIncrementCommandList(fence)};
-
- result.insert(result.end(), increment.begin(), increment.end());
-
+ auto increment_list{BuildIncrementCommandList(fence)};
+ result.insert(result.end(), increment_list.begin(), increment_list.end());
return result;
}
-NvResult nvhost_gpu::SubmitGPFIFOImpl(IoctlSubmitGpfifo& params, std::vector<u8>& output,
+NvResult nvhost_gpu::SubmitGPFIFOImpl(IoctlSubmitGpfifo& params, std::span<u8> output,
Tegra::CommandList&& entries) {
LOG_TRACE(Service_NVDRV, "called, gpfifo={:X}, num_entries={:X}, flags={:X}", params.address,
params.num_entries, params.flags.raw);
@@ -293,7 +294,7 @@ NvResult nvhost_gpu::SubmitGPFIFOImpl(IoctlSubmitGpfifo& params, std::vector<u8>
return NvResult::Success;
}
-NvResult nvhost_gpu::SubmitGPFIFOBase(const std::vector<u8>& input, std::vector<u8>& output,
+NvResult nvhost_gpu::SubmitGPFIFOBase(std::span<const u8> input, std::span<u8> output,
bool kickoff) {
if (input.size() < sizeof(IoctlSubmitGpfifo)) {
UNIMPLEMENTED();
@@ -304,8 +305,8 @@ NvResult nvhost_gpu::SubmitGPFIFOBase(const std::vector<u8>& input, std::vector<
Tegra::CommandList entries(params.num_entries);
if (kickoff) {
- system.Memory().ReadBlock(params.address, entries.command_lists.data(),
- params.num_entries * sizeof(Tegra::CommandListHeader));
+ system.ApplicationMemory().ReadBlock(params.address, entries.command_lists.data(),
+ params.num_entries * sizeof(Tegra::CommandListHeader));
} else {
std::memcpy(entries.command_lists.data(), &input[sizeof(IoctlSubmitGpfifo)],
params.num_entries * sizeof(Tegra::CommandListHeader));
@@ -314,9 +315,8 @@ NvResult nvhost_gpu::SubmitGPFIFOBase(const std::vector<u8>& input, std::vector<
return SubmitGPFIFOImpl(params, output, std::move(entries));
}
-NvResult nvhost_gpu::SubmitGPFIFOBase(const std::vector<u8>& input,
- const std::vector<u8>& input_inline,
- std::vector<u8>& output) {
+NvResult nvhost_gpu::SubmitGPFIFOBase(std::span<const u8> input, std::span<const u8> input_inline,
+ std::span<u8> output) {
if (input.size() < sizeof(IoctlSubmitGpfifo)) {
UNIMPLEMENTED();
return NvResult::InvalidSize;
@@ -328,7 +328,7 @@ NvResult nvhost_gpu::SubmitGPFIFOBase(const std::vector<u8>& input,
return SubmitGPFIFOImpl(params, output, std::move(entries));
}
-NvResult nvhost_gpu::GetWaitbase(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::GetWaitbase(std::span<const u8> input, std::span<u8> output) {
IoctlGetWaitbase params{};
std::memcpy(&params, input.data(), sizeof(IoctlGetWaitbase));
LOG_INFO(Service_NVDRV, "called, unknown=0x{:X}", params.unknown);
@@ -338,7 +338,7 @@ NvResult nvhost_gpu::GetWaitbase(const std::vector<u8>& input, std::vector<u8>&
return NvResult::Success;
}
-NvResult nvhost_gpu::ChannelSetTimeout(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::ChannelSetTimeout(std::span<const u8> input, std::span<u8> output) {
IoctlChannelSetTimeout params{};
std::memcpy(&params, input.data(), sizeof(IoctlChannelSetTimeout));
LOG_INFO(Service_NVDRV, "called, timeout=0x{:X}", params.timeout);
@@ -346,7 +346,7 @@ NvResult nvhost_gpu::ChannelSetTimeout(const std::vector<u8>& input, std::vector
return NvResult::Success;
}
-NvResult nvhost_gpu::ChannelSetTimeslice(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_gpu::ChannelSetTimeslice(std::span<const u8> input, std::span<u8> output) {
IoctlSetTimeslice params{};
std::memcpy(&params, input.data(), sizeof(IoctlSetTimeslice));
LOG_INFO(Service_NVDRV, "called, timeslice=0x{:X}", params.timeslice);
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_gpu.h
index 1e4ecd55b..529c20526 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.h
@@ -40,12 +40,12 @@ public:
NvCore::Container& core);
~nvhost_gpu() override;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
@@ -186,23 +186,23 @@ private:
u32_le channel_priority{};
u32_le channel_timeslice{};
- NvResult SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult SetClientData(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult GetClientData(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult ZCullBind(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult SetErrorNotifier(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult SetChannelPriority(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult AllocGPFIFOEx2(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult AllocateObjectContext(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult SubmitGPFIFOImpl(IoctlSubmitGpfifo& params, std::vector<u8>& output,
+ NvResult SetNVMAPfd(std::span<const u8> input, std::span<u8> output);
+ NvResult SetClientData(std::span<const u8> input, std::span<u8> output);
+ NvResult GetClientData(std::span<const u8> input, std::span<u8> output);
+ NvResult ZCullBind(std::span<const u8> input, std::span<u8> output);
+ NvResult SetErrorNotifier(std::span<const u8> input, std::span<u8> output);
+ NvResult SetChannelPriority(std::span<const u8> input, std::span<u8> output);
+ NvResult AllocGPFIFOEx2(std::span<const u8> input, std::span<u8> output);
+ NvResult AllocateObjectContext(std::span<const u8> input, std::span<u8> output);
+ NvResult SubmitGPFIFOImpl(IoctlSubmitGpfifo& params, std::span<u8> output,
Tegra::CommandList&& entries);
- NvResult SubmitGPFIFOBase(const std::vector<u8>& input, std::vector<u8>& output,
+ NvResult SubmitGPFIFOBase(std::span<const u8> input, std::span<u8> output,
bool kickoff = false);
- NvResult SubmitGPFIFOBase(const std::vector<u8>& input, const std::vector<u8>& input_inline,
- std::vector<u8>& output);
- NvResult GetWaitbase(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult ChannelSetTimeout(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult ChannelSetTimeslice(const std::vector<u8>& input, std::vector<u8>& output);
+ NvResult SubmitGPFIFOBase(std::span<const u8> input, std::span<const u8> input_inline,
+ std::span<u8> output);
+ NvResult GetWaitbase(std::span<const u8> input, std::span<u8> output);
+ NvResult ChannelSetTimeout(std::span<const u8> input, std::span<u8> output);
+ NvResult ChannelSetTimeslice(std::span<const u8> input, std::span<u8> output);
EventInterface& events_interface;
NvCore::Container& core;
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
index 1703f9cc3..a174442a6 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
@@ -15,8 +15,8 @@ nvhost_nvdec::nvhost_nvdec(Core::System& system_, NvCore::Container& core_)
: nvhost_nvdec_common{system_, core_, NvCore::ChannelType::NvDec} {}
nvhost_nvdec::~nvhost_nvdec() = default;
-NvResult nvhost_nvdec::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_nvdec::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 0x0:
switch (command.cmd) {
@@ -55,21 +55,21 @@ NvResult nvhost_nvdec::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>&
return NvResult::NotImplemented;
}
-NvResult nvhost_nvdec::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvhost_nvdec::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvhost_nvdec::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvhost_nvdec::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
void nvhost_nvdec::OnOpen(DeviceFD fd) {
LOG_INFO(Service_NVDRV, "NVDEC video stream started");
- system.AudioCore().SetNVDECActive(true);
+ system.SetNVDECActive(true);
}
void nvhost_nvdec::OnClose(DeviceFD fd) {
@@ -79,7 +79,7 @@ void nvhost_nvdec::OnClose(DeviceFD fd) {
if (iter != host1x_file.fd_to_id.end()) {
system.GPU().ClearCdmaInstance(iter->second);
}
- system.AudioCore().SetNVDECActive(false);
+ system.SetNVDECActive(false);
}
} // namespace Service::Nvidia::Devices
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h
index c1b4e53e8..ad2233c49 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.h
@@ -13,12 +13,12 @@ public:
explicit nvhost_nvdec(Core::System& system_, NvCore::Container& core);
~nvhost_nvdec() override;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
index 99eede702..61649aa4a 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
@@ -23,7 +23,7 @@ namespace {
// Copies count amount of type T from the input vector into the dst vector.
// Returns the number of bytes written into dst.
template <typename T>
-std::size_t SliceVectors(const std::vector<u8>& input, std::vector<T>& dst, std::size_t count,
+std::size_t SliceVectors(std::span<const u8> input, std::vector<T>& dst, std::size_t count,
std::size_t offset) {
if (dst.empty()) {
return 0;
@@ -36,7 +36,7 @@ std::size_t SliceVectors(const std::vector<u8>& input, std::vector<T>& dst, std:
// Writes the data in src to an offset into the dst vector. The offset is specified in bytes
// Returns the number of bytes written into dst.
template <typename T>
-std::size_t WriteVectors(std::vector<u8>& dst, const std::vector<T>& src, std::size_t offset) {
+std::size_t WriteVectors(std::span<u8> dst, const std::vector<T>& src, std::size_t offset) {
if (src.empty()) {
return 0;
}
@@ -63,7 +63,7 @@ nvhost_nvdec_common::~nvhost_nvdec_common() {
core.Host1xDeviceFile().syncpts_accumulated.push_back(channel_syncpoint);
}
-NvResult nvhost_nvdec_common::SetNVMAPfd(const std::vector<u8>& input) {
+NvResult nvhost_nvdec_common::SetNVMAPfd(std::span<const u8> input) {
IoctlSetNvmapFD params{};
std::memcpy(&params, input.data(), sizeof(IoctlSetNvmapFD));
LOG_DEBUG(Service_NVDRV, "called, fd={}", params.nvmap_fd);
@@ -72,8 +72,7 @@ NvResult nvhost_nvdec_common::SetNVMAPfd(const std::vector<u8>& input) {
return NvResult::Success;
}
-NvResult nvhost_nvdec_common::Submit(DeviceFD fd, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_nvdec_common::Submit(DeviceFD fd, std::span<const u8> input, std::span<u8> output) {
IoctlSubmit params{};
std::memcpy(&params, input.data(), sizeof(IoctlSubmit));
LOG_DEBUG(Service_NVDRV, "called NVDEC Submit, cmd_buffer_count={}", params.cmd_buffer_count);
@@ -105,8 +104,8 @@ NvResult nvhost_nvdec_common::Submit(DeviceFD fd, const std::vector<u8>& input,
const auto object = nvmap.GetHandle(cmd_buffer.memory_id);
ASSERT_OR_EXECUTE(object, return NvResult::InvalidState;);
Tegra::ChCommandHeaderList cmdlist(cmd_buffer.word_count);
- system.Memory().ReadBlock(object->address + cmd_buffer.offset, cmdlist.data(),
- cmdlist.size() * sizeof(u32));
+ system.ApplicationMemory().ReadBlock(object->address + cmd_buffer.offset, cmdlist.data(),
+ cmdlist.size() * sizeof(u32));
gpu.PushCommandBuffer(core.Host1xDeviceFile().fd_to_id[fd], cmdlist);
}
std::memcpy(output.data(), &params, sizeof(IoctlSubmit));
@@ -121,7 +120,7 @@ NvResult nvhost_nvdec_common::Submit(DeviceFD fd, const std::vector<u8>& input,
return NvResult::Success;
}
-NvResult nvhost_nvdec_common::GetSyncpoint(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_nvdec_common::GetSyncpoint(std::span<const u8> input, std::span<u8> output) {
IoctlGetSyncpoint params{};
std::memcpy(&params, input.data(), sizeof(IoctlGetSyncpoint));
LOG_DEBUG(Service_NVDRV, "called GetSyncpoint, id={}", params.param);
@@ -133,7 +132,7 @@ NvResult nvhost_nvdec_common::GetSyncpoint(const std::vector<u8>& input, std::ve
return NvResult::Success;
}
-NvResult nvhost_nvdec_common::GetWaitbase(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_nvdec_common::GetWaitbase(std::span<const u8> input, std::span<u8> output) {
IoctlGetWaitbase params{};
LOG_CRITICAL(Service_NVDRV, "called WAITBASE");
std::memcpy(&params, input.data(), sizeof(IoctlGetWaitbase));
@@ -142,7 +141,7 @@ NvResult nvhost_nvdec_common::GetWaitbase(const std::vector<u8>& input, std::vec
return NvResult::Success;
}
-NvResult nvhost_nvdec_common::MapBuffer(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_nvdec_common::MapBuffer(std::span<const u8> input, std::span<u8> output) {
IoctlMapBuffer params{};
std::memcpy(&params, input.data(), sizeof(IoctlMapBuffer));
std::vector<MapBufferEntry> cmd_buffer_handles(params.num_entries);
@@ -159,7 +158,7 @@ NvResult nvhost_nvdec_common::MapBuffer(const std::vector<u8>& input, std::vecto
return NvResult::Success;
}
-NvResult nvhost_nvdec_common::UnmapBuffer(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_nvdec_common::UnmapBuffer(std::span<const u8> input, std::span<u8> output) {
IoctlMapBuffer params{};
std::memcpy(&params, input.data(), sizeof(IoctlMapBuffer));
std::vector<MapBufferEntry> cmd_buffer_handles(params.num_entries);
@@ -173,8 +172,7 @@ NvResult nvhost_nvdec_common::UnmapBuffer(const std::vector<u8>& input, std::vec
return NvResult::Success;
}
-NvResult nvhost_nvdec_common::SetSubmitTimeout(const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_nvdec_common::SetSubmitTimeout(std::span<const u8> input, std::span<u8> output) {
std::memcpy(&submit_timeout, input.data(), input.size());
LOG_WARNING(Service_NVDRV, "(STUBBED) called");
return NvResult::Success;
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
index fe76100c8..9bb573bfe 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.h
@@ -107,13 +107,13 @@ protected:
static_assert(sizeof(IoctlMapBuffer) == 0x0C, "IoctlMapBuffer is incorrect size");
/// Ioctl command implementations
- NvResult SetNVMAPfd(const std::vector<u8>& input);
- NvResult Submit(DeviceFD fd, const std::vector<u8>& input, std::vector<u8>& output);
- NvResult GetSyncpoint(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult GetWaitbase(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult MapBuffer(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult UnmapBuffer(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult SetSubmitTimeout(const std::vector<u8>& input, std::vector<u8>& output);
+ NvResult SetNVMAPfd(std::span<const u8> input);
+ NvResult Submit(DeviceFD fd, std::span<const u8> input, std::span<u8> output);
+ NvResult GetSyncpoint(std::span<const u8> input, std::span<u8> output);
+ NvResult GetWaitbase(std::span<const u8> input, std::span<u8> output);
+ NvResult MapBuffer(std::span<const u8> input, std::span<u8> output);
+ NvResult UnmapBuffer(std::span<const u8> input, std::span<u8> output);
+ NvResult SetSubmitTimeout(std::span<const u8> input, std::span<u8> output);
Kernel::KEvent* QueryEvent(u32 event_id) override;
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp
index bdbc2f9e1..a05c8cdae 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp
@@ -12,8 +12,8 @@ namespace Service::Nvidia::Devices {
nvhost_nvjpg::nvhost_nvjpg(Core::System& system_) : nvdevice{system_} {}
nvhost_nvjpg::~nvhost_nvjpg() = default;
-NvResult nvhost_nvjpg::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_nvjpg::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 'H':
switch (command.cmd) {
@@ -31,14 +31,14 @@ NvResult nvhost_nvjpg::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>&
return NvResult::NotImplemented;
}
-NvResult nvhost_nvjpg::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvhost_nvjpg::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvhost_nvjpg::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvhost_nvjpg::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
@@ -46,7 +46,7 @@ NvResult nvhost_nvjpg::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>&
void nvhost_nvjpg::OnOpen(DeviceFD fd) {}
void nvhost_nvjpg::OnClose(DeviceFD fd) {}
-NvResult nvhost_nvjpg::SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvhost_nvjpg::SetNVMAPfd(std::span<const u8> input, std::span<u8> output) {
IoctlSetNvmapFD params{};
std::memcpy(&params, input.data(), input.size());
LOG_DEBUG(Service_NVDRV, "called, fd={}", params.nvmap_fd);
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h
index 440e7d371..5623e0d47 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.h
@@ -15,12 +15,12 @@ public:
explicit nvhost_nvjpg(Core::System& system_);
~nvhost_nvjpg() override;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
@@ -33,7 +33,7 @@ private:
s32_le nvmap_fd{};
- NvResult SetNVMAPfd(const std::vector<u8>& input, std::vector<u8>& output);
+ NvResult SetNVMAPfd(std::span<const u8> input, std::span<u8> output);
};
} // namespace Service::Nvidia::Devices
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
index 73f97136e..c0b8684c3 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
@@ -15,8 +15,8 @@ nvhost_vic::nvhost_vic(Core::System& system_, NvCore::Container& core_)
nvhost_vic::~nvhost_vic() = default;
-NvResult nvhost_vic::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvhost_vic::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 0x0:
switch (command.cmd) {
@@ -55,14 +55,14 @@ NvResult nvhost_vic::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& i
return NvResult::NotImplemented;
}
-NvResult nvhost_vic::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvhost_vic::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvhost_vic::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvhost_vic::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output, std::span<u8> inline_output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.h b/src/core/hle/service/nvdrv/devices/nvhost_vic.h
index f164caafb..cadbcb0a5 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_vic.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.h
@@ -12,12 +12,12 @@ public:
explicit nvhost_vic(Core::System& system_, NvCore::Container& core);
~nvhost_vic();
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp
index fa29db758..e7f7e273b 100644
--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp
@@ -25,8 +25,8 @@ nvmap::nvmap(Core::System& system_, NvCore::Container& container_)
nvmap::~nvmap() = default;
-NvResult nvmap::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult nvmap::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
switch (command.group) {
case 0x1:
switch (command.cmd) {
@@ -54,14 +54,14 @@ NvResult nvmap::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
return NvResult::NotImplemented;
}
-NvResult nvmap::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult nvmap::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
-NvResult nvmap::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult nvmap::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) {
UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}
@@ -69,7 +69,7 @@ NvResult nvmap::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
void nvmap::OnOpen(DeviceFD fd) {}
void nvmap::OnClose(DeviceFD fd) {}
-NvResult nvmap::IocCreate(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvmap::IocCreate(std::span<const u8> input, std::span<u8> output) {
IocCreateParams params;
std::memcpy(&params, input.data(), sizeof(params));
LOG_DEBUG(Service_NVDRV, "called, size=0x{:08X}", params.size);
@@ -89,7 +89,7 @@ NvResult nvmap::IocCreate(const std::vector<u8>& input, std::vector<u8>& output)
return NvResult::Success;
}
-NvResult nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvmap::IocAlloc(std::span<const u8> input, std::span<u8> output) {
IocAllocParams params;
std::memcpy(&params, input.data(), sizeof(params));
LOG_DEBUG(Service_NVDRV, "called, addr={:X}", params.address);
@@ -127,7 +127,7 @@ NvResult nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output)
return result;
}
bool is_out_io{};
- ASSERT(system.CurrentProcess()
+ ASSERT(system.ApplicationProcess()
->PageTable()
.LockForMapDeviceAddressSpace(&is_out_io, handle_description->address,
handle_description->size,
@@ -137,7 +137,7 @@ NvResult nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output)
return result;
}
-NvResult nvmap::IocGetId(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvmap::IocGetId(std::span<const u8> input, std::span<u8> output) {
IocGetIdParams params;
std::memcpy(&params, input.data(), sizeof(params));
@@ -161,7 +161,7 @@ NvResult nvmap::IocGetId(const std::vector<u8>& input, std::vector<u8>& output)
return NvResult::Success;
}
-NvResult nvmap::IocFromId(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvmap::IocFromId(std::span<const u8> input, std::span<u8> output) {
IocFromIdParams params;
std::memcpy(&params, input.data(), sizeof(params));
@@ -192,7 +192,7 @@ NvResult nvmap::IocFromId(const std::vector<u8>& input, std::vector<u8>& output)
return NvResult::Success;
}
-NvResult nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvmap::IocParam(std::span<const u8> input, std::span<u8> output) {
enum class ParamTypes { Size = 1, Alignment = 2, Base = 3, Heap = 4, Kind = 5, Compr = 6 };
IocParamParams params;
@@ -241,7 +241,7 @@ NvResult nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output)
return NvResult::Success;
}
-NvResult nvmap::IocFree(const std::vector<u8>& input, std::vector<u8>& output) {
+NvResult nvmap::IocFree(std::span<const u8> input, std::span<u8> output) {
IocFreeParams params;
std::memcpy(&params, input.data(), sizeof(params));
@@ -254,7 +254,7 @@ NvResult nvmap::IocFree(const std::vector<u8>& input, std::vector<u8>& output) {
if (auto freeInfo{file.FreeHandle(params.handle, false)}) {
if (freeInfo->can_unlock) {
- ASSERT(system.CurrentProcess()
+ ASSERT(system.ApplicationProcess()
->PageTable()
.UnlockForDeviceAddressSpace(freeInfo->address, freeInfo->size)
.IsSuccess());
@@ -264,7 +264,7 @@ NvResult nvmap::IocFree(const std::vector<u8>& input, std::vector<u8>& output) {
params.flags.raw = 0;
params.flags.map_uncached.Assign(freeInfo->was_uncached);
} else {
- // This is possible when there's internel dups or other duplicates.
+ // This is possible when there's internal dups or other duplicates.
}
std::memcpy(output.data(), &params, sizeof(params));
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.h b/src/core/hle/service/nvdrv/devices/nvmap.h
index e9bfd0358..40c65b430 100644
--- a/src/core/hle/service/nvdrv/devices/nvmap.h
+++ b/src/core/hle/service/nvdrv/devices/nvmap.h
@@ -26,12 +26,12 @@ public:
nvmap(const nvmap&) = delete;
nvmap& operator=(const nvmap&) = delete;
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) override;
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) override;
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) override;
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) override;
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) override;
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) override;
void OnOpen(DeviceFD fd) override;
void OnClose(DeviceFD fd) override;
@@ -106,12 +106,12 @@ private:
};
static_assert(sizeof(IocGetIdParams) == 8, "IocGetIdParams has wrong size");
- NvResult IocCreate(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocAlloc(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocGetId(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocFromId(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocParam(const std::vector<u8>& input, std::vector<u8>& output);
- NvResult IocFree(const std::vector<u8>& input, std::vector<u8>& output);
+ NvResult IocCreate(std::span<const u8> input, std::span<u8> output);
+ NvResult IocAlloc(std::span<const u8> input, std::span<u8> output);
+ NvResult IocGetId(std::span<const u8> input, std::span<u8> output);
+ NvResult IocFromId(std::span<const u8> input, std::span<u8> output);
+ NvResult IocParam(std::span<const u8> input, std::span<u8> output);
+ NvResult IocFree(std::span<const u8> input, std::span<u8> output);
NvCore::Container& container;
NvCore::NvMap& file;
diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cpp
index 6fc8565c0..9e46ee8dd 100644
--- a/src/core/hle/service/nvdrv/nvdrv.cpp
+++ b/src/core/hle/service/nvdrv/nvdrv.cpp
@@ -6,8 +6,8 @@
#include <fmt/format.h>
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/nvdrv/core/container.h"
#include "core/hle/service/nvdrv/devices/nvdevice.h"
#include "core/hle/service/nvdrv/devices/nvdisp_disp0.h"
@@ -23,7 +23,8 @@
#include "core/hle/service/nvdrv/nvdrv.h"
#include "core/hle/service/nvdrv/nvdrv_interface.h"
#include "core/hle/service/nvdrv/nvmemp.h"
-#include "core/hle/service/nvflinger/nvflinger.h"
+#include "core/hle/service/nvnflinger/nvnflinger.h"
+#include "core/hle/service/server_manager.h"
#include "video_core/gpu.h"
namespace Service::Nvidia {
@@ -41,15 +42,19 @@ void EventInterface::FreeEvent(Kernel::KEvent* event) {
module.service_context.CloseEvent(event);
}
-void InstallInterfaces(SM::ServiceManager& service_manager, NVFlinger::NVFlinger& nvflinger,
- Core::System& system) {
- auto module_ = std::make_shared<Module>(system);
- std::make_shared<NVDRV>(system, module_, "nvdrv")->InstallAsService(service_manager);
- std::make_shared<NVDRV>(system, module_, "nvdrv:a")->InstallAsService(service_manager);
- std::make_shared<NVDRV>(system, module_, "nvdrv:s")->InstallAsService(service_manager);
- std::make_shared<NVDRV>(system, module_, "nvdrv:t")->InstallAsService(service_manager);
- std::make_shared<NVMEMP>(system)->InstallAsService(service_manager);
- nvflinger.SetNVDrvInstance(module_);
+void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+ auto module = std::make_shared<Module>(system);
+ server_manager->RegisterNamedService("nvdrv", std::make_shared<NVDRV>(system, module, "nvdrv"));
+ server_manager->RegisterNamedService("nvdrv:a",
+ std::make_shared<NVDRV>(system, module, "nvdrv:a"));
+ server_manager->RegisterNamedService("nvdrv:s",
+ std::make_shared<NVDRV>(system, module, "nvdrv:s"));
+ server_manager->RegisterNamedService("nvdrv:t",
+ std::make_shared<NVDRV>(system, module, "nvdrv:t"));
+ server_manager->RegisterNamedService("nvmemp", std::make_shared<NVMEMP>(system));
+ nvnflinger.SetNVDrvInstance(module);
+ ServerManager::RunServer(std::move(server_manager));
}
Module::Module(Core::System& system)
@@ -124,8 +129,8 @@ DeviceFD Module::Open(const std::string& device_name) {
return fd;
}
-NvResult Module::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output) {
+NvResult Module::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<u8> output) {
if (fd < 0) {
LOG_ERROR(Service_NVDRV, "Invalid DeviceFD={}!", fd);
return NvResult::InvalidState;
@@ -141,8 +146,8 @@ NvResult Module::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input
return itr->second->Ioctl1(fd, command, input, output);
}
-NvResult Module::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output) {
+NvResult Module::Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output) {
if (fd < 0) {
LOG_ERROR(Service_NVDRV, "Invalid DeviceFD={}!", fd);
return NvResult::InvalidState;
@@ -158,8 +163,8 @@ NvResult Module::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input
return itr->second->Ioctl2(fd, command, input, inline_input, output);
}
-NvResult Module::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output) {
+NvResult Module::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output) {
if (fd < 0) {
LOG_ERROR(Service_NVDRV, "Invalid DeviceFD={}!", fd);
return NvResult::InvalidState;
diff --git a/src/core/hle/service/nvdrv/nvdrv.h b/src/core/hle/service/nvdrv/nvdrv.h
index f3c81bd88..d8622b3ca 100644
--- a/src/core/hle/service/nvdrv/nvdrv.h
+++ b/src/core/hle/service/nvdrv/nvdrv.h
@@ -7,6 +7,7 @@
#include <functional>
#include <list>
#include <memory>
+#include <span>
#include <string>
#include <unordered_map>
#include <vector>
@@ -15,7 +16,7 @@
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/nvdrv/core/container.h"
#include "core/hle/service/nvdrv/nvdata.h"
-#include "core/hle/service/nvflinger/ui/fence.h"
+#include "core/hle/service/nvnflinger/ui/fence.h"
#include "core/hle/service/service.h"
namespace Core {
@@ -26,8 +27,8 @@ namespace Kernel {
class KEvent;
}
-namespace Service::NVFlinger {
-class NVFlinger;
+namespace Service::Nvnflinger {
+class Nvnflinger;
}
namespace Service::Nvidia {
@@ -79,14 +80,13 @@ public:
DeviceFD Open(const std::string& device_name);
/// Sends an ioctl command to the specified file descriptor.
- NvResult Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output);
+ NvResult Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output);
- NvResult Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- const std::vector<u8>& inline_input, std::vector<u8>& output);
+ NvResult Ioctl2(DeviceFD fd, Ioctl command, std::span<const u8> input,
+ std::span<const u8> inline_input, std::span<u8> output);
- NvResult Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input,
- std::vector<u8>& output, std::vector<u8>& inline_output);
+ NvResult Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> input, std::span<u8> output,
+ std::span<u8> inline_output);
/// Closes a device file descriptor and returns operation success.
NvResult Close(DeviceFD fd);
@@ -95,7 +95,7 @@ public:
private:
friend class EventInterface;
- friend class Service::NVFlinger::NVFlinger;
+ friend class Service::Nvnflinger::Nvnflinger;
/// Manages syncpoints on the host
NvCore::Container container;
@@ -114,8 +114,6 @@ private:
std::unordered_map<std::string, std::function<FilesContainerType::iterator(DeviceFD)>> builders;
};
-/// Registers all NVDRV services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, NVFlinger::NVFlinger& nvflinger,
- Core::System& system);
+void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system);
} // namespace Service::Nvidia
diff --git a/src/core/hle/service/nvdrv/nvdrv_interface.cpp b/src/core/hle/service/nvdrv/nvdrv_interface.cpp
index edbdfee43..348207e25 100644
--- a/src/core/hle/service/nvdrv/nvdrv_interface.cpp
+++ b/src/core/hle/service/nvdrv/nvdrv_interface.cpp
@@ -5,16 +5,16 @@
#include <cinttypes>
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_readable_event.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/nvdrv/nvdata.h"
#include "core/hle/service/nvdrv/nvdrv.h"
#include "core/hle/service/nvdrv/nvdrv_interface.h"
namespace Service::Nvidia {
-void NVDRV::Open(Kernel::HLERequestContext& ctx) {
+void NVDRV::Open(HLERequestContext& ctx) {
LOG_DEBUG(Service_NVDRV, "called");
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
@@ -44,13 +44,13 @@ void NVDRV::Open(Kernel::HLERequestContext& ctx) {
rb.PushEnum(fd != INVALID_NVDRV_FD ? NvResult::Success : NvResult::FileOperationFailed);
}
-void NVDRV::ServiceError(Kernel::HLERequestContext& ctx, NvResult result) {
+void NVDRV::ServiceError(HLERequestContext& ctx, NvResult result) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.PushEnum(result);
}
-void NVDRV::Ioctl1(Kernel::HLERequestContext& ctx) {
+void NVDRV::Ioctl1(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto fd = rp.Pop<DeviceFD>();
const auto command = rp.PopRaw<Ioctl>();
@@ -63,12 +63,12 @@ void NVDRV::Ioctl1(Kernel::HLERequestContext& ctx) {
}
// Check device
- std::vector<u8> output_buffer(ctx.GetWriteBufferSize(0));
+ tmp_output.resize_destructive(ctx.GetWriteBufferSize(0));
const auto input_buffer = ctx.ReadBuffer(0);
- const auto nv_result = nvdrv->Ioctl1(fd, command, input_buffer, output_buffer);
+ const auto nv_result = nvdrv->Ioctl1(fd, command, input_buffer, tmp_output);
if (command.is_out != 0) {
- ctx.WriteBuffer(output_buffer);
+ ctx.WriteBuffer(tmp_output);
}
IPC::ResponseBuilder rb{ctx, 3};
@@ -76,7 +76,7 @@ void NVDRV::Ioctl1(Kernel::HLERequestContext& ctx) {
rb.PushEnum(nv_result);
}
-void NVDRV::Ioctl2(Kernel::HLERequestContext& ctx) {
+void NVDRV::Ioctl2(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto fd = rp.Pop<DeviceFD>();
const auto command = rp.PopRaw<Ioctl>();
@@ -90,12 +90,12 @@ void NVDRV::Ioctl2(Kernel::HLERequestContext& ctx) {
const auto input_buffer = ctx.ReadBuffer(0);
const auto input_inlined_buffer = ctx.ReadBuffer(1);
- std::vector<u8> output_buffer(ctx.GetWriteBufferSize(0));
+ tmp_output.resize_destructive(ctx.GetWriteBufferSize(0));
const auto nv_result =
- nvdrv->Ioctl2(fd, command, input_buffer, input_inlined_buffer, output_buffer);
+ nvdrv->Ioctl2(fd, command, input_buffer, input_inlined_buffer, tmp_output);
if (command.is_out != 0) {
- ctx.WriteBuffer(output_buffer);
+ ctx.WriteBuffer(tmp_output);
}
IPC::ResponseBuilder rb{ctx, 3};
@@ -103,7 +103,7 @@ void NVDRV::Ioctl2(Kernel::HLERequestContext& ctx) {
rb.PushEnum(nv_result);
}
-void NVDRV::Ioctl3(Kernel::HLERequestContext& ctx) {
+void NVDRV::Ioctl3(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto fd = rp.Pop<DeviceFD>();
const auto command = rp.PopRaw<Ioctl>();
@@ -116,14 +116,12 @@ void NVDRV::Ioctl3(Kernel::HLERequestContext& ctx) {
}
const auto input_buffer = ctx.ReadBuffer(0);
- std::vector<u8> output_buffer(ctx.GetWriteBufferSize(0));
- std::vector<u8> output_buffer_inline(ctx.GetWriteBufferSize(1));
-
- const auto nv_result =
- nvdrv->Ioctl3(fd, command, input_buffer, output_buffer, output_buffer_inline);
+ tmp_output.resize_destructive(ctx.GetWriteBufferSize(0));
+ tmp_output_inline.resize_destructive(ctx.GetWriteBufferSize(1));
+ const auto nv_result = nvdrv->Ioctl3(fd, command, input_buffer, tmp_output, tmp_output_inline);
if (command.is_out != 0) {
- ctx.WriteBuffer(output_buffer, 0);
- ctx.WriteBuffer(output_buffer_inline, 1);
+ ctx.WriteBuffer(tmp_output, 0);
+ ctx.WriteBuffer(tmp_output_inline, 1);
}
IPC::ResponseBuilder rb{ctx, 3};
@@ -131,7 +129,7 @@ void NVDRV::Ioctl3(Kernel::HLERequestContext& ctx) {
rb.PushEnum(nv_result);
}
-void NVDRV::Close(Kernel::HLERequestContext& ctx) {
+void NVDRV::Close(HLERequestContext& ctx) {
LOG_DEBUG(Service_NVDRV, "called");
if (!is_initialized) {
@@ -149,7 +147,7 @@ void NVDRV::Close(Kernel::HLERequestContext& ctx) {
rb.PushEnum(result);
}
-void NVDRV::Initialize(Kernel::HLERequestContext& ctx) {
+void NVDRV::Initialize(HLERequestContext& ctx) {
LOG_WARNING(Service_NVDRV, "(STUBBED) called");
is_initialized = true;
@@ -159,7 +157,7 @@ void NVDRV::Initialize(Kernel::HLERequestContext& ctx) {
rb.PushEnum(NvResult::Success);
}
-void NVDRV::QueryEvent(Kernel::HLERequestContext& ctx) {
+void NVDRV::QueryEvent(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto fd = rp.Pop<DeviceFD>();
const auto event_id = rp.Pop<u32>();
@@ -187,7 +185,7 @@ void NVDRV::QueryEvent(Kernel::HLERequestContext& ctx) {
}
}
-void NVDRV::SetAruid(Kernel::HLERequestContext& ctx) {
+void NVDRV::SetAruid(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
pid = rp.Pop<u64>();
LOG_WARNING(Service_NVDRV, "(STUBBED) called, pid=0x{:X}", pid);
@@ -197,14 +195,14 @@ void NVDRV::SetAruid(Kernel::HLERequestContext& ctx) {
rb.PushEnum(NvResult::Success);
}
-void NVDRV::SetGraphicsFirmwareMemoryMarginEnabled(Kernel::HLERequestContext& ctx) {
+void NVDRV::SetGraphicsFirmwareMemoryMarginEnabled(HLERequestContext& ctx) {
LOG_WARNING(Service_NVDRV, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void NVDRV::GetStatus(Kernel::HLERequestContext& ctx) {
+void NVDRV::GetStatus(HLERequestContext& ctx) {
LOG_WARNING(Service_NVDRV, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -212,7 +210,7 @@ void NVDRV::GetStatus(Kernel::HLERequestContext& ctx) {
rb.PushEnum(NvResult::Success);
}
-void NVDRV::DumpGraphicsMemoryInfo(Kernel::HLERequestContext& ctx) {
+void NVDRV::DumpGraphicsMemoryInfo(HLERequestContext& ctx) {
// According to SwitchBrew, this has no inputs and no outputs, so effectively does nothing on
// retail hardware.
LOG_DEBUG(Service_NVDRV, "called");
@@ -222,7 +220,7 @@ void NVDRV::DumpGraphicsMemoryInfo(Kernel::HLERequestContext& ctx) {
}
NVDRV::NVDRV(Core::System& system_, std::shared_ptr<Module> nvdrv_, const char* name)
- : ServiceFramework{system_, name, ServiceThreadType::CreateNew}, nvdrv{std::move(nvdrv_)} {
+ : ServiceFramework{system_, name}, nvdrv{std::move(nvdrv_)} {
static const FunctionInfo functions[] = {
{0, &NVDRV::Open, "Open"},
{1, &NVDRV::Ioctl1, "Ioctl"},
diff --git a/src/core/hle/service/nvdrv/nvdrv_interface.h b/src/core/hle/service/nvdrv/nvdrv_interface.h
index 5ac06ee30..4b593ff90 100644
--- a/src/core/hle/service/nvdrv/nvdrv_interface.h
+++ b/src/core/hle/service/nvdrv/nvdrv_interface.h
@@ -4,6 +4,7 @@
#pragma once
#include <memory>
+#include "common/scratch_buffer.h"
#include "core/hle/service/nvdrv/nvdrv.h"
#include "core/hle/service/service.h"
@@ -15,24 +16,26 @@ public:
~NVDRV() override;
private:
- void Open(Kernel::HLERequestContext& ctx);
- void Ioctl1(Kernel::HLERequestContext& ctx);
- void Ioctl2(Kernel::HLERequestContext& ctx);
- void Ioctl3(Kernel::HLERequestContext& ctx);
- void Close(Kernel::HLERequestContext& ctx);
- void Initialize(Kernel::HLERequestContext& ctx);
- void QueryEvent(Kernel::HLERequestContext& ctx);
- void SetAruid(Kernel::HLERequestContext& ctx);
- void SetGraphicsFirmwareMemoryMarginEnabled(Kernel::HLERequestContext& ctx);
- void GetStatus(Kernel::HLERequestContext& ctx);
- void DumpGraphicsMemoryInfo(Kernel::HLERequestContext& ctx);
-
- void ServiceError(Kernel::HLERequestContext& ctx, NvResult result);
+ void Open(HLERequestContext& ctx);
+ void Ioctl1(HLERequestContext& ctx);
+ void Ioctl2(HLERequestContext& ctx);
+ void Ioctl3(HLERequestContext& ctx);
+ void Close(HLERequestContext& ctx);
+ void Initialize(HLERequestContext& ctx);
+ void QueryEvent(HLERequestContext& ctx);
+ void SetAruid(HLERequestContext& ctx);
+ void SetGraphicsFirmwareMemoryMarginEnabled(HLERequestContext& ctx);
+ void GetStatus(HLERequestContext& ctx);
+ void DumpGraphicsMemoryInfo(HLERequestContext& ctx);
+
+ void ServiceError(HLERequestContext& ctx, NvResult result);
std::shared_ptr<Module> nvdrv;
u64 pid{};
bool is_initialized{};
+ Common::ScratchBuffer<u8> tmp_output;
+ Common::ScratchBuffer<u8> tmp_output_inline;
};
} // namespace Service::Nvidia
diff --git a/src/core/hle/service/nvdrv/nvmemp.cpp b/src/core/hle/service/nvdrv/nvmemp.cpp
index e433580b1..fc10f6406 100644
--- a/src/core/hle/service/nvdrv/nvmemp.cpp
+++ b/src/core/hle/service/nvdrv/nvmemp.cpp
@@ -17,11 +17,11 @@ NVMEMP::NVMEMP(Core::System& system_) : ServiceFramework{system_, "nvmemp"} {
NVMEMP::~NVMEMP() = default;
-void NVMEMP::Open(Kernel::HLERequestContext& ctx) {
+void NVMEMP::Open(HLERequestContext& ctx) {
UNIMPLEMENTED();
}
-void NVMEMP::GetAruid(Kernel::HLERequestContext& ctx) {
+void NVMEMP::GetAruid(HLERequestContext& ctx) {
UNIMPLEMENTED();
}
diff --git a/src/core/hle/service/nvdrv/nvmemp.h b/src/core/hle/service/nvdrv/nvmemp.h
index 3d4276327..85e3053a8 100644
--- a/src/core/hle/service/nvdrv/nvmemp.h
+++ b/src/core/hle/service/nvdrv/nvmemp.h
@@ -17,8 +17,8 @@ public:
~NVMEMP() override;
private:
- void Open(Kernel::HLERequestContext& ctx);
- void GetAruid(Kernel::HLERequestContext& ctx);
+ void Open(HLERequestContext& ctx);
+ void GetAruid(HLERequestContext& ctx);
};
} // namespace Service::Nvidia
diff --git a/src/core/hle/service/nvflinger/binder.h b/src/core/hle/service/nvflinger/binder.h
deleted file mode 100644
index 157333ff8..000000000
--- a/src/core/hle/service/nvflinger/binder.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/binder/IBinder.h
-
-#pragma once
-
-#include "common/common_types.h"
-
-namespace Kernel {
-class HLERequestContext;
-class KReadableEvent;
-} // namespace Kernel
-
-namespace Service::android {
-
-enum class TransactionId {
- RequestBuffer = 1,
- SetBufferCount = 2,
- DequeueBuffer = 3,
- DetachBuffer = 4,
- DetachNextBuffer = 5,
- AttachBuffer = 6,
- QueueBuffer = 7,
- CancelBuffer = 8,
- Query = 9,
- Connect = 10,
- Disconnect = 11,
- AllocateBuffers = 13,
- SetPreallocatedBuffer = 14,
- GetBufferHistory = 17,
-};
-
-class IBinder {
-public:
- virtual ~IBinder() = default;
- virtual void Transact(Kernel::HLERequestContext& ctx, android::TransactionId code,
- u32 flags) = 0;
- virtual Kernel::KReadableEvent& GetNativeHandle() = 0;
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_item.h b/src/core/hle/service/nvflinger/buffer_item.h
deleted file mode 100644
index f73dec4f1..000000000
--- a/src/core/hle/service/nvflinger/buffer_item.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferItem.h
-
-#pragma once
-
-#include <memory>
-
-#include "common/common_types.h"
-#include "common/math_util.h"
-#include "core/hle/service/nvflinger/ui/fence.h"
-#include "core/hle/service/nvflinger/window.h"
-
-namespace Service::android {
-
-class GraphicBuffer;
-
-class BufferItem final {
-public:
- constexpr BufferItem() = default;
-
- std::shared_ptr<GraphicBuffer> graphic_buffer;
- Fence fence;
- Common::Rectangle<s32> crop;
- NativeWindowTransform transform{};
- u32 scaling_mode{};
- s64 timestamp{};
- bool is_auto_timestamp{};
- u64 frame_number{};
-
- // The default value for buf, used to indicate this doesn't correspond to a slot.
- static constexpr s32 INVALID_BUFFER_SLOT = -1;
- union {
- s32 slot{INVALID_BUFFER_SLOT};
- s32 buf;
- };
-
- bool is_droppable{};
- bool acquire_called{};
- bool transform_to_display_inverse{};
- s32 swap_interval{};
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_item_consumer.cpp b/src/core/hle/service/nvflinger/buffer_item_consumer.cpp
deleted file mode 100644
index 152bb5bdf..000000000
--- a/src/core/hle/service/nvflinger/buffer_item_consumer.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2012 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferItemConsumer.cpp
-
-#include "common/assert.h"
-#include "common/logging/log.h"
-#include "core/hle/service/nvflinger/buffer_item.h"
-#include "core/hle/service/nvflinger/buffer_item_consumer.h"
-#include "core/hle/service/nvflinger/buffer_queue_consumer.h"
-
-namespace Service::android {
-
-BufferItemConsumer::BufferItemConsumer(std::unique_ptr<BufferQueueConsumer> consumer_)
- : ConsumerBase{std::move(consumer_)} {}
-
-Status BufferItemConsumer::AcquireBuffer(BufferItem* item, std::chrono::nanoseconds present_when,
- bool wait_for_fence) {
- if (!item) {
- return Status::BadValue;
- }
-
- std::scoped_lock lock{mutex};
-
- if (const auto status = AcquireBufferLocked(item, present_when); status != Status::NoError) {
- if (status != Status::NoBufferAvailable) {
- LOG_ERROR(Service_NVFlinger, "Failed to acquire buffer: {}", status);
- }
- return status;
- }
-
- if (wait_for_fence) {
- UNIMPLEMENTED();
- }
-
- item->graphic_buffer = slots[item->slot].graphic_buffer;
-
- return Status::NoError;
-}
-
-Status BufferItemConsumer::ReleaseBuffer(const BufferItem& item, const Fence& release_fence) {
- std::scoped_lock lock{mutex};
-
- if (const auto status = AddReleaseFenceLocked(item.buf, item.graphic_buffer, release_fence);
- status != Status::NoError) {
- LOG_ERROR(Service_NVFlinger, "Failed to add fence: {}", status);
- }
-
- if (const auto status = ReleaseBufferLocked(item.buf, item.graphic_buffer);
- status != Status::NoError) {
- LOG_WARNING(Service_NVFlinger, "Failed to release buffer: {}", status);
- return status;
- }
-
- return Status::NoError;
-}
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_item_consumer.h b/src/core/hle/service/nvflinger/buffer_item_consumer.h
deleted file mode 100644
index a5c655d9e..000000000
--- a/src/core/hle/service/nvflinger/buffer_item_consumer.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2012 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferItemConsumer.h
-
-#pragma once
-
-#include <chrono>
-#include <memory>
-
-#include "common/common_types.h"
-#include "core/hle/service/nvflinger/consumer_base.h"
-#include "core/hle/service/nvflinger/status.h"
-
-namespace Service::android {
-
-class BufferItem;
-
-class BufferItemConsumer final : public ConsumerBase {
-public:
- explicit BufferItemConsumer(std::unique_ptr<BufferQueueConsumer> consumer);
- Status AcquireBuffer(BufferItem* item, std::chrono::nanoseconds present_when,
- bool wait_for_fence = true);
- Status ReleaseBuffer(const BufferItem& item, const Fence& release_fence);
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp b/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
deleted file mode 100644
index 0767e548d..000000000
--- a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
+++ /dev/null
@@ -1,213 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferQueueConsumer.cpp
-
-#include "common/logging/log.h"
-#include "core/hle/service/nvdrv/core/nvmap.h"
-#include "core/hle/service/nvflinger/buffer_item.h"
-#include "core/hle/service/nvflinger/buffer_queue_consumer.h"
-#include "core/hle/service/nvflinger/buffer_queue_core.h"
-#include "core/hle/service/nvflinger/producer_listener.h"
-#include "core/hle/service/nvflinger/ui/graphic_buffer.h"
-
-namespace Service::android {
-
-BufferQueueConsumer::BufferQueueConsumer(std::shared_ptr<BufferQueueCore> core_,
- Service::Nvidia::NvCore::NvMap& nvmap_)
- : core{std::move(core_)}, slots{core->slots}, nvmap(nvmap_) {}
-
-BufferQueueConsumer::~BufferQueueConsumer() = default;
-
-Status BufferQueueConsumer::AcquireBuffer(BufferItem* out_buffer,
- std::chrono::nanoseconds expected_present) {
- std::scoped_lock lock{core->mutex};
-
- // Check that the consumer doesn't currently have the maximum number of buffers acquired.
- const s32 num_acquired_buffers{
- static_cast<s32>(std::count_if(slots.begin(), slots.end(), [](const auto& slot) {
- return slot.buffer_state == BufferState::Acquired;
- }))};
-
- if (num_acquired_buffers >= core->max_acquired_buffer_count + 1) {
- LOG_ERROR(Service_NVFlinger, "max acquired buffer count reached: {} (max {})",
- num_acquired_buffers, core->max_acquired_buffer_count);
- return Status::InvalidOperation;
- }
-
- // Check if the queue is empty.
- if (core->queue.empty()) {
- return Status::NoBufferAvailable;
- }
-
- auto front(core->queue.begin());
-
- // If expected_present is specified, we may not want to return a buffer yet.
- if (expected_present.count() != 0) {
- constexpr auto MAX_REASONABLE_NSEC = 1000000000LL; // 1 second
-
- // The expected_present argument indicates when the buffer is expected to be presented
- // on-screen.
- while (core->queue.size() > 1 && !core->queue[0].is_auto_timestamp) {
- const auto& buffer_item{core->queue[1]};
-
- // If entry[1] is timely, drop entry[0] (and repeat).
- const auto desired_present = buffer_item.timestamp;
- if (desired_present < expected_present.count() - MAX_REASONABLE_NSEC ||
- desired_present > expected_present.count()) {
- // This buffer is set to display in the near future, or desired_present is garbage.
- LOG_DEBUG(Service_NVFlinger, "nodrop desire={} expect={}", desired_present,
- expected_present.count());
- break;
- }
-
- LOG_DEBUG(Service_NVFlinger, "drop desire={} expect={} size={}", desired_present,
- expected_present.count(), core->queue.size());
-
- if (core->StillTracking(*front)) {
- // Front buffer is still in mSlots, so mark the slot as free
- slots[front->slot].buffer_state = BufferState::Free;
- }
-
- core->queue.erase(front);
- front = core->queue.begin();
- }
-
- // See if the front buffer is ready to be acquired.
- const auto desired_present = front->timestamp;
- if (desired_present > expected_present.count() &&
- desired_present < expected_present.count() + MAX_REASONABLE_NSEC) {
- LOG_DEBUG(Service_NVFlinger, "defer desire={} expect={}", desired_present,
- expected_present.count());
- return Status::PresentLater;
- }
-
- LOG_DEBUG(Service_NVFlinger, "accept desire={} expect={}", desired_present,
- expected_present.count());
- }
-
- const auto slot = front->slot;
- *out_buffer = *front;
-
- LOG_DEBUG(Service_NVFlinger, "acquiring slot={}", slot);
-
- // If the buffer has previously been acquired by the consumer, set graphic_buffer to nullptr to
- // avoid unnecessarily remapping this buffer on the consumer side.
- if (out_buffer->acquire_called) {
- out_buffer->graphic_buffer = nullptr;
- }
-
- core->queue.erase(front);
-
- // We might have freed a slot while dropping old buffers, or the producer may be blocked
- // waiting for the number of buffers in the queue to decrease.
- core->SignalDequeueCondition();
-
- return Status::NoError;
-}
-
-Status BufferQueueConsumer::ReleaseBuffer(s32 slot, u64 frame_number, const Fence& release_fence) {
- if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
- LOG_ERROR(Service_NVFlinger, "slot {} out of range", slot);
- return Status::BadValue;
- }
-
- std::shared_ptr<IProducerListener> listener;
- {
- std::scoped_lock lock{core->mutex};
-
- // If the frame number has changed because the buffer has been reallocated, we can ignore
- // this ReleaseBuffer for the old buffer.
- if (frame_number != slots[slot].frame_number) {
- return Status::StaleBufferSlot;
- }
-
- // Make sure this buffer hasn't been queued while acquired by the consumer.
- auto current(core->queue.begin());
- while (current != core->queue.end()) {
- if (current->slot == slot) {
- LOG_ERROR(Service_NVFlinger, "buffer slot {} pending release is currently queued",
- slot);
- return Status::BadValue;
- }
- ++current;
- }
-
- slots[slot].buffer_state = BufferState::Free;
-
- nvmap.FreeHandle(slots[slot].graphic_buffer->BufferId(), true);
-
- listener = core->connected_producer_listener;
-
- LOG_DEBUG(Service_NVFlinger, "releasing slot {}", slot);
-
- core->SignalDequeueCondition();
- }
-
- // Call back without lock held
- if (listener != nullptr) {
- listener->OnBufferReleased();
- }
-
- return Status::NoError;
-}
-
-Status BufferQueueConsumer::Connect(std::shared_ptr<IConsumerListener> consumer_listener,
- bool controlled_by_app) {
- if (consumer_listener == nullptr) {
- LOG_ERROR(Service_NVFlinger, "consumer_listener may not be nullptr");
- return Status::BadValue;
- }
-
- LOG_DEBUG(Service_NVFlinger, "controlled_by_app={}", controlled_by_app);
-
- std::scoped_lock lock{core->mutex};
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- core->consumer_listener = std::move(consumer_listener);
- core->consumer_controlled_by_app = controlled_by_app;
-
- return Status::NoError;
-}
-
-Status BufferQueueConsumer::GetReleasedBuffers(u64* out_slot_mask) {
- if (out_slot_mask == nullptr) {
- LOG_ERROR(Service_NVFlinger, "out_slot_mask may not be nullptr");
- return Status::BadValue;
- }
-
- std::scoped_lock lock{core->mutex};
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- u64 mask = 0;
- for (int s = 0; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
- if (!slots[s].acquire_called) {
- mask |= (1ULL << s);
- }
- }
-
- // Remove from the mask queued buffers for which acquire has been called, since the consumer
- // will not receive their buffer addresses and so must retain their cached information
- auto current(core->queue.begin());
- while (current != core->queue.end()) {
- if (current->acquire_called) {
- mask &= ~(1ULL << current->slot);
- }
- ++current;
- }
-
- LOG_DEBUG(Service_NVFlinger, "returning mask {}", mask);
- *out_slot_mask = mask;
- return Status::NoError;
-}
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_consumer.h b/src/core/hle/service/nvflinger/buffer_queue_consumer.h
deleted file mode 100644
index 4ec06ca13..000000000
--- a/src/core/hle/service/nvflinger/buffer_queue_consumer.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueConsumer.h
-
-#pragma once
-
-#include <chrono>
-#include <memory>
-
-#include "common/common_types.h"
-#include "core/hle/service/nvflinger/buffer_queue_defs.h"
-#include "core/hle/service/nvflinger/status.h"
-
-namespace Service::Nvidia::NvCore {
-class NvMap;
-} // namespace Service::Nvidia::NvCore
-
-namespace Service::android {
-
-class BufferItem;
-class BufferQueueCore;
-class IConsumerListener;
-
-class BufferQueueConsumer final {
-public:
- explicit BufferQueueConsumer(std::shared_ptr<BufferQueueCore> core_,
- Service::Nvidia::NvCore::NvMap& nvmap_);
- ~BufferQueueConsumer();
-
- Status AcquireBuffer(BufferItem* out_buffer, std::chrono::nanoseconds expected_present);
- Status ReleaseBuffer(s32 slot, u64 frame_number, const Fence& release_fence);
- Status Connect(std::shared_ptr<IConsumerListener> consumer_listener, bool controlled_by_app);
- Status GetReleasedBuffers(u64* out_slot_mask);
-
-private:
- std::shared_ptr<BufferQueueCore> core;
- BufferQueueDefs::SlotsType& slots;
- Service::Nvidia::NvCore::NvMap& nvmap;
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.cpp b/src/core/hle/service/nvflinger/buffer_queue_core.cpp
deleted file mode 100644
index 3d1338e66..000000000
--- a/src/core/hle/service/nvflinger/buffer_queue_core.cpp
+++ /dev/null
@@ -1,115 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferQueueCore.cpp
-
-#include "common/assert.h"
-
-#include "core/hle/service/nvflinger/buffer_queue_core.h"
-
-namespace Service::android {
-
-BufferQueueCore::BufferQueueCore() = default;
-
-BufferQueueCore::~BufferQueueCore() = default;
-
-void BufferQueueCore::NotifyShutdown() {
- std::scoped_lock lock{mutex};
-
- is_shutting_down = true;
-
- SignalDequeueCondition();
-}
-
-void BufferQueueCore::SignalDequeueCondition() {
- dequeue_possible.store(true);
- dequeue_condition.notify_all();
-}
-
-bool BufferQueueCore::WaitForDequeueCondition(std::unique_lock<std::mutex>& lk) {
- if (is_shutting_down) {
- return false;
- }
-
- dequeue_condition.wait(lk, [&] { return dequeue_possible.load(); });
- dequeue_possible.store(false);
-
- return true;
-}
-
-s32 BufferQueueCore::GetMinUndequeuedBufferCountLocked(bool async) const {
- // If DequeueBuffer is allowed to error out, we don't have to add an extra buffer.
- if (!use_async_buffer) {
- return max_acquired_buffer_count;
- }
-
- if (dequeue_buffer_cannot_block || async) {
- return max_acquired_buffer_count + 1;
- }
-
- return max_acquired_buffer_count;
-}
-
-s32 BufferQueueCore::GetMinMaxBufferCountLocked(bool async) const {
- return GetMinUndequeuedBufferCountLocked(async) + 1;
-}
-
-s32 BufferQueueCore::GetMaxBufferCountLocked(bool async) const {
- const auto min_buffer_count = GetMinMaxBufferCountLocked(async);
- auto max_buffer_count = std::max(default_max_buffer_count, min_buffer_count);
-
- if (override_max_buffer_count != 0) {
- ASSERT(override_max_buffer_count >= min_buffer_count);
- max_buffer_count = override_max_buffer_count;
- }
-
- // Any buffers that are dequeued by the producer or sitting in the queue waiting to be consumed
- // need to have their slots preserved.
- for (s32 slot = max_buffer_count; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) {
- const auto state = slots[slot].buffer_state;
- if (state == BufferState::Queued || state == BufferState::Dequeued) {
- max_buffer_count = slot + 1;
- }
- }
-
- return max_buffer_count;
-}
-
-s32 BufferQueueCore::GetPreallocatedBufferCountLocked() const {
- return static_cast<s32>(std::count_if(slots.begin(), slots.end(),
- [](const auto& slot) { return slot.is_preallocated; }));
-}
-
-void BufferQueueCore::FreeBufferLocked(s32 slot) {
- LOG_DEBUG(Service_NVFlinger, "slot {}", slot);
-
- slots[slot].graphic_buffer.reset();
-
- slots[slot].buffer_state = BufferState::Free;
- slots[slot].frame_number = UINT32_MAX;
- slots[slot].acquire_called = false;
- slots[slot].fence = Fence::NoFence();
-}
-
-void BufferQueueCore::FreeAllBuffersLocked() {
- buffer_has_been_queued = false;
-
- for (s32 slot = 0; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) {
- FreeBufferLocked(slot);
- }
-}
-
-bool BufferQueueCore::StillTracking(const BufferItem& item) const {
- const BufferSlot& slot = slots[item.slot];
-
- return (slot.graphic_buffer != nullptr) && (item.graphic_buffer == slot.graphic_buffer);
-}
-
-void BufferQueueCore::WaitWhileAllocatingLocked() const {
- while (is_allocating) {
- is_allocating_condition.wait(mutex);
- }
-}
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.h b/src/core/hle/service/nvflinger/buffer_queue_core.h
deleted file mode 100644
index 85b3bc4c1..000000000
--- a/src/core/hle/service/nvflinger/buffer_queue_core.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueCore.h
-
-#pragma once
-
-#include <condition_variable>
-#include <list>
-#include <memory>
-#include <mutex>
-#include <set>
-#include <vector>
-
-#include "core/hle/service/nvflinger/buffer_item.h"
-#include "core/hle/service/nvflinger/buffer_queue_defs.h"
-#include "core/hle/service/nvflinger/pixel_format.h"
-#include "core/hle/service/nvflinger/status.h"
-#include "core/hle/service/nvflinger/window.h"
-
-namespace Service::android {
-
-class IConsumerListener;
-class IProducerListener;
-
-class BufferQueueCore final {
- friend class BufferQueueProducer;
- friend class BufferQueueConsumer;
-
-public:
- static constexpr s32 INVALID_BUFFER_SLOT = BufferItem::INVALID_BUFFER_SLOT;
-
- BufferQueueCore();
- ~BufferQueueCore();
-
- void NotifyShutdown();
-
-private:
- void SignalDequeueCondition();
- bool WaitForDequeueCondition(std::unique_lock<std::mutex>& lk);
-
- s32 GetMinUndequeuedBufferCountLocked(bool async) const;
- s32 GetMinMaxBufferCountLocked(bool async) const;
- s32 GetMaxBufferCountLocked(bool async) const;
- s32 GetPreallocatedBufferCountLocked() const;
- void FreeBufferLocked(s32 slot);
- void FreeAllBuffersLocked();
- bool StillTracking(const BufferItem& item) const;
- void WaitWhileAllocatingLocked() const;
-
-private:
- mutable std::mutex mutex;
- bool is_abandoned{};
- bool consumer_controlled_by_app{};
- std::shared_ptr<IConsumerListener> consumer_listener;
- u32 consumer_usage_bit{};
- NativeWindowApi connected_api{NativeWindowApi::NoConnectedApi};
- std::shared_ptr<IProducerListener> connected_producer_listener;
- BufferQueueDefs::SlotsType slots{};
- std::vector<BufferItem> queue;
- s32 override_max_buffer_count{};
- std::condition_variable dequeue_condition;
- std::atomic<bool> dequeue_possible{};
- const bool use_async_buffer{}; // This is always disabled on HOS
- bool dequeue_buffer_cannot_block{};
- PixelFormat default_buffer_format{PixelFormat::Rgba8888};
- u32 default_width{1};
- u32 default_height{1};
- s32 default_max_buffer_count{2};
- const s32 max_acquired_buffer_count{}; // This is always zero on HOS
- bool buffer_has_been_queued{};
- u64 frame_counter{};
- u32 transform_hint{};
- bool is_allocating{};
- mutable std::condition_variable_any is_allocating_condition;
- bool is_shutting_down{};
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_defs.h b/src/core/hle/service/nvflinger/buffer_queue_defs.h
deleted file mode 100644
index 334445213..000000000
--- a/src/core/hle/service/nvflinger/buffer_queue_defs.h
+++ /dev/null
@@ -1,21 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueDefs.h
-
-#pragma once
-
-#include <array>
-
-#include "common/common_types.h"
-#include "core/hle/service/nvflinger/buffer_slot.h"
-
-namespace Service::android::BufferQueueDefs {
-
-// BufferQueue will keep track of at most this value of buffers.
-constexpr s32 NUM_BUFFER_SLOTS = 64;
-
-using SlotsType = std::array<BufferSlot, NUM_BUFFER_SLOTS>;
-
-} // namespace Service::android::BufferQueueDefs
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
deleted file mode 100644
index e601b5da1..000000000
--- a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
+++ /dev/null
@@ -1,933 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferQueueProducer.cpp
-
-#include "common/assert.h"
-#include "common/logging/log.h"
-#include "common/settings.h"
-#include "core/core.h"
-#include "core/hle/kernel/hle_ipc.h"
-#include "core/hle/kernel/k_event.h"
-#include "core/hle/kernel/k_readable_event.h"
-#include "core/hle/kernel/kernel.h"
-#include "core/hle/service/kernel_helpers.h"
-#include "core/hle/service/nvdrv/core/nvmap.h"
-#include "core/hle/service/nvflinger/buffer_queue_core.h"
-#include "core/hle/service/nvflinger/buffer_queue_producer.h"
-#include "core/hle/service/nvflinger/consumer_listener.h"
-#include "core/hle/service/nvflinger/parcel.h"
-#include "core/hle/service/nvflinger/ui/graphic_buffer.h"
-#include "core/hle/service/nvflinger/window.h"
-#include "core/hle/service/vi/vi.h"
-
-namespace Service::android {
-
-BufferQueueProducer::BufferQueueProducer(Service::KernelHelpers::ServiceContext& service_context_,
- std::shared_ptr<BufferQueueCore> buffer_queue_core_,
- Service::Nvidia::NvCore::NvMap& nvmap_)
- : service_context{service_context_}, core{std::move(buffer_queue_core_)}, slots(core->slots),
- nvmap(nvmap_) {
- buffer_wait_event = service_context.CreateEvent("BufferQueue:WaitEvent");
-}
-
-BufferQueueProducer::~BufferQueueProducer() {
- service_context.CloseEvent(buffer_wait_event);
-}
-
-Status BufferQueueProducer::RequestBuffer(s32 slot, std::shared_ptr<GraphicBuffer>* buf) {
- LOG_DEBUG(Service_NVFlinger, "slot {}", slot);
-
- std::scoped_lock lock{core->mutex};
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
- if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
- LOG_ERROR(Service_NVFlinger, "slot index {} out of range [0, {})", slot,
- BufferQueueDefs::NUM_BUFFER_SLOTS);
- return Status::BadValue;
- } else if (slots[slot].buffer_state != BufferState::Dequeued) {
- LOG_ERROR(Service_NVFlinger, "slot {} is not owned by the producer (state = {})", slot,
- slots[slot].buffer_state);
- return Status::BadValue;
- }
-
- slots[slot].request_buffer_called = true;
- *buf = slots[slot].graphic_buffer;
-
- return Status::NoError;
-}
-
-Status BufferQueueProducer::SetBufferCount(s32 buffer_count) {
- LOG_DEBUG(Service_NVFlinger, "count = {}", buffer_count);
-
- std::shared_ptr<IConsumerListener> listener;
- {
- std::scoped_lock lock{core->mutex};
- core->WaitWhileAllocatingLocked();
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- if (buffer_count > BufferQueueDefs::NUM_BUFFER_SLOTS) {
- LOG_ERROR(Service_NVFlinger, "buffer_count {} too large (max {})", buffer_count,
- BufferQueueDefs::NUM_BUFFER_SLOTS);
- return Status::BadValue;
- }
-
- // There must be no dequeued buffers when changing the buffer count.
- for (s32 s{}; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
- if (slots[s].buffer_state == BufferState::Dequeued) {
- LOG_ERROR(Service_NVFlinger, "buffer owned by producer");
- return Status::BadValue;
- }
- }
-
- if (buffer_count == 0) {
- core->override_max_buffer_count = 0;
- core->SignalDequeueCondition();
- return Status::NoError;
- }
-
- const s32 min_buffer_slots = core->GetMinMaxBufferCountLocked(false);
- if (buffer_count < min_buffer_slots) {
- LOG_ERROR(Service_NVFlinger, "requested buffer count {} is less than minimum {}",
- buffer_count, min_buffer_slots);
- return Status::BadValue;
- }
-
- // Here we are guaranteed that the producer doesn't have any dequeued buffers and will
- // release all of its buffer references.
- if (core->GetPreallocatedBufferCountLocked() <= 0) {
- core->FreeAllBuffersLocked();
- }
-
- core->override_max_buffer_count = buffer_count;
- core->SignalDequeueCondition();
- buffer_wait_event->Signal();
- listener = core->consumer_listener;
- }
-
- // Call back without lock held
- if (listener != nullptr) {
- listener->OnBuffersReleased();
- }
-
- return Status::NoError;
-}
-
-Status BufferQueueProducer::WaitForFreeSlotThenRelock(bool async, s32* found, Status* return_flags,
- std::unique_lock<std::mutex>& lk) const {
- bool try_again = true;
-
- while (try_again) {
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- const s32 max_buffer_count = core->GetMaxBufferCountLocked(async);
- if (async && core->override_max_buffer_count) {
- if (core->override_max_buffer_count < max_buffer_count) {
- LOG_ERROR(Service_NVFlinger, "async mode is invalid with buffer count override");
- return Status::BadValue;
- }
- }
-
- // Free up any buffers that are in slots beyond the max buffer count
- for (s32 s = max_buffer_count; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
- ASSERT(slots[s].buffer_state == BufferState::Free);
- if (slots[s].graphic_buffer != nullptr) {
- core->FreeBufferLocked(s);
- *return_flags |= Status::ReleaseAllBuffers;
- }
- }
-
- // Look for a free buffer to give to the client
- *found = BufferQueueCore::INVALID_BUFFER_SLOT;
- s32 dequeued_count{};
- s32 acquired_count{};
- for (s32 s{}; s < max_buffer_count; ++s) {
- switch (slots[s].buffer_state) {
- case BufferState::Dequeued:
- ++dequeued_count;
- break;
- case BufferState::Acquired:
- ++acquired_count;
- break;
- case BufferState::Free:
- // We return the oldest of the free buffers to avoid stalling the producer if
- // possible, since the consumer may still have pending reads of in-flight buffers
- if (*found == BufferQueueCore::INVALID_BUFFER_SLOT ||
- slots[s].frame_number < slots[*found].frame_number) {
- *found = s;
- }
- break;
- default:
- break;
- }
- }
-
- // Producers are not allowed to dequeue more than one buffer if they did not set a buffer
- // count
- if (!core->override_max_buffer_count && dequeued_count) {
- LOG_ERROR(Service_NVFlinger,
- "can't dequeue multiple buffers without setting the buffer count");
- return Status::InvalidOperation;
- }
-
- // See whether a buffer has been queued since the last SetBufferCount so we know whether to
- // perform the min undequeued buffers check below
- if (core->buffer_has_been_queued) {
- // Make sure the producer is not trying to dequeue more buffers than allowed
- const s32 new_undequeued_count = max_buffer_count - (dequeued_count + 1);
- const s32 min_undequeued_count = core->GetMinUndequeuedBufferCountLocked(async);
- if (new_undequeued_count < min_undequeued_count) {
- LOG_ERROR(Service_NVFlinger,
- "min undequeued buffer count({}) exceeded (dequeued={} undequeued={})",
- min_undequeued_count, dequeued_count, new_undequeued_count);
- return Status::InvalidOperation;
- }
- }
-
- // If we disconnect and reconnect quickly, we can be in a state where our slots are empty
- // but we have many buffers in the queue. This can cause us to run out of memory if we
- // outrun the consumer. Wait here if it looks like we have too many buffers queued up.
- const bool too_many_buffers = core->queue.size() > static_cast<size_t>(max_buffer_count);
- if (too_many_buffers) {
- LOG_ERROR(Service_NVFlinger, "queue size is {}, waiting", core->queue.size());
- }
-
- // If no buffer is found, or if the queue has too many buffers outstanding, wait for a
- // buffer to be acquired or released, or for the max buffer count to change.
- try_again = (*found == BufferQueueCore::INVALID_BUFFER_SLOT) || too_many_buffers;
- if (try_again) {
- // Return an error if we're in non-blocking mode (producer and consumer are controlled
- // by the application).
- if (core->dequeue_buffer_cannot_block &&
- (acquired_count <= core->max_acquired_buffer_count)) {
- return Status::WouldBlock;
- }
-
- if (!core->WaitForDequeueCondition(lk)) {
- // We are no longer running
- return Status::NoError;
- }
- }
- }
-
- return Status::NoError;
-}
-
-Status BufferQueueProducer::DequeueBuffer(s32* out_slot, Fence* out_fence, bool async, u32 width,
- u32 height, PixelFormat format, u32 usage) {
- LOG_DEBUG(Service_NVFlinger, "async={} w={} h={} format={}, usage={}", async ? "true" : "false",
- width, height, format, usage);
-
- if ((width != 0 && height == 0) || (width == 0 && height != 0)) {
- LOG_ERROR(Service_NVFlinger, "invalid size: w={} h={}", width, height);
- return Status::BadValue;
- }
-
- Status return_flags = Status::NoError;
- bool attached_by_consumer = false;
- {
- std::unique_lock lock{core->mutex};
- core->WaitWhileAllocatingLocked();
-
- if (format == PixelFormat::NoFormat) {
- format = core->default_buffer_format;
- }
-
- // Enable the usage bits the consumer requested
- usage |= core->consumer_usage_bit;
-
- s32 found{};
- Status status = WaitForFreeSlotThenRelock(async, &found, &return_flags, lock);
- if (status != Status::NoError) {
- return status;
- }
-
- // This should not happen
- if (found == BufferQueueCore::INVALID_BUFFER_SLOT) {
- LOG_ERROR(Service_NVFlinger, "no available buffer slots");
- return Status::Busy;
- }
-
- *out_slot = found;
-
- attached_by_consumer = slots[found].attached_by_consumer;
-
- const bool use_default_size = !width && !height;
- if (use_default_size) {
- width = core->default_width;
- height = core->default_height;
- }
-
- slots[found].buffer_state = BufferState::Dequeued;
-
- const std::shared_ptr<GraphicBuffer>& buffer(slots[found].graphic_buffer);
- if ((buffer == nullptr) || (buffer->Width() != width) || (buffer->Height() != height) ||
- (buffer->Format() != format) || ((buffer->Usage() & usage) != usage)) {
- slots[found].acquire_called = false;
- slots[found].graphic_buffer = nullptr;
- slots[found].request_buffer_called = false;
- slots[found].fence = Fence::NoFence();
-
- return_flags |= Status::BufferNeedsReallocation;
- }
-
- *out_fence = slots[found].fence;
- slots[found].fence = Fence::NoFence();
- }
-
- if ((return_flags & Status::BufferNeedsReallocation) != Status::None) {
- LOG_DEBUG(Service_NVFlinger, "allocating a new buffer for slot {}", *out_slot);
-
- auto graphic_buffer = std::make_shared<GraphicBuffer>(width, height, format, usage);
- if (graphic_buffer == nullptr) {
- LOG_ERROR(Service_NVFlinger, "creating GraphicBuffer failed");
- return Status::NoMemory;
- }
-
- {
- std::scoped_lock lock{core->mutex};
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- slots[*out_slot].frame_number = UINT32_MAX;
- slots[*out_slot].graphic_buffer = graphic_buffer;
- }
- }
-
- if (attached_by_consumer) {
- return_flags |= Status::BufferNeedsReallocation;
- }
-
- LOG_DEBUG(Service_NVFlinger, "returning slot={} frame={}, flags={}", *out_slot,
- slots[*out_slot].frame_number, return_flags);
-
- return return_flags;
-}
-
-Status BufferQueueProducer::DetachBuffer(s32 slot) {
- LOG_DEBUG(Service_NVFlinger, "slot {}", slot);
-
- std::scoped_lock lock{core->mutex};
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
- LOG_ERROR(Service_NVFlinger, "slot {} out of range [0, {})", slot,
- BufferQueueDefs::NUM_BUFFER_SLOTS);
- return Status::BadValue;
- } else if (slots[slot].buffer_state != BufferState::Dequeued) {
- LOG_ERROR(Service_NVFlinger, "slot {} is not owned by the producer (state = {})", slot,
- slots[slot].buffer_state);
- return Status::BadValue;
- } else if (!slots[slot].request_buffer_called) {
- LOG_ERROR(Service_NVFlinger, "buffer in slot {} has not been requested", slot);
- return Status::BadValue;
- }
-
- core->FreeBufferLocked(slot);
- core->SignalDequeueCondition();
-
- return Status::NoError;
-}
-
-Status BufferQueueProducer::DetachNextBuffer(std::shared_ptr<GraphicBuffer>* out_buffer,
- Fence* out_fence) {
- if (out_buffer == nullptr) {
- LOG_ERROR(Service_NVFlinger, "out_buffer must not be nullptr");
- return Status::BadValue;
- } else if (out_fence == nullptr) {
- LOG_ERROR(Service_NVFlinger, "out_fence must not be nullptr");
- return Status::BadValue;
- }
-
- std::scoped_lock lock{core->mutex};
- core->WaitWhileAllocatingLocked();
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- // Find the oldest valid slot
- int found = BufferQueueCore::INVALID_BUFFER_SLOT;
- for (int s = 0; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
- if (slots[s].buffer_state == BufferState::Free && slots[s].graphic_buffer != nullptr) {
- if (found == BufferQueueCore::INVALID_BUFFER_SLOT ||
- slots[s].frame_number < slots[found].frame_number) {
- found = s;
- }
- }
- }
-
- if (found == BufferQueueCore::INVALID_BUFFER_SLOT) {
- return Status::NoMemory;
- }
-
- LOG_DEBUG(Service_NVFlinger, "Detached slot {}", found);
-
- *out_buffer = slots[found].graphic_buffer;
- *out_fence = slots[found].fence;
-
- core->FreeBufferLocked(found);
-
- return Status::NoError;
-}
-
-Status BufferQueueProducer::AttachBuffer(s32* out_slot,
- const std::shared_ptr<GraphicBuffer>& buffer) {
- if (out_slot == nullptr) {
- LOG_ERROR(Service_NVFlinger, "out_slot must not be nullptr");
- return Status::BadValue;
- } else if (buffer == nullptr) {
- LOG_ERROR(Service_NVFlinger, "Cannot attach nullptr buffer");
- return Status::BadValue;
- }
-
- std::unique_lock lock{core->mutex};
- core->WaitWhileAllocatingLocked();
-
- Status return_flags = Status::NoError;
- s32 found{};
-
- const auto status = WaitForFreeSlotThenRelock(false, &found, &return_flags, lock);
- if (status != Status::NoError) {
- return status;
- }
-
- // This should not happen
- if (found == BufferQueueCore::INVALID_BUFFER_SLOT) {
- LOG_ERROR(Service_NVFlinger, "No available buffer slots");
- return Status::Busy;
- }
-
- *out_slot = found;
-
- LOG_DEBUG(Service_NVFlinger, "Returning slot {} flags={}", *out_slot, return_flags);
-
- slots[*out_slot].graphic_buffer = buffer;
- slots[*out_slot].buffer_state = BufferState::Dequeued;
- slots[*out_slot].fence = Fence::NoFence();
- slots[*out_slot].request_buffer_called = true;
-
- return return_flags;
-}
-
-Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input,
- QueueBufferOutput* output) {
- s64 timestamp{};
- bool is_auto_timestamp{};
- Common::Rectangle<s32> crop;
- NativeWindowScalingMode scaling_mode{};
- NativeWindowTransform transform;
- u32 sticky_transform_{};
- bool async{};
- s32 swap_interval{};
- Fence fence{};
-
- input.Deflate(&timestamp, &is_auto_timestamp, &crop, &scaling_mode, &transform,
- &sticky_transform_, &async, &swap_interval, &fence);
-
- switch (scaling_mode) {
- case NativeWindowScalingMode::Freeze:
- case NativeWindowScalingMode::ScaleToWindow:
- case NativeWindowScalingMode::ScaleCrop:
- case NativeWindowScalingMode::NoScaleCrop:
- break;
- default:
- LOG_ERROR(Service_NVFlinger, "unknown scaling mode {}", scaling_mode);
- return Status::BadValue;
- }
-
- std::shared_ptr<IConsumerListener> frame_available_listener;
- std::shared_ptr<IConsumerListener> frame_replaced_listener;
- s32 callback_ticket{};
- BufferItem item;
-
- {
- std::scoped_lock lock{core->mutex};
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- const s32 max_buffer_count = core->GetMaxBufferCountLocked(async);
- if (async && core->override_max_buffer_count) {
- if (core->override_max_buffer_count < max_buffer_count) {
- LOG_ERROR(Service_NVFlinger, "async mode is invalid with "
- "buffer count override");
- return Status::BadValue;
- }
- }
-
- if (slot < 0 || slot >= max_buffer_count) {
- LOG_ERROR(Service_NVFlinger, "slot index {} out of range [0, {})", slot,
- max_buffer_count);
- return Status::BadValue;
- } else if (slots[slot].buffer_state != BufferState::Dequeued) {
- LOG_ERROR(Service_NVFlinger,
- "slot {} is not owned by the producer "
- "(state = {})",
- slot, slots[slot].buffer_state);
- return Status::BadValue;
- } else if (!slots[slot].request_buffer_called) {
- LOG_ERROR(Service_NVFlinger,
- "slot {} was queued without requesting "
- "a buffer",
- slot);
- return Status::BadValue;
- }
-
- LOG_DEBUG(Service_NVFlinger,
- "slot={} frame={} time={} crop=[{},{},{},{}] transform={} scale={}", slot,
- core->frame_counter + 1, timestamp, crop.Left(), crop.Top(), crop.Right(),
- crop.Bottom(), transform, scaling_mode);
-
- const std::shared_ptr<GraphicBuffer>& graphic_buffer(slots[slot].graphic_buffer);
- Common::Rectangle<s32> buffer_rect(graphic_buffer->Width(), graphic_buffer->Height());
- Common::Rectangle<s32> cropped_rect;
- [[maybe_unused]] const bool unused = crop.Intersect(buffer_rect, &cropped_rect);
-
- if (cropped_rect != crop) {
- LOG_ERROR(Service_NVFlinger, "crop rect is not contained within the buffer in slot {}",
- slot);
- return Status::BadValue;
- }
-
- slots[slot].fence = fence;
- slots[slot].buffer_state = BufferState::Queued;
- ++core->frame_counter;
- slots[slot].frame_number = core->frame_counter;
-
- item.acquire_called = slots[slot].acquire_called;
- item.graphic_buffer = slots[slot].graphic_buffer;
- item.crop = crop;
- item.transform = transform & ~NativeWindowTransform::InverseDisplay;
- item.transform_to_display_inverse =
- (transform & NativeWindowTransform::InverseDisplay) != NativeWindowTransform::None;
- item.scaling_mode = static_cast<u32>(scaling_mode);
- item.timestamp = timestamp;
- item.is_auto_timestamp = is_auto_timestamp;
- item.frame_number = core->frame_counter;
- item.slot = slot;
- item.fence = fence;
- item.is_droppable = core->dequeue_buffer_cannot_block || async;
- item.swap_interval = swap_interval;
-
- nvmap.DuplicateHandle(item.graphic_buffer->BufferId(), true);
-
- sticky_transform = sticky_transform_;
-
- if (core->queue.empty()) {
- // When the queue is empty, we can simply queue this buffer
- core->queue.push_back(item);
- frame_available_listener = core->consumer_listener;
- } else {
- // When the queue is not empty, we need to look at the front buffer
- // state to see if we need to replace it
- auto front(core->queue.begin());
-
- if (front->is_droppable) {
- // If the front queued buffer is still being tracked, we first
- // mark it as freed
- if (core->StillTracking(*front)) {
- slots[front->slot].buffer_state = BufferState::Free;
- // Reset the frame number of the freed buffer so that it is the first in line to
- // be dequeued again
- slots[front->slot].frame_number = 0;
- }
- // Overwrite the droppable buffer with the incoming one
- *front = item;
- frame_replaced_listener = core->consumer_listener;
- } else {
- core->queue.push_back(item);
- frame_available_listener = core->consumer_listener;
- }
- }
-
- core->buffer_has_been_queued = true;
- core->SignalDequeueCondition();
- output->Inflate(core->default_width, core->default_height, core->transform_hint,
- static_cast<u32>(core->queue.size()));
-
- // Take a ticket for the callback functions
- callback_ticket = next_callback_ticket++;
- }
-
- // Don't send the GraphicBuffer through the callback, and don't send the slot number, since the
- // consumer shouldn't need it
- item.graphic_buffer.reset();
- item.slot = BufferItem::INVALID_BUFFER_SLOT;
-
- // Call back without the main BufferQueue lock held, but with the callback lock held so we can
- // ensure that callbacks occur in order
- {
- std::scoped_lock lock{callback_mutex};
- while (callback_ticket != current_callback_ticket) {
- callback_condition.wait(callback_mutex);
- }
-
- if (frame_available_listener != nullptr) {
- frame_available_listener->OnFrameAvailable(item);
- } else if (frame_replaced_listener != nullptr) {
- frame_replaced_listener->OnFrameReplaced(item);
- }
-
- ++current_callback_ticket;
- callback_condition.notify_all();
- }
-
- return Status::NoError;
-}
-
-void BufferQueueProducer::CancelBuffer(s32 slot, const Fence& fence) {
- LOG_DEBUG(Service_NVFlinger, "slot {}", slot);
-
- std::scoped_lock lock{core->mutex};
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return;
- }
-
- if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
- LOG_ERROR(Service_NVFlinger, "slot index {} out of range [0, {})", slot,
- BufferQueueDefs::NUM_BUFFER_SLOTS);
- return;
- } else if (slots[slot].buffer_state != BufferState::Dequeued) {
- LOG_ERROR(Service_NVFlinger, "slot {} is not owned by the producer (state = {})", slot,
- slots[slot].buffer_state);
- return;
- }
-
- slots[slot].buffer_state = BufferState::Free;
- slots[slot].frame_number = 0;
- slots[slot].fence = fence;
-
- core->SignalDequeueCondition();
- buffer_wait_event->Signal();
-}
-
-Status BufferQueueProducer::Query(NativeWindow what, s32* out_value) {
- std::scoped_lock lock{core->mutex};
-
- if (out_value == nullptr) {
- LOG_ERROR(Service_NVFlinger, "outValue was nullptr");
- return Status::BadValue;
- }
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- u32 value{};
- switch (what) {
- case NativeWindow::Width:
- value = core->default_width;
- break;
- case NativeWindow::Height:
- value = core->default_height;
- break;
- case NativeWindow::Format:
- value = static_cast<u32>(core->default_buffer_format);
- break;
- case NativeWindow::MinUndequeedBuffers:
- value = core->GetMinUndequeuedBufferCountLocked(false);
- break;
- case NativeWindow::StickyTransform:
- value = sticky_transform;
- break;
- case NativeWindow::ConsumerRunningBehind:
- value = (core->queue.size() > 1);
- break;
- case NativeWindow::ConsumerUsageBits:
- value = core->consumer_usage_bit;
- break;
- default:
- ASSERT(false);
- return Status::BadValue;
- }
-
- LOG_DEBUG(Service_NVFlinger, "what = {}, value = {}", what, value);
-
- *out_value = static_cast<s32>(value);
-
- return Status::NoError;
-}
-
-Status BufferQueueProducer::Connect(const std::shared_ptr<IProducerListener>& listener,
- NativeWindowApi api, bool producer_controlled_by_app,
- QueueBufferOutput* output) {
- std::scoped_lock lock{core->mutex};
-
- LOG_DEBUG(Service_NVFlinger, "api = {} producer_controlled_by_app = {}", api,
- producer_controlled_by_app);
-
- if (core->is_abandoned) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has been abandoned");
- return Status::NoInit;
- }
-
- if (core->consumer_listener == nullptr) {
- LOG_ERROR(Service_NVFlinger, "BufferQueue has no consumer");
- return Status::NoInit;
- }
-
- if (output == nullptr) {
- LOG_ERROR(Service_NVFlinger, "output was nullptr");
- return Status::BadValue;
- }
-
- if (core->connected_api != NativeWindowApi::NoConnectedApi) {
- LOG_ERROR(Service_NVFlinger, "already connected (cur = {} req = {})", core->connected_api,
- api);
- return Status::BadValue;
- }
-
- Status status = Status::NoError;
- switch (api) {
- case NativeWindowApi::Egl:
- case NativeWindowApi::Cpu:
- case NativeWindowApi::Media:
- case NativeWindowApi::Camera:
- core->connected_api = api;
- output->Inflate(core->default_width, core->default_height, core->transform_hint,
- static_cast<u32>(core->queue.size()));
- core->connected_producer_listener = listener;
- break;
- default:
- LOG_ERROR(Service_NVFlinger, "unknown api = {}", api);
- status = Status::BadValue;
- break;
- }
-
- core->buffer_has_been_queued = false;
- core->dequeue_buffer_cannot_block =
- core->consumer_controlled_by_app && producer_controlled_by_app;
-
- return status;
-}
-
-Status BufferQueueProducer::Disconnect(NativeWindowApi api) {
- LOG_DEBUG(Service_NVFlinger, "api = {}", api);
-
- Status status = Status::NoError;
- std::shared_ptr<IConsumerListener> listener;
-
- {
- std::scoped_lock lock{core->mutex};
-
- core->WaitWhileAllocatingLocked();
-
- if (core->is_abandoned) {
- // Disconnecting after the surface has been abandoned is a no-op.
- return Status::NoError;
- }
-
- // HACK: We are not Android. Remove handle for items in queue, and clear queue.
- // Allows synchronous destruction of nvmap handles.
- for (auto& item : core->queue) {
- nvmap.FreeHandle(item.graphic_buffer->BufferId(), true);
- }
- core->queue.clear();
-
- switch (api) {
- case NativeWindowApi::Egl:
- case NativeWindowApi::Cpu:
- case NativeWindowApi::Media:
- case NativeWindowApi::Camera:
- if (core->connected_api == api) {
- core->FreeAllBuffersLocked();
- core->connected_producer_listener = nullptr;
- core->connected_api = NativeWindowApi::NoConnectedApi;
- core->SignalDequeueCondition();
- buffer_wait_event->Signal();
- listener = core->consumer_listener;
- } else {
- LOG_ERROR(Service_NVFlinger, "still connected to another api (cur = {} req = {})",
- core->connected_api, api);
- status = Status::BadValue;
- }
- break;
- default:
- LOG_ERROR(Service_NVFlinger, "unknown api = {}", api);
- status = Status::BadValue;
- break;
- }
- }
-
- // Call back without lock held
- if (listener != nullptr) {
- listener->OnBuffersReleased();
- }
-
- return status;
-}
-
-Status BufferQueueProducer::SetPreallocatedBuffer(s32 slot,
- const std::shared_ptr<GraphicBuffer>& buffer) {
- LOG_DEBUG(Service_NVFlinger, "slot {}", slot);
-
- if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
- return Status::BadValue;
- }
-
- std::scoped_lock lock{core->mutex};
-
- slots[slot] = {};
- slots[slot].graphic_buffer = buffer;
- slots[slot].frame_number = 0;
-
- // Most games preallocate a buffer and pass a valid buffer here. However, it is possible for
- // this to be called with an empty buffer, Naruto Ultimate Ninja Storm is a game that does this.
- if (buffer) {
- slots[slot].is_preallocated = true;
-
- core->override_max_buffer_count = core->GetPreallocatedBufferCountLocked();
- core->default_width = buffer->Width();
- core->default_height = buffer->Height();
- core->default_buffer_format = buffer->Format();
- }
-
- core->SignalDequeueCondition();
- buffer_wait_event->Signal();
-
- return Status::NoError;
-}
-
-void BufferQueueProducer::Transact(Kernel::HLERequestContext& ctx, TransactionId code, u32 flags) {
- Status status{Status::NoError};
- Parcel parcel_in{ctx.ReadBuffer()};
- Parcel parcel_out{};
-
- switch (code) {
- case TransactionId::Connect: {
- const auto enable_listener = parcel_in.Read<bool>();
- const auto api = parcel_in.Read<NativeWindowApi>();
- const auto producer_controlled_by_app = parcel_in.Read<bool>();
-
- UNIMPLEMENTED_IF_MSG(enable_listener, "Listener is unimplemented!");
-
- std::shared_ptr<IProducerListener> listener;
- QueueBufferOutput output{};
-
- status = Connect(listener, api, producer_controlled_by_app, &output);
-
- parcel_out.Write(output);
- break;
- }
- case TransactionId::SetPreallocatedBuffer: {
- const auto slot = parcel_in.Read<s32>();
- const auto buffer = parcel_in.ReadObject<GraphicBuffer>();
-
- status = SetPreallocatedBuffer(slot, buffer);
- break;
- }
- case TransactionId::DequeueBuffer: {
- const auto is_async = parcel_in.Read<bool>();
- const auto width = parcel_in.Read<u32>();
- const auto height = parcel_in.Read<u32>();
- const auto pixel_format = parcel_in.Read<PixelFormat>();
- const auto usage = parcel_in.Read<u32>();
-
- s32 slot{};
- Fence fence{};
-
- status = DequeueBuffer(&slot, &fence, is_async, width, height, pixel_format, usage);
-
- parcel_out.Write(slot);
- parcel_out.WriteObject(&fence);
- break;
- }
- case TransactionId::RequestBuffer: {
- const auto slot = parcel_in.Read<s32>();
-
- std::shared_ptr<GraphicBuffer> buf;
-
- status = RequestBuffer(slot, &buf);
-
- parcel_out.WriteObject(buf);
- break;
- }
- case TransactionId::QueueBuffer: {
- const auto slot = parcel_in.Read<s32>();
-
- QueueBufferInput input{parcel_in};
- QueueBufferOutput output;
-
- status = QueueBuffer(slot, input, &output);
-
- parcel_out.Write(output);
- break;
- }
- case TransactionId::Query: {
- const auto what = parcel_in.Read<NativeWindow>();
-
- s32 value{};
-
- status = Query(what, &value);
-
- parcel_out.Write(value);
- break;
- }
- case TransactionId::CancelBuffer: {
- const auto slot = parcel_in.Read<s32>();
- const auto fence = parcel_in.ReadFlattened<Fence>();
-
- CancelBuffer(slot, fence);
- break;
- }
- case TransactionId::Disconnect: {
- const auto api = parcel_in.Read<NativeWindowApi>();
-
- status = Disconnect(api);
- break;
- }
- case TransactionId::DetachBuffer: {
- const auto slot = parcel_in.Read<s32>();
-
- status = DetachBuffer(slot);
- break;
- }
- case TransactionId::SetBufferCount: {
- const auto buffer_count = parcel_in.Read<s32>();
-
- status = SetBufferCount(buffer_count);
- break;
- }
- case TransactionId::GetBufferHistory:
- LOG_WARNING(Service_NVFlinger, "(STUBBED) called, transaction=GetBufferHistory");
- break;
- default:
- ASSERT_MSG(false, "Unimplemented TransactionId {}", code);
- break;
- }
-
- parcel_out.Write(status);
-
- ctx.WriteBuffer(parcel_out.Serialize());
-}
-
-Kernel::KReadableEvent& BufferQueueProducer::GetNativeHandle() {
- return buffer_wait_event->GetReadableEvent();
-}
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.h b/src/core/hle/service/nvflinger/buffer_queue_producer.h
deleted file mode 100644
index 1d380480f..000000000
--- a/src/core/hle/service/nvflinger/buffer_queue_producer.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueProducer.h
-
-#pragma once
-
-#include <condition_variable>
-#include <memory>
-#include <mutex>
-
-#include "common/common_funcs.h"
-#include "core/hle/service/nvdrv/nvdata.h"
-#include "core/hle/service/nvflinger/binder.h"
-#include "core/hle/service/nvflinger/buffer_queue_defs.h"
-#include "core/hle/service/nvflinger/buffer_slot.h"
-#include "core/hle/service/nvflinger/graphic_buffer_producer.h"
-#include "core/hle/service/nvflinger/pixel_format.h"
-#include "core/hle/service/nvflinger/status.h"
-#include "core/hle/service/nvflinger/window.h"
-
-namespace Kernel {
-class KernelCore;
-class KEvent;
-class KReadableEvent;
-} // namespace Kernel
-
-namespace Service::KernelHelpers {
-class ServiceContext;
-} // namespace Service::KernelHelpers
-
-namespace Service::Nvidia::NvCore {
-class NvMap;
-} // namespace Service::Nvidia::NvCore
-
-namespace Service::android {
-
-class BufferQueueCore;
-class IProducerListener;
-
-class BufferQueueProducer final : public IBinder {
-public:
- explicit BufferQueueProducer(Service::KernelHelpers::ServiceContext& service_context_,
- std::shared_ptr<BufferQueueCore> buffer_queue_core_,
- Service::Nvidia::NvCore::NvMap& nvmap_);
- ~BufferQueueProducer();
-
- void Transact(Kernel::HLERequestContext& ctx, android::TransactionId code, u32 flags) override;
-
- Kernel::KReadableEvent& GetNativeHandle() override;
-
-public:
- Status RequestBuffer(s32 slot, std::shared_ptr<GraphicBuffer>* buf);
- Status SetBufferCount(s32 buffer_count);
- Status DequeueBuffer(s32* out_slot, android::Fence* out_fence, bool async, u32 width,
- u32 height, PixelFormat format, u32 usage);
- Status DetachBuffer(s32 slot);
- Status DetachNextBuffer(std::shared_ptr<GraphicBuffer>* out_buffer, Fence* out_fence);
- Status AttachBuffer(s32* outSlot, const std::shared_ptr<GraphicBuffer>& buffer);
- Status QueueBuffer(s32 slot, const QueueBufferInput& input, QueueBufferOutput* output);
- void CancelBuffer(s32 slot, const Fence& fence);
- Status Query(NativeWindow what, s32* out_value);
- Status Connect(const std::shared_ptr<IProducerListener>& listener, NativeWindowApi api,
- bool producer_controlled_by_app, QueueBufferOutput* output);
-
- Status Disconnect(NativeWindowApi api);
- Status SetPreallocatedBuffer(s32 slot, const std::shared_ptr<GraphicBuffer>& buffer);
-
-private:
- BufferQueueProducer(const BufferQueueProducer&) = delete;
-
- Status WaitForFreeSlotThenRelock(bool async, s32* found, Status* return_flags,
- std::unique_lock<std::mutex>& lk) const;
-
- Kernel::KEvent* buffer_wait_event{};
- Service::KernelHelpers::ServiceContext& service_context;
-
- std::shared_ptr<BufferQueueCore> core;
- BufferQueueDefs::SlotsType& slots;
- u32 sticky_transform{};
- std::mutex callback_mutex;
- s32 next_callback_ticket{};
- s32 current_callback_ticket{};
- std::condition_variable_any callback_condition;
-
- Service::Nvidia::NvCore::NvMap& nvmap;
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_slot.h b/src/core/hle/service/nvflinger/buffer_slot.h
deleted file mode 100644
index 0cd0e9964..000000000
--- a/src/core/hle/service/nvflinger/buffer_slot.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferSlot.h
-
-#pragma once
-
-#include <memory>
-
-#include "common/common_types.h"
-#include "core/hle/service/nvflinger/ui/fence.h"
-
-namespace Service::android {
-
-class GraphicBuffer;
-
-enum class BufferState : u32 {
- Free = 0,
- Dequeued = 1,
- Queued = 2,
- Acquired = 3,
-};
-
-struct BufferSlot final {
- constexpr BufferSlot() = default;
-
- std::shared_ptr<GraphicBuffer> graphic_buffer;
- BufferState buffer_state{BufferState::Free};
- bool request_buffer_called{};
- u64 frame_number{};
- Fence fence;
- bool acquire_called{};
- bool attached_by_consumer{};
- bool is_preallocated{};
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/consumer_base.cpp b/src/core/hle/service/nvflinger/consumer_base.cpp
deleted file mode 100644
index 982531e2d..000000000
--- a/src/core/hle/service/nvflinger/consumer_base.cpp
+++ /dev/null
@@ -1,133 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/ConsumerBase.cpp
-
-#include "common/assert.h"
-#include "common/logging/log.h"
-#include "core/hle/service/nvflinger/buffer_item.h"
-#include "core/hle/service/nvflinger/buffer_queue_consumer.h"
-#include "core/hle/service/nvflinger/buffer_queue_core.h"
-#include "core/hle/service/nvflinger/consumer_base.h"
-#include "core/hle/service/nvflinger/ui/graphic_buffer.h"
-
-namespace Service::android {
-
-ConsumerBase::ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_)
- : consumer{std::move(consumer_)} {}
-
-ConsumerBase::~ConsumerBase() {
- std::scoped_lock lock{mutex};
-
- ASSERT_MSG(is_abandoned, "consumer is not abandoned!");
-}
-
-void ConsumerBase::Connect(bool controlled_by_app) {
- consumer->Connect(shared_from_this(), controlled_by_app);
-}
-
-void ConsumerBase::FreeBufferLocked(s32 slot_index) {
- LOG_DEBUG(Service_NVFlinger, "slot_index={}", slot_index);
-
- slots[slot_index].graphic_buffer = nullptr;
- slots[slot_index].fence = Fence::NoFence();
- slots[slot_index].frame_number = 0;
-}
-
-void ConsumerBase::OnFrameAvailable(const BufferItem& item) {
- LOG_DEBUG(Service_NVFlinger, "called");
-}
-
-void ConsumerBase::OnFrameReplaced(const BufferItem& item) {
- LOG_DEBUG(Service_NVFlinger, "called");
-}
-
-void ConsumerBase::OnBuffersReleased() {
- std::scoped_lock lock{mutex};
-
- LOG_DEBUG(Service_NVFlinger, "called");
-
- if (is_abandoned) {
- // Nothing to do if we're already abandoned.
- return;
- }
-
- u64 mask = 0;
- consumer->GetReleasedBuffers(&mask);
- for (int i = 0; i < BufferQueueDefs::NUM_BUFFER_SLOTS; i++) {
- if (mask & (1ULL << i)) {
- FreeBufferLocked(i);
- }
- }
-}
-
-void ConsumerBase::OnSidebandStreamChanged() {}
-
-Status ConsumerBase::AcquireBufferLocked(BufferItem* item, std::chrono::nanoseconds present_when) {
- Status err = consumer->AcquireBuffer(item, present_when);
- if (err != Status::NoError) {
- return err;
- }
-
- if (item->graphic_buffer != nullptr) {
- slots[item->slot].graphic_buffer = item->graphic_buffer;
- }
-
- slots[item->slot].frame_number = item->frame_number;
- slots[item->slot].fence = item->fence;
-
- LOG_DEBUG(Service_NVFlinger, "slot={}", item->slot);
-
- return Status::NoError;
-}
-
-Status ConsumerBase::AddReleaseFenceLocked(s32 slot,
- const std::shared_ptr<GraphicBuffer>& graphic_buffer,
- const Fence& fence) {
- LOG_DEBUG(Service_NVFlinger, "slot={}", slot);
-
- // If consumer no longer tracks this graphic_buffer, we can safely
- // drop this fence, as it will never be received by the producer.
-
- if (!StillTracking(slot, graphic_buffer)) {
- return Status::NoError;
- }
-
- slots[slot].fence = fence;
-
- return Status::NoError;
-}
-
-Status ConsumerBase::ReleaseBufferLocked(s32 slot,
- const std::shared_ptr<GraphicBuffer>& graphic_buffer) {
- // If consumer no longer tracks this graphic_buffer (we received a new
- // buffer on the same slot), the buffer producer is definitely no longer
- // tracking it.
-
- if (!StillTracking(slot, graphic_buffer)) {
- return Status::NoError;
- }
-
- LOG_DEBUG(Service_NVFlinger, "slot={}", slot);
- Status err = consumer->ReleaseBuffer(slot, slots[slot].frame_number, slots[slot].fence);
- if (err == Status::StaleBufferSlot) {
- FreeBufferLocked(slot);
- }
-
- slots[slot].fence = Fence::NoFence();
-
- return err;
-}
-
-bool ConsumerBase::StillTracking(s32 slot,
- const std::shared_ptr<GraphicBuffer>& graphic_buffer) const {
- if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
- return false;
- }
-
- return (slots[slot].graphic_buffer != nullptr &&
- slots[slot].graphic_buffer->Handle() == graphic_buffer->Handle());
-}
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/consumer_base.h b/src/core/hle/service/nvflinger/consumer_base.h
deleted file mode 100644
index 9a8a5f6bb..000000000
--- a/src/core/hle/service/nvflinger/consumer_base.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/ConsumerBase.h
-
-#pragma once
-
-#include <array>
-#include <chrono>
-#include <memory>
-#include <mutex>
-
-#include "common/common_types.h"
-#include "core/hle/service/nvflinger/buffer_queue_defs.h"
-#include "core/hle/service/nvflinger/consumer_listener.h"
-#include "core/hle/service/nvflinger/status.h"
-
-namespace Service::android {
-
-class BufferItem;
-class BufferQueueConsumer;
-
-class ConsumerBase : public IConsumerListener, public std::enable_shared_from_this<ConsumerBase> {
-public:
- void Connect(bool controlled_by_app);
-
-protected:
- explicit ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_);
- ~ConsumerBase() override;
-
- void OnFrameAvailable(const BufferItem& item) override;
- void OnFrameReplaced(const BufferItem& item) override;
- void OnBuffersReleased() override;
- void OnSidebandStreamChanged() override;
-
- void FreeBufferLocked(s32 slot_index);
- Status AcquireBufferLocked(BufferItem* item, std::chrono::nanoseconds present_when);
- Status ReleaseBufferLocked(s32 slot, const std::shared_ptr<GraphicBuffer>& graphic_buffer);
- bool StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer>& graphic_buffer) const;
- Status AddReleaseFenceLocked(s32 slot, const std::shared_ptr<GraphicBuffer>& graphic_buffer,
- const Fence& fence);
-
- struct Slot final {
- std::shared_ptr<GraphicBuffer> graphic_buffer;
- Fence fence;
- u64 frame_number{};
- };
-
-protected:
- std::array<Slot, BufferQueueDefs::NUM_BUFFER_SLOTS> slots;
-
- bool is_abandoned{};
-
- std::unique_ptr<BufferQueueConsumer> consumer;
-
- mutable std::mutex mutex;
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp b/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp
deleted file mode 100644
index 4043c91f1..000000000
--- a/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/IGraphicBufferProducer.cpp
-
-#include "core/hle/service/nvflinger/graphic_buffer_producer.h"
-#include "core/hle/service/nvflinger/parcel.h"
-
-namespace Service::android {
-
-QueueBufferInput::QueueBufferInput(Parcel& parcel) {
- parcel.ReadFlattened(*this);
-}
-
-QueueBufferOutput::QueueBufferOutput() = default;
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/graphic_buffer_producer.h b/src/core/hle/service/nvflinger/graphic_buffer_producer.h
deleted file mode 100644
index 6ea327bbe..000000000
--- a/src/core/hle/service/nvflinger/graphic_buffer_producer.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/IGraphicBufferProducer.h
-
-#pragma once
-
-#include "common/common_funcs.h"
-#include "common/common_types.h"
-#include "common/math_util.h"
-#include "core/hle/service/nvflinger/ui/fence.h"
-#include "core/hle/service/nvflinger/window.h"
-
-namespace Service::android {
-
-class Parcel;
-
-#pragma pack(push, 1)
-struct QueueBufferInput final {
- explicit QueueBufferInput(Parcel& parcel);
-
- void Deflate(s64* timestamp_, bool* is_auto_timestamp_, Common::Rectangle<s32>* crop_,
- NativeWindowScalingMode* scaling_mode_, NativeWindowTransform* transform_,
- u32* sticky_transform_, bool* async_, s32* swap_interval_, Fence* fence_) const {
- *timestamp_ = timestamp;
- *is_auto_timestamp_ = static_cast<bool>(is_auto_timestamp);
- *crop_ = crop;
- *scaling_mode_ = scaling_mode;
- *transform_ = transform;
- *sticky_transform_ = sticky_transform;
- *async_ = static_cast<bool>(async);
- *swap_interval_ = swap_interval;
- *fence_ = fence;
- }
-
-private:
- s64 timestamp{};
- s32 is_auto_timestamp{};
- Common::Rectangle<s32> crop{};
- NativeWindowScalingMode scaling_mode{};
- NativeWindowTransform transform{};
- u32 sticky_transform{};
- s32 async{};
- s32 swap_interval{};
- Fence fence{};
-};
-#pragma pack(pop)
-static_assert(sizeof(QueueBufferInput) == 84, "QueueBufferInput has wrong size");
-
-struct QueueBufferOutput final {
- QueueBufferOutput();
-
- void Deflate(u32* width_, u32* height_, u32* transform_hint_, u32* num_pending_buffers_) const {
- *width_ = width;
- *height_ = height;
- *transform_hint_ = transform_hint;
- *num_pending_buffers_ = num_pending_buffers;
- }
-
- void Inflate(u32 width_, u32 height_, u32 transform_hint_, u32 num_pending_buffers_) {
- width = width_;
- height = height_;
- transform_hint = transform_hint_;
- num_pending_buffers = num_pending_buffers_;
- }
-
-private:
- u32 width{};
- u32 height{};
- u32 transform_hint{};
- u32 num_pending_buffers{};
-};
-static_assert(sizeof(QueueBufferOutput) == 16, "QueueBufferOutput has wrong size");
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/hos_binder_driver_server.cpp b/src/core/hle/service/nvflinger/hos_binder_driver_server.cpp
deleted file mode 100644
index dc9b2a9ec..000000000
--- a/src/core/hle/service/nvflinger/hos_binder_driver_server.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#include <mutex>
-
-#include "common/common_types.h"
-#include "core/hle/service/nvflinger/hos_binder_driver_server.h"
-
-namespace Service::NVFlinger {
-
-HosBinderDriverServer::HosBinderDriverServer(Core::System& system_)
- : service_context(system_, "HosBinderDriverServer") {}
-
-HosBinderDriverServer::~HosBinderDriverServer() {}
-
-u64 HosBinderDriverServer::RegisterProducer(std::unique_ptr<android::IBinder>&& binder) {
- std::scoped_lock lk{lock};
-
- last_id++;
-
- producers[last_id] = std::move(binder);
-
- return last_id;
-}
-
-android::IBinder* HosBinderDriverServer::TryGetProducer(u64 id) {
- std::scoped_lock lk{lock};
-
- if (auto search = producers.find(id); search != producers.end()) {
- return search->second.get();
- }
-
- return {};
-}
-
-} // namespace Service::NVFlinger
diff --git a/src/core/hle/service/nvflinger/hos_binder_driver_server.h b/src/core/hle/service/nvflinger/hos_binder_driver_server.h
deleted file mode 100644
index 8fddc1206..000000000
--- a/src/core/hle/service/nvflinger/hos_binder_driver_server.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#pragma once
-
-#include <memory>
-#include <mutex>
-#include <unordered_map>
-
-#include "common/common_types.h"
-#include "core/hle/service/kernel_helpers.h"
-#include "core/hle/service/nvflinger/binder.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::NVFlinger {
-
-class HosBinderDriverServer final {
-public:
- explicit HosBinderDriverServer(Core::System& system_);
- ~HosBinderDriverServer();
-
- u64 RegisterProducer(std::unique_ptr<android::IBinder>&& binder);
-
- android::IBinder* TryGetProducer(u64 id);
-
-private:
- KernelHelpers::ServiceContext service_context;
-
- std::unordered_map<u64, std::unique_ptr<android::IBinder>> producers;
- std::mutex lock;
- u64 last_id{};
-};
-
-} // namespace Service::NVFlinger
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
deleted file mode 100644
index f4416f5b2..000000000
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ /dev/null
@@ -1,335 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#include <algorithm>
-#include <optional>
-
-#include "common/assert.h"
-#include "common/logging/log.h"
-#include "common/microprofile.h"
-#include "common/scope_exit.h"
-#include "common/settings.h"
-#include "common/thread.h"
-#include "core/core.h"
-#include "core/core_timing.h"
-#include "core/hle/kernel/k_readable_event.h"
-#include "core/hle/service/nvdrv/devices/nvdisp_disp0.h"
-#include "core/hle/service/nvdrv/nvdrv.h"
-#include "core/hle/service/nvflinger/buffer_item_consumer.h"
-#include "core/hle/service/nvflinger/buffer_queue_core.h"
-#include "core/hle/service/nvflinger/hos_binder_driver_server.h"
-#include "core/hle/service/nvflinger/nvflinger.h"
-#include "core/hle/service/nvflinger/ui/graphic_buffer.h"
-#include "core/hle/service/vi/display/vi_display.h"
-#include "core/hle/service/vi/layer/vi_layer.h"
-#include "core/hle/service/vi/vi_results.h"
-#include "video_core/gpu.h"
-#include "video_core/host1x/host1x.h"
-#include "video_core/host1x/syncpoint_manager.h"
-
-namespace Service::NVFlinger {
-
-constexpr auto frame_ns = std::chrono::nanoseconds{1000000000 / 60};
-
-void NVFlinger::SplitVSync(std::stop_token stop_token) {
- system.RegisterHostThread();
- std::string name = "VSyncThread";
- MicroProfileOnThreadCreate(name.c_str());
-
- // Cleanup
- SCOPE_EXIT({ MicroProfileOnThreadExit(); });
-
- Common::SetCurrentThreadName(name.c_str());
- Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
-
- while (!stop_token.stop_requested()) {
- vsync_signal.wait(false);
- vsync_signal.store(false);
-
- guard->lock();
-
- Compose();
-
- guard->unlock();
- }
-}
-
-NVFlinger::NVFlinger(Core::System& system_, HosBinderDriverServer& hos_binder_driver_server_)
- : system(system_), service_context(system_, "nvflinger"),
- hos_binder_driver_server(hos_binder_driver_server_) {
- displays.emplace_back(0, "Default", hos_binder_driver_server, service_context, system);
- displays.emplace_back(1, "External", hos_binder_driver_server, service_context, system);
- displays.emplace_back(2, "Edid", hos_binder_driver_server, service_context, system);
- displays.emplace_back(3, "Internal", hos_binder_driver_server, service_context, system);
- displays.emplace_back(4, "Null", hos_binder_driver_server, service_context, system);
- guard = std::make_shared<std::mutex>();
-
- // Schedule the screen composition events
- multi_composition_event = Core::Timing::CreateEvent(
- "ScreenComposition",
- [this](std::uintptr_t, s64 time,
- std::chrono::nanoseconds ns_late) -> std::optional<std::chrono::nanoseconds> {
- vsync_signal.store(true);
- vsync_signal.notify_all();
- return std::chrono::nanoseconds(GetNextTicks());
- });
-
- single_composition_event = Core::Timing::CreateEvent(
- "ScreenComposition",
- [this](std::uintptr_t, s64 time,
- std::chrono::nanoseconds ns_late) -> std::optional<std::chrono::nanoseconds> {
- const auto lock_guard = Lock();
- Compose();
-
- return std::chrono::nanoseconds(GetNextTicks());
- });
-
- if (system.IsMulticore()) {
- system.CoreTiming().ScheduleLoopingEvent(frame_ns, frame_ns, multi_composition_event);
- vsync_thread = std::jthread([this](std::stop_token token) { SplitVSync(token); });
- } else {
- system.CoreTiming().ScheduleLoopingEvent(frame_ns, frame_ns, single_composition_event);
- }
-}
-
-NVFlinger::~NVFlinger() {
- if (system.IsMulticore()) {
- system.CoreTiming().UnscheduleEvent(multi_composition_event, {});
- vsync_thread.request_stop();
- vsync_signal.store(true);
- vsync_signal.notify_all();
- } else {
- system.CoreTiming().UnscheduleEvent(single_composition_event, {});
- }
-
- ShutdownLayers();
-
- if (nvdrv) {
- nvdrv->Close(disp_fd);
- }
-}
-
-void NVFlinger::ShutdownLayers() {
- for (auto& display : displays) {
- for (size_t layer = 0; layer < display.GetNumLayers(); ++layer) {
- display.GetLayer(layer).Core().NotifyShutdown();
- }
- }
-}
-
-void NVFlinger::SetNVDrvInstance(std::shared_ptr<Nvidia::Module> instance) {
- nvdrv = std::move(instance);
- disp_fd = nvdrv->Open("/dev/nvdisp_disp0");
-}
-
-std::optional<u64> NVFlinger::OpenDisplay(std::string_view name) {
- const auto lock_guard = Lock();
-
- LOG_DEBUG(Service_NVFlinger, "Opening \"{}\" display", name);
-
- const auto itr =
- std::find_if(displays.begin(), displays.end(),
- [&](const VI::Display& display) { return display.GetName() == name; });
-
- if (itr == displays.end()) {
- return std::nullopt;
- }
-
- return itr->GetID();
-}
-
-bool NVFlinger::CloseDisplay(u64 display_id) {
- const auto lock_guard = Lock();
- auto* const display = FindDisplay(display_id);
-
- if (display == nullptr) {
- return false;
- }
-
- display->Reset();
-
- return true;
-}
-
-std::optional<u64> NVFlinger::CreateLayer(u64 display_id) {
- const auto lock_guard = Lock();
- auto* const display = FindDisplay(display_id);
-
- if (display == nullptr) {
- return std::nullopt;
- }
-
- const u64 layer_id = next_layer_id++;
- CreateLayerAtId(*display, layer_id);
- return layer_id;
-}
-
-void NVFlinger::CreateLayerAtId(VI::Display& display, u64 layer_id) {
- const auto buffer_id = next_buffer_queue_id++;
- display.CreateLayer(layer_id, buffer_id, nvdrv->container);
-}
-
-void NVFlinger::CloseLayer(u64 layer_id) {
- const auto lock_guard = Lock();
-
- for (auto& display : displays) {
- display.CloseLayer(layer_id);
- }
-}
-
-std::optional<u32> NVFlinger::FindBufferQueueId(u64 display_id, u64 layer_id) {
- const auto lock_guard = Lock();
- const auto* const layer = FindOrCreateLayer(display_id, layer_id);
-
- if (layer == nullptr) {
- return std::nullopt;
- }
-
- return layer->GetBinderId();
-}
-
-ResultVal<Kernel::KReadableEvent*> NVFlinger::FindVsyncEvent(u64 display_id) {
- const auto lock_guard = Lock();
- auto* const display = FindDisplay(display_id);
-
- if (display == nullptr) {
- return VI::ResultNotFound;
- }
-
- return display->GetVSyncEvent();
-}
-
-VI::Display* NVFlinger::FindDisplay(u64 display_id) {
- const auto itr =
- std::find_if(displays.begin(), displays.end(),
- [&](const VI::Display& display) { return display.GetID() == display_id; });
-
- if (itr == displays.end()) {
- return nullptr;
- }
-
- return &*itr;
-}
-
-const VI::Display* NVFlinger::FindDisplay(u64 display_id) const {
- const auto itr =
- std::find_if(displays.begin(), displays.end(),
- [&](const VI::Display& display) { return display.GetID() == display_id; });
-
- if (itr == displays.end()) {
- return nullptr;
- }
-
- return &*itr;
-}
-
-VI::Layer* NVFlinger::FindLayer(u64 display_id, u64 layer_id) {
- auto* const display = FindDisplay(display_id);
-
- if (display == nullptr) {
- return nullptr;
- }
-
- return display->FindLayer(layer_id);
-}
-
-const VI::Layer* NVFlinger::FindLayer(u64 display_id, u64 layer_id) const {
- const auto* const display = FindDisplay(display_id);
-
- if (display == nullptr) {
- return nullptr;
- }
-
- return display->FindLayer(layer_id);
-}
-
-VI::Layer* NVFlinger::FindOrCreateLayer(u64 display_id, u64 layer_id) {
- auto* const display = FindDisplay(display_id);
-
- if (display == nullptr) {
- return nullptr;
- }
-
- auto* layer = display->FindLayer(layer_id);
-
- if (layer == nullptr) {
- LOG_DEBUG(Service_NVFlinger, "Layer at id {} not found. Trying to create it.", layer_id);
- CreateLayerAtId(*display, layer_id);
- return display->FindLayer(layer_id);
- }
-
- return layer;
-}
-
-void NVFlinger::Compose() {
- for (auto& display : displays) {
- // Trigger vsync for this display at the end of drawing
- SCOPE_EXIT({ display.SignalVSyncEvent(); });
-
- // Don't do anything for displays without layers.
- if (!display.HasLayers())
- continue;
-
- // TODO(Subv): Support more than 1 layer.
- VI::Layer& layer = display.GetLayer(0);
-
- android::BufferItem buffer{};
- const auto status = layer.GetConsumer().AcquireBuffer(&buffer, {}, false);
-
- if (status != android::Status::NoError) {
- continue;
- }
-
- const auto& igbp_buffer = *buffer.graphic_buffer;
-
- if (!system.IsPoweredOn()) {
- return; // We are likely shutting down
- }
-
- // Now send the buffer to the GPU for drawing.
- // TODO(Subv): Support more than just disp0. The display device selection is probably based
- // on which display we're drawing (Default, Internal, External, etc)
- auto nvdisp = nvdrv->GetDevice<Nvidia::Devices::nvdisp_disp0>(disp_fd);
- ASSERT(nvdisp);
-
- guard->unlock();
- Common::Rectangle<int> crop_rect{
- static_cast<int>(buffer.crop.Left()), static_cast<int>(buffer.crop.Top()),
- static_cast<int>(buffer.crop.Right()), static_cast<int>(buffer.crop.Bottom())};
-
- nvdisp->flip(igbp_buffer.BufferId(), igbp_buffer.Offset(), igbp_buffer.ExternalFormat(),
- igbp_buffer.Width(), igbp_buffer.Height(), igbp_buffer.Stride(),
- static_cast<android::BufferTransformFlags>(buffer.transform), crop_rect,
- buffer.fence.fences, buffer.fence.num_fences);
-
- MicroProfileFlip();
- guard->lock();
-
- swap_interval = buffer.swap_interval;
-
- layer.GetConsumer().ReleaseBuffer(buffer, android::Fence::NoFence());
- }
-}
-
-s64 NVFlinger::GetNextTicks() const {
- const auto& settings = Settings::values;
- auto speed_scale = 1.f;
- if (settings.use_multi_core.GetValue()) {
- if (settings.use_speed_limit.GetValue()) {
- // Scales the speed based on speed_limit setting on MC. SC is handled by
- // SpeedLimiter::DoSpeedLimiting.
- speed_scale = 100.f / settings.speed_limit.GetValue();
- } else {
- // Run at unlocked framerate.
- speed_scale = 0.01f;
- }
- }
-
- // As an extension, treat nonpositive swap interval as framerate multiplier.
- const f32 effective_fps = swap_interval <= 0 ? 120.f * static_cast<f32>(1 - swap_interval)
- : 60.f / static_cast<f32>(swap_interval);
-
- return static_cast<s64>(speed_scale * (1000000000.f / effective_fps));
-}
-
-} // namespace Service::NVFlinger
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h
deleted file mode 100644
index 3828cf272..000000000
--- a/src/core/hle/service/nvflinger/nvflinger.h
+++ /dev/null
@@ -1,155 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#pragma once
-
-#include <list>
-#include <memory>
-#include <mutex>
-#include <optional>
-#include <thread>
-#include <vector>
-
-#include "common/common_types.h"
-#include "common/polyfill_thread.h"
-#include "core/hle/result.h"
-#include "core/hle/service/kernel_helpers.h"
-
-namespace Common {
-class Event;
-} // namespace Common
-
-namespace Core::Timing {
-class CoreTiming;
-struct EventType;
-} // namespace Core::Timing
-
-namespace Kernel {
-class KReadableEvent;
-} // namespace Kernel
-
-namespace Service::Nvidia {
-class Module;
-} // namespace Service::Nvidia
-
-namespace Service::VI {
-class Display;
-class Layer;
-} // namespace Service::VI
-
-namespace Service::android {
-class BufferQueueCore;
-class BufferQueueProducer;
-} // namespace Service::android
-
-namespace Service::NVFlinger {
-
-class NVFlinger final {
-public:
- explicit NVFlinger(Core::System& system_, HosBinderDriverServer& hos_binder_driver_server_);
- ~NVFlinger();
-
- void ShutdownLayers();
-
- /// Sets the NVDrv module instance to use to send buffers to the GPU.
- void SetNVDrvInstance(std::shared_ptr<Nvidia::Module> instance);
-
- /// Opens the specified display and returns the ID.
- ///
- /// If an invalid display name is provided, then an empty optional is returned.
- [[nodiscard]] std::optional<u64> OpenDisplay(std::string_view name);
-
- /// Closes the specified display by its ID.
- ///
- /// Returns false if an invalid display ID is provided.
- [[nodiscard]] bool CloseDisplay(u64 display_id);
-
- /// Creates a layer on the specified display and returns the layer ID.
- ///
- /// If an invalid display ID is specified, then an empty optional is returned.
- [[nodiscard]] std::optional<u64> CreateLayer(u64 display_id);
-
- /// Closes a layer on all displays for the given layer ID.
- void CloseLayer(u64 layer_id);
-
- /// Finds the buffer queue ID of the specified layer in the specified display.
- ///
- /// If an invalid display ID or layer ID is provided, then an empty optional is returned.
- [[nodiscard]] std::optional<u32> FindBufferQueueId(u64 display_id, u64 layer_id);
-
- /// Gets the vsync event for the specified display.
- ///
- /// If an invalid display ID is provided, then VI::ResultNotFound is returned.
- /// If the vsync event has already been retrieved, then VI::ResultPermissionDenied is returned.
- [[nodiscard]] ResultVal<Kernel::KReadableEvent*> FindVsyncEvent(u64 display_id);
-
- /// Performs a composition request to the emulated nvidia GPU and triggers the vsync events when
- /// finished.
- void Compose();
-
- [[nodiscard]] s64 GetNextTicks() const;
-
-private:
- struct Layer {
- std::unique_ptr<android::BufferQueueCore> core;
- std::unique_ptr<android::BufferQueueProducer> producer;
- };
-
-private:
- [[nodiscard]] std::unique_lock<std::mutex> Lock() const {
- return std::unique_lock{*guard};
- }
-
- /// Finds the display identified by the specified ID.
- [[nodiscard]] VI::Display* FindDisplay(u64 display_id);
-
- /// Finds the display identified by the specified ID.
- [[nodiscard]] const VI::Display* FindDisplay(u64 display_id) const;
-
- /// Finds the layer identified by the specified ID in the desired display.
- [[nodiscard]] VI::Layer* FindLayer(u64 display_id, u64 layer_id);
-
- /// Finds the layer identified by the specified ID in the desired display.
- [[nodiscard]] const VI::Layer* FindLayer(u64 display_id, u64 layer_id) const;
-
- /// Finds the layer identified by the specified ID in the desired display,
- /// or creates the layer if it is not found.
- /// To be used when the system expects the specified ID to already exist.
- [[nodiscard]] VI::Layer* FindOrCreateLayer(u64 display_id, u64 layer_id);
-
- /// Creates a layer with the specified layer ID in the desired display.
- void CreateLayerAtId(VI::Display& display, u64 layer_id);
-
- void SplitVSync(std::stop_token stop_token);
-
- std::shared_ptr<Nvidia::Module> nvdrv;
- s32 disp_fd;
-
- std::list<VI::Display> displays;
-
- /// Id to use for the next layer that is created, this counter is shared among all displays.
- u64 next_layer_id = 1;
- /// Id to use for the next buffer queue that is created, this counter is shared among all
- /// layers.
- u32 next_buffer_queue_id = 1;
-
- s32 swap_interval = 1;
-
- /// Event that handles screen composition.
- std::shared_ptr<Core::Timing::EventType> multi_composition_event;
- std::shared_ptr<Core::Timing::EventType> single_composition_event;
-
- std::shared_ptr<std::mutex> guard;
-
- Core::System& system;
-
- std::atomic<bool> vsync_signal;
-
- std::jthread vsync_thread;
-
- KernelHelpers::ServiceContext service_context;
-
- HosBinderDriverServer& hos_binder_driver_server;
-};
-
-} // namespace Service::NVFlinger
diff --git a/src/core/hle/service/nvflinger/parcel.h b/src/core/hle/service/nvflinger/parcel.h
deleted file mode 100644
index f3fa2587d..000000000
--- a/src/core/hle/service/nvflinger/parcel.h
+++ /dev/null
@@ -1,172 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#pragma once
-
-#include <memory>
-#include <vector>
-
-#include "common/alignment.h"
-#include "common/assert.h"
-#include "common/common_types.h"
-
-namespace Service::android {
-
-class Parcel final {
-public:
- static constexpr std::size_t DefaultBufferSize = 0x40;
-
- Parcel() : buffer(DefaultBufferSize) {}
-
- template <typename T>
- explicit Parcel(const T& out_data) : buffer(DefaultBufferSize) {
- Write(out_data);
- }
-
- explicit Parcel(std::vector<u8> in_data) : buffer(std::move(in_data)) {
- DeserializeHeader();
- [[maybe_unused]] const std::u16string token = ReadInterfaceToken();
- }
-
- template <typename T>
- void Read(T& val) {
- static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
- ASSERT(read_index + sizeof(T) <= buffer.size());
-
- std::memcpy(&val, buffer.data() + read_index, sizeof(T));
- read_index += sizeof(T);
- read_index = Common::AlignUp(read_index, 4);
- }
-
- template <typename T>
- T Read() {
- T val;
- Read(val);
- return val;
- }
-
- template <typename T>
- void ReadFlattened(T& val) {
- const auto flattened_size = Read<s64>();
- ASSERT(sizeof(T) == flattened_size);
- Read(val);
- }
-
- template <typename T>
- T ReadFlattened() {
- T val;
- ReadFlattened(val);
- return val;
- }
-
- template <typename T>
- T ReadUnaligned() {
- static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
- ASSERT(read_index + sizeof(T) <= buffer.size());
-
- T val;
- std::memcpy(&val, buffer.data() + read_index, sizeof(T));
- read_index += sizeof(T);
- return val;
- }
-
- template <typename T>
- const std::shared_ptr<T> ReadObject() {
- static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
-
- const auto is_valid{Read<bool>()};
-
- if (is_valid) {
- auto result = std::make_shared<T>();
- ReadFlattened(*result);
- return result;
- }
-
- return {};
- }
-
- std::u16string ReadInterfaceToken() {
- [[maybe_unused]] const u32 unknown = Read<u32>();
- const u32 length = Read<u32>();
-
- std::u16string token;
- token.reserve(length + 1);
-
- for (u32 ch = 0; ch < length + 1; ++ch) {
- token.push_back(ReadUnaligned<u16>());
- }
-
- read_index = Common::AlignUp(read_index, 4);
-
- return token;
- }
-
- template <typename T>
- void Write(const T& val) {
- static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
-
- if (buffer.size() < write_index + sizeof(T)) {
- buffer.resize(buffer.size() + sizeof(T) + DefaultBufferSize);
- }
-
- std::memcpy(buffer.data() + write_index, &val, sizeof(T));
- write_index += sizeof(T);
- write_index = Common::AlignUp(write_index, 4);
- }
-
- template <typename T>
- void WriteObject(const T* ptr) {
- static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
-
- if (!ptr) {
- Write<u32>(0);
- return;
- }
-
- Write<u32>(1);
- Write<s64>(sizeof(T));
- Write(*ptr);
- }
-
- template <typename T>
- void WriteObject(const std::shared_ptr<T> ptr) {
- WriteObject(ptr.get());
- }
-
- void DeserializeHeader() {
- ASSERT(buffer.size() > sizeof(Header));
-
- Header header{};
- std::memcpy(&header, buffer.data(), sizeof(Header));
-
- read_index = header.data_offset;
- }
-
- std::vector<u8> Serialize() const {
- ASSERT(read_index == 0);
-
- Header header{};
- header.data_size = static_cast<u32>(write_index - sizeof(Header));
- header.data_offset = sizeof(Header);
- header.objects_size = 4;
- header.objects_offset = static_cast<u32>(sizeof(Header) + header.data_size);
- std::memcpy(buffer.data(), &header, sizeof(Header));
-
- return buffer;
- }
-
-private:
- struct Header {
- u32 data_size;
- u32 data_offset;
- u32 objects_size;
- u32 objects_offset;
- };
- static_assert(sizeof(Header) == 16, "ParcelHeader has wrong size");
-
- mutable std::vector<u8> buffer;
- std::size_t read_index = 0;
- std::size_t write_index = sizeof(Header);
-};
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/ui/graphic_buffer.h b/src/core/hle/service/nvflinger/ui/graphic_buffer.h
deleted file mode 100644
index 9a27f8f02..000000000
--- a/src/core/hle/service/nvflinger/ui/graphic_buffer.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-FileCopyrightText: Copyright 2007 The Android Open Source Project
-// SPDX-License-Identifier: GPL-3.0-or-later
-// Parts of this implementation were based on:
-// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/ui/GraphicBuffer.h
-
-#pragma once
-
-#include "common/common_funcs.h"
-#include "common/common_types.h"
-#include "core/hle/service/nvflinger/pixel_format.h"
-
-namespace Service::android {
-
-class GraphicBuffer final {
-public:
- constexpr GraphicBuffer() = default;
-
- constexpr GraphicBuffer(u32 width_, u32 height_, PixelFormat format_, u32 usage_)
- : width{static_cast<s32>(width_)}, height{static_cast<s32>(height_)}, format{format_},
- usage{static_cast<s32>(usage_)} {}
-
- constexpr u32 Width() const {
- return static_cast<u32>(width);
- }
-
- constexpr u32 Height() const {
- return static_cast<u32>(height);
- }
-
- constexpr u32 Stride() const {
- return static_cast<u32>(stride);
- }
-
- constexpr u32 Usage() const {
- return static_cast<u32>(usage);
- }
-
- constexpr PixelFormat Format() const {
- return format;
- }
-
- constexpr u32 BufferId() const {
- return buffer_id;
- }
-
- constexpr PixelFormat ExternalFormat() const {
- return external_format;
- }
-
- constexpr u32 Handle() const {
- return handle;
- }
-
- constexpr u32 Offset() const {
- return offset;
- }
-
- constexpr bool NeedsReallocation(u32 width_, u32 height_, PixelFormat format_,
- u32 usage_) const {
- if (static_cast<s32>(width_) != width) {
- return true;
- }
-
- if (static_cast<s32>(height_) != height) {
- return true;
- }
-
- if (format_ != format) {
- return true;
- }
-
- if ((static_cast<u32>(usage) & usage_) != usage_) {
- return true;
- }
-
- return false;
- }
-
-private:
- u32 magic{};
- s32 width{};
- s32 height{};
- s32 stride{};
- PixelFormat format{};
- s32 usage{};
- INSERT_PADDING_WORDS(1);
- u32 index{};
- INSERT_PADDING_WORDS(3);
- u32 buffer_id{};
- INSERT_PADDING_WORDS(6);
- PixelFormat external_format{};
- INSERT_PADDING_WORDS(10);
- u32 handle{};
- u32 offset{};
- INSERT_PADDING_WORDS(60);
-};
-static_assert(sizeof(GraphicBuffer) == 0x16C, "GraphicBuffer has wrong size");
-
-} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/binder.h b/src/core/hle/service/nvnflinger/binder.h
new file mode 100644
index 000000000..aef1477e3
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/binder.h
@@ -0,0 +1,45 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/binder/IBinder.h
+
+#pragma once
+
+#include "common/common_types.h"
+
+namespace Kernel {
+class KReadableEvent;
+} // namespace Kernel
+
+namespace Service {
+class HLERequestContext;
+}
+
+namespace Service::android {
+
+enum class TransactionId {
+ RequestBuffer = 1,
+ SetBufferCount = 2,
+ DequeueBuffer = 3,
+ DetachBuffer = 4,
+ DetachNextBuffer = 5,
+ AttachBuffer = 6,
+ QueueBuffer = 7,
+ CancelBuffer = 8,
+ Query = 9,
+ Connect = 10,
+ Disconnect = 11,
+ AllocateBuffers = 13,
+ SetPreallocatedBuffer = 14,
+ GetBufferHistory = 17,
+};
+
+class IBinder {
+public:
+ virtual ~IBinder() = default;
+ virtual void Transact(HLERequestContext& ctx, android::TransactionId code, u32 flags) = 0;
+ virtual Kernel::KReadableEvent& GetNativeHandle() = 0;
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_item.h b/src/core/hle/service/nvnflinger/buffer_item.h
new file mode 100644
index 000000000..7fd808f54
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_item.h
@@ -0,0 +1,46 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferItem.h
+
+#pragma once
+
+#include <memory>
+
+#include "common/common_types.h"
+#include "common/math_util.h"
+#include "core/hle/service/nvnflinger/ui/fence.h"
+#include "core/hle/service/nvnflinger/window.h"
+
+namespace Service::android {
+
+class GraphicBuffer;
+
+class BufferItem final {
+public:
+ constexpr BufferItem() = default;
+
+ std::shared_ptr<GraphicBuffer> graphic_buffer;
+ Fence fence;
+ Common::Rectangle<s32> crop;
+ NativeWindowTransform transform{};
+ u32 scaling_mode{};
+ s64 timestamp{};
+ bool is_auto_timestamp{};
+ u64 frame_number{};
+
+ // The default value for buf, used to indicate this doesn't correspond to a slot.
+ static constexpr s32 INVALID_BUFFER_SLOT = -1;
+ union {
+ s32 slot{INVALID_BUFFER_SLOT};
+ s32 buf;
+ };
+
+ bool is_droppable{};
+ bool acquire_called{};
+ bool transform_to_display_inverse{};
+ s32 swap_interval{};
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_item_consumer.cpp b/src/core/hle/service/nvnflinger/buffer_item_consumer.cpp
new file mode 100644
index 000000000..cf151ea3a
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_item_consumer.cpp
@@ -0,0 +1,59 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2012 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferItemConsumer.cpp
+
+#include "common/assert.h"
+#include "common/logging/log.h"
+#include "core/hle/service/nvnflinger/buffer_item.h"
+#include "core/hle/service/nvnflinger/buffer_item_consumer.h"
+#include "core/hle/service/nvnflinger/buffer_queue_consumer.h"
+
+namespace Service::android {
+
+BufferItemConsumer::BufferItemConsumer(std::unique_ptr<BufferQueueConsumer> consumer_)
+ : ConsumerBase{std::move(consumer_)} {}
+
+Status BufferItemConsumer::AcquireBuffer(BufferItem* item, std::chrono::nanoseconds present_when,
+ bool wait_for_fence) {
+ if (!item) {
+ return Status::BadValue;
+ }
+
+ std::scoped_lock lock{mutex};
+
+ if (const auto status = AcquireBufferLocked(item, present_when); status != Status::NoError) {
+ if (status != Status::NoBufferAvailable) {
+ LOG_ERROR(Service_Nvnflinger, "Failed to acquire buffer: {}", status);
+ }
+ return status;
+ }
+
+ if (wait_for_fence) {
+ UNIMPLEMENTED();
+ }
+
+ item->graphic_buffer = slots[item->slot].graphic_buffer;
+
+ return Status::NoError;
+}
+
+Status BufferItemConsumer::ReleaseBuffer(const BufferItem& item, const Fence& release_fence) {
+ std::scoped_lock lock{mutex};
+
+ if (const auto status = AddReleaseFenceLocked(item.buf, item.graphic_buffer, release_fence);
+ status != Status::NoError) {
+ LOG_ERROR(Service_Nvnflinger, "Failed to add fence: {}", status);
+ }
+
+ if (const auto status = ReleaseBufferLocked(item.buf, item.graphic_buffer);
+ status != Status::NoError) {
+ LOG_WARNING(Service_Nvnflinger, "Failed to release buffer: {}", status);
+ return status;
+ }
+
+ return Status::NoError;
+}
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_item_consumer.h b/src/core/hle/service/nvnflinger/buffer_item_consumer.h
new file mode 100644
index 000000000..e0c6b3604
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_item_consumer.h
@@ -0,0 +1,28 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2012 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferItemConsumer.h
+
+#pragma once
+
+#include <chrono>
+#include <memory>
+
+#include "common/common_types.h"
+#include "core/hle/service/nvnflinger/consumer_base.h"
+#include "core/hle/service/nvnflinger/status.h"
+
+namespace Service::android {
+
+class BufferItem;
+
+class BufferItemConsumer final : public ConsumerBase {
+public:
+ explicit BufferItemConsumer(std::unique_ptr<BufferQueueConsumer> consumer);
+ Status AcquireBuffer(BufferItem* item, std::chrono::nanoseconds present_when,
+ bool wait_for_fence = true);
+ Status ReleaseBuffer(const BufferItem& item, const Fence& release_fence);
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp b/src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp
new file mode 100644
index 000000000..51291539d
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp
@@ -0,0 +1,213 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferQueueConsumer.cpp
+
+#include "common/logging/log.h"
+#include "core/hle/service/nvdrv/core/nvmap.h"
+#include "core/hle/service/nvnflinger/buffer_item.h"
+#include "core/hle/service/nvnflinger/buffer_queue_consumer.h"
+#include "core/hle/service/nvnflinger/buffer_queue_core.h"
+#include "core/hle/service/nvnflinger/producer_listener.h"
+#include "core/hle/service/nvnflinger/ui/graphic_buffer.h"
+
+namespace Service::android {
+
+BufferQueueConsumer::BufferQueueConsumer(std::shared_ptr<BufferQueueCore> core_,
+ Service::Nvidia::NvCore::NvMap& nvmap_)
+ : core{std::move(core_)}, slots{core->slots}, nvmap(nvmap_) {}
+
+BufferQueueConsumer::~BufferQueueConsumer() = default;
+
+Status BufferQueueConsumer::AcquireBuffer(BufferItem* out_buffer,
+ std::chrono::nanoseconds expected_present) {
+ std::scoped_lock lock{core->mutex};
+
+ // Check that the consumer doesn't currently have the maximum number of buffers acquired.
+ const s32 num_acquired_buffers{
+ static_cast<s32>(std::count_if(slots.begin(), slots.end(), [](const auto& slot) {
+ return slot.buffer_state == BufferState::Acquired;
+ }))};
+
+ if (num_acquired_buffers >= core->max_acquired_buffer_count + 1) {
+ LOG_ERROR(Service_Nvnflinger, "max acquired buffer count reached: {} (max {})",
+ num_acquired_buffers, core->max_acquired_buffer_count);
+ return Status::InvalidOperation;
+ }
+
+ // Check if the queue is empty.
+ if (core->queue.empty()) {
+ return Status::NoBufferAvailable;
+ }
+
+ auto front(core->queue.begin());
+
+ // If expected_present is specified, we may not want to return a buffer yet.
+ if (expected_present.count() != 0) {
+ constexpr auto MAX_REASONABLE_NSEC = 1000000000LL; // 1 second
+
+ // The expected_present argument indicates when the buffer is expected to be presented
+ // on-screen.
+ while (core->queue.size() > 1 && !core->queue[0].is_auto_timestamp) {
+ const auto& buffer_item{core->queue[1]};
+
+ // If entry[1] is timely, drop entry[0] (and repeat).
+ const auto desired_present = buffer_item.timestamp;
+ if (desired_present < expected_present.count() - MAX_REASONABLE_NSEC ||
+ desired_present > expected_present.count()) {
+ // This buffer is set to display in the near future, or desired_present is garbage.
+ LOG_DEBUG(Service_Nvnflinger, "nodrop desire={} expect={}", desired_present,
+ expected_present.count());
+ break;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "drop desire={} expect={} size={}", desired_present,
+ expected_present.count(), core->queue.size());
+
+ if (core->StillTracking(*front)) {
+ // Front buffer is still in mSlots, so mark the slot as free
+ slots[front->slot].buffer_state = BufferState::Free;
+ }
+
+ core->queue.erase(front);
+ front = core->queue.begin();
+ }
+
+ // See if the front buffer is ready to be acquired.
+ const auto desired_present = front->timestamp;
+ if (desired_present > expected_present.count() &&
+ desired_present < expected_present.count() + MAX_REASONABLE_NSEC) {
+ LOG_DEBUG(Service_Nvnflinger, "defer desire={} expect={}", desired_present,
+ expected_present.count());
+ return Status::PresentLater;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "accept desire={} expect={}", desired_present,
+ expected_present.count());
+ }
+
+ const auto slot = front->slot;
+ *out_buffer = *front;
+
+ LOG_DEBUG(Service_Nvnflinger, "acquiring slot={}", slot);
+
+ // If the buffer has previously been acquired by the consumer, set graphic_buffer to nullptr to
+ // avoid unnecessarily remapping this buffer on the consumer side.
+ if (out_buffer->acquire_called) {
+ out_buffer->graphic_buffer = nullptr;
+ }
+
+ core->queue.erase(front);
+
+ // We might have freed a slot while dropping old buffers, or the producer may be blocked
+ // waiting for the number of buffers in the queue to decrease.
+ core->SignalDequeueCondition();
+
+ return Status::NoError;
+}
+
+Status BufferQueueConsumer::ReleaseBuffer(s32 slot, u64 frame_number, const Fence& release_fence) {
+ if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
+ LOG_ERROR(Service_Nvnflinger, "slot {} out of range", slot);
+ return Status::BadValue;
+ }
+
+ std::shared_ptr<IProducerListener> listener;
+ {
+ std::scoped_lock lock{core->mutex};
+
+ // If the frame number has changed because the buffer has been reallocated, we can ignore
+ // this ReleaseBuffer for the old buffer.
+ if (frame_number != slots[slot].frame_number) {
+ return Status::StaleBufferSlot;
+ }
+
+ // Make sure this buffer hasn't been queued while acquired by the consumer.
+ auto current(core->queue.begin());
+ while (current != core->queue.end()) {
+ if (current->slot == slot) {
+ LOG_ERROR(Service_Nvnflinger, "buffer slot {} pending release is currently queued",
+ slot);
+ return Status::BadValue;
+ }
+ ++current;
+ }
+
+ slots[slot].buffer_state = BufferState::Free;
+
+ nvmap.FreeHandle(slots[slot].graphic_buffer->BufferId(), true);
+
+ listener = core->connected_producer_listener;
+
+ LOG_DEBUG(Service_Nvnflinger, "releasing slot {}", slot);
+
+ core->SignalDequeueCondition();
+ }
+
+ // Call back without lock held
+ if (listener != nullptr) {
+ listener->OnBufferReleased();
+ }
+
+ return Status::NoError;
+}
+
+Status BufferQueueConsumer::Connect(std::shared_ptr<IConsumerListener> consumer_listener,
+ bool controlled_by_app) {
+ if (consumer_listener == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "consumer_listener may not be nullptr");
+ return Status::BadValue;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "controlled_by_app={}", controlled_by_app);
+
+ std::scoped_lock lock{core->mutex};
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ core->consumer_listener = std::move(consumer_listener);
+ core->consumer_controlled_by_app = controlled_by_app;
+
+ return Status::NoError;
+}
+
+Status BufferQueueConsumer::GetReleasedBuffers(u64* out_slot_mask) {
+ if (out_slot_mask == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "out_slot_mask may not be nullptr");
+ return Status::BadValue;
+ }
+
+ std::scoped_lock lock{core->mutex};
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ u64 mask = 0;
+ for (int s = 0; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
+ if (!slots[s].acquire_called) {
+ mask |= (1ULL << s);
+ }
+ }
+
+ // Remove from the mask queued buffers for which acquire has been called, since the consumer
+ // will not receive their buffer addresses and so must retain their cached information
+ auto current(core->queue.begin());
+ while (current != core->queue.end()) {
+ if (current->acquire_called) {
+ mask &= ~(1ULL << current->slot);
+ }
+ ++current;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "returning mask {}", mask);
+ *out_slot_mask = mask;
+ return Status::NoError;
+}
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_consumer.h b/src/core/hle/service/nvnflinger/buffer_queue_consumer.h
new file mode 100644
index 000000000..50ed0bb5f
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_queue_consumer.h
@@ -0,0 +1,43 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueConsumer.h
+
+#pragma once
+
+#include <chrono>
+#include <memory>
+
+#include "common/common_types.h"
+#include "core/hle/service/nvnflinger/buffer_queue_defs.h"
+#include "core/hle/service/nvnflinger/status.h"
+
+namespace Service::Nvidia::NvCore {
+class NvMap;
+} // namespace Service::Nvidia::NvCore
+
+namespace Service::android {
+
+class BufferItem;
+class BufferQueueCore;
+class IConsumerListener;
+
+class BufferQueueConsumer final {
+public:
+ explicit BufferQueueConsumer(std::shared_ptr<BufferQueueCore> core_,
+ Service::Nvidia::NvCore::NvMap& nvmap_);
+ ~BufferQueueConsumer();
+
+ Status AcquireBuffer(BufferItem* out_buffer, std::chrono::nanoseconds expected_present);
+ Status ReleaseBuffer(s32 slot, u64 frame_number, const Fence& release_fence);
+ Status Connect(std::shared_ptr<IConsumerListener> consumer_listener, bool controlled_by_app);
+ Status GetReleasedBuffers(u64* out_slot_mask);
+
+private:
+ std::shared_ptr<BufferQueueCore> core;
+ BufferQueueDefs::SlotsType& slots;
+ Service::Nvidia::NvCore::NvMap& nvmap;
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_core.cpp b/src/core/hle/service/nvnflinger/buffer_queue_core.cpp
new file mode 100644
index 000000000..2dbe29616
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_queue_core.cpp
@@ -0,0 +1,115 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferQueueCore.cpp
+
+#include "common/assert.h"
+
+#include "core/hle/service/nvnflinger/buffer_queue_core.h"
+
+namespace Service::android {
+
+BufferQueueCore::BufferQueueCore() = default;
+
+BufferQueueCore::~BufferQueueCore() = default;
+
+void BufferQueueCore::NotifyShutdown() {
+ std::scoped_lock lock{mutex};
+
+ is_shutting_down = true;
+
+ SignalDequeueCondition();
+}
+
+void BufferQueueCore::SignalDequeueCondition() {
+ dequeue_possible.store(true);
+ dequeue_condition.notify_all();
+}
+
+bool BufferQueueCore::WaitForDequeueCondition(std::unique_lock<std::mutex>& lk) {
+ if (is_shutting_down) {
+ return false;
+ }
+
+ dequeue_condition.wait(lk, [&] { return dequeue_possible.load(); });
+ dequeue_possible.store(false);
+
+ return true;
+}
+
+s32 BufferQueueCore::GetMinUndequeuedBufferCountLocked(bool async) const {
+ // If DequeueBuffer is allowed to error out, we don't have to add an extra buffer.
+ if (!use_async_buffer) {
+ return max_acquired_buffer_count;
+ }
+
+ if (dequeue_buffer_cannot_block || async) {
+ return max_acquired_buffer_count + 1;
+ }
+
+ return max_acquired_buffer_count;
+}
+
+s32 BufferQueueCore::GetMinMaxBufferCountLocked(bool async) const {
+ return GetMinUndequeuedBufferCountLocked(async) + 1;
+}
+
+s32 BufferQueueCore::GetMaxBufferCountLocked(bool async) const {
+ const auto min_buffer_count = GetMinMaxBufferCountLocked(async);
+ auto max_buffer_count = std::max(default_max_buffer_count, min_buffer_count);
+
+ if (override_max_buffer_count != 0) {
+ ASSERT(override_max_buffer_count >= min_buffer_count);
+ max_buffer_count = override_max_buffer_count;
+ }
+
+ // Any buffers that are dequeued by the producer or sitting in the queue waiting to be consumed
+ // need to have their slots preserved.
+ for (s32 slot = max_buffer_count; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) {
+ const auto state = slots[slot].buffer_state;
+ if (state == BufferState::Queued || state == BufferState::Dequeued) {
+ max_buffer_count = slot + 1;
+ }
+ }
+
+ return max_buffer_count;
+}
+
+s32 BufferQueueCore::GetPreallocatedBufferCountLocked() const {
+ return static_cast<s32>(std::count_if(slots.begin(), slots.end(),
+ [](const auto& slot) { return slot.is_preallocated; }));
+}
+
+void BufferQueueCore::FreeBufferLocked(s32 slot) {
+ LOG_DEBUG(Service_Nvnflinger, "slot {}", slot);
+
+ slots[slot].graphic_buffer.reset();
+
+ slots[slot].buffer_state = BufferState::Free;
+ slots[slot].frame_number = UINT32_MAX;
+ slots[slot].acquire_called = false;
+ slots[slot].fence = Fence::NoFence();
+}
+
+void BufferQueueCore::FreeAllBuffersLocked() {
+ buffer_has_been_queued = false;
+
+ for (s32 slot = 0; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) {
+ FreeBufferLocked(slot);
+ }
+}
+
+bool BufferQueueCore::StillTracking(const BufferItem& item) const {
+ const BufferSlot& slot = slots[item.slot];
+
+ return (slot.graphic_buffer != nullptr) && (item.graphic_buffer == slot.graphic_buffer);
+}
+
+void BufferQueueCore::WaitWhileAllocatingLocked() const {
+ while (is_allocating) {
+ is_allocating_condition.wait(mutex);
+ }
+}
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_core.h b/src/core/hle/service/nvnflinger/buffer_queue_core.h
new file mode 100644
index 000000000..9164f08a0
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_queue_core.h
@@ -0,0 +1,80 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueCore.h
+
+#pragma once
+
+#include <condition_variable>
+#include <list>
+#include <memory>
+#include <mutex>
+#include <set>
+#include <vector>
+
+#include "core/hle/service/nvnflinger/buffer_item.h"
+#include "core/hle/service/nvnflinger/buffer_queue_defs.h"
+#include "core/hle/service/nvnflinger/pixel_format.h"
+#include "core/hle/service/nvnflinger/status.h"
+#include "core/hle/service/nvnflinger/window.h"
+
+namespace Service::android {
+
+class IConsumerListener;
+class IProducerListener;
+
+class BufferQueueCore final {
+ friend class BufferQueueProducer;
+ friend class BufferQueueConsumer;
+
+public:
+ static constexpr s32 INVALID_BUFFER_SLOT = BufferItem::INVALID_BUFFER_SLOT;
+
+ BufferQueueCore();
+ ~BufferQueueCore();
+
+ void NotifyShutdown();
+
+private:
+ void SignalDequeueCondition();
+ bool WaitForDequeueCondition(std::unique_lock<std::mutex>& lk);
+
+ s32 GetMinUndequeuedBufferCountLocked(bool async) const;
+ s32 GetMinMaxBufferCountLocked(bool async) const;
+ s32 GetMaxBufferCountLocked(bool async) const;
+ s32 GetPreallocatedBufferCountLocked() const;
+ void FreeBufferLocked(s32 slot);
+ void FreeAllBuffersLocked();
+ bool StillTracking(const BufferItem& item) const;
+ void WaitWhileAllocatingLocked() const;
+
+private:
+ mutable std::mutex mutex;
+ bool is_abandoned{};
+ bool consumer_controlled_by_app{};
+ std::shared_ptr<IConsumerListener> consumer_listener;
+ u32 consumer_usage_bit{};
+ NativeWindowApi connected_api{NativeWindowApi::NoConnectedApi};
+ std::shared_ptr<IProducerListener> connected_producer_listener;
+ BufferQueueDefs::SlotsType slots{};
+ std::vector<BufferItem> queue;
+ s32 override_max_buffer_count{};
+ std::condition_variable dequeue_condition;
+ std::atomic<bool> dequeue_possible{};
+ const bool use_async_buffer{}; // This is always disabled on HOS
+ bool dequeue_buffer_cannot_block{};
+ PixelFormat default_buffer_format{PixelFormat::Rgba8888};
+ u32 default_width{1};
+ u32 default_height{1};
+ s32 default_max_buffer_count{2};
+ const s32 max_acquired_buffer_count{}; // This is always zero on HOS
+ bool buffer_has_been_queued{};
+ u64 frame_counter{};
+ u32 transform_hint{};
+ bool is_allocating{};
+ mutable std::condition_variable_any is_allocating_condition;
+ bool is_shutting_down{};
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_defs.h b/src/core/hle/service/nvnflinger/buffer_queue_defs.h
new file mode 100644
index 000000000..6fd3156f4
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_queue_defs.h
@@ -0,0 +1,21 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueDefs.h
+
+#pragma once
+
+#include <array>
+
+#include "common/common_types.h"
+#include "core/hle/service/nvnflinger/buffer_slot.h"
+
+namespace Service::android::BufferQueueDefs {
+
+// BufferQueue will keep track of at most this value of buffers.
+constexpr s32 NUM_BUFFER_SLOTS = 64;
+
+using SlotsType = std::array<BufferSlot, NUM_BUFFER_SLOTS>;
+
+} // namespace Service::android::BufferQueueDefs
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
new file mode 100644
index 000000000..b16f9933f
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
@@ -0,0 +1,934 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/BufferQueueProducer.cpp
+
+#include "common/assert.h"
+#include "common/logging/log.h"
+#include "common/settings.h"
+#include "core/core.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/kernel/k_readable_event.h"
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/service/hle_ipc.h"
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/nvdrv/core/nvmap.h"
+#include "core/hle/service/nvnflinger/buffer_queue_core.h"
+#include "core/hle/service/nvnflinger/buffer_queue_producer.h"
+#include "core/hle/service/nvnflinger/consumer_listener.h"
+#include "core/hle/service/nvnflinger/parcel.h"
+#include "core/hle/service/nvnflinger/ui/graphic_buffer.h"
+#include "core/hle/service/nvnflinger/window.h"
+#include "core/hle/service/vi/vi.h"
+
+namespace Service::android {
+
+BufferQueueProducer::BufferQueueProducer(Service::KernelHelpers::ServiceContext& service_context_,
+ std::shared_ptr<BufferQueueCore> buffer_queue_core_,
+ Service::Nvidia::NvCore::NvMap& nvmap_)
+ : service_context{service_context_}, core{std::move(buffer_queue_core_)}, slots(core->slots),
+ nvmap(nvmap_) {
+ buffer_wait_event = service_context.CreateEvent("BufferQueue:WaitEvent");
+}
+
+BufferQueueProducer::~BufferQueueProducer() {
+ service_context.CloseEvent(buffer_wait_event);
+}
+
+Status BufferQueueProducer::RequestBuffer(s32 slot, std::shared_ptr<GraphicBuffer>* buf) {
+ LOG_DEBUG(Service_Nvnflinger, "slot {}", slot);
+
+ std::scoped_lock lock{core->mutex};
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+ if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
+ LOG_ERROR(Service_Nvnflinger, "slot index {} out of range [0, {})", slot,
+ BufferQueueDefs::NUM_BUFFER_SLOTS);
+ return Status::BadValue;
+ } else if (slots[slot].buffer_state != BufferState::Dequeued) {
+ LOG_ERROR(Service_Nvnflinger, "slot {} is not owned by the producer (state = {})", slot,
+ slots[slot].buffer_state);
+ return Status::BadValue;
+ }
+
+ slots[slot].request_buffer_called = true;
+ *buf = slots[slot].graphic_buffer;
+
+ return Status::NoError;
+}
+
+Status BufferQueueProducer::SetBufferCount(s32 buffer_count) {
+ LOG_DEBUG(Service_Nvnflinger, "count = {}", buffer_count);
+
+ std::shared_ptr<IConsumerListener> listener;
+ {
+ std::scoped_lock lock{core->mutex};
+ core->WaitWhileAllocatingLocked();
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ if (buffer_count > BufferQueueDefs::NUM_BUFFER_SLOTS) {
+ LOG_ERROR(Service_Nvnflinger, "buffer_count {} too large (max {})", buffer_count,
+ BufferQueueDefs::NUM_BUFFER_SLOTS);
+ return Status::BadValue;
+ }
+
+ // There must be no dequeued buffers when changing the buffer count.
+ for (s32 s{}; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
+ if (slots[s].buffer_state == BufferState::Dequeued) {
+ LOG_ERROR(Service_Nvnflinger, "buffer owned by producer");
+ return Status::BadValue;
+ }
+ }
+
+ if (buffer_count == 0) {
+ core->override_max_buffer_count = 0;
+ core->SignalDequeueCondition();
+ return Status::NoError;
+ }
+
+ const s32 min_buffer_slots = core->GetMinMaxBufferCountLocked(false);
+ if (buffer_count < min_buffer_slots) {
+ LOG_ERROR(Service_Nvnflinger, "requested buffer count {} is less than minimum {}",
+ buffer_count, min_buffer_slots);
+ return Status::BadValue;
+ }
+
+ // Here we are guaranteed that the producer doesn't have any dequeued buffers and will
+ // release all of its buffer references.
+ if (core->GetPreallocatedBufferCountLocked() <= 0) {
+ core->FreeAllBuffersLocked();
+ }
+
+ core->override_max_buffer_count = buffer_count;
+ core->SignalDequeueCondition();
+ buffer_wait_event->Signal();
+ listener = core->consumer_listener;
+ }
+
+ // Call back without lock held
+ if (listener != nullptr) {
+ listener->OnBuffersReleased();
+ }
+
+ return Status::NoError;
+}
+
+Status BufferQueueProducer::WaitForFreeSlotThenRelock(bool async, s32* found, Status* return_flags,
+ std::unique_lock<std::mutex>& lk) const {
+ bool try_again = true;
+
+ while (try_again) {
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ const s32 max_buffer_count = core->GetMaxBufferCountLocked(async);
+ if (async && core->override_max_buffer_count) {
+ if (core->override_max_buffer_count < max_buffer_count) {
+ LOG_ERROR(Service_Nvnflinger, "async mode is invalid with buffer count override");
+ return Status::BadValue;
+ }
+ }
+
+ // Free up any buffers that are in slots beyond the max buffer count
+ for (s32 s = max_buffer_count; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
+ ASSERT(slots[s].buffer_state == BufferState::Free);
+ if (slots[s].graphic_buffer != nullptr) {
+ core->FreeBufferLocked(s);
+ *return_flags |= Status::ReleaseAllBuffers;
+ }
+ }
+
+ // Look for a free buffer to give to the client
+ *found = BufferQueueCore::INVALID_BUFFER_SLOT;
+ s32 dequeued_count{};
+ s32 acquired_count{};
+ for (s32 s{}; s < max_buffer_count; ++s) {
+ switch (slots[s].buffer_state) {
+ case BufferState::Dequeued:
+ ++dequeued_count;
+ break;
+ case BufferState::Acquired:
+ ++acquired_count;
+ break;
+ case BufferState::Free:
+ // We return the oldest of the free buffers to avoid stalling the producer if
+ // possible, since the consumer may still have pending reads of in-flight buffers
+ if (*found == BufferQueueCore::INVALID_BUFFER_SLOT ||
+ slots[s].frame_number < slots[*found].frame_number) {
+ *found = s;
+ }
+ break;
+ default:
+ break;
+ }
+ }
+
+ // Producers are not allowed to dequeue more than one buffer if they did not set a buffer
+ // count
+ if (!core->override_max_buffer_count && dequeued_count) {
+ LOG_ERROR(Service_Nvnflinger,
+ "can't dequeue multiple buffers without setting the buffer count");
+ return Status::InvalidOperation;
+ }
+
+ // See whether a buffer has been queued since the last SetBufferCount so we know whether to
+ // perform the min undequeued buffers check below
+ if (core->buffer_has_been_queued) {
+ // Make sure the producer is not trying to dequeue more buffers than allowed
+ const s32 new_undequeued_count = max_buffer_count - (dequeued_count + 1);
+ const s32 min_undequeued_count = core->GetMinUndequeuedBufferCountLocked(async);
+ if (new_undequeued_count < min_undequeued_count) {
+ LOG_ERROR(Service_Nvnflinger,
+ "min undequeued buffer count({}) exceeded (dequeued={} undequeued={})",
+ min_undequeued_count, dequeued_count, new_undequeued_count);
+ return Status::InvalidOperation;
+ }
+ }
+
+ // If we disconnect and reconnect quickly, we can be in a state where our slots are empty
+ // but we have many buffers in the queue. This can cause us to run out of memory if we
+ // outrun the consumer. Wait here if it looks like we have too many buffers queued up.
+ const bool too_many_buffers = core->queue.size() > static_cast<size_t>(max_buffer_count);
+ if (too_many_buffers) {
+ LOG_ERROR(Service_Nvnflinger, "queue size is {}, waiting", core->queue.size());
+ }
+
+ // If no buffer is found, or if the queue has too many buffers outstanding, wait for a
+ // buffer to be acquired or released, or for the max buffer count to change.
+ try_again = (*found == BufferQueueCore::INVALID_BUFFER_SLOT) || too_many_buffers;
+ if (try_again) {
+ // Return an error if we're in non-blocking mode (producer and consumer are controlled
+ // by the application).
+ if (core->dequeue_buffer_cannot_block &&
+ (acquired_count <= core->max_acquired_buffer_count)) {
+ return Status::WouldBlock;
+ }
+
+ if (!core->WaitForDequeueCondition(lk)) {
+ // We are no longer running
+ return Status::NoError;
+ }
+ }
+ }
+
+ return Status::NoError;
+}
+
+Status BufferQueueProducer::DequeueBuffer(s32* out_slot, Fence* out_fence, bool async, u32 width,
+ u32 height, PixelFormat format, u32 usage) {
+ LOG_DEBUG(Service_Nvnflinger, "async={} w={} h={} format={}, usage={}",
+ async ? "true" : "false", width, height, format, usage);
+
+ if ((width != 0 && height == 0) || (width == 0 && height != 0)) {
+ LOG_ERROR(Service_Nvnflinger, "invalid size: w={} h={}", width, height);
+ return Status::BadValue;
+ }
+
+ Status return_flags = Status::NoError;
+ bool attached_by_consumer = false;
+ {
+ std::unique_lock lock{core->mutex};
+ core->WaitWhileAllocatingLocked();
+
+ if (format == PixelFormat::NoFormat) {
+ format = core->default_buffer_format;
+ }
+
+ // Enable the usage bits the consumer requested
+ usage |= core->consumer_usage_bit;
+
+ s32 found{};
+ Status status = WaitForFreeSlotThenRelock(async, &found, &return_flags, lock);
+ if (status != Status::NoError) {
+ return status;
+ }
+
+ // This should not happen
+ if (found == BufferQueueCore::INVALID_BUFFER_SLOT) {
+ LOG_ERROR(Service_Nvnflinger, "no available buffer slots");
+ return Status::Busy;
+ }
+
+ *out_slot = found;
+
+ attached_by_consumer = slots[found].attached_by_consumer;
+
+ const bool use_default_size = !width && !height;
+ if (use_default_size) {
+ width = core->default_width;
+ height = core->default_height;
+ }
+
+ slots[found].buffer_state = BufferState::Dequeued;
+
+ const std::shared_ptr<GraphicBuffer>& buffer(slots[found].graphic_buffer);
+ if ((buffer == nullptr) || (buffer->Width() != width) || (buffer->Height() != height) ||
+ (buffer->Format() != format) || ((buffer->Usage() & usage) != usage)) {
+ slots[found].acquire_called = false;
+ slots[found].graphic_buffer = nullptr;
+ slots[found].request_buffer_called = false;
+ slots[found].fence = Fence::NoFence();
+
+ return_flags |= Status::BufferNeedsReallocation;
+ }
+
+ *out_fence = slots[found].fence;
+ slots[found].fence = Fence::NoFence();
+ }
+
+ if ((return_flags & Status::BufferNeedsReallocation) != Status::None) {
+ LOG_DEBUG(Service_Nvnflinger, "allocating a new buffer for slot {}", *out_slot);
+
+ auto graphic_buffer = std::make_shared<GraphicBuffer>(width, height, format, usage);
+ if (graphic_buffer == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "creating GraphicBuffer failed");
+ return Status::NoMemory;
+ }
+
+ {
+ std::scoped_lock lock{core->mutex};
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ slots[*out_slot].frame_number = UINT32_MAX;
+ slots[*out_slot].graphic_buffer = graphic_buffer;
+ }
+ }
+
+ if (attached_by_consumer) {
+ return_flags |= Status::BufferNeedsReallocation;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "returning slot={} frame={}, flags={}", *out_slot,
+ slots[*out_slot].frame_number, return_flags);
+
+ return return_flags;
+}
+
+Status BufferQueueProducer::DetachBuffer(s32 slot) {
+ LOG_DEBUG(Service_Nvnflinger, "slot {}", slot);
+
+ std::scoped_lock lock{core->mutex};
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
+ LOG_ERROR(Service_Nvnflinger, "slot {} out of range [0, {})", slot,
+ BufferQueueDefs::NUM_BUFFER_SLOTS);
+ return Status::BadValue;
+ } else if (slots[slot].buffer_state != BufferState::Dequeued) {
+ LOG_ERROR(Service_Nvnflinger, "slot {} is not owned by the producer (state = {})", slot,
+ slots[slot].buffer_state);
+ return Status::BadValue;
+ } else if (!slots[slot].request_buffer_called) {
+ LOG_ERROR(Service_Nvnflinger, "buffer in slot {} has not been requested", slot);
+ return Status::BadValue;
+ }
+
+ core->FreeBufferLocked(slot);
+ core->SignalDequeueCondition();
+
+ return Status::NoError;
+}
+
+Status BufferQueueProducer::DetachNextBuffer(std::shared_ptr<GraphicBuffer>* out_buffer,
+ Fence* out_fence) {
+ if (out_buffer == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "out_buffer must not be nullptr");
+ return Status::BadValue;
+ } else if (out_fence == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "out_fence must not be nullptr");
+ return Status::BadValue;
+ }
+
+ std::scoped_lock lock{core->mutex};
+ core->WaitWhileAllocatingLocked();
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ // Find the oldest valid slot
+ int found = BufferQueueCore::INVALID_BUFFER_SLOT;
+ for (int s = 0; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) {
+ if (slots[s].buffer_state == BufferState::Free && slots[s].graphic_buffer != nullptr) {
+ if (found == BufferQueueCore::INVALID_BUFFER_SLOT ||
+ slots[s].frame_number < slots[found].frame_number) {
+ found = s;
+ }
+ }
+ }
+
+ if (found == BufferQueueCore::INVALID_BUFFER_SLOT) {
+ return Status::NoMemory;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "Detached slot {}", found);
+
+ *out_buffer = slots[found].graphic_buffer;
+ *out_fence = slots[found].fence;
+
+ core->FreeBufferLocked(found);
+
+ return Status::NoError;
+}
+
+Status BufferQueueProducer::AttachBuffer(s32* out_slot,
+ const std::shared_ptr<GraphicBuffer>& buffer) {
+ if (out_slot == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "out_slot must not be nullptr");
+ return Status::BadValue;
+ } else if (buffer == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "Cannot attach nullptr buffer");
+ return Status::BadValue;
+ }
+
+ std::unique_lock lock{core->mutex};
+ core->WaitWhileAllocatingLocked();
+
+ Status return_flags = Status::NoError;
+ s32 found{};
+
+ const auto status = WaitForFreeSlotThenRelock(false, &found, &return_flags, lock);
+ if (status != Status::NoError) {
+ return status;
+ }
+
+ // This should not happen
+ if (found == BufferQueueCore::INVALID_BUFFER_SLOT) {
+ LOG_ERROR(Service_Nvnflinger, "No available buffer slots");
+ return Status::Busy;
+ }
+
+ *out_slot = found;
+
+ LOG_DEBUG(Service_Nvnflinger, "Returning slot {} flags={}", *out_slot, return_flags);
+
+ slots[*out_slot].graphic_buffer = buffer;
+ slots[*out_slot].buffer_state = BufferState::Dequeued;
+ slots[*out_slot].fence = Fence::NoFence();
+ slots[*out_slot].request_buffer_called = true;
+
+ return return_flags;
+}
+
+Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input,
+ QueueBufferOutput* output) {
+ s64 timestamp{};
+ bool is_auto_timestamp{};
+ Common::Rectangle<s32> crop;
+ NativeWindowScalingMode scaling_mode{};
+ NativeWindowTransform transform;
+ u32 sticky_transform_{};
+ bool async{};
+ s32 swap_interval{};
+ Fence fence{};
+
+ input.Deflate(&timestamp, &is_auto_timestamp, &crop, &scaling_mode, &transform,
+ &sticky_transform_, &async, &swap_interval, &fence);
+
+ switch (scaling_mode) {
+ case NativeWindowScalingMode::Freeze:
+ case NativeWindowScalingMode::ScaleToWindow:
+ case NativeWindowScalingMode::ScaleCrop:
+ case NativeWindowScalingMode::NoScaleCrop:
+ break;
+ default:
+ LOG_ERROR(Service_Nvnflinger, "unknown scaling mode {}", scaling_mode);
+ return Status::BadValue;
+ }
+
+ std::shared_ptr<IConsumerListener> frame_available_listener;
+ std::shared_ptr<IConsumerListener> frame_replaced_listener;
+ s32 callback_ticket{};
+ BufferItem item;
+
+ {
+ std::scoped_lock lock{core->mutex};
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ const s32 max_buffer_count = core->GetMaxBufferCountLocked(async);
+ if (async && core->override_max_buffer_count) {
+ if (core->override_max_buffer_count < max_buffer_count) {
+ LOG_ERROR(Service_Nvnflinger, "async mode is invalid with "
+ "buffer count override");
+ return Status::BadValue;
+ }
+ }
+
+ if (slot < 0 || slot >= max_buffer_count) {
+ LOG_ERROR(Service_Nvnflinger, "slot index {} out of range [0, {})", slot,
+ max_buffer_count);
+ return Status::BadValue;
+ } else if (slots[slot].buffer_state != BufferState::Dequeued) {
+ LOG_ERROR(Service_Nvnflinger,
+ "slot {} is not owned by the producer "
+ "(state = {})",
+ slot, slots[slot].buffer_state);
+ return Status::BadValue;
+ } else if (!slots[slot].request_buffer_called) {
+ LOG_ERROR(Service_Nvnflinger,
+ "slot {} was queued without requesting "
+ "a buffer",
+ slot);
+ return Status::BadValue;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger,
+ "slot={} frame={} time={} crop=[{},{},{},{}] transform={} scale={}", slot,
+ core->frame_counter + 1, timestamp, crop.Left(), crop.Top(), crop.Right(),
+ crop.Bottom(), transform, scaling_mode);
+
+ const std::shared_ptr<GraphicBuffer>& graphic_buffer(slots[slot].graphic_buffer);
+ Common::Rectangle<s32> buffer_rect(graphic_buffer->Width(), graphic_buffer->Height());
+ Common::Rectangle<s32> cropped_rect;
+ [[maybe_unused]] const bool unused = crop.Intersect(buffer_rect, &cropped_rect);
+
+ if (cropped_rect != crop) {
+ LOG_ERROR(Service_Nvnflinger, "crop rect is not contained within the buffer in slot {}",
+ slot);
+ return Status::BadValue;
+ }
+
+ slots[slot].fence = fence;
+ slots[slot].buffer_state = BufferState::Queued;
+ ++core->frame_counter;
+ slots[slot].frame_number = core->frame_counter;
+
+ item.acquire_called = slots[slot].acquire_called;
+ item.graphic_buffer = slots[slot].graphic_buffer;
+ item.crop = crop;
+ item.transform = transform & ~NativeWindowTransform::InverseDisplay;
+ item.transform_to_display_inverse =
+ (transform & NativeWindowTransform::InverseDisplay) != NativeWindowTransform::None;
+ item.scaling_mode = static_cast<u32>(scaling_mode);
+ item.timestamp = timestamp;
+ item.is_auto_timestamp = is_auto_timestamp;
+ item.frame_number = core->frame_counter;
+ item.slot = slot;
+ item.fence = fence;
+ item.is_droppable = core->dequeue_buffer_cannot_block || async;
+ item.swap_interval = swap_interval;
+
+ nvmap.DuplicateHandle(item.graphic_buffer->BufferId(), true);
+
+ sticky_transform = sticky_transform_;
+
+ if (core->queue.empty()) {
+ // When the queue is empty, we can simply queue this buffer
+ core->queue.push_back(item);
+ frame_available_listener = core->consumer_listener;
+ } else {
+ // When the queue is not empty, we need to look at the front buffer
+ // state to see if we need to replace it
+ auto front(core->queue.begin());
+
+ if (front->is_droppable) {
+ // If the front queued buffer is still being tracked, we first
+ // mark it as freed
+ if (core->StillTracking(*front)) {
+ slots[front->slot].buffer_state = BufferState::Free;
+ // Reset the frame number of the freed buffer so that it is the first in line to
+ // be dequeued again
+ slots[front->slot].frame_number = 0;
+ }
+ // Overwrite the droppable buffer with the incoming one
+ *front = item;
+ frame_replaced_listener = core->consumer_listener;
+ } else {
+ core->queue.push_back(item);
+ frame_available_listener = core->consumer_listener;
+ }
+ }
+
+ core->buffer_has_been_queued = true;
+ core->SignalDequeueCondition();
+ output->Inflate(core->default_width, core->default_height, core->transform_hint,
+ static_cast<u32>(core->queue.size()));
+
+ // Take a ticket for the callback functions
+ callback_ticket = next_callback_ticket++;
+ }
+
+ // Don't send the GraphicBuffer through the callback, and don't send the slot number, since the
+ // consumer shouldn't need it
+ item.graphic_buffer.reset();
+ item.slot = BufferItem::INVALID_BUFFER_SLOT;
+
+ // Call back without the main BufferQueue lock held, but with the callback lock held so we can
+ // ensure that callbacks occur in order
+ {
+ std::scoped_lock lock{callback_mutex};
+ while (callback_ticket != current_callback_ticket) {
+ callback_condition.wait(callback_mutex);
+ }
+
+ if (frame_available_listener != nullptr) {
+ frame_available_listener->OnFrameAvailable(item);
+ } else if (frame_replaced_listener != nullptr) {
+ frame_replaced_listener->OnFrameReplaced(item);
+ }
+
+ ++current_callback_ticket;
+ callback_condition.notify_all();
+ }
+
+ return Status::NoError;
+}
+
+void BufferQueueProducer::CancelBuffer(s32 slot, const Fence& fence) {
+ LOG_DEBUG(Service_Nvnflinger, "slot {}", slot);
+
+ std::scoped_lock lock{core->mutex};
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return;
+ }
+
+ if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
+ LOG_ERROR(Service_Nvnflinger, "slot index {} out of range [0, {})", slot,
+ BufferQueueDefs::NUM_BUFFER_SLOTS);
+ return;
+ } else if (slots[slot].buffer_state != BufferState::Dequeued) {
+ LOG_ERROR(Service_Nvnflinger, "slot {} is not owned by the producer (state = {})", slot,
+ slots[slot].buffer_state);
+ return;
+ }
+
+ slots[slot].buffer_state = BufferState::Free;
+ slots[slot].frame_number = 0;
+ slots[slot].fence = fence;
+
+ core->SignalDequeueCondition();
+ buffer_wait_event->Signal();
+}
+
+Status BufferQueueProducer::Query(NativeWindow what, s32* out_value) {
+ std::scoped_lock lock{core->mutex};
+
+ if (out_value == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "outValue was nullptr");
+ return Status::BadValue;
+ }
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ u32 value{};
+ switch (what) {
+ case NativeWindow::Width:
+ value = core->default_width;
+ break;
+ case NativeWindow::Height:
+ value = core->default_height;
+ break;
+ case NativeWindow::Format:
+ value = static_cast<u32>(core->default_buffer_format);
+ break;
+ case NativeWindow::MinUndequeedBuffers:
+ value = core->GetMinUndequeuedBufferCountLocked(false);
+ break;
+ case NativeWindow::StickyTransform:
+ value = sticky_transform;
+ break;
+ case NativeWindow::ConsumerRunningBehind:
+ value = (core->queue.size() > 1);
+ break;
+ case NativeWindow::ConsumerUsageBits:
+ value = core->consumer_usage_bit;
+ break;
+ default:
+ ASSERT(false);
+ return Status::BadValue;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "what = {}, value = {}", what, value);
+
+ *out_value = static_cast<s32>(value);
+
+ return Status::NoError;
+}
+
+Status BufferQueueProducer::Connect(const std::shared_ptr<IProducerListener>& listener,
+ NativeWindowApi api, bool producer_controlled_by_app,
+ QueueBufferOutput* output) {
+ std::scoped_lock lock{core->mutex};
+
+ LOG_DEBUG(Service_Nvnflinger, "api = {} producer_controlled_by_app = {}", api,
+ producer_controlled_by_app);
+
+ if (core->is_abandoned) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has been abandoned");
+ return Status::NoInit;
+ }
+
+ if (core->consumer_listener == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "BufferQueue has no consumer");
+ return Status::NoInit;
+ }
+
+ if (output == nullptr) {
+ LOG_ERROR(Service_Nvnflinger, "output was nullptr");
+ return Status::BadValue;
+ }
+
+ if (core->connected_api != NativeWindowApi::NoConnectedApi) {
+ LOG_ERROR(Service_Nvnflinger, "already connected (cur = {} req = {})", core->connected_api,
+ api);
+ return Status::BadValue;
+ }
+
+ Status status = Status::NoError;
+ switch (api) {
+ case NativeWindowApi::Egl:
+ case NativeWindowApi::Cpu:
+ case NativeWindowApi::Media:
+ case NativeWindowApi::Camera:
+ core->connected_api = api;
+ output->Inflate(core->default_width, core->default_height, core->transform_hint,
+ static_cast<u32>(core->queue.size()));
+ core->connected_producer_listener = listener;
+ break;
+ default:
+ LOG_ERROR(Service_Nvnflinger, "unknown api = {}", api);
+ status = Status::BadValue;
+ break;
+ }
+
+ core->buffer_has_been_queued = false;
+ core->dequeue_buffer_cannot_block =
+ core->consumer_controlled_by_app && producer_controlled_by_app;
+
+ return status;
+}
+
+Status BufferQueueProducer::Disconnect(NativeWindowApi api) {
+ LOG_DEBUG(Service_Nvnflinger, "api = {}", api);
+
+ Status status = Status::NoError;
+ std::shared_ptr<IConsumerListener> listener;
+
+ {
+ std::scoped_lock lock{core->mutex};
+
+ core->WaitWhileAllocatingLocked();
+
+ if (core->is_abandoned) {
+ // Disconnecting after the surface has been abandoned is a no-op.
+ return Status::NoError;
+ }
+
+ // HACK: We are not Android. Remove handle for items in queue, and clear queue.
+ // Allows synchronous destruction of nvmap handles.
+ for (auto& item : core->queue) {
+ nvmap.FreeHandle(item.graphic_buffer->BufferId(), true);
+ }
+ core->queue.clear();
+
+ switch (api) {
+ case NativeWindowApi::Egl:
+ case NativeWindowApi::Cpu:
+ case NativeWindowApi::Media:
+ case NativeWindowApi::Camera:
+ if (core->connected_api == api) {
+ core->FreeAllBuffersLocked();
+ core->connected_producer_listener = nullptr;
+ core->connected_api = NativeWindowApi::NoConnectedApi;
+ core->SignalDequeueCondition();
+ buffer_wait_event->Signal();
+ listener = core->consumer_listener;
+ } else {
+ LOG_ERROR(Service_Nvnflinger, "still connected to another api (cur = {} req = {})",
+ core->connected_api, api);
+ status = Status::BadValue;
+ }
+ break;
+ default:
+ LOG_ERROR(Service_Nvnflinger, "unknown api = {}", api);
+ status = Status::BadValue;
+ break;
+ }
+ }
+
+ // Call back without lock held
+ if (listener != nullptr) {
+ listener->OnBuffersReleased();
+ }
+
+ return status;
+}
+
+Status BufferQueueProducer::SetPreallocatedBuffer(s32 slot,
+ const std::shared_ptr<GraphicBuffer>& buffer) {
+ LOG_DEBUG(Service_Nvnflinger, "slot {}", slot);
+
+ if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
+ return Status::BadValue;
+ }
+
+ std::scoped_lock lock{core->mutex};
+
+ slots[slot] = {};
+ slots[slot].fence = Fence::NoFence();
+ slots[slot].graphic_buffer = buffer;
+ slots[slot].frame_number = 0;
+
+ // Most games preallocate a buffer and pass a valid buffer here. However, it is possible for
+ // this to be called with an empty buffer, Naruto Ultimate Ninja Storm is a game that does this.
+ if (buffer) {
+ slots[slot].is_preallocated = true;
+
+ core->override_max_buffer_count = core->GetPreallocatedBufferCountLocked();
+ core->default_width = buffer->Width();
+ core->default_height = buffer->Height();
+ core->default_buffer_format = buffer->Format();
+ }
+
+ core->SignalDequeueCondition();
+ buffer_wait_event->Signal();
+
+ return Status::NoError;
+}
+
+void BufferQueueProducer::Transact(HLERequestContext& ctx, TransactionId code, u32 flags) {
+ Status status{Status::NoError};
+ InputParcel parcel_in{ctx.ReadBuffer()};
+ OutputParcel parcel_out{};
+
+ switch (code) {
+ case TransactionId::Connect: {
+ const auto enable_listener = parcel_in.Read<bool>();
+ const auto api = parcel_in.Read<NativeWindowApi>();
+ const auto producer_controlled_by_app = parcel_in.Read<bool>();
+
+ UNIMPLEMENTED_IF_MSG(enable_listener, "Listener is unimplemented!");
+
+ std::shared_ptr<IProducerListener> listener;
+ QueueBufferOutput output{};
+
+ status = Connect(listener, api, producer_controlled_by_app, &output);
+
+ parcel_out.Write(output);
+ break;
+ }
+ case TransactionId::SetPreallocatedBuffer: {
+ const auto slot = parcel_in.Read<s32>();
+ const auto buffer = parcel_in.ReadObject<GraphicBuffer>();
+
+ status = SetPreallocatedBuffer(slot, buffer);
+ break;
+ }
+ case TransactionId::DequeueBuffer: {
+ const auto is_async = parcel_in.Read<bool>();
+ const auto width = parcel_in.Read<u32>();
+ const auto height = parcel_in.Read<u32>();
+ const auto pixel_format = parcel_in.Read<PixelFormat>();
+ const auto usage = parcel_in.Read<u32>();
+
+ s32 slot{};
+ Fence fence{};
+
+ status = DequeueBuffer(&slot, &fence, is_async, width, height, pixel_format, usage);
+
+ parcel_out.Write(slot);
+ parcel_out.WriteFlattenedObject(&fence);
+ break;
+ }
+ case TransactionId::RequestBuffer: {
+ const auto slot = parcel_in.Read<s32>();
+
+ std::shared_ptr<GraphicBuffer> buf;
+
+ status = RequestBuffer(slot, &buf);
+
+ parcel_out.WriteFlattenedObject(buf);
+ break;
+ }
+ case TransactionId::QueueBuffer: {
+ const auto slot = parcel_in.Read<s32>();
+
+ QueueBufferInput input{parcel_in};
+ QueueBufferOutput output;
+
+ status = QueueBuffer(slot, input, &output);
+
+ parcel_out.Write(output);
+ break;
+ }
+ case TransactionId::Query: {
+ const auto what = parcel_in.Read<NativeWindow>();
+
+ s32 value{};
+
+ status = Query(what, &value);
+
+ parcel_out.Write(value);
+ break;
+ }
+ case TransactionId::CancelBuffer: {
+ const auto slot = parcel_in.Read<s32>();
+ const auto fence = parcel_in.ReadFlattened<Fence>();
+
+ CancelBuffer(slot, fence);
+ break;
+ }
+ case TransactionId::Disconnect: {
+ const auto api = parcel_in.Read<NativeWindowApi>();
+
+ status = Disconnect(api);
+ break;
+ }
+ case TransactionId::DetachBuffer: {
+ const auto slot = parcel_in.Read<s32>();
+
+ status = DetachBuffer(slot);
+ break;
+ }
+ case TransactionId::SetBufferCount: {
+ const auto buffer_count = parcel_in.Read<s32>();
+
+ status = SetBufferCount(buffer_count);
+ break;
+ }
+ case TransactionId::GetBufferHistory:
+ LOG_WARNING(Service_Nvnflinger, "(STUBBED) called, transaction=GetBufferHistory");
+ break;
+ default:
+ ASSERT_MSG(false, "Unimplemented TransactionId {}", code);
+ break;
+ }
+
+ parcel_out.Write(status);
+
+ ctx.WriteBuffer(parcel_out.Serialize());
+}
+
+Kernel::KReadableEvent& BufferQueueProducer::GetNativeHandle() {
+ return buffer_wait_event->GetReadableEvent();
+}
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_producer.h b/src/core/hle/service/nvnflinger/buffer_queue_producer.h
new file mode 100644
index 000000000..d4201c104
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_queue_producer.h
@@ -0,0 +1,90 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueProducer.h
+
+#pragma once
+
+#include <condition_variable>
+#include <memory>
+#include <mutex>
+
+#include "common/common_funcs.h"
+#include "core/hle/service/nvdrv/nvdata.h"
+#include "core/hle/service/nvnflinger/binder.h"
+#include "core/hle/service/nvnflinger/buffer_queue_defs.h"
+#include "core/hle/service/nvnflinger/buffer_slot.h"
+#include "core/hle/service/nvnflinger/graphic_buffer_producer.h"
+#include "core/hle/service/nvnflinger/pixel_format.h"
+#include "core/hle/service/nvnflinger/status.h"
+#include "core/hle/service/nvnflinger/window.h"
+
+namespace Kernel {
+class KernelCore;
+class KEvent;
+class KReadableEvent;
+} // namespace Kernel
+
+namespace Service::KernelHelpers {
+class ServiceContext;
+} // namespace Service::KernelHelpers
+
+namespace Service::Nvidia::NvCore {
+class NvMap;
+} // namespace Service::Nvidia::NvCore
+
+namespace Service::android {
+
+class BufferQueueCore;
+class IProducerListener;
+
+class BufferQueueProducer final : public IBinder {
+public:
+ explicit BufferQueueProducer(Service::KernelHelpers::ServiceContext& service_context_,
+ std::shared_ptr<BufferQueueCore> buffer_queue_core_,
+ Service::Nvidia::NvCore::NvMap& nvmap_);
+ ~BufferQueueProducer();
+
+ void Transact(HLERequestContext& ctx, android::TransactionId code, u32 flags) override;
+
+ Kernel::KReadableEvent& GetNativeHandle() override;
+
+public:
+ Status RequestBuffer(s32 slot, std::shared_ptr<GraphicBuffer>* buf);
+ Status SetBufferCount(s32 buffer_count);
+ Status DequeueBuffer(s32* out_slot, android::Fence* out_fence, bool async, u32 width,
+ u32 height, PixelFormat format, u32 usage);
+ Status DetachBuffer(s32 slot);
+ Status DetachNextBuffer(std::shared_ptr<GraphicBuffer>* out_buffer, Fence* out_fence);
+ Status AttachBuffer(s32* outSlot, const std::shared_ptr<GraphicBuffer>& buffer);
+ Status QueueBuffer(s32 slot, const QueueBufferInput& input, QueueBufferOutput* output);
+ void CancelBuffer(s32 slot, const Fence& fence);
+ Status Query(NativeWindow what, s32* out_value);
+ Status Connect(const std::shared_ptr<IProducerListener>& listener, NativeWindowApi api,
+ bool producer_controlled_by_app, QueueBufferOutput* output);
+
+ Status Disconnect(NativeWindowApi api);
+ Status SetPreallocatedBuffer(s32 slot, const std::shared_ptr<GraphicBuffer>& buffer);
+
+private:
+ BufferQueueProducer(const BufferQueueProducer&) = delete;
+
+ Status WaitForFreeSlotThenRelock(bool async, s32* found, Status* return_flags,
+ std::unique_lock<std::mutex>& lk) const;
+
+ Kernel::KEvent* buffer_wait_event{};
+ Service::KernelHelpers::ServiceContext& service_context;
+
+ std::shared_ptr<BufferQueueCore> core;
+ BufferQueueDefs::SlotsType& slots;
+ u32 sticky_transform{};
+ std::mutex callback_mutex;
+ s32 next_callback_ticket{};
+ s32 current_callback_ticket{};
+ std::condition_variable_any callback_condition;
+
+ Service::Nvidia::NvCore::NvMap& nvmap;
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/buffer_slot.h b/src/core/hle/service/nvnflinger/buffer_slot.h
new file mode 100644
index 000000000..d25bca049
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/buffer_slot.h
@@ -0,0 +1,38 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferSlot.h
+
+#pragma once
+
+#include <memory>
+
+#include "common/common_types.h"
+#include "core/hle/service/nvnflinger/ui/fence.h"
+
+namespace Service::android {
+
+class GraphicBuffer;
+
+enum class BufferState : u32 {
+ Free = 0,
+ Dequeued = 1,
+ Queued = 2,
+ Acquired = 3,
+};
+
+struct BufferSlot final {
+ constexpr BufferSlot() = default;
+
+ std::shared_ptr<GraphicBuffer> graphic_buffer;
+ BufferState buffer_state{BufferState::Free};
+ bool request_buffer_called{};
+ u64 frame_number{};
+ Fence fence;
+ bool acquire_called{};
+ bool attached_by_consumer{};
+ bool is_preallocated{};
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_transform_flags.h b/src/core/hle/service/nvnflinger/buffer_transform_flags.h
index 67aa5dad6..67aa5dad6 100644
--- a/src/core/hle/service/nvflinger/buffer_transform_flags.h
+++ b/src/core/hle/service/nvnflinger/buffer_transform_flags.h
diff --git a/src/core/hle/service/nvnflinger/consumer_base.cpp b/src/core/hle/service/nvnflinger/consumer_base.cpp
new file mode 100644
index 000000000..4dcda8dac
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/consumer_base.cpp
@@ -0,0 +1,133 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/ConsumerBase.cpp
+
+#include "common/assert.h"
+#include "common/logging/log.h"
+#include "core/hle/service/nvnflinger/buffer_item.h"
+#include "core/hle/service/nvnflinger/buffer_queue_consumer.h"
+#include "core/hle/service/nvnflinger/buffer_queue_core.h"
+#include "core/hle/service/nvnflinger/consumer_base.h"
+#include "core/hle/service/nvnflinger/ui/graphic_buffer.h"
+
+namespace Service::android {
+
+ConsumerBase::ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_)
+ : consumer{std::move(consumer_)} {}
+
+ConsumerBase::~ConsumerBase() {
+ std::scoped_lock lock{mutex};
+
+ ASSERT_MSG(is_abandoned, "consumer is not abandoned!");
+}
+
+void ConsumerBase::Connect(bool controlled_by_app) {
+ consumer->Connect(shared_from_this(), controlled_by_app);
+}
+
+void ConsumerBase::FreeBufferLocked(s32 slot_index) {
+ LOG_DEBUG(Service_Nvnflinger, "slot_index={}", slot_index);
+
+ slots[slot_index].graphic_buffer = nullptr;
+ slots[slot_index].fence = Fence::NoFence();
+ slots[slot_index].frame_number = 0;
+}
+
+void ConsumerBase::OnFrameAvailable(const BufferItem& item) {
+ LOG_DEBUG(Service_Nvnflinger, "called");
+}
+
+void ConsumerBase::OnFrameReplaced(const BufferItem& item) {
+ LOG_DEBUG(Service_Nvnflinger, "called");
+}
+
+void ConsumerBase::OnBuffersReleased() {
+ std::scoped_lock lock{mutex};
+
+ LOG_DEBUG(Service_Nvnflinger, "called");
+
+ if (is_abandoned) {
+ // Nothing to do if we're already abandoned.
+ return;
+ }
+
+ u64 mask = 0;
+ consumer->GetReleasedBuffers(&mask);
+ for (int i = 0; i < BufferQueueDefs::NUM_BUFFER_SLOTS; i++) {
+ if (mask & (1ULL << i)) {
+ FreeBufferLocked(i);
+ }
+ }
+}
+
+void ConsumerBase::OnSidebandStreamChanged() {}
+
+Status ConsumerBase::AcquireBufferLocked(BufferItem* item, std::chrono::nanoseconds present_when) {
+ Status err = consumer->AcquireBuffer(item, present_when);
+ if (err != Status::NoError) {
+ return err;
+ }
+
+ if (item->graphic_buffer != nullptr) {
+ slots[item->slot].graphic_buffer = item->graphic_buffer;
+ }
+
+ slots[item->slot].frame_number = item->frame_number;
+ slots[item->slot].fence = item->fence;
+
+ LOG_DEBUG(Service_Nvnflinger, "slot={}", item->slot);
+
+ return Status::NoError;
+}
+
+Status ConsumerBase::AddReleaseFenceLocked(s32 slot,
+ const std::shared_ptr<GraphicBuffer>& graphic_buffer,
+ const Fence& fence) {
+ LOG_DEBUG(Service_Nvnflinger, "slot={}", slot);
+
+ // If consumer no longer tracks this graphic_buffer, we can safely
+ // drop this fence, as it will never be received by the producer.
+
+ if (!StillTracking(slot, graphic_buffer)) {
+ return Status::NoError;
+ }
+
+ slots[slot].fence = fence;
+
+ return Status::NoError;
+}
+
+Status ConsumerBase::ReleaseBufferLocked(s32 slot,
+ const std::shared_ptr<GraphicBuffer>& graphic_buffer) {
+ // If consumer no longer tracks this graphic_buffer (we received a new
+ // buffer on the same slot), the buffer producer is definitely no longer
+ // tracking it.
+
+ if (!StillTracking(slot, graphic_buffer)) {
+ return Status::NoError;
+ }
+
+ LOG_DEBUG(Service_Nvnflinger, "slot={}", slot);
+ Status err = consumer->ReleaseBuffer(slot, slots[slot].frame_number, slots[slot].fence);
+ if (err == Status::StaleBufferSlot) {
+ FreeBufferLocked(slot);
+ }
+
+ slots[slot].fence = Fence::NoFence();
+
+ return err;
+}
+
+bool ConsumerBase::StillTracking(s32 slot,
+ const std::shared_ptr<GraphicBuffer>& graphic_buffer) const {
+ if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) {
+ return false;
+ }
+
+ return (slots[slot].graphic_buffer != nullptr &&
+ slots[slot].graphic_buffer->Handle() == graphic_buffer->Handle());
+}
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/consumer_base.h b/src/core/hle/service/nvnflinger/consumer_base.h
new file mode 100644
index 000000000..264829414
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/consumer_base.h
@@ -0,0 +1,60 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/ConsumerBase.h
+
+#pragma once
+
+#include <array>
+#include <chrono>
+#include <memory>
+#include <mutex>
+
+#include "common/common_types.h"
+#include "core/hle/service/nvnflinger/buffer_queue_defs.h"
+#include "core/hle/service/nvnflinger/consumer_listener.h"
+#include "core/hle/service/nvnflinger/status.h"
+
+namespace Service::android {
+
+class BufferItem;
+class BufferQueueConsumer;
+
+class ConsumerBase : public IConsumerListener, public std::enable_shared_from_this<ConsumerBase> {
+public:
+ void Connect(bool controlled_by_app);
+
+protected:
+ explicit ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_);
+ ~ConsumerBase() override;
+
+ void OnFrameAvailable(const BufferItem& item) override;
+ void OnFrameReplaced(const BufferItem& item) override;
+ void OnBuffersReleased() override;
+ void OnSidebandStreamChanged() override;
+
+ void FreeBufferLocked(s32 slot_index);
+ Status AcquireBufferLocked(BufferItem* item, std::chrono::nanoseconds present_when);
+ Status ReleaseBufferLocked(s32 slot, const std::shared_ptr<GraphicBuffer>& graphic_buffer);
+ bool StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer>& graphic_buffer) const;
+ Status AddReleaseFenceLocked(s32 slot, const std::shared_ptr<GraphicBuffer>& graphic_buffer,
+ const Fence& fence);
+
+ struct Slot final {
+ std::shared_ptr<GraphicBuffer> graphic_buffer;
+ Fence fence;
+ u64 frame_number{};
+ };
+
+protected:
+ std::array<Slot, BufferQueueDefs::NUM_BUFFER_SLOTS> slots;
+
+ bool is_abandoned{};
+
+ std::unique_ptr<BufferQueueConsumer> consumer;
+
+ mutable std::mutex mutex;
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/consumer_listener.h b/src/core/hle/service/nvnflinger/consumer_listener.h
index 74a193988..74a193988 100644
--- a/src/core/hle/service/nvflinger/consumer_listener.h
+++ b/src/core/hle/service/nvnflinger/consumer_listener.h
diff --git a/src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp b/src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp
new file mode 100644
index 000000000..d72b49a8e
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/graphic_buffer_producer.cpp
@@ -0,0 +1,18 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/libs/gui/IGraphicBufferProducer.cpp
+
+#include "core/hle/service/nvnflinger/graphic_buffer_producer.h"
+#include "core/hle/service/nvnflinger/parcel.h"
+
+namespace Service::android {
+
+QueueBufferInput::QueueBufferInput(InputParcel& parcel) {
+ parcel.ReadFlattened(*this);
+}
+
+QueueBufferOutput::QueueBufferOutput() = default;
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/graphic_buffer_producer.h b/src/core/hle/service/nvnflinger/graphic_buffer_producer.h
new file mode 100644
index 000000000..21d7b31f3
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/graphic_buffer_producer.h
@@ -0,0 +1,76 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2010 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/IGraphicBufferProducer.h
+
+#pragma once
+
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "common/math_util.h"
+#include "core/hle/service/nvnflinger/ui/fence.h"
+#include "core/hle/service/nvnflinger/window.h"
+
+namespace Service::android {
+
+class InputParcel;
+
+#pragma pack(push, 1)
+struct QueueBufferInput final {
+ explicit QueueBufferInput(InputParcel& parcel);
+
+ void Deflate(s64* timestamp_, bool* is_auto_timestamp_, Common::Rectangle<s32>* crop_,
+ NativeWindowScalingMode* scaling_mode_, NativeWindowTransform* transform_,
+ u32* sticky_transform_, bool* async_, s32* swap_interval_, Fence* fence_) const {
+ *timestamp_ = timestamp;
+ *is_auto_timestamp_ = static_cast<bool>(is_auto_timestamp);
+ *crop_ = crop;
+ *scaling_mode_ = scaling_mode;
+ *transform_ = transform;
+ *sticky_transform_ = sticky_transform;
+ *async_ = static_cast<bool>(async);
+ *swap_interval_ = swap_interval;
+ *fence_ = fence;
+ }
+
+private:
+ s64 timestamp{};
+ s32 is_auto_timestamp{};
+ Common::Rectangle<s32> crop{};
+ NativeWindowScalingMode scaling_mode{};
+ NativeWindowTransform transform{};
+ u32 sticky_transform{};
+ s32 async{};
+ s32 swap_interval{};
+ Fence fence{};
+};
+#pragma pack(pop)
+static_assert(sizeof(QueueBufferInput) == 84, "QueueBufferInput has wrong size");
+
+struct QueueBufferOutput final {
+ QueueBufferOutput();
+
+ void Deflate(u32* width_, u32* height_, u32* transform_hint_, u32* num_pending_buffers_) const {
+ *width_ = width;
+ *height_ = height;
+ *transform_hint_ = transform_hint;
+ *num_pending_buffers_ = num_pending_buffers;
+ }
+
+ void Inflate(u32 width_, u32 height_, u32 transform_hint_, u32 num_pending_buffers_) {
+ width = width_;
+ height = height_;
+ transform_hint = transform_hint_;
+ num_pending_buffers = num_pending_buffers_;
+ }
+
+private:
+ u32 width{};
+ u32 height{};
+ u32 transform_hint{};
+ u32 num_pending_buffers{};
+};
+static_assert(sizeof(QueueBufferOutput) == 16, "QueueBufferOutput has wrong size");
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvnflinger/hos_binder_driver_server.cpp b/src/core/hle/service/nvnflinger/hos_binder_driver_server.cpp
new file mode 100644
index 000000000..b86a79ec9
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/hos_binder_driver_server.cpp
@@ -0,0 +1,36 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include <mutex>
+
+#include "common/common_types.h"
+#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
+
+namespace Service::Nvnflinger {
+
+HosBinderDriverServer::HosBinderDriverServer(Core::System& system_)
+ : service_context(system_, "HosBinderDriverServer") {}
+
+HosBinderDriverServer::~HosBinderDriverServer() {}
+
+u64 HosBinderDriverServer::RegisterProducer(std::unique_ptr<android::IBinder>&& binder) {
+ std::scoped_lock lk{lock};
+
+ last_id++;
+
+ producers[last_id] = std::move(binder);
+
+ return last_id;
+}
+
+android::IBinder* HosBinderDriverServer::TryGetProducer(u64 id) {
+ std::scoped_lock lk{lock};
+
+ if (auto search = producers.find(id); search != producers.end()) {
+ return search->second.get();
+ }
+
+ return {};
+}
+
+} // namespace Service::Nvnflinger
diff --git a/src/core/hle/service/nvnflinger/hos_binder_driver_server.h b/src/core/hle/service/nvnflinger/hos_binder_driver_server.h
new file mode 100644
index 000000000..58bb9469a
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/hos_binder_driver_server.h
@@ -0,0 +1,37 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <memory>
+#include <mutex>
+#include <unordered_map>
+
+#include "common/common_types.h"
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/nvnflinger/binder.h"
+
+namespace Core {
+class System;
+}
+
+namespace Service::Nvnflinger {
+
+class HosBinderDriverServer final {
+public:
+ explicit HosBinderDriverServer(Core::System& system_);
+ ~HosBinderDriverServer();
+
+ u64 RegisterProducer(std::unique_ptr<android::IBinder>&& binder);
+
+ android::IBinder* TryGetProducer(u64 id);
+
+private:
+ KernelHelpers::ServiceContext service_context;
+
+ std::unordered_map<u64, std::unique_ptr<android::IBinder>> producers;
+ std::mutex lock;
+ u64 last_id{};
+};
+
+} // namespace Service::Nvnflinger
diff --git a/src/core/hle/service/nvnflinger/nvnflinger.cpp b/src/core/hle/service/nvnflinger/nvnflinger.cpp
new file mode 100644
index 000000000..5f55cd31e
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/nvnflinger.cpp
@@ -0,0 +1,334 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include <algorithm>
+#include <optional>
+
+#include "common/assert.h"
+#include "common/logging/log.h"
+#include "common/microprofile.h"
+#include "common/scope_exit.h"
+#include "common/settings.h"
+#include "common/thread.h"
+#include "core/core.h"
+#include "core/core_timing.h"
+#include "core/hle/kernel/k_readable_event.h"
+#include "core/hle/service/nvdrv/devices/nvdisp_disp0.h"
+#include "core/hle/service/nvdrv/nvdrv.h"
+#include "core/hle/service/nvnflinger/buffer_item_consumer.h"
+#include "core/hle/service/nvnflinger/buffer_queue_core.h"
+#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
+#include "core/hle/service/nvnflinger/nvnflinger.h"
+#include "core/hle/service/nvnflinger/ui/graphic_buffer.h"
+#include "core/hle/service/vi/display/vi_display.h"
+#include "core/hle/service/vi/layer/vi_layer.h"
+#include "core/hle/service/vi/vi_results.h"
+#include "video_core/gpu.h"
+#include "video_core/host1x/host1x.h"
+#include "video_core/host1x/syncpoint_manager.h"
+
+namespace Service::Nvnflinger {
+
+constexpr auto frame_ns = std::chrono::nanoseconds{1000000000 / 60};
+
+void Nvnflinger::SplitVSync(std::stop_token stop_token) {
+ system.RegisterHostThread();
+ std::string name = "VSyncThread";
+ MicroProfileOnThreadCreate(name.c_str());
+
+ // Cleanup
+ SCOPE_EXIT({ MicroProfileOnThreadExit(); });
+
+ Common::SetCurrentThreadName(name.c_str());
+ Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
+
+ while (!stop_token.stop_requested()) {
+ vsync_signal.Wait();
+
+ const auto lock_guard = Lock();
+ Compose();
+ }
+}
+
+Nvnflinger::Nvnflinger(Core::System& system_, HosBinderDriverServer& hos_binder_driver_server_)
+ : system(system_), service_context(system_, "nvnflinger"),
+ hos_binder_driver_server(hos_binder_driver_server_) {
+ displays.emplace_back(0, "Default", hos_binder_driver_server, service_context, system);
+ displays.emplace_back(1, "External", hos_binder_driver_server, service_context, system);
+ displays.emplace_back(2, "Edid", hos_binder_driver_server, service_context, system);
+ displays.emplace_back(3, "Internal", hos_binder_driver_server, service_context, system);
+ displays.emplace_back(4, "Null", hos_binder_driver_server, service_context, system);
+ guard = std::make_shared<std::mutex>();
+
+ // Schedule the screen composition events
+ multi_composition_event = Core::Timing::CreateEvent(
+ "ScreenComposition",
+ [this](std::uintptr_t, s64 time,
+ std::chrono::nanoseconds ns_late) -> std::optional<std::chrono::nanoseconds> {
+ { const auto lock_guard = Lock(); }
+ vsync_signal.Set();
+ return std::chrono::nanoseconds(GetNextTicks());
+ });
+
+ single_composition_event = Core::Timing::CreateEvent(
+ "ScreenComposition",
+ [this](std::uintptr_t, s64 time,
+ std::chrono::nanoseconds ns_late) -> std::optional<std::chrono::nanoseconds> {
+ const auto lock_guard = Lock();
+ Compose();
+
+ return std::chrono::nanoseconds(GetNextTicks());
+ });
+
+ if (system.IsMulticore()) {
+ system.CoreTiming().ScheduleLoopingEvent(frame_ns, frame_ns, multi_composition_event);
+ vsync_thread = std::jthread([this](std::stop_token token) { SplitVSync(token); });
+ } else {
+ system.CoreTiming().ScheduleLoopingEvent(frame_ns, frame_ns, single_composition_event);
+ }
+}
+
+Nvnflinger::~Nvnflinger() {
+ if (system.IsMulticore()) {
+ system.CoreTiming().UnscheduleEvent(multi_composition_event, {});
+ vsync_thread.request_stop();
+ vsync_signal.Set();
+ } else {
+ system.CoreTiming().UnscheduleEvent(single_composition_event, {});
+ }
+
+ ShutdownLayers();
+
+ if (nvdrv) {
+ nvdrv->Close(disp_fd);
+ }
+}
+
+void Nvnflinger::ShutdownLayers() {
+ for (auto& display : displays) {
+ for (size_t layer = 0; layer < display.GetNumLayers(); ++layer) {
+ display.GetLayer(layer).Core().NotifyShutdown();
+ }
+ }
+}
+
+void Nvnflinger::SetNVDrvInstance(std::shared_ptr<Nvidia::Module> instance) {
+ nvdrv = std::move(instance);
+ disp_fd = nvdrv->Open("/dev/nvdisp_disp0");
+}
+
+std::optional<u64> Nvnflinger::OpenDisplay(std::string_view name) {
+ const auto lock_guard = Lock();
+
+ LOG_DEBUG(Service_Nvnflinger, "Opening \"{}\" display", name);
+
+ const auto itr =
+ std::find_if(displays.begin(), displays.end(),
+ [&](const VI::Display& display) { return display.GetName() == name; });
+
+ if (itr == displays.end()) {
+ return std::nullopt;
+ }
+
+ return itr->GetID();
+}
+
+bool Nvnflinger::CloseDisplay(u64 display_id) {
+ const auto lock_guard = Lock();
+ auto* const display = FindDisplay(display_id);
+
+ if (display == nullptr) {
+ return false;
+ }
+
+ display->Reset();
+
+ return true;
+}
+
+std::optional<u64> Nvnflinger::CreateLayer(u64 display_id) {
+ const auto lock_guard = Lock();
+ auto* const display = FindDisplay(display_id);
+
+ if (display == nullptr) {
+ return std::nullopt;
+ }
+
+ const u64 layer_id = next_layer_id++;
+ CreateLayerAtId(*display, layer_id);
+ return layer_id;
+}
+
+void Nvnflinger::CreateLayerAtId(VI::Display& display, u64 layer_id) {
+ const auto buffer_id = next_buffer_queue_id++;
+ display.CreateLayer(layer_id, buffer_id, nvdrv->container);
+}
+
+void Nvnflinger::CloseLayer(u64 layer_id) {
+ const auto lock_guard = Lock();
+
+ for (auto& display : displays) {
+ display.CloseLayer(layer_id);
+ }
+}
+
+std::optional<u32> Nvnflinger::FindBufferQueueId(u64 display_id, u64 layer_id) {
+ const auto lock_guard = Lock();
+ const auto* const layer = FindOrCreateLayer(display_id, layer_id);
+
+ if (layer == nullptr) {
+ return std::nullopt;
+ }
+
+ return layer->GetBinderId();
+}
+
+ResultVal<Kernel::KReadableEvent*> Nvnflinger::FindVsyncEvent(u64 display_id) {
+ const auto lock_guard = Lock();
+ auto* const display = FindDisplay(display_id);
+
+ if (display == nullptr) {
+ return VI::ResultNotFound;
+ }
+
+ return display->GetVSyncEvent();
+}
+
+VI::Display* Nvnflinger::FindDisplay(u64 display_id) {
+ const auto itr =
+ std::find_if(displays.begin(), displays.end(),
+ [&](const VI::Display& display) { return display.GetID() == display_id; });
+
+ if (itr == displays.end()) {
+ return nullptr;
+ }
+
+ return &*itr;
+}
+
+const VI::Display* Nvnflinger::FindDisplay(u64 display_id) const {
+ const auto itr =
+ std::find_if(displays.begin(), displays.end(),
+ [&](const VI::Display& display) { return display.GetID() == display_id; });
+
+ if (itr == displays.end()) {
+ return nullptr;
+ }
+
+ return &*itr;
+}
+
+VI::Layer* Nvnflinger::FindLayer(u64 display_id, u64 layer_id) {
+ auto* const display = FindDisplay(display_id);
+
+ if (display == nullptr) {
+ return nullptr;
+ }
+
+ return display->FindLayer(layer_id);
+}
+
+const VI::Layer* Nvnflinger::FindLayer(u64 display_id, u64 layer_id) const {
+ const auto* const display = FindDisplay(display_id);
+
+ if (display == nullptr) {
+ return nullptr;
+ }
+
+ return display->FindLayer(layer_id);
+}
+
+VI::Layer* Nvnflinger::FindOrCreateLayer(u64 display_id, u64 layer_id) {
+ auto* const display = FindDisplay(display_id);
+
+ if (display == nullptr) {
+ return nullptr;
+ }
+
+ auto* layer = display->FindLayer(layer_id);
+
+ if (layer == nullptr) {
+ LOG_DEBUG(Service_Nvnflinger, "Layer at id {} not found. Trying to create it.", layer_id);
+ CreateLayerAtId(*display, layer_id);
+ return display->FindLayer(layer_id);
+ }
+
+ return layer;
+}
+
+void Nvnflinger::Compose() {
+ for (auto& display : displays) {
+ // Trigger vsync for this display at the end of drawing
+ SCOPE_EXIT({ display.SignalVSyncEvent(); });
+
+ // Don't do anything for displays without layers.
+ if (!display.HasLayers())
+ continue;
+
+ // TODO(Subv): Support more than 1 layer.
+ VI::Layer& layer = display.GetLayer(0);
+
+ android::BufferItem buffer{};
+ const auto status = layer.GetConsumer().AcquireBuffer(&buffer, {}, false);
+
+ if (status != android::Status::NoError) {
+ continue;
+ }
+
+ const auto& igbp_buffer = *buffer.graphic_buffer;
+
+ if (!system.IsPoweredOn()) {
+ return; // We are likely shutting down
+ }
+
+ // Now send the buffer to the GPU for drawing.
+ // TODO(Subv): Support more than just disp0. The display device selection is probably based
+ // on which display we're drawing (Default, Internal, External, etc)
+ auto nvdisp = nvdrv->GetDevice<Nvidia::Devices::nvdisp_disp0>(disp_fd);
+ ASSERT(nvdisp);
+
+ guard->unlock();
+ Common::Rectangle<int> crop_rect{
+ static_cast<int>(buffer.crop.Left()), static_cast<int>(buffer.crop.Top()),
+ static_cast<int>(buffer.crop.Right()), static_cast<int>(buffer.crop.Bottom())};
+
+ nvdisp->flip(igbp_buffer.BufferId(), igbp_buffer.Offset(), igbp_buffer.ExternalFormat(),
+ igbp_buffer.Width(), igbp_buffer.Height(), igbp_buffer.Stride(),
+ static_cast<android::BufferTransformFlags>(buffer.transform), crop_rect,
+ buffer.fence.fences, buffer.fence.num_fences);
+
+ MicroProfileFlip();
+ guard->lock();
+
+ swap_interval = buffer.swap_interval;
+
+ layer.GetConsumer().ReleaseBuffer(buffer, android::Fence::NoFence());
+ }
+}
+
+s64 Nvnflinger::GetNextTicks() const {
+ const auto& settings = Settings::values;
+ auto speed_scale = 1.f;
+ if (settings.use_multi_core.GetValue()) {
+ if (settings.use_speed_limit.GetValue()) {
+ // Scales the speed based on speed_limit setting on MC. SC is handled by
+ // SpeedLimiter::DoSpeedLimiting.
+ speed_scale = 100.f / settings.speed_limit.GetValue();
+ } else {
+ // Run at unlocked framerate.
+ speed_scale = 0.01f;
+ }
+ }
+ if (system.GetNVDECActive() && settings.use_video_framerate.GetValue()) {
+ // Run at intended presentation rate during video playback.
+ speed_scale = 1.f;
+ }
+
+ // As an extension, treat nonpositive swap interval as framerate multiplier.
+ const f32 effective_fps = swap_interval <= 0 ? 120.f * static_cast<f32>(1 - swap_interval)
+ : 60.f / static_cast<f32>(swap_interval);
+
+ return static_cast<s64>(speed_scale * (1000000000.f / effective_fps));
+}
+
+} // namespace Service::Nvnflinger
diff --git a/src/core/hle/service/nvnflinger/nvnflinger.h b/src/core/hle/service/nvnflinger/nvnflinger.h
new file mode 100644
index 000000000..ef236303a
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/nvnflinger.h
@@ -0,0 +1,156 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <list>
+#include <memory>
+#include <mutex>
+#include <optional>
+#include <thread>
+#include <vector>
+
+#include "common/common_types.h"
+#include "common/polyfill_thread.h"
+#include "common/thread.h"
+#include "core/hle/result.h"
+#include "core/hle/service/kernel_helpers.h"
+
+namespace Common {
+class Event;
+} // namespace Common
+
+namespace Core::Timing {
+class CoreTiming;
+struct EventType;
+} // namespace Core::Timing
+
+namespace Kernel {
+class KReadableEvent;
+} // namespace Kernel
+
+namespace Service::Nvidia {
+class Module;
+} // namespace Service::Nvidia
+
+namespace Service::VI {
+class Display;
+class Layer;
+} // namespace Service::VI
+
+namespace Service::android {
+class BufferQueueCore;
+class BufferQueueProducer;
+} // namespace Service::android
+
+namespace Service::Nvnflinger {
+
+class Nvnflinger final {
+public:
+ explicit Nvnflinger(Core::System& system_, HosBinderDriverServer& hos_binder_driver_server_);
+ ~Nvnflinger();
+
+ void ShutdownLayers();
+
+ /// Sets the NVDrv module instance to use to send buffers to the GPU.
+ void SetNVDrvInstance(std::shared_ptr<Nvidia::Module> instance);
+
+ /// Opens the specified display and returns the ID.
+ ///
+ /// If an invalid display name is provided, then an empty optional is returned.
+ [[nodiscard]] std::optional<u64> OpenDisplay(std::string_view name);
+
+ /// Closes the specified display by its ID.
+ ///
+ /// Returns false if an invalid display ID is provided.
+ [[nodiscard]] bool CloseDisplay(u64 display_id);
+
+ /// Creates a layer on the specified display and returns the layer ID.
+ ///
+ /// If an invalid display ID is specified, then an empty optional is returned.
+ [[nodiscard]] std::optional<u64> CreateLayer(u64 display_id);
+
+ /// Closes a layer on all displays for the given layer ID.
+ void CloseLayer(u64 layer_id);
+
+ /// Finds the buffer queue ID of the specified layer in the specified display.
+ ///
+ /// If an invalid display ID or layer ID is provided, then an empty optional is returned.
+ [[nodiscard]] std::optional<u32> FindBufferQueueId(u64 display_id, u64 layer_id);
+
+ /// Gets the vsync event for the specified display.
+ ///
+ /// If an invalid display ID is provided, then VI::ResultNotFound is returned.
+ /// If the vsync event has already been retrieved, then VI::ResultPermissionDenied is returned.
+ [[nodiscard]] ResultVal<Kernel::KReadableEvent*> FindVsyncEvent(u64 display_id);
+
+ /// Performs a composition request to the emulated nvidia GPU and triggers the vsync events when
+ /// finished.
+ void Compose();
+
+ [[nodiscard]] s64 GetNextTicks() const;
+
+private:
+ struct Layer {
+ std::unique_ptr<android::BufferQueueCore> core;
+ std::unique_ptr<android::BufferQueueProducer> producer;
+ };
+
+private:
+ [[nodiscard]] std::unique_lock<std::mutex> Lock() const {
+ return std::unique_lock{*guard};
+ }
+
+ /// Finds the display identified by the specified ID.
+ [[nodiscard]] VI::Display* FindDisplay(u64 display_id);
+
+ /// Finds the display identified by the specified ID.
+ [[nodiscard]] const VI::Display* FindDisplay(u64 display_id) const;
+
+ /// Finds the layer identified by the specified ID in the desired display.
+ [[nodiscard]] VI::Layer* FindLayer(u64 display_id, u64 layer_id);
+
+ /// Finds the layer identified by the specified ID in the desired display.
+ [[nodiscard]] const VI::Layer* FindLayer(u64 display_id, u64 layer_id) const;
+
+ /// Finds the layer identified by the specified ID in the desired display,
+ /// or creates the layer if it is not found.
+ /// To be used when the system expects the specified ID to already exist.
+ [[nodiscard]] VI::Layer* FindOrCreateLayer(u64 display_id, u64 layer_id);
+
+ /// Creates a layer with the specified layer ID in the desired display.
+ void CreateLayerAtId(VI::Display& display, u64 layer_id);
+
+ void SplitVSync(std::stop_token stop_token);
+
+ std::shared_ptr<Nvidia::Module> nvdrv;
+ s32 disp_fd;
+
+ std::list<VI::Display> displays;
+
+ /// Id to use for the next layer that is created, this counter is shared among all displays.
+ u64 next_layer_id = 1;
+ /// Id to use for the next buffer queue that is created, this counter is shared among all
+ /// layers.
+ u32 next_buffer_queue_id = 1;
+
+ s32 swap_interval = 1;
+
+ /// Event that handles screen composition.
+ std::shared_ptr<Core::Timing::EventType> multi_composition_event;
+ std::shared_ptr<Core::Timing::EventType> single_composition_event;
+
+ std::shared_ptr<std::mutex> guard;
+
+ Core::System& system;
+
+ Common::Event vsync_signal;
+
+ std::jthread vsync_thread;
+
+ KernelHelpers::ServiceContext service_context;
+
+ HosBinderDriverServer& hos_binder_driver_server;
+};
+
+} // namespace Service::Nvnflinger
diff --git a/src/core/hle/service/nvnflinger/parcel.h b/src/core/hle/service/nvnflinger/parcel.h
new file mode 100644
index 000000000..23ba315a0
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/parcel.h
@@ -0,0 +1,184 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <memory>
+#include <span>
+#include <vector>
+#include <boost/container/small_vector.hpp>
+
+#include "common/alignment.h"
+#include "common/assert.h"
+#include "common/common_types.h"
+
+namespace Service::android {
+
+struct ParcelHeader {
+ u32 data_size;
+ u32 data_offset;
+ u32 objects_size;
+ u32 objects_offset;
+};
+static_assert(sizeof(ParcelHeader) == 16, "ParcelHeader has wrong size");
+
+class InputParcel final {
+public:
+ explicit InputParcel(std::span<const u8> in_data) : read_buffer(std::move(in_data)) {
+ DeserializeHeader();
+ [[maybe_unused]] const std::u16string token = ReadInterfaceToken();
+ }
+
+ template <typename T>
+ void Read(T& val) {
+ static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
+ ASSERT(read_index + sizeof(T) <= read_buffer.size());
+
+ std::memcpy(&val, read_buffer.data() + read_index, sizeof(T));
+ read_index += sizeof(T);
+ read_index = Common::AlignUp(read_index, 4);
+ }
+
+ template <typename T>
+ T Read() {
+ T val;
+ Read(val);
+ return val;
+ }
+
+ template <typename T>
+ void ReadFlattened(T& val) {
+ const auto flattened_size = Read<s64>();
+ ASSERT(sizeof(T) == flattened_size);
+ Read(val);
+ }
+
+ template <typename T>
+ T ReadFlattened() {
+ T val;
+ ReadFlattened(val);
+ return val;
+ }
+
+ template <typename T>
+ T ReadUnaligned() {
+ static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
+ ASSERT(read_index + sizeof(T) <= read_buffer.size());
+
+ T val;
+ std::memcpy(&val, read_buffer.data() + read_index, sizeof(T));
+ read_index += sizeof(T);
+ return val;
+ }
+
+ template <typename T>
+ const std::shared_ptr<T> ReadObject() {
+ static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable.");
+
+ const auto is_valid{Read<bool>()};
+
+ if (is_valid) {
+ auto result = std::make_shared<T>();
+ ReadFlattened(*result);
+ return result;
+ }
+
+ return {};
+ }
+
+ std::u16string ReadInterfaceToken() {
+ [[maybe_unused]] const u32 unknown = Read<u32>();
+ const u32 length = Read<u32>();
+
+ std::u16string token;
+ token.reserve(length + 1);
+
+ for (u32 ch = 0; ch < length + 1; ++ch) {
+ token.push_back(ReadUnaligned<u16>());
+ }
+
+ read_index = Common::AlignUp(read_index, 4);
+
+ return token;
+ }
+
+ void DeserializeHeader() {
+ ASSERT(read_buffer.size() > sizeof(ParcelHeader));
+
+ ParcelHeader header{};
+ std::memcpy(&header, read_buffer.data(), sizeof(ParcelHeader));
+
+ read_index = header.data_offset;
+ }
+
+private:
+ std::span<const u8> read_buffer;
+ std::size_t read_index = 0;
+};
+
+class OutputParcel final {
+public:
+ OutputParcel() = default;
+
+ template <typename T>
+ void Write(const T& val) {
+ this->WriteImpl(val, m_data_buffer);
+ }
+
+ template <typename T>
+ void WriteFlattenedObject(const T* ptr) {
+ if (!ptr) {
+ this->Write<u32>(0);
+ return;
+ }
+
+ this->Write<u32>(1);
+ this->Write<s64>(sizeof(T));
+ this->Write(*ptr);
+ }
+
+ template <typename T>
+ void WriteFlattenedObject(const std::shared_ptr<T> ptr) {
+ this->WriteFlattenedObject(ptr.get());
+ }
+
+ template <typename T>
+ void WriteInterface(const T& val) {
+ this->WriteImpl(val, m_data_buffer);
+ this->WriteImpl(0U, m_object_buffer);
+ }
+
+ std::vector<u8> Serialize() const {
+ std::vector<u8> output_buffer(sizeof(ParcelHeader) + m_data_buffer.size() +
+ m_object_buffer.size());
+
+ ParcelHeader header{};
+ header.data_size = static_cast<u32>(m_data_buffer.size());
+ header.data_offset = sizeof(ParcelHeader);
+ header.objects_size = static_cast<u32>(m_object_buffer.size());
+ header.objects_offset = header.data_offset + header.data_size;
+
+ std::memcpy(output_buffer.data(), &header, sizeof(header));
+ std::ranges::copy(m_data_buffer, output_buffer.data() + header.data_offset);
+ std::ranges::copy(m_object_buffer, output_buffer.data() + header.objects_offset);
+
+ return output_buffer;
+ }
+
+private:
+ template <typename T>
+ requires(std::is_trivially_copyable_v<T>)
+ void WriteImpl(const T& val, boost::container::small_vector<u8, 0x200>& buffer) {
+ const size_t aligned_size = Common::AlignUp(sizeof(T), 4);
+ const size_t old_size = buffer.size();
+ buffer.resize(old_size + aligned_size);
+
+ std::memcpy(buffer.data() + old_size, &val, sizeof(T));
+ }
+
+private:
+ boost::container::small_vector<u8, 0x200> m_data_buffer;
+ boost::container::small_vector<u8, 0x200> m_object_buffer;
+};
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/pixel_format.h b/src/core/hle/service/nvnflinger/pixel_format.h
index f77d0acfb..f77d0acfb 100644
--- a/src/core/hle/service/nvflinger/pixel_format.h
+++ b/src/core/hle/service/nvnflinger/pixel_format.h
diff --git a/src/core/hle/service/nvflinger/producer_listener.h b/src/core/hle/service/nvnflinger/producer_listener.h
index 6bf8aaf1e..6bf8aaf1e 100644
--- a/src/core/hle/service/nvflinger/producer_listener.h
+++ b/src/core/hle/service/nvnflinger/producer_listener.h
diff --git a/src/core/hle/service/nvflinger/status.h b/src/core/hle/service/nvnflinger/status.h
index 7af166c40..7af166c40 100644
--- a/src/core/hle/service/nvflinger/status.h
+++ b/src/core/hle/service/nvnflinger/status.h
diff --git a/src/core/hle/service/nvflinger/ui/fence.h b/src/core/hle/service/nvnflinger/ui/fence.h
index 536e8156d..536e8156d 100644
--- a/src/core/hle/service/nvflinger/ui/fence.h
+++ b/src/core/hle/service/nvnflinger/ui/fence.h
diff --git a/src/core/hle/service/nvnflinger/ui/graphic_buffer.h b/src/core/hle/service/nvnflinger/ui/graphic_buffer.h
new file mode 100644
index 000000000..75d1705a8
--- /dev/null
+++ b/src/core/hle/service/nvnflinger/ui/graphic_buffer.h
@@ -0,0 +1,100 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2007 The Android Open Source Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Parts of this implementation were based on:
+// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/ui/GraphicBuffer.h
+
+#pragma once
+
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "core/hle/service/nvnflinger/pixel_format.h"
+
+namespace Service::android {
+
+class GraphicBuffer final {
+public:
+ constexpr GraphicBuffer() = default;
+
+ constexpr GraphicBuffer(u32 width_, u32 height_, PixelFormat format_, u32 usage_)
+ : width{static_cast<s32>(width_)}, height{static_cast<s32>(height_)}, format{format_},
+ usage{static_cast<s32>(usage_)} {}
+
+ constexpr u32 Width() const {
+ return static_cast<u32>(width);
+ }
+
+ constexpr u32 Height() const {
+ return static_cast<u32>(height);
+ }
+
+ constexpr u32 Stride() const {
+ return static_cast<u32>(stride);
+ }
+
+ constexpr u32 Usage() const {
+ return static_cast<u32>(usage);
+ }
+
+ constexpr PixelFormat Format() const {
+ return format;
+ }
+
+ constexpr u32 BufferId() const {
+ return buffer_id;
+ }
+
+ constexpr PixelFormat ExternalFormat() const {
+ return external_format;
+ }
+
+ constexpr u32 Handle() const {
+ return handle;
+ }
+
+ constexpr u32 Offset() const {
+ return offset;
+ }
+
+ constexpr bool NeedsReallocation(u32 width_, u32 height_, PixelFormat format_,
+ u32 usage_) const {
+ if (static_cast<s32>(width_) != width) {
+ return true;
+ }
+
+ if (static_cast<s32>(height_) != height) {
+ return true;
+ }
+
+ if (format_ != format) {
+ return true;
+ }
+
+ if ((static_cast<u32>(usage) & usage_) != usage_) {
+ return true;
+ }
+
+ return false;
+ }
+
+private:
+ u32 magic{};
+ s32 width{};
+ s32 height{};
+ s32 stride{};
+ PixelFormat format{};
+ s32 usage{};
+ INSERT_PADDING_WORDS(1);
+ u32 index{};
+ INSERT_PADDING_WORDS(3);
+ u32 buffer_id{};
+ INSERT_PADDING_WORDS(6);
+ PixelFormat external_format{};
+ INSERT_PADDING_WORDS(10);
+ u32 handle{};
+ u32 offset{};
+ INSERT_PADDING_WORDS(60);
+};
+static_assert(sizeof(GraphicBuffer) == 0x16C, "GraphicBuffer has wrong size");
+
+} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/window.h b/src/core/hle/service/nvnflinger/window.h
index 61cca5b01..61cca5b01 100644
--- a/src/core/hle/service/nvflinger/window.h
+++ b/src/core/hle/service/nvnflinger/window.h
diff --git a/src/core/hle/service/olsc/olsc.cpp b/src/core/hle/service/olsc/olsc.cpp
index 530e1be3b..14ba67b4c 100644
--- a/src/core/hle/service/olsc/olsc.cpp
+++ b/src/core/hle/service/olsc/olsc.cpp
@@ -1,10 +1,10 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/olsc/olsc.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::OLSC {
@@ -42,7 +42,7 @@ public:
}
private:
- void Initialize(Kernel::HLERequestContext& ctx) {
+ void Initialize(HLERequestContext& ctx) {
LOG_WARNING(Service_OLSC, "(STUBBED) called");
initialized = true;
@@ -51,7 +51,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetSaveDataBackupSetting(Kernel::HLERequestContext& ctx) {
+ void GetSaveDataBackupSetting(HLERequestContext& ctx) {
LOG_WARNING(Service_OLSC, "(STUBBED) called");
// backup_setting is set to 0 since real value is unknown
@@ -62,7 +62,7 @@ private:
rb.Push(backup_setting);
}
- void SetSaveDataBackupSettingEnabled(Kernel::HLERequestContext& ctx) {
+ void SetSaveDataBackupSettingEnabled(HLERequestContext& ctx) {
LOG_WARNING(Service_OLSC, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -72,8 +72,11 @@ private:
bool initialized{};
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<OLSC>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("olsc:u", std::make_shared<OLSC>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::OLSC
diff --git a/src/core/hle/service/olsc/olsc.h b/src/core/hle/service/olsc/olsc.h
index 1522d8d32..620b634fa 100644
--- a/src/core/hle/service/olsc/olsc.h
+++ b/src/core/hle/service/olsc/olsc.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::OLSC {
-/// Registers all SSL services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::OLSC
diff --git a/src/core/hle/service/pcie/pcie.cpp b/src/core/hle/service/pcie/pcie.cpp
index 79501b9f9..c6da6eb51 100644
--- a/src/core/hle/service/pcie/pcie.cpp
+++ b/src/core/hle/service/pcie/pcie.cpp
@@ -4,8 +4,8 @@
#include <memory>
#include "core/hle/service/pcie/pcie.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::PCIe {
@@ -59,8 +59,11 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<PCIe>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("pcie", std::make_shared<PCIe>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::PCIe
diff --git a/src/core/hle/service/pcie/pcie.h b/src/core/hle/service/pcie/pcie.h
index cebfd9042..5c2d4b805 100644
--- a/src/core/hle/service/pcie/pcie.h
+++ b/src/core/hle/service/pcie/pcie.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::PCIe {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::PCIe
diff --git a/src/core/hle/service/pctl/pctl_module.cpp b/src/core/hle/service/pctl/pctl_module.cpp
index 2a123b42d..f966c5c8b 100644
--- a/src/core/hle/service/pctl/pctl_module.cpp
+++ b/src/core/hle/service/pctl/pctl_module.cpp
@@ -5,9 +5,10 @@
#include "core/core.h"
#include "core/file_sys/control_metadata.h"
#include "core/file_sys/patch_manager.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/pctl/pctl.h"
#include "core/hle/service/pctl/pctl_module.h"
+#include "core/hle/service/server_manager.h"
namespace Service::PCTL {
@@ -176,7 +177,7 @@ private:
settings.is_stero_vision_restricted = is_restricted;
}
- void Initialize(Kernel::HLERequestContext& ctx) {
+ void Initialize(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -187,7 +188,7 @@ private:
// TODO(ogniK): Recovery flag initialization for pctl:r
- const auto tid = system.GetCurrentProcessProgramID();
+ const auto tid = system.GetApplicationProcessProgramID();
if (tid != 0) {
const FileSys::PatchManager pm{tid, system.GetFileSystemController(),
system.GetContentProvider()};
@@ -214,7 +215,7 @@ private:
rb.Push(ResultSuccess);
}
- void CheckFreeCommunicationPermission(Kernel::HLERequestContext& ctx) {
+ void CheckFreeCommunicationPermission(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -227,7 +228,7 @@ private:
states.free_communication = true;
}
- void ConfirmStereoVisionPermission(Kernel::HLERequestContext& ctx) {
+ void ConfirmStereoVisionPermission(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
states.stereo_vision = true;
@@ -235,14 +236,14 @@ private:
rb.Push(ResultSuccess);
}
- void EndFreeCommunication(Kernel::HLERequestContext& ctx) {
+ void EndFreeCommunication(HLERequestContext& ctx) {
LOG_WARNING(Service_PCTL, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void IsFreeCommunicationAvailable(Kernel::HLERequestContext& ctx) {
+ void IsFreeCommunicationAvailable(HLERequestContext& ctx) {
LOG_WARNING(Service_PCTL, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -253,7 +254,7 @@ private:
}
}
- void IsRestrictionEnabled(Kernel::HLERequestContext& ctx) {
+ void IsRestrictionEnabled(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -267,7 +268,7 @@ private:
rb.Push(pin_code[0] != '\0');
}
- void ConfirmStereoVisionRestrictionConfigurable(Kernel::HLERequestContext& ctx) {
+ void ConfirmStereoVisionRestrictionConfigurable(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -286,7 +287,7 @@ private:
rb.Push(ResultSuccess);
}
- void IsStereoVisionPermitted(Kernel::HLERequestContext& ctx) {
+ void IsStereoVisionPermitted(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -299,7 +300,7 @@ private:
}
}
- void SetStereoVisionRestriction(Kernel::HLERequestContext& ctx) {
+ void SetStereoVisionRestriction(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto can_use = rp.Pop<bool>();
LOG_DEBUG(Service_PCTL, "called, can_use={}", can_use);
@@ -315,7 +316,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetStereoVisionRestriction(Kernel::HLERequestContext& ctx) {
+ void GetStereoVisionRestriction(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -330,7 +331,7 @@ private:
rb.Push(settings.is_stero_vision_restricted);
}
- void ResetConfirmedStereoVisionPermission(Kernel::HLERequestContext& ctx) {
+ void ResetConfirmedStereoVisionPermission(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
states.stereo_vision = false;
@@ -369,7 +370,7 @@ private:
Capability capability{};
};
-void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CreateService(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -379,7 +380,7 @@ void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IParentalControlService>(system, capability);
}
-void Module::Interface::CreateServiceWithoutInitialize(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CreateServiceWithoutInitialize(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCTL, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -393,19 +394,22 @@ Module::Interface::Interface(Core::System& system_, std::shared_ptr<Module> modu
Module::Interface::~Interface() = default;
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
auto module = std::make_shared<Module>();
- std::make_shared<PCTL>(system, module, "pctl",
- Capability::Application | Capability::SnsPost | Capability::Status |
- Capability::StereoVision)
- ->InstallAsService(service_manager);
+ server_manager->RegisterNamedService(
+ "pctl", std::make_shared<PCTL>(system, module, "pctl",
+ Capability::Application | Capability::SnsPost |
+ Capability::Status | Capability::StereoVision));
// TODO(ogniK): Implement remaining capabilities
- std::make_shared<PCTL>(system, module, "pctl:a", Capability::None)
- ->InstallAsService(service_manager);
- std::make_shared<PCTL>(system, module, "pctl:r", Capability::None)
- ->InstallAsService(service_manager);
- std::make_shared<PCTL>(system, module, "pctl:s", Capability::None)
- ->InstallAsService(service_manager);
+ server_manager->RegisterNamedService(
+ "pctl:a", std::make_shared<PCTL>(system, module, "pctl:a", Capability::None));
+ server_manager->RegisterNamedService(
+ "pctl:r", std::make_shared<PCTL>(system, module, "pctl:r", Capability::None));
+ server_manager->RegisterNamedService(
+ "pctl:s", std::make_shared<PCTL>(system, module, "pctl:s", Capability::None));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::PCTL
diff --git a/src/core/hle/service/pctl/pctl_module.h b/src/core/hle/service/pctl/pctl_module.h
index 6f584530d..dff0d3f08 100644
--- a/src/core/hle/service/pctl/pctl_module.h
+++ b/src/core/hle/service/pctl/pctl_module.h
@@ -31,8 +31,8 @@ public:
const char* name_, Capability capability_);
~Interface() override;
- void CreateService(Kernel::HLERequestContext& ctx);
- void CreateServiceWithoutInitialize(Kernel::HLERequestContext& ctx);
+ void CreateService(HLERequestContext& ctx);
+ void CreateServiceWithoutInitialize(HLERequestContext& ctx);
protected:
std::shared_ptr<Module> module;
@@ -42,7 +42,6 @@ public:
};
};
-/// Registers all PCTL services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::PCTL
diff --git a/src/core/hle/service/pcv/pcv.cpp b/src/core/hle/service/pcv/pcv.cpp
index f7a497a14..c13ffa6f6 100644
--- a/src/core/hle/service/pcv/pcv.cpp
+++ b/src/core/hle/service/pcv/pcv.cpp
@@ -3,10 +3,10 @@
#include <memory>
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/pcv/pcv.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::PCV {
@@ -52,32 +52,6 @@ public:
}
};
-class PCV_ARB final : public ServiceFramework<PCV_ARB> {
-public:
- explicit PCV_ARB(Core::System& system_) : ServiceFramework{system_, "pcv:arb"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "ReleaseControl"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
-class PCV_IMM final : public ServiceFramework<PCV_IMM> {
-public:
- explicit PCV_IMM(Core::System& system_) : ServiceFramework{system_, "pcv:imm"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "SetClockRate"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
class IClkrstSession final : public ServiceFramework<IClkrstSession> {
public:
explicit IClkrstSession(Core::System& system_, DeviceCode deivce_code_)
@@ -102,7 +76,7 @@ public:
}
private:
- void SetClockRate(Kernel::HLERequestContext& ctx) {
+ void SetClockRate(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
clock_rate = rp.Pop<u32>();
LOG_DEBUG(Service_PCV, "(STUBBED) called, clock_rate={}", clock_rate);
@@ -111,7 +85,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetClockRate(Kernel::HLERequestContext& ctx) {
+ void GetClockRate(HLERequestContext& ctx) {
LOG_DEBUG(Service_PCV, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -141,7 +115,7 @@ public:
}
private:
- void OpenSession(Kernel::HLERequestContext& ctx) {
+ void OpenSession(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto device_code = static_cast<DeviceCode>(rp.Pop<u32>());
const auto unkonwn_input = rp.Pop<u32>();
@@ -167,13 +141,14 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<PCV>(system)->InstallAsService(sm);
- std::make_shared<PCV_ARB>(system)->InstallAsService(sm);
- std::make_shared<PCV_IMM>(system)->InstallAsService(sm);
- std::make_shared<CLKRST>(system, "clkrst")->InstallAsService(sm);
- std::make_shared<CLKRST>(system, "clkrst:i")->InstallAsService(sm);
- std::make_shared<CLKRST_A>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("pcv", std::make_shared<PCV>(system));
+ server_manager->RegisterNamedService("clkrst", std::make_shared<CLKRST>(system, "clkrst"));
+ server_manager->RegisterNamedService("clkrst:i", std::make_shared<CLKRST>(system, "clkrst:i"));
+ server_manager->RegisterNamedService("clkrst:a", std::make_shared<CLKRST_A>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::PCV
diff --git a/src/core/hle/service/pcv/pcv.h b/src/core/hle/service/pcv/pcv.h
index 6b26b6fa7..bf541e6fe 100644
--- a/src/core/hle/service/pcv/pcv.h
+++ b/src/core/hle/service/pcv/pcv.h
@@ -7,10 +7,6 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::PCV {
enum class DeviceCode : u32 {
@@ -104,6 +100,6 @@ enum class DeviceCode : u32 {
OscClk = 0x40000080
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::PCV
diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp
index b10e86c8f..f9cf2dda3 100644
--- a/src/core/hle/service/pm/pm.cpp
+++ b/src/core/hle/service/pm/pm.cpp
@@ -2,10 +2,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "core/core.h"
-#include "core/hle/ipc_helpers.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/pm/pm.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
namespace Service::PM {
@@ -33,15 +34,15 @@ std::optional<Kernel::KProcess*> SearchProcessList(
return *iter;
}
-void GetApplicationPidGeneric(Kernel::HLERequestContext& ctx,
+void GetApplicationPidGeneric(HLERequestContext& ctx,
const std::vector<Kernel::KProcess*>& process_list) {
const auto process = SearchProcessList(process_list, [](const auto& proc) {
- return proc->GetProcessID() == Kernel::KProcess::ProcessIDMin;
+ return proc->GetProcessId() == Kernel::KProcess::ProcessIDMin;
});
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
- rb.Push(process.has_value() ? (*process)->GetProcessID() : NO_PROCESS_FOUND_PID);
+ rb.Push(process.has_value() ? (*process)->GetProcessId() : NO_PROCESS_FOUND_PID);
}
} // Anonymous namespace
@@ -57,7 +58,7 @@ public:
}
private:
- void GetBootMode(Kernel::HLERequestContext& ctx) {
+ void GetBootMode(HLERequestContext& ctx) {
LOG_DEBUG(Service_PM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -65,7 +66,7 @@ private:
rb.PushEnum(boot_mode);
}
- void SetMaintenanceBoot(Kernel::HLERequestContext& ctx) {
+ void SetMaintenanceBoot(HLERequestContext& ctx) {
LOG_DEBUG(Service_PM, "called");
boot_mode = SystemBootMode::Maintenance;
@@ -99,7 +100,7 @@ public:
}
private:
- void GetProcessId(Kernel::HLERequestContext& ctx) {
+ void GetProcessId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto program_id = rp.PopRaw<u64>();
@@ -107,7 +108,7 @@ private:
const auto process =
SearchProcessList(kernel.GetProcessList(), [program_id](const auto& proc) {
- return proc->GetProgramID() == program_id;
+ return proc->GetProgramId() == program_id;
});
if (!process.has_value()) {
@@ -118,15 +119,15 @@ private:
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
- rb.Push((*process)->GetProcessID());
+ rb.Push((*process)->GetProcessId());
}
- void GetApplicationProcessId(Kernel::HLERequestContext& ctx) {
+ void GetApplicationProcessId(HLERequestContext& ctx) {
LOG_DEBUG(Service_PM, "called");
GetApplicationPidGeneric(ctx, kernel.GetProcessList());
}
- void AtmosphereGetProcessInfo(Kernel::HLERequestContext& ctx) {
+ void AtmosphereGetProcessInfo(HLERequestContext& ctx) {
// https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/pm/source/impl/pm_process_manager.cpp#L614
// This implementation is incomplete; only a handle to the process is returned.
IPC::RequestParser rp{ctx};
@@ -135,7 +136,7 @@ private:
LOG_WARNING(Service_PM, "(Partial Implementation) called, pid={:016X}", pid);
const auto process = SearchProcessList(kernel.GetProcessList(), [pid](const auto& proc) {
- return proc->GetProcessID() == pid;
+ return proc->GetProcessId() == pid;
});
if (!process.has_value()) {
@@ -158,7 +159,7 @@ private:
OverrideStatus override_status{};
ProgramLocation program_location{
- .program_id = (*process)->GetProgramID(),
+ .program_id = (*process)->GetProgramId(),
.storage_id = 0,
};
@@ -186,14 +187,14 @@ public:
}
private:
- void GetProgramId(Kernel::HLERequestContext& ctx) {
+ void GetProgramId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto process_id = rp.PopRaw<u64>();
LOG_DEBUG(Service_PM, "called, process_id={:016X}", process_id);
const auto process = SearchProcessList(process_list, [process_id](const auto& proc) {
- return proc->GetProcessID() == process_id;
+ return proc->GetProcessId() == process_id;
});
if (!process.has_value()) {
@@ -204,17 +205,17 @@ private:
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
- rb.Push((*process)->GetProgramID());
+ rb.Push((*process)->GetProgramId());
}
- void AtmosphereGetProcessId(Kernel::HLERequestContext& ctx) {
+ void AtmosphereGetProcessId(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto program_id = rp.PopRaw<u64>();
LOG_DEBUG(Service_PM, "called, program_id={:016X}", program_id);
const auto process = SearchProcessList(process_list, [program_id](const auto& proc) {
- return proc->GetProgramID() == program_id;
+ return proc->GetProgramId() == program_id;
});
if (!process.has_value()) {
@@ -225,7 +226,7 @@ private:
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
- rb.Push((*process)->GetProcessID());
+ rb.Push((*process)->GetProcessId());
}
const std::vector<Kernel::KProcess*>& process_list;
@@ -254,7 +255,7 @@ public:
}
private:
- void GetApplicationProcessIdForShell(Kernel::HLERequestContext& ctx) {
+ void GetApplicationProcessIdForShell(HLERequestContext& ctx) {
LOG_DEBUG(Service_PM, "called");
GetApplicationPidGeneric(ctx, kernel.GetProcessList());
}
@@ -262,12 +263,15 @@ private:
const Kernel::KernelCore& kernel;
};
-void InstallInterfaces(Core::System& system) {
- std::make_shared<BootMode>(system)->InstallAsService(system.ServiceManager());
- std::make_shared<DebugMonitor>(system)->InstallAsService(system.ServiceManager());
- std::make_shared<Info>(system, system.Kernel().GetProcessList())
- ->InstallAsService(system.ServiceManager());
- std::make_shared<Shell>(system)->InstallAsService(system.ServiceManager());
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("pm:bm", std::make_shared<BootMode>(system));
+ server_manager->RegisterNamedService("pm:dmnt", std::make_shared<DebugMonitor>(system));
+ server_manager->RegisterNamedService(
+ "pm:info", std::make_shared<Info>(system, system.Kernel().GetProcessList()));
+ server_manager->RegisterNamedService("pm:shell", std::make_shared<Shell>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::PM
diff --git a/src/core/hle/service/pm/pm.h b/src/core/hle/service/pm/pm.h
index 060103928..5d4a1a171 100644
--- a/src/core/hle/service/pm/pm.h
+++ b/src/core/hle/service/pm/pm.h
@@ -14,7 +14,6 @@ enum class SystemBootMode {
Maintenance,
};
-/// Registers all PM services with the specified service manager.
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::PM
diff --git a/src/core/hle/service/prepo/prepo.cpp b/src/core/hle/service/prepo/prepo.cpp
index 78f897d3e..ec4a84989 100644
--- a/src/core/hle/service/prepo/prepo.cpp
+++ b/src/core/hle/service/prepo/prepo.cpp
@@ -4,9 +4,10 @@
#include "common/hex_util.h"
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/acc/profile_manager.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/prepo/prepo.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/reporter.h"
@@ -53,7 +54,7 @@ public:
private:
template <Core::Reporter::PlayReportType Type>
- void SaveReport(Kernel::HLERequestContext& ctx) {
+ void SaveReport(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto process_id = rp.PopRaw<u64>();
@@ -63,7 +64,7 @@ private:
return ctx.ReadBuffer(1);
}
- return std::vector<u8>{};
+ return std::span<const u8>{};
}();
LOG_DEBUG(Service_PREPO,
@@ -71,7 +72,7 @@ private:
Type, process_id, data1.size(), data2.size());
const auto& reporter{system.GetReporter()};
- reporter.SavePlayReport(Type, system.GetCurrentProcessProgramID(), {data1, data2},
+ reporter.SavePlayReport(Type, system.GetApplicationProcessProgramID(), {data1, data2},
process_id);
IPC::ResponseBuilder rb{ctx, 2};
@@ -79,7 +80,7 @@ private:
}
template <Core::Reporter::PlayReportType Type>
- void SaveReportWithUser(Kernel::HLERequestContext& ctx) {
+ void SaveReportWithUser(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto user_id = rp.PopRaw<u128>();
const auto process_id = rp.PopRaw<u64>();
@@ -90,7 +91,7 @@ private:
return ctx.ReadBuffer(1);
}
- return std::vector<u8>{};
+ return std::span<const u8>{};
}();
LOG_DEBUG(Service_PREPO,
@@ -99,21 +100,21 @@ private:
Type, user_id[1], user_id[0], process_id, data1.size(), data2.size());
const auto& reporter{system.GetReporter()};
- reporter.SavePlayReport(Type, system.GetCurrentProcessProgramID(), {data1, data2},
+ reporter.SavePlayReport(Type, system.GetApplicationProcessProgramID(), {data1, data2},
process_id, user_id);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void RequestImmediateTransmission(Kernel::HLERequestContext& ctx) {
+ void RequestImmediateTransmission(HLERequestContext& ctx) {
LOG_WARNING(Service_PREPO, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void GetTransmissionStatus(Kernel::HLERequestContext& ctx) {
+ void GetTransmissionStatus(HLERequestContext& ctx) {
LOG_WARNING(Service_PREPO, "(STUBBED) called");
constexpr s32 status = 0;
@@ -123,7 +124,7 @@ private:
rb.Push(status);
}
- void GetSystemSessionId(Kernel::HLERequestContext& ctx) {
+ void GetSystemSessionId(HLERequestContext& ctx) {
LOG_WARNING(Service_PREPO, "(STUBBED) called");
constexpr u64 system_session_id = 0;
@@ -132,7 +133,7 @@ private:
rb.Push(system_session_id);
}
- void SaveSystemReport(Kernel::HLERequestContext& ctx) {
+ void SaveSystemReport(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto title_id = rp.PopRaw<u64>();
@@ -142,7 +143,7 @@ private:
return ctx.ReadBuffer(1);
}
- return std::vector<u8>{};
+ return std::span<const u8>{};
}();
LOG_DEBUG(Service_PREPO, "called, title_id={:016X}, data1_size={:016X}, data2_size={:016X}",
@@ -155,7 +156,7 @@ private:
rb.Push(ResultSuccess);
}
- void SaveSystemReportWithUser(Kernel::HLERequestContext& ctx) {
+ void SaveSystemReportWithUser(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto user_id = rp.PopRaw<u128>();
const auto title_id = rp.PopRaw<u64>();
@@ -166,7 +167,7 @@ private:
return ctx.ReadBuffer(1);
}
- return std::vector<u8>{};
+ return std::span<const u8>{};
}();
LOG_DEBUG(Service_PREPO,
@@ -183,12 +184,20 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<PlayReport>("prepo:a", system)->InstallAsService(service_manager);
- std::make_shared<PlayReport>("prepo:a2", system)->InstallAsService(service_manager);
- std::make_shared<PlayReport>("prepo:m", system)->InstallAsService(service_manager);
- std::make_shared<PlayReport>("prepo:s", system)->InstallAsService(service_manager);
- std::make_shared<PlayReport>("prepo:u", system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("prepo:a",
+ std::make_shared<PlayReport>("prepo:a", system));
+ server_manager->RegisterNamedService("prepo:a2",
+ std::make_shared<PlayReport>("prepo:a2", system));
+ server_manager->RegisterNamedService("prepo:m",
+ std::make_shared<PlayReport>("prepo:m", system));
+ server_manager->RegisterNamedService("prepo:s",
+ std::make_shared<PlayReport>("prepo:s", system));
+ server_manager->RegisterNamedService("prepo:u",
+ std::make_shared<PlayReport>("prepo:u", system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::PlayReport
diff --git a/src/core/hle/service/prepo/prepo.h b/src/core/hle/service/prepo/prepo.h
index 37ea5afad..2c2462f93 100644
--- a/src/core/hle/service/prepo/prepo.h
+++ b/src/core/hle/service/prepo/prepo.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::PlayReport {
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::PlayReport
diff --git a/src/core/hle/service/psc/psc.cpp b/src/core/hle/service/psc/psc.cpp
index 3a9412cf5..cd0cc9287 100644
--- a/src/core/hle/service/psc/psc.cpp
+++ b/src/core/hle/service/psc/psc.cpp
@@ -4,16 +4,16 @@
#include <memory>
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/psc/psc.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::PSC {
-class PSC_C final : public ServiceFramework<PSC_C> {
+class IPmControl final : public ServiceFramework<IPmControl> {
public:
- explicit PSC_C(Core::System& system_) : ServiceFramework{system_, "psc:c"} {
+ explicit IPmControl(Core::System& system_) : ServiceFramework{system_, "psc:c"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "Initialize"},
@@ -23,8 +23,8 @@ public:
{4, nullptr, "Cancel"},
{5, nullptr, "PrintModuleInformation"},
{6, nullptr, "GetModuleInformation"},
- {10, nullptr, "Unknown10"},
- {11, nullptr, "Unknown11"},
+ {10, nullptr, "AcquireStateLock"},
+ {11, nullptr, "HasStateLock"},
};
// clang-format on
@@ -49,12 +49,12 @@ public:
}
};
-class PSC_M final : public ServiceFramework<PSC_M> {
+class IPmService final : public ServiceFramework<IPmService> {
public:
- explicit PSC_M(Core::System& system_) : ServiceFramework{system_, "psc:m"} {
+ explicit IPmService(Core::System& system_) : ServiceFramework{system_, "psc:m"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &PSC_M::GetPmModule, "GetPmModule"},
+ {0, &IPmService::GetPmModule, "GetPmModule"},
};
// clang-format on
@@ -62,7 +62,7 @@ public:
}
private:
- void GetPmModule(Kernel::HLERequestContext& ctx) {
+ void GetPmModule(HLERequestContext& ctx) {
LOG_DEBUG(Service_PSC, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -71,9 +71,12 @@ private:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<PSC_C>(system)->InstallAsService(sm);
- std::make_shared<PSC_M>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("psc:c", std::make_shared<IPmControl>(system));
+ server_manager->RegisterNamedService("psc:m", std::make_shared<IPmService>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::PSC
diff --git a/src/core/hle/service/psc/psc.h b/src/core/hle/service/psc/psc.h
index d248372c2..459137f42 100644
--- a/src/core/hle/service/psc/psc.h
+++ b/src/core/hle/service/psc/psc.h
@@ -13,6 +13,6 @@ class ServiceManager;
namespace Service::PSC {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::PSC
diff --git a/src/core/hle/service/ptm/psm.cpp b/src/core/hle/service/ptm/psm.cpp
index 1ac97fe31..136313d7b 100644
--- a/src/core/hle/service/ptm/psm.cpp
+++ b/src/core/hle/service/ptm/psm.cpp
@@ -5,8 +5,8 @@
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_event.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/ptm/psm.h"
@@ -54,7 +54,7 @@ public:
}
private:
- void BindStateChangeEvent(Kernel::HLERequestContext& ctx) {
+ void BindStateChangeEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_PTM, "called");
should_signal = true;
@@ -64,7 +64,7 @@ private:
rb.PushCopyObjects(state_change_event->GetReadableEvent());
}
- void UnbindStateChangeEvent(Kernel::HLERequestContext& ctx) {
+ void UnbindStateChangeEvent(HLERequestContext& ctx) {
LOG_DEBUG(Service_PTM, "called");
should_signal = false;
@@ -73,7 +73,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetChargerTypeChangeEventEnabled(Kernel::HLERequestContext& ctx) {
+ void SetChargerTypeChangeEventEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto state = rp.Pop<bool>();
LOG_DEBUG(Service_PTM, "called, state={}", state);
@@ -84,7 +84,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetPowerSupplyChangeEventEnabled(Kernel::HLERequestContext& ctx) {
+ void SetPowerSupplyChangeEventEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto state = rp.Pop<bool>();
LOG_DEBUG(Service_PTM, "called, state={}", state);
@@ -95,7 +95,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetBatteryVoltageStateChangeEventEnabled(Kernel::HLERequestContext& ctx) {
+ void SetBatteryVoltageStateChangeEventEnabled(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto state = rp.Pop<bool>();
LOG_DEBUG(Service_PTM, "called, state={}", state);
@@ -145,7 +145,7 @@ PSM::PSM(Core::System& system_) : ServiceFramework{system_, "psm"} {
PSM::~PSM() = default;
-void PSM::GetBatteryChargePercentage(Kernel::HLERequestContext& ctx) {
+void PSM::GetBatteryChargePercentage(HLERequestContext& ctx) {
LOG_DEBUG(Service_PTM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -153,7 +153,7 @@ void PSM::GetBatteryChargePercentage(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(battery_charge_percentage);
}
-void PSM::GetChargerType(Kernel::HLERequestContext& ctx) {
+void PSM::GetChargerType(HLERequestContext& ctx) {
LOG_DEBUG(Service_PTM, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -161,7 +161,7 @@ void PSM::GetChargerType(Kernel::HLERequestContext& ctx) {
rb.PushEnum(charger_type);
}
-void PSM::OpenSession(Kernel::HLERequestContext& ctx) {
+void PSM::OpenSession(HLERequestContext& ctx) {
LOG_DEBUG(Service_PTM, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
diff --git a/src/core/hle/service/ptm/psm.h b/src/core/hle/service/ptm/psm.h
index f674ba8bc..fa47919e5 100644
--- a/src/core/hle/service/ptm/psm.h
+++ b/src/core/hle/service/ptm/psm.h
@@ -20,9 +20,9 @@ private:
Unknown = 3,
};
- void GetBatteryChargePercentage(Kernel::HLERequestContext& ctx);
- void GetChargerType(Kernel::HLERequestContext& ctx);
- void OpenSession(Kernel::HLERequestContext& ctx);
+ void GetBatteryChargePercentage(HLERequestContext& ctx);
+ void GetChargerType(HLERequestContext& ctx);
+ void OpenSession(HLERequestContext& ctx);
u32 battery_charge_percentage{100};
ChargerType charger_type{ChargerType::RegularCharger};
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index 4bea995c6..6f0cfe04b 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -7,12 +7,16 @@
#include "core/hle/service/ptm/psm.h"
#include "core/hle/service/ptm/ptm.h"
#include "core/hle/service/ptm/ts.h"
+#include "core/hle/service/server_manager.h"
namespace Service::PTM {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<PSM>(system)->InstallAsService(sm);
- std::make_shared<TS>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("psm", std::make_shared<PSM>(system));
+ server_manager->RegisterNamedService("ts", std::make_shared<TS>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::PTM
diff --git a/src/core/hle/service/ptm/ptm.h b/src/core/hle/service/ptm/ptm.h
index 06224a24e..a0ae03d28 100644
--- a/src/core/hle/service/ptm/ptm.h
+++ b/src/core/hle/service/ptm/ptm.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::PTM {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::PTM
diff --git a/src/core/hle/service/ptm/ts.cpp b/src/core/hle/service/ptm/ts.cpp
index b1a0a5544..ca064dd90 100644
--- a/src/core/hle/service/ptm/ts.cpp
+++ b/src/core/hle/service/ptm/ts.cpp
@@ -4,7 +4,7 @@
#include <memory>
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/ptm/ts.h"
namespace Service::PTM {
@@ -25,7 +25,7 @@ TS::TS(Core::System& system_) : ServiceFramework{system_, "ts"} {
TS::~TS() = default;
-void TS::GetTemperature(Kernel::HLERequestContext& ctx) {
+void TS::GetTemperature(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto location{rp.PopEnum<Location>()};
@@ -36,7 +36,7 @@ void TS::GetTemperature(Kernel::HLERequestContext& ctx) {
rb.Push(temperature);
}
-void TS::GetTemperatureMilliC(Kernel::HLERequestContext& ctx) {
+void TS::GetTemperatureMilliC(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto location{rp.PopEnum<Location>()};
diff --git a/src/core/hle/service/ptm/ts.h b/src/core/hle/service/ptm/ts.h
index 39d51847e..c3f43d5a3 100644
--- a/src/core/hle/service/ptm/ts.h
+++ b/src/core/hle/service/ptm/ts.h
@@ -19,8 +19,8 @@ private:
External,
};
- void GetTemperature(Kernel::HLERequestContext& ctx);
- void GetTemperatureMilliC(Kernel::HLERequestContext& ctx);
+ void GetTemperature(HLERequestContext& ctx);
+ void GetTemperatureMilliC(HLERequestContext& ctx);
};
} // namespace Service::PTM
diff --git a/src/core/hle/service/server_manager.cpp b/src/core/hle/service/server_manager.cpp
new file mode 100644
index 000000000..d1e99b184
--- /dev/null
+++ b/src/core/hle/service/server_manager.cpp
@@ -0,0 +1,451 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/scope_exit.h"
+
+#include "core/core.h"
+#include "core/hle/kernel/k_client_port.h"
+#include "core/hle/kernel/k_client_session.h"
+#include "core/hle/kernel/k_event.h"
+#include "core/hle/kernel/k_object_name.h"
+#include "core/hle/kernel/k_port.h"
+#include "core/hle/kernel/k_server_port.h"
+#include "core/hle/kernel/k_server_session.h"
+#include "core/hle/kernel/k_synchronization_object.h"
+#include "core/hle/kernel/svc_results.h"
+#include "core/hle/service/hle_ipc.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
+#include "core/hle/service/sm/sm.h"
+
+namespace Service {
+
+constexpr size_t MaximumWaitObjects = 0x40;
+
+enum HandleType {
+ Port,
+ Session,
+ DeferEvent,
+ Event,
+};
+
+ServerManager::ServerManager(Core::System& system) : m_system{system}, m_serve_mutex{system} {
+ // Initialize event.
+ m_event = Kernel::KEvent::Create(system.Kernel());
+ m_event->Initialize(nullptr);
+
+ // Register event.
+ Kernel::KEvent::Register(system.Kernel(), m_event);
+}
+
+ServerManager::~ServerManager() {
+ // Signal stop.
+ m_stop_source.request_stop();
+ m_event->Signal();
+
+ // Wait for processing to stop.
+ m_stopped.Wait();
+ m_threads.clear();
+
+ // Clean up ports.
+ for (const auto& [port, handler] : m_ports) {
+ port->Close();
+ }
+
+ // Clean up sessions.
+ for (const auto& [session, manager] : m_sessions) {
+ session->Close();
+ }
+
+ for (const auto& request : m_deferrals) {
+ request.session->Close();
+ }
+
+ // Close event.
+ m_event->GetReadableEvent().Close();
+ m_event->Close();
+
+ if (m_deferral_event) {
+ m_deferral_event->GetReadableEvent().Close();
+ // Write event is owned by ServiceManager
+ }
+}
+
+void ServerManager::RunServer(std::unique_ptr<ServerManager>&& server_manager) {
+ server_manager->m_system.RunServer(std::move(server_manager));
+}
+
+Result ServerManager::RegisterSession(Kernel::KServerSession* session,
+ std::shared_ptr<SessionRequestManager> manager) {
+ ASSERT(m_sessions.size() + m_ports.size() < MaximumWaitObjects);
+
+ // We are taking ownership of the server session, so don't open it.
+ // Begin tracking the server session.
+ {
+ std::scoped_lock ll{m_list_mutex};
+ m_sessions.emplace(session, std::move(manager));
+ }
+
+ // Signal the wakeup event.
+ m_event->Signal();
+
+ R_SUCCEED();
+}
+
+Result ServerManager::RegisterNamedService(const std::string& service_name,
+ std::shared_ptr<SessionRequestHandler>&& handler,
+ u32 max_sessions) {
+ ASSERT(m_sessions.size() + m_ports.size() < MaximumWaitObjects);
+
+ // Add the new server to sm:.
+ ASSERT(R_SUCCEEDED(
+ m_system.ServiceManager().RegisterService(service_name, max_sessions, handler)));
+
+ // Get the registered port.
+ auto port = m_system.ServiceManager().GetServicePort(service_name);
+ ASSERT(port.Succeeded());
+
+ // Open a new reference to the server port.
+ (*port)->GetServerPort().Open();
+
+ // Begin tracking the server port.
+ {
+ std::scoped_lock ll{m_list_mutex};
+ m_ports.emplace(std::addressof((*port)->GetServerPort()), std::move(handler));
+ }
+
+ // Signal the wakeup event.
+ m_event->Signal();
+
+ R_SUCCEED();
+}
+
+Result ServerManager::ManageNamedPort(const std::string& service_name,
+ std::shared_ptr<SessionRequestHandler>&& handler,
+ u32 max_sessions) {
+ ASSERT(m_sessions.size() + m_ports.size() < MaximumWaitObjects);
+
+ // Create a new port.
+ auto* port = Kernel::KPort::Create(m_system.Kernel());
+ port->Initialize(max_sessions, false, 0);
+
+ // Register the port.
+ Kernel::KPort::Register(m_system.Kernel(), port);
+
+ // Ensure that our reference to the port is closed if we fail to register it.
+ SCOPE_EXIT({
+ port->GetClientPort().Close();
+ port->GetServerPort().Close();
+ });
+
+ // Register the object name with the kernel.
+ R_TRY(Kernel::KObjectName::NewFromName(m_system.Kernel(), std::addressof(port->GetClientPort()),
+ service_name.c_str()));
+
+ // Open a new reference to the server port.
+ port->GetServerPort().Open();
+
+ // Begin tracking the server port.
+ {
+ std::scoped_lock ll{m_list_mutex};
+ m_ports.emplace(std::addressof(port->GetServerPort()), std::move(handler));
+ }
+
+ // We succeeded.
+ R_SUCCEED();
+}
+
+Result ServerManager::ManageDeferral(Kernel::KEvent** out_event) {
+ // Create a new event.
+ m_deferral_event = Kernel::KEvent::Create(m_system.Kernel());
+ ASSERT(m_deferral_event != nullptr);
+
+ // Initialize the event.
+ m_deferral_event->Initialize(nullptr);
+
+ // Register the event.
+ Kernel::KEvent::Register(m_system.Kernel(), m_deferral_event);
+
+ // Set the output.
+ *out_event = m_deferral_event;
+
+ // We succeeded.
+ R_SUCCEED();
+}
+
+void ServerManager::StartAdditionalHostThreads(const char* name, size_t num_threads) {
+ for (size_t i = 0; i < num_threads; i++) {
+ auto thread_name = fmt::format("{}:{}", name, i + 1);
+ m_threads.emplace_back(m_system.Kernel().RunOnHostCoreThread(
+ std::move(thread_name), [&] { this->LoopProcessImpl(); }));
+ }
+}
+
+Result ServerManager::LoopProcess() {
+ SCOPE_EXIT({ m_stopped.Set(); });
+
+ R_RETURN(this->LoopProcessImpl());
+}
+
+Result ServerManager::LoopProcessImpl() {
+ while (!m_stop_source.stop_requested()) {
+ R_TRY(this->WaitAndProcessImpl());
+ }
+
+ R_SUCCEED();
+}
+
+Result ServerManager::WaitAndProcessImpl() {
+ Kernel::KScopedAutoObject<Kernel::KSynchronizationObject> wait_obj;
+ HandleType wait_type{};
+
+ // Ensure we are the only thread waiting for this server.
+ std::unique_lock sl{m_serve_mutex};
+
+ // If we're done, return before we start waiting.
+ R_SUCCEED_IF(m_stop_source.stop_requested());
+
+ // Wait for a tracked object to become signaled.
+ {
+ s32 num_objs{};
+ std::array<HandleType, MaximumWaitObjects> wait_types{};
+ std::array<Kernel::KSynchronizationObject*, MaximumWaitObjects> wait_objs{};
+
+ const auto AddWaiter{
+ [&](Kernel::KSynchronizationObject* synchronization_object, HandleType type) {
+ // Open a new reference to the object.
+ synchronization_object->Open();
+
+ // Insert into the list.
+ wait_types[num_objs] = type;
+ wait_objs[num_objs++] = synchronization_object;
+ }};
+
+ {
+ std::scoped_lock ll{m_list_mutex};
+
+ // Add all of our ports.
+ for (const auto& [port, handler] : m_ports) {
+ AddWaiter(port, HandleType::Port);
+ }
+
+ // Add all of our sessions.
+ for (const auto& [session, manager] : m_sessions) {
+ AddWaiter(session, HandleType::Session);
+ }
+ }
+
+ // Add the deferral wakeup event.
+ if (m_deferral_event != nullptr) {
+ AddWaiter(std::addressof(m_deferral_event->GetReadableEvent()), HandleType::DeferEvent);
+ }
+
+ // Add the wakeup event.
+ AddWaiter(std::addressof(m_event->GetReadableEvent()), HandleType::Event);
+
+ // Clean up extra references on exit.
+ SCOPE_EXIT({
+ for (s32 i = 0; i < num_objs; i++) {
+ wait_objs[i]->Close();
+ }
+ });
+
+ // Wait for a signal.
+ s32 out_index{-1};
+ R_TRY(Kernel::KSynchronizationObject::Wait(m_system.Kernel(), &out_index, wait_objs.data(),
+ num_objs, -1));
+ ASSERT(out_index >= 0 && out_index < num_objs);
+
+ // Set the output index.
+ wait_obj = wait_objs[out_index];
+ wait_type = wait_types[out_index];
+ }
+
+ // Process what we just received, temporarily removing the object so it is
+ // not processed concurrently by another thread.
+ {
+ switch (wait_type) {
+ case HandleType::Port: {
+ // Port signaled.
+ auto* port = wait_obj->DynamicCast<Kernel::KServerPort*>();
+ std::shared_ptr<SessionRequestHandler> handler;
+
+ // Remove from tracking.
+ {
+ std::scoped_lock ll{m_list_mutex};
+ ASSERT(m_ports.contains(port));
+ m_ports.at(port).swap(handler);
+ m_ports.erase(port);
+ }
+
+ // Allow other threads to serve.
+ sl.unlock();
+
+ // Finish.
+ R_RETURN(this->OnPortEvent(port, std::move(handler)));
+ }
+ case HandleType::Session: {
+ // Session signaled.
+ auto* session = wait_obj->DynamicCast<Kernel::KServerSession*>();
+ std::shared_ptr<SessionRequestManager> manager;
+
+ // Remove from tracking.
+ {
+ std::scoped_lock ll{m_list_mutex};
+ ASSERT(m_sessions.contains(session));
+ m_sessions.at(session).swap(manager);
+ m_sessions.erase(session);
+ }
+
+ // Allow other threads to serve.
+ sl.unlock();
+
+ // Finish.
+ R_RETURN(this->OnSessionEvent(session, std::move(manager)));
+ }
+ case HandleType::DeferEvent: {
+ // Clear event.
+ ASSERT(R_SUCCEEDED(m_deferral_event->Clear()));
+
+ // Drain the list of deferrals while we process.
+ std::list<RequestState> deferrals;
+ {
+ std::scoped_lock ll{m_list_mutex};
+ m_deferrals.swap(deferrals);
+ }
+
+ // Allow other threads to serve.
+ sl.unlock();
+
+ // Finish.
+ R_RETURN(this->OnDeferralEvent(std::move(deferrals)));
+ }
+ case HandleType::Event: {
+ // Clear event and finish.
+ R_RETURN(m_event->Clear());
+ }
+ default: {
+ UNREACHABLE();
+ }
+ }
+ }
+}
+
+Result ServerManager::OnPortEvent(Kernel::KServerPort* port,
+ std::shared_ptr<SessionRequestHandler>&& handler) {
+ // Accept a new server session.
+ Kernel::KServerSession* session = port->AcceptSession();
+ ASSERT(session != nullptr);
+
+ // Create the session manager and install the handler.
+ auto manager = std::make_shared<SessionRequestManager>(m_system.Kernel(), *this);
+ manager->SetSessionHandler(std::shared_ptr(handler));
+
+ // Track the server session.
+ {
+ std::scoped_lock ll{m_list_mutex};
+ m_ports.emplace(port, std::move(handler));
+ m_sessions.emplace(session, std::move(manager));
+ }
+
+ // Signal the wakeup event.
+ m_event->Signal();
+
+ // We succeeded.
+ R_SUCCEED();
+}
+
+Result ServerManager::OnSessionEvent(Kernel::KServerSession* session,
+ std::shared_ptr<SessionRequestManager>&& manager) {
+ Result rc{ResultSuccess};
+
+ // Try to receive a message.
+ std::shared_ptr<HLERequestContext> context;
+ rc = session->ReceiveRequest(&context, manager);
+
+ // If the session has been closed, we're done.
+ if (rc == Kernel::ResultSessionClosed) {
+ // Close the session.
+ session->Close();
+
+ // Finish.
+ R_SUCCEED();
+ }
+ ASSERT(R_SUCCEEDED(rc));
+
+ RequestState request{
+ .session = session,
+ .context = std::move(context),
+ .manager = std::move(manager),
+ };
+
+ // Complete the sync request with deferral handling.
+ R_RETURN(this->CompleteSyncRequest(std::move(request)));
+}
+
+Result ServerManager::CompleteSyncRequest(RequestState&& request) {
+ Result rc{ResultSuccess};
+ Result service_rc{ResultSuccess};
+
+ // Mark the request as not deferred.
+ request.context->SetIsDeferred(false);
+
+ // Complete the request. We have exclusive access to this session.
+ service_rc = request.manager->CompleteSyncRequest(request.session, *request.context);
+
+ // If we've been deferred, we're done.
+ if (request.context->GetIsDeferred()) {
+ // Insert into deferral list.
+ std::scoped_lock ll{m_list_mutex};
+ m_deferrals.emplace_back(std::move(request));
+
+ // Finish.
+ R_SUCCEED();
+ }
+
+ // Send the reply.
+ rc = request.session->SendReplyHLE();
+
+ // If the session has been closed, we're done.
+ if (rc == Kernel::ResultSessionClosed || service_rc == IPC::ResultSessionClosed) {
+ // Close the session.
+ request.session->Close();
+
+ // Finish.
+ R_SUCCEED();
+ }
+
+ ASSERT(R_SUCCEEDED(rc));
+ ASSERT(R_SUCCEEDED(service_rc));
+
+ // Reinsert the session.
+ {
+ std::scoped_lock ll{m_list_mutex};
+ m_sessions.emplace(request.session, std::move(request.manager));
+ }
+
+ // Signal the wakeup event.
+ m_event->Signal();
+
+ // We succeeded.
+ R_SUCCEED();
+}
+
+Result ServerManager::OnDeferralEvent(std::list<RequestState>&& deferrals) {
+ ON_RESULT_FAILURE {
+ std::scoped_lock ll{m_list_mutex};
+ m_deferrals.splice(m_deferrals.end(), deferrals);
+ };
+
+ while (!deferrals.empty()) {
+ RequestState request = deferrals.front();
+ deferrals.pop_front();
+
+ // Try again to complete the request.
+ R_TRY(this->CompleteSyncRequest(std::move(request)));
+ }
+
+ R_SUCCEED();
+}
+
+} // namespace Service
diff --git a/src/core/hle/service/server_manager.h b/src/core/hle/service/server_manager.h
new file mode 100644
index 000000000..58b0a0832
--- /dev/null
+++ b/src/core/hle/service/server_manager.h
@@ -0,0 +1,90 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <functional>
+#include <list>
+#include <map>
+#include <mutex>
+#include <string_view>
+#include <vector>
+
+#include "common/polyfill_thread.h"
+#include "common/thread.h"
+#include "core/hle/result.h"
+#include "core/hle/service/mutex.h"
+
+namespace Core {
+class System;
+}
+
+namespace Kernel {
+class KEvent;
+class KServerPort;
+class KServerSession;
+class KSynchronizationObject;
+} // namespace Kernel
+
+namespace Service {
+
+class HLERequestContext;
+class SessionRequestHandler;
+class SessionRequestManager;
+
+class ServerManager {
+public:
+ explicit ServerManager(Core::System& system);
+ ~ServerManager();
+
+ Result RegisterSession(Kernel::KServerSession* session,
+ std::shared_ptr<SessionRequestManager> manager);
+ Result RegisterNamedService(const std::string& service_name,
+ std::shared_ptr<SessionRequestHandler>&& handler,
+ u32 max_sessions = 64);
+ Result ManageNamedPort(const std::string& service_name,
+ std::shared_ptr<SessionRequestHandler>&& handler, u32 max_sessions = 64);
+ Result ManageDeferral(Kernel::KEvent** out_event);
+
+ Result LoopProcess();
+ void StartAdditionalHostThreads(const char* name, size_t num_threads);
+
+ static void RunServer(std::unique_ptr<ServerManager>&& server);
+
+private:
+ struct RequestState;
+
+ Result LoopProcessImpl();
+ Result WaitAndProcessImpl();
+ Result OnPortEvent(Kernel::KServerPort* port, std::shared_ptr<SessionRequestHandler>&& handler);
+ Result OnSessionEvent(Kernel::KServerSession* session,
+ std::shared_ptr<SessionRequestManager>&& manager);
+ Result OnDeferralEvent(std::list<RequestState>&& deferrals);
+ Result CompleteSyncRequest(RequestState&& state);
+
+private:
+ Core::System& m_system;
+ Mutex m_serve_mutex;
+ std::mutex m_list_mutex;
+
+ // Guest state tracking
+ std::map<Kernel::KServerPort*, std::shared_ptr<SessionRequestHandler>> m_ports{};
+ std::map<Kernel::KServerSession*, std::shared_ptr<SessionRequestManager>> m_sessions{};
+ Kernel::KEvent* m_event{};
+ Kernel::KEvent* m_deferral_event{};
+
+ // Deferral tracking
+ struct RequestState {
+ Kernel::KServerSession* session;
+ std::shared_ptr<HLERequestContext> context;
+ std::shared_ptr<SessionRequestManager> manager;
+ };
+ std::list<RequestState> m_deferrals{};
+
+ // Host state tracking
+ Common::Event m_stopped{};
+ std::vector<std::jthread> m_threads{};
+ std::stop_source m_stop_source{};
+};
+
+} // namespace Service
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 0de67f1e1..69cdb5918 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -7,7 +7,6 @@
#include "common/settings.h"
#include "core/core.h"
#include "core/hle/ipc.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_process.h"
#include "core/hle/kernel/k_server_port.h"
#include "core/hle/kernel/kernel.h"
@@ -31,6 +30,7 @@
#include "core/hle/service/glue/glue.h"
#include "core/hle/service/grc/grc.h"
#include "core/hle/service/hid/hid.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/jit/jit.h"
#include "core/hle/service/lbl/lbl.h"
#include "core/hle/service/ldn/ldn.h"
@@ -49,8 +49,8 @@
#include "core/hle/service/npns/npns.h"
#include "core/hle/service/ns/ns.h"
#include "core/hle/service/nvdrv/nvdrv.h"
-#include "core/hle/service/nvflinger/hos_binder_driver_server.h"
-#include "core/hle/service/nvflinger/nvflinger.h"
+#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
+#include "core/hle/service/nvnflinger/nvnflinger.h"
#include "core/hle/service/olsc/olsc.h"
#include "core/hle/service/pcie/pcie.h"
#include "core/hle/service/pctl/pctl_module.h"
@@ -68,7 +68,6 @@
#include "core/hle/service/time/time.h"
#include "core/hle/service/usb/usb.h"
#include "core/hle/service/vi/vi.h"
-#include "core/hle/service/wlan/wlan.h"
#include "core/reporter.h"
namespace Service {
@@ -91,44 +90,13 @@ namespace Service {
}
ServiceFrameworkBase::ServiceFrameworkBase(Core::System& system_, const char* service_name_,
- ServiceThreadType thread_type, u32 max_sessions_,
- InvokerFn* handler_invoker_)
- : SessionRequestHandler(system_.Kernel(), service_name_, thread_type), system{system_},
+ u32 max_sessions_, InvokerFn* handler_invoker_)
+ : SessionRequestHandler(system_.Kernel(), service_name_), system{system_},
service_name{service_name_}, max_sessions{max_sessions_}, handler_invoker{handler_invoker_} {}
ServiceFrameworkBase::~ServiceFrameworkBase() {
// Wait for other threads to release access before destroying
const auto guard = LockService();
-
- if (named_port != nullptr) {
- named_port->GetClientPort().Close();
- named_port->GetServerPort().Close();
- named_port = nullptr;
- }
-}
-
-void ServiceFrameworkBase::InstallAsService(SM::ServiceManager& service_manager) {
- const auto guard = LockService();
-
- ASSERT(!service_registered);
-
- service_manager.RegisterService(service_name, max_sessions, shared_from_this());
- service_registered = true;
-}
-
-Kernel::KClientPort& ServiceFrameworkBase::CreatePort() {
- const auto guard = LockService();
-
- if (named_port == nullptr) {
- ASSERT(!service_registered);
-
- named_port = Kernel::KPort::Create(kernel);
- named_port->Initialize(max_sessions, false, service_name);
-
- service_registered = true;
- }
-
- return named_port->GetClientPort();
}
void ServiceFrameworkBase::RegisterHandlersBase(const FunctionInfoBase* functions, std::size_t n) {
@@ -149,7 +117,7 @@ void ServiceFrameworkBase::RegisterHandlersBaseTipc(const FunctionInfoBase* func
}
}
-void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext& ctx,
+void ServiceFrameworkBase::ReportUnimplementedFunction(HLERequestContext& ctx,
const FunctionInfoBase* info) {
auto cmd_buf = ctx.CommandBuffer();
std::string function_name = info == nullptr ? fmt::format("{}", ctx.GetCommand()) : info->name;
@@ -172,7 +140,7 @@ void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext
}
}
-void ServiceFrameworkBase::InvokeRequest(Kernel::HLERequestContext& ctx) {
+void ServiceFrameworkBase::InvokeRequest(HLERequestContext& ctx) {
auto itr = handlers.find(ctx.GetCommand());
const FunctionInfoBase* info = itr == handlers.end() ? nullptr : &itr->second;
if (info == nullptr || info->handler_callback == nullptr) {
@@ -183,7 +151,7 @@ void ServiceFrameworkBase::InvokeRequest(Kernel::HLERequestContext& ctx) {
handler_invoker(this, info->handler_callback, ctx);
}
-void ServiceFrameworkBase::InvokeRequestTipc(Kernel::HLERequestContext& ctx) {
+void ServiceFrameworkBase::InvokeRequestTipc(HLERequestContext& ctx) {
boost::container::flat_map<u32, FunctionInfoBase>::iterator itr;
itr = handlers_tipc.find(ctx.GetCommand());
@@ -198,7 +166,7 @@ void ServiceFrameworkBase::InvokeRequestTipc(Kernel::HLERequestContext& ctx) {
}
Result ServiceFrameworkBase::HandleSyncRequest(Kernel::KServerSession& session,
- Kernel::HLERequestContext& ctx) {
+ HLERequestContext& ctx) {
const auto guard = LockService();
Result result = ResultSuccess;
@@ -208,7 +176,7 @@ Result ServiceFrameworkBase::HandleSyncRequest(Kernel::KServerSession& session,
case IPC::CommandType::TIPC_Close: {
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
- result = IPC::ERR_REMOTE_PROCESS_DEAD;
+ result = IPC::ResultSessionClosed;
break;
}
case IPC::CommandType::ControlWithContext:
@@ -242,71 +210,72 @@ Result ServiceFrameworkBase::HandleSyncRequest(Kernel::KServerSession& session,
/// Initialize Services
Services::Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system)
- : hos_binder_driver_server{std::make_unique<NVFlinger::HosBinderDriverServer>(system)},
- nv_flinger{std::make_unique<NVFlinger::NVFlinger>(system, *hos_binder_driver_server)} {
+ : hos_binder_driver_server{std::make_unique<Nvnflinger::HosBinderDriverServer>(system)},
+ nv_flinger{std::make_unique<Nvnflinger::Nvnflinger>(system, *hos_binder_driver_server)} {
- // NVFlinger needs to be accessed by several services like Vi and AppletOE so we instantiate it
- // here and pass it into the respective InstallInterfaces functions.
+ auto& kernel = system.Kernel();
+ // Nvnflinger needs to be accessed by several services like Vi and AppletOE so we instantiate it
+ // here and pass it into the respective InstallInterfaces functions.
system.GetFileSystemController().CreateFactories(*system.GetFilesystem(), false);
- system.Kernel().RegisterNamedService("sm:", SM::ServiceManager::InterfaceFactory);
- system.Kernel().RegisterInterfaceForNamedService("sm:", SM::ServiceManager::SessionHandler);
-
- Account::InstallInterfaces(system);
- AM::InstallInterfaces(*sm, *nv_flinger, system);
- AOC::InstallInterfaces(*sm, system);
- APM::InstallInterfaces(system);
- Audio::InstallInterfaces(*sm, system);
- BCAT::InstallInterfaces(system);
- BPC::InstallInterfaces(*sm, system);
- BtDrv::InstallInterfaces(*sm, system);
- BTM::InstallInterfaces(*sm, system);
- Capture::InstallInterfaces(*sm, system);
- ERPT::InstallInterfaces(*sm, system);
- ES::InstallInterfaces(*sm, system);
- EUPLD::InstallInterfaces(*sm, system);
- Fatal::InstallInterfaces(*sm, system);
- FGM::InstallInterfaces(*sm, system);
- FileSystem::InstallInterfaces(system);
- Friend::InstallInterfaces(*sm, system);
- Glue::InstallInterfaces(system);
- GRC::InstallInterfaces(*sm, system);
- HID::InstallInterfaces(*sm, system);
- JIT::InstallInterfaces(*sm, system);
- LBL::InstallInterfaces(*sm, system);
- LDN::InstallInterfaces(*sm, system);
- LDR::InstallInterfaces(*sm, system);
- LM::InstallInterfaces(system);
- Migration::InstallInterfaces(*sm, system);
- Mii::InstallInterfaces(*sm, system);
- MM::InstallInterfaces(*sm, system);
- MNPP::InstallInterfaces(*sm, system);
- NCM::InstallInterfaces(*sm, system);
- NFC::InstallInterfaces(*sm, system);
- NFP::InstallInterfaces(*sm, system);
- NGCT::InstallInterfaces(*sm, system);
- NIFM::InstallInterfaces(*sm, system);
- NIM::InstallInterfaces(*sm, system);
- NPNS::InstallInterfaces(*sm, system);
- NS::InstallInterfaces(*sm, system);
- Nvidia::InstallInterfaces(*sm, *nv_flinger, system);
- OLSC::InstallInterfaces(*sm, system);
- PCIe::InstallInterfaces(*sm, system);
- PCTL::InstallInterfaces(*sm, system);
- PCV::InstallInterfaces(*sm, system);
- PlayReport::InstallInterfaces(*sm, system);
- PM::InstallInterfaces(system);
- PSC::InstallInterfaces(*sm, system);
- PTM::InstallInterfaces(*sm, system);
- Set::InstallInterfaces(*sm, system);
- Sockets::InstallInterfaces(*sm, system);
- SPL::InstallInterfaces(*sm, system);
- SSL::InstallInterfaces(*sm, system);
- Time::InstallInterfaces(system);
- USB::InstallInterfaces(*sm, system);
- VI::InstallInterfaces(*sm, system, *nv_flinger, *hos_binder_driver_server);
- WLAN::InstallInterfaces(*sm, system);
+ // clang-format off
+ kernel.RunOnHostCoreProcess("audio", [&] { Audio::LoopProcess(system); }).detach();
+ kernel.RunOnHostCoreProcess("FS", [&] { FileSystem::LoopProcess(system); }).detach();
+ kernel.RunOnHostCoreProcess("jit", [&] { JIT::LoopProcess(system); }).detach();
+ kernel.RunOnHostCoreProcess("ldn", [&] { LDN::LoopProcess(system); }).detach();
+ kernel.RunOnHostCoreProcess("Loader", [&] { LDR::LoopProcess(system); }).detach();
+ kernel.RunOnHostCoreProcess("nvservices", [&] { Nvidia::LoopProcess(*nv_flinger, system); }).detach();
+ kernel.RunOnHostCoreProcess("bsdsocket", [&] { Sockets::LoopProcess(system); }).detach();
+ kernel.RunOnHostCoreProcess("vi", [&] { VI::LoopProcess(system, *nv_flinger, *hos_binder_driver_server); }).detach();
+
+ kernel.RunOnGuestCoreProcess("sm", [&] { SM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("account", [&] { Account::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("am", [&] { AM::LoopProcess(*nv_flinger, system); });
+ kernel.RunOnGuestCoreProcess("aoc", [&] { AOC::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("apm", [&] { APM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("bcat", [&] { BCAT::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("bpc", [&] { BPC::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("btdrv", [&] { BtDrv::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("btm", [&] { BTM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("capsrv", [&] { Capture::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("erpt", [&] { ERPT::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("es", [&] { ES::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("eupld", [&] { EUPLD::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("fatal", [&] { Fatal::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("fgm", [&] { FGM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("friends", [&] { Friend::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("glue", [&] { Glue::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("grc", [&] { GRC::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("hid", [&] { HID::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("lbl", [&] { LBL::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("LogManager.Prod", [&] { LM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("mig", [&] { Migration::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("mii", [&] { Mii::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("mm", [&] { MM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("mnpp", [&] { MNPP::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("NCM", [&] { NCM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("nfc", [&] { NFC::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("nfp", [&] { NFP::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("ngct", [&] { NGCT::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("nifm", [&] { NIFM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("nim", [&] { NIM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("npns", [&] { NPNS::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("ns", [&] { NS::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("olsc", [&] { OLSC::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("pcie", [&] { PCIe::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("pctl", [&] { PCTL::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("pcv", [&] { PCV::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("prepo", [&] { PlayReport::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("ProcessManager", [&] { PM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("psc", [&] { PSC::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("ptm", [&] { PTM::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("settings", [&] { Set::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("spl", [&] { SPL::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("ssl", [&] { SSL::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("time", [&] { Time::LoopProcess(system); });
+ kernel.RunOnGuestCoreProcess("usb", [&] { USB::LoopProcess(system); });
+ // clang-format on
}
Services::~Services() = default;
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index 22e2119d7..45b2c43b7 100644
--- a/src/core/hle/service/service.h
+++ b/src/core/hle/service/service.h
@@ -8,7 +8,7 @@
#include <string>
#include <boost/container/flat_map.hpp>
#include "common/common_types.h"
-#include "core/hle/kernel/hle_ipc.h"
+#include "core/hle/service/hle_ipc.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace Service
@@ -18,9 +18,6 @@ class System;
}
namespace Kernel {
-class HLERequestContext;
-class KClientPort;
-class KPort;
class KServerSession;
class ServiceThread;
} // namespace Kernel
@@ -31,10 +28,10 @@ namespace FileSystem {
class FileSystemController;
}
-namespace NVFlinger {
+namespace Nvnflinger {
class HosBinderDriverServer;
-class NVFlinger;
-} // namespace NVFlinger
+class Nvnflinger;
+} // namespace Nvnflinger
namespace SM {
class ServiceManager;
@@ -52,7 +49,7 @@ static_assert(ServerSessionCountMax == 0x40,
*
* @see ServiceFramework
*/
-class ServiceFrameworkBase : public Kernel::SessionRequestHandler {
+class ServiceFrameworkBase : public SessionRequestHandler {
public:
/// Returns the string identifier used to connect to the service.
std::string GetServiceName() const {
@@ -67,26 +64,19 @@ public:
return max_sessions;
}
- /// Creates a port pair and registers this service with the given ServiceManager.
- void InstallAsService(SM::ServiceManager& service_manager);
-
/// Invokes a service request routine using the HIPC protocol.
- void InvokeRequest(Kernel::HLERequestContext& ctx);
+ void InvokeRequest(HLERequestContext& ctx);
/// Invokes a service request routine using the HIPC protocol.
- void InvokeRequestTipc(Kernel::HLERequestContext& ctx);
-
- /// Creates a port pair and registers it on the kernel's global port registry.
- Kernel::KClientPort& CreatePort();
+ void InvokeRequestTipc(HLERequestContext& ctx);
/// Handles a synchronization request for the service.
- Result HandleSyncRequest(Kernel::KServerSession& session,
- Kernel::HLERequestContext& context) override;
+ Result HandleSyncRequest(Kernel::KServerSession& session, HLERequestContext& context) override;
protected:
/// Member-function pointer type of SyncRequest handlers.
template <typename Self>
- using HandlerFnP = void (Self::*)(Kernel::HLERequestContext&);
+ using HandlerFnP = void (Self::*)(HLERequestContext&);
/// Used to gain exclusive access to the service members, e.g. from CoreTiming thread.
[[nodiscard]] std::scoped_lock<std::mutex> LockService() {
@@ -99,9 +89,6 @@ protected:
/// Identifier string used to connect to the service.
std::string service_name;
- /// Port used by ManageNamedPort.
- Kernel::KPort* named_port{};
-
private:
template <typename T>
friend class ServiceFramework;
@@ -113,16 +100,15 @@ private:
};
using InvokerFn = void(ServiceFrameworkBase* object, HandlerFnP<ServiceFrameworkBase> member,
- Kernel::HLERequestContext& ctx);
+ HLERequestContext& ctx);
explicit ServiceFrameworkBase(Core::System& system_, const char* service_name_,
- ServiceThreadType thread_type, u32 max_sessions_,
- InvokerFn* handler_invoker_);
+ u32 max_sessions_, InvokerFn* handler_invoker_);
~ServiceFrameworkBase() override;
void RegisterHandlersBase(const FunctionInfoBase* functions, std::size_t n);
void RegisterHandlersBaseTipc(const FunctionInfoBase* functions, std::size_t n);
- void ReportUnimplementedFunction(Kernel::HLERequestContext& ctx, const FunctionInfoBase* info);
+ void ReportUnimplementedFunction(HLERequestContext& ctx, const FunctionInfoBase* info);
/// Maximum number of concurrent sessions that this service can handle.
u32 max_sessions;
@@ -156,7 +142,8 @@ template <typename Self>
class ServiceFramework : public ServiceFrameworkBase {
protected:
/// Contains information about a request type which is handled by the service.
- struct FunctionInfo : FunctionInfoBase {
+ template <typename T>
+ struct FunctionInfoTyped : FunctionInfoBase {
// TODO(yuriks): This function could be constexpr, but clang is the only compiler that
// doesn't emit an ICE or a wrong diagnostic because of the static_cast.
@@ -169,31 +156,29 @@ protected:
* the request
* @param name_ human-friendly name for the request. Used mostly for logging purposes.
*/
- FunctionInfo(u32 expected_header_, HandlerFnP<Self> handler_callback_, const char* name_)
+ FunctionInfoTyped(u32 expected_header_, HandlerFnP<T> handler_callback_, const char* name_)
: FunctionInfoBase{
expected_header_,
// Type-erase member function pointer by casting it down to the base class.
static_cast<HandlerFnP<ServiceFrameworkBase>>(handler_callback_), name_} {}
};
+ using FunctionInfo = FunctionInfoTyped<Self>;
/**
* Initializes the handler with no functions installed.
*
* @param system_ The system context to construct this service under.
* @param service_name_ Name of the service.
- * @param thread_type Specifies the thread type for this service. If this is set to CreateNew,
- * it creates a new thread for it, otherwise this uses the default thread.
* @param max_sessions_ Maximum number of sessions that can be connected to this service at the
* same time.
*/
explicit ServiceFramework(Core::System& system_, const char* service_name_,
- ServiceThreadType thread_type = ServiceThreadType::Default,
u32 max_sessions_ = ServerSessionCountMax)
- : ServiceFrameworkBase(system_, service_name_, thread_type, max_sessions_, Invoker) {}
+ : ServiceFrameworkBase(system_, service_name_, max_sessions_, Invoker) {}
/// Registers handlers in the service.
- template <std::size_t N>
- void RegisterHandlers(const FunctionInfo (&functions)[N]) {
+ template <typename T = Self, std::size_t N>
+ void RegisterHandlers(const FunctionInfoTyped<T> (&functions)[N]) {
RegisterHandlers(functions, N);
}
@@ -201,13 +186,14 @@ protected:
* Registers handlers in the service. Usually prefer using the other RegisterHandlers
* overload in order to avoid needing to specify the array size.
*/
- void RegisterHandlers(const FunctionInfo* functions, std::size_t n) {
+ template <typename T = Self>
+ void RegisterHandlers(const FunctionInfoTyped<T>* functions, std::size_t n) {
RegisterHandlersBase(functions, n);
}
/// Registers handlers in the service.
- template <std::size_t N>
- void RegisterHandlersTipc(const FunctionInfo (&functions)[N]) {
+ template <typename T = Self, std::size_t N>
+ void RegisterHandlersTipc(const FunctionInfoTyped<T> (&functions)[N]) {
RegisterHandlersTipc(functions, N);
}
@@ -215,7 +201,8 @@ protected:
* Registers handlers in the service. Usually prefer using the other RegisterHandlers
* overload in order to avoid needing to specify the array size.
*/
- void RegisterHandlersTipc(const FunctionInfo* functions, std::size_t n) {
+ template <typename T = Self>
+ void RegisterHandlersTipc(const FunctionInfoTyped<T>* functions, std::size_t n) {
RegisterHandlersBaseTipc(functions, n);
}
@@ -227,7 +214,7 @@ private:
* of the derived class in order to invoke one of it's functions through a pointer.
*/
static void Invoker(ServiceFrameworkBase* object, HandlerFnP<ServiceFrameworkBase> member,
- Kernel::HLERequestContext& ctx) {
+ HLERequestContext& ctx) {
// Cast back up to our original types and call the member function
(static_cast<Self*>(object)->*static_cast<HandlerFnP<Self>>(member))(ctx);
}
@@ -245,8 +232,8 @@ public:
void KillNVNFlinger();
private:
- std::unique_ptr<NVFlinger::HosBinderDriverServer> hos_binder_driver_server;
- std::unique_ptr<NVFlinger::NVFlinger> nv_flinger;
+ std::unique_ptr<Nvnflinger::HosBinderDriverServer> hos_binder_driver_server;
+ std::unique_ptr<Nvnflinger::Nvnflinger> nv_flinger;
};
} // namespace Service
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp
index 16c5eaf75..f5788b481 100644
--- a/src/core/hle/service/set/set.cpp
+++ b/src/core/hle/service/set/set.cpp
@@ -6,7 +6,7 @@
#include <chrono>
#include "common/logging/log.h"
#include "common/settings.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/set/set.h"
namespace Service::Set {
@@ -74,15 +74,15 @@ constexpr std::array<std::pair<LanguageCode, KeyboardLayout>, 18> language_to_la
constexpr std::size_t PRE_4_0_0_MAX_ENTRIES = 0xF;
constexpr std::size_t POST_4_0_0_MAX_ENTRIES = 0x40;
-constexpr Result ERR_INVALID_LANGUAGE{ErrorModule::Settings, 625};
+constexpr Result ResultInvalidLanguage{ErrorModule::Settings, 625};
-void PushResponseLanguageCode(Kernel::HLERequestContext& ctx, std::size_t num_language_codes) {
+void PushResponseLanguageCode(HLERequestContext& ctx, std::size_t num_language_codes) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(static_cast<u32>(num_language_codes));
}
-void GetAvailableLanguageCodesImpl(Kernel::HLERequestContext& ctx, std::size_t max_entries) {
+void GetAvailableLanguageCodesImpl(HLERequestContext& ctx, std::size_t max_entries) {
const std::size_t requested_amount = ctx.GetWriteBufferNumElements<LanguageCode>();
const std::size_t max_amount = std::min(requested_amount, max_entries);
const std::size_t copy_amount = std::min(available_language_codes.size(), max_amount);
@@ -92,7 +92,7 @@ void GetAvailableLanguageCodesImpl(Kernel::HLERequestContext& ctx, std::size_t m
PushResponseLanguageCode(ctx, copy_amount);
}
-void GetKeyCodeMapImpl(Kernel::HLERequestContext& ctx) {
+void GetKeyCodeMapImpl(HLERequestContext& ctx) {
const auto language_code = available_language_codes[Settings::values.language_index.GetValue()];
const auto key_code =
std::find_if(language_to_layout.cbegin(), language_to_layout.cend(),
@@ -117,20 +117,20 @@ LanguageCode GetLanguageCodeFromIndex(std::size_t index) {
return available_language_codes.at(index);
}
-void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
+void SET::GetAvailableLanguageCodes(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
GetAvailableLanguageCodesImpl(ctx, PRE_4_0_0_MAX_ENTRIES);
}
-void SET::MakeLanguageCode(Kernel::HLERequestContext& ctx) {
+void SET::MakeLanguageCode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto index = rp.Pop<u32>();
if (index >= available_language_codes.size()) {
LOG_ERROR(Service_SET, "Invalid language code index! index={}", index);
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERR_INVALID_LANGUAGE);
+ rb.Push(Set::ResultInvalidLanguage);
return;
}
@@ -139,25 +139,25 @@ void SET::MakeLanguageCode(Kernel::HLERequestContext& ctx) {
rb.PushEnum(available_language_codes[index]);
}
-void SET::GetAvailableLanguageCodes2(Kernel::HLERequestContext& ctx) {
+void SET::GetAvailableLanguageCodes2(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
GetAvailableLanguageCodesImpl(ctx, POST_4_0_0_MAX_ENTRIES);
}
-void SET::GetAvailableLanguageCodeCount(Kernel::HLERequestContext& ctx) {
+void SET::GetAvailableLanguageCodeCount(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
PushResponseLanguageCode(ctx, PRE_4_0_0_MAX_ENTRIES);
}
-void SET::GetAvailableLanguageCodeCount2(Kernel::HLERequestContext& ctx) {
+void SET::GetAvailableLanguageCodeCount2(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
PushResponseLanguageCode(ctx, POST_4_0_0_MAX_ENTRIES);
}
-void SET::GetQuestFlag(Kernel::HLERequestContext& ctx) {
+void SET::GetQuestFlag(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -165,7 +165,7 @@ void SET::GetQuestFlag(Kernel::HLERequestContext& ctx) {
rb.Push(static_cast<u32>(Settings::values.quest_flag.GetValue()));
}
-void SET::GetLanguageCode(Kernel::HLERequestContext& ctx) {
+void SET::GetLanguageCode(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called {}", Settings::values.language_index.GetValue());
IPC::ResponseBuilder rb{ctx, 4};
@@ -173,7 +173,7 @@ void SET::GetLanguageCode(Kernel::HLERequestContext& ctx) {
rb.PushEnum(available_language_codes[Settings::values.language_index.GetValue()]);
}
-void SET::GetRegionCode(Kernel::HLERequestContext& ctx) {
+void SET::GetRegionCode(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -181,17 +181,17 @@ void SET::GetRegionCode(Kernel::HLERequestContext& ctx) {
rb.Push(Settings::values.region_index.GetValue());
}
-void SET::GetKeyCodeMap(Kernel::HLERequestContext& ctx) {
+void SET::GetKeyCodeMap(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "Called {}", ctx.Description());
GetKeyCodeMapImpl(ctx);
}
-void SET::GetKeyCodeMap2(Kernel::HLERequestContext& ctx) {
+void SET::GetKeyCodeMap2(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "Called {}", ctx.Description());
GetKeyCodeMapImpl(ctx);
}
-void SET::GetDeviceNickName(Kernel::HLERequestContext& ctx) {
+void SET::GetDeviceNickName(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
diff --git a/src/core/hle/service/set/set.h b/src/core/hle/service/set/set.h
index 375975711..7fd3a7654 100644
--- a/src/core/hle/service/set/set.h
+++ b/src/core/hle/service/set/set.h
@@ -40,17 +40,17 @@ public:
~SET() override;
private:
- void GetLanguageCode(Kernel::HLERequestContext& ctx);
- void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx);
- void MakeLanguageCode(Kernel::HLERequestContext& ctx);
- void GetAvailableLanguageCodes2(Kernel::HLERequestContext& ctx);
- void GetAvailableLanguageCodeCount(Kernel::HLERequestContext& ctx);
- void GetAvailableLanguageCodeCount2(Kernel::HLERequestContext& ctx);
- void GetQuestFlag(Kernel::HLERequestContext& ctx);
- void GetRegionCode(Kernel::HLERequestContext& ctx);
- void GetKeyCodeMap(Kernel::HLERequestContext& ctx);
- void GetKeyCodeMap2(Kernel::HLERequestContext& ctx);
- void GetDeviceNickName(Kernel::HLERequestContext& ctx);
+ void GetLanguageCode(HLERequestContext& ctx);
+ void GetAvailableLanguageCodes(HLERequestContext& ctx);
+ void MakeLanguageCode(HLERequestContext& ctx);
+ void GetAvailableLanguageCodes2(HLERequestContext& ctx);
+ void GetAvailableLanguageCodeCount(HLERequestContext& ctx);
+ void GetAvailableLanguageCodeCount2(HLERequestContext& ctx);
+ void GetQuestFlag(HLERequestContext& ctx);
+ void GetRegionCode(HLERequestContext& ctx);
+ void GetKeyCodeMap(HLERequestContext& ctx);
+ void GetKeyCodeMap2(HLERequestContext& ctx);
+ void GetDeviceNickName(HLERequestContext& ctx);
};
} // namespace Service::Set
diff --git a/src/core/hle/service/set/set_sys.cpp b/src/core/hle/service/set/set_sys.cpp
index 94c20edda..2e38d1cfc 100644
--- a/src/core/hle/service/set/set_sys.cpp
+++ b/src/core/hle/service/set/set_sys.cpp
@@ -6,8 +6,8 @@
#include "common/settings.h"
#include "core/file_sys/errors.h"
#include "core/file_sys/system_archive/system_version.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/service/filesystem/filesystem.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/set/set_sys.h"
namespace Service::Set {
@@ -20,7 +20,7 @@ enum class GetFirmwareVersionType {
Version2,
};
-void GetFirmwareVersionImpl(Kernel::HLERequestContext& ctx, GetFirmwareVersionType type) {
+void GetFirmwareVersionImpl(HLERequestContext& ctx, GetFirmwareVersionType type) {
LOG_WARNING(Service_SET, "called - Using hardcoded firmware version '{}'",
FileSys::SystemArchive::GetLongDisplayVersion());
@@ -73,17 +73,17 @@ void GetFirmwareVersionImpl(Kernel::HLERequestContext& ctx, GetFirmwareVersionTy
}
} // Anonymous namespace
-void SET_SYS::GetFirmwareVersion(Kernel::HLERequestContext& ctx) {
+void SET_SYS::GetFirmwareVersion(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
GetFirmwareVersionImpl(ctx, GetFirmwareVersionType::Version1);
}
-void SET_SYS::GetFirmwareVersion2(Kernel::HLERequestContext& ctx) {
+void SET_SYS::GetFirmwareVersion2(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
GetFirmwareVersionImpl(ctx, GetFirmwareVersionType::Version2);
}
-void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) {
+void SET_SYS::GetColorSetId(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -92,7 +92,7 @@ void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) {
rb.PushEnum(color_set);
}
-void SET_SYS::SetColorSetId(Kernel::HLERequestContext& ctx) {
+void SET_SYS::SetColorSetId(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
IPC::RequestParser rp{ctx};
@@ -126,7 +126,7 @@ static Settings GetSettings() {
return ret;
}
-void SET_SYS::GetSettingsItemValueSize(Kernel::HLERequestContext& ctx) {
+void SET_SYS::GetSettingsItemValueSize(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
// The category of the setting. This corresponds to the top-level keys of
@@ -151,7 +151,7 @@ void SET_SYS::GetSettingsItemValueSize(Kernel::HLERequestContext& ctx) {
rb.Push(response_size);
}
-void SET_SYS::GetSettingsItemValue(Kernel::HLERequestContext& ctx) {
+void SET_SYS::GetSettingsItemValue(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
// The category of the setting. This corresponds to the top-level keys of
@@ -177,7 +177,7 @@ void SET_SYS::GetSettingsItemValue(Kernel::HLERequestContext& ctx) {
rb.Push(response);
}
-void SET_SYS::GetDeviceNickName(Kernel::HLERequestContext& ctx) {
+void SET_SYS::GetDeviceNickName(HLERequestContext& ctx) {
LOG_DEBUG(Service_SET, "called");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
diff --git a/src/core/hle/service/set/set_sys.h b/src/core/hle/service/set/set_sys.h
index 464ac3da1..1efbcc97a 100644
--- a/src/core/hle/service/set/set_sys.h
+++ b/src/core/hle/service/set/set_sys.h
@@ -23,13 +23,13 @@ private:
BasicBlack = 1,
};
- void GetSettingsItemValueSize(Kernel::HLERequestContext& ctx);
- void GetSettingsItemValue(Kernel::HLERequestContext& ctx);
- void GetFirmwareVersion(Kernel::HLERequestContext& ctx);
- void GetFirmwareVersion2(Kernel::HLERequestContext& ctx);
- void GetColorSetId(Kernel::HLERequestContext& ctx);
- void SetColorSetId(Kernel::HLERequestContext& ctx);
- void GetDeviceNickName(Kernel::HLERequestContext& ctx);
+ void GetSettingsItemValueSize(HLERequestContext& ctx);
+ void GetSettingsItemValue(HLERequestContext& ctx);
+ void GetFirmwareVersion(HLERequestContext& ctx);
+ void GetFirmwareVersion2(HLERequestContext& ctx);
+ void GetColorSetId(HLERequestContext& ctx);
+ void SetColorSetId(HLERequestContext& ctx);
+ void GetDeviceNickName(HLERequestContext& ctx);
ColorSet color_set = ColorSet::BasicWhite;
};
diff --git a/src/core/hle/service/set/settings.cpp b/src/core/hle/service/set/settings.cpp
index 4ebc2a0ec..c48844f77 100644
--- a/src/core/hle/service/set/settings.cpp
+++ b/src/core/hle/service/set/settings.cpp
@@ -1,20 +1,23 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/set/set.h"
#include "core/hle/service/set/set_cal.h"
#include "core/hle/service/set/set_fd.h"
#include "core/hle/service/set/set_sys.h"
#include "core/hle/service/set/settings.h"
-#include "core/hle/service/sm/sm.h"
namespace Service::Set {
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<SET>(system)->InstallAsService(service_manager);
- std::make_shared<SET_CAL>(system)->InstallAsService(service_manager);
- std::make_shared<SET_FD>(system)->InstallAsService(service_manager);
- std::make_shared<SET_SYS>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("set", std::make_shared<SET>(system));
+ server_manager->RegisterNamedService("set:cal", std::make_shared<SET_CAL>(system));
+ server_manager->RegisterNamedService("set:fd", std::make_shared<SET_FD>(system));
+ server_manager->RegisterNamedService("set:sys", std::make_shared<SET_SYS>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Set
diff --git a/src/core/hle/service/set/settings.h b/src/core/hle/service/set/settings.h
index 6cd7d634c..03cd4bb66 100644
--- a/src/core/hle/service/set/settings.h
+++ b/src/core/hle/service/set/settings.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::Set {
-/// Registers all Settings services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Set
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index 84720094f..1608fa24c 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -5,69 +5,73 @@
#include "common/assert.h"
#include "common/scope_exit.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_client_port.h"
#include "core/hle/kernel/k_client_session.h"
#include "core/hle/kernel/k_port.h"
#include "core/hle/kernel/k_scoped_resource_reservation.h"
#include "core/hle/kernel/k_server_port.h"
#include "core/hle/result.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/sm/sm.h"
#include "core/hle/service/sm/sm_controller.h"
namespace Service::SM {
-constexpr Result ERR_NOT_INITIALIZED(ErrorModule::SM, 2);
-constexpr Result ERR_ALREADY_REGISTERED(ErrorModule::SM, 4);
-constexpr Result ERR_INVALID_NAME(ErrorModule::SM, 6);
-constexpr Result ERR_SERVICE_NOT_REGISTERED(ErrorModule::SM, 7);
+constexpr Result ResultInvalidClient(ErrorModule::SM, 2);
+constexpr Result ResultAlreadyRegistered(ErrorModule::SM, 4);
+constexpr Result ResultInvalidServiceName(ErrorModule::SM, 6);
+constexpr Result ResultNotRegistered(ErrorModule::SM, 7);
-ServiceManager::ServiceManager(Kernel::KernelCore& kernel_) : kernel{kernel_} {}
+ServiceManager::ServiceManager(Kernel::KernelCore& kernel_) : kernel{kernel_} {
+ controller_interface = std::make_unique<Controller>(kernel.System());
+}
ServiceManager::~ServiceManager() {
for (auto& [name, port] : service_ports) {
port->GetClientPort().Close();
port->GetServerPort().Close();
}
+
+ if (deferral_event) {
+ deferral_event->Close();
+ }
}
-void ServiceManager::InvokeControlRequest(Kernel::HLERequestContext& context) {
+void ServiceManager::InvokeControlRequest(HLERequestContext& context) {
controller_interface->InvokeRequest(context);
}
static Result ValidateServiceName(const std::string& name) {
if (name.empty() || name.size() > 8) {
LOG_ERROR(Service_SM, "Invalid service name! service={}", name);
- return ERR_INVALID_NAME;
+ return Service::SM::ResultInvalidServiceName;
}
return ResultSuccess;
}
-Kernel::KClientPort& ServiceManager::InterfaceFactory(ServiceManager& self, Core::System& system) {
- self.sm_interface = std::make_shared<SM>(self, system);
- self.controller_interface = std::make_unique<Controller>(system);
- return self.sm_interface->CreatePort();
-}
-
-void ServiceManager::SessionHandler(ServiceManager& self, Kernel::KServerPort* server_port) {
- self.sm_interface->AcceptSession(server_port);
-}
-
Result ServiceManager::RegisterService(std::string name, u32 max_sessions,
- Kernel::SessionRequestHandlerPtr handler) {
+ SessionRequestHandlerPtr handler) {
CASCADE_CODE(ValidateServiceName(name));
+ std::scoped_lock lk{lock};
if (registered_services.find(name) != registered_services.end()) {
LOG_ERROR(Service_SM, "Service is already registered! service={}", name);
- return ERR_ALREADY_REGISTERED;
+ return Service::SM::ResultAlreadyRegistered;
}
auto* port = Kernel::KPort::Create(kernel);
- port->Initialize(ServerSessionCountMax, false, name);
+ port->Initialize(ServerSessionCountMax, false, 0);
+
+ // Register the port.
+ Kernel::KPort::Register(kernel, port);
service_ports.emplace(name, port);
registered_services.emplace(name, handler);
+ if (deferral_event) {
+ deferral_event->Signal();
+ }
return ResultSuccess;
}
@@ -75,10 +79,11 @@ Result ServiceManager::RegisterService(std::string name, u32 max_sessions,
Result ServiceManager::UnregisterService(const std::string& name) {
CASCADE_CODE(ValidateServiceName(name));
+ std::scoped_lock lk{lock};
const auto iter = registered_services.find(name);
if (iter == registered_services.end()) {
LOG_ERROR(Service_SM, "Server is not registered! service={}", name);
- return ERR_SERVICE_NOT_REGISTERED;
+ return Service::SM::ResultNotRegistered;
}
registered_services.erase(iter);
@@ -89,10 +94,12 @@ Result ServiceManager::UnregisterService(const std::string& name) {
ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name) {
CASCADE_CODE(ValidateServiceName(name));
+
+ std::scoped_lock lk{lock};
auto it = service_ports.find(name);
if (it == service_ports.end()) {
- LOG_ERROR(Service_SM, "Server is not registered! service={}", name);
- return ERR_SERVICE_NOT_REGISTERED;
+ LOG_WARNING(Service_SM, "Server is not registered! service={}", name);
+ return Service::SM::ResultNotRegistered;
}
return it->second;
@@ -105,17 +112,22 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name
* Outputs:
* 0: Result
*/
-void SM::Initialize(Kernel::HLERequestContext& ctx) {
+void SM::Initialize(HLERequestContext& ctx) {
LOG_DEBUG(Service_SM, "called");
- is_initialized = true;
+ ctx.GetManager()->SetIsInitializedForSm();
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
-void SM::GetService(Kernel::HLERequestContext& ctx) {
+void SM::GetService(HLERequestContext& ctx) {
auto result = GetServiceImpl(ctx);
+ if (ctx.GetIsDeferred()) {
+ // Don't overwrite the command buffer.
+ return;
+ }
+
if (result.Succeeded()) {
IPC::ResponseBuilder rb{ctx, 2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles};
rb.Push(result.Code());
@@ -126,8 +138,13 @@ void SM::GetService(Kernel::HLERequestContext& ctx) {
}
}
-void SM::GetServiceTipc(Kernel::HLERequestContext& ctx) {
+void SM::GetServiceTipc(HLERequestContext& ctx) {
auto result = GetServiceImpl(ctx);
+ if (ctx.GetIsDeferred()) {
+ // Don't overwrite the command buffer.
+ return;
+ }
+
IPC::ResponseBuilder rb{ctx, 2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles};
rb.Push(result.Code());
rb.PushMoveObjects(result.Succeeded() ? result.Unwrap() : nullptr);
@@ -144,9 +161,9 @@ static std::string PopServiceName(IPC::RequestParser& rp) {
return result;
}
-ResultVal<Kernel::KClientSession*> SM::GetServiceImpl(Kernel::HLERequestContext& ctx) {
- if (!is_initialized) {
- return ERR_NOT_INITIALIZED;
+ResultVal<Kernel::KClientSession*> SM::GetServiceImpl(HLERequestContext& ctx) {
+ if (!ctx.GetManager()->GetIsInitializedForSm()) {
+ return Service::SM::ResultInvalidClient;
}
IPC::RequestParser rp{ctx};
@@ -154,10 +171,15 @@ ResultVal<Kernel::KClientSession*> SM::GetServiceImpl(Kernel::HLERequestContext&
// Find the named port.
auto port_result = service_manager.GetServicePort(name);
- auto service = service_manager.GetService<Kernel::SessionRequestHandler>(name);
- if (port_result.Failed() || !service) {
- LOG_ERROR(Service_SM, "called service={} -> error 0x{:08X}", name, port_result.Code().raw);
- return port_result.Code();
+ if (port_result.Code() == Service::SM::ResultInvalidServiceName) {
+ LOG_ERROR(Service_SM, "Invalid service name '{}'", name);
+ return Service::SM::ResultInvalidServiceName;
+ }
+
+ if (port_result.Failed()) {
+ LOG_INFO(Service_SM, "Waiting for service {} to become available", name);
+ ctx.SetIsDeferred();
+ return Service::SM::ResultNotRegistered;
}
auto& port = port_result.Unwrap();
@@ -167,14 +189,13 @@ ResultVal<Kernel::KClientSession*> SM::GetServiceImpl(Kernel::HLERequestContext&
LOG_ERROR(Service_SM, "called service={} -> error 0x{:08X}", name, result.raw);
return result;
}
- service->AcceptSession(&port->GetServerPort());
LOG_DEBUG(Service_SM, "called service={} -> session={}", name, session->GetId());
return session;
}
-void SM::RegisterService(Kernel::HLERequestContext& ctx) {
+void SM::RegisterService(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
std::string name(PopServiceName(rp));
@@ -193,7 +214,7 @@ void SM::RegisterService(Kernel::HLERequestContext& ctx) {
}
auto* port = Kernel::KPort::Create(kernel);
- port->Initialize(ServerSessionCountMax, is_light, name);
+ port->Initialize(ServerSessionCountMax, is_light, 0);
SCOPE_EXIT({ port->GetClientPort().Close(); });
IPC::ResponseBuilder rb{ctx, 2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles};
@@ -201,7 +222,7 @@ void SM::RegisterService(Kernel::HLERequestContext& ctx) {
rb.PushMoveObjects(port->GetServerPort());
}
-void SM::UnregisterService(Kernel::HLERequestContext& ctx) {
+void SM::UnregisterService(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
std::string name(PopServiceName(rp));
@@ -212,7 +233,7 @@ void SM::UnregisterService(Kernel::HLERequestContext& ctx) {
}
SM::SM(ServiceManager& service_manager_, Core::System& system_)
- : ServiceFramework{system_, "sm:", ServiceThreadType::Default, 4},
+ : ServiceFramework{system_, "sm:", 4},
service_manager{service_manager_}, kernel{system_.Kernel()} {
RegisterHandlers({
{0, &SM::Initialize, "Initialize"},
@@ -232,4 +253,16 @@ SM::SM(ServiceManager& service_manager_, Core::System& system_)
SM::~SM() = default;
+void LoopProcess(Core::System& system) {
+ auto& service_manager = system.ServiceManager();
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ Kernel::KEvent* deferral_event{};
+ server_manager->ManageDeferral(&deferral_event);
+ service_manager.SetDeferralEvent(deferral_event);
+
+ server_manager->ManageNamedPort("sm:", std::make_shared<SM>(system.ServiceManager(), system));
+ ServerManager::RunServer(std::move(server_manager));
+}
+
} // namespace Service::SM
diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h
index 02a5dde9e..6697f4007 100644
--- a/src/core/hle/service/sm/sm.h
+++ b/src/core/hle/service/sm/sm.h
@@ -4,6 +4,7 @@
#pragma once
#include <memory>
+#include <mutex>
#include <string>
#include <unordered_map>
@@ -35,33 +36,28 @@ public:
~SM() override;
private:
- void Initialize(Kernel::HLERequestContext& ctx);
- void GetService(Kernel::HLERequestContext& ctx);
- void GetServiceTipc(Kernel::HLERequestContext& ctx);
- void RegisterService(Kernel::HLERequestContext& ctx);
- void UnregisterService(Kernel::HLERequestContext& ctx);
+ void Initialize(HLERequestContext& ctx);
+ void GetService(HLERequestContext& ctx);
+ void GetServiceTipc(HLERequestContext& ctx);
+ void RegisterService(HLERequestContext& ctx);
+ void UnregisterService(HLERequestContext& ctx);
- ResultVal<Kernel::KClientSession*> GetServiceImpl(Kernel::HLERequestContext& ctx);
+ ResultVal<Kernel::KClientSession*> GetServiceImpl(HLERequestContext& ctx);
ServiceManager& service_manager;
- bool is_initialized{};
Kernel::KernelCore& kernel;
};
class ServiceManager {
public:
- static Kernel::KClientPort& InterfaceFactory(ServiceManager& self, Core::System& system);
- static void SessionHandler(ServiceManager& self, Kernel::KServerPort* server_port);
-
explicit ServiceManager(Kernel::KernelCore& kernel_);
~ServiceManager();
- Result RegisterService(std::string name, u32 max_sessions,
- Kernel::SessionRequestHandlerPtr handler);
+ Result RegisterService(std::string name, u32 max_sessions, SessionRequestHandlerPtr handler);
Result UnregisterService(const std::string& name);
ResultVal<Kernel::KPort*> GetServicePort(const std::string& name);
- template <Common::DerivedFrom<Kernel::SessionRequestHandler> T>
+ template <Common::DerivedFrom<SessionRequestHandler> T>
std::shared_ptr<T> GetService(const std::string& service_name) const {
auto service = registered_services.find(service_name);
if (service == registered_services.end()) {
@@ -71,18 +67,27 @@ public:
return std::static_pointer_cast<T>(service->second);
}
- void InvokeControlRequest(Kernel::HLERequestContext& context);
+ void InvokeControlRequest(HLERequestContext& context);
+
+ void SetDeferralEvent(Kernel::KEvent* deferral_event_) {
+ deferral_event = deferral_event_;
+ }
private:
std::shared_ptr<SM> sm_interface;
std::unique_ptr<Controller> controller_interface;
/// Map of registered services, retrieved using GetServicePort.
- std::unordered_map<std::string, Kernel::SessionRequestHandlerPtr> registered_services;
+ std::mutex lock;
+ std::unordered_map<std::string, SessionRequestHandlerPtr> registered_services;
std::unordered_map<std::string, Kernel::KPort*> service_ports;
/// Kernel context
Kernel::KernelCore& kernel;
+ Kernel::KEvent* deferral_event{};
};
+/// Runs SM services.
+void LoopProcess(Core::System& system);
+
} // namespace Service::SM
diff --git a/src/core/hle/service/sm/sm_controller.cpp b/src/core/hle/service/sm/sm_controller.cpp
index 1cf9dd1c4..7dce28fe0 100644
--- a/src/core/hle/service/sm/sm_controller.cpp
+++ b/src/core/hle/service/sm/sm_controller.cpp
@@ -4,17 +4,18 @@
#include "common/assert.h"
#include "common/logging/log.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_client_port.h"
#include "core/hle/kernel/k_port.h"
#include "core/hle/kernel/k_scoped_resource_reservation.h"
#include "core/hle/kernel/k_server_session.h"
#include "core/hle/kernel/k_session.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/sm/sm_controller.h"
namespace Service::SM {
-void Controller::ConvertCurrentObjectToDomain(Kernel::HLERequestContext& ctx) {
+void Controller::ConvertCurrentObjectToDomain(HLERequestContext& ctx) {
ASSERT_MSG(!ctx.GetManager()->IsDomain(), "Session is already a domain");
LOG_DEBUG(Service, "called, server_session={}", ctx.Session()->GetId());
ctx.GetManager()->ConvertToDomainOnRequestEnd();
@@ -24,7 +25,7 @@ void Controller::ConvertCurrentObjectToDomain(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(1); // Converted sessions start with 1 request handler
}
-void Controller::CloneCurrentObject(Kernel::HLERequestContext& ctx) {
+void Controller::CloneCurrentObject(HLERequestContext& ctx) {
LOG_DEBUG(Service, "called");
auto& process = *ctx.GetThread().GetOwnerProcess();
@@ -43,14 +44,17 @@ void Controller::CloneCurrentObject(Kernel::HLERequestContext& ctx) {
ASSERT(session != nullptr);
// Initialize the session.
- session->Initialize(nullptr, "");
+ session->Initialize(nullptr, 0);
// Commit the session reservation.
session_reservation.Commit();
- // Register with manager.
- session_manager->SessionHandler().RegisterSession(&session->GetServerSession(),
- session_manager);
+ // Register the session.
+ Kernel::KSession::Register(system.Kernel(), session);
+
+ // Register with server manager.
+ session_manager->GetServerManager().RegisterSession(&session->GetServerSession(),
+ session_manager);
// We succeeded.
IPC::ResponseBuilder rb{ctx, 2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles};
@@ -58,13 +62,13 @@ void Controller::CloneCurrentObject(Kernel::HLERequestContext& ctx) {
rb.PushMoveObjects(session->GetClientSession());
}
-void Controller::CloneCurrentObjectEx(Kernel::HLERequestContext& ctx) {
+void Controller::CloneCurrentObjectEx(HLERequestContext& ctx) {
LOG_DEBUG(Service, "called");
CloneCurrentObject(ctx);
}
-void Controller::QueryPointerBufferSize(Kernel::HLERequestContext& ctx) {
+void Controller::QueryPointerBufferSize(HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
diff --git a/src/core/hle/service/sm/sm_controller.h b/src/core/hle/service/sm/sm_controller.h
index ed386f660..4e748b36d 100644
--- a/src/core/hle/service/sm/sm_controller.h
+++ b/src/core/hle/service/sm/sm_controller.h
@@ -17,10 +17,10 @@ public:
~Controller() override;
private:
- void ConvertCurrentObjectToDomain(Kernel::HLERequestContext& ctx);
- void CloneCurrentObject(Kernel::HLERequestContext& ctx);
- void CloneCurrentObjectEx(Kernel::HLERequestContext& ctx);
- void QueryPointerBufferSize(Kernel::HLERequestContext& ctx);
+ void ConvertCurrentObjectToDomain(HLERequestContext& ctx);
+ void CloneCurrentObject(HLERequestContext& ctx);
+ void CloneCurrentObjectEx(HLERequestContext& ctx);
+ void QueryPointerBufferSize(HLERequestContext& ctx);
};
} // namespace Service::SM
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp
index 9e94a462f..bce45d321 100644
--- a/src/core/hle/service/sockets/bsd.cpp
+++ b/src/core/hle/service/sockets/bsd.cpp
@@ -11,8 +11,8 @@
#include "common/microprofile.h"
#include "common/socket_types.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_thread.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/sockets/bsd.h"
#include "core/hle/service/sockets/sockets_translate.h"
#include "core/internal_network/network.h"
@@ -42,7 +42,7 @@ void BSD::PollWork::Execute(BSD* bsd) {
std::tie(ret, bsd_errno) = bsd->PollImpl(write_buffer, read_buffer, nfds, timeout);
}
-void BSD::PollWork::Response(Kernel::HLERequestContext& ctx) {
+void BSD::PollWork::Response(HLERequestContext& ctx) {
if (write_buffer.size() > 0) {
ctx.WriteBuffer(write_buffer);
}
@@ -57,7 +57,7 @@ void BSD::AcceptWork::Execute(BSD* bsd) {
std::tie(ret, bsd_errno) = bsd->AcceptImpl(fd, write_buffer);
}
-void BSD::AcceptWork::Response(Kernel::HLERequestContext& ctx) {
+void BSD::AcceptWork::Response(HLERequestContext& ctx) {
if (write_buffer.size() > 0) {
ctx.WriteBuffer(write_buffer);
}
@@ -73,7 +73,7 @@ void BSD::ConnectWork::Execute(BSD* bsd) {
bsd_errno = bsd->ConnectImpl(fd, addr);
}
-void BSD::ConnectWork::Response(Kernel::HLERequestContext& ctx) {
+void BSD::ConnectWork::Response(HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
rb.Push<s32>(bsd_errno == Errno::SUCCESS ? 0 : -1);
@@ -84,7 +84,7 @@ void BSD::RecvWork::Execute(BSD* bsd) {
std::tie(ret, bsd_errno) = bsd->RecvImpl(fd, flags, message);
}
-void BSD::RecvWork::Response(Kernel::HLERequestContext& ctx) {
+void BSD::RecvWork::Response(HLERequestContext& ctx) {
ctx.WriteBuffer(message);
IPC::ResponseBuilder rb{ctx, 4};
@@ -97,7 +97,7 @@ void BSD::RecvFromWork::Execute(BSD* bsd) {
std::tie(ret, bsd_errno) = bsd->RecvFromImpl(fd, flags, message, addr);
}
-void BSD::RecvFromWork::Response(Kernel::HLERequestContext& ctx) {
+void BSD::RecvFromWork::Response(HLERequestContext& ctx) {
ctx.WriteBuffer(message, 0);
if (!addr.empty()) {
ctx.WriteBuffer(addr, 1);
@@ -114,7 +114,7 @@ void BSD::SendWork::Execute(BSD* bsd) {
std::tie(ret, bsd_errno) = bsd->SendImpl(fd, flags, message);
}
-void BSD::SendWork::Response(Kernel::HLERequestContext& ctx) {
+void BSD::SendWork::Response(HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
rb.Push<s32>(ret);
@@ -125,14 +125,14 @@ void BSD::SendToWork::Execute(BSD* bsd) {
std::tie(ret, bsd_errno) = bsd->SendToImpl(fd, flags, message, addr);
}
-void BSD::SendToWork::Response(Kernel::HLERequestContext& ctx) {
+void BSD::SendToWork::Response(HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
rb.Push<s32>(ret);
rb.PushEnum(bsd_errno);
}
-void BSD::RegisterClient(Kernel::HLERequestContext& ctx) {
+void BSD::RegisterClient(HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
@@ -141,7 +141,7 @@ void BSD::RegisterClient(Kernel::HLERequestContext& ctx) {
rb.Push<s32>(0); // bsd errno
}
-void BSD::StartMonitoring(Kernel::HLERequestContext& ctx) {
+void BSD::StartMonitoring(HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2};
@@ -149,7 +149,7 @@ void BSD::StartMonitoring(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void BSD::Socket(Kernel::HLERequestContext& ctx) {
+void BSD::Socket(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 domain = rp.Pop<u32>();
const u32 type = rp.Pop<u32>();
@@ -166,7 +166,7 @@ void BSD::Socket(Kernel::HLERequestContext& ctx) {
rb.PushEnum(bsd_errno);
}
-void BSD::Select(Kernel::HLERequestContext& ctx) {
+void BSD::Select(HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 4};
@@ -176,7 +176,7 @@ void BSD::Select(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(0); // bsd errno
}
-void BSD::Poll(Kernel::HLERequestContext& ctx) {
+void BSD::Poll(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 nfds = rp.Pop<s32>();
const s32 timeout = rp.Pop<s32>();
@@ -191,7 +191,7 @@ void BSD::Poll(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::Accept(Kernel::HLERequestContext& ctx) {
+void BSD::Accept(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -203,16 +203,15 @@ void BSD::Accept(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::Bind(Kernel::HLERequestContext& ctx) {
+void BSD::Bind(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
LOG_DEBUG(Service, "called. fd={} addrlen={}", fd, ctx.GetReadBufferSize());
-
BuildErrnoResponse(ctx, BindImpl(fd, ctx.ReadBuffer()));
}
-void BSD::Connect(Kernel::HLERequestContext& ctx) {
+void BSD::Connect(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -224,7 +223,7 @@ void BSD::Connect(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::GetPeerName(Kernel::HLERequestContext& ctx) {
+void BSD::GetPeerName(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -242,7 +241,7 @@ void BSD::GetPeerName(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(static_cast<u32>(write_buffer.size()));
}
-void BSD::GetSockName(Kernel::HLERequestContext& ctx) {
+void BSD::GetSockName(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -260,7 +259,7 @@ void BSD::GetSockName(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(static_cast<u32>(write_buffer.size()));
}
-void BSD::GetSockOpt(Kernel::HLERequestContext& ctx) {
+void BSD::GetSockOpt(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
const u32 level = rp.Pop<u32>();
@@ -279,7 +278,7 @@ void BSD::GetSockOpt(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(static_cast<u32>(optval.size()));
}
-void BSD::Listen(Kernel::HLERequestContext& ctx) {
+void BSD::Listen(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
const s32 backlog = rp.Pop<s32>();
@@ -289,7 +288,7 @@ void BSD::Listen(Kernel::HLERequestContext& ctx) {
BuildErrnoResponse(ctx, ListenImpl(fd, backlog));
}
-void BSD::Fcntl(Kernel::HLERequestContext& ctx) {
+void BSD::Fcntl(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
const s32 cmd = rp.Pop<s32>();
@@ -305,14 +304,14 @@ void BSD::Fcntl(Kernel::HLERequestContext& ctx) {
rb.PushEnum(bsd_errno);
}
-void BSD::SetSockOpt(Kernel::HLERequestContext& ctx) {
+void BSD::SetSockOpt(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
const u32 level = rp.Pop<u32>();
const OptName optname = static_cast<OptName>(rp.Pop<u32>());
- const std::vector<u8> buffer = ctx.ReadBuffer();
+ const auto buffer = ctx.ReadBuffer();
const u8* optval = buffer.empty() ? nullptr : buffer.data();
size_t optlen = buffer.size();
@@ -329,7 +328,7 @@ void BSD::SetSockOpt(Kernel::HLERequestContext& ctx) {
BuildErrnoResponse(ctx, SetSockOptImpl(fd, level, optname, optlen, optval));
}
-void BSD::Shutdown(Kernel::HLERequestContext& ctx) {
+void BSD::Shutdown(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -340,7 +339,7 @@ void BSD::Shutdown(Kernel::HLERequestContext& ctx) {
BuildErrnoResponse(ctx, ShutdownImpl(fd, how));
}
-void BSD::Recv(Kernel::HLERequestContext& ctx) {
+void BSD::Recv(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -355,7 +354,7 @@ void BSD::Recv(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::RecvFrom(Kernel::HLERequestContext& ctx) {
+void BSD::RecvFrom(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -372,7 +371,7 @@ void BSD::RecvFrom(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::Send(Kernel::HLERequestContext& ctx) {
+void BSD::Send(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -387,7 +386,7 @@ void BSD::Send(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::SendTo(Kernel::HLERequestContext& ctx) {
+void BSD::SendTo(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
const u32 flags = rp.Pop<u32>();
@@ -403,7 +402,7 @@ void BSD::SendTo(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::Write(Kernel::HLERequestContext& ctx) {
+void BSD::Write(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -416,7 +415,7 @@ void BSD::Write(Kernel::HLERequestContext& ctx) {
});
}
-void BSD::Read(Kernel::HLERequestContext& ctx) {
+void BSD::Read(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -428,7 +427,7 @@ void BSD::Read(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(0); // bsd errno
}
-void BSD::Close(Kernel::HLERequestContext& ctx) {
+void BSD::Close(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
@@ -437,7 +436,7 @@ void BSD::Close(Kernel::HLERequestContext& ctx) {
BuildErrnoResponse(ctx, CloseImpl(fd));
}
-void BSD::EventFd(Kernel::HLERequestContext& ctx) {
+void BSD::EventFd(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 initval = rp.Pop<u64>();
const u32 flags = rp.Pop<u32>();
@@ -448,7 +447,7 @@ void BSD::EventFd(Kernel::HLERequestContext& ctx) {
}
template <typename Work>
-void BSD::ExecuteWork(Kernel::HLERequestContext& ctx, Work work) {
+void BSD::ExecuteWork(HLERequestContext& ctx, Work work) {
work.Execute(this);
work.Response(ctx);
}
@@ -489,7 +488,7 @@ std::pair<s32, Errno> BSD::SocketImpl(Domain domain, Type type, Protocol protoco
return {fd, Errno::SUCCESS};
}
-std::pair<s32, Errno> BSD::PollImpl(std::vector<u8>& write_buffer, std::vector<u8> read_buffer,
+std::pair<s32, Errno> BSD::PollImpl(std::vector<u8>& write_buffer, std::span<const u8> read_buffer,
s32 nfds, s32 timeout) {
if (write_buffer.size() < nfds * sizeof(PollFD)) {
return {-1, Errno::INVAL};
@@ -584,7 +583,7 @@ std::pair<s32, Errno> BSD::AcceptImpl(s32 fd, std::vector<u8>& write_buffer) {
return {new_fd, Errno::SUCCESS};
}
-Errno BSD::BindImpl(s32 fd, const std::vector<u8>& addr) {
+Errno BSD::BindImpl(s32 fd, std::span<const u8> addr) {
if (!IsFileDescriptorValid(fd)) {
return Errno::BADF;
}
@@ -595,7 +594,7 @@ Errno BSD::BindImpl(s32 fd, const std::vector<u8>& addr) {
return Translate(file_descriptors[fd]->socket->Bind(Translate(addr_in)));
}
-Errno BSD::ConnectImpl(s32 fd, const std::vector<u8>& addr) {
+Errno BSD::ConnectImpl(s32 fd, std::span<const u8> addr) {
if (!IsFileDescriptorValid(fd)) {
return Errno::BADF;
}
@@ -800,15 +799,15 @@ std::pair<s32, Errno> BSD::RecvFromImpl(s32 fd, u32 flags, std::vector<u8>& mess
return {ret, bsd_errno};
}
-std::pair<s32, Errno> BSD::SendImpl(s32 fd, u32 flags, const std::vector<u8>& message) {
+std::pair<s32, Errno> BSD::SendImpl(s32 fd, u32 flags, std::span<const u8> message) {
if (!IsFileDescriptorValid(fd)) {
return {-1, Errno::BADF};
}
return Translate(file_descriptors[fd]->socket->Send(message, flags));
}
-std::pair<s32, Errno> BSD::SendToImpl(s32 fd, u32 flags, const std::vector<u8>& message,
- const std::vector<u8>& addr) {
+std::pair<s32, Errno> BSD::SendToImpl(s32 fd, u32 flags, std::span<const u8> message,
+ std::span<const u8> addr) {
if (!IsFileDescriptorValid(fd)) {
return {-1, Errno::BADF};
}
@@ -863,7 +862,7 @@ bool BSD::IsFileDescriptorValid(s32 fd) const noexcept {
return true;
}
-void BSD::BuildErrnoResponse(Kernel::HLERequestContext& ctx, Errno bsd_errno) const noexcept {
+void BSD::BuildErrnoResponse(HLERequestContext& ctx, Errno bsd_errno) const noexcept {
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
@@ -882,8 +881,7 @@ void BSD::OnProxyPacketReceived(const Network::ProxyPacket& packet) {
}
BSD::BSD(Core::System& system_, const char* name)
- : ServiceFramework{system_, name, ServiceThreadType::CreateNew}, room_network{
- system_.GetRoomNetwork()} {
+ : ServiceFramework{system_, name}, room_network{system_.GetRoomNetwork()} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &BSD::RegisterClient, "RegisterClient"},
@@ -955,6 +953,9 @@ BSDCFG::BSDCFG(Core::System& system_) : ServiceFramework{system_, "bsdcfg"} {
{10, nullptr, "ClearArpEntries"},
{11, nullptr, "ClearArpEntries2"},
{12, nullptr, "PrintArpEntries"},
+ {13, nullptr, "Unknown13"},
+ {14, nullptr, "Unknown14"},
+ {15, nullptr, "Unknown15"},
};
// clang-format on
diff --git a/src/core/hle/service/sockets/bsd.h b/src/core/hle/service/sockets/bsd.h
index 81e855e0f..30ae9c140 100644
--- a/src/core/hle/service/sockets/bsd.h
+++ b/src/core/hle/service/sockets/bsd.h
@@ -4,6 +4,7 @@
#pragma once
#include <memory>
+#include <span>
#include <vector>
#include "common/common_types.h"
@@ -40,11 +41,11 @@ private:
struct PollWork {
void Execute(BSD* bsd);
- void Response(Kernel::HLERequestContext& ctx);
+ void Response(HLERequestContext& ctx);
s32 nfds;
s32 timeout;
- std::vector<u8> read_buffer;
+ std::span<const u8> read_buffer;
std::vector<u8> write_buffer;
s32 ret{};
Errno bsd_errno{};
@@ -52,7 +53,7 @@ private:
struct AcceptWork {
void Execute(BSD* bsd);
- void Response(Kernel::HLERequestContext& ctx);
+ void Response(HLERequestContext& ctx);
s32 fd;
std::vector<u8> write_buffer;
@@ -62,16 +63,16 @@ private:
struct ConnectWork {
void Execute(BSD* bsd);
- void Response(Kernel::HLERequestContext& ctx);
+ void Response(HLERequestContext& ctx);
s32 fd;
- std::vector<u8> addr;
+ std::span<const u8> addr;
Errno bsd_errno{};
};
struct RecvWork {
void Execute(BSD* bsd);
- void Response(Kernel::HLERequestContext& ctx);
+ void Response(HLERequestContext& ctx);
s32 fd;
u32 flags;
@@ -82,7 +83,7 @@ private:
struct RecvFromWork {
void Execute(BSD* bsd);
- void Response(Kernel::HLERequestContext& ctx);
+ void Response(HLERequestContext& ctx);
s32 fd;
u32 flags;
@@ -94,60 +95,60 @@ private:
struct SendWork {
void Execute(BSD* bsd);
- void Response(Kernel::HLERequestContext& ctx);
+ void Response(HLERequestContext& ctx);
s32 fd;
u32 flags;
- std::vector<u8> message;
+ std::span<const u8> message;
s32 ret{};
Errno bsd_errno{};
};
struct SendToWork {
void Execute(BSD* bsd);
- void Response(Kernel::HLERequestContext& ctx);
+ void Response(HLERequestContext& ctx);
s32 fd;
u32 flags;
- std::vector<u8> message;
- std::vector<u8> addr;
+ std::span<const u8> message;
+ std::span<const u8> addr;
s32 ret{};
Errno bsd_errno{};
};
- void RegisterClient(Kernel::HLERequestContext& ctx);
- void StartMonitoring(Kernel::HLERequestContext& ctx);
- void Socket(Kernel::HLERequestContext& ctx);
- void Select(Kernel::HLERequestContext& ctx);
- void Poll(Kernel::HLERequestContext& ctx);
- void Accept(Kernel::HLERequestContext& ctx);
- void Bind(Kernel::HLERequestContext& ctx);
- void Connect(Kernel::HLERequestContext& ctx);
- void GetPeerName(Kernel::HLERequestContext& ctx);
- void GetSockName(Kernel::HLERequestContext& ctx);
- void GetSockOpt(Kernel::HLERequestContext& ctx);
- void Listen(Kernel::HLERequestContext& ctx);
- void Fcntl(Kernel::HLERequestContext& ctx);
- void SetSockOpt(Kernel::HLERequestContext& ctx);
- void Shutdown(Kernel::HLERequestContext& ctx);
- void Recv(Kernel::HLERequestContext& ctx);
- void RecvFrom(Kernel::HLERequestContext& ctx);
- void Send(Kernel::HLERequestContext& ctx);
- void SendTo(Kernel::HLERequestContext& ctx);
- void Write(Kernel::HLERequestContext& ctx);
- void Read(Kernel::HLERequestContext& ctx);
- void Close(Kernel::HLERequestContext& ctx);
- void EventFd(Kernel::HLERequestContext& ctx);
+ void RegisterClient(HLERequestContext& ctx);
+ void StartMonitoring(HLERequestContext& ctx);
+ void Socket(HLERequestContext& ctx);
+ void Select(HLERequestContext& ctx);
+ void Poll(HLERequestContext& ctx);
+ void Accept(HLERequestContext& ctx);
+ void Bind(HLERequestContext& ctx);
+ void Connect(HLERequestContext& ctx);
+ void GetPeerName(HLERequestContext& ctx);
+ void GetSockName(HLERequestContext& ctx);
+ void GetSockOpt(HLERequestContext& ctx);
+ void Listen(HLERequestContext& ctx);
+ void Fcntl(HLERequestContext& ctx);
+ void SetSockOpt(HLERequestContext& ctx);
+ void Shutdown(HLERequestContext& ctx);
+ void Recv(HLERequestContext& ctx);
+ void RecvFrom(HLERequestContext& ctx);
+ void Send(HLERequestContext& ctx);
+ void SendTo(HLERequestContext& ctx);
+ void Write(HLERequestContext& ctx);
+ void Read(HLERequestContext& ctx);
+ void Close(HLERequestContext& ctx);
+ void EventFd(HLERequestContext& ctx);
template <typename Work>
- void ExecuteWork(Kernel::HLERequestContext& ctx, Work work);
+ void ExecuteWork(HLERequestContext& ctx, Work work);
std::pair<s32, Errno> SocketImpl(Domain domain, Type type, Protocol protocol);
- std::pair<s32, Errno> PollImpl(std::vector<u8>& write_buffer, std::vector<u8> read_buffer,
+ std::pair<s32, Errno> PollImpl(std::vector<u8>& write_buffer, std::span<const u8> read_buffer,
s32 nfds, s32 timeout);
std::pair<s32, Errno> AcceptImpl(s32 fd, std::vector<u8>& write_buffer);
- Errno BindImpl(s32 fd, const std::vector<u8>& addr);
- Errno ConnectImpl(s32 fd, const std::vector<u8>& addr);
+ Errno BindImpl(s32 fd, std::span<const u8> addr);
+ Errno ConnectImpl(s32 fd, std::span<const u8> addr);
Errno GetPeerNameImpl(s32 fd, std::vector<u8>& write_buffer);
Errno GetSockNameImpl(s32 fd, std::vector<u8>& write_buffer);
Errno ListenImpl(s32 fd, s32 backlog);
@@ -157,15 +158,15 @@ private:
std::pair<s32, Errno> RecvImpl(s32 fd, u32 flags, std::vector<u8>& message);
std::pair<s32, Errno> RecvFromImpl(s32 fd, u32 flags, std::vector<u8>& message,
std::vector<u8>& addr);
- std::pair<s32, Errno> SendImpl(s32 fd, u32 flags, const std::vector<u8>& message);
- std::pair<s32, Errno> SendToImpl(s32 fd, u32 flags, const std::vector<u8>& message,
- const std::vector<u8>& addr);
+ std::pair<s32, Errno> SendImpl(s32 fd, u32 flags, std::span<const u8> message);
+ std::pair<s32, Errno> SendToImpl(s32 fd, u32 flags, std::span<const u8> message,
+ std::span<const u8> addr);
Errno CloseImpl(s32 fd);
s32 FindFreeFileDescriptorHandle() noexcept;
bool IsFileDescriptorValid(s32 fd) const noexcept;
- void BuildErrnoResponse(Kernel::HLERequestContext& ctx, Errno bsd_errno) const noexcept;
+ void BuildErrnoResponse(HLERequestContext& ctx, Errno bsd_errno) const noexcept;
std::array<std::optional<FileDescriptor>, MAX_FD> file_descriptors;
diff --git a/src/core/hle/service/sockets/ethc.cpp b/src/core/hle/service/sockets/ethc.cpp
deleted file mode 100644
index c12ea999b..000000000
--- a/src/core/hle/service/sockets/ethc.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include "core/hle/service/sockets/ethc.h"
-
-namespace Service::Sockets {
-
-ETHC_C::ETHC_C(Core::System& system_) : ServiceFramework{system_, "ethc:c"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "Initialize"},
- {1, nullptr, "Cancel"},
- {2, nullptr, "GetResult"},
- {3, nullptr, "GetMediaList"},
- {4, nullptr, "SetMediaType"},
- {5, nullptr, "GetMediaType"},
- {6, nullptr, "Unknown6"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
-}
-
-ETHC_C::~ETHC_C() = default;
-
-ETHC_I::ETHC_I(Core::System& system_) : ServiceFramework{system_, "ethc:i"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "GetReadableHandle"},
- {1, nullptr, "Cancel"},
- {2, nullptr, "GetResult"},
- {3, nullptr, "GetInterfaceList"},
- {4, nullptr, "GetInterfaceCount"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
-}
-
-ETHC_I::~ETHC_I() = default;
-
-} // namespace Service::Sockets
diff --git a/src/core/hle/service/sockets/ethc.h b/src/core/hle/service/sockets/ethc.h
deleted file mode 100644
index 7c5759a96..000000000
--- a/src/core/hle/service/sockets/ethc.h
+++ /dev/null
@@ -1,26 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "core/hle/service/service.h"
-
-namespace Core {
-class System;
-}
-
-namespace Service::Sockets {
-
-class ETHC_C final : public ServiceFramework<ETHC_C> {
-public:
- explicit ETHC_C(Core::System& system_);
- ~ETHC_C() override;
-};
-
-class ETHC_I final : public ServiceFramework<ETHC_I> {
-public:
- explicit ETHC_I(Core::System& system_);
- ~ETHC_I() override;
-};
-
-} // namespace Service::Sockets
diff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cpp
index 097c37d7a..132dd5797 100644
--- a/src/core/hle/service/sockets/sfdnsres.cpp
+++ b/src/core/hle/service/sockets/sfdnsres.cpp
@@ -8,7 +8,7 @@
#include "common/string_util.h"
#include "common/swap.h"
#include "core/core.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/sockets/sfdnsres.h"
#include "core/memory.h"
@@ -185,7 +185,7 @@ static std::vector<u8> SerializeAddrInfo(const addrinfo* addrinfo, s32 result_co
return data;
}
-static std::pair<u32, s32> GetAddrInfoRequestImpl(Kernel::HLERequestContext& ctx) {
+static std::pair<u32, s32> GetAddrInfoRequestImpl(HLERequestContext& ctx) {
struct Parameters {
u8 use_nsd_resolve;
u32 unknown;
@@ -221,7 +221,7 @@ static std::pair<u32, s32> GetAddrInfoRequestImpl(Kernel::HLERequestContext& ctx
return std::make_pair(data_size, result_code);
}
-void SFDNSRES::GetAddrInfoRequest(Kernel::HLERequestContext& ctx) {
+void SFDNSRES::GetAddrInfoRequest(HLERequestContext& ctx) {
auto [data_size, result_code] = GetAddrInfoRequestImpl(ctx);
IPC::ResponseBuilder rb{ctx, 4};
@@ -231,7 +231,7 @@ void SFDNSRES::GetAddrInfoRequest(Kernel::HLERequestContext& ctx) {
rb.Push(data_size); // serialized size
}
-void SFDNSRES::GetAddrInfoRequestWithOptions(Kernel::HLERequestContext& ctx) {
+void SFDNSRES::GetAddrInfoRequestWithOptions(HLERequestContext& ctx) {
// Additional options are ignored
auto [data_size, result_code] = GetAddrInfoRequestImpl(ctx);
@@ -243,4 +243,4 @@ void SFDNSRES::GetAddrInfoRequestWithOptions(Kernel::HLERequestContext& ctx) {
rb.Push(0);
}
-} // namespace Service::Sockets \ No newline at end of file
+} // namespace Service::Sockets
diff --git a/src/core/hle/service/sockets/sfdnsres.h b/src/core/hle/service/sockets/sfdnsres.h
index 96018ea77..18e3cd60c 100644
--- a/src/core/hle/service/sockets/sfdnsres.h
+++ b/src/core/hle/service/sockets/sfdnsres.h
@@ -17,8 +17,8 @@ public:
~SFDNSRES() override;
private:
- void GetAddrInfoRequest(Kernel::HLERequestContext& ctx);
- void GetAddrInfoRequestWithOptions(Kernel::HLERequestContext& ctx);
+ void GetAddrInfoRequest(HLERequestContext& ctx);
+ void GetAddrInfoRequestWithOptions(HLERequestContext& ctx);
};
} // namespace Service::Sockets
diff --git a/src/core/hle/service/sockets/sockets.cpp b/src/core/hle/service/sockets/sockets.cpp
index 8d3ba6f96..676d24e03 100644
--- a/src/core/hle/service/sockets/sockets.cpp
+++ b/src/core/hle/service/sockets/sockets.cpp
@@ -1,26 +1,25 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/sockets/bsd.h"
-#include "core/hle/service/sockets/ethc.h"
#include "core/hle/service/sockets/nsd.h"
#include "core/hle/service/sockets/sfdnsres.h"
#include "core/hle/service/sockets/sockets.h"
namespace Service::Sockets {
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<BSD>(system, "bsd:s")->InstallAsService(service_manager);
- std::make_shared<BSD>(system, "bsd:u")->InstallAsService(service_manager);
- std::make_shared<BSDCFG>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
- std::make_shared<ETHC_C>(system)->InstallAsService(service_manager);
- std::make_shared<ETHC_I>(system)->InstallAsService(service_manager);
-
- std::make_shared<NSD>(system, "nsd:a")->InstallAsService(service_manager);
- std::make_shared<NSD>(system, "nsd:u")->InstallAsService(service_manager);
-
- std::make_shared<SFDNSRES>(system)->InstallAsService(service_manager);
+ server_manager->RegisterNamedService("bsd:s", std::make_shared<BSD>(system, "bsd:s"));
+ server_manager->RegisterNamedService("bsd:u", std::make_shared<BSD>(system, "bsd:u"));
+ server_manager->RegisterNamedService("bsdcfg", std::make_shared<BSDCFG>(system));
+ server_manager->RegisterNamedService("nsd:a", std::make_shared<NSD>(system, "nsd:a"));
+ server_manager->RegisterNamedService("nsd:u", std::make_shared<NSD>(system, "nsd:u"));
+ server_manager->RegisterNamedService("sfdnsres", std::make_shared<SFDNSRES>(system));
+ server_manager->StartAdditionalHostThreads("bsdsocket", 2);
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Sockets
diff --git a/src/core/hle/service/sockets/sockets.h b/src/core/hle/service/sockets/sockets.h
index 31b7dad33..acd2dae7b 100644
--- a/src/core/hle/service/sockets/sockets.h
+++ b/src/core/hle/service/sockets/sockets.h
@@ -10,10 +10,6 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::Sockets {
enum class Errno : u32 {
@@ -23,6 +19,7 @@ enum class Errno : u32 {
INVAL = 22,
MFILE = 24,
MSGSIZE = 90,
+ CONNRESET = 104,
NOTCONN = 107,
TIMEDOUT = 110,
};
@@ -98,7 +95,6 @@ struct Linger {
u32 linger;
};
-/// Registers all Sockets services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Sockets
diff --git a/src/core/hle/service/sockets/sockets_translate.cpp b/src/core/hle/service/sockets/sockets_translate.cpp
index 023aa0486..594e58f90 100644
--- a/src/core/hle/service/sockets/sockets_translate.cpp
+++ b/src/core/hle/service/sockets/sockets_translate.cpp
@@ -27,6 +27,8 @@ Errno Translate(Network::Errno value) {
return Errno::NOTCONN;
case Network::Errno::TIMEDOUT:
return Errno::TIMEDOUT;
+ case Network::Errno::CONNRESET:
+ return Errno::CONNRESET;
default:
UNIMPLEMENTED_MSG("Unimplemented errno={}", value);
return Errno::SUCCESS;
diff --git a/src/core/hle/service/spl/spl_module.cpp b/src/core/hle/service/spl/spl_module.cpp
index 64eae1ebf..0227d4393 100644
--- a/src/core/hle/service/spl/spl_module.cpp
+++ b/src/core/hle/service/spl/spl_module.cpp
@@ -8,7 +8,8 @@
#include "common/logging/log.h"
#include "common/settings.h"
#include "core/hle/api_version.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/spl/csrng.h"
#include "core/hle/service/spl/spl.h"
#include "core/hle/service/spl/spl_module.h"
@@ -22,7 +23,7 @@ Module::Interface::Interface(Core::System& system_, std::shared_ptr<Module> modu
Module::Interface::~Interface() = default;
-void Module::Interface::GetConfig(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetConfig(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto config_item = rp.PopEnum<ConfigItem>();
@@ -47,21 +48,21 @@ void Module::Interface::GetConfig(Kernel::HLERequestContext& ctx) {
rb.Push(*smc_result);
}
-void Module::Interface::ModularExponentiate(Kernel::HLERequestContext& ctx) {
+void Module::Interface::ModularExponentiate(HLERequestContext& ctx) {
UNIMPLEMENTED_MSG("ModularExponentiate is not implemented!");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSecureMonitorNotImplemented);
}
-void Module::Interface::SetConfig(Kernel::HLERequestContext& ctx) {
+void Module::Interface::SetConfig(HLERequestContext& ctx) {
UNIMPLEMENTED_MSG("SetConfig is not implemented!");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSecureMonitorNotImplemented);
}
-void Module::Interface::GenerateRandomBytes(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GenerateRandomBytes(HLERequestContext& ctx) {
LOG_DEBUG(Service_SPL, "called");
const std::size_t size = ctx.GetWriteBufferSize();
@@ -76,21 +77,21 @@ void Module::Interface::GenerateRandomBytes(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Module::Interface::IsDevelopment(Kernel::HLERequestContext& ctx) {
+void Module::Interface::IsDevelopment(HLERequestContext& ctx) {
UNIMPLEMENTED_MSG("IsDevelopment is not implemented!");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSecureMonitorNotImplemented);
}
-void Module::Interface::SetBootReason(Kernel::HLERequestContext& ctx) {
+void Module::Interface::SetBootReason(HLERequestContext& ctx) {
UNIMPLEMENTED_MSG("SetBootReason is not implemented!");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSecureMonitorNotImplemented);
}
-void Module::Interface::GetBootReason(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetBootReason(HLERequestContext& ctx) {
UNIMPLEMENTED_MSG("GetBootReason is not implemented!");
IPC::ResponseBuilder rb{ctx, 2};
@@ -158,15 +159,18 @@ ResultVal<u64> Module::Interface::GetConfigImpl(ConfigItem config_item) const {
}
}
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
auto module = std::make_shared<Module>();
- std::make_shared<CSRNG>(system, module)->InstallAsService(service_manager);
- std::make_shared<SPL>(system, module)->InstallAsService(service_manager);
- std::make_shared<SPL_MIG>(system, module)->InstallAsService(service_manager);
- std::make_shared<SPL_FS>(system, module)->InstallAsService(service_manager);
- std::make_shared<SPL_SSL>(system, module)->InstallAsService(service_manager);
- std::make_shared<SPL_ES>(system, module)->InstallAsService(service_manager);
- std::make_shared<SPL_MANU>(system, module)->InstallAsService(service_manager);
+
+ server_manager->RegisterNamedService("csrng", std::make_shared<CSRNG>(system, module));
+ server_manager->RegisterNamedService("spl", std::make_shared<SPL>(system, module));
+ server_manager->RegisterNamedService("spl:mig", std::make_shared<SPL_MIG>(system, module));
+ server_manager->RegisterNamedService("spl:fs", std::make_shared<SPL_FS>(system, module));
+ server_manager->RegisterNamedService("spl:ssl", std::make_shared<SPL_SSL>(system, module));
+ server_manager->RegisterNamedService("spl:es", std::make_shared<SPL_ES>(system, module));
+ server_manager->RegisterNamedService("spl:manu", std::make_shared<SPL_MANU>(system, module));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::SPL
diff --git a/src/core/hle/service/spl/spl_module.h b/src/core/hle/service/spl/spl_module.h
index 4c9a3c618..e074e115d 100644
--- a/src/core/hle/service/spl/spl_module.h
+++ b/src/core/hle/service/spl/spl_module.h
@@ -23,13 +23,13 @@ public:
~Interface() override;
// General
- void GetConfig(Kernel::HLERequestContext& ctx);
- void ModularExponentiate(Kernel::HLERequestContext& ctx);
- void SetConfig(Kernel::HLERequestContext& ctx);
- void GenerateRandomBytes(Kernel::HLERequestContext& ctx);
- void IsDevelopment(Kernel::HLERequestContext& ctx);
- void SetBootReason(Kernel::HLERequestContext& ctx);
- void GetBootReason(Kernel::HLERequestContext& ctx);
+ void GetConfig(HLERequestContext& ctx);
+ void ModularExponentiate(HLERequestContext& ctx);
+ void SetConfig(HLERequestContext& ctx);
+ void GenerateRandomBytes(HLERequestContext& ctx);
+ void IsDevelopment(HLERequestContext& ctx);
+ void SetBootReason(HLERequestContext& ctx);
+ void GetBootReason(HLERequestContext& ctx);
protected:
std::shared_ptr<Module> module;
@@ -41,7 +41,6 @@ public:
};
};
-/// Registers all SPL services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::SPL
diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp
index 3735e0452..2b99dd7ac 100644
--- a/src/core/hle/service/ssl/ssl.cpp
+++ b/src/core/hle/service/ssl/ssl.cpp
@@ -1,21 +1,43 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
#include "core/hle/service/ssl/ssl.h"
namespace Service::SSL {
+// This is nn::ssl::sf::CertificateFormat
enum class CertificateFormat : u32 {
Pem = 1,
Der = 2,
};
+// This is nn::ssl::sf::ContextOption
+enum class ContextOption : u32 {
+ None = 0,
+ CrlImportDateCheckEnable = 1,
+};
+
+// This is nn::ssl::sf::SslVersion
+struct SslVersion {
+ union {
+ u32 raw{};
+
+ BitField<0, 1, u32> tls_auto;
+ BitField<3, 1, u32> tls_v10;
+ BitField<4, 1, u32> tls_v11;
+ BitField<5, 1, u32> tls_v12;
+ BitField<6, 1, u32> tls_v13;
+ BitField<24, 7, u32> api_version;
+ };
+};
+
class ISslConnection final : public ServiceFramework<ISslConnection> {
public:
- explicit ISslConnection(Core::System& system_) : ServiceFramework{system_, "ISslConnection"} {
+ explicit ISslConnection(Core::System& system_, SslVersion version)
+ : ServiceFramework{system_, "ISslConnection"}, ssl_version{version} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "SetSocketDescriptor"},
@@ -46,16 +68,28 @@ public:
{25, nullptr, "GetCipherInfo"},
{26, nullptr, "SetNextAlpnProto"},
{27, nullptr, "GetNextAlpnProto"},
+ {28, nullptr, "SetDtlsSocketDescriptor"},
+ {29, nullptr, "GetDtlsHandshakeTimeout"},
+ {30, nullptr, "SetPrivateOption"},
+ {31, nullptr, "SetSrtpCiphers"},
+ {32, nullptr, "GetSrtpCipher"},
+ {33, nullptr, "ExportKeyingMaterial"},
+ {34, nullptr, "SetIoTimeout"},
+ {35, nullptr, "GetIoTimeout"},
};
// clang-format on
RegisterHandlers(functions);
}
+
+private:
+ SslVersion ssl_version;
};
class ISslContext final : public ServiceFramework<ISslContext> {
public:
- explicit ISslContext(Core::System& system_) : ServiceFramework{system_, "ISslContext"} {
+ explicit ISslContext(Core::System& system_, SslVersion version)
+ : ServiceFramework{system_, "ISslContext"}, ssl_version{version} {
static const FunctionInfo functions[] = {
{0, &ISslContext::SetOption, "SetOption"},
{1, nullptr, "GetOption"},
@@ -69,39 +103,44 @@ public:
{9, nullptr, "AddPolicyOid"},
{10, nullptr, "ImportCrl"},
{11, nullptr, "RemoveCrl"},
+ {12, nullptr, "ImportClientCertKeyPki"},
+ {13, nullptr, "GeneratePrivateKeyAndCert"},
};
RegisterHandlers(functions);
}
private:
- void SetOption(Kernel::HLERequestContext& ctx) {
+ SslVersion ssl_version;
+
+ void SetOption(HLERequestContext& ctx) {
struct Parameters {
- u8 enable;
- u32 option;
+ ContextOption option;
+ s32 value;
};
+ static_assert(sizeof(Parameters) == 0x8, "Parameters is an invalid size");
IPC::RequestParser rp{ctx};
const auto parameters = rp.PopRaw<Parameters>();
- LOG_WARNING(Service_SSL, "(STUBBED) called. enable={}, option={}", parameters.enable,
- parameters.option);
+ LOG_WARNING(Service_SSL, "(STUBBED) called. option={}, value={}", parameters.option,
+ parameters.value);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void CreateConnection(Kernel::HLERequestContext& ctx) {
+ void CreateConnection(HLERequestContext& ctx) {
LOG_WARNING(Service_SSL, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ISslConnection>(system);
+ rb.PushIpcInterface<ISslConnection>(system, ssl_version);
}
- void ImportServerPki(Kernel::HLERequestContext& ctx) {
+ void ImportServerPki(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto certificate_format = rp.PopEnum<CertificateFormat>();
- const auto pkcs_12_certificates = ctx.ReadBuffer(0);
+ [[maybe_unused]] const auto pkcs_12_certificates = ctx.ReadBuffer(0);
constexpr u64 server_id = 0;
@@ -112,14 +151,14 @@ private:
rb.Push(server_id);
}
- void ImportClientPki(Kernel::HLERequestContext& ctx) {
- const auto pkcs_12_certificate = ctx.ReadBuffer(0);
- const auto ascii_password = [&ctx] {
+ void ImportClientPki(HLERequestContext& ctx) {
+ [[maybe_unused]] const auto pkcs_12_certificate = ctx.ReadBuffer(0);
+ [[maybe_unused]] const auto ascii_password = [&ctx] {
if (ctx.CanReadBuffer(1)) {
return ctx.ReadBuffer(1);
}
- return std::vector<u8>{};
+ return std::span<const u8>{};
}();
constexpr u64 client_id = 0;
@@ -132,20 +171,21 @@ private:
}
};
-class SSL final : public ServiceFramework<SSL> {
+class ISslService final : public ServiceFramework<ISslService> {
public:
- explicit SSL(Core::System& system_) : ServiceFramework{system_, "ssl"} {
+ explicit ISslService(Core::System& system_) : ServiceFramework{system_, "ssl"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &SSL::CreateContext, "CreateContext"},
+ {0, &ISslService::CreateContext, "CreateContext"},
{1, nullptr, "GetContextCount"},
{2, nullptr, "GetCertificates"},
{3, nullptr, "GetCertificateBufSize"},
{4, nullptr, "DebugIoctl"},
- {5, &SSL::SetInterfaceVersion, "SetInterfaceVersion"},
+ {5, &ISslService::SetInterfaceVersion, "SetInterfaceVersion"},
{6, nullptr, "FlushSessionCache"},
{7, nullptr, "SetDebugOption"},
{8, nullptr, "GetDebugOption"},
+ {8, nullptr, "ClearTls12FallbackFlag"},
};
// clang-format on
@@ -153,28 +193,41 @@ public:
}
private:
- u32 ssl_version{};
- void CreateContext(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_SSL, "(STUBBED) called");
+ void CreateContext(HLERequestContext& ctx) {
+ struct Parameters {
+ SslVersion ssl_version;
+ INSERT_PADDING_BYTES(0x4);
+ u64 pid_placeholder;
+ };
+ static_assert(sizeof(Parameters) == 0x10, "Parameters is an invalid size");
+
+ IPC::RequestParser rp{ctx};
+ const auto parameters = rp.PopRaw<Parameters>();
+
+ LOG_WARNING(Service_SSL, "(STUBBED) called, api_version={}, pid_placeholder={}",
+ parameters.ssl_version.api_version, parameters.pid_placeholder);
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ISslContext>(system);
+ rb.PushIpcInterface<ISslContext>(system, parameters.ssl_version);
}
- void SetInterfaceVersion(Kernel::HLERequestContext& ctx) {
- LOG_DEBUG(Service_SSL, "called");
-
+ void SetInterfaceVersion(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
- ssl_version = rp.Pop<u32>();
+ u32 ssl_version = rp.Pop<u32>();
+
+ LOG_DEBUG(Service_SSL, "called, ssl_version={}", ssl_version);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
};
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
- std::make_shared<SSL>(system)->InstallAsService(service_manager);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("ssl", std::make_shared<ISslService>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::SSL
diff --git a/src/core/hle/service/ssl/ssl.h b/src/core/hle/service/ssl/ssl.h
index 27b38a003..f6e21bbb3 100644
--- a/src/core/hle/service/ssl/ssl.h
+++ b/src/core/hle/service/ssl/ssl.h
@@ -7,13 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::SSL {
-/// Registers all SSL services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::SSL
diff --git a/src/core/hle/service/time/clock_types.h b/src/core/hle/service/time/clock_types.h
index ed1eb5b2d..9fc01ea90 100644
--- a/src/core/hle/service/time/clock_types.h
+++ b/src/core/hle/service/time/clock_types.h
@@ -3,6 +3,8 @@
#pragma once
+#include <ratio>
+
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "common/uuid.h"
@@ -59,21 +61,34 @@ static_assert(sizeof(SystemClockContext) == 0x20, "SystemClockContext is incorre
static_assert(std::is_trivially_copyable_v<SystemClockContext>,
"SystemClockContext must be trivially copyable");
+struct ContinuousAdjustmentTimePoint {
+ s64 measurement_offset;
+ s64 diff_scale;
+ u32 shift_amount;
+ s64 lower;
+ s64 upper;
+ Common::UUID clock_source_id;
+};
+static_assert(sizeof(ContinuousAdjustmentTimePoint) == 0x38);
+static_assert(std::is_trivially_copyable_v<ContinuousAdjustmentTimePoint>,
+ "ContinuousAdjustmentTimePoint must be trivially copyable");
+
/// https://switchbrew.org/wiki/Glue_services#TimeSpanType
struct TimeSpanType {
s64 nanoseconds{};
- static constexpr s64 ns_per_second{1000000000ULL};
s64 ToSeconds() const {
- return nanoseconds / ns_per_second;
+ return nanoseconds / std::nano::den;
}
static TimeSpanType FromSeconds(s64 seconds) {
- return {seconds * ns_per_second};
+ return {seconds * std::nano::den};
}
- static TimeSpanType FromTicks(u64 ticks, u64 frequency) {
- return FromSeconds(static_cast<s64>(ticks) / static_cast<s64>(frequency));
+ template <u64 Frequency>
+ static TimeSpanType FromTicks(u64 ticks) {
+ using TicksToNSRatio = std::ratio<std::nano::den, Frequency>;
+ return {static_cast<s64>(ticks * TicksToNSRatio::num / TicksToNSRatio::den)};
}
};
static_assert(sizeof(TimeSpanType) == 8, "TimeSpanType is incorrect size");
diff --git a/src/core/hle/service/time/standard_steady_clock_core.cpp b/src/core/hle/service/time/standard_steady_clock_core.cpp
index 3dbbb9850..5627b7003 100644
--- a/src/core/hle/service/time/standard_steady_clock_core.cpp
+++ b/src/core/hle/service/time/standard_steady_clock_core.cpp
@@ -10,7 +10,7 @@ namespace Service::Time::Clock {
TimeSpanType StandardSteadyClockCore::GetCurrentRawTimePoint(Core::System& system) {
const TimeSpanType ticks_time_span{
- TimeSpanType::FromTicks(system.CoreTiming().GetClockTicks(), Core::Hardware::CNTFREQ)};
+ TimeSpanType::FromTicks<Core::Hardware::CNTFREQ>(system.CoreTiming().GetClockTicks())};
TimeSpanType raw_time_point{setup_value.nanoseconds + ticks_time_span.nanoseconds};
if (raw_time_point.nanoseconds < cached_raw_time_point.nanoseconds) {
diff --git a/src/core/hle/service/time/tick_based_steady_clock_core.cpp b/src/core/hle/service/time/tick_based_steady_clock_core.cpp
index 27600413e..0d9fb3143 100644
--- a/src/core/hle/service/time/tick_based_steady_clock_core.cpp
+++ b/src/core/hle/service/time/tick_based_steady_clock_core.cpp
@@ -10,7 +10,7 @@ namespace Service::Time::Clock {
SteadyClockTimePoint TickBasedSteadyClockCore::GetTimePoint(Core::System& system) {
const TimeSpanType ticks_time_span{
- TimeSpanType::FromTicks(system.CoreTiming().GetClockTicks(), Core::Hardware::CNTFREQ)};
+ TimeSpanType::FromTicks<Core::Hardware::CNTFREQ>(system.CoreTiming().GetClockTicks())};
return {ticks_time_span.ToSeconds(), GetClockSourceId()};
}
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index f77cdbb43..7197ca30f 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -5,8 +5,9 @@
#include "core/core.h"
#include "core/core_timing.h"
#include "core/hardware_properties.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/kernel.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/time/time.h"
#include "core/hle/service/time/time_interface.h"
#include "core/hle/service/time/time_manager.h"
@@ -33,7 +34,7 @@ public:
}
private:
- void GetCurrentTime(Kernel::HLERequestContext& ctx) {
+ void GetCurrentTime(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
if (!clock_core.IsInitialized()) {
@@ -54,7 +55,7 @@ private:
rb.Push<s64>(posix_time);
}
- void GetSystemClockContext(Kernel::HLERequestContext& ctx) {
+ void GetSystemClockContext(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
if (!clock_core.IsInitialized()) {
@@ -97,7 +98,7 @@ public:
}
private:
- void GetCurrentTimePoint(Kernel::HLERequestContext& ctx) {
+ void GetCurrentTimePoint(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
if (!clock_core.IsInitialized()) {
@@ -177,7 +178,7 @@ Result Module::Interface::GetClockSnapshotFromSystemClockContextInternal(
return ResultSuccess;
}
-void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetStandardUserSystemClock(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -185,7 +186,7 @@ void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ct
system);
}
-void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetStandardNetworkSystemClock(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -193,14 +194,14 @@ void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext&
system);
}
-void Module::Interface::GetStandardSteadyClock(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetStandardSteadyClock(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<ISteadyClock>(system.GetTimeManager().GetStandardSteadyClockCore(), system);
}
-void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetTimeZoneService(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -208,7 +209,7 @@ void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) {
system.GetTimeManager().GetTimeZoneContentManager());
}
-void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetStandardLocalSystemClock(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
@@ -216,8 +217,7 @@ void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& c
system);
}
-void Module::Interface::IsStandardNetworkSystemClockAccuracySufficient(
- Kernel::HLERequestContext& ctx) {
+void Module::Interface::IsStandardNetworkSystemClockAccuracySufficient(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
auto& clock_core{system.GetTimeManager().GetStandardNetworkSystemClockCore()};
IPC::ResponseBuilder rb{ctx, 3};
@@ -225,7 +225,7 @@ void Module::Interface::IsStandardNetworkSystemClockAccuracySufficient(
rb.Push<u32>(clock_core.IsStandardNetworkSystemClockAccuracySufficient(system));
}
-void Module::Interface::CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CalculateMonotonicSystemClockBaseTimePoint(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
auto& steady_clock_core{system.GetTimeManager().GetStandardSteadyClockCore()};
@@ -240,8 +240,8 @@ void Module::Interface::CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERe
const auto current_time_point{steady_clock_core.GetCurrentTimePoint(system)};
if (current_time_point.clock_source_id == context.steady_time_point.clock_source_id) {
- const auto ticks{Clock::TimeSpanType::FromTicks(system.CoreTiming().GetClockTicks(),
- Core::Hardware::CNTFREQ)};
+ const auto ticks{Clock::TimeSpanType::FromTicks<Core::Hardware::CNTFREQ>(
+ system.CoreTiming().GetClockTicks())};
const s64 base_time_point{context.offset + current_time_point.time_point -
ticks.ToSeconds()};
IPC::ResponseBuilder rb{ctx, (sizeof(s64) / 4) + 2};
@@ -254,7 +254,7 @@ void Module::Interface::CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERe
rb.Push(ERROR_TIME_MISMATCH);
}
-void Module::Interface::GetClockSnapshot(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetClockSnapshot(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto type{rp.PopEnum<Clock::TimeType>()};
@@ -295,7 +295,7 @@ void Module::Interface::GetClockSnapshot(Kernel::HLERequestContext& ctx) {
rb.Push(ResultSuccess);
}
-void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetClockSnapshotFromSystemClockContext(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto type{rp.PopEnum<Clock::TimeType>()};
@@ -321,8 +321,7 @@ void Module::Interface::GetClockSnapshotFromSystemClockContext(Kernel::HLEReques
rb.Push(ResultSuccess);
}
-void Module::Interface::CalculateStandardUserSystemClockDifferenceByUser(
- Kernel::HLERequestContext& ctx) {
+void Module::Interface::CalculateStandardUserSystemClockDifferenceByUser(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
Clock::ClockSnapshot snapshot_a;
@@ -349,7 +348,7 @@ void Module::Interface::CalculateStandardUserSystemClockDifferenceByUser(
rb.PushRaw(time_span_type.nanoseconds);
}
-void Module::Interface::CalculateSpanBetween(Kernel::HLERequestContext& ctx) {
+void Module::Interface::CalculateSpanBetween(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
Clock::ClockSnapshot snapshot_a;
@@ -384,7 +383,7 @@ void Module::Interface::CalculateSpanBetween(Kernel::HLERequestContext& ctx) {
rb.PushRaw(time_span_type.nanoseconds);
}
-void Module::Interface::GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx) {
+void Module::Interface::GetSharedMemoryNativeHandle(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::ResponseBuilder rb{ctx, 2, 1};
rb.Push(ResultSuccess);
@@ -397,11 +396,17 @@ Module::Interface::Interface(std::shared_ptr<Module> module_, Core::System& syst
Module::Interface::~Interface() = default;
-void InstallInterfaces(Core::System& system) {
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
auto module{std::make_shared<Module>()};
- std::make_shared<Time>(module, system, "time:a")->InstallAsService(system.ServiceManager());
- std::make_shared<Time>(module, system, "time:s")->InstallAsService(system.ServiceManager());
- std::make_shared<Time>(module, system, "time:u")->InstallAsService(system.ServiceManager());
+
+ server_manager->RegisterNamedService("time:a",
+ std::make_shared<Time>(module, system, "time:a"));
+ server_manager->RegisterNamedService("time:s",
+ std::make_shared<Time>(module, system, "time:s"));
+ server_manager->RegisterNamedService("time:u",
+ std::make_shared<Time>(module, system, "time:u"));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::Time
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h
index 76a46cfc7..b2d754ef3 100644
--- a/src/core/hle/service/time/time.h
+++ b/src/core/hle/service/time/time.h
@@ -22,18 +22,18 @@ public:
const char* name);
~Interface() override;
- void GetStandardUserSystemClock(Kernel::HLERequestContext& ctx);
- void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx);
- void GetStandardSteadyClock(Kernel::HLERequestContext& ctx);
- void GetTimeZoneService(Kernel::HLERequestContext& ctx);
- void GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx);
- void IsStandardNetworkSystemClockAccuracySufficient(Kernel::HLERequestContext& ctx);
- void CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERequestContext& ctx);
- void GetClockSnapshot(Kernel::HLERequestContext& ctx);
- void GetClockSnapshotFromSystemClockContext(Kernel::HLERequestContext& ctx);
- void CalculateStandardUserSystemClockDifferenceByUser(Kernel::HLERequestContext& ctx);
- void CalculateSpanBetween(Kernel::HLERequestContext& ctx);
- void GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx);
+ void GetStandardUserSystemClock(HLERequestContext& ctx);
+ void GetStandardNetworkSystemClock(HLERequestContext& ctx);
+ void GetStandardSteadyClock(HLERequestContext& ctx);
+ void GetTimeZoneService(HLERequestContext& ctx);
+ void GetStandardLocalSystemClock(HLERequestContext& ctx);
+ void IsStandardNetworkSystemClockAccuracySufficient(HLERequestContext& ctx);
+ void CalculateMonotonicSystemClockBaseTimePoint(HLERequestContext& ctx);
+ void GetClockSnapshot(HLERequestContext& ctx);
+ void GetClockSnapshotFromSystemClockContext(HLERequestContext& ctx);
+ void CalculateStandardUserSystemClockDifferenceByUser(HLERequestContext& ctx);
+ void CalculateSpanBetween(HLERequestContext& ctx);
+ void GetSharedMemoryNativeHandle(HLERequestContext& ctx);
private:
Result GetClockSnapshotFromSystemClockContextInternal(
@@ -46,7 +46,6 @@ public:
};
};
-/// Registers all Time services with the specified service manager.
-void InstallInterfaces(Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::Time
diff --git a/src/core/hle/service/time/time_manager.cpp b/src/core/hle/service/time/time_manager.cpp
index 28667710e..fa0fd0531 100644
--- a/src/core/hle/service/time/time_manager.cpp
+++ b/src/core/hle/service/time/time_manager.cpp
@@ -22,10 +22,6 @@ s64 GetSecondsSinceEpoch() {
return std::chrono::duration_cast<std::chrono::seconds>(time_since_epoch).count() +
Settings::values.custom_rtc_differential;
}
-
-s64 GetExternalRtcValue() {
- return GetSecondsSinceEpoch() + TimeManager::GetExternalTimeZoneOffset();
-}
} // Anonymous namespace
struct TimeManager::Impl final {
@@ -43,7 +39,7 @@ struct TimeManager::Impl final {
std::make_shared<Clock::EphemeralNetworkSystemClockContextWriter>()},
time_zone_content_manager{system} {
- const auto system_time{Clock::TimeSpanType::FromSeconds(GetExternalRtcValue())};
+ const auto system_time{Clock::TimeSpanType::FromSeconds(GetSecondsSinceEpoch())};
SetupStandardSteadyClock(system, Common::UUID::MakeRandom(), system_time, {}, {});
SetupStandardLocalSystemClock(system, {}, system_time.ToSeconds());
@@ -107,7 +103,7 @@ struct TimeManager::Impl final {
void SetupTimeZoneManager(std::string location_name,
Clock::SteadyClockTimePoint time_zone_updated_time_point,
- std::size_t total_location_name_count, u128 time_zone_rule_version,
+ std::vector<std::string> location_names, u128 time_zone_rule_version,
FileSys::VirtualFile& vfs_file) {
if (time_zone_content_manager.GetTimeZoneManager().SetDeviceLocationNameWithTimeZoneRule(
location_name, vfs_file) != ResultSuccess) {
@@ -117,20 +113,13 @@ struct TimeManager::Impl final {
time_zone_content_manager.GetTimeZoneManager().SetUpdatedTime(time_zone_updated_time_point);
time_zone_content_manager.GetTimeZoneManager().SetTotalLocationNameCount(
- total_location_name_count);
+ location_names.size());
+ time_zone_content_manager.GetTimeZoneManager().SetLocationNames(location_names);
time_zone_content_manager.GetTimeZoneManager().SetTimeZoneRuleVersion(
time_zone_rule_version);
time_zone_content_manager.GetTimeZoneManager().MarkAsInitialized();
}
- static s64 GetExternalTimeZoneOffset() {
- // With "auto" timezone setting, we use the external system's timezone offset
- if (Settings::GetTimeZoneString() == "auto") {
- return Common::TimeZone::GetCurrentOffsetSeconds().count();
- }
- return 0;
- }
-
void SetupStandardSteadyClock(Core::System& system_, Common::UUID clock_source_id,
Clock::TimeSpanType setup_value,
Clock::TimeSpanType internal_offset, bool is_rtc_reset_detected) {
@@ -295,19 +284,10 @@ void TimeManager::UpdateLocalSystemClockTime(s64 posix_time) {
void TimeManager::SetupTimeZoneManager(std::string location_name,
Clock::SteadyClockTimePoint time_zone_updated_time_point,
- std::size_t total_location_name_count,
+ std::vector<std::string> location_names,
u128 time_zone_rule_version,
FileSys::VirtualFile& vfs_file) {
- impl->SetupTimeZoneManager(location_name, time_zone_updated_time_point,
- total_location_name_count, time_zone_rule_version, vfs_file);
+ impl->SetupTimeZoneManager(location_name, time_zone_updated_time_point, location_names,
+ time_zone_rule_version, vfs_file);
}
-
-/*static*/ s64 TimeManager::GetExternalTimeZoneOffset() {
- // With "auto" timezone setting, we use the external system's timezone offset
- if (Settings::GetTimeZoneString() == "auto") {
- return Common::TimeZone::GetCurrentOffsetSeconds().count();
- }
- return 0;
-}
-
} // namespace Service::Time
diff --git a/src/core/hle/service/time/time_manager.h b/src/core/hle/service/time/time_manager.h
index 4f046f266..84572dbfa 100644
--- a/src/core/hle/service/time/time_manager.h
+++ b/src/core/hle/service/time/time_manager.h
@@ -61,11 +61,9 @@ public:
void SetupTimeZoneManager(std::string location_name,
Clock::SteadyClockTimePoint time_zone_updated_time_point,
- std::size_t total_location_name_count, u128 time_zone_rule_version,
+ std::vector<std::string> location_names, u128 time_zone_rule_version,
FileSys::VirtualFile& vfs_file);
- static s64 GetExternalTimeZoneOffset();
-
private:
Core::System& system;
diff --git a/src/core/hle/service/time/time_sharedmemory.cpp b/src/core/hle/service/time/time_sharedmemory.cpp
index ff53a7d6f..a00676669 100644
--- a/src/core/hle/service/time/time_sharedmemory.cpp
+++ b/src/core/hle/service/time/time_sharedmemory.cpp
@@ -21,8 +21,9 @@ SharedMemory::~SharedMemory() = default;
void SharedMemory::SetupStandardSteadyClock(const Common::UUID& clock_source_id,
Clock::TimeSpanType current_time_point) {
- const Clock::TimeSpanType ticks_time_span{Clock::TimeSpanType::FromTicks(
- system.CoreTiming().GetClockTicks(), Core::Hardware::CNTFREQ)};
+ const Clock::TimeSpanType ticks_time_span{
+ Clock::TimeSpanType::FromTicks<Core::Hardware::CNTFREQ>(
+ system.CoreTiming().GetClockTicks())};
const Clock::SteadyClockContext context{
static_cast<u64>(current_time_point.nanoseconds - ticks_time_span.nanoseconds),
clock_source_id};
@@ -30,6 +31,25 @@ void SharedMemory::SetupStandardSteadyClock(const Common::UUID& clock_source_id,
}
void SharedMemory::UpdateLocalSystemClockContext(const Clock::SystemClockContext& context) {
+ // lower and upper are related to the measurement point for the steady time point,
+ // and compare equal on boot
+ const s64 time_point_ns = context.steady_time_point.time_point * 1'000'000'000LL;
+
+ // This adjusts for some sort of time skew
+ // Both 0 on boot
+ const s64 diff_scale = 0;
+ const u32 shift_amount = 0;
+
+ const Clock::ContinuousAdjustmentTimePoint adjustment{
+ .measurement_offset = system.CoreTiming().GetGlobalTimeNs().count(),
+ .diff_scale = diff_scale,
+ .shift_amount = shift_amount,
+ .lower = time_point_ns,
+ .upper = time_point_ns,
+ .clock_source_id = context.steady_time_point.clock_source_id,
+ };
+
+ StoreToLockFreeAtomicType(&GetFormat()->continuous_adjustment_timepoint, adjustment);
StoreToLockFreeAtomicType(&GetFormat()->standard_local_system_clock_context, context);
}
diff --git a/src/core/hle/service/time/time_sharedmemory.h b/src/core/hle/service/time/time_sharedmemory.h
index 044a4d24e..c89be9765 100644
--- a/src/core/hle/service/time/time_sharedmemory.h
+++ b/src/core/hle/service/time/time_sharedmemory.h
@@ -65,14 +65,15 @@ public:
LockFreeAtomicType<Clock::SystemClockContext> standard_local_system_clock_context;
LockFreeAtomicType<Clock::SystemClockContext> standard_network_system_clock_context;
LockFreeAtomicType<bool> is_standard_user_system_clock_automatic_correction_enabled;
- u32 format_version;
+ LockFreeAtomicType<Clock::ContinuousAdjustmentTimePoint> continuous_adjustment_timepoint;
};
static_assert(offsetof(Format, standard_steady_clock_timepoint) == 0x0);
static_assert(offsetof(Format, standard_local_system_clock_context) == 0x38);
static_assert(offsetof(Format, standard_network_system_clock_context) == 0x80);
static_assert(offsetof(Format, is_standard_user_system_clock_automatic_correction_enabled) ==
0xc8);
- static_assert(sizeof(Format) == 0xd8, "Format is an invalid size");
+ static_assert(offsetof(Format, continuous_adjustment_timepoint) == 0xd0);
+ static_assert(sizeof(Format) == 0x148, "Format is an invalid size");
void SetupStandardSteadyClock(const Common::UUID& clock_source_id,
Clock::TimeSpanType current_time_point);
diff --git a/src/core/hle/service/time/time_zone_content_manager.cpp b/src/core/hle/service/time/time_zone_content_manager.cpp
index afbfe9715..5d60be67a 100644
--- a/src/core/hle/service/time/time_zone_content_manager.cpp
+++ b/src/core/hle/service/time/time_zone_content_manager.cpp
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <chrono>
#include <sstream>
#include "common/logging/log.h"
@@ -12,7 +13,11 @@
#include "core/file_sys/registered_cache.h"
#include "core/file_sys/romfs.h"
#include "core/file_sys/system_archive/system_archive.h"
+#include "core/file_sys/vfs.h"
+#include "core/file_sys/vfs_types.h"
+#include "core/hle/result.h"
#include "core/hle/service/filesystem/filesystem.h"
+#include "core/hle/service/time/errors.h"
#include "core/hle/service/time/time_manager.h"
#include "core/hle/service/time/time_zone_content_manager.h"
@@ -71,19 +76,13 @@ TimeZoneContentManager::TimeZoneContentManager(Core::System& system_)
: system{system_}, location_name_cache{BuildLocationNameCache(system)} {}
void TimeZoneContentManager::Initialize(TimeManager& time_manager) {
- std::string location_name;
const auto timezone_setting = Settings::GetTimeZoneString();
- if (timezone_setting == "auto" || timezone_setting == "default") {
- location_name = Common::TimeZone::GetDefaultTimeZone();
- } else {
- location_name = timezone_setting;
- }
if (FileSys::VirtualFile vfs_file;
- GetTimeZoneInfoFile(location_name, vfs_file) == ResultSuccess) {
+ GetTimeZoneInfoFile(timezone_setting, vfs_file) == ResultSuccess) {
const auto time_point{
time_manager.GetStandardSteadyClockCore().GetCurrentTimePoint(system)};
- time_manager.SetupTimeZoneManager(location_name, time_point, location_name_cache.size(), {},
+ time_manager.SetupTimeZoneManager(timezone_setting, time_point, location_name_cache, {},
vfs_file);
} else {
time_zone_manager.MarkAsInitialized();
@@ -126,8 +125,15 @@ Result TimeZoneContentManager::GetTimeZoneInfoFile(const std::string& location_n
vfs_file = zoneinfo_dir->GetFileRelative(location_name);
if (!vfs_file) {
- LOG_ERROR(Service_Time, "{:016X} has no file \"{}\"! Using default timezone.",
- time_zone_binary_titleid, location_name);
+ LOG_WARNING(Service_Time, "{:016X} has no file \"{}\"! Using system timezone.",
+ time_zone_binary_titleid, location_name);
+ const std::string system_time_zone{Common::TimeZone::FindSystemTimeZone()};
+ vfs_file = zoneinfo_dir->GetFile(system_time_zone);
+ }
+
+ if (!vfs_file) {
+ LOG_WARNING(Service_Time, "{:016X} has no file \"{}\"! Using default timezone.",
+ time_zone_binary_titleid, location_name);
vfs_file = zoneinfo_dir->GetFile(Common::TimeZone::GetDefaultTimeZone());
}
diff --git a/src/core/hle/service/time/time_zone_manager.cpp b/src/core/hle/service/time/time_zone_manager.cpp
index f9ada7c93..205371a26 100644
--- a/src/core/hle/service/time/time_zone_manager.cpp
+++ b/src/core/hle/service/time/time_zone_manager.cpp
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <climits>
+#include <limits>
#include "common/assert.h"
#include "common/logging/log.h"
@@ -9,6 +10,7 @@
#include "core/file_sys/nca_metadata.h"
#include "core/file_sys/registered_cache.h"
#include "core/hle/service/time/time_zone_manager.h"
+#include "core/hle/service/time/time_zone_types.h"
namespace Service::Time::TimeZone {
@@ -128,10 +130,10 @@ static constexpr int GetQZName(const char* name, int offset, char delimiter) {
}
static constexpr int GetTZName(const char* name, int offset) {
- for (char value{name[offset]};
- value != '\0' && !IsDigit(value) && value != ',' && value != '-' && value != '+';
- offset++) {
- value = name[offset];
+ char c;
+
+ while ((c = name[offset]) != '\0' && !IsDigit(c) && c != ',' && c != '-' && c != '+') {
+ ++offset;
}
return offset;
}
@@ -147,6 +149,7 @@ static constexpr bool GetInteger(const char* name, int& offset, int& value, int
if (value > max) {
return {};
}
+ offset++;
temp = name[offset];
} while (IsDigit(temp));
@@ -286,7 +289,7 @@ static constexpr int TransitionTime(int year, Rule rule, int offset) {
}
static bool ParsePosixName(const char* name, TimeZoneRule& rule) {
- constexpr char default_rule[]{",M4.1.0,M10.5.0"};
+ static constexpr char default_rule[]{",M4.1.0,M10.5.0"};
const char* std_name{name};
int std_len{};
int offset{};
@@ -471,6 +474,13 @@ static bool ParsePosixName(const char* name, TimeZoneRule& rule) {
their_std_offset = their_offset;
}
}
+
+ if (rule.time_count > 0) {
+ UNIMPLEMENTED();
+ // TODO (lat9nq): Implement eggert/tz/localtime.c:tzparse:1329
+ // Seems to be unused in yuzu for now: I never hit the UNIMPLEMENTED in testing
+ }
+
rule.ttis[0].gmt_offset = -std_offset;
rule.ttis[0].is_dst = false;
rule.ttis[0].abbreviation_list_index = 0;
@@ -514,6 +524,7 @@ static bool ParseTimeZoneBinary(TimeZoneRule& time_zone_rule, FileSys::VirtualFi
constexpr s32 time_zone_max_leaps{50};
constexpr s32 time_zone_max_chars{50};
+ constexpr s32 time_zone_max_times{1000};
if (!(0 <= header.leap_count && header.leap_count < time_zone_max_leaps &&
0 < header.type_count && header.type_count < s32(time_zone_rule.ttis.size()) &&
0 <= header.time_count && header.time_count < s32(time_zone_rule.ats.size()) &&
@@ -546,7 +557,7 @@ static bool ParseTimeZoneBinary(TimeZoneRule& time_zone_rule, FileSys::VirtualFi
for (int index{}; index < time_zone_rule.time_count; ++index) {
const u8 type{*vfs_file->ReadByte(read_offset)};
read_offset += sizeof(u8);
- if (time_zone_rule.time_count <= type) {
+ if (time_zone_rule.type_count <= type) {
return {};
}
if (time_zone_rule.types[index] != 0) {
@@ -624,16 +635,109 @@ static bool ParseTimeZoneBinary(TimeZoneRule& time_zone_rule, FileSys::VirtualFi
std::array<char, time_zone_name_max> name{};
std::memcpy(name.data(), temp_name.data() + 1, std::size_t(bytes_read - 1));
+ // Fill in computed transition times with temp rule
TimeZoneRule temp_rule;
if (ParsePosixName(name.data(), temp_rule)) {
- UNIMPLEMENTED();
+ int have_abbreviation = 0;
+ int char_count = time_zone_rule.char_count;
+
+ for (int i = 0; i < temp_rule.type_count; i++) {
+ char* temp_abbreviation =
+ temp_rule.chars.data() + temp_rule.ttis[i].abbreviation_list_index;
+ int j;
+ for (j = 0; j < char_count; j++) {
+ if (std::strcmp(time_zone_rule.chars.data() + j, temp_abbreviation) == 0) {
+ temp_rule.ttis[i].abbreviation_list_index = j;
+ have_abbreviation++;
+ break;
+ }
+ }
+ if (j >= char_count) {
+ int temp_abbreviation_length = static_cast<int>(std::strlen(temp_abbreviation));
+ if (j + temp_abbreviation_length < time_zone_max_chars) {
+ std::strcpy(time_zone_rule.chars.data() + j, temp_abbreviation);
+ char_count = j + temp_abbreviation_length + 1;
+ temp_rule.ttis[i].abbreviation_list_index = j;
+ have_abbreviation++;
+ }
+ }
+ }
+
+ if (have_abbreviation == temp_rule.type_count) {
+ time_zone_rule.char_count = char_count;
+
+ // Original comment:
+ /* Ignore any trailing, no-op transitions generated
+ by zic as they don't help here and can run afoul
+ of bugs in zic 2016j or earlier. */
+ // This is possibly unnecessary for yuzu, since Nintendo doesn't run zic
+ while (1 < time_zone_rule.time_count &&
+ (time_zone_rule.types[time_zone_rule.time_count - 1] ==
+ time_zone_rule.types[time_zone_rule.time_count - 2])) {
+ time_zone_rule.time_count--;
+ }
+
+ for (int i = 0;
+ i < temp_rule.time_count && time_zone_rule.time_count < time_zone_max_times;
+ i++) {
+ const s64 transition_time = temp_rule.ats[i];
+ if (0 < time_zone_rule.time_count &&
+ transition_time <= time_zone_rule.ats[time_zone_rule.time_count - 1]) {
+ continue;
+ }
+
+ time_zone_rule.ats[time_zone_rule.time_count] = transition_time;
+ time_zone_rule.types[time_zone_rule.time_count] =
+ static_cast<s8>(time_zone_rule.type_count + temp_rule.types[i]);
+ time_zone_rule.time_count++;
+ }
+ for (int i = 0; i < temp_rule.type_count; i++) {
+ time_zone_rule.ttis[time_zone_rule.type_count++] = temp_rule.ttis[i];
+ }
+ }
}
}
+
+ const auto typesequiv = [](TimeZoneRule& rule, int a, int b) -> bool {
+ if (a < 0 || a >= rule.type_count || b < 0 || b >= rule.type_count) {
+ return {};
+ }
+
+ const struct TimeTypeInfo* ap = &rule.ttis[a];
+ const struct TimeTypeInfo* bp = &rule.ttis[b];
+
+ return (ap->gmt_offset == bp->gmt_offset && ap->is_dst == bp->is_dst &&
+ (std::strcmp(&rule.chars[ap->abbreviation_list_index],
+ &rule.chars[bp->abbreviation_list_index]) == 0));
+ };
+
if (time_zone_rule.type_count == 0) {
return {};
}
if (time_zone_rule.time_count > 1) {
- UNIMPLEMENTED();
+ if (time_zone_rule.ats[0] <= std::numeric_limits<s64>::max() - seconds_per_repeat) {
+ s64 repeatat = time_zone_rule.ats[0] + seconds_per_repeat;
+ int repeatattype = time_zone_rule.types[0];
+ for (int i = 1; i < time_zone_rule.time_count; ++i) {
+ if (time_zone_rule.ats[i] == repeatat &&
+ typesequiv(time_zone_rule, time_zone_rule.types[i], repeatattype)) {
+ time_zone_rule.go_back = true;
+ break;
+ }
+ }
+ }
+ if (std::numeric_limits<s64>::min() + seconds_per_repeat <=
+ time_zone_rule.ats[time_zone_rule.time_count - 1]) {
+ s64 repeatat = time_zone_rule.ats[time_zone_rule.time_count - 1] - seconds_per_repeat;
+ int repeatattype = time_zone_rule.types[time_zone_rule.time_count - 1];
+ for (int i = time_zone_rule.time_count; i >= 0; --i) {
+ if (time_zone_rule.ats[i] == repeatat &&
+ typesequiv(time_zone_rule, time_zone_rule.types[i], repeatattype)) {
+ time_zone_rule.go_ahead = true;
+ break;
+ }
+ }
+ }
}
s32 default_type{};
@@ -745,8 +849,9 @@ static Result CreateCalendarTime(s64 time, int gmt_offset, CalendarTimeInternal&
static Result ToCalendarTimeInternal(const TimeZoneRule& rules, s64 time,
CalendarTimeInternal& calendar_time,
CalendarAdditionalInfo& calendar_additional_info) {
- if ((rules.go_ahead && time < rules.ats[0]) ||
- (rules.go_back && time > rules.ats[rules.time_count - 1])) {
+ ASSERT(rules.go_ahead ? rules.time_count > 0 : true);
+ if ((rules.go_back && time < rules.ats[0]) ||
+ (rules.go_ahead && time > rules.ats[rules.time_count - 1])) {
s64 seconds{};
if (time < rules.ats[0]) {
seconds = rules.ats[0] - time;
@@ -806,9 +911,13 @@ static Result ToCalendarTimeInternal(const TimeZoneRule& rules, s64 time,
calendar_additional_info.is_dst = rules.ttis[tti_index].is_dst;
const char* time_zone{&rules.chars[rules.ttis[tti_index].abbreviation_list_index]};
- for (int index{}; time_zone[index] != '\0'; ++index) {
+ u32 index;
+ for (index = 0; time_zone[index] != '\0' && time_zone[index] != ',' &&
+ index < calendar_additional_info.timezone_name.size() - 1;
+ ++index) {
calendar_additional_info.timezone_name[index] = time_zone[index];
}
+ calendar_additional_info.timezone_name[index] = '\0';
return ResultSuccess;
}
@@ -1038,4 +1147,36 @@ Result TimeZoneManager::GetDeviceLocationName(LocationName& value) const {
return ResultSuccess;
}
+Result TimeZoneManager::GetTotalLocationNameCount(s32& count) const {
+ if (!is_initialized) {
+ return ERROR_UNINITIALIZED_CLOCK;
+ }
+ count = static_cast<u32>(total_location_name_count);
+
+ return ResultSuccess;
+}
+
+Result TimeZoneManager::GetTimeZoneRuleVersion(u128& version) const {
+ if (!is_initialized) {
+ return ERROR_UNINITIALIZED_CLOCK;
+ }
+ version = time_zone_rule_version;
+
+ return ResultSuccess;
+}
+
+Result TimeZoneManager::LoadLocationNameList(std::vector<LocationName>& values) const {
+ if (!is_initialized) {
+ return ERROR_UNINITIALIZED_CLOCK;
+ }
+
+ for (const auto& name : total_location_names) {
+ LocationName entry{};
+ std::memcpy(entry.data(), name.c_str(), name.size());
+ values.push_back(entry);
+ }
+
+ return ResultSuccess;
+}
+
} // namespace Service::Time::TimeZone
diff --git a/src/core/hle/service/time/time_zone_manager.h b/src/core/hle/service/time/time_zone_manager.h
index 5ebd4035e..8664f28d1 100644
--- a/src/core/hle/service/time/time_zone_manager.h
+++ b/src/core/hle/service/time/time_zone_manager.h
@@ -21,6 +21,10 @@ public:
total_location_name_count = value;
}
+ void SetLocationNames(std::vector<std::string> location_names) {
+ total_location_names = location_names;
+ }
+
void SetTimeZoneRuleVersion(const u128& value) {
time_zone_rule_version = value;
}
@@ -33,6 +37,9 @@ public:
FileSys::VirtualFile& vfs_file);
Result SetUpdatedTime(const Clock::SteadyClockTimePoint& value);
Result GetDeviceLocationName(TimeZone::LocationName& value) const;
+ Result GetTotalLocationNameCount(s32& count) const;
+ Result GetTimeZoneRuleVersion(u128& version) const;
+ Result LoadLocationNameList(std::vector<TimeZone::LocationName>& values) const;
Result ToCalendarTime(const TimeZoneRule& rules, s64 time, CalendarInfo& calendar) const;
Result ToCalendarTimeWithMyRules(s64 time, CalendarInfo& calendar) const;
Result ParseTimeZoneRuleBinary(TimeZoneRule& rules, FileSys::VirtualFile& vfs_file) const;
@@ -46,6 +53,7 @@ private:
std::string device_location_name{"GMT"};
u128 time_zone_rule_version{};
std::size_t total_location_name_count{};
+ std::vector<std::string> total_location_names{};
Clock::SteadyClockTimePoint time_zone_update_time_point{
Clock::SteadyClockTimePoint::GetRandom()};
};
diff --git a/src/core/hle/service/time/time_zone_service.cpp b/src/core/hle/service/time/time_zone_service.cpp
index 961040bfc..8171c82a5 100644
--- a/src/core/hle/service/time/time_zone_service.cpp
+++ b/src/core/hle/service/time/time_zone_service.cpp
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/time/time_zone_content_manager.h"
#include "core/hle/service/time/time_zone_service.h"
#include "core/hle/service/time/time_zone_types.h"
@@ -15,10 +15,10 @@ ITimeZoneService::ITimeZoneService(Core::System& system_,
static const FunctionInfo functions[] = {
{0, &ITimeZoneService::GetDeviceLocationName, "GetDeviceLocationName"},
{1, nullptr, "SetDeviceLocationName"},
- {2, nullptr, "GetTotalLocationNameCount"},
- {3, nullptr, "LoadLocationNameList"},
+ {2, &ITimeZoneService::GetTotalLocationNameCount, "GetTotalLocationNameCount"},
+ {3, &ITimeZoneService::LoadLocationNameList, "LoadLocationNameList"},
{4, &ITimeZoneService::LoadTimeZoneRule, "LoadTimeZoneRule"},
- {5, nullptr, "GetTimeZoneRuleVersion"},
+ {5, &ITimeZoneService::GetTimeZoneRuleVersion, "GetTimeZoneRuleVersion"},
{6, nullptr, "GetDeviceLocationNameAndUpdatedTime"},
{100, &ITimeZoneService::ToCalendarTime, "ToCalendarTime"},
{101, &ITimeZoneService::ToCalendarTimeWithMyRule, "ToCalendarTimeWithMyRule"},
@@ -28,7 +28,7 @@ ITimeZoneService::ITimeZoneService(Core::System& system_,
RegisterHandlers(functions);
}
-void ITimeZoneService::GetDeviceLocationName(Kernel::HLERequestContext& ctx) {
+void ITimeZoneService::GetDeviceLocationName(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
TimeZone::LocationName location_name{};
@@ -45,7 +45,58 @@ void ITimeZoneService::GetDeviceLocationName(Kernel::HLERequestContext& ctx) {
rb.PushRaw(location_name);
}
-void ITimeZoneService::LoadTimeZoneRule(Kernel::HLERequestContext& ctx) {
+void ITimeZoneService::GetTotalLocationNameCount(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_Time, "called");
+
+ s32 count{};
+ if (const Result result{
+ time_zone_content_manager.GetTimeZoneManager().GetTotalLocationNameCount(count)};
+ result != ResultSuccess) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.Push(count);
+}
+
+void ITimeZoneService::LoadLocationNameList(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_Time, "called");
+
+ std::vector<TimeZone::LocationName> location_names{};
+ if (const Result result{
+ time_zone_content_manager.GetTimeZoneManager().LoadLocationNameList(location_names)};
+ result != ResultSuccess) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ ctx.WriteBuffer(location_names);
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(ResultSuccess);
+ rb.Push(static_cast<s32>(location_names.size()));
+}
+void ITimeZoneService::GetTimeZoneRuleVersion(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_Time, "called");
+
+ u128 rule_version{};
+ if (const Result result{
+ time_zone_content_manager.GetTimeZoneManager().GetTimeZoneRuleVersion(rule_version)};
+ result != ResultSuccess) {
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(result);
+ return;
+ }
+
+ IPC::ResponseBuilder rb{ctx, 6};
+ rb.Push(ResultSuccess);
+ rb.PushRaw(rule_version);
+}
+
+void ITimeZoneService::LoadTimeZoneRule(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto raw_location_name{rp.PopRaw<std::array<u8, 0x24>>()};
@@ -61,23 +112,17 @@ void ITimeZoneService::LoadTimeZoneRule(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called, location_name={}", location_name);
TimeZone::TimeZoneRule time_zone_rule{};
- if (const Result result{
- time_zone_content_manager.LoadTimeZoneRule(time_zone_rule, location_name)};
- result != ResultSuccess) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
- return;
- }
+ const Result result{time_zone_content_manager.LoadTimeZoneRule(time_zone_rule, location_name)};
std::vector<u8> time_zone_rule_outbuffer(sizeof(TimeZone::TimeZoneRule));
std::memcpy(time_zone_rule_outbuffer.data(), &time_zone_rule, sizeof(TimeZone::TimeZoneRule));
ctx.WriteBuffer(time_zone_rule_outbuffer);
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultSuccess);
+ rb.Push(result);
}
-void ITimeZoneService::ToCalendarTime(Kernel::HLERequestContext& ctx) {
+void ITimeZoneService::ToCalendarTime(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto posix_time{rp.Pop<s64>()};
@@ -101,7 +146,7 @@ void ITimeZoneService::ToCalendarTime(Kernel::HLERequestContext& ctx) {
rb.PushRaw(calendar_info);
}
-void ITimeZoneService::ToCalendarTimeWithMyRule(Kernel::HLERequestContext& ctx) {
+void ITimeZoneService::ToCalendarTimeWithMyRule(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto posix_time{rp.Pop<s64>()};
@@ -122,7 +167,7 @@ void ITimeZoneService::ToCalendarTimeWithMyRule(Kernel::HLERequestContext& ctx)
rb.PushRaw(calendar_info);
}
-void ITimeZoneService::ToPosixTime(Kernel::HLERequestContext& ctx) {
+void ITimeZoneService::ToPosixTime(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::RequestParser rp{ctx};
@@ -147,7 +192,7 @@ void ITimeZoneService::ToPosixTime(Kernel::HLERequestContext& ctx) {
rb.PushRaw<u32>(1); // Number of times we're returning
}
-void ITimeZoneService::ToPosixTimeWithMyRule(Kernel::HLERequestContext& ctx) {
+void ITimeZoneService::ToPosixTimeWithMyRule(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called");
IPC::RequestParser rp{ctx};
diff --git a/src/core/hle/service/time/time_zone_service.h b/src/core/hle/service/time/time_zone_service.h
index f151f4b56..952fcb0e2 100644
--- a/src/core/hle/service/time/time_zone_service.h
+++ b/src/core/hle/service/time/time_zone_service.h
@@ -21,12 +21,15 @@ public:
TimeZone::TimeZoneContentManager& time_zone_manager_);
private:
- void GetDeviceLocationName(Kernel::HLERequestContext& ctx);
- void LoadTimeZoneRule(Kernel::HLERequestContext& ctx);
- void ToCalendarTime(Kernel::HLERequestContext& ctx);
- void ToCalendarTimeWithMyRule(Kernel::HLERequestContext& ctx);
- void ToPosixTime(Kernel::HLERequestContext& ctx);
- void ToPosixTimeWithMyRule(Kernel::HLERequestContext& ctx);
+ void GetDeviceLocationName(HLERequestContext& ctx);
+ void GetTotalLocationNameCount(HLERequestContext& ctx);
+ void LoadLocationNameList(HLERequestContext& ctx);
+ void GetTimeZoneRuleVersion(HLERequestContext& ctx);
+ void LoadTimeZoneRule(HLERequestContext& ctx);
+ void ToCalendarTime(HLERequestContext& ctx);
+ void ToCalendarTimeWithMyRule(HLERequestContext& ctx);
+ void ToPosixTime(HLERequestContext& ctx);
+ void ToPosixTimeWithMyRule(HLERequestContext& ctx);
private:
TimeZone::TimeZoneContentManager& time_zone_content_manager;
diff --git a/src/core/hle/service/usb/usb.cpp b/src/core/hle/service/usb/usb.cpp
index ac46a406c..f29fff1dd 100644
--- a/src/core/hle/service/usb/usb.cpp
+++ b/src/core/hle/service/usb/usb.cpp
@@ -4,9 +4,9 @@
#include <memory>
#include "common/logging/log.h"
-#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/ipc_helpers.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
#include "core/hle/service/usb/usb.h"
namespace Service::USB {
@@ -16,19 +16,19 @@ public:
explicit IDsInterface(Core::System& system_) : ServiceFramework{system_, "IDsInterface"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, nullptr, "BindDevice"},
- {1, nullptr, "BindClientProcess"},
- {2, nullptr, "AddInterface"},
- {3, nullptr, "GetStateChangeEvent"},
- {4, nullptr, "GetState"},
- {5, nullptr, "ClearDeviceData"},
- {6, nullptr, "AddUsbStringDescriptor"},
- {7, nullptr, "DeleteUsbStringDescriptor"},
- {8, nullptr, "SetUsbDeviceDescriptor"},
- {9, nullptr, "SetBinaryObjectStore"},
- {10, nullptr, "Enable"},
- {11, nullptr, "Disable"},
- {12, nullptr, "Unknown12"},
+ {0, nullptr, "AddEndpoint"},
+ {1, nullptr, "GetSetupEvent"},
+ {2, nullptr, "GetSetupPacket"},
+ {3, nullptr, "Enable"},
+ {4, nullptr, "Disable"},
+ {5, nullptr, "CtrlIn"},
+ {6, nullptr, "CtrlOut"},
+ {7, nullptr, "GetCtrlInCompletionEvent"},
+ {8, nullptr, "GetCtrlInUrbReport"},
+ {9, nullptr, "GetCtrlOutCompletionEvent"},
+ {10, nullptr, "GetCtrlOutUrbReport"},
+ {11, nullptr, "CtrlStall"},
+ {12, nullptr, "AppendConfigurationData"},
};
// clang-format on
@@ -36,9 +36,9 @@ public:
}
};
-class USB_DS final : public ServiceFramework<USB_DS> {
+class IDsRootSession final : public ServiceFramework<IDsRootSession> {
public:
- explicit USB_DS(Core::System& system_) : ServiceFramework{system_, "usb:ds"} {
+ explicit IDsRootSession(Core::System& system_) : ServiceFramework{system_, "usb:ds"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "OpenDsService"},
@@ -94,9 +94,9 @@ public:
}
};
-class USB_HS final : public ServiceFramework<USB_HS> {
+class IClientRootSession final : public ServiceFramework<IClientRootSession> {
public:
- explicit USB_HS(Core::System& system_) : ServiceFramework{system_, "usb:hs"} {
+ explicit IClientRootSession(Core::System& system_) : ServiceFramework{system_, "usb:hs"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "BindClientProcess"},
@@ -107,7 +107,7 @@ public:
{5, nullptr, "DestroyInterfaceAvailableEvent"},
{6, nullptr, "GetInterfaceStateChangeEvent"},
{7, nullptr, "AcquireUsbIf"},
- {8, nullptr, "ResetDevice"},
+ {8, nullptr, "SetTestMode"},
};
// clang-format on
@@ -134,12 +134,12 @@ public:
}
};
-class USB_PD final : public ServiceFramework<USB_PD> {
+class IPdManager final : public ServiceFramework<IPdManager> {
public:
- explicit USB_PD(Core::System& system_) : ServiceFramework{system_, "usb:pd"} {
+ explicit IPdManager(Core::System& system_) : ServiceFramework{system_, "usb:pd"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &USB_PD::GetPdSession, "GetPdSession"},
+ {0, &IPdManager::OpenSession, "OpenSession"},
};
// clang-format on
@@ -147,7 +147,7 @@ public:
}
private:
- void GetPdSession(Kernel::HLERequestContext& ctx) {
+ void OpenSession(HLERequestContext& ctx) {
LOG_DEBUG(Service_USB, "called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -178,12 +178,12 @@ public:
}
};
-class USB_PD_C final : public ServiceFramework<USB_PD_C> {
+class IPdCradleManager final : public ServiceFramework<IPdCradleManager> {
public:
- explicit USB_PD_C(Core::System& system_) : ServiceFramework{system_, "usb:pd:c"} {
+ explicit IPdCradleManager(Core::System& system_) : ServiceFramework{system_, "usb:pd:c"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, &USB_PD_C::GetPdCradleSession, "GetPdCradleSession"},
+ {0, &IPdCradleManager::OpenCradleSession, "OpenCradleSession"},
};
// clang-format on
@@ -191,18 +191,18 @@ public:
}
private:
- void GetPdCradleSession(Kernel::HLERequestContext& ctx) {
+ void OpenCradleSession(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_USB, "called");
+
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IPdCradleSession>(system);
-
- LOG_DEBUG(Service_USB, "called");
}
};
-class USB_PM final : public ServiceFramework<USB_PM> {
+class IPmMainService final : public ServiceFramework<IPmMainService> {
public:
- explicit USB_PM(Core::System& system_) : ServiceFramework{system_, "usb:pm"} {
+ explicit IPmMainService(Core::System& system_) : ServiceFramework{system_, "usb:pm"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "GetPowerEvent"},
@@ -218,12 +218,15 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<USB_DS>(system)->InstallAsService(sm);
- std::make_shared<USB_HS>(system)->InstallAsService(sm);
- std::make_shared<USB_PD>(system)->InstallAsService(sm);
- std::make_shared<USB_PD_C>(system)->InstallAsService(sm);
- std::make_shared<USB_PM>(system)->InstallAsService(sm);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("usb:ds", std::make_shared<IDsRootSession>(system));
+ server_manager->RegisterNamedService("usb:hs", std::make_shared<IClientRootSession>(system));
+ server_manager->RegisterNamedService("usb:pd", std::make_shared<IPdManager>(system));
+ server_manager->RegisterNamedService("usb:pd:c", std::make_shared<IPdCradleManager>(system));
+ server_manager->RegisterNamedService("usb:pm", std::make_shared<IPmMainService>(system));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::USB
diff --git a/src/core/hle/service/usb/usb.h b/src/core/hle/service/usb/usb.h
index b41b9684c..98376ebc0 100644
--- a/src/core/hle/service/usb/usb.h
+++ b/src/core/hle/service/usb/usb.h
@@ -7,12 +7,8 @@ namespace Core {
class System;
}
-namespace Service::SM {
-class ServiceManager;
-}
-
namespace Service::USB {
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
+void LoopProcess(Core::System& system);
} // namespace Service::USB
diff --git a/src/core/hle/service/vi/display/vi_display.cpp b/src/core/hle/service/vi/display/vi_display.cpp
index 8ef74f1f0..69af2868a 100644
--- a/src/core/hle/service/vi/display/vi_display.cpp
+++ b/src/core/hle/service/vi/display/vi_display.cpp
@@ -12,11 +12,11 @@
#include "core/hle/kernel/k_readable_event.h"
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/nvdrv/core/container.h"
-#include "core/hle/service/nvflinger/buffer_item_consumer.h"
-#include "core/hle/service/nvflinger/buffer_queue_consumer.h"
-#include "core/hle/service/nvflinger/buffer_queue_core.h"
-#include "core/hle/service/nvflinger/buffer_queue_producer.h"
-#include "core/hle/service/nvflinger/hos_binder_driver_server.h"
+#include "core/hle/service/nvnflinger/buffer_item_consumer.h"
+#include "core/hle/service/nvnflinger/buffer_queue_consumer.h"
+#include "core/hle/service/nvnflinger/buffer_queue_core.h"
+#include "core/hle/service/nvnflinger/buffer_queue_producer.h"
+#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
#include "core/hle/service/vi/display/vi_display.h"
#include "core/hle/service/vi/layer/vi_layer.h"
#include "core/hle/service/vi/vi_results.h"
@@ -39,7 +39,7 @@ static BufferQueue CreateBufferQueue(KernelHelpers::ServiceContext& service_cont
}
Display::Display(u64 id, std::string name_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_,
KernelHelpers::ServiceContext& service_context_, Core::System& system_)
: display_id{id}, name{std::move(name_)}, hos_binder_driver_server{hos_binder_driver_server_},
service_context{service_context_} {
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h
index 0b65a65da..3f31d1f32 100644
--- a/src/core/hle/service/vi/display/vi_display.h
+++ b/src/core/hle/service/vi/display/vi_display.h
@@ -23,7 +23,7 @@ namespace Service::KernelHelpers {
class ServiceContext;
}
-namespace Service::NVFlinger {
+namespace Service::Nvnflinger {
class HosBinderDriverServer;
}
@@ -45,12 +45,12 @@ public:
/// Constructs a display with a given unique ID and name.
///
/// @param id The unique ID for this display.
- /// @param hos_binder_driver_server_ NVFlinger HOSBinderDriver server instance.
+ /// @param hos_binder_driver_server_ Nvnflinger HOSBinderDriver server instance.
/// @param service_context_ The ServiceContext for the owning service.
/// @param name_ The name for this display.
/// @param system_ The global system instance.
///
- Display(u64 id, std::string name_, NVFlinger::HosBinderDriverServer& hos_binder_driver_server_,
+ Display(u64 id, std::string name_, Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_,
KernelHelpers::ServiceContext& service_context_, Core::System& system_);
~Display();
@@ -133,7 +133,7 @@ public:
private:
u64 display_id;
std::string name;
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server;
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
KernelHelpers::ServiceContext& service_context;
std::vector<std::unique_ptr<Layer>> layers;
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index bb283e74e..1b193f00c 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -17,15 +17,16 @@
#include "common/settings.h"
#include "common/swap.h"
#include "core/core_timing.h"
-#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/k_readable_event.h"
#include "core/hle/kernel/k_thread.h"
+#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/nvdrv/nvdata.h"
-#include "core/hle/service/nvflinger/binder.h"
-#include "core/hle/service/nvflinger/buffer_queue_producer.h"
-#include "core/hle/service/nvflinger/hos_binder_driver_server.h"
-#include "core/hle/service/nvflinger/nvflinger.h"
-#include "core/hle/service/nvflinger/parcel.h"
+#include "core/hle/service/nvnflinger/binder.h"
+#include "core/hle/service/nvnflinger/buffer_queue_producer.h"
+#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
+#include "core/hle/service/nvnflinger/nvnflinger.h"
+#include "core/hle/service/nvnflinger/parcel.h"
+#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
#include "core/hle/service/vi/vi.h"
#include "core/hle/service/vi/vi_m.h"
@@ -63,8 +64,8 @@ public:
private:
const u32 magic = 2;
const u32 process_id = 1;
- const u32 id;
- INSERT_PADDING_WORDS(3);
+ const u64 id;
+ INSERT_PADDING_WORDS(2);
std::array<u8, 8> dispdrv = {'d', 'i', 's', 'p', 'd', 'r', 'v', '\0'};
INSERT_PADDING_WORDS(2);
};
@@ -72,9 +73,8 @@ static_assert(sizeof(NativeWindow) == 0x28, "NativeWindow has wrong size");
class IHOSBinderDriver final : public ServiceFramework<IHOSBinderDriver> {
public:
- explicit IHOSBinderDriver(Core::System& system_, NVFlinger::HosBinderDriverServer& server_)
- : ServiceFramework{system_, "IHOSBinderDriver", ServiceThreadType::CreateNew},
- server(server_) {
+ explicit IHOSBinderDriver(Core::System& system_, Nvnflinger::HosBinderDriverServer& server_)
+ : ServiceFramework{system_, "IHOSBinderDriver"}, server(server_) {
static const FunctionInfo functions[] = {
{0, &IHOSBinderDriver::TransactParcel, "TransactParcel"},
{1, &IHOSBinderDriver::AdjustRefcount, "AdjustRefcount"},
@@ -85,7 +85,7 @@ public:
}
private:
- void TransactParcel(Kernel::HLERequestContext& ctx) {
+ void TransactParcel(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 id = rp.Pop<u32>();
const auto transaction = static_cast<android::TransactionId>(rp.Pop<u32>());
@@ -100,7 +100,7 @@ private:
rb.Push(ResultSuccess);
}
- void AdjustRefcount(Kernel::HLERequestContext& ctx) {
+ void AdjustRefcount(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 id = rp.Pop<u32>();
const s32 addval = rp.PopRaw<s32>();
@@ -113,7 +113,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetNativeHandle(Kernel::HLERequestContext& ctx) {
+ void GetNativeHandle(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 id = rp.Pop<u32>();
const u32 unknown = rp.Pop<u32>();
@@ -126,7 +126,7 @@ private:
}
private:
- NVFlinger::HosBinderDriverServer& server;
+ Nvnflinger::HosBinderDriverServer& server;
};
class ISystemDisplayService final : public ServiceFramework<ISystemDisplayService> {
@@ -186,7 +186,7 @@ public:
}
private:
- void SetLayerZ(Kernel::HLERequestContext& ctx) {
+ void SetLayerZ(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 layer_id = rp.Pop<u64>();
const u64 z_value = rp.Pop<u64>();
@@ -200,7 +200,7 @@ private:
// This function currently does nothing but return a success error code in
// the vi library itself, so do the same thing, but log out the passed in values.
- void SetLayerVisibility(Kernel::HLERequestContext& ctx) {
+ void SetLayerVisibility(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 layer_id = rp.Pop<u64>();
const bool visibility = rp.Pop<bool>();
@@ -211,7 +211,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetDisplayMode(Kernel::HLERequestContext& ctx) {
+ void GetDisplayMode(HLERequestContext& ctx) {
LOG_WARNING(Service_VI, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 6};
@@ -232,7 +232,7 @@ private:
class IManagerDisplayService final : public ServiceFramework<IManagerDisplayService> {
public:
- explicit IManagerDisplayService(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_)
+ explicit IManagerDisplayService(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_)
: ServiceFramework{system_, "IManagerDisplayService"}, nv_flinger{nv_flinger_} {
// clang-format off
static const FunctionInfo functions[] = {
@@ -249,6 +249,9 @@ public:
{2053, nullptr, "DestroyIndirectProducerEndPoint"},
{2054, nullptr, "CreateIndirectConsumerEndPoint"},
{2055, nullptr, "DestroyIndirectConsumerEndPoint"},
+ {2060, nullptr, "CreateWatermarkCompositor"},
+ {2062, nullptr, "SetWatermarkText"},
+ {2063, nullptr, "SetWatermarkLayerStacks"},
{2300, nullptr, "AcquireLayerTexturePresentingEvent"},
{2301, nullptr, "ReleaseLayerTexturePresentingEvent"},
{2302, nullptr, "GetDisplayHotplugEvent"},
@@ -279,6 +282,8 @@ public:
{6011, nullptr, "EnableLayerAutoClearTransitionBuffer"},
{6012, nullptr, "DisableLayerAutoClearTransitionBuffer"},
{6013, nullptr, "SetLayerOpacity"},
+ {6014, nullptr, "AttachLayerWatermarkCompositor"},
+ {6015, nullptr, "DetachLayerWatermarkCompositor"},
{7000, nullptr, "SetContentVisibility"},
{8000, nullptr, "SetConductorLayer"},
{8001, nullptr, "SetTimestampTracking"},
@@ -320,7 +325,7 @@ public:
}
private:
- void CloseDisplay(Kernel::HLERequestContext& ctx) {
+ void CloseDisplay(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 display = rp.Pop<u64>();
@@ -330,7 +335,7 @@ private:
rb.Push(rc);
}
- void CreateManagedLayer(Kernel::HLERequestContext& ctx) {
+ void CreateManagedLayer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 unknown = rp.Pop<u32>();
rp.Skip(1, false);
@@ -354,7 +359,7 @@ private:
rb.Push(*layer_id);
}
- void AddToLayerStack(Kernel::HLERequestContext& ctx) {
+ void AddToLayerStack(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 stack = rp.Pop<u32>();
const u64 layer_id = rp.Pop<u64>();
@@ -366,7 +371,7 @@ private:
rb.Push(ResultSuccess);
}
- void SetLayerVisibility(Kernel::HLERequestContext& ctx) {
+ void SetLayerVisibility(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 layer_id = rp.Pop<u64>();
const bool visibility = rp.Pop<bool>();
@@ -378,13 +383,13 @@ private:
rb.Push(ResultSuccess);
}
- NVFlinger::NVFlinger& nv_flinger;
+ Nvnflinger::Nvnflinger& nv_flinger;
};
class IApplicationDisplayService final : public ServiceFramework<IApplicationDisplayService> {
public:
- IApplicationDisplayService(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_)
+ IApplicationDisplayService(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
: ServiceFramework{system_, "IApplicationDisplayService"}, nv_flinger{nv_flinger_},
hos_binder_driver_server{hos_binder_driver_server_} {
@@ -435,7 +440,7 @@ private:
PreserveAspectRatio = 4,
};
- void GetRelayService(Kernel::HLERequestContext& ctx) {
+ void GetRelayService(HLERequestContext& ctx) {
LOG_WARNING(Service_VI, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -443,7 +448,7 @@ private:
rb.PushIpcInterface<IHOSBinderDriver>(system, hos_binder_driver_server);
}
- void GetSystemDisplayService(Kernel::HLERequestContext& ctx) {
+ void GetSystemDisplayService(HLERequestContext& ctx) {
LOG_WARNING(Service_VI, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -451,7 +456,7 @@ private:
rb.PushIpcInterface<ISystemDisplayService>(system);
}
- void GetManagerDisplayService(Kernel::HLERequestContext& ctx) {
+ void GetManagerDisplayService(HLERequestContext& ctx) {
LOG_WARNING(Service_VI, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -459,7 +464,7 @@ private:
rb.PushIpcInterface<IManagerDisplayService>(system, nv_flinger);
}
- void GetIndirectDisplayTransactionService(Kernel::HLERequestContext& ctx) {
+ void GetIndirectDisplayTransactionService(HLERequestContext& ctx) {
LOG_WARNING(Service_VI, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
@@ -467,7 +472,7 @@ private:
rb.PushIpcInterface<IHOSBinderDriver>(system, hos_binder_driver_server);
}
- void OpenDisplay(Kernel::HLERequestContext& ctx) {
+ void OpenDisplay(HLERequestContext& ctx) {
LOG_WARNING(Service_VI, "(STUBBED) called");
IPC::RequestParser rp{ctx};
@@ -476,13 +481,13 @@ private:
OpenDisplayImpl(ctx, std::string_view{name_buf.data(), name_buf.size()});
}
- void OpenDefaultDisplay(Kernel::HLERequestContext& ctx) {
+ void OpenDefaultDisplay(HLERequestContext& ctx) {
LOG_DEBUG(Service_VI, "called");
OpenDisplayImpl(ctx, "Default");
}
- void OpenDisplayImpl(Kernel::HLERequestContext& ctx, std::string_view name) {
+ void OpenDisplayImpl(HLERequestContext& ctx, std::string_view name) {
const auto trim_pos = name.find('\0');
if (trim_pos != std::string_view::npos) {
@@ -504,7 +509,7 @@ private:
rb.Push<u64>(*display_id);
}
- void CloseDisplay(Kernel::HLERequestContext& ctx) {
+ void CloseDisplay(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 display_id = rp.Pop<u64>();
@@ -516,14 +521,14 @@ private:
// This literally does nothing internally in the actual service itself,
// and just returns a successful result code regardless of the input.
- void SetDisplayEnabled(Kernel::HLERequestContext& ctx) {
+ void SetDisplayEnabled(HLERequestContext& ctx) {
LOG_DEBUG(Service_VI, "called.");
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ResultSuccess);
}
- void GetDisplayResolution(Kernel::HLERequestContext& ctx) {
+ void GetDisplayResolution(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 display_id = rp.Pop<u64>();
@@ -539,7 +544,7 @@ private:
rb.Push(static_cast<u64>(DisplayResolution::UndockedHeight));
}
- void SetLayerScalingMode(Kernel::HLERequestContext& ctx) {
+ void SetLayerScalingMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto scaling_mode = rp.PopEnum<NintendoScaleMode>();
const u64 unknown = rp.Pop<u64>();
@@ -565,7 +570,7 @@ private:
rb.Push(ResultSuccess);
}
- void ListDisplays(Kernel::HLERequestContext& ctx) {
+ void ListDisplays(HLERequestContext& ctx) {
LOG_WARNING(Service_VI, "(STUBBED) called");
const DisplayInfo display_info;
@@ -575,7 +580,7 @@ private:
rb.Push<u64>(1);
}
- void OpenLayer(Kernel::HLERequestContext& ctx) {
+ void OpenLayer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto name_buf = rp.PopRaw<std::array<u8, 0x40>>();
const auto end = std::find(name_buf.begin(), name_buf.end(), '\0');
@@ -603,7 +608,9 @@ private:
return;
}
- const auto parcel = android::Parcel{NativeWindow{*buffer_queue_id}};
+ android::OutputParcel parcel;
+ parcel.WriteInterface(NativeWindow{*buffer_queue_id});
+
const auto buffer_size = ctx.WriteBuffer(parcel.Serialize());
IPC::ResponseBuilder rb{ctx, 4};
@@ -611,7 +618,7 @@ private:
rb.Push<u64>(buffer_size);
}
- void CloseLayer(Kernel::HLERequestContext& ctx) {
+ void CloseLayer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto layer_id{rp.Pop<u64>()};
@@ -623,7 +630,7 @@ private:
rb.Push(ResultSuccess);
}
- void CreateStrayLayer(Kernel::HLERequestContext& ctx) {
+ void CreateStrayLayer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u32 flags = rp.Pop<u32>();
rp.Pop<u32>(); // padding
@@ -649,7 +656,9 @@ private:
return;
}
- const auto parcel = android::Parcel{NativeWindow{*buffer_queue_id}};
+ android::OutputParcel parcel;
+ parcel.WriteInterface(NativeWindow{*buffer_queue_id});
+
const auto buffer_size = ctx.WriteBuffer(parcel.Serialize());
IPC::ResponseBuilder rb{ctx, 6};
@@ -658,7 +667,7 @@ private:
rb.Push<u64>(buffer_size);
}
- void DestroyStrayLayer(Kernel::HLERequestContext& ctx) {
+ void DestroyStrayLayer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 layer_id = rp.Pop<u64>();
@@ -668,7 +677,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetDisplayVsyncEvent(Kernel::HLERequestContext& ctx) {
+ void GetDisplayVsyncEvent(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 display_id = rp.Pop<u64>();
@@ -691,7 +700,7 @@ private:
rb.PushCopyObjects(*vsync_event);
}
- void ConvertScalingMode(Kernel::HLERequestContext& ctx) {
+ void ConvertScalingMode(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto mode = rp.PopEnum<NintendoScaleMode>();
LOG_DEBUG(Service_VI, "called mode={}", mode);
@@ -708,7 +717,7 @@ private:
}
}
- void GetIndirectLayerImageMap(Kernel::HLERequestContext& ctx) {
+ void GetIndirectLayerImageMap(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto width = rp.Pop<s64>();
const auto height = rp.Pop<s64>();
@@ -734,7 +743,7 @@ private:
rb.Push(ResultSuccess);
}
- void GetIndirectLayerImageRequiredMemoryInfo(Kernel::HLERequestContext& ctx) {
+ void GetIndirectLayerImageRequiredMemoryInfo(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto width = rp.Pop<u64>();
const auto height = rp.Pop<u64>();
@@ -769,8 +778,8 @@ private:
}
}
- NVFlinger::NVFlinger& nv_flinger;
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server;
+ Nvnflinger::Nvnflinger& nv_flinger;
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
};
static bool IsValidServiceAccess(Permission permission, Policy policy) {
@@ -785,9 +794,9 @@ static bool IsValidServiceAccess(Permission permission, Policy policy) {
return false;
}
-void detail::GetDisplayServiceImpl(Kernel::HLERequestContext& ctx, Core::System& system,
- NVFlinger::NVFlinger& nv_flinger,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server,
+void detail::GetDisplayServiceImpl(HLERequestContext& ctx, Core::System& system,
+ Nvnflinger::Nvnflinger& nv_flinger,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server,
Permission permission) {
IPC::RequestParser rp{ctx};
const auto policy = rp.PopEnum<Policy>();
@@ -804,15 +813,17 @@ void detail::GetDisplayServiceImpl(Kernel::HLERequestContext& ctx, Core::System&
rb.PushIpcInterface<IApplicationDisplayService>(system, nv_flinger, hos_binder_driver_server);
}
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system,
- NVFlinger::NVFlinger& nv_flinger,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server) {
- std::make_shared<VI_M>(system, nv_flinger, hos_binder_driver_server)
- ->InstallAsService(service_manager);
- std::make_shared<VI_S>(system, nv_flinger, hos_binder_driver_server)
- ->InstallAsService(service_manager);
- std::make_shared<VI_U>(system, nv_flinger, hos_binder_driver_server)
- ->InstallAsService(service_manager);
+void LoopProcess(Core::System& system, Nvnflinger::Nvnflinger& nv_flinger,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService(
+ "vi:m", std::make_shared<VI_M>(system, nv_flinger, hos_binder_driver_server));
+ server_manager->RegisterNamedService(
+ "vi:s", std::make_shared<VI_S>(system, nv_flinger, hos_binder_driver_server));
+ server_manager->RegisterNamedService(
+ "vi:u", std::make_shared<VI_U>(system, nv_flinger, hos_binder_driver_server));
+ ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::VI
diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.h
index fc2d717e7..a35b62f97 100644
--- a/src/core/hle/service/vi/vi.h
+++ b/src/core/hle/service/vi/vi.h
@@ -9,18 +9,14 @@ namespace Core {
class System;
}
-namespace Kernel {
+namespace Service {
class HLERequestContext;
}
-namespace Service::NVFlinger {
+namespace Service::Nvnflinger {
class HosBinderDriverServer;
-class NVFlinger;
-} // namespace Service::NVFlinger
-
-namespace Service::SM {
-class ServiceManager;
-}
+class Nvnflinger;
+} // namespace Service::Nvnflinger
namespace Service::VI {
@@ -46,15 +42,13 @@ enum class Policy {
};
namespace detail {
-void GetDisplayServiceImpl(Kernel::HLERequestContext& ctx, Core::System& system,
- NVFlinger::NVFlinger& nv_flinger,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server,
+void GetDisplayServiceImpl(HLERequestContext& ctx, Core::System& system,
+ Nvnflinger::Nvnflinger& nv_flinger,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server,
Permission permission);
} // namespace detail
-/// Registers all VI services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system,
- NVFlinger::NVFlinger& nv_flinger,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server);
+void LoopProcess(Core::System& system, Nvnflinger::Nvnflinger& nv_flinger,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server);
} // namespace Service::VI
diff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cpp
index 1ab7fe4ab..0f06dc2f3 100644
--- a/src/core/hle/service/vi/vi_m.cpp
+++ b/src/core/hle/service/vi/vi_m.cpp
@@ -7,20 +7,24 @@
namespace Service::VI {
-VI_M::VI_M(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_)
+VI_M::VI_M(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
: ServiceFramework{system_, "vi:m"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{
hos_binder_driver_server_} {
static const FunctionInfo functions[] = {
{2, &VI_M::GetDisplayService, "GetDisplayService"},
{3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
+ {100, nullptr, "PrepareFatal"},
+ {101, nullptr, "ShowFatal"},
+ {102, nullptr, "DrawFatalRectangle"},
+ {103, nullptr, "DrawFatalText32"},
};
RegisterHandlers(functions);
}
VI_M::~VI_M() = default;
-void VI_M::GetDisplayService(Kernel::HLERequestContext& ctx) {
+void VI_M::GetDisplayService(HLERequestContext& ctx) {
LOG_DEBUG(Service_VI, "called");
detail::GetDisplayServiceImpl(ctx, system, nv_flinger, hos_binder_driver_server,
diff --git a/src/core/hle/service/vi/vi_m.h b/src/core/hle/service/vi/vi_m.h
index 3bf76d439..9ca6f3905 100644
--- a/src/core/hle/service/vi/vi_m.h
+++ b/src/core/hle/service/vi/vi_m.h
@@ -9,28 +9,24 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
-namespace Service::NVFlinger {
+namespace Service::Nvnflinger {
class HosBinderDriverServer;
-class NVFlinger;
-} // namespace Service::NVFlinger
+class Nvnflinger;
+} // namespace Service::Nvnflinger
namespace Service::VI {
class VI_M final : public ServiceFramework<VI_M> {
public:
- explicit VI_M(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_);
+ explicit VI_M(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_);
~VI_M() override;
private:
- void GetDisplayService(Kernel::HLERequestContext& ctx);
+ void GetDisplayService(HLERequestContext& ctx);
- NVFlinger::NVFlinger& nv_flinger;
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server;
+ Nvnflinger::Nvnflinger& nv_flinger;
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
};
} // namespace Service::VI
diff --git a/src/core/hle/service/vi/vi_s.cpp b/src/core/hle/service/vi/vi_s.cpp
index fd799dac1..77f7a88ff 100644
--- a/src/core/hle/service/vi/vi_s.cpp
+++ b/src/core/hle/service/vi/vi_s.cpp
@@ -7,8 +7,8 @@
namespace Service::VI {
-VI_S::VI_S(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_)
+VI_S::VI_S(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
: ServiceFramework{system_, "vi:s"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{
hos_binder_driver_server_} {
static const FunctionInfo functions[] = {
@@ -20,7 +20,7 @@ VI_S::VI_S(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
VI_S::~VI_S() = default;
-void VI_S::GetDisplayService(Kernel::HLERequestContext& ctx) {
+void VI_S::GetDisplayService(HLERequestContext& ctx) {
LOG_DEBUG(Service_VI, "called");
detail::GetDisplayServiceImpl(ctx, system, nv_flinger, hos_binder_driver_server,
diff --git a/src/core/hle/service/vi/vi_s.h b/src/core/hle/service/vi/vi_s.h
index 97503ac7f..157839c91 100644
--- a/src/core/hle/service/vi/vi_s.h
+++ b/src/core/hle/service/vi/vi_s.h
@@ -9,28 +9,24 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
-namespace Service::NVFlinger {
+namespace Service::Nvnflinger {
class HosBinderDriverServer;
-class NVFlinger;
-} // namespace Service::NVFlinger
+class Nvnflinger;
+} // namespace Service::Nvnflinger
namespace Service::VI {
class VI_S final : public ServiceFramework<VI_S> {
public:
- explicit VI_S(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_);
+ explicit VI_S(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_);
~VI_S() override;
private:
- void GetDisplayService(Kernel::HLERequestContext& ctx);
+ void GetDisplayService(HLERequestContext& ctx);
- NVFlinger::NVFlinger& nv_flinger;
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server;
+ Nvnflinger::Nvnflinger& nv_flinger;
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
};
} // namespace Service::VI
diff --git a/src/core/hle/service/vi/vi_u.cpp b/src/core/hle/service/vi/vi_u.cpp
index 6cc54bd13..59e13c86b 100644
--- a/src/core/hle/service/vi/vi_u.cpp
+++ b/src/core/hle/service/vi/vi_u.cpp
@@ -7,8 +7,8 @@
namespace Service::VI {
-VI_U::VI_U(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_)
+VI_U::VI_U(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
: ServiceFramework{system_, "vi:u"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{
hos_binder_driver_server_} {
static const FunctionInfo functions[] = {
@@ -20,7 +20,7 @@ VI_U::VI_U(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
VI_U::~VI_U() = default;
-void VI_U::GetDisplayService(Kernel::HLERequestContext& ctx) {
+void VI_U::GetDisplayService(HLERequestContext& ctx) {
LOG_DEBUG(Service_VI, "called");
detail::GetDisplayServiceImpl(ctx, system, nv_flinger, hos_binder_driver_server,
diff --git a/src/core/hle/service/vi/vi_u.h b/src/core/hle/service/vi/vi_u.h
index 797941bd7..5d9ca54c6 100644
--- a/src/core/hle/service/vi/vi_u.h
+++ b/src/core/hle/service/vi/vi_u.h
@@ -9,28 +9,24 @@ namespace Core {
class System;
}
-namespace Kernel {
-class HLERequestContext;
-}
-
-namespace Service::NVFlinger {
+namespace Service::Nvnflinger {
class HosBinderDriverServer;
-class NVFlinger;
-} // namespace Service::NVFlinger
+class Nvnflinger;
+} // namespace Service::Nvnflinger
namespace Service::VI {
class VI_U final : public ServiceFramework<VI_U> {
public:
- explicit VI_U(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_,
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server_);
+ explicit VI_U(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_);
~VI_U() override;
private:
- void GetDisplayService(Kernel::HLERequestContext& ctx);
+ void GetDisplayService(HLERequestContext& ctx);
- NVFlinger::NVFlinger& nv_flinger;
- NVFlinger::HosBinderDriverServer& hos_binder_driver_server;
+ Nvnflinger::Nvnflinger& nv_flinger;
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
};
} // namespace Service::VI
diff --git a/src/core/hle/service/wlan/wlan.cpp b/src/core/hle/service/wlan/wlan.cpp
deleted file mode 100644
index 226e3034c..000000000
--- a/src/core/hle/service/wlan/wlan.cpp
+++ /dev/null
@@ -1,186 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <memory>
-
-#include "core/hle/service/service.h"
-#include "core/hle/service/sm/sm.h"
-#include "core/hle/service/wlan/wlan.h"
-
-namespace Service::WLAN {
-
-class WLANInfra final : public ServiceFramework<WLANInfra> {
-public:
- explicit WLANInfra(Core::System& system_) : ServiceFramework{system_, "wlan:inf"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "OpenMode"},
- {1, nullptr, "CloseMode"},
- {2, nullptr, "GetMacAddress"},
- {3, nullptr, "StartScan"},
- {4, nullptr, "StopScan"},
- {5, nullptr, "Connect"},
- {6, nullptr, "CancelConnect"},
- {7, nullptr, "Disconnect"},
- {8, nullptr, "GetConnectionEvent"},
- {9, nullptr, "GetConnectionStatus"},
- {10, nullptr, "GetState"},
- {11, nullptr, "GetScanResult"},
- {12, nullptr, "GetRssi"},
- {13, nullptr, "ChangeRxAntenna"},
- {14, nullptr, "GetFwVersion"},
- {15, nullptr, "RequestSleep"},
- {16, nullptr, "RequestWakeUp"},
- {17, nullptr, "RequestIfUpDown"},
- {18, nullptr, "Unknown18"},
- {19, nullptr, "Unknown19"},
- {20, nullptr, "Unknown20"},
- {21, nullptr, "Unknown21"},
- {22, nullptr, "Unknown22"},
- {23, nullptr, "Unknown23"},
- {24, nullptr, "Unknown24"},
- {25, nullptr, "Unknown25"},
- {26, nullptr, "Unknown26"},
- {27, nullptr, "Unknown27"},
- {28, nullptr, "Unknown28"},
- {29, nullptr, "Unknown29"},
- {30, nullptr, "Unknown30"},
- {31, nullptr, "Unknown31"},
- {32, nullptr, "Unknown32"},
- {33, nullptr, "Unknown33"},
- {34, nullptr, "Unknown34"},
- {35, nullptr, "Unknown35"},
- {36, nullptr, "Unknown36"},
- {37, nullptr, "Unknown37"},
- {38, nullptr, "Unknown38"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
-class WLANLocal final : public ServiceFramework<WLANLocal> {
-public:
- explicit WLANLocal(Core::System& system_) : ServiceFramework{system_, "wlan:lcl"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "Unknown0"},
- {1, nullptr, "Unknown1"},
- {2, nullptr, "Unknown2"},
- {3, nullptr, "Unknown3"},
- {4, nullptr, "Unknown4"},
- {5, nullptr, "Unknown5"},
- {6, nullptr, "GetMacAddress"},
- {7, nullptr, "CreateBss"},
- {8, nullptr, "DestroyBss"},
- {9, nullptr, "StartScan"},
- {10, nullptr, "StopScan"},
- {11, nullptr, "Connect"},
- {12, nullptr, "CancelConnect"},
- {13, nullptr, "Join"},
- {14, nullptr, "CancelJoin"},
- {15, nullptr, "Disconnect"},
- {16, nullptr, "SetBeaconLostCount"},
- {17, nullptr, "Unknown17"},
- {18, nullptr, "Unknown18"},
- {19, nullptr, "Unknown19"},
- {20, nullptr, "GetBssIndicationEvent"},
- {21, nullptr, "GetBssIndicationInfo"},
- {22, nullptr, "GetState"},
- {23, nullptr, "GetAllowedChannels"},
- {24, nullptr, "AddIe"},
- {25, nullptr, "DeleteIe"},
- {26, nullptr, "Unknown26"},
- {27, nullptr, "Unknown27"},
- {28, nullptr, "CreateRxEntry"},
- {29, nullptr, "DeleteRxEntry"},
- {30, nullptr, "Unknown30"},
- {31, nullptr, "Unknown31"},
- {32, nullptr, "AddMatchingDataToRxEntry"},
- {33, nullptr, "RemoveMatchingDataFromRxEntry"},
- {34, nullptr, "GetScanResult"},
- {35, nullptr, "Unknown35"},
- {36, nullptr, "SetActionFrameWithBeacon"},
- {37, nullptr, "CancelActionFrameWithBeacon"},
- {38, nullptr, "CreateRxEntryForActionFrame"},
- {39, nullptr, "DeleteRxEntryForActionFrame"},
- {40, nullptr, "Unknown40"},
- {41, nullptr, "Unknown41"},
- {42, nullptr, "CancelGetActionFrame"},
- {43, nullptr, "GetRssi"},
- {44, nullptr, "Unknown44"},
- {45, nullptr, "Unknown45"},
- {46, nullptr, "Unknown46"},
- {47, nullptr, "Unknown47"},
- {48, nullptr, "Unknown48"},
- {49, nullptr, "Unknown49"},
- {50, nullptr, "Unknown50"},
- {51, nullptr, "Unknown51"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
-class WLANLocalGetFrame final : public ServiceFramework<WLANLocalGetFrame> {
-public:
- explicit WLANLocalGetFrame(Core::System& system_) : ServiceFramework{system_, "wlan:lg"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "Unknown"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
-class WLANSocketGetFrame final : public ServiceFramework<WLANSocketGetFrame> {
-public:
- explicit WLANSocketGetFrame(Core::System& system_) : ServiceFramework{system_, "wlan:sg"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "Unknown"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
-class WLANSocketManager final : public ServiceFramework<WLANSocketManager> {
-public:
- explicit WLANSocketManager(Core::System& system_) : ServiceFramework{system_, "wlan:soc"} {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, nullptr, "Unknown0"},
- {1, nullptr, "Unknown1"},
- {2, nullptr, "Unknown2"},
- {3, nullptr, "Unknown3"},
- {4, nullptr, "Unknown4"},
- {5, nullptr, "Unknown5"},
- {6, nullptr, "GetMacAddress"},
- {7, nullptr, "SwitchTsfTimerFunction"},
- {8, nullptr, "Unknown8"},
- {9, nullptr, "Unknown9"},
- {10, nullptr, "Unknown10"},
- {11, nullptr, "Unknown11"},
- {12, nullptr, "Unknown12"},
- };
- // clang-format on
-
- RegisterHandlers(functions);
- }
-};
-
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
- std::make_shared<WLANInfra>(system)->InstallAsService(sm);
- std::make_shared<WLANLocal>(system)->InstallAsService(sm);
- std::make_shared<WLANLocalGetFrame>(system)->InstallAsService(sm);
- std::make_shared<WLANSocketGetFrame>(system)->InstallAsService(sm);
- std::make_shared<WLANSocketManager>(system)->InstallAsService(sm);
-}
-
-} // namespace Service::WLAN
diff --git a/src/core/hle/service/wlan/wlan.h b/src/core/hle/service/wlan/wlan.h
deleted file mode 100644
index 535c3bf0d..000000000
--- a/src/core/hle/service/wlan/wlan.h
+++ /dev/null
@@ -1,18 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-namespace Core {
-class System;
-}
-
-namespace Service::SM {
-class ServiceManager;
-}
-
-namespace Service::WLAN {
-
-void InstallInterfaces(SM::ServiceManager& sm, Core::System& system);
-
-} // namespace Service::WLAN
diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cpp
index 282ea1ff9..75ac10a9c 100644
--- a/src/core/internal_network/network.cpp
+++ b/src/core/internal_network/network.cpp
@@ -109,6 +109,8 @@ Errno TranslateNativeError(int e) {
return Errno::AGAIN;
case WSAECONNREFUSED:
return Errno::CONNREFUSED;
+ case WSAECONNRESET:
+ return Errno::CONNRESET;
case WSAEHOSTUNREACH:
return Errno::HOSTUNREACH;
case WSAENETDOWN:
@@ -205,6 +207,8 @@ Errno TranslateNativeError(int e) {
return Errno::AGAIN;
case ECONNREFUSED:
return Errno::CONNREFUSED;
+ case ECONNRESET:
+ return Errno::CONNRESET;
case EHOSTUNREACH:
return Errno::HOSTUNREACH;
case ENETDOWN:
@@ -352,7 +356,7 @@ NetworkInstance::~NetworkInstance() {
std::optional<IPv4Address> GetHostIPv4Address() {
const auto network_interface = Network::GetSelectedNetworkInterface();
if (!network_interface.has_value()) {
- LOG_ERROR(Network, "GetSelectedNetworkInterface returned no interface");
+ LOG_DEBUG(Network, "GetSelectedNetworkInterface returned no interface");
return {};
}
@@ -550,7 +554,7 @@ std::pair<s32, Errno> Socket::RecvFrom(int flags, std::vector<u8>& message, Sock
return {-1, GetAndLogLastError()};
}
-std::pair<s32, Errno> Socket::Send(const std::vector<u8>& message, int flags) {
+std::pair<s32, Errno> Socket::Send(std::span<const u8> message, int flags) {
ASSERT(message.size() < static_cast<size_t>(std::numeric_limits<int>::max()));
ASSERT(flags == 0);
@@ -563,12 +567,12 @@ std::pair<s32, Errno> Socket::Send(const std::vector<u8>& message, int flags) {
return {-1, GetAndLogLastError()};
}
-std::pair<s32, Errno> Socket::SendTo(u32 flags, const std::vector<u8>& message,
+std::pair<s32, Errno> Socket::SendTo(u32 flags, std::span<const u8> message,
const SockAddrIn* addr) {
ASSERT(flags == 0);
const sockaddr* to = nullptr;
- const int tolen = addr ? sizeof(sockaddr) : 0;
+ const int to_len = addr ? sizeof(sockaddr) : 0;
sockaddr host_addr_in;
if (addr) {
@@ -577,7 +581,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, const std::vector<u8>& message,
}
const auto result = sendto(fd, reinterpret_cast<const char*>(message.data()),
- static_cast<int>(message.size()), 0, to, tolen);
+ static_cast<int>(message.size()), 0, to, to_len);
if (result != SOCKET_ERROR) {
return {static_cast<s32>(result), Errno::SUCCESS};
}
diff --git a/src/core/internal_network/network.h b/src/core/internal_network/network.h
index 36994c22e..1e09a007a 100644
--- a/src/core/internal_network/network.h
+++ b/src/core/internal_network/network.h
@@ -30,6 +30,7 @@ enum class Errno {
NOTCONN,
AGAIN,
CONNREFUSED,
+ CONNRESET,
HOSTUNREACH,
NETDOWN,
NETUNREACH,
diff --git a/src/core/internal_network/network_interface.cpp b/src/core/internal_network/network_interface.cpp
index 7b8e510a2..4c909a6d3 100644
--- a/src/core/internal_network/network_interface.cpp
+++ b/src/core/internal_network/network_interface.cpp
@@ -200,7 +200,7 @@ std::optional<NetworkInterface> GetSelectedNetworkInterface() {
});
if (res == network_interfaces.end()) {
- LOG_ERROR(Network, "Couldn't find selected interface \"{}\"", selected_network_interface);
+ LOG_DEBUG(Network, "Couldn't find selected interface \"{}\"", selected_network_interface);
return std::nullopt;
}
diff --git a/src/core/internal_network/socket_proxy.cpp b/src/core/internal_network/socket_proxy.cpp
index 1e1c42cea..7a77171c2 100644
--- a/src/core/internal_network/socket_proxy.cpp
+++ b/src/core/internal_network/socket_proxy.cpp
@@ -182,7 +182,7 @@ std::pair<s32, Errno> ProxySocket::ReceivePacket(int flags, std::vector<u8>& mes
return {static_cast<u32>(read_bytes), Errno::SUCCESS};
}
-std::pair<s32, Errno> ProxySocket::Send(const std::vector<u8>& message, int flags) {
+std::pair<s32, Errno> ProxySocket::Send(std::span<const u8> message, int flags) {
LOG_WARNING(Network, "(STUBBED) called");
ASSERT(message.size() < static_cast<size_t>(std::numeric_limits<int>::max()));
ASSERT(flags == 0);
@@ -200,7 +200,7 @@ void ProxySocket::SendPacket(ProxyPacket& packet) {
}
}
-std::pair<s32, Errno> ProxySocket::SendTo(u32 flags, const std::vector<u8>& message,
+std::pair<s32, Errno> ProxySocket::SendTo(u32 flags, std::span<const u8> message,
const SockAddrIn* addr) {
ASSERT(flags == 0);
diff --git a/src/core/internal_network/socket_proxy.h b/src/core/internal_network/socket_proxy.h
index f12b5f567..6e991fa38 100644
--- a/src/core/internal_network/socket_proxy.h
+++ b/src/core/internal_network/socket_proxy.h
@@ -4,6 +4,7 @@
#pragma once
#include <mutex>
+#include <span>
#include <vector>
#include <queue>
@@ -15,9 +16,6 @@ namespace Network {
class ProxySocket : public SocketBase {
public:
- YUZU_NON_COPYABLE(ProxySocket);
- YUZU_NON_MOVEABLE(ProxySocket);
-
explicit ProxySocket(RoomNetwork& room_network_) noexcept;
~ProxySocket() override;
@@ -48,11 +46,11 @@ public:
std::pair<s32, Errno> ReceivePacket(int flags, std::vector<u8>& message, SockAddrIn* addr,
std::size_t max_length);
- std::pair<s32, Errno> Send(const std::vector<u8>& message, int flags) override;
+ std::pair<s32, Errno> Send(std::span<const u8> message, int flags) override;
void SendPacket(ProxyPacket& packet);
- std::pair<s32, Errno> SendTo(u32 flags, const std::vector<u8>& message,
+ std::pair<s32, Errno> SendTo(u32 flags, std::span<const u8> message,
const SockAddrIn* addr) override;
Errno SetLinger(bool enable, u32 linger) override;
diff --git a/src/core/internal_network/sockets.h b/src/core/internal_network/sockets.h
index 2e328c645..11e479e50 100644
--- a/src/core/internal_network/sockets.h
+++ b/src/core/internal_network/sockets.h
@@ -5,6 +5,7 @@
#include <map>
#include <memory>
+#include <span>
#include <utility>
#if defined(_WIN32)
@@ -35,13 +36,10 @@ public:
SocketBase() = default;
explicit SocketBase(SOCKET fd_) : fd{fd_} {}
-
virtual ~SocketBase() = default;
- virtual SocketBase& operator=(const SocketBase&) = delete;
-
- // Avoid closing sockets implicitly
- virtual SocketBase& operator=(SocketBase&&) noexcept = delete;
+ YUZU_NON_COPYABLE(SocketBase);
+ YUZU_NON_MOVEABLE(SocketBase);
virtual Errno Initialize(Domain domain, Type type, Protocol protocol) = 0;
@@ -66,9 +64,9 @@ public:
virtual std::pair<s32, Errno> RecvFrom(int flags, std::vector<u8>& message,
SockAddrIn* addr) = 0;
- virtual std::pair<s32, Errno> Send(const std::vector<u8>& message, int flags) = 0;
+ virtual std::pair<s32, Errno> Send(std::span<const u8> message, int flags) = 0;
- virtual std::pair<s32, Errno> SendTo(u32 flags, const std::vector<u8>& message,
+ virtual std::pair<s32, Errno> SendTo(u32 flags, std::span<const u8> message,
const SockAddrIn* addr) = 0;
virtual Errno SetLinger(bool enable, u32 linger) = 0;
@@ -108,14 +106,8 @@ public:
~Socket() override;
- Socket(const Socket&) = delete;
- Socket& operator=(const Socket&) = delete;
-
Socket(Socket&& rhs) noexcept;
- // Avoid closing sockets implicitly
- Socket& operator=(Socket&&) noexcept = delete;
-
Errno Initialize(Domain domain, Type type, Protocol protocol) override;
Errno Close() override;
@@ -138,9 +130,9 @@ public:
std::pair<s32, Errno> RecvFrom(int flags, std::vector<u8>& message, SockAddrIn* addr) override;
- std::pair<s32, Errno> Send(const std::vector<u8>& message, int flags) override;
+ std::pair<s32, Errno> Send(std::span<const u8> message, int flags) override;
- std::pair<s32, Errno> SendTo(u32 flags, const std::vector<u8>& message,
+ std::pair<s32, Errno> SendTo(u32 flags, std::span<const u8> message,
const SockAddrIn* addr) override;
Errno SetLinger(bool enable, u32 linger) override;
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp
index 192571d35..3be9b71cf 100644
--- a/src/core/loader/deconstructed_rom_directory.cpp
+++ b/src/core/loader/deconstructed_rom_directory.cpp
@@ -153,7 +153,7 @@ AppLoader_DeconstructedRomDirectory::LoadResult AppLoader_DeconstructedRomDirect
// Load NSO modules
modules.clear();
- const VAddr base_address{process.PageTable().GetCodeRegionStart()};
+ const VAddr base_address{GetInteger(process.PageTable().GetCodeRegionStart())};
VAddr next_load_addr{base_address};
const FileSys::PatchManager pm{metadata.GetTitleID(), system.GetFileSystemController(),
system.GetContentProvider()};
diff --git a/src/core/loader/kip.cpp b/src/core/loader/kip.cpp
index d8a1bf82a..709e2564f 100644
--- a/src/core/loader/kip.cpp
+++ b/src/core/loader/kip.cpp
@@ -96,7 +96,7 @@ AppLoader::LoadResult AppLoader_KIP::Load(Kernel::KProcess& process,
}
codeset.memory = std::move(program_image);
- const VAddr base_address = process.PageTable().GetCodeRegionStart();
+ const VAddr base_address = GetInteger(process.PageTable().GetCodeRegionStart());
process.LoadModule(std::move(codeset), base_address);
LOG_DEBUG(Loader, "loaded module {} @ 0x{:X}", kip->GetName(), base_address);
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index 73d04d7ee..7be6cf5f3 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -33,7 +33,8 @@ static_assert(sizeof(NroSegmentHeader) == 0x8, "NroSegmentHeader has incorrect s
struct NroHeader {
INSERT_PADDING_BYTES(0x4);
u32_le module_header_offset;
- INSERT_PADDING_BYTES(0x8);
+ u32 magic_ext1;
+ u32 magic_ext2;
u32_le magic;
INSERT_PADDING_BYTES(0x4);
u32_le file_size;
@@ -124,6 +125,16 @@ FileType AppLoader_NRO::IdentifyType(const FileSys::VirtualFile& nro_file) {
return FileType::Error;
}
+bool AppLoader_NRO::IsHomebrew() {
+ // Read NSO header
+ NroHeader nro_header{};
+ if (sizeof(NroHeader) != file->ReadObject(&nro_header)) {
+ return false;
+ }
+ return nro_header.magic_ext1 == Common::MakeMagic('H', 'O', 'M', 'E') &&
+ nro_header.magic_ext2 == Common::MakeMagic('B', 'R', 'E', 'W');
+}
+
static constexpr u32 PageAlignSize(u32 size) {
return static_cast<u32>((size + Core::Memory::YUZU_PAGEMASK) & ~Core::Memory::YUZU_PAGEMASK);
}
diff --git a/src/core/loader/nro.h b/src/core/loader/nro.h
index ccb77b581..8de6eebc6 100644
--- a/src/core/loader/nro.h
+++ b/src/core/loader/nro.h
@@ -38,6 +38,8 @@ public:
*/
static FileType IdentifyType(const FileSys::VirtualFile& nro_file);
+ bool IsHomebrew();
+
FileType GetFileType() const override {
return IdentifyType(file);
}
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp
index 4c3b3c655..79639f5e4 100644
--- a/src/core/loader/nso.cpp
+++ b/src/core/loader/nso.cpp
@@ -145,7 +145,7 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::KProcess& process, Core::
// Apply cheats if they exist and the program has a valid title ID
if (pm) {
- system.SetCurrentProcessBuildID(nso_header.build_id);
+ system.SetApplicationProcessBuildID(nso_header.build_id);
const auto cheats = pm->CreateCheatList(nso_header.build_id);
if (!cheats.empty()) {
system.RegisterCheatList(cheats, nso_header.build_id, load_base, image_size);
@@ -167,7 +167,7 @@ AppLoader_NSO::LoadResult AppLoader_NSO::Load(Kernel::KProcess& process, Core::S
modules.clear();
// Load module
- const VAddr base_address = process.PageTable().GetCodeRegionStart();
+ const VAddr base_address = GetInteger(process.PageTable().GetCodeRegionStart());
if (!LoadModule(process, system, *file, base_address, true, true)) {
return {ResultStatus::ErrorLoadingNSO, {}};
}
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 4e605fae4..514ba0d66 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -13,10 +13,12 @@
#include "common/swap.h"
#include "core/core.h"
#include "core/device_memory.h"
+#include "core/hardware_properties.h"
#include "core/hle/kernel/k_page_table.h"
#include "core/hle/kernel/k_process.h"
#include "core/memory.h"
#include "video_core/gpu.h"
+#include "video_core/rasterizer_download_area.h"
namespace Core::Memory {
@@ -35,31 +37,35 @@ struct Memory::Impl {
system.ArmInterface(core_id).PageTableChanged(*current_page_table, address_space_width);
}
- void MapMemoryRegion(Common::PageTable& page_table, VAddr base, u64 size, PAddr target) {
+ void MapMemoryRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size,
+ Common::PhysicalAddress target) {
ASSERT_MSG((size & YUZU_PAGEMASK) == 0, "non-page aligned size: {:016X}", size);
- ASSERT_MSG((base & YUZU_PAGEMASK) == 0, "non-page aligned base: {:016X}", base);
- ASSERT_MSG(target >= DramMemoryMap::Base, "Out of bounds target: {:016X}", target);
+ ASSERT_MSG((base & YUZU_PAGEMASK) == 0, "non-page aligned base: {:016X}", GetInteger(base));
+ ASSERT_MSG(target >= DramMemoryMap::Base, "Out of bounds target: {:016X}",
+ GetInteger(target));
MapPages(page_table, base / YUZU_PAGESIZE, size / YUZU_PAGESIZE, target,
Common::PageType::Memory);
if (Settings::IsFastmemEnabled()) {
- system.DeviceMemory().buffer.Map(base, target - DramMemoryMap::Base, size);
+ system.DeviceMemory().buffer.Map(GetInteger(base),
+ GetInteger(target) - DramMemoryMap::Base, size);
}
}
- void UnmapRegion(Common::PageTable& page_table, VAddr base, u64 size) {
+ void UnmapRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size) {
ASSERT_MSG((size & YUZU_PAGEMASK) == 0, "non-page aligned size: {:016X}", size);
- ASSERT_MSG((base & YUZU_PAGEMASK) == 0, "non-page aligned base: {:016X}", base);
+ ASSERT_MSG((base & YUZU_PAGEMASK) == 0, "non-page aligned base: {:016X}", GetInteger(base));
MapPages(page_table, base / YUZU_PAGESIZE, size / YUZU_PAGESIZE, 0,
Common::PageType::Unmapped);
if (Settings::IsFastmemEnabled()) {
- system.DeviceMemory().buffer.Unmap(base, size);
+ system.DeviceMemory().buffer.Unmap(GetInteger(base), size);
}
}
- [[nodiscard]] u8* GetPointerFromRasterizerCachedMemory(VAddr vaddr) const {
- const PAddr paddr{current_page_table->backing_addr[vaddr >> YUZU_PAGEBITS]};
+ [[nodiscard]] u8* GetPointerFromRasterizerCachedMemory(u64 vaddr) const {
+ const Common::PhysicalAddress paddr{
+ current_page_table->backing_addr[vaddr >> YUZU_PAGEBITS]};
if (!paddr) {
return {};
@@ -68,8 +74,9 @@ struct Memory::Impl {
return system.DeviceMemory().GetPointer<u8>(paddr) + vaddr;
}
- [[nodiscard]] u8* GetPointerFromDebugMemory(VAddr vaddr) const {
- const PAddr paddr{current_page_table->backing_addr[vaddr >> YUZU_PAGEBITS]};
+ [[nodiscard]] u8* GetPointerFromDebugMemory(u64 vaddr) const {
+ const Common::PhysicalAddress paddr{
+ current_page_table->backing_addr[vaddr >> YUZU_PAGEBITS]};
if (paddr == 0) {
return {};
@@ -78,11 +85,11 @@ struct Memory::Impl {
return system.DeviceMemory().GetPointer<u8>(paddr) + vaddr;
}
- u8 Read8(const VAddr addr) {
+ u8 Read8(const Common::ProcessAddress addr) {
return Read<u8>(addr);
}
- u16 Read16(const VAddr addr) {
+ u16 Read16(const Common::ProcessAddress addr) {
if ((addr & 1) == 0) {
return Read<u16_le>(addr);
} else {
@@ -92,7 +99,7 @@ struct Memory::Impl {
}
}
- u32 Read32(const VAddr addr) {
+ u32 Read32(const Common::ProcessAddress addr) {
if ((addr & 3) == 0) {
return Read<u32_le>(addr);
} else {
@@ -102,7 +109,7 @@ struct Memory::Impl {
}
}
- u64 Read64(const VAddr addr) {
+ u64 Read64(const Common::ProcessAddress addr) {
if ((addr & 7) == 0) {
return Read<u64_le>(addr);
} else {
@@ -112,11 +119,11 @@ struct Memory::Impl {
}
}
- void Write8(const VAddr addr, const u8 data) {
+ void Write8(const Common::ProcessAddress addr, const u8 data) {
Write<u8>(addr, data);
}
- void Write16(const VAddr addr, const u16 data) {
+ void Write16(const Common::ProcessAddress addr, const u16 data) {
if ((addr & 1) == 0) {
Write<u16_le>(addr, data);
} else {
@@ -125,7 +132,7 @@ struct Memory::Impl {
}
}
- void Write32(const VAddr addr, const u32 data) {
+ void Write32(const Common::ProcessAddress addr, const u32 data) {
if ((addr & 3) == 0) {
Write<u32_le>(addr, data);
} else {
@@ -134,7 +141,7 @@ struct Memory::Impl {
}
}
- void Write64(const VAddr addr, const u64 data) {
+ void Write64(const Common::ProcessAddress addr, const u64 data) {
if ((addr & 7) == 0) {
Write<u64_le>(addr, data);
} else {
@@ -143,23 +150,23 @@ struct Memory::Impl {
}
}
- bool WriteExclusive8(const VAddr addr, const u8 data, const u8 expected) {
+ bool WriteExclusive8(const Common::ProcessAddress addr, const u8 data, const u8 expected) {
return WriteExclusive<u8>(addr, data, expected);
}
- bool WriteExclusive16(const VAddr addr, const u16 data, const u16 expected) {
+ bool WriteExclusive16(const Common::ProcessAddress addr, const u16 data, const u16 expected) {
return WriteExclusive<u16_le>(addr, data, expected);
}
- bool WriteExclusive32(const VAddr addr, const u32 data, const u32 expected) {
+ bool WriteExclusive32(const Common::ProcessAddress addr, const u32 data, const u32 expected) {
return WriteExclusive<u32_le>(addr, data, expected);
}
- bool WriteExclusive64(const VAddr addr, const u64 data, const u64 expected) {
+ bool WriteExclusive64(const Common::ProcessAddress addr, const u64 data, const u64 expected) {
return WriteExclusive<u64_le>(addr, data, expected);
}
- std::string ReadCString(VAddr vaddr, std::size_t max_length) {
+ std::string ReadCString(Common::ProcessAddress vaddr, std::size_t max_length) {
std::string string;
string.reserve(max_length);
for (std::size_t i = 0; i < max_length; ++i) {
@@ -174,8 +181,9 @@ struct Memory::Impl {
return string;
}
- void WalkBlock(const Kernel::KProcess& process, const VAddr addr, const std::size_t size,
- auto on_unmapped, auto on_memory, auto on_rasterizer, auto increment) {
+ void WalkBlock(const Kernel::KProcess& process, const Common::ProcessAddress addr,
+ const std::size_t size, auto on_unmapped, auto on_memory, auto on_rasterizer,
+ auto increment) {
const auto& page_table = process.PageTable().PageTableImpl();
std::size_t remaining_size = size;
std::size_t page_index = addr >> YUZU_PAGEBITS;
@@ -185,7 +193,7 @@ struct Memory::Impl {
const std::size_t copy_amount =
std::min(static_cast<std::size_t>(YUZU_PAGESIZE) - page_offset, remaining_size);
const auto current_vaddr =
- static_cast<VAddr>((page_index << YUZU_PAGEBITS) + page_offset);
+ static_cast<u64>((page_index << YUZU_PAGEBITS) + page_offset);
const auto [pointer, type] = page_table.pointers[page_index].PointerType();
switch (type) {
@@ -220,24 +228,24 @@ struct Memory::Impl {
}
template <bool UNSAFE>
- void ReadBlockImpl(const Kernel::KProcess& process, const VAddr src_addr, void* dest_buffer,
- const std::size_t size) {
+ void ReadBlockImpl(const Kernel::KProcess& process, const Common::ProcessAddress src_addr,
+ void* dest_buffer, const std::size_t size) {
WalkBlock(
process, src_addr, size,
[src_addr, size, &dest_buffer](const std::size_t copy_amount,
- const VAddr current_vaddr) {
+ const Common::ProcessAddress current_vaddr) {
LOG_ERROR(HW_Memory,
"Unmapped ReadBlock @ 0x{:016X} (start address = 0x{:016X}, size = {})",
- current_vaddr, src_addr, size);
+ GetInteger(current_vaddr), GetInteger(src_addr), size);
std::memset(dest_buffer, 0, copy_amount);
},
[&](const std::size_t copy_amount, const u8* const src_ptr) {
std::memcpy(dest_buffer, src_ptr, copy_amount);
},
- [&](const VAddr current_vaddr, const std::size_t copy_amount,
+ [&](const Common::ProcessAddress current_vaddr, const std::size_t copy_amount,
const u8* const host_ptr) {
if constexpr (!UNSAFE) {
- system.GPU().FlushRegion(current_vaddr, copy_amount);
+ HandleRasterizerDownload(GetInteger(current_vaddr), copy_amount);
}
std::memcpy(dest_buffer, host_ptr, copy_amount);
},
@@ -246,30 +254,34 @@ struct Memory::Impl {
});
}
- void ReadBlock(const VAddr src_addr, void* dest_buffer, const std::size_t size) {
- ReadBlockImpl<false>(*system.CurrentProcess(), src_addr, dest_buffer, size);
+ void ReadBlock(const Common::ProcessAddress src_addr, void* dest_buffer,
+ const std::size_t size) {
+ ReadBlockImpl<false>(*system.ApplicationProcess(), src_addr, dest_buffer, size);
}
- void ReadBlockUnsafe(const VAddr src_addr, void* dest_buffer, const std::size_t size) {
- ReadBlockImpl<true>(*system.CurrentProcess(), src_addr, dest_buffer, size);
+ void ReadBlockUnsafe(const Common::ProcessAddress src_addr, void* dest_buffer,
+ const std::size_t size) {
+ ReadBlockImpl<true>(*system.ApplicationProcess(), src_addr, dest_buffer, size);
}
template <bool UNSAFE>
- void WriteBlockImpl(const Kernel::KProcess& process, const VAddr dest_addr,
+ void WriteBlockImpl(const Kernel::KProcess& process, const Common::ProcessAddress dest_addr,
const void* src_buffer, const std::size_t size) {
WalkBlock(
process, dest_addr, size,
- [dest_addr, size](const std::size_t copy_amount, const VAddr current_vaddr) {
+ [dest_addr, size](const std::size_t copy_amount,
+ const Common::ProcessAddress current_vaddr) {
LOG_ERROR(HW_Memory,
"Unmapped WriteBlock @ 0x{:016X} (start address = 0x{:016X}, size = {})",
- current_vaddr, dest_addr, size);
+ GetInteger(current_vaddr), GetInteger(dest_addr), size);
},
[&](const std::size_t copy_amount, u8* const dest_ptr) {
std::memcpy(dest_ptr, src_buffer, copy_amount);
},
- [&](const VAddr current_vaddr, const std::size_t copy_amount, u8* const host_ptr) {
+ [&](const Common::ProcessAddress current_vaddr, const std::size_t copy_amount,
+ u8* const host_ptr) {
if constexpr (!UNSAFE) {
- system.GPU().InvalidateRegion(current_vaddr, copy_amount);
+ system.GPU().InvalidateRegion(GetInteger(current_vaddr), copy_amount);
}
std::memcpy(host_ptr, src_buffer, copy_amount);
},
@@ -278,71 +290,77 @@ struct Memory::Impl {
});
}
- void WriteBlock(const VAddr dest_addr, const void* src_buffer, const std::size_t size) {
- WriteBlockImpl<false>(*system.CurrentProcess(), dest_addr, src_buffer, size);
+ void WriteBlock(const Common::ProcessAddress dest_addr, const void* src_buffer,
+ const std::size_t size) {
+ WriteBlockImpl<false>(*system.ApplicationProcess(), dest_addr, src_buffer, size);
}
- void WriteBlockUnsafe(const VAddr dest_addr, const void* src_buffer, const std::size_t size) {
- WriteBlockImpl<true>(*system.CurrentProcess(), dest_addr, src_buffer, size);
+ void WriteBlockUnsafe(const Common::ProcessAddress dest_addr, const void* src_buffer,
+ const std::size_t size) {
+ WriteBlockImpl<true>(*system.ApplicationProcess(), dest_addr, src_buffer, size);
}
- void ZeroBlock(const Kernel::KProcess& process, const VAddr dest_addr, const std::size_t size) {
+ void ZeroBlock(const Kernel::KProcess& process, const Common::ProcessAddress dest_addr,
+ const std::size_t size) {
WalkBlock(
process, dest_addr, size,
- [dest_addr, size](const std::size_t copy_amount, const VAddr current_vaddr) {
+ [dest_addr, size](const std::size_t copy_amount,
+ const Common::ProcessAddress current_vaddr) {
LOG_ERROR(HW_Memory,
"Unmapped ZeroBlock @ 0x{:016X} (start address = 0x{:016X}, size = {})",
- current_vaddr, dest_addr, size);
+ GetInteger(current_vaddr), GetInteger(dest_addr), size);
},
[](const std::size_t copy_amount, u8* const dest_ptr) {
std::memset(dest_ptr, 0, copy_amount);
},
- [&](const VAddr current_vaddr, const std::size_t copy_amount, u8* const host_ptr) {
- system.GPU().InvalidateRegion(current_vaddr, copy_amount);
+ [&](const Common::ProcessAddress current_vaddr, const std::size_t copy_amount,
+ u8* const host_ptr) {
+ system.GPU().InvalidateRegion(GetInteger(current_vaddr), copy_amount);
std::memset(host_ptr, 0, copy_amount);
},
[](const std::size_t copy_amount) {});
}
- void CopyBlock(const Kernel::KProcess& process, VAddr dest_addr, VAddr src_addr,
- const std::size_t size) {
+ void CopyBlock(const Kernel::KProcess& process, Common::ProcessAddress dest_addr,
+ Common::ProcessAddress src_addr, const std::size_t size) {
WalkBlock(
process, dest_addr, size,
- [&](const std::size_t copy_amount, const VAddr current_vaddr) {
+ [&](const std::size_t copy_amount, const Common::ProcessAddress current_vaddr) {
LOG_ERROR(HW_Memory,
"Unmapped CopyBlock @ 0x{:016X} (start address = 0x{:016X}, size = {})",
- current_vaddr, src_addr, size);
+ GetInteger(current_vaddr), GetInteger(src_addr), size);
ZeroBlock(process, dest_addr, copy_amount);
},
[&](const std::size_t copy_amount, const u8* const src_ptr) {
WriteBlockImpl<false>(process, dest_addr, src_ptr, copy_amount);
},
- [&](const VAddr current_vaddr, const std::size_t copy_amount, u8* const host_ptr) {
- system.GPU().FlushRegion(current_vaddr, copy_amount);
+ [&](const Common::ProcessAddress current_vaddr, const std::size_t copy_amount,
+ u8* const host_ptr) {
+ HandleRasterizerDownload(GetInteger(current_vaddr), copy_amount);
WriteBlockImpl<false>(process, dest_addr, host_ptr, copy_amount);
},
[&](const std::size_t copy_amount) {
- dest_addr += static_cast<VAddr>(copy_amount);
- src_addr += static_cast<VAddr>(copy_amount);
+ dest_addr += copy_amount;
+ src_addr += copy_amount;
});
}
template <typename Callback>
- Result PerformCacheOperation(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size,
- Callback&& cb) {
+ Result PerformCacheOperation(const Kernel::KProcess& process, Common::ProcessAddress dest_addr,
+ std::size_t size, Callback&& cb) {
class InvalidMemoryException : public std::exception {};
try {
WalkBlock(
process, dest_addr, size,
- [&](const std::size_t block_size, const VAddr current_vaddr) {
- LOG_ERROR(HW_Memory, "Unmapped cache maintenance @ {:#018X}", current_vaddr);
+ [&](const std::size_t block_size, const Common::ProcessAddress current_vaddr) {
+ LOG_ERROR(HW_Memory, "Unmapped cache maintenance @ {:#018X}",
+ GetInteger(current_vaddr));
throw InvalidMemoryException();
},
[&](const std::size_t block_size, u8* const host_ptr) {},
- [&](const VAddr current_vaddr, const std::size_t block_size, u8* const host_ptr) {
- cb(current_vaddr, block_size);
- },
+ [&](const Common::ProcessAddress current_vaddr, const std::size_t block_size,
+ u8* const host_ptr) { cb(current_vaddr, block_size); },
[](const std::size_t block_size) {});
} catch (InvalidMemoryException&) {
return Kernel::ResultInvalidCurrentMemory;
@@ -351,34 +369,40 @@ struct Memory::Impl {
return ResultSuccess;
}
- Result InvalidateDataCache(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size) {
- auto on_rasterizer = [&](const VAddr current_vaddr, const std::size_t block_size) {
+ Result InvalidateDataCache(const Kernel::KProcess& process, Common::ProcessAddress dest_addr,
+ std::size_t size) {
+ auto on_rasterizer = [&](const Common::ProcessAddress current_vaddr,
+ const std::size_t block_size) {
// dc ivac: Invalidate to point of coherency
// GPU flush -> CPU invalidate
- system.GPU().FlushRegion(current_vaddr, block_size);
+ HandleRasterizerDownload(GetInteger(current_vaddr), block_size);
};
return PerformCacheOperation(process, dest_addr, size, on_rasterizer);
}
- Result StoreDataCache(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size) {
- auto on_rasterizer = [&](const VAddr current_vaddr, const std::size_t block_size) {
+ Result StoreDataCache(const Kernel::KProcess& process, Common::ProcessAddress dest_addr,
+ std::size_t size) {
+ auto on_rasterizer = [&](const Common::ProcessAddress current_vaddr,
+ const std::size_t block_size) {
// dc cvac: Store to point of coherency
// CPU flush -> GPU invalidate
- system.GPU().InvalidateRegion(current_vaddr, block_size);
+ system.GPU().InvalidateRegion(GetInteger(current_vaddr), block_size);
};
return PerformCacheOperation(process, dest_addr, size, on_rasterizer);
}
- Result FlushDataCache(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size) {
- auto on_rasterizer = [&](const VAddr current_vaddr, const std::size_t block_size) {
+ Result FlushDataCache(const Kernel::KProcess& process, Common::ProcessAddress dest_addr,
+ std::size_t size) {
+ auto on_rasterizer = [&](const Common::ProcessAddress current_vaddr,
+ const std::size_t block_size) {
// dc civac: Store to point of coherency, and invalidate from cache
// CPU flush -> GPU invalidate
- system.GPU().InvalidateRegion(current_vaddr, block_size);
+ system.GPU().InvalidateRegion(GetInteger(current_vaddr), block_size);
};
return PerformCacheOperation(process, dest_addr, size, on_rasterizer);
}
- void MarkRegionDebug(VAddr vaddr, u64 size, bool debug) {
+ void MarkRegionDebug(u64 vaddr, u64 size, bool debug) {
if (vaddr == 0) {
return;
}
@@ -434,13 +458,14 @@ struct Memory::Impl {
}
}
- void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached) {
+ void RasterizerMarkRegionCached(u64 vaddr, u64 size, bool cached) {
if (vaddr == 0) {
return;
}
if (Settings::IsFastmemEnabled()) {
- const bool is_read_enable = !Settings::IsGPULevelExtreme() || !cached;
+ const bool is_read_enable =
+ !Settings::values.use_reactive_flushing.GetValue() || !cached;
system.DeviceMemory().buffer.Protect(vaddr, size, is_read_enable, !cached);
}
@@ -514,10 +539,12 @@ struct Memory::Impl {
* @param target The target address to begin mapping from.
* @param type The page type to map the memory as.
*/
- void MapPages(Common::PageTable& page_table, VAddr base, u64 size, PAddr target,
- Common::PageType type) {
- LOG_DEBUG(HW_Memory, "Mapping {:016X} onto {:016X}-{:016X}", target, base * YUZU_PAGESIZE,
- (base + size) * YUZU_PAGESIZE);
+ void MapPages(Common::PageTable& page_table, Common::ProcessAddress base_address, u64 size,
+ Common::PhysicalAddress target, Common::PageType type) {
+ auto base = GetInteger(base_address);
+
+ LOG_DEBUG(HW_Memory, "Mapping {:016X} onto {:016X}-{:016X}", GetInteger(target),
+ base * YUZU_PAGESIZE, (base + size) * YUZU_PAGESIZE);
// During boot, current_page_table might not be set yet, in which case we need not flush
if (system.IsPoweredOn()) {
@@ -530,7 +557,7 @@ struct Memory::Impl {
}
}
- const VAddr end = base + size;
+ const Common::ProcessAddress end = base + size;
ASSERT_MSG(end <= page_table.pointers.size(), "out of range mapping at {:016X}",
base + page_table.pointers.size());
@@ -548,7 +575,7 @@ struct Memory::Impl {
while (base != end) {
page_table.pointers[base].Store(
system.DeviceMemory().GetPointer<u8>(target) - (base << YUZU_PAGEBITS), type);
- page_table.backing_addr[base] = target - (base << YUZU_PAGEBITS);
+ page_table.backing_addr[base] = GetInteger(target) - (base << YUZU_PAGEBITS);
ASSERT_MSG(page_table.pointers[base].Pointer(),
"memory mapping base yield a nullptr within the table");
@@ -559,9 +586,9 @@ struct Memory::Impl {
}
}
- [[nodiscard]] u8* GetPointerImpl(VAddr vaddr, auto on_unmapped, auto on_rasterizer) const {
+ [[nodiscard]] u8* GetPointerImpl(u64 vaddr, auto on_unmapped, auto on_rasterizer) const {
// AARCH64 masks the upper 16 bit of all memory accesses
- vaddr &= 0xffffffffffffULL;
+ vaddr = vaddr & 0xffffffffffffULL;
if (vaddr >= 1uLL << current_page_table->GetAddressSpaceBits()) {
on_unmapped();
@@ -593,15 +620,18 @@ struct Memory::Impl {
return nullptr;
}
- [[nodiscard]] u8* GetPointer(const VAddr vaddr) const {
+ [[nodiscard]] u8* GetPointer(const Common::ProcessAddress vaddr) const {
return GetPointerImpl(
- vaddr, [vaddr]() { LOG_ERROR(HW_Memory, "Unmapped GetPointer @ 0x{:016X}", vaddr); },
+ GetInteger(vaddr),
+ [vaddr]() {
+ LOG_ERROR(HW_Memory, "Unmapped GetPointer @ 0x{:016X}", GetInteger(vaddr));
+ },
[]() {});
}
- [[nodiscard]] u8* GetPointerSilent(const VAddr vaddr) const {
+ [[nodiscard]] u8* GetPointerSilent(const Common::ProcessAddress vaddr) const {
return GetPointerImpl(
- vaddr, []() {}, []() {});
+ GetInteger(vaddr), []() {}, []() {});
}
/**
@@ -616,14 +646,15 @@ struct Memory::Impl {
* @returns The instance of T read from the specified virtual address.
*/
template <typename T>
- T Read(VAddr vaddr) {
+ T Read(Common::ProcessAddress vaddr) {
T result = 0;
const u8* const ptr = GetPointerImpl(
- vaddr,
+ GetInteger(vaddr),
[vaddr]() {
- LOG_ERROR(HW_Memory, "Unmapped Read{} @ 0x{:016X}", sizeof(T) * 8, vaddr);
+ LOG_ERROR(HW_Memory, "Unmapped Read{} @ 0x{:016X}", sizeof(T) * 8,
+ GetInteger(vaddr));
},
- [&]() { system.GPU().FlushRegion(vaddr, sizeof(T)); });
+ [&]() { HandleRasterizerDownload(GetInteger(vaddr), sizeof(T)); });
if (ptr) {
std::memcpy(&result, ptr, sizeof(T));
}
@@ -640,28 +671,28 @@ struct Memory::Impl {
* is undefined.
*/
template <typename T>
- void Write(VAddr vaddr, const T data) {
+ void Write(Common::ProcessAddress vaddr, const T data) {
u8* const ptr = GetPointerImpl(
- vaddr,
+ GetInteger(vaddr),
[vaddr, data]() {
LOG_ERROR(HW_Memory, "Unmapped Write{} @ 0x{:016X} = 0x{:016X}", sizeof(T) * 8,
- vaddr, static_cast<u64>(data));
+ GetInteger(vaddr), static_cast<u64>(data));
},
- [&]() { system.GPU().InvalidateRegion(vaddr, sizeof(T)); });
+ [&]() { system.GPU().InvalidateRegion(GetInteger(vaddr), sizeof(T)); });
if (ptr) {
std::memcpy(ptr, &data, sizeof(T));
}
}
template <typename T>
- bool WriteExclusive(VAddr vaddr, const T data, const T expected) {
+ bool WriteExclusive(Common::ProcessAddress vaddr, const T data, const T expected) {
u8* const ptr = GetPointerImpl(
- vaddr,
+ GetInteger(vaddr),
[vaddr, data]() {
LOG_ERROR(HW_Memory, "Unmapped WriteExclusive{} @ 0x{:016X} = 0x{:016X}",
- sizeof(T) * 8, vaddr, static_cast<u64>(data));
+ sizeof(T) * 8, GetInteger(vaddr), static_cast<u64>(data));
},
- [&]() { system.GPU().InvalidateRegion(vaddr, sizeof(T)); });
+ [&]() { system.GPU().InvalidateRegion(GetInteger(vaddr), sizeof(T)); });
if (ptr) {
const auto volatile_pointer = reinterpret_cast<volatile T*>(ptr);
return Common::AtomicCompareAndSwap(volatile_pointer, data, expected);
@@ -669,14 +700,14 @@ struct Memory::Impl {
return true;
}
- bool WriteExclusive128(VAddr vaddr, const u128 data, const u128 expected) {
+ bool WriteExclusive128(Common::ProcessAddress vaddr, const u128 data, const u128 expected) {
u8* const ptr = GetPointerImpl(
- vaddr,
+ GetInteger(vaddr),
[vaddr, data]() {
LOG_ERROR(HW_Memory, "Unmapped WriteExclusive128 @ 0x{:016X} = 0x{:016X}{:016X}",
- vaddr, static_cast<u64>(data[1]), static_cast<u64>(data[0]));
+ GetInteger(vaddr), static_cast<u64>(data[1]), static_cast<u64>(data[0]));
},
- [&]() { system.GPU().InvalidateRegion(vaddr, sizeof(u128)); });
+ [&]() { system.GPU().InvalidateRegion(GetInteger(vaddr), sizeof(u128)); });
if (ptr) {
const auto volatile_pointer = reinterpret_cast<volatile u64*>(ptr);
return Common::AtomicCompareAndSwap(volatile_pointer, data, expected);
@@ -684,7 +715,19 @@ struct Memory::Impl {
return true;
}
+ void HandleRasterizerDownload(VAddr address, size_t size) {
+ const size_t core = system.GetCurrentHostThreadID();
+ auto& current_area = rasterizer_areas[core];
+ const VAddr end_address = address + size;
+ if (current_area.start_address <= address && end_address <= current_area.end_address)
+ [[likely]] {
+ return;
+ }
+ current_area = system.GPU().OnCPURead(address, size);
+ }
+
Common::PageTable* current_page_table = nullptr;
+ std::array<VideoCore::RasterizerDownloadArea, Core::Hardware::NUM_CPU_CORES> rasterizer_areas{};
Core::System& system;
};
@@ -702,16 +745,17 @@ void Memory::SetCurrentPageTable(Kernel::KProcess& process, u32 core_id) {
impl->SetCurrentPageTable(process, core_id);
}
-void Memory::MapMemoryRegion(Common::PageTable& page_table, VAddr base, u64 size, PAddr target) {
+void Memory::MapMemoryRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size,
+ Common::PhysicalAddress target) {
impl->MapMemoryRegion(page_table, base, size, target);
}
-void Memory::UnmapRegion(Common::PageTable& page_table, VAddr base, u64 size) {
+void Memory::UnmapRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size) {
impl->UnmapRegion(page_table, base, size);
}
-bool Memory::IsValidVirtualAddress(const VAddr vaddr) const {
- const Kernel::KProcess& process = *system.CurrentProcess();
+bool Memory::IsValidVirtualAddress(const Common::ProcessAddress vaddr) const {
+ const Kernel::KProcess& process = *system.ApplicationProcess();
const auto& page_table = process.PageTable().PageTableImpl();
const size_t page = vaddr >> YUZU_PAGEBITS;
if (page >= page_table.pointers.size()) {
@@ -722,9 +766,9 @@ bool Memory::IsValidVirtualAddress(const VAddr vaddr) const {
type == Common::PageType::DebugMemory;
}
-bool Memory::IsValidVirtualAddressRange(VAddr base, u64 size) const {
- VAddr end = base + size;
- VAddr page = Common::AlignDown(base, YUZU_PAGESIZE);
+bool Memory::IsValidVirtualAddressRange(Common::ProcessAddress base, u64 size) const {
+ Common::ProcessAddress end = base + size;
+ Common::ProcessAddress page = Common::AlignDown(GetInteger(base), YUZU_PAGESIZE);
for (; page < end; page += YUZU_PAGESIZE) {
if (!IsValidVirtualAddress(page)) {
@@ -735,131 +779,121 @@ bool Memory::IsValidVirtualAddressRange(VAddr base, u64 size) const {
return true;
}
-u8* Memory::GetPointer(VAddr vaddr) {
+u8* Memory::GetPointer(Common::ProcessAddress vaddr) {
return impl->GetPointer(vaddr);
}
-u8* Memory::GetPointerSilent(VAddr vaddr) {
+u8* Memory::GetPointerSilent(Common::ProcessAddress vaddr) {
return impl->GetPointerSilent(vaddr);
}
-const u8* Memory::GetPointer(VAddr vaddr) const {
+const u8* Memory::GetPointer(Common::ProcessAddress vaddr) const {
return impl->GetPointer(vaddr);
}
-u8 Memory::Read8(const VAddr addr) {
+u8 Memory::Read8(const Common::ProcessAddress addr) {
return impl->Read8(addr);
}
-u16 Memory::Read16(const VAddr addr) {
+u16 Memory::Read16(const Common::ProcessAddress addr) {
return impl->Read16(addr);
}
-u32 Memory::Read32(const VAddr addr) {
+u32 Memory::Read32(const Common::ProcessAddress addr) {
return impl->Read32(addr);
}
-u64 Memory::Read64(const VAddr addr) {
+u64 Memory::Read64(const Common::ProcessAddress addr) {
return impl->Read64(addr);
}
-void Memory::Write8(VAddr addr, u8 data) {
+void Memory::Write8(Common::ProcessAddress addr, u8 data) {
impl->Write8(addr, data);
}
-void Memory::Write16(VAddr addr, u16 data) {
+void Memory::Write16(Common::ProcessAddress addr, u16 data) {
impl->Write16(addr, data);
}
-void Memory::Write32(VAddr addr, u32 data) {
+void Memory::Write32(Common::ProcessAddress addr, u32 data) {
impl->Write32(addr, data);
}
-void Memory::Write64(VAddr addr, u64 data) {
+void Memory::Write64(Common::ProcessAddress addr, u64 data) {
impl->Write64(addr, data);
}
-bool Memory::WriteExclusive8(VAddr addr, u8 data, u8 expected) {
+bool Memory::WriteExclusive8(Common::ProcessAddress addr, u8 data, u8 expected) {
return impl->WriteExclusive8(addr, data, expected);
}
-bool Memory::WriteExclusive16(VAddr addr, u16 data, u16 expected) {
+bool Memory::WriteExclusive16(Common::ProcessAddress addr, u16 data, u16 expected) {
return impl->WriteExclusive16(addr, data, expected);
}
-bool Memory::WriteExclusive32(VAddr addr, u32 data, u32 expected) {
+bool Memory::WriteExclusive32(Common::ProcessAddress addr, u32 data, u32 expected) {
return impl->WriteExclusive32(addr, data, expected);
}
-bool Memory::WriteExclusive64(VAddr addr, u64 data, u64 expected) {
+bool Memory::WriteExclusive64(Common::ProcessAddress addr, u64 data, u64 expected) {
return impl->WriteExclusive64(addr, data, expected);
}
-bool Memory::WriteExclusive128(VAddr addr, u128 data, u128 expected) {
+bool Memory::WriteExclusive128(Common::ProcessAddress addr, u128 data, u128 expected) {
return impl->WriteExclusive128(addr, data, expected);
}
-std::string Memory::ReadCString(VAddr vaddr, std::size_t max_length) {
+std::string Memory::ReadCString(Common::ProcessAddress vaddr, std::size_t max_length) {
return impl->ReadCString(vaddr, max_length);
}
-void Memory::ReadBlock(const Kernel::KProcess& process, const VAddr src_addr, void* dest_buffer,
+void Memory::ReadBlock(const Common::ProcessAddress src_addr, void* dest_buffer,
const std::size_t size) {
- impl->ReadBlockImpl<false>(process, src_addr, dest_buffer, size);
-}
-
-void Memory::ReadBlock(const VAddr src_addr, void* dest_buffer, const std::size_t size) {
impl->ReadBlock(src_addr, dest_buffer, size);
}
-void Memory::ReadBlockUnsafe(const VAddr src_addr, void* dest_buffer, const std::size_t size) {
+void Memory::ReadBlockUnsafe(const Common::ProcessAddress src_addr, void* dest_buffer,
+ const std::size_t size) {
impl->ReadBlockUnsafe(src_addr, dest_buffer, size);
}
-void Memory::WriteBlock(const Kernel::KProcess& process, VAddr dest_addr, const void* src_buffer,
- std::size_t size) {
- impl->WriteBlockImpl<false>(process, dest_addr, src_buffer, size);
-}
-
-void Memory::WriteBlock(const VAddr dest_addr, const void* src_buffer, const std::size_t size) {
+void Memory::WriteBlock(const Common::ProcessAddress dest_addr, const void* src_buffer,
+ const std::size_t size) {
impl->WriteBlock(dest_addr, src_buffer, size);
}
-void Memory::WriteBlockUnsafe(const VAddr dest_addr, const void* src_buffer,
+void Memory::WriteBlockUnsafe(const Common::ProcessAddress dest_addr, const void* src_buffer,
const std::size_t size) {
impl->WriteBlockUnsafe(dest_addr, src_buffer, size);
}
-void Memory::CopyBlock(const Kernel::KProcess& process, VAddr dest_addr, VAddr src_addr,
+void Memory::CopyBlock(Common::ProcessAddress dest_addr, Common::ProcessAddress src_addr,
const std::size_t size) {
- impl->CopyBlock(process, dest_addr, src_addr, size);
+ impl->CopyBlock(*system.ApplicationProcess(), dest_addr, src_addr, size);
}
-void Memory::ZeroBlock(const Kernel::KProcess& process, VAddr dest_addr, const std::size_t size) {
- impl->ZeroBlock(process, dest_addr, size);
+void Memory::ZeroBlock(Common::ProcessAddress dest_addr, const std::size_t size) {
+ impl->ZeroBlock(*system.ApplicationProcess(), dest_addr, size);
}
-Result Memory::InvalidateDataCache(const Kernel::KProcess& process, VAddr dest_addr,
- const std::size_t size) {
- return impl->InvalidateDataCache(process, dest_addr, size);
+Result Memory::InvalidateDataCache(Common::ProcessAddress dest_addr, const std::size_t size) {
+ return impl->InvalidateDataCache(*system.ApplicationProcess(), dest_addr, size);
}
-Result Memory::StoreDataCache(const Kernel::KProcess& process, VAddr dest_addr,
- const std::size_t size) {
- return impl->StoreDataCache(process, dest_addr, size);
+Result Memory::StoreDataCache(Common::ProcessAddress dest_addr, const std::size_t size) {
+ return impl->StoreDataCache(*system.ApplicationProcess(), dest_addr, size);
}
-Result Memory::FlushDataCache(const Kernel::KProcess& process, VAddr dest_addr,
- const std::size_t size) {
- return impl->FlushDataCache(process, dest_addr, size);
+Result Memory::FlushDataCache(Common::ProcessAddress dest_addr, const std::size_t size) {
+ return impl->FlushDataCache(*system.ApplicationProcess(), dest_addr, size);
}
-void Memory::RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached) {
- impl->RasterizerMarkRegionCached(vaddr, size, cached);
+void Memory::RasterizerMarkRegionCached(Common::ProcessAddress vaddr, u64 size, bool cached) {
+ impl->RasterizerMarkRegionCached(GetInteger(vaddr), size, cached);
}
-void Memory::MarkRegionDebug(VAddr vaddr, u64 size, bool debug) {
- impl->MarkRegionDebug(vaddr, size, debug);
+void Memory::MarkRegionDebug(Common::ProcessAddress vaddr, u64 size, bool debug) {
+ impl->MarkRegionDebug(GetInteger(vaddr), size, debug);
}
} // namespace Core::Memory
diff --git a/src/core/memory.h b/src/core/memory.h
index 31fe699d8..72a0be813 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -6,7 +6,7 @@
#include <cstddef>
#include <memory>
#include <string>
-#include "common/common_types.h"
+#include "common/typed_address.h"
#include "core/hle/result.h"
namespace Common {
@@ -33,7 +33,7 @@ constexpr u64 YUZU_PAGESIZE = 1ULL << YUZU_PAGEBITS;
constexpr u64 YUZU_PAGEMASK = YUZU_PAGESIZE - 1;
/// Virtual user-space memory regions
-enum : VAddr {
+enum : u64 {
/// TLS (Thread-Local Storage) related.
TLS_ENTRY_SIZE = 0x200,
@@ -74,7 +74,8 @@ public:
* @param target Buffer with the memory backing the mapping. Must be of length at least
* `size`.
*/
- void MapMemoryRegion(Common::PageTable& page_table, VAddr base, u64 size, PAddr target);
+ void MapMemoryRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size,
+ Common::PhysicalAddress target);
/**
* Unmaps a region of the emulated process address space.
@@ -83,7 +84,7 @@ public:
* @param base The address to begin unmapping at.
* @param size The amount of bytes to unmap.
*/
- void UnmapRegion(Common::PageTable& page_table, VAddr base, u64 size);
+ void UnmapRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size);
/**
* Checks whether or not the supplied address is a valid virtual
@@ -93,7 +94,7 @@ public:
*
* @returns True if the given virtual address is valid, false otherwise.
*/
- [[nodiscard]] bool IsValidVirtualAddress(VAddr vaddr) const;
+ [[nodiscard]] bool IsValidVirtualAddress(Common::ProcessAddress vaddr) const;
/**
* Checks whether or not the supplied range of addresses are all valid
@@ -104,7 +105,7 @@ public:
*
* @returns True if all bytes in the given range are valid, false otherwise.
*/
- [[nodiscard]] bool IsValidVirtualAddressRange(VAddr base, u64 size) const;
+ [[nodiscard]] bool IsValidVirtualAddressRange(Common::ProcessAddress base, u64 size) const;
/**
* Gets a pointer to the given address.
@@ -114,11 +115,11 @@ public:
* @returns The pointer to the given address, if the address is valid.
* If the address is not valid, nullptr will be returned.
*/
- u8* GetPointer(VAddr vaddr);
- u8* GetPointerSilent(VAddr vaddr);
+ u8* GetPointer(Common::ProcessAddress vaddr);
+ u8* GetPointerSilent(Common::ProcessAddress vaddr);
template <typename T>
- T* GetPointer(VAddr vaddr) {
+ T* GetPointer(Common::ProcessAddress vaddr) {
return reinterpret_cast<T*>(GetPointer(vaddr));
}
@@ -130,10 +131,10 @@ public:
* @returns The pointer to the given address, if the address is valid.
* If the address is not valid, nullptr will be returned.
*/
- [[nodiscard]] const u8* GetPointer(VAddr vaddr) const;
+ [[nodiscard]] const u8* GetPointer(Common::ProcessAddress vaddr) const;
template <typename T>
- const T* GetPointer(VAddr vaddr) const {
+ const T* GetPointer(Common::ProcessAddress vaddr) const {
return reinterpret_cast<T*>(GetPointer(vaddr));
}
@@ -145,7 +146,7 @@ public:
*
* @returns the read 8-bit unsigned value.
*/
- u8 Read8(VAddr addr);
+ u8 Read8(Common::ProcessAddress addr);
/**
* Reads a 16-bit unsigned value from the current process' address space
@@ -155,7 +156,7 @@ public:
*
* @returns the read 16-bit unsigned value.
*/
- u16 Read16(VAddr addr);
+ u16 Read16(Common::ProcessAddress addr);
/**
* Reads a 32-bit unsigned value from the current process' address space
@@ -165,7 +166,7 @@ public:
*
* @returns the read 32-bit unsigned value.
*/
- u32 Read32(VAddr addr);
+ u32 Read32(Common::ProcessAddress addr);
/**
* Reads a 64-bit unsigned value from the current process' address space
@@ -175,7 +176,7 @@ public:
*
* @returns the read 64-bit value.
*/
- u64 Read64(VAddr addr);
+ u64 Read64(Common::ProcessAddress addr);
/**
* Writes an 8-bit unsigned integer to the given virtual address in
@@ -186,7 +187,7 @@ public:
*
* @post The memory at the given virtual address contains the specified data value.
*/
- void Write8(VAddr addr, u8 data);
+ void Write8(Common::ProcessAddress addr, u8 data);
/**
* Writes a 16-bit unsigned integer to the given virtual address in
@@ -197,7 +198,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- void Write16(VAddr addr, u16 data);
+ void Write16(Common::ProcessAddress addr, u16 data);
/**
* Writes a 32-bit unsigned integer to the given virtual address in
@@ -208,7 +209,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- void Write32(VAddr addr, u32 data);
+ void Write32(Common::ProcessAddress addr, u32 data);
/**
* Writes a 64-bit unsigned integer to the given virtual address in
@@ -219,7 +220,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- void Write64(VAddr addr, u64 data);
+ void Write64(Common::ProcessAddress addr, u64 data);
/**
* Writes a 8-bit unsigned integer to the given virtual address in
@@ -232,7 +233,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- bool WriteExclusive8(VAddr addr, u8 data, u8 expected);
+ bool WriteExclusive8(Common::ProcessAddress addr, u8 data, u8 expected);
/**
* Writes a 16-bit unsigned integer to the given virtual address in
@@ -245,7 +246,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- bool WriteExclusive16(VAddr addr, u16 data, u16 expected);
+ bool WriteExclusive16(Common::ProcessAddress addr, u16 data, u16 expected);
/**
* Writes a 32-bit unsigned integer to the given virtual address in
@@ -258,7 +259,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- bool WriteExclusive32(VAddr addr, u32 data, u32 expected);
+ bool WriteExclusive32(Common::ProcessAddress addr, u32 data, u32 expected);
/**
* Writes a 64-bit unsigned integer to the given virtual address in
@@ -271,7 +272,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- bool WriteExclusive64(VAddr addr, u64 data, u64 expected);
+ bool WriteExclusive64(Common::ProcessAddress addr, u64 data, u64 expected);
/**
* Writes a 128-bit unsigned integer to the given virtual address in
@@ -284,7 +285,7 @@ public:
*
* @post The memory range [addr, sizeof(data)) contains the given data value.
*/
- bool WriteExclusive128(VAddr addr, u128 data, u128 expected);
+ bool WriteExclusive128(Common::ProcessAddress addr, u128 data, u128 expected);
/**
* Reads a null-terminated string from the given virtual address.
@@ -301,27 +302,7 @@ public:
*
* @returns The read string.
*/
- std::string ReadCString(VAddr vaddr, std::size_t max_length);
-
- /**
- * Reads a contiguous block of bytes from a specified process' address space.
- *
- * @param process The process to read the data from.
- * @param src_addr The virtual address to begin reading from.
- * @param dest_buffer The buffer to place the read bytes into.
- * @param size The amount of data to read, in bytes.
- *
- * @note If a size of 0 is specified, then this function reads nothing and
- * no attempts to access memory are made at all.
- *
- * @pre dest_buffer must be at least size bytes in length, otherwise a
- * buffer overrun will occur.
- *
- * @post The range [dest_buffer, size) contains the read bytes from the
- * process' address space.
- */
- void ReadBlock(const Kernel::KProcess& process, VAddr src_addr, void* dest_buffer,
- std::size_t size);
+ std::string ReadCString(Common::ProcessAddress vaddr, std::size_t max_length);
/**
* Reads a contiguous block of bytes from the current process' address space.
@@ -339,7 +320,7 @@ public:
* @post The range [dest_buffer, size) contains the read bytes from the
* current process' address space.
*/
- void ReadBlock(VAddr src_addr, void* dest_buffer, std::size_t size);
+ void ReadBlock(Common::ProcessAddress src_addr, void* dest_buffer, std::size_t size);
/**
* Reads a contiguous block of bytes from the current process' address space.
@@ -358,30 +339,7 @@ public:
* @post The range [dest_buffer, size) contains the read bytes from the
* current process' address space.
*/
- void ReadBlockUnsafe(VAddr src_addr, void* dest_buffer, std::size_t size);
-
- /**
- * Writes a range of bytes into a given process' address space at the specified
- * virtual address.
- *
- * @param process The process to write data into the address space of.
- * @param dest_addr The destination virtual address to begin writing the data at.
- * @param src_buffer The data to write into the process' address space.
- * @param size The size of the data to write, in bytes.
- *
- * @post The address range [dest_addr, size) in the process' address space
- * contains the data that was within src_buffer.
- *
- * @post If an attempt is made to write into an unmapped region of memory, the writes
- * will be ignored and an error will be logged.
- *
- * @post If a write is performed into a region of memory that is considered cached
- * rasterizer memory, will cause the currently active rasterizer to be notified
- * and will mark that region as invalidated to caches that the active
- * graphics backend may be maintaining over the course of execution.
- */
- void WriteBlock(const Kernel::KProcess& process, VAddr dest_addr, const void* src_buffer,
- std::size_t size);
+ void ReadBlockUnsafe(Common::ProcessAddress src_addr, void* dest_buffer, std::size_t size);
/**
* Writes a range of bytes into the current process' address space at the specified
@@ -402,7 +360,7 @@ public:
* and will mark that region as invalidated to caches that the active
* graphics backend may be maintaining over the course of execution.
*/
- void WriteBlock(VAddr dest_addr, const void* src_buffer, std::size_t size);
+ void WriteBlock(Common::ProcessAddress dest_addr, const void* src_buffer, std::size_t size);
/**
* Writes a range of bytes into the current process' address space at the specified
@@ -420,13 +378,13 @@ public:
* will be ignored and an error will be logged.
*
*/
- void WriteBlockUnsafe(VAddr dest_addr, const void* src_buffer, std::size_t size);
+ void WriteBlockUnsafe(Common::ProcessAddress dest_addr, const void* src_buffer,
+ std::size_t size);
/**
* Copies data within a process' address space to another location within the
* same address space.
*
- * @param process The process that will have data copied within its address space.
* @param dest_addr The destination virtual address to begin copying the data into.
* @param src_addr The source virtual address to begin copying the data from.
* @param size The size of the data to copy, in bytes.
@@ -434,54 +392,50 @@ public:
* @post The range [dest_addr, size) within the process' address space contains the
* same data within the range [src_addr, size).
*/
- void CopyBlock(const Kernel::KProcess& process, VAddr dest_addr, VAddr src_addr,
+ void CopyBlock(Common::ProcessAddress dest_addr, Common::ProcessAddress src_addr,
std::size_t size);
/**
* Zeros a range of bytes within the current process' address space at the specified
* virtual address.
*
- * @param process The process that will have data zeroed within its address space.
* @param dest_addr The destination virtual address to zero the data from.
* @param size The size of the range to zero out, in bytes.
*
* @post The range [dest_addr, size) within the process' address space contains the
* value 0.
*/
- void ZeroBlock(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size);
+ void ZeroBlock(Common::ProcessAddress dest_addr, std::size_t size);
/**
* Invalidates a range of bytes within the current process' address space at the specified
* virtual address.
*
- * @param process The process that will have data invalidated within its address space.
* @param dest_addr The destination virtual address to invalidate the data from.
* @param size The size of the range to invalidate, in bytes.
*
*/
- Result InvalidateDataCache(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size);
+ Result InvalidateDataCache(Common::ProcessAddress dest_addr, std::size_t size);
/**
* Stores a range of bytes within the current process' address space at the specified
* virtual address.
*
- * @param process The process that will have data stored within its address space.
* @param dest_addr The destination virtual address to store the data from.
* @param size The size of the range to store, in bytes.
*
*/
- Result StoreDataCache(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size);
+ Result StoreDataCache(Common::ProcessAddress dest_addr, std::size_t size);
/**
* Flushes a range of bytes within the current process' address space at the specified
* virtual address.
*
- * @param process The process that will have data flushed within its address space.
* @param dest_addr The destination virtual address to flush the data from.
* @param size The size of the range to flush, in bytes.
*
*/
- Result FlushDataCache(const Kernel::KProcess& process, VAddr dest_addr, std::size_t size);
+ Result FlushDataCache(Common::ProcessAddress dest_addr, std::size_t size);
/**
* Marks each page within the specified address range as cached or uncached.
@@ -491,7 +445,7 @@ public:
* @param cached Whether or not any pages within the address range should be
* marked as cached or uncached.
*/
- void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached);
+ void RasterizerMarkRegionCached(Common::ProcessAddress vaddr, u64 size, bool cached);
/**
* Marks each page within the specified address range as debug or non-debug.
@@ -502,7 +456,7 @@ public:
* @param debug Whether or not any pages within the address range should be
* marked as debug or non-debug.
*/
- void MarkRegionDebug(VAddr vaddr, u64 size, bool debug);
+ void MarkRegionDebug(Common::ProcessAddress vaddr, u64 size, bool debug);
private:
Core::System& system;
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index ffdbacc18..8742dd164 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -39,16 +39,21 @@ StandardVmCallbacks::StandardVmCallbacks(System& system_, const CheatProcessMeta
StandardVmCallbacks::~StandardVmCallbacks() = default;
void StandardVmCallbacks::MemoryRead(VAddr address, void* data, u64 size) {
- system.Memory().ReadBlock(SanitizeAddress(address), data, size);
+ system.ApplicationMemory().ReadBlock(SanitizeAddress(address), data, size);
}
void StandardVmCallbacks::MemoryWrite(VAddr address, const void* data, u64 size) {
- system.Memory().WriteBlock(SanitizeAddress(address), data, size);
+ system.ApplicationMemory().WriteBlock(SanitizeAddress(address), data, size);
}
u64 StandardVmCallbacks::HidKeysDown() {
- const auto applet_resource =
- system.ServiceManager().GetService<Service::HID::Hid>("hid")->GetAppletResource();
+ const auto hid = system.ServiceManager().GetService<Service::HID::Hid>("hid");
+ if (hid == nullptr) {
+ LOG_WARNING(CheatEngine, "Attempted to read input state, but hid is not initialized!");
+ return 0;
+ }
+
+ const auto applet_resource = hid->GetAppletResource();
if (applet_resource == nullptr) {
LOG_WARNING(CheatEngine,
"Attempted to read input state, but applet resource is not initialized!");
@@ -191,22 +196,22 @@ void CheatEngine::Initialize() {
});
core_timing.ScheduleLoopingEvent(CHEAT_ENGINE_NS, CHEAT_ENGINE_NS, event);
- metadata.process_id = system.CurrentProcess()->GetProcessID();
- metadata.title_id = system.GetCurrentProcessProgramID();
+ metadata.process_id = system.ApplicationProcess()->GetProcessId();
+ metadata.title_id = system.GetApplicationProcessProgramID();
- const auto& page_table = system.CurrentProcess()->PageTable();
+ const auto& page_table = system.ApplicationProcess()->PageTable();
metadata.heap_extents = {
- .base = page_table.GetHeapRegionStart(),
+ .base = GetInteger(page_table.GetHeapRegionStart()),
.size = page_table.GetHeapRegionSize(),
};
metadata.address_space_extents = {
- .base = page_table.GetAddressSpaceStart(),
+ .base = GetInteger(page_table.GetAddressSpaceStart()),
.size = page_table.GetAddressSpaceSize(),
};
metadata.alias_extents = {
- .base = page_table.GetAliasCodeRegionStart(),
+ .base = GetInteger(page_table.GetAliasCodeRegionStart()),
.size = page_table.GetAliasCodeRegionSize(),
};
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp
index f09c176f8..1231c0dc8 100644
--- a/src/core/perf_stats.cpp
+++ b/src/core/perf_stats.cpp
@@ -126,8 +126,8 @@ double PerfStats::GetLastFrameTimeScale() const {
}
void SpeedLimiter::DoSpeedLimiting(microseconds current_system_time_us) {
- if (!Settings::values.use_speed_limit.GetValue() ||
- Settings::values.use_multi_core.GetValue()) {
+ if (Settings::values.use_multi_core.GetValue() ||
+ !Settings::values.use_speed_limit.GetValue()) {
return;
}
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp
index 77821e047..6c3dc7369 100644
--- a/src/core/reporter.cpp
+++ b/src/core/reporter.cpp
@@ -17,10 +17,10 @@
#include "common/settings.h"
#include "core/arm/arm_interface.h"
#include "core/core.h"
-#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/kernel/k_page_table.h"
#include "core/hle/kernel/k_process.h"
#include "core/hle/result.h"
+#include "core/hle/service/hle_ipc.h"
#include "core/memory.h"
#include "core/reporter.h"
@@ -110,15 +110,15 @@ json GetProcessorStateData(const std::string& architecture, u64 entry_point, u64
}
json GetProcessorStateDataAuto(Core::System& system) {
- const auto* process{system.CurrentProcess()};
+ const auto* process{system.ApplicationProcess()};
auto& arm{system.CurrentArmInterface()};
Core::ARM_Interface::ThreadContext64 context{};
arm.SaveContext(context);
return GetProcessorStateData(process->Is64BitProcess() ? "AArch64" : "AArch32",
- process->PageTable().GetCodeRegionStart(), context.sp, context.pc,
- context.pstate, context.cpu_registers);
+ GetInteger(process->PageTable().GetCodeRegionStart()), context.sp,
+ context.pc, context.pstate, context.cpu_registers);
}
json GetBacktraceData(Core::System& system) {
@@ -170,7 +170,7 @@ json GetHLEBufferDescriptorData(const std::vector<DescriptorType>& buffer,
return buffer_out;
}
-json GetHLERequestContextData(Kernel::HLERequestContext& ctx, Core::Memory::Memory& memory) {
+json GetHLERequestContextData(Service::HLERequestContext& ctx, Core::Memory::Memory& memory) {
json out;
auto cmd_buf = json::array();
@@ -234,7 +234,7 @@ void Reporter::SaveSvcBreakReport(u32 type, bool signal_debugger, u64 info1, u64
}
const auto timestamp = GetTimestamp();
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
auto out = GetFullDataAuto(timestamp, title_id, system);
auto break_out = json{
@@ -253,7 +253,7 @@ void Reporter::SaveSvcBreakReport(u32 type, bool signal_debugger, u64 info1, u64
SaveToFile(out, GetPath("svc_break_report", title_id, timestamp));
}
-void Reporter::SaveUnimplementedFunctionReport(Kernel::HLERequestContext& ctx, u32 command_id,
+void Reporter::SaveUnimplementedFunctionReport(Service::HLERequestContext& ctx, u32 command_id,
const std::string& name,
const std::string& service_name) const {
if (!IsReportingEnabled()) {
@@ -261,10 +261,10 @@ void Reporter::SaveUnimplementedFunctionReport(Kernel::HLERequestContext& ctx, u
}
const auto timestamp = GetTimestamp();
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
auto out = GetFullDataAuto(timestamp, title_id, system);
- auto function_out = GetHLERequestContextData(ctx, system.Memory());
+ auto function_out = GetHLERequestContextData(ctx, system.ApplicationMemory());
function_out["command_id"] = command_id;
function_out["function_name"] = name;
function_out["service_name"] = service_name;
@@ -283,7 +283,7 @@ void Reporter::SaveUnimplementedAppletReport(
}
const auto timestamp = GetTimestamp();
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
auto out = GetFullDataAuto(timestamp, title_id, system);
out["applet_common_args"] = {
@@ -312,7 +312,7 @@ void Reporter::SaveUnimplementedAppletReport(
}
void Reporter::SavePlayReport(PlayReportType type, u64 title_id,
- const std::vector<std::vector<u8>>& data,
+ const std::vector<std::span<const u8>>& data,
std::optional<u64> process_id, std::optional<u128> user_id) const {
if (!IsReportingEnabled()) {
return;
@@ -376,7 +376,7 @@ void Reporter::SaveUserReport() const {
}
const auto timestamp = GetTimestamp();
- const auto title_id = system.GetCurrentProcessProgramID();
+ const auto title_id = system.GetApplicationProcessProgramID();
SaveToFile(GetFullDataAuto(timestamp, title_id, system),
GetPath("user_report", title_id, timestamp));
diff --git a/src/core/reporter.h b/src/core/reporter.h
index 9fdb9d6c1..db1ca3ba0 100644
--- a/src/core/reporter.h
+++ b/src/core/reporter.h
@@ -5,15 +5,16 @@
#include <array>
#include <optional>
+#include <span>
#include <string>
#include <vector>
#include "common/common_types.h"
union Result;
-namespace Kernel {
+namespace Service {
class HLERequestContext;
-} // namespace Kernel
+} // namespace Service
namespace Service::LM {
struct LogMessage;
@@ -39,7 +40,7 @@ public:
const std::optional<std::vector<u8>>& resolved_buffer = {}) const;
// Used by HLE service handler
- void SaveUnimplementedFunctionReport(Kernel::HLERequestContext& ctx, u32 command_id,
+ void SaveUnimplementedFunctionReport(Service::HLERequestContext& ctx, u32 command_id,
const std::string& name,
const std::string& service_name) const;
@@ -56,7 +57,8 @@ public:
System,
};
- void SavePlayReport(PlayReportType type, u64 title_id, const std::vector<std::vector<u8>>& data,
+ void SavePlayReport(PlayReportType type, u64 title_id,
+ const std::vector<std::span<const u8>>& data,
std::optional<u64> process_id = {}, std::optional<u128> user_id = {}) const;
// Used by error applet
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp
index 8d5f2be2f..7a2f3c90a 100644
--- a/src/core/telemetry_session.cpp
+++ b/src/core/telemetry_session.cpp
@@ -34,7 +34,7 @@ static u64 GenerateTelemetryId() {
mbedtls_entropy_context entropy;
mbedtls_entropy_init(&entropy);
mbedtls_ctr_drbg_context ctr_drbg;
- constexpr std::array<char, 18> personalization{{"yuzu Telemetry ID"}};
+ static constexpr std::array<char, 18> personalization{{"yuzu Telemetry ID"}};
mbedtls_ctr_drbg_init(&ctr_drbg);
ASSERT(mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy,
@@ -85,6 +85,20 @@ static const char* TranslateNvdecEmulation(Settings::NvdecEmulation backend) {
return "Unknown";
}
+static constexpr const char* TranslateVSyncMode(Settings::VSyncMode mode) {
+ switch (mode) {
+ case Settings::VSyncMode::Immediate:
+ return "Immediate";
+ case Settings::VSyncMode::Mailbox:
+ return "Mailbox";
+ case Settings::VSyncMode::FIFO:
+ return "FIFO";
+ case Settings::VSyncMode::FIFORelaxed:
+ return "FIFO Relaxed";
+ }
+ return "Unknown";
+}
+
u64 GetTelemetryId() {
u64 telemetry_id{};
const auto filename = Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir) / "telemetry_id";
@@ -241,7 +255,8 @@ void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader,
AddField(field_type, "Renderer_NvdecEmulation",
TranslateNvdecEmulation(Settings::values.nvdec_emulation.GetValue()));
AddField(field_type, "Renderer_AccelerateASTC", Settings::values.accelerate_astc.GetValue());
- AddField(field_type, "Renderer_UseVsync", Settings::values.use_vsync.GetValue());
+ AddField(field_type, "Renderer_UseVsync",
+ TranslateVSyncMode(Settings::values.vsync_mode.GetValue()));
AddField(field_type, "Renderer_ShaderBackend",
static_cast<u32>(Settings::values.shader_backend.GetValue()));
AddField(field_type, "Renderer_UseAsynchronousShaders",
diff --git a/src/dedicated_room/yuzu_room.cpp b/src/dedicated_room/yuzu_room.cpp
index 359891883..d707dabe2 100644
--- a/src/dedicated_room/yuzu_room.cpp
+++ b/src/dedicated_room/yuzu_room.cpp
@@ -49,6 +49,7 @@ static void PrintHelp(const char* argv0) {
" [options] <filename>\n"
"--room-name The name of the room\n"
"--room-description The room description\n"
+ "--bind-address The bind address for the room\n"
"--port The port used for the room\n"
"--max_members The maximum number of players for this room\n"
"--password The password for the room\n"
@@ -195,6 +196,7 @@ int main(int argc, char** argv) {
std::string web_api_url;
std::string ban_list_file;
std::string log_file = "yuzu-room.log";
+ std::string bind_address;
u64 preferred_game_id = 0;
u32 port = Network::DefaultRoomPort;
u32 max_members = 16;
@@ -203,6 +205,7 @@ int main(int argc, char** argv) {
static struct option long_options[] = {
{"room-name", required_argument, 0, 'n'},
{"room-description", required_argument, 0, 'd'},
+ {"bind-address", required_argument, 0, 's'},
{"port", required_argument, 0, 'p'},
{"max_members", required_argument, 0, 'm'},
{"password", required_argument, 0, 'w'},
@@ -222,7 +225,8 @@ int main(int argc, char** argv) {
InitializeLogging(log_file);
while (optind < argc) {
- int arg = getopt_long(argc, argv, "n:d:p:m:w:g:u:t:a:i:l:hv", long_options, &option_index);
+ int arg =
+ getopt_long(argc, argv, "n:d:s:p:m:w:g:u:t:a:i:l:hv", long_options, &option_index);
if (arg != -1) {
switch (static_cast<char>(arg)) {
case 'n':
@@ -231,6 +235,9 @@ int main(int argc, char** argv) {
case 'd':
room_description.assign(optarg);
break;
+ case 's':
+ bind_address.assign(optarg);
+ break;
case 'p':
port = strtoul(optarg, &endarg, 0);
break;
@@ -295,6 +302,9 @@ int main(int argc, char** argv) {
PrintHelp(argv[0]);
return -1;
}
+ if (bind_address.empty()) {
+ LOG_INFO(Network, "Bind address is empty: defaulting to 0.0.0.0");
+ }
if (port > UINT16_MAX) {
LOG_ERROR(Network, "Port needs to be in the range 0 - 65535!");
PrintHelp(argv[0]);
@@ -358,8 +368,8 @@ int main(int argc, char** argv) {
if (auto room = network.GetRoom().lock()) {
AnnounceMultiplayerRoom::GameInfo preferred_game_info{.name = preferred_game,
.id = preferred_game_id};
- if (!room->Create(room_name, room_description, "", port, password, max_members, username,
- preferred_game_info, std::move(verify_backend), ban_list,
+ if (!room->Create(room_name, room_description, bind_address, port, password, max_members,
+ username, preferred_game_info, std::move(verify_backend), ban_list,
enable_yuzu_mods)) {
LOG_INFO(Network, "Failed to create room: ");
return -1;
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt
index cef2c4d52..322c29065 100644
--- a/src/input_common/CMakeLists.txt
+++ b/src/input_common/CMakeLists.txt
@@ -51,8 +51,29 @@ endif()
if (ENABLE_SDL2)
target_sources(input_common PRIVATE
+ drivers/joycon.cpp
+ drivers/joycon.h
drivers/sdl_driver.cpp
drivers/sdl_driver.h
+ helpers/joycon_driver.cpp
+ helpers/joycon_driver.h
+ helpers/joycon_protocol/calibration.cpp
+ helpers/joycon_protocol/calibration.h
+ helpers/joycon_protocol/common_protocol.cpp
+ helpers/joycon_protocol/common_protocol.h
+ helpers/joycon_protocol/generic_functions.cpp
+ helpers/joycon_protocol/generic_functions.h
+ helpers/joycon_protocol/joycon_types.h
+ helpers/joycon_protocol/irs.cpp
+ helpers/joycon_protocol/irs.h
+ helpers/joycon_protocol/nfc.cpp
+ helpers/joycon_protocol/nfc.h
+ helpers/joycon_protocol/poller.cpp
+ helpers/joycon_protocol/poller.h
+ helpers/joycon_protocol/ringcon.cpp
+ helpers/joycon_protocol/ringcon.h
+ helpers/joycon_protocol/rumble.cpp
+ helpers/joycon_protocol/rumble.h
)
target_link_libraries(input_common PRIVATE SDL2::SDL2)
target_compile_definitions(input_common PRIVATE HAVE_SDL2)
@@ -68,7 +89,7 @@ if (ENABLE_LIBUSB)
endif()
create_target_directory_groups(input_common)
-target_link_libraries(input_common PUBLIC core PRIVATE common Boost::boost)
+target_link_libraries(input_common PUBLIC core PRIVATE common Boost::headers)
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(input_common PRIVATE precompiled_headers.h)
diff --git a/src/input_common/drivers/camera.cpp b/src/input_common/drivers/camera.cpp
index fad9177dc..04970f635 100644
--- a/src/input_common/drivers/camera.cpp
+++ b/src/input_common/drivers/camera.cpp
@@ -72,11 +72,11 @@ std::size_t Camera::getImageHeight() const {
}
}
-Common::Input::CameraError Camera::SetCameraFormat(
+Common::Input::DriverResult Camera::SetCameraFormat(
[[maybe_unused]] const PadIdentifier& identifier_,
const Common::Input::CameraFormat camera_format) {
status.format = camera_format;
- return Common::Input::CameraError::None;
+ return Common::Input::DriverResult::Success;
}
} // namespace InputCommon
diff --git a/src/input_common/drivers/camera.h b/src/input_common/drivers/camera.h
index ead3e0fde..24b27e325 100644
--- a/src/input_common/drivers/camera.h
+++ b/src/input_common/drivers/camera.h
@@ -22,8 +22,8 @@ public:
std::size_t getImageWidth() const;
std::size_t getImageHeight() const;
- Common::Input::CameraError SetCameraFormat(const PadIdentifier& identifier_,
- Common::Input::CameraFormat camera_format) override;
+ Common::Input::DriverResult SetCameraFormat(const PadIdentifier& identifier_,
+ Common::Input::CameraFormat camera_format) override;
private:
Common::Input::CameraStatus status{};
diff --git a/src/input_common/drivers/gc_adapter.cpp b/src/input_common/drivers/gc_adapter.cpp
index 826fa2109..3ad34884d 100644
--- a/src/input_common/drivers/gc_adapter.cpp
+++ b/src/input_common/drivers/gc_adapter.cpp
@@ -6,6 +6,7 @@
#include "common/logging/log.h"
#include "common/param_package.h"
+#include "common/polyfill_thread.h"
#include "common/settings_input.h"
#include "common/thread.h"
#include "input_common/drivers/gc_adapter.h"
@@ -217,8 +218,7 @@ void GCAdapter::AdapterScanThread(std::stop_token stop_token) {
Common::SetCurrentThreadName("ScanGCAdapter");
usb_adapter_handle = nullptr;
pads = {};
- while (!stop_token.stop_requested() && !Setup()) {
- std::this_thread::sleep_for(std::chrono::seconds(2));
+ while (!Setup() && Common::StoppableTimedWait(stop_token, std::chrono::seconds{2})) {
}
}
@@ -324,7 +324,7 @@ bool GCAdapter::GetGCEndpoint(libusb_device* device) {
return true;
}
-Common::Input::VibrationError GCAdapter::SetVibration(
+Common::Input::DriverResult GCAdapter::SetVibration(
const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) {
const auto mean_amplitude = (vibration.low_amplitude + vibration.high_amplitude) * 0.5f;
const auto processed_amplitude =
@@ -333,9 +333,9 @@ Common::Input::VibrationError GCAdapter::SetVibration(
pads[identifier.port].rumble_amplitude = processed_amplitude;
if (!rumble_enabled) {
- return Common::Input::VibrationError::Disabled;
+ return Common::Input::DriverResult::Disabled;
}
- return Common::Input::VibrationError::None;
+ return Common::Input::DriverResult::Success;
}
bool GCAdapter::IsVibrationEnabled([[maybe_unused]] const PadIdentifier& identifier) {
@@ -344,7 +344,7 @@ bool GCAdapter::IsVibrationEnabled([[maybe_unused]] const PadIdentifier& identif
void GCAdapter::UpdateVibrations() {
// Use 8 states to keep the switching between on/off fast enough for
- // a human to feel different vibration strenght
+ // a human to feel different vibration strength
// More states == more rumble strengths == slower update time
constexpr u8 vibration_states = 8;
diff --git a/src/input_common/drivers/gc_adapter.h b/src/input_common/drivers/gc_adapter.h
index b5270fd0b..3c2eb376d 100644
--- a/src/input_common/drivers/gc_adapter.h
+++ b/src/input_common/drivers/gc_adapter.h
@@ -25,7 +25,7 @@ public:
explicit GCAdapter(std::string input_engine_);
~GCAdapter() override;
- Common::Input::VibrationError SetVibration(
+ Common::Input::DriverResult SetVibration(
const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) override;
bool IsVibrationEnabled(const PadIdentifier& identifier) override;
diff --git a/src/input_common/drivers/joycon.cpp b/src/input_common/drivers/joycon.cpp
new file mode 100644
index 000000000..52494e0d9
--- /dev/null
+++ b/src/input_common/drivers/joycon.cpp
@@ -0,0 +1,844 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <fmt/format.h>
+
+#include "common/param_package.h"
+#include "common/polyfill_ranges.h"
+#include "common/polyfill_thread.h"
+#include "common/settings.h"
+#include "common/thread.h"
+#include "input_common/drivers/joycon.h"
+#include "input_common/helpers/joycon_driver.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon {
+
+Joycons::Joycons(const std::string& input_engine_) : InputEngine(input_engine_) {
+ // Avoid conflicting with SDL driver
+ if (!Settings::values.enable_joycon_driver && !Settings::values.enable_procon_driver) {
+ return;
+ }
+ LOG_INFO(Input, "Joycon driver Initialization started");
+ const int init_res = SDL_hid_init();
+ if (init_res == 0) {
+ Setup();
+ } else {
+ LOG_ERROR(Input, "Hidapi could not be initialized. failed with error = {}", init_res);
+ }
+}
+
+Joycons::~Joycons() {
+ Reset();
+}
+
+void Joycons::Reset() {
+ scan_thread = {};
+ for (const auto& device : left_joycons) {
+ if (!device) {
+ continue;
+ }
+ device->Stop();
+ }
+ for (const auto& device : right_joycons) {
+ if (!device) {
+ continue;
+ }
+ device->Stop();
+ }
+ for (const auto& device : pro_controller) {
+ if (!device) {
+ continue;
+ }
+ device->Stop();
+ }
+ SDL_hid_exit();
+}
+
+void Joycons::Setup() {
+ u32 port = 0;
+ PreSetController(GetIdentifier(0, Joycon::ControllerType::None));
+ for (auto& device : left_joycons) {
+ PreSetController(GetIdentifier(port, Joycon::ControllerType::Left));
+ device = std::make_shared<Joycon::JoyconDriver>(port++);
+ }
+ port = 0;
+ for (auto& device : right_joycons) {
+ PreSetController(GetIdentifier(port, Joycon::ControllerType::Right));
+ device = std::make_shared<Joycon::JoyconDriver>(port++);
+ }
+ port = 0;
+ for (auto& device : pro_controller) {
+ PreSetController(GetIdentifier(port, Joycon::ControllerType::Pro));
+ device = std::make_shared<Joycon::JoyconDriver>(port++);
+ }
+
+ scan_thread = std::jthread([this](std::stop_token stop_token) { ScanThread(stop_token); });
+}
+
+void Joycons::ScanThread(std::stop_token stop_token) {
+ constexpr u16 nintendo_vendor_id = 0x057e;
+ Common::SetCurrentThreadName("JoyconScanThread");
+
+ do {
+ SDL_hid_device_info* devs = SDL_hid_enumerate(nintendo_vendor_id, 0x0);
+ SDL_hid_device_info* cur_dev = devs;
+
+ while (cur_dev) {
+ if (IsDeviceNew(cur_dev)) {
+ LOG_DEBUG(Input, "Device Found,type : {:04X} {:04X}", cur_dev->vendor_id,
+ cur_dev->product_id);
+ RegisterNewDevice(cur_dev);
+ }
+ cur_dev = cur_dev->next;
+ }
+
+ SDL_hid_free_enumeration(devs);
+ } while (Common::StoppableTimedWait(stop_token, std::chrono::seconds{5}));
+}
+
+bool Joycons::IsDeviceNew(SDL_hid_device_info* device_info) const {
+ Joycon::ControllerType type{};
+ Joycon::SerialNumber serial_number{};
+
+ const auto result = Joycon::JoyconDriver::GetDeviceType(device_info, type);
+ if (result != Joycon::DriverResult::Success) {
+ return false;
+ }
+
+ const auto result2 = Joycon::JoyconDriver::GetSerialNumber(device_info, serial_number);
+ if (result2 != Joycon::DriverResult::Success) {
+ return false;
+ }
+
+ auto is_handle_identical = [serial_number](std::shared_ptr<Joycon::JoyconDriver> device) {
+ if (!device) {
+ return false;
+ }
+ if (!device->IsConnected()) {
+ return false;
+ }
+ if (device->GetHandleSerialNumber() != serial_number) {
+ return false;
+ }
+ return true;
+ };
+
+ // Check if device already exist
+ switch (type) {
+ case Joycon::ControllerType::Left:
+ if (!Settings::values.enable_joycon_driver) {
+ return false;
+ }
+ for (const auto& device : left_joycons) {
+ if (is_handle_identical(device)) {
+ return false;
+ }
+ }
+ break;
+ case Joycon::ControllerType::Right:
+ if (!Settings::values.enable_joycon_driver) {
+ return false;
+ }
+ for (const auto& device : right_joycons) {
+ if (is_handle_identical(device)) {
+ return false;
+ }
+ }
+ break;
+ case Joycon::ControllerType::Pro:
+ if (!Settings::values.enable_procon_driver) {
+ return false;
+ }
+ for (const auto& device : pro_controller) {
+ if (is_handle_identical(device)) {
+ return false;
+ }
+ }
+ break;
+ default:
+ return false;
+ }
+
+ return true;
+}
+
+void Joycons::RegisterNewDevice(SDL_hid_device_info* device_info) {
+ Joycon::ControllerType type{};
+ auto result = Joycon::JoyconDriver::GetDeviceType(device_info, type);
+ auto handle = GetNextFreeHandle(type);
+ if (handle == nullptr) {
+ LOG_WARNING(Input, "No free handles available");
+ return;
+ }
+ if (result == Joycon::DriverResult::Success) {
+ result = handle->RequestDeviceAccess(device_info);
+ }
+ if (result == Joycon::DriverResult::Success) {
+ LOG_WARNING(Input, "Initialize device");
+
+ const std::size_t port = handle->GetDevicePort();
+ const Joycon::JoyconCallbacks callbacks{
+ .on_battery_data = {[this, port, type](Joycon::Battery value) {
+ OnBatteryUpdate(port, type, value);
+ }},
+ .on_color_data = {[this, port, type](Joycon::Color value) {
+ OnColorUpdate(port, type, value);
+ }},
+ .on_button_data = {[this, port, type](int id, bool value) {
+ OnButtonUpdate(port, type, id, value);
+ }},
+ .on_stick_data = {[this, port, type](int id, f32 value) {
+ OnStickUpdate(port, type, id, value);
+ }},
+ .on_motion_data = {[this, port, type](int id, const Joycon::MotionData& value) {
+ OnMotionUpdate(port, type, id, value);
+ }},
+ .on_ring_data = {[this](f32 ring_data) { OnRingConUpdate(ring_data); }},
+ .on_amiibo_data = {[this, port, type](const Joycon::TagInfo& tag_info) {
+ OnAmiiboUpdate(port, type, tag_info);
+ }},
+ .on_camera_data = {[this, port](const std::vector<u8>& camera_data,
+ Joycon::IrsResolution format) {
+ OnCameraUpdate(port, camera_data, format);
+ }},
+ };
+
+ handle->InitializeDevice();
+ handle->SetCallbacks(callbacks);
+ }
+}
+
+std::shared_ptr<Joycon::JoyconDriver> Joycons::GetNextFreeHandle(
+ Joycon::ControllerType type) const {
+ if (type == Joycon::ControllerType::Left) {
+ const auto unconnected_device =
+ std::ranges::find_if(left_joycons, [](auto& device) { return !device->IsConnected(); });
+ if (unconnected_device != left_joycons.end()) {
+ return *unconnected_device;
+ }
+ }
+ if (type == Joycon::ControllerType::Right) {
+ const auto unconnected_device = std::ranges::find_if(
+ right_joycons, [](auto& device) { return !device->IsConnected(); });
+
+ if (unconnected_device != right_joycons.end()) {
+ return *unconnected_device;
+ }
+ }
+ if (type == Joycon::ControllerType::Pro) {
+ const auto unconnected_device = std::ranges::find_if(
+ pro_controller, [](auto& device) { return !device->IsConnected(); });
+
+ if (unconnected_device != pro_controller.end()) {
+ return *unconnected_device;
+ }
+ }
+ return nullptr;
+}
+
+bool Joycons::IsVibrationEnabled(const PadIdentifier& identifier) {
+ const auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return false;
+ }
+ return handle->IsVibrationEnabled();
+}
+
+Common::Input::DriverResult Joycons::SetVibration(const PadIdentifier& identifier,
+ const Common::Input::VibrationStatus& vibration) {
+ const Joycon::VibrationValue native_vibration{
+ .low_amplitude = vibration.low_amplitude,
+ .low_frequency = vibration.low_frequency,
+ .high_amplitude = vibration.high_amplitude,
+ .high_frequency = vibration.high_frequency,
+ };
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::DriverResult::InvalidHandle;
+ }
+
+ handle->SetVibration(native_vibration);
+ return Common::Input::DriverResult::Success;
+}
+
+Common::Input::DriverResult Joycons::SetLeds(const PadIdentifier& identifier,
+ const Common::Input::LedStatus& led_status) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::DriverResult::InvalidHandle;
+ }
+ int led_config = led_status.led_1 ? 1 : 0;
+ led_config += led_status.led_2 ? 2 : 0;
+ led_config += led_status.led_3 ? 4 : 0;
+ led_config += led_status.led_4 ? 8 : 0;
+
+ return static_cast<Common::Input::DriverResult>(
+ handle->SetLedConfig(static_cast<u8>(led_config)));
+}
+
+Common::Input::DriverResult Joycons::SetCameraFormat(const PadIdentifier& identifier,
+ Common::Input::CameraFormat camera_format) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::DriverResult::InvalidHandle;
+ }
+ return static_cast<Common::Input::DriverResult>(handle->SetIrsConfig(
+ Joycon::IrsMode::ImageTransfer, static_cast<Joycon::IrsResolution>(camera_format)));
+};
+
+Common::Input::NfcState Joycons::SupportsNfc(const PadIdentifier& identifier_) const {
+ return Common::Input::NfcState::Success;
+};
+
+Common::Input::NfcState Joycons::StartNfcPolling(const PadIdentifier& identifier) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::NfcState::Unknown;
+ }
+ return TranslateDriverResult(handle->StartNfcPolling());
+};
+
+Common::Input::NfcState Joycons::StopNfcPolling(const PadIdentifier& identifier) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::NfcState::Unknown;
+ }
+ return TranslateDriverResult(handle->StopNfcPolling());
+};
+
+Common::Input::NfcState Joycons::ReadAmiiboData(const PadIdentifier& identifier,
+ std::vector<u8>& out_data) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::NfcState::Unknown;
+ }
+ return TranslateDriverResult(handle->ReadAmiiboData(out_data));
+}
+
+Common::Input::NfcState Joycons::WriteNfcData(const PadIdentifier& identifier,
+ const std::vector<u8>& data) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::NfcState::Unknown;
+ }
+ return TranslateDriverResult(handle->WriteNfcData(data));
+};
+
+Common::Input::NfcState Joycons::ReadMifareData(const PadIdentifier& identifier,
+ const Common::Input::MifareRequest& request,
+ Common::Input::MifareRequest& data) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::NfcState::Unknown;
+ }
+
+ const auto command = static_cast<Joycon::MifareCmd>(request.data[0].command);
+ std::vector<Joycon::MifareReadChunk> read_request{};
+ for (const auto& request_data : request.data) {
+ if (request_data.command == 0) {
+ continue;
+ }
+ Joycon::MifareReadChunk chunk = {
+ .command = command,
+ .sector_key = {},
+ .sector = request_data.sector,
+ };
+ memcpy(chunk.sector_key.data(), request_data.key.data(),
+ sizeof(Joycon::MifareReadChunk::sector_key));
+ read_request.emplace_back(chunk);
+ }
+
+ std::vector<Joycon::MifareReadData> read_data(read_request.size());
+ const auto result = handle->ReadMifareData(read_request, read_data);
+ if (result == Joycon::DriverResult::Success) {
+ for (std::size_t i = 0; i < read_request.size(); i++) {
+ data.data[i] = {
+ .command = static_cast<u8>(command),
+ .sector = read_data[i].sector,
+ .key = {},
+ .data = read_data[i].data,
+ };
+ }
+ }
+ return TranslateDriverResult(result);
+};
+
+Common::Input::NfcState Joycons::WriteMifareData(const PadIdentifier& identifier,
+ const Common::Input::MifareRequest& request) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ return Common::Input::NfcState::Unknown;
+ }
+
+ const auto command = static_cast<Joycon::MifareCmd>(request.data[0].command);
+ std::vector<Joycon::MifareWriteChunk> write_request{};
+ for (const auto& request_data : request.data) {
+ if (request_data.command == 0) {
+ continue;
+ }
+ Joycon::MifareWriteChunk chunk = {
+ .command = command,
+ .sector_key = {},
+ .sector = request_data.sector,
+ .data = {},
+ };
+ memcpy(chunk.sector_key.data(), request_data.key.data(),
+ sizeof(Joycon::MifareReadChunk::sector_key));
+ memcpy(chunk.data.data(), request_data.data.data(), sizeof(Joycon::MifareWriteChunk::data));
+ write_request.emplace_back(chunk);
+ }
+
+ return TranslateDriverResult(handle->WriteMifareData(write_request));
+};
+
+Common::Input::DriverResult Joycons::SetPollingMode(const PadIdentifier& identifier,
+ const Common::Input::PollingMode polling_mode) {
+ auto handle = GetHandle(identifier);
+ if (handle == nullptr) {
+ LOG_ERROR(Input, "Invalid handle {}", identifier.port);
+ return Common::Input::DriverResult::InvalidHandle;
+ }
+
+ switch (polling_mode) {
+ case Common::Input::PollingMode::Active:
+ return static_cast<Common::Input::DriverResult>(handle->SetActiveMode());
+ case Common::Input::PollingMode::Passive:
+ return static_cast<Common::Input::DriverResult>(handle->SetPassiveMode());
+ case Common::Input::PollingMode::IR:
+ return static_cast<Common::Input::DriverResult>(handle->SetIrMode());
+ case Common::Input::PollingMode::NFC:
+ return static_cast<Common::Input::DriverResult>(handle->SetNfcMode());
+ case Common::Input::PollingMode::Ring:
+ return static_cast<Common::Input::DriverResult>(handle->SetRingConMode());
+ default:
+ return Common::Input::DriverResult::NotSupported;
+ }
+}
+
+void Joycons::OnBatteryUpdate(std::size_t port, Joycon::ControllerType type,
+ Joycon::Battery value) {
+ const auto identifier = GetIdentifier(port, type);
+ if (value.charging != 0) {
+ SetBattery(identifier, Common::Input::BatteryLevel::Charging);
+ return;
+ }
+
+ Common::Input::BatteryLevel battery{};
+ switch (value.status) {
+ case 0:
+ battery = Common::Input::BatteryLevel::Empty;
+ break;
+ case 1:
+ battery = Common::Input::BatteryLevel::Critical;
+ break;
+ case 2:
+ battery = Common::Input::BatteryLevel::Low;
+ break;
+ case 3:
+ battery = Common::Input::BatteryLevel::Medium;
+ break;
+ case 4:
+ default:
+ battery = Common::Input::BatteryLevel::Full;
+ break;
+ }
+ SetBattery(identifier, battery);
+}
+
+void Joycons::OnColorUpdate(std::size_t port, Joycon::ControllerType type,
+ const Joycon::Color& value) {
+ const auto identifier = GetIdentifier(port, type);
+ Common::Input::BodyColorStatus color{
+ .body = value.body,
+ .buttons = value.buttons,
+ .left_grip = value.left_grip,
+ .right_grip = value.right_grip,
+ };
+ SetColor(identifier, color);
+}
+
+void Joycons::OnButtonUpdate(std::size_t port, Joycon::ControllerType type, int id, bool value) {
+ const auto identifier = GetIdentifier(port, type);
+ SetButton(identifier, id, value);
+}
+
+void Joycons::OnStickUpdate(std::size_t port, Joycon::ControllerType type, int id, f32 value) {
+ const auto identifier = GetIdentifier(port, type);
+ SetAxis(identifier, id, value);
+}
+
+void Joycons::OnMotionUpdate(std::size_t port, Joycon::ControllerType type, int id,
+ const Joycon::MotionData& value) {
+ const auto identifier = GetIdentifier(port, type);
+ BasicMotion motion_data{
+ .gyro_x = value.gyro_x,
+ .gyro_y = value.gyro_y,
+ .gyro_z = value.gyro_z,
+ .accel_x = value.accel_x,
+ .accel_y = value.accel_y,
+ .accel_z = value.accel_z,
+ .delta_timestamp = 15000,
+ };
+ SetMotion(identifier, id, motion_data);
+}
+
+void Joycons::OnRingConUpdate(f32 ring_data) {
+ // To simplify ring detection it will always be mapped to an empty identifier for all
+ // controllers
+ static constexpr PadIdentifier identifier = {
+ .guid = Common::UUID{},
+ .port = 0,
+ .pad = 0,
+ };
+ SetAxis(identifier, 100, ring_data);
+}
+
+void Joycons::OnAmiiboUpdate(std::size_t port, Joycon::ControllerType type,
+ const Joycon::TagInfo& tag_info) {
+ const auto identifier = GetIdentifier(port, type);
+ const auto nfc_state = tag_info.uuid_length == 0 ? Common::Input::NfcState::AmiiboRemoved
+ : Common::Input::NfcState::NewAmiibo;
+
+ const Common::Input::NfcStatus nfc_status{
+ .state = nfc_state,
+ .uuid_length = tag_info.uuid_length,
+ .protocol = tag_info.protocol,
+ .tag_type = tag_info.tag_type,
+ .uuid = tag_info.uuid,
+ };
+
+ SetNfc(identifier, nfc_status);
+}
+
+void Joycons::OnCameraUpdate(std::size_t port, const std::vector<u8>& camera_data,
+ Joycon::IrsResolution format) {
+ const auto identifier = GetIdentifier(port, Joycon::ControllerType::Right);
+ SetCamera(identifier, {static_cast<Common::Input::CameraFormat>(format), camera_data});
+}
+
+std::shared_ptr<Joycon::JoyconDriver> Joycons::GetHandle(PadIdentifier identifier) const {
+ auto is_handle_active = [&](std::shared_ptr<Joycon::JoyconDriver> device) {
+ if (!device) {
+ return false;
+ }
+ if (!device->IsConnected()) {
+ return false;
+ }
+ if (device->GetDevicePort() == identifier.port) {
+ return true;
+ }
+ return false;
+ };
+ const auto type = static_cast<Joycon::ControllerType>(identifier.pad);
+
+ if (type == Joycon::ControllerType::Left) {
+ const auto matching_device = std::ranges::find_if(
+ left_joycons, [is_handle_active](auto& device) { return is_handle_active(device); });
+
+ if (matching_device != left_joycons.end()) {
+ return *matching_device;
+ }
+ }
+
+ if (type == Joycon::ControllerType::Right) {
+ const auto matching_device = std::ranges::find_if(
+ right_joycons, [is_handle_active](auto& device) { return is_handle_active(device); });
+
+ if (matching_device != right_joycons.end()) {
+ return *matching_device;
+ }
+ }
+
+ if (type == Joycon::ControllerType::Pro) {
+ const auto matching_device = std::ranges::find_if(
+ pro_controller, [is_handle_active](auto& device) { return is_handle_active(device); });
+
+ if (matching_device != pro_controller.end()) {
+ return *matching_device;
+ }
+ }
+
+ return nullptr;
+}
+
+PadIdentifier Joycons::GetIdentifier(std::size_t port, Joycon::ControllerType type) const {
+ const std::array<u8, 16> guid{0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, static_cast<u8>(type)};
+ return {
+ .guid = Common::UUID{guid},
+ .port = port,
+ .pad = static_cast<std::size_t>(type),
+ };
+}
+
+Common::ParamPackage Joycons::GetParamPackage(std::size_t port, Joycon::ControllerType type) const {
+ const auto identifier = GetIdentifier(port, type);
+ return {
+ {"engine", GetEngineName()},
+ {"guid", identifier.guid.RawString()},
+ {"port", std::to_string(identifier.port)},
+ {"pad", std::to_string(identifier.pad)},
+ };
+}
+
+std::vector<Common::ParamPackage> Joycons::GetInputDevices() const {
+ std::vector<Common::ParamPackage> devices{};
+
+ auto add_entry = [&](std::shared_ptr<Joycon::JoyconDriver> device) {
+ if (!device) {
+ return;
+ }
+ if (!device->IsConnected()) {
+ return;
+ }
+ auto param = GetParamPackage(device->GetDevicePort(), device->GetHandleDeviceType());
+ std::string name = fmt::format("{} {}", JoyconName(device->GetHandleDeviceType()),
+ device->GetDevicePort() + 1);
+ param.Set("display", std::move(name));
+ devices.emplace_back(param);
+ };
+
+ for (const auto& controller : left_joycons) {
+ add_entry(controller);
+ }
+ for (const auto& controller : right_joycons) {
+ add_entry(controller);
+ }
+ for (const auto& controller : pro_controller) {
+ add_entry(controller);
+ }
+
+ // List dual joycon pairs
+ for (std::size_t i = 0; i < MaxSupportedControllers; i++) {
+ if (!left_joycons[i] || !right_joycons[i]) {
+ continue;
+ }
+ if (!left_joycons[i]->IsConnected() || !right_joycons[i]->IsConnected()) {
+ continue;
+ }
+ auto main_param = GetParamPackage(i, left_joycons[i]->GetHandleDeviceType());
+ const auto second_param = GetParamPackage(i, right_joycons[i]->GetHandleDeviceType());
+ const auto type = Joycon::ControllerType::Dual;
+ std::string name = fmt::format("{} {}", JoyconName(type), i + 1);
+
+ main_param.Set("display", std::move(name));
+ main_param.Set("guid2", second_param.Get("guid", ""));
+ main_param.Set("pad", std::to_string(static_cast<size_t>(type)));
+ devices.emplace_back(main_param);
+ }
+
+ return devices;
+}
+
+ButtonMapping Joycons::GetButtonMappingForDevice(const Common::ParamPackage& params) {
+ static constexpr std::array<std::tuple<Settings::NativeButton::Values, Joycon::PadButton, bool>,
+ 18>
+ switch_to_joycon_button = {
+ std::tuple{Settings::NativeButton::A, Joycon::PadButton::A, true},
+ {Settings::NativeButton::B, Joycon::PadButton::B, true},
+ {Settings::NativeButton::X, Joycon::PadButton::X, true},
+ {Settings::NativeButton::Y, Joycon::PadButton::Y, true},
+ {Settings::NativeButton::DLeft, Joycon::PadButton::Left, false},
+ {Settings::NativeButton::DUp, Joycon::PadButton::Up, false},
+ {Settings::NativeButton::DRight, Joycon::PadButton::Right, false},
+ {Settings::NativeButton::DDown, Joycon::PadButton::Down, false},
+ {Settings::NativeButton::L, Joycon::PadButton::L, false},
+ {Settings::NativeButton::R, Joycon::PadButton::R, true},
+ {Settings::NativeButton::ZL, Joycon::PadButton::ZL, false},
+ {Settings::NativeButton::ZR, Joycon::PadButton::ZR, true},
+ {Settings::NativeButton::Plus, Joycon::PadButton::Plus, true},
+ {Settings::NativeButton::Minus, Joycon::PadButton::Minus, false},
+ {Settings::NativeButton::Home, Joycon::PadButton::Home, true},
+ {Settings::NativeButton::Screenshot, Joycon::PadButton::Capture, false},
+ {Settings::NativeButton::LStick, Joycon::PadButton::StickL, false},
+ {Settings::NativeButton::RStick, Joycon::PadButton::StickR, true},
+ };
+
+ if (!params.Has("port")) {
+ return {};
+ }
+
+ ButtonMapping mapping{};
+ for (const auto& [switch_button, joycon_button, side] : switch_to_joycon_button) {
+ const std::size_t port = static_cast<std::size_t>(params.Get("port", 0));
+ auto pad = static_cast<Joycon::ControllerType>(params.Get("pad", 0));
+ if (pad == Joycon::ControllerType::Dual) {
+ pad = side ? Joycon::ControllerType::Right : Joycon::ControllerType::Left;
+ }
+
+ Common::ParamPackage button_params = GetParamPackage(port, pad);
+ button_params.Set("button", static_cast<int>(joycon_button));
+ mapping.insert_or_assign(switch_button, std::move(button_params));
+ }
+
+ // Map SL and SR buttons for left joycons
+ if (params.Get("pad", 0) == static_cast<int>(Joycon::ControllerType::Left)) {
+ const std::size_t port = static_cast<std::size_t>(params.Get("port", 0));
+ Common::ParamPackage button_params = GetParamPackage(port, Joycon::ControllerType::Left);
+
+ Common::ParamPackage sl_button_params = button_params;
+ Common::ParamPackage sr_button_params = button_params;
+ sl_button_params.Set("button", static_cast<int>(Joycon::PadButton::LeftSL));
+ sr_button_params.Set("button", static_cast<int>(Joycon::PadButton::LeftSR));
+ mapping.insert_or_assign(Settings::NativeButton::SL, std::move(sl_button_params));
+ mapping.insert_or_assign(Settings::NativeButton::SR, std::move(sr_button_params));
+ }
+
+ // Map SL and SR buttons for right joycons
+ if (params.Get("pad", 0) == static_cast<int>(Joycon::ControllerType::Right)) {
+ const std::size_t port = static_cast<std::size_t>(params.Get("port", 0));
+ Common::ParamPackage button_params = GetParamPackage(port, Joycon::ControllerType::Right);
+
+ Common::ParamPackage sl_button_params = button_params;
+ Common::ParamPackage sr_button_params = button_params;
+ sl_button_params.Set("button", static_cast<int>(Joycon::PadButton::RightSL));
+ sr_button_params.Set("button", static_cast<int>(Joycon::PadButton::RightSR));
+ mapping.insert_or_assign(Settings::NativeButton::SL, std::move(sl_button_params));
+ mapping.insert_or_assign(Settings::NativeButton::SR, std::move(sr_button_params));
+ }
+
+ return mapping;
+}
+
+AnalogMapping Joycons::GetAnalogMappingForDevice(const Common::ParamPackage& params) {
+ if (!params.Has("port")) {
+ return {};
+ }
+
+ const std::size_t port = static_cast<std::size_t>(params.Get("port", 0));
+ auto pad_left = static_cast<Joycon::ControllerType>(params.Get("pad", 0));
+ auto pad_right = pad_left;
+ if (pad_left == Joycon::ControllerType::Dual) {
+ pad_left = Joycon::ControllerType::Left;
+ pad_right = Joycon::ControllerType::Right;
+ }
+
+ AnalogMapping mapping = {};
+ Common::ParamPackage left_analog_params = GetParamPackage(port, pad_left);
+ left_analog_params.Set("axis_x", static_cast<int>(Joycon::PadAxes::LeftStickX));
+ left_analog_params.Set("axis_y", static_cast<int>(Joycon::PadAxes::LeftStickY));
+ mapping.insert_or_assign(Settings::NativeAnalog::LStick, std::move(left_analog_params));
+ Common::ParamPackage right_analog_params = GetParamPackage(port, pad_right);
+ right_analog_params.Set("axis_x", static_cast<int>(Joycon::PadAxes::RightStickX));
+ right_analog_params.Set("axis_y", static_cast<int>(Joycon::PadAxes::RightStickY));
+ mapping.insert_or_assign(Settings::NativeAnalog::RStick, std::move(right_analog_params));
+ return mapping;
+}
+
+MotionMapping Joycons::GetMotionMappingForDevice(const Common::ParamPackage& params) {
+ if (!params.Has("port")) {
+ return {};
+ }
+
+ const std::size_t port = static_cast<std::size_t>(params.Get("port", 0));
+ auto pad_left = static_cast<Joycon::ControllerType>(params.Get("pad", 0));
+ auto pad_right = pad_left;
+ if (pad_left == Joycon::ControllerType::Dual) {
+ pad_left = Joycon::ControllerType::Left;
+ pad_right = Joycon::ControllerType::Right;
+ }
+
+ MotionMapping mapping = {};
+ Common::ParamPackage left_motion_params = GetParamPackage(port, pad_left);
+ left_motion_params.Set("motion", 0);
+ mapping.insert_or_assign(Settings::NativeMotion::MotionLeft, std::move(left_motion_params));
+ Common::ParamPackage right_Motion_params = GetParamPackage(port, pad_right);
+ right_Motion_params.Set("motion", 1);
+ mapping.insert_or_assign(Settings::NativeMotion::MotionRight, std::move(right_Motion_params));
+ return mapping;
+}
+
+Common::Input::ButtonNames Joycons::GetUIButtonName(const Common::ParamPackage& params) const {
+ const auto button = static_cast<Joycon::PadButton>(params.Get("button", 0));
+ switch (button) {
+ case Joycon::PadButton::Left:
+ return Common::Input::ButtonNames::ButtonLeft;
+ case Joycon::PadButton::Right:
+ return Common::Input::ButtonNames::ButtonRight;
+ case Joycon::PadButton::Down:
+ return Common::Input::ButtonNames::ButtonDown;
+ case Joycon::PadButton::Up:
+ return Common::Input::ButtonNames::ButtonUp;
+ case Joycon::PadButton::LeftSL:
+ case Joycon::PadButton::RightSL:
+ return Common::Input::ButtonNames::TriggerSL;
+ case Joycon::PadButton::LeftSR:
+ case Joycon::PadButton::RightSR:
+ return Common::Input::ButtonNames::TriggerSR;
+ case Joycon::PadButton::L:
+ return Common::Input::ButtonNames::TriggerL;
+ case Joycon::PadButton::R:
+ return Common::Input::ButtonNames::TriggerR;
+ case Joycon::PadButton::ZL:
+ return Common::Input::ButtonNames::TriggerZL;
+ case Joycon::PadButton::ZR:
+ return Common::Input::ButtonNames::TriggerZR;
+ case Joycon::PadButton::A:
+ return Common::Input::ButtonNames::ButtonA;
+ case Joycon::PadButton::B:
+ return Common::Input::ButtonNames::ButtonB;
+ case Joycon::PadButton::X:
+ return Common::Input::ButtonNames::ButtonX;
+ case Joycon::PadButton::Y:
+ return Common::Input::ButtonNames::ButtonY;
+ case Joycon::PadButton::Plus:
+ return Common::Input::ButtonNames::ButtonPlus;
+ case Joycon::PadButton::Minus:
+ return Common::Input::ButtonNames::ButtonMinus;
+ case Joycon::PadButton::Home:
+ return Common::Input::ButtonNames::ButtonHome;
+ case Joycon::PadButton::Capture:
+ return Common::Input::ButtonNames::ButtonCapture;
+ case Joycon::PadButton::StickL:
+ return Common::Input::ButtonNames::ButtonStickL;
+ case Joycon::PadButton::StickR:
+ return Common::Input::ButtonNames::ButtonStickR;
+ default:
+ return Common::Input::ButtonNames::Undefined;
+ }
+}
+
+Common::Input::ButtonNames Joycons::GetUIName(const Common::ParamPackage& params) const {
+ if (params.Has("button")) {
+ return GetUIButtonName(params);
+ }
+ if (params.Has("axis")) {
+ return Common::Input::ButtonNames::Value;
+ }
+ if (params.Has("motion")) {
+ return Common::Input::ButtonNames::Engine;
+ }
+
+ return Common::Input::ButtonNames::Invalid;
+}
+
+std::string Joycons::JoyconName(Joycon::ControllerType type) const {
+ switch (type) {
+ case Joycon::ControllerType::Left:
+ return "Left Joycon";
+ case Joycon::ControllerType::Right:
+ return "Right Joycon";
+ case Joycon::ControllerType::Pro:
+ return "Pro Controller";
+ case Joycon::ControllerType::Dual:
+ return "Dual Joycon";
+ default:
+ return "Unknown Switch Controller";
+ }
+}
+
+Common::Input::NfcState Joycons::TranslateDriverResult(Joycon::DriverResult result) const {
+ switch (result) {
+ case Joycon::DriverResult::Success:
+ return Common::Input::NfcState::Success;
+ case Joycon::DriverResult::Disabled:
+ return Common::Input::NfcState::WrongDeviceState;
+ case Joycon::DriverResult::NotSupported:
+ return Common::Input::NfcState::NotSupported;
+ default:
+ return Common::Input::NfcState::Unknown;
+ }
+}
+
+} // namespace InputCommon
diff --git a/src/input_common/drivers/joycon.h b/src/input_common/drivers/joycon.h
new file mode 100644
index 000000000..4c323d7d6
--- /dev/null
+++ b/src/input_common/drivers/joycon.h
@@ -0,0 +1,125 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <array>
+#include <span>
+#include <thread>
+#include <SDL_hidapi.h>
+
+#include "input_common/input_engine.h"
+
+namespace InputCommon::Joycon {
+using SerialNumber = std::array<u8, 15>;
+struct Battery;
+struct Color;
+struct MotionData;
+struct TagInfo;
+enum class ControllerType : u8;
+enum class DriverResult;
+enum class IrsResolution;
+class JoyconDriver;
+} // namespace InputCommon::Joycon
+
+namespace InputCommon {
+
+class Joycons final : public InputCommon::InputEngine {
+public:
+ explicit Joycons(const std::string& input_engine_);
+
+ ~Joycons();
+
+ bool IsVibrationEnabled(const PadIdentifier& identifier) override;
+ Common::Input::DriverResult SetVibration(
+ const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) override;
+
+ Common::Input::DriverResult SetLeds(const PadIdentifier& identifier,
+ const Common::Input::LedStatus& led_status) override;
+
+ Common::Input::DriverResult SetCameraFormat(const PadIdentifier& identifier,
+ Common::Input::CameraFormat camera_format) override;
+
+ Common::Input::NfcState SupportsNfc(const PadIdentifier& identifier) const override;
+ Common::Input::NfcState StartNfcPolling(const PadIdentifier& identifier) override;
+ Common::Input::NfcState StopNfcPolling(const PadIdentifier& identifier) override;
+ Common::Input::NfcState ReadAmiiboData(const PadIdentifier& identifier,
+ std::vector<u8>& out_data) override;
+ Common::Input::NfcState WriteNfcData(const PadIdentifier& identifier,
+ const std::vector<u8>& data) override;
+ Common::Input::NfcState ReadMifareData(const PadIdentifier& identifier,
+ const Common::Input::MifareRequest& request,
+ Common::Input::MifareRequest& out_data) override;
+ Common::Input::NfcState WriteMifareData(const PadIdentifier& identifier,
+ const Common::Input::MifareRequest& request) override;
+
+ Common::Input::DriverResult SetPollingMode(
+ const PadIdentifier& identifier, const Common::Input::PollingMode polling_mode) override;
+
+ /// Used for automapping features
+ std::vector<Common::ParamPackage> GetInputDevices() const override;
+ ButtonMapping GetButtonMappingForDevice(const Common::ParamPackage& params) override;
+ AnalogMapping GetAnalogMappingForDevice(const Common::ParamPackage& params) override;
+ MotionMapping GetMotionMappingForDevice(const Common::ParamPackage& params) override;
+ Common::Input::ButtonNames GetUIName(const Common::ParamPackage& params) const override;
+
+private:
+ static constexpr std::size_t MaxSupportedControllers = 8;
+
+ /// For shutting down, clear all data, join all threads, release usb devices
+ void Reset();
+
+ /// Registers controllers, clears all data and starts the scan thread
+ void Setup();
+
+ /// Actively searches for new devices
+ void ScanThread(std::stop_token stop_token);
+
+ /// Returns true if device is valid and not registered
+ bool IsDeviceNew(SDL_hid_device_info* device_info) const;
+
+ /// Tries to connect to the new device
+ void RegisterNewDevice(SDL_hid_device_info* device_info);
+
+ /// Returns the next free handle
+ std::shared_ptr<Joycon::JoyconDriver> GetNextFreeHandle(Joycon::ControllerType type) const;
+
+ void OnBatteryUpdate(std::size_t port, Joycon::ControllerType type, Joycon::Battery value);
+ void OnColorUpdate(std::size_t port, Joycon::ControllerType type, const Joycon::Color& value);
+ void OnButtonUpdate(std::size_t port, Joycon::ControllerType type, int id, bool value);
+ void OnStickUpdate(std::size_t port, Joycon::ControllerType type, int id, f32 value);
+ void OnMotionUpdate(std::size_t port, Joycon::ControllerType type, int id,
+ const Joycon::MotionData& value);
+ void OnRingConUpdate(f32 ring_data);
+ void OnAmiiboUpdate(std::size_t port, Joycon::ControllerType type,
+ const Joycon::TagInfo& amiibo_data);
+ void OnCameraUpdate(std::size_t port, const std::vector<u8>& camera_data,
+ Joycon::IrsResolution format);
+
+ /// Returns a JoyconHandle corresponding to a PadIdentifier
+ std::shared_ptr<Joycon::JoyconDriver> GetHandle(PadIdentifier identifier) const;
+
+ /// Returns a PadIdentifier corresponding to the port number and joycon type
+ PadIdentifier GetIdentifier(std::size_t port, Joycon::ControllerType type) const;
+
+ /// Returns a ParamPackage corresponding to the port number and joycon type
+ Common::ParamPackage GetParamPackage(std::size_t port, Joycon::ControllerType type) const;
+
+ std::string JoyconName(std::size_t port) const;
+
+ Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const;
+
+ /// Returns the name of the device in text format
+ std::string JoyconName(Joycon::ControllerType type) const;
+
+ Common::Input::NfcState TranslateDriverResult(Joycon::DriverResult result) const;
+
+ std::jthread scan_thread;
+
+ // Joycon types are split by type to ease supporting dualjoycon configurations
+ std::array<std::shared_ptr<Joycon::JoyconDriver>, MaxSupportedControllers> left_joycons{};
+ std::array<std::shared_ptr<Joycon::JoyconDriver>, MaxSupportedControllers> right_joycons{};
+ std::array<std::shared_ptr<Joycon::JoyconDriver>, MaxSupportedControllers> pro_controller{};
+};
+
+} // namespace InputCommon
diff --git a/src/input_common/drivers/keyboard.cpp b/src/input_common/drivers/keyboard.cpp
index 71e612fbf..2567df9af 100644
--- a/src/input_common/drivers/keyboard.cpp
+++ b/src/input_common/drivers/keyboard.cpp
@@ -24,7 +24,7 @@ constexpr PadIdentifier keyboard_modifier_identifier = {
};
Keyboard::Keyboard(std::string input_engine_) : InputEngine(std::move(input_engine_)) {
- // Keyboard is broken into 3 diferent sets:
+ // Keyboard is broken into 3 different sets:
// key: Unfiltered intended for controllers.
// keyboard_key: Allows only Settings::NativeKeyboard::Keys intended for keyboard emulation.
// keyboard_modifier: Allows only Settings::NativeKeyboard::Modifiers intended for keyboard
diff --git a/src/input_common/drivers/mouse.cpp b/src/input_common/drivers/mouse.cpp
index faf9cbdc3..f07cf8a0e 100644
--- a/src/input_common/drivers/mouse.cpp
+++ b/src/input_common/drivers/mouse.cpp
@@ -3,6 +3,7 @@
#include <thread>
#include <fmt/format.h>
+#include <math.h>
#include "common/param_package.h"
#include "common/settings.h"
@@ -10,135 +11,232 @@
#include "input_common/drivers/mouse.h"
namespace InputCommon {
+constexpr int update_time = 10;
+constexpr float default_stick_sensitivity = 0.0044f;
+constexpr float default_motion_sensitivity = 0.0003f;
+constexpr float maximum_rotation_speed = 2.0f;
constexpr int mouse_axis_x = 0;
constexpr int mouse_axis_y = 1;
constexpr int wheel_axis_x = 2;
constexpr int wheel_axis_y = 3;
-constexpr int motion_wheel_y = 4;
-constexpr int touch_axis_x = 10;
-constexpr int touch_axis_y = 11;
constexpr PadIdentifier identifier = {
.guid = Common::UUID{},
.port = 0,
.pad = 0,
};
+constexpr PadIdentifier motion_identifier = {
+ .guid = Common::UUID{},
+ .port = 0,
+ .pad = 1,
+};
+
+constexpr PadIdentifier real_mouse_identifier = {
+ .guid = Common::UUID{},
+ .port = 1,
+ .pad = 0,
+};
+
+constexpr PadIdentifier touch_identifier = {
+ .guid = Common::UUID{},
+ .port = 2,
+ .pad = 0,
+};
+
Mouse::Mouse(std::string input_engine_) : InputEngine(std::move(input_engine_)) {
PreSetController(identifier);
+ PreSetController(real_mouse_identifier);
+ PreSetController(touch_identifier);
+ PreSetController(motion_identifier);
+
+ // Initialize all mouse axis
PreSetAxis(identifier, mouse_axis_x);
PreSetAxis(identifier, mouse_axis_y);
PreSetAxis(identifier, wheel_axis_x);
PreSetAxis(identifier, wheel_axis_y);
- PreSetAxis(identifier, motion_wheel_y);
- PreSetAxis(identifier, touch_axis_x);
- PreSetAxis(identifier, touch_axis_y);
+ PreSetAxis(real_mouse_identifier, mouse_axis_x);
+ PreSetAxis(real_mouse_identifier, mouse_axis_y);
+ PreSetAxis(touch_identifier, mouse_axis_x);
+ PreSetAxis(touch_identifier, mouse_axis_y);
+
+ // Initialize variables
+ mouse_origin = {};
+ last_mouse_position = {};
+ wheel_position = {};
+ last_mouse_change = {};
+ last_motion_change = {};
+
update_thread = std::jthread([this](std::stop_token stop_token) { UpdateThread(stop_token); });
}
void Mouse::UpdateThread(std::stop_token stop_token) {
Common::SetCurrentThreadName("Mouse");
- constexpr int update_time = 10;
+
while (!stop_token.stop_requested()) {
- if (Settings::values.mouse_panning && !Settings::values.mouse_enabled) {
- // Slow movement by 4%
- last_mouse_change *= 0.96f;
- const float sensitivity =
- Settings::values.mouse_panning_sensitivity.GetValue() * 0.022f;
- SetAxis(identifier, mouse_axis_x, last_mouse_change.x * sensitivity);
- SetAxis(identifier, mouse_axis_y, -last_mouse_change.y * sensitivity);
- }
-
- SetAxis(identifier, motion_wheel_y, 0.0f);
-
- if (mouse_panning_timout++ > 20) {
- StopPanning();
- }
+ UpdateStickInput();
+ UpdateMotionInput();
+
std::this_thread::sleep_for(std::chrono::milliseconds(update_time));
}
}
-void Mouse::MouseMove(int x, int y, f32 touch_x, f32 touch_y, int center_x, int center_y) {
- // If native mouse is enabled just set the screen coordinates
- if (Settings::values.mouse_enabled) {
- SetAxis(identifier, mouse_axis_x, touch_x);
- SetAxis(identifier, mouse_axis_y, touch_y);
+void Mouse::UpdateStickInput() {
+ if (!Settings::values.mouse_panning) {
return;
}
- SetAxis(identifier, touch_axis_x, touch_x);
- SetAxis(identifier, touch_axis_y, touch_y);
+ const float length = last_mouse_change.Length();
- if (Settings::values.mouse_panning) {
- auto mouse_change =
- (Common::MakeVec(x, y) - Common::MakeVec(center_x, center_y)).Cast<float>();
- mouse_panning_timout = 0;
+ // Prevent input from exceeding the max range (1.0f) too much,
+ // but allow some room to make it easier to sustain
+ if (length > 1.2f) {
+ last_mouse_change /= length;
+ last_mouse_change *= 1.2f;
+ }
+
+ auto mouse_change = last_mouse_change;
+
+ // Bind the mouse change to [0 <= deadzone_counterweight <= 1,1]
+ if (length < 1.0f) {
+ const float deadzone_h_counterweight =
+ Settings::values.mouse_panning_deadzone_x_counterweight.GetValue();
+ const float deadzone_v_counterweight =
+ Settings::values.mouse_panning_deadzone_y_counterweight.GetValue();
+ mouse_change /= length;
+ mouse_change.x *= length + (1 - length) * deadzone_h_counterweight * 0.01f;
+ mouse_change.y *= length + (1 - length) * deadzone_v_counterweight * 0.01f;
+ }
+
+ SetAxis(identifier, mouse_axis_x, mouse_change.x);
+ SetAxis(identifier, mouse_axis_y, -mouse_change.y);
+
+ // 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;
+}
- const auto move_distance = mouse_change.Length();
- if (move_distance == 0) {
- return;
- }
+void Mouse::UpdateMotionInput() {
+ // This may need its own sensitivity instead of using the average
+ const float sensitivity = (Settings::values.mouse_panning_x_sensitivity.GetValue() +
+ Settings::values.mouse_panning_y_sensitivity.GetValue()) /
+ 2.0f * default_motion_sensitivity;
- // Make slow movements at least 3 units on lenght
- if (move_distance < 3.0f) {
- // Normalize value
- mouse_change /= move_distance;
- mouse_change *= 3.0f;
- }
+ const float rotation_velocity = std::sqrt(last_motion_change.x * last_motion_change.x +
+ last_motion_change.y * last_motion_change.y);
- // Average mouse movements
- last_mouse_change = (last_mouse_change * 0.91f) + (mouse_change * 0.09f);
+ if (rotation_velocity > maximum_rotation_speed / sensitivity) {
+ const float multiplier = maximum_rotation_speed / rotation_velocity / sensitivity;
+ last_motion_change.x = last_motion_change.x * multiplier;
+ last_motion_change.y = last_motion_change.y * multiplier;
+ }
- const auto last_move_distance = last_mouse_change.Length();
+ const BasicMotion motion_data{
+ .gyro_x = last_motion_change.x * sensitivity,
+ .gyro_y = last_motion_change.y * sensitivity,
+ .gyro_z = last_motion_change.z * sensitivity,
+ .accel_x = 0,
+ .accel_y = 0,
+ .accel_z = 0,
+ .delta_timestamp = update_time * 1000,
+ };
- // Make fast movements clamp to 8 units on lenght
- if (last_move_distance > 8.0f) {
- // Normalize value
- last_mouse_change /= last_move_distance;
- last_mouse_change *= 8.0f;
- }
+ if (Settings::values.mouse_panning) {
+ last_motion_change.x = 0;
+ last_motion_change.y = 0;
+ }
+ last_motion_change.z = 0;
- // Ignore average if it's less than 1 unit and use current movement value
- if (last_move_distance < 1.0f) {
- last_mouse_change = mouse_change / mouse_change.Length();
- }
+ SetMotion(motion_identifier, 0, motion_data);
+}
+
+void Mouse::Move(int x, int y, int center_x, int center_y) {
+ if (Settings::values.mouse_panning) {
+ const auto mouse_change =
+ (Common::MakeVec(x, y) - Common::MakeVec(center_x, center_y)).Cast<float>();
+ 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;
+
+ last_motion_change += {-mouse_change.y, -mouse_change.x, 0};
+ last_mouse_change.x += mouse_change.x * x_sensitivity * 0.09f;
+ last_mouse_change.y += mouse_change.y * y_sensitivity * 0.09f;
return;
}
if (button_pressed) {
const auto mouse_move = Common::MakeVec<int>(x, y) - mouse_origin;
- const float sensitivity = Settings::values.mouse_panning_sensitivity.GetValue() * 0.0012f;
- SetAxis(identifier, mouse_axis_x, static_cast<float>(mouse_move.x) * sensitivity);
- SetAxis(identifier, mouse_axis_y, static_cast<float>(-mouse_move.y) * sensitivity);
+ const float x_sensitivity = Settings::values.mouse_panning_x_sensitivity.GetValue();
+ const float y_sensitivity = Settings::values.mouse_panning_y_sensitivity.GetValue();
+ SetAxis(identifier, mouse_axis_x,
+ static_cast<float>(mouse_move.x) * x_sensitivity * 0.0012f);
+ SetAxis(identifier, mouse_axis_y,
+ static_cast<float>(-mouse_move.y) * y_sensitivity * 0.0012f);
+
+ last_motion_change = {
+ static_cast<float>(-mouse_move.y) / 50.0f,
+ static_cast<float>(-mouse_move.x) / 50.0f,
+ last_motion_change.z,
+ };
}
}
-void Mouse::PressButton(int x, int y, f32 touch_x, f32 touch_y, MouseButton button) {
- SetAxis(identifier, touch_axis_x, touch_x);
- SetAxis(identifier, touch_axis_y, touch_y);
+void Mouse::MouseMove(f32 touch_x, f32 touch_y) {
+ SetAxis(real_mouse_identifier, mouse_axis_x, touch_x);
+ SetAxis(real_mouse_identifier, mouse_axis_y, touch_y);
+}
+
+void Mouse::TouchMove(f32 touch_x, f32 touch_y) {
+ SetAxis(touch_identifier, mouse_axis_x, touch_x);
+ SetAxis(touch_identifier, mouse_axis_y, touch_y);
+}
+
+void Mouse::PressButton(int x, int y, MouseButton button) {
SetButton(identifier, static_cast<int>(button), true);
+
// Set initial analog parameters
mouse_origin = {x, y};
last_mouse_position = {x, y};
button_pressed = true;
}
+void Mouse::PressMouseButton(MouseButton button) {
+ SetButton(real_mouse_identifier, static_cast<int>(button), true);
+}
+
+void Mouse::PressTouchButton(f32 touch_x, f32 touch_y, MouseButton button) {
+ SetAxis(touch_identifier, mouse_axis_x, touch_x);
+ SetAxis(touch_identifier, mouse_axis_y, touch_y);
+ SetButton(touch_identifier, static_cast<int>(button), true);
+}
+
void Mouse::ReleaseButton(MouseButton button) {
SetButton(identifier, static_cast<int>(button), false);
+ SetButton(real_mouse_identifier, static_cast<int>(button), false);
+ SetButton(touch_identifier, static_cast<int>(button), false);
- if (!Settings::values.mouse_panning && !Settings::values.mouse_enabled) {
+ if (!Settings::values.mouse_panning) {
SetAxis(identifier, mouse_axis_x, 0);
SetAxis(identifier, mouse_axis_y, 0);
}
+
+ last_motion_change.x = 0;
+ last_motion_change.y = 0;
+
button_pressed = false;
}
void Mouse::MouseWheelChange(int x, int y) {
wheel_position.x += x;
wheel_position.y += y;
+ last_motion_change.z += static_cast<f32>(y) / 100.0f;
SetAxis(identifier, wheel_axis_x, static_cast<f32>(wheel_position.x));
SetAxis(identifier, wheel_axis_y, static_cast<f32>(wheel_position.y));
- SetAxis(identifier, motion_wheel_y, static_cast<f32>(y) / 100.0f);
}
void Mouse::ReleaseAllButtons() {
@@ -146,10 +244,6 @@ void Mouse::ReleaseAllButtons() {
button_pressed = false;
}
-void Mouse::StopPanning() {
- last_mouse_change = {};
-}
-
std::vector<Common::ParamPackage> Mouse::GetInputDevices() const {
std::vector<Common::ParamPackage> devices;
devices.emplace_back(Common::ParamPackage{
@@ -207,6 +301,9 @@ Common::Input::ButtonNames Mouse::GetUIName(const Common::ParamPackage& params)
if (params.Has("axis_x") && params.Has("axis_y") && params.Has("axis_z")) {
return Common::Input::ButtonNames::Engine;
}
+ if (params.Has("motion")) {
+ return Common::Input::ButtonNames::Engine;
+ }
return Common::Input::ButtonNames::Invalid;
}
diff --git a/src/input_common/drivers/mouse.h b/src/input_common/drivers/mouse.h
index 72073cc23..0e8edcce1 100644
--- a/src/input_common/drivers/mouse.h
+++ b/src/input_common/drivers/mouse.h
@@ -37,13 +37,43 @@ public:
* @param center_x the x-coordinate of the middle of the screen
* @param center_y the y-coordinate of the middle of the screen
*/
- void MouseMove(int x, int y, f32 touch_x, f32 touch_y, int center_x, int center_y);
+ void Move(int x, int y, int center_x, int center_y);
/**
- * Sets the status of all buttons bound with the key to pressed
- * @param key_code the code of the key to press
+ * Signals that real mouse has moved.
+ * @param x the absolute position on the touchscreen of the cursor
+ * @param y the absolute position on the touchscreen of the cursor
*/
- void PressButton(int x, int y, f32 touch_x, f32 touch_y, MouseButton button);
+ void MouseMove(f32 touch_x, f32 touch_y);
+
+ /**
+ * Signals that touch finger has moved.
+ * @param x the absolute position on the touchscreen of the cursor
+ * @param y the absolute position on the touchscreen of the cursor
+ */
+ void TouchMove(f32 touch_x, f32 touch_y);
+
+ /**
+ * Sets the status of a button to pressed
+ * @param x the x-coordinate of the cursor
+ * @param y the y-coordinate of the cursor
+ * @param button the id of the button to press
+ */
+ void PressButton(int x, int y, MouseButton button);
+
+ /**
+ * Sets the status of a mouse button to pressed
+ * @param button the id of the button to press
+ */
+ void PressMouseButton(MouseButton button);
+
+ /**
+ * Sets the status of touch finger to pressed
+ * @param x the absolute position on the touchscreen of the cursor
+ * @param y the absolute position on the touchscreen of the cursor
+ * @param button the id of the button to press
+ */
+ void PressTouchButton(f32 touch_x, f32 touch_y, MouseButton button);
/**
* Sets the status of all buttons bound with the key to released
@@ -66,16 +96,17 @@ public:
private:
void UpdateThread(std::stop_token stop_token);
- void StopPanning();
+ void UpdateStickInput();
+ void UpdateMotionInput();
Common::Input::ButtonNames GetUIButtonName(const Common::ParamPackage& params) const;
Common::Vec2<int> mouse_origin;
Common::Vec2<int> last_mouse_position;
Common::Vec2<float> last_mouse_change;
+ Common::Vec3<float> last_motion_change;
Common::Vec2<int> wheel_position;
bool button_pressed;
- int mouse_panning_timout{};
std::jthread update_thread;
};
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp
index 9835d99d2..9f26392b1 100644
--- a/src/input_common/drivers/sdl_driver.cpp
+++ b/src/input_common/drivers/sdl_driver.cpp
@@ -109,14 +109,37 @@ public:
}
bool RumblePlay(const Common::Input::VibrationStatus vibration) {
- constexpr u32 rumble_max_duration_ms = 1000;
+ constexpr u32 rumble_max_duration_ms = 2000;
+ constexpr f32 low_start_sensitivity_limit = 140.0;
+ constexpr f32 low_width_sensitivity_limit = 400.0;
+ constexpr f32 high_start_sensitivity_limit = 200.0;
+ constexpr f32 high_width_sensitivity_limit = 700.0;
+ // Try to provide some feeling of the frequency by reducing the amplitude depending on it.
+ f32 low_frequency_scale = 1.0;
+ if (vibration.low_frequency > low_start_sensitivity_limit) {
+ low_frequency_scale =
+ std::max(1.0f - (vibration.low_frequency - low_start_sensitivity_limit) /
+ low_width_sensitivity_limit,
+ 0.3f);
+ }
+ f32 low_amplitude = vibration.low_amplitude * low_frequency_scale;
+
+ f32 high_frequency_scale = 1.0;
+ if (vibration.high_frequency > high_start_sensitivity_limit) {
+ high_frequency_scale =
+ std::max(1.0f - (vibration.high_frequency - high_start_sensitivity_limit) /
+ high_width_sensitivity_limit,
+ 0.3f);
+ }
+ f32 high_amplitude = vibration.high_amplitude * high_frequency_scale;
+
if (sdl_controller) {
- return SDL_GameControllerRumble(
- sdl_controller.get(), static_cast<u16>(vibration.low_amplitude),
- static_cast<u16>(vibration.high_amplitude), rumble_max_duration_ms) != -1;
+ return SDL_GameControllerRumble(sdl_controller.get(), static_cast<u16>(low_amplitude),
+ static_cast<u16>(high_amplitude),
+ rumble_max_duration_ms) != -1;
} else if (sdl_joystick) {
- return SDL_JoystickRumble(sdl_joystick.get(), static_cast<u16>(vibration.low_amplitude),
- static_cast<u16>(vibration.high_amplitude),
+ return SDL_JoystickRumble(sdl_joystick.get(), static_cast<u16>(low_amplitude),
+ static_cast<u16>(high_amplitude),
rumble_max_duration_ms) != -1;
}
@@ -127,6 +150,8 @@ public:
if (sdl_controller) {
const auto type = SDL_GameControllerGetType(sdl_controller.get());
return (type == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO) ||
+ (type == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT) ||
+ (type == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT) ||
(type == SDL_CONTROLLER_TYPE_PS5);
}
return false;
@@ -205,9 +230,8 @@ public:
return false;
}
- Common::Input::BatteryLevel GetBatteryLevel() {
- const auto level = SDL_JoystickCurrentPowerLevel(sdl_joystick.get());
- switch (level) {
+ Common::Input::BatteryLevel GetBatteryLevel(SDL_JoystickPowerLevel battery_level) {
+ switch (battery_level) {
case SDL_JOYSTICK_POWER_EMPTY:
return Common::Input::BatteryLevel::Empty;
case SDL_JOYSTICK_POWER_LOW:
@@ -334,11 +358,27 @@ void SDLDriver::InitJoystick(int joystick_index) {
const auto guid = GetGUID(sdl_joystick);
+ if (Settings::values.enable_joycon_driver) {
+ if (guid.uuid[5] == 0x05 && guid.uuid[4] == 0x7e &&
+ (guid.uuid[8] == 0x06 || guid.uuid[8] == 0x07)) {
+ LOG_WARNING(Input, "Preferring joycon driver for device index {}", joystick_index);
+ SDL_JoystickClose(sdl_joystick);
+ return;
+ }
+ }
+
+ if (Settings::values.enable_procon_driver) {
+ if (guid.uuid[5] == 0x05 && guid.uuid[4] == 0x7e && guid.uuid[8] == 0x09) {
+ LOG_WARNING(Input, "Preferring joycon driver for device index {}", joystick_index);
+ SDL_JoystickClose(sdl_joystick);
+ return;
+ }
+ }
+
std::scoped_lock lock{joystick_map_mutex};
if (joystick_map.find(guid) == joystick_map.end()) {
auto joystick = std::make_shared<SDLJoystick>(guid, 0, sdl_joystick, sdl_gamecontroller);
PreSetController(joystick->GetPadIdentifier());
- SetBattery(joystick->GetPadIdentifier(), joystick->GetBatteryLevel());
joystick->EnableMotion();
joystick_map[guid].emplace_back(std::move(joystick));
return;
@@ -358,7 +398,6 @@ void SDLDriver::InitJoystick(int joystick_index) {
const int port = static_cast<int>(joystick_guid_list.size());
auto joystick = std::make_shared<SDLJoystick>(guid, port, sdl_joystick, sdl_gamecontroller);
PreSetController(joystick->GetPadIdentifier());
- SetBattery(joystick->GetPadIdentifier(), joystick->GetBatteryLevel());
joystick->EnableMotion();
joystick_guid_list.emplace_back(std::move(joystick));
}
@@ -398,8 +437,6 @@ void SDLDriver::HandleGameControllerEvent(const SDL_Event& event) {
if (const auto joystick = GetSDLJoystickBySDLID(event.jbutton.which)) {
const PadIdentifier identifier = joystick->GetPadIdentifier();
SetButton(identifier, event.jbutton.button, true);
- // Battery doesn't trigger an event so just update every button press
- SetBattery(identifier, joystick->GetBatteryLevel());
}
break;
}
@@ -426,6 +463,13 @@ void SDLDriver::HandleGameControllerEvent(const SDL_Event& event) {
}
break;
}
+ case SDL_JOYBATTERYUPDATED: {
+ if (auto joystick = GetSDLJoystickBySDLID(event.jbattery.which)) {
+ const PadIdentifier identifier = joystick->GetPadIdentifier();
+ SetBattery(identifier, joystick->GetBatteryLevel(event.jbattery.level));
+ }
+ break;
+ }
case SDL_JOYDEVICEREMOVED:
LOG_DEBUG(Input, "Controller removed with Instance_ID {}", event.jdevice.which);
CloseJoystick(SDL_JoystickFromInstanceID(event.jdevice.which));
@@ -443,6 +487,10 @@ void SDLDriver::CloseJoysticks() {
}
SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_engine_)) {
+ // Set our application name. Currently passed to DBus by SDL and visible to the user through
+ // their desktop environment.
+ SDL_SetHint(SDL_HINT_APP_NAME, "yuzu");
+
if (!Settings::values.enable_raw_input) {
// Disable raw input. When enabled this setting causes SDL to die when a web applet opens
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0");
@@ -456,9 +504,25 @@ SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_en
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
- // Use hidapi driver for joycons. This will allow joycons to be detected as a GameController and
- // not a generic one
- SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "1");
+ // Disable hidapi drivers for joycon controllers when the custom joycon driver is enabled
+ if (Settings::values.enable_joycon_driver) {
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "0");
+ } else {
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "1");
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED, "0");
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS, "0");
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS, "1");
+ }
+
+ // Disable hidapi drivers for pro controllers when the custom joycon driver is enabled
+ if (Settings::values.enable_procon_driver) {
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH, "0");
+ } else {
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH, "1");
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED, "0");
+ }
+
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED, "1");
// Disable hidapi driver for xbox. Already default on Windows, this causes conflict with native
// driver on Linux.
@@ -548,7 +612,7 @@ std::vector<Common::ParamPackage> SDLDriver::GetInputDevices() const {
return devices;
}
-Common::Input::VibrationError SDLDriver::SetVibration(
+Common::Input::DriverResult SDLDriver::SetVibration(
const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) {
const auto joystick =
GetSDLJoystickByGUID(identifier.guid.RawString(), static_cast<int>(identifier.port));
@@ -582,14 +646,14 @@ Common::Input::VibrationError SDLDriver::SetVibration(
.vibration = new_vibration,
});
- return Common::Input::VibrationError::None;
+ return Common::Input::DriverResult::Success;
}
bool SDLDriver::IsVibrationEnabled(const PadIdentifier& identifier) {
const auto joystick =
GetSDLJoystickByGUID(identifier.guid.RawString(), static_cast<int>(identifier.port));
- constexpr Common::Input::VibrationStatus test_vibration{
+ static constexpr Common::Input::VibrationStatus test_vibration{
.low_amplitude = 1,
.low_frequency = 160.0f,
.high_amplitude = 1,
@@ -597,7 +661,7 @@ bool SDLDriver::IsVibrationEnabled(const PadIdentifier& identifier) {
.type = Common::Input::VibrationAmplificationType::Exponential,
};
- constexpr Common::Input::VibrationStatus zero_vibration{
+ static constexpr Common::Input::VibrationStatus zero_vibration{
.low_amplitude = 0,
.low_frequency = 160.0f,
.high_amplitude = 0,
@@ -625,12 +689,27 @@ bool SDLDriver::IsVibrationEnabled(const PadIdentifier& identifier) {
}
void SDLDriver::SendVibrations() {
+ std::vector<VibrationRequest> filtered_vibrations{};
while (!vibration_queue.Empty()) {
VibrationRequest request;
vibration_queue.Pop(request);
const auto joystick = GetSDLJoystickByGUID(request.identifier.guid.RawString(),
static_cast<int>(request.identifier.port));
- joystick->RumblePlay(request.vibration);
+ 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<int>(vibration.identifier.port));
+ joystick->RumblePlay(vibration.vibration);
}
}
@@ -721,10 +800,12 @@ ButtonMapping SDLDriver::GetButtonMappingForDevice(const Common::ParamPackage& p
// This list is missing ZL/ZR since those are not considered buttons in SDL GameController.
// We will add those afterwards
- // This list also excludes Screenshot since theres not really a mapping for that
+ // This list also excludes Screenshot since there's not really a mapping for that
ButtonBindings switch_to_sdl_button;
- if (SDL_GameControllerGetType(controller) == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO) {
+ if (SDL_GameControllerGetType(controller) == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO ||
+ SDL_GameControllerGetType(controller) == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT ||
+ SDL_GameControllerGetType(controller) == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT) {
switch_to_sdl_button = GetNintendoButtonBinding(joystick);
} else {
switch_to_sdl_button = GetDefaultButtonBinding();
@@ -980,7 +1061,7 @@ MotionMapping SDLDriver::GetMotionMappingForDevice(const Common::ParamPackage& p
Common::Input::ButtonNames SDLDriver::GetUIName(const Common::ParamPackage& params) const {
if (params.Has("button")) {
- // TODO(German77): Find how to substitue the values for real button names
+ // TODO(German77): Find how to substitute the values for real button names
return Common::Input::ButtonNames::Value;
}
if (params.Has("hat")) {
diff --git a/src/input_common/drivers/sdl_driver.h b/src/input_common/drivers/sdl_driver.h
index 366bcc496..ffde169b3 100644
--- a/src/input_common/drivers/sdl_driver.h
+++ b/src/input_common/drivers/sdl_driver.h
@@ -63,7 +63,7 @@ public:
bool IsStickInverted(const Common::ParamPackage& params) override;
- Common::Input::VibrationError SetVibration(
+ Common::Input::DriverResult SetVibration(
const PadIdentifier& identifier, const Common::Input::VibrationStatus& vibration) override;
bool IsVibrationEnabled(const PadIdentifier& identifier) override;
diff --git a/src/input_common/drivers/virtual_amiibo.cpp b/src/input_common/drivers/virtual_amiibo.cpp
index 63ffaca67..180eb53ef 100644
--- a/src/input_common/drivers/virtual_amiibo.cpp
+++ b/src/input_common/drivers/virtual_amiibo.cpp
@@ -22,28 +22,61 @@ VirtualAmiibo::VirtualAmiibo(std::string input_engine_) : InputEngine(std::move(
VirtualAmiibo::~VirtualAmiibo() = default;
-Common::Input::PollingError VirtualAmiibo::SetPollingMode(
+Common::Input::DriverResult VirtualAmiibo::SetPollingMode(
[[maybe_unused]] const PadIdentifier& identifier_,
const Common::Input::PollingMode polling_mode_) {
polling_mode = polling_mode_;
- if (polling_mode == Common::Input::PollingMode::NFC) {
- if (state == State::Initialized) {
- state = State::WaitingForAmiibo;
- }
- } else {
- if (state == State::AmiiboIsOpen) {
+ switch (polling_mode) {
+ case Common::Input::PollingMode::NFC:
+ state = State::Initialized;
+ return Common::Input::DriverResult::Success;
+ default:
+ if (state == State::TagNearby) {
CloseAmiibo();
}
+ state = State::Disabled;
+ return Common::Input::DriverResult::NotSupported;
}
-
- return Common::Input::PollingError::None;
}
Common::Input::NfcState VirtualAmiibo::SupportsNfc(
[[maybe_unused]] const PadIdentifier& identifier_) const {
return Common::Input::NfcState::Success;
}
+Common::Input::NfcState VirtualAmiibo::StartNfcPolling(const PadIdentifier& identifier_) {
+ if (state != State::Initialized) {
+ return Common::Input::NfcState::WrongDeviceState;
+ }
+ state = State::WaitingForAmiibo;
+ return Common::Input::NfcState::Success;
+}
+
+Common::Input::NfcState VirtualAmiibo::StopNfcPolling(const PadIdentifier& identifier_) {
+ if (state == State::Disabled) {
+ return Common::Input::NfcState::WrongDeviceState;
+ }
+ if (state == State::TagNearby) {
+ CloseAmiibo();
+ }
+ state = State::Initialized;
+ return Common::Input::NfcState::Success;
+}
+
+Common::Input::NfcState VirtualAmiibo::ReadAmiiboData(const PadIdentifier& identifier_,
+ std::vector<u8>& out_data) {
+ if (state != State::TagNearby) {
+ return Common::Input::NfcState::WrongDeviceState;
+ }
+
+ if (status.tag_type != 1U << 1) {
+ return Common::Input::NfcState::InvalidTagType;
+ }
+
+ out_data.resize(nfc_data.size());
+ memcpy(out_data.data(), nfc_data.data(), nfc_data.size());
+ return Common::Input::NfcState::Success;
+}
Common::Input::NfcState VirtualAmiibo::WriteNfcData(
[[maybe_unused]] const PadIdentifier& identifier_, const std::vector<u8>& data) {
@@ -56,7 +89,7 @@ Common::Input::NfcState VirtualAmiibo::WriteNfcData(
}
if (!nfc_file.Write(data)) {
- LOG_ERROR(Service_NFP, "Error writting to file");
+ LOG_ERROR(Service_NFP, "Error writing to file");
return Common::Input::NfcState::WriteFailed;
}
@@ -65,6 +98,69 @@ Common::Input::NfcState VirtualAmiibo::WriteNfcData(
return Common::Input::NfcState::Success;
}
+Common::Input::NfcState VirtualAmiibo::ReadMifareData(const PadIdentifier& identifier_,
+ const Common::Input::MifareRequest& request,
+ Common::Input::MifareRequest& out_data) {
+ if (state != State::TagNearby) {
+ return Common::Input::NfcState::WrongDeviceState;
+ }
+
+ if (status.tag_type != 1U << 6) {
+ return Common::Input::NfcState::InvalidTagType;
+ }
+
+ for (std::size_t i = 0; i < request.data.size(); i++) {
+ if (request.data[i].command == 0) {
+ continue;
+ }
+ out_data.data[i].command = request.data[i].command;
+ out_data.data[i].sector = request.data[i].sector;
+
+ const std::size_t sector_index =
+ request.data[i].sector * sizeof(Common::Input::MifareData::data);
+
+ if (nfc_data.size() < sector_index + sizeof(Common::Input::MifareData::data)) {
+ return Common::Input::NfcState::WriteFailed;
+ }
+
+ // Ignore the sector key as we don't support it
+ memcpy(out_data.data[i].data.data(), nfc_data.data() + sector_index,
+ sizeof(Common::Input::MifareData::data));
+ }
+
+ return Common::Input::NfcState::Success;
+}
+
+Common::Input::NfcState VirtualAmiibo::WriteMifareData(
+ const PadIdentifier& identifier_, const Common::Input::MifareRequest& request) {
+ if (state != State::TagNearby) {
+ return Common::Input::NfcState::WrongDeviceState;
+ }
+
+ if (status.tag_type != 1U << 6) {
+ return Common::Input::NfcState::InvalidTagType;
+ }
+
+ for (std::size_t i = 0; i < request.data.size(); i++) {
+ if (request.data[i].command == 0) {
+ continue;
+ }
+
+ const std::size_t sector_index =
+ request.data[i].sector * sizeof(Common::Input::MifareData::data);
+
+ if (nfc_data.size() < sector_index + sizeof(Common::Input::MifareData::data)) {
+ return Common::Input::NfcState::WriteFailed;
+ }
+
+ // Ignore the sector key as we don't support it
+ memcpy(nfc_data.data() + sector_index, request.data[i].data.data(),
+ sizeof(Common::Input::MifareData::data));
+ }
+
+ return Common::Input::NfcState::Success;
+}
+
VirtualAmiibo::State VirtualAmiibo::GetCurrentState() const {
return state;
}
@@ -72,10 +168,7 @@ VirtualAmiibo::State VirtualAmiibo::GetCurrentState() const {
VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(const std::string& filename) {
const Common::FS::IOFile nfc_file{filename, Common::FS::FileAccessMode::Read,
Common::FS::FileType::BinaryFile};
-
- if (state != State::WaitingForAmiibo) {
- return Info::WrongDeviceState;
- }
+ std::vector<u8> data{};
if (!nfc_file.IsOpen()) {
return Info::UnableToLoad;
@@ -84,14 +177,15 @@ VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(const std::string& filename) {
switch (nfc_file.GetSize()) {
case AmiiboSize:
case AmiiboSizeWithoutPassword:
- nfc_data.resize(AmiiboSize);
- if (nfc_file.Read(nfc_data) < AmiiboSizeWithoutPassword) {
+ case AmiiboSizeWithSignature:
+ data.resize(AmiiboSize);
+ if (nfc_file.Read(data) < AmiiboSizeWithoutPassword) {
return Info::NotAnAmiibo;
}
break;
case MifareSize:
- nfc_data.resize(MifareSize);
- if (nfc_file.Read(nfc_data) < MifareSize) {
+ data.resize(MifareSize);
+ if (nfc_file.Read(data) < MifareSize) {
return Info::NotAnAmiibo;
}
break;
@@ -100,14 +194,44 @@ VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(const std::string& filename) {
}
file_path = filename;
- state = State::AmiiboIsOpen;
- SetNfc(identifier, {Common::Input::NfcState::NewAmiibo, nfc_data});
+ return LoadAmiibo(data);
+}
+
+VirtualAmiibo::Info VirtualAmiibo::LoadAmiibo(std::span<u8> data) {
+ if (state != State::WaitingForAmiibo) {
+ return Info::WrongDeviceState;
+ }
+
+ switch (data.size_bytes()) {
+ case AmiiboSize:
+ case AmiiboSizeWithoutPassword:
+ case AmiiboSizeWithSignature:
+ nfc_data.resize(AmiiboSize);
+ status.tag_type = 1U << 1;
+ status.uuid_length = 7;
+ break;
+ case MifareSize:
+ nfc_data.resize(MifareSize);
+ status.tag_type = 1U << 6;
+ status.uuid_length = 4;
+ break;
+ default:
+ return Info::NotAnAmiibo;
+ }
+
+ status.uuid = {};
+ status.protocol = 1;
+ state = State::TagNearby;
+ status.state = Common::Input::NfcState::NewAmiibo,
+ memcpy(nfc_data.data(), data.data(), data.size_bytes());
+ memcpy(status.uuid.data(), nfc_data.data(), status.uuid_length);
+ SetNfc(identifier, status);
return Info::Success;
}
VirtualAmiibo::Info VirtualAmiibo::ReloadAmiibo() {
- if (state == State::AmiiboIsOpen) {
- SetNfc(identifier, {Common::Input::NfcState::NewAmiibo, nfc_data});
+ if (state == State::TagNearby) {
+ SetNfc(identifier, status);
return Info::Success;
}
@@ -115,9 +239,14 @@ VirtualAmiibo::Info VirtualAmiibo::ReloadAmiibo() {
}
VirtualAmiibo::Info VirtualAmiibo::CloseAmiibo() {
- state = polling_mode == Common::Input::PollingMode::NFC ? State::WaitingForAmiibo
- : State::Initialized;
- SetNfc(identifier, {Common::Input::NfcState::AmiiboRemoved, {}});
+ if (state != State::TagNearby) {
+ return Info::Success;
+ }
+
+ state = State::WaitingForAmiibo;
+ status.state = Common::Input::NfcState::AmiiboRemoved;
+ SetNfc(identifier, status);
+ status.tag_type = 0;
return Info::Success;
}
diff --git a/src/input_common/drivers/virtual_amiibo.h b/src/input_common/drivers/virtual_amiibo.h
index 0f9dad333..490f38e05 100644
--- a/src/input_common/drivers/virtual_amiibo.h
+++ b/src/input_common/drivers/virtual_amiibo.h
@@ -4,6 +4,7 @@
#pragma once
#include <array>
+#include <span>
#include <string>
#include <vector>
@@ -19,9 +20,10 @@ namespace InputCommon {
class VirtualAmiibo final : public InputEngine {
public:
enum class State {
+ Disabled,
Initialized,
WaitingForAmiibo,
- AmiiboIsOpen,
+ TagNearby,
};
enum class Info {
@@ -36,17 +38,26 @@ public:
~VirtualAmiibo() override;
// Sets polling mode to a controller
- Common::Input::PollingError SetPollingMode(
+ Common::Input::DriverResult SetPollingMode(
const PadIdentifier& identifier_, const Common::Input::PollingMode polling_mode_) override;
Common::Input::NfcState SupportsNfc(const PadIdentifier& identifier_) const override;
-
+ Common::Input::NfcState StartNfcPolling(const PadIdentifier& identifier_) override;
+ Common::Input::NfcState StopNfcPolling(const PadIdentifier& identifier_) override;
+ Common::Input::NfcState ReadAmiiboData(const PadIdentifier& identifier_,
+ std::vector<u8>& out_data) override;
Common::Input::NfcState WriteNfcData(const PadIdentifier& identifier_,
const std::vector<u8>& data) override;
+ Common::Input::NfcState ReadMifareData(const PadIdentifier& identifier_,
+ const Common::Input::MifareRequest& data,
+ Common::Input::MifareRequest& out_data) override;
+ Common::Input::NfcState WriteMifareData(const PadIdentifier& identifier_,
+ const Common::Input::MifareRequest& data) override;
State GetCurrentState() const;
Info LoadAmiibo(const std::string& amiibo_file);
+ Info LoadAmiibo(std::span<u8> data);
Info ReloadAmiibo();
Info CloseAmiibo();
@@ -55,11 +66,13 @@ public:
private:
static constexpr std::size_t AmiiboSize = 0x21C;
static constexpr std::size_t AmiiboSizeWithoutPassword = AmiiboSize - 0x8;
+ static constexpr std::size_t AmiiboSizeWithSignature = AmiiboSize + 0x20;
static constexpr std::size_t MifareSize = 0x400;
std::string file_path{};
- State state{State::Initialized};
+ State state{State::Disabled};
std::vector<u8> nfc_data;
- Common::Input::PollingMode polling_mode{Common::Input::PollingMode::Pasive};
+ Common::Input::NfcStatus status;
+ Common::Input::PollingMode polling_mode{Common::Input::PollingMode::Passive};
};
} // namespace InputCommon
diff --git a/src/input_common/drivers/virtual_gamepad.cpp b/src/input_common/drivers/virtual_gamepad.cpp
index 7db945aa6..c15cbbe58 100644
--- a/src/input_common/drivers/virtual_gamepad.cpp
+++ b/src/input_common/drivers/virtual_gamepad.cpp
@@ -39,6 +39,22 @@ void VirtualGamepad::SetStickPosition(std::size_t player_index, VirtualStick axi
SetStickPosition(player_index, static_cast<int>(axis_id), x_value, y_value);
}
+void VirtualGamepad::SetMotionState(std::size_t player_index, u64 delta_timestamp, float gyro_x,
+ float gyro_y, float gyro_z, float accel_x, float accel_y,
+ float accel_z) {
+ const auto identifier = GetIdentifier(player_index);
+ const BasicMotion motion_data{
+ .gyro_x = gyro_x,
+ .gyro_y = gyro_y,
+ .gyro_z = gyro_z,
+ .accel_x = accel_x,
+ .accel_y = accel_y,
+ .accel_z = accel_z,
+ .delta_timestamp = delta_timestamp,
+ };
+ SetMotion(identifier, 0, motion_data);
+}
+
void VirtualGamepad::ResetControllers() {
for (std::size_t i = 0; i < PlayerIndexCount; i++) {
SetStickPosition(i, VirtualStick::Left, 0.0f, 0.0f);
diff --git a/src/input_common/drivers/virtual_gamepad.h b/src/input_common/drivers/virtual_gamepad.h
index 3df91cc6f..dfbc45a28 100644
--- a/src/input_common/drivers/virtual_gamepad.h
+++ b/src/input_common/drivers/virtual_gamepad.h
@@ -52,7 +52,7 @@ public:
void SetButtonState(std::size_t player_index, VirtualButton button_id, bool value);
/**
- * Sets the status of all buttons bound with the key to released
+ * Sets the status of a stick to a specific player index
* @param player_index the player number that will take this action
* @param axis_id the id of the axis to move
* @param x_value the position of the stick in the x axis
@@ -62,6 +62,16 @@ public:
void SetStickPosition(std::size_t player_index, VirtualStick axis_id, float x_value,
float y_value);
+ /**
+ * Sets the status of the motion sensor to a specific player index
+ * @param player_index the player number that will take this action
+ * @param delta_timestamp time passed since last reading
+ * @param gyro_x,gyro_y,gyro_z the gyro sensor readings
+ * @param accel_x,accel_y,accel_z the acelerometer reading
+ */
+ void SetMotionState(std::size_t player_index, u64 delta_timestamp, float gyro_x, float gyro_y,
+ float gyro_z, float accel_x, float accel_y, float accel_z);
+
/// Restores all inputs into the neutral position
void ResetControllers();
diff --git a/src/input_common/helpers/joycon_driver.cpp b/src/input_common/helpers/joycon_driver.cpp
new file mode 100644
index 000000000..ec984a647
--- /dev/null
+++ b/src/input_common/helpers/joycon_driver.cpp
@@ -0,0 +1,710 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "common/scope_exit.h"
+#include "common/swap.h"
+#include "common/thread.h"
+#include "input_common/helpers/joycon_driver.h"
+#include "input_common/helpers/joycon_protocol/calibration.h"
+#include "input_common/helpers/joycon_protocol/generic_functions.h"
+#include "input_common/helpers/joycon_protocol/irs.h"
+#include "input_common/helpers/joycon_protocol/nfc.h"
+#include "input_common/helpers/joycon_protocol/poller.h"
+#include "input_common/helpers/joycon_protocol/ringcon.h"
+#include "input_common/helpers/joycon_protocol/rumble.h"
+
+namespace InputCommon::Joycon {
+JoyconDriver::JoyconDriver(std::size_t port_) : port{port_} {
+ hidapi_handle = std::make_shared<JoyconHandle>();
+}
+
+JoyconDriver::~JoyconDriver() {
+ Stop();
+}
+
+void JoyconDriver::Stop() {
+ is_connected = false;
+ input_thread = {};
+}
+
+DriverResult JoyconDriver::RequestDeviceAccess(SDL_hid_device_info* device_info) {
+ std::scoped_lock lock{mutex};
+
+ handle_device_type = ControllerType::None;
+ GetDeviceType(device_info, handle_device_type);
+ if (handle_device_type == ControllerType::None) {
+ return DriverResult::UnsupportedControllerType;
+ }
+
+ hidapi_handle->handle =
+ SDL_hid_open(device_info->vendor_id, device_info->product_id, device_info->serial_number);
+ std::memcpy(&handle_serial_number, device_info->serial_number, 15);
+ if (!hidapi_handle->handle) {
+ LOG_ERROR(Input, "Yuzu can't gain access to this device: ID {:04X}:{:04X}.",
+ device_info->vendor_id, device_info->product_id);
+ return DriverResult::HandleInUse;
+ }
+ SDL_hid_set_nonblocking(hidapi_handle->handle, 1);
+ return DriverResult::Success;
+}
+
+DriverResult JoyconDriver::InitializeDevice() {
+ if (!hidapi_handle->handle) {
+ return DriverResult::InvalidHandle;
+ }
+ std::scoped_lock lock{mutex};
+ disable_input_thread = true;
+
+ // Reset Counters
+ error_counter = 0;
+ hidapi_handle->packet_counter = 0;
+
+ // Reset external device status
+ starlink_connected = false;
+ ring_connected = false;
+ amiibo_detected = false;
+
+ // Set HW default configuration
+ vibration_enabled = true;
+ motion_enabled = true;
+ hidbus_enabled = false;
+ nfc_enabled = false;
+ passive_enabled = false;
+ irs_enabled = false;
+ input_only_device = false;
+ gyro_sensitivity = Joycon::GyroSensitivity::DPS2000;
+ gyro_performance = Joycon::GyroPerformance::HZ833;
+ accelerometer_sensitivity = Joycon::AccelerometerSensitivity::G8;
+ accelerometer_performance = Joycon::AccelerometerPerformance::HZ100;
+
+ // Initialize HW Protocols
+ calibration_protocol = std::make_unique<CalibrationProtocol>(hidapi_handle);
+ generic_protocol = std::make_unique<GenericProtocol>(hidapi_handle);
+ irs_protocol = std::make_unique<IrsProtocol>(hidapi_handle);
+ nfc_protocol = std::make_unique<NfcProtocol>(hidapi_handle);
+ ring_protocol = std::make_unique<RingConProtocol>(hidapi_handle);
+ rumble_protocol = std::make_unique<RumbleProtocol>(hidapi_handle);
+
+ // Get fixed joycon info
+ if (generic_protocol->GetVersionNumber(version) != DriverResult::Success) {
+ // If this command fails the device doesn't accept configuration commands
+ input_only_device = true;
+ }
+
+ if (!input_only_device) {
+ generic_protocol->SetLowPowerMode(false);
+ generic_protocol->GetColor(color);
+ if (handle_device_type == ControllerType::Pro) {
+ // Some 3rd party controllers aren't pro controllers
+ generic_protocol->GetControllerType(device_type);
+ } else {
+ device_type = handle_device_type;
+ }
+ generic_protocol->GetSerialNumber(serial_number);
+ }
+
+ supported_features = GetSupportedFeatures();
+
+ // Get Calibration data
+ calibration_protocol->GetLeftJoyStickCalibration(left_stick_calibration);
+ calibration_protocol->GetRightJoyStickCalibration(right_stick_calibration);
+ calibration_protocol->GetImuCalibration(motion_calibration);
+
+ // Set led status
+ generic_protocol->SetLedBlinkPattern(static_cast<u8>(1 + port));
+
+ // Apply HW configuration
+ SetPollingMode();
+
+ // Initialize joycon poller
+ joycon_poller = std::make_unique<JoyconPoller>(device_type, left_stick_calibration,
+ right_stick_calibration, motion_calibration);
+
+ // Start polling for data
+ is_connected = true;
+ if (!input_thread_running) {
+ input_thread =
+ std::jthread([this](std::stop_token stop_token) { InputThread(stop_token); });
+ }
+
+ disable_input_thread = false;
+ return DriverResult::Success;
+}
+
+void JoyconDriver::InputThread(std::stop_token stop_token) {
+ LOG_INFO(Input, "Joycon Adapter input thread started");
+ Common::SetCurrentThreadName("JoyconInput");
+ input_thread_running = true;
+
+ // Max update rate is 5ms, ensure we are always able to read a bit faster
+ constexpr int ThreadDelay = 2;
+ std::vector<u8> buffer(MaxBufferSize);
+
+ while (!stop_token.stop_requested()) {
+ int status = 0;
+
+ if (!IsInputThreadValid()) {
+ input_thread.request_stop();
+ continue;
+ }
+
+ // By disabling the input thread we can ensure custom commands will succeed as no package is
+ // skipped
+ if (!disable_input_thread) {
+ status = SDL_hid_read_timeout(hidapi_handle->handle, buffer.data(), buffer.size(),
+ ThreadDelay);
+ } else {
+ std::this_thread::sleep_for(std::chrono::milliseconds(ThreadDelay));
+ }
+
+ if (IsPayloadCorrect(status, buffer)) {
+ OnNewData(buffer);
+ }
+
+ std::this_thread::yield();
+ }
+
+ is_connected = false;
+ input_thread_running = false;
+ LOG_INFO(Input, "Joycon Adapter input thread stopped");
+}
+
+void JoyconDriver::OnNewData(std::span<u8> buffer) {
+ const auto report_mode = static_cast<ReportMode>(buffer[0]);
+
+ // Packages can be a little bit inconsistent. Average the delta time to provide a smoother
+ // motion experience
+ switch (report_mode) {
+ case ReportMode::STANDARD_FULL_60HZ:
+ case ReportMode::NFC_IR_MODE_60HZ:
+ case ReportMode::SIMPLE_HID_MODE: {
+ const auto now = std::chrono::steady_clock::now();
+ const auto new_delta_time = static_cast<u64>(
+ std::chrono::duration_cast<std::chrono::microseconds>(now - last_update).count());
+ delta_time = ((delta_time * 8) + (new_delta_time * 2)) / 10;
+ last_update = now;
+ joycon_poller->UpdateColor(color);
+ break;
+ }
+ default:
+ break;
+ }
+
+ const MotionStatus motion_status{
+ .is_enabled = motion_enabled,
+ .delta_time = delta_time,
+ .gyro_sensitivity = gyro_sensitivity,
+ .accelerometer_sensitivity = accelerometer_sensitivity,
+ };
+
+ // TODO: Remove this when calibration is properly loaded and not calculated
+ if (ring_connected && report_mode == ReportMode::STANDARD_FULL_60HZ) {
+ InputReportActive data{};
+ memcpy(&data, buffer.data(), sizeof(InputReportActive));
+ calibration_protocol->GetRingCalibration(ring_calibration, data.ring_input);
+ }
+
+ const RingStatus ring_status{
+ .is_enabled = ring_connected,
+ .default_value = ring_calibration.default_value,
+ .max_value = ring_calibration.max_value,
+ .min_value = ring_calibration.min_value,
+ };
+
+ if (irs_protocol->IsEnabled()) {
+ irs_protocol->RequestImage(buffer);
+ joycon_poller->UpdateCamera(irs_protocol->GetImage(), irs_protocol->GetIrsFormat());
+ }
+
+ if (nfc_protocol->IsPolling()) {
+ if (amiibo_detected) {
+ if (!nfc_protocol->HasAmiibo()) {
+ joycon_poller->UpdateAmiibo({});
+ amiibo_detected = false;
+ return;
+ }
+ }
+
+ if (!amiibo_detected) {
+ Joycon::TagInfo tag_info;
+ const auto result = nfc_protocol->GetTagInfo(tag_info);
+ if (result == DriverResult::Success) {
+ joycon_poller->UpdateAmiibo(tag_info);
+ amiibo_detected = true;
+ }
+ }
+ }
+
+ switch (report_mode) {
+ case ReportMode::STANDARD_FULL_60HZ:
+ joycon_poller->ReadActiveMode(buffer, motion_status, ring_status);
+ break;
+ case ReportMode::NFC_IR_MODE_60HZ:
+ joycon_poller->ReadNfcIRMode(buffer, motion_status);
+ break;
+ case ReportMode::SIMPLE_HID_MODE:
+ joycon_poller->ReadPassiveMode(buffer);
+ break;
+ case ReportMode::SUBCMD_REPLY:
+ LOG_DEBUG(Input, "Unhandled command reply");
+ break;
+ default:
+ LOG_ERROR(Input, "Report mode not Implemented {}", report_mode);
+ break;
+ }
+}
+
+DriverResult JoyconDriver::SetPollingMode() {
+ SCOPE_EXIT({ disable_input_thread = false; });
+ disable_input_thread = true;
+
+ rumble_protocol->EnableRumble(vibration_enabled && supported_features.vibration);
+
+ if (motion_enabled && supported_features.motion) {
+ generic_protocol->EnableImu(true);
+ generic_protocol->SetImuConfig(gyro_sensitivity, gyro_performance,
+ accelerometer_sensitivity, accelerometer_performance);
+ } else {
+ generic_protocol->EnableImu(false);
+ }
+
+ if (input_only_device) {
+ return DriverResult::NotSupported;
+ }
+
+ if (irs_protocol->IsEnabled()) {
+ irs_protocol->DisableIrs();
+ }
+
+ if (nfc_protocol->IsEnabled()) {
+ amiibo_detected = false;
+ nfc_protocol->DisableNfc();
+ }
+
+ if (ring_protocol->IsEnabled()) {
+ ring_connected = false;
+ ring_protocol->DisableRingCon();
+ }
+
+ if (irs_enabled && supported_features.irs) {
+ auto result = irs_protocol->EnableIrs();
+ if (result == DriverResult::Success) {
+ return result;
+ }
+ irs_protocol->DisableIrs();
+ LOG_ERROR(Input, "Error enabling IRS");
+ return result;
+ }
+
+ if (nfc_enabled && supported_features.nfc) {
+ auto result = nfc_protocol->EnableNfc();
+ if (result == DriverResult::Success) {
+ return result;
+ }
+ nfc_protocol->DisableNfc();
+ LOG_ERROR(Input, "Error enabling NFC");
+ return result;
+ }
+
+ if (hidbus_enabled && supported_features.hidbus) {
+ auto result = ring_protocol->EnableRingCon();
+ if (result == DriverResult::Success) {
+ result = ring_protocol->StartRingconPolling();
+ }
+ if (result == DriverResult::Success) {
+ ring_connected = true;
+ return result;
+ }
+ ring_connected = false;
+ ring_protocol->DisableRingCon();
+ LOG_ERROR(Input, "Error enabling Ringcon");
+ return result;
+ }
+
+ if (passive_enabled && supported_features.passive) {
+ const auto result = generic_protocol->EnablePassiveMode();
+ if (result == DriverResult::Success) {
+ return result;
+ }
+ LOG_ERROR(Input, "Error enabling passive mode");
+ }
+
+ // Default Mode
+ const auto result = generic_protocol->EnableActiveMode();
+ if (result != DriverResult::Success) {
+ LOG_ERROR(Input, "Error enabling active mode");
+ }
+ // Switch calls this function after enabling active mode
+ generic_protocol->TriggersElapsed();
+
+ return result;
+}
+
+JoyconDriver::SupportedFeatures JoyconDriver::GetSupportedFeatures() {
+ SupportedFeatures features{
+ .passive = true,
+ .motion = true,
+ .vibration = true,
+ };
+
+ if (input_only_device) {
+ return features;
+ }
+
+ if (device_type == ControllerType::Right) {
+ features.nfc = true;
+ features.irs = true;
+ features.hidbus = true;
+ }
+
+ if (device_type == ControllerType::Pro) {
+ features.nfc = true;
+ }
+ return features;
+}
+
+bool JoyconDriver::IsInputThreadValid() const {
+ if (!is_connected.load()) {
+ return false;
+ }
+ if (hidapi_handle->handle == nullptr) {
+ return false;
+ }
+ // Controller is not responding. Terminate connection
+ if (error_counter > MaxErrorCount) {
+ return false;
+ }
+ return true;
+}
+
+bool JoyconDriver::IsPayloadCorrect(int status, std::span<const u8> buffer) {
+ if (status <= -1) {
+ error_counter++;
+ return false;
+ }
+ // There's no new data
+ if (status == 0) {
+ return false;
+ }
+ // No reply ever starts with zero
+ if (buffer[0] == 0x00) {
+ error_counter++;
+ return false;
+ }
+ error_counter = 0;
+ return true;
+}
+
+DriverResult JoyconDriver::SetVibration(const VibrationValue& vibration) {
+ std::scoped_lock lock{mutex};
+ if (disable_input_thread) {
+ return DriverResult::HandleInUse;
+ }
+ return rumble_protocol->SendVibration(vibration);
+}
+
+DriverResult JoyconDriver::SetLedConfig(u8 led_pattern) {
+ std::scoped_lock lock{mutex};
+ if (disable_input_thread) {
+ return DriverResult::HandleInUse;
+ }
+ return generic_protocol->SetLedPattern(led_pattern);
+}
+
+DriverResult JoyconDriver::SetIrsConfig(IrsMode mode_, IrsResolution format_) {
+ std::scoped_lock lock{mutex};
+ if (disable_input_thread) {
+ return DriverResult::HandleInUse;
+ }
+ disable_input_thread = true;
+ const auto result = irs_protocol->SetIrsConfig(mode_, format_);
+ disable_input_thread = false;
+ return result;
+}
+
+DriverResult JoyconDriver::SetPassiveMode() {
+ std::scoped_lock lock{mutex};
+ motion_enabled = false;
+ hidbus_enabled = false;
+ nfc_enabled = false;
+ passive_enabled = true;
+ irs_enabled = false;
+ return SetPollingMode();
+}
+
+DriverResult JoyconDriver::SetActiveMode() {
+ if (is_ring_disabled_by_irs) {
+ is_ring_disabled_by_irs = false;
+ SetActiveMode();
+ return SetRingConMode();
+ }
+
+ std::scoped_lock lock{mutex};
+ motion_enabled = true;
+ hidbus_enabled = false;
+ nfc_enabled = false;
+ passive_enabled = false;
+ irs_enabled = false;
+ return SetPollingMode();
+}
+
+DriverResult JoyconDriver::SetIrMode() {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.irs) {
+ return DriverResult::NotSupported;
+ }
+
+ if (ring_connected) {
+ is_ring_disabled_by_irs = true;
+ }
+
+ motion_enabled = false;
+ hidbus_enabled = false;
+ nfc_enabled = false;
+ passive_enabled = false;
+ irs_enabled = true;
+ return SetPollingMode();
+}
+
+DriverResult JoyconDriver::SetNfcMode() {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.nfc) {
+ return DriverResult::NotSupported;
+ }
+
+ motion_enabled = true;
+ hidbus_enabled = false;
+ nfc_enabled = true;
+ passive_enabled = false;
+ irs_enabled = false;
+ return SetPollingMode();
+}
+
+DriverResult JoyconDriver::SetRingConMode() {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.hidbus) {
+ return DriverResult::NotSupported;
+ }
+
+ motion_enabled = true;
+ hidbus_enabled = true;
+ nfc_enabled = false;
+ passive_enabled = false;
+ irs_enabled = false;
+
+ const auto result = SetPollingMode();
+
+ if (!ring_connected) {
+ return DriverResult::NoDeviceDetected;
+ }
+
+ return result;
+}
+
+DriverResult JoyconDriver::StartNfcPolling() {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.nfc) {
+ return DriverResult::NotSupported;
+ }
+ if (!nfc_protocol->IsEnabled()) {
+ return DriverResult::Disabled;
+ }
+
+ disable_input_thread = true;
+ const auto result = nfc_protocol->StartNFCPollingMode();
+ disable_input_thread = false;
+
+ return result;
+}
+
+DriverResult JoyconDriver::StopNfcPolling() {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.nfc) {
+ return DriverResult::NotSupported;
+ }
+ if (!nfc_protocol->IsEnabled()) {
+ return DriverResult::Disabled;
+ }
+
+ disable_input_thread = true;
+ const auto result = nfc_protocol->StopNFCPollingMode();
+ disable_input_thread = false;
+
+ if (amiibo_detected) {
+ amiibo_detected = false;
+ joycon_poller->UpdateAmiibo({});
+ }
+
+ return result;
+}
+
+DriverResult JoyconDriver::ReadAmiiboData(std::vector<u8>& out_data) {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.nfc) {
+ return DriverResult::NotSupported;
+ }
+ if (!nfc_protocol->IsEnabled()) {
+ return DriverResult::Disabled;
+ }
+ if (!amiibo_detected) {
+ return DriverResult::ErrorWritingData;
+ }
+
+ out_data.resize(0x21C);
+ disable_input_thread = true;
+ const auto result = nfc_protocol->ReadAmiibo(out_data);
+ disable_input_thread = false;
+
+ return result;
+}
+
+DriverResult JoyconDriver::WriteNfcData(std::span<const u8> data) {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.nfc) {
+ return DriverResult::NotSupported;
+ }
+ if (!nfc_protocol->IsEnabled()) {
+ return DriverResult::Disabled;
+ }
+ if (!amiibo_detected) {
+ return DriverResult::ErrorWritingData;
+ }
+
+ disable_input_thread = true;
+ const auto result = nfc_protocol->WriteAmiibo(data);
+ disable_input_thread = false;
+
+ return result;
+}
+
+DriverResult JoyconDriver::ReadMifareData(std::span<const MifareReadChunk> data,
+ std::span<MifareReadData> out_data) {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.nfc) {
+ return DriverResult::NotSupported;
+ }
+ if (!nfc_protocol->IsEnabled()) {
+ return DriverResult::Disabled;
+ }
+ if (!amiibo_detected) {
+ return DriverResult::ErrorWritingData;
+ }
+
+ disable_input_thread = true;
+ const auto result = nfc_protocol->ReadMifare(data, out_data);
+ disable_input_thread = false;
+
+ return result;
+}
+
+DriverResult JoyconDriver::WriteMifareData(std::span<const MifareWriteChunk> data) {
+ std::scoped_lock lock{mutex};
+
+ if (!supported_features.nfc) {
+ return DriverResult::NotSupported;
+ }
+ if (!nfc_protocol->IsEnabled()) {
+ return DriverResult::Disabled;
+ }
+ if (!amiibo_detected) {
+ return DriverResult::ErrorWritingData;
+ }
+
+ disable_input_thread = true;
+ const auto result = nfc_protocol->WriteMifare(data);
+ disable_input_thread = false;
+
+ return result;
+}
+
+bool JoyconDriver::IsConnected() const {
+ std::scoped_lock lock{mutex};
+ return is_connected.load();
+}
+
+bool JoyconDriver::IsVibrationEnabled() const {
+ std::scoped_lock lock{mutex};
+ return vibration_enabled;
+}
+
+FirmwareVersion JoyconDriver::GetDeviceVersion() const {
+ std::scoped_lock lock{mutex};
+ return version;
+}
+
+Color JoyconDriver::GetDeviceColor() const {
+ std::scoped_lock lock{mutex};
+ return color;
+}
+
+std::size_t JoyconDriver::GetDevicePort() const {
+ std::scoped_lock lock{mutex};
+ return port;
+}
+
+ControllerType JoyconDriver::GetDeviceType() const {
+ std::scoped_lock lock{mutex};
+ return device_type;
+}
+
+ControllerType JoyconDriver::GetHandleDeviceType() const {
+ std::scoped_lock lock{mutex};
+ return handle_device_type;
+}
+
+SerialNumber JoyconDriver::GetSerialNumber() const {
+ std::scoped_lock lock{mutex};
+ return serial_number;
+}
+
+SerialNumber JoyconDriver::GetHandleSerialNumber() const {
+ std::scoped_lock lock{mutex};
+ return handle_serial_number;
+}
+
+void JoyconDriver::SetCallbacks(const JoyconCallbacks& callbacks) {
+ joycon_poller->SetCallbacks(callbacks);
+}
+
+DriverResult JoyconDriver::GetDeviceType(SDL_hid_device_info* device_info,
+ ControllerType& controller_type) {
+ static constexpr std::array<std::pair<u32, ControllerType>, 6> supported_devices{
+ std::pair<u32, ControllerType>{0x2006, ControllerType::Left},
+ {0x2007, ControllerType::Right},
+ {0x2009, ControllerType::Pro},
+ };
+ constexpr u16 nintendo_vendor_id = 0x057e;
+
+ controller_type = ControllerType::None;
+ if (device_info->vendor_id != nintendo_vendor_id) {
+ return DriverResult::UnsupportedControllerType;
+ }
+
+ for (const auto& [product_id, type] : supported_devices) {
+ if (device_info->product_id == static_cast<u16>(product_id)) {
+ controller_type = type;
+ return Joycon::DriverResult::Success;
+ }
+ }
+ return Joycon::DriverResult::UnsupportedControllerType;
+}
+
+DriverResult JoyconDriver::GetSerialNumber(SDL_hid_device_info* device_info,
+ SerialNumber& serial_number) {
+ if (device_info->serial_number == nullptr) {
+ return DriverResult::Unknown;
+ }
+ std::memcpy(&serial_number, device_info->serial_number, 15);
+ return Joycon::DriverResult::Success;
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_driver.h b/src/input_common/helpers/joycon_driver.h
new file mode 100644
index 000000000..45b32d2f8
--- /dev/null
+++ b/src/input_common/helpers/joycon_driver.h
@@ -0,0 +1,158 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <atomic>
+#include <functional>
+#include <mutex>
+#include <span>
+#include <thread>
+
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+class CalibrationProtocol;
+class GenericProtocol;
+class IrsProtocol;
+class NfcProtocol;
+class JoyconPoller;
+class RingConProtocol;
+class RumbleProtocol;
+
+class JoyconDriver final {
+public:
+ explicit JoyconDriver(std::size_t port_);
+
+ ~JoyconDriver();
+
+ DriverResult RequestDeviceAccess(SDL_hid_device_info* device_info);
+ DriverResult InitializeDevice();
+ void Stop();
+
+ bool IsConnected() const;
+ bool IsVibrationEnabled() const;
+
+ FirmwareVersion GetDeviceVersion() const;
+ Color GetDeviceColor() const;
+ std::size_t GetDevicePort() const;
+ ControllerType GetDeviceType() const;
+ ControllerType GetHandleDeviceType() const;
+ SerialNumber GetSerialNumber() const;
+ SerialNumber GetHandleSerialNumber() const;
+
+ DriverResult SetVibration(const VibrationValue& vibration);
+ DriverResult SetLedConfig(u8 led_pattern);
+ DriverResult SetIrsConfig(IrsMode mode_, IrsResolution format_);
+ DriverResult SetPassiveMode();
+ DriverResult SetActiveMode();
+ DriverResult SetIrMode();
+ DriverResult SetNfcMode();
+ DriverResult SetRingConMode();
+ DriverResult StartNfcPolling();
+ DriverResult StopNfcPolling();
+ DriverResult ReadAmiiboData(std::vector<u8>& out_data);
+ DriverResult WriteNfcData(std::span<const u8> data);
+ DriverResult ReadMifareData(std::span<const MifareReadChunk> request,
+ std::span<MifareReadData> out_data);
+ DriverResult WriteMifareData(std::span<const MifareWriteChunk> request);
+
+ void SetCallbacks(const JoyconCallbacks& callbacks);
+
+ // Returns device type from hidapi handle
+ static DriverResult GetDeviceType(SDL_hid_device_info* device_info,
+ ControllerType& controller_type);
+
+ // Returns serial number from hidapi handle
+ static DriverResult GetSerialNumber(SDL_hid_device_info* device_info,
+ SerialNumber& serial_number);
+
+private:
+ struct SupportedFeatures {
+ bool passive{};
+ bool hidbus{};
+ bool irs{};
+ bool motion{};
+ bool nfc{};
+ bool vibration{};
+ };
+
+ /// Main thread, actively request new data from the handle
+ void InputThread(std::stop_token stop_token);
+
+ /// Called every time a valid package arrives
+ void OnNewData(std::span<u8> buffer);
+
+ /// Updates device configuration to enable or disable features
+ DriverResult SetPollingMode();
+
+ /// Returns true if input thread is valid and doesn't need to be stopped
+ bool IsInputThreadValid() const;
+
+ /// Returns true if the data should be interpreted. Otherwise the error counter is incremented
+ bool IsPayloadCorrect(int status, std::span<const u8> buffer);
+
+ /// Returns a list of supported features that can be enabled on this device
+ SupportedFeatures GetSupportedFeatures();
+
+ // Protocol Features
+ std::unique_ptr<CalibrationProtocol> calibration_protocol;
+ std::unique_ptr<GenericProtocol> generic_protocol;
+ std::unique_ptr<IrsProtocol> irs_protocol;
+ std::unique_ptr<NfcProtocol> nfc_protocol;
+ std::unique_ptr<JoyconPoller> joycon_poller;
+ std::unique_ptr<RingConProtocol> ring_protocol;
+ std::unique_ptr<RumbleProtocol> rumble_protocol;
+
+ // Connection status
+ std::atomic<bool> is_connected{};
+ u64 delta_time;
+ std::size_t error_counter{};
+ std::shared_ptr<JoyconHandle> hidapi_handle;
+ std::chrono::time_point<std::chrono::steady_clock> last_update;
+
+ // External device status
+ bool starlink_connected{};
+ bool ring_connected{};
+ bool amiibo_detected{};
+ bool is_ring_disabled_by_irs{};
+
+ // Hardware configuration
+ u8 leds{};
+ ReportMode mode{};
+ bool input_only_device{};
+ bool passive_enabled{}; // Low power mode, Ideal for multiple controllers at the same time
+ bool hidbus_enabled{}; // External device support
+ bool irs_enabled{}; // Infrared camera input
+ bool motion_enabled{}; // Enables motion input
+ bool nfc_enabled{}; // Enables Amiibo detection
+ bool vibration_enabled{}; // Allows vibrations
+
+ // Calibration data
+ GyroSensitivity gyro_sensitivity{};
+ GyroPerformance gyro_performance{};
+ AccelerometerSensitivity accelerometer_sensitivity{};
+ AccelerometerPerformance accelerometer_performance{};
+ JoyStickCalibration left_stick_calibration{};
+ JoyStickCalibration right_stick_calibration{};
+ MotionCalibration motion_calibration{};
+ RingCalibration ring_calibration{};
+
+ // Fixed joycon info
+ FirmwareVersion version{};
+ Color color{};
+ std::size_t port{};
+ ControllerType device_type{}; // Device type reported by controller
+ ControllerType handle_device_type{}; // Device type reported by hidapi
+ SerialNumber serial_number{}; // Serial number reported by controller
+ SerialNumber handle_serial_number{}; // Serial number type reported by hidapi
+ SupportedFeatures supported_features{};
+
+ // Thread related
+ mutable std::mutex mutex;
+ std::jthread input_thread;
+ bool input_thread_running{};
+ bool disable_input_thread{};
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/calibration.cpp b/src/input_common/helpers/joycon_protocol/calibration.cpp
new file mode 100644
index 000000000..d8f040f75
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/calibration.cpp
@@ -0,0 +1,218 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <cstring>
+
+#include "input_common/helpers/joycon_protocol/calibration.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+CalibrationProtocol::CalibrationProtocol(std::shared_ptr<JoyconHandle> handle)
+ : JoyconCommonProtocol(std::move(handle)) {}
+
+DriverResult CalibrationProtocol::GetLeftJoyStickCalibration(JoyStickCalibration& calibration) {
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ JoystickLeftSpiCalibration spi_calibration{};
+ bool has_user_calibration = false;
+ calibration = {};
+
+ if (result == DriverResult::Success) {
+ result = HasUserCalibration(SpiAddress::USER_LEFT_MAGIC, has_user_calibration);
+ }
+
+ // Read User defined calibration
+ if (result == DriverResult::Success && has_user_calibration) {
+ result = ReadSPI(SpiAddress::USER_LEFT_DATA, spi_calibration);
+ }
+
+ // Read Factory calibration
+ if (result == DriverResult::Success && !has_user_calibration) {
+ result = ReadSPI(SpiAddress::FACT_LEFT_DATA, spi_calibration);
+ }
+
+ if (result == DriverResult::Success) {
+ calibration.x.center = GetXAxisCalibrationValue(spi_calibration.center);
+ calibration.y.center = GetYAxisCalibrationValue(spi_calibration.center);
+ calibration.x.min = GetXAxisCalibrationValue(spi_calibration.min);
+ calibration.y.min = GetYAxisCalibrationValue(spi_calibration.min);
+ calibration.x.max = GetXAxisCalibrationValue(spi_calibration.max);
+ calibration.y.max = GetYAxisCalibrationValue(spi_calibration.max);
+ }
+
+ // Set a valid default calibration if data is missing
+ ValidateCalibration(calibration);
+
+ return result;
+}
+
+DriverResult CalibrationProtocol::GetRightJoyStickCalibration(JoyStickCalibration& calibration) {
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ JoystickRightSpiCalibration spi_calibration{};
+ bool has_user_calibration = false;
+ calibration = {};
+
+ if (result == DriverResult::Success) {
+ result = HasUserCalibration(SpiAddress::USER_RIGHT_MAGIC, has_user_calibration);
+ }
+
+ // Read User defined calibration
+ if (result == DriverResult::Success && has_user_calibration) {
+ result = ReadSPI(SpiAddress::USER_RIGHT_DATA, spi_calibration);
+ }
+
+ // Read Factory calibration
+ if (result == DriverResult::Success && !has_user_calibration) {
+ result = ReadSPI(SpiAddress::FACT_RIGHT_DATA, spi_calibration);
+ }
+
+ if (result == DriverResult::Success) {
+ calibration.x.center = GetXAxisCalibrationValue(spi_calibration.center);
+ calibration.y.center = GetYAxisCalibrationValue(spi_calibration.center);
+ calibration.x.min = GetXAxisCalibrationValue(spi_calibration.min);
+ calibration.y.min = GetYAxisCalibrationValue(spi_calibration.min);
+ calibration.x.max = GetXAxisCalibrationValue(spi_calibration.max);
+ calibration.y.max = GetYAxisCalibrationValue(spi_calibration.max);
+ }
+
+ // Set a valid default calibration if data is missing
+ ValidateCalibration(calibration);
+
+ return result;
+}
+
+DriverResult CalibrationProtocol::GetImuCalibration(MotionCalibration& calibration) {
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ ImuSpiCalibration spi_calibration{};
+ bool has_user_calibration = false;
+ calibration = {};
+
+ if (result == DriverResult::Success) {
+ result = HasUserCalibration(SpiAddress::USER_IMU_MAGIC, has_user_calibration);
+ }
+
+ // Read User defined calibration
+ if (result == DriverResult::Success && has_user_calibration) {
+ result = ReadSPI(SpiAddress::USER_IMU_DATA, spi_calibration);
+ }
+
+ // Read Factory calibration
+ if (result == DriverResult::Success && !has_user_calibration) {
+ result = ReadSPI(SpiAddress::FACT_IMU_DATA, spi_calibration);
+ }
+
+ if (result == DriverResult::Success) {
+ calibration.accelerometer[0].offset = spi_calibration.accelerometer_offset[0];
+ calibration.accelerometer[1].offset = spi_calibration.accelerometer_offset[1];
+ calibration.accelerometer[2].offset = spi_calibration.accelerometer_offset[2];
+
+ calibration.accelerometer[0].scale = spi_calibration.accelerometer_scale[0];
+ calibration.accelerometer[1].scale = spi_calibration.accelerometer_scale[1];
+ calibration.accelerometer[2].scale = spi_calibration.accelerometer_scale[2];
+
+ calibration.gyro[0].offset = spi_calibration.gyroscope_offset[0];
+ calibration.gyro[1].offset = spi_calibration.gyroscope_offset[1];
+ calibration.gyro[2].offset = spi_calibration.gyroscope_offset[2];
+
+ calibration.gyro[0].scale = spi_calibration.gyroscope_scale[0];
+ calibration.gyro[1].scale = spi_calibration.gyroscope_scale[1];
+ calibration.gyro[2].scale = spi_calibration.gyroscope_scale[2];
+ }
+
+ ValidateCalibration(calibration);
+
+ return result;
+}
+
+DriverResult CalibrationProtocol::GetRingCalibration(RingCalibration& calibration,
+ s16 current_value) {
+ constexpr s16 DefaultRingRange{800};
+
+ // TODO: Get default calibration form ring itself
+ if (ring_data_max == 0 && ring_data_min == 0) {
+ ring_data_max = current_value + DefaultRingRange;
+ ring_data_min = current_value - DefaultRingRange;
+ ring_data_default = current_value;
+ }
+ ring_data_max = std::max(ring_data_max, current_value);
+ ring_data_min = std::min(ring_data_min, current_value);
+ calibration = {
+ .default_value = ring_data_default,
+ .max_value = ring_data_max,
+ .min_value = ring_data_min,
+ };
+ return DriverResult::Success;
+}
+
+DriverResult CalibrationProtocol::HasUserCalibration(SpiAddress address,
+ bool& has_user_calibration) {
+ MagicSpiCalibration spi_magic{};
+ const DriverResult result{ReadSPI(address, spi_magic)};
+ has_user_calibration = false;
+ if (result == DriverResult::Success) {
+ has_user_calibration = spi_magic.first == CalibrationMagic::USR_MAGIC_0 &&
+ spi_magic.second == CalibrationMagic::USR_MAGIC_1;
+ }
+ return result;
+}
+
+u16 CalibrationProtocol::GetXAxisCalibrationValue(std::span<u8> block) const {
+ return static_cast<u16>(((block[1] & 0x0F) << 8) | block[0]);
+}
+
+u16 CalibrationProtocol::GetYAxisCalibrationValue(std::span<u8> block) const {
+ return static_cast<u16>((block[2] << 4) | (block[1] >> 4));
+}
+
+void CalibrationProtocol::ValidateCalibration(JoyStickCalibration& calibration) {
+ constexpr u16 DefaultStickCenter{0x800};
+ constexpr u16 DefaultStickRange{0x6cc};
+
+ calibration.x.center = ValidateValue(calibration.x.center, DefaultStickCenter);
+ calibration.x.max = ValidateValue(calibration.x.max, DefaultStickRange);
+ calibration.x.min = ValidateValue(calibration.x.min, DefaultStickRange);
+
+ calibration.y.center = ValidateValue(calibration.y.center, DefaultStickCenter);
+ calibration.y.max = ValidateValue(calibration.y.max, DefaultStickRange);
+ calibration.y.min = ValidateValue(calibration.y.min, DefaultStickRange);
+}
+
+void CalibrationProtocol::ValidateCalibration(MotionCalibration& calibration) {
+ constexpr s16 DefaultAccelerometerScale{0x4000};
+ constexpr s16 DefaultGyroScale{0x3be7};
+ constexpr s16 DefaultOffset{0};
+
+ for (auto& sensor : calibration.accelerometer) {
+ sensor.scale = ValidateValue(sensor.scale, DefaultAccelerometerScale);
+ sensor.offset = ValidateValue(sensor.offset, DefaultOffset);
+ }
+ for (auto& sensor : calibration.gyro) {
+ sensor.scale = ValidateValue(sensor.scale, DefaultGyroScale);
+ sensor.offset = ValidateValue(sensor.offset, DefaultOffset);
+ }
+}
+
+u16 CalibrationProtocol::ValidateValue(u16 value, u16 default_value) const {
+ if (value == 0) {
+ return default_value;
+ }
+ if (value == 0xFFF) {
+ return default_value;
+ }
+ return value;
+}
+
+s16 CalibrationProtocol::ValidateValue(s16 value, s16 default_value) const {
+ if (value == 0) {
+ return default_value;
+ }
+ if (value == 0xFFF) {
+ return default_value;
+ }
+ return value;
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/calibration.h b/src/input_common/helpers/joycon_protocol/calibration.h
new file mode 100644
index 000000000..c6fd0f729
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/calibration.h
@@ -0,0 +1,82 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <vector>
+
+#include "input_common/helpers/joycon_protocol/common_protocol.h"
+
+namespace InputCommon::Joycon {
+enum class DriverResult;
+struct JoyStickCalibration;
+struct IMUCalibration;
+struct JoyconHandle;
+} // namespace InputCommon::Joycon
+
+namespace InputCommon::Joycon {
+
+/// Driver functions related to retrieving calibration data from the device
+class CalibrationProtocol final : private JoyconCommonProtocol {
+public:
+ explicit CalibrationProtocol(std::shared_ptr<JoyconHandle> handle);
+
+ /**
+ * Sends a request to obtain the left stick calibration from memory
+ * @param is_factory_calibration if true factory values will be returned
+ * @returns JoyStickCalibration of the left joystick
+ */
+ DriverResult GetLeftJoyStickCalibration(JoyStickCalibration& calibration);
+
+ /**
+ * Sends a request to obtain the right stick calibration from memory
+ * @param is_factory_calibration if true factory values will be returned
+ * @returns JoyStickCalibration of the right joystick
+ */
+ DriverResult GetRightJoyStickCalibration(JoyStickCalibration& calibration);
+
+ /**
+ * Sends a request to obtain the motion calibration from memory
+ * @returns ImuCalibration of the motion sensor
+ */
+ DriverResult GetImuCalibration(MotionCalibration& calibration);
+
+ /**
+ * Calculates on run time the proper calibration of the ring controller
+ * @returns RingCalibration of the ring sensor
+ */
+ DriverResult GetRingCalibration(RingCalibration& calibration, s16 current_value);
+
+private:
+ /// Returns true if the specified address corresponds to the magic value of user calibration
+ DriverResult HasUserCalibration(SpiAddress address, bool& has_user_calibration);
+
+ /// Converts a raw calibration block to an u16 value containing the x axis value
+ u16 GetXAxisCalibrationValue(std::span<u8> block) const;
+
+ /// Converts a raw calibration block to an u16 value containing the y axis value
+ u16 GetYAxisCalibrationValue(std::span<u8> block) const;
+
+ /// Ensures that all joystick calibration values are set
+ void ValidateCalibration(JoyStickCalibration& calibration);
+
+ /// Ensures that all motion calibration values are set
+ void ValidateCalibration(MotionCalibration& calibration);
+
+ /// Returns the default value if the value is either zero or 0xFFF
+ u16 ValidateValue(u16 value, u16 default_value) const;
+
+ /// Returns the default value if the value is either zero or 0xFFF
+ s16 ValidateValue(s16 value, s16 default_value) const;
+
+ s16 ring_data_max = 0;
+ s16 ring_data_default = 0;
+ s16 ring_data_min = 0;
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/common_protocol.cpp b/src/input_common/helpers/joycon_protocol/common_protocol.cpp
new file mode 100644
index 000000000..88f4cec1c
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/common_protocol.cpp
@@ -0,0 +1,313 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "input_common/helpers/joycon_protocol/common_protocol.h"
+
+namespace InputCommon::Joycon {
+JoyconCommonProtocol::JoyconCommonProtocol(std::shared_ptr<JoyconHandle> hidapi_handle_)
+ : hidapi_handle{std::move(hidapi_handle_)} {}
+
+u8 JoyconCommonProtocol::GetCounter() {
+ hidapi_handle->packet_counter = (hidapi_handle->packet_counter + 1) & 0x0F;
+ return hidapi_handle->packet_counter;
+}
+
+void JoyconCommonProtocol::SetBlocking() {
+ SDL_hid_set_nonblocking(hidapi_handle->handle, 0);
+}
+
+void JoyconCommonProtocol::SetNonBlocking() {
+ SDL_hid_set_nonblocking(hidapi_handle->handle, 1);
+}
+
+DriverResult JoyconCommonProtocol::GetDeviceType(ControllerType& controller_type) {
+ const auto result = ReadSPI(SpiAddress::DEVICE_TYPE, controller_type);
+
+ if (result == DriverResult::Success) {
+ // Fallback to 3rd party pro controllers
+ if (controller_type == ControllerType::None) {
+ controller_type = ControllerType::Pro;
+ }
+ }
+
+ return result;
+}
+
+DriverResult JoyconCommonProtocol::CheckDeviceAccess(SDL_hid_device_info* device_info) {
+ ControllerType controller_type{ControllerType::None};
+ const auto result = GetDeviceType(controller_type);
+
+ if (result != DriverResult::Success || controller_type == ControllerType::None) {
+ return DriverResult::UnsupportedControllerType;
+ }
+
+ hidapi_handle->handle =
+ SDL_hid_open(device_info->vendor_id, device_info->product_id, device_info->serial_number);
+
+ if (!hidapi_handle->handle) {
+ LOG_ERROR(Input, "Yuzu can't gain access to this device: ID {:04X}:{:04X}.",
+ device_info->vendor_id, device_info->product_id);
+ return DriverResult::HandleInUse;
+ }
+
+ SetNonBlocking();
+ return DriverResult::Success;
+}
+
+DriverResult JoyconCommonProtocol::SetReportMode(ReportMode report_mode) {
+ const std::array<u8, 1> buffer{static_cast<u8>(report_mode)};
+ return SendSubCommand(SubCommand::SET_REPORT_MODE, buffer);
+}
+
+DriverResult JoyconCommonProtocol::SendRawData(std::span<const u8> buffer) {
+ const auto result = SDL_hid_write(hidapi_handle->handle, buffer.data(), buffer.size());
+
+ if (result == -1) {
+ return DriverResult::ErrorWritingData;
+ }
+
+ return DriverResult::Success;
+}
+
+DriverResult JoyconCommonProtocol::GetSubCommandResponse(SubCommand sc,
+ SubCommandResponse& output) {
+ constexpr int timeout_mili = 66;
+ constexpr int MaxTries = 3;
+ int tries = 0;
+
+ do {
+ int result = SDL_hid_read_timeout(hidapi_handle->handle, reinterpret_cast<u8*>(&output),
+ sizeof(SubCommandResponse), timeout_mili);
+
+ if (result < 1) {
+ LOG_ERROR(Input, "No response from joycon");
+ }
+ if (tries++ > MaxTries) {
+ return DriverResult::Timeout;
+ }
+ } while (output.input_report.report_mode != ReportMode::SUBCMD_REPLY &&
+ output.sub_command != sc);
+
+ return DriverResult::Success;
+}
+
+DriverResult JoyconCommonProtocol::SendSubCommand(SubCommand sc, std::span<const u8> buffer,
+ SubCommandResponse& output) {
+ SubCommandPacket packet{
+ .output_report = OutputReport::RUMBLE_AND_SUBCMD,
+ .packet_counter = GetCounter(),
+ .sub_command = sc,
+ .command_data = {},
+ };
+
+ if (buffer.size() > packet.command_data.size()) {
+ return DriverResult::InvalidParameters;
+ }
+
+ memcpy(packet.command_data.data(), buffer.data(), buffer.size());
+
+ auto result = SendData(packet);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ return GetSubCommandResponse(sc, output);
+}
+
+DriverResult JoyconCommonProtocol::SendSubCommand(SubCommand sc, std::span<const u8> buffer) {
+ SubCommandResponse output{};
+ return SendSubCommand(sc, buffer, output);
+}
+
+DriverResult JoyconCommonProtocol::SendMCUCommand(SubCommand sc, std::span<const u8> buffer) {
+ SubCommandPacket packet{
+ .output_report = OutputReport::MCU_DATA,
+ .packet_counter = GetCounter(),
+ .sub_command = sc,
+ .command_data = {},
+ };
+
+ if (buffer.size() > packet.command_data.size()) {
+ return DriverResult::InvalidParameters;
+ }
+
+ memcpy(packet.command_data.data(), buffer.data(), buffer.size());
+
+ return SendData(packet);
+}
+
+DriverResult JoyconCommonProtocol::SendVibrationReport(std::span<const u8> buffer) {
+ VibrationPacket packet{
+ .output_report = OutputReport::RUMBLE_ONLY,
+ .packet_counter = GetCounter(),
+ .vibration_data = {},
+ };
+
+ if (buffer.size() > packet.vibration_data.size()) {
+ return DriverResult::InvalidParameters;
+ }
+
+ memcpy(packet.vibration_data.data(), buffer.data(), buffer.size());
+
+ return SendData(packet);
+}
+
+DriverResult JoyconCommonProtocol::ReadRawSPI(SpiAddress addr, std::span<u8> output) {
+ constexpr std::size_t HeaderSize = 5;
+ constexpr std::size_t MaxTries = 5;
+ std::size_t tries = 0;
+ SubCommandResponse response{};
+ std::array<u8, sizeof(ReadSpiPacket)> buffer{};
+ const ReadSpiPacket packet_data{
+ .spi_address = addr,
+ .size = static_cast<u8>(output.size()),
+ };
+
+ memcpy(buffer.data(), &packet_data, sizeof(ReadSpiPacket));
+ do {
+ const auto result = SendSubCommand(SubCommand::SPI_FLASH_READ, buffer, response);
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ if (tries++ > MaxTries) {
+ return DriverResult::Timeout;
+ }
+ } while (response.spi_address != addr);
+
+ if (response.command_data.size() < packet_data.size + HeaderSize) {
+ return DriverResult::WrongReply;
+ }
+
+ // Remove header from output
+ memcpy(output.data(), response.command_data.data() + HeaderSize, packet_data.size);
+ return DriverResult::Success;
+}
+
+DriverResult JoyconCommonProtocol::EnableMCU(bool enable) {
+ const std::array<u8, 1> mcu_state{static_cast<u8>(enable ? 1 : 0)};
+ const auto result = SendSubCommand(SubCommand::SET_MCU_STATE, mcu_state);
+
+ if (result != DriverResult::Success) {
+ LOG_ERROR(Input, "Failed with error {}", result);
+ }
+
+ return result;
+}
+
+DriverResult JoyconCommonProtocol::ConfigureMCU(const MCUConfig& config) {
+ LOG_DEBUG(Input, "ConfigureMCU");
+ std::array<u8, sizeof(MCUConfig)> config_buffer;
+ memcpy(config_buffer.data(), &config, sizeof(MCUConfig));
+ config_buffer[37] = CalculateMCU_CRC8(config_buffer.data() + 1, 36);
+
+ const auto result = SendSubCommand(SubCommand::SET_MCU_CONFIG, config_buffer);
+
+ if (result != DriverResult::Success) {
+ LOG_ERROR(Input, "Failed with error {}", result);
+ }
+
+ return result;
+}
+
+DriverResult JoyconCommonProtocol::GetMCUDataResponse(ReportMode report_mode,
+ MCUCommandResponse& output) {
+ constexpr int TimeoutMili = 200;
+ constexpr int MaxTries = 9;
+ int tries = 0;
+
+ do {
+ int result = SDL_hid_read_timeout(hidapi_handle->handle, reinterpret_cast<u8*>(&output),
+ sizeof(MCUCommandResponse), TimeoutMili);
+
+ if (result < 1) {
+ LOG_ERROR(Input, "No response from joycon attempt {}", tries);
+ }
+ if (tries++ > MaxTries) {
+ return DriverResult::Timeout;
+ }
+ } while (output.input_report.report_mode != report_mode ||
+ output.mcu_report == MCUReport::EmptyAwaitingCmd);
+
+ return DriverResult::Success;
+}
+
+DriverResult JoyconCommonProtocol::SendMCUData(ReportMode report_mode, MCUSubCommand sc,
+ std::span<const u8> buffer,
+ MCUCommandResponse& output) {
+ SubCommandPacket packet{
+ .output_report = OutputReport::MCU_DATA,
+ .packet_counter = GetCounter(),
+ .mcu_sub_command = sc,
+ .command_data = {},
+ };
+
+ if (buffer.size() > packet.command_data.size()) {
+ return DriverResult::InvalidParameters;
+ }
+
+ memcpy(packet.command_data.data(), buffer.data(), buffer.size());
+
+ auto result = SendData(packet);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ result = GetMCUDataResponse(report_mode, output);
+
+ return DriverResult::Success;
+}
+
+DriverResult JoyconCommonProtocol::WaitSetMCUMode(ReportMode report_mode, MCUMode mode) {
+ MCUCommandResponse output{};
+ constexpr std::size_t MaxTries{16};
+ std::size_t tries{};
+
+ do {
+ const auto result = SendMCUData(report_mode, MCUSubCommand::SetDeviceMode, {}, output);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ if (tries++ > MaxTries) {
+ return DriverResult::WrongReply;
+ }
+ } while (output.mcu_report != MCUReport::StateReport ||
+ output.mcu_data[6] != static_cast<u8>(mode));
+
+ return DriverResult::Success;
+}
+
+// crc-8-ccitt / polynomial 0x07 look up table
+constexpr std::array<u8, 256> mcu_crc8_table = {
+ 0x00, 0x07, 0x0E, 0x09, 0x1C, 0x1B, 0x12, 0x15, 0x38, 0x3F, 0x36, 0x31, 0x24, 0x23, 0x2A, 0x2D,
+ 0x70, 0x77, 0x7E, 0x79, 0x6C, 0x6B, 0x62, 0x65, 0x48, 0x4F, 0x46, 0x41, 0x54, 0x53, 0x5A, 0x5D,
+ 0xE0, 0xE7, 0xEE, 0xE9, 0xFC, 0xFB, 0xF2, 0xF5, 0xD8, 0xDF, 0xD6, 0xD1, 0xC4, 0xC3, 0xCA, 0xCD,
+ 0x90, 0x97, 0x9E, 0x99, 0x8C, 0x8B, 0x82, 0x85, 0xA8, 0xAF, 0xA6, 0xA1, 0xB4, 0xB3, 0xBA, 0xBD,
+ 0xC7, 0xC0, 0xC9, 0xCE, 0xDB, 0xDC, 0xD5, 0xD2, 0xFF, 0xF8, 0xF1, 0xF6, 0xE3, 0xE4, 0xED, 0xEA,
+ 0xB7, 0xB0, 0xB9, 0xBE, 0xAB, 0xAC, 0xA5, 0xA2, 0x8F, 0x88, 0x81, 0x86, 0x93, 0x94, 0x9D, 0x9A,
+ 0x27, 0x20, 0x29, 0x2E, 0x3B, 0x3C, 0x35, 0x32, 0x1F, 0x18, 0x11, 0x16, 0x03, 0x04, 0x0D, 0x0A,
+ 0x57, 0x50, 0x59, 0x5E, 0x4B, 0x4C, 0x45, 0x42, 0x6F, 0x68, 0x61, 0x66, 0x73, 0x74, 0x7D, 0x7A,
+ 0x89, 0x8E, 0x87, 0x80, 0x95, 0x92, 0x9B, 0x9C, 0xB1, 0xB6, 0xBF, 0xB8, 0xAD, 0xAA, 0xA3, 0xA4,
+ 0xF9, 0xFE, 0xF7, 0xF0, 0xE5, 0xE2, 0xEB, 0xEC, 0xC1, 0xC6, 0xCF, 0xC8, 0xDD, 0xDA, 0xD3, 0xD4,
+ 0x69, 0x6E, 0x67, 0x60, 0x75, 0x72, 0x7B, 0x7C, 0x51, 0x56, 0x5F, 0x58, 0x4D, 0x4A, 0x43, 0x44,
+ 0x19, 0x1E, 0x17, 0x10, 0x05, 0x02, 0x0B, 0x0C, 0x21, 0x26, 0x2F, 0x28, 0x3D, 0x3A, 0x33, 0x34,
+ 0x4E, 0x49, 0x40, 0x47, 0x52, 0x55, 0x5C, 0x5B, 0x76, 0x71, 0x78, 0x7F, 0x6A, 0x6D, 0x64, 0x63,
+ 0x3E, 0x39, 0x30, 0x37, 0x22, 0x25, 0x2C, 0x2B, 0x06, 0x01, 0x08, 0x0F, 0x1A, 0x1D, 0x14, 0x13,
+ 0xAE, 0xA9, 0xA0, 0xA7, 0xB2, 0xB5, 0xBC, 0xBB, 0x96, 0x91, 0x98, 0x9F, 0x8A, 0x8D, 0x84, 0x83,
+ 0xDE, 0xD9, 0xD0, 0xD7, 0xC2, 0xC5, 0xCC, 0xCB, 0xE6, 0xE1, 0xE8, 0xEF, 0xFA, 0xFD, 0xF4, 0xF3};
+
+u8 JoyconCommonProtocol::CalculateMCU_CRC8(u8* buffer, u8 size) const {
+ u8 crc8 = 0x0;
+
+ for (int i = 0; i < size; ++i) {
+ crc8 = mcu_crc8_table[static_cast<u8>(crc8 ^ buffer[i])];
+ }
+ return crc8;
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/common_protocol.h b/src/input_common/helpers/joycon_protocol/common_protocol.h
new file mode 100644
index 000000000..411ec018a
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/common_protocol.h
@@ -0,0 +1,201 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <memory>
+#include <span>
+#include <vector>
+
+#include "common/common_types.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+/// Joycon driver functions that handle low level communication
+class JoyconCommonProtocol {
+public:
+ explicit JoyconCommonProtocol(std::shared_ptr<JoyconHandle> hidapi_handle_);
+
+ /**
+ * Sets handle to blocking. In blocking mode, SDL_hid_read() will wait (block) until there is
+ * data to read before returning.
+ */
+ void SetBlocking();
+
+ /**
+ * Sets handle to non blocking. In non-blocking mode calls to SDL_hid_read() will return
+ * immediately with a value of 0 if there is no data to be read
+ */
+ void SetNonBlocking();
+
+ /**
+ * Sends a request to obtain the joycon type from device
+ * @returns controller type of the joycon
+ */
+ DriverResult GetDeviceType(ControllerType& controller_type);
+
+ /**
+ * Verifies and sets the joycon_handle if device is valid
+ * @param device info from the driver
+ * @returns success if the device is valid
+ */
+ DriverResult CheckDeviceAccess(SDL_hid_device_info* device);
+
+ /**
+ * Sends a request to set the polling mode of the joycon
+ * @param report_mode polling mode to be set
+ */
+ DriverResult SetReportMode(Joycon::ReportMode report_mode);
+
+ /**
+ * Sends data to the joycon device
+ * @param buffer data to be send
+ */
+ DriverResult SendRawData(std::span<const u8> buffer);
+
+ template <typename Output>
+ requires std::is_trivially_copyable_v<Output>
+ DriverResult SendData(const Output& output) {
+ std::array<u8, sizeof(Output)> buffer;
+ std::memcpy(buffer.data(), &output, sizeof(Output));
+ return SendRawData(buffer);
+ }
+
+ /**
+ * Waits for incoming data of the joycon device that matches the subcommand
+ * @param sub_command type of data to be returned
+ * @returns a buffer containing the response
+ */
+ DriverResult GetSubCommandResponse(SubCommand sub_command, SubCommandResponse& output);
+
+ /**
+ * Sends a sub command to the device and waits for it's reply
+ * @param sc sub command to be send
+ * @param buffer data to be send
+ * @returns output buffer containing the response
+ */
+ DriverResult SendSubCommand(SubCommand sc, std::span<const u8> buffer,
+ SubCommandResponse& output);
+
+ /**
+ * Sends a sub command to the device and waits for it's reply and ignores the output
+ * @param sc sub command to be send
+ * @param buffer data to be send
+ */
+ DriverResult SendSubCommand(SubCommand sc, std::span<const u8> buffer);
+
+ /**
+ * Sends a mcu command to the device
+ * @param sc sub command to be send
+ * @param buffer data to be send
+ */
+ DriverResult SendMCUCommand(SubCommand sc, std::span<const u8> buffer);
+
+ /**
+ * Sends vibration data to the joycon
+ * @param buffer data to be send
+ */
+ DriverResult SendVibrationReport(std::span<const u8> buffer);
+
+ /**
+ * Reads the SPI memory stored on the joycon
+ * @param Initial address location
+ * @returns output buffer containing the response
+ */
+ DriverResult ReadRawSPI(SpiAddress addr, std::span<u8> output);
+
+ /**
+ * Reads the SPI memory stored on the joycon
+ * @param Initial address location
+ * @returns output object containing the response
+ */
+ template <typename Output>
+ requires std::is_trivially_copyable_v<Output>
+ DriverResult ReadSPI(SpiAddress addr, Output& output) {
+ std::array<u8, sizeof(Output)> buffer;
+ output = {};
+
+ const auto result = ReadRawSPI(addr, buffer);
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ std::memcpy(&output, buffer.data(), sizeof(Output));
+ return DriverResult::Success;
+ }
+
+ /**
+ * Enables MCU chip on the joycon
+ * @param enable if true the chip will be enabled
+ */
+ DriverResult EnableMCU(bool enable);
+
+ /**
+ * Configures the MCU to the corresponding mode
+ * @param MCUConfig configuration
+ */
+ DriverResult ConfigureMCU(const MCUConfig& config);
+
+ /**
+ * Waits until there's MCU data available. On timeout returns error
+ * @param report mode of the expected reply
+ * @returns a buffer containing the response
+ */
+ DriverResult GetMCUDataResponse(ReportMode report_mode_, MCUCommandResponse& output);
+
+ /**
+ * Sends data to the MCU chip and waits for it's reply
+ * @param report mode of the expected reply
+ * @param sub command to be send
+ * @param buffer data to be send
+ * @returns output buffer containing the response
+ */
+ DriverResult SendMCUData(ReportMode report_mode, MCUSubCommand sc, std::span<const u8> buffer,
+ MCUCommandResponse& output);
+
+ /**
+ * Wait's until the MCU chip is on the specified mode
+ * @param report mode of the expected reply
+ * @param MCUMode configuration
+ */
+ DriverResult WaitSetMCUMode(ReportMode report_mode, MCUMode mode);
+
+ /**
+ * Calculates the checksum from the MCU data
+ * @param buffer containing the data to be send
+ * @param size of the buffer in bytes
+ * @returns byte with the correct checksum
+ */
+ u8 CalculateMCU_CRC8(u8* buffer, u8 size) const;
+
+private:
+ /**
+ * Increments and returns the packet counter of the handle
+ * @param joycon_handle device to send the data
+ * @returns packet counter value
+ */
+ u8 GetCounter();
+
+ std::shared_ptr<JoyconHandle> hidapi_handle;
+};
+
+class ScopedSetBlocking {
+public:
+ explicit ScopedSetBlocking(JoyconCommonProtocol* self) : m_self{self} {
+ m_self->SetBlocking();
+ }
+
+ ~ScopedSetBlocking() {
+ m_self->SetNonBlocking();
+ }
+
+private:
+ JoyconCommonProtocol* m_self{};
+};
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/generic_functions.cpp b/src/input_common/helpers/joycon_protocol/generic_functions.cpp
new file mode 100644
index 000000000..548a4b9e3
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/generic_functions.cpp
@@ -0,0 +1,136 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "input_common/helpers/joycon_protocol/generic_functions.h"
+
+namespace InputCommon::Joycon {
+
+GenericProtocol::GenericProtocol(std::shared_ptr<JoyconHandle> handle)
+ : JoyconCommonProtocol(std::move(handle)) {}
+
+DriverResult GenericProtocol::EnablePassiveMode() {
+ ScopedSetBlocking sb(this);
+ return SetReportMode(ReportMode::SIMPLE_HID_MODE);
+}
+
+DriverResult GenericProtocol::EnableActiveMode() {
+ ScopedSetBlocking sb(this);
+ return SetReportMode(ReportMode::STANDARD_FULL_60HZ);
+}
+
+DriverResult GenericProtocol::SetLowPowerMode(bool enable) {
+ ScopedSetBlocking sb(this);
+ const std::array<u8, 1> buffer{static_cast<u8>(enable ? 1 : 0)};
+ return SendSubCommand(SubCommand::LOW_POWER_MODE, buffer);
+}
+
+DriverResult GenericProtocol::TriggersElapsed() {
+ ScopedSetBlocking sb(this);
+ return SendSubCommand(SubCommand::TRIGGERS_ELAPSED, {});
+}
+
+DriverResult GenericProtocol::GetDeviceInfo(DeviceInfo& device_info) {
+ ScopedSetBlocking sb(this);
+ SubCommandResponse output{};
+
+ const auto result = SendSubCommand(SubCommand::REQ_DEV_INFO, {}, output);
+
+ device_info = {};
+ if (result == DriverResult::Success) {
+ device_info = output.device_info;
+ }
+
+ return result;
+}
+
+DriverResult GenericProtocol::GetControllerType(ControllerType& controller_type) {
+ return GetDeviceType(controller_type);
+}
+
+DriverResult GenericProtocol::EnableImu(bool enable) {
+ ScopedSetBlocking sb(this);
+ const std::array<u8, 1> buffer{static_cast<u8>(enable ? 1 : 0)};
+ return SendSubCommand(SubCommand::ENABLE_IMU, buffer);
+}
+
+DriverResult GenericProtocol::SetImuConfig(GyroSensitivity gsen, GyroPerformance gfrec,
+ AccelerometerSensitivity asen,
+ AccelerometerPerformance afrec) {
+ ScopedSetBlocking sb(this);
+ const std::array<u8, 4> buffer{static_cast<u8>(gsen), static_cast<u8>(asen),
+ static_cast<u8>(gfrec), static_cast<u8>(afrec)};
+ return SendSubCommand(SubCommand::SET_IMU_SENSITIVITY, buffer);
+}
+
+DriverResult GenericProtocol::GetBattery(u32& battery_level) {
+ // This function is meant to request the high resolution battery status
+ battery_level = 0;
+ return DriverResult::NotSupported;
+}
+
+DriverResult GenericProtocol::GetColor(Color& color) {
+ ScopedSetBlocking sb(this);
+ std::array<u8, 12> buffer{};
+ const auto result = ReadRawSPI(SpiAddress::COLOR_DATA, buffer);
+
+ color = {};
+ if (result == DriverResult::Success) {
+ color.body = static_cast<u32>((buffer[0] << 16) | (buffer[1] << 8) | buffer[2]);
+ color.buttons = static_cast<u32>((buffer[3] << 16) | (buffer[4] << 8) | buffer[5]);
+ color.left_grip = static_cast<u32>((buffer[6] << 16) | (buffer[7] << 8) | buffer[8]);
+ color.right_grip = static_cast<u32>((buffer[9] << 16) | (buffer[10] << 8) | buffer[11]);
+ }
+
+ return result;
+}
+
+DriverResult GenericProtocol::GetSerialNumber(SerialNumber& serial_number) {
+ ScopedSetBlocking sb(this);
+ std::array<u8, 16> buffer{};
+ const auto result = ReadRawSPI(SpiAddress::SERIAL_NUMBER, buffer);
+
+ serial_number = {};
+ if (result == DriverResult::Success) {
+ memcpy(serial_number.data(), buffer.data() + 1, sizeof(SerialNumber));
+ }
+
+ return result;
+}
+
+DriverResult GenericProtocol::GetTemperature(u32& temperature) {
+ // Not all devices have temperature sensor
+ temperature = 25;
+ return DriverResult::NotSupported;
+}
+
+DriverResult GenericProtocol::GetVersionNumber(FirmwareVersion& version) {
+ DeviceInfo device_info{};
+
+ const auto result = GetDeviceInfo(device_info);
+ version = device_info.firmware;
+
+ return result;
+}
+
+DriverResult GenericProtocol::SetHomeLight() {
+ ScopedSetBlocking sb(this);
+ static constexpr std::array<u8, 3> buffer{0x0f, 0xf0, 0x00};
+ return SendSubCommand(SubCommand::SET_HOME_LIGHT, buffer);
+}
+
+DriverResult GenericProtocol::SetLedBusy() {
+ return DriverResult::NotSupported;
+}
+
+DriverResult GenericProtocol::SetLedPattern(u8 leds) {
+ ScopedSetBlocking sb(this);
+ const std::array<u8, 1> buffer{leds};
+ return SendSubCommand(SubCommand::SET_PLAYER_LIGHTS, buffer);
+}
+
+DriverResult GenericProtocol::SetLedBlinkPattern(u8 leds) {
+ return SetLedPattern(static_cast<u8>(leds << 4));
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/generic_functions.h b/src/input_common/helpers/joycon_protocol/generic_functions.h
new file mode 100644
index 000000000..424831e81
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/generic_functions.h
@@ -0,0 +1,114 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include "input_common/helpers/joycon_protocol/common_protocol.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+/// Joycon driver functions that easily implemented
+class GenericProtocol final : private JoyconCommonProtocol {
+public:
+ explicit GenericProtocol(std::shared_ptr<JoyconHandle> handle);
+
+ /// Enables passive mode. This mode only sends button data on change. Sticks will return digital
+ /// data instead of analog. Motion will be disabled
+ DriverResult EnablePassiveMode();
+
+ /// Enables active mode. This mode will return the current status every 5-15ms
+ DriverResult EnableActiveMode();
+
+ /// Enables or disables the low power mode
+ DriverResult SetLowPowerMode(bool enable);
+
+ /// Unknown function used by the switch
+ DriverResult TriggersElapsed();
+
+ /**
+ * Sends a request to obtain the joycon firmware and mac from handle
+ * @returns controller device info
+ */
+ DriverResult GetDeviceInfo(DeviceInfo& controller_type);
+
+ /**
+ * Sends a request to obtain the joycon type from handle
+ * @returns controller type of the joycon
+ */
+ DriverResult GetControllerType(ControllerType& controller_type);
+
+ /**
+ * Enables motion input
+ * @param enable if true motion data will be enabled
+ */
+ DriverResult EnableImu(bool enable);
+
+ /**
+ * Configures the motion sensor with the specified parameters
+ * @param gsen gyroscope sensor sensitvity in degrees per second
+ * @param gfrec gyroscope sensor frequency in hertz
+ * @param asen accelerometer sensitivity in G force
+ * @param afrec accelerometer frequency in hertz
+ */
+ DriverResult SetImuConfig(GyroSensitivity gsen, GyroPerformance gfrec,
+ AccelerometerSensitivity asen, AccelerometerPerformance afrec);
+
+ /**
+ * Request battery level from the device
+ * @returns battery level
+ */
+ DriverResult GetBattery(u32& battery_level);
+
+ /**
+ * Request joycon colors from the device
+ * @returns colors of the body and buttons
+ */
+ DriverResult GetColor(Color& color);
+
+ /**
+ * Request joycon serial number from the device
+ * @returns 16 byte serial number
+ */
+ DriverResult GetSerialNumber(SerialNumber& serial_number);
+
+ /**
+ * Request joycon serial number from the device
+ * @returns 16 byte serial number
+ */
+ DriverResult GetTemperature(u32& temperature);
+
+ /**
+ * Request joycon serial number from the device
+ * @returns 16 byte serial number
+ */
+ DriverResult GetVersionNumber(FirmwareVersion& version);
+
+ /**
+ * Sets home led behaviour
+ */
+ DriverResult SetHomeLight();
+
+ /**
+ * Sets home led into a slow breathing state
+ */
+ DriverResult SetLedBusy();
+
+ /**
+ * Sets the 4 player leds on the joycon on a solid state
+ * @params bit flag containing the led state
+ */
+ DriverResult SetLedPattern(u8 leds);
+
+ /**
+ * Sets the 4 player leds on the joycon on a blinking state
+ * @returns bit flag containing the led state
+ */
+ DriverResult SetLedBlinkPattern(u8 leds);
+};
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/irs.cpp b/src/input_common/helpers/joycon_protocol/irs.cpp
new file mode 100644
index 000000000..731fd5981
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/irs.cpp
@@ -0,0 +1,299 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <thread>
+#include "common/logging/log.h"
+#include "input_common/helpers/joycon_protocol/irs.h"
+
+namespace InputCommon::Joycon {
+
+IrsProtocol::IrsProtocol(std::shared_ptr<JoyconHandle> handle)
+ : JoyconCommonProtocol(std::move(handle)) {}
+
+DriverResult IrsProtocol::EnableIrs() {
+ LOG_INFO(Input, "Enable IRS");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ result = SetReportMode(ReportMode::NFC_IR_MODE_60HZ);
+ }
+ if (result == DriverResult::Success) {
+ result = EnableMCU(true);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitSetMCUMode(ReportMode::NFC_IR_MODE_60HZ, MCUMode::Standby);
+ }
+ if (result == DriverResult::Success) {
+ const MCUConfig config{
+ .command = MCUCommand::ConfigureMCU,
+ .sub_command = MCUSubCommand::SetMCUMode,
+ .mode = MCUMode::IR,
+ .crc = {},
+ };
+
+ result = ConfigureMCU(config);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitSetMCUMode(ReportMode::NFC_IR_MODE_60HZ, MCUMode::IR);
+ }
+ if (result == DriverResult::Success) {
+ result = ConfigureIrs();
+ }
+ if (result == DriverResult::Success) {
+ result = WriteRegistersStep1();
+ }
+ if (result == DriverResult::Success) {
+ result = WriteRegistersStep2();
+ }
+
+ is_enabled = true;
+
+ return result;
+}
+
+DriverResult IrsProtocol::DisableIrs() {
+ LOG_DEBUG(Input, "Disable IRS");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ result = EnableMCU(false);
+ }
+
+ is_enabled = false;
+
+ return result;
+}
+
+DriverResult IrsProtocol::SetIrsConfig(IrsMode mode, IrsResolution format) {
+ irs_mode = mode;
+ switch (format) {
+ case IrsResolution::Size320x240:
+ resolution_code = IrsResolutionCode::Size320x240;
+ fragments = IrsFragments::Size320x240;
+ resolution = IrsResolution::Size320x240;
+ break;
+ case IrsResolution::Size160x120:
+ resolution_code = IrsResolutionCode::Size160x120;
+ fragments = IrsFragments::Size160x120;
+ resolution = IrsResolution::Size160x120;
+ break;
+ case IrsResolution::Size80x60:
+ resolution_code = IrsResolutionCode::Size80x60;
+ fragments = IrsFragments::Size80x60;
+ resolution = IrsResolution::Size80x60;
+ break;
+ case IrsResolution::Size20x15:
+ resolution_code = IrsResolutionCode::Size20x15;
+ fragments = IrsFragments::Size20x15;
+ resolution = IrsResolution::Size20x15;
+ break;
+ case IrsResolution::Size40x30:
+ default:
+ resolution_code = IrsResolutionCode::Size40x30;
+ fragments = IrsFragments::Size40x30;
+ resolution = IrsResolution::Size40x30;
+ break;
+ }
+
+ // Restart feature
+ if (is_enabled) {
+ DisableIrs();
+ return EnableIrs();
+ }
+
+ return DriverResult::Success;
+}
+
+DriverResult IrsProtocol::RequestImage(std::span<u8> buffer) {
+ const u8 next_packet_fragment =
+ static_cast<u8>((packet_fragment + 1) % (static_cast<u8>(fragments) + 1));
+
+ if (buffer[0] == 0x31 && buffer[49] == 0x03) {
+ u8 new_packet_fragment = buffer[52];
+ if (new_packet_fragment == next_packet_fragment) {
+ packet_fragment = next_packet_fragment;
+ memcpy(buf_image.data() + (300 * packet_fragment), buffer.data() + 59, 300);
+
+ return RequestFrame(packet_fragment);
+ }
+
+ if (new_packet_fragment == packet_fragment) {
+ return RequestFrame(packet_fragment);
+ }
+
+ return ResendFrame(next_packet_fragment);
+ }
+
+ return RequestFrame(packet_fragment);
+}
+
+DriverResult IrsProtocol::ConfigureIrs() {
+ LOG_DEBUG(Input, "Configure IRS");
+ constexpr std::size_t max_tries = 28;
+ SubCommandResponse output{};
+ std::size_t tries = 0;
+
+ const IrsConfigure irs_configuration{
+ .command = MCUCommand::ConfigureIR,
+ .sub_command = MCUSubCommand::SetDeviceMode,
+ .irs_mode = IrsMode::ImageTransfer,
+ .number_of_fragments = fragments,
+ .mcu_major_version = 0x0500,
+ .mcu_minor_version = 0x1800,
+ .crc = {},
+ };
+ buf_image.resize((static_cast<u8>(fragments) + 1) * 300);
+
+ std::array<u8, sizeof(IrsConfigure)> request_data{};
+ memcpy(request_data.data(), &irs_configuration, sizeof(IrsConfigure));
+ request_data[37] = CalculateMCU_CRC8(request_data.data() + 1, 36);
+ do {
+ const auto result = SendSubCommand(SubCommand::SET_MCU_CONFIG, request_data, output);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+ if (tries++ >= max_tries) {
+ return DriverResult::WrongReply;
+ }
+ } while (output.command_data[0] != 0x0b);
+
+ return DriverResult::Success;
+}
+
+DriverResult IrsProtocol::WriteRegistersStep1() {
+ LOG_DEBUG(Input, "WriteRegistersStep1");
+ DriverResult result{DriverResult::Success};
+ constexpr std::size_t max_tries = 28;
+ SubCommandResponse output{};
+ std::size_t tries = 0;
+
+ const IrsWriteRegisters irs_registers{
+ .command = MCUCommand::ConfigureIR,
+ .sub_command = MCUSubCommand::WriteDeviceRegisters,
+ .number_of_registers = 0x9,
+ .registers =
+ {
+ IrsRegister{IrRegistersAddress::Resolution, static_cast<u8>(resolution_code)},
+ {IrRegistersAddress::ExposureLSB, static_cast<u8>(exposure & 0xff)},
+ {IrRegistersAddress::ExposureMSB, static_cast<u8>(exposure >> 8)},
+ {IrRegistersAddress::ExposureTime, 0x00},
+ {IrRegistersAddress::Leds, static_cast<u8>(leds)},
+ {IrRegistersAddress::DigitalGainLSB, static_cast<u8>((digital_gain & 0x0f) << 4)},
+ {IrRegistersAddress::DigitalGainMSB, static_cast<u8>((digital_gain & 0xf0) >> 4)},
+ {IrRegistersAddress::LedFilter, static_cast<u8>(led_filter)},
+ {IrRegistersAddress::WhitePixelThreshold, 0xc8},
+ },
+ .crc = {},
+ };
+
+ std::array<u8, sizeof(IrsWriteRegisters)> request_data{};
+ memcpy(request_data.data(), &irs_registers, sizeof(IrsWriteRegisters));
+ request_data[37] = CalculateMCU_CRC8(request_data.data() + 1, 36);
+
+ std::array<u8, 38> mcu_request{0x02};
+ mcu_request[36] = CalculateMCU_CRC8(mcu_request.data(), 36);
+ mcu_request[37] = 0xFF;
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ do {
+ result = SendSubCommand(SubCommand::SET_MCU_CONFIG, request_data, output);
+
+ // First time we need to set the report mode
+ if (result == DriverResult::Success && tries == 0) {
+ result = SendMCUCommand(SubCommand::SET_REPORT_MODE, mcu_request);
+ }
+ if (result == DriverResult::Success && tries == 0) {
+ GetSubCommandResponse(SubCommand::SET_MCU_CONFIG, output);
+ }
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+ if (tries++ >= max_tries) {
+ return DriverResult::WrongReply;
+ }
+ } while (!(output.command_data[0] == 0x13 && output.command_data[2] == 0x07) &&
+ output.command_data[0] != 0x23);
+
+ return DriverResult::Success;
+}
+
+DriverResult IrsProtocol::WriteRegistersStep2() {
+ LOG_DEBUG(Input, "WriteRegistersStep2");
+ constexpr std::size_t max_tries = 28;
+ SubCommandResponse output{};
+ std::size_t tries = 0;
+
+ const IrsWriteRegisters irs_registers{
+ .command = MCUCommand::ConfigureIR,
+ .sub_command = MCUSubCommand::WriteDeviceRegisters,
+ .number_of_registers = 0x8,
+ .registers =
+ {
+ IrsRegister{IrRegistersAddress::LedIntensitiyMSB,
+ static_cast<u8>(led_intensity >> 8)},
+ {IrRegistersAddress::LedIntensitiyLSB, static_cast<u8>(led_intensity & 0xff)},
+ {IrRegistersAddress::ImageFlip, static_cast<u8>(image_flip)},
+ {IrRegistersAddress::DenoiseSmoothing, static_cast<u8>((denoise >> 16) & 0xff)},
+ {IrRegistersAddress::DenoiseEdge, static_cast<u8>((denoise >> 8) & 0xff)},
+ {IrRegistersAddress::DenoiseColor, static_cast<u8>(denoise & 0xff)},
+ {IrRegistersAddress::UpdateTime, 0x2d},
+ {IrRegistersAddress::FinalizeConfig, 0x01},
+ },
+ .crc = {},
+ };
+
+ std::array<u8, sizeof(IrsWriteRegisters)> request_data{};
+ memcpy(request_data.data(), &irs_registers, sizeof(IrsWriteRegisters));
+ request_data[37] = CalculateMCU_CRC8(request_data.data() + 1, 36);
+ do {
+ const auto result = SendSubCommand(SubCommand::SET_MCU_CONFIG, request_data, output);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+ if (tries++ >= max_tries) {
+ return DriverResult::WrongReply;
+ }
+ } while (output.command_data[0] != 0x13 && output.command_data[0] != 0x23);
+
+ return DriverResult::Success;
+}
+
+DriverResult IrsProtocol::RequestFrame(u8 frame) {
+ std::array<u8, 38> mcu_request{};
+ mcu_request[3] = frame;
+ mcu_request[36] = CalculateMCU_CRC8(mcu_request.data(), 36);
+ mcu_request[37] = 0xFF;
+ return SendMCUCommand(SubCommand::SET_REPORT_MODE, mcu_request);
+}
+
+DriverResult IrsProtocol::ResendFrame(u8 frame) {
+ std::array<u8, 38> mcu_request{};
+ mcu_request[1] = 0x1;
+ mcu_request[2] = frame;
+ mcu_request[3] = 0x0;
+ mcu_request[36] = CalculateMCU_CRC8(mcu_request.data(), 36);
+ mcu_request[37] = 0xFF;
+ return SendMCUCommand(SubCommand::SET_REPORT_MODE, mcu_request);
+}
+
+std::vector<u8> IrsProtocol::GetImage() const {
+ return buf_image;
+}
+
+IrsResolution IrsProtocol::GetIrsFormat() const {
+ return resolution;
+}
+
+bool IrsProtocol::IsEnabled() const {
+ return is_enabled;
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/irs.h b/src/input_common/helpers/joycon_protocol/irs.h
new file mode 100644
index 000000000..76dfa02ea
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/irs.h
@@ -0,0 +1,63 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <vector>
+
+#include "input_common/helpers/joycon_protocol/common_protocol.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+class IrsProtocol final : private JoyconCommonProtocol {
+public:
+ explicit IrsProtocol(std::shared_ptr<JoyconHandle> handle);
+
+ DriverResult EnableIrs();
+
+ DriverResult DisableIrs();
+
+ DriverResult SetIrsConfig(IrsMode mode, IrsResolution format);
+
+ DriverResult RequestImage(std::span<u8> buffer);
+
+ std::vector<u8> GetImage() const;
+
+ IrsResolution GetIrsFormat() const;
+
+ bool IsEnabled() const;
+
+private:
+ DriverResult ConfigureIrs();
+
+ DriverResult WriteRegistersStep1();
+ DriverResult WriteRegistersStep2();
+
+ DriverResult RequestFrame(u8 frame);
+ DriverResult ResendFrame(u8 frame);
+
+ IrsMode irs_mode{IrsMode::ImageTransfer};
+ IrsResolution resolution{IrsResolution::Size40x30};
+ IrsResolutionCode resolution_code{IrsResolutionCode::Size40x30};
+ IrsFragments fragments{IrsFragments::Size40x30};
+ IrLeds leds{IrLeds::BrightAndDim};
+ IrExLedFilter led_filter{IrExLedFilter::Enabled};
+ IrImageFlip image_flip{IrImageFlip::Normal};
+ u8 digital_gain{0x01};
+ u16 exposure{0x2490};
+ u16 led_intensity{0x0f10};
+ u32 denoise{0x012344};
+
+ u8 packet_fragment{};
+ std::vector<u8> buf_image; // 8bpp greyscale image.
+
+ bool is_enabled{};
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/joycon_types.h b/src/input_common/helpers/joycon_protocol/joycon_types.h
new file mode 100644
index 000000000..e0e431156
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/joycon_types.h
@@ -0,0 +1,808 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <array>
+#include <functional>
+#include <SDL_hidapi.h>
+
+#include "common/bit_field.h"
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+
+namespace InputCommon::Joycon {
+constexpr u32 MaxErrorCount = 50;
+constexpr u32 MaxBufferSize = 368;
+constexpr std::array<u8, 8> DefaultVibrationBuffer{0x0, 0x1, 0x40, 0x40, 0x0, 0x1, 0x40, 0x40};
+
+using MacAddress = std::array<u8, 6>;
+using SerialNumber = std::array<u8, 15>;
+using TagUUID = std::array<u8, 7>;
+using MifareUUID = std::array<u8, 4>;
+
+enum class ControllerType : u8 {
+ None = 0x00,
+ Left = 0x01,
+ Right = 0x02,
+ Pro = 0x03,
+ Dual = 0x05, // TODO: Verify this id
+ LarkHvc1 = 0x07,
+ LarkHvc2 = 0x08,
+ LarkNesLeft = 0x09,
+ LarkNesRight = 0x0A,
+ Lucia = 0x0B,
+ Lagon = 0x0C,
+ Lager = 0x0D,
+};
+
+enum class PadAxes {
+ LeftStickX,
+ LeftStickY,
+ RightStickX,
+ RightStickY,
+ Undefined,
+};
+
+enum class PadMotion {
+ LeftMotion,
+ RightMotion,
+ Undefined,
+};
+
+enum class PadButton : u32 {
+ Down = 0x000001,
+ Up = 0x000002,
+ Right = 0x000004,
+ Left = 0x000008,
+ LeftSR = 0x000010,
+ LeftSL = 0x000020,
+ L = 0x000040,
+ ZL = 0x000080,
+ Y = 0x000100,
+ X = 0x000200,
+ B = 0x000400,
+ A = 0x000800,
+ RightSR = 0x001000,
+ RightSL = 0x002000,
+ R = 0x004000,
+ ZR = 0x008000,
+ Minus = 0x010000,
+ Plus = 0x020000,
+ StickR = 0x040000,
+ StickL = 0x080000,
+ Home = 0x100000,
+ Capture = 0x200000,
+};
+
+enum class PassivePadButton : u32 {
+ Down_A = 0x0001,
+ Right_X = 0x0002,
+ Left_B = 0x0004,
+ Up_Y = 0x0008,
+ SL = 0x0010,
+ SR = 0x0020,
+ Minus = 0x0100,
+ Plus = 0x0200,
+ StickL = 0x0400,
+ StickR = 0x0800,
+ Home = 0x1000,
+ Capture = 0x2000,
+ L_R = 0x4000,
+ ZL_ZR = 0x8000,
+};
+
+enum class PassivePadStick : u8 {
+ Right = 0x00,
+ RightDown = 0x01,
+ Down = 0x02,
+ DownLeft = 0x03,
+ Left = 0x04,
+ LeftUp = 0x05,
+ Up = 0x06,
+ UpRight = 0x07,
+ Neutral = 0x08,
+};
+
+enum class OutputReport : u8 {
+ RUMBLE_AND_SUBCMD = 0x01,
+ FW_UPDATE_PKT = 0x03,
+ RUMBLE_ONLY = 0x10,
+ MCU_DATA = 0x11,
+ USB_CMD = 0x80,
+};
+
+enum class FeatureReport : u8 {
+ Last_SUBCMD = 0x02,
+ OTA_GW_UPGRADE = 0x70,
+ SETUP_MEM_READ = 0x71,
+ MEM_READ = 0x72,
+ ERASE_MEM_SECTOR = 0x73,
+ MEM_WRITE = 0x74,
+ LAUNCH = 0x75,
+};
+
+enum class SubCommand : u8 {
+ STATE = 0x00,
+ MANUAL_BT_PAIRING = 0x01,
+ REQ_DEV_INFO = 0x02,
+ SET_REPORT_MODE = 0x03,
+ TRIGGERS_ELAPSED = 0x04,
+ GET_PAGE_LIST_STATE = 0x05,
+ SET_HCI_STATE = 0x06,
+ RESET_PAIRING_INFO = 0x07,
+ LOW_POWER_MODE = 0x08,
+ SPI_FLASH_READ = 0x10,
+ SPI_FLASH_WRITE = 0x11,
+ SPI_SECTOR_ERASE = 0x12,
+ RESET_MCU = 0x20,
+ SET_MCU_CONFIG = 0x21,
+ SET_MCU_STATE = 0x22,
+ SET_PLAYER_LIGHTS = 0x30,
+ GET_PLAYER_LIGHTS = 0x31,
+ SET_HOME_LIGHT = 0x38,
+ ENABLE_IMU = 0x40,
+ SET_IMU_SENSITIVITY = 0x41,
+ WRITE_IMU_REG = 0x42,
+ READ_IMU_REG = 0x43,
+ ENABLE_VIBRATION = 0x48,
+ GET_REGULATED_VOLTAGE = 0x50,
+ SET_EXTERNAL_CONFIG = 0x58,
+ GET_EXTERNAL_DEVICE_INFO = 0x59,
+ ENABLE_EXTERNAL_POLLING = 0x5A,
+ DISABLE_EXTERNAL_POLLING = 0x5B,
+ SET_EXTERNAL_FORMAT_CONFIG = 0x5C,
+};
+
+enum class UsbSubCommand : u8 {
+ CONN_STATUS = 0x01,
+ HADSHAKE = 0x02,
+ BAUDRATE_3M = 0x03,
+ NO_TIMEOUT = 0x04,
+ EN_TIMEOUT = 0x05,
+ RESET = 0x06,
+ PRE_HANDSHAKE = 0x91,
+ SEND_UART = 0x92,
+};
+
+enum class CalibrationMagic : u8 {
+ USR_MAGIC_0 = 0xB2,
+ USR_MAGIC_1 = 0xA1,
+};
+
+enum class SpiAddress : u16 {
+ MAGIC = 0x0000,
+ MAC_ADDRESS = 0x0015,
+ PAIRING_INFO = 0x2000,
+ SHIPMENT = 0x5000,
+ SERIAL_NUMBER = 0x6000,
+ DEVICE_TYPE = 0x6012,
+ FORMAT_VERSION = 0x601B,
+ FACT_IMU_DATA = 0x6020,
+ FACT_LEFT_DATA = 0x603d,
+ FACT_RIGHT_DATA = 0x6046,
+ COLOR_DATA = 0x6050,
+ DESIGN_VARIATION = 0x605C,
+ SENSOR_DATA = 0x6080,
+ USER_LEFT_MAGIC = 0x8010,
+ USER_LEFT_DATA = 0x8012,
+ USER_RIGHT_MAGIC = 0x801B,
+ USER_RIGHT_DATA = 0x801D,
+ USER_IMU_MAGIC = 0x8026,
+ USER_IMU_DATA = 0x8028,
+};
+
+enum class ReportMode : u8 {
+ ACTIVE_POLLING_NFC_IR_CAMERA_DATA = 0x00,
+ ACTIVE_POLLING_NFC_IR_CAMERA_CONFIGURATION = 0x01,
+ ACTIVE_POLLING_NFC_IR_CAMERA_DATA_CONFIGURATION = 0x02,
+ ACTIVE_POLLING_IR_CAMERA_DATA = 0x03,
+ SUBCMD_REPLY = 0x21,
+ MCU_UPDATE_STATE = 0x23,
+ STANDARD_FULL_60HZ = 0x30,
+ NFC_IR_MODE_60HZ = 0x31,
+ SIMPLE_HID_MODE = 0x3F,
+ INPUT_USB_RESPONSE = 0x81,
+};
+
+enum class GyroSensitivity : u8 {
+ DPS250,
+ DPS500,
+ DPS1000,
+ DPS2000, // Default
+};
+
+enum class AccelerometerSensitivity : u8 {
+ G8, // Default
+ G4,
+ G2,
+ G16,
+};
+
+enum class GyroPerformance : u8 {
+ HZ833,
+ HZ208, // Default
+};
+
+enum class AccelerometerPerformance : u8 {
+ HZ200,
+ HZ100, // Default
+};
+
+enum class MCUCommand : u8 {
+ ConfigureMCU = 0x21,
+ ConfigureIR = 0x23,
+};
+
+enum class MCUSubCommand : u8 {
+ SetMCUMode = 0x0,
+ SetDeviceMode = 0x1,
+ ReadDeviceMode = 0x02,
+ WriteDeviceRegisters = 0x4,
+};
+
+enum class MCUMode : u8 {
+ Suspend = 0,
+ Standby = 1,
+ Ringcon = 3,
+ NFC = 4,
+ IR = 5,
+ MaybeFWUpdate = 6,
+};
+
+enum class MCURequest : u8 {
+ GetMCUStatus = 1,
+ GetNFCData = 2,
+ GetIRData = 3,
+};
+
+enum class MCUReport : u8 {
+ Empty = 0x00,
+ StateReport = 0x01,
+ IRData = 0x03,
+ BusyInitializing = 0x0b,
+ IRStatus = 0x13,
+ IRRegisters = 0x1b,
+ NFCState = 0x2a,
+ NFCReadData = 0x3a,
+ EmptyAwaitingCmd = 0xff,
+};
+
+enum class MCUPacketFlag : u8 {
+ MorePacketsRemaining = 0x00,
+ LastCommandPacket = 0x08,
+};
+
+enum class NFCCommand : u8 {
+ CancelAll = 0x00,
+ StartPolling = 0x01,
+ StopPolling = 0x02,
+ StartWaitingRecieve = 0x04,
+ ReadNtag = 0x06,
+ WriteNtag = 0x08,
+ Mifare = 0x0F,
+};
+
+enum class NFCTagType : u8 {
+ AllTags = 0x00,
+ Ntag215 = 0x01,
+};
+
+enum class NFCPages {
+ Block0 = 0,
+ Block3 = 3,
+ Block45 = 45,
+ Block135 = 135,
+ Block231 = 231,
+};
+
+enum class NFCStatus : u8 {
+ Ready = 0x00,
+ Polling = 0x01,
+ LastPackage = 0x04,
+ WriteDone = 0x05,
+ TagLost = 0x07,
+ WriteReady = 0x09,
+ MifareDone = 0x10,
+};
+
+enum class MifareCmd : u8 {
+ None = 0x00,
+ Read = 0x30,
+ AuthA = 0x60,
+ AuthB = 0x61,
+ Write = 0xA0,
+ Transfer = 0xB0,
+ Decrement = 0xC0,
+ Increment = 0xC1,
+ Store = 0xC2
+};
+
+enum class IrsMode : u8 {
+ None = 0x02,
+ Moment = 0x03,
+ Dpd = 0x04,
+ Clustering = 0x06,
+ ImageTransfer = 0x07,
+ Silhouette = 0x08,
+ TeraImage = 0x09,
+ SilhouetteTeraImage = 0x0A,
+};
+
+enum class IrsResolution {
+ Size320x240,
+ Size160x120,
+ Size80x60,
+ Size40x30,
+ Size20x15,
+ None,
+};
+
+enum class IrsResolutionCode : u8 {
+ Size320x240 = 0x00, // Full pixel array
+ Size160x120 = 0x50, // Sensor Binning [2 X 2]
+ Size80x60 = 0x64, // Sensor Binning [4 x 2] and Skipping [1 x 2]
+ Size40x30 = 0x69, // Sensor Binning [4 x 2] and Skipping [2 x 4]
+ Size20x15 = 0x6A, // Sensor Binning [4 x 2] and Skipping [4 x 4]
+};
+
+// Size of image divided by 300
+enum class IrsFragments : u8 {
+ Size20x15 = 0x00,
+ Size40x30 = 0x03,
+ Size80x60 = 0x0f,
+ Size160x120 = 0x3f,
+ Size320x240 = 0xFF,
+};
+
+enum class IrLeds : u8 {
+ BrightAndDim = 0x00,
+ Bright = 0x20,
+ Dim = 0x10,
+ None = 0x30,
+};
+
+enum class IrExLedFilter : u8 {
+ Disabled = 0x00,
+ Enabled = 0x03,
+};
+
+enum class IrImageFlip : u8 {
+ Normal = 0x00,
+ Inverted = 0x02,
+};
+
+enum class IrRegistersAddress : u16 {
+ UpdateTime = 0x0400,
+ FinalizeConfig = 0x0700,
+ LedFilter = 0x0e00,
+ Leds = 0x1000,
+ LedIntensitiyMSB = 0x1100,
+ LedIntensitiyLSB = 0x1200,
+ ImageFlip = 0x2d00,
+ Resolution = 0x2e00,
+ DigitalGainLSB = 0x2e01,
+ DigitalGainMSB = 0x2f01,
+ ExposureLSB = 0x3001,
+ ExposureMSB = 0x3101,
+ ExposureTime = 0x3201,
+ WhitePixelThreshold = 0x4301,
+ DenoiseSmoothing = 0x6701,
+ DenoiseEdge = 0x6801,
+ DenoiseColor = 0x6901,
+};
+
+enum class ExternalDeviceId : u16 {
+ RingController = 0x2000,
+ Starlink = 0x2800,
+};
+
+enum class DriverResult {
+ Success,
+ WrongReply,
+ Timeout,
+ InvalidParameters,
+ UnsupportedControllerType,
+ HandleInUse,
+ ErrorReadingData,
+ ErrorWritingData,
+ NoDeviceDetected,
+ InvalidHandle,
+ NotSupported,
+ Disabled,
+ Delayed,
+ Unknown,
+};
+
+struct MotionSensorCalibration {
+ s16 offset;
+ s16 scale;
+};
+
+struct MotionCalibration {
+ std::array<MotionSensorCalibration, 3> accelerometer;
+ std::array<MotionSensorCalibration, 3> gyro;
+};
+
+// Basic motion data containing data from the sensors and a timestamp in microseconds
+struct MotionData {
+ float gyro_x{};
+ float gyro_y{};
+ float gyro_z{};
+ float accel_x{};
+ float accel_y{};
+ float accel_z{};
+ u64 delta_timestamp{};
+};
+
+// Output from SPI read command containing user calibration magic
+struct MagicSpiCalibration {
+ CalibrationMagic first;
+ CalibrationMagic second;
+};
+static_assert(sizeof(MagicSpiCalibration) == 0x2, "MagicSpiCalibration is an invalid size");
+
+// Output from SPI read command containing left joystick calibration
+struct JoystickLeftSpiCalibration {
+ std::array<u8, 3> max;
+ std::array<u8, 3> center;
+ std::array<u8, 3> min;
+};
+static_assert(sizeof(JoystickLeftSpiCalibration) == 0x9,
+ "JoystickLeftSpiCalibration is an invalid size");
+
+// Output from SPI read command containing right joystick calibration
+struct JoystickRightSpiCalibration {
+ std::array<u8, 3> center;
+ std::array<u8, 3> min;
+ std::array<u8, 3> max;
+};
+static_assert(sizeof(JoystickRightSpiCalibration) == 0x9,
+ "JoystickRightSpiCalibration is an invalid size");
+
+struct JoyStickAxisCalibration {
+ u16 max;
+ u16 min;
+ u16 center;
+};
+
+struct JoyStickCalibration {
+ JoyStickAxisCalibration x;
+ JoyStickAxisCalibration y;
+};
+
+struct ImuSpiCalibration {
+ std::array<s16, 3> accelerometer_offset;
+ std::array<s16, 3> accelerometer_scale;
+ std::array<s16, 3> gyroscope_offset;
+ std::array<s16, 3> gyroscope_scale;
+};
+static_assert(sizeof(ImuSpiCalibration) == 0x18, "ImuSpiCalibration is an invalid size");
+
+struct RingCalibration {
+ s16 default_value;
+ s16 max_value;
+ s16 min_value;
+};
+
+struct Color {
+ u32 body;
+ u32 buttons;
+ u32 left_grip;
+ u32 right_grip;
+};
+
+struct Battery {
+ union {
+ u8 raw{};
+
+ BitField<0, 4, u8> unknown;
+ BitField<4, 1, u8> charging;
+ BitField<5, 3, u8> status;
+ };
+};
+
+struct VibrationValue {
+ f32 low_amplitude;
+ f32 low_frequency;
+ f32 high_amplitude;
+ f32 high_frequency;
+};
+
+struct JoyconHandle {
+ SDL_hid_device* handle = nullptr;
+ u8 packet_counter{};
+};
+
+struct MCUConfig {
+ MCUCommand command;
+ MCUSubCommand sub_command;
+ MCUMode mode;
+ INSERT_PADDING_BYTES(0x22);
+ u8 crc;
+};
+static_assert(sizeof(MCUConfig) == 0x26, "MCUConfig is an invalid size");
+
+#pragma pack(push, 1)
+struct InputReportPassive {
+ ReportMode report_mode;
+ u16 button_input;
+ u8 stick_state;
+ std::array<u8, 10> unknown_data;
+};
+static_assert(sizeof(InputReportPassive) == 0xE, "InputReportPassive is an invalid size");
+
+struct InputReportActive {
+ ReportMode report_mode;
+ u8 packet_id;
+ Battery battery_status;
+ std::array<u8, 3> button_input;
+ std::array<u8, 3> left_stick_state;
+ std::array<u8, 3> right_stick_state;
+ u8 vibration_code;
+ std::array<s16, 6 * 2> motion_input;
+ INSERT_PADDING_BYTES(0x2);
+ s16 ring_input;
+};
+static_assert(sizeof(InputReportActive) == 0x29, "InputReportActive is an invalid size");
+
+struct InputReportNfcIr {
+ ReportMode report_mode;
+ u8 packet_id;
+ Battery battery_status;
+ std::array<u8, 3> button_input;
+ std::array<u8, 3> left_stick_state;
+ std::array<u8, 3> right_stick_state;
+ u8 vibration_code;
+ std::array<s16, 6 * 2> motion_input;
+ INSERT_PADDING_BYTES(0x4);
+};
+static_assert(sizeof(InputReportNfcIr) == 0x29, "InputReportNfcIr is an invalid size");
+#pragma pack(pop)
+
+struct NFCReadBlock {
+ u8 start;
+ u8 end;
+};
+static_assert(sizeof(NFCReadBlock) == 0x2, "NFCReadBlock is an invalid size");
+
+struct NFCReadBlockCommand {
+ u8 block_count{};
+ std::array<NFCReadBlock, 4> blocks{};
+};
+static_assert(sizeof(NFCReadBlockCommand) == 0x9, "NFCReadBlockCommand is an invalid size");
+
+struct NFCReadCommandData {
+ u8 unknown;
+ u8 uuid_length;
+ TagUUID uid;
+ NFCTagType tag_type;
+ NFCReadBlockCommand read_block;
+};
+static_assert(sizeof(NFCReadCommandData) == 0x13, "NFCReadCommandData is an invalid size");
+
+#pragma pack(push, 1)
+struct NFCWriteCommandData {
+ u8 unknown;
+ u8 uuid_length;
+ TagUUID uid;
+ NFCTagType tag_type;
+ u8 unknown2;
+ u8 unknown3;
+ u8 unknown4;
+ u8 unknown5;
+ u8 unknown6;
+ u8 unknown7;
+ u8 unknown8;
+ u8 magic;
+ u16_be write_count;
+ u8 amiibo_version;
+};
+static_assert(sizeof(NFCWriteCommandData) == 0x15, "NFCWriteCommandData is an invalid size");
+#pragma pack(pop)
+
+struct MifareCommandData {
+ u8 unknown1;
+ u8 unknown2;
+ u8 number_of_short_bytes;
+ MifareUUID uid;
+};
+static_assert(sizeof(MifareCommandData) == 0x7, "MifareCommandData is an invalid size");
+
+struct NFCPollingCommandData {
+ u8 enable_mifare;
+ u8 unknown_1;
+ u8 unknown_2;
+ u8 unknown_3;
+ u8 unknown_4;
+};
+static_assert(sizeof(NFCPollingCommandData) == 0x05, "NFCPollingCommandData is an invalid size");
+
+struct NFCRequestState {
+ NFCCommand command_argument;
+ u8 block_id;
+ u8 packet_id;
+ MCUPacketFlag packet_flag;
+ u8 data_length;
+ union {
+ std::array<u8, 0x1F> raw_data;
+ NFCReadCommandData nfc_read;
+ NFCPollingCommandData nfc_polling;
+ };
+ u8 crc;
+ INSERT_PADDING_BYTES(0x1);
+};
+static_assert(sizeof(NFCRequestState) == 0x26, "NFCRequestState is an invalid size");
+
+struct NFCDataChunk {
+ u8 nfc_page;
+ u8 data_size;
+ std::array<u8, 0xFF> data;
+};
+
+struct NFCWritePackage {
+ NFCWriteCommandData command_data;
+ u8 number_of_chunks;
+ std::array<NFCDataChunk, 4> data_chunks;
+};
+
+struct MifareReadChunk {
+ MifareCmd command;
+ std::array<u8, 0x6> sector_key;
+ u8 sector;
+};
+
+struct MifareWriteChunk {
+ MifareCmd command;
+ std::array<u8, 0x6> sector_key;
+ u8 sector;
+ std::array<u8, 0x10> data;
+};
+
+struct MifareReadData {
+ u8 sector;
+ std::array<u8, 0x10> data;
+};
+
+struct MifareReadPackage {
+ MifareCommandData command_data;
+ std::array<MifareReadChunk, 0x10> data_chunks;
+};
+
+struct MifareWritePackage {
+ MifareCommandData command_data;
+ std::array<MifareWriteChunk, 0x10> data_chunks;
+};
+
+struct TagInfo {
+ u8 uuid_length;
+ u8 protocol;
+ u8 tag_type;
+ std::array<u8, 10> uuid;
+};
+
+struct IrsConfigure {
+ MCUCommand command;
+ MCUSubCommand sub_command;
+ IrsMode irs_mode;
+ IrsFragments number_of_fragments;
+ u16 mcu_major_version;
+ u16 mcu_minor_version;
+ INSERT_PADDING_BYTES(0x1D);
+ u8 crc;
+};
+static_assert(sizeof(IrsConfigure) == 0x26, "IrsConfigure is an invalid size");
+
+#pragma pack(push, 1)
+struct IrsRegister {
+ IrRegistersAddress address;
+ u8 value;
+};
+static_assert(sizeof(IrsRegister) == 0x3, "IrsRegister is an invalid size");
+
+struct IrsWriteRegisters {
+ MCUCommand command;
+ MCUSubCommand sub_command;
+ u8 number_of_registers;
+ std::array<IrsRegister, 9> registers;
+ INSERT_PADDING_BYTES(0x7);
+ u8 crc;
+};
+static_assert(sizeof(IrsWriteRegisters) == 0x26, "IrsWriteRegisters is an invalid size");
+#pragma pack(pop)
+
+struct FirmwareVersion {
+ u8 major;
+ u8 minor;
+};
+static_assert(sizeof(FirmwareVersion) == 0x2, "FirmwareVersion is an invalid size");
+
+struct DeviceInfo {
+ FirmwareVersion firmware;
+ std::array<u8, 2> unknown_1;
+ MacAddress mac_address;
+ std::array<u8, 2> unknown_2;
+};
+static_assert(sizeof(DeviceInfo) == 0xC, "DeviceInfo is an invalid size");
+
+struct MotionStatus {
+ bool is_enabled;
+ u64 delta_time;
+ GyroSensitivity gyro_sensitivity;
+ AccelerometerSensitivity accelerometer_sensitivity;
+};
+
+struct RingStatus {
+ bool is_enabled;
+ s16 default_value;
+ s16 max_value;
+ s16 min_value;
+};
+
+struct VibrationPacket {
+ OutputReport output_report;
+ u8 packet_counter;
+ std::array<u8, 0x8> vibration_data;
+};
+static_assert(sizeof(VibrationPacket) == 0xA, "VibrationPacket is an invalid size");
+
+struct SubCommandPacket {
+ OutputReport output_report;
+ u8 packet_counter;
+ INSERT_PADDING_BYTES(0x8); // This contains vibration data
+ union {
+ SubCommand sub_command;
+ MCUSubCommand mcu_sub_command;
+ };
+ std::array<u8, 0x26> command_data;
+};
+static_assert(sizeof(SubCommandPacket) == 0x31, "SubCommandPacket is an invalid size");
+
+#pragma pack(push, 1)
+struct ReadSpiPacket {
+ SpiAddress spi_address;
+ INSERT_PADDING_BYTES(0x2);
+ u8 size;
+};
+static_assert(sizeof(ReadSpiPacket) == 0x5, "ReadSpiPacket is an invalid size");
+
+struct SubCommandResponse {
+ InputReportPassive input_report;
+ SubCommand sub_command;
+ union {
+ std::array<u8, 0x30> command_data;
+ SpiAddress spi_address; // Reply from SPI_FLASH_READ subcommand
+ ExternalDeviceId external_device_id; // Reply from GET_EXTERNAL_DEVICE_INFO subcommand
+ DeviceInfo device_info; // Reply from REQ_DEV_INFO subcommand
+ };
+ u8 crc; // This is never used
+};
+static_assert(sizeof(SubCommandResponse) == 0x40, "SubCommandResponse is an invalid size");
+#pragma pack(pop)
+
+struct MCUCommandResponse {
+ InputReportNfcIr input_report;
+ INSERT_PADDING_BYTES(0x8);
+ MCUReport mcu_report;
+ std::array<u8, 0x13D> mcu_data;
+ u8 crc;
+};
+static_assert(sizeof(MCUCommandResponse) == 0x170, "MCUCommandResponse is an invalid size");
+
+struct JoyconCallbacks {
+ std::function<void(Battery)> on_battery_data;
+ std::function<void(Color)> on_color_data;
+ std::function<void(int, bool)> on_button_data;
+ std::function<void(int, f32)> on_stick_data;
+ std::function<void(int, const MotionData&)> on_motion_data;
+ std::function<void(f32)> on_ring_data;
+ std::function<void(const Joycon::TagInfo&)> on_amiibo_data;
+ std::function<void(const std::vector<u8>&, IrsResolution)> on_camera_data;
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/nfc.cpp b/src/input_common/helpers/joycon_protocol/nfc.cpp
new file mode 100644
index 000000000..261f46255
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/nfc.cpp
@@ -0,0 +1,985 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <thread>
+#include "common/logging/log.h"
+#include "input_common/helpers/joycon_protocol/nfc.h"
+
+namespace InputCommon::Joycon {
+
+NfcProtocol::NfcProtocol(std::shared_ptr<JoyconHandle> handle)
+ : JoyconCommonProtocol(std::move(handle)) {}
+
+DriverResult NfcProtocol::EnableNfc() {
+ LOG_INFO(Input, "Enable NFC");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ result = SetReportMode(ReportMode::NFC_IR_MODE_60HZ);
+ }
+ if (result == DriverResult::Success) {
+ result = EnableMCU(true);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitSetMCUMode(ReportMode::NFC_IR_MODE_60HZ, MCUMode::Standby);
+ }
+ if (result == DriverResult::Success) {
+ const MCUConfig config{
+ .command = MCUCommand::ConfigureMCU,
+ .sub_command = MCUSubCommand::SetMCUMode,
+ .mode = MCUMode::NFC,
+ .crc = {},
+ };
+
+ result = ConfigureMCU(config);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitSetMCUMode(ReportMode::NFC_IR_MODE_60HZ, MCUMode::NFC);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::Ready);
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStopPollingRequest(output);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::Ready);
+ }
+ if (result == DriverResult::Success) {
+ is_enabled = true;
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::DisableNfc() {
+ LOG_DEBUG(Input, "Disable NFC");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ result = EnableMCU(false);
+ }
+
+ is_enabled = false;
+ is_polling = false;
+
+ return result;
+}
+
+DriverResult NfcProtocol::StartNFCPollingMode() {
+ LOG_DEBUG(Input, "Start NFC polling Mode");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStartPollingRequest(output);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::Polling);
+ }
+ if (result == DriverResult::Success) {
+ is_polling = true;
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::StopNFCPollingMode() {
+ LOG_DEBUG(Input, "Stop NFC polling Mode");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStopPollingRequest(output);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::WriteReady);
+ }
+ if (result == DriverResult::Success) {
+ is_polling = false;
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::GetTagInfo(Joycon::TagInfo& tag_info) {
+ if (update_counter++ < AMIIBO_UPDATE_DELAY) {
+ return DriverResult::Delayed;
+ }
+ update_counter = 0;
+
+ LOG_DEBUG(Input, "Scan for amiibos");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ TagFoundData tag_data{};
+
+ if (result == DriverResult::Success) {
+ result = IsTagInRange(tag_data);
+ }
+
+ if (result == DriverResult::Success) {
+ tag_info = {
+ .uuid_length = tag_data.uuid_size,
+ .protocol = 1,
+ .tag_type = tag_data.type,
+ .uuid = {},
+ };
+
+ memcpy(tag_info.uuid.data(), tag_data.uuid.data(), tag_data.uuid_size);
+
+ // Investigate why mifare type is not correct
+ if (tag_info.tag_type == 144) {
+ tag_info.tag_type = 1U << 6;
+ }
+
+ std::string uuid_string;
+ for (auto& content : tag_data.uuid) {
+ uuid_string += fmt::format(" {:02x}", content);
+ }
+ LOG_INFO(Input, "Tag detected, type={}, uuid={}", tag_data.type, uuid_string);
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::ReadAmiibo(std::vector<u8>& data) {
+ LOG_DEBUG(Input, "Scan for amiibos");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ TagFoundData tag_data{};
+
+ if (result == DriverResult::Success) {
+ result = IsTagInRange(tag_data, 7);
+ }
+
+ if (result == DriverResult::Success) {
+ result = GetAmiiboData(data);
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::WriteAmiibo(std::span<const u8> data) {
+ LOG_DEBUG(Input, "Write amiibo");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ TagUUID tag_uuid = GetTagUUID(data);
+ TagFoundData tag_data{};
+
+ if (result == DriverResult::Success) {
+ result = IsTagInRange(tag_data, 7);
+ }
+ if (result == DriverResult::Success) {
+ if (tag_data.uuid != tag_uuid) {
+ result = DriverResult::InvalidParameters;
+ }
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStopPollingRequest(output);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::Ready);
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStartPollingRequest(output, true);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::WriteReady);
+ }
+ if (result == DriverResult::Success) {
+ result = WriteAmiiboData(tag_uuid, data);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::WriteDone);
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStopPollingRequest(output);
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::ReadMifare(std::span<const MifareReadChunk> read_request,
+ std::span<MifareReadData> out_data) {
+ LOG_DEBUG(Input, "Read mifare");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ TagFoundData tag_data{};
+ MifareUUID tag_uuid{};
+
+ if (result == DriverResult::Success) {
+ result = IsTagInRange(tag_data, 7);
+ }
+ if (result == DriverResult::Success) {
+ memcpy(tag_uuid.data(), tag_data.uuid.data(), sizeof(MifareUUID));
+ result = GetMifareData(tag_uuid, read_request, out_data);
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStopPollingRequest(output);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::Ready);
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStartPollingRequest(output, true);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::WriteReady);
+ }
+ return result;
+}
+
+DriverResult NfcProtocol::WriteMifare(std::span<const MifareWriteChunk> write_request) {
+ LOG_DEBUG(Input, "Write mifare");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ TagFoundData tag_data{};
+ MifareUUID tag_uuid{};
+
+ if (result == DriverResult::Success) {
+ result = IsTagInRange(tag_data, 7);
+ }
+ if (result == DriverResult::Success) {
+ memcpy(tag_uuid.data(), tag_data.uuid.data(), sizeof(MifareUUID));
+ result = WriteMifareData(tag_uuid, write_request);
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStopPollingRequest(output);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::Ready);
+ }
+ if (result == DriverResult::Success) {
+ MCUCommandResponse output{};
+ result = SendStartPollingRequest(output, true);
+ }
+ if (result == DriverResult::Success) {
+ result = WaitUntilNfcIs(NFCStatus::WriteReady);
+ }
+ return result;
+}
+
+bool NfcProtocol::HasAmiibo() {
+ if (update_counter++ < AMIIBO_UPDATE_DELAY) {
+ return true;
+ }
+ update_counter = 0;
+
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ TagFoundData tag_data{};
+
+ if (result == DriverResult::Success) {
+ result = IsTagInRange(tag_data, 7);
+ }
+
+ return result == DriverResult::Success;
+}
+
+DriverResult NfcProtocol::WaitUntilNfcIs(NFCStatus status) {
+ constexpr std::size_t timeout_limit = 10;
+ MCUCommandResponse output{};
+ std::size_t tries = 0;
+
+ do {
+ auto result = SendNextPackageRequest(output, {});
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+ if (tries++ > timeout_limit) {
+ return DriverResult::Timeout;
+ }
+ } while (output.mcu_report != MCUReport::NFCState ||
+ (output.mcu_data[1] << 8) + output.mcu_data[0] != 0x0500 ||
+ output.mcu_data[5] != 0x31 || output.mcu_data[6] != static_cast<u8>(status));
+
+ return DriverResult::Success;
+}
+
+DriverResult NfcProtocol::IsTagInRange(TagFoundData& data, std::size_t timeout_limit) {
+ MCUCommandResponse output{};
+ std::size_t tries = 0;
+
+ do {
+ const auto result = SendNextPackageRequest(output, {});
+ if (result != DriverResult::Success) {
+ return result;
+ }
+ if (tries++ > timeout_limit) {
+ return DriverResult::Timeout;
+ }
+ } while (output.mcu_report != MCUReport::NFCState ||
+ (output.mcu_data[1] << 8) + output.mcu_data[0] != 0x0500 ||
+ (output.mcu_data[6] != 0x09 && output.mcu_data[6] != 0x04));
+
+ data.type = output.mcu_data[12];
+ data.uuid_size = std::min(output.mcu_data[14], static_cast<u8>(sizeof(TagUUID)));
+ memcpy(data.uuid.data(), output.mcu_data.data() + 15, data.uuid.size());
+
+ return DriverResult::Success;
+}
+
+DriverResult NfcProtocol::GetAmiiboData(std::vector<u8>& ntag_data) {
+ constexpr std::size_t timeout_limit = 60;
+ MCUCommandResponse output{};
+ std::size_t tries = 0;
+
+ u8 package_index = 0;
+ std::size_t ntag_buffer_pos = 0;
+ auto result = SendReadAmiiboRequest(output, NFCPages::Block135);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ // Read Tag data
+ while (tries++ < timeout_limit) {
+ result = SendNextPackageRequest(output, package_index);
+ const auto nfc_status = static_cast<NFCStatus>(output.mcu_data[6]);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ if ((output.mcu_report == MCUReport::NFCReadData ||
+ output.mcu_report == MCUReport::NFCState) &&
+ nfc_status == NFCStatus::TagLost) {
+ return DriverResult::ErrorReadingData;
+ }
+
+ if (output.mcu_report == MCUReport::NFCReadData && output.mcu_data[1] == 0x07) {
+ std::size_t payload_size = (output.mcu_data[4] << 8 | output.mcu_data[5]) & 0x7FF;
+ if (output.mcu_data[2] == 0x01) {
+ memcpy(ntag_data.data() + ntag_buffer_pos, output.mcu_data.data() + 66,
+ payload_size - 60);
+ ntag_buffer_pos += payload_size - 60;
+ } else {
+ memcpy(ntag_data.data() + ntag_buffer_pos, output.mcu_data.data() + 6,
+ payload_size);
+ }
+ package_index++;
+ continue;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::LastPackage) {
+ LOG_INFO(Input, "Finished reading amiibo");
+ return DriverResult::Success;
+ }
+ }
+
+ return DriverResult::Timeout;
+}
+
+DriverResult NfcProtocol::WriteAmiiboData(const TagUUID& tag_uuid, std::span<const u8> data) {
+ constexpr std::size_t timeout_limit = 60;
+ const auto nfc_data = MakeAmiiboWritePackage(tag_uuid, data);
+ const std::vector<u8> nfc_buffer_data = SerializeWritePackage(nfc_data);
+ std::span<const u8> buffer(nfc_buffer_data);
+ MCUCommandResponse output{};
+ u8 block_id = 1;
+ u8 package_index = 0;
+ std::size_t tries = 0;
+ std::size_t current_position = 0;
+
+ LOG_INFO(Input, "Writing amiibo data");
+
+ auto result = SendWriteAmiiboRequest(output, tag_uuid);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ // Read Tag data but ignore the actual sent data
+ while (tries++ < timeout_limit) {
+ result = SendNextPackageRequest(output, package_index);
+ const auto nfc_status = static_cast<NFCStatus>(output.mcu_data[6]);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ if ((output.mcu_report == MCUReport::NFCReadData ||
+ output.mcu_report == MCUReport::NFCState) &&
+ nfc_status == NFCStatus::TagLost) {
+ return DriverResult::ErrorReadingData;
+ }
+
+ if (output.mcu_report == MCUReport::NFCReadData && output.mcu_data[1] == 0x07) {
+ package_index++;
+ continue;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::LastPackage) {
+ LOG_INFO(Input, "Finished reading amiibo");
+ break;
+ }
+ }
+
+ // Send Data. Nfc buffer size is 31, Send the data in smaller packages
+ while (current_position < buffer.size() && tries++ < timeout_limit) {
+ const std::size_t next_position =
+ std::min(current_position + sizeof(NFCRequestState::raw_data), buffer.size());
+ const std::size_t block_size = next_position - current_position;
+ const bool is_last_packet = block_size < sizeof(NFCRequestState::raw_data);
+
+ SendWriteDataAmiiboRequest(output, block_id, is_last_packet,
+ buffer.subspan(current_position, block_size));
+
+ const auto nfc_status = static_cast<NFCStatus>(output.mcu_data[6]);
+
+ if ((output.mcu_report == MCUReport::NFCReadData ||
+ output.mcu_report == MCUReport::NFCState) &&
+ nfc_status == NFCStatus::TagLost) {
+ return DriverResult::ErrorReadingData;
+ }
+
+ // Increase position when data is confirmed by the joycon
+ if (output.mcu_report == MCUReport::NFCState &&
+ (output.mcu_data[1] << 8) + output.mcu_data[0] == 0x0500 &&
+ output.mcu_data[3] == block_id) {
+ block_id++;
+ current_position = next_position;
+ }
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::GetMifareData(const MifareUUID& tag_uuid,
+ std::span<const MifareReadChunk> read_request,
+ std::span<MifareReadData> out_data) {
+ constexpr std::size_t timeout_limit = 60;
+ const auto nfc_data = MakeMifareReadPackage(tag_uuid, read_request);
+ const std::vector<u8> nfc_buffer_data = SerializeMifareReadPackage(nfc_data);
+ std::span<const u8> buffer(nfc_buffer_data);
+ DriverResult result = DriverResult::Success;
+ MCUCommandResponse output{};
+ u8 block_id = 1;
+ u8 package_index = 0;
+ std::size_t tries = 0;
+ std::size_t current_position = 0;
+
+ LOG_INFO(Input, "Reading Mifare data");
+
+ // Send data request. Nfc buffer size is 31, Send the data in smaller packages
+ while (current_position < buffer.size() && tries++ < timeout_limit) {
+ const std::size_t next_position =
+ std::min(current_position + sizeof(NFCRequestState::raw_data), buffer.size());
+ const std::size_t block_size = next_position - current_position;
+ const bool is_last_packet = block_size < sizeof(NFCRequestState::raw_data);
+
+ SendReadDataMifareRequest(output, block_id, is_last_packet,
+ buffer.subspan(current_position, block_size));
+
+ const auto nfc_status = static_cast<NFCStatus>(output.mcu_data[6]);
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::TagLost) {
+ return DriverResult::ErrorReadingData;
+ }
+
+ // Increase position when data is confirmed by the joycon
+ if (output.mcu_report == MCUReport::NFCState &&
+ (output.mcu_data[1] << 8) + output.mcu_data[0] == 0x0500 &&
+ output.mcu_data[3] == block_id) {
+ block_id++;
+ current_position = next_position;
+ }
+ }
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ // Wait for reply and save the output data
+ while (tries++ < timeout_limit) {
+ result = SendNextPackageRequest(output, package_index);
+ const auto nfc_status = static_cast<NFCStatus>(output.mcu_data[6]);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::TagLost) {
+ return DriverResult::ErrorReadingData;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && output.mcu_data[1] == 0x10) {
+ constexpr std::size_t DATA_LENGHT = 0x10 + 1;
+ constexpr std::size_t DATA_START = 11;
+ const u8 number_of_elements = output.mcu_data[10];
+ for (std::size_t i = 0; i < number_of_elements; i++) {
+ out_data[i].sector = output.mcu_data[DATA_START + (i * DATA_LENGHT)];
+ memcpy(out_data[i].data.data(),
+ output.mcu_data.data() + DATA_START + 1 + (i * DATA_LENGHT),
+ sizeof(MifareReadData::data));
+ }
+ package_index++;
+ continue;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::MifareDone) {
+ LOG_INFO(Input, "Finished reading mifare");
+ break;
+ }
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::WriteMifareData(const MifareUUID& tag_uuid,
+ std::span<const MifareWriteChunk> write_request) {
+ constexpr std::size_t timeout_limit = 60;
+ const auto nfc_data = MakeMifareWritePackage(tag_uuid, write_request);
+ const std::vector<u8> nfc_buffer_data = SerializeMifareWritePackage(nfc_data);
+ std::span<const u8> buffer(nfc_buffer_data);
+ DriverResult result = DriverResult::Success;
+ MCUCommandResponse output{};
+ u8 block_id = 1;
+ u8 package_index = 0;
+ std::size_t tries = 0;
+ std::size_t current_position = 0;
+
+ LOG_INFO(Input, "Writing Mifare data");
+
+ // Send data request. Nfc buffer size is 31, Send the data in smaller packages
+ while (current_position < buffer.size() && tries++ < timeout_limit) {
+ const std::size_t next_position =
+ std::min(current_position + sizeof(NFCRequestState::raw_data), buffer.size());
+ const std::size_t block_size = next_position - current_position;
+ const bool is_last_packet = block_size < sizeof(NFCRequestState::raw_data);
+
+ SendReadDataMifareRequest(output, block_id, is_last_packet,
+ buffer.subspan(current_position, block_size));
+
+ const auto nfc_status = static_cast<NFCStatus>(output.mcu_data[6]);
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::TagLost) {
+ return DriverResult::ErrorReadingData;
+ }
+
+ // Increase position when data is confirmed by the joycon
+ if (output.mcu_report == MCUReport::NFCState &&
+ (output.mcu_data[1] << 8) + output.mcu_data[0] == 0x0500 &&
+ output.mcu_data[3] == block_id) {
+ block_id++;
+ current_position = next_position;
+ }
+ }
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ // Wait for reply and ignore the output data
+ while (tries++ < timeout_limit) {
+ result = SendNextPackageRequest(output, package_index);
+ const auto nfc_status = static_cast<NFCStatus>(output.mcu_data[6]);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::TagLost) {
+ return DriverResult::ErrorReadingData;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && output.mcu_data[1] == 0x10) {
+ package_index++;
+ continue;
+ }
+
+ if (output.mcu_report == MCUReport::NFCState && nfc_status == NFCStatus::MifareDone) {
+ LOG_INFO(Input, "Finished writing mifare");
+ break;
+ }
+ }
+
+ return result;
+}
+
+DriverResult NfcProtocol::SendStartPollingRequest(MCUCommandResponse& output,
+ bool is_second_attempt) {
+ NFCRequestState request{
+ .command_argument = NFCCommand::StartPolling,
+ .block_id = {},
+ .packet_id = {},
+ .packet_flag = MCUPacketFlag::LastCommandPacket,
+ .data_length = sizeof(NFCPollingCommandData),
+ .nfc_polling =
+ {
+ .enable_mifare = 0x00,
+ .unknown_1 = static_cast<u8>(is_second_attempt ? 0xe8 : 0x00),
+ .unknown_2 = static_cast<u8>(is_second_attempt ? 0x03 : 0x00),
+ .unknown_3 = 0x2c,
+ .unknown_4 = 0x01,
+ },
+ .crc = {},
+ };
+
+ std::array<u8, sizeof(NFCRequestState)> request_data{};
+ memcpy(request_data.data(), &request, sizeof(NFCRequestState));
+ request_data[36] = CalculateMCU_CRC8(request_data.data(), 36);
+ return SendMCUData(ReportMode::NFC_IR_MODE_60HZ, MCUSubCommand::ReadDeviceMode, request_data,
+ output);
+}
+
+DriverResult NfcProtocol::SendStopPollingRequest(MCUCommandResponse& output) {
+ NFCRequestState request{
+ .command_argument = NFCCommand::StopPolling,
+ .block_id = {},
+ .packet_id = {},
+ .packet_flag = MCUPacketFlag::LastCommandPacket,
+ .data_length = {},
+ .raw_data = {},
+ .crc = {},
+ };
+
+ std::array<u8, sizeof(NFCRequestState)> request_data{};
+ memcpy(request_data.data(), &request, sizeof(NFCRequestState));
+ request_data[36] = CalculateMCU_CRC8(request_data.data(), 36);
+ return SendMCUData(ReportMode::NFC_IR_MODE_60HZ, MCUSubCommand::ReadDeviceMode, request_data,
+ output);
+}
+
+DriverResult NfcProtocol::SendNextPackageRequest(MCUCommandResponse& output, u8 packet_id) {
+ NFCRequestState request{
+ .command_argument = NFCCommand::StartWaitingRecieve,
+ .block_id = {},
+ .packet_id = packet_id,
+ .packet_flag = MCUPacketFlag::LastCommandPacket,
+ .data_length = {},
+ .raw_data = {},
+ .crc = {},
+ };
+
+ std::vector<u8> request_data(sizeof(NFCRequestState));
+ memcpy(request_data.data(), &request, sizeof(NFCRequestState));
+ request_data[36] = CalculateMCU_CRC8(request_data.data(), 36);
+ return SendMCUData(ReportMode::NFC_IR_MODE_60HZ, MCUSubCommand::ReadDeviceMode, request_data,
+ output);
+}
+
+DriverResult NfcProtocol::SendReadAmiiboRequest(MCUCommandResponse& output, NFCPages ntag_pages) {
+ NFCRequestState request{
+ .command_argument = NFCCommand::ReadNtag,
+ .block_id = {},
+ .packet_id = {},
+ .packet_flag = MCUPacketFlag::LastCommandPacket,
+ .data_length = sizeof(NFCReadCommandData),
+ .nfc_read =
+ {
+ .unknown = 0xd0,
+ .uuid_length = sizeof(NFCReadCommandData::uid),
+ .uid = {},
+ .tag_type = NFCTagType::Ntag215,
+ .read_block = GetReadBlockCommand(ntag_pages),
+ },
+ .crc = {},
+ };
+
+ std::array<u8, sizeof(NFCRequestState)> request_data{};
+ memcpy(request_data.data(), &request, sizeof(NFCRequestState));
+ request_data[36] = CalculateMCU_CRC8(request_data.data(), 36);
+ return SendMCUData(ReportMode::NFC_IR_MODE_60HZ, MCUSubCommand::ReadDeviceMode, request_data,
+ output);
+}
+
+DriverResult NfcProtocol::SendWriteAmiiboRequest(MCUCommandResponse& output,
+ const TagUUID& tag_uuid) {
+ NFCRequestState request{
+ .command_argument = NFCCommand::ReadNtag,
+ .block_id = {},
+ .packet_id = {},
+ .packet_flag = MCUPacketFlag::LastCommandPacket,
+ .data_length = sizeof(NFCReadCommandData),
+ .nfc_read =
+ {
+ .unknown = 0xd0,
+ .uuid_length = sizeof(NFCReadCommandData::uid),
+ .uid = tag_uuid,
+ .tag_type = NFCTagType::Ntag215,
+ .read_block = GetReadBlockCommand(NFCPages::Block3),
+ },
+ .crc = {},
+ };
+
+ std::array<u8, sizeof(NFCRequestState)> request_data{};
+ memcpy(request_data.data(), &request, sizeof(NFCRequestState));
+ request_data[36] = CalculateMCU_CRC8(request_data.data(), 36);
+ return SendMCUData(ReportMode::NFC_IR_MODE_60HZ, MCUSubCommand::ReadDeviceMode, request_data,
+ output);
+}
+
+DriverResult NfcProtocol::SendWriteDataAmiiboRequest(MCUCommandResponse& output, u8 block_id,
+ bool is_last_packet,
+ std::span<const u8> data) {
+ const auto data_size = std::min(data.size(), sizeof(NFCRequestState::raw_data));
+ NFCRequestState request{
+ .command_argument = NFCCommand::WriteNtag,
+ .block_id = block_id,
+ .packet_id = {},
+ .packet_flag =
+ is_last_packet ? MCUPacketFlag::LastCommandPacket : MCUPacketFlag::MorePacketsRemaining,
+ .data_length = static_cast<u8>(data_size),
+ .raw_data = {},
+ .crc = {},
+ };
+ memcpy(request.raw_data.data(), data.data(), data_size);
+
+ std::array<u8, sizeof(NFCRequestState)> request_data{};
+ memcpy(request_data.data(), &request, sizeof(NFCRequestState));
+ request_data[36] = CalculateMCU_CRC8(request_data.data(), 36);
+ return SendMCUData(ReportMode::NFC_IR_MODE_60HZ, MCUSubCommand::ReadDeviceMode, request_data,
+ output);
+}
+
+DriverResult NfcProtocol::SendReadDataMifareRequest(MCUCommandResponse& output, u8 block_id,
+ bool is_last_packet, std::span<const u8> data) {
+ const auto data_size = std::min(data.size(), sizeof(NFCRequestState::raw_data));
+ NFCRequestState request{
+ .command_argument = NFCCommand::Mifare,
+ .block_id = block_id,
+ .packet_id = {},
+ .packet_flag =
+ is_last_packet ? MCUPacketFlag::LastCommandPacket : MCUPacketFlag::MorePacketsRemaining,
+ .data_length = static_cast<u8>(data_size),
+ .raw_data = {},
+ .crc = {},
+ };
+ memcpy(request.raw_data.data(), data.data(), data_size);
+
+ std::array<u8, sizeof(NFCRequestState)> request_data{};
+ memcpy(request_data.data(), &request, sizeof(NFCRequestState));
+ request_data[36] = CalculateMCU_CRC8(request_data.data(), 36);
+ return SendMCUData(ReportMode::NFC_IR_MODE_60HZ, MCUSubCommand::ReadDeviceMode, request_data,
+ output);
+}
+
+std::vector<u8> NfcProtocol::SerializeWritePackage(const NFCWritePackage& package) const {
+ const std::size_t header_size =
+ sizeof(NFCWriteCommandData) + sizeof(NFCWritePackage::number_of_chunks);
+ std::vector<u8> serialized_data(header_size);
+ std::size_t start_index = 0;
+
+ memcpy(serialized_data.data(), &package, header_size);
+ start_index += header_size;
+
+ for (const auto& data_chunk : package.data_chunks) {
+ const std::size_t chunk_size =
+ sizeof(NFCDataChunk::nfc_page) + sizeof(NFCDataChunk::data_size) + data_chunk.data_size;
+
+ serialized_data.resize(start_index + chunk_size);
+ memcpy(serialized_data.data() + start_index, &data_chunk, chunk_size);
+ start_index += chunk_size;
+ }
+
+ return serialized_data;
+}
+
+std::vector<u8> NfcProtocol::SerializeMifareReadPackage(const MifareReadPackage& package) const {
+ const std::size_t header_size = sizeof(MifareCommandData);
+ std::vector<u8> serialized_data(header_size);
+ std::size_t start_index = 0;
+
+ memcpy(serialized_data.data(), &package, header_size);
+ start_index += header_size;
+
+ for (const auto& data_chunk : package.data_chunks) {
+ const std::size_t chunk_size = sizeof(MifareReadChunk);
+ if (data_chunk.command == MifareCmd::None) {
+ continue;
+ }
+ serialized_data.resize(start_index + chunk_size);
+ memcpy(serialized_data.data() + start_index, &data_chunk, chunk_size);
+ start_index += chunk_size;
+ }
+
+ return serialized_data;
+}
+
+std::vector<u8> NfcProtocol::SerializeMifareWritePackage(const MifareWritePackage& package) const {
+ const std::size_t header_size = sizeof(MifareCommandData);
+ std::vector<u8> serialized_data(header_size);
+ std::size_t start_index = 0;
+
+ memcpy(serialized_data.data(), &package, header_size);
+ start_index += header_size;
+
+ for (const auto& data_chunk : package.data_chunks) {
+ const std::size_t chunk_size = sizeof(MifareWriteChunk);
+ if (data_chunk.command == MifareCmd::None) {
+ continue;
+ }
+ serialized_data.resize(start_index + chunk_size);
+ memcpy(serialized_data.data() + start_index, &data_chunk, chunk_size);
+ start_index += chunk_size;
+ }
+
+ return serialized_data;
+}
+
+NFCWritePackage NfcProtocol::MakeAmiiboWritePackage(const TagUUID& tag_uuid,
+ std::span<const u8> data) const {
+ return {
+ .command_data{
+ .unknown = 0xd0,
+ .uuid_length = sizeof(NFCReadCommandData::uid),
+ .uid = tag_uuid,
+ .tag_type = NFCTagType::Ntag215,
+ .unknown2 = 0x00,
+ .unknown3 = 0x01,
+ .unknown4 = 0x04,
+ .unknown5 = 0xff,
+ .unknown6 = 0xff,
+ .unknown7 = 0xff,
+ .unknown8 = 0xff,
+ .magic = data[16],
+ .write_count = static_cast<u16>((data[17] << 8) + data[18]),
+ .amiibo_version = data[19],
+ },
+ .number_of_chunks = 3,
+ .data_chunks =
+ {
+ MakeAmiiboChunk(0x05, 0x20, data),
+ MakeAmiiboChunk(0x20, 0xf0, data),
+ MakeAmiiboChunk(0x5c, 0x98, data),
+ },
+ };
+}
+
+MifareReadPackage NfcProtocol::MakeMifareReadPackage(
+ const MifareUUID& tag_uuid, std::span<const MifareReadChunk> read_request) const {
+ MifareReadPackage package{
+ .command_data{
+ .unknown1 = 0xd0,
+ .unknown2 = 0x07,
+ .number_of_short_bytes = static_cast<u8>(
+ ((read_request.size() * sizeof(MifareReadChunk)) + sizeof(MifareUUID)) / 2),
+ .uid = tag_uuid,
+ },
+ .data_chunks = {},
+ };
+
+ for (std::size_t i = 0; i < read_request.size() && i < package.data_chunks.size(); ++i) {
+ package.data_chunks[i] = read_request[i];
+ }
+
+ return package;
+}
+
+MifareWritePackage NfcProtocol::MakeMifareWritePackage(
+ const MifareUUID& tag_uuid, std::span<const MifareWriteChunk> read_request) const {
+ MifareWritePackage package{
+ .command_data{
+ .unknown1 = 0xd0,
+ .unknown2 = 0x07,
+ .number_of_short_bytes = static_cast<u8>(
+ ((read_request.size() * sizeof(MifareReadChunk)) + sizeof(MifareUUID) + 2) / 2),
+ .uid = tag_uuid,
+ },
+ .data_chunks = {},
+ };
+
+ for (std::size_t i = 0; i < read_request.size() && i < package.data_chunks.size(); ++i) {
+ package.data_chunks[i] = read_request[i];
+ }
+
+ return package;
+}
+
+NFCDataChunk NfcProtocol::MakeAmiiboChunk(u8 page, u8 size, std::span<const u8> data) const {
+ constexpr u8 NFC_PAGE_SIZE = 4;
+
+ if (static_cast<std::size_t>(page * NFC_PAGE_SIZE) + size >= data.size()) {
+ return {};
+ }
+
+ NFCDataChunk chunk{
+ .nfc_page = page,
+ .data_size = size,
+ .data = {},
+ };
+ std::memcpy(chunk.data.data(), data.data() + (page * NFC_PAGE_SIZE), size);
+ return chunk;
+}
+
+NFCReadBlockCommand NfcProtocol::GetReadBlockCommand(NFCPages pages) const {
+ switch (pages) {
+ case NFCPages::Block0:
+ return {
+ .block_count = 1,
+ };
+ case NFCPages::Block3:
+ return {
+ .block_count = 1,
+ .blocks =
+ {
+ NFCReadBlock{0x03, 0x03},
+ },
+ };
+ case NFCPages::Block45:
+ return {
+ .block_count = 1,
+ .blocks =
+ {
+ NFCReadBlock{0x00, 0x2C},
+ },
+ };
+ case NFCPages::Block135:
+ return {
+ .block_count = 3,
+ .blocks =
+ {
+ NFCReadBlock{0x00, 0x3b},
+ {0x3c, 0x77},
+ {0x78, 0x86},
+ },
+ };
+ case NFCPages::Block231:
+ return {
+ .block_count = 4,
+ .blocks =
+ {
+ NFCReadBlock{0x00, 0x3b},
+ {0x3c, 0x77},
+ {0x78, 0x83},
+ {0xb4, 0xe6},
+ },
+ };
+ default:
+ return {};
+ };
+}
+
+TagUUID NfcProtocol::GetTagUUID(std::span<const u8> data) const {
+ if (data.size() < 10) {
+ return {};
+ }
+
+ // crc byte 3 is omitted in this operation
+ return {
+ data[0], data[1], data[2], data[4], data[5], data[6], data[7],
+ };
+}
+
+bool NfcProtocol::IsEnabled() const {
+ return is_enabled;
+}
+
+bool NfcProtocol::IsPolling() const {
+ return is_polling;
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/nfc.h b/src/input_common/helpers/joycon_protocol/nfc.h
new file mode 100644
index 000000000..0be95e40e
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/nfc.h
@@ -0,0 +1,114 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <vector>
+
+#include "input_common/helpers/joycon_protocol/common_protocol.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+class NfcProtocol final : private JoyconCommonProtocol {
+public:
+ explicit NfcProtocol(std::shared_ptr<JoyconHandle> handle);
+
+ DriverResult EnableNfc();
+
+ DriverResult DisableNfc();
+
+ DriverResult StartNFCPollingMode();
+
+ DriverResult StopNFCPollingMode();
+
+ DriverResult GetTagInfo(Joycon::TagInfo& tag_info);
+
+ DriverResult ReadAmiibo(std::vector<u8>& data);
+
+ DriverResult WriteAmiibo(std::span<const u8> data);
+
+ DriverResult ReadMifare(std::span<const MifareReadChunk> read_request,
+ std::span<MifareReadData> out_data);
+
+ DriverResult WriteMifare(std::span<const MifareWriteChunk> write_request);
+
+ bool HasAmiibo();
+
+ bool IsEnabled() const;
+
+ bool IsPolling() const;
+
+private:
+ // Number of times the function will be delayed until it outputs valid data
+ static constexpr std::size_t AMIIBO_UPDATE_DELAY = 15;
+
+ struct TagFoundData {
+ u8 type;
+ u8 uuid_size;
+ TagUUID uuid;
+ };
+
+ DriverResult WaitUntilNfcIs(NFCStatus status);
+
+ DriverResult IsTagInRange(TagFoundData& data, std::size_t timeout_limit = 1);
+
+ DriverResult GetAmiiboData(std::vector<u8>& data);
+
+ DriverResult WriteAmiiboData(const TagUUID& tag_uuid, std::span<const u8> data);
+
+ DriverResult GetMifareData(const MifareUUID& tag_uuid,
+ std::span<const MifareReadChunk> read_request,
+ std::span<MifareReadData> out_data);
+
+ DriverResult WriteMifareData(const MifareUUID& tag_uuid,
+ std::span<const MifareWriteChunk> write_request);
+
+ DriverResult SendStartPollingRequest(MCUCommandResponse& output,
+ bool is_second_attempt = false);
+
+ DriverResult SendStopPollingRequest(MCUCommandResponse& output);
+
+ DriverResult SendNextPackageRequest(MCUCommandResponse& output, u8 packet_id);
+
+ DriverResult SendReadAmiiboRequest(MCUCommandResponse& output, NFCPages ntag_pages);
+
+ DriverResult SendWriteAmiiboRequest(MCUCommandResponse& output, const TagUUID& tag_uuid);
+
+ DriverResult SendWriteDataAmiiboRequest(MCUCommandResponse& output, u8 block_id,
+ bool is_last_packet, std::span<const u8> data);
+
+ DriverResult SendReadDataMifareRequest(MCUCommandResponse& output, u8 block_id,
+ bool is_last_packet, std::span<const u8> data);
+
+ std::vector<u8> SerializeWritePackage(const NFCWritePackage& package) const;
+
+ std::vector<u8> SerializeMifareReadPackage(const MifareReadPackage& package) const;
+
+ std::vector<u8> SerializeMifareWritePackage(const MifareWritePackage& package) const;
+
+ NFCWritePackage MakeAmiiboWritePackage(const TagUUID& tag_uuid, std::span<const u8> data) const;
+
+ NFCDataChunk MakeAmiiboChunk(u8 page, u8 size, std::span<const u8> data) const;
+
+ MifareReadPackage MakeMifareReadPackage(const MifareUUID& tag_uuid,
+ std::span<const MifareReadChunk> read_request) const;
+
+ MifareWritePackage MakeMifareWritePackage(const MifareUUID& tag_uuid,
+ std::span<const MifareWriteChunk> read_request) const;
+
+ NFCReadBlockCommand GetReadBlockCommand(NFCPages pages) const;
+
+ TagUUID GetTagUUID(std::span<const u8> data) const;
+
+ bool is_enabled{};
+ bool is_polling{};
+ std::size_t update_counter{};
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/poller.cpp b/src/input_common/helpers/joycon_protocol/poller.cpp
new file mode 100644
index 000000000..1aab9e12a
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/poller.cpp
@@ -0,0 +1,374 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "input_common/helpers/joycon_protocol/poller.h"
+
+namespace InputCommon::Joycon {
+
+JoyconPoller::JoyconPoller(ControllerType device_type_, JoyStickCalibration left_stick_calibration_,
+ JoyStickCalibration right_stick_calibration_,
+ MotionCalibration motion_calibration_)
+ : device_type{device_type_}, left_stick_calibration{left_stick_calibration_},
+ right_stick_calibration{right_stick_calibration_}, motion_calibration{motion_calibration_} {}
+
+void JoyconPoller::SetCallbacks(const JoyconCallbacks& callbacks_) {
+ callbacks = std::move(callbacks_);
+}
+
+void JoyconPoller::ReadActiveMode(std::span<u8> buffer, const MotionStatus& motion_status,
+ const RingStatus& ring_status) {
+ InputReportActive data{};
+ memcpy(&data, buffer.data(), sizeof(InputReportActive));
+
+ switch (device_type) {
+ case ControllerType::Left:
+ UpdateActiveLeftPadInput(data, motion_status);
+ break;
+ case ControllerType::Right:
+ UpdateActiveRightPadInput(data, motion_status);
+ break;
+ case ControllerType::Pro:
+ UpdateActiveProPadInput(data, motion_status);
+ break;
+ default:
+ break;
+ }
+
+ if (ring_status.is_enabled) {
+ UpdateRing(data.ring_input, ring_status);
+ }
+
+ callbacks.on_battery_data(data.battery_status);
+}
+
+void JoyconPoller::ReadPassiveMode(std::span<u8> buffer) {
+ InputReportPassive data{};
+ memcpy(&data, buffer.data(), sizeof(InputReportPassive));
+
+ switch (device_type) {
+ case ControllerType::Left:
+ UpdatePassiveLeftPadInput(data);
+ break;
+ case ControllerType::Right:
+ UpdatePassiveRightPadInput(data);
+ break;
+ case ControllerType::Pro:
+ UpdatePassiveProPadInput(data);
+ break;
+ default:
+ break;
+ }
+}
+
+void JoyconPoller::ReadNfcIRMode(std::span<u8> buffer, const MotionStatus& motion_status) {
+ // This mode is compatible with the active mode
+ ReadActiveMode(buffer, motion_status, {});
+}
+
+void JoyconPoller::UpdateColor(const Color& color) {
+ callbacks.on_color_data(color);
+}
+
+void JoyconPoller::UpdateAmiibo(const Joycon::TagInfo& tag_info) {
+ callbacks.on_amiibo_data(tag_info);
+}
+
+void JoyconPoller::UpdateCamera(const std::vector<u8>& camera_data, IrsResolution format) {
+ callbacks.on_camera_data(camera_data, format);
+}
+
+void JoyconPoller::UpdateRing(s16 value, const RingStatus& ring_status) {
+ float normalized_value = static_cast<float>(value - ring_status.default_value);
+ if (normalized_value > 0) {
+ normalized_value = normalized_value /
+ static_cast<float>(ring_status.max_value - ring_status.default_value);
+ }
+ if (normalized_value < 0) {
+ normalized_value = normalized_value /
+ static_cast<float>(ring_status.default_value - ring_status.min_value);
+ }
+ callbacks.on_ring_data(normalized_value);
+}
+
+void JoyconPoller::UpdateActiveLeftPadInput(const InputReportActive& input,
+ const MotionStatus& motion_status) {
+ static constexpr std::array<Joycon::PadButton, 11> left_buttons{
+ Joycon::PadButton::Down, Joycon::PadButton::Up, Joycon::PadButton::Right,
+ Joycon::PadButton::Left, Joycon::PadButton::LeftSL, Joycon::PadButton::LeftSR,
+ Joycon::PadButton::L, Joycon::PadButton::ZL, Joycon::PadButton::Minus,
+ Joycon::PadButton::Capture, Joycon::PadButton::StickL,
+ };
+
+ const u32 raw_button =
+ static_cast<u32>(input.button_input[2] | ((input.button_input[1] & 0b00101001) << 16));
+ for (std::size_t i = 0; i < left_buttons.size(); ++i) {
+ const bool button_status = (raw_button & static_cast<u32>(left_buttons[i])) != 0;
+ const int button = static_cast<int>(left_buttons[i]);
+ callbacks.on_button_data(button, button_status);
+ }
+
+ const u16 raw_left_axis_x =
+ static_cast<u16>(input.left_stick_state[0] | ((input.left_stick_state[1] & 0xf) << 8));
+ const u16 raw_left_axis_y =
+ static_cast<u16>((input.left_stick_state[1] >> 4) | (input.left_stick_state[2] << 4));
+ const f32 left_axis_x = GetAxisValue(raw_left_axis_x, left_stick_calibration.x);
+ const f32 left_axis_y = GetAxisValue(raw_left_axis_y, left_stick_calibration.y);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickX), left_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickY), left_axis_y);
+
+ if (motion_status.is_enabled) {
+ auto left_motion = GetMotionInput(input, motion_status);
+ // Rotate motion axis to the correct direction
+ left_motion.accel_y = -left_motion.accel_y;
+ left_motion.accel_z = -left_motion.accel_z;
+ left_motion.gyro_x = -left_motion.gyro_x;
+ callbacks.on_motion_data(static_cast<int>(PadMotion::LeftMotion), left_motion);
+ }
+}
+
+void JoyconPoller::UpdateActiveRightPadInput(const InputReportActive& input,
+ const MotionStatus& motion_status) {
+ static constexpr std::array<Joycon::PadButton, 11> right_buttons{
+ Joycon::PadButton::Y, Joycon::PadButton::X, Joycon::PadButton::B,
+ Joycon::PadButton::A, Joycon::PadButton::RightSL, Joycon::PadButton::RightSR,
+ Joycon::PadButton::R, Joycon::PadButton::ZR, Joycon::PadButton::Plus,
+ Joycon::PadButton::Home, Joycon::PadButton::StickR,
+ };
+
+ const u32 raw_button =
+ static_cast<u32>((input.button_input[0] << 8) | (input.button_input[1] << 16));
+ for (std::size_t i = 0; i < right_buttons.size(); ++i) {
+ const bool button_status = (raw_button & static_cast<u32>(right_buttons[i])) != 0;
+ const int button = static_cast<int>(right_buttons[i]);
+ callbacks.on_button_data(button, button_status);
+ }
+
+ const u16 raw_right_axis_x =
+ static_cast<u16>(input.right_stick_state[0] | ((input.right_stick_state[1] & 0xf) << 8));
+ const u16 raw_right_axis_y =
+ static_cast<u16>((input.right_stick_state[1] >> 4) | (input.right_stick_state[2] << 4));
+ const f32 right_axis_x = GetAxisValue(raw_right_axis_x, right_stick_calibration.x);
+ const f32 right_axis_y = GetAxisValue(raw_right_axis_y, right_stick_calibration.y);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickX), right_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickY), right_axis_y);
+
+ if (motion_status.is_enabled) {
+ auto right_motion = GetMotionInput(input, motion_status);
+ // Rotate motion axis to the correct direction
+ right_motion.accel_x = -right_motion.accel_x;
+ right_motion.accel_y = -right_motion.accel_y;
+ right_motion.gyro_z = -right_motion.gyro_z;
+ callbacks.on_motion_data(static_cast<int>(PadMotion::RightMotion), right_motion);
+ }
+}
+
+void JoyconPoller::UpdateActiveProPadInput(const InputReportActive& input,
+ const MotionStatus& motion_status) {
+ static constexpr std::array<Joycon::PadButton, 18> pro_buttons{
+ Joycon::PadButton::Down, Joycon::PadButton::Up, Joycon::PadButton::Right,
+ Joycon::PadButton::Left, Joycon::PadButton::L, Joycon::PadButton::ZL,
+ Joycon::PadButton::Minus, Joycon::PadButton::Capture, Joycon::PadButton::Y,
+ Joycon::PadButton::X, Joycon::PadButton::B, Joycon::PadButton::A,
+ Joycon::PadButton::R, Joycon::PadButton::ZR, Joycon::PadButton::Plus,
+ Joycon::PadButton::Home, Joycon::PadButton::StickL, Joycon::PadButton::StickR,
+ };
+
+ const u32 raw_button = static_cast<u32>(input.button_input[2] | (input.button_input[0] << 8) |
+ (input.button_input[1] << 16));
+ for (std::size_t i = 0; i < pro_buttons.size(); ++i) {
+ const bool button_status = (raw_button & static_cast<u32>(pro_buttons[i])) != 0;
+ const int button = static_cast<int>(pro_buttons[i]);
+ callbacks.on_button_data(button, button_status);
+ }
+
+ const u16 raw_left_axis_x =
+ static_cast<u16>(input.left_stick_state[0] | ((input.left_stick_state[1] & 0xf) << 8));
+ const u16 raw_left_axis_y =
+ static_cast<u16>((input.left_stick_state[1] >> 4) | (input.left_stick_state[2] << 4));
+ const u16 raw_right_axis_x =
+ static_cast<u16>(input.right_stick_state[0] | ((input.right_stick_state[1] & 0xf) << 8));
+ const u16 raw_right_axis_y =
+ static_cast<u16>((input.right_stick_state[1] >> 4) | (input.right_stick_state[2] << 4));
+
+ const f32 left_axis_x = GetAxisValue(raw_left_axis_x, left_stick_calibration.x);
+ const f32 left_axis_y = GetAxisValue(raw_left_axis_y, left_stick_calibration.y);
+ const f32 right_axis_x = GetAxisValue(raw_right_axis_x, right_stick_calibration.x);
+ const f32 right_axis_y = GetAxisValue(raw_right_axis_y, right_stick_calibration.y);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickX), left_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickY), left_axis_y);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickX), right_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickY), right_axis_y);
+
+ if (motion_status.is_enabled) {
+ auto pro_motion = GetMotionInput(input, motion_status);
+ pro_motion.gyro_x = -pro_motion.gyro_x;
+ pro_motion.accel_y = -pro_motion.accel_y;
+ pro_motion.accel_z = -pro_motion.accel_z;
+ callbacks.on_motion_data(static_cast<int>(PadMotion::LeftMotion), pro_motion);
+ callbacks.on_motion_data(static_cast<int>(PadMotion::RightMotion), pro_motion);
+ }
+}
+
+void JoyconPoller::UpdatePassiveLeftPadInput(const InputReportPassive& input) {
+ static constexpr std::array<PassivePadButton, 11> left_buttons{
+ PassivePadButton::Down_A, PassivePadButton::Right_X, PassivePadButton::Left_B,
+ PassivePadButton::Up_Y, PassivePadButton::SL, PassivePadButton::SR,
+ PassivePadButton::L_R, PassivePadButton::ZL_ZR, PassivePadButton::Minus,
+ PassivePadButton::Capture, PassivePadButton::StickL,
+ };
+
+ for (auto left_button : left_buttons) {
+ const bool button_status = (input.button_input & static_cast<u32>(left_button)) != 0;
+ const int button = static_cast<int>(left_button);
+ callbacks.on_button_data(button, button_status);
+ }
+
+ const auto [left_axis_x, left_axis_y] =
+ GetPassiveAxisValue(static_cast<PassivePadStick>(input.stick_state));
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickX), left_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickY), left_axis_y);
+}
+
+void JoyconPoller::UpdatePassiveRightPadInput(const InputReportPassive& input) {
+ static constexpr std::array<PassivePadButton, 11> right_buttons{
+ PassivePadButton::Down_A, PassivePadButton::Right_X, PassivePadButton::Left_B,
+ PassivePadButton::Up_Y, PassivePadButton::SL, PassivePadButton::SR,
+ PassivePadButton::L_R, PassivePadButton::ZL_ZR, PassivePadButton::Plus,
+ PassivePadButton::Home, PassivePadButton::StickR,
+ };
+
+ for (auto right_button : right_buttons) {
+ const bool button_status = (input.button_input & static_cast<u32>(right_button)) != 0;
+ const int button = static_cast<int>(right_button);
+ callbacks.on_button_data(button, button_status);
+ }
+
+ const auto [right_axis_x, right_axis_y] =
+ GetPassiveAxisValue(static_cast<PassivePadStick>(input.stick_state));
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickX), right_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickY), right_axis_y);
+}
+
+void JoyconPoller::UpdatePassiveProPadInput(const InputReportPassive& input) {
+ static constexpr std::array<PassivePadButton, 14> pro_buttons{
+ PassivePadButton::Down_A, PassivePadButton::Right_X, PassivePadButton::Left_B,
+ PassivePadButton::Up_Y, PassivePadButton::SL, PassivePadButton::SR,
+ PassivePadButton::L_R, PassivePadButton::ZL_ZR, PassivePadButton::Minus,
+ PassivePadButton::Plus, PassivePadButton::Capture, PassivePadButton::Home,
+ PassivePadButton::StickL, PassivePadButton::StickR,
+ };
+
+ for (auto pro_button : pro_buttons) {
+ const bool button_status = (input.button_input & static_cast<u32>(pro_button)) != 0;
+ const int button = static_cast<int>(pro_button);
+ callbacks.on_button_data(button, button_status);
+ }
+
+ const auto [left_axis_x, left_axis_y] =
+ GetPassiveAxisValue(static_cast<PassivePadStick>(input.stick_state & 0xf));
+ const auto [right_axis_x, right_axis_y] =
+ GetPassiveAxisValue(static_cast<PassivePadStick>(input.stick_state >> 4));
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickX), left_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::LeftStickY), left_axis_y);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickX), right_axis_x);
+ callbacks.on_stick_data(static_cast<int>(PadAxes::RightStickY), right_axis_y);
+}
+
+f32 JoyconPoller::GetAxisValue(u16 raw_value, Joycon::JoyStickAxisCalibration calibration) const {
+ const f32 value = static_cast<f32>(raw_value - calibration.center);
+ if (value > 0.0f) {
+ return value / calibration.max;
+ }
+ return value / calibration.min;
+}
+
+std::pair<f32, f32> JoyconPoller::GetPassiveAxisValue(PassivePadStick raw_value) const {
+ switch (raw_value) {
+ case PassivePadStick::Right:
+ return {1.0f, 0.0f};
+ case PassivePadStick::RightDown:
+ return {1.0f, -1.0f};
+ case PassivePadStick::Down:
+ return {0.0f, -1.0f};
+ case PassivePadStick::DownLeft:
+ return {-1.0f, -1.0f};
+ case PassivePadStick::Left:
+ return {-1.0f, 0.0f};
+ case PassivePadStick::LeftUp:
+ return {-1.0f, 1.0f};
+ case PassivePadStick::Up:
+ return {0.0f, 1.0f};
+ case PassivePadStick::UpRight:
+ return {1.0f, 1.0f};
+ case PassivePadStick::Neutral:
+ default:
+ return {0.0f, 0.0f};
+ }
+}
+
+f32 JoyconPoller::GetAccelerometerValue(s16 raw, const MotionSensorCalibration& cal,
+ AccelerometerSensitivity sensitivity) const {
+ const f32 value = raw * (1.0f / (cal.scale - cal.offset)) * 4;
+ switch (sensitivity) {
+ case Joycon::AccelerometerSensitivity::G2:
+ return value / 4.0f;
+ case Joycon::AccelerometerSensitivity::G4:
+ return value / 2.0f;
+ case Joycon::AccelerometerSensitivity::G8:
+ return value;
+ case Joycon::AccelerometerSensitivity::G16:
+ return value * 2.0f;
+ }
+ return value;
+}
+
+f32 JoyconPoller::GetGyroValue(s16 raw, const MotionSensorCalibration& cal,
+ GyroSensitivity sensitivity) const {
+ const f32 value = (raw - cal.offset) * (936.0f / (cal.scale - cal.offset)) / 360.0f;
+ switch (sensitivity) {
+ case Joycon::GyroSensitivity::DPS250:
+ return value / 8.0f;
+ case Joycon::GyroSensitivity::DPS500:
+ return value / 4.0f;
+ case Joycon::GyroSensitivity::DPS1000:
+ return value / 2.0f;
+ case Joycon::GyroSensitivity::DPS2000:
+ return value;
+ }
+ return value;
+}
+
+s16 JoyconPoller::GetRawIMUValues(std::size_t sensor, size_t axis,
+ const InputReportActive& input) const {
+ return input.motion_input[(sensor * 3) + axis];
+}
+
+MotionData JoyconPoller::GetMotionInput(const InputReportActive& input,
+ const MotionStatus& motion_status) const {
+ MotionData motion{};
+ const auto& accel_cal = motion_calibration.accelerometer;
+ const auto& gyro_cal = motion_calibration.gyro;
+ const s16 raw_accel_x = input.motion_input[1];
+ const s16 raw_accel_y = input.motion_input[0];
+ const s16 raw_accel_z = input.motion_input[2];
+ const s16 raw_gyro_x = input.motion_input[4];
+ const s16 raw_gyro_y = input.motion_input[3];
+ const s16 raw_gyro_z = input.motion_input[5];
+
+ motion.delta_timestamp = motion_status.delta_time;
+ motion.accel_x =
+ GetAccelerometerValue(raw_accel_x, accel_cal[1], motion_status.accelerometer_sensitivity);
+ motion.accel_y =
+ GetAccelerometerValue(raw_accel_y, accel_cal[0], motion_status.accelerometer_sensitivity);
+ motion.accel_z =
+ GetAccelerometerValue(raw_accel_z, accel_cal[2], motion_status.accelerometer_sensitivity);
+ motion.gyro_x = GetGyroValue(raw_gyro_x, gyro_cal[1], motion_status.gyro_sensitivity);
+ motion.gyro_y = GetGyroValue(raw_gyro_y, gyro_cal[0], motion_status.gyro_sensitivity);
+ motion.gyro_z = GetGyroValue(raw_gyro_z, gyro_cal[2], motion_status.gyro_sensitivity);
+
+ // TODO(German77): Return all three samples data
+ return motion;
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/poller.h b/src/input_common/helpers/joycon_protocol/poller.h
new file mode 100644
index 000000000..3746abe5d
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/poller.h
@@ -0,0 +1,84 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <functional>
+#include <span>
+
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+// Handles input packages and triggers the corresponding input events
+class JoyconPoller {
+public:
+ JoyconPoller(ControllerType device_type_, JoyStickCalibration left_stick_calibration_,
+ JoyStickCalibration right_stick_calibration_,
+ MotionCalibration motion_calibration_);
+
+ void SetCallbacks(const JoyconCallbacks& callbacks_);
+
+ /// Handles data from passive packages
+ void ReadPassiveMode(std::span<u8> buffer);
+
+ /// Handles data from active packages
+ void ReadActiveMode(std::span<u8> buffer, const MotionStatus& motion_status,
+ const RingStatus& ring_status);
+
+ /// Handles data from nfc or ir packages
+ void ReadNfcIRMode(std::span<u8> buffer, const MotionStatus& motion_status);
+
+ void UpdateColor(const Color& color);
+ void UpdateRing(s16 value, const RingStatus& ring_status);
+ void UpdateAmiibo(const Joycon::TagInfo& tag_info);
+ void UpdateCamera(const std::vector<u8>& camera_data, IrsResolution format);
+
+private:
+ void UpdateActiveLeftPadInput(const InputReportActive& input,
+ const MotionStatus& motion_status);
+ void UpdateActiveRightPadInput(const InputReportActive& input,
+ const MotionStatus& motion_status);
+ void UpdateActiveProPadInput(const InputReportActive& input, const MotionStatus& motion_status);
+
+ void UpdatePassiveLeftPadInput(const InputReportPassive& buffer);
+ void UpdatePassiveRightPadInput(const InputReportPassive& buffer);
+ void UpdatePassiveProPadInput(const InputReportPassive& buffer);
+
+ /// Returns a calibrated joystick axis from raw axis data
+ f32 GetAxisValue(u16 raw_value, JoyStickAxisCalibration calibration) const;
+
+ /// Returns a digital joystick axis from passive axis data
+ std::pair<f32, f32> GetPassiveAxisValue(PassivePadStick raw_value) const;
+
+ /// Returns a calibrated accelerometer axis from raw motion data
+ f32 GetAccelerometerValue(s16 raw, const MotionSensorCalibration& cal,
+ AccelerometerSensitivity sensitivity) const;
+
+ /// Returns a calibrated gyro axis from raw motion data
+ f32 GetGyroValue(s16 raw_value, const MotionSensorCalibration& cal,
+ GyroSensitivity sensitivity) const;
+
+ /// Returns a raw motion value from a buffer
+ s16 GetRawIMUValues(size_t sensor, size_t axis, const InputReportActive& input) const;
+
+ /// Returns motion data from a buffer
+ MotionData GetMotionInput(const InputReportActive& input,
+ const MotionStatus& motion_status) const;
+
+ ControllerType device_type{};
+
+ // Device calibration
+ JoyStickCalibration left_stick_calibration{};
+ JoyStickCalibration right_stick_calibration{};
+ MotionCalibration motion_calibration{};
+
+ JoyconCallbacks callbacks{};
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/ringcon.cpp b/src/input_common/helpers/joycon_protocol/ringcon.cpp
new file mode 100644
index 000000000..190cef812
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/ringcon.cpp
@@ -0,0 +1,115 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/logging/log.h"
+#include "input_common/helpers/joycon_protocol/ringcon.h"
+
+namespace InputCommon::Joycon {
+
+RingConProtocol::RingConProtocol(std::shared_ptr<JoyconHandle> handle)
+ : JoyconCommonProtocol(std::move(handle)) {}
+
+DriverResult RingConProtocol::EnableRingCon() {
+ LOG_DEBUG(Input, "Enable Ringcon");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ result = SetReportMode(ReportMode::STANDARD_FULL_60HZ);
+ }
+ if (result == DriverResult::Success) {
+ result = EnableMCU(true);
+ }
+ if (result == DriverResult::Success) {
+ const MCUConfig config{
+ .command = MCUCommand::ConfigureMCU,
+ .sub_command = MCUSubCommand::SetDeviceMode,
+ .mode = MCUMode::Standby,
+ .crc = {},
+ };
+ result = ConfigureMCU(config);
+ }
+
+ return result;
+}
+
+DriverResult RingConProtocol::DisableRingCon() {
+ LOG_DEBUG(Input, "Disable RingCon");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+
+ if (result == DriverResult::Success) {
+ result = EnableMCU(false);
+ }
+
+ is_enabled = false;
+
+ return result;
+}
+
+DriverResult RingConProtocol::StartRingconPolling() {
+ LOG_DEBUG(Input, "Enable Ringcon");
+ ScopedSetBlocking sb(this);
+ DriverResult result{DriverResult::Success};
+ bool is_connected = false;
+
+ if (result == DriverResult::Success) {
+ result = IsRingConnected(is_connected);
+ }
+ if (result == DriverResult::Success && is_connected) {
+ LOG_INFO(Input, "Ringcon detected");
+ result = ConfigureRing();
+ }
+ if (result == DriverResult::Success) {
+ is_enabled = true;
+ }
+
+ return result;
+}
+
+DriverResult RingConProtocol::IsRingConnected(bool& is_connected) {
+ LOG_DEBUG(Input, "IsRingConnected");
+ constexpr std::size_t max_tries = 28;
+ SubCommandResponse output{};
+ std::size_t tries = 0;
+ is_connected = false;
+
+ do {
+ const auto result = SendSubCommand(SubCommand::GET_EXTERNAL_DEVICE_INFO, {}, output);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ if (tries++ >= max_tries) {
+ return DriverResult::NoDeviceDetected;
+ }
+ } while (output.external_device_id != ExternalDeviceId::RingController);
+
+ is_connected = true;
+ return DriverResult::Success;
+}
+
+DriverResult RingConProtocol::ConfigureRing() {
+ LOG_DEBUG(Input, "ConfigureRing");
+
+ static constexpr std::array<u8, 37> ring_config{
+ 0x06, 0x03, 0x25, 0x06, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x16, 0xED, 0x34, 0x36,
+ 0x00, 0x00, 0x00, 0x0A, 0x64, 0x0B, 0xE6, 0xA9, 0x22, 0x00, 0x00, 0x04, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0xA8, 0xE1, 0x34, 0x36};
+
+ const DriverResult result = SendSubCommand(SubCommand::SET_EXTERNAL_FORMAT_CONFIG, ring_config);
+
+ if (result != DriverResult::Success) {
+ return result;
+ }
+
+ static constexpr std::array<u8, 4> ringcon_data{0x04, 0x01, 0x01, 0x02};
+ return SendSubCommand(SubCommand::ENABLE_EXTERNAL_POLLING, ringcon_data);
+}
+
+bool RingConProtocol::IsEnabled() const {
+ return is_enabled;
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/ringcon.h b/src/input_common/helpers/joycon_protocol/ringcon.h
new file mode 100644
index 000000000..6e858f3fc
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/ringcon.h
@@ -0,0 +1,38 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <vector>
+
+#include "input_common/helpers/joycon_protocol/common_protocol.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+class RingConProtocol final : private JoyconCommonProtocol {
+public:
+ explicit RingConProtocol(std::shared_ptr<JoyconHandle> handle);
+
+ DriverResult EnableRingCon();
+
+ DriverResult DisableRingCon();
+
+ DriverResult StartRingconPolling();
+
+ bool IsEnabled() const;
+
+private:
+ DriverResult IsRingConnected(bool& is_connected);
+
+ DriverResult ConfigureRing();
+
+ bool is_enabled{};
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/rumble.cpp b/src/input_common/helpers/joycon_protocol/rumble.cpp
new file mode 100644
index 000000000..63b60c946
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/rumble.cpp
@@ -0,0 +1,299 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <algorithm>
+#include <cmath>
+
+#include "common/logging/log.h"
+#include "input_common/helpers/joycon_protocol/rumble.h"
+
+namespace InputCommon::Joycon {
+
+RumbleProtocol::RumbleProtocol(std::shared_ptr<JoyconHandle> handle)
+ : JoyconCommonProtocol(std::move(handle)) {}
+
+DriverResult RumbleProtocol::EnableRumble(bool is_enabled) {
+ LOG_DEBUG(Input, "Enable Rumble");
+ ScopedSetBlocking sb(this);
+ const std::array<u8, 1> buffer{static_cast<u8>(is_enabled ? 1 : 0)};
+ return SendSubCommand(SubCommand::ENABLE_VIBRATION, buffer);
+}
+
+DriverResult RumbleProtocol::SendVibration(const VibrationValue& vibration) {
+ std::array<u8, sizeof(DefaultVibrationBuffer)> buffer{};
+
+ if (vibration.high_amplitude <= 0.0f && vibration.low_amplitude <= 0.0f) {
+ return SendVibrationReport(DefaultVibrationBuffer);
+ }
+
+ // Protect joycons from damage from strong vibrations
+ const f32 clamp_amplitude =
+ 1.0f / std::max(1.0f, vibration.high_amplitude + vibration.low_amplitude);
+
+ const u16 encoded_high_frequency = EncodeHighFrequency(vibration.high_frequency);
+ const u8 encoded_high_amplitude =
+ EncodeHighAmplitude(vibration.high_amplitude * clamp_amplitude);
+ const u8 encoded_low_frequency = EncodeLowFrequency(vibration.low_frequency);
+ const u16 encoded_low_amplitude = EncodeLowAmplitude(vibration.low_amplitude * clamp_amplitude);
+
+ buffer[0] = static_cast<u8>(encoded_high_frequency & 0xFF);
+ buffer[1] = static_cast<u8>(encoded_high_amplitude | ((encoded_high_frequency >> 8) & 0x01));
+ buffer[2] = static_cast<u8>(encoded_low_frequency | ((encoded_low_amplitude >> 8) & 0x80));
+ buffer[3] = static_cast<u8>(encoded_low_amplitude & 0xFF);
+
+ // Duplicate rumble for now
+ buffer[4] = buffer[0];
+ buffer[5] = buffer[1];
+ buffer[6] = buffer[2];
+ buffer[7] = buffer[3];
+
+ return SendVibrationReport(buffer);
+}
+
+u16 RumbleProtocol::EncodeHighFrequency(f32 frequency) const {
+ const u8 new_frequency =
+ static_cast<u8>(std::clamp(std::log2(frequency / 10.0f) * 32.0f, 0.0f, 255.0f));
+ return static_cast<u16>((new_frequency - 0x60) * 4);
+}
+
+u8 RumbleProtocol::EncodeLowFrequency(f32 frequency) const {
+ const u8 new_frequency =
+ static_cast<u8>(std::clamp(std::log2(frequency / 10.0f) * 32.0f, 0.0f, 255.0f));
+ return static_cast<u8>(new_frequency - 0x40);
+}
+
+u8 RumbleProtocol::EncodeHighAmplitude(f32 amplitude) const {
+ // More information about these values can be found here:
+ // https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/master/rumble_data_table.md
+
+ static constexpr std::array<std::pair<f32, int>, 101> high_fequency_amplitude{
+ std::pair<f32, int>{0.0f, 0x0},
+ {0.01f, 0x2},
+ {0.012f, 0x4},
+ {0.014f, 0x6},
+ {0.017f, 0x8},
+ {0.02f, 0x0a},
+ {0.024f, 0x0c},
+ {0.028f, 0x0e},
+ {0.033f, 0x10},
+ {0.04f, 0x12},
+ {0.047f, 0x14},
+ {0.056f, 0x16},
+ {0.067f, 0x18},
+ {0.08f, 0x1a},
+ {0.095f, 0x1c},
+ {0.112f, 0x1e},
+ {0.117f, 0x20},
+ {0.123f, 0x22},
+ {0.128f, 0x24},
+ {0.134f, 0x26},
+ {0.14f, 0x28},
+ {0.146f, 0x2a},
+ {0.152f, 0x2c},
+ {0.159f, 0x2e},
+ {0.166f, 0x30},
+ {0.173f, 0x32},
+ {0.181f, 0x34},
+ {0.189f, 0x36},
+ {0.198f, 0x38},
+ {0.206f, 0x3a},
+ {0.215f, 0x3c},
+ {0.225f, 0x3e},
+ {0.23f, 0x40},
+ {0.235f, 0x42},
+ {0.24f, 0x44},
+ {0.245f, 0x46},
+ {0.251f, 0x48},
+ {0.256f, 0x4a},
+ {0.262f, 0x4c},
+ {0.268f, 0x4e},
+ {0.273f, 0x50},
+ {0.279f, 0x52},
+ {0.286f, 0x54},
+ {0.292f, 0x56},
+ {0.298f, 0x58},
+ {0.305f, 0x5a},
+ {0.311f, 0x5c},
+ {0.318f, 0x5e},
+ {0.325f, 0x60},
+ {0.332f, 0x62},
+ {0.34f, 0x64},
+ {0.347f, 0x66},
+ {0.355f, 0x68},
+ {0.362f, 0x6a},
+ {0.37f, 0x6c},
+ {0.378f, 0x6e},
+ {0.387f, 0x70},
+ {0.395f, 0x72},
+ {0.404f, 0x74},
+ {0.413f, 0x76},
+ {0.422f, 0x78},
+ {0.431f, 0x7a},
+ {0.44f, 0x7c},
+ {0.45f, 0x7e},
+ {0.46f, 0x80},
+ {0.47f, 0x82},
+ {0.48f, 0x84},
+ {0.491f, 0x86},
+ {0.501f, 0x88},
+ {0.512f, 0x8a},
+ {0.524f, 0x8c},
+ {0.535f, 0x8e},
+ {0.547f, 0x90},
+ {0.559f, 0x92},
+ {0.571f, 0x94},
+ {0.584f, 0x96},
+ {0.596f, 0x98},
+ {0.609f, 0x9a},
+ {0.623f, 0x9c},
+ {0.636f, 0x9e},
+ {0.65f, 0xa0},
+ {0.665f, 0xa2},
+ {0.679f, 0xa4},
+ {0.694f, 0xa6},
+ {0.709f, 0xa8},
+ {0.725f, 0xaa},
+ {0.741f, 0xac},
+ {0.757f, 0xae},
+ {0.773f, 0xb0},
+ {0.79f, 0xb2},
+ {0.808f, 0xb4},
+ {0.825f, 0xb6},
+ {0.843f, 0xb8},
+ {0.862f, 0xba},
+ {0.881f, 0xbc},
+ {0.9f, 0xbe},
+ {0.92f, 0xc0},
+ {0.94f, 0xc2},
+ {0.96f, 0xc4},
+ {0.981f, 0xc6},
+ {1.003f, 0xc8},
+ };
+
+ for (const auto& [amplitude_value, code] : high_fequency_amplitude) {
+ if (amplitude <= amplitude_value) {
+ return static_cast<u8>(code);
+ }
+ }
+
+ return static_cast<u8>(high_fequency_amplitude[high_fequency_amplitude.size() - 1].second);
+}
+
+u16 RumbleProtocol::EncodeLowAmplitude(f32 amplitude) const {
+ // More information about these values can be found here:
+ // https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/master/rumble_data_table.md
+
+ static constexpr std::array<std::pair<f32, int>, 101> high_fequency_amplitude{
+ std::pair<f32, int>{0.0f, 0x0040},
+ {0.01f, 0x8040},
+ {0.012f, 0x0041},
+ {0.014f, 0x8041},
+ {0.017f, 0x0042},
+ {0.02f, 0x8042},
+ {0.024f, 0x0043},
+ {0.028f, 0x8043},
+ {0.033f, 0x0044},
+ {0.04f, 0x8044},
+ {0.047f, 0x0045},
+ {0.056f, 0x8045},
+ {0.067f, 0x0046},
+ {0.08f, 0x8046},
+ {0.095f, 0x0047},
+ {0.112f, 0x8047},
+ {0.117f, 0x0048},
+ {0.123f, 0x8048},
+ {0.128f, 0x0049},
+ {0.134f, 0x8049},
+ {0.14f, 0x004a},
+ {0.146f, 0x804a},
+ {0.152f, 0x004b},
+ {0.159f, 0x804b},
+ {0.166f, 0x004c},
+ {0.173f, 0x804c},
+ {0.181f, 0x004d},
+ {0.189f, 0x804d},
+ {0.198f, 0x004e},
+ {0.206f, 0x804e},
+ {0.215f, 0x004f},
+ {0.225f, 0x804f},
+ {0.23f, 0x0050},
+ {0.235f, 0x8050},
+ {0.24f, 0x0051},
+ {0.245f, 0x8051},
+ {0.251f, 0x0052},
+ {0.256f, 0x8052},
+ {0.262f, 0x0053},
+ {0.268f, 0x8053},
+ {0.273f, 0x0054},
+ {0.279f, 0x8054},
+ {0.286f, 0x0055},
+ {0.292f, 0x8055},
+ {0.298f, 0x0056},
+ {0.305f, 0x8056},
+ {0.311f, 0x0057},
+ {0.318f, 0x8057},
+ {0.325f, 0x0058},
+ {0.332f, 0x8058},
+ {0.34f, 0x0059},
+ {0.347f, 0x8059},
+ {0.355f, 0x005a},
+ {0.362f, 0x805a},
+ {0.37f, 0x005b},
+ {0.378f, 0x805b},
+ {0.387f, 0x005c},
+ {0.395f, 0x805c},
+ {0.404f, 0x005d},
+ {0.413f, 0x805d},
+ {0.422f, 0x005e},
+ {0.431f, 0x805e},
+ {0.44f, 0x005f},
+ {0.45f, 0x805f},
+ {0.46f, 0x0060},
+ {0.47f, 0x8060},
+ {0.48f, 0x0061},
+ {0.491f, 0x8061},
+ {0.501f, 0x0062},
+ {0.512f, 0x8062},
+ {0.524f, 0x0063},
+ {0.535f, 0x8063},
+ {0.547f, 0x0064},
+ {0.559f, 0x8064},
+ {0.571f, 0x0065},
+ {0.584f, 0x8065},
+ {0.596f, 0x0066},
+ {0.609f, 0x8066},
+ {0.623f, 0x0067},
+ {0.636f, 0x8067},
+ {0.65f, 0x0068},
+ {0.665f, 0x8068},
+ {0.679f, 0x0069},
+ {0.694f, 0x8069},
+ {0.709f, 0x006a},
+ {0.725f, 0x806a},
+ {0.741f, 0x006b},
+ {0.757f, 0x806b},
+ {0.773f, 0x006c},
+ {0.79f, 0x806c},
+ {0.808f, 0x006d},
+ {0.825f, 0x806d},
+ {0.843f, 0x006e},
+ {0.862f, 0x806e},
+ {0.881f, 0x006f},
+ {0.9f, 0x806f},
+ {0.92f, 0x0070},
+ {0.94f, 0x8070},
+ {0.96f, 0x0071},
+ {0.981f, 0x8071},
+ {1.003f, 0x0072},
+ };
+
+ for (const auto& [amplitude_value, code] : high_fequency_amplitude) {
+ if (amplitude <= amplitude_value) {
+ return static_cast<u16>(code);
+ }
+ }
+
+ return static_cast<u16>(high_fequency_amplitude[high_fequency_amplitude.size() - 1].second);
+}
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/joycon_protocol/rumble.h b/src/input_common/helpers/joycon_protocol/rumble.h
new file mode 100644
index 000000000..6c12b7925
--- /dev/null
+++ b/src/input_common/helpers/joycon_protocol/rumble.h
@@ -0,0 +1,33 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// Based on dkms-hid-nintendo implementation, CTCaer joycon toolkit and dekuNukem reverse
+// engineering https://github.com/nicman23/dkms-hid-nintendo/blob/master/src/hid-nintendo.c
+// https://github.com/CTCaer/jc_toolkit
+// https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering
+
+#pragma once
+
+#include <vector>
+
+#include "input_common/helpers/joycon_protocol/common_protocol.h"
+#include "input_common/helpers/joycon_protocol/joycon_types.h"
+
+namespace InputCommon::Joycon {
+
+class RumbleProtocol final : private JoyconCommonProtocol {
+public:
+ explicit RumbleProtocol(std::shared_ptr<JoyconHandle> handle);
+
+ DriverResult EnableRumble(bool is_enabled);
+
+ DriverResult SendVibration(const VibrationValue& vibration);
+
+private:
+ u16 EncodeHighFrequency(f32 frequency) const;
+ u8 EncodeLowFrequency(f32 frequency) const;
+ u8 EncodeHighAmplitude(f32 amplitude) const;
+ u16 EncodeLowAmplitude(f32 amplitude) const;
+};
+
+} // namespace InputCommon::Joycon
diff --git a/src/input_common/helpers/stick_from_buttons.cpp b/src/input_common/helpers/stick_from_buttons.cpp
index f3a0b3419..a6be6dac1 100644
--- a/src/input_common/helpers/stick_from_buttons.cpp
+++ b/src/input_common/helpers/stick_from_buttons.cpp
@@ -11,6 +11,14 @@ namespace InputCommon {
class Stick final : public Common::Input::InputDevice {
public:
+ // Some games such as EARTH DEFENSE FORCE: WORLD BROTHERS
+ // do not play nicely with the theoretical maximum range.
+ // Using a value one lower from the maximum emulates real stick behavior.
+ static constexpr float MAX_RANGE = 32766.0f / 32767.0f;
+ static constexpr float TAU = Common::PI * 2.0f;
+ // Use wider angle to ease the transition.
+ static constexpr float APERTURE = TAU * 0.15f;
+
using Button = std::unique_ptr<Common::Input::InputDevice>;
Stick(Button up_, Button down_, Button left_, Button right_, Button modifier_, Button updater_,
@@ -56,30 +64,23 @@ public:
}
bool IsAngleGreater(float old_angle, float new_angle) const {
- constexpr float TAU = Common::PI * 2.0f;
- // Use wider angle to ease the transition.
- constexpr float aperture = TAU * 0.15f;
- const float top_limit = new_angle + aperture;
+ const float top_limit = new_angle + APERTURE;
return (old_angle > new_angle && old_angle <= top_limit) ||
(old_angle + TAU > new_angle && old_angle + TAU <= top_limit);
}
bool IsAngleSmaller(float old_angle, float new_angle) const {
- constexpr float TAU = Common::PI * 2.0f;
- // Use wider angle to ease the transition.
- constexpr float aperture = TAU * 0.15f;
- const float bottom_limit = new_angle - aperture;
+ const float bottom_limit = new_angle - APERTURE;
return (old_angle >= bottom_limit && old_angle < new_angle) ||
(old_angle - TAU >= bottom_limit && old_angle - TAU < new_angle);
}
float GetAngle(std::chrono::time_point<std::chrono::steady_clock> now) const {
- constexpr float TAU = Common::PI * 2.0f;
float new_angle = angle;
auto time_difference = static_cast<float>(
- std::chrono::duration_cast<std::chrono::microseconds>(now - last_update).count());
- time_difference /= 1000.0f * 1000.0f;
+ std::chrono::duration_cast<std::chrono::milliseconds>(now - last_update).count());
+ time_difference /= 1000.0f;
if (time_difference > 0.5f) {
time_difference = 0.5f;
}
@@ -196,8 +197,6 @@ public:
}
void UpdateStatus() {
- const float coef = modifier_status.value ? modifier_scale : 1.0f;
-
bool r = right_status;
bool l = left_status;
bool u = up_status;
@@ -215,7 +214,7 @@ public:
// Move if a key is pressed
if (r || l || u || d) {
- amplitude = coef;
+ amplitude = modifier_status.value ? modifier_scale : MAX_RANGE;
} else {
amplitude = 0;
}
@@ -269,30 +268,17 @@ public:
Common::Input::StickStatus status{};
status.x.properties = properties;
status.y.properties = properties;
+
if (Settings::values.emulate_analog_keyboard) {
const auto now = std::chrono::steady_clock::now();
- float angle_ = GetAngle(now);
+ const float angle_ = GetAngle(now);
status.x.raw_value = std::cos(angle_) * amplitude;
status.y.raw_value = std::sin(angle_) * amplitude;
return status;
}
- constexpr float SQRT_HALF = 0.707106781f;
- int x = 0, y = 0;
- if (right_status) {
- ++x;
- }
- if (left_status) {
- --x;
- }
- if (up_status) {
- ++y;
- }
- if (down_status) {
- --y;
- }
- const float coef = modifier_status.value ? modifier_scale : 1.0f;
- status.x.raw_value = static_cast<float>(x) * coef * (y == 0 ? 1.0f : SQRT_HALF);
- status.y.raw_value = static_cast<float>(y) * coef * (x == 0 ? 1.0f : SQRT_HALF);
+
+ status.x.raw_value = std::cos(goal_angle) * amplitude;
+ status.y.raw_value = std::sin(goal_angle) * amplitude;
return status;
}
diff --git a/src/input_common/helpers/udp_protocol.cpp b/src/input_common/helpers/udp_protocol.cpp
index 994380d21..e54a8fce1 100644
--- a/src/input_common/helpers/udp_protocol.cpp
+++ b/src/input_common/helpers/udp_protocol.cpp
@@ -25,7 +25,7 @@ namespace Response {
/**
* Returns Type if the packet is valid, else none
*
- * Note: Modifies the buffer to zero out the crc (since thats the easiest way to check without
+ * Note: Modifies the buffer to zero out the crc (since that's the easiest way to check without
* copying the buffer)
*/
std::optional<Type> Validate(u8* data, std::size_t size) {
diff --git a/src/input_common/input_engine.cpp b/src/input_common/input_engine.cpp
index 61cfd0911..e4c5b5b3c 100644
--- a/src/input_common/input_engine.cpp
+++ b/src/input_common/input_engine.cpp
@@ -79,6 +79,17 @@ void InputEngine::SetBattery(const PadIdentifier& identifier, Common::Input::Bat
TriggerOnBatteryChange(identifier, value);
}
+void InputEngine::SetColor(const PadIdentifier& identifier, Common::Input::BodyColorStatus value) {
+ {
+ std::scoped_lock lock{mutex};
+ ControllerData& controller = controller_list.at(identifier);
+ if (!configuring) {
+ controller.color = value;
+ }
+ }
+ TriggerOnColorChange(identifier, value);
+}
+
void InputEngine::SetMotion(const PadIdentifier& identifier, int motion, const BasicMotion& value) {
{
std::scoped_lock lock{mutex};
@@ -176,6 +187,18 @@ Common::Input::BatteryLevel InputEngine::GetBattery(const PadIdentifier& identif
return controller.battery;
}
+Common::Input::BodyColorStatus InputEngine::GetColor(const PadIdentifier& identifier) const {
+ std::scoped_lock lock{mutex};
+ const auto controller_iter = controller_list.find(identifier);
+ if (controller_iter == controller_list.cend()) {
+ LOG_ERROR(Input, "Invalid identifier guid={}, pad={}, port={}", identifier.guid.RawString(),
+ identifier.pad, identifier.port);
+ return {};
+ }
+ const ControllerData& controller = controller_iter->second;
+ return controller.color;
+}
+
BasicMotion InputEngine::GetMotion(const PadIdentifier& identifier, int motion) const {
std::scoped_lock lock{mutex};
const auto controller_iter = controller_list.find(identifier);
@@ -328,6 +351,20 @@ void InputEngine::TriggerOnBatteryChange(const PadIdentifier& identifier,
}
}
+void InputEngine::TriggerOnColorChange(const PadIdentifier& identifier,
+ [[maybe_unused]] Common::Input::BodyColorStatus value) {
+ std::scoped_lock lock{mutex_callback};
+ for (const auto& poller_pair : callback_list) {
+ const InputIdentifier& poller = poller_pair.second;
+ if (!IsInputIdentifierEqual(poller, identifier, EngineInputType::Color, 0)) {
+ continue;
+ }
+ if (poller.callback.on_change) {
+ poller.callback.on_change();
+ }
+ }
+}
+
void InputEngine::TriggerOnMotionChange(const PadIdentifier& identifier, int motion,
const BasicMotion& value) {
std::scoped_lock lock{mutex_callback};
@@ -343,13 +380,16 @@ void InputEngine::TriggerOnMotionChange(const PadIdentifier& identifier, int mot
if (!configuring || !mapping_callback.on_data) {
return;
}
+ const auto old_value = GetMotion(identifier, motion);
bool is_active = false;
- if (std::abs(value.accel_x) > 1.5f || std::abs(value.accel_y) > 1.5f ||
- std::abs(value.accel_z) > 1.5f) {
+ if (std::abs(value.accel_x - old_value.accel_x) > 1.5f ||
+ std::abs(value.accel_y - old_value.accel_y) > 1.5f ||
+ std::abs(value.accel_z - old_value.accel_z) > 1.5f) {
is_active = true;
}
- if (std::abs(value.gyro_x) > 0.6f || std::abs(value.gyro_y) > 0.6f ||
- std::abs(value.gyro_z) > 0.6f) {
+ if (std::abs(value.gyro_x - old_value.gyro_x) > 0.6f ||
+ std::abs(value.gyro_y - old_value.gyro_y) > 0.6f ||
+ std::abs(value.gyro_z - old_value.gyro_z) > 0.6f) {
is_active = true;
}
if (!is_active) {
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h
index 6cbcf5207..c2d0cbb34 100644
--- a/src/input_common/input_engine.h
+++ b/src/input_common/input_engine.h
@@ -40,6 +40,7 @@ enum class EngineInputType {
Battery,
Button,
Camera,
+ Color,
HatButton,
Motion,
Nfc,
@@ -104,14 +105,17 @@ public:
void EndConfiguration();
// Sets a led pattern for a controller
- virtual void SetLeds([[maybe_unused]] const PadIdentifier& identifier,
- [[maybe_unused]] const Common::Input::LedStatus& led_status) {}
+ virtual Common::Input::DriverResult SetLeds(
+ [[maybe_unused]] const PadIdentifier& identifier,
+ [[maybe_unused]] const Common::Input::LedStatus& led_status) {
+ return Common::Input::DriverResult::NotSupported;
+ }
// Sets rumble to a controller
- virtual Common::Input::VibrationError SetVibration(
+ virtual Common::Input::DriverResult SetVibration(
[[maybe_unused]] const PadIdentifier& identifier,
[[maybe_unused]] const Common::Input::VibrationStatus& vibration) {
- return Common::Input::VibrationError::NotSupported;
+ return Common::Input::DriverResult::NotSupported;
}
// Returns true if device supports vibrations
@@ -120,17 +124,17 @@ public:
}
// Sets polling mode to a controller
- virtual Common::Input::PollingError SetPollingMode(
+ virtual Common::Input::DriverResult SetPollingMode(
[[maybe_unused]] const PadIdentifier& identifier,
[[maybe_unused]] const Common::Input::PollingMode polling_mode) {
- return Common::Input::PollingError::NotSupported;
+ return Common::Input::DriverResult::NotSupported;
}
// Sets camera format to a controller
- virtual Common::Input::CameraError SetCameraFormat(
+ virtual Common::Input::DriverResult SetCameraFormat(
[[maybe_unused]] const PadIdentifier& identifier,
[[maybe_unused]] Common::Input::CameraFormat camera_format) {
- return Common::Input::CameraError::NotSupported;
+ return Common::Input::DriverResult::NotSupported;
}
// Returns success if nfc is supported
@@ -139,12 +143,46 @@ public:
return Common::Input::NfcState::NotSupported;
}
+ // Start scanning for nfc tags
+ virtual Common::Input::NfcState StartNfcPolling(
+ [[maybe_unused]] const PadIdentifier& identifier_) {
+ return Common::Input::NfcState::NotSupported;
+ }
+
+ // Start scanning for nfc tags
+ virtual Common::Input::NfcState StopNfcPolling(
+ [[maybe_unused]] const PadIdentifier& identifier_) {
+ return Common::Input::NfcState::NotSupported;
+ }
+
+ // Reads data from amiibo tag
+ virtual Common::Input::NfcState ReadAmiiboData(
+ [[maybe_unused]] const PadIdentifier& identifier_,
+ [[maybe_unused]] std::vector<u8>& out_data) {
+ return Common::Input::NfcState::NotSupported;
+ }
+
// Writes data to an nfc tag
virtual Common::Input::NfcState WriteNfcData([[maybe_unused]] const PadIdentifier& identifier,
[[maybe_unused]] const std::vector<u8>& data) {
return Common::Input::NfcState::NotSupported;
}
+ // Reads data from mifare tag
+ virtual Common::Input::NfcState ReadMifareData(
+ [[maybe_unused]] const PadIdentifier& identifier_,
+ [[maybe_unused]] const Common::Input::MifareRequest& request,
+ [[maybe_unused]] Common::Input::MifareRequest& out_data) {
+ return Common::Input::NfcState::NotSupported;
+ }
+
+ // Write data to mifare tag
+ virtual Common::Input::NfcState WriteMifareData(
+ [[maybe_unused]] const PadIdentifier& identifier_,
+ [[maybe_unused]] const Common::Input::MifareRequest& request) {
+ return Common::Input::NfcState::NotSupported;
+ }
+
// Returns the engine name
[[nodiscard]] const std::string& GetEngineName() const;
@@ -199,6 +237,7 @@ public:
bool GetHatButton(const PadIdentifier& identifier, int button, u8 direction) const;
f32 GetAxis(const PadIdentifier& identifier, int axis) const;
Common::Input::BatteryLevel GetBattery(const PadIdentifier& identifier) const;
+ Common::Input::BodyColorStatus GetColor(const PadIdentifier& identifier) const;
BasicMotion GetMotion(const PadIdentifier& identifier, int motion) const;
Common::Input::CameraStatus GetCamera(const PadIdentifier& identifier) const;
Common::Input::NfcStatus GetNfc(const PadIdentifier& identifier) const;
@@ -212,6 +251,7 @@ protected:
void SetHatButton(const PadIdentifier& identifier, int button, u8 value);
void SetAxis(const PadIdentifier& identifier, int axis, f32 value);
void SetBattery(const PadIdentifier& identifier, Common::Input::BatteryLevel value);
+ void SetColor(const PadIdentifier& identifier, Common::Input::BodyColorStatus value);
void SetMotion(const PadIdentifier& identifier, int motion, const BasicMotion& value);
void SetCamera(const PadIdentifier& identifier, const Common::Input::CameraStatus& value);
void SetNfc(const PadIdentifier& identifier, const Common::Input::NfcStatus& value);
@@ -227,6 +267,7 @@ private:
std::unordered_map<int, float> axes;
std::unordered_map<int, BasicMotion> motions;
Common::Input::BatteryLevel battery{};
+ Common::Input::BodyColorStatus color{};
Common::Input::CameraStatus camera{};
Common::Input::NfcStatus nfc{};
};
@@ -235,6 +276,8 @@ private:
void TriggerOnHatButtonChange(const PadIdentifier& identifier, int button, u8 value);
void TriggerOnAxisChange(const PadIdentifier& identifier, int axis, f32 value);
void TriggerOnBatteryChange(const PadIdentifier& identifier, Common::Input::BatteryLevel value);
+ void TriggerOnColorChange(const PadIdentifier& identifier,
+ Common::Input::BodyColorStatus value);
void TriggerOnMotionChange(const PadIdentifier& identifier, int motion,
const BasicMotion& value);
void TriggerOnCameraChange(const PadIdentifier& identifier,
diff --git a/src/input_common/input_mapping.cpp b/src/input_common/input_mapping.cpp
index d6e49d2c5..8c2ee4eb3 100644
--- a/src/input_common/input_mapping.cpp
+++ b/src/input_common/input_mapping.cpp
@@ -82,6 +82,9 @@ void MappingFactory::RegisterButton(const MappingData& data) {
new_input.Set("axis", data.index);
new_input.Set("threshold", 0.5f);
break;
+ case EngineInputType::Motion:
+ new_input.Set("motion", data.index);
+ break;
default:
return;
}
@@ -142,14 +145,11 @@ void MappingFactory::RegisterMotion(const MappingData& data) {
new_input.Set("port", static_cast<int>(data.pad.port));
new_input.Set("pad", static_cast<int>(data.pad.pad));
- // If engine is mouse map the mouse position as 3 axis motion
+ // If engine is mouse map it automatically to mouse motion
if (data.engine == "mouse") {
- new_input.Set("axis_x", 1);
- new_input.Set("invert_x", "-");
- new_input.Set("axis_y", 0);
- new_input.Set("axis_z", 4);
- new_input.Set("range", 1.0f);
- new_input.Set("deadzone", 0.0f);
+ new_input.Set("motion", 0);
+ new_input.Set("pad", 1);
+ new_input.Set("threshold", 0.001f);
input_queue.Push(new_input);
return;
}
@@ -194,6 +194,10 @@ bool MappingFactory::IsDriverValid(const MappingData& data) const {
if (data.engine == "keyboard" && data.pad.port != 0) {
return false;
}
+ // Only port 0 can be mapped on the mouse
+ if (data.engine == "mouse" && data.pad.port != 0) {
+ return false;
+ }
// To prevent mapping with two devices we disable any UDP except motion
if (!Settings::values.enable_udp_controller && data.engine == "cemuhookudp" &&
data.type != EngineInputType::Motion) {
diff --git a/src/input_common/input_poller.cpp b/src/input_common/input_poller.cpp
index fb8be42e2..870e76ab0 100644
--- a/src/input_common/input_poller.cpp
+++ b/src/input_common/input_poller.cpp
@@ -16,10 +16,10 @@ public:
class InputFromButton final : public Common::Input::InputDevice {
public:
- explicit InputFromButton(PadIdentifier identifier_, int button_, bool toggle_, bool inverted_,
- InputEngine* input_engine_)
- : identifier(identifier_), button(button_), toggle(toggle_), inverted(inverted_),
- input_engine(input_engine_) {
+ explicit InputFromButton(PadIdentifier identifier_, int button_, bool turbo_, bool toggle_,
+ bool inverted_, InputEngine* input_engine_)
+ : identifier(identifier_), button(button_), turbo(turbo_), toggle(toggle_),
+ inverted(inverted_), input_engine(input_engine_) {
UpdateCallback engine_callback{[this]() { OnChange(); }};
const InputIdentifier input_identifier{
.identifier = identifier,
@@ -40,6 +40,7 @@ public:
.value = input_engine->GetButton(identifier, button),
.inverted = inverted,
.toggle = toggle,
+ .turbo = turbo,
};
}
@@ -68,6 +69,7 @@ public:
private:
const PadIdentifier identifier;
const int button;
+ const bool turbo;
const bool toggle;
const bool inverted;
int callback_key;
@@ -77,10 +79,10 @@ private:
class InputFromHatButton final : public Common::Input::InputDevice {
public:
- explicit InputFromHatButton(PadIdentifier identifier_, int button_, u8 direction_, bool toggle_,
- bool inverted_, InputEngine* input_engine_)
- : identifier(identifier_), button(button_), direction(direction_), toggle(toggle_),
- inverted(inverted_), input_engine(input_engine_) {
+ explicit InputFromHatButton(PadIdentifier identifier_, int button_, u8 direction_, bool turbo_,
+ bool toggle_, bool inverted_, InputEngine* input_engine_)
+ : identifier(identifier_), button(button_), direction(direction_), turbo(turbo_),
+ toggle(toggle_), inverted(inverted_), input_engine(input_engine_) {
UpdateCallback engine_callback{[this]() { OnChange(); }};
const InputIdentifier input_identifier{
.identifier = identifier,
@@ -101,6 +103,7 @@ public:
.value = input_engine->GetHatButton(identifier, button, direction),
.inverted = inverted,
.toggle = toggle,
+ .turbo = turbo,
};
}
@@ -130,6 +133,7 @@ private:
const PadIdentifier identifier;
const int button;
const u8 direction;
+ const bool turbo;
const bool toggle;
const bool inverted;
int callback_key;
@@ -498,6 +502,58 @@ private:
InputEngine* input_engine;
};
+class InputFromColor final : public Common::Input::InputDevice {
+public:
+ explicit InputFromColor(PadIdentifier identifier_, InputEngine* input_engine_)
+ : identifier(identifier_), input_engine(input_engine_) {
+ UpdateCallback engine_callback{[this]() { OnChange(); }};
+ const InputIdentifier input_identifier{
+ .identifier = identifier,
+ .type = EngineInputType::Color,
+ .index = 0,
+ .callback = engine_callback,
+ };
+ last_color_value = {};
+ callback_key = input_engine->SetCallback(input_identifier);
+ }
+
+ ~InputFromColor() override {
+ input_engine->DeleteCallback(callback_key);
+ }
+
+ Common::Input::BodyColorStatus GetStatus() const {
+ return input_engine->GetColor(identifier);
+ }
+
+ void ForceUpdate() override {
+ const Common::Input::CallbackStatus status{
+ .type = Common::Input::InputType::Color,
+ .color_status = GetStatus(),
+ };
+
+ last_color_value = status.color_status;
+ TriggerOnChange(status);
+ }
+
+ void OnChange() {
+ const Common::Input::CallbackStatus status{
+ .type = Common::Input::InputType::Color,
+ .color_status = GetStatus(),
+ };
+
+ if (status.color_status.body != last_color_value.body) {
+ last_color_value = status.color_status;
+ TriggerOnChange(status);
+ }
+ }
+
+private:
+ const PadIdentifier identifier;
+ int callback_key;
+ Common::Input::BodyColorStatus last_color_value;
+ InputEngine* input_engine;
+};
+
class InputFromMotion final : public Common::Input::InputDevice {
public:
explicit InputFromMotion(PadIdentifier identifier_, int motion_sensor_, float gyro_threshold_,
@@ -611,7 +667,7 @@ public:
.raw_value = input_engine->GetAxis(identifier, axis_z),
.properties = properties_z,
};
- status.delta_timestamp = 5000;
+ status.delta_timestamp = 1000;
status.force_update = true;
return status;
}
@@ -736,8 +792,7 @@ public:
const Common::Input::CallbackStatus status{
.type = Common::Input::InputType::Nfc,
- .nfc_status = nfc_status.state,
- .raw_data = nfc_status.data,
+ .nfc_status = nfc_status,
};
TriggerOnChange(status);
@@ -754,11 +809,11 @@ public:
explicit OutputFromIdentifier(PadIdentifier identifier_, InputEngine* input_engine_)
: identifier(identifier_), input_engine(input_engine_) {}
- void SetLED(const Common::Input::LedStatus& led_status) override {
- input_engine->SetLeds(identifier, led_status);
+ Common::Input::DriverResult SetLED(const Common::Input::LedStatus& led_status) override {
+ return input_engine->SetLeds(identifier, led_status);
}
- Common::Input::VibrationError SetVibration(
+ Common::Input::DriverResult SetVibration(
const Common::Input::VibrationStatus& vibration_status) override {
return input_engine->SetVibration(identifier, vibration_status);
}
@@ -767,11 +822,12 @@ public:
return input_engine->IsVibrationEnabled(identifier);
}
- Common::Input::PollingError SetPollingMode(Common::Input::PollingMode polling_mode) override {
+ Common::Input::DriverResult SetPollingMode(Common::Input::PollingMode polling_mode) override {
return input_engine->SetPollingMode(identifier, polling_mode);
}
- Common::Input::CameraError SetCameraFormat(Common::Input::CameraFormat camera_format) override {
+ Common::Input::DriverResult SetCameraFormat(
+ Common::Input::CameraFormat camera_format) override {
return input_engine->SetCameraFormat(identifier, camera_format);
}
@@ -779,10 +835,31 @@ public:
return input_engine->SupportsNfc(identifier);
}
+ Common::Input::NfcState StartNfcPolling() {
+ return input_engine->StartNfcPolling(identifier);
+ }
+
+ Common::Input::NfcState StopNfcPolling() {
+ return input_engine->StopNfcPolling(identifier);
+ }
+
+ Common::Input::NfcState ReadAmiiboData(std::vector<u8>& out_data) {
+ return input_engine->ReadAmiiboData(identifier, out_data);
+ }
+
Common::Input::NfcState WriteNfcData(const std::vector<u8>& data) override {
return input_engine->WriteNfcData(identifier, data);
}
+ Common::Input::NfcState ReadMifareData(const Common::Input::MifareRequest& request,
+ Common::Input::MifareRequest& out_data) {
+ return input_engine->ReadMifareData(identifier, request, out_data);
+ }
+
+ Common::Input::NfcState WriteMifareData(const Common::Input::MifareRequest& request) {
+ return input_engine->WriteMifareData(identifier, request);
+ }
+
private:
const PadIdentifier identifier;
InputEngine* input_engine;
@@ -800,14 +877,15 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateButtonDevice(
const auto keyboard_key = params.Get("code", 0);
const auto toggle = params.Get("toggle", false) != 0;
const auto inverted = params.Get("inverted", false) != 0;
+ const auto turbo = params.Get("turbo", false) != 0;
input_engine->PreSetController(identifier);
input_engine->PreSetButton(identifier, button_id);
input_engine->PreSetButton(identifier, keyboard_key);
if (keyboard_key != 0) {
- return std::make_unique<InputFromButton>(identifier, keyboard_key, toggle, inverted,
+ return std::make_unique<InputFromButton>(identifier, keyboard_key, turbo, toggle, inverted,
input_engine.get());
}
- return std::make_unique<InputFromButton>(identifier, button_id, toggle, inverted,
+ return std::make_unique<InputFromButton>(identifier, button_id, turbo, toggle, inverted,
input_engine.get());
}
@@ -823,11 +901,12 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateHatButtonDevice(
const auto direction = input_engine->GetHatButtonId(params.Get("direction", ""));
const auto toggle = params.Get("toggle", false) != 0;
const auto inverted = params.Get("inverted", false) != 0;
+ const auto turbo = params.Get("turbo", false) != 0;
input_engine->PreSetController(identifier);
input_engine->PreSetHatButton(identifier, button_id);
- return std::make_unique<InputFromHatButton>(identifier, button_id, direction, toggle, inverted,
- input_engine.get());
+ return std::make_unique<InputFromHatButton>(identifier, button_id, direction, turbo, toggle,
+ inverted, input_engine.get());
}
std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateStickDevice(
@@ -880,6 +959,7 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateAnalogDevice(
.threshold = std::clamp(params.Get("threshold", 0.5f), 0.0f, 1.0f),
.offset = std::clamp(params.Get("offset", 0.0f), -1.0f, 1.0f),
.inverted = params.Get("invert", "+") == "-",
+ .inverted_button = params.Get("inverted", false) != 0,
.toggle = params.Get("toggle", false) != 0,
};
input_engine->PreSetController(identifier);
@@ -966,6 +1046,18 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateBatteryDevice(
return std::make_unique<InputFromBattery>(identifier, input_engine.get());
}
+std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateColorDevice(
+ const Common::ParamPackage& params) {
+ const PadIdentifier identifier = {
+ .guid = Common::UUID{params.Get("guid", "")},
+ .port = static_cast<std::size_t>(params.Get("port", 0)),
+ .pad = static_cast<std::size_t>(params.Get("pad", 0)),
+ };
+
+ input_engine->PreSetController(identifier);
+ return std::make_unique<InputFromColor>(identifier, input_engine.get());
+}
+
std::unique_ptr<Common::Input::InputDevice> InputFactory::CreateMotionDevice(
Common::ParamPackage params) {
const PadIdentifier identifier = {
@@ -1053,6 +1145,9 @@ std::unique_ptr<Common::Input::InputDevice> InputFactory::Create(
if (params.Has("battery")) {
return CreateBatteryDevice(params);
}
+ if (params.Has("color")) {
+ return CreateColorDevice(params);
+ }
if (params.Has("camera")) {
return CreateCameraDevice(params);
}
diff --git a/src/input_common/input_poller.h b/src/input_common/input_poller.h
index d7db13ce4..e097e254c 100644
--- a/src/input_common/input_poller.h
+++ b/src/input_common/input_poller.h
@@ -191,6 +191,17 @@ private:
const Common::ParamPackage& params);
/**
+ * Creates a color device from the parameters given.
+ * @param params contains parameters for creating the device:
+ * - "guid": text string for identifying controllers
+ * - "port": port of the connected device
+ * - "pad": slot of the connected controller
+ * @returns a unique input device with the parameters specified
+ */
+ std::unique_ptr<Common::Input::InputDevice> CreateColorDevice(
+ const Common::ParamPackage& params);
+
+ /**
* Creates a motion device from the parameters given.
* @param params contains parameters for creating the device:
* - "axis_x": the controller horizontal axis id to bind with the input
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp
index e0b2131ed..c77fc04ee 100644
--- a/src/input_common/main.cpp
+++ b/src/input_common/main.cpp
@@ -23,6 +23,7 @@
#include "input_common/drivers/gc_adapter.h"
#endif
#ifdef HAVE_SDL2
+#include "input_common/drivers/joycon.h"
#include "input_common/drivers/sdl_driver.h"
#endif
@@ -81,6 +82,7 @@ struct InputSubsystem::Impl {
RegisterEngine("virtual_gamepad", virtual_gamepad);
#ifdef HAVE_SDL2
RegisterEngine("sdl", sdl);
+ RegisterEngine("joycon", joycon);
#endif
Common::Input::RegisterInputFactory("touch_from_button",
@@ -111,6 +113,7 @@ struct InputSubsystem::Impl {
UnregisterEngine(virtual_gamepad);
#ifdef HAVE_SDL2
UnregisterEngine(sdl);
+ UnregisterEngine(joycon);
#endif
Common::Input::UnregisterInputFactory("touch_from_button");
@@ -133,6 +136,8 @@ struct InputSubsystem::Impl {
auto udp_devices = udp_client->GetInputDevices();
devices.insert(devices.end(), udp_devices.begin(), udp_devices.end());
#ifdef HAVE_SDL2
+ auto joycon_devices = joycon->GetInputDevices();
+ devices.insert(devices.end(), joycon_devices.begin(), joycon_devices.end());
auto sdl_devices = sdl->GetInputDevices();
devices.insert(devices.end(), sdl_devices.begin(), sdl_devices.end());
#endif
@@ -164,6 +169,9 @@ struct InputSubsystem::Impl {
if (engine == sdl->GetEngineName()) {
return sdl;
}
+ if (engine == joycon->GetEngineName()) {
+ return joycon;
+ }
#endif
return nullptr;
}
@@ -247,6 +255,9 @@ struct InputSubsystem::Impl {
if (engine == sdl->GetEngineName()) {
return true;
}
+ if (engine == joycon->GetEngineName()) {
+ return true;
+ }
#endif
return false;
}
@@ -260,6 +271,7 @@ struct InputSubsystem::Impl {
udp_client->BeginConfiguration();
#ifdef HAVE_SDL2
sdl->BeginConfiguration();
+ joycon->BeginConfiguration();
#endif
}
@@ -272,6 +284,7 @@ struct InputSubsystem::Impl {
udp_client->EndConfiguration();
#ifdef HAVE_SDL2
sdl->EndConfiguration();
+ joycon->EndConfiguration();
#endif
}
@@ -304,6 +317,7 @@ struct InputSubsystem::Impl {
#ifdef HAVE_SDL2
std::shared_ptr<SDLDriver> sdl;
+ std::shared_ptr<Joycons> joycon;
#endif
};
diff --git a/src/input_common/main.h b/src/input_common/main.h
index 1207d786c..d64a6cb4c 100644
--- a/src/input_common/main.h
+++ b/src/input_common/main.h
@@ -132,7 +132,7 @@ public:
/// Retrieves the motion mappings for the given device.
[[nodiscard]] MotionMapping GetMotionMappingForDevice(const Common::ParamPackage& device) const;
- /// Returns an enum contaning the name to be displayed from the input engine.
+ /// Returns an enum containing the name to be displayed from the input engine.
[[nodiscard]] Common::Input::ButtonNames GetButtonName(
const Common::ParamPackage& params) const;
diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt
index 1ab52da59..8e306219f 100644
--- a/src/network/CMakeLists.txt
+++ b/src/network/CMakeLists.txt
@@ -19,7 +19,7 @@ add_library(network STATIC
create_target_directory_groups(network)
-target_link_libraries(network PRIVATE common enet::enet Boost::boost)
+target_link_libraries(network PRIVATE common enet::enet Boost::headers)
if (ENABLE_WEB_SERVICE)
target_compile_definitions(network PRIVATE -DENABLE_WEB_SERVICE)
target_link_libraries(network PRIVATE web_service)
diff --git a/src/network/packet.h b/src/network/packet.h
index e69217488..9aa2a2c9c 100644
--- a/src/network/packet.h
+++ b/src/network/packet.h
@@ -9,7 +9,7 @@
namespace Network {
-/// A class that serializes data for network transfer. It also handles endianess
+/// A class that serializes data for network transfer. It also handles endianness
class Packet {
public:
Packet() = default;
diff --git a/src/network/room.cpp b/src/network/room.cpp
index dc5dbce7f..e456ea09c 100644
--- a/src/network/room.cpp
+++ b/src/network/room.cpp
@@ -27,7 +27,7 @@ public:
std::atomic<State> state{State::Closed}; ///< Current state of the room.
RoomInformation room_information; ///< Information about this room.
- std::string verify_uid; ///< A GUID which may be used for verfication.
+ std::string verify_uid; ///< A GUID which may be used for verification.
mutable std::mutex verify_uid_mutex; ///< Mutex for verify_uid
std::string password; ///< The password required to connect to this room.
diff --git a/src/network/room_member.h b/src/network/room_member.h
index 0d6417294..33ac18e72 100644
--- a/src/network/room_member.h
+++ b/src/network/room_member.h
@@ -71,7 +71,7 @@ public:
Idle, ///< Default state (i.e. not connected)
Joining, ///< The client is attempting to join a room.
Joined, ///< The client is connected to the room and is ready to send/receive packets.
- Moderator, ///< The client is connnected to the room and is granted mod permissions.
+ Moderator, ///< The client is connected to the room and is granted mod permissions.
};
enum class Error : u8 {
@@ -201,7 +201,7 @@ public:
/**
* Binds a function to an event that will be triggered every time the State of the member
- * changed. The function wil be called every time the event is triggered. The callback function
+ * changed. The function will be called every time the event is triggered. The callback function
* must not bind or unbind a function. Doing so will cause a deadlock
* @param callback The function to call
* @return A handle used for removing the function from the registered list
@@ -210,8 +210,8 @@ public:
/**
* Binds a function to an event that will be triggered every time an error happened. The
- * function wil be called every time the event is triggered. The callback function must not bind
- * or unbind a function. Doing so will cause a deadlock
+ * function will be called every time the event is triggered. The callback function must not
+ * bind or unbind a function. Doing so will cause a deadlock
* @param callback The function to call
* @return A handle used for removing the function from the registered list
*/
@@ -219,7 +219,7 @@ public:
/**
* Binds a function to an event that will be triggered every time a ProxyPacket is received.
- * The function wil be called everytime the event is triggered.
+ * The function will be called every time the event is triggered.
* The callback function must not bind or unbind a function. Doing so will cause a deadlock
* @param callback The function to call
* @return A handle used for removing the function from the registered list
@@ -229,7 +229,7 @@ public:
/**
* Binds a function to an event that will be triggered every time an LDNPacket is received.
- * The function wil be called everytime the event is triggered.
+ * The function will be called every time the event is triggered.
* The callback function must not bind or unbind a function. Doing so will cause a deadlock
* @param callback The function to call
* @return A handle used for removing the function from the registered list
@@ -239,7 +239,7 @@ public:
/**
* Binds a function to an event that will be triggered every time the RoomInformation changes.
- * The function wil be called every time the event is triggered.
+ * The function will be called every time the event is triggered.
* The callback function must not bind or unbind a function. Doing so will cause a deadlock
* @param callback The function to call
* @return A handle used for removing the function from the registered list
@@ -249,7 +249,7 @@ public:
/**
* Binds a function to an event that will be triggered every time a ChatMessage is received.
- * The function wil be called every time the event is triggered.
+ * The function will be called every time the event is triggered.
* The callback function must not bind or unbind a function. Doing so will cause a deadlock
* @param callback The function to call
* @return A handle used for removing the function from the registered list
diff --git a/src/shader_recompiler/CMakeLists.txt b/src/shader_recompiler/CMakeLists.txt
index 525b2363c..07e75f9d8 100644
--- a/src/shader_recompiler/CMakeLists.txt
+++ b/src/shader_recompiler/CMakeLists.txt
@@ -216,6 +216,7 @@ add_library(shader_recompiler STATIC
frontend/maxwell/translate_program.h
host_translate_info.h
ir_opt/collect_shader_info_pass.cpp
+ ir_opt/conditional_barrier_pass.cpp
ir_opt/constant_propagation_pass.cpp
ir_opt/dead_code_elimination_pass.cpp
ir_opt/dual_vertex_pass.cpp
@@ -223,6 +224,7 @@ add_library(shader_recompiler STATIC
ir_opt/identity_removal_pass.cpp
ir_opt/layer_pass.cpp
ir_opt/lower_fp16_to_fp32.cpp
+ ir_opt/lower_fp64_to_fp32.cpp
ir_opt/lower_int64_to_int32.cpp
ir_opt/passes.h
ir_opt/position_pass.cpp
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index 0cb1e193e..b795c0179 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -279,6 +279,8 @@ void SetupOptions(const IR::Program& program, const Profile& profile,
header += "OPTION NV_internal;"
"OPTION NV_shader_storage_buffer;"
"OPTION NV_gpu_program_fp64;";
+ // TODO: Enable only when MS is used
+ header += "OPTION NV_texture_multisample;";
if (info.uses_int64_bit_atomics) {
header += "OPTION NV_shader_atomic_int64;";
}
@@ -459,7 +461,7 @@ std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info, I
header += fmt::format("R{},", index);
}
if (program.local_memory_size > 0) {
- header += fmt::format("lmem[{}],", program.local_memory_size);
+ header += fmt::format("lmem[{}],", Common::DivCeil(program.local_memory_size, 4U));
}
if (program.info.uses_fswzadd) {
header += "FSWZA[4],FSWZB[4],";
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_bitwise_conversion.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_bitwise_conversion.cpp
index 5bfdecc09..2fc2a0ac6 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_bitwise_conversion.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_bitwise_conversion.cpp
@@ -43,10 +43,6 @@ void EmitBitCastU64F64(EmitContext&, IR::Inst& inst, const IR::Value& value) {
Alias(inst, value);
}
-void EmitBitCastS32F32(EmitContext&, IR::Inst& inst, const IR::Value& value) {
- Alias(inst, value);
-}
-
void EmitBitCastF16U16(EmitContext&, IR::Inst& inst, const IR::Value& value) {
Alias(inst, value);
}
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
index e67e80fac..85ee27333 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
@@ -59,7 +59,14 @@ std::string Image(EmitContext& ctx, IR::TextureInstInfo info,
}
}
-std::string_view TextureType(IR::TextureInstInfo info) {
+bool IsTextureMsaa(EmitContext& ctx, const IR::TextureInstInfo& info) {
+ if (info.type == TextureType::Buffer) {
+ return false;
+ }
+ return ctx.info.texture_descriptors.at(info.descriptor_index).is_multisample;
+}
+
+std::string_view TextureType(IR::TextureInstInfo info, bool is_ms = false) {
if (info.is_depth) {
switch (info.type) {
case TextureType::Color1D:
@@ -88,9 +95,9 @@ std::string_view TextureType(IR::TextureInstInfo info) {
return "ARRAY1D";
case TextureType::Color2D:
case TextureType::Color2DRect:
- return "2D";
+ return is_ms ? "2DMS" : "2D";
case TextureType::ColorArray2D:
- return "ARRAY2D";
+ return is_ms ? "ARRAY2DMS" : "ARRAY2D";
case TextureType::Color3D:
return "3D";
case TextureType::ColorCube:
@@ -510,15 +517,16 @@ void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
const IR::Value& coord, const IR::Value& offset, ScalarS32 lod, ScalarS32 ms) {
const auto info{inst.Flags<IR::TextureInstInfo>()};
const auto sparse_inst{PrepareSparse(inst)};
+ const bool is_multisample{ms.type != Type::Void};
const std::string_view sparse_mod{sparse_inst ? ".SPARSE" : ""};
- const std::string_view type{TextureType(info)};
+ const std::string_view type{TextureType(info, is_multisample)};
const std::string texture{Texture(ctx, info, index)};
const std::string offset_vec{Offset(ctx, offset)};
const auto [coord_vec, coord_alloc]{Coord(ctx, coord)};
const Register ret{ctx.reg_alloc.Define(inst)};
if (info.type == TextureType::Buffer) {
ctx.Add("TXF.F{} {},{},{},{}{};", sparse_mod, ret, coord_vec, texture, type, offset_vec);
- } else if (ms.type != Type::Void) {
+ } else if (is_multisample) {
ctx.Add("MOV.S {}.w,{};"
"TXFMS.F{} {},{},{},{}{};",
coord_vec, ms, sparse_mod, ret, coord_vec, texture, type, offset_vec);
@@ -531,10 +539,11 @@ void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
}
void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
- ScalarS32 lod) {
+ ScalarS32 lod, [[maybe_unused]] const IR::Value& skip_mips) {
const auto info{inst.Flags<IR::TextureInstInfo>()};
const std::string texture{Texture(ctx, info, index)};
- const std::string_view type{TextureType(info)};
+ const bool is_msaa{IsTextureMsaa(ctx, info)};
+ const std::string_view type{TextureType(info, is_msaa)};
ctx.Add("TXQ {},{},{},{};", inst, lod, texture, type);
}
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
index eaaf9ba39..1a1ea61d5 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
@@ -197,7 +197,6 @@ void EmitSelectF64(EmitContext& ctx, ScalarS32 cond, Register true_value, Regist
void EmitBitCastU16F16(EmitContext& ctx, IR::Inst& inst, const IR::Value& value);
void EmitBitCastU32F32(EmitContext& ctx, IR::Inst& inst, const IR::Value& value);
void EmitBitCastU64F64(EmitContext& ctx, IR::Inst& inst, const IR::Value& value);
-void EmitBitCastS32F32(EmitContext& ctx, IR::Inst& inst, const IR::Value& value);
void EmitBitCastF16U16(EmitContext& ctx, IR::Inst& inst, const IR::Value& value);
void EmitBitCastF32U32(EmitContext& ctx, IR::Inst& inst, const IR::Value& value);
void EmitBitCastF64U64(EmitContext& ctx, IR::Inst& inst, const IR::Value& value);
@@ -582,7 +581,7 @@ void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& inde
void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
const IR::Value& coord, const IR::Value& offset, ScalarS32 lod, ScalarS32 ms);
void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
- ScalarS32 lod);
+ ScalarS32 lod, const IR::Value& skip_mips);
void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord);
void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
const IR::Value& coord, const IR::Value& derivatives,
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp
index 911181c43..376a05827 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp
@@ -398,162 +398,162 @@ void EmitStorageAtomicMaxF32x2(EmitContext& ctx, IR::Inst& inst, const IR::Value
}
void EmitGlobalAtomicIAdd32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicSMin32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicUMin32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicSMax32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicUMax32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicInc32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicDec32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicAnd32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicOr32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicXor32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicExchange32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicIAdd64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicSMin64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicUMin64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicSMax64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicUMax64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicInc64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicDec64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicAnd64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicOr64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicXor64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicExchange64(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicIAdd32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicSMin32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicUMin32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicSMax32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicUMax32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicInc32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicDec32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicAnd32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicOr32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicXor32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicExchange32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicAddF32(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicAddF16x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicAddF32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicMinF16x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicMinF32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicMaxF16x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
void EmitGlobalAtomicMaxF32x2(EmitContext&) {
- throw NotImplementedException("GLSL Instrucion");
+ throw NotImplementedException("GLSL Instruction");
}
} // namespace Shader::Backend::GLSL
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp
index 8e5e6cf1f..1be4a0f59 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_bitwise_conversion.cpp
@@ -48,10 +48,6 @@ void EmitBitCastU64F64(EmitContext& ctx, IR::Inst& inst, std::string_view value)
ctx.AddU64("{}=doubleBitsToUint64({});", inst, value);
}
-void EmitBitCastS32F32(EmitContext& ctx, IR::Inst& inst, std::string_view value) {
- ctx.AddF32("{}=ftoi({});", inst, value);
-}
-
void EmitBitCastF16U16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst) {
NotImplemented();
}
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp
index cecdbb9d6..418505475 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp
@@ -25,6 +25,13 @@ std::string Image(EmitContext& ctx, const IR::TextureInstInfo& info, const IR::V
return fmt::format("img{}{}", def.binding, index_offset);
}
+bool IsTextureMsaa(EmitContext& ctx, const IR::TextureInstInfo& info) {
+ if (info.type == TextureType::Buffer) {
+ return false;
+ }
+ return ctx.info.texture_descriptors.at(info.descriptor_index).is_multisample;
+}
+
std::string CastToIntVec(std::string_view value, const IR::TextureInstInfo& info) {
switch (info.type) {
case TextureType::Color1D:
@@ -136,6 +143,21 @@ IR::Inst* PrepareSparse(IR::Inst& inst) {
}
return sparse_inst;
}
+
+std::string ImageGatherSubpixelOffset(const IR::TextureInstInfo& info, std::string_view texture,
+ std::string_view coords) {
+ switch (info.type) {
+ case TextureType::Color2D:
+ case TextureType::Color2DRect:
+ return fmt::format("{}+vec2(0.001953125)/vec2(textureSize({}, 0))", coords, texture);
+ case TextureType::ColorArray2D:
+ case TextureType::ColorCube:
+ return fmt::format("vec3({0}.xy+vec2(0.001953125)/vec2(textureSize({1}, 0)),{0}.z)", coords,
+ texture);
+ default:
+ return std::string{coords};
+ }
+}
} // Anonymous namespace
void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
@@ -333,6 +355,13 @@ void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
LOG_WARNING(Shader_GLSL, "Device does not support sparse texture queries. STUBBING");
ctx.AddU1("{}=true;", *sparse_inst);
}
+ std::string coords_with_subpixel_offset;
+ if (ctx.profile.need_gather_subpixel_offset) {
+ // Apply a subpixel offset of 1/512 the texel size of the texture to ensure same rounding on
+ // AMD hardware as on Maxwell or other Nvidia architectures.
+ coords_with_subpixel_offset = ImageGatherSubpixelOffset(info, texture, coords);
+ coords = coords_with_subpixel_offset;
+ }
if (!sparse_inst || !supports_sparse) {
if (offset.IsEmpty()) {
ctx.Add("{}=textureGather({},{},int({}));", texel, texture, coords,
@@ -380,6 +409,13 @@ void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& inde
LOG_WARNING(Shader_GLSL, "Device does not support sparse texture queries. STUBBING");
ctx.AddU1("{}=true;", *sparse_inst);
}
+ std::string coords_with_subpixel_offset;
+ if (ctx.profile.need_gather_subpixel_offset) {
+ // Apply a subpixel offset of 1/512 the texel size of the texture to ensure same rounding on
+ // AMD hardware as on Maxwell or other Nvidia architectures.
+ coords_with_subpixel_offset = ImageGatherSubpixelOffset(info, texture, coords);
+ coords = coords_with_subpixel_offset;
+ }
if (!sparse_inst || !supports_sparse) {
if (offset.IsEmpty()) {
ctx.Add("{}=textureGather({},{},{});", texel, texture, coords, dref);
@@ -414,7 +450,7 @@ void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& inde
void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
std::string_view coords, std::string_view offset, std::string_view lod,
- [[maybe_unused]] std::string_view ms) {
+ std::string_view ms) {
const auto info{inst.Flags<IR::TextureInstInfo>()};
if (info.has_bias) {
throw NotImplementedException("EmitImageFetch Bias texture samples");
@@ -431,19 +467,24 @@ void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
ctx.AddU1("{}=true;", *sparse_inst);
}
if (!sparse_inst || !supports_sparse) {
- if (!offset.empty()) {
- ctx.Add("{}=texelFetchOffset({},{},int({}),{});", texel, texture,
- CoordsCastToInt(coords, info), lod, CoordsCastToInt(offset, info));
+ const auto int_coords{CoordsCastToInt(coords, info)};
+ if (!ms.empty()) {
+ ctx.Add("{}=texelFetch({},{},int({}));", texel, texture, int_coords, ms);
+ } else if (!offset.empty()) {
+ ctx.Add("{}=texelFetchOffset({},{},int({}),{});", texel, texture, int_coords, lod,
+ CoordsCastToInt(offset, info));
} else {
if (info.type == TextureType::Buffer) {
ctx.Add("{}=texelFetch({},int({}));", texel, texture, coords);
} else {
- ctx.Add("{}=texelFetch({},{},int({}));", texel, texture,
- CoordsCastToInt(coords, info), lod);
+ ctx.Add("{}=texelFetch({},{},int({}));", texel, texture, int_coords, lod);
}
}
return;
}
+ if (!ms.empty()) {
+ throw NotImplementedException("EmitImageFetch Sparse MSAA samples");
+ }
if (!offset.empty()) {
ctx.AddU1("{}=sparseTexelsResidentARB(sparseTexelFetchOffsetARB({},{},int({}),{},{}));",
*sparse_inst, texture, CastToIntVec(coords, info), lod,
@@ -455,29 +496,36 @@ void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
}
void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
- std::string_view lod) {
+ std::string_view lod, const IR::Value& skip_mips_val) {
const auto info{inst.Flags<IR::TextureInstInfo>()};
const auto texture{Texture(ctx, info, index)};
+ const bool is_msaa{IsTextureMsaa(ctx, info)};
+ const bool skip_mips{skip_mips_val.U1()};
+ const auto mips{skip_mips ? "0u" : fmt::format("uint(textureQueryLevels({}))", texture)};
+ if (is_msaa && !skip_mips) {
+ throw NotImplementedException("EmitImageQueryDimensions MSAA QueryLevels");
+ }
+ if (info.type == TextureType::Buffer && !skip_mips) {
+ throw NotImplementedException("EmitImageQueryDimensions TextureType::Buffer QueryLevels");
+ }
+ const bool uses_lod{!is_msaa && info.type != TextureType::Buffer};
+ const auto lod_str{uses_lod ? fmt::format(",int({})", lod) : ""};
switch (info.type) {
case TextureType::Color1D:
- return ctx.AddU32x4(
- "{}=uvec4(uint(textureSize({},int({}))),0u,0u,uint(textureQueryLevels({})));", inst,
- texture, lod, texture);
+ return ctx.AddU32x4("{}=uvec4(uint(textureSize({}{})),0u,0u,{});", inst, texture, lod_str,
+ mips);
case TextureType::ColorArray1D:
case TextureType::Color2D:
case TextureType::ColorCube:
case TextureType::Color2DRect:
- return ctx.AddU32x4(
- "{}=uvec4(uvec2(textureSize({},int({}))),0u,uint(textureQueryLevels({})));", inst,
- texture, lod, texture);
+ return ctx.AddU32x4("{}=uvec4(uvec2(textureSize({}{})),0u,{});", inst, texture, lod_str,
+ mips);
case TextureType::ColorArray2D:
case TextureType::Color3D:
case TextureType::ColorArrayCube:
- return ctx.AddU32x4(
- "{}=uvec4(uvec3(textureSize({},int({}))),uint(textureQueryLevels({})));", inst, texture,
- lod, texture);
+ return ctx.AddU32x4("{}=uvec4(uvec3(textureSize({}{})),{});", inst, texture, lod_str, mips);
case TextureType::Buffer:
- throw NotImplementedException("EmitImageQueryDimensions Texture buffers");
+ return ctx.AddU32x4("{}=uvec4(uint(textureSize({})),0u,0u,{});", inst, texture, mips);
}
throw LogicError("Unspecified image type {}", info.type.Value());
}
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h
index 4151c89de..8d0a65047 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_instructions.h
@@ -231,7 +231,6 @@ void EmitSelectF64(EmitContext& ctx, IR::Inst& inst, std::string_view cond,
void EmitBitCastU16F16(EmitContext& ctx, IR::Inst& inst);
void EmitBitCastU32F32(EmitContext& ctx, IR::Inst& inst, std::string_view value);
void EmitBitCastU64F64(EmitContext& ctx, IR::Inst& inst, std::string_view value);
-void EmitBitCastS32F32(EmitContext& ctx, IR::Inst& inst, std::string_view value);
void EmitBitCastF16U16(EmitContext& ctx, IR::Inst& inst);
void EmitBitCastF32U32(EmitContext& ctx, IR::Inst& inst, std::string_view value);
void EmitBitCastF64U64(EmitContext& ctx, IR::Inst& inst, std::string_view value);
@@ -655,7 +654,7 @@ void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
std::string_view coords, std::string_view offset, std::string_view lod,
std::string_view ms);
void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
- std::string_view lod);
+ std::string_view lod, const IR::Value& skip_mips);
void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
std::string_view coords);
void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
diff --git a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp
index 5d01ec0cd..9ff4028c2 100644
--- a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp
+++ b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp
@@ -61,24 +61,28 @@ std::string OutputDecorator(Stage stage, u32 size) {
}
}
-std::string_view SamplerType(TextureType type, bool is_depth) {
- if (is_depth) {
- switch (type) {
- case TextureType::Color1D:
- return "sampler1DShadow";
- case TextureType::ColorArray1D:
- return "sampler1DArrayShadow";
- case TextureType::Color2D:
- return "sampler2DShadow";
- case TextureType::ColorArray2D:
- return "sampler2DArrayShadow";
- case TextureType::ColorCube:
- return "samplerCubeShadow";
- case TextureType::ColorArrayCube:
- return "samplerCubeArrayShadow";
- default:
- throw NotImplementedException("Texture type: {}", type);
- }
+std::string_view DepthSamplerType(TextureType type) {
+ switch (type) {
+ case TextureType::Color1D:
+ return "sampler1DShadow";
+ case TextureType::ColorArray1D:
+ return "sampler1DArrayShadow";
+ case TextureType::Color2D:
+ return "sampler2DShadow";
+ case TextureType::ColorArray2D:
+ return "sampler2DArrayShadow";
+ case TextureType::ColorCube:
+ return "samplerCubeShadow";
+ case TextureType::ColorArrayCube:
+ return "samplerCubeArrayShadow";
+ default:
+ throw NotImplementedException("Texture type: {}", type);
+ }
+}
+
+std::string_view ColorSamplerType(TextureType type, bool is_multisample = false) {
+ if (is_multisample) {
+ ASSERT(type == TextureType::Color2D || type == TextureType::ColorArray2D);
}
switch (type) {
case TextureType::Color1D:
@@ -87,9 +91,9 @@ std::string_view SamplerType(TextureType type, bool is_depth) {
return "sampler1DArray";
case TextureType::Color2D:
case TextureType::Color2DRect:
- return "sampler2D";
+ return is_multisample ? "sampler2DMS" : "sampler2D";
case TextureType::ColorArray2D:
- return "sampler2DArray";
+ return is_multisample ? "sampler2DMSArray" : "sampler2DArray";
case TextureType::Color3D:
return "sampler3D";
case TextureType::ColorCube:
@@ -306,12 +310,6 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
if (runtime_info.force_early_z) {
header += "layout(early_fragment_tests)in;";
}
- if (info.uses_sample_id) {
- header += "in int gl_SampleID;";
- }
- if (info.stores_sample_mask) {
- header += "out int gl_SampleMask[];";
- }
break;
case Stage::Compute:
stage_name = "cs";
@@ -481,7 +479,7 @@ void EmitContext::DefineGenericOutput(size_t index, u32 invocations) {
const u32 remainder{4 - element};
const TransformFeedbackVarying* xfb_varying{};
const size_t xfb_varying_index{base_index + element};
- if (xfb_varying_index < runtime_info.xfb_varyings.size()) {
+ if (xfb_varying_index < runtime_info.xfb_count) {
xfb_varying = &runtime_info.xfb_varyings[xfb_varying_index];
xfb_varying = xfb_varying->components > 0 ? xfb_varying : nullptr;
}
@@ -677,7 +675,7 @@ void EmitContext::SetupTextures(Bindings& bindings) {
texture_buffers.reserve(info.texture_buffer_descriptors.size());
for (const auto& desc : info.texture_buffer_descriptors) {
texture_buffers.push_back({bindings.texture, desc.count});
- const auto sampler_type{SamplerType(TextureType::Buffer, false)};
+ const auto sampler_type{ColorSamplerType(TextureType::Buffer)};
const auto array_decorator{desc.count > 1 ? fmt::format("[{}]", desc.count) : ""};
header += fmt::format("layout(binding={}) uniform {} tex{}{};", bindings.texture,
sampler_type, bindings.texture, array_decorator);
@@ -686,7 +684,8 @@ void EmitContext::SetupTextures(Bindings& bindings) {
textures.reserve(info.texture_descriptors.size());
for (const auto& desc : info.texture_descriptors) {
textures.push_back({bindings.texture, desc.count});
- const auto sampler_type{SamplerType(desc.type, desc.is_depth)};
+ const auto sampler_type{desc.is_depth ? DepthSamplerType(desc.type)
+ : ColorSamplerType(desc.type, desc.is_multisample)};
const auto array_decorator{desc.count > 1 ? fmt::format("[{}]", desc.count) : ""};
header += fmt::format("layout(binding={}) uniform {} tex{}{};", bindings.texture,
sampler_type, bindings.texture, array_decorator);
diff --git a/src/shader_recompiler/backend/glsl/glsl_emit_context.h b/src/shader_recompiler/backend/glsl/glsl_emit_context.h
index dfd10ac28..7587f7bab 100644
--- a/src/shader_recompiler/backend/glsl/glsl_emit_context.h
+++ b/src/shader_recompiler/backend/glsl/glsl_emit_context.h
@@ -49,7 +49,7 @@ public:
void Add(const char* format_str, IR::Inst& inst, Args&&... args) {
const auto var_def{var_alloc.AddDefine(inst, type)};
if (var_def.empty()) {
- // skip assigment.
+ // skip assignment.
code += fmt::format(fmt::runtime(format_str + 3), std::forward<Args>(args)...);
} else {
code += fmt::format(fmt::runtime(format_str), var_def, std::forward<Args>(args)...);
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
index 0f86a8004..34592a01f 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp
@@ -387,7 +387,7 @@ void SetupSignedNanCapabilities(const Profile& profile, const IR::Program& progr
}
void SetupTransformFeedbackCapabilities(EmitContext& ctx, Id main_func) {
- if (ctx.runtime_info.xfb_varyings.empty()) {
+ if (ctx.runtime_info.xfb_count == 0) {
return;
}
ctx.AddCapability(spv::Capability::TransformFeedback);
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
index 4b3043b65..0ce73f289 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
@@ -69,6 +69,11 @@ Id StorageAtomicU32(EmitContext& ctx, const IR::Value& binding, const IR::Value&
Id StorageAtomicU64(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, Id value,
Id (Sirit::Module::*atomic_func)(Id, Id, Id, Id, Id),
Id (Sirit::Module::*non_atomic_func)(Id, Id, Id)) {
+ if (!ctx.profile.support_descriptor_aliasing) {
+ LOG_WARNING(Shader_SPIRV, "Descriptor aliasing not supported, this cannot be atomic.");
+ return ctx.ConstantNull(ctx.U64);
+ }
+
if (ctx.profile.support_int64_atomics) {
const Id pointer{StoragePointer(ctx, ctx.storage_types.U64, &StorageDefinitions::U64,
binding, offset, sizeof(u64))};
@@ -86,6 +91,11 @@ Id StorageAtomicU64(EmitContext& ctx, const IR::Value& binding, const IR::Value&
Id StorageAtomicU32x2(EmitContext& ctx, const IR::Value& binding, const IR::Value& offset, Id value,
Id (Sirit::Module::*non_atomic_func)(Id, Id, Id)) {
+ if (!ctx.profile.support_descriptor_aliasing) {
+ LOG_WARNING(Shader_SPIRV, "Descriptor aliasing not supported, this cannot be atomic.");
+ return ctx.ConstantNull(ctx.U32[2]);
+ }
+
LOG_WARNING(Shader_SPIRV, "Int64 atomics not supported, fallback to non-atomic");
const Id pointer{StoragePointer(ctx, ctx.storage_types.U32x2, &StorageDefinitions::U32x2,
binding, offset, sizeof(u32[2]))};
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp
index 50daacd95..c4ca28d11 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp
@@ -18,10 +18,6 @@ void EmitBitCastU64F64(EmitContext&) {
throw NotImplementedException("SPIR-V Instruction");
}
-void EmitBitCastS32F32(EmitContext&) {
- throw NotImplementedException("SPIR-V Instruction");
-}
-
void EmitBitCastF16U16(EmitContext&) {
throw NotImplementedException("SPIR-V Instruction");
}
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
index 0cd87a48f..2868fc57d 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
@@ -10,27 +10,6 @@
namespace Shader::Backend::SPIRV {
namespace {
-struct AttrInfo {
- Id pointer;
- Id id;
- bool needs_cast;
-};
-
-std::optional<AttrInfo> AttrTypes(EmitContext& ctx, u32 index) {
- const AttributeType type{ctx.runtime_info.generic_input_types.at(index)};
- switch (type) {
- case AttributeType::Float:
- return AttrInfo{ctx.input_f32, ctx.F32[1], false};
- case AttributeType::UnsignedInt:
- return AttrInfo{ctx.input_u32, ctx.U32[1], true};
- case AttributeType::SignedInt:
- return AttrInfo{ctx.input_s32, ctx.TypeInt(32, true), true};
- case AttributeType::Disabled:
- return std::nullopt;
- }
- throw InvalidArgument("Invalid attribute type {}", type);
-}
-
template <typename... Args>
Id AttrPointer(EmitContext& ctx, Id pointer_type, Id vertex, Id base, Args&&... args) {
switch (ctx.stage) {
@@ -302,15 +281,26 @@ Id EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, Id vertex) {
const u32 element{static_cast<u32>(attr) % 4};
if (IR::IsGeneric(attr)) {
const u32 index{IR::GenericAttributeIndex(attr)};
- const std::optional<AttrInfo> type{AttrTypes(ctx, index)};
- if (!type || !ctx.runtime_info.previous_stage_stores.Generic(index, element)) {
+ const auto& generic{ctx.input_generics.at(index)};
+ if (!ValidId(generic.id)) {
// Attribute is disabled or varying component is not written
return ctx.Const(element == 3 ? 1.0f : 0.0f);
}
- const Id generic_id{ctx.input_generics.at(index)};
- const Id pointer{AttrPointer(ctx, type->pointer, vertex, generic_id, ctx.Const(element))};
- const Id value{ctx.OpLoad(type->id, pointer)};
- return type->needs_cast ? ctx.OpBitcast(ctx.F32[1], value) : value;
+ const Id pointer{
+ AttrPointer(ctx, generic.pointer_type, vertex, generic.id, ctx.Const(element))};
+ const Id value{ctx.OpLoad(generic.component_type, pointer)};
+ return [&ctx, generic, value]() {
+ switch (generic.load_op) {
+ case InputGenericLoadOp::Bitcast:
+ return ctx.OpBitcast(ctx.F32[1], value);
+ case InputGenericLoadOp::SToF:
+ return ctx.OpConvertSToF(ctx.F32[1], value);
+ case InputGenericLoadOp::UToF:
+ return ctx.OpConvertUToF(ctx.F32[1], value);
+ default:
+ return value;
+ };
+ }();
}
switch (attr) {
case IR::Attribute::PrimitiveId:
@@ -339,9 +329,7 @@ Id EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, Id vertex) {
if (ctx.profile.support_vertex_instance_id) {
return ctx.OpBitcast(ctx.F32[1], ctx.OpLoad(ctx.U32[1], ctx.vertex_id));
} else {
- const Id index{ctx.OpLoad(ctx.U32[1], ctx.vertex_index)};
- const Id base{ctx.OpLoad(ctx.U32[1], ctx.base_vertex)};
- return ctx.OpBitcast(ctx.F32[1], ctx.OpISub(ctx.U32[1], index, base));
+ return ctx.OpBitcast(ctx.F32[1], ctx.OpLoad(ctx.U32[1], ctx.vertex_index));
}
case IR::Attribute::BaseInstance:
return ctx.OpBitcast(ctx.F32[1], ctx.OpLoad(ctx.U32[1], ctx.base_instance));
@@ -386,9 +374,7 @@ Id EmitGetAttributeU32(EmitContext& ctx, IR::Attribute attr, Id) {
if (ctx.profile.support_vertex_instance_id) {
return ctx.OpLoad(ctx.U32[1], ctx.vertex_id);
} else {
- const Id index{ctx.OpLoad(ctx.U32[1], ctx.vertex_index)};
- const Id base{ctx.OpLoad(ctx.U32[1], ctx.base_vertex)};
- return ctx.OpISub(ctx.U32[1], index, base);
+ return ctx.OpLoad(ctx.U32[1], ctx.vertex_index);
}
case IR::Attribute::BaseInstance:
return ctx.OpLoad(ctx.U32[1], ctx.base_instance);
@@ -473,7 +459,8 @@ void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, Id value) {
}
void EmitSetSampleMask(EmitContext& ctx, Id value) {
- ctx.OpStore(ctx.sample_mask, value);
+ const Id pointer{ctx.OpAccessChain(ctx.output_u32, ctx.sample_mask, ctx.u32_zero_value)};
+ ctx.OpStore(pointer, value);
}
void EmitSetFragDepth(EmitContext& ctx, Id value) {
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
index fb5799c42..7d901c04b 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
@@ -201,6 +201,13 @@ Id Image(EmitContext& ctx, const IR::Value& index, IR::TextureInstInfo info) {
}
}
+bool IsTextureMsaa(EmitContext& ctx, const IR::TextureInstInfo& info) {
+ if (info.type == TextureType::Buffer) {
+ return false;
+ }
+ return ctx.textures.at(info.descriptor_index).is_multisample;
+}
+
Id Decorate(EmitContext& ctx, IR::Inst* inst, Id sample) {
const auto info{inst->Flags<IR::TextureInstInfo>()};
if (info.relaxed_precision != 0) {
@@ -254,6 +261,30 @@ Id BitTest(EmitContext& ctx, Id mask, Id bit) {
const Id bit_value{ctx.OpBitwiseAnd(ctx.U32[1], shifted, ctx.Const(1u))};
return ctx.OpINotEqual(ctx.U1, bit_value, ctx.u32_zero_value);
}
+
+Id ImageGatherSubpixelOffset(EmitContext& ctx, const IR::TextureInstInfo& info, Id texture,
+ Id coords) {
+ // Apply a subpixel offset of 1/512 the texel size of the texture to ensure same rounding on
+ // AMD hardware as on Maxwell or other Nvidia architectures.
+ const auto calculate_coords{[&](size_t dim) {
+ const Id nudge{ctx.Const(0x1p-9f)};
+ const Id image_size{ctx.OpImageQuerySizeLod(ctx.U32[dim], texture, ctx.u32_zero_value)};
+ Id offset{dim == 2 ? ctx.ConstantComposite(ctx.F32[dim], nudge, nudge)
+ : ctx.ConstantComposite(ctx.F32[dim], nudge, nudge, ctx.f32_zero_value)};
+ offset = ctx.OpFDiv(ctx.F32[dim], offset, ctx.OpConvertUToF(ctx.F32[dim], image_size));
+ return ctx.OpFAdd(ctx.F32[dim], coords, offset);
+ }};
+ switch (info.type) {
+ case TextureType::Color2D:
+ case TextureType::Color2DRect:
+ return calculate_coords(2);
+ case TextureType::ColorArray2D:
+ case TextureType::ColorCube:
+ return calculate_coords(3);
+ default:
+ return coords;
+ }
+}
} // Anonymous namespace
Id EmitBindlessImageSampleImplicitLod(EmitContext&) {
@@ -416,6 +447,9 @@ Id EmitImageGather(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id
const IR::Value& offset, const IR::Value& offset2) {
const auto info{inst->Flags<IR::TextureInstInfo>()};
const ImageOperands operands(ctx, offset, offset2);
+ if (ctx.profile.need_gather_subpixel_offset) {
+ coords = ImageGatherSubpixelOffset(ctx, info, TextureImage(ctx, info, index), coords);
+ }
return Emit(&EmitContext::OpImageSparseGather, &EmitContext::OpImageGather, ctx, inst,
ctx.F32[4], Texture(ctx, info, index), coords, ctx.Const(info.gather_component),
operands.MaskOptional(), operands.Span());
@@ -425,6 +459,9 @@ Id EmitImageGatherDref(EmitContext& ctx, IR::Inst* inst, const IR::Value& index,
const IR::Value& offset, const IR::Value& offset2, Id dref) {
const auto info{inst->Flags<IR::TextureInstInfo>()};
const ImageOperands operands(ctx, offset, offset2);
+ if (ctx.profile.need_gather_subpixel_offset) {
+ coords = ImageGatherSubpixelOffset(ctx, info, TextureImage(ctx, info, index), coords);
+ }
return Emit(&EmitContext::OpImageSparseDrefGather, &EmitContext::OpImageDrefGather, ctx, inst,
ctx.F32[4], Texture(ctx, info, index), coords, dref, operands.MaskOptional(),
operands.Span());
@@ -436,34 +473,42 @@ Id EmitImageFetch(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id c
if (info.type == TextureType::Buffer) {
lod = Id{};
}
+ if (Sirit::ValidId(ms)) {
+ // This image is multisampled, lod must be implicit
+ lod = Id{};
+ }
const ImageOperands operands(offset, lod, ms);
return Emit(&EmitContext::OpImageSparseFetch, &EmitContext::OpImageFetch, ctx, inst, ctx.F32[4],
TextureImage(ctx, info, index), coords, operands.MaskOptional(), operands.Span());
}
-Id EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id lod) {
+Id EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id lod,
+ const IR::Value& skip_mips_val) {
const auto info{inst->Flags<IR::TextureInstInfo>()};
const Id image{TextureImage(ctx, info, index)};
const Id zero{ctx.u32_zero_value};
- const auto mips{[&] { return ctx.OpImageQueryLevels(ctx.U32[1], image); }};
+ const bool skip_mips{skip_mips_val.U1()};
+ const auto mips{[&] { return skip_mips ? zero : ctx.OpImageQueryLevels(ctx.U32[1], image); }};
+ const bool is_msaa{IsTextureMsaa(ctx, info)};
+ const bool uses_lod{!is_msaa && info.type != TextureType::Buffer};
+ const auto query{[&](Id type) {
+ return uses_lod ? ctx.OpImageQuerySizeLod(type, image, lod)
+ : ctx.OpImageQuerySize(type, image);
+ }};
switch (info.type) {
case TextureType::Color1D:
- return ctx.OpCompositeConstruct(ctx.U32[4], ctx.OpImageQuerySizeLod(ctx.U32[1], image, lod),
- zero, zero, mips());
+ return ctx.OpCompositeConstruct(ctx.U32[4], query(ctx.U32[1]), zero, zero, mips());
case TextureType::ColorArray1D:
case TextureType::Color2D:
case TextureType::ColorCube:
case TextureType::Color2DRect:
- return ctx.OpCompositeConstruct(ctx.U32[4], ctx.OpImageQuerySizeLod(ctx.U32[2], image, lod),
- zero, mips());
+ return ctx.OpCompositeConstruct(ctx.U32[4], query(ctx.U32[2]), zero, mips());
case TextureType::ColorArray2D:
case TextureType::Color3D:
case TextureType::ColorArrayCube:
- return ctx.OpCompositeConstruct(ctx.U32[4], ctx.OpImageQuerySizeLod(ctx.U32[3], image, lod),
- mips());
+ return ctx.OpCompositeConstruct(ctx.U32[4], query(ctx.U32[3]), mips());
case TextureType::Buffer:
- return ctx.OpCompositeConstruct(ctx.U32[4], ctx.OpImageQuerySize(ctx.U32[1], image), zero,
- zero, mips());
+ return ctx.OpCompositeConstruct(ctx.U32[4], query(ctx.U32[1]), zero, zero, mips());
}
throw LogicError("Unspecified image type {}", info.type.Value());
}
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h b/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
index e31cdc5e8..a440b557d 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
@@ -179,7 +179,6 @@ Id EmitSelectF64(EmitContext& ctx, Id cond, Id true_value, Id false_value);
void EmitBitCastU16F16(EmitContext& ctx);
Id EmitBitCastU32F32(EmitContext& ctx, Id value);
void EmitBitCastU64F64(EmitContext& ctx);
-void EmitBitCastS32F32(EmitContext& ctx);
void EmitBitCastF16U16(EmitContext&);
Id EmitBitCastF32U32(EmitContext& ctx, Id value);
void EmitBitCastF64U64(EmitContext& ctx);
@@ -540,7 +539,8 @@ Id EmitImageGatherDref(EmitContext& ctx, IR::Inst* inst, const IR::Value& index,
const IR::Value& offset, const IR::Value& offset2, Id dref);
Id EmitImageFetch(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id coords, Id offset,
Id lod, Id ms);
-Id EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id lod);
+Id EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id lod,
+ const IR::Value& skip_mips);
Id EmitImageQueryLod(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id coords);
Id EmitImageGradient(EmitContext& ctx, IR::Inst* inst, const IR::Value& index, Id coords,
Id derivates, Id offset, Id lod_clamp);
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp
index c5db19d09..77ff8c573 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp
@@ -17,7 +17,22 @@ Id GetThreadId(EmitContext& ctx) {
Id WarpExtract(EmitContext& ctx, Id value) {
const Id thread_id{GetThreadId(ctx)};
const Id local_index{ctx.OpShiftRightArithmetic(ctx.U32[1], thread_id, ctx.Const(5U))};
- return ctx.OpVectorExtractDynamic(ctx.U32[1], value, local_index);
+ if (ctx.profile.has_broken_spirv_subgroup_mask_vector_extract_dynamic) {
+ const Id c0_sel{ctx.OpSelect(ctx.U32[1], ctx.OpIEqual(ctx.U1, local_index, ctx.Const(0U)),
+ ctx.OpCompositeExtract(ctx.U32[1], value, 0U), ctx.Const(0U))};
+ const Id c1_sel{ctx.OpSelect(ctx.U32[1], ctx.OpIEqual(ctx.U1, local_index, ctx.Const(1U)),
+ ctx.OpCompositeExtract(ctx.U32[1], value, 1U), ctx.Const(0U))};
+ const Id c2_sel{ctx.OpSelect(ctx.U32[1], ctx.OpIEqual(ctx.U1, local_index, ctx.Const(2U)),
+ ctx.OpCompositeExtract(ctx.U32[1], value, 2U), ctx.Const(0U))};
+ const Id c3_sel{ctx.OpSelect(ctx.U32[1], ctx.OpIEqual(ctx.U1, local_index, ctx.Const(3U)),
+ ctx.OpCompositeExtract(ctx.U32[1], value, 3U), ctx.Const(0U))};
+ const Id c0_or_c1{ctx.OpBitwiseOr(ctx.U32[1], c0_sel, c1_sel)};
+ const Id c2_or_c3{ctx.OpBitwiseOr(ctx.U32[1], c2_sel, c3_sel)};
+ const Id c0_or_c1_or_c2_or_c3{ctx.OpBitwiseOr(ctx.U32[1], c0_or_c1, c2_or_c3)};
+ return c0_or_c1_or_c2_or_c3;
+ } else {
+ return ctx.OpVectorExtractDynamic(ctx.U32[1], value, local_index);
+ }
}
Id LoadMask(EmitContext& ctx, Id mask) {
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
index a0c155fdb..bec5db173 100644
--- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
@@ -25,16 +25,11 @@ enum class Operation {
FPMax,
};
-struct AttrInfo {
- Id pointer;
- Id id;
- bool needs_cast;
-};
-
Id ImageType(EmitContext& ctx, const TextureDescriptor& desc) {
const spv::ImageFormat format{spv::ImageFormat::Unknown};
const Id type{ctx.F32[1]};
const bool depth{desc.is_depth};
+ const bool ms{desc.is_multisample};
switch (desc.type) {
case TextureType::Color1D:
return ctx.TypeImage(type, spv::Dim::Dim1D, depth, false, false, 1, format);
@@ -42,9 +37,9 @@ Id ImageType(EmitContext& ctx, const TextureDescriptor& desc) {
return ctx.TypeImage(type, spv::Dim::Dim1D, depth, true, false, 1, format);
case TextureType::Color2D:
case TextureType::Color2DRect:
- return ctx.TypeImage(type, spv::Dim::Dim2D, depth, false, false, 1, format);
+ return ctx.TypeImage(type, spv::Dim::Dim2D, depth, false, ms, 1, format);
case TextureType::ColorArray2D:
- return ctx.TypeImage(type, spv::Dim::Dim2D, depth, true, false, 1, format);
+ return ctx.TypeImage(type, spv::Dim::Dim2D, depth, true, ms, 1, format);
case TextureType::Color3D:
return ctx.TypeImage(type, spv::Dim::Dim3D, depth, false, false, 1, format);
case TextureType::ColorCube:
@@ -165,7 +160,7 @@ void DefineGenericOutput(EmitContext& ctx, size_t index, std::optional<u32> invo
const u32 remainder{4 - element};
const TransformFeedbackVarying* xfb_varying{};
const size_t xfb_varying_index{base_attr_index + element};
- if (xfb_varying_index < ctx.runtime_info.xfb_varyings.size()) {
+ if (xfb_varying_index < ctx.runtime_info.xfb_count) {
xfb_varying = &ctx.runtime_info.xfb_varyings[xfb_varying_index];
xfb_varying = xfb_varying->components > 0 ? xfb_varying : nullptr;
}
@@ -205,23 +200,37 @@ Id GetAttributeType(EmitContext& ctx, AttributeType type) {
return ctx.TypeVector(ctx.TypeInt(32, true), 4);
case AttributeType::UnsignedInt:
return ctx.U32[4];
+ case AttributeType::SignedScaled:
+ return ctx.profile.support_scaled_attributes ? ctx.F32[4]
+ : ctx.TypeVector(ctx.TypeInt(32, true), 4);
+ case AttributeType::UnsignedScaled:
+ return ctx.profile.support_scaled_attributes ? ctx.F32[4] : ctx.U32[4];
case AttributeType::Disabled:
break;
}
throw InvalidArgument("Invalid attribute type {}", type);
}
-std::optional<AttrInfo> AttrTypes(EmitContext& ctx, u32 index) {
- const AttributeType type{ctx.runtime_info.generic_input_types.at(index)};
+InputGenericInfo GetAttributeInfo(EmitContext& ctx, AttributeType type, Id id) {
switch (type) {
case AttributeType::Float:
- return AttrInfo{ctx.input_f32, ctx.F32[1], false};
+ return InputGenericInfo{id, ctx.input_f32, ctx.F32[1], InputGenericLoadOp::None};
case AttributeType::UnsignedInt:
- return AttrInfo{ctx.input_u32, ctx.U32[1], true};
+ return InputGenericInfo{id, ctx.input_u32, ctx.U32[1], InputGenericLoadOp::Bitcast};
case AttributeType::SignedInt:
- return AttrInfo{ctx.input_s32, ctx.TypeInt(32, true), true};
+ return InputGenericInfo{id, ctx.input_s32, ctx.TypeInt(32, true),
+ InputGenericLoadOp::Bitcast};
+ case AttributeType::SignedScaled:
+ return ctx.profile.support_scaled_attributes
+ ? InputGenericInfo{id, ctx.input_f32, ctx.F32[1], InputGenericLoadOp::None}
+ : InputGenericInfo{id, ctx.input_s32, ctx.TypeInt(32, true),
+ InputGenericLoadOp::SToF};
+ case AttributeType::UnsignedScaled:
+ return ctx.profile.support_scaled_attributes
+ ? InputGenericInfo{id, ctx.input_f32, ctx.F32[1], InputGenericLoadOp::None}
+ : InputGenericInfo{id, ctx.input_u32, ctx.U32[1], InputGenericLoadOp::UToF};
case AttributeType::Disabled:
- return std::nullopt;
+ return InputGenericInfo{};
}
throw InvalidArgument("Invalid attribute type {}", type);
}
@@ -745,18 +754,29 @@ void EmitContext::DefineAttributeMemAccess(const Info& info) {
continue;
}
AddLabel(labels[label_index]);
- const auto type{AttrTypes(*this, static_cast<u32>(index))};
- if (!type) {
+ const auto& generic{input_generics.at(index)};
+ const Id generic_id{generic.id};
+ if (!ValidId(generic_id)) {
OpReturnValue(Const(0.0f));
++label_index;
continue;
}
- const Id generic_id{input_generics.at(index)};
- const Id pointer{is_array
- ? OpAccessChain(type->pointer, generic_id, vertex, masked_index)
- : OpAccessChain(type->pointer, generic_id, masked_index)};
- const Id value{OpLoad(type->id, pointer)};
- const Id result{type->needs_cast ? OpBitcast(F32[1], value) : value};
+ const Id pointer{
+ is_array ? OpAccessChain(generic.pointer_type, generic_id, vertex, masked_index)
+ : OpAccessChain(generic.pointer_type, generic_id, masked_index)};
+ const Id value{OpLoad(generic.component_type, pointer)};
+ const Id result{[this, generic, value]() {
+ switch (generic.load_op) {
+ case InputGenericLoadOp::Bitcast:
+ return OpBitcast(F32[1], value);
+ case InputGenericLoadOp::SToF:
+ return OpConvertSToF(F32[1], value);
+ case InputGenericLoadOp::UToF:
+ return OpConvertUToF(F32[1], value);
+ default:
+ return value;
+ };
+ }()};
OpReturnValue(result);
++label_index;
}
@@ -1287,6 +1307,7 @@ void EmitContext::DefineTextures(const Info& info, u32& binding, u32& scaling_in
.pointer_type = pointer_type,
.image_type = image_type,
.count = desc.count,
+ .is_multisample = desc.is_multisample,
});
if (profile.supported_spirv >= 0x00010400) {
interfaces.push_back(id);
@@ -1455,7 +1476,7 @@ void EmitContext::DefineInputs(const IR::Program& program) {
const Id id{DefineInput(*this, type, true)};
Decorate(id, spv::Decoration::Location, static_cast<u32>(index));
Name(id, fmt::format("in_attr{}", index));
- input_generics[index] = id;
+ input_generics[index] = GetAttributeInfo(*this, input_type, id);
if (info.passthrough.Generic(index) && profile.support_geometry_shader_passthrough) {
Decorate(id, spv::Decoration::PassthroughNV);
@@ -1570,7 +1591,8 @@ void EmitContext::DefineOutputs(const IR::Program& program) {
Decorate(frag_depth, spv::Decoration::BuiltIn, spv::BuiltIn::FragDepth);
}
if (info.stores_sample_mask) {
- sample_mask = DefineOutput(*this, U32[1], std::nullopt);
+ const Id array_type{TypeArray(U32[1], Const(1U))};
+ sample_mask = DefineOutput(*this, array_type, std::nullopt);
Decorate(sample_mask, spv::Decoration::BuiltIn, spv::BuiltIn::SampleMask);
}
break;
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.h b/src/shader_recompiler/backend/spirv/spirv_emit_context.h
index dbc5c55b9..e63330f11 100644
--- a/src/shader_recompiler/backend/spirv/spirv_emit_context.h
+++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.h
@@ -35,6 +35,7 @@ struct TextureDefinition {
Id pointer_type;
Id image_type;
u32 count;
+ bool is_multisample;
};
struct TextureBufferDefinition {
@@ -94,6 +95,20 @@ struct StorageDefinitions {
Id U32x4{};
};
+enum class InputGenericLoadOp {
+ None,
+ Bitcast,
+ SToF,
+ UToF,
+};
+
+struct InputGenericInfo {
+ Id id;
+ Id pointer_type;
+ Id component_type;
+ InputGenericLoadOp load_op;
+};
+
struct GenericElementInfo {
Id id{};
u32 first_element{};
@@ -282,7 +297,7 @@ public:
bool need_input_position_indirect{};
Id input_position{};
- std::array<Id, 32> input_generics{};
+ std::array<InputGenericInfo, 32> input_generics{};
Id output_point_size{};
Id output_position{};
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index eb2e49a68..b7caa4246 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -704,11 +704,6 @@ IR::U32 IREmitter::BitCast<IR::U32, IR::F32>(const IR::F32& value) {
}
template <>
-IR::S32 IREmitter::BitCast<IR::S32, IR::F32>(const IR::F32& value) {
- return Inst<IR::S32>(Opcode::BitCastS32F32, value);
-}
-
-template <>
IR::F32 IREmitter::BitCast<IR::F32, IR::U32>(const IR::U32& value) {
return Inst<IR::F32>(Opcode::BitCastF32U32, value);
}
@@ -1851,15 +1846,16 @@ Value IREmitter::ImageFetch(const Value& handle, const Value& coords, const Valu
return Inst(op, Flags{info}, handle, coords, offset, lod, multisampling);
}
-Value IREmitter::ImageQueryDimension(const Value& handle, const IR::U32& lod) {
+Value IREmitter::ImageQueryDimension(const Value& handle, const IR::U32& lod,
+ const IR::U1& skip_mips) {
const Opcode op{handle.IsImmediate() ? Opcode::BoundImageQueryDimensions
: Opcode::BindlessImageQueryDimensions};
- return Inst(op, handle, lod);
+ return Inst(op, handle, lod, skip_mips);
}
Value IREmitter::ImageQueryDimension(const Value& handle, const IR::U32& lod,
- TextureInstInfo info) {
- return Inst(Opcode::ImageQueryDimensions, Flags{info}, handle, lod);
+ const IR::U1& skip_mips, TextureInstInfo info) {
+ return Inst(Opcode::ImageQueryDimensions, Flags{info}, handle, lod, skip_mips);
}
Value IREmitter::ImageQueryLod(const Value& handle, const Value& coords, TextureInstInfo info) {
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h
index 7aaaa4ab0..f3c81dbe1 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.h
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.h
@@ -320,9 +320,10 @@ public:
[[nodiscard]] F32 ImageSampleDrefExplicitLod(const Value& handle, const Value& coords,
const F32& dref, const F32& lod,
const Value& offset, TextureInstInfo info);
- [[nodiscard]] Value ImageQueryDimension(const Value& handle, const IR::U32& lod);
[[nodiscard]] Value ImageQueryDimension(const Value& handle, const IR::U32& lod,
- TextureInstInfo info);
+ const IR::U1& skip_mips);
+ [[nodiscard]] Value ImageQueryDimension(const Value& handle, const IR::U32& lod,
+ const IR::U1& skip_mips, TextureInstInfo info);
[[nodiscard]] Value ImageQueryLod(const Value& handle, const Value& coords,
TextureInstInfo info);
@@ -408,7 +409,8 @@ private:
}
template <typename T>
- requires(sizeof(T) <= sizeof(u32) && std::is_trivially_copyable_v<T>) struct Flags {
+ requires(sizeof(T) <= sizeof(u32) && std::is_trivially_copyable_v<T>)
+ struct Flags {
Flags() = default;
Flags(T proxy_) : proxy{proxy_} {}
diff --git a/src/shader_recompiler/frontend/ir/opcodes.h b/src/shader_recompiler/frontend/ir/opcodes.h
index d155afd0f..e300714f3 100644
--- a/src/shader_recompiler/frontend/ir/opcodes.h
+++ b/src/shader_recompiler/frontend/ir/opcodes.h
@@ -38,7 +38,6 @@ constexpr Type U8{Type::U8};
constexpr Type U16{Type::U16};
constexpr Type U32{Type::U32};
constexpr Type U64{Type::U64};
-constexpr Type S32{Type::S32};
constexpr Type F16{Type::F16};
constexpr Type F32{Type::F32};
constexpr Type F64{Type::F64};
diff --git a/src/shader_recompiler/frontend/ir/opcodes.inc b/src/shader_recompiler/frontend/ir/opcodes.inc
index 1fe3749cc..4447d67b0 100644
--- a/src/shader_recompiler/frontend/ir/opcodes.inc
+++ b/src/shader_recompiler/frontend/ir/opcodes.inc
@@ -175,7 +175,6 @@ OPCODE(SelectF64, F64, U1,
OPCODE(BitCastU16F16, U16, F16, )
OPCODE(BitCastU32F32, U32, F32, )
OPCODE(BitCastU64F64, U64, F64, )
-OPCODE(BitCastS32F32, S32, F32, )
OPCODE(BitCastF16U16, F16, U16, )
OPCODE(BitCastF32U32, F32, U32, )
OPCODE(BitCastF64U64, F64, U64, )
@@ -483,7 +482,7 @@ OPCODE(BindlessImageSampleDrefExplicitLod, F32, U32,
OPCODE(BindlessImageGather, F32x4, U32, Opaque, Opaque, Opaque, )
OPCODE(BindlessImageGatherDref, F32x4, U32, Opaque, Opaque, Opaque, F32, )
OPCODE(BindlessImageFetch, F32x4, U32, Opaque, Opaque, U32, Opaque, )
-OPCODE(BindlessImageQueryDimensions, U32x4, U32, U32, )
+OPCODE(BindlessImageQueryDimensions, U32x4, U32, U32, U1, )
OPCODE(BindlessImageQueryLod, F32x4, U32, Opaque, )
OPCODE(BindlessImageGradient, F32x4, U32, Opaque, Opaque, Opaque, Opaque, )
OPCODE(BindlessImageRead, U32x4, U32, Opaque, )
@@ -496,7 +495,7 @@ OPCODE(BoundImageSampleDrefExplicitLod, F32, U32,
OPCODE(BoundImageGather, F32x4, U32, Opaque, Opaque, Opaque, )
OPCODE(BoundImageGatherDref, F32x4, U32, Opaque, Opaque, Opaque, F32, )
OPCODE(BoundImageFetch, F32x4, U32, Opaque, Opaque, U32, Opaque, )
-OPCODE(BoundImageQueryDimensions, U32x4, U32, U32, )
+OPCODE(BoundImageQueryDimensions, U32x4, U32, U32, U1, )
OPCODE(BoundImageQueryLod, F32x4, U32, Opaque, )
OPCODE(BoundImageGradient, F32x4, U32, Opaque, Opaque, Opaque, Opaque, )
OPCODE(BoundImageRead, U32x4, U32, Opaque, )
@@ -509,7 +508,7 @@ OPCODE(ImageSampleDrefExplicitLod, F32, Opaq
OPCODE(ImageGather, F32x4, Opaque, Opaque, Opaque, Opaque, )
OPCODE(ImageGatherDref, F32x4, Opaque, Opaque, Opaque, Opaque, F32, )
OPCODE(ImageFetch, F32x4, Opaque, Opaque, Opaque, U32, Opaque, )
-OPCODE(ImageQueryDimensions, U32x4, Opaque, U32, )
+OPCODE(ImageQueryDimensions, U32x4, Opaque, U32, U1, )
OPCODE(ImageQueryLod, F32x4, Opaque, Opaque, )
OPCODE(ImageGradient, F32x4, Opaque, Opaque, Opaque, Opaque, Opaque, )
OPCODE(ImageRead, U32x4, Opaque, Opaque, )
diff --git a/src/shader_recompiler/frontend/ir/type.h b/src/shader_recompiler/frontend/ir/type.h
index 5a7c706ad..04c8c4ddb 100644
--- a/src/shader_recompiler/frontend/ir/type.h
+++ b/src/shader_recompiler/frontend/ir/type.h
@@ -24,22 +24,21 @@ enum class Type {
U16 = 1 << 7,
U32 = 1 << 8,
U64 = 1 << 9,
- S32 = 1 << 10,
- F16 = 1 << 11,
- F32 = 1 << 12,
- F64 = 1 << 13,
- U32x2 = 1 << 14,
- U32x3 = 1 << 15,
- U32x4 = 1 << 16,
- F16x2 = 1 << 17,
- F16x3 = 1 << 18,
- F16x4 = 1 << 19,
- F32x2 = 1 << 20,
- F32x3 = 1 << 21,
- F32x4 = 1 << 22,
- F64x2 = 1 << 23,
- F64x3 = 1 << 24,
- F64x4 = 1 << 25,
+ F16 = 1 << 10,
+ F32 = 1 << 11,
+ F64 = 1 << 12,
+ U32x2 = 1 << 13,
+ U32x3 = 1 << 14,
+ U32x4 = 1 << 15,
+ F16x2 = 1 << 16,
+ F16x3 = 1 << 17,
+ F16x4 = 1 << 18,
+ F32x2 = 1 << 19,
+ F32x3 = 1 << 20,
+ F32x4 = 1 << 21,
+ F64x2 = 1 << 22,
+ F64x3 = 1 << 23,
+ F64x4 = 1 << 24,
};
DECLARE_ENUM_FLAG_OPERATORS(Type)
diff --git a/src/shader_recompiler/frontend/ir/value.cpp b/src/shader_recompiler/frontend/ir/value.cpp
index 30ba12316..346169328 100644
--- a/src/shader_recompiler/frontend/ir/value.cpp
+++ b/src/shader_recompiler/frontend/ir/value.cpp
@@ -23,8 +23,6 @@ Value::Value(u16 value) noexcept : type{Type::U16}, imm_u16{value} {}
Value::Value(u32 value) noexcept : type{Type::U32}, imm_u32{value} {}
-Value::Value(s32 value) noexcept : type{Type::S32}, imm_s32{value} {}
-
Value::Value(f32 value) noexcept : type{Type::F32}, imm_f32{value} {}
Value::Value(u64 value) noexcept : type{Type::U64}, imm_u64{value} {}
@@ -71,7 +69,6 @@ bool Value::operator==(const Value& other) const {
return imm_u16 == other.imm_u16;
case Type::U32:
case Type::F32:
- case Type::S32:
return imm_u32 == other.imm_u32;
case Type::U64:
case Type::F64:
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h
index 8b34356fd..c27546b0e 100644
--- a/src/shader_recompiler/frontend/ir/value.h
+++ b/src/shader_recompiler/frontend/ir/value.h
@@ -43,7 +43,6 @@ public:
explicit Value(u8 value) noexcept;
explicit Value(u16 value) noexcept;
explicit Value(u32 value) noexcept;
- explicit Value(s32 value) noexcept;
explicit Value(f32 value) noexcept;
explicit Value(u64 value) noexcept;
explicit Value(f64 value) noexcept;
@@ -66,7 +65,6 @@ public:
[[nodiscard]] u8 U8() const;
[[nodiscard]] u16 U16() const;
[[nodiscard]] u32 U32() const;
- [[nodiscard]] s32 S32() const;
[[nodiscard]] f32 F32() const;
[[nodiscard]] u64 U64() const;
[[nodiscard]] f64 F64() const;
@@ -86,7 +84,6 @@ private:
u8 imm_u8;
u16 imm_u16;
u32 imm_u32;
- s32 imm_s32;
f32 imm_f32;
u64 imm_u64;
f64 imm_f64;
@@ -101,9 +98,8 @@ public:
TypedValue() = default;
template <IR::Type other_type>
- requires((other_type & type_) != IR::Type::Void) explicit(false)
- TypedValue(const TypedValue<other_type>& value)
- : Value(value) {}
+ requires((other_type & type_) != IR::Type::Void)
+ explicit(false) TypedValue(const TypedValue<other_type>& value) : Value(value) {}
explicit TypedValue(const Value& value) : Value(value) {
if ((value.Type() & type_) == IR::Type::Void) {
@@ -194,16 +190,16 @@ public:
void ReplaceOpcode(IR::Opcode opcode);
template <typename FlagsType>
- requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>)
- [[nodiscard]] FlagsType Flags() const noexcept {
+ requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>)
+ [[nodiscard]] FlagsType Flags() const noexcept {
FlagsType ret;
std::memcpy(reinterpret_cast<char*>(&ret), &flags, sizeof(ret));
return ret;
}
template <typename FlagsType>
- requires(sizeof(FlagsType) <= sizeof(u32) &&
- std::is_trivially_copyable_v<FlagsType>) void SetFlags(FlagsType value) noexcept {
+ requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>)
+ void SetFlags(FlagsType value) noexcept {
std::memcpy(&flags, &value, sizeof(value));
}
@@ -268,7 +264,6 @@ using U8 = TypedValue<Type::U8>;
using U16 = TypedValue<Type::U16>;
using U32 = TypedValue<Type::U32>;
using U64 = TypedValue<Type::U64>;
-using S32 = TypedValue<Type::S32>;
using F16 = TypedValue<Type::F16>;
using F32 = TypedValue<Type::F32>;
using F64 = TypedValue<Type::F64>;
@@ -380,14 +375,6 @@ inline u32 Value::U32() const {
return imm_u32;
}
-inline s32 Value::S32() const {
- if (IsIdentity()) {
- return inst->Arg(0).S32();
- }
- DEBUG_ASSERT(type == Type::S32);
- return imm_s32;
-}
-
inline f32 Value::F32() const {
if (IsIdentity()) {
return inst->Arg(0).F32();
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_funnel_shift.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_funnel_shift.cpp
index 442365a26..c2a0ee6f1 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_funnel_shift.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_funnel_shift.cpp
@@ -30,7 +30,7 @@ void SHF(TranslatorVisitor& v, u64 insn, const IR::U32& shift, const IR::U32& hi
union {
u64 insn;
BitField<0, 8, IR::Reg> dest_reg;
- BitField<0, 8, IR::Reg> lo_bits_reg;
+ BitField<8, 8, IR::Reg> lo_bits_reg;
BitField<37, 2, MaxShift> max_shift;
BitField<47, 1, u64> cc;
BitField<48, 2, u64> x_mode;
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp
index 639da1e9c..eeb49444f 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_mipmap_level.cpp
@@ -102,12 +102,7 @@ void Impl(TranslatorVisitor& v, u64 insn, bool is_bindless) {
}
IR::F32 value{v.ir.CompositeExtract(sample, element)};
if (element < 2) {
- IR::U32 casted_value;
- if (element == 0) {
- casted_value = v.ir.ConvertFToU(32, value);
- } else {
- casted_value = v.ir.ConvertFToS(16, value);
- }
+ IR::U32 casted_value = v.ir.ConvertFToU(32, value);
v.X(dest_reg, v.ir.ShiftLeftLogical(casted_value, v.ir.Imm32(8)));
} else {
v.F(dest_reg, value);
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp
index f8cfd4ab6..39af62559 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp
@@ -15,11 +15,13 @@ enum class Mode : u64 {
SamplePos = 5,
};
-IR::Value Query(TranslatorVisitor& v, const IR::U32& handle, Mode mode, IR::Reg src_reg) {
+IR::Value Query(TranslatorVisitor& v, const IR::U32& handle, Mode mode, IR::Reg src_reg, u64 mask) {
switch (mode) {
case Mode::Dimension: {
+ const bool needs_num_mips{((mask >> 3) & 1) != 0};
+ const IR::U1 skip_mips{v.ir.Imm1(!needs_num_mips)};
const IR::U32 lod{v.X(src_reg)};
- return v.ir.ImageQueryDimension(handle, lod);
+ return v.ir.ImageQueryDimension(handle, lod, skip_mips);
}
case Mode::TextureType:
case Mode::SamplePos:
@@ -46,7 +48,7 @@ void Impl(TranslatorVisitor& v, u64 insn, std::optional<u32> cbuf_offset) {
handle = v.X(src_reg);
++src_reg;
}
- const IR::Value query{Query(v, handle, txq.mode, src_reg)};
+ const IR::Value query{Query(v, handle, txq.mode, src_reg, txq.mask)};
IR::Reg dest_reg{txq.dest_reg};
for (int element = 0; element < 4; ++element) {
if (((txq.mask >> element) & 1) == 0) {
diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
index a42453e90..928b35561 100644
--- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
@@ -280,19 +280,25 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
RemoveUnreachableBlocks(program);
// Replace instructions before the SSA rewrite
+ if (!host_info.support_float64) {
+ Optimization::LowerFp64ToFp32(program);
+ }
if (!host_info.support_float16) {
Optimization::LowerFp16ToFp32(program);
}
if (!host_info.support_int64) {
Optimization::LowerInt64ToInt32(program);
}
+ if (!host_info.support_conditional_barrier) {
+ Optimization::ConditionalBarrierPass(program);
+ }
Optimization::SsaRewritePass(program);
Optimization::ConstantPropagationPass(env, program);
Optimization::PositionPass(env, program);
- Optimization::GlobalMemoryToStorageBufferPass(program, host_info);
+ Optimization::GlobalMemoryToStorageBufferPass(program);
Optimization::TexturePass(env, program, host_info);
if (Settings::values.resolution_info.active) {
diff --git a/src/shader_recompiler/host_translate_info.h b/src/shader_recompiler/host_translate_info.h
index 55fc48768..7d2ded907 100644
--- a/src/shader_recompiler/host_translate_info.h
+++ b/src/shader_recompiler/host_translate_info.h
@@ -10,14 +10,16 @@ namespace Shader {
/// Misc information about the host
struct HostTranslateInfo {
+ bool support_float64{}; ///< True when the device supports 64-bit floats
bool support_float16{}; ///< True when the device supports 16-bit floats
bool support_int64{}; ///< True when the device supports 64-bit integers
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
- u32 min_ssbo_alignment{}; ///< Minimum alignment supported by the device for SSBOs
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
};
} // namespace Shader
diff --git a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
index 5a4195217..70292686f 100644
--- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
+++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
@@ -424,6 +424,10 @@ void VisitUsages(Info& info, IR::Inst& inst) {
info.used_constant_buffer_types |= IR::Type::U32 | IR::Type::U32x2;
info.used_storage_buffer_types |= IR::Type::U32 | IR::Type::U32x2 | IR::Type::U32x4;
break;
+ case IR::Opcode::LoadLocal:
+ case IR::Opcode::WriteLocal:
+ info.uses_local_memory = true;
+ break;
default:
break;
}
diff --git a/src/shader_recompiler/ir_opt/conditional_barrier_pass.cpp b/src/shader_recompiler/ir_opt/conditional_barrier_pass.cpp
new file mode 100644
index 000000000..c3ed27f4f
--- /dev/null
+++ b/src/shader_recompiler/ir_opt/conditional_barrier_pass.cpp
@@ -0,0 +1,44 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "shader_recompiler/frontend/ir/program.h"
+#include "shader_recompiler/ir_opt/passes.h"
+
+namespace Shader::Optimization {
+
+void ConditionalBarrierPass(IR::Program& program) {
+ s32 conditional_control_flow_count{0};
+ s32 conditional_return_count{0};
+ for (IR::AbstractSyntaxNode& node : program.syntax_list) {
+ switch (node.type) {
+ case IR::AbstractSyntaxNode::Type::If:
+ case IR::AbstractSyntaxNode::Type::Loop:
+ conditional_control_flow_count++;
+ break;
+ case IR::AbstractSyntaxNode::Type::EndIf:
+ case IR::AbstractSyntaxNode::Type::Repeat:
+ conditional_control_flow_count--;
+ break;
+ case IR::AbstractSyntaxNode::Type::Unreachable:
+ case IR::AbstractSyntaxNode::Type::Return:
+ if (conditional_control_flow_count > 0) {
+ conditional_return_count++;
+ }
+ break;
+ case IR::AbstractSyntaxNode::Type::Block:
+ for (IR::Inst& inst : node.data.block->Instructions()) {
+ if ((conditional_control_flow_count > 0 || conditional_return_count > 0) &&
+ inst.GetOpcode() == IR::Opcode::Barrier) {
+ LOG_WARNING(Shader, "Barrier within conditional control flow");
+ inst.ReplaceOpcode(IR::Opcode::Identity);
+ }
+ }
+ break;
+ default:
+ break;
+ }
+ }
+ ASSERT(conditional_control_flow_count == 0);
+}
+
+} // namespace Shader::Optimization
diff --git a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp
index 9101722ba..d1e59f22e 100644
--- a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp
+++ b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp
@@ -11,7 +11,6 @@
#include "shader_recompiler/frontend/ir/breadth_first_search.h"
#include "shader_recompiler/frontend/ir/ir_emitter.h"
#include "shader_recompiler/frontend/ir/value.h"
-#include "shader_recompiler/host_translate_info.h"
#include "shader_recompiler/ir_opt/passes.h"
namespace Shader::Optimization {
@@ -36,6 +35,7 @@ struct Bias {
u32 index;
u32 offset_begin;
u32 offset_end;
+ u32 alignment;
};
using boost::container::flat_set;
@@ -350,7 +350,8 @@ std::optional<StorageBufferAddr> Track(const IR::Value& value, const Bias* bias)
.index = index.U32(),
.offset = offset.U32(),
};
- if (!Common::IsAligned(storage_buffer.offset, 16)) {
+ const u32 alignment{bias ? bias->alignment : 8U};
+ if (!Common::IsAligned(storage_buffer.offset, alignment)) {
// The SSBO pointer has to be aligned
return std::nullopt;
}
@@ -372,6 +373,7 @@ void CollectStorageBuffers(IR::Block& block, IR::Inst& inst, StorageInfo& info)
.index = 0,
.offset_begin = 0x110,
.offset_end = 0x610,
+ .alignment = 16,
};
// Track the low address of the instruction
const std::optional<LowAddrInfo> low_addr_info{TrackLowAddress(&inst)};
@@ -387,8 +389,11 @@ void CollectStorageBuffers(IR::Block& block, IR::Inst& inst, StorageInfo& info)
storage_buffer = Track(low_addr, nullptr);
if (!storage_buffer) {
// If that also fails, use NVN fallbacks
+ LOG_WARNING(Shader, "Storage buffer failed to track, using global memory fallbacks");
return;
}
+ LOG_WARNING(Shader, "Storage buffer tracked without bias, index {} offset {}",
+ storage_buffer->index, storage_buffer->offset);
}
// Collect storage buffer and the instruction
if (IsGlobalMemoryWrite(inst)) {
@@ -403,7 +408,7 @@ void CollectStorageBuffers(IR::Block& block, IR::Inst& inst, StorageInfo& info)
}
/// Returns the offset in indices (not bytes) for an equivalent storage instruction
-IR::U32 StorageOffset(IR::Block& block, IR::Inst& inst, StorageBufferAddr buffer, u32 alignment) {
+IR::U32 StorageOffset(IR::Block& block, IR::Inst& inst, StorageBufferAddr buffer) {
IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to(inst)};
IR::U32 offset;
if (const std::optional<LowAddrInfo> low_addr{TrackLowAddress(&inst)}) {
@@ -416,10 +421,7 @@ IR::U32 StorageOffset(IR::Block& block, IR::Inst& inst, StorageBufferAddr buffer
}
// Subtract the least significant 32 bits from the guest offset. The result is the storage
// buffer offset in bytes.
- IR::U32 low_cbuf{ir.GetCbuf(ir.Imm32(buffer.index), ir.Imm32(buffer.offset))};
-
- // Align the offset base to match the host alignment requirements
- low_cbuf = ir.BitwiseAnd(low_cbuf, ir.Imm32(~(alignment - 1U)));
+ const IR::U32 low_cbuf{ir.GetCbuf(ir.Imm32(buffer.index), ir.Imm32(buffer.offset))};
return ir.ISub(offset, low_cbuf);
}
@@ -514,7 +516,7 @@ void Replace(IR::Block& block, IR::Inst& inst, const IR::U32& storage_index,
}
} // Anonymous namespace
-void GlobalMemoryToStorageBufferPass(IR::Program& program, const HostTranslateInfo& host_info) {
+void GlobalMemoryToStorageBufferPass(IR::Program& program) {
StorageInfo info;
for (IR::Block* const block : program.post_order_blocks) {
for (IR::Inst& inst : block->Instructions()) {
@@ -538,8 +540,7 @@ void GlobalMemoryToStorageBufferPass(IR::Program& program, const HostTranslateIn
const IR::U32 index{IR::Value{static_cast<u32>(info.set.index_of(it))}};
IR::Block* const block{storage_inst.block};
IR::Inst* const inst{storage_inst.inst};
- const IR::U32 offset{
- StorageOffset(*block, *inst, storage_buffer, host_info.min_ssbo_alignment)};
+ const IR::U32 offset{StorageOffset(*block, *inst, storage_buffer)};
Replace(*block, *inst, index, offset);
}
}
diff --git a/src/shader_recompiler/ir_opt/lower_fp64_to_fp32.cpp b/src/shader_recompiler/ir_opt/lower_fp64_to_fp32.cpp
new file mode 100644
index 000000000..5db7a38ad
--- /dev/null
+++ b/src/shader_recompiler/ir_opt/lower_fp64_to_fp32.cpp
@@ -0,0 +1,185 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "shader_recompiler/frontend/ir/ir_emitter.h"
+#include "shader_recompiler/frontend/ir/opcodes.h"
+#include "shader_recompiler/frontend/ir/value.h"
+#include "shader_recompiler/ir_opt/passes.h"
+
+namespace Shader::Optimization {
+namespace {
+
+constexpr s32 F64ToF32Exp = +1023 - 127;
+constexpr s32 F32ToF64Exp = +127 - 1023;
+
+IR::F32 PackedF64ToF32(IR::IREmitter& ir, const IR::Value& packed) {
+ const IR::U32 lo{ir.CompositeExtract(packed, 0)};
+ const IR::U32 hi{ir.CompositeExtract(packed, 1)};
+ const IR::U32 sign{ir.BitFieldExtract(hi, ir.Imm32(31), ir.Imm32(1))};
+ const IR::U32 exp{ir.BitFieldExtract(hi, ir.Imm32(20), ir.Imm32(11))};
+ const IR::U32 mantissa_hi{ir.BitFieldExtract(hi, ir.Imm32(0), ir.Imm32(20))};
+ const IR::U32 mantissa_lo{ir.BitFieldExtract(lo, ir.Imm32(29), ir.Imm32(3))};
+ const IR::U32 mantissa{
+ ir.BitwiseOr(ir.ShiftLeftLogical(mantissa_hi, ir.Imm32(3)), mantissa_lo)};
+ const IR::U32 exp_if_subnorm{
+ ir.Select(ir.IEqual(exp, ir.Imm32(0)), ir.Imm32(0), ir.IAdd(exp, ir.Imm32(F64ToF32Exp)))};
+ const IR::U32 exp_if_infnan{
+ ir.Select(ir.IEqual(exp, ir.Imm32(0x7ff)), ir.Imm32(0xff), exp_if_subnorm)};
+ const IR::U32 result{
+ ir.BitwiseOr(ir.ShiftLeftLogical(sign, ir.Imm32(31)),
+ ir.BitwiseOr(ir.ShiftLeftLogical(exp_if_infnan, ir.Imm32(23)), mantissa))};
+ return ir.BitCast<IR::F32>(result);
+}
+
+IR::Value F32ToPackedF64(IR::IREmitter& ir, const IR::Value& raw) {
+ const IR::U32 value{ir.BitCast<IR::U32>(IR::F32(raw))};
+ const IR::U32 sign{ir.BitFieldExtract(value, ir.Imm32(31), ir.Imm32(1))};
+ const IR::U32 exp{ir.BitFieldExtract(value, ir.Imm32(23), ir.Imm32(8))};
+ const IR::U32 mantissa{ir.BitFieldExtract(value, ir.Imm32(0), ir.Imm32(23))};
+ const IR::U32 mantissa_hi{ir.BitFieldExtract(mantissa, ir.Imm32(3), ir.Imm32(20))};
+ const IR::U32 mantissa_lo{ir.BitFieldExtract(mantissa, ir.Imm32(0), ir.Imm32(3))};
+ const IR::U32 exp_if_subnorm{
+ ir.Select(ir.IEqual(exp, ir.Imm32(0)), ir.Imm32(0), ir.IAdd(exp, ir.Imm32(F32ToF64Exp)))};
+ const IR::U32 exp_if_infnan{
+ ir.Select(ir.IEqual(exp, ir.Imm32(0xff)), ir.Imm32(0x7ff), exp_if_subnorm)};
+ const IR::U32 lo{ir.ShiftLeftLogical(mantissa_lo, ir.Imm32(29))};
+ const IR::U32 hi{
+ ir.BitwiseOr(ir.ShiftLeftLogical(sign, ir.Imm32(31)),
+ ir.BitwiseOr(ir.ShiftLeftLogical(exp_if_infnan, ir.Imm32(20)), mantissa_hi))};
+ return ir.CompositeConstruct(lo, hi);
+}
+
+IR::Opcode Replace(IR::Opcode op) {
+ switch (op) {
+ case IR::Opcode::FPAbs64:
+ return IR::Opcode::FPAbs32;
+ case IR::Opcode::FPAdd64:
+ return IR::Opcode::FPAdd32;
+ case IR::Opcode::FPCeil64:
+ return IR::Opcode::FPCeil32;
+ case IR::Opcode::FPFloor64:
+ return IR::Opcode::FPFloor32;
+ case IR::Opcode::FPFma64:
+ return IR::Opcode::FPFma32;
+ case IR::Opcode::FPMul64:
+ return IR::Opcode::FPMul32;
+ case IR::Opcode::FPNeg64:
+ return IR::Opcode::FPNeg32;
+ case IR::Opcode::FPRoundEven64:
+ return IR::Opcode::FPRoundEven32;
+ case IR::Opcode::FPSaturate64:
+ return IR::Opcode::FPSaturate32;
+ case IR::Opcode::FPClamp64:
+ return IR::Opcode::FPClamp32;
+ case IR::Opcode::FPTrunc64:
+ return IR::Opcode::FPTrunc32;
+ case IR::Opcode::CompositeConstructF64x2:
+ return IR::Opcode::CompositeConstructF32x2;
+ case IR::Opcode::CompositeConstructF64x3:
+ return IR::Opcode::CompositeConstructF32x3;
+ case IR::Opcode::CompositeConstructF64x4:
+ return IR::Opcode::CompositeConstructF32x4;
+ case IR::Opcode::CompositeExtractF64x2:
+ return IR::Opcode::CompositeExtractF32x2;
+ case IR::Opcode::CompositeExtractF64x3:
+ return IR::Opcode::CompositeExtractF32x3;
+ case IR::Opcode::CompositeExtractF64x4:
+ return IR::Opcode::CompositeExtractF32x4;
+ case IR::Opcode::CompositeInsertF64x2:
+ return IR::Opcode::CompositeInsertF32x2;
+ case IR::Opcode::CompositeInsertF64x3:
+ return IR::Opcode::CompositeInsertF32x3;
+ case IR::Opcode::CompositeInsertF64x4:
+ return IR::Opcode::CompositeInsertF32x4;
+ case IR::Opcode::FPOrdEqual64:
+ return IR::Opcode::FPOrdEqual32;
+ case IR::Opcode::FPUnordEqual64:
+ return IR::Opcode::FPUnordEqual32;
+ case IR::Opcode::FPOrdNotEqual64:
+ return IR::Opcode::FPOrdNotEqual32;
+ case IR::Opcode::FPUnordNotEqual64:
+ return IR::Opcode::FPUnordNotEqual32;
+ case IR::Opcode::FPOrdLessThan64:
+ return IR::Opcode::FPOrdLessThan32;
+ case IR::Opcode::FPUnordLessThan64:
+ return IR::Opcode::FPUnordLessThan32;
+ case IR::Opcode::FPOrdGreaterThan64:
+ return IR::Opcode::FPOrdGreaterThan32;
+ case IR::Opcode::FPUnordGreaterThan64:
+ return IR::Opcode::FPUnordGreaterThan32;
+ case IR::Opcode::FPOrdLessThanEqual64:
+ return IR::Opcode::FPOrdLessThanEqual32;
+ case IR::Opcode::FPUnordLessThanEqual64:
+ return IR::Opcode::FPUnordLessThanEqual32;
+ case IR::Opcode::FPOrdGreaterThanEqual64:
+ return IR::Opcode::FPOrdGreaterThanEqual32;
+ case IR::Opcode::FPUnordGreaterThanEqual64:
+ return IR::Opcode::FPUnordGreaterThanEqual32;
+ case IR::Opcode::FPIsNan64:
+ return IR::Opcode::FPIsNan32;
+ case IR::Opcode::ConvertS16F64:
+ return IR::Opcode::ConvertS16F32;
+ case IR::Opcode::ConvertS32F64:
+ return IR::Opcode::ConvertS32F32;
+ case IR::Opcode::ConvertS64F64:
+ return IR::Opcode::ConvertS64F32;
+ case IR::Opcode::ConvertU16F64:
+ return IR::Opcode::ConvertU16F32;
+ case IR::Opcode::ConvertU32F64:
+ return IR::Opcode::ConvertU32F32;
+ case IR::Opcode::ConvertU64F64:
+ return IR::Opcode::ConvertU64F32;
+ case IR::Opcode::ConvertF32F64:
+ return IR::Opcode::Identity;
+ case IR::Opcode::ConvertF64F32:
+ return IR::Opcode::Identity;
+ case IR::Opcode::ConvertF64S8:
+ return IR::Opcode::ConvertF32S8;
+ case IR::Opcode::ConvertF64S16:
+ return IR::Opcode::ConvertF32S16;
+ case IR::Opcode::ConvertF64S32:
+ return IR::Opcode::ConvertF32S32;
+ case IR::Opcode::ConvertF64S64:
+ return IR::Opcode::ConvertF32S64;
+ case IR::Opcode::ConvertF64U8:
+ return IR::Opcode::ConvertF32U8;
+ case IR::Opcode::ConvertF64U16:
+ return IR::Opcode::ConvertF32U16;
+ case IR::Opcode::ConvertF64U32:
+ return IR::Opcode::ConvertF32U32;
+ case IR::Opcode::ConvertF64U64:
+ return IR::Opcode::ConvertF32U64;
+ default:
+ return op;
+ }
+}
+
+void Lower(IR::Block& block, IR::Inst& inst) {
+ switch (inst.GetOpcode()) {
+ case IR::Opcode::PackDouble2x32: {
+ IR::IREmitter ir(block, IR::Block::InstructionList::s_iterator_to(inst));
+ inst.ReplaceUsesWith(PackedF64ToF32(ir, inst.Arg(0)));
+ break;
+ }
+ case IR::Opcode::UnpackDouble2x32: {
+ IR::IREmitter ir(block, IR::Block::InstructionList::s_iterator_to(inst));
+ inst.ReplaceUsesWith(F32ToPackedF64(ir, inst.Arg(0)));
+ break;
+ }
+ default:
+ inst.ReplaceOpcode(Replace(inst.GetOpcode()));
+ break;
+ }
+}
+
+} // Anonymous namespace
+
+void LowerFp64ToFp32(IR::Program& program) {
+ for (IR::Block* const block : program.blocks) {
+ for (IR::Inst& inst : block->Instructions()) {
+ Lower(*block, inst);
+ }
+ }
+}
+
+} // namespace Shader::Optimization
diff --git a/src/shader_recompiler/ir_opt/passes.h b/src/shader_recompiler/ir_opt/passes.h
index 4ffad1172..629d18fa1 100644
--- a/src/shader_recompiler/ir_opt/passes.h
+++ b/src/shader_recompiler/ir_opt/passes.h
@@ -13,10 +13,12 @@ struct HostTranslateInfo;
namespace Shader::Optimization {
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 GlobalMemoryToStorageBufferPass(IR::Program& program, const HostTranslateInfo& host_info);
+void GlobalMemoryToStorageBufferPass(IR::Program& program);
void IdentityRemovalPass(IR::Program& program);
+void LowerFp64ToFp32(IR::Program& program);
void LowerFp16ToFp32(IR::Program& program);
void LowerInt64ToInt32(IR::Program& program);
void RescalingPass(IR::Program& program);
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp
index f5c86fcb1..d374c976a 100644
--- a/src/shader_recompiler/ir_opt/texture_pass.cpp
+++ b/src/shader_recompiler/ir_opt/texture_pass.cpp
@@ -355,21 +355,21 @@ TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst) {
};
}
-TextureType ReadTextureType(Environment& env, const ConstBufferAddr& cbuf) {
+u32 GetTextureHandle(Environment& env, const ConstBufferAddr& cbuf) {
const u32 secondary_index{cbuf.has_secondary ? cbuf.secondary_index : cbuf.index};
const u32 secondary_offset{cbuf.has_secondary ? cbuf.secondary_offset : cbuf.offset};
const u32 lhs_raw{env.ReadCbufValue(cbuf.index, cbuf.offset) << cbuf.shift_left};
const u32 rhs_raw{env.ReadCbufValue(secondary_index, secondary_offset)
<< cbuf.secondary_shift_left};
- return env.ReadTextureType(lhs_raw | rhs_raw);
+ return lhs_raw | rhs_raw;
+}
+
+TextureType ReadTextureType(Environment& env, const ConstBufferAddr& cbuf) {
+ return env.ReadTextureType(GetTextureHandle(env, cbuf));
}
TexturePixelFormat ReadTexturePixelFormat(Environment& env, const ConstBufferAddr& cbuf) {
- const u32 secondary_index{cbuf.has_secondary ? cbuf.secondary_index : cbuf.index};
- const u32 secondary_offset{cbuf.has_secondary ? cbuf.secondary_offset : cbuf.offset};
- const u32 lhs_raw{env.ReadCbufValue(cbuf.index, cbuf.offset)};
- const u32 rhs_raw{env.ReadCbufValue(secondary_index, secondary_offset)};
- return env.ReadTexturePixelFormat(lhs_raw | rhs_raw);
+ return env.ReadTexturePixelFormat(GetTextureHandle(env, cbuf));
}
class Descriptors {
@@ -386,8 +386,10 @@ public:
return Add(texture_buffer_descriptors, desc, [&desc](const auto& existing) {
return desc.cbuf_index == existing.cbuf_index &&
desc.cbuf_offset == existing.cbuf_offset &&
+ desc.shift_left == existing.shift_left &&
desc.secondary_cbuf_index == existing.secondary_cbuf_index &&
desc.secondary_cbuf_offset == existing.secondary_cbuf_offset &&
+ desc.secondary_shift_left == existing.secondary_shift_left &&
desc.count == existing.count && desc.size_shift == existing.size_shift &&
desc.has_secondary == existing.has_secondary;
});
@@ -405,15 +407,20 @@ public:
}
u32 Add(const TextureDescriptor& desc) {
- return Add(texture_descriptors, desc, [&desc](const auto& existing) {
+ const u32 index{Add(texture_descriptors, desc, [&desc](const auto& existing) {
return desc.type == existing.type && desc.is_depth == existing.is_depth &&
desc.has_secondary == existing.has_secondary &&
desc.cbuf_index == existing.cbuf_index &&
desc.cbuf_offset == existing.cbuf_offset &&
+ desc.shift_left == existing.shift_left &&
desc.secondary_cbuf_index == existing.secondary_cbuf_index &&
desc.secondary_cbuf_offset == existing.secondary_cbuf_offset &&
+ desc.secondary_shift_left == existing.secondary_shift_left &&
desc.count == existing.count && desc.size_shift == existing.size_shift;
- });
+ })};
+ // TODO: Read this from TIC
+ texture_descriptors[index].is_multisample |= desc.is_multisample;
+ return index;
}
u32 Add(const ImageDescriptor& desc) {
@@ -452,7 +459,8 @@ void PatchImageSampleImplicitLod(IR::Block& block, IR::Inst& inst) {
const IR::Value coord(inst.Arg(1));
const IR::Value handle(ir.Imm32(0));
const IR::U32 lod{ir.Imm32(0)};
- const IR::Value texture_size = ir.ImageQueryDimension(handle, lod, info);
+ const IR::U1 skip_mips{ir.Imm1(true)};
+ const IR::Value texture_size = ir.ImageQueryDimension(handle, lod, skip_mips, info);
inst.SetArg(
1, ir.CompositeConstruct(
ir.FPMul(IR::F32(ir.CompositeExtract(coord, 0)),
@@ -486,10 +494,10 @@ void PatchTexelFetch(IR::Block& block, IR::Inst& inst, TexturePixelFormat pixel_
const IR::F32 w(ir.CompositeExtract(new_inst, 3));
const IR::F16F32F64 max_value(ir.Imm32(get_max_value()));
const IR::Value converted =
- ir.CompositeConstruct(ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(x)), max_value),
- ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(y)), max_value),
- ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(z)), max_value),
- ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::S32>(w)), max_value));
+ ir.CompositeConstruct(ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(x)), max_value),
+ ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(y)), max_value),
+ ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(z)), max_value),
+ ir.FPMul(ir.ConvertSToF(32, 32, ir.BitCast<IR::U32>(w)), max_value));
inst.ReplaceUsesWith(converted);
}
} // Anonymous namespace
@@ -524,6 +532,7 @@ void TexturePass(Environment& env, IR::Program& program, const HostTranslateInfo
const auto& cbuf{texture_inst.cbuf};
auto flags{inst->Flags<IR::TextureInstInfo>()};
+ bool is_multisample{false};
switch (inst->GetOpcode()) {
case IR::Opcode::ImageQueryDimensions:
flags.type.Assign(ReadTextureType(env, cbuf));
@@ -538,6 +547,12 @@ void TexturePass(Environment& env, IR::Program& program, const HostTranslateInfo
}
break;
case IR::Opcode::ImageFetch:
+ if (flags.type == TextureType::Color2D || flags.type == TextureType::Color2DRect ||
+ flags.type == TextureType::ColorArray2D) {
+ is_multisample = !inst->Arg(4).IsEmpty();
+ } else {
+ inst->SetArg(4, IR::U32{});
+ }
if (flags.type != TextureType::Color1D) {
break;
}
@@ -613,6 +628,7 @@ void TexturePass(Environment& env, IR::Program& program, const HostTranslateInfo
index = descriptors.Add(TextureDescriptor{
.type = flags.type,
.is_depth = flags.is_depth != 0,
+ .is_multisample = is_multisample,
.has_secondary = cbuf.has_secondary,
.cbuf_index = cbuf.index,
.cbuf_offset = cbuf.offset,
diff --git a/src/shader_recompiler/object_pool.h b/src/shader_recompiler/object_pool.h
index 2b42c4ba2..5d648b159 100644
--- a/src/shader_recompiler/object_pool.h
+++ b/src/shader_recompiler/object_pool.h
@@ -10,7 +10,7 @@
namespace Shader {
template <typename T>
-requires std::is_destructible_v<T>
+ requires std::is_destructible_v<T>
class ObjectPool {
public:
explicit ObjectPool(size_t chunk_size = 8192) : new_chunk_size{chunk_size} {
@@ -18,7 +18,7 @@ public:
}
template <typename... Args>
- requires std::is_constructible_v<T, Args...>
+ requires std::is_constructible_v<T, Args...>
[[nodiscard]] T* Create(Args&&... args) {
return std::construct_at(Memory(), std::forward<Args>(args)...);
}
diff --git a/src/shader_recompiler/profile.h b/src/shader_recompiler/profile.h
index 253e0d0bd..9ca97f6a4 100644
--- a/src/shader_recompiler/profile.h
+++ b/src/shader_recompiler/profile.h
@@ -43,6 +43,7 @@ struct Profile {
bool support_gl_variable_aoffi{};
bool support_gl_sparse_textures{};
bool support_gl_derivative_control{};
+ bool support_scaled_attributes{};
bool warp_size_potentially_larger_than_guest{};
@@ -52,6 +53,10 @@ struct Profile {
bool need_declared_frag_colors{};
/// Prevents fast math optimizations that may cause inaccuracies
bool need_fastmath_off{};
+ /// Some GPU vendors use a different rounding precision when calculating texture pixel
+ /// coordinates with the 16.8 format in the ImageGather instruction than the Maxwell
+ /// architecture. Applying an offset does fix this mismatching rounding behaviour.
+ bool need_gather_subpixel_offset{};
/// OpFClamp is broken and OpFMax + OpFMin should be used instead
bool has_broken_spirv_clamp{};
@@ -73,6 +78,8 @@ struct Profile {
bool has_gl_bool_ref_bug{};
/// Ignores SPIR-V ordered vs unordered using GLSL semantics
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{};
u32 gl_max_compute_smem_size{};
};
diff --git a/src/shader_recompiler/runtime_info.h b/src/shader_recompiler/runtime_info.h
index 549b81ef7..619c0b138 100644
--- a/src/shader_recompiler/runtime_info.h
+++ b/src/shader_recompiler/runtime_info.h
@@ -17,6 +17,8 @@ enum class AttributeType : u8 {
Float,
SignedInt,
UnsignedInt,
+ SignedScaled,
+ UnsignedScaled,
Disabled,
};
@@ -82,7 +84,8 @@ struct RuntimeInfo {
bool glasm_use_storage_buffers{};
/// Transform feedback state for each varying
- std::vector<TransformFeedbackVarying> xfb_varyings;
+ std::array<TransformFeedbackVarying, 256> xfb_varyings{};
+ u32 xfb_count{0};
};
} // namespace Shader
diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h
index f93181e1e..b4b4afd37 100644
--- a/src/shader_recompiler/shader_info.h
+++ b/src/shader_recompiler/shader_info.h
@@ -109,6 +109,7 @@ using ImageBufferDescriptors = boost::container::small_vector<ImageBufferDescrip
struct TextureDescriptor {
TextureType type;
bool is_depth;
+ bool is_multisample;
bool has_secondary;
u32 cbuf_index;
u32 cbuf_offset;
@@ -171,6 +172,7 @@ struct Info {
bool stores_indexed_attributes{};
bool stores_global_memory{};
+ bool uses_local_memory{};
bool uses_fp16{};
bool uses_fp64{};
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index ae84408bc..1e158f375 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -4,6 +4,7 @@
add_executable(tests
common/bit_field.cpp
common/cityhash.cpp
+ common/container_hash.cpp
common/fibers.cpp
common/host_memory.cpp
common/param_package.cpp
@@ -14,7 +15,7 @@ add_executable(tests
core/core_timing.cpp
core/internal_network/network.cpp
precompiled_headers.h
- video_core/buffer_base.cpp
+ video_core/memory_tracker.cpp
input_common/calibration_configuration_job.cpp
)
diff --git a/src/tests/common/container_hash.cpp b/src/tests/common/container_hash.cpp
new file mode 100644
index 000000000..dc45565ef
--- /dev/null
+++ b/src/tests/common/container_hash.cpp
@@ -0,0 +1,44 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <catch2/catch_test_macros.hpp>
+
+#include "common/common_types.h"
+#include "common/container_hash.h"
+
+TEST_CASE("ContainerHash", "[common]") {
+ constexpr std::array<u8, 32> U8Values{
+ 114, 10, 238, 189, 199, 242, 86, 96, 53, 193, 195, 247, 249, 56, 253, 61,
+ 205, 3, 172, 4, 210, 197, 43, 72, 103, 8, 99, 89, 5, 97, 68, 196,
+ };
+ constexpr std::array<u16, 32> U16Values{
+ 61586, 49151, 3313, 11641, 31695, 54795, 46764, 20965, 23287, 14039, 19265,
+ 49093, 58932, 22518, 27139, 42825, 57417, 54237, 48057, 14586, 42813, 32994,
+ 33970, 45501, 5619, 15895, 33227, 27509, 25391, 37275, 60218, 17599,
+ };
+ constexpr std::array<u32, 32> U32Values{
+ 3838402410U, 2029146863U, 1730869921U, 985528872U, 186773874U, 2094639868U, 3324775932U,
+ 1795512424U, 2571165571U, 3256934519U, 2358691590U, 2752682538U, 1484336451U, 378124520U,
+ 3463015699U, 3395942161U, 1263211979U, 3473632889U, 3039822212U, 2068707357U, 2223837919U,
+ 1823232191U, 1583884041U, 1264393380U, 4087566993U, 3188607101U, 3933680362U, 1464520765U,
+ 1786838406U, 1311734848U, 2773642241U, 3993641692U,
+ };
+ constexpr std::array<u64, 32> U64Values{
+ 5908025796157537817ULL, 10947547850358315100ULL, 844798943576724669ULL,
+ 7999662937458523703ULL, 4006550374705895164ULL, 1832550525423503632ULL,
+ 9323088254855830976ULL, 12028890075598379412ULL, 6021511300787826236ULL,
+ 7864675007938747948ULL, 18099387408859708806ULL, 6438638299316820708ULL,
+ 9029399285648501543ULL, 18195459433089960253ULL, 17214335092761966083ULL,
+ 5549347964591337833ULL, 14899526073304962015ULL, 5058883181561464475ULL,
+ 7436311795731206973ULL, 7535129567768649864ULL, 1287169596809258072ULL,
+ 8237671246353565927ULL, 1715230541978016153ULL, 8443157615068813300ULL,
+ 6098675262328527839ULL, 704652094100376853ULL, 1303411723202926503ULL,
+ 7808312933946424854ULL, 6863726670433556594ULL, 9870361541383217495ULL,
+ 9273671094091079488ULL, 17541434976160119010ULL,
+ };
+
+ REQUIRE(Common::HashValue(U8Values) == 5867183267093890552ULL);
+ REQUIRE(Common::HashValue(U16Values) == 9594135570564347135ULL);
+ REQUIRE(Common::HashValue(U32Values) == 13123757214696618460ULL);
+ REQUIRE(Common::HashValue(U64Values) == 7296500016546938380ULL);
+}
diff --git a/src/tests/common/range_map.cpp b/src/tests/common/range_map.cpp
index d301ac5f6..faaefd49f 100644
--- a/src/tests/common/range_map.cpp
+++ b/src/tests/common/range_map.cpp
@@ -21,9 +21,9 @@ TEST_CASE("Range Map: Setup", "[video_core]") {
my_map.Map(4000, 4500, MappedEnum::Valid_2);
my_map.Map(4200, 4400, MappedEnum::Valid_2);
my_map.Map(4200, 4400, MappedEnum::Valid_1);
- REQUIRE(my_map.GetContinousSizeFrom(4200) == 200);
- REQUIRE(my_map.GetContinousSizeFrom(3000) == 200);
- REQUIRE(my_map.GetContinousSizeFrom(2900) == 0);
+ REQUIRE(my_map.GetContinuousSizeFrom(4200) == 200);
+ REQUIRE(my_map.GetContinuousSizeFrom(3000) == 200);
+ REQUIRE(my_map.GetContinuousSizeFrom(2900) == 0);
REQUIRE(my_map.GetValueAt(2900) == MappedEnum::Invalid);
REQUIRE(my_map.GetValueAt(3100) == MappedEnum::Valid_1);
@@ -38,20 +38,20 @@ TEST_CASE("Range Map: Setup", "[video_core]") {
my_map.Unmap(0, 6000);
for (u64 address = 0; address < 10000; address += 1000) {
- REQUIRE(my_map.GetContinousSizeFrom(address) == 0);
+ REQUIRE(my_map.GetContinuousSizeFrom(address) == 0);
}
my_map.Map(1000, 3000, MappedEnum::Valid_1);
my_map.Map(4000, 5000, MappedEnum::Valid_1);
my_map.Map(2500, 4100, MappedEnum::Valid_1);
- REQUIRE(my_map.GetContinousSizeFrom(1000) == 4000);
+ REQUIRE(my_map.GetContinuousSizeFrom(1000) == 4000);
my_map.Map(1000, 3000, MappedEnum::Valid_1);
my_map.Map(4000, 5000, MappedEnum::Valid_2);
my_map.Map(2500, 4100, MappedEnum::Valid_3);
- REQUIRE(my_map.GetContinousSizeFrom(1000) == 1500);
- REQUIRE(my_map.GetContinousSizeFrom(2500) == 1600);
- REQUIRE(my_map.GetContinousSizeFrom(4100) == 900);
+ REQUIRE(my_map.GetContinuousSizeFrom(1000) == 1500);
+ REQUIRE(my_map.GetContinuousSizeFrom(2500) == 1600);
+ REQUIRE(my_map.GetContinuousSizeFrom(4100) == 900);
REQUIRE(my_map.GetValueAt(900) == MappedEnum::Invalid);
REQUIRE(my_map.GetValueAt(1000) == MappedEnum::Valid_1);
REQUIRE(my_map.GetValueAt(2500) == MappedEnum::Valid_3);
@@ -59,8 +59,8 @@ TEST_CASE("Range Map: Setup", "[video_core]") {
REQUIRE(my_map.GetValueAt(5000) == MappedEnum::Invalid);
my_map.Map(2000, 6000, MappedEnum::Valid_3);
- REQUIRE(my_map.GetContinousSizeFrom(1000) == 1000);
- REQUIRE(my_map.GetContinousSizeFrom(3000) == 3000);
+ REQUIRE(my_map.GetContinuousSizeFrom(1000) == 1000);
+ REQUIRE(my_map.GetContinuousSizeFrom(3000) == 3000);
REQUIRE(my_map.GetValueAt(1000) == MappedEnum::Valid_1);
REQUIRE(my_map.GetValueAt(1999) == MappedEnum::Valid_1);
REQUIRE(my_map.GetValueAt(1500) == MappedEnum::Valid_1);
diff --git a/src/tests/common/ring_buffer.cpp b/src/tests/common/ring_buffer.cpp
index 7dee988c8..e85f9977b 100644
--- a/src/tests/common/ring_buffer.cpp
+++ b/src/tests/common/ring_buffer.cpp
@@ -52,7 +52,7 @@ TEST_CASE("RingBuffer: Basic Tests", "[common]") {
REQUIRE(buf.Size() == 1U);
- // Pushing more values than space available should partially suceed.
+ // Pushing more values than space available should partially succeed.
{
std::vector<char> to_push(6);
std::iota(to_push.begin(), to_push.end(), 88);
diff --git a/src/tests/common/scratch_buffer.cpp b/src/tests/common/scratch_buffer.cpp
index 132f139fa..26e401760 100644
--- a/src/tests/common/scratch_buffer.cpp
+++ b/src/tests/common/scratch_buffer.cpp
@@ -191,7 +191,7 @@ TEST_CASE("ScratchBuffer: Span Writes", "[common]") {
for (size_t i = 0; i < buf_span.size(); ++i) {
const auto new_value = static_cast<u8>(i + 1U);
- // Writes to a span of the scratch buffer will propogate to the buffer itself
+ // Writes to a span of the scratch buffer will propagate to the buffer itself
buf_span[i] = new_value;
REQUIRE(buf[i] == new_value);
}
diff --git a/src/tests/video_core/buffer_base.cpp b/src/tests/video_core/buffer_base.cpp
deleted file mode 100644
index 1275cca24..000000000
--- a/src/tests/video_core/buffer_base.cpp
+++ /dev/null
@@ -1,549 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <stdexcept>
-#include <unordered_map>
-
-#include <catch2/catch_test_macros.hpp>
-
-#include "common/alignment.h"
-#include "common/common_types.h"
-#include "video_core/buffer_cache/buffer_base.h"
-
-namespace {
-using VideoCommon::BufferBase;
-using Range = std::pair<u64, u64>;
-
-constexpr u64 PAGE = 4096;
-constexpr u64 WORD = 4096 * 64;
-
-constexpr VAddr c = 0x1328914000;
-
-class RasterizerInterface {
-public:
- void UpdatePagesCachedCount(VAddr addr, u64 size, int delta) {
- const u64 page_start{addr >> Core::Memory::YUZU_PAGEBITS};
- const u64 page_end{(addr + size + Core::Memory::YUZU_PAGESIZE - 1) >>
- Core::Memory::YUZU_PAGEBITS};
- for (u64 page = page_start; page < page_end; ++page) {
- int& value = page_table[page];
- value += delta;
- if (value < 0) {
- throw std::logic_error{"negative page"};
- }
- if (value == 0) {
- page_table.erase(page);
- }
- }
- }
-
- [[nodiscard]] int Count(VAddr addr) const noexcept {
- const auto it = page_table.find(addr >> Core::Memory::YUZU_PAGEBITS);
- return it == page_table.end() ? 0 : it->second;
- }
-
- [[nodiscard]] unsigned Count() const noexcept {
- unsigned count = 0;
- for (const auto& [index, value] : page_table) {
- count += value;
- }
- return count;
- }
-
-private:
- std::unordered_map<u64, int> page_table;
-};
-} // Anonymous namespace
-
-TEST_CASE("BufferBase: Small buffer", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- REQUIRE(rasterizer.Count() == 0);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == WORD / PAGE);
- REQUIRE(buffer.ModifiedCpuRegion(c, WORD) == Range{0, 0});
-
- buffer.MarkRegionAsCpuModified(c + PAGE, 1);
- REQUIRE(buffer.ModifiedCpuRegion(c, WORD) == Range{PAGE * 1, PAGE * 2});
-}
-
-TEST_CASE("BufferBase: Large buffer", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 32);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 32);
- buffer.MarkRegionAsCpuModified(c + 4096, WORD * 4);
- REQUIRE(buffer.ModifiedCpuRegion(c, WORD + PAGE * 2) == Range{PAGE, WORD + PAGE * 2});
- REQUIRE(buffer.ModifiedCpuRegion(c + PAGE * 2, PAGE * 6) == Range{PAGE * 2, PAGE * 8});
- REQUIRE(buffer.ModifiedCpuRegion(c, WORD * 32) == Range{PAGE, WORD * 4 + PAGE});
- REQUIRE(buffer.ModifiedCpuRegion(c + WORD * 4, PAGE) == Range{WORD * 4, WORD * 4 + PAGE});
- REQUIRE(buffer.ModifiedCpuRegion(c + WORD * 3 + PAGE * 63, PAGE) ==
- Range{WORD * 3 + PAGE * 63, WORD * 4});
-
- buffer.MarkRegionAsCpuModified(c + WORD * 5 + PAGE * 6, PAGE);
- buffer.MarkRegionAsCpuModified(c + WORD * 5 + PAGE * 8, PAGE);
- REQUIRE(buffer.ModifiedCpuRegion(c + WORD * 5, WORD) ==
- Range{WORD * 5 + PAGE * 6, WORD * 5 + PAGE * 9});
-
- buffer.UnmarkRegionAsCpuModified(c + WORD * 5 + PAGE * 8, PAGE);
- REQUIRE(buffer.ModifiedCpuRegion(c + WORD * 5, WORD) ==
- Range{WORD * 5 + PAGE * 6, WORD * 5 + PAGE * 7});
-
- buffer.MarkRegionAsCpuModified(c + PAGE, WORD * 31 + PAGE * 63);
- REQUIRE(buffer.ModifiedCpuRegion(c, WORD * 32) == Range{PAGE, WORD * 32});
-
- buffer.UnmarkRegionAsCpuModified(c + PAGE * 4, PAGE);
- buffer.UnmarkRegionAsCpuModified(c + PAGE * 6, PAGE);
-
- buffer.UnmarkRegionAsCpuModified(c, WORD * 32);
- REQUIRE(buffer.ModifiedCpuRegion(c, WORD * 32) == Range{0, 0});
-}
-
-TEST_CASE("BufferBase: Rasterizer counting", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, PAGE * 2);
- REQUIRE(rasterizer.Count() == 0);
- buffer.UnmarkRegionAsCpuModified(c, PAGE);
- REQUIRE(rasterizer.Count() == 1);
- buffer.MarkRegionAsCpuModified(c, PAGE * 2);
- REQUIRE(rasterizer.Count() == 0);
- buffer.UnmarkRegionAsCpuModified(c, PAGE);
- buffer.UnmarkRegionAsCpuModified(c + PAGE, PAGE);
- REQUIRE(rasterizer.Count() == 2);
- buffer.MarkRegionAsCpuModified(c, PAGE * 2);
- REQUIRE(rasterizer.Count() == 0);
-}
-
-TEST_CASE("BufferBase: Basic range", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.MarkRegionAsCpuModified(c, PAGE);
- int num = 0;
- buffer.ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) {
- REQUIRE(offset == 0U);
- REQUIRE(size == PAGE);
- ++num;
- });
- REQUIRE(num == 1U);
-}
-
-TEST_CASE("BufferBase: Border upload", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 2);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 2);
- buffer.MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
- buffer.ForEachUploadRange(c, WORD * 2, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD - PAGE);
- REQUIRE(size == PAGE * 2);
- });
-}
-
-TEST_CASE("BufferBase: Border upload range", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 2);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 2);
- buffer.MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
- buffer.ForEachUploadRange(c + WORD - PAGE, PAGE * 2, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD - PAGE);
- REQUIRE(size == PAGE * 2);
- });
- buffer.MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
- buffer.ForEachUploadRange(c + WORD - PAGE, PAGE, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD - PAGE);
- REQUIRE(size == PAGE);
- });
- buffer.ForEachUploadRange(c + WORD, PAGE, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD);
- REQUIRE(size == PAGE);
- });
-}
-
-TEST_CASE("BufferBase: Border upload partial range", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 2);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 2);
- buffer.MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
- buffer.ForEachUploadRange(c + WORD - 1, 2, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD - PAGE);
- REQUIRE(size == PAGE * 2);
- });
- buffer.MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
- buffer.ForEachUploadRange(c + WORD - 1, 1, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD - PAGE);
- REQUIRE(size == PAGE);
- });
- buffer.ForEachUploadRange(c + WORD + 50, 1, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD);
- REQUIRE(size == PAGE);
- });
-}
-
-TEST_CASE("BufferBase: Partial word uploads", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, 0x9d000);
- int num = 0;
- buffer.ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) {
- REQUIRE(offset == 0U);
- REQUIRE(size == WORD);
- ++num;
- });
- REQUIRE(num == 1);
- buffer.ForEachUploadRange(c + WORD, WORD, [&](u64 offset, u64 size) {
- REQUIRE(offset == WORD);
- REQUIRE(size == WORD);
- ++num;
- });
- REQUIRE(num == 2);
- buffer.ForEachUploadRange(c + 0x79000, 0x24000, [&](u64 offset, u64 size) {
- REQUIRE(offset == WORD * 2);
- REQUIRE(size == PAGE * 0x1d);
- ++num;
- });
- REQUIRE(num == 3);
-}
-
-TEST_CASE("BufferBase: Partial page upload", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- int num = 0;
- buffer.MarkRegionAsCpuModified(c + PAGE * 2, PAGE);
- buffer.MarkRegionAsCpuModified(c + PAGE * 9, PAGE);
- buffer.ForEachUploadRange(c, PAGE * 3, [&](u64 offset, u64 size) {
- REQUIRE(offset == PAGE * 2);
- REQUIRE(size == PAGE);
- ++num;
- });
- REQUIRE(num == 1);
- buffer.ForEachUploadRange(c + PAGE * 7, PAGE * 3, [&](u64 offset, u64 size) {
- REQUIRE(offset == PAGE * 9);
- REQUIRE(size == PAGE);
- ++num;
- });
- REQUIRE(num == 2);
-}
-
-TEST_CASE("BufferBase: Partial page upload with multiple words on the right") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 8);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 8);
- buffer.MarkRegionAsCpuModified(c + PAGE * 13, WORD * 7);
- int num = 0;
- buffer.ForEachUploadRange(c + PAGE * 10, WORD * 7, [&](u64 offset, u64 size) {
- REQUIRE(offset == PAGE * 13);
- REQUIRE(size == WORD * 7 - PAGE * 3);
- ++num;
- });
- REQUIRE(num == 1);
- buffer.ForEachUploadRange(c + PAGE, WORD * 8, [&](u64 offset, u64 size) {
- REQUIRE(offset == WORD * 7 + PAGE * 10);
- REQUIRE(size == PAGE * 3);
- ++num;
- });
- REQUIRE(num == 2);
-}
-
-TEST_CASE("BufferBase: Partial page upload with multiple words on the left", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 8);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 8);
- buffer.MarkRegionAsCpuModified(c + PAGE * 13, WORD * 7);
- int num = 0;
- buffer.ForEachUploadRange(c + PAGE * 16, WORD * 7, [&](u64 offset, u64 size) {
- REQUIRE(offset == PAGE * 16);
- REQUIRE(size == WORD * 7 - PAGE * 3);
- ++num;
- });
- REQUIRE(num == 1);
- buffer.ForEachUploadRange(c + PAGE, WORD, [&](u64 offset, u64 size) {
- REQUIRE(offset == PAGE * 13);
- REQUIRE(size == PAGE * 3);
- ++num;
- });
- REQUIRE(num == 2);
-}
-
-TEST_CASE("BufferBase: Partial page upload with multiple words in the middle", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 8);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 8);
- buffer.MarkRegionAsCpuModified(c + PAGE * 13, PAGE * 140);
- int num = 0;
- buffer.ForEachUploadRange(c + PAGE * 16, WORD, [&](u64 offset, u64 size) {
- REQUIRE(offset == PAGE * 16);
- REQUIRE(size == WORD);
- ++num;
- });
- REQUIRE(num == 1);
- buffer.ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) {
- REQUIRE(offset == PAGE * 13);
- REQUIRE(size == PAGE * 3);
- ++num;
- });
- REQUIRE(num == 2);
- buffer.ForEachUploadRange(c, WORD * 8, [&](u64 offset, u64 size) {
- REQUIRE(offset == WORD + PAGE * 16);
- REQUIRE(size == PAGE * 73);
- ++num;
- });
- REQUIRE(num == 3);
-}
-
-TEST_CASE("BufferBase: Empty right bits", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 2048);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 2048);
- buffer.MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
- buffer.ForEachUploadRange(c, WORD * 2048, [](u64 offset, u64 size) {
- REQUIRE(offset == WORD - PAGE);
- REQUIRE(size == PAGE * 2);
- });
-}
-
-TEST_CASE("BufferBase: Out of bound ranges 1", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.MarkRegionAsCpuModified(c, PAGE);
- int num = 0;
- buffer.ForEachUploadRange(c - WORD, WORD, [&](u64 offset, u64 size) { ++num; });
- buffer.ForEachUploadRange(c + WORD, WORD, [&](u64 offset, u64 size) { ++num; });
- buffer.ForEachUploadRange(c - PAGE, PAGE, [&](u64 offset, u64 size) { ++num; });
- REQUIRE(num == 0);
- buffer.ForEachUploadRange(c - PAGE, PAGE * 2, [&](u64 offset, u64 size) { ++num; });
- REQUIRE(num == 1);
- buffer.MarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == 0);
-}
-
-TEST_CASE("BufferBase: Out of bound ranges 2", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, 0x22000);
- REQUIRE_NOTHROW(buffer.UnmarkRegionAsCpuModified(c + 0x22000, PAGE));
- REQUIRE_NOTHROW(buffer.UnmarkRegionAsCpuModified(c + 0x28000, PAGE));
- REQUIRE(rasterizer.Count() == 0);
- REQUIRE_NOTHROW(buffer.UnmarkRegionAsCpuModified(c + 0x21100, PAGE - 0x100));
- REQUIRE(rasterizer.Count() == 1);
- REQUIRE_NOTHROW(buffer.UnmarkRegionAsCpuModified(c - 0x1000, PAGE * 2));
- buffer.UnmarkRegionAsCpuModified(c - 0x3000, PAGE * 2);
- buffer.UnmarkRegionAsCpuModified(c - 0x2000, PAGE * 2);
- REQUIRE(rasterizer.Count() == 2);
-}
-
-TEST_CASE("BufferBase: Out of bound ranges 3", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, 0x310720);
- buffer.UnmarkRegionAsCpuModified(c, 0x310720);
- REQUIRE(rasterizer.Count(c) == 1);
- REQUIRE(rasterizer.Count(c + PAGE) == 1);
- REQUIRE(rasterizer.Count(c + WORD) == 1);
- REQUIRE(rasterizer.Count(c + WORD + PAGE) == 1);
-}
-
-TEST_CASE("BufferBase: Sparse regions 1", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.MarkRegionAsCpuModified(c + PAGE * 1, PAGE);
- buffer.MarkRegionAsCpuModified(c + PAGE * 3, PAGE * 4);
- buffer.ForEachUploadRange(c, WORD, [i = 0](u64 offset, u64 size) mutable {
- static constexpr std::array<u64, 2> offsets{PAGE, PAGE * 3};
- static constexpr std::array<u64, 2> sizes{PAGE, PAGE * 4};
- REQUIRE(offset == offsets.at(i));
- REQUIRE(size == sizes.at(i));
- ++i;
- });
-}
-
-TEST_CASE("BufferBase: Sparse regions 2", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, 0x22000);
- buffer.UnmarkRegionAsCpuModified(c, 0x22000);
- REQUIRE(rasterizer.Count() == 0x22);
- buffer.MarkRegionAsCpuModified(c + PAGE * 0x1B, PAGE);
- buffer.MarkRegionAsCpuModified(c + PAGE * 0x21, PAGE);
- buffer.ForEachUploadRange(c, WORD, [i = 0](u64 offset, u64 size) mutable {
- static constexpr std::array<u64, 2> offsets{PAGE * 0x1B, PAGE * 0x21};
- static constexpr std::array<u64, 2> sizes{PAGE, PAGE};
- REQUIRE(offset == offsets.at(i));
- REQUIRE(size == sizes.at(i));
- ++i;
- });
-}
-
-TEST_CASE("BufferBase: Single page modified range", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, PAGE);
- REQUIRE(buffer.IsRegionCpuModified(c, PAGE));
- buffer.UnmarkRegionAsCpuModified(c, PAGE);
- REQUIRE(!buffer.IsRegionCpuModified(c, PAGE));
-}
-
-TEST_CASE("BufferBase: Two page modified range", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, PAGE * 2);
- REQUIRE(buffer.IsRegionCpuModified(c, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c, PAGE * 2));
- buffer.UnmarkRegionAsCpuModified(c, PAGE);
- REQUIRE(!buffer.IsRegionCpuModified(c, PAGE));
-}
-
-TEST_CASE("BufferBase: Multi word modified ranges", "[video_core]") {
- for (int offset = 0; offset < 4; ++offset) {
- const VAddr address = c + WORD * offset;
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, address, WORD * 4);
- REQUIRE(buffer.IsRegionCpuModified(address, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(address + PAGE * 48, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(address + PAGE * 56, PAGE));
-
- buffer.UnmarkRegionAsCpuModified(address + PAGE * 32, PAGE);
- REQUIRE(buffer.IsRegionCpuModified(address + PAGE, WORD));
- REQUIRE(buffer.IsRegionCpuModified(address + PAGE * 31, PAGE));
- REQUIRE(!buffer.IsRegionCpuModified(address + PAGE * 32, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(address + PAGE * 33, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(address + PAGE * 31, PAGE * 2));
- REQUIRE(buffer.IsRegionCpuModified(address + PAGE * 32, PAGE * 2));
-
- buffer.UnmarkRegionAsCpuModified(address + PAGE * 33, PAGE);
- REQUIRE(!buffer.IsRegionCpuModified(address + PAGE * 32, PAGE * 2));
- }
-}
-
-TEST_CASE("BufferBase: Single page in large buffer", "[video_core]") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 16);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 16);
- REQUIRE(!buffer.IsRegionCpuModified(c, WORD * 16));
-
- buffer.MarkRegionAsCpuModified(c + WORD * 12 + PAGE * 8, PAGE);
- REQUIRE(buffer.IsRegionCpuModified(c, WORD * 16));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 10, WORD * 2));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 11, WORD * 2));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 12, WORD * 2));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 12 + PAGE * 4, PAGE * 8));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 12 + PAGE * 6, PAGE * 8));
- REQUIRE(!buffer.IsRegionCpuModified(c + WORD * 12 + PAGE * 6, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 12 + PAGE * 7, PAGE * 2));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 12 + PAGE * 8, PAGE * 2));
-}
-
-TEST_CASE("BufferBase: Out of bounds region query") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 16);
- REQUIRE(!buffer.IsRegionCpuModified(c - PAGE, PAGE));
- REQUIRE(!buffer.IsRegionCpuModified(c - PAGE * 2, PAGE));
- REQUIRE(!buffer.IsRegionCpuModified(c + WORD * 16, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + WORD * 16 - PAGE, WORD * 64));
- REQUIRE(!buffer.IsRegionCpuModified(c + WORD * 16, WORD * 64));
-}
-
-TEST_CASE("BufferBase: Wrap word regions") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD * 2);
- buffer.UnmarkRegionAsCpuModified(c, WORD * 2);
- buffer.MarkRegionAsCpuModified(c + PAGE * 63, PAGE * 2);
- REQUIRE(buffer.IsRegionCpuModified(c, WORD * 2));
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE * 62, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 63, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 64, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 63, PAGE * 2));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 63, PAGE * 8));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 60, PAGE * 8));
-
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE * 127, WORD * 16));
- buffer.MarkRegionAsCpuModified(c + PAGE * 127, PAGE);
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 127, WORD * 16));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 127, PAGE));
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE * 126, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 126, PAGE * 2));
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE * 128, WORD * 16));
-}
-
-TEST_CASE("BufferBase: Unaligned page region query") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.MarkRegionAsCpuModified(c + 4000, 1000);
- REQUIRE(buffer.IsRegionCpuModified(c, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + 4000, 1000));
- REQUIRE(buffer.IsRegionCpuModified(c + 4000, 1));
-}
-
-TEST_CASE("BufferBase: Cached write") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.CachedCpuWrite(c + PAGE, PAGE);
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE, PAGE));
- buffer.FlushCachedWrites();
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE, PAGE));
- buffer.MarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == 0);
-}
-
-TEST_CASE("BufferBase: Multiple cached write") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.CachedCpuWrite(c + PAGE, PAGE);
- buffer.CachedCpuWrite(c + PAGE * 3, PAGE);
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE, PAGE));
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE * 3, PAGE));
- buffer.FlushCachedWrites();
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE, PAGE));
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE * 3, PAGE));
- buffer.MarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == 0);
-}
-
-TEST_CASE("BufferBase: Cached write unmarked") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.CachedCpuWrite(c + PAGE, PAGE);
- buffer.UnmarkRegionAsCpuModified(c + PAGE, PAGE);
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE, PAGE));
- buffer.FlushCachedWrites();
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE, PAGE));
- buffer.MarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == 0);
-}
-
-TEST_CASE("BufferBase: Cached write iterated") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- buffer.CachedCpuWrite(c + PAGE, PAGE);
- int num = 0;
- buffer.ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) { ++num; });
- REQUIRE(num == 0);
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE, PAGE));
- buffer.FlushCachedWrites();
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE, PAGE));
- buffer.MarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == 0);
-}
-
-TEST_CASE("BufferBase: Cached write downloads") {
- RasterizerInterface rasterizer;
- BufferBase buffer(rasterizer, c, WORD);
- buffer.UnmarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == 64);
- buffer.CachedCpuWrite(c + PAGE, PAGE);
- REQUIRE(rasterizer.Count() == 63);
- buffer.MarkRegionAsGpuModified(c + PAGE, PAGE);
- int num = 0;
- buffer.ForEachDownloadRangeAndClear(c, WORD, [&](u64 offset, u64 size) { ++num; });
- buffer.ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) { ++num; });
- REQUIRE(num == 1);
- REQUIRE(!buffer.IsRegionCpuModified(c + PAGE, PAGE));
- REQUIRE(!buffer.IsRegionGpuModified(c + PAGE, PAGE));
- buffer.FlushCachedWrites();
- REQUIRE(buffer.IsRegionCpuModified(c + PAGE, PAGE));
- REQUIRE(!buffer.IsRegionGpuModified(c + PAGE, PAGE));
- buffer.MarkRegionAsCpuModified(c, WORD);
- REQUIRE(rasterizer.Count() == 0);
-}
diff --git a/src/tests/video_core/memory_tracker.cpp b/src/tests/video_core/memory_tracker.cpp
new file mode 100644
index 000000000..618793668
--- /dev/null
+++ b/src/tests/video_core/memory_tracker.cpp
@@ -0,0 +1,549 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include <memory>
+#include <stdexcept>
+#include <unordered_map>
+
+#include <catch2/catch_test_macros.hpp>
+
+#include "common/alignment.h"
+#include "common/common_types.h"
+#include "video_core/buffer_cache/memory_tracker_base.h"
+
+namespace {
+using Range = std::pair<u64, u64>;
+
+constexpr u64 PAGE = 4096;
+constexpr u64 WORD = 4096 * 64;
+constexpr u64 HIGH_PAGE_BITS = 22;
+constexpr u64 HIGH_PAGE_SIZE = 1ULL << HIGH_PAGE_BITS;
+
+constexpr VAddr c = 16 * HIGH_PAGE_SIZE;
+
+class RasterizerInterface {
+public:
+ void UpdatePagesCachedCount(VAddr addr, u64 size, int delta) {
+ const u64 page_start{addr >> Core::Memory::YUZU_PAGEBITS};
+ const u64 page_end{(addr + size + Core::Memory::YUZU_PAGESIZE - 1) >>
+ Core::Memory::YUZU_PAGEBITS};
+ for (u64 page = page_start; page < page_end; ++page) {
+ int& value = page_table[page];
+ value += delta;
+ if (value < 0) {
+ throw std::logic_error{"negative page"};
+ }
+ if (value == 0) {
+ page_table.erase(page);
+ }
+ }
+ }
+
+ [[nodiscard]] int Count(VAddr addr) const noexcept {
+ const auto it = page_table.find(addr >> Core::Memory::YUZU_PAGEBITS);
+ return it == page_table.end() ? 0 : it->second;
+ }
+
+ [[nodiscard]] unsigned Count() const noexcept {
+ unsigned count = 0;
+ for (const auto& [index, value] : page_table) {
+ count += value;
+ }
+ return count;
+ }
+
+private:
+ std::unordered_map<u64, int> page_table;
+};
+} // Anonymous namespace
+
+using MemoryTracker = VideoCommon::MemoryTrackerBase<RasterizerInterface>;
+
+TEST_CASE("MemoryTracker: Small region", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ REQUIRE(rasterizer.Count() == 0);
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == WORD / PAGE);
+ REQUIRE(memory_track->ModifiedCpuRegion(c, WORD) == Range{0, 0});
+
+ memory_track->MarkRegionAsCpuModified(c + PAGE, 1);
+ REQUIRE(memory_track->ModifiedCpuRegion(c, WORD) == Range{c + PAGE * 1, c + PAGE * 2});
+}
+
+TEST_CASE("MemoryTracker: Large region", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 32);
+ memory_track->MarkRegionAsCpuModified(c + 4096, WORD * 4);
+ REQUIRE(memory_track->ModifiedCpuRegion(c, WORD + PAGE * 2) ==
+ Range{c + PAGE, c + WORD + PAGE * 2});
+ REQUIRE(memory_track->ModifiedCpuRegion(c + PAGE * 2, PAGE * 6) ==
+ Range{c + PAGE * 2, c + PAGE * 8});
+ REQUIRE(memory_track->ModifiedCpuRegion(c, WORD * 32) == Range{c + PAGE, c + WORD * 4 + PAGE});
+ REQUIRE(memory_track->ModifiedCpuRegion(c + WORD * 4, PAGE) ==
+ Range{c + WORD * 4, c + WORD * 4 + PAGE});
+ REQUIRE(memory_track->ModifiedCpuRegion(c + WORD * 3 + PAGE * 63, PAGE) ==
+ Range{c + WORD * 3 + PAGE * 63, c + WORD * 4});
+
+ memory_track->MarkRegionAsCpuModified(c + WORD * 5 + PAGE * 6, PAGE);
+ memory_track->MarkRegionAsCpuModified(c + WORD * 5 + PAGE * 8, PAGE);
+ REQUIRE(memory_track->ModifiedCpuRegion(c + WORD * 5, WORD) ==
+ Range{c + WORD * 5 + PAGE * 6, c + WORD * 5 + PAGE * 9});
+
+ memory_track->UnmarkRegionAsCpuModified(c + WORD * 5 + PAGE * 8, PAGE);
+ REQUIRE(memory_track->ModifiedCpuRegion(c + WORD * 5, WORD) ==
+ Range{c + WORD * 5 + PAGE * 6, c + WORD * 5 + PAGE * 7});
+
+ memory_track->MarkRegionAsCpuModified(c + PAGE, WORD * 31 + PAGE * 63);
+ REQUIRE(memory_track->ModifiedCpuRegion(c, WORD * 32) == Range{c + PAGE, c + WORD * 32});
+
+ memory_track->UnmarkRegionAsCpuModified(c + PAGE * 4, PAGE);
+ memory_track->UnmarkRegionAsCpuModified(c + PAGE * 6, PAGE);
+
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 32);
+ REQUIRE(memory_track->ModifiedCpuRegion(c, WORD * 32) == Range{0, 0});
+}
+
+TEST_CASE("MemoryTracker: Rasterizer counting", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ REQUIRE(rasterizer.Count() == 0);
+ memory_track->UnmarkRegionAsCpuModified(c, PAGE);
+ REQUIRE(rasterizer.Count() == 1);
+ memory_track->MarkRegionAsCpuModified(c, PAGE * 2);
+ REQUIRE(rasterizer.Count() == 0);
+ memory_track->UnmarkRegionAsCpuModified(c, PAGE);
+ memory_track->UnmarkRegionAsCpuModified(c + PAGE, PAGE);
+ REQUIRE(rasterizer.Count() == 2);
+ memory_track->MarkRegionAsCpuModified(c, PAGE * 2);
+ REQUIRE(rasterizer.Count() == 0);
+}
+
+TEST_CASE("MemoryTracker: Basic range", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ memory_track->MarkRegionAsCpuModified(c, PAGE);
+ int num = 0;
+ memory_track->ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c);
+ REQUIRE(size == PAGE);
+ ++num;
+ });
+ REQUIRE(num == 1U);
+}
+
+TEST_CASE("MemoryTracker: Border upload", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 2);
+ memory_track->MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
+ memory_track->ForEachUploadRange(c, WORD * 2, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD - PAGE);
+ REQUIRE(size == PAGE * 2);
+ });
+}
+
+TEST_CASE("MemoryTracker: Border upload range", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 2);
+ memory_track->MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
+ memory_track->ForEachUploadRange(c + WORD - PAGE, PAGE * 2, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD - PAGE);
+ REQUIRE(size == PAGE * 2);
+ });
+ memory_track->MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
+ memory_track->ForEachUploadRange(c + WORD - PAGE, PAGE, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD - PAGE);
+ REQUIRE(size == PAGE);
+ });
+ memory_track->ForEachUploadRange(c + WORD, PAGE, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD);
+ REQUIRE(size == PAGE);
+ });
+}
+
+TEST_CASE("MemoryTracker: Border upload partial range", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 2);
+ memory_track->MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
+ memory_track->ForEachUploadRange(c + WORD - 1, 2, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD - PAGE);
+ REQUIRE(size == PAGE * 2);
+ });
+ memory_track->MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
+ memory_track->ForEachUploadRange(c + WORD - 1, 1, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD - PAGE);
+ REQUIRE(size == PAGE);
+ });
+ memory_track->ForEachUploadRange(c + WORD + 50, 1, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD);
+ REQUIRE(size == PAGE);
+ });
+}
+
+TEST_CASE("MemoryTracker: Partial word uploads", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ int num = 0;
+ memory_track->ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c);
+ REQUIRE(size == WORD);
+ ++num;
+ });
+ REQUIRE(num == 1);
+ memory_track->ForEachUploadRange(c + WORD, WORD, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD);
+ REQUIRE(size == WORD);
+ ++num;
+ });
+ REQUIRE(num == 2);
+ memory_track->ForEachUploadRange(c + 0x79000, 0x24000, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD * 2);
+ REQUIRE(size == PAGE * 0x1d);
+ ++num;
+ });
+ REQUIRE(num == 3);
+}
+
+TEST_CASE("MemoryTracker: Partial page upload", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ int num = 0;
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 2, PAGE);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 9, PAGE);
+ memory_track->ForEachUploadRange(c, PAGE * 3, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + PAGE * 2);
+ REQUIRE(size == PAGE);
+ ++num;
+ });
+ REQUIRE(num == 1);
+ memory_track->ForEachUploadRange(c + PAGE * 7, PAGE * 3, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + PAGE * 9);
+ REQUIRE(size == PAGE);
+ ++num;
+ });
+ REQUIRE(num == 2);
+}
+
+TEST_CASE("MemoryTracker: Partial page upload with multiple words on the right") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 9);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 13, WORD * 7);
+ int num = 0;
+ memory_track->ForEachUploadRange(c + PAGE * 10, WORD * 7, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + PAGE * 13);
+ REQUIRE(size == WORD * 7 - PAGE * 3);
+ ++num;
+ });
+ REQUIRE(num == 1);
+ memory_track->ForEachUploadRange(c + PAGE, WORD * 8, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD * 7 + PAGE * 10);
+ REQUIRE(size == PAGE * 3);
+ ++num;
+ });
+ REQUIRE(num == 2);
+}
+
+TEST_CASE("MemoryTracker: Partial page upload with multiple words on the left", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 8);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 13, WORD * 7);
+ int num = 0;
+ memory_track->ForEachUploadRange(c + PAGE * 16, WORD * 7, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + PAGE * 16);
+ REQUIRE(size == WORD * 7 - PAGE * 3);
+ ++num;
+ });
+ REQUIRE(num == 1);
+ memory_track->ForEachUploadRange(c + PAGE, WORD, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + PAGE * 13);
+ REQUIRE(size == PAGE * 3);
+ ++num;
+ });
+ REQUIRE(num == 2);
+}
+
+TEST_CASE("MemoryTracker: Partial page upload with multiple words in the middle", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 8);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 13, PAGE * 140);
+ int num = 0;
+ memory_track->ForEachUploadRange(c + PAGE * 16, WORD, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + PAGE * 16);
+ REQUIRE(size == WORD);
+ ++num;
+ });
+ REQUIRE(num == 1);
+ memory_track->ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + PAGE * 13);
+ REQUIRE(size == PAGE * 3);
+ ++num;
+ });
+ REQUIRE(num == 2);
+ memory_track->ForEachUploadRange(c, WORD * 8, [&](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD + PAGE * 16);
+ REQUIRE(size == PAGE * 73);
+ ++num;
+ });
+ REQUIRE(num == 3);
+}
+
+TEST_CASE("MemoryTracker: Empty right bits", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 2048);
+ memory_track->MarkRegionAsCpuModified(c + WORD - PAGE, PAGE * 2);
+ memory_track->ForEachUploadRange(c, WORD * 2048, [](u64 offset, u64 size) {
+ REQUIRE(offset == c + WORD - PAGE);
+ REQUIRE(size == PAGE * 2);
+ });
+}
+
+TEST_CASE("MemoryTracker: Out of bound ranges 1", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c - WORD, 3 * WORD);
+ memory_track->MarkRegionAsCpuModified(c, PAGE);
+ REQUIRE(rasterizer.Count() == (3 * WORD - PAGE) / PAGE);
+ int num = 0;
+ memory_track->ForEachUploadRange(c - WORD, WORD, [&](u64 offset, u64 size) { ++num; });
+ memory_track->ForEachUploadRange(c + WORD, WORD, [&](u64 offset, u64 size) { ++num; });
+ memory_track->ForEachUploadRange(c - PAGE, PAGE, [&](u64 offset, u64 size) { ++num; });
+ REQUIRE(num == 0);
+ memory_track->ForEachUploadRange(c - PAGE, PAGE * 2, [&](u64 offset, u64 size) { ++num; });
+ REQUIRE(num == 1);
+ memory_track->MarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == 2 * WORD / PAGE);
+}
+
+TEST_CASE("MemoryTracker: Out of bound ranges 2", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ REQUIRE_NOTHROW(memory_track->UnmarkRegionAsCpuModified(c + 0x22000, PAGE));
+ REQUIRE_NOTHROW(memory_track->UnmarkRegionAsCpuModified(c + 0x28000, PAGE));
+ REQUIRE(rasterizer.Count() == 2);
+ REQUIRE_NOTHROW(memory_track->UnmarkRegionAsCpuModified(c + 0x21100, PAGE - 0x100));
+ REQUIRE(rasterizer.Count() == 3);
+ REQUIRE_NOTHROW(memory_track->UnmarkRegionAsCpuModified(c - PAGE, PAGE * 2));
+ memory_track->UnmarkRegionAsCpuModified(c - PAGE * 3, PAGE * 2);
+ memory_track->UnmarkRegionAsCpuModified(c - PAGE * 2, PAGE * 2);
+ REQUIRE(rasterizer.Count() == 7);
+}
+
+TEST_CASE("MemoryTracker: Out of bound ranges 3", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, 0x310720);
+ REQUIRE(rasterizer.Count(c) == 1);
+ REQUIRE(rasterizer.Count(c + PAGE) == 1);
+ REQUIRE(rasterizer.Count(c + WORD) == 1);
+ REQUIRE(rasterizer.Count(c + WORD + PAGE) == 1);
+}
+
+TEST_CASE("MemoryTracker: Sparse regions 1", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 1, PAGE);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 3, PAGE * 4);
+ memory_track->ForEachUploadRange(c, WORD, [i = 0](u64 offset, u64 size) mutable {
+ static constexpr std::array<u64, 2> offsets{c + PAGE, c + PAGE * 3};
+ static constexpr std::array<u64, 2> sizes{PAGE, PAGE * 4};
+ REQUIRE(offset == offsets.at(i));
+ REQUIRE(size == sizes.at(i));
+ ++i;
+ });
+}
+
+TEST_CASE("MemoryTracker: Sparse regions 2", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, PAGE * 0x23);
+ REQUIRE(rasterizer.Count() == 0x23);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 0x1B, PAGE);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 0x21, PAGE);
+ memory_track->ForEachUploadRange(c, PAGE * 0x23, [i = 0](u64 offset, u64 size) mutable {
+ static constexpr std::array<u64, 3> offsets{c + PAGE * 0x1B, c + PAGE * 0x21};
+ static constexpr std::array<u64, 3> sizes{PAGE, PAGE};
+ REQUIRE(offset == offsets.at(i));
+ REQUIRE(size == sizes.at(i));
+ ++i;
+ });
+}
+
+TEST_CASE("MemoryTracker: Single page modified range", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ REQUIRE(memory_track->IsRegionCpuModified(c, PAGE));
+ memory_track->UnmarkRegionAsCpuModified(c, PAGE);
+ REQUIRE(!memory_track->IsRegionCpuModified(c, PAGE));
+}
+
+TEST_CASE("MemoryTracker: Two page modified range", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ REQUIRE(memory_track->IsRegionCpuModified(c, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c, PAGE * 2));
+ memory_track->UnmarkRegionAsCpuModified(c, PAGE);
+ REQUIRE(!memory_track->IsRegionCpuModified(c, PAGE));
+}
+
+TEST_CASE("MemoryTracker: Multi word modified ranges", "[video_core]") {
+ for (int offset = 0; offset < 4; ++offset) {
+ const VAddr address = c + WORD * offset;
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ REQUIRE(memory_track->IsRegionCpuModified(address, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(address + PAGE * 48, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(address + PAGE * 56, PAGE));
+
+ memory_track->UnmarkRegionAsCpuModified(address + PAGE * 32, PAGE);
+ REQUIRE(memory_track->IsRegionCpuModified(address + PAGE, WORD));
+ REQUIRE(memory_track->IsRegionCpuModified(address + PAGE * 31, PAGE));
+ REQUIRE(!memory_track->IsRegionCpuModified(address + PAGE * 32, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(address + PAGE * 33, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(address + PAGE * 31, PAGE * 2));
+ REQUIRE(memory_track->IsRegionCpuModified(address + PAGE * 32, PAGE * 2));
+
+ memory_track->UnmarkRegionAsCpuModified(address + PAGE * 33, PAGE);
+ REQUIRE(!memory_track->IsRegionCpuModified(address + PAGE * 32, PAGE * 2));
+ }
+}
+
+TEST_CASE("MemoryTracker: Single page in large region", "[video_core]") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 16);
+ REQUIRE(!memory_track->IsRegionCpuModified(c, WORD * 16));
+
+ memory_track->MarkRegionAsCpuModified(c + WORD * 12 + PAGE * 8, PAGE);
+ REQUIRE(memory_track->IsRegionCpuModified(c, WORD * 16));
+ REQUIRE(!memory_track->IsRegionCpuModified(c + WORD * 10, WORD * 2));
+ REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 11, WORD * 2));
+ REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 12, WORD * 2));
+ REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 12 + PAGE * 4, PAGE * 8));
+ REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 12 + PAGE * 6, PAGE * 8));
+ REQUIRE(!memory_track->IsRegionCpuModified(c + WORD * 12 + PAGE * 6, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 12 + PAGE * 7, PAGE * 2));
+ REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 12 + PAGE * 8, PAGE * 2));
+}
+
+TEST_CASE("MemoryTracker: Wrap word regions") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD * 32);
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 63, PAGE * 2);
+ REQUIRE(memory_track->IsRegionCpuModified(c, WORD * 2));
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE * 62, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 63, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 64, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 63, PAGE * 2));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 63, PAGE * 8));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 60, PAGE * 8));
+
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE * 127, WORD * 16));
+ memory_track->MarkRegionAsCpuModified(c + PAGE * 127, PAGE);
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 127, WORD * 16));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 127, PAGE));
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE * 126, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 126, PAGE * 2));
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE * 128, WORD * 16));
+}
+
+TEST_CASE("MemoryTracker: Unaligned page region query") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ memory_track->MarkRegionAsCpuModified(c + 4000, 1000);
+ REQUIRE(memory_track->IsRegionCpuModified(c, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + 4000, 1000));
+ REQUIRE(memory_track->IsRegionCpuModified(c + 4000, 1));
+}
+
+TEST_CASE("MemoryTracker: Cached write") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ memory_track->CachedCpuWrite(c + PAGE, c + PAGE);
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ memory_track->FlushCachedWrites();
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ memory_track->MarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == 0);
+}
+
+TEST_CASE("MemoryTracker: Multiple cached write") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ memory_track->CachedCpuWrite(c + PAGE, PAGE);
+ memory_track->CachedCpuWrite(c + PAGE * 3, PAGE);
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE * 3, PAGE));
+ memory_track->FlushCachedWrites();
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE * 3, PAGE));
+ memory_track->MarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == 0);
+}
+
+TEST_CASE("MemoryTracker: Cached write unmarked") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ memory_track->CachedCpuWrite(c + PAGE, PAGE);
+ memory_track->UnmarkRegionAsCpuModified(c + PAGE, PAGE);
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ memory_track->FlushCachedWrites();
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ memory_track->MarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == 0);
+}
+
+TEST_CASE("MemoryTracker: Cached write iterated") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ memory_track->CachedCpuWrite(c + PAGE, PAGE);
+ int num = 0;
+ memory_track->ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) { ++num; });
+ REQUIRE(num == 0);
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ memory_track->FlushCachedWrites();
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ memory_track->MarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == 0);
+}
+
+TEST_CASE("MemoryTracker: Cached write downloads") {
+ RasterizerInterface rasterizer;
+ std::unique_ptr<MemoryTracker> memory_track(std::make_unique<MemoryTracker>(rasterizer));
+ memory_track->UnmarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == 64);
+ memory_track->CachedCpuWrite(c + PAGE, PAGE);
+ REQUIRE(rasterizer.Count() == 63);
+ memory_track->MarkRegionAsGpuModified(c + PAGE, PAGE);
+ int num = 0;
+ memory_track->ForEachDownloadRangeAndClear(c, WORD, [&](u64 offset, u64 size) { ++num; });
+ REQUIRE(num == 0);
+ num = 0;
+ memory_track->ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) { ++num; });
+ REQUIRE(num == 0);
+ REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ REQUIRE(memory_track->IsRegionGpuModified(c + PAGE, PAGE));
+ memory_track->FlushCachedWrites();
+ REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE));
+ REQUIRE(!memory_track->IsRegionGpuModified(c + PAGE, PAGE));
+ memory_track->MarkRegionAsCpuModified(c, WORD);
+ REQUIRE(rasterizer.Count() == 0);
+} \ No newline at end of file
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index b474eb363..e9e6f278d 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -11,8 +11,11 @@ endif()
add_library(video_core STATIC
buffer_cache/buffer_base.h
+ buffer_cache/buffer_cache_base.h
buffer_cache/buffer_cache.cpp
buffer_cache/buffer_cache.h
+ buffer_cache/memory_tracker_base.h
+ buffer_cache/word_manager.h
cache_types.h
cdma_pusher.cpp
cdma_pusher.h
@@ -52,6 +55,8 @@ add_library(video_core STATIC
engines/puller.cpp
engines/puller.h
framebuffer_config.h
+ fsr.cpp
+ fsr.h
host1x/codecs/codec.cpp
host1x/codecs/codec.h
host1x/codecs/h264.cpp
@@ -102,6 +107,7 @@ add_library(video_core STATIC
renderer_null/renderer_null.h
renderer_opengl/blit_image.cpp
renderer_opengl/blit_image.h
+ renderer_opengl/gl_buffer_cache_base.cpp
renderer_opengl/gl_buffer_cache.cpp
renderer_opengl/gl_buffer_cache.h
renderer_opengl/gl_compute_pipeline.cpp
@@ -110,6 +116,8 @@ add_library(video_core STATIC
renderer_opengl/gl_device.h
renderer_opengl/gl_fence_manager.cpp
renderer_opengl/gl_fence_manager.h
+ renderer_opengl/gl_fsr.cpp
+ renderer_opengl/gl_fsr.h
renderer_opengl/gl_graphics_pipeline.cpp
renderer_opengl/gl_graphics_pipeline.h
renderer_opengl/gl_rasterizer.cpp
@@ -125,8 +133,8 @@ add_library(video_core STATIC
renderer_opengl/gl_shader_util.h
renderer_opengl/gl_state_tracker.cpp
renderer_opengl/gl_state_tracker.h
- renderer_opengl/gl_stream_buffer.cpp
- renderer_opengl/gl_stream_buffer.h
+ renderer_opengl/gl_staging_buffer_pool.cpp
+ renderer_opengl/gl_staging_buffer_pool.h
renderer_opengl/gl_texture_cache.cpp
renderer_opengl/gl_texture_cache.h
renderer_opengl/gl_texture_cache_base.cpp
@@ -150,6 +158,7 @@ add_library(video_core STATIC
renderer_vulkan/renderer_vulkan.cpp
renderer_vulkan/vk_blit_screen.cpp
renderer_vulkan/vk_blit_screen.h
+ renderer_vulkan/vk_buffer_cache_base.cpp
renderer_vulkan/vk_buffer_cache.cpp
renderer_vulkan/vk_buffer_cache.h
renderer_vulkan/vk_command_pool.cpp
@@ -170,6 +179,8 @@ add_library(video_core STATIC
renderer_vulkan/vk_master_semaphore.h
renderer_vulkan/vk_pipeline_cache.cpp
renderer_vulkan/vk_pipeline_cache.h
+ renderer_vulkan/vk_present_manager.cpp
+ renderer_vulkan/vk_present_manager.h
renderer_vulkan/vk_query_cache.cpp
renderer_vulkan/vk_query_cache.h
renderer_vulkan/vk_rasterizer.cpp
@@ -235,10 +246,14 @@ add_library(video_core STATIC
texture_cache/util.h
textures/astc.h
textures/astc.cpp
+ textures/bcn.cpp
+ textures/bcn.h
textures/decoders.cpp
textures/decoders.h
textures/texture.cpp
textures/texture.h
+ textures/workers.cpp
+ textures/workers.h
transform_feedback.cpp
transform_feedback.h
video_core.cpp
@@ -264,9 +279,9 @@ add_library(video_core STATIC
create_target_directory_groups(video_core)
target_link_libraries(video_core PUBLIC common core)
-target_link_libraries(video_core PUBLIC glad shader_recompiler)
+target_link_libraries(video_core PUBLIC glad shader_recompiler stb)
-if (YUZU_USE_BUNDLED_FFMPEG AND NOT WIN32)
+if (YUZU_USE_BUNDLED_FFMPEG AND NOT (WIN32 OR ANDROID))
add_dependencies(video_core ffmpeg-build)
endif()
@@ -276,7 +291,7 @@ target_link_options(video_core PRIVATE ${FFmpeg_LDFLAGS})
add_dependencies(video_core host_shaders)
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
-target_link_libraries(video_core PRIVATE sirit Vulkan::Headers)
+target_link_libraries(video_core PRIVATE sirit Vulkan::Headers vma)
if (ENABLE_NSIGHT_AFTERMATH)
if (NOT DEFINED ENV{NSIGHT_AFTERMATH_SDK})
@@ -326,3 +341,11 @@ endif()
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(video_core PRIVATE precompiled_headers.h)
endif()
+
+if (YUZU_ENABLE_LTO)
+ set_property(TARGET video_core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
+endif()
+
+if (ANDROID AND ARCHITECTURE_arm64)
+ target_link_libraries(video_core PRIVATE adrenotools)
+endif()
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h
index c47b7d866..0bb3bf8ae 100644
--- a/src/video_core/buffer_cache/buffer_base.h
+++ b/src/video_core/buffer_cache/buffer_base.h
@@ -1,5 +1,5 @@
-// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
@@ -11,15 +11,14 @@
#include "common/alignment.h"
#include "common/common_funcs.h"
#include "common/common_types.h"
-#include "common/div_ceil.h"
-#include "common/settings.h"
-#include "core/memory.h"
+#include "video_core/buffer_cache/word_manager.h"
namespace VideoCommon {
enum class BufferFlagBits {
Picked = 1 << 0,
CachedWrites = 1 << 1,
+ PreemtiveDownload = 1 << 2,
};
DECLARE_ENUM_FLAG_OPERATORS(BufferFlagBits)
@@ -36,116 +35,12 @@ struct NullBufferParams {};
*/
template <class RasterizerInterface>
class BufferBase {
- static constexpr u64 PAGES_PER_WORD = 64;
- static constexpr u64 BYTES_PER_PAGE = Core::Memory::YUZU_PAGESIZE;
- static constexpr u64 BYTES_PER_WORD = PAGES_PER_WORD * BYTES_PER_PAGE;
-
- /// Vector tracking modified pages tightly packed with small vector optimization
- union WordsArray {
- /// Returns the pointer to the words state
- [[nodiscard]] const u64* Pointer(bool is_short) const noexcept {
- return is_short ? &stack : heap;
- }
-
- /// Returns the pointer to the words state
- [[nodiscard]] u64* Pointer(bool is_short) noexcept {
- return is_short ? &stack : heap;
- }
-
- u64 stack = 0; ///< Small buffers storage
- u64* heap; ///< Not-small buffers pointer to the storage
- };
-
- struct Words {
- explicit Words() = default;
- explicit Words(u64 size_bytes_) : size_bytes{size_bytes_} {
- if (IsShort()) {
- cpu.stack = ~u64{0};
- gpu.stack = 0;
- cached_cpu.stack = 0;
- untracked.stack = ~u64{0};
- } else {
- // Share allocation between CPU and GPU pages and set their default values
- const size_t num_words = NumWords();
- u64* const alloc = new u64[num_words * 4];
- cpu.heap = alloc;
- gpu.heap = alloc + num_words;
- cached_cpu.heap = alloc + num_words * 2;
- untracked.heap = alloc + num_words * 3;
- std::fill_n(cpu.heap, num_words, ~u64{0});
- std::fill_n(gpu.heap, num_words, 0);
- std::fill_n(cached_cpu.heap, num_words, 0);
- std::fill_n(untracked.heap, num_words, ~u64{0});
- }
- // Clean up tailing bits
- const u64 last_word_size = size_bytes % BYTES_PER_WORD;
- const u64 last_local_page = Common::DivCeil(last_word_size, BYTES_PER_PAGE);
- const u64 shift = (PAGES_PER_WORD - last_local_page) % PAGES_PER_WORD;
- const u64 last_word = (~u64{0} << shift) >> shift;
- cpu.Pointer(IsShort())[NumWords() - 1] = last_word;
- untracked.Pointer(IsShort())[NumWords() - 1] = last_word;
- }
-
- ~Words() {
- Release();
- }
-
- Words& operator=(Words&& rhs) noexcept {
- Release();
- size_bytes = rhs.size_bytes;
- cpu = rhs.cpu;
- gpu = rhs.gpu;
- cached_cpu = rhs.cached_cpu;
- untracked = rhs.untracked;
- rhs.cpu.heap = nullptr;
- return *this;
- }
-
- Words(Words&& rhs) noexcept
- : size_bytes{rhs.size_bytes}, cpu{rhs.cpu}, gpu{rhs.gpu},
- cached_cpu{rhs.cached_cpu}, untracked{rhs.untracked} {
- rhs.cpu.heap = nullptr;
- }
-
- Words& operator=(const Words&) = delete;
- Words(const Words&) = delete;
-
- /// Returns true when the buffer fits in the small vector optimization
- [[nodiscard]] bool IsShort() const noexcept {
- return size_bytes <= BYTES_PER_WORD;
- }
-
- /// Returns the number of words of the buffer
- [[nodiscard]] size_t NumWords() const noexcept {
- return Common::DivCeil(size_bytes, BYTES_PER_WORD);
- }
-
- /// Release buffer resources
- void Release() {
- if (!IsShort()) {
- // CPU written words is the base for the heap allocation
- delete[] cpu.heap;
- }
- }
-
- u64 size_bytes = 0;
- WordsArray cpu;
- WordsArray gpu;
- WordsArray cached_cpu;
- WordsArray untracked;
- };
-
- enum class Type {
- CPU,
- GPU,
- CachedCPU,
- Untracked,
- };
-
public:
- explicit BufferBase(RasterizerInterface& rasterizer_, VAddr cpu_addr_, u64 size_bytes)
- : rasterizer{&rasterizer_}, cpu_addr{Common::AlignDown(cpu_addr_, BYTES_PER_PAGE)},
- words(Common::AlignUp(size_bytes + (cpu_addr_ - cpu_addr), BYTES_PER_PAGE)) {}
+ static constexpr u64 BASE_PAGE_BITS = 16;
+ static constexpr u64 BASE_PAGE_SIZE = 1ULL << BASE_PAGE_BITS;
+
+ explicit BufferBase(RasterizerInterface& rasterizer_, VAddr cpu_addr_, u64 size_bytes_)
+ : cpu_addr{cpu_addr_}, size_bytes{size_bytes_} {}
explicit BufferBase(NullBufferParams) {}
@@ -155,105 +50,15 @@ public:
BufferBase& operator=(BufferBase&&) = default;
BufferBase(BufferBase&&) = default;
- /// Returns the inclusive CPU modified range in a begin end pair
- [[nodiscard]] std::pair<u64, u64> ModifiedCpuRegion(VAddr query_cpu_addr,
- u64 query_size) const noexcept {
- const u64 offset = query_cpu_addr - cpu_addr;
- return ModifiedRegion<Type::CPU>(offset, query_size);
- }
-
- /// Returns the inclusive GPU modified range in a begin end pair
- [[nodiscard]] std::pair<u64, u64> ModifiedGpuRegion(VAddr query_cpu_addr,
- u64 query_size) const noexcept {
- const u64 offset = query_cpu_addr - cpu_addr;
- return ModifiedRegion<Type::GPU>(offset, query_size);
- }
-
- /// Returns true if a region has been modified from the CPU
- [[nodiscard]] bool IsRegionCpuModified(VAddr query_cpu_addr, u64 query_size) const noexcept {
- const u64 offset = query_cpu_addr - cpu_addr;
- return IsRegionModified<Type::CPU>(offset, query_size);
- }
-
- /// Returns true if a region has been modified from the GPU
- [[nodiscard]] bool IsRegionGpuModified(VAddr query_cpu_addr, u64 query_size) const noexcept {
- const u64 offset = query_cpu_addr - cpu_addr;
- return IsRegionModified<Type::GPU>(offset, query_size);
- }
-
- /// Mark region as CPU modified, notifying the rasterizer about this change
- void MarkRegionAsCpuModified(VAddr dirty_cpu_addr, u64 size) {
- ChangeRegionState<Type::CPU, true>(dirty_cpu_addr, size);
- }
-
- /// Unmark region as CPU modified, notifying the rasterizer about this change
- void UnmarkRegionAsCpuModified(VAddr dirty_cpu_addr, u64 size) {
- ChangeRegionState<Type::CPU, false>(dirty_cpu_addr, size);
- }
-
- /// Mark region as modified from the host GPU
- void MarkRegionAsGpuModified(VAddr dirty_cpu_addr, u64 size) noexcept {
- ChangeRegionState<Type::GPU, true>(dirty_cpu_addr, size);
- }
-
- /// Unmark region as modified from the host GPU
- void UnmarkRegionAsGpuModified(VAddr dirty_cpu_addr, u64 size) noexcept {
- ChangeRegionState<Type::GPU, false>(dirty_cpu_addr, size);
- }
-
- /// Mark region as modified from the CPU
- /// but don't mark it as modified until FlusHCachedWrites is called.
- void CachedCpuWrite(VAddr dirty_cpu_addr, u64 size) {
- flags |= BufferFlagBits::CachedWrites;
- ChangeRegionState<Type::CachedCPU, true>(dirty_cpu_addr, size);
- }
-
- /// Flushes cached CPU writes, and notify the rasterizer about the deltas
- void FlushCachedWrites() noexcept {
- flags &= ~BufferFlagBits::CachedWrites;
- const u64 num_words = NumWords();
- u64* const cached_words = Array<Type::CachedCPU>();
- u64* const untracked_words = Array<Type::Untracked>();
- u64* const cpu_words = Array<Type::CPU>();
- for (u64 word_index = 0; word_index < num_words; ++word_index) {
- const u64 cached_bits = cached_words[word_index];
- NotifyRasterizer<false>(word_index, untracked_words[word_index], cached_bits);
- untracked_words[word_index] |= cached_bits;
- cpu_words[word_index] |= cached_bits;
- if (!Settings::values.use_pessimistic_flushes) {
- cached_words[word_index] = 0;
- }
- }
- }
-
- /// Call 'func' for each CPU modified range and unmark those pages as CPU modified
- template <typename Func>
- void ForEachUploadRange(VAddr query_cpu_range, u64 size, Func&& func) {
- ForEachModifiedRange<Type::CPU>(query_cpu_range, size, true, func);
- }
-
- /// Call 'func' for each GPU modified range and unmark those pages as GPU modified
- template <typename Func>
- void ForEachDownloadRange(VAddr query_cpu_range, u64 size, bool clear, Func&& func) {
- ForEachModifiedRange<Type::GPU>(query_cpu_range, size, clear, func);
- }
-
- template <typename Func>
- void ForEachDownloadRangeAndClear(VAddr query_cpu_range, u64 size, Func&& func) {
- ForEachModifiedRange<Type::GPU>(query_cpu_range, size, true, func);
- }
-
- /// Call 'func' for each GPU modified range and unmark those pages as GPU modified
- template <typename Func>
- void ForEachDownloadRange(Func&& func) {
- ForEachModifiedRange<Type::GPU>(cpu_addr, SizeBytes(), true, func);
- }
-
/// Mark buffer as picked
void Pick() noexcept {
flags |= BufferFlagBits::Picked;
}
+ void MarkPreemtiveDownload() noexcept {
+ flags |= BufferFlagBits::PreemtiveDownload;
+ }
+
/// Unmark buffer as picked
void Unpick() noexcept {
flags &= ~BufferFlagBits::Picked;
@@ -284,6 +89,10 @@ public:
return True(flags & BufferFlagBits::CachedWrites);
}
+ bool IsPreemtiveDownload() const noexcept {
+ return True(flags & BufferFlagBits::PreemtiveDownload);
+ }
+
/// Returns the base CPU address of the buffer
[[nodiscard]] VAddr CpuAddr() const noexcept {
return cpu_addr;
@@ -295,11 +104,6 @@ public:
return static_cast<u32>(other_cpu_addr - cpu_addr);
}
- /// Returns the size in bytes of the buffer
- [[nodiscard]] u64 SizeBytes() const noexcept {
- return words.size_bytes;
- }
-
size_t getLRUID() const noexcept {
return lru_id;
}
@@ -308,303 +112,16 @@ public:
lru_id = lru_id_;
}
-private:
- template <Type type>
- u64* Array() noexcept {
- if constexpr (type == Type::CPU) {
- return words.cpu.Pointer(IsShort());
- } else if constexpr (type == Type::GPU) {
- return words.gpu.Pointer(IsShort());
- } else if constexpr (type == Type::CachedCPU) {
- return words.cached_cpu.Pointer(IsShort());
- } else if constexpr (type == Type::Untracked) {
- return words.untracked.Pointer(IsShort());
- }
- }
-
- template <Type type>
- const u64* Array() const noexcept {
- if constexpr (type == Type::CPU) {
- return words.cpu.Pointer(IsShort());
- } else if constexpr (type == Type::GPU) {
- return words.gpu.Pointer(IsShort());
- } else if constexpr (type == Type::CachedCPU) {
- return words.cached_cpu.Pointer(IsShort());
- } else if constexpr (type == Type::Untracked) {
- return words.untracked.Pointer(IsShort());
- }
- }
-
- /**
- * Change the state of a range of pages
- *
- * @param dirty_addr Base address to mark or unmark as modified
- * @param size Size in bytes to mark or unmark as modified
- */
- template <Type type, bool enable>
- void ChangeRegionState(u64 dirty_addr, s64 size) noexcept(type == Type::GPU) {
- const s64 difference = dirty_addr - cpu_addr;
- const u64 offset = std::max<s64>(difference, 0);
- size += std::min<s64>(difference, 0);
- if (offset >= SizeBytes() || size < 0) {
- return;
- }
- u64* const untracked_words = Array<Type::Untracked>();
- u64* const state_words = Array<type>();
- const u64 offset_end = std::min(offset + size, SizeBytes());
- const u64 begin_page_index = offset / BYTES_PER_PAGE;
- const u64 begin_word_index = begin_page_index / PAGES_PER_WORD;
- const u64 end_page_index = Common::DivCeil(offset_end, BYTES_PER_PAGE);
- const u64 end_word_index = Common::DivCeil(end_page_index, PAGES_PER_WORD);
- u64 page_index = begin_page_index % PAGES_PER_WORD;
- u64 word_index = begin_word_index;
- while (word_index < end_word_index) {
- const u64 next_word_first_page = (word_index + 1) * PAGES_PER_WORD;
- const u64 left_offset =
- std::min(next_word_first_page - end_page_index, PAGES_PER_WORD) % PAGES_PER_WORD;
- const u64 right_offset = page_index;
- u64 bits = ~u64{0};
- bits = (bits >> right_offset) << right_offset;
- bits = (bits << left_offset) >> left_offset;
- if constexpr (type == Type::CPU || type == Type::CachedCPU) {
- NotifyRasterizer<!enable>(word_index, untracked_words[word_index], bits);
- }
- if constexpr (enable) {
- state_words[word_index] |= bits;
- if constexpr (type == Type::CPU || type == Type::CachedCPU) {
- untracked_words[word_index] |= bits;
- }
- } else {
- state_words[word_index] &= ~bits;
- if constexpr (type == Type::CPU || type == Type::CachedCPU) {
- untracked_words[word_index] &= ~bits;
- }
- }
- page_index = 0;
- ++word_index;
- }
- }
-
- /**
- * Notify rasterizer about changes in the CPU tracking state of a word in the buffer
- *
- * @param word_index Index to the word to notify to the rasterizer
- * @param current_bits Current state of the word
- * @param new_bits New state of the word
- *
- * @tparam add_to_rasterizer True when the rasterizer should start tracking the new pages
- */
- template <bool add_to_rasterizer>
- void NotifyRasterizer(u64 word_index, u64 current_bits, u64 new_bits) const {
- u64 changed_bits = (add_to_rasterizer ? current_bits : ~current_bits) & new_bits;
- VAddr addr = cpu_addr + word_index * BYTES_PER_WORD;
- while (changed_bits != 0) {
- const int empty_bits = std::countr_zero(changed_bits);
- addr += empty_bits * BYTES_PER_PAGE;
- changed_bits >>= empty_bits;
-
- const u32 continuous_bits = std::countr_one(changed_bits);
- const u64 size = continuous_bits * BYTES_PER_PAGE;
- const VAddr begin_addr = addr;
- addr += size;
- changed_bits = continuous_bits < PAGES_PER_WORD ? (changed_bits >> continuous_bits) : 0;
- rasterizer->UpdatePagesCachedCount(begin_addr, size, add_to_rasterizer ? 1 : -1);
- }
- }
-
- /**
- * Loop over each page in the given range, turn off those bits and notify the rasterizer if
- * needed. Call the given function on each turned off range.
- *
- * @param query_cpu_range Base CPU address to loop over
- * @param size Size in bytes of the CPU range to loop over
- * @param func Function to call for each turned off region
- */
- template <Type type, typename Func>
- void ForEachModifiedRange(VAddr query_cpu_range, s64 size, bool clear, Func&& func) {
- static_assert(type != Type::Untracked);
-
- const s64 difference = query_cpu_range - cpu_addr;
- const u64 query_begin = std::max<s64>(difference, 0);
- size += std::min<s64>(difference, 0);
- if (query_begin >= SizeBytes() || size < 0) {
- return;
- }
- [[maybe_unused]] u64* const untracked_words = Array<Type::Untracked>();
- u64* const state_words = Array<type>();
- const u64 query_end = query_begin + std::min(static_cast<u64>(size), SizeBytes());
- u64* const words_begin = state_words + query_begin / BYTES_PER_WORD;
- u64* const words_end = state_words + Common::DivCeil(query_end, BYTES_PER_WORD);
-
- const auto modified = [](u64 word) { return word != 0; };
- const auto first_modified_word = std::find_if(words_begin, words_end, modified);
- if (first_modified_word == words_end) {
- // Exit early when the buffer is not modified
- return;
- }
- const auto last_modified_word = std::find_if_not(first_modified_word, words_end, modified);
-
- const u64 word_index_begin = std::distance(state_words, first_modified_word);
- const u64 word_index_end = std::distance(state_words, last_modified_word);
-
- const unsigned local_page_begin = std::countr_zero(*first_modified_word);
- const unsigned local_page_end =
- static_cast<unsigned>(PAGES_PER_WORD) - std::countl_zero(last_modified_word[-1]);
- const u64 word_page_begin = word_index_begin * PAGES_PER_WORD;
- const u64 word_page_end = (word_index_end - 1) * PAGES_PER_WORD;
- const u64 query_page_begin = query_begin / BYTES_PER_PAGE;
- const u64 query_page_end = Common::DivCeil(query_end, BYTES_PER_PAGE);
- const u64 page_index_begin = std::max(word_page_begin + local_page_begin, query_page_begin);
- const u64 page_index_end = std::min(word_page_end + local_page_end, query_page_end);
- const u64 first_word_page_begin = page_index_begin % PAGES_PER_WORD;
- const u64 last_word_page_end = (page_index_end - 1) % PAGES_PER_WORD + 1;
-
- u64 page_begin = first_word_page_begin;
- u64 current_base = 0;
- u64 current_size = 0;
- bool on_going = false;
- for (u64 word_index = word_index_begin; word_index < word_index_end; ++word_index) {
- const bool is_last_word = word_index + 1 == word_index_end;
- const u64 page_end = is_last_word ? last_word_page_end : PAGES_PER_WORD;
- const u64 right_offset = page_begin;
- const u64 left_offset = PAGES_PER_WORD - page_end;
- u64 bits = ~u64{0};
- bits = (bits >> right_offset) << right_offset;
- bits = (bits << left_offset) >> left_offset;
-
- const u64 current_word = state_words[word_index] & bits;
- if (clear) {
- state_words[word_index] &= ~bits;
- }
-
- if constexpr (type == Type::CPU) {
- const u64 current_bits = untracked_words[word_index] & bits;
- untracked_words[word_index] &= ~bits;
- NotifyRasterizer<true>(word_index, current_bits, ~u64{0});
- }
- // Exclude CPU modified pages when visiting GPU pages
- const u64 word = current_word;
- u64 page = page_begin;
- page_begin = 0;
-
- while (page < page_end) {
- const int empty_bits = std::countr_zero(word >> page);
- if (on_going && empty_bits != 0) {
- InvokeModifiedRange(func, current_size, current_base);
- current_size = 0;
- on_going = false;
- }
- if (empty_bits == PAGES_PER_WORD) {
- break;
- }
- page += empty_bits;
-
- const int continuous_bits = std::countr_one(word >> page);
- if (!on_going && continuous_bits != 0) {
- current_base = word_index * PAGES_PER_WORD + page;
- on_going = true;
- }
- current_size += continuous_bits;
- page += continuous_bits;
- }
- }
- if (on_going && current_size > 0) {
- InvokeModifiedRange(func, current_size, current_base);
- }
- }
-
- template <typename Func>
- void InvokeModifiedRange(Func&& func, u64 current_size, u64 current_base) {
- const u64 current_size_bytes = current_size * BYTES_PER_PAGE;
- const u64 offset_begin = current_base * BYTES_PER_PAGE;
- const u64 offset_end = std::min(offset_begin + current_size_bytes, SizeBytes());
- func(offset_begin, offset_end - offset_begin);
- }
-
- /**
- * Returns true when a region has been modified
- *
- * @param offset Offset in bytes from the start of the buffer
- * @param size Size in bytes of the region to query for modifications
- */
- template <Type type>
- [[nodiscard]] bool IsRegionModified(u64 offset, u64 size) const noexcept {
- static_assert(type != Type::Untracked);
-
- [[maybe_unused]] const u64* const untracked_words = Array<Type::Untracked>();
- const u64* const state_words = Array<type>();
- const u64 num_query_words = size / BYTES_PER_WORD + 1;
- const u64 word_begin = offset / BYTES_PER_WORD;
- const u64 word_end = std::min<u64>(word_begin + num_query_words, NumWords());
- const u64 page_limit = Common::DivCeil(offset + size, BYTES_PER_PAGE);
- u64 page_index = (offset / BYTES_PER_PAGE) % PAGES_PER_WORD;
- for (u64 word_index = word_begin; word_index < word_end; ++word_index, page_index = 0) {
- const u64 word = state_words[word_index];
- if (word == 0) {
- continue;
- }
- const u64 page_end = std::min((word_index + 1) * PAGES_PER_WORD, page_limit);
- const u64 local_page_end = page_end % PAGES_PER_WORD;
- const u64 page_end_shift = (PAGES_PER_WORD - local_page_end) % PAGES_PER_WORD;
- if (((word >> page_index) << page_index) << page_end_shift != 0) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Returns a begin end pair with the inclusive modified region
- *
- * @param offset Offset in bytes from the start of the buffer
- * @param size Size in bytes of the region to query for modifications
- */
- template <Type type>
- [[nodiscard]] std::pair<u64, u64> ModifiedRegion(u64 offset, u64 size) const noexcept {
- static_assert(type != Type::Untracked);
-
- [[maybe_unused]] const u64* const untracked_words = Array<Type::Untracked>();
- const u64* const state_words = Array<type>();
- const u64 num_query_words = size / BYTES_PER_WORD + 1;
- const u64 word_begin = offset / BYTES_PER_WORD;
- const u64 word_end = std::min(word_begin + num_query_words, NumWords());
- const u64 page_base = offset / BYTES_PER_PAGE;
- const u64 page_limit = Common::DivCeil(offset + size, BYTES_PER_PAGE);
- u64 begin = std::numeric_limits<u64>::max();
- u64 end = 0;
- for (u64 word_index = word_begin; word_index < word_end; ++word_index) {
- const u64 word = state_words[word_index];
- if (word == 0) {
- continue;
- }
- const u64 local_page_begin = std::countr_zero(word);
- const u64 local_page_end = PAGES_PER_WORD - std::countl_zero(word);
- const u64 page_index = word_index * PAGES_PER_WORD;
- const u64 page_begin = std::max(page_index + local_page_begin, page_base);
- const u64 page_end = std::min(page_index + local_page_end, page_limit);
- begin = std::min(begin, page_begin);
- end = std::max(end, page_end);
- }
- static constexpr std::pair<u64, u64> EMPTY{0, 0};
- return begin < end ? std::make_pair(begin * BYTES_PER_PAGE, end * BYTES_PER_PAGE) : EMPTY;
- }
-
- /// Returns the number of words of the buffer
- [[nodiscard]] size_t NumWords() const noexcept {
- return words.NumWords();
+ size_t SizeBytes() const {
+ return size_bytes;
}
- /// Returns true when the buffer fits in the small vector optimization
- [[nodiscard]] bool IsShort() const noexcept {
- return words.IsShort();
- }
-
- RasterizerInterface* rasterizer = nullptr;
+private:
VAddr cpu_addr = 0;
- Words words;
BufferFlagBits flags{};
int stream_score = 0;
size_t lru_id = SIZE_MAX;
+ size_t size_bytes = 0;
};
} // namespace VideoCommon
diff --git a/src/video_core/buffer_cache/buffer_cache.cpp b/src/video_core/buffer_cache/buffer_cache.cpp
index a16308b60..4b4f7061b 100644
--- a/src/video_core/buffer_cache/buffer_cache.cpp
+++ b/src/video_core/buffer_cache/buffer_cache.cpp
@@ -1,7 +1,9 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
#include "common/microprofile.h"
+#include "video_core/buffer_cache/buffer_cache_base.h"
+#include "video_core/control/channel_state_cache.inc"
namespace VideoCommon {
@@ -9,4 +11,6 @@ MICROPROFILE_DEFINE(GPU_PrepareBuffers, "GPU", "Prepare buffers", MP_RGB(224, 12
MICROPROFILE_DEFINE(GPU_BindUploadBuffers, "GPU", "Bind and upload buffers", MP_RGB(224, 128, 128));
MICROPROFILE_DEFINE(GPU_DownloadMemory, "GPU", "Download buffers", MP_RGB(224, 128, 128));
+template class VideoCommon::ChannelSetupCaches<VideoCommon::BufferCacheChannelInfo>;
+
} // namespace VideoCommon
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index 627917ab6..58a45ab67 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -1,467 +1,27 @@
-// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <algorithm>
-#include <array>
#include <memory>
-#include <mutex>
#include <numeric>
-#include <span>
-#include <vector>
-
-#include <boost/container/small_vector.hpp>
-#include <boost/icl/interval_set.hpp>
-
-#include "common/common_types.h"
-#include "common/div_ceil.h"
-#include "common/literals.h"
-#include "common/lru_cache.h"
-#include "common/microprofile.h"
-#include "common/polyfill_ranges.h"
-#include "common/scratch_buffer.h"
-#include "common/settings.h"
-#include "core/memory.h"
-#include "video_core/buffer_cache/buffer_base.h"
-#include "video_core/control/channel_state_cache.h"
-#include "video_core/delayed_destruction_ring.h"
-#include "video_core/dirty_flags.h"
-#include "video_core/engines/draw_manager.h"
-#include "video_core/engines/kepler_compute.h"
-#include "video_core/engines/maxwell_3d.h"
-#include "video_core/memory_manager.h"
-#include "video_core/rasterizer_interface.h"
-#include "video_core/surface.h"
-#include "video_core/texture_cache/slot_vector.h"
-#include "video_core/texture_cache/types.h"
-namespace VideoCommon {
-
-MICROPROFILE_DECLARE(GPU_PrepareBuffers);
-MICROPROFILE_DECLARE(GPU_BindUploadBuffers);
-MICROPROFILE_DECLARE(GPU_DownloadMemory);
-
-using BufferId = SlotId;
-
-using VideoCore::Surface::PixelFormat;
-using namespace Common::Literals;
-
-constexpr u32 NUM_VERTEX_BUFFERS = 32;
-constexpr u32 NUM_TRANSFORM_FEEDBACK_BUFFERS = 4;
-constexpr u32 NUM_GRAPHICS_UNIFORM_BUFFERS = 18;
-constexpr u32 NUM_COMPUTE_UNIFORM_BUFFERS = 8;
-constexpr u32 NUM_STORAGE_BUFFERS = 16;
-constexpr u32 NUM_TEXTURE_BUFFERS = 16;
-constexpr u32 NUM_STAGES = 5;
-
-using UniformBufferSizes = std::array<std::array<u32, NUM_GRAPHICS_UNIFORM_BUFFERS>, NUM_STAGES>;
-using ComputeUniformBufferSizes = std::array<u32, NUM_COMPUTE_UNIFORM_BUFFERS>;
-
-template <typename P>
-class BufferCache : public VideoCommon::ChannelSetupCaches<VideoCommon::ChannelInfo> {
-
- // Page size for caching purposes.
- // This is unrelated to the CPU page size and it can be changed as it seems optimal.
- static constexpr u32 YUZU_PAGEBITS = 16;
- static constexpr u64 YUZU_PAGESIZE = u64{1} << YUZU_PAGEBITS;
-
- static constexpr bool IS_OPENGL = P::IS_OPENGL;
- static constexpr bool HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS =
- P::HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS;
- static constexpr bool HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT =
- P::HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT;
- static constexpr bool NEEDS_BIND_UNIFORM_INDEX = P::NEEDS_BIND_UNIFORM_INDEX;
- static constexpr bool NEEDS_BIND_STORAGE_INDEX = P::NEEDS_BIND_STORAGE_INDEX;
- static constexpr bool USE_MEMORY_MAPS = P::USE_MEMORY_MAPS;
- static constexpr bool SEPARATE_IMAGE_BUFFERS_BINDINGS = P::SEPARATE_IMAGE_BUFFER_BINDINGS;
-
- static constexpr BufferId NULL_BUFFER_ID{0};
-
- static constexpr s64 DEFAULT_EXPECTED_MEMORY = 512_MiB;
- static constexpr s64 DEFAULT_CRITICAL_MEMORY = 1_GiB;
- static constexpr s64 TARGET_THRESHOLD = 4_GiB;
-
- using Maxwell = Tegra::Engines::Maxwell3D::Regs;
-
- using Runtime = typename P::Runtime;
- using Buffer = typename P::Buffer;
-
- using IntervalSet = boost::icl::interval_set<VAddr>;
- using IntervalType = typename IntervalSet::interval_type;
-
- struct Empty {};
-
- struct OverlapResult {
- std::vector<BufferId> ids;
- VAddr begin;
- VAddr end;
- bool has_stream_leap = false;
- };
-
- struct Binding {
- VAddr cpu_addr{};
- u32 size{};
- BufferId buffer_id;
- };
-
- struct TextureBufferBinding : Binding {
- PixelFormat format;
- };
-
- static constexpr Binding NULL_BINDING{
- .cpu_addr = 0,
- .size = 0,
- .buffer_id = NULL_BUFFER_ID,
- };
-
-public:
- static constexpr u32 DEFAULT_SKIP_CACHE_SIZE = static_cast<u32>(4_KiB);
-
- explicit BufferCache(VideoCore::RasterizerInterface& rasterizer_,
- Core::Memory::Memory& cpu_memory_, Runtime& runtime_);
-
- void TickFrame();
-
- void WriteMemory(VAddr cpu_addr, u64 size);
-
- void CachedWriteMemory(VAddr cpu_addr, u64 size);
-
- void DownloadMemory(VAddr cpu_addr, u64 size);
-
- bool InlineMemory(VAddr dest_address, size_t copy_size, std::span<const u8> inlined_buffer);
-
- void BindGraphicsUniformBuffer(size_t stage, u32 index, GPUVAddr gpu_addr, u32 size);
-
- void DisableGraphicsUniformBuffer(size_t stage, u32 index);
-
- void UpdateGraphicsBuffers(bool is_indexed);
-
- void UpdateComputeBuffers();
-
- void BindHostGeometryBuffers(bool is_indexed);
-
- void BindHostStageBuffers(size_t stage);
-
- void BindHostComputeBuffers();
-
- void SetUniformBuffersState(const std::array<u32, NUM_STAGES>& mask,
- const UniformBufferSizes* sizes);
-
- void SetComputeUniformBufferState(u32 mask, const ComputeUniformBufferSizes* sizes);
-
- void UnbindGraphicsStorageBuffers(size_t stage);
-
- void BindGraphicsStorageBuffer(size_t stage, size_t ssbo_index, u32 cbuf_index, u32 cbuf_offset,
- bool is_written);
-
- void UnbindGraphicsTextureBuffers(size_t stage);
-
- void BindGraphicsTextureBuffer(size_t stage, size_t tbo_index, GPUVAddr gpu_addr, u32 size,
- PixelFormat format, bool is_written, bool is_image);
-
- void UnbindComputeStorageBuffers();
-
- void BindComputeStorageBuffer(size_t ssbo_index, u32 cbuf_index, u32 cbuf_offset,
- bool is_written);
-
- void UnbindComputeTextureBuffers();
-
- void BindComputeTextureBuffer(size_t tbo_index, GPUVAddr gpu_addr, u32 size, PixelFormat format,
- bool is_written, bool is_image);
-
- void FlushCachedWrites();
-
- /// Return true when there are uncommitted buffers to be downloaded
- [[nodiscard]] bool HasUncommittedFlushes() const noexcept;
-
- void AccumulateFlushes();
-
- /// Return true when the caller should wait for async downloads
- [[nodiscard]] bool ShouldWaitAsyncFlushes() const noexcept;
-
- /// Commit asynchronous downloads
- void CommitAsyncFlushes();
- void CommitAsyncFlushesHigh();
-
- /// Pop asynchronous downloads
- void PopAsyncFlushes();
-
- bool DMACopy(GPUVAddr src_address, GPUVAddr dest_address, u64 amount);
-
- bool DMAClear(GPUVAddr src_address, u64 amount, u32 value);
-
- /// Return true when a CPU region is modified from the GPU
- [[nodiscard]] bool IsRegionGpuModified(VAddr addr, size_t size);
-
- /// Return true when a region is registered on the cache
- [[nodiscard]] bool IsRegionRegistered(VAddr addr, size_t size);
-
- /// Return true when a CPU region is modified from the CPU
- [[nodiscard]] bool IsRegionCpuModified(VAddr addr, size_t size);
-
- void SetDrawIndirect(
- const Tegra::Engines::DrawManager::IndirectParams* current_draw_indirect_) {
- current_draw_indirect = current_draw_indirect_;
- }
-
- [[nodiscard]] std::pair<Buffer*, u32> GetDrawIndirectCount();
-
- [[nodiscard]] std::pair<Buffer*, u32> GetDrawIndirectBuffer();
-
- std::recursive_mutex mutex;
- Runtime& runtime;
-
-private:
- template <typename Func>
- static void ForEachEnabledBit(u32 enabled_mask, Func&& func) {
- for (u32 index = 0; enabled_mask != 0; ++index, enabled_mask >>= 1) {
- const int disabled_bits = std::countr_zero(enabled_mask);
- index += disabled_bits;
- enabled_mask >>= disabled_bits;
- func(index);
- }
- }
-
- template <typename Func>
- void ForEachBufferInRange(VAddr cpu_addr, u64 size, Func&& func) {
- const u64 page_end = Common::DivCeil(cpu_addr + size, YUZU_PAGESIZE);
- for (u64 page = cpu_addr >> YUZU_PAGEBITS; page < page_end;) {
- const BufferId buffer_id = page_table[page];
- if (!buffer_id) {
- ++page;
- continue;
- }
- Buffer& buffer = slot_buffers[buffer_id];
- func(buffer_id, buffer);
-
- const VAddr end_addr = buffer.CpuAddr() + buffer.SizeBytes();
- page = Common::DivCeil(end_addr, YUZU_PAGESIZE);
- }
- }
-
- template <typename Func>
- void ForEachWrittenRange(VAddr cpu_addr, u64 size, Func&& func) {
- const VAddr start_address = cpu_addr;
- const VAddr end_address = start_address + size;
- const VAddr search_base =
- static_cast<VAddr>(std::min<s64>(0LL, static_cast<s64>(start_address - size)));
- const IntervalType search_interval{search_base, search_base + 1};
- auto it = common_ranges.lower_bound(search_interval);
- if (it == common_ranges.end()) {
- it = common_ranges.begin();
- }
- for (; it != common_ranges.end(); it++) {
- VAddr inter_addr_end = it->upper();
- VAddr inter_addr = it->lower();
- if (inter_addr >= end_address) {
- break;
- }
- if (inter_addr_end <= start_address) {
- continue;
- }
- if (inter_addr_end > end_address) {
- inter_addr_end = end_address;
- }
- if (inter_addr < start_address) {
- inter_addr = start_address;
- }
- func(inter_addr, inter_addr_end);
- }
- }
+#include "video_core/buffer_cache/buffer_cache_base.h"
- static bool IsRangeGranular(VAddr cpu_addr, size_t size) {
- return (cpu_addr & ~Core::Memory::YUZU_PAGEMASK) ==
- ((cpu_addr + size) & ~Core::Memory::YUZU_PAGEMASK);
- }
-
- void RunGarbageCollector();
-
- void BindHostIndexBuffer();
-
- void BindHostVertexBuffers();
-
- void BindHostDrawIndirectBuffers();
-
- void BindHostGraphicsUniformBuffers(size_t stage);
-
- void BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32 binding_index, bool needs_bind);
-
- void BindHostGraphicsStorageBuffers(size_t stage);
-
- void BindHostGraphicsTextureBuffers(size_t stage);
-
- void BindHostTransformFeedbackBuffers();
-
- void BindHostComputeUniformBuffers();
-
- void BindHostComputeStorageBuffers();
-
- void BindHostComputeTextureBuffers();
-
- void DoUpdateGraphicsBuffers(bool is_indexed);
-
- void DoUpdateComputeBuffers();
-
- void UpdateIndexBuffer();
-
- void UpdateVertexBuffers();
-
- void UpdateVertexBuffer(u32 index);
-
- void UpdateDrawIndirect();
-
- void UpdateUniformBuffers(size_t stage);
-
- void UpdateStorageBuffers(size_t stage);
-
- void UpdateTextureBuffers(size_t stage);
-
- void UpdateTransformFeedbackBuffers();
-
- void UpdateTransformFeedbackBuffer(u32 index);
-
- void UpdateComputeUniformBuffers();
-
- void UpdateComputeStorageBuffers();
-
- void UpdateComputeTextureBuffers();
-
- void MarkWrittenBuffer(BufferId buffer_id, VAddr cpu_addr, u32 size);
-
- [[nodiscard]] BufferId FindBuffer(VAddr cpu_addr, u32 size);
-
- [[nodiscard]] OverlapResult ResolveOverlaps(VAddr cpu_addr, u32 wanted_size);
-
- void JoinOverlap(BufferId new_buffer_id, BufferId overlap_id, bool accumulate_stream_score);
-
- [[nodiscard]] BufferId CreateBuffer(VAddr cpu_addr, u32 wanted_size);
-
- void Register(BufferId buffer_id);
-
- void Unregister(BufferId buffer_id);
-
- template <bool insert>
- void ChangeRegister(BufferId buffer_id);
-
- void TouchBuffer(Buffer& buffer, BufferId buffer_id) noexcept;
-
- bool SynchronizeBuffer(Buffer& buffer, VAddr cpu_addr, u32 size);
-
- bool SynchronizeBufferImpl(Buffer& buffer, VAddr cpu_addr, u32 size);
-
- void UploadMemory(Buffer& buffer, u64 total_size_bytes, u64 largest_copy,
- std::span<BufferCopy> copies);
-
- void ImmediateUploadMemory(Buffer& buffer, u64 largest_copy,
- std::span<const BufferCopy> copies);
-
- void MappedUploadMemory(Buffer& buffer, u64 total_size_bytes, std::span<BufferCopy> copies);
-
- void DownloadBufferMemory(Buffer& buffer_id);
-
- void DownloadBufferMemory(Buffer& buffer_id, VAddr cpu_addr, u64 size);
-
- void DeleteBuffer(BufferId buffer_id);
-
- void NotifyBufferDeletion();
-
- [[nodiscard]] Binding StorageBufferBinding(GPUVAddr ssbo_addr, bool is_written = false) const;
-
- [[nodiscard]] TextureBufferBinding GetTextureBufferBinding(GPUVAddr gpu_addr, u32 size,
- PixelFormat format);
-
- [[nodiscard]] std::span<const u8> ImmediateBufferWithData(VAddr cpu_addr, size_t size);
-
- [[nodiscard]] std::span<u8> ImmediateBuffer(size_t wanted_capacity);
-
- [[nodiscard]] bool HasFastUniformBufferBound(size_t stage, u32 binding_index) const noexcept;
-
- void ClearDownload(IntervalType subtract_interval);
-
- VideoCore::RasterizerInterface& rasterizer;
- Core::Memory::Memory& cpu_memory;
-
- SlotVector<Buffer> slot_buffers;
- DelayedDestructionRing<Buffer, 8> delayed_destruction_ring;
-
- const Tegra::Engines::DrawManager::IndirectParams* current_draw_indirect{};
-
- u32 last_index_count = 0;
-
- Binding index_buffer;
- std::array<Binding, NUM_VERTEX_BUFFERS> vertex_buffers;
- std::array<std::array<Binding, NUM_GRAPHICS_UNIFORM_BUFFERS>, NUM_STAGES> uniform_buffers;
- std::array<std::array<Binding, NUM_STORAGE_BUFFERS>, NUM_STAGES> storage_buffers;
- std::array<std::array<TextureBufferBinding, NUM_TEXTURE_BUFFERS>, NUM_STAGES> texture_buffers;
- std::array<Binding, NUM_TRANSFORM_FEEDBACK_BUFFERS> transform_feedback_buffers;
- Binding count_buffer_binding;
- Binding indirect_buffer_binding;
-
- std::array<Binding, NUM_COMPUTE_UNIFORM_BUFFERS> compute_uniform_buffers;
- std::array<Binding, NUM_STORAGE_BUFFERS> compute_storage_buffers;
- std::array<TextureBufferBinding, NUM_TEXTURE_BUFFERS> compute_texture_buffers;
-
- std::array<u32, NUM_STAGES> enabled_uniform_buffer_masks{};
- u32 enabled_compute_uniform_buffer_mask = 0;
-
- const UniformBufferSizes* uniform_buffer_sizes{};
- const ComputeUniformBufferSizes* compute_uniform_buffer_sizes{};
-
- std::array<u32, NUM_STAGES> enabled_storage_buffers{};
- std::array<u32, NUM_STAGES> written_storage_buffers{};
- u32 enabled_compute_storage_buffers = 0;
- u32 written_compute_storage_buffers = 0;
-
- std::array<u32, NUM_STAGES> enabled_texture_buffers{};
- std::array<u32, NUM_STAGES> written_texture_buffers{};
- std::array<u32, NUM_STAGES> image_texture_buffers{};
- u32 enabled_compute_texture_buffers = 0;
- u32 written_compute_texture_buffers = 0;
- u32 image_compute_texture_buffers = 0;
-
- std::array<u32, 16> uniform_cache_hits{};
- std::array<u32, 16> uniform_cache_shots{};
-
- u32 uniform_buffer_skip_cache_size = DEFAULT_SKIP_CACHE_SIZE;
-
- bool has_deleted_buffers = false;
-
- std::conditional_t<HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS, std::array<u32, NUM_STAGES>, Empty>
- dirty_uniform_buffers{};
- std::conditional_t<IS_OPENGL, std::array<u32, NUM_STAGES>, Empty> fast_bound_uniform_buffers{};
- std::conditional_t<HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS,
- std::array<std::array<u32, NUM_GRAPHICS_UNIFORM_BUFFERS>, NUM_STAGES>, Empty>
- uniform_buffer_binding_sizes{};
-
- std::vector<BufferId> cached_write_buffer_ids;
-
- IntervalSet uncommitted_ranges;
- IntervalSet common_ranges;
- std::deque<IntervalSet> committed_ranges;
-
- Common::ScratchBuffer<u8> immediate_buffer_alloc;
-
- struct LRUItemParams {
- using ObjectType = BufferId;
- using TickType = u64;
- };
- Common::LeastRecentlyUsedCache<LRUItemParams> lru_cache;
- u64 frame_tick = 0;
- u64 total_used_memory = 0;
- u64 minimum_memory = 0;
- u64 critical_memory = 0;
+namespace VideoCommon {
- std::array<BufferId, ((1ULL << 39) >> YUZU_PAGEBITS)> page_table;
-};
+using Core::Memory::YUZU_PAGESIZE;
template <class P>
BufferCache<P>::BufferCache(VideoCore::RasterizerInterface& rasterizer_,
Core::Memory::Memory& cpu_memory_, Runtime& runtime_)
- : runtime{runtime_}, rasterizer{rasterizer_}, cpu_memory{cpu_memory_} {
+ : runtime{runtime_}, rasterizer{rasterizer_}, cpu_memory{cpu_memory_}, memory_tracker{
+ rasterizer} {
// Ensure the first slot is used for the null buffer
void(slot_buffers.insert(runtime, NullBufferParams{}));
common_ranges.clear();
+ inline_buffer_id = NULL_BUFFER_ID;
if (!runtime.CanReportMemoryUsage()) {
minimum_memory = DEFAULT_EXPECTED_MEMORY;
@@ -470,8 +30,8 @@ BufferCache<P>::BufferCache(VideoCore::RasterizerInterface& rasterizer_,
}
const s64 device_memory = static_cast<s64>(runtime.GetDeviceLocalMemory());
- const s64 min_spacing_expected = device_memory - 1_GiB - 512_MiB;
- const s64 min_spacing_critical = device_memory - 1_GiB;
+ const s64 min_spacing_expected = device_memory - 1_GiB;
+ const s64 min_spacing_critical = device_memory - 512_MiB;
const s64 mem_threshold = std::min(device_memory, TARGET_THRESHOLD);
const s64 min_vacancy_expected = (6 * mem_threshold) / 10;
const s64 min_vacancy_critical = (3 * mem_threshold) / 10;
@@ -503,18 +63,27 @@ void BufferCache<P>::RunGarbageCollector() {
template <class P>
void BufferCache<P>::TickFrame() {
+ // Homebrew console apps don't create or bind any channels, so this will be nullptr.
+ if (!channel_state) {
+ return;
+ }
+
// Calculate hits and shots and move hit bits to the right
- const u32 hits = std::reduce(uniform_cache_hits.begin(), uniform_cache_hits.end());
- const u32 shots = std::reduce(uniform_cache_shots.begin(), uniform_cache_shots.end());
- std::copy_n(uniform_cache_hits.begin(), uniform_cache_hits.size() - 1,
- uniform_cache_hits.begin() + 1);
- std::copy_n(uniform_cache_shots.begin(), uniform_cache_shots.size() - 1,
- uniform_cache_shots.begin() + 1);
- uniform_cache_hits[0] = 0;
- uniform_cache_shots[0] = 0;
+ const u32 hits = std::reduce(channel_state->uniform_cache_hits.begin(),
+ channel_state->uniform_cache_hits.end());
+ const u32 shots = std::reduce(channel_state->uniform_cache_shots.begin(),
+ channel_state->uniform_cache_shots.end());
+ std::copy_n(channel_state->uniform_cache_hits.begin(),
+ channel_state->uniform_cache_hits.size() - 1,
+ channel_state->uniform_cache_hits.begin() + 1);
+ std::copy_n(channel_state->uniform_cache_shots.begin(),
+ channel_state->uniform_cache_shots.size() - 1,
+ channel_state->uniform_cache_shots.begin() + 1);
+ channel_state->uniform_cache_hits[0] = 0;
+ channel_state->uniform_cache_shots[0] = 0;
const bool skip_preferred = hits * 256 < shots * 251;
- uniform_buffer_skip_cache_size = skip_preferred ? DEFAULT_SKIP_CACHE_SIZE : 0;
+ channel_state->uniform_buffer_skip_cache_size = skip_preferred ? DEFAULT_SKIP_CACHE_SIZE : 0;
// If we can obtain the memory info, use it instead of the estimate.
if (runtime.CanReportMemoryUsage()) {
@@ -525,23 +94,48 @@ void BufferCache<P>::TickFrame() {
}
++frame_tick;
delayed_destruction_ring.Tick();
+
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ for (auto& buffer : async_buffers_death_ring) {
+ runtime.FreeDeferredStagingBuffer(buffer);
+ }
+ async_buffers_death_ring.clear();
+ }
}
template <class P>
void BufferCache<P>::WriteMemory(VAddr cpu_addr, u64 size) {
- ForEachBufferInRange(cpu_addr, size, [&](BufferId, Buffer& buffer) {
- buffer.MarkRegionAsCpuModified(cpu_addr, size);
- });
+ if (memory_tracker.IsRegionGpuModified(cpu_addr, size)) {
+ const IntervalType subtract_interval{cpu_addr, cpu_addr + size};
+ ClearDownload(subtract_interval);
+ common_ranges.subtract(subtract_interval);
+ }
+ memory_tracker.MarkRegionAsCpuModified(cpu_addr, size);
}
template <class P>
void BufferCache<P>::CachedWriteMemory(VAddr cpu_addr, u64 size) {
- ForEachBufferInRange(cpu_addr, size, [&](BufferId buffer_id, Buffer& buffer) {
- if (!buffer.HasCachedWrites()) {
- cached_write_buffer_ids.push_back(buffer_id);
- }
- buffer.CachedCpuWrite(cpu_addr, size);
- });
+ memory_tracker.CachedCpuWrite(cpu_addr, size);
+}
+
+template <class P>
+std::optional<VideoCore::RasterizerDownloadArea> BufferCache<P>::GetFlushArea(VAddr cpu_addr,
+ u64 size) {
+ std::optional<VideoCore::RasterizerDownloadArea> area{};
+ area.emplace();
+ VAddr cpu_addr_start_aligned = Common::AlignDown(cpu_addr, Core::Memory::YUZU_PAGESIZE);
+ VAddr cpu_addr_end_aligned = Common::AlignUp(cpu_addr + size, Core::Memory::YUZU_PAGESIZE);
+ area->start_address = cpu_addr_start_aligned;
+ area->end_address = cpu_addr_end_aligned;
+ if (memory_tracker.IsRegionPreflushable(cpu_addr, size)) {
+ area->preemtive = true;
+ return area;
+ };
+ area->preemtive =
+ !IsRegionGpuModified(cpu_addr_start_aligned, cpu_addr_end_aligned - cpu_addr_start_aligned);
+ memory_tracker.MarkRegionAsPreflushable(cpu_addr_start_aligned,
+ cpu_addr_end_aligned - cpu_addr_start_aligned);
+ return area;
}
template <class P>
@@ -553,6 +147,7 @@ void BufferCache<P>::DownloadMemory(VAddr cpu_addr, u64 size) {
template <class P>
void BufferCache<P>::ClearDownload(IntervalType subtract_interval) {
+ RemoveEachInOverlapCounter(async_downloads, subtract_interval, -1024);
uncommitted_ranges.subtract(subtract_interval);
for (auto& interval_set : committed_ranges) {
interval_set.subtract(subtract_interval);
@@ -578,10 +173,10 @@ bool BufferCache<P>::DMACopy(GPUVAddr src_address, GPUVAddr dest_address, u64 am
BufferId buffer_a;
BufferId buffer_b;
do {
- has_deleted_buffers = false;
+ channel_state->has_deleted_buffers = false;
buffer_a = FindBuffer(*cpu_src_address, static_cast<u32>(amount));
buffer_b = FindBuffer(*cpu_dest_address, static_cast<u32>(amount));
- } while (has_deleted_buffers);
+ } while (channel_state->has_deleted_buffers);
auto& src_buffer = slot_buffers[buffer_a];
auto& dest_buffer = slot_buffers[buffer_b];
SynchronizeBuffer(src_buffer, *cpu_src_address, static_cast<u32>(amount));
@@ -598,10 +193,10 @@ bool BufferCache<P>::DMACopy(GPUVAddr src_address, GPUVAddr dest_address, u64 am
const VAddr diff = base_address - *cpu_src_address;
const VAddr new_base_address = *cpu_dest_address + diff;
const IntervalType add_interval{new_base_address, new_base_address + size};
- uncommitted_ranges.add(add_interval);
tmp_intervals.push_back(add_interval);
+ uncommitted_ranges.add(add_interval);
};
- ForEachWrittenRange(*cpu_src_address, amount, mirror);
+ ForEachInRangeSet(common_ranges, *cpu_src_address, amount, mirror);
// This subtraction in this order is important for overlapping copies.
common_ranges.subtract(subtract_interval);
const bool has_new_downloads = tmp_intervals.size() != 0;
@@ -610,9 +205,9 @@ bool BufferCache<P>::DMACopy(GPUVAddr src_address, GPUVAddr dest_address, u64 am
}
runtime.CopyBuffer(dest_buffer, src_buffer, copies);
if (has_new_downloads) {
- dest_buffer.MarkRegionAsGpuModified(*cpu_dest_address, amount);
+ memory_tracker.MarkRegionAsGpuModified(*cpu_dest_address, amount);
}
- std::vector<u8> tmp_buffer(amount);
+ tmp_buffer.resize_destructive(amount);
cpu_memory.ReadBlockUnsafe(*cpu_src_address, tmp_buffer.data(), amount);
cpu_memory.WriteBlockUnsafe(*cpu_dest_address, tmp_buffer.data(), amount);
return true;
@@ -642,6 +237,42 @@ bool BufferCache<P>::DMAClear(GPUVAddr dst_address, u64 amount, u32 value) {
}
template <class P>
+std::pair<typename P::Buffer*, u32> BufferCache<P>::ObtainBuffer(GPUVAddr gpu_addr, u32 size,
+ ObtainBufferSynchronize sync_info,
+ ObtainBufferOperation post_op) {
+ const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr);
+ if (!cpu_addr) {
+ return {&slot_buffers[NULL_BUFFER_ID], 0};
+ }
+ const BufferId buffer_id = FindBuffer(*cpu_addr, size);
+ Buffer& buffer = slot_buffers[buffer_id];
+
+ // synchronize op
+ switch (sync_info) {
+ case ObtainBufferSynchronize::FullSynchronize:
+ SynchronizeBuffer(buffer, *cpu_addr, size);
+ break;
+ default:
+ break;
+ }
+
+ switch (post_op) {
+ case ObtainBufferOperation::MarkAsWritten:
+ MarkWrittenBuffer(buffer_id, *cpu_addr, size);
+ break;
+ case ObtainBufferOperation::DiscardWrite: {
+ IntervalType interval{*cpu_addr, size};
+ ClearDownload(interval);
+ break;
+ }
+ default:
+ break;
+ }
+
+ return {&buffer, buffer.Offset(*cpu_addr)};
+}
+
+template <class P>
void BufferCache<P>::BindGraphicsUniformBuffer(size_t stage, u32 index, GPUVAddr gpu_addr,
u32 size) {
const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr);
@@ -650,30 +281,30 @@ void BufferCache<P>::BindGraphicsUniformBuffer(size_t stage, u32 index, GPUVAddr
.size = size,
.buffer_id = BufferId{},
};
- uniform_buffers[stage][index] = binding;
+ channel_state->uniform_buffers[stage][index] = binding;
}
template <class P>
void BufferCache<P>::DisableGraphicsUniformBuffer(size_t stage, u32 index) {
- uniform_buffers[stage][index] = NULL_BINDING;
+ channel_state->uniform_buffers[stage][index] = NULL_BINDING;
}
template <class P>
void BufferCache<P>::UpdateGraphicsBuffers(bool is_indexed) {
MICROPROFILE_SCOPE(GPU_PrepareBuffers);
do {
- has_deleted_buffers = false;
+ channel_state->has_deleted_buffers = false;
DoUpdateGraphicsBuffers(is_indexed);
- } while (has_deleted_buffers);
+ } while (channel_state->has_deleted_buffers);
}
template <class P>
void BufferCache<P>::UpdateComputeBuffers() {
MICROPROFILE_SCOPE(GPU_PrepareBuffers);
do {
- has_deleted_buffers = false;
+ channel_state->has_deleted_buffers = false;
DoUpdateComputeBuffers();
- } while (has_deleted_buffers);
+ } while (channel_state->has_deleted_buffers);
}
template <class P>
@@ -716,106 +347,107 @@ template <class P>
void BufferCache<P>::SetUniformBuffersState(const std::array<u32, NUM_STAGES>& mask,
const UniformBufferSizes* sizes) {
if constexpr (HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS) {
- if (enabled_uniform_buffer_masks != mask) {
+ if (channel_state->enabled_uniform_buffer_masks != mask) {
if constexpr (IS_OPENGL) {
- fast_bound_uniform_buffers.fill(0);
+ channel_state->fast_bound_uniform_buffers.fill(0);
}
- dirty_uniform_buffers.fill(~u32{0});
- uniform_buffer_binding_sizes.fill({});
+ channel_state->dirty_uniform_buffers.fill(~u32{0});
+ channel_state->uniform_buffer_binding_sizes.fill({});
}
}
- enabled_uniform_buffer_masks = mask;
- uniform_buffer_sizes = sizes;
+ channel_state->enabled_uniform_buffer_masks = mask;
+ channel_state->uniform_buffer_sizes = sizes;
}
template <class P>
void BufferCache<P>::SetComputeUniformBufferState(u32 mask,
const ComputeUniformBufferSizes* sizes) {
- enabled_compute_uniform_buffer_mask = mask;
- compute_uniform_buffer_sizes = sizes;
+ channel_state->enabled_compute_uniform_buffer_mask = mask;
+ channel_state->compute_uniform_buffer_sizes = sizes;
}
template <class P>
void BufferCache<P>::UnbindGraphicsStorageBuffers(size_t stage) {
- enabled_storage_buffers[stage] = 0;
- written_storage_buffers[stage] = 0;
+ channel_state->enabled_storage_buffers[stage] = 0;
+ channel_state->written_storage_buffers[stage] = 0;
}
template <class P>
void BufferCache<P>::BindGraphicsStorageBuffer(size_t stage, size_t ssbo_index, u32 cbuf_index,
u32 cbuf_offset, bool is_written) {
- enabled_storage_buffers[stage] |= 1U << ssbo_index;
- written_storage_buffers[stage] |= (is_written ? 1U : 0U) << ssbo_index;
+ channel_state->enabled_storage_buffers[stage] |= 1U << ssbo_index;
+ channel_state->written_storage_buffers[stage] |= (is_written ? 1U : 0U) << ssbo_index;
const auto& cbufs = maxwell3d->state.shader_stages[stage];
const GPUVAddr ssbo_addr = cbufs.const_buffers[cbuf_index].address + cbuf_offset;
- storage_buffers[stage][ssbo_index] = StorageBufferBinding(ssbo_addr, is_written);
+ channel_state->storage_buffers[stage][ssbo_index] =
+ StorageBufferBinding(ssbo_addr, cbuf_index, is_written);
}
template <class P>
void BufferCache<P>::UnbindGraphicsTextureBuffers(size_t stage) {
- enabled_texture_buffers[stage] = 0;
- written_texture_buffers[stage] = 0;
- image_texture_buffers[stage] = 0;
+ channel_state->enabled_texture_buffers[stage] = 0;
+ channel_state->written_texture_buffers[stage] = 0;
+ channel_state->image_texture_buffers[stage] = 0;
}
template <class P>
void BufferCache<P>::BindGraphicsTextureBuffer(size_t stage, size_t tbo_index, GPUVAddr gpu_addr,
u32 size, PixelFormat format, bool is_written,
bool is_image) {
- enabled_texture_buffers[stage] |= 1U << tbo_index;
- written_texture_buffers[stage] |= (is_written ? 1U : 0U) << tbo_index;
+ channel_state->enabled_texture_buffers[stage] |= 1U << tbo_index;
+ channel_state->written_texture_buffers[stage] |= (is_written ? 1U : 0U) << tbo_index;
if constexpr (SEPARATE_IMAGE_BUFFERS_BINDINGS) {
- image_texture_buffers[stage] |= (is_image ? 1U : 0U) << tbo_index;
+ channel_state->image_texture_buffers[stage] |= (is_image ? 1U : 0U) << tbo_index;
}
- texture_buffers[stage][tbo_index] = GetTextureBufferBinding(gpu_addr, size, format);
+ channel_state->texture_buffers[stage][tbo_index] =
+ GetTextureBufferBinding(gpu_addr, size, format);
}
template <class P>
void BufferCache<P>::UnbindComputeStorageBuffers() {
- enabled_compute_storage_buffers = 0;
- written_compute_storage_buffers = 0;
- image_compute_texture_buffers = 0;
+ channel_state->enabled_compute_storage_buffers = 0;
+ channel_state->written_compute_storage_buffers = 0;
+ channel_state->image_compute_texture_buffers = 0;
}
template <class P>
void BufferCache<P>::BindComputeStorageBuffer(size_t ssbo_index, u32 cbuf_index, u32 cbuf_offset,
bool is_written) {
- enabled_compute_storage_buffers |= 1U << ssbo_index;
- written_compute_storage_buffers |= (is_written ? 1U : 0U) << ssbo_index;
+ channel_state->enabled_compute_storage_buffers |= 1U << ssbo_index;
+ channel_state->written_compute_storage_buffers |= (is_written ? 1U : 0U) << ssbo_index;
const auto& launch_desc = kepler_compute->launch_description;
ASSERT(((launch_desc.const_buffer_enable_mask >> cbuf_index) & 1) != 0);
const auto& cbufs = launch_desc.const_buffer_config;
const GPUVAddr ssbo_addr = cbufs[cbuf_index].Address() + cbuf_offset;
- compute_storage_buffers[ssbo_index] = StorageBufferBinding(ssbo_addr, is_written);
+ channel_state->compute_storage_buffers[ssbo_index] =
+ StorageBufferBinding(ssbo_addr, cbuf_index, is_written);
}
template <class P>
void BufferCache<P>::UnbindComputeTextureBuffers() {
- enabled_compute_texture_buffers = 0;
- written_compute_texture_buffers = 0;
- image_compute_texture_buffers = 0;
+ channel_state->enabled_compute_texture_buffers = 0;
+ channel_state->written_compute_texture_buffers = 0;
+ channel_state->image_compute_texture_buffers = 0;
}
template <class P>
void BufferCache<P>::BindComputeTextureBuffer(size_t tbo_index, GPUVAddr gpu_addr, u32 size,
PixelFormat format, bool is_written, bool is_image) {
- enabled_compute_texture_buffers |= 1U << tbo_index;
- written_compute_texture_buffers |= (is_written ? 1U : 0U) << tbo_index;
+ channel_state->enabled_compute_texture_buffers |= 1U << tbo_index;
+ channel_state->written_compute_texture_buffers |= (is_written ? 1U : 0U) << tbo_index;
if constexpr (SEPARATE_IMAGE_BUFFERS_BINDINGS) {
- image_compute_texture_buffers |= (is_image ? 1U : 0U) << tbo_index;
+ channel_state->image_compute_texture_buffers |= (is_image ? 1U : 0U) << tbo_index;
}
- compute_texture_buffers[tbo_index] = GetTextureBufferBinding(gpu_addr, size, format);
+ channel_state->compute_texture_buffers[tbo_index] =
+ GetTextureBufferBinding(gpu_addr, size, format);
}
template <class P>
void BufferCache<P>::FlushCachedWrites() {
- for (const BufferId buffer_id : cached_write_buffer_ids) {
- slot_buffers[buffer_id].FlushCachedWrites();
- }
- cached_write_buffer_ids.clear();
+ memory_tracker.FlushCachedWrites();
}
template <class P>
@@ -825,10 +457,6 @@ bool BufferCache<P>::HasUncommittedFlushes() const noexcept {
template <class P>
void BufferCache<P>::AccumulateFlushes() {
- if (Settings::values.gpu_accuracy.GetValue() != Settings::GPUAccuracy::High) {
- uncommitted_ranges.clear();
- return;
- }
if (uncommitted_ranges.empty()) {
return;
}
@@ -837,7 +465,11 @@ void BufferCache<P>::AccumulateFlushes() {
template <class P>
bool BufferCache<P>::ShouldWaitAsyncFlushes() const noexcept {
- return false;
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ return (!async_buffers.empty() && async_buffers.front().has_value());
+ } else {
+ return false;
+ }
}
template <class P>
@@ -845,11 +477,12 @@ void BufferCache<P>::CommitAsyncFlushesHigh() {
AccumulateFlushes();
if (committed_ranges.empty()) {
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ async_buffers.emplace_back(std::optional<Async_Buffer>{});
+ }
return;
}
MICROPROFILE_SCOPE(GPU_DownloadMemory);
- const bool is_accuracy_normal =
- Settings::values.gpu_accuracy.GetValue() == Settings::GPUAccuracy::Normal;
auto it = committed_ranges.begin();
while (it != committed_ranges.end()) {
@@ -872,11 +505,12 @@ void BufferCache<P>::CommitAsyncFlushesHigh() {
const std::size_t size = interval.upper() - interval.lower();
const VAddr cpu_addr = interval.lower();
ForEachBufferInRange(cpu_addr, size, [&](BufferId buffer_id, Buffer& buffer) {
- buffer.ForEachDownloadRangeAndClear(
- cpu_addr, size, [&](u64 range_offset, u64 range_size) {
- if (is_accuracy_normal) {
- return;
- }
+ const VAddr buffer_start = buffer.CpuAddr();
+ const VAddr buffer_end = buffer_start + buffer.SizeBytes();
+ const VAddr new_start = std::max(buffer_start, cpu_addr);
+ const VAddr new_end = std::min(buffer_end, cpu_addr + size);
+ memory_tracker.ForEachDownloadRange(
+ new_start, new_end - new_start, false, [&](u64 cpu_addr_out, u64 range_size) {
const VAddr buffer_addr = buffer.CpuAddr();
const auto add_download = [&](VAddr start, VAddr end) {
const u64 new_offset = start - buffer_addr;
@@ -890,92 +524,142 @@ void BufferCache<P>::CommitAsyncFlushesHigh() {
buffer_id,
});
// Align up to avoid cache conflicts
- constexpr u64 align = 8ULL;
+ constexpr u64 align = 64ULL;
constexpr u64 mask = ~(align - 1ULL);
total_size_bytes += (new_size + align - 1) & mask;
largest_copy = std::max(largest_copy, new_size);
};
- const VAddr start_address = buffer_addr + range_offset;
- const VAddr end_address = start_address + range_size;
- ForEachWrittenRange(start_address, range_size, add_download);
- const IntervalType subtract_interval{start_address, end_address};
- common_ranges.subtract(subtract_interval);
+ ForEachInRangeSet(common_ranges, cpu_addr_out, range_size, add_download);
});
});
}
}
committed_ranges.clear();
if (downloads.empty()) {
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ async_buffers.emplace_back(std::optional<Async_Buffer>{});
+ }
return;
}
- if constexpr (USE_MEMORY_MAPS) {
- auto download_staging = runtime.DownloadStagingBuffer(total_size_bytes);
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ auto download_staging = runtime.DownloadStagingBuffer(total_size_bytes, true);
+ boost::container::small_vector<BufferCopy, 4> normalized_copies;
+ IntervalSet new_async_range{};
runtime.PreCopyBarrier();
for (auto& [copy, buffer_id] : downloads) {
- // Have in mind the staging buffer offset for the copy
copy.dst_offset += download_staging.offset;
const std::array copies{copy};
- runtime.CopyBuffer(download_staging.buffer, slot_buffers[buffer_id], copies, false);
+ BufferCopy second_copy{copy};
+ Buffer& buffer = slot_buffers[buffer_id];
+ second_copy.src_offset = static_cast<size_t>(buffer.CpuAddr()) + copy.src_offset;
+ VAddr orig_cpu_addr = static_cast<VAddr>(second_copy.src_offset);
+ const IntervalType base_interval{orig_cpu_addr, orig_cpu_addr + copy.size};
+ async_downloads += std::make_pair(base_interval, 1);
+ runtime.CopyBuffer(download_staging.buffer, buffer, copies, false);
+ normalized_copies.push_back(second_copy);
}
runtime.PostCopyBarrier();
- runtime.Finish();
- for (const auto& [copy, buffer_id] : downloads) {
- const Buffer& buffer = slot_buffers[buffer_id];
- const VAddr cpu_addr = buffer.CpuAddr() + copy.src_offset;
- // Undo the modified offset
- const u64 dst_offset = copy.dst_offset - download_staging.offset;
- const u8* read_mapped_memory = download_staging.mapped_span.data() + dst_offset;
- cpu_memory.WriteBlockUnsafe(cpu_addr, read_mapped_memory, copy.size);
- }
+ pending_downloads.emplace_back(std::move(normalized_copies));
+ async_buffers.emplace_back(download_staging);
} else {
- const std::span<u8> immediate_buffer = ImmediateBuffer(largest_copy);
- for (const auto& [copy, buffer_id] : downloads) {
- Buffer& buffer = slot_buffers[buffer_id];
- buffer.ImmediateDownload(copy.src_offset, immediate_buffer.subspan(0, copy.size));
- const VAddr cpu_addr = buffer.CpuAddr() + copy.src_offset;
- cpu_memory.WriteBlockUnsafe(cpu_addr, immediate_buffer.data(), copy.size);
+ if (!Settings::IsGPULevelHigh()) {
+ committed_ranges.clear();
+ uncommitted_ranges.clear();
+ } else {
+ if constexpr (USE_MEMORY_MAPS) {
+ auto download_staging = runtime.DownloadStagingBuffer(total_size_bytes);
+ runtime.PreCopyBarrier();
+ for (auto& [copy, buffer_id] : downloads) {
+ // Have in mind the staging buffer offset for the copy
+ copy.dst_offset += download_staging.offset;
+ const std::array copies{copy};
+ runtime.CopyBuffer(download_staging.buffer, slot_buffers[buffer_id], copies,
+ false);
+ }
+ runtime.PostCopyBarrier();
+ runtime.Finish();
+ for (const auto& [copy, buffer_id] : downloads) {
+ const Buffer& buffer = slot_buffers[buffer_id];
+ const VAddr cpu_addr = buffer.CpuAddr() + copy.src_offset;
+ // Undo the modified offset
+ const u64 dst_offset = copy.dst_offset - download_staging.offset;
+ const u8* read_mapped_memory = download_staging.mapped_span.data() + dst_offset;
+ cpu_memory.WriteBlockUnsafe(cpu_addr, read_mapped_memory, copy.size);
+ }
+ } else {
+ const std::span<u8> immediate_buffer = ImmediateBuffer(largest_copy);
+ for (const auto& [copy, buffer_id] : downloads) {
+ Buffer& buffer = slot_buffers[buffer_id];
+ buffer.ImmediateDownload(copy.src_offset,
+ immediate_buffer.subspan(0, copy.size));
+ const VAddr cpu_addr = buffer.CpuAddr() + copy.src_offset;
+ cpu_memory.WriteBlockUnsafe(cpu_addr, immediate_buffer.data(), copy.size);
+ }
+ }
}
}
}
template <class P>
void BufferCache<P>::CommitAsyncFlushes() {
- if (Settings::values.gpu_accuracy.GetValue() == Settings::GPUAccuracy::High) {
- CommitAsyncFlushesHigh();
- } else {
- uncommitted_ranges.clear();
- committed_ranges.clear();
- }
+ CommitAsyncFlushesHigh();
}
template <class P>
-void BufferCache<P>::PopAsyncFlushes() {}
+void BufferCache<P>::PopAsyncFlushes() {
+ MICROPROFILE_SCOPE(GPU_DownloadMemory);
+ PopAsyncBuffers();
+}
template <class P>
-bool BufferCache<P>::IsRegionGpuModified(VAddr addr, size_t size) {
- const u64 page_end = Common::DivCeil(addr + size, YUZU_PAGESIZE);
- for (u64 page = addr >> YUZU_PAGEBITS; page < page_end;) {
- const BufferId image_id = page_table[page];
- if (!image_id) {
- ++page;
- continue;
- }
- Buffer& buffer = slot_buffers[image_id];
- if (buffer.IsRegionGpuModified(addr, size)) {
- return true;
+void BufferCache<P>::PopAsyncBuffers() {
+ if (async_buffers.empty()) {
+ return;
+ }
+ if (!async_buffers.front().has_value()) {
+ async_buffers.pop_front();
+ return;
+ }
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ auto& downloads = pending_downloads.front();
+ auto& async_buffer = async_buffers.front();
+ u8* base = async_buffer->mapped_span.data();
+ const size_t base_offset = async_buffer->offset;
+ for (const auto& copy : downloads) {
+ const VAddr cpu_addr = static_cast<VAddr>(copy.src_offset);
+ const u64 dst_offset = copy.dst_offset - base_offset;
+ const u8* read_mapped_memory = base + dst_offset;
+ ForEachInOverlapCounter(
+ async_downloads, cpu_addr, copy.size, [&](VAddr start, VAddr end, int count) {
+ cpu_memory.WriteBlockUnsafe(start, &read_mapped_memory[start - cpu_addr],
+ end - start);
+ if (count == 1) {
+ const IntervalType base_interval{start, end};
+ common_ranges.subtract(base_interval);
+ }
+ });
+ const IntervalType subtract_interval{cpu_addr, cpu_addr + copy.size};
+ RemoveEachInOverlapCounter(async_downloads, subtract_interval, -1);
}
- const VAddr end_addr = buffer.CpuAddr() + buffer.SizeBytes();
- page = Common::DivCeil(end_addr, YUZU_PAGESIZE);
+ async_buffers_death_ring.emplace_back(*async_buffer);
+ async_buffers.pop_front();
+ pending_downloads.pop_front();
}
- return false;
+}
+
+template <class P>
+bool BufferCache<P>::IsRegionGpuModified(VAddr addr, size_t size) {
+ bool is_dirty = false;
+ ForEachInRangeSet(common_ranges, addr, size, [&](VAddr, VAddr) { is_dirty = true; });
+ return is_dirty;
}
template <class P>
bool BufferCache<P>::IsRegionRegistered(VAddr addr, size_t size) {
const VAddr end_addr = addr + size;
- const u64 page_end = Common::DivCeil(end_addr, YUZU_PAGESIZE);
- for (u64 page = addr >> YUZU_PAGEBITS; page < page_end;) {
+ const u64 page_end = Common::DivCeil(end_addr, CACHING_PAGESIZE);
+ for (u64 page = addr >> CACHING_PAGEBITS; page < page_end;) {
const BufferId buffer_id = page_table[page];
if (!buffer_id) {
++page;
@@ -987,39 +671,25 @@ bool BufferCache<P>::IsRegionRegistered(VAddr addr, size_t size) {
if (buf_start_addr < end_addr && addr < buf_end_addr) {
return true;
}
- page = Common::DivCeil(end_addr, YUZU_PAGESIZE);
+ page = Common::DivCeil(end_addr, CACHING_PAGESIZE);
}
return false;
}
template <class P>
bool BufferCache<P>::IsRegionCpuModified(VAddr addr, size_t size) {
- const u64 page_end = Common::DivCeil(addr + size, YUZU_PAGESIZE);
- for (u64 page = addr >> YUZU_PAGEBITS; page < page_end;) {
- const BufferId image_id = page_table[page];
- if (!image_id) {
- ++page;
- continue;
- }
- Buffer& buffer = slot_buffers[image_id];
- if (buffer.IsRegionCpuModified(addr, size)) {
- return true;
- }
- const VAddr end_addr = buffer.CpuAddr() + buffer.SizeBytes();
- page = Common::DivCeil(end_addr, YUZU_PAGESIZE);
- }
- return false;
+ return memory_tracker.IsRegionCpuModified(addr, size);
}
template <class P>
void BufferCache<P>::BindHostIndexBuffer() {
- Buffer& buffer = slot_buffers[index_buffer.buffer_id];
- TouchBuffer(buffer, index_buffer.buffer_id);
- const u32 offset = buffer.Offset(index_buffer.cpu_addr);
- const u32 size = index_buffer.size;
+ Buffer& buffer = slot_buffers[channel_state->index_buffer.buffer_id];
+ TouchBuffer(buffer, channel_state->index_buffer.buffer_id);
+ const u32 offset = buffer.Offset(channel_state->index_buffer.cpu_addr);
+ const u32 size = channel_state->index_buffer.size;
const auto& draw_state = maxwell3d->draw_manager->GetDrawState();
- if (!draw_state.inline_index_draw_indexes.empty()) {
- if constexpr (USE_MEMORY_MAPS) {
+ if (!draw_state.inline_index_draw_indexes.empty()) [[unlikely]] {
+ if constexpr (USE_MEMORY_MAPS_FOR_UPLOADS) {
auto upload_staging = runtime.UploadStagingBuffer(size);
std::array<BufferCopy, 1> copies{
{BufferCopy{.src_offset = upload_staging.offset, .dst_offset = 0, .size = size}}};
@@ -1030,7 +700,7 @@ void BufferCache<P>::BindHostIndexBuffer() {
buffer.ImmediateUpload(0, draw_state.inline_index_draw_indexes);
}
} else {
- SynchronizeBuffer(buffer, index_buffer.cpu_addr, size);
+ SynchronizeBuffer(buffer, channel_state->index_buffer.cpu_addr, size);
}
if constexpr (HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT) {
const u32 new_offset =
@@ -1045,9 +715,11 @@ void BufferCache<P>::BindHostIndexBuffer() {
template <class P>
void BufferCache<P>::BindHostVertexBuffers() {
+ HostBindings<typename P::Buffer> host_bindings;
+ bool any_valid{false};
auto& flags = maxwell3d->dirty.flags;
for (u32 index = 0; index < NUM_VERTEX_BUFFERS; ++index) {
- const Binding& binding = vertex_buffers[index];
+ const Binding& binding = channel_state->vertex_buffers[index];
Buffer& buffer = slot_buffers[binding.buffer_id];
TouchBuffer(buffer, binding.buffer_id);
SynchronizeBuffer(buffer, binding.cpu_addr, binding.size);
@@ -1056,9 +728,28 @@ void BufferCache<P>::BindHostVertexBuffers() {
}
flags[Dirty::VertexBuffer0 + index] = false;
- const u32 stride = maxwell3d->regs.vertex_streams[index].stride;
- const u32 offset = buffer.Offset(binding.cpu_addr);
- runtime.BindVertexBuffer(index, buffer, offset, binding.size, stride);
+ host_bindings.min_index = std::min(host_bindings.min_index, index);
+ host_bindings.max_index = std::max(host_bindings.max_index, index);
+ any_valid = true;
+ }
+
+ if (any_valid) {
+ host_bindings.max_index++;
+ for (u32 index = host_bindings.min_index; index < host_bindings.max_index; index++) {
+ flags[Dirty::VertexBuffer0 + index] = false;
+
+ const Binding& binding = channel_state->vertex_buffers[index];
+ Buffer& buffer = slot_buffers[binding.buffer_id];
+
+ const u32 stride = maxwell3d->regs.vertex_streams[index].stride;
+ const u32 offset = buffer.Offset(binding.cpu_addr);
+
+ host_bindings.buffers.push_back(&buffer);
+ host_bindings.offsets.push_back(offset);
+ host_bindings.sizes.push_back(binding.size);
+ host_bindings.strides.push_back(stride);
+ }
+ runtime.BindVertexBuffers(host_bindings);
}
}
@@ -1070,19 +761,19 @@ void BufferCache<P>::BindHostDrawIndirectBuffers() {
SynchronizeBuffer(buffer, binding.cpu_addr, binding.size);
};
if (current_draw_indirect->include_count) {
- bind_buffer(count_buffer_binding);
+ bind_buffer(channel_state->count_buffer_binding);
}
- bind_buffer(indirect_buffer_binding);
+ bind_buffer(channel_state->indirect_buffer_binding);
}
template <class P>
void BufferCache<P>::BindHostGraphicsUniformBuffers(size_t stage) {
u32 dirty = ~0U;
if constexpr (HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS) {
- dirty = std::exchange(dirty_uniform_buffers[stage], 0);
+ dirty = std::exchange(channel_state->dirty_uniform_buffers[stage], 0);
}
u32 binding_index = 0;
- ForEachEnabledBit(enabled_uniform_buffer_masks[stage], [&](u32 index) {
+ ForEachEnabledBit(channel_state->enabled_uniform_buffer_masks[stage], [&](u32 index) {
const bool needs_bind = ((dirty >> index) & 1) != 0;
BindHostGraphicsUniformBuffer(stage, index, binding_index, needs_bind);
if constexpr (NEEDS_BIND_UNIFORM_INDEX) {
@@ -1094,25 +785,25 @@ void BufferCache<P>::BindHostGraphicsUniformBuffers(size_t stage) {
template <class P>
void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32 binding_index,
bool needs_bind) {
- const Binding& binding = uniform_buffers[stage][index];
+ const Binding& binding = channel_state->uniform_buffers[stage][index];
const VAddr cpu_addr = binding.cpu_addr;
- const u32 size = std::min(binding.size, (*uniform_buffer_sizes)[stage][index]);
+ const u32 size = std::min(binding.size, (*channel_state->uniform_buffer_sizes)[stage][index]);
Buffer& buffer = slot_buffers[binding.buffer_id];
TouchBuffer(buffer, binding.buffer_id);
const bool use_fast_buffer = binding.buffer_id != NULL_BUFFER_ID &&
- size <= uniform_buffer_skip_cache_size &&
- !buffer.IsRegionGpuModified(cpu_addr, size);
+ size <= channel_state->uniform_buffer_skip_cache_size &&
+ !memory_tracker.IsRegionGpuModified(cpu_addr, size);
if (use_fast_buffer) {
if constexpr (IS_OPENGL) {
if (runtime.HasFastBufferSubData()) {
// Fast path for Nvidia
const bool should_fast_bind =
!HasFastUniformBufferBound(stage, binding_index) ||
- uniform_buffer_binding_sizes[stage][binding_index] != size;
+ channel_state->uniform_buffer_binding_sizes[stage][binding_index] != size;
if (should_fast_bind) {
// We only have to bind when the currently bound buffer is not the fast version
- fast_bound_uniform_buffers[stage] |= 1U << binding_index;
- uniform_buffer_binding_sizes[stage][binding_index] = size;
+ channel_state->fast_bound_uniform_buffers[stage] |= 1U << binding_index;
+ channel_state->uniform_buffer_binding_sizes[stage][binding_index] = size;
runtime.BindFastUniformBuffer(stage, binding_index, size);
}
const auto span = ImmediateBufferWithData(cpu_addr, size);
@@ -1121,8 +812,8 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32
}
}
if constexpr (IS_OPENGL) {
- fast_bound_uniform_buffers[stage] |= 1U << binding_index;
- uniform_buffer_binding_sizes[stage][binding_index] = size;
+ channel_state->fast_bound_uniform_buffers[stage] |= 1U << binding_index;
+ channel_state->uniform_buffer_binding_sizes[stage][binding_index] = size;
}
// Stream buffer path to avoid stalling on non-Nvidia drivers or Vulkan
const std::span<u8> span = runtime.BindMappedUniformBuffer(stage, binding_index, size);
@@ -1132,15 +823,15 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32
// Classic cached path
const bool sync_cached = SynchronizeBuffer(buffer, cpu_addr, size);
if (sync_cached) {
- ++uniform_cache_hits[0];
+ ++channel_state->uniform_cache_hits[0];
}
- ++uniform_cache_shots[0];
+ ++channel_state->uniform_cache_shots[0];
// Skip binding if it's not needed and if the bound buffer is not the fast version
// This exists to avoid instances where the fast buffer is bound and a GPU write happens
needs_bind |= HasFastUniformBufferBound(stage, binding_index);
if constexpr (HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS) {
- needs_bind |= uniform_buffer_binding_sizes[stage][binding_index] != size;
+ needs_bind |= channel_state->uniform_buffer_binding_sizes[stage][binding_index] != size;
}
if (!needs_bind) {
return;
@@ -1148,14 +839,14 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32
const u32 offset = buffer.Offset(cpu_addr);
if constexpr (IS_OPENGL) {
// Fast buffer will be unbound
- fast_bound_uniform_buffers[stage] &= ~(1U << binding_index);
+ channel_state->fast_bound_uniform_buffers[stage] &= ~(1U << binding_index);
// Mark the index as dirty if offset doesn't match
const bool is_copy_bind = offset != 0 && !runtime.SupportsNonZeroUniformOffset();
- dirty_uniform_buffers[stage] |= (is_copy_bind ? 1U : 0U) << index;
+ channel_state->dirty_uniform_buffers[stage] |= (is_copy_bind ? 1U : 0U) << index;
}
if constexpr (HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS) {
- uniform_buffer_binding_sizes[stage][binding_index] = size;
+ channel_state->uniform_buffer_binding_sizes[stage][binding_index] = size;
}
if constexpr (NEEDS_BIND_UNIFORM_INDEX) {
runtime.BindUniformBuffer(stage, binding_index, buffer, offset, size);
@@ -1167,15 +858,15 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32
template <class P>
void BufferCache<P>::BindHostGraphicsStorageBuffers(size_t stage) {
u32 binding_index = 0;
- ForEachEnabledBit(enabled_storage_buffers[stage], [&](u32 index) {
- const Binding& binding = storage_buffers[stage][index];
+ ForEachEnabledBit(channel_state->enabled_storage_buffers[stage], [&](u32 index) {
+ const Binding& binding = channel_state->storage_buffers[stage][index];
Buffer& buffer = slot_buffers[binding.buffer_id];
TouchBuffer(buffer, binding.buffer_id);
const u32 size = binding.size;
SynchronizeBuffer(buffer, binding.cpu_addr, size);
const u32 offset = buffer.Offset(binding.cpu_addr);
- const bool is_written = ((written_storage_buffers[stage] >> index) & 1) != 0;
+ const bool is_written = ((channel_state->written_storage_buffers[stage] >> index) & 1) != 0;
if constexpr (NEEDS_BIND_STORAGE_INDEX) {
runtime.BindStorageBuffer(stage, binding_index, buffer, offset, size, is_written);
++binding_index;
@@ -1187,8 +878,8 @@ void BufferCache<P>::BindHostGraphicsStorageBuffers(size_t stage) {
template <class P>
void BufferCache<P>::BindHostGraphicsTextureBuffers(size_t stage) {
- ForEachEnabledBit(enabled_texture_buffers[stage], [&](u32 index) {
- const TextureBufferBinding& binding = texture_buffers[stage][index];
+ ForEachEnabledBit(channel_state->enabled_texture_buffers[stage], [&](u32 index) {
+ const TextureBufferBinding& binding = channel_state->texture_buffers[stage][index];
Buffer& buffer = slot_buffers[binding.buffer_id];
const u32 size = binding.size;
SynchronizeBuffer(buffer, binding.cpu_addr, size);
@@ -1196,7 +887,7 @@ void BufferCache<P>::BindHostGraphicsTextureBuffers(size_t stage) {
const u32 offset = buffer.Offset(binding.cpu_addr);
const PixelFormat format = binding.format;
if constexpr (SEPARATE_IMAGE_BUFFERS_BINDINGS) {
- if (((image_texture_buffers[stage] >> index) & 1) != 0) {
+ if (((channel_state->image_texture_buffers[stage] >> index) & 1) != 0) {
runtime.BindImageBuffer(buffer, offset, size, format);
} else {
runtime.BindTextureBuffer(buffer, offset, size, format);
@@ -1212,15 +903,25 @@ void BufferCache<P>::BindHostTransformFeedbackBuffers() {
if (maxwell3d->regs.transform_feedback_enabled == 0) {
return;
}
+ HostBindings<typename P::Buffer> host_bindings;
for (u32 index = 0; index < NUM_TRANSFORM_FEEDBACK_BUFFERS; ++index) {
- const Binding& binding = transform_feedback_buffers[index];
+ const Binding& binding = channel_state->transform_feedback_buffers[index];
+ if (maxwell3d->regs.transform_feedback.controls[index].varying_count == 0 &&
+ maxwell3d->regs.transform_feedback.controls[index].stride == 0) {
+ break;
+ }
Buffer& buffer = slot_buffers[binding.buffer_id];
TouchBuffer(buffer, binding.buffer_id);
const u32 size = binding.size;
SynchronizeBuffer(buffer, binding.cpu_addr, size);
const u32 offset = buffer.Offset(binding.cpu_addr);
- runtime.BindTransformFeedbackBuffer(index, buffer, offset, size);
+ host_bindings.buffers.push_back(&buffer);
+ host_bindings.offsets.push_back(offset);
+ host_bindings.sizes.push_back(binding.size);
+ }
+ if (host_bindings.buffers.size() > 0) {
+ runtime.BindTransformFeedbackBuffers(host_bindings);
}
}
@@ -1228,15 +929,16 @@ template <class P>
void BufferCache<P>::BindHostComputeUniformBuffers() {
if constexpr (HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS) {
// Mark all uniform buffers as dirty
- dirty_uniform_buffers.fill(~u32{0});
- fast_bound_uniform_buffers.fill(0);
+ channel_state->dirty_uniform_buffers.fill(~u32{0});
+ channel_state->fast_bound_uniform_buffers.fill(0);
}
u32 binding_index = 0;
- ForEachEnabledBit(enabled_compute_uniform_buffer_mask, [&](u32 index) {
- const Binding& binding = compute_uniform_buffers[index];
+ ForEachEnabledBit(channel_state->enabled_compute_uniform_buffer_mask, [&](u32 index) {
+ const Binding& binding = channel_state->compute_uniform_buffers[index];
Buffer& buffer = slot_buffers[binding.buffer_id];
TouchBuffer(buffer, binding.buffer_id);
- const u32 size = std::min(binding.size, (*compute_uniform_buffer_sizes)[index]);
+ const u32 size =
+ std::min(binding.size, (*channel_state->compute_uniform_buffer_sizes)[index]);
SynchronizeBuffer(buffer, binding.cpu_addr, size);
const u32 offset = buffer.Offset(binding.cpu_addr);
@@ -1252,15 +954,16 @@ void BufferCache<P>::BindHostComputeUniformBuffers() {
template <class P>
void BufferCache<P>::BindHostComputeStorageBuffers() {
u32 binding_index = 0;
- ForEachEnabledBit(enabled_compute_storage_buffers, [&](u32 index) {
- const Binding& binding = compute_storage_buffers[index];
+ ForEachEnabledBit(channel_state->enabled_compute_storage_buffers, [&](u32 index) {
+ const Binding& binding = channel_state->compute_storage_buffers[index];
Buffer& buffer = slot_buffers[binding.buffer_id];
TouchBuffer(buffer, binding.buffer_id);
const u32 size = binding.size;
SynchronizeBuffer(buffer, binding.cpu_addr, size);
const u32 offset = buffer.Offset(binding.cpu_addr);
- const bool is_written = ((written_compute_storage_buffers >> index) & 1) != 0;
+ const bool is_written =
+ ((channel_state->written_compute_storage_buffers >> index) & 1) != 0;
if constexpr (NEEDS_BIND_STORAGE_INDEX) {
runtime.BindComputeStorageBuffer(binding_index, buffer, offset, size, is_written);
++binding_index;
@@ -1272,8 +975,8 @@ void BufferCache<P>::BindHostComputeStorageBuffers() {
template <class P>
void BufferCache<P>::BindHostComputeTextureBuffers() {
- ForEachEnabledBit(enabled_compute_texture_buffers, [&](u32 index) {
- const TextureBufferBinding& binding = compute_texture_buffers[index];
+ ForEachEnabledBit(channel_state->enabled_compute_texture_buffers, [&](u32 index) {
+ const TextureBufferBinding& binding = channel_state->compute_texture_buffers[index];
Buffer& buffer = slot_buffers[binding.buffer_id];
const u32 size = binding.size;
SynchronizeBuffer(buffer, binding.cpu_addr, size);
@@ -1281,7 +984,7 @@ void BufferCache<P>::BindHostComputeTextureBuffers() {
const u32 offset = buffer.Offset(binding.cpu_addr);
const PixelFormat format = binding.format;
if constexpr (SEPARATE_IMAGE_BUFFERS_BINDINGS) {
- if (((image_compute_texture_buffers >> index) & 1) != 0) {
+ if (((channel_state->image_compute_texture_buffers >> index) & 1) != 0) {
runtime.BindImageBuffer(buffer, offset, size, format);
} else {
runtime.BindTextureBuffer(buffer, offset, size, format);
@@ -1295,7 +998,7 @@ void BufferCache<P>::BindHostComputeTextureBuffers() {
template <class P>
void BufferCache<P>::DoUpdateGraphicsBuffers(bool is_indexed) {
do {
- has_deleted_buffers = false;
+ channel_state->has_deleted_buffers = false;
if (is_indexed) {
UpdateIndexBuffer();
}
@@ -1309,7 +1012,7 @@ void BufferCache<P>::DoUpdateGraphicsBuffers(bool is_indexed) {
if (current_draw_indirect) {
UpdateDrawIndirect();
}
- } while (has_deleted_buffers);
+ } while (channel_state->has_deleted_buffers);
}
template <class P>
@@ -1324,33 +1027,42 @@ void BufferCache<P>::UpdateIndexBuffer() {
// We have to check for the dirty flags and index count
// The index count is currently changed without updating the dirty flags
const auto& draw_state = maxwell3d->draw_manager->GetDrawState();
- const auto& index_array = draw_state.index_buffer;
+ const auto& index_buffer_ref = draw_state.index_buffer;
auto& flags = maxwell3d->dirty.flags;
if (!flags[Dirty::IndexBuffer]) {
return;
}
flags[Dirty::IndexBuffer] = false;
- last_index_count = index_array.count;
- if (!draw_state.inline_index_draw_indexes.empty()) {
+ if (!draw_state.inline_index_draw_indexes.empty()) [[unlikely]] {
auto inline_index_size = static_cast<u32>(draw_state.inline_index_draw_indexes.size());
- index_buffer = Binding{
+ u32 buffer_size = Common::AlignUp(inline_index_size, CACHING_PAGESIZE);
+ if (inline_buffer_id == NULL_BUFFER_ID) [[unlikely]] {
+ inline_buffer_id = CreateBuffer(0, buffer_size);
+ }
+ if (slot_buffers[inline_buffer_id].SizeBytes() < buffer_size) [[unlikely]] {
+ slot_buffers.erase(inline_buffer_id);
+ inline_buffer_id = CreateBuffer(0, buffer_size);
+ }
+ channel_state->index_buffer = Binding{
.cpu_addr = 0,
.size = inline_index_size,
- .buffer_id = CreateBuffer(0, inline_index_size),
+ .buffer_id = inline_buffer_id,
};
return;
}
- const GPUVAddr gpu_addr_begin = index_array.StartAddress();
- const GPUVAddr gpu_addr_end = index_array.EndAddress();
+
+ const GPUVAddr gpu_addr_begin = index_buffer_ref.StartAddress();
+ const GPUVAddr gpu_addr_end = index_buffer_ref.EndAddress();
const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr_begin);
const u32 address_size = static_cast<u32>(gpu_addr_end - gpu_addr_begin);
- const u32 draw_size = (index_array.count + index_array.first) * index_array.FormatSizeInBytes();
+ const u32 draw_size =
+ (index_buffer_ref.count + index_buffer_ref.first) * index_buffer_ref.FormatSizeInBytes();
const u32 size = std::min(address_size, draw_size);
if (size == 0 || !cpu_addr) {
- index_buffer = NULL_BINDING;
+ channel_state->index_buffer = NULL_BINDING;
return;
}
- index_buffer = Binding{
+ channel_state->index_buffer = Binding{
.cpu_addr = *cpu_addr,
.size = size,
.buffer_id = FindBuffer(*cpu_addr, size),
@@ -1380,18 +1092,16 @@ void BufferCache<P>::UpdateVertexBuffer(u32 index) {
const GPUVAddr gpu_addr_begin = array.Address();
const GPUVAddr gpu_addr_end = limit.Address() + 1;
const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr_begin);
- u32 address_size = static_cast<u32>(
- std::min(gpu_addr_end - gpu_addr_begin, static_cast<u64>(std::numeric_limits<u32>::max())));
- if (array.enable == 0 || address_size == 0 || !cpu_addr) {
- vertex_buffers[index] = NULL_BINDING;
+ const u32 address_size = static_cast<u32>(gpu_addr_end - gpu_addr_begin);
+ u32 size = address_size; // TODO: Analyze stride and number of vertices
+ if (array.enable == 0 || size == 0 || !cpu_addr) {
+ channel_state->vertex_buffers[index] = NULL_BINDING;
return;
}
if (!gpu_memory->IsWithinGPUAddressRange(gpu_addr_end)) {
- address_size =
- static_cast<u32>(gpu_memory->MaxContinousRange(gpu_addr_begin, address_size));
+ size = static_cast<u32>(gpu_memory->MaxContinuousRange(gpu_addr_begin, size));
}
- const u32 size = address_size; // TODO: Analyze stride and number of vertices
- vertex_buffers[index] = Binding{
+ channel_state->vertex_buffers[index] = Binding{
.cpu_addr = *cpu_addr,
.size = size,
.buffer_id = FindBuffer(*cpu_addr, size),
@@ -1413,23 +1123,24 @@ void BufferCache<P>::UpdateDrawIndirect() {
};
};
if (current_draw_indirect->include_count) {
- update(current_draw_indirect->count_start_address, sizeof(u32), count_buffer_binding);
+ update(current_draw_indirect->count_start_address, sizeof(u32),
+ channel_state->count_buffer_binding);
}
update(current_draw_indirect->indirect_start_address, current_draw_indirect->buffer_size,
- indirect_buffer_binding);
+ channel_state->indirect_buffer_binding);
}
template <class P>
void BufferCache<P>::UpdateUniformBuffers(size_t stage) {
- ForEachEnabledBit(enabled_uniform_buffer_masks[stage], [&](u32 index) {
- Binding& binding = uniform_buffers[stage][index];
+ ForEachEnabledBit(channel_state->enabled_uniform_buffer_masks[stage], [&](u32 index) {
+ Binding& binding = channel_state->uniform_buffers[stage][index];
if (binding.buffer_id) {
// Already updated
return;
}
// Mark as dirty
if constexpr (HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS) {
- dirty_uniform_buffers[stage] |= 1U << index;
+ channel_state->dirty_uniform_buffers[stage] |= 1U << index;
}
// Resolve buffer
binding.buffer_id = FindBuffer(binding.cpu_addr, binding.size);
@@ -1438,10 +1149,10 @@ void BufferCache<P>::UpdateUniformBuffers(size_t stage) {
template <class P>
void BufferCache<P>::UpdateStorageBuffers(size_t stage) {
- const u32 written_mask = written_storage_buffers[stage];
- ForEachEnabledBit(enabled_storage_buffers[stage], [&](u32 index) {
+ const u32 written_mask = channel_state->written_storage_buffers[stage];
+ ForEachEnabledBit(channel_state->enabled_storage_buffers[stage], [&](u32 index) {
// Resolve buffer
- Binding& binding = storage_buffers[stage][index];
+ Binding& binding = channel_state->storage_buffers[stage][index];
const BufferId buffer_id = FindBuffer(binding.cpu_addr, binding.size);
binding.buffer_id = buffer_id;
// Mark buffer as written if needed
@@ -1453,11 +1164,11 @@ void BufferCache<P>::UpdateStorageBuffers(size_t stage) {
template <class P>
void BufferCache<P>::UpdateTextureBuffers(size_t stage) {
- ForEachEnabledBit(enabled_texture_buffers[stage], [&](u32 index) {
- Binding& binding = texture_buffers[stage][index];
+ ForEachEnabledBit(channel_state->enabled_texture_buffers[stage], [&](u32 index) {
+ Binding& binding = channel_state->texture_buffers[stage][index];
binding.buffer_id = FindBuffer(binding.cpu_addr, binding.size);
// Mark buffer as written if needed
- if (((written_texture_buffers[stage] >> index) & 1) != 0) {
+ if (((channel_state->written_texture_buffers[stage] >> index) & 1) != 0) {
MarkWrittenBuffer(binding.buffer_id, binding.cpu_addr, binding.size);
}
});
@@ -1480,11 +1191,11 @@ void BufferCache<P>::UpdateTransformFeedbackBuffer(u32 index) {
const u32 size = binding.size;
const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr);
if (binding.enable == 0 || size == 0 || !cpu_addr) {
- transform_feedback_buffers[index] = NULL_BINDING;
+ channel_state->transform_feedback_buffers[index] = NULL_BINDING;
return;
}
const BufferId buffer_id = FindBuffer(*cpu_addr, size);
- transform_feedback_buffers[index] = Binding{
+ channel_state->transform_feedback_buffers[index] = Binding{
.cpu_addr = *cpu_addr,
.size = size,
.buffer_id = buffer_id,
@@ -1494,8 +1205,8 @@ void BufferCache<P>::UpdateTransformFeedbackBuffer(u32 index) {
template <class P>
void BufferCache<P>::UpdateComputeUniformBuffers() {
- ForEachEnabledBit(enabled_compute_uniform_buffer_mask, [&](u32 index) {
- Binding& binding = compute_uniform_buffers[index];
+ ForEachEnabledBit(channel_state->enabled_compute_uniform_buffer_mask, [&](u32 index) {
+ Binding& binding = channel_state->compute_uniform_buffers[index];
binding = NULL_BINDING;
const auto& launch_desc = kepler_compute->launch_description;
if (((launch_desc.const_buffer_enable_mask >> index) & 1) != 0) {
@@ -1512,12 +1223,12 @@ void BufferCache<P>::UpdateComputeUniformBuffers() {
template <class P>
void BufferCache<P>::UpdateComputeStorageBuffers() {
- ForEachEnabledBit(enabled_compute_storage_buffers, [&](u32 index) {
+ ForEachEnabledBit(channel_state->enabled_compute_storage_buffers, [&](u32 index) {
// Resolve buffer
- Binding& binding = compute_storage_buffers[index];
+ Binding& binding = channel_state->compute_storage_buffers[index];
binding.buffer_id = FindBuffer(binding.cpu_addr, binding.size);
// Mark as written if needed
- if (((written_compute_storage_buffers >> index) & 1) != 0) {
+ if (((channel_state->written_compute_storage_buffers >> index) & 1) != 0) {
MarkWrittenBuffer(binding.buffer_id, binding.cpu_addr, binding.size);
}
});
@@ -1525,11 +1236,11 @@ void BufferCache<P>::UpdateComputeStorageBuffers() {
template <class P>
void BufferCache<P>::UpdateComputeTextureBuffers() {
- ForEachEnabledBit(enabled_compute_texture_buffers, [&](u32 index) {
- Binding& binding = compute_texture_buffers[index];
+ ForEachEnabledBit(channel_state->enabled_compute_texture_buffers, [&](u32 index) {
+ Binding& binding = channel_state->compute_texture_buffers[index];
binding.buffer_id = FindBuffer(binding.cpu_addr, binding.size);
// Mark as written if needed
- if (((written_compute_texture_buffers >> index) & 1) != 0) {
+ if (((channel_state->written_compute_texture_buffers >> index) & 1) != 0) {
MarkWrittenBuffer(binding.buffer_id, binding.cpu_addr, binding.size);
}
});
@@ -1537,16 +1248,13 @@ void BufferCache<P>::UpdateComputeTextureBuffers() {
template <class P>
void BufferCache<P>::MarkWrittenBuffer(BufferId buffer_id, VAddr cpu_addr, u32 size) {
- Buffer& buffer = slot_buffers[buffer_id];
- buffer.MarkRegionAsGpuModified(cpu_addr, size);
+ if (memory_tracker.IsRegionCpuModified(cpu_addr, size)) {
+ SynchronizeBuffer(slot_buffers[buffer_id], cpu_addr, size);
+ }
+ memory_tracker.MarkRegionAsGpuModified(cpu_addr, size);
const IntervalType base_interval{cpu_addr, cpu_addr + size};
common_ranges.add(base_interval);
-
- const bool is_async = Settings::values.use_asynchronous_gpu_emulation.GetValue();
- if (!is_async) {
- return;
- }
uncommitted_ranges.add(base_interval);
}
@@ -1555,7 +1263,7 @@ BufferId BufferCache<P>::FindBuffer(VAddr cpu_addr, u32 size) {
if (cpu_addr == 0) {
return NULL_BUFFER_ID;
}
- const u64 page = cpu_addr >> YUZU_PAGEBITS;
+ const u64 page = cpu_addr >> CACHING_PAGEBITS;
const BufferId buffer_id = page_table[page];
if (!buffer_id) {
return CreateBuffer(cpu_addr, size);
@@ -1571,7 +1279,7 @@ template <class P>
typename BufferCache<P>::OverlapResult BufferCache<P>::ResolveOverlaps(VAddr cpu_addr,
u32 wanted_size) {
static constexpr int STREAM_LEAP_THRESHOLD = 16;
- std::vector<BufferId> overlap_ids;
+ boost::container::small_vector<BufferId, 16> overlap_ids;
VAddr begin = cpu_addr;
VAddr end = cpu_addr + wanted_size;
int stream_score = 0;
@@ -1584,9 +1292,9 @@ typename BufferCache<P>::OverlapResult BufferCache<P>::ResolveOverlaps(VAddr cpu
.has_stream_leap = has_stream_leap,
};
}
- for (; cpu_addr >> YUZU_PAGEBITS < Common::DivCeil(end, YUZU_PAGESIZE);
- cpu_addr += YUZU_PAGESIZE) {
- const BufferId overlap_id = page_table[cpu_addr >> YUZU_PAGEBITS];
+ for (; cpu_addr >> CACHING_PAGEBITS < Common::DivCeil(end, CACHING_PAGESIZE);
+ cpu_addr += CACHING_PAGESIZE) {
+ const BufferId overlap_id = page_table[cpu_addr >> CACHING_PAGEBITS];
if (!overlap_id) {
continue;
}
@@ -1599,7 +1307,7 @@ typename BufferCache<P>::OverlapResult BufferCache<P>::ResolveOverlaps(VAddr cpu
const VAddr overlap_cpu_addr = overlap.CpuAddr();
const bool expands_left = overlap_cpu_addr < begin;
if (expands_left) {
- cpu_addr = begin = overlap_cpu_addr;
+ begin = overlap_cpu_addr;
}
const VAddr overlap_end = overlap_cpu_addr + overlap.SizeBytes();
const bool expands_right = overlap_end > end;
@@ -1612,11 +1320,11 @@ typename BufferCache<P>::OverlapResult BufferCache<P>::ResolveOverlaps(VAddr cpu
// as a stream buffer. Increase the size to skip constantly recreating buffers.
has_stream_leap = true;
if (expands_right) {
- begin -= YUZU_PAGESIZE * 256;
- cpu_addr = begin;
+ begin -= CACHING_PAGESIZE * 256;
+ cpu_addr = begin - CACHING_PAGESIZE;
}
if (expands_left) {
- end += YUZU_PAGESIZE * 256;
+ end += CACHING_PAGESIZE * 256;
}
}
}
@@ -1636,25 +1344,22 @@ void BufferCache<P>::JoinOverlap(BufferId new_buffer_id, BufferId overlap_id,
if (accumulate_stream_score) {
new_buffer.IncreaseStreamScore(overlap.StreamScore() + 1);
}
- std::vector<BufferCopy> copies;
+ boost::container::small_vector<BufferCopy, 10> copies;
const size_t dst_base_offset = overlap.CpuAddr() - new_buffer.CpuAddr();
- overlap.ForEachDownloadRange([&](u64 begin, u64 range_size) {
- copies.push_back(BufferCopy{
- .src_offset = begin,
- .dst_offset = dst_base_offset + begin,
- .size = range_size,
- });
- new_buffer.UnmarkRegionAsCpuModified(begin, range_size);
- new_buffer.MarkRegionAsGpuModified(begin, range_size);
+ copies.push_back(BufferCopy{
+ .src_offset = 0,
+ .dst_offset = dst_base_offset,
+ .size = overlap.SizeBytes(),
});
- if (!copies.empty()) {
- runtime.CopyBuffer(slot_buffers[new_buffer_id], overlap, copies);
- }
- DeleteBuffer(overlap_id);
+ runtime.CopyBuffer(new_buffer, overlap, copies);
+ DeleteBuffer(overlap_id, true);
}
template <class P>
BufferId BufferCache<P>::CreateBuffer(VAddr cpu_addr, u32 wanted_size) {
+ VAddr cpu_addr_end = Common::AlignUp(cpu_addr + wanted_size, CACHING_PAGESIZE);
+ cpu_addr = Common::AlignDown(cpu_addr, CACHING_PAGESIZE);
+ wanted_size = static_cast<u32>(cpu_addr_end - cpu_addr);
const OverlapResult overlap = ResolveOverlaps(cpu_addr, wanted_size);
const u32 size = static_cast<u32>(overlap.end - overlap.begin);
const BufferId new_buffer_id = slot_buffers.insert(runtime, rasterizer, overlap.begin, size);
@@ -1664,7 +1369,7 @@ BufferId BufferCache<P>::CreateBuffer(VAddr cpu_addr, u32 wanted_size) {
JoinOverlap(new_buffer_id, overlap_id, !overlap.has_stream_leap);
}
Register(new_buffer_id);
- TouchBuffer(slot_buffers[new_buffer_id], new_buffer_id);
+ TouchBuffer(new_buffer, new_buffer_id);
return new_buffer_id;
}
@@ -1692,8 +1397,8 @@ void BufferCache<P>::ChangeRegister(BufferId buffer_id) {
}
const VAddr cpu_addr_begin = buffer.CpuAddr();
const VAddr cpu_addr_end = cpu_addr_begin + size;
- const u64 page_begin = cpu_addr_begin / YUZU_PAGESIZE;
- const u64 page_end = Common::DivCeil(cpu_addr_end, YUZU_PAGESIZE);
+ const u64 page_begin = cpu_addr_begin / CACHING_PAGESIZE;
+ const u64 page_end = Common::DivCeil(cpu_addr_end, CACHING_PAGESIZE);
for (u64 page = page_begin; page != page_end; ++page) {
if constexpr (insert) {
page_table[page] = buffer_id;
@@ -1712,9 +1417,6 @@ void BufferCache<P>::TouchBuffer(Buffer& buffer, BufferId buffer_id) noexcept {
template <class P>
bool BufferCache<P>::SynchronizeBuffer(Buffer& buffer, VAddr cpu_addr, u32 size) {
- if (buffer.CpuAddr() == 0) {
- return true;
- }
return SynchronizeBufferImpl(buffer, cpu_addr, size);
}
@@ -1723,10 +1425,11 @@ bool BufferCache<P>::SynchronizeBufferImpl(Buffer& buffer, VAddr cpu_addr, u32 s
boost::container::small_vector<BufferCopy, 4> copies;
u64 total_size_bytes = 0;
u64 largest_copy = 0;
- buffer.ForEachUploadRange(cpu_addr, size, [&](u64 range_offset, u64 range_size) {
+ VAddr buffer_start = buffer.CpuAddr();
+ memory_tracker.ForEachUploadRange(cpu_addr, size, [&](u64 cpu_addr_out, u64 range_size) {
copies.push_back(BufferCopy{
.src_offset = total_size_bytes,
- .dst_offset = range_offset,
+ .dst_offset = cpu_addr_out - buffer_start,
.size = range_size,
});
total_size_bytes += range_size;
@@ -1741,9 +1444,54 @@ bool BufferCache<P>::SynchronizeBufferImpl(Buffer& buffer, VAddr cpu_addr, u32 s
}
template <class P>
+bool BufferCache<P>::SynchronizeBufferNoModified(Buffer& buffer, VAddr cpu_addr, u32 size) {
+ boost::container::small_vector<BufferCopy, 4> copies;
+ u64 total_size_bytes = 0;
+ u64 largest_copy = 0;
+ IntervalSet found_sets{};
+ auto make_copies = [&] {
+ for (auto& interval : found_sets) {
+ const std::size_t sub_size = interval.upper() - interval.lower();
+ const VAddr cpu_addr_ = interval.lower();
+ copies.push_back(BufferCopy{
+ .src_offset = total_size_bytes,
+ .dst_offset = cpu_addr_ - buffer.CpuAddr(),
+ .size = sub_size,
+ });
+ total_size_bytes += sub_size;
+ largest_copy = std::max<u64>(largest_copy, sub_size);
+ }
+ const std::span<BufferCopy> copies_span(copies.data(), copies.size());
+ UploadMemory(buffer, total_size_bytes, largest_copy, copies_span);
+ };
+ memory_tracker.ForEachUploadRange(cpu_addr, size, [&](u64 cpu_addr_out, u64 range_size) {
+ const VAddr base_adr = cpu_addr_out;
+ const VAddr end_adr = base_adr + range_size;
+ const IntervalType add_interval{base_adr, end_adr};
+ found_sets.add(add_interval);
+ });
+ if (found_sets.empty()) {
+ return true;
+ }
+ const IntervalType search_interval{cpu_addr, cpu_addr + size};
+ auto it = common_ranges.lower_bound(search_interval);
+ auto it_end = common_ranges.upper_bound(search_interval);
+ if (it == common_ranges.end()) {
+ make_copies();
+ return false;
+ }
+ while (it != it_end) {
+ found_sets.subtract(*it);
+ it++;
+ }
+ make_copies();
+ return false;
+}
+
+template <class P>
void BufferCache<P>::UploadMemory(Buffer& buffer, u64 total_size_bytes, u64 largest_copy,
std::span<BufferCopy> copies) {
- if constexpr (USE_MEMORY_MAPS) {
+ if constexpr (USE_MEMORY_MAPS_FOR_UPLOADS) {
MappedUploadMemory(buffer, total_size_bytes, copies);
} else {
ImmediateUploadMemory(buffer, largest_copy, copies);
@@ -1751,39 +1499,45 @@ void BufferCache<P>::UploadMemory(Buffer& buffer, u64 total_size_bytes, u64 larg
}
template <class P>
-void BufferCache<P>::ImmediateUploadMemory(Buffer& buffer, u64 largest_copy,
- std::span<const BufferCopy> copies) {
- std::span<u8> immediate_buffer;
- for (const BufferCopy& copy : copies) {
- std::span<const u8> upload_span;
- const VAddr cpu_addr = buffer.CpuAddr() + copy.dst_offset;
- if (IsRangeGranular(cpu_addr, copy.size)) {
- upload_span = std::span(cpu_memory.GetPointer(cpu_addr), copy.size);
- } else {
- if (immediate_buffer.empty()) {
- immediate_buffer = ImmediateBuffer(largest_copy);
+void BufferCache<P>::ImmediateUploadMemory([[maybe_unused]] Buffer& buffer,
+ [[maybe_unused]] u64 largest_copy,
+ [[maybe_unused]] std::span<const BufferCopy> copies) {
+ if constexpr (!USE_MEMORY_MAPS_FOR_UPLOADS) {
+ std::span<u8> immediate_buffer;
+ for (const BufferCopy& copy : copies) {
+ std::span<const u8> upload_span;
+ const VAddr cpu_addr = buffer.CpuAddr() + copy.dst_offset;
+ if (IsRangeGranular(cpu_addr, copy.size)) {
+ upload_span = std::span(cpu_memory.GetPointer(cpu_addr), copy.size);
+ } else {
+ if (immediate_buffer.empty()) {
+ immediate_buffer = ImmediateBuffer(largest_copy);
+ }
+ cpu_memory.ReadBlockUnsafe(cpu_addr, immediate_buffer.data(), copy.size);
+ upload_span = immediate_buffer.subspan(0, copy.size);
}
- cpu_memory.ReadBlockUnsafe(cpu_addr, immediate_buffer.data(), copy.size);
- upload_span = immediate_buffer.subspan(0, copy.size);
+ buffer.ImmediateUpload(copy.dst_offset, upload_span);
}
- buffer.ImmediateUpload(copy.dst_offset, upload_span);
}
}
template <class P>
-void BufferCache<P>::MappedUploadMemory(Buffer& buffer, u64 total_size_bytes,
- std::span<BufferCopy> copies) {
- auto upload_staging = runtime.UploadStagingBuffer(total_size_bytes);
- const std::span<u8> staging_pointer = upload_staging.mapped_span;
- for (BufferCopy& copy : copies) {
- u8* const src_pointer = staging_pointer.data() + copy.src_offset;
- const VAddr cpu_addr = buffer.CpuAddr() + copy.dst_offset;
- cpu_memory.ReadBlockUnsafe(cpu_addr, src_pointer, copy.size);
+void BufferCache<P>::MappedUploadMemory([[maybe_unused]] Buffer& buffer,
+ [[maybe_unused]] u64 total_size_bytes,
+ [[maybe_unused]] std::span<BufferCopy> copies) {
+ if constexpr (USE_MEMORY_MAPS) {
+ auto upload_staging = runtime.UploadStagingBuffer(total_size_bytes);
+ const std::span<u8> staging_pointer = upload_staging.mapped_span;
+ for (BufferCopy& copy : copies) {
+ u8* const src_pointer = staging_pointer.data() + copy.src_offset;
+ const VAddr cpu_addr = buffer.CpuAddr() + copy.dst_offset;
+ cpu_memory.ReadBlockUnsafe(cpu_addr, src_pointer, copy.size);
- // Apply the staging offset
- copy.src_offset += upload_staging.offset;
+ // Apply the staging offset
+ copy.src_offset += upload_staging.offset;
+ }
+ runtime.CopyBuffer(buffer, upload_staging.buffer, copies);
}
- runtime.CopyBuffer(buffer, upload_staging.buffer, copies);
}
template <class P>
@@ -1793,7 +1547,9 @@ bool BufferCache<P>::InlineMemory(VAddr dest_address, size_t copy_size,
if (!is_dirty) {
return false;
}
- if (!IsRegionGpuModified(dest_address, copy_size)) {
+ VAddr aligned_start = Common::AlignDown(dest_address, YUZU_PAGESIZE);
+ VAddr aligned_end = Common::AlignUp(dest_address + copy_size, YUZU_PAGESIZE);
+ if (!IsRegionGpuModified(aligned_start, aligned_end - aligned_start)) {
return false;
}
@@ -1805,7 +1561,7 @@ bool BufferCache<P>::InlineMemory(VAddr dest_address, size_t copy_size,
auto& buffer = slot_buffers[buffer_id];
SynchronizeBuffer(buffer, dest_address, static_cast<u32>(copy_size));
- if constexpr (USE_MEMORY_MAPS) {
+ if constexpr (USE_MEMORY_MAPS_FOR_UPLOADS) {
auto upload_staging = runtime.UploadStagingBuffer(copy_size);
std::array copies{BufferCopy{
.src_offset = upload_staging.offset,
@@ -1832,30 +1588,31 @@ void BufferCache<P>::DownloadBufferMemory(Buffer& buffer, VAddr cpu_addr, u64 si
boost::container::small_vector<BufferCopy, 1> copies;
u64 total_size_bytes = 0;
u64 largest_copy = 0;
- buffer.ForEachDownloadRangeAndClear(cpu_addr, size, [&](u64 range_offset, u64 range_size) {
- const VAddr buffer_addr = buffer.CpuAddr();
- const auto add_download = [&](VAddr start, VAddr end) {
- const u64 new_offset = start - buffer_addr;
- const u64 new_size = end - start;
- copies.push_back(BufferCopy{
- .src_offset = new_offset,
- .dst_offset = total_size_bytes,
- .size = new_size,
- });
- // Align up to avoid cache conflicts
- constexpr u64 align = 256ULL;
- constexpr u64 mask = ~(align - 1ULL);
- total_size_bytes += (new_size + align - 1) & mask;
- largest_copy = std::max(largest_copy, new_size);
- };
-
- const VAddr start_address = buffer_addr + range_offset;
- const VAddr end_address = start_address + range_size;
- ForEachWrittenRange(start_address, range_size, add_download);
- const IntervalType subtract_interval{start_address, end_address};
- ClearDownload(subtract_interval);
- common_ranges.subtract(subtract_interval);
- });
+ memory_tracker.ForEachDownloadRangeAndClear(
+ cpu_addr, size, [&](u64 cpu_addr_out, u64 range_size) {
+ const VAddr buffer_addr = buffer.CpuAddr();
+ const auto add_download = [&](VAddr start, VAddr end) {
+ const u64 new_offset = start - buffer_addr;
+ const u64 new_size = end - start;
+ copies.push_back(BufferCopy{
+ .src_offset = new_offset,
+ .dst_offset = total_size_bytes,
+ .size = new_size,
+ });
+ // Align up to avoid cache conflicts
+ constexpr u64 align = 64ULL;
+ constexpr u64 mask = ~(align - 1ULL);
+ total_size_bytes += (new_size + align - 1) & mask;
+ largest_copy = std::max(largest_copy, new_size);
+ };
+
+ const VAddr start_address = cpu_addr_out;
+ const VAddr end_address = start_address + range_size;
+ ForEachInRangeSet(common_ranges, start_address, range_size, add_download);
+ const IntervalType subtract_interval{start_address, end_address};
+ ClearDownload(subtract_interval);
+ common_ranges.subtract(subtract_interval);
+ });
if (total_size_bytes == 0) {
return;
}
@@ -1889,7 +1646,9 @@ void BufferCache<P>::DownloadBufferMemory(Buffer& buffer, VAddr cpu_addr, u64 si
}
template <class P>
-void BufferCache<P>::DeleteBuffer(BufferId buffer_id) {
+void BufferCache<P>::DeleteBuffer(BufferId buffer_id, bool do_not_mark) {
+ bool dirty_index{false};
+ boost::container::small_vector<u64, NUM_VERTEX_BUFFERS> dirty_vertex_buffers;
const auto scalar_replace = [buffer_id](Binding& binding) {
if (binding.buffer_id == buffer_id) {
binding.buffer_id = BufferId{};
@@ -1898,69 +1657,90 @@ void BufferCache<P>::DeleteBuffer(BufferId buffer_id) {
const auto replace = [scalar_replace](std::span<Binding> bindings) {
std::ranges::for_each(bindings, scalar_replace);
};
- scalar_replace(index_buffer);
- replace(vertex_buffers);
- std::ranges::for_each(uniform_buffers, replace);
- std::ranges::for_each(storage_buffers, replace);
- replace(transform_feedback_buffers);
- replace(compute_uniform_buffers);
- replace(compute_storage_buffers);
- std::erase(cached_write_buffer_ids, buffer_id);
+
+ if (channel_state->index_buffer.buffer_id == buffer_id) {
+ channel_state->index_buffer.buffer_id = BufferId{};
+ dirty_index = true;
+ }
+
+ for (u32 index = 0; index < channel_state->vertex_buffers.size(); index++) {
+ auto& binding = channel_state->vertex_buffers[index];
+ if (binding.buffer_id == buffer_id) {
+ binding.buffer_id = BufferId{};
+ dirty_vertex_buffers.push_back(index);
+ }
+ }
+ std::ranges::for_each(channel_state->uniform_buffers, replace);
+ std::ranges::for_each(channel_state->storage_buffers, replace);
+ replace(channel_state->transform_feedback_buffers);
+ replace(channel_state->compute_uniform_buffers);
+ replace(channel_state->compute_storage_buffers);
// Mark the whole buffer as CPU written to stop tracking CPU writes
- Buffer& buffer = slot_buffers[buffer_id];
- buffer.MarkRegionAsCpuModified(buffer.CpuAddr(), buffer.SizeBytes());
+ if (!do_not_mark) {
+ Buffer& buffer = slot_buffers[buffer_id];
+ memory_tracker.MarkRegionAsCpuModified(buffer.CpuAddr(), buffer.SizeBytes());
+ }
Unregister(buffer_id);
delayed_destruction_ring.Push(std::move(slot_buffers[buffer_id]));
slot_buffers.erase(buffer_id);
- NotifyBufferDeletion();
-}
-
-template <class P>
-void BufferCache<P>::NotifyBufferDeletion() {
if constexpr (HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS) {
- dirty_uniform_buffers.fill(~u32{0});
- uniform_buffer_binding_sizes.fill({});
+ channel_state->dirty_uniform_buffers.fill(~u32{0});
+ channel_state->uniform_buffer_binding_sizes.fill({});
}
+
auto& flags = maxwell3d->dirty.flags;
- flags[Dirty::IndexBuffer] = true;
- flags[Dirty::VertexBuffers] = true;
- for (u32 index = 0; index < NUM_VERTEX_BUFFERS; ++index) {
- flags[Dirty::VertexBuffer0 + index] = true;
+ if (dirty_index) {
+ flags[Dirty::IndexBuffer] = true;
}
- has_deleted_buffers = true;
+
+ if (dirty_vertex_buffers.size() > 0) {
+ flags[Dirty::VertexBuffers] = true;
+ for (auto index : dirty_vertex_buffers) {
+ flags[Dirty::VertexBuffer0 + index] = true;
+ }
+ }
+ channel_state->has_deleted_buffers = true;
}
template <class P>
-typename BufferCache<P>::Binding BufferCache<P>::StorageBufferBinding(GPUVAddr ssbo_addr,
- bool is_written) const {
+Binding BufferCache<P>::StorageBufferBinding(GPUVAddr ssbo_addr, u32 cbuf_index,
+ bool is_written) const {
const GPUVAddr gpu_addr = gpu_memory->Read<u64>(ssbo_addr);
- const u32 size = gpu_memory->Read<u32>(ssbo_addr + 8);
- const u32 alignment = runtime.GetStorageBufferAlignment();
-
- const GPUVAddr aligned_gpu_addr = Common::AlignDown(gpu_addr, alignment);
- const u32 aligned_size =
- Common::AlignUp(static_cast<u32>(gpu_addr - aligned_gpu_addr) + size, alignment);
-
- const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(aligned_gpu_addr);
+ const auto size = [&]() {
+ const bool is_nvn_cbuf = cbuf_index == 0;
+ // The NVN driver buffer (index 0) is known to pack the SSBO address followed by its size.
+ if (is_nvn_cbuf) {
+ const u32 ssbo_size = gpu_memory->Read<u32>(ssbo_addr + 8);
+ if (ssbo_size != 0) {
+ return ssbo_size;
+ }
+ }
+ // Other titles (notably Doom Eternal) may use STG/LDG on buffer addresses in custom defined
+ // cbufs, which do not store the sizes adjacent to the addresses, so use the fully
+ // mapped buffer size for now.
+ const u32 memory_layout_size = static_cast<u32>(gpu_memory->GetMemoryLayoutSize(gpu_addr));
+ return std::min(memory_layout_size, static_cast<u32>(8_MiB));
+ }();
+ const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr);
if (!cpu_addr || size == 0) {
+ LOG_WARNING(HW_GPU, "Failed to find storage buffer for cbuf index {}", cbuf_index);
return NULL_BINDING;
}
-
- const VAddr cpu_end = Common::AlignUp(*cpu_addr + aligned_size, Core::Memory::YUZU_PAGESIZE);
+ const VAddr cpu_end = Common::AlignUp(*cpu_addr + size, YUZU_PAGESIZE);
const Binding binding{
.cpu_addr = *cpu_addr,
- .size = is_written ? aligned_size : static_cast<u32>(cpu_end - *cpu_addr),
+ .size = is_written ? size : static_cast<u32>(cpu_end - *cpu_addr),
.buffer_id = BufferId{},
};
return binding;
}
template <class P>
-typename BufferCache<P>::TextureBufferBinding BufferCache<P>::GetTextureBufferBinding(
- GPUVAddr gpu_addr, u32 size, PixelFormat format) {
+TextureBufferBinding BufferCache<P>::GetTextureBufferBinding(GPUVAddr gpu_addr, u32 size,
+ PixelFormat format) {
const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr);
TextureBufferBinding binding;
if (!cpu_addr || size == 0) {
@@ -1999,7 +1779,7 @@ std::span<u8> BufferCache<P>::ImmediateBuffer(size_t wanted_capacity) {
template <class P>
bool BufferCache<P>::HasFastUniformBufferBound(size_t stage, u32 binding_index) const noexcept {
if constexpr (IS_OPENGL) {
- return ((fast_bound_uniform_buffers[stage] >> binding_index) & 1) != 0;
+ return ((channel_state->fast_bound_uniform_buffers[stage] >> binding_index) & 1) != 0;
} else {
// Only OpenGL has fast uniform buffers
return false;
@@ -2008,14 +1788,14 @@ bool BufferCache<P>::HasFastUniformBufferBound(size_t stage, u32 binding_index)
template <class P>
std::pair<typename BufferCache<P>::Buffer*, u32> BufferCache<P>::GetDrawIndirectCount() {
- auto& buffer = slot_buffers[count_buffer_binding.buffer_id];
- return std::make_pair(&buffer, buffer.Offset(count_buffer_binding.cpu_addr));
+ auto& buffer = slot_buffers[channel_state->count_buffer_binding.buffer_id];
+ return std::make_pair(&buffer, buffer.Offset(channel_state->count_buffer_binding.cpu_addr));
}
template <class P>
std::pair<typename BufferCache<P>::Buffer*, u32> BufferCache<P>::GetDrawIndirectBuffer() {
- auto& buffer = slot_buffers[indirect_buffer_binding.buffer_id];
- return std::make_pair(&buffer, buffer.Offset(indirect_buffer_binding.cpu_addr));
+ auto& buffer = slot_buffers[channel_state->indirect_buffer_binding.buffer_id];
+ return std::make_pair(&buffer, buffer.Offset(channel_state->indirect_buffer_binding.cpu_addr));
}
} // namespace VideoCommon
diff --git a/src/video_core/buffer_cache/buffer_cache_base.h b/src/video_core/buffer_cache/buffer_cache_base.h
new file mode 100644
index 000000000..fe6068cfe
--- /dev/null
+++ b/src/video_core/buffer_cache/buffer_cache_base.h
@@ -0,0 +1,588 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <algorithm>
+#include <array>
+#include <functional>
+#include <memory>
+#include <mutex>
+#include <numeric>
+#include <span>
+#include <unordered_map>
+#include <vector>
+
+#include <boost/container/small_vector.hpp>
+#define BOOST_NO_MT
+#include <boost/pool/detail/mutex.hpp>
+#undef BOOST_NO_MT
+#include <boost/icl/interval.hpp>
+#include <boost/icl/interval_base_set.hpp>
+#include <boost/icl/interval_set.hpp>
+#include <boost/icl/split_interval_map.hpp>
+#include <boost/pool/pool.hpp>
+#include <boost/pool/pool_alloc.hpp>
+#include <boost/pool/poolfwd.hpp>
+
+#include "common/common_types.h"
+#include "common/div_ceil.h"
+#include "common/literals.h"
+#include "common/lru_cache.h"
+#include "common/microprofile.h"
+#include "common/scope_exit.h"
+#include "common/settings.h"
+#include "core/memory.h"
+#include "video_core/buffer_cache/buffer_base.h"
+#include "video_core/control/channel_state_cache.h"
+#include "video_core/delayed_destruction_ring.h"
+#include "video_core/dirty_flags.h"
+#include "video_core/engines/draw_manager.h"
+#include "video_core/engines/kepler_compute.h"
+#include "video_core/engines/maxwell_3d.h"
+#include "video_core/memory_manager.h"
+#include "video_core/rasterizer_interface.h"
+#include "video_core/surface.h"
+#include "video_core/texture_cache/slot_vector.h"
+#include "video_core/texture_cache/types.h"
+
+namespace boost {
+template <typename T>
+class fast_pool_allocator<T, default_user_allocator_new_delete, details::pool::null_mutex, 4096, 0>;
+}
+
+namespace VideoCommon {
+
+MICROPROFILE_DECLARE(GPU_PrepareBuffers);
+MICROPROFILE_DECLARE(GPU_BindUploadBuffers);
+MICROPROFILE_DECLARE(GPU_DownloadMemory);
+
+using BufferId = SlotId;
+
+using VideoCore::Surface::PixelFormat;
+using namespace Common::Literals;
+
+constexpr u32 NUM_VERTEX_BUFFERS = 32;
+constexpr u32 NUM_TRANSFORM_FEEDBACK_BUFFERS = 4;
+constexpr u32 NUM_GRAPHICS_UNIFORM_BUFFERS = 18;
+constexpr u32 NUM_COMPUTE_UNIFORM_BUFFERS = 8;
+constexpr u32 NUM_STORAGE_BUFFERS = 16;
+constexpr u32 NUM_TEXTURE_BUFFERS = 16;
+constexpr u32 NUM_STAGES = 5;
+
+using UniformBufferSizes = std::array<std::array<u32, NUM_GRAPHICS_UNIFORM_BUFFERS>, NUM_STAGES>;
+using ComputeUniformBufferSizes = std::array<u32, NUM_COMPUTE_UNIFORM_BUFFERS>;
+
+enum class ObtainBufferSynchronize : u32 {
+ NoSynchronize = 0,
+ FullSynchronize = 1,
+ SynchronizeNoDirty = 2,
+};
+
+enum class ObtainBufferOperation : u32 {
+ DoNothing = 0,
+ MarkAsWritten = 1,
+ DiscardWrite = 2,
+ MarkQuery = 3,
+};
+
+static constexpr BufferId NULL_BUFFER_ID{0};
+static constexpr u32 DEFAULT_SKIP_CACHE_SIZE = static_cast<u32>(4_KiB);
+
+struct Binding {
+ VAddr cpu_addr{};
+ u32 size{};
+ BufferId buffer_id;
+};
+
+struct TextureBufferBinding : Binding {
+ PixelFormat format;
+};
+
+static constexpr Binding NULL_BINDING{
+ .cpu_addr = 0,
+ .size = 0,
+ .buffer_id = NULL_BUFFER_ID,
+};
+
+template <typename Buffer>
+struct HostBindings {
+ boost::container::small_vector<Buffer*, NUM_VERTEX_BUFFERS> buffers;
+ boost::container::small_vector<u64, NUM_VERTEX_BUFFERS> offsets;
+ boost::container::small_vector<u64, NUM_VERTEX_BUFFERS> sizes;
+ boost::container::small_vector<u64, NUM_VERTEX_BUFFERS> strides;
+ u32 min_index{NUM_VERTEX_BUFFERS};
+ u32 max_index{0};
+};
+
+class BufferCacheChannelInfo : public ChannelInfo {
+public:
+ BufferCacheChannelInfo() = delete;
+ BufferCacheChannelInfo(Tegra::Control::ChannelState& state) noexcept : ChannelInfo(state) {}
+ BufferCacheChannelInfo(const BufferCacheChannelInfo& state) = delete;
+ BufferCacheChannelInfo& operator=(const BufferCacheChannelInfo&) = delete;
+
+ Binding index_buffer;
+ std::array<Binding, NUM_VERTEX_BUFFERS> vertex_buffers;
+ std::array<std::array<Binding, NUM_GRAPHICS_UNIFORM_BUFFERS>, NUM_STAGES> uniform_buffers;
+ std::array<std::array<Binding, NUM_STORAGE_BUFFERS>, NUM_STAGES> storage_buffers;
+ std::array<std::array<TextureBufferBinding, NUM_TEXTURE_BUFFERS>, NUM_STAGES> texture_buffers;
+ std::array<Binding, NUM_TRANSFORM_FEEDBACK_BUFFERS> transform_feedback_buffers;
+ Binding count_buffer_binding;
+ Binding indirect_buffer_binding;
+
+ std::array<Binding, NUM_COMPUTE_UNIFORM_BUFFERS> compute_uniform_buffers;
+ std::array<Binding, NUM_STORAGE_BUFFERS> compute_storage_buffers;
+ std::array<TextureBufferBinding, NUM_TEXTURE_BUFFERS> compute_texture_buffers;
+
+ std::array<u32, NUM_STAGES> enabled_uniform_buffer_masks{};
+ u32 enabled_compute_uniform_buffer_mask = 0;
+
+ const UniformBufferSizes* uniform_buffer_sizes{};
+ const ComputeUniformBufferSizes* compute_uniform_buffer_sizes{};
+
+ std::array<u32, NUM_STAGES> enabled_storage_buffers{};
+ std::array<u32, NUM_STAGES> written_storage_buffers{};
+ u32 enabled_compute_storage_buffers = 0;
+ u32 written_compute_storage_buffers = 0;
+
+ std::array<u32, NUM_STAGES> enabled_texture_buffers{};
+ std::array<u32, NUM_STAGES> written_texture_buffers{};
+ std::array<u32, NUM_STAGES> image_texture_buffers{};
+ u32 enabled_compute_texture_buffers = 0;
+ u32 written_compute_texture_buffers = 0;
+ u32 image_compute_texture_buffers = 0;
+
+ std::array<u32, 16> uniform_cache_hits{};
+ std::array<u32, 16> uniform_cache_shots{};
+
+ u32 uniform_buffer_skip_cache_size = DEFAULT_SKIP_CACHE_SIZE;
+
+ bool has_deleted_buffers = false;
+
+ std::array<u32, NUM_STAGES> dirty_uniform_buffers{};
+ std::array<u32, NUM_STAGES> fast_bound_uniform_buffers{};
+ std::array<std::array<u32, NUM_GRAPHICS_UNIFORM_BUFFERS>, NUM_STAGES>
+ uniform_buffer_binding_sizes{};
+};
+
+template <class P>
+class BufferCache : public VideoCommon::ChannelSetupCaches<BufferCacheChannelInfo> {
+ // Page size for caching purposes.
+ // This is unrelated to the CPU page size and it can be changed as it seems optimal.
+ static constexpr u32 CACHING_PAGEBITS = 16;
+ static constexpr u64 CACHING_PAGESIZE = u64{1} << CACHING_PAGEBITS;
+
+ static constexpr bool IS_OPENGL = P::IS_OPENGL;
+ static constexpr bool HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS =
+ P::HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS;
+ static constexpr bool HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT =
+ P::HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT;
+ static constexpr bool NEEDS_BIND_UNIFORM_INDEX = P::NEEDS_BIND_UNIFORM_INDEX;
+ static constexpr bool NEEDS_BIND_STORAGE_INDEX = P::NEEDS_BIND_STORAGE_INDEX;
+ static constexpr bool USE_MEMORY_MAPS = P::USE_MEMORY_MAPS;
+ static constexpr bool SEPARATE_IMAGE_BUFFERS_BINDINGS = P::SEPARATE_IMAGE_BUFFER_BINDINGS;
+ static constexpr bool IMPLEMENTS_ASYNC_DOWNLOADS = P::IMPLEMENTS_ASYNC_DOWNLOADS;
+ static constexpr bool USE_MEMORY_MAPS_FOR_UPLOADS = P::USE_MEMORY_MAPS_FOR_UPLOADS;
+
+ static constexpr s64 DEFAULT_EXPECTED_MEMORY = 512_MiB;
+ static constexpr s64 DEFAULT_CRITICAL_MEMORY = 1_GiB;
+ static constexpr s64 TARGET_THRESHOLD = 4_GiB;
+
+ // Debug Flags.
+
+ static constexpr bool DISABLE_DOWNLOADS = true;
+
+ using Maxwell = Tegra::Engines::Maxwell3D::Regs;
+
+ using Runtime = typename P::Runtime;
+ using Buffer = typename P::Buffer;
+ using Async_Buffer = typename P::Async_Buffer;
+ using MemoryTracker = typename P::MemoryTracker;
+
+ using IntervalCompare = std::less<VAddr>;
+ using IntervalInstance = boost::icl::interval_type_default<VAddr, std::less>;
+ using IntervalAllocator = boost::fast_pool_allocator<VAddr>;
+ using IntervalSet = boost::icl::interval_set<VAddr>;
+ using IntervalType = typename IntervalSet::interval_type;
+
+ template <typename Type>
+ struct counter_add_functor : public boost::icl::identity_based_inplace_combine<Type> {
+ // types
+ typedef counter_add_functor<Type> type;
+ typedef boost::icl::identity_based_inplace_combine<Type> base_type;
+
+ // public member functions
+ void operator()(Type& current, const Type& added) const {
+ current += added;
+ if (current < base_type::identity_element()) {
+ current = base_type::identity_element();
+ }
+ }
+
+ // public static functions
+ static void version(Type&){};
+ };
+
+ using OverlapCombine = counter_add_functor<int>;
+ using OverlapSection = boost::icl::inter_section<int>;
+ using OverlapCounter = boost::icl::split_interval_map<VAddr, int>;
+
+ struct OverlapResult {
+ boost::container::small_vector<BufferId, 16> ids;
+ VAddr begin;
+ VAddr end;
+ bool has_stream_leap = false;
+ };
+
+public:
+ explicit BufferCache(VideoCore::RasterizerInterface& rasterizer_,
+ Core::Memory::Memory& cpu_memory_, Runtime& runtime_);
+
+ void TickFrame();
+
+ void WriteMemory(VAddr cpu_addr, u64 size);
+
+ void CachedWriteMemory(VAddr cpu_addr, u64 size);
+
+ void DownloadMemory(VAddr cpu_addr, u64 size);
+
+ std::optional<VideoCore::RasterizerDownloadArea> GetFlushArea(VAddr cpu_addr, u64 size);
+
+ bool InlineMemory(VAddr dest_address, size_t copy_size, std::span<const u8> inlined_buffer);
+
+ void BindGraphicsUniformBuffer(size_t stage, u32 index, GPUVAddr gpu_addr, u32 size);
+
+ void DisableGraphicsUniformBuffer(size_t stage, u32 index);
+
+ void UpdateGraphicsBuffers(bool is_indexed);
+
+ void UpdateComputeBuffers();
+
+ void BindHostGeometryBuffers(bool is_indexed);
+
+ void BindHostStageBuffers(size_t stage);
+
+ void BindHostComputeBuffers();
+
+ void SetUniformBuffersState(const std::array<u32, NUM_STAGES>& mask,
+ const UniformBufferSizes* sizes);
+
+ void SetComputeUniformBufferState(u32 mask, const ComputeUniformBufferSizes* sizes);
+
+ void UnbindGraphicsStorageBuffers(size_t stage);
+
+ void BindGraphicsStorageBuffer(size_t stage, size_t ssbo_index, u32 cbuf_index, u32 cbuf_offset,
+ bool is_written);
+
+ void UnbindGraphicsTextureBuffers(size_t stage);
+
+ void BindGraphicsTextureBuffer(size_t stage, size_t tbo_index, GPUVAddr gpu_addr, u32 size,
+ PixelFormat format, bool is_written, bool is_image);
+
+ void UnbindComputeStorageBuffers();
+
+ void BindComputeStorageBuffer(size_t ssbo_index, u32 cbuf_index, u32 cbuf_offset,
+ bool is_written);
+
+ void UnbindComputeTextureBuffers();
+
+ void BindComputeTextureBuffer(size_t tbo_index, GPUVAddr gpu_addr, u32 size, PixelFormat format,
+ bool is_written, bool is_image);
+
+ [[nodiscard]] std::pair<Buffer*, u32> ObtainBuffer(GPUVAddr gpu_addr, u32 size,
+ ObtainBufferSynchronize sync_info,
+ ObtainBufferOperation post_op);
+ void FlushCachedWrites();
+
+ /// Return true when there are uncommitted buffers to be downloaded
+ [[nodiscard]] bool HasUncommittedFlushes() const noexcept;
+
+ void AccumulateFlushes();
+
+ /// Return true when the caller should wait for async downloads
+ [[nodiscard]] bool ShouldWaitAsyncFlushes() const noexcept;
+
+ /// Commit asynchronous downloads
+ void CommitAsyncFlushes();
+ void CommitAsyncFlushesHigh();
+
+ /// Pop asynchronous downloads
+ void PopAsyncFlushes();
+ void PopAsyncBuffers();
+
+ bool DMACopy(GPUVAddr src_address, GPUVAddr dest_address, u64 amount);
+
+ bool DMAClear(GPUVAddr src_address, u64 amount, u32 value);
+
+ /// Return true when a CPU region is modified from the GPU
+ [[nodiscard]] bool IsRegionGpuModified(VAddr addr, size_t size);
+
+ /// Return true when a region is registered on the cache
+ [[nodiscard]] bool IsRegionRegistered(VAddr addr, size_t size);
+
+ /// Return true when a CPU region is modified from the CPU
+ [[nodiscard]] bool IsRegionCpuModified(VAddr addr, size_t size);
+
+ void SetDrawIndirect(
+ const Tegra::Engines::DrawManager::IndirectParams* current_draw_indirect_) {
+ current_draw_indirect = current_draw_indirect_;
+ }
+
+ [[nodiscard]] std::pair<Buffer*, u32> GetDrawIndirectCount();
+
+ [[nodiscard]] std::pair<Buffer*, u32> GetDrawIndirectBuffer();
+
+ std::recursive_mutex mutex;
+ Runtime& runtime;
+
+private:
+ template <typename Func>
+ static void ForEachEnabledBit(u32 enabled_mask, Func&& func) {
+ for (u32 index = 0; enabled_mask != 0; ++index, enabled_mask >>= 1) {
+ const int disabled_bits = std::countr_zero(enabled_mask);
+ index += disabled_bits;
+ enabled_mask >>= disabled_bits;
+ func(index);
+ }
+ }
+
+ template <typename Func>
+ void ForEachBufferInRange(VAddr cpu_addr, u64 size, Func&& func) {
+ const u64 page_end = Common::DivCeil(cpu_addr + size, CACHING_PAGESIZE);
+ for (u64 page = cpu_addr >> CACHING_PAGEBITS; page < page_end;) {
+ const BufferId buffer_id = page_table[page];
+ if (!buffer_id) {
+ ++page;
+ continue;
+ }
+ Buffer& buffer = slot_buffers[buffer_id];
+ func(buffer_id, buffer);
+
+ const VAddr end_addr = buffer.CpuAddr() + buffer.SizeBytes();
+ page = Common::DivCeil(end_addr, CACHING_PAGESIZE);
+ }
+ }
+
+ template <typename Func>
+ void ForEachInRangeSet(IntervalSet& current_range, VAddr cpu_addr, u64 size, Func&& func) {
+ const VAddr start_address = cpu_addr;
+ const VAddr end_address = start_address + size;
+ const IntervalType search_interval{start_address, end_address};
+ auto it = current_range.lower_bound(search_interval);
+ if (it == current_range.end()) {
+ return;
+ }
+ auto end_it = current_range.upper_bound(search_interval);
+ for (; it != end_it; it++) {
+ VAddr inter_addr_end = it->upper();
+ VAddr inter_addr = it->lower();
+ if (inter_addr_end > end_address) {
+ inter_addr_end = end_address;
+ }
+ if (inter_addr < start_address) {
+ inter_addr = start_address;
+ }
+ func(inter_addr, inter_addr_end);
+ }
+ }
+
+ template <typename Func>
+ void ForEachInOverlapCounter(OverlapCounter& current_range, VAddr cpu_addr, u64 size,
+ Func&& func) {
+ const VAddr start_address = cpu_addr;
+ const VAddr end_address = start_address + size;
+ const IntervalType search_interval{start_address, end_address};
+ auto it = current_range.lower_bound(search_interval);
+ if (it == current_range.end()) {
+ return;
+ }
+ auto end_it = current_range.upper_bound(search_interval);
+ for (; it != end_it; it++) {
+ auto& inter = it->first;
+ VAddr inter_addr_end = inter.upper();
+ VAddr inter_addr = inter.lower();
+ if (inter_addr_end > end_address) {
+ inter_addr_end = end_address;
+ }
+ if (inter_addr < start_address) {
+ inter_addr = start_address;
+ }
+ func(inter_addr, inter_addr_end, it->second);
+ }
+ }
+
+ void RemoveEachInOverlapCounter(OverlapCounter& current_range,
+ const IntervalType search_interval, int subtract_value) {
+ bool any_removals = false;
+ current_range.add(std::make_pair(search_interval, subtract_value));
+ do {
+ any_removals = false;
+ auto it = current_range.lower_bound(search_interval);
+ if (it == current_range.end()) {
+ return;
+ }
+ auto end_it = current_range.upper_bound(search_interval);
+ for (; it != end_it; it++) {
+ if (it->second <= 0) {
+ any_removals = true;
+ current_range.erase(it);
+ break;
+ }
+ }
+ } while (any_removals);
+ }
+
+ static bool IsRangeGranular(VAddr cpu_addr, size_t size) {
+ return (cpu_addr & ~Core::Memory::YUZU_PAGEMASK) ==
+ ((cpu_addr + size) & ~Core::Memory::YUZU_PAGEMASK);
+ }
+
+ void RunGarbageCollector();
+
+ void BindHostIndexBuffer();
+
+ void BindHostVertexBuffers();
+
+ void BindHostDrawIndirectBuffers();
+
+ void BindHostGraphicsUniformBuffers(size_t stage);
+
+ void BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32 binding_index, bool needs_bind);
+
+ void BindHostGraphicsStorageBuffers(size_t stage);
+
+ void BindHostGraphicsTextureBuffers(size_t stage);
+
+ void BindHostTransformFeedbackBuffers();
+
+ void BindHostComputeUniformBuffers();
+
+ void BindHostComputeStorageBuffers();
+
+ void BindHostComputeTextureBuffers();
+
+ void DoUpdateGraphicsBuffers(bool is_indexed);
+
+ void DoUpdateComputeBuffers();
+
+ void UpdateIndexBuffer();
+
+ void UpdateVertexBuffers();
+
+ void UpdateVertexBuffer(u32 index);
+
+ void UpdateDrawIndirect();
+
+ void UpdateUniformBuffers(size_t stage);
+
+ void UpdateStorageBuffers(size_t stage);
+
+ void UpdateTextureBuffers(size_t stage);
+
+ void UpdateTransformFeedbackBuffers();
+
+ void UpdateTransformFeedbackBuffer(u32 index);
+
+ void UpdateComputeUniformBuffers();
+
+ void UpdateComputeStorageBuffers();
+
+ void UpdateComputeTextureBuffers();
+
+ void MarkWrittenBuffer(BufferId buffer_id, VAddr cpu_addr, u32 size);
+
+ [[nodiscard]] BufferId FindBuffer(VAddr cpu_addr, u32 size);
+
+ [[nodiscard]] OverlapResult ResolveOverlaps(VAddr cpu_addr, u32 wanted_size);
+
+ void JoinOverlap(BufferId new_buffer_id, BufferId overlap_id, bool accumulate_stream_score);
+
+ [[nodiscard]] BufferId CreateBuffer(VAddr cpu_addr, u32 wanted_size);
+
+ void Register(BufferId buffer_id);
+
+ void Unregister(BufferId buffer_id);
+
+ template <bool insert>
+ void ChangeRegister(BufferId buffer_id);
+
+ void TouchBuffer(Buffer& buffer, BufferId buffer_id) noexcept;
+
+ bool SynchronizeBuffer(Buffer& buffer, VAddr cpu_addr, u32 size);
+
+ bool SynchronizeBufferImpl(Buffer& buffer, VAddr cpu_addr, u32 size);
+
+ bool SynchronizeBufferNoModified(Buffer& buffer, VAddr cpu_addr, u32 size);
+
+ void UploadMemory(Buffer& buffer, u64 total_size_bytes, u64 largest_copy,
+ std::span<BufferCopy> copies);
+
+ void ImmediateUploadMemory(Buffer& buffer, u64 largest_copy,
+ std::span<const BufferCopy> copies);
+
+ void MappedUploadMemory(Buffer& buffer, u64 total_size_bytes, std::span<BufferCopy> copies);
+
+ void DownloadBufferMemory(Buffer& buffer_id);
+
+ void DownloadBufferMemory(Buffer& buffer_id, VAddr cpu_addr, u64 size);
+
+ void DeleteBuffer(BufferId buffer_id, bool do_not_mark = false);
+
+ [[nodiscard]] Binding StorageBufferBinding(GPUVAddr ssbo_addr, u32 cbuf_index,
+ bool is_written) const;
+
+ [[nodiscard]] TextureBufferBinding GetTextureBufferBinding(GPUVAddr gpu_addr, u32 size,
+ PixelFormat format);
+
+ [[nodiscard]] std::span<const u8> ImmediateBufferWithData(VAddr cpu_addr, size_t size);
+
+ [[nodiscard]] std::span<u8> ImmediateBuffer(size_t wanted_capacity);
+
+ [[nodiscard]] bool HasFastUniformBufferBound(size_t stage, u32 binding_index) const noexcept;
+
+ void ClearDownload(IntervalType subtract_interval);
+
+ VideoCore::RasterizerInterface& rasterizer;
+ Core::Memory::Memory& cpu_memory;
+
+ SlotVector<Buffer> slot_buffers;
+ DelayedDestructionRing<Buffer, 8> delayed_destruction_ring;
+
+ const Tegra::Engines::DrawManager::IndirectParams* current_draw_indirect{};
+
+ u32 last_index_count = 0;
+
+ MemoryTracker memory_tracker;
+ IntervalSet uncommitted_ranges;
+ IntervalSet common_ranges;
+ IntervalSet cached_ranges;
+ std::deque<IntervalSet> committed_ranges;
+
+ // Async Buffers
+ OverlapCounter async_downloads;
+ std::deque<std::optional<Async_Buffer>> async_buffers;
+ std::deque<boost::container::small_vector<BufferCopy, 4>> pending_downloads;
+ std::optional<Async_Buffer> current_buffer;
+
+ std::deque<Async_Buffer> async_buffers_death_ring;
+
+ size_t immediate_buffer_capacity = 0;
+ Common::ScratchBuffer<u8> immediate_buffer_alloc;
+
+ struct LRUItemParams {
+ using ObjectType = BufferId;
+ using TickType = u64;
+ };
+ Common::LeastRecentlyUsedCache<LRUItemParams> lru_cache;
+ u64 frame_tick = 0;
+ u64 total_used_memory = 0;
+ u64 minimum_memory = 0;
+ u64 critical_memory = 0;
+ BufferId inline_buffer_id;
+
+ std::array<BufferId, ((1ULL << 39) >> CACHING_PAGEBITS)> page_table;
+ Common::ScratchBuffer<u8> tmp_buffer;
+};
+
+} // namespace VideoCommon
diff --git a/src/video_core/buffer_cache/memory_tracker_base.h b/src/video_core/buffer_cache/memory_tracker_base.h
new file mode 100644
index 000000000..6036b21c9
--- /dev/null
+++ b/src/video_core/buffer_cache/memory_tracker_base.h
@@ -0,0 +1,299 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <algorithm>
+#include <bit>
+#include <deque>
+#include <limits>
+#include <type_traits>
+#include <unordered_set>
+#include <utility>
+
+#include "common/alignment.h"
+#include "common/common_types.h"
+#include "video_core/buffer_cache/word_manager.h"
+
+namespace VideoCommon {
+
+template <class RasterizerInterface>
+class MemoryTrackerBase {
+ static constexpr size_t MAX_CPU_PAGE_BITS = 39;
+ static constexpr size_t HIGHER_PAGE_BITS = 22;
+ static constexpr size_t HIGHER_PAGE_SIZE = 1ULL << HIGHER_PAGE_BITS;
+ static constexpr size_t HIGHER_PAGE_MASK = HIGHER_PAGE_SIZE - 1ULL;
+ static constexpr size_t NUM_HIGH_PAGES = 1ULL << (MAX_CPU_PAGE_BITS - HIGHER_PAGE_BITS);
+ static constexpr size_t MANAGER_POOL_SIZE = 32;
+ static constexpr size_t WORDS_STACK_NEEDED = HIGHER_PAGE_SIZE / BYTES_PER_WORD;
+ using Manager = WordManager<RasterizerInterface, WORDS_STACK_NEEDED>;
+
+public:
+ MemoryTrackerBase(RasterizerInterface& rasterizer_) : rasterizer{&rasterizer_} {}
+ ~MemoryTrackerBase() = default;
+
+ /// Returns the inclusive CPU modified range in a begin end pair
+ [[nodiscard]] std::pair<u64, u64> ModifiedCpuRegion(VAddr query_cpu_addr,
+ u64 query_size) noexcept {
+ return IteratePairs<true>(
+ query_cpu_addr, query_size, [](Manager* manager, u64 offset, size_t size) {
+ return manager->template ModifiedRegion<Type::CPU>(offset, size);
+ });
+ }
+
+ /// Returns the inclusive GPU modified range in a begin end pair
+ [[nodiscard]] std::pair<u64, u64> ModifiedGpuRegion(VAddr query_cpu_addr,
+ u64 query_size) noexcept {
+ return IteratePairs<false>(
+ query_cpu_addr, query_size, [](Manager* manager, u64 offset, size_t size) {
+ return manager->template ModifiedRegion<Type::GPU>(offset, size);
+ });
+ }
+
+ /// Returns true if a region has been modified from the CPU
+ [[nodiscard]] bool IsRegionCpuModified(VAddr query_cpu_addr, u64 query_size) noexcept {
+ return IteratePages<true>(
+ query_cpu_addr, query_size, [](Manager* manager, u64 offset, size_t size) {
+ return manager->template IsRegionModified<Type::CPU>(offset, size);
+ });
+ }
+
+ /// Returns true if a region has been modified from the GPU
+ [[nodiscard]] bool IsRegionGpuModified(VAddr query_cpu_addr, u64 query_size) noexcept {
+ return IteratePages<false>(
+ query_cpu_addr, query_size, [](Manager* manager, u64 offset, size_t size) {
+ return manager->template IsRegionModified<Type::GPU>(offset, size);
+ });
+ }
+
+ /// Returns true if a region has been marked as Preflushable
+ [[nodiscard]] bool IsRegionPreflushable(VAddr query_cpu_addr, u64 query_size) noexcept {
+ return IteratePages<false>(
+ query_cpu_addr, query_size, [](Manager* manager, u64 offset, size_t size) {
+ return manager->template IsRegionModified<Type::Preflushable>(offset, size);
+ });
+ }
+
+ /// Mark region as CPU modified, notifying the rasterizer about this change
+ void MarkRegionAsCpuModified(VAddr dirty_cpu_addr, u64 query_size) {
+ IteratePages<true>(dirty_cpu_addr, query_size,
+ [](Manager* manager, u64 offset, size_t size) {
+ manager->template ChangeRegionState<Type::CPU, true>(
+ manager->GetCpuAddr() + offset, size);
+ });
+ }
+
+ /// Unmark region as CPU modified, notifying the rasterizer about this change
+ void UnmarkRegionAsCpuModified(VAddr dirty_cpu_addr, u64 query_size) {
+ IteratePages<true>(dirty_cpu_addr, query_size,
+ [](Manager* manager, u64 offset, size_t size) {
+ manager->template ChangeRegionState<Type::CPU, false>(
+ manager->GetCpuAddr() + offset, size);
+ });
+ }
+
+ /// Mark region as modified from the host GPU
+ void MarkRegionAsGpuModified(VAddr dirty_cpu_addr, u64 query_size) noexcept {
+ IteratePages<true>(dirty_cpu_addr, query_size,
+ [](Manager* manager, u64 offset, size_t size) {
+ manager->template ChangeRegionState<Type::GPU, true>(
+ manager->GetCpuAddr() + offset, size);
+ });
+ }
+
+ /// Mark region as modified from the host GPU
+ void MarkRegionAsPreflushable(VAddr dirty_cpu_addr, u64 query_size) noexcept {
+ IteratePages<true>(dirty_cpu_addr, query_size,
+ [](Manager* manager, u64 offset, size_t size) {
+ manager->template ChangeRegionState<Type::Preflushable, true>(
+ manager->GetCpuAddr() + offset, size);
+ });
+ }
+
+ /// Unmark region as modified from the host GPU
+ void UnmarkRegionAsGpuModified(VAddr dirty_cpu_addr, u64 query_size) noexcept {
+ IteratePages<true>(dirty_cpu_addr, query_size,
+ [](Manager* manager, u64 offset, size_t size) {
+ manager->template ChangeRegionState<Type::GPU, false>(
+ manager->GetCpuAddr() + offset, size);
+ });
+ }
+
+ /// Unmark region as modified from the host GPU
+ void UnmarkRegionAsPreflushable(VAddr dirty_cpu_addr, u64 query_size) noexcept {
+ IteratePages<true>(dirty_cpu_addr, query_size,
+ [](Manager* manager, u64 offset, size_t size) {
+ manager->template ChangeRegionState<Type::Preflushable, false>(
+ manager->GetCpuAddr() + offset, size);
+ });
+ }
+
+ /// Mark region as modified from the CPU
+ /// but don't mark it as modified until FlusHCachedWrites is called.
+ void CachedCpuWrite(VAddr dirty_cpu_addr, u64 query_size) {
+ IteratePages<true>(
+ dirty_cpu_addr, query_size, [this](Manager* manager, u64 offset, size_t size) {
+ const VAddr cpu_address = manager->GetCpuAddr() + offset;
+ manager->template ChangeRegionState<Type::CachedCPU, true>(cpu_address, size);
+ cached_pages.insert(static_cast<u32>(cpu_address >> HIGHER_PAGE_BITS));
+ });
+ }
+
+ /// Flushes cached CPU writes, and notify the rasterizer about the deltas
+ void FlushCachedWrites(VAddr query_cpu_addr, u64 query_size) noexcept {
+ IteratePages<false>(query_cpu_addr, query_size,
+ [](Manager* manager, [[maybe_unused]] u64 offset,
+ [[maybe_unused]] size_t size) { manager->FlushCachedWrites(); });
+ }
+
+ void FlushCachedWrites() noexcept {
+ for (auto id : cached_pages) {
+ top_tier[id]->FlushCachedWrites();
+ }
+ cached_pages.clear();
+ }
+
+ /// Call 'func' for each CPU modified range and unmark those pages as CPU modified
+ template <typename Func>
+ void ForEachUploadRange(VAddr query_cpu_range, u64 query_size, Func&& func) {
+ IteratePages<true>(query_cpu_range, query_size,
+ [&func](Manager* manager, u64 offset, size_t size) {
+ manager->template ForEachModifiedRange<Type::CPU, true>(
+ manager->GetCpuAddr() + offset, size, func);
+ });
+ }
+
+ /// Call 'func' for each GPU modified range and unmark those pages as GPU modified
+ template <typename Func>
+ void ForEachDownloadRange(VAddr query_cpu_range, u64 query_size, bool clear, Func&& func) {
+ IteratePages<false>(query_cpu_range, query_size,
+ [&func, clear](Manager* manager, u64 offset, size_t size) {
+ if (clear) {
+ manager->template ForEachModifiedRange<Type::GPU, true>(
+ manager->GetCpuAddr() + offset, size, func);
+ } else {
+ manager->template ForEachModifiedRange<Type::GPU, false>(
+ manager->GetCpuAddr() + offset, size, func);
+ }
+ });
+ }
+
+ template <typename Func>
+ void ForEachDownloadRangeAndClear(VAddr query_cpu_range, u64 query_size, Func&& func) {
+ IteratePages<false>(query_cpu_range, query_size,
+ [&func](Manager* manager, u64 offset, size_t size) {
+ manager->template ForEachModifiedRange<Type::GPU, true>(
+ manager->GetCpuAddr() + offset, size, func);
+ });
+ }
+
+private:
+ template <bool create_region_on_fail, typename Func>
+ bool IteratePages(VAddr cpu_address, size_t size, Func&& func) {
+ using FuncReturn = typename std::invoke_result<Func, Manager*, u64, size_t>::type;
+ static constexpr bool BOOL_BREAK = std::is_same_v<FuncReturn, bool>;
+ std::size_t remaining_size{size};
+ std::size_t page_index{cpu_address >> HIGHER_PAGE_BITS};
+ u64 page_offset{cpu_address & HIGHER_PAGE_MASK};
+ while (remaining_size > 0) {
+ const std::size_t copy_amount{
+ std::min<std::size_t>(HIGHER_PAGE_SIZE - page_offset, remaining_size)};
+ auto* manager{top_tier[page_index]};
+ if (manager) {
+ if constexpr (BOOL_BREAK) {
+ if (func(manager, page_offset, copy_amount)) {
+ return true;
+ }
+ } else {
+ func(manager, page_offset, copy_amount);
+ }
+ } else if constexpr (create_region_on_fail) {
+ CreateRegion(page_index);
+ manager = top_tier[page_index];
+ if constexpr (BOOL_BREAK) {
+ if (func(manager, page_offset, copy_amount)) {
+ return true;
+ }
+ } else {
+ func(manager, page_offset, copy_amount);
+ }
+ }
+ page_index++;
+ page_offset = 0;
+ remaining_size -= copy_amount;
+ }
+ return false;
+ }
+
+ template <bool create_region_on_fail, typename Func>
+ std::pair<u64, u64> IteratePairs(VAddr cpu_address, size_t size, Func&& func) {
+ std::size_t remaining_size{size};
+ std::size_t page_index{cpu_address >> HIGHER_PAGE_BITS};
+ u64 page_offset{cpu_address & HIGHER_PAGE_MASK};
+ u64 begin = std::numeric_limits<u64>::max();
+ u64 end = 0;
+ while (remaining_size > 0) {
+ const std::size_t copy_amount{
+ std::min<std::size_t>(HIGHER_PAGE_SIZE - page_offset, remaining_size)};
+ auto* manager{top_tier[page_index]};
+ const auto execute = [&] {
+ auto [new_begin, new_end] = func(manager, page_offset, copy_amount);
+ if (new_begin != 0 || new_end != 0) {
+ const u64 base_address = page_index << HIGHER_PAGE_BITS;
+ begin = std::min(new_begin + base_address, begin);
+ end = std::max(new_end + base_address, end);
+ }
+ };
+ if (manager) {
+ execute();
+ } else if constexpr (create_region_on_fail) {
+ CreateRegion(page_index);
+ manager = top_tier[page_index];
+ execute();
+ }
+ page_index++;
+ page_offset = 0;
+ remaining_size -= copy_amount;
+ }
+ if (begin < end) {
+ return std::make_pair(begin, end);
+ } else {
+ return std::make_pair(0ULL, 0ULL);
+ }
+ }
+
+ void CreateRegion(std::size_t page_index) {
+ const VAddr base_cpu_addr = page_index << HIGHER_PAGE_BITS;
+ top_tier[page_index] = GetNewManager(base_cpu_addr);
+ }
+
+ Manager* GetNewManager(VAddr base_cpu_addess) {
+ const auto on_return = [&] {
+ auto* new_manager = free_managers.front();
+ new_manager->SetCpuAddress(base_cpu_addess);
+ free_managers.pop_front();
+ return new_manager;
+ };
+ if (!free_managers.empty()) {
+ return on_return();
+ }
+ manager_pool.emplace_back();
+ auto& last_pool = manager_pool.back();
+ for (size_t i = 0; i < MANAGER_POOL_SIZE; i++) {
+ new (&last_pool[i]) Manager(0, *rasterizer, HIGHER_PAGE_SIZE);
+ free_managers.push_back(&last_pool[i]);
+ }
+ return on_return();
+ }
+
+ std::deque<std::array<Manager, MANAGER_POOL_SIZE>> manager_pool;
+ std::deque<Manager*> free_managers;
+
+ std::array<Manager*, NUM_HIGH_PAGES> top_tier{};
+
+ std::unordered_set<u32> cached_pages;
+
+ RasterizerInterface* rasterizer = nullptr;
+};
+
+} // namespace VideoCommon
diff --git a/src/video_core/buffer_cache/word_manager.h b/src/video_core/buffer_cache/word_manager.h
new file mode 100644
index 000000000..a336bde41
--- /dev/null
+++ b/src/video_core/buffer_cache/word_manager.h
@@ -0,0 +1,485 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <algorithm>
+#include <bit>
+#include <limits>
+#include <span>
+#include <utility>
+
+#include "common/alignment.h"
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "common/div_ceil.h"
+#include "core/memory.h"
+
+namespace VideoCommon {
+
+constexpr u64 PAGES_PER_WORD = 64;
+constexpr u64 BYTES_PER_PAGE = Core::Memory::YUZU_PAGESIZE;
+constexpr u64 BYTES_PER_WORD = PAGES_PER_WORD * BYTES_PER_PAGE;
+
+enum class Type {
+ CPU,
+ GPU,
+ CachedCPU,
+ Untracked,
+ Preflushable,
+};
+
+/// Vector tracking modified pages tightly packed with small vector optimization
+template <size_t stack_words = 1>
+struct WordsArray {
+ /// Returns the pointer to the words state
+ [[nodiscard]] const u64* Pointer(bool is_short) const noexcept {
+ return is_short ? stack.data() : heap;
+ }
+
+ /// Returns the pointer to the words state
+ [[nodiscard]] u64* Pointer(bool is_short) noexcept {
+ return is_short ? stack.data() : heap;
+ }
+
+ std::array<u64, stack_words> stack{}; ///< Small buffers storage
+ u64* heap; ///< Not-small buffers pointer to the storage
+};
+
+template <size_t stack_words = 1>
+struct Words {
+ explicit Words() = default;
+ explicit Words(u64 size_bytes_) : size_bytes{size_bytes_} {
+ num_words = Common::DivCeil(size_bytes, BYTES_PER_WORD);
+ if (IsShort()) {
+ cpu.stack.fill(~u64{0});
+ gpu.stack.fill(0);
+ cached_cpu.stack.fill(0);
+ untracked.stack.fill(~u64{0});
+ preflushable.stack.fill(0);
+ } else {
+ // Share allocation between CPU and GPU pages and set their default values
+ u64* const alloc = new u64[num_words * 5];
+ cpu.heap = alloc;
+ gpu.heap = alloc + num_words;
+ cached_cpu.heap = alloc + num_words * 2;
+ untracked.heap = alloc + num_words * 3;
+ preflushable.heap = alloc + num_words * 4;
+ std::fill_n(cpu.heap, num_words, ~u64{0});
+ std::fill_n(gpu.heap, num_words, 0);
+ std::fill_n(cached_cpu.heap, num_words, 0);
+ std::fill_n(untracked.heap, num_words, ~u64{0});
+ std::fill_n(preflushable.heap, num_words, 0);
+ }
+ // Clean up tailing bits
+ const u64 last_word_size = size_bytes % BYTES_PER_WORD;
+ const u64 last_local_page = Common::DivCeil(last_word_size, BYTES_PER_PAGE);
+ const u64 shift = (PAGES_PER_WORD - last_local_page) % PAGES_PER_WORD;
+ const u64 last_word = (~u64{0} << shift) >> shift;
+ cpu.Pointer(IsShort())[NumWords() - 1] = last_word;
+ untracked.Pointer(IsShort())[NumWords() - 1] = last_word;
+ }
+
+ ~Words() {
+ Release();
+ }
+
+ Words& operator=(Words&& rhs) noexcept {
+ Release();
+ size_bytes = rhs.size_bytes;
+ num_words = rhs.num_words;
+ cpu = rhs.cpu;
+ gpu = rhs.gpu;
+ cached_cpu = rhs.cached_cpu;
+ untracked = rhs.untracked;
+ preflushable = rhs.preflushable;
+ rhs.cpu.heap = nullptr;
+ return *this;
+ }
+
+ Words(Words&& rhs) noexcept
+ : size_bytes{rhs.size_bytes}, num_words{rhs.num_words}, cpu{rhs.cpu}, gpu{rhs.gpu},
+ cached_cpu{rhs.cached_cpu}, untracked{rhs.untracked}, preflushable{rhs.preflushable} {
+ rhs.cpu.heap = nullptr;
+ }
+
+ Words& operator=(const Words&) = delete;
+ Words(const Words&) = delete;
+
+ /// Returns true when the buffer fits in the small vector optimization
+ [[nodiscard]] bool IsShort() const noexcept {
+ return num_words <= stack_words;
+ }
+
+ /// Returns the number of words of the buffer
+ [[nodiscard]] size_t NumWords() const noexcept {
+ return num_words;
+ }
+
+ /// Release buffer resources
+ void Release() {
+ if (!IsShort()) {
+ // CPU written words is the base for the heap allocation
+ delete[] cpu.heap;
+ }
+ }
+
+ template <Type type>
+ std::span<u64> Span() noexcept {
+ if constexpr (type == Type::CPU) {
+ return std::span<u64>(cpu.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::GPU) {
+ return std::span<u64>(gpu.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::CachedCPU) {
+ return std::span<u64>(cached_cpu.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::Untracked) {
+ return std::span<u64>(untracked.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::Preflushable) {
+ return std::span<u64>(preflushable.Pointer(IsShort()), num_words);
+ }
+ }
+
+ template <Type type>
+ std::span<const u64> Span() const noexcept {
+ if constexpr (type == Type::CPU) {
+ return std::span<const u64>(cpu.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::GPU) {
+ return std::span<const u64>(gpu.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::CachedCPU) {
+ return std::span<const u64>(cached_cpu.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::Untracked) {
+ return std::span<const u64>(untracked.Pointer(IsShort()), num_words);
+ } else if constexpr (type == Type::Preflushable) {
+ return std::span<const u64>(preflushable.Pointer(IsShort()), num_words);
+ }
+ }
+
+ u64 size_bytes = 0;
+ size_t num_words = 0;
+ WordsArray<stack_words> cpu;
+ WordsArray<stack_words> gpu;
+ WordsArray<stack_words> cached_cpu;
+ WordsArray<stack_words> untracked;
+ WordsArray<stack_words> preflushable;
+};
+
+template <class RasterizerInterface, size_t stack_words = 1>
+class WordManager {
+public:
+ explicit WordManager(VAddr cpu_addr_, RasterizerInterface& rasterizer_, u64 size_bytes)
+ : cpu_addr{cpu_addr_}, rasterizer{&rasterizer_}, words{size_bytes} {}
+
+ explicit WordManager() = default;
+
+ void SetCpuAddress(VAddr new_cpu_addr) {
+ cpu_addr = new_cpu_addr;
+ }
+
+ VAddr GetCpuAddr() const {
+ return cpu_addr;
+ }
+
+ static u64 ExtractBits(u64 word, size_t page_start, size_t page_end) {
+ constexpr size_t number_bits = sizeof(u64) * 8;
+ const size_t limit_page_end = number_bits - std::min(page_end, number_bits);
+ u64 bits = (word >> page_start) << page_start;
+ bits = (bits << limit_page_end) >> limit_page_end;
+ return bits;
+ }
+
+ static std::pair<size_t, size_t> GetWordPage(VAddr address) {
+ const size_t converted_address = static_cast<size_t>(address);
+ const size_t word_number = converted_address / BYTES_PER_WORD;
+ const size_t amount_pages = converted_address % BYTES_PER_WORD;
+ return std::make_pair(word_number, amount_pages / BYTES_PER_PAGE);
+ }
+
+ template <typename Func>
+ void IterateWords(size_t offset, size_t size, Func&& func) const {
+ using FuncReturn = std::invoke_result_t<Func, std::size_t, u64>;
+ static constexpr bool BOOL_BREAK = std::is_same_v<FuncReturn, bool>;
+ const size_t start = static_cast<size_t>(std::max<s64>(static_cast<s64>(offset), 0LL));
+ const size_t end = static_cast<size_t>(std::max<s64>(static_cast<s64>(offset + size), 0LL));
+ if (start >= SizeBytes() || end <= start) {
+ return;
+ }
+ auto [start_word, start_page] = GetWordPage(start);
+ auto [end_word, end_page] = GetWordPage(end + BYTES_PER_PAGE - 1ULL);
+ const size_t num_words = NumWords();
+ start_word = std::min(start_word, num_words);
+ end_word = std::min(end_word, num_words);
+ const size_t diff = end_word - start_word;
+ end_word += (end_page + PAGES_PER_WORD - 1ULL) / PAGES_PER_WORD;
+ end_word = std::min(end_word, num_words);
+ end_page += diff * PAGES_PER_WORD;
+ constexpr u64 base_mask{~0ULL};
+ for (size_t word_index = start_word; word_index < end_word; word_index++) {
+ const u64 mask = ExtractBits(base_mask, start_page, end_page);
+ start_page = 0;
+ end_page -= PAGES_PER_WORD;
+ if constexpr (BOOL_BREAK) {
+ if (func(word_index, mask)) {
+ return;
+ }
+ } else {
+ func(word_index, mask);
+ }
+ }
+ }
+
+ template <typename Func>
+ void IteratePages(u64 mask, Func&& func) const {
+ size_t offset = 0;
+ while (mask != 0) {
+ const size_t empty_bits = std::countr_zero(mask);
+ offset += empty_bits;
+ mask = mask >> empty_bits;
+
+ const size_t continuous_bits = std::countr_one(mask);
+ func(offset, continuous_bits);
+ mask = continuous_bits < PAGES_PER_WORD ? (mask >> continuous_bits) : 0;
+ offset += continuous_bits;
+ }
+ }
+
+ /**
+ * Change the state of a range of pages
+ *
+ * @param dirty_addr Base address to mark or unmark as modified
+ * @param size Size in bytes to mark or unmark as modified
+ */
+ template <Type type, bool enable>
+ void ChangeRegionState(u64 dirty_addr, u64 size) noexcept(type == Type::GPU) {
+ std::span<u64> state_words = words.template Span<type>();
+ [[maybe_unused]] std::span<u64> untracked_words = words.template Span<Type::Untracked>();
+ [[maybe_unused]] std::span<u64> cached_words = words.template Span<Type::CachedCPU>();
+ IterateWords(dirty_addr - cpu_addr, size, [&](size_t index, u64 mask) {
+ if constexpr (type == Type::CPU || type == Type::CachedCPU) {
+ NotifyRasterizer<!enable>(index, untracked_words[index], mask);
+ }
+ if constexpr (enable) {
+ state_words[index] |= mask;
+ if constexpr (type == Type::CPU || type == Type::CachedCPU) {
+ untracked_words[index] |= mask;
+ }
+ if constexpr (type == Type::CPU) {
+ cached_words[index] &= ~mask;
+ }
+ } else {
+ if constexpr (type == Type::CPU) {
+ const u64 word = state_words[index] & mask;
+ cached_words[index] &= ~word;
+ }
+ state_words[index] &= ~mask;
+ if constexpr (type == Type::CPU || type == Type::CachedCPU) {
+ untracked_words[index] &= ~mask;
+ }
+ }
+ });
+ }
+
+ /**
+ * Loop over each page in the given range, turn off those bits and notify the rasterizer if
+ * needed. Call the given function on each turned off range.
+ *
+ * @param query_cpu_range Base CPU address to loop over
+ * @param size Size in bytes of the CPU range to loop over
+ * @param func Function to call for each turned off region
+ */
+ template <Type type, bool clear, typename Func>
+ void ForEachModifiedRange(VAddr query_cpu_range, s64 size, Func&& func) {
+ static_assert(type != Type::Untracked);
+
+ std::span<u64> state_words = words.template Span<type>();
+ [[maybe_unused]] std::span<u64> untracked_words = words.template Span<Type::Untracked>();
+ [[maybe_unused]] std::span<u64> cached_words = words.template Span<Type::CachedCPU>();
+ const size_t offset = query_cpu_range - cpu_addr;
+ bool pending = false;
+ size_t pending_offset{};
+ size_t pending_pointer{};
+ const auto release = [&]() {
+ func(cpu_addr + pending_offset * BYTES_PER_PAGE,
+ (pending_pointer - pending_offset) * BYTES_PER_PAGE);
+ };
+ IterateWords(offset, size, [&](size_t index, u64 mask) {
+ if constexpr (type == Type::GPU) {
+ mask &= ~untracked_words[index];
+ }
+ const u64 word = state_words[index] & mask;
+ if constexpr (clear) {
+ if constexpr (type == Type::CPU || type == Type::CachedCPU) {
+ NotifyRasterizer<true>(index, untracked_words[index], mask);
+ }
+ state_words[index] &= ~mask;
+ if constexpr (type == Type::CPU || type == Type::CachedCPU) {
+ untracked_words[index] &= ~mask;
+ }
+ if constexpr (type == Type::CPU) {
+ cached_words[index] &= ~word;
+ }
+ }
+ const size_t base_offset = index * PAGES_PER_WORD;
+ IteratePages(word, [&](size_t pages_offset, size_t pages_size) {
+ const auto reset = [&]() {
+ pending_offset = base_offset + pages_offset;
+ pending_pointer = base_offset + pages_offset + pages_size;
+ };
+ if (!pending) {
+ reset();
+ pending = true;
+ return;
+ }
+ if (pending_pointer == base_offset + pages_offset) {
+ pending_pointer += pages_size;
+ return;
+ }
+ release();
+ reset();
+ });
+ });
+ if (pending) {
+ release();
+ }
+ }
+
+ /**
+ * Returns true when a region has been modified
+ *
+ * @param offset Offset in bytes from the start of the buffer
+ * @param size Size in bytes of the region to query for modifications
+ */
+ template <Type type>
+ [[nodiscard]] bool IsRegionModified(u64 offset, u64 size) const noexcept {
+ static_assert(type != Type::Untracked);
+
+ const std::span<const u64> state_words = words.template Span<type>();
+ [[maybe_unused]] const std::span<const u64> untracked_words =
+ words.template Span<Type::Untracked>();
+ bool result = false;
+ IterateWords(offset, size, [&](size_t index, u64 mask) {
+ if constexpr (type == Type::GPU) {
+ mask &= ~untracked_words[index];
+ }
+ const u64 word = state_words[index] & mask;
+ if (word != 0) {
+ result = true;
+ return true;
+ }
+ return false;
+ });
+ return result;
+ }
+
+ /**
+ * Returns a begin end pair with the inclusive modified region
+ *
+ * @param offset Offset in bytes from the start of the buffer
+ * @param size Size in bytes of the region to query for modifications
+ */
+ template <Type type>
+ [[nodiscard]] std::pair<u64, u64> ModifiedRegion(u64 offset, u64 size) const noexcept {
+ static_assert(type != Type::Untracked);
+ const std::span<const u64> state_words = words.template Span<type>();
+ [[maybe_unused]] const std::span<const u64> untracked_words =
+ words.template Span<Type::Untracked>();
+ u64 begin = std::numeric_limits<u64>::max();
+ u64 end = 0;
+ IterateWords(offset, size, [&](size_t index, u64 mask) {
+ if constexpr (type == Type::GPU) {
+ mask &= ~untracked_words[index];
+ }
+ const u64 word = state_words[index] & mask;
+ if (word == 0) {
+ return;
+ }
+ const u64 local_page_begin = std::countr_zero(word);
+ const u64 local_page_end = PAGES_PER_WORD - std::countl_zero(word);
+ const u64 page_index = index * PAGES_PER_WORD;
+ begin = std::min(begin, page_index + local_page_begin);
+ end = page_index + local_page_end;
+ });
+ static constexpr std::pair<u64, u64> EMPTY{0, 0};
+ return begin < end ? std::make_pair(begin * BYTES_PER_PAGE, end * BYTES_PER_PAGE) : EMPTY;
+ }
+
+ /// Returns the number of words of the manager
+ [[nodiscard]] size_t NumWords() const noexcept {
+ return words.NumWords();
+ }
+
+ /// Returns the size in bytes of the manager
+ [[nodiscard]] u64 SizeBytes() const noexcept {
+ return words.size_bytes;
+ }
+
+ /// Returns true when the buffer fits in the small vector optimization
+ [[nodiscard]] bool IsShort() const noexcept {
+ return words.IsShort();
+ }
+
+ void FlushCachedWrites() noexcept {
+ const u64 num_words = NumWords();
+ u64* const cached_words = Array<Type::CachedCPU>();
+ u64* const untracked_words = Array<Type::Untracked>();
+ u64* const cpu_words = Array<Type::CPU>();
+ for (u64 word_index = 0; word_index < num_words; ++word_index) {
+ const u64 cached_bits = cached_words[word_index];
+ NotifyRasterizer<false>(word_index, untracked_words[word_index], cached_bits);
+ untracked_words[word_index] |= cached_bits;
+ cpu_words[word_index] |= cached_bits;
+ cached_words[word_index] = 0;
+ }
+ }
+
+private:
+ template <Type type>
+ u64* Array() noexcept {
+ if constexpr (type == Type::CPU) {
+ return words.cpu.Pointer(IsShort());
+ } else if constexpr (type == Type::GPU) {
+ return words.gpu.Pointer(IsShort());
+ } else if constexpr (type == Type::CachedCPU) {
+ return words.cached_cpu.Pointer(IsShort());
+ } else if constexpr (type == Type::Untracked) {
+ return words.untracked.Pointer(IsShort());
+ }
+ }
+
+ template <Type type>
+ const u64* Array() const noexcept {
+ if constexpr (type == Type::CPU) {
+ return words.cpu.Pointer(IsShort());
+ } else if constexpr (type == Type::GPU) {
+ return words.gpu.Pointer(IsShort());
+ } else if constexpr (type == Type::CachedCPU) {
+ return words.cached_cpu.Pointer(IsShort());
+ } else if constexpr (type == Type::Untracked) {
+ return words.untracked.Pointer(IsShort());
+ }
+ }
+
+ /**
+ * Notify rasterizer about changes in the CPU tracking state of a word in the buffer
+ *
+ * @param word_index Index to the word to notify to the rasterizer
+ * @param current_bits Current state of the word
+ * @param new_bits New state of the word
+ *
+ * @tparam add_to_rasterizer True when the rasterizer should start tracking the new pages
+ */
+ template <bool add_to_rasterizer>
+ void NotifyRasterizer(u64 word_index, u64 current_bits, u64 new_bits) const {
+ u64 changed_bits = (add_to_rasterizer ? current_bits : ~current_bits) & new_bits;
+ VAddr addr = cpu_addr + word_index * BYTES_PER_WORD;
+ IteratePages(changed_bits, [&](size_t offset, size_t size) {
+ rasterizer->UpdatePagesCachedCount(addr + offset * BYTES_PER_PAGE,
+ size * BYTES_PER_PAGE, add_to_rasterizer ? 1 : -1);
+ });
+ }
+
+ VAddr cpu_addr = 0;
+ RasterizerInterface* rasterizer = nullptr;
+ Words<stack_words> words;
+};
+
+} // namespace VideoCommon
diff --git a/src/video_core/cdma_pusher.h b/src/video_core/cdma_pusher.h
index 83112dfce..7d660af47 100644
--- a/src/video_core/cdma_pusher.h
+++ b/src/video_core/cdma_pusher.h
@@ -63,7 +63,6 @@ struct ChCommand {
};
using ChCommandHeaderList = std::vector<ChCommandHeader>;
-using ChCommandList = std::vector<ChCommand>;
struct ThiRegisters {
u32_le increment_syncpt{};
diff --git a/src/video_core/compatible_formats.cpp b/src/video_core/compatible_formats.cpp
index 4e75f33ca..ab4f4d407 100644
--- a/src/video_core/compatible_formats.cpp
+++ b/src/video_core/compatible_formats.cpp
@@ -126,15 +126,14 @@ constexpr std::array VIEW_CLASS_ASTC_8x8_RGBA{
PixelFormat::ASTC_2D_8X8_SRGB,
};
-// Missing formats:
-// PixelFormat::ASTC_2D_10X5_UNORM
-// PixelFormat::ASTC_2D_10X5_SRGB
-
-// Missing formats:
-// PixelFormat::ASTC_2D_10X6_SRGB
+constexpr std::array VIEW_CLASS_ASTC_10x5_RGBA{
+ PixelFormat::ASTC_2D_10X5_UNORM,
+ PixelFormat::ASTC_2D_10X5_SRGB,
+};
constexpr std::array VIEW_CLASS_ASTC_10x6_RGBA{
PixelFormat::ASTC_2D_10X6_UNORM,
+ PixelFormat::ASTC_2D_10X6_SRGB,
};
constexpr std::array VIEW_CLASS_ASTC_10x8_RGBA{
@@ -147,9 +146,10 @@ constexpr std::array VIEW_CLASS_ASTC_10x10_RGBA{
PixelFormat::ASTC_2D_10X10_SRGB,
};
-// Missing formats
-// ASTC_2D_12X10_UNORM,
-// ASTC_2D_12X10_SRGB,
+constexpr std::array VIEW_CLASS_ASTC_12x10_RGBA{
+ PixelFormat::ASTC_2D_12X10_UNORM,
+ PixelFormat::ASTC_2D_12X10_SRGB,
+};
constexpr std::array VIEW_CLASS_ASTC_12x12_RGBA{
PixelFormat::ASTC_2D_12X12_UNORM,
@@ -229,9 +229,11 @@ constexpr Table MakeViewTable() {
EnableRange(view, VIEW_CLASS_ASTC_6x6_RGBA);
EnableRange(view, VIEW_CLASS_ASTC_8x5_RGBA);
EnableRange(view, VIEW_CLASS_ASTC_8x8_RGBA);
+ EnableRange(view, VIEW_CLASS_ASTC_10x5_RGBA);
EnableRange(view, VIEW_CLASS_ASTC_10x6_RGBA);
EnableRange(view, VIEW_CLASS_ASTC_10x8_RGBA);
EnableRange(view, VIEW_CLASS_ASTC_10x10_RGBA);
+ EnableRange(view, VIEW_CLASS_ASTC_12x10_RGBA);
EnableRange(view, VIEW_CLASS_ASTC_12x12_RGBA);
return view;
}
diff --git a/src/video_core/control/channel_state_cache.h b/src/video_core/control/channel_state_cache.h
index cdaf4f8d5..46bc9e322 100644
--- a/src/video_core/control/channel_state_cache.h
+++ b/src/video_core/control/channel_state_cache.h
@@ -44,7 +44,7 @@ public:
template <class P>
class ChannelSetupCaches {
public:
- /// Operations for seting the channel of execution.
+ /// Operations for setting the channel of execution.
virtual ~ChannelSetupCaches();
/// Create channel state.
diff --git a/src/video_core/dma_pusher.h b/src/video_core/dma_pusher.h
index 1cdb690ed..8a2784cdc 100644
--- a/src/video_core/dma_pusher.h
+++ b/src/video_core/dma_pusher.h
@@ -6,6 +6,7 @@
#include <array>
#include <span>
#include <vector>
+#include <boost/container/small_vector.hpp>
#include <queue>
#include "common/bit_field.h"
@@ -102,11 +103,12 @@ inline CommandHeader BuildCommandHeader(BufferMethods method, u32 arg_count, Sub
struct CommandList final {
CommandList() = default;
explicit CommandList(std::size_t size) : command_lists(size) {}
- explicit CommandList(std::vector<CommandHeader>&& prefetch_command_list_)
+ explicit CommandList(
+ boost::container::small_vector<CommandHeader, 512>&& prefetch_command_list_)
: prefetch_command_list{std::move(prefetch_command_list_)} {}
- std::vector<CommandListHeader> command_lists;
- std::vector<CommandHeader> prefetch_command_list;
+ boost::container::small_vector<CommandListHeader, 512> command_lists;
+ boost::container::small_vector<CommandHeader, 512> prefetch_command_list;
};
/**
diff --git a/src/video_core/engines/draw_manager.cpp b/src/video_core/engines/draw_manager.cpp
index 1d22d25f1..f34090791 100644
--- a/src/video_core/engines/draw_manager.cpp
+++ b/src/video_core/engines/draw_manager.cpp
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "common/settings.h"
#include "video_core/dirty_flags.h"
#include "video_core/engines/draw_manager.h"
#include "video_core/rasterizer_interface.h"
@@ -164,6 +165,7 @@ void DrawManager::DrawEnd(u32 instance_count, bool force_draw) {
draw_state.index_buffer.count =
static_cast<u32>(draw_state.inline_index_draw_indexes.size() / 4);
draw_state.index_buffer.format = Maxwell3D::Regs::IndexFormat::UnsignedInt;
+ maxwell3d->dirty.flags[VideoCommon::Dirty::IndexBuffer] = true;
ProcessDraw(true, instance_count);
draw_state.inline_index_draw_indexes.clear();
break;
@@ -194,8 +196,12 @@ void DrawManager::DrawTexture() {
if (lower_left) {
draw_texture_state.dst_y0 -= dst_height;
}
- draw_texture_state.dst_x1 = draw_texture_state.dst_x0 + dst_width;
- draw_texture_state.dst_y1 = draw_texture_state.dst_y0 + dst_height;
+ draw_texture_state.dst_x1 =
+ draw_texture_state.dst_x0 +
+ static_cast<f32>(Settings::values.resolution_info.ScaleUp(static_cast<u32>(dst_width)));
+ draw_texture_state.dst_y1 =
+ draw_texture_state.dst_y0 +
+ static_cast<f32>(Settings::values.resolution_info.ScaleUp(static_cast<u32>(dst_height)));
draw_texture_state.src_x0 = static_cast<float>(regs.draw_texture.src_x0) / 4096.f;
draw_texture_state.src_y0 = static_cast<float>(regs.draw_texture.src_y0) / 4096.f;
draw_texture_state.src_x1 =
@@ -206,7 +212,6 @@ void DrawManager::DrawTexture() {
draw_texture_state.src_y0;
draw_texture_state.src_sampler = regs.draw_texture.src_sampler;
draw_texture_state.src_texture = regs.draw_texture.src_texture;
-
maxwell3d->rasterizer->DrawTexture();
}
diff --git a/src/video_core/engines/fermi_2d.cpp b/src/video_core/engines/fermi_2d.cpp
index a126c359c..02e161270 100644
--- a/src/video_core/engines/fermi_2d.cpp
+++ b/src/video_core/engines/fermi_2d.cpp
@@ -77,6 +77,14 @@ void Fermi2D::Blit() {
const auto bytes_per_pixel = BytesPerBlock(PixelFormatFromRenderTargetFormat(src.format));
const bool delegate_to_gpu = src.width > 512 && src.height > 512 && bytes_per_pixel <= 8 &&
src.format != regs.dst.format;
+
+ auto srcX = args.src_x0;
+ auto srcY = args.src_y0;
+ if (args.sample_mode.origin == Origin::Corner) {
+ srcX -= (args.du_dx >> 33) << 32;
+ srcY -= (args.dv_dy >> 33) << 32;
+ }
+
Config config{
.operation = regs.operation,
.filter = args.sample_mode.filter,
@@ -86,10 +94,10 @@ void Fermi2D::Blit() {
.dst_y0 = args.dst_y0,
.dst_x1 = args.dst_x0 + args.dst_width,
.dst_y1 = args.dst_y0 + args.dst_height,
- .src_x0 = static_cast<s32>(args.src_x0 >> 32),
- .src_y0 = static_cast<s32>(args.src_y0 >> 32),
- .src_x1 = static_cast<s32>((args.du_dx * args.dst_width + args.src_x0) >> 32),
- .src_y1 = static_cast<s32>((args.dv_dy * args.dst_height + args.src_y0) >> 32),
+ .src_x0 = static_cast<s32>(srcX >> 32),
+ .src_y0 = static_cast<s32>(srcY >> 32),
+ .src_x1 = static_cast<s32>((srcX + args.du_dx * args.dst_width) >> 32),
+ .src_y1 = static_cast<s32>((srcY + args.dv_dy * args.dst_height) >> 32),
};
const auto need_align_to_pitch =
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index ae9da6290..62d70e9f3 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -4,6 +4,7 @@
#include <cstring>
#include <optional>
#include "common/assert.h"
+#include "common/bit_util.h"
#include "common/scope_exit.h"
#include "common/settings.h"
#include "core/core.h"
@@ -186,6 +187,7 @@ bool Maxwell3D::IsMethodExecutable(u32 method) {
case MAXWELL3D_REG_INDEX(launch_dma):
case MAXWELL3D_REG_INDEX(inline_data):
case MAXWELL3D_REG_INDEX(fragment_barrier):
+ case MAXWELL3D_REG_INDEX(invalidate_texture_data_cache):
case MAXWELL3D_REG_INDEX(tiled_cache_barrier):
return true;
default:
@@ -221,6 +223,9 @@ void Maxwell3D::ProcessMacro(u32 method, const u32* base_start, u32 amount, bool
}
void Maxwell3D::RefreshParametersImpl() {
+ if (!Settings::IsGPULevelHigh()) {
+ return;
+ }
size_t current_index = 0;
for (auto& segment : macro_segments) {
if (segment.first == 0) {
@@ -258,12 +263,13 @@ u32 Maxwell3D::GetMaxCurrentVertices() {
size_t Maxwell3D::EstimateIndexBufferSize() {
GPUVAddr start_address = regs.index_buffer.StartAddress();
GPUVAddr end_address = regs.index_buffer.EndAddress();
- constexpr std::array<size_t, 4> max_sizes = {
- std::numeric_limits<u8>::max(), std::numeric_limits<u16>::max(),
- std::numeric_limits<u32>::max(), std::numeric_limits<u32>::max()};
+ static constexpr std::array<size_t, 3> max_sizes = {std::numeric_limits<u8>::max(),
+ std::numeric_limits<u16>::max(),
+ std::numeric_limits<u32>::max()};
const size_t byte_size = regs.index_buffer.FormatSizeInBytes();
+ const size_t log2_byte_size = Common::Log2Ceil64(byte_size);
return std::min<size_t>(
- memory_manager.GetMemoryLayoutSize(start_address, byte_size * max_sizes[byte_size]) /
+ memory_manager.GetMemoryLayoutSize(start_address, byte_size * max_sizes[log2_byte_size]) /
byte_size,
static_cast<size_t>(end_address - start_address));
}
@@ -375,6 +381,9 @@ void Maxwell3D::ProcessMethodCall(u32 method, u32 argument, u32 nonshadow_argume
return;
case MAXWELL3D_REG_INDEX(fragment_barrier):
return rasterizer->FragmentBarrier();
+ case MAXWELL3D_REG_INDEX(invalidate_texture_data_cache):
+ rasterizer->InvalidateGPUCache();
+ return rasterizer->WaitForIdle();
case MAXWELL3D_REG_INDEX(tiled_cache_barrier):
return rasterizer->TiledCacheBarrier();
default:
@@ -584,6 +593,12 @@ void Maxwell3D::ProcessQueryCondition() {
}
void Maxwell3D::ProcessCounterReset() {
+#if ANDROID
+ if (!Settings::IsGPULevelHigh()) {
+ // This is problematic on Android, disable on GPU Normal.
+ return;
+ }
+#endif
switch (regs.clear_report_value) {
case Regs::ClearReport::ZPassPixelCount:
rasterizer->ResetCounter(QueryType::SamplesPassed);
@@ -605,6 +620,12 @@ std::optional<u64> Maxwell3D::GetQueryResult() {
case Regs::ReportSemaphore::Report::Payload:
return regs.report_semaphore.payload;
case Regs::ReportSemaphore::Report::ZPassPixelCount64:
+#if ANDROID
+ if (!Settings::IsGPULevelHigh()) {
+ // This is problematic on Android, disable on GPU Normal.
+ return 120;
+ }
+#endif
// Deferred.
rasterizer->Query(regs.report_semaphore.Address(), QueryType::SamplesPassed,
system.GPU().GetTicks());
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index c89969bb4..6c19354e1 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -856,8 +856,8 @@ public:
struct ZetaSize {
enum class DimensionControl : u32 {
- DepthDefinesArray = 0,
- ArraySizeOne = 1,
+ DefineArraySize = 0,
+ ArraySizeIsOne = 1,
};
u32 width;
@@ -1104,8 +1104,8 @@ public:
struct TileMode {
enum class DimensionControl : u32 {
- DepthDefinesArray = 0,
- DepthDefinesDepth = 1,
+ DefineArraySize = 0,
+ DefineDepthSize = 1,
};
union {
BitField<0, 4, u32> block_width;
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index 7762c7d96..a290d6ea7 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -14,7 +14,13 @@
#include "video_core/textures/decoders.h"
MICROPROFILE_DECLARE(GPU_DMAEngine);
+MICROPROFILE_DECLARE(GPU_DMAEngineBL);
+MICROPROFILE_DECLARE(GPU_DMAEngineLB);
+MICROPROFILE_DECLARE(GPU_DMAEngineBB);
MICROPROFILE_DEFINE(GPU_DMAEngine, "GPU", "DMA Engine", MP_RGB(224, 224, 128));
+MICROPROFILE_DEFINE(GPU_DMAEngineBL, "GPU", "DMA Engine Block - Linear", MP_RGB(224, 224, 128));
+MICROPROFILE_DEFINE(GPU_DMAEngineLB, "GPU", "DMA Engine Linear - Block", MP_RGB(224, 224, 128));
+MICROPROFILE_DEFINE(GPU_DMAEngineBB, "GPU", "DMA Engine Block - Block", MP_RGB(224, 224, 128));
namespace Tegra::Engines {
@@ -72,6 +78,7 @@ void MaxwellDMA::Launch() {
memory_manager.FlushCaching();
if (!is_src_pitch && !is_dst_pitch) {
// If both the source and the destination are in block layout, assert.
+ MICROPROFILE_SCOPE(GPU_DMAEngineBB);
CopyBlockLinearToBlockLinear();
ReleaseSemaphore();
return;
@@ -87,8 +94,10 @@ void MaxwellDMA::Launch() {
}
} else {
if (!is_src_pitch && is_dst_pitch) {
+ MICROPROFILE_SCOPE(GPU_DMAEngineBL);
CopyBlockLinearToPitch();
} else {
+ MICROPROFILE_SCOPE(GPU_DMAEngineLB);
CopyPitchToBlockLinear();
}
}
@@ -99,9 +108,11 @@ void MaxwellDMA::Launch() {
if (regs.launch_dma.remap_enable != 0 && is_const_a_dst) {
ASSERT(regs.remap_const.component_size_minus_one == 3);
accelerate.BufferClear(regs.offset_out, regs.line_length_in, regs.remap_consta_value);
- std::vector<u32> tmp_buffer(regs.line_length_in, regs.remap_consta_value);
+ read_buffer.resize_destructive(regs.line_length_in * sizeof(u32));
+ std::span<u32> span(reinterpret_cast<u32*>(read_buffer.data()), regs.line_length_in);
+ std::ranges::fill(span, regs.remap_consta_value);
memory_manager.WriteBlockUnsafe(regs.offset_out,
- reinterpret_cast<u8*>(tmp_buffer.data()),
+ reinterpret_cast<u8*>(read_buffer.data()),
regs.line_length_in * sizeof(u32));
} else {
memory_manager.FlushCaching();
@@ -117,32 +128,33 @@ void MaxwellDMA::Launch() {
UNIMPLEMENTED_IF(regs.line_length_in % 16 != 0);
UNIMPLEMENTED_IF(regs.offset_in % 16 != 0);
UNIMPLEMENTED_IF(regs.offset_out % 16 != 0);
- std::vector<u8> tmp_buffer(16);
+ read_buffer.resize_destructive(16);
for (u32 offset = 0; offset < regs.line_length_in; offset += 16) {
- memory_manager.ReadBlockUnsafe(
+ memory_manager.ReadBlock(
convert_linear_2_blocklinear_addr(regs.offset_in + offset),
- tmp_buffer.data(), tmp_buffer.size());
- memory_manager.WriteBlockCached(regs.offset_out + offset, tmp_buffer.data(),
- tmp_buffer.size());
+ read_buffer.data(), read_buffer.size());
+ memory_manager.WriteBlockCached(regs.offset_out + offset, read_buffer.data(),
+ read_buffer.size());
}
} else if (is_src_pitch && !is_dst_pitch) {
UNIMPLEMENTED_IF(regs.line_length_in % 16 != 0);
UNIMPLEMENTED_IF(regs.offset_in % 16 != 0);
UNIMPLEMENTED_IF(regs.offset_out % 16 != 0);
- std::vector<u8> tmp_buffer(16);
+ read_buffer.resize_destructive(16);
for (u32 offset = 0; offset < regs.line_length_in; offset += 16) {
- memory_manager.ReadBlockUnsafe(regs.offset_in + offset, tmp_buffer.data(),
- tmp_buffer.size());
+ memory_manager.ReadBlock(regs.offset_in + offset, read_buffer.data(),
+ read_buffer.size());
memory_manager.WriteBlockCached(
convert_linear_2_blocklinear_addr(regs.offset_out + offset),
- tmp_buffer.data(), tmp_buffer.size());
+ read_buffer.data(), read_buffer.size());
}
} else {
if (!accelerate.BufferCopy(regs.offset_in, regs.offset_out, regs.line_length_in)) {
- std::vector<u8> tmp_buffer(regs.line_length_in);
- memory_manager.ReadBlockUnsafe(regs.offset_in, tmp_buffer.data(),
- regs.line_length_in);
- memory_manager.WriteBlockCached(regs.offset_out, tmp_buffer.data(),
+ read_buffer.resize_destructive(regs.line_length_in);
+ memory_manager.ReadBlock(regs.offset_in, read_buffer.data(),
+ regs.line_length_in,
+ VideoCommon::CacheType::NoBufferCache);
+ memory_manager.WriteBlockCached(regs.offset_out, read_buffer.data(),
regs.line_length_in);
}
}
@@ -153,21 +165,36 @@ void MaxwellDMA::Launch() {
}
void MaxwellDMA::CopyBlockLinearToPitch() {
- UNIMPLEMENTED_IF(regs.src_params.block_size.width != 0);
- UNIMPLEMENTED_IF(regs.src_params.layer != 0);
-
- const bool is_remapping = regs.launch_dma.remap_enable != 0;
-
- // Optimized path for micro copies.
- const size_t dst_size = static_cast<size_t>(regs.pitch_out) * regs.line_count;
- if (!is_remapping && dst_size < GOB_SIZE && regs.pitch_out <= GOB_SIZE_X &&
- regs.src_params.height > GOB_SIZE_Y) {
- FastCopyBlockLinearToPitch();
+ UNIMPLEMENTED_IF(regs.launch_dma.remap_enable != 0);
+
+ u32 bytes_per_pixel = 1;
+ DMA::ImageOperand src_operand;
+ src_operand.bytes_per_pixel = bytes_per_pixel;
+ src_operand.params = regs.src_params;
+ src_operand.address = regs.offset_in;
+
+ DMA::BufferOperand dst_operand;
+ u32 abs_pitch_out = std::abs(static_cast<s32>(regs.pitch_out));
+ dst_operand.pitch = abs_pitch_out;
+ dst_operand.width = regs.line_length_in;
+ dst_operand.height = regs.line_count;
+ dst_operand.address = regs.offset_out;
+ DMA::ImageCopy copy_info{};
+ copy_info.length_x = regs.line_length_in;
+ copy_info.length_y = regs.line_count;
+ auto& accelerate = rasterizer->AccessAccelerateDMA();
+ if (accelerate.ImageToBuffer(copy_info, src_operand, dst_operand)) {
return;
}
+ UNIMPLEMENTED_IF(regs.src_params.block_size.width != 0);
+ UNIMPLEMENTED_IF(regs.src_params.block_size.depth != 0);
+ UNIMPLEMENTED_IF(regs.src_params.block_size.depth == 0 && regs.src_params.depth != 1);
+
// Deswizzle the input and copy it over.
- const Parameters& src_params = regs.src_params;
+ const DMA::Parameters& src_params = regs.src_params;
+
+ const bool is_remapping = regs.launch_dma.remap_enable != 0;
const u32 num_remap_components = regs.remap_const.num_dst_components_minus_one + 1;
const u32 remap_components_size = regs.remap_const.component_size_minus_one + 1;
@@ -187,7 +214,7 @@ void MaxwellDMA::CopyBlockLinearToPitch() {
x_offset >>= bpp_shift;
}
- const u32 bytes_per_pixel = base_bpp << bpp_shift;
+ bytes_per_pixel = base_bpp << bpp_shift;
const u32 height = src_params.height;
const u32 depth = src_params.depth;
const u32 block_height = src_params.block_size.height;
@@ -195,15 +222,16 @@ void MaxwellDMA::CopyBlockLinearToPitch() {
const size_t src_size =
CalculateSize(true, bytes_per_pixel, width, height, depth, block_height, block_depth);
+ const size_t dst_size = static_cast<size_t>(abs_pitch_out) * regs.line_count;
read_buffer.resize_destructive(src_size);
write_buffer.resize_destructive(dst_size);
- memory_manager.ReadBlock(regs.offset_in, read_buffer.data(), src_size);
- memory_manager.ReadBlock(regs.offset_out, write_buffer.data(), dst_size);
+ memory_manager.ReadBlock(src_operand.address, read_buffer.data(), src_size);
+ memory_manager.ReadBlock(dst_operand.address, write_buffer.data(), dst_size);
UnswizzleSubrect(write_buffer, read_buffer, bytes_per_pixel, width, height, depth, x_offset,
src_params.origin.y, x_elements, regs.line_count, block_height, block_depth,
- regs.pitch_out);
+ abs_pitch_out);
memory_manager.WriteBlockCached(regs.offset_out, write_buffer.data(), dst_size);
}
@@ -216,6 +244,24 @@ void MaxwellDMA::CopyPitchToBlockLinear() {
const u32 num_remap_components = regs.remap_const.num_dst_components_minus_one + 1;
const u32 remap_components_size = regs.remap_const.component_size_minus_one + 1;
+ u32 bytes_per_pixel = 1;
+ DMA::ImageOperand dst_operand;
+ dst_operand.bytes_per_pixel = bytes_per_pixel;
+ dst_operand.params = regs.dst_params;
+ dst_operand.address = regs.offset_out;
+ DMA::BufferOperand src_operand;
+ src_operand.pitch = regs.pitch_in;
+ src_operand.width = regs.line_length_in;
+ src_operand.height = regs.line_count;
+ src_operand.address = regs.offset_in;
+ DMA::ImageCopy copy_info{};
+ copy_info.length_x = regs.line_length_in;
+ copy_info.length_y = regs.line_count;
+ auto& accelerate = rasterizer->AccessAccelerateDMA();
+ if (accelerate.BufferToImage(copy_info, src_operand, dst_operand)) {
+ return;
+ }
+
const auto& dst_params = regs.dst_params;
const u32 base_bpp = !is_remapping ? 1U : num_remap_components * remap_components_size;
@@ -233,7 +279,7 @@ void MaxwellDMA::CopyPitchToBlockLinear() {
x_offset >>= bpp_shift;
}
- const u32 bytes_per_pixel = base_bpp << bpp_shift;
+ bytes_per_pixel = base_bpp << bpp_shift;
const u32 height = dst_params.height;
const u32 depth = dst_params.depth;
const u32 block_height = dst_params.block_size.height;
@@ -246,11 +292,7 @@ void MaxwellDMA::CopyPitchToBlockLinear() {
write_buffer.resize_destructive(dst_size);
memory_manager.ReadBlock(regs.offset_in, read_buffer.data(), src_size);
- if (Settings::IsGPULevelExtreme()) {
- memory_manager.ReadBlock(regs.offset_out, write_buffer.data(), dst_size);
- } else {
- memory_manager.ReadBlockUnsafe(regs.offset_out, write_buffer.data(), dst_size);
- }
+ memory_manager.ReadBlockUnsafe(regs.offset_out, write_buffer.data(), dst_size);
// If the input is linear and the output is tiled, swizzle the input and copy it over.
SwizzleSubrect(write_buffer, read_buffer, bytes_per_pixel, width, height, depth, x_offset,
@@ -260,45 +302,14 @@ void MaxwellDMA::CopyPitchToBlockLinear() {
memory_manager.WriteBlockCached(regs.offset_out, write_buffer.data(), dst_size);
}
-void MaxwellDMA::FastCopyBlockLinearToPitch() {
- const u32 bytes_per_pixel = 1U;
- const size_t src_size = GOB_SIZE;
- const size_t dst_size = static_cast<size_t>(regs.pitch_out) * regs.line_count;
- u32 pos_x = regs.src_params.origin.x;
- u32 pos_y = regs.src_params.origin.y;
- const u64 offset = GetGOBOffset(regs.src_params.width, regs.src_params.height, pos_x, pos_y,
- regs.src_params.block_size.height, bytes_per_pixel);
- const u32 x_in_gob = 64 / bytes_per_pixel;
- pos_x = pos_x % x_in_gob;
- pos_y = pos_y % 8;
-
- read_buffer.resize_destructive(src_size);
- write_buffer.resize_destructive(dst_size);
-
- if (Settings::IsGPULevelExtreme()) {
- memory_manager.ReadBlock(regs.offset_in + offset, read_buffer.data(), src_size);
- memory_manager.ReadBlock(regs.offset_out, write_buffer.data(), dst_size);
- } else {
- memory_manager.ReadBlockUnsafe(regs.offset_in + offset, read_buffer.data(), src_size);
- memory_manager.ReadBlockUnsafe(regs.offset_out, write_buffer.data(), dst_size);
- }
-
- UnswizzleSubrect(write_buffer, read_buffer, bytes_per_pixel, regs.src_params.width,
- regs.src_params.height, 1, pos_x, pos_y, regs.line_length_in, regs.line_count,
- regs.src_params.block_size.height, regs.src_params.block_size.depth,
- regs.pitch_out);
-
- memory_manager.WriteBlockCached(regs.offset_out, write_buffer.data(), dst_size);
-}
-
void MaxwellDMA::CopyBlockLinearToBlockLinear() {
UNIMPLEMENTED_IF(regs.src_params.block_size.width != 0);
const bool is_remapping = regs.launch_dma.remap_enable != 0;
// Deswizzle the input and copy it over.
- const Parameters& src = regs.src_params;
- const Parameters& dst = regs.dst_params;
+ const DMA::Parameters& src = regs.src_params;
+ const DMA::Parameters& dst = regs.dst_params;
const u32 num_remap_components = regs.remap_const.num_dst_components_minus_one + 1;
const u32 remap_components_size = regs.remap_const.component_size_minus_one + 1;
diff --git a/src/video_core/engines/maxwell_dma.h b/src/video_core/engines/maxwell_dma.h
index 0e594fa74..69e26cb32 100644
--- a/src/video_core/engines/maxwell_dma.h
+++ b/src/video_core/engines/maxwell_dma.h
@@ -24,6 +24,54 @@ namespace VideoCore {
class RasterizerInterface;
}
+namespace Tegra {
+namespace DMA {
+
+union Origin {
+ BitField<0, 16, u32> x;
+ BitField<16, 16, u32> y;
+};
+static_assert(sizeof(Origin) == 4);
+
+struct ImageCopy {
+ u32 length_x{};
+ u32 length_y{};
+};
+
+union BlockSize {
+ BitField<0, 4, u32> width;
+ BitField<4, 4, u32> height;
+ BitField<8, 4, u32> depth;
+ BitField<12, 4, u32> gob_height;
+};
+static_assert(sizeof(BlockSize) == 4);
+
+struct Parameters {
+ BlockSize block_size;
+ u32 width;
+ u32 height;
+ u32 depth;
+ u32 layer;
+ Origin origin;
+};
+static_assert(sizeof(Parameters) == 24);
+
+struct ImageOperand {
+ u32 bytes_per_pixel;
+ Parameters params;
+ GPUVAddr address;
+};
+
+struct BufferOperand {
+ u32 pitch;
+ u32 width;
+ u32 height;
+ GPUVAddr address;
+};
+
+} // namespace DMA
+} // namespace Tegra
+
namespace Tegra::Engines {
class AccelerateDMAInterface {
@@ -32,6 +80,12 @@ public:
virtual bool BufferCopy(GPUVAddr src_address, GPUVAddr dest_address, u64 amount) = 0;
virtual bool BufferClear(GPUVAddr src_address, u64 amount, u32 value) = 0;
+
+ virtual bool ImageToBuffer(const DMA::ImageCopy& copy_info, const DMA::ImageOperand& src,
+ const DMA::BufferOperand& dst) = 0;
+
+ virtual bool BufferToImage(const DMA::ImageCopy& copy_info, const DMA::BufferOperand& src,
+ const DMA::ImageOperand& dst) = 0;
};
/**
@@ -51,30 +105,6 @@ public:
}
};
- union BlockSize {
- BitField<0, 4, u32> width;
- BitField<4, 4, u32> height;
- BitField<8, 4, u32> depth;
- BitField<12, 4, u32> gob_height;
- };
- static_assert(sizeof(BlockSize) == 4);
-
- union Origin {
- BitField<0, 16, u32> x;
- BitField<16, 16, u32> y;
- };
- static_assert(sizeof(Origin) == 4);
-
- struct Parameters {
- BlockSize block_size;
- u32 width;
- u32 height;
- u32 depth;
- u32 layer;
- Origin origin;
- };
- static_assert(sizeof(Parameters) == 24);
-
struct Semaphore {
PackedGPUVAddr address;
u32 payload;
@@ -227,8 +257,6 @@ private:
void CopyBlockLinearToBlockLinear();
- void FastCopyBlockLinearToPitch();
-
void ReleaseSemaphore();
void ConsumeSinkImpl() override;
@@ -261,17 +289,17 @@ private:
u32 reserved05[0x3f];
PackedGPUVAddr offset_in;
PackedGPUVAddr offset_out;
- u32 pitch_in;
- u32 pitch_out;
+ s32 pitch_in;
+ s32 pitch_out;
u32 line_length_in;
u32 line_count;
u32 reserved06[0xb6];
u32 remap_consta_value;
u32 remap_constb_value;
RemapConst remap_const;
- Parameters dst_params;
+ DMA::Parameters dst_params;
u32 reserved07[0x1];
- Parameters src_params;
+ DMA::Parameters src_params;
u32 reserved08[0x275];
u32 pm_trigger_end;
u32 reserved09[0x3ba];
diff --git a/src/video_core/engines/sw_blitter/blitter.cpp b/src/video_core/engines/sw_blitter/blitter.cpp
index 2f1ea4626..ff88cd03d 100644
--- a/src/video_core/engines/sw_blitter/blitter.cpp
+++ b/src/video_core/engines/sw_blitter/blitter.cpp
@@ -5,6 +5,7 @@
#include <cmath>
#include <vector>
+#include "common/scratch_buffer.h"
#include "video_core/engines/sw_blitter/blitter.h"
#include "video_core/engines/sw_blitter/converter.h"
#include "video_core/memory_manager.h"
@@ -112,11 +113,11 @@ void Bilinear(std::span<const f32> input, std::span<f32> output, size_t src_widt
} // namespace
struct SoftwareBlitEngine::BlitEngineImpl {
- std::vector<u8> tmp_buffer;
- std::vector<u8> src_buffer;
- std::vector<u8> dst_buffer;
- std::vector<f32> intermediate_src;
- std::vector<f32> intermediate_dst;
+ Common::ScratchBuffer<u8> tmp_buffer;
+ Common::ScratchBuffer<u8> src_buffer;
+ Common::ScratchBuffer<u8> dst_buffer;
+ Common::ScratchBuffer<f32> intermediate_src;
+ Common::ScratchBuffer<f32> intermediate_dst;
ConverterFactory converter_factory;
};
@@ -158,14 +159,14 @@ bool SoftwareBlitEngine::Blit(Fermi2D::Surface& src, Fermi2D::Surface& dst,
const auto src_bytes_per_pixel = BytesPerBlock(PixelFormatFromRenderTargetFormat(src.format));
const auto dst_bytes_per_pixel = BytesPerBlock(PixelFormatFromRenderTargetFormat(dst.format));
const size_t src_size = get_surface_size(src, src_bytes_per_pixel);
- impl->tmp_buffer.resize(src_size);
+ impl->tmp_buffer.resize_destructive(src_size);
memory_manager.ReadBlock(src.Address(), impl->tmp_buffer.data(), src_size);
const size_t src_copy_size = src_extent_x * src_extent_y * src_bytes_per_pixel;
const size_t dst_copy_size = dst_extent_x * dst_extent_y * dst_bytes_per_pixel;
- impl->src_buffer.resize(src_copy_size);
+ impl->src_buffer.resize_destructive(src_copy_size);
const bool no_passthrough =
src.format != dst.format || src_extent_x != dst_extent_x || src_extent_y != dst_extent_y;
@@ -177,8 +178,10 @@ bool SoftwareBlitEngine::Blit(Fermi2D::Surface& src, Fermi2D::Surface& dst,
const auto convertion_phase_ir = [&]() {
auto* input_converter = impl->converter_factory.GetFormatConverter(src.format);
- impl->intermediate_src.resize((src_copy_size / src_bytes_per_pixel) * ir_components);
- impl->intermediate_dst.resize((dst_copy_size / dst_bytes_per_pixel) * ir_components);
+ impl->intermediate_src.resize_destructive((src_copy_size / src_bytes_per_pixel) *
+ ir_components);
+ impl->intermediate_dst.resize_destructive((dst_copy_size / dst_bytes_per_pixel) *
+ ir_components);
input_converter->ConvertTo(impl->src_buffer, impl->intermediate_src);
if (config.filter != Fermi2D::Filter::Bilinear) {
@@ -193,9 +196,9 @@ bool SoftwareBlitEngine::Blit(Fermi2D::Surface& src, Fermi2D::Surface& dst,
output_converter->ConvertFrom(impl->intermediate_dst, impl->dst_buffer);
};
- // Do actuall Blit
+ // Do actual Blit
- impl->dst_buffer.resize(dst_copy_size);
+ impl->dst_buffer.resize_destructive(dst_copy_size);
if (src.linear == Fermi2D::MemoryLayout::BlockLinear) {
UnswizzleSubrect(impl->src_buffer, impl->tmp_buffer, src_bytes_per_pixel, src.width,
src.height, src.depth, config.src_x0, config.src_y0, src_extent_x,
@@ -218,7 +221,7 @@ bool SoftwareBlitEngine::Blit(Fermi2D::Surface& src, Fermi2D::Surface& dst,
}
const size_t dst_size = get_surface_size(dst, dst_bytes_per_pixel);
- impl->tmp_buffer.resize(dst_size);
+ impl->tmp_buffer.resize_destructive(dst_size);
memory_manager.ReadBlock(dst.Address(), impl->tmp_buffer.data(), dst_size);
if (dst.linear == Fermi2D::MemoryLayout::BlockLinear) {
diff --git a/src/video_core/fence_manager.h b/src/video_core/fence_manager.h
index c390ac91b..35d699bbf 100644
--- a/src/video_core/fence_manager.h
+++ b/src/video_core/fence_manager.h
@@ -4,13 +4,20 @@
#pragma once
#include <algorithm>
+#include <condition_variable>
#include <cstring>
#include <deque>
#include <functional>
#include <memory>
+#include <mutex>
+#include <thread>
#include <queue>
#include "common/common_types.h"
+#include "common/microprofile.h"
+#include "common/scope_exit.h"
+#include "common/settings.h"
+#include "common/thread.h"
#include "video_core/delayed_destruction_ring.h"
#include "video_core/gpu.h"
#include "video_core/host1x/host1x.h"
@@ -23,15 +30,26 @@ class FenceBase {
public:
explicit FenceBase(bool is_stubbed_) : is_stubbed{is_stubbed_} {}
+ bool IsStubbed() const {
+ return is_stubbed;
+ }
+
protected:
bool is_stubbed;
};
-template <typename TFence, typename TTextureCache, typename TTBufferCache, typename TQueryCache>
+template <typename Traits>
class FenceManager {
+ using TFence = typename Traits::FenceType;
+ using TTextureCache = typename Traits::TextureCacheType;
+ using TBufferCache = typename Traits::BufferCacheType;
+ using TQueryCache = typename Traits::QueryCacheType;
+ static constexpr bool can_async_check = Traits::HAS_ASYNC_CHECK;
+
public:
/// Notify the fence manager about a new frame
void TickFrame() {
+ std::unique_lock lock(ring_guard);
delayed_destruction_ring.Tick();
}
@@ -41,22 +59,43 @@ public:
buffer_cache.AccumulateFlushes();
}
+ void SignalReference() {
+ std::function<void()> do_nothing([] {});
+ SignalFence(std::move(do_nothing));
+ }
+
void SyncOperation(std::function<void()>&& func) {
uncommitted_operations.emplace_back(std::move(func));
}
void SignalFence(std::function<void()>&& func) {
- TryReleasePendingFences();
+ rasterizer.InvalidateGPUCache();
+ bool delay_fence = Settings::IsGPULevelHigh();
+ if constexpr (!can_async_check) {
+ TryReleasePendingFences<false>();
+ }
const bool should_flush = ShouldFlush();
CommitAsyncFlushes();
- uncommitted_operations.emplace_back(std::move(func));
- CommitOperations();
TFence new_fence = CreateFence(!should_flush);
- fences.push(new_fence);
+ if constexpr (can_async_check) {
+ guard.lock();
+ }
+ if (delay_fence) {
+ uncommitted_operations.emplace_back(std::move(func));
+ }
+ pending_operations.emplace_back(std::move(uncommitted_operations));
QueueFence(new_fence);
+ if (!delay_fence) {
+ func();
+ }
+ fences.push(std::move(new_fence));
if (should_flush) {
rasterizer.FlushCommands();
}
+ if constexpr (can_async_check) {
+ guard.unlock();
+ cv.notify_all();
+ }
}
void SignalSyncPoint(u32 value) {
@@ -66,29 +105,30 @@ public:
}
void WaitPendingFences() {
- while (!fences.empty()) {
- TFence& current_fence = fences.front();
- if (ShouldWait()) {
- WaitFence(current_fence);
- }
- PopAsyncFlushes();
- auto operations = std::move(pending_operations.front());
- pending_operations.pop_front();
- for (auto& operation : operations) {
- operation();
- }
- PopFence();
+ if constexpr (!can_async_check) {
+ TryReleasePendingFences<true>();
}
}
protected:
explicit FenceManager(VideoCore::RasterizerInterface& rasterizer_, Tegra::GPU& gpu_,
- TTextureCache& texture_cache_, TTBufferCache& buffer_cache_,
+ TTextureCache& texture_cache_, TBufferCache& buffer_cache_,
TQueryCache& query_cache_)
: rasterizer{rasterizer_}, gpu{gpu_}, syncpoint_manager{gpu.Host1x().GetSyncpointManager()},
- texture_cache{texture_cache_}, buffer_cache{buffer_cache_}, query_cache{query_cache_} {}
+ texture_cache{texture_cache_}, buffer_cache{buffer_cache_}, query_cache{query_cache_} {
+ if constexpr (can_async_check) {
+ fence_thread =
+ std::jthread([this](std::stop_token token) { ReleaseThreadFunc(token); });
+ }
+ }
- virtual ~FenceManager() = default;
+ virtual ~FenceManager() {
+ if constexpr (can_async_check) {
+ fence_thread.request_stop();
+ cv.notify_all();
+ fence_thread.join();
+ }
+ }
/// Creates a Fence Interface, does not create a backend fence if 'is_stubbed' is
/// true
@@ -104,15 +144,20 @@ protected:
Tegra::GPU& gpu;
Tegra::Host1x::SyncpointManager& syncpoint_manager;
TTextureCache& texture_cache;
- TTBufferCache& buffer_cache;
+ TBufferCache& buffer_cache;
TQueryCache& query_cache;
private:
+ template <bool force_wait>
void TryReleasePendingFences() {
while (!fences.empty()) {
TFence& current_fence = fences.front();
if (ShouldWait() && !IsFenceSignaled(current_fence)) {
- return;
+ if constexpr (force_wait) {
+ WaitFence(current_fence);
+ } else {
+ return;
+ }
}
PopAsyncFlushes();
auto operations = std::move(pending_operations.front());
@@ -120,7 +165,49 @@ private:
for (auto& operation : operations) {
operation();
}
- PopFence();
+ {
+ std::unique_lock lock(ring_guard);
+ delayed_destruction_ring.Push(std::move(current_fence));
+ }
+ fences.pop();
+ }
+ }
+
+ void ReleaseThreadFunc(std::stop_token stop_token) {
+ std::string name = "GPUFencingThread";
+ MicroProfileOnThreadCreate(name.c_str());
+
+ // Cleanup
+ SCOPE_EXIT({ MicroProfileOnThreadExit(); });
+
+ Common::SetCurrentThreadName(name.c_str());
+ Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
+
+ TFence current_fence;
+ std::deque<std::function<void()>> current_operations;
+ while (!stop_token.stop_requested()) {
+ {
+ std::unique_lock lock(guard);
+ cv.wait(lock, [&] { return stop_token.stop_requested() || !fences.empty(); });
+ if (stop_token.stop_requested()) [[unlikely]] {
+ return;
+ }
+ current_fence = std::move(fences.front());
+ current_operations = std::move(pending_operations.front());
+ fences.pop();
+ pending_operations.pop_front();
+ }
+ if (!current_fence->IsStubbed()) {
+ WaitFence(current_fence);
+ }
+ PopAsyncFlushes();
+ for (auto& operation : current_operations) {
+ operation();
+ }
+ {
+ std::unique_lock lock(ring_guard);
+ delayed_destruction_ring.Push(std::move(current_fence));
+ }
}
}
@@ -154,19 +241,16 @@ private:
query_cache.CommitAsyncFlushes();
}
- void PopFence() {
- delayed_destruction_ring.Push(std::move(fences.front()));
- fences.pop();
- }
-
- void CommitOperations() {
- pending_operations.emplace_back(std::move(uncommitted_operations));
- }
-
std::queue<TFence> fences;
std::deque<std::function<void()>> uncommitted_operations;
std::deque<std::deque<std::function<void()>>> pending_operations;
+ std::mutex guard;
+ std::mutex ring_guard;
+ std::condition_variable cv;
+
+ std::jthread fence_thread;
+
DelayedDestructionRing<TFence, 6> delayed_destruction_ring;
};
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h
index d93f5a37f..5f3bffcab 100644
--- a/src/video_core/framebuffer_config.h
+++ b/src/video_core/framebuffer_config.h
@@ -5,8 +5,8 @@
#include "common/common_types.h"
#include "common/math_util.h"
-#include "core/hle/service/nvflinger/buffer_transform_flags.h"
-#include "core/hle/service/nvflinger/pixel_format.h"
+#include "core/hle/service/nvnflinger/buffer_transform_flags.h"
+#include "core/hle/service/nvnflinger/pixel_format.h"
namespace Tegra {
diff --git a/src/video_core/fsr.cpp b/src/video_core/fsr.cpp
new file mode 100644
index 000000000..5653c64fc
--- /dev/null
+++ b/src/video_core/fsr.cpp
@@ -0,0 +1,148 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <cmath>
+#include "video_core/fsr.h"
+
+namespace FSR {
+namespace {
+// Reimplementations of the constant generating functions in ffx_fsr1.h
+// GCC generated a lot of warnings when using the official header.
+u32 AU1_AH1_AF1(f32 f) {
+ static constexpr u32 base[512]{
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040,
+ 0x0080, 0x0100, 0x0200, 0x0400, 0x0800, 0x0c00, 0x1000, 0x1400, 0x1800, 0x1c00, 0x2000,
+ 0x2400, 0x2800, 0x2c00, 0x3000, 0x3400, 0x3800, 0x3c00, 0x4000, 0x4400, 0x4800, 0x4c00,
+ 0x5000, 0x5400, 0x5800, 0x5c00, 0x6000, 0x6400, 0x6800, 0x6c00, 0x7000, 0x7400, 0x7800,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
+ 0x7bff, 0x7bff, 0x7bff, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
+ 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8001, 0x8002, 0x8004, 0x8008,
+ 0x8010, 0x8020, 0x8040, 0x8080, 0x8100, 0x8200, 0x8400, 0x8800, 0x8c00, 0x9000, 0x9400,
+ 0x9800, 0x9c00, 0xa000, 0xa400, 0xa800, 0xac00, 0xb000, 0xb400, 0xb800, 0xbc00, 0xc000,
+ 0xc400, 0xc800, 0xcc00, 0xd000, 0xd400, 0xd800, 0xdc00, 0xe000, 0xe400, 0xe800, 0xec00,
+ 0xf000, 0xf400, 0xf800, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
+ };
+ static constexpr s8 shift[512]{
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x17, 0x16,
+ 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x0e, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
+ 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
+ 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x17,
+ 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x0e, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
+ 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
+ 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
+ 0x18, 0x18,
+ };
+ const u32 u = Common::BitCast<u32>(f);
+ const u32 i = u >> 23;
+ return base[i] + ((u & 0x7fffff) >> shift[i]);
+}
+
+u32 AU1_AH2_AF2(f32 a[2]) {
+ return AU1_AH1_AF1(a[0]) + (AU1_AH1_AF1(a[1]) << 16);
+}
+
+void FsrEasuCon(u32 con0[4], u32 con1[4], u32 con2[4], u32 con3[4], f32 inputViewportInPixelsX,
+ f32 inputViewportInPixelsY, f32 inputSizeInPixelsX, f32 inputSizeInPixelsY,
+ f32 outputSizeInPixelsX, f32 outputSizeInPixelsY) {
+ con0[0] = Common::BitCast<u32>(inputViewportInPixelsX / outputSizeInPixelsX);
+ con0[1] = Common::BitCast<u32>(inputViewportInPixelsY / outputSizeInPixelsY);
+ con0[2] = Common::BitCast<u32>(0.5f * inputViewportInPixelsX / outputSizeInPixelsX - 0.5f);
+ con0[3] = Common::BitCast<u32>(0.5f * inputViewportInPixelsY / outputSizeInPixelsY - 0.5f);
+ con1[0] = Common::BitCast<u32>(1.0f / inputSizeInPixelsX);
+ con1[1] = Common::BitCast<u32>(1.0f / inputSizeInPixelsY);
+ con1[2] = Common::BitCast<u32>(1.0f / inputSizeInPixelsX);
+ con1[3] = Common::BitCast<u32>(-1.0f / inputSizeInPixelsY);
+ con2[0] = Common::BitCast<u32>(-1.0f / inputSizeInPixelsX);
+ con2[1] = Common::BitCast<u32>(2.0f / inputSizeInPixelsY);
+ con2[2] = Common::BitCast<u32>(1.0f / inputSizeInPixelsX);
+ con2[3] = Common::BitCast<u32>(2.0f / inputSizeInPixelsY);
+ con3[0] = Common::BitCast<u32>(0.0f / inputSizeInPixelsX);
+ con3[1] = Common::BitCast<u32>(4.0f / inputSizeInPixelsY);
+ con3[2] = con3[3] = 0;
+}
+} // Anonymous namespace
+
+void FsrEasuConOffset(u32 con0[4], u32 con1[4], u32 con2[4], u32 con3[4],
+ f32 inputViewportInPixelsX, f32 inputViewportInPixelsY,
+ f32 inputSizeInPixelsX, f32 inputSizeInPixelsY, f32 outputSizeInPixelsX,
+ f32 outputSizeInPixelsY, f32 inputOffsetInPixelsX, f32 inputOffsetInPixelsY) {
+ FsrEasuCon(con0, con1, con2, con3, inputViewportInPixelsX, inputViewportInPixelsY,
+ inputSizeInPixelsX, inputSizeInPixelsY, outputSizeInPixelsX, outputSizeInPixelsY);
+ con0[2] = Common::BitCast<u32>(0.5f * inputViewportInPixelsX / outputSizeInPixelsX - 0.5f +
+ inputOffsetInPixelsX);
+ con0[3] = Common::BitCast<u32>(0.5f * inputViewportInPixelsY / outputSizeInPixelsY - 0.5f +
+ inputOffsetInPixelsY);
+}
+
+void FsrRcasCon(u32* con, f32 sharpness) {
+ sharpness = std::exp2f(-sharpness);
+ f32 hSharp[2]{sharpness, sharpness};
+ con[0] = Common::BitCast<u32>(sharpness);
+ con[1] = AU1_AH2_AF2(hSharp);
+ con[2] = 0;
+ con[3] = 0;
+}
+} // namespace FSR
diff --git a/src/video_core/fsr.h b/src/video_core/fsr.h
new file mode 100644
index 000000000..db0d4ec6f
--- /dev/null
+++ b/src/video_core/fsr.h
@@ -0,0 +1,19 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "common/bit_cast.h"
+#include "common/common_types.h"
+
+namespace FSR {
+// Reimplementations of the constant generating functions in ffx_fsr1.h
+// GCC generated a lot of warnings when using the official header.
+void FsrEasuConOffset(u32 con0[4], u32 con1[4], u32 con2[4], u32 con3[4],
+ f32 inputViewportInPixelsX, f32 inputViewportInPixelsY,
+ f32 inputSizeInPixelsX, f32 inputSizeInPixelsY, f32 outputSizeInPixelsX,
+ f32 outputSizeInPixelsY, f32 inputOffsetInPixelsX, f32 inputOffsetInPixelsY);
+
+void FsrRcasCon(u32* con, f32 sharpness);
+
+} // namespace FSR
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index c6d54be63..db385076d 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -14,6 +14,7 @@
#include "core/core.h"
#include "core/core_timing.h"
#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
#include "core/hle/service/nvdrv/nvdata.h"
#include "core/perf_stats.h"
#include "video_core/cdma_pusher.h"
@@ -99,7 +100,7 @@ struct GPU::Impl {
/// Signal the ending of command list.
void OnCommandListEnd() {
- gpu_thread.OnCommandListEnd();
+ rasterizer->ReleaseFences();
}
/// Request a host GPU memory flush from the CPU.
@@ -192,18 +193,13 @@ struct GPU::Impl {
}
[[nodiscard]] u64 GetTicks() const {
- // This values were reversed engineered by fincs from NVN
- // The gpu clock is reported in units of 385/625 nanoseconds
- constexpr u64 gpu_ticks_num = 384;
- constexpr u64 gpu_ticks_den = 625;
+ u64 gpu_tick = system.CoreTiming().GetGPUTicks();
- u64 nanoseconds = system.CoreTiming().GetGlobalTimeNs().count();
if (Settings::values.use_fast_gpu_time.GetValue()) {
- nanoseconds /= 256;
+ gpu_tick /= 256;
}
- const u64 nanoseconds_num = nanoseconds / gpu_ticks_den;
- const u64 nanoseconds_rem = nanoseconds % gpu_ticks_den;
- return nanoseconds_num * gpu_ticks_num + (nanoseconds_rem * gpu_ticks_num) / gpu_ticks_den;
+
+ return gpu_tick;
}
[[nodiscard]] bool IsAsync() const {
@@ -283,6 +279,21 @@ struct GPU::Impl {
gpu_thread.FlushRegion(addr, size);
}
+ VideoCore::RasterizerDownloadArea OnCPURead(VAddr addr, u64 size) {
+ auto raster_area = rasterizer->GetFlushArea(addr, size);
+ if (raster_area.preemtive) {
+ return raster_area;
+ }
+ raster_area.preemtive = true;
+ const u64 fence = RequestSyncOperation([this, &raster_area]() {
+ rasterizer->FlushRegion(raster_area.start_address,
+ raster_area.end_address - raster_area.start_address);
+ });
+ gpu_thread.TickGPU();
+ WaitForSyncOperation(fence);
+ return raster_area;
+ }
+
/// Notify rasterizer that any caches of the specified region should be invalidated
void InvalidateRegion(VAddr addr, u64 size) {
gpu_thread.InvalidateRegion(addr, size);
@@ -538,6 +549,10 @@ void GPU::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
impl->SwapBuffers(framebuffer);
}
+VideoCore::RasterizerDownloadArea GPU::OnCPURead(VAddr addr, u64 size) {
+ return impl->OnCPURead(addr, size);
+}
+
void GPU::FlushRegion(VAddr addr, u64 size) {
impl->FlushRegion(addr, size);
}
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 8a871593a..e49c40cf2 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -10,6 +10,7 @@
#include "core/hle/service/nvdrv/nvdata.h"
#include "video_core/cdma_pusher.h"
#include "video_core/framebuffer_config.h"
+#include "video_core/rasterizer_download_area.h"
namespace Core {
class System;
@@ -241,6 +242,9 @@ public:
void SwapBuffers(const Tegra::FramebufferConfig* framebuffer);
/// Notify rasterizer that any caches of the specified region should be flushed to Switch memory
+ [[nodiscard]] VideoCore::RasterizerDownloadArea OnCPURead(VAddr addr, u64 size);
+
+ /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory
void FlushRegion(VAddr addr, u64 size);
/// Notify rasterizer that any caches of the specified region should be invalidated
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 164a5252a..889144f38 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -7,7 +7,7 @@
#include "common/settings.h"
#include "common/thread.h"
#include "core/core.h"
-#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
#include "video_core/control/scheduler.h"
#include "video_core/dma_pusher.h"
#include "video_core/gpu.h"
@@ -25,14 +25,16 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
SCOPE_EXIT({ MicroProfileOnThreadExit(); });
Common::SetCurrentThreadName(name.c_str());
- Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
+ Common::SetCurrentThreadPriority(Common::ThreadPriority::Critical);
system.RegisterHostThread();
auto current_context = context.Acquire();
VideoCore::RasterizerInterface* const rasterizer = renderer.ReadRasterizer();
+ CommandDataContainer next;
+
while (!stop_token.stop_requested()) {
- CommandDataContainer next = state.queue.PopWait(stop_token);
+ state.queue.PopWait(next, stop_token);
if (stop_token.stop_requested()) {
break;
}
@@ -40,8 +42,6 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
scheduler.Push(submit_list->channel, std::move(submit_list->entries));
} else if (const auto* data = std::get_if<SwapBuffersCommand>(&next.data)) {
renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr);
- } else if (std::holds_alternative<OnCommandListEndCommand>(next.data)) {
- rasterizer->ReleaseFences();
} else if (std::holds_alternative<GPUTickCommand>(next.data)) {
system.GPU().TickWork();
} else if (const auto* flush = std::get_if<FlushRegionCommand>(&next.data)) {
@@ -110,10 +110,6 @@ void ThreadManager::FlushAndInvalidateRegion(VAddr addr, u64 size) {
rasterizer->OnCPUWrite(addr, size);
}
-void ThreadManager::OnCommandListEnd() {
- PushCommand(OnCommandListEndCommand());
-}
-
u64 ThreadManager::PushCommand(CommandData&& command_data, bool block) {
if (!is_async) {
// In synchronous GPU mode, block the caller until the command has executed
@@ -122,7 +118,7 @@ u64 ThreadManager::PushCommand(CommandData&& command_data, bool block) {
std::unique_lock lk(state.write_lock);
const u64 fence{++state.last_fence};
- state.queue.Push(CommandDataContainer(std::move(command_data), fence, block));
+ state.queue.EmplaceWait(std::move(command_data), fence, block);
if (block) {
Common::CondvarWait(state.cv, lk, thread.get_stop_token(), [this, fence] {
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index c71a419c7..43940bd6d 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -10,8 +10,8 @@
#include <thread>
#include <variant>
+#include "common/bounded_threadsafe_queue.h"
#include "common/polyfill_thread.h"
-#include "common/threadsafe_queue.h"
#include "video_core/framebuffer_config.h"
namespace Tegra {
@@ -77,16 +77,12 @@ struct FlushAndInvalidateRegionCommand final {
u64 size;
};
-/// Command called within the gpu, to schedule actions after a command list end
-struct OnCommandListEndCommand final {};
-
/// Command to make the gpu look into pending requests
struct GPUTickCommand final {};
using CommandData =
std::variant<std::monostate, SubmitListCommand, SwapBuffersCommand, FlushRegionCommand,
- InvalidateRegionCommand, FlushAndInvalidateRegionCommand, OnCommandListEndCommand,
- GPUTickCommand>;
+ InvalidateRegionCommand, FlushAndInvalidateRegionCommand, GPUTickCommand>;
struct CommandDataContainer {
CommandDataContainer() = default;
@@ -101,7 +97,7 @@ struct CommandDataContainer {
/// Struct used to synchronize the GPU thread
struct SynchState final {
- using CommandQueue = Common::MPSCQueue<CommandDataContainer, true>;
+ using CommandQueue = Common::MPSCQueue<CommandDataContainer>;
std::mutex write_lock;
CommandQueue queue;
u64 last_fence{};
@@ -134,8 +130,6 @@ public:
/// Notify rasterizer that any caches of the specified region should be flushed and invalidated
void FlushAndInvalidateRegion(VAddr addr, u64 size);
- void OnCommandListEnd();
-
void TickGPU();
private:
diff --git a/src/video_core/host1x/codecs/codec.cpp b/src/video_core/host1x/codecs/codec.cpp
index 42e7d6e4f..cd6a3a9b8 100644
--- a/src/video_core/host1x/codecs/codec.cpp
+++ b/src/video_core/host1x/codecs/codec.cpp
@@ -5,6 +5,7 @@
#include <fstream>
#include <vector>
#include "common/assert.h"
+#include "common/scope_exit.h"
#include "common/settings.h"
#include "video_core/host1x/codecs/codec.h"
#include "video_core/host1x/codecs/h264.h"
@@ -14,6 +15,8 @@
#include "video_core/memory_manager.h"
extern "C" {
+#include <libavfilter/buffersink.h>
+#include <libavfilter/buffersrc.h>
#include <libavutil/opt.h>
#ifdef LIBVA_FOUND
// for querying VAAPI driver information
@@ -85,6 +88,10 @@ Codec::~Codec() {
// Free libav memory
avcodec_free_context(&av_codec_ctx);
av_buffer_unref(&av_gpu_decoder);
+
+ if (filters_initialized) {
+ avfilter_graph_free(&av_filter_graph);
+ }
}
bool Codec::CreateGpuAvDevice() {
@@ -152,6 +159,8 @@ bool Codec::CreateGpuAvDevice() {
void Codec::InitializeAvCodecContext() {
av_codec_ctx = avcodec_alloc_context3(av_codec);
av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0);
+ av_codec_ctx->thread_count = 0;
+ av_codec_ctx->thread_type &= ~FF_THREAD_FRAME;
}
void Codec::InitializeGpuDecoder() {
@@ -165,6 +174,62 @@ void Codec::InitializeGpuDecoder() {
av_codec_ctx->get_format = GetGpuFormat;
}
+void Codec::InitializeAvFilters(AVFrame* frame) {
+ const AVFilter* buffer_src = avfilter_get_by_name("buffer");
+ const AVFilter* buffer_sink = avfilter_get_by_name("buffersink");
+ AVFilterInOut* inputs = avfilter_inout_alloc();
+ AVFilterInOut* outputs = avfilter_inout_alloc();
+ SCOPE_EXIT({
+ avfilter_inout_free(&inputs);
+ avfilter_inout_free(&outputs);
+ });
+
+ // Don't know how to get the accurate time_base but it doesn't matter for yadif filter
+ // so just use 1/1 to make buffer filter happy
+ std::string args = fmt::format("video_size={}x{}:pix_fmt={}:time_base=1/1", frame->width,
+ frame->height, frame->format);
+
+ av_filter_graph = avfilter_graph_alloc();
+ int ret = avfilter_graph_create_filter(&av_filter_src_ctx, buffer_src, "in", args.c_str(),
+ nullptr, av_filter_graph);
+ if (ret < 0) {
+ LOG_ERROR(Service_NVDRV, "avfilter_graph_create_filter source error: {}", ret);
+ return;
+ }
+
+ ret = avfilter_graph_create_filter(&av_filter_sink_ctx, buffer_sink, "out", nullptr, nullptr,
+ av_filter_graph);
+ if (ret < 0) {
+ LOG_ERROR(Service_NVDRV, "avfilter_graph_create_filter sink error: {}", ret);
+ return;
+ }
+
+ inputs->name = av_strdup("out");
+ inputs->filter_ctx = av_filter_sink_ctx;
+ inputs->pad_idx = 0;
+ inputs->next = nullptr;
+
+ outputs->name = av_strdup("in");
+ outputs->filter_ctx = av_filter_src_ctx;
+ outputs->pad_idx = 0;
+ outputs->next = nullptr;
+
+ const char* description = "yadif=1:-1:0";
+ ret = avfilter_graph_parse_ptr(av_filter_graph, description, &inputs, &outputs, nullptr);
+ if (ret < 0) {
+ LOG_ERROR(Service_NVDRV, "avfilter_graph_parse_ptr error: {}", ret);
+ return;
+ }
+
+ ret = avfilter_graph_config(av_filter_graph, nullptr);
+ if (ret < 0) {
+ LOG_ERROR(Service_NVDRV, "avfilter_graph_config error: {}", ret);
+ return;
+ }
+
+ filters_initialized = true;
+}
+
void Codec::Initialize() {
const AVCodecID codec = [&] {
switch (current_codec) {
@@ -269,8 +334,34 @@ void Codec::Decode() {
UNIMPLEMENTED_MSG("Unexpected video format: {}", final_frame->format);
return;
}
- av_frames.push(std::move(final_frame));
- if (av_frames.size() > 10) {
+ if (!final_frame->interlaced_frame) {
+ av_frames.push(std::move(final_frame));
+ } else {
+ if (!filters_initialized) {
+ InitializeAvFilters(final_frame.get());
+ }
+ if (const int ret = av_buffersrc_add_frame_flags(av_filter_src_ctx, final_frame.get(),
+ AV_BUFFERSRC_FLAG_KEEP_REF);
+ ret) {
+ LOG_DEBUG(Service_NVDRV, "av_buffersrc_add_frame_flags error {}", ret);
+ return;
+ }
+ while (true) {
+ auto filter_frame = AVFramePtr{av_frame_alloc(), AVFrameDeleter};
+
+ int ret = av_buffersink_get_frame(av_filter_sink_ctx, filter_frame.get());
+
+ if (ret == AVERROR(EAGAIN) || ret == AVERROR(AVERROR_EOF))
+ break;
+ if (ret < 0) {
+ LOG_DEBUG(Service_NVDRV, "av_buffersink_get_frame error {}", ret);
+ return;
+ }
+
+ av_frames.push(std::move(filter_frame));
+ }
+ }
+ while (av_frames.size() > 10) {
LOG_TRACE(Service_NVDRV, "av_frames.push overflow dropped frame");
av_frames.pop();
}
diff --git a/src/video_core/host1x/codecs/codec.h b/src/video_core/host1x/codecs/codec.h
index 0d45fb7fe..06fe00a4b 100644
--- a/src/video_core/host1x/codecs/codec.h
+++ b/src/video_core/host1x/codecs/codec.h
@@ -15,6 +15,7 @@ extern "C" {
#pragma GCC diagnostic ignored "-Wconversion"
#endif
#include <libavcodec/avcodec.h>
+#include <libavfilter/avfilter.h>
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif
@@ -61,17 +62,24 @@ public:
private:
void InitializeAvCodecContext();
+ void InitializeAvFilters(AVFrame* frame);
+
void InitializeGpuDecoder();
bool CreateGpuAvDevice();
bool initialized{};
+ bool filters_initialized{};
Host1x::NvdecCommon::VideoCodec current_codec{Host1x::NvdecCommon::VideoCodec::None};
const AVCodec* av_codec{nullptr};
AVCodecContext* av_codec_ctx{nullptr};
AVBufferRef* av_gpu_decoder{nullptr};
+ AVFilterContext* av_filter_src_ctx{nullptr};
+ AVFilterContext* av_filter_sink_ctx{nullptr};
+ AVFilterGraph* av_filter_graph{nullptr};
+
Host1x::Host1x& host1x;
const Host1x::NvdecCommon::NvdecRegisters& state;
std::unique_ptr<Decoder::H264> h264_decoder;
diff --git a/src/video_core/host1x/codecs/h264.cpp b/src/video_core/host1x/codecs/h264.cpp
index e87bd65fa..ce827eb6c 100644
--- a/src/video_core/host1x/codecs/h264.cpp
+++ b/src/video_core/host1x/codecs/h264.cpp
@@ -4,6 +4,7 @@
#include <array>
#include <bit>
+#include "common/scratch_buffer.h"
#include "common/settings.h"
#include "video_core/host1x/codecs/h264.h"
#include "video_core/host1x/host1x.h"
@@ -111,7 +112,7 @@ const std::vector<u8>& H264::ComposeFrame(const Host1x::NvdecCommon::NvdecRegist
writer.WriteUe(0);
writer.WriteBit(context.h264_parameter_set.entropy_coding_mode_flag != 0);
- writer.WriteBit(false);
+ writer.WriteBit(context.h264_parameter_set.pic_order_present_flag != 0);
writer.WriteUe(0);
writer.WriteUe(context.h264_parameter_set.num_refidx_l0_default_active);
writer.WriteUe(context.h264_parameter_set.num_refidx_l1_default_active);
@@ -129,7 +130,7 @@ const std::vector<u8>& H264::ComposeFrame(const Host1x::NvdecCommon::NvdecRegist
writer.WriteBit(context.h264_parameter_set.redundant_pic_cnt_present_flag != 0);
writer.WriteBit(context.h264_parameter_set.transform_8x8_mode_flag != 0);
- writer.WriteBit(true);
+ writer.WriteBit(true); // pic_scaling_matrix_present_flag
for (s32 index = 0; index < 6; index++) {
writer.WriteBit(true);
@@ -188,7 +189,8 @@ void H264BitWriter::WriteBit(bool state) {
}
void H264BitWriter::WriteScalingList(std::span<const u8> list, s32 start, s32 count) {
- std::vector<u8> scan(count);
+ static Common::ScratchBuffer<u8> scan{};
+ scan.resize_destructive(count);
if (count == 16) {
std::memcpy(scan.data(), zig_zag_scan.data(), scan.size());
} else {
diff --git a/src/video_core/host1x/vic.cpp b/src/video_core/host1x/vic.cpp
index 36a04e4e0..10d7ef884 100644
--- a/src/video_core/host1x/vic.cpp
+++ b/src/video_core/host1x/vic.cpp
@@ -189,9 +189,7 @@ void Vic::WriteYUVFrame(const AVFrame* frame, const VicConfig& config) {
for (std::size_t y = 0; y < frame_height; ++y) {
const std::size_t src = y * stride;
const std::size_t dst = y * aligned_width;
- for (std::size_t x = 0; x < frame_width; ++x) {
- luma_buffer[dst + x] = luma_src[src + x];
- }
+ std::memcpy(luma_buffer.data() + dst, luma_src + src, frame_width);
}
host1x.MemoryManager().WriteBlock(output_surface_luma_address, luma_buffer.data(),
luma_buffer.size());
@@ -205,15 +203,15 @@ void Vic::WriteYUVFrame(const AVFrame* frame, const VicConfig& config) {
// Frame from FFmpeg software
// Populate chroma buffer from both channels with interleaving.
const std::size_t half_width = frame_width / 2;
+ u8* chroma_buffer_data = chroma_buffer.data();
const u8* chroma_b_src = frame->data[1];
const u8* chroma_r_src = frame->data[2];
for (std::size_t y = 0; y < half_height; ++y) {
const std::size_t src = y * half_stride;
const std::size_t dst = y * aligned_width;
-
for (std::size_t x = 0; x < half_width; ++x) {
- chroma_buffer[dst + x * 2] = chroma_b_src[src + x];
- chroma_buffer[dst + x * 2 + 1] = chroma_r_src[src + x];
+ chroma_buffer_data[dst + x * 2] = chroma_b_src[src + x];
+ chroma_buffer_data[dst + x * 2 + 1] = chroma_r_src[src + x];
}
}
break;
@@ -225,9 +223,7 @@ void Vic::WriteYUVFrame(const AVFrame* frame, const VicConfig& config) {
for (std::size_t y = 0; y < half_height; ++y) {
const std::size_t src = y * stride;
const std::size_t dst = y * aligned_width;
- for (std::size_t x = 0; x < frame_width; ++x) {
- chroma_buffer[dst + x] = chroma_src[src + x];
- }
+ std::memcpy(chroma_buffer.data() + dst, chroma_src + src, frame_width);
}
break;
}
diff --git a/src/video_core/host_shaders/CMakeLists.txt b/src/video_core/host_shaders/CMakeLists.txt
index e968ae220..e61d9af80 100644
--- a/src/video_core/host_shaders/CMakeLists.txt
+++ b/src/video_core/host_shaders/CMakeLists.txt
@@ -3,12 +3,16 @@
set(FIDELITYFX_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/externals/FidelityFX-FSR/ffx-fsr)
-set(GLSL_INCLUDES
- fidelityfx_fsr.comp
+set(FIDELITYFX_FILES
${FIDELITYFX_INCLUDE_DIR}/ffx_a.h
${FIDELITYFX_INCLUDE_DIR}/ffx_fsr1.h
)
+set(GLSL_INCLUDES
+ fidelityfx_fsr.comp
+ ${FIDELITYFX_FILES}
+)
+
set(SHADER_FILES
astc_decoder.comp
blit_color_float.frag
@@ -18,12 +22,18 @@ set(SHADER_FILES
convert_d24s8_to_abgr8.frag
convert_depth_to_float.frag
convert_float_to_depth.frag
+ convert_msaa_to_non_msaa.comp
+ convert_non_msaa_to_msaa.comp
convert_s8d24_to_abgr8.frag
full_screen_triangle.vert
fxaa.frag
fxaa.vert
opengl_convert_s8d24.comp
opengl_copy_bc4.comp
+ opengl_fidelityfx_fsr.frag
+ opengl_fidelityfx_fsr_easu.frag
+ opengl_fidelityfx_fsr_rcas.frag
+ opengl_lmem_warmup.comp
opengl_present.frag
opengl_present.vert
opengl_present_scaleforce.frag
@@ -38,6 +48,8 @@ set(SHADER_FILES
smaa_neighborhood_blending.vert
smaa_neighborhood_blending.frag
vulkan_blit_depth_stencil.frag
+ vulkan_color_clear.frag
+ vulkan_color_clear.vert
vulkan_fidelityfx_fsr_easu_fp16.comp
vulkan_fidelityfx_fsr_easu_fp32.comp
vulkan_fidelityfx_fsr_rcas_fp16.comp
@@ -118,6 +130,25 @@ foreach(FILENAME IN ITEMS ${SHADER_FILES})
endif()
endforeach()
+foreach(FILEPATH IN ITEMS ${FIDELITYFX_FILES})
+ get_filename_component(FILENAME ${FILEPATH} NAME)
+ string(REPLACE "." "_" HEADER_NAME ${FILENAME})
+ set(SOURCE_FILE ${FILEPATH})
+ set(SOURCE_HEADER_FILE ${SHADER_DIR}/${HEADER_NAME}.h)
+ add_custom_command(
+ OUTPUT
+ ${SOURCE_HEADER_FILE}
+ COMMAND
+ ${CMAKE_COMMAND} -P ${HEADER_GENERATOR} ${SOURCE_FILE} ${SOURCE_HEADER_FILE} ${INPUT_FILE}
+ MAIN_DEPENDENCY
+ ${SOURCE_FILE}
+ DEPENDS
+ ${INPUT_FILE}
+ # HEADER_GENERATOR should be included here but msbuild seems to assume it's always modified
+ )
+ set(SHADER_HEADERS ${SHADER_HEADERS} ${SOURCE_HEADER_FILE})
+endforeach()
+
set(SHADER_SOURCES ${SHADER_FILES})
list(APPEND SHADER_SOURCES ${GLSL_INCLUDES})
diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp
index d608678a3..bf2693559 100644
--- a/src/video_core/host_shaders/astc_decoder.comp
+++ b/src/video_core/host_shaders/astc_decoder.comp
@@ -125,7 +125,7 @@ uvec4 local_buff;
uvec4 color_endpoint_data;
int color_bitsread = 0;
-// Four values, two endpoints, four maximum paritions
+// Four values, two endpoints, four maximum partitions
uint color_values[32];
int colvals_index = 0;
diff --git a/src/video_core/host_shaders/convert_msaa_to_non_msaa.comp b/src/video_core/host_shaders/convert_msaa_to_non_msaa.comp
new file mode 100644
index 000000000..fc3854d18
--- /dev/null
+++ b/src/video_core/host_shaders/convert_msaa_to_non_msaa.comp
@@ -0,0 +1,30 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#version 450 core
+layout (local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
+
+layout (binding = 0, rgba8) uniform readonly restrict image2DMSArray msaa_in;
+layout (binding = 1, rgba8) uniform writeonly restrict image2DArray output_img;
+
+void main() {
+ const ivec3 coords = ivec3(gl_GlobalInvocationID);
+ if (any(greaterThanEqual(coords, imageSize(msaa_in)))) {
+ return;
+ }
+
+ // TODO: Specialization constants for num_samples?
+ const int num_samples = imageSamples(msaa_in);
+ for (int curr_sample = 0; curr_sample < num_samples; ++curr_sample) {
+ const vec4 pixel = imageLoad(msaa_in, coords, curr_sample);
+
+ const int single_sample_x = 2 * coords.x + (curr_sample & 1);
+ const int single_sample_y = 2 * coords.y + ((curr_sample / 2) & 1);
+ const ivec3 dest_coords = ivec3(single_sample_x, single_sample_y, coords.z);
+
+ if (any(greaterThanEqual(dest_coords, imageSize(output_img)))) {
+ continue;
+ }
+ imageStore(output_img, dest_coords, pixel);
+ }
+}
diff --git a/src/video_core/host_shaders/convert_non_msaa_to_msaa.comp b/src/video_core/host_shaders/convert_non_msaa_to_msaa.comp
new file mode 100644
index 000000000..dedd962f1
--- /dev/null
+++ b/src/video_core/host_shaders/convert_non_msaa_to_msaa.comp
@@ -0,0 +1,29 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#version 450 core
+layout (local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
+
+layout (binding = 0, rgba8) uniform readonly restrict image2DArray img_in;
+layout (binding = 1, rgba8) uniform writeonly restrict image2DMSArray output_msaa;
+
+void main() {
+ const ivec3 coords = ivec3(gl_GlobalInvocationID);
+ if (any(greaterThanEqual(coords, imageSize(output_msaa)))) {
+ return;
+ }
+
+ // TODO: Specialization constants for num_samples?
+ const int num_samples = imageSamples(output_msaa);
+ for (int curr_sample = 0; curr_sample < num_samples; ++curr_sample) {
+ const int single_sample_x = 2 * coords.x + (curr_sample & 1);
+ const int single_sample_y = 2 * coords.y + ((curr_sample / 2) & 1);
+ const ivec3 single_coords = ivec3(single_sample_x, single_sample_y, coords.z);
+
+ if (any(greaterThanEqual(single_coords, imageSize(img_in)))) {
+ continue;
+ }
+ const vec4 pixel = imageLoad(img_in, single_coords);
+ imageStore(output_msaa, coords, curr_sample, pixel);
+ }
+}
diff --git a/src/video_core/host_shaders/opengl_fidelityfx_fsr.frag b/src/video_core/host_shaders/opengl_fidelityfx_fsr.frag
new file mode 100644
index 000000000..16d22f58e
--- /dev/null
+++ b/src/video_core/host_shaders/opengl_fidelityfx_fsr.frag
@@ -0,0 +1,108 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+//!#version 460 core
+#extension GL_ARB_separate_shader_objects : enable
+#extension GL_ARB_shading_language_420pack : enable
+
+#extension GL_AMD_gpu_shader_half_float : enable
+#extension GL_NV_gpu_shader5 : enable
+
+// FidelityFX Super Resolution Sample
+//
+// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files(the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions :
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+layout (location = 0) uniform uvec4 constants[4];
+
+#define A_GPU 1
+#define A_GLSL 1
+
+#ifdef YUZU_USE_FP16
+ #define A_HALF
+#endif
+#include "ffx_a.h"
+
+#ifndef YUZU_USE_FP16
+ layout (binding=0) uniform sampler2D InputTexture;
+ #if USE_EASU
+ #define FSR_EASU_F 1
+ AF4 FsrEasuRF(AF2 p) { AF4 res = textureGather(InputTexture, p, 0); return res; }
+ AF4 FsrEasuGF(AF2 p) { AF4 res = textureGather(InputTexture, p, 1); return res; }
+ AF4 FsrEasuBF(AF2 p) { AF4 res = textureGather(InputTexture, p, 2); return res; }
+ #endif
+ #if USE_RCAS
+ #define FSR_RCAS_F
+ AF4 FsrRcasLoadF(ASU2 p) { return texelFetch(InputTexture, ASU2(p), 0); }
+ void FsrRcasInputF(inout AF1 r, inout AF1 g, inout AF1 b) {}
+ #endif
+#else
+ layout (binding=0) uniform sampler2D InputTexture;
+ #if USE_EASU
+ #define FSR_EASU_H 1
+ AH4 FsrEasuRH(AF2 p) { AH4 res = AH4(textureGather(InputTexture, p, 0)); return res; }
+ AH4 FsrEasuGH(AF2 p) { AH4 res = AH4(textureGather(InputTexture, p, 1)); return res; }
+ AH4 FsrEasuBH(AF2 p) { AH4 res = AH4(textureGather(InputTexture, p, 2)); return res; }
+ #endif
+ #if USE_RCAS
+ #define FSR_RCAS_H
+ AH4 FsrRcasLoadH(ASW2 p) { return AH4(texelFetch(InputTexture, ASU2(p), 0)); }
+ void FsrRcasInputH(inout AH1 r,inout AH1 g,inout AH1 b){}
+ #endif
+#endif
+
+#include "ffx_fsr1.h"
+
+#if USE_RCAS
+ layout(location = 0) in vec2 frag_texcoord;
+#endif
+layout (location = 0) out vec4 frag_color;
+
+void CurrFilter(AU2 pos)
+{
+#if USE_EASU
+ #ifndef YUZU_USE_FP16
+ AF3 c;
+ FsrEasuF(c, pos, constants[0], constants[1], constants[2], constants[3]);
+ frag_color = AF4(c, 1.0);
+ #else
+ AH3 c;
+ FsrEasuH(c, pos, constants[0], constants[1], constants[2], constants[3]);
+ frag_color = AH4(c, 1.0);
+ #endif
+#endif
+#if USE_RCAS
+ #ifndef YUZU_USE_FP16
+ AF3 c;
+ FsrRcasF(c.r, c.g, c.b, pos, constants[0]);
+ frag_color = AF4(c, 1.0);
+ #else
+ AH3 c;
+ FsrRcasH(c.r, c.g, c.b, pos, constants[0]);
+ frag_color = AH4(c, 1.0);
+ #endif
+#endif
+}
+
+void main()
+{
+#if USE_RCAS
+ CurrFilter(AU2(frag_texcoord * vec2(textureSize(InputTexture, 0))));
+#else
+ CurrFilter(AU2(gl_FragCoord.xy));
+#endif
+}
diff --git a/src/video_core/host_shaders/opengl_fidelityfx_fsr_easu.frag b/src/video_core/host_shaders/opengl_fidelityfx_fsr_easu.frag
new file mode 100644
index 000000000..d39f80ac1
--- /dev/null
+++ b/src/video_core/host_shaders/opengl_fidelityfx_fsr_easu.frag
@@ -0,0 +1,9 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#version 460 core
+#extension GL_GOOGLE_include_directive : enable
+
+#define USE_EASU 1
+
+#include "opengl_fidelityfx_fsr.frag"
diff --git a/src/video_core/host_shaders/opengl_fidelityfx_fsr_rcas.frag b/src/video_core/host_shaders/opengl_fidelityfx_fsr_rcas.frag
new file mode 100644
index 000000000..cfa78ddc7
--- /dev/null
+++ b/src/video_core/host_shaders/opengl_fidelityfx_fsr_rcas.frag
@@ -0,0 +1,9 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#version 460 core
+#extension GL_GOOGLE_include_directive : enable
+
+#define USE_RCAS 1
+
+#include "opengl_fidelityfx_fsr.frag"
diff --git a/src/video_core/host_shaders/opengl_lmem_warmup.comp b/src/video_core/host_shaders/opengl_lmem_warmup.comp
new file mode 100644
index 000000000..518268477
--- /dev/null
+++ b/src/video_core/host_shaders/opengl_lmem_warmup.comp
@@ -0,0 +1,47 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+// This shader is a workaround for a quirk in NVIDIA OpenGL drivers
+// Shaders using local memory see a great performance benefit if a shader that was dispatched
+// before it had more local memory allocated.
+// This shader allocates the maximum local memory allowed on NVIDIA drivers to ensure that
+// subsequent shaders see the performance boost.
+
+// NOTE: This shader does no actual meaningful work and returns immediately,
+// it is simply a means to have the driver expect a shader using lots of local memory.
+
+#version 450
+
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+
+layout(location = 0) uniform uint uniform_data;
+
+layout(binding = 0, rgba8) uniform writeonly restrict image2DArray dest_image;
+
+#define MAX_LMEM_SIZE 4080 // Size chosen to avoid errors in Nvidia's GLSL compiler
+#define NUM_LMEM_CONSTANTS 1
+#define ARRAY_SIZE MAX_LMEM_SIZE - NUM_LMEM_CONSTANTS
+
+uint lmem_0[ARRAY_SIZE];
+const uvec4 constant_values[NUM_LMEM_CONSTANTS] = uvec4[](uvec4(0));
+
+void main() {
+ const uint global_id = gl_GlobalInvocationID.x;
+ if (global_id <= 128) {
+ // Since the shader is called with a dispatch of 1x1x1
+ // This should always be the case, and this shader will not actually execute
+ return;
+ }
+ for (uint t = 0; t < uniform_data; t++) {
+ const uint offset = (t * uniform_data);
+ lmem_0[offset] = t;
+ }
+ const uint offset = (gl_GlobalInvocationID.y * uniform_data + gl_GlobalInvocationID.x);
+ const uint value = lmem_0[offset];
+ const uint const_value = constant_values[offset / 4][offset % 4];
+ const uvec4 color = uvec4(value + const_value);
+
+ // A "side-effect" is needed so the variables don't get optimized out,
+ // but this should never execute so there should be no clobbering of previously bound state.
+ imageStore(dest_image, ivec3(gl_GlobalInvocationID), color);
+}
diff --git a/src/video_core/host_shaders/opengl_smaa.glsl b/src/video_core/host_shaders/opengl_smaa.glsl
index 3cbe87bbf..419f89bca 100644
--- a/src/video_core/host_shaders/opengl_smaa.glsl
+++ b/src/video_core/host_shaders/opengl_smaa.glsl
@@ -97,7 +97,7 @@
* half-rate linear filtering on GCN.
*
* If SMAA is applied to 64-bit color buffers, switching to point filtering
- * when accesing them will increase the performance. Search for
+ * when accessing them will increase the performance. Search for
* 'SMAASamplePoint' to see which textures may benefit from point
* filtering, and where (which is basically the color input in the edge
* detection and resolve passes).
diff --git a/src/video_core/host_shaders/vulkan_color_clear.frag b/src/video_core/host_shaders/vulkan_color_clear.frag
new file mode 100644
index 000000000..617bf01e1
--- /dev/null
+++ b/src/video_core/host_shaders/vulkan_color_clear.frag
@@ -0,0 +1,14 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#version 460 core
+
+layout (push_constant) uniform PushConstants {
+ vec4 clear_color;
+};
+
+layout(location = 0) out vec4 color;
+
+void main() {
+ color = clear_color;
+}
diff --git a/src/video_core/host_shaders/vulkan_color_clear.vert b/src/video_core/host_shaders/vulkan_color_clear.vert
new file mode 100644
index 000000000..d85883141
--- /dev/null
+++ b/src/video_core/host_shaders/vulkan_color_clear.vert
@@ -0,0 +1,10 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#version 460 core
+
+void main() {
+ float x = float((gl_VertexIndex & 1) << 2);
+ float y = float((gl_VertexIndex & 2) << 1);
+ gl_Position = vec4(x - 1.0, y - 1.0, 0.0, 1.0);
+}
diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cpp
index 82ad0477d..905505ca1 100644
--- a/src/video_core/macro/macro.cpp
+++ b/src/video_core/macro/macro.cpp
@@ -6,7 +6,7 @@
#include <optional>
#include <span>
-#include <boost/container_hash/hash.hpp>
+#include "common/container_hash.h"
#include <fstream>
#include "common/assert.h"
@@ -89,7 +89,7 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) {
if (!mid_method.has_value()) {
cache_info.lle_program = Compile(macro_code->second);
- cache_info.hash = boost::hash_value(macro_code->second);
+ cache_info.hash = Common::HashValue(macro_code->second);
if (Settings::values.dump_macros) {
Dump(cache_info.hash, macro_code->second);
}
@@ -100,7 +100,7 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) {
code.resize(macro_cached.size() - rebased_method);
std::memcpy(code.data(), macro_cached.data() + rebased_method,
code.size() * sizeof(u32));
- cache_info.hash = boost::hash_value(code);
+ cache_info.hash = Common::HashValue(code);
cache_info.lle_program = Compile(code);
if (Settings::values.dump_macros) {
Dump(cache_info.hash, code);
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp
index 3bcae3503..45141e488 100644
--- a/src/video_core/memory_manager.cpp
+++ b/src/video_core/memory_manager.cpp
@@ -6,7 +6,6 @@
#include "common/alignment.h"
#include "common/assert.h"
#include "common/logging/log.h"
-#include "common/settings.h"
#include "core/core.h"
#include "core/device_memory.h"
#include "core/hle/kernel/k_page_table.h"
@@ -23,7 +22,7 @@ std::atomic<size_t> MemoryManager::unique_identifier_generator{};
MemoryManager::MemoryManager(Core::System& system_, u64 address_space_bits_, u64 big_page_bits_,
u64 page_bits_)
- : system{system_}, memory{system.Memory()}, device_memory{system.DeviceMemory()},
+ : system{system_}, memory{system.ApplicationMemory()}, device_memory{system.DeviceMemory()},
address_space_bits{address_space_bits_}, page_bits{page_bits_}, big_page_bits{big_page_bits_},
entries{}, big_entries{}, page_table{address_space_bits, address_space_bits + page_bits - 38,
page_bits != big_page_bits ? page_bits : 0},
@@ -44,13 +43,8 @@ MemoryManager::MemoryManager(Core::System& system_, u64 address_space_bits_, u64
big_entries.resize(big_page_table_size / 32, 0);
big_page_table_cpu.resize(big_page_table_size);
- big_page_continous.resize(big_page_table_size / continous_bits, 0);
+ big_page_continuous.resize(big_page_table_size / continuous_bits, 0);
entries.resize(page_table_size / 32, 0);
- if (!Settings::IsGPULevelExtreme() && Settings::IsFastmemEnabled()) {
- fastmem_arena = system.DeviceMemory().buffer.VirtualBasePointer();
- } else {
- fastmem_arena = nullptr;
- }
}
MemoryManager::~MemoryManager() = default;
@@ -88,20 +82,21 @@ void MemoryManager::SetEntry(size_t position, MemoryManager::EntryType entry) {
}
PTEKind MemoryManager::GetPageKind(GPUVAddr gpu_addr) const {
+ std::unique_lock<std::mutex> lock(guard);
return kind_map.GetValueAt(gpu_addr);
}
-inline bool MemoryManager::IsBigPageContinous(size_t big_page_index) const {
- const u64 entry_mask = big_page_continous[big_page_index / continous_bits];
- const size_t sub_index = big_page_index % continous_bits;
+inline bool MemoryManager::IsBigPageContinuous(size_t big_page_index) const {
+ const u64 entry_mask = big_page_continuous[big_page_index / continuous_bits];
+ const size_t sub_index = big_page_index % continuous_bits;
return ((entry_mask >> sub_index) & 0x1ULL) != 0;
}
-inline void MemoryManager::SetBigPageContinous(size_t big_page_index, bool value) {
- const u64 continous_mask = big_page_continous[big_page_index / continous_bits];
- const size_t sub_index = big_page_index % continous_bits;
- big_page_continous[big_page_index / continous_bits] =
- (~(1ULL << sub_index) & continous_mask) | (value ? 1ULL << sub_index : 0);
+inline void MemoryManager::SetBigPageContinuous(size_t big_page_index, bool value) {
+ const u64 continuous_mask = big_page_continuous[big_page_index / continuous_bits];
+ const size_t sub_index = big_page_index % continuous_bits;
+ big_page_continuous[big_page_index / continuous_bits] =
+ (~(1ULL << sub_index) & continuous_mask) | (value ? 1ULL << sub_index : 0);
}
template <MemoryManager::EntryType entry_type>
@@ -116,7 +111,7 @@ GPUVAddr MemoryManager::PageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr cp
[[maybe_unused]] const auto current_entry_type = GetEntry<false>(current_gpu_addr);
SetEntry<false>(current_gpu_addr, entry_type);
if (current_entry_type != entry_type) {
- rasterizer->ModifyGPUMemory(unique_identifier, gpu_addr, page_size);
+ rasterizer->ModifyGPUMemory(unique_identifier, current_gpu_addr, page_size);
}
if constexpr (entry_type == EntryType::Mapped) {
const VAddr current_cpu_addr = cpu_addr + offset;
@@ -139,14 +134,14 @@ GPUVAddr MemoryManager::BigPageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr
[[maybe_unused]] const auto current_entry_type = GetEntry<true>(current_gpu_addr);
SetEntry<true>(current_gpu_addr, entry_type);
if (current_entry_type != entry_type) {
- rasterizer->ModifyGPUMemory(unique_identifier, gpu_addr, big_page_size);
+ rasterizer->ModifyGPUMemory(unique_identifier, current_gpu_addr, big_page_size);
}
if constexpr (entry_type == EntryType::Mapped) {
const VAddr current_cpu_addr = cpu_addr + offset;
const auto index = PageEntryIndex<true>(current_gpu_addr);
const u32 sub_value = static_cast<u32>(current_cpu_addr >> cpu_page_bits);
big_page_table_cpu[index] = sub_value;
- const bool is_continous = ([&] {
+ const bool is_continuous = ([&] {
uintptr_t base_ptr{
reinterpret_cast<uintptr_t>(memory.GetPointerSilent(current_cpu_addr))};
if (base_ptr == 0) {
@@ -162,11 +157,14 @@ GPUVAddr MemoryManager::BigPageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr
}
return true;
})();
- SetBigPageContinous(index, is_continous);
+ SetBigPageContinuous(index, is_continuous);
}
remaining_size -= big_page_size;
}
- kind_map.Map(gpu_addr, gpu_addr + size, kind);
+ {
+ std::unique_lock<std::mutex> lock(guard);
+ kind_map.Map(gpu_addr, gpu_addr + size, kind);
+ }
return gpu_addr;
}
@@ -360,7 +358,7 @@ inline void MemoryManager::MemoryOperation(GPUVAddr gpu_src_addr, std::size_t si
}
}
-template <bool is_safe, bool use_fastmem>
+template <bool is_safe>
void MemoryManager::ReadBlockImpl(GPUVAddr gpu_src_addr, void* dest_buffer, std::size_t size,
[[maybe_unused]] VideoCommon::CacheType which) const {
auto set_to_zero = [&]([[maybe_unused]] std::size_t page_index,
@@ -374,12 +372,8 @@ void MemoryManager::ReadBlockImpl(GPUVAddr gpu_src_addr, void* dest_buffer, std:
if constexpr (is_safe) {
rasterizer->FlushRegion(cpu_addr_base, copy_amount, which);
}
- if constexpr (use_fastmem) {
- std::memcpy(dest_buffer, &fastmem_arena[cpu_addr_base], copy_amount);
- } else {
- u8* physical = memory.GetPointer(cpu_addr_base);
- std::memcpy(dest_buffer, physical, copy_amount);
- }
+ u8* physical = memory.GetPointer(cpu_addr_base);
+ std::memcpy(dest_buffer, physical, copy_amount);
dest_buffer = static_cast<u8*>(dest_buffer) + copy_amount;
};
auto mapped_big = [&](std::size_t page_index, std::size_t offset, std::size_t copy_amount) {
@@ -388,15 +382,11 @@ void MemoryManager::ReadBlockImpl(GPUVAddr gpu_src_addr, void* dest_buffer, std:
if constexpr (is_safe) {
rasterizer->FlushRegion(cpu_addr_base, copy_amount, which);
}
- if constexpr (use_fastmem) {
- std::memcpy(dest_buffer, &fastmem_arena[cpu_addr_base], copy_amount);
+ if (!IsBigPageContinuous(page_index)) [[unlikely]] {
+ memory.ReadBlockUnsafe(cpu_addr_base, dest_buffer, copy_amount);
} else {
- if (!IsBigPageContinous(page_index)) [[unlikely]] {
- memory.ReadBlockUnsafe(cpu_addr_base, dest_buffer, copy_amount);
- } else {
- u8* physical = memory.GetPointer(cpu_addr_base);
- std::memcpy(dest_buffer, physical, copy_amount);
- }
+ u8* physical = memory.GetPointer(cpu_addr_base);
+ std::memcpy(dest_buffer, physical, copy_amount);
}
dest_buffer = static_cast<u8*>(dest_buffer) + copy_amount;
};
@@ -410,20 +400,12 @@ void MemoryManager::ReadBlockImpl(GPUVAddr gpu_src_addr, void* dest_buffer, std:
void MemoryManager::ReadBlock(GPUVAddr gpu_src_addr, void* dest_buffer, std::size_t size,
VideoCommon::CacheType which) const {
- if (fastmem_arena) [[likely]] {
- ReadBlockImpl<true, true>(gpu_src_addr, dest_buffer, size, which);
- return;
- }
- ReadBlockImpl<true, false>(gpu_src_addr, dest_buffer, size, which);
+ ReadBlockImpl<true>(gpu_src_addr, dest_buffer, size, which);
}
void MemoryManager::ReadBlockUnsafe(GPUVAddr gpu_src_addr, void* dest_buffer,
const std::size_t size) const {
- if (fastmem_arena) [[likely]] {
- ReadBlockImpl<false, true>(gpu_src_addr, dest_buffer, size, VideoCommon::CacheType::None);
- return;
- }
- ReadBlockImpl<false, false>(gpu_src_addr, dest_buffer, size, VideoCommon::CacheType::None);
+ ReadBlockImpl<false>(gpu_src_addr, dest_buffer, size, VideoCommon::CacheType::None);
}
template <bool is_safe>
@@ -449,7 +431,7 @@ void MemoryManager::WriteBlockImpl(GPUVAddr gpu_dest_addr, const void* src_buffe
if constexpr (is_safe) {
rasterizer->InvalidateRegion(cpu_addr_base, copy_amount, which);
}
- if (!IsBigPageContinous(page_index)) [[unlikely]] {
+ if (!IsBigPageContinuous(page_index)) [[unlikely]] {
memory.WriteBlockUnsafe(cpu_addr_base, src_buffer, copy_amount);
} else {
u8* physical = memory.GetPointer(cpu_addr_base);
@@ -534,7 +516,7 @@ bool MemoryManager::IsMemoryDirty(GPUVAddr gpu_addr, size_t size,
return result;
}
-size_t MemoryManager::MaxContinousRange(GPUVAddr gpu_addr, size_t size) const {
+size_t MemoryManager::MaxContinuousRange(GPUVAddr gpu_addr, size_t size) const {
std::optional<VAddr> old_page_addr{};
size_t range_so_far = 0;
bool result{false};
@@ -575,7 +557,8 @@ size_t MemoryManager::MaxContinousRange(GPUVAddr gpu_addr, size_t size) const {
}
size_t MemoryManager::GetMemoryLayoutSize(GPUVAddr gpu_addr, size_t max_size) const {
- return kind_map.GetContinousSizeFrom(gpu_addr);
+ std::unique_lock<std::mutex> lock(guard);
+ return kind_map.GetContinuousSizeFrom(gpu_addr);
}
void MemoryManager::InvalidateRegion(GPUVAddr gpu_addr, size_t size,
@@ -604,7 +587,7 @@ void MemoryManager::InvalidateRegion(GPUVAddr gpu_addr, size_t size,
void MemoryManager::CopyBlock(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr, std::size_t size,
VideoCommon::CacheType which) {
- std::vector<u8> tmp_buffer(size);
+ tmp_buffer.resize_destructive(size);
ReadBlock(gpu_src_addr, tmp_buffer.data(), size, which);
// The output block must be flushed in case it has data modified from the GPU.
@@ -616,7 +599,7 @@ void MemoryManager::CopyBlock(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr, std
bool MemoryManager::IsGranularRange(GPUVAddr gpu_addr, std::size_t size) const {
if (GetEntry<true>(gpu_addr) == EntryType::Mapped) [[likely]] {
size_t page_index = gpu_addr >> big_page_bits;
- if (IsBigPageContinous(page_index)) [[likely]] {
+ if (IsBigPageContinuous(page_index)) [[likely]] {
const std::size_t page{(page_index & big_page_mask) + size};
return page <= big_page_size;
}
@@ -630,7 +613,7 @@ bool MemoryManager::IsGranularRange(GPUVAddr gpu_addr, std::size_t size) const {
return page <= Core::Memory::YUZU_PAGESIZE;
}
-bool MemoryManager::IsContinousRange(GPUVAddr gpu_addr, std::size_t size) const {
+bool MemoryManager::IsContinuousRange(GPUVAddr gpu_addr, std::size_t size) const {
std::optional<VAddr> old_page_addr{};
bool result{true};
auto fail = [&]([[maybe_unused]] std::size_t page_index, [[maybe_unused]] std::size_t offset,
@@ -687,9 +670,9 @@ bool MemoryManager::IsFullyMappedRange(GPUVAddr gpu_addr, std::size_t size) cons
return result;
}
-std::vector<std::pair<GPUVAddr, std::size_t>> MemoryManager::GetSubmappedRange(
- GPUVAddr gpu_addr, std::size_t size) const {
- std::vector<std::pair<GPUVAddr, std::size_t>> result{};
+boost::container::small_vector<std::pair<GPUVAddr, std::size_t>, 32>
+MemoryManager::GetSubmappedRange(GPUVAddr gpu_addr, std::size_t size) const {
+ boost::container::small_vector<std::pair<GPUVAddr, std::size_t>, 32> result{};
GetSubmappedRangeImpl<true>(gpu_addr, size, result);
return result;
}
@@ -697,8 +680,9 @@ std::vector<std::pair<GPUVAddr, std::size_t>> MemoryManager::GetSubmappedRange(
template <bool is_gpu_address>
void MemoryManager::GetSubmappedRangeImpl(
GPUVAddr gpu_addr, std::size_t size,
- std::vector<std::pair<std::conditional_t<is_gpu_address, GPUVAddr, VAddr>, std::size_t>>&
- result) const {
+ boost::container::small_vector<
+ std::pair<std::conditional_t<is_gpu_address, GPUVAddr, VAddr>, std::size_t>, 32>& result)
+ const {
std::optional<std::pair<std::conditional_t<is_gpu_address, GPUVAddr, VAddr>, std::size_t>>
last_segment{};
std::optional<VAddr> old_page_addr{};
@@ -767,10 +751,10 @@ void MemoryManager::FlushCaching() {
return;
}
accumulator->Callback([this](GPUVAddr addr, size_t size) {
- GetSubmappedRangeImpl<false>(addr, size, page_stash);
+ GetSubmappedRangeImpl<false>(addr, size, page_stash2);
});
- rasterizer->InnerInvalidation(page_stash);
- page_stash.clear();
+ rasterizer->InnerInvalidation(page_stash2);
+ page_stash2.clear();
accumulator->Clear();
}
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h
index 2936364f0..4202c26ff 100644
--- a/src/video_core/memory_manager.h
+++ b/src/video_core/memory_manager.h
@@ -5,12 +5,15 @@
#include <atomic>
#include <map>
+#include <mutex>
#include <optional>
#include <vector>
+#include <boost/container/small_vector.hpp>
#include "common/common_types.h"
#include "common/multi_level_page_table.h"
#include "common/range_map.h"
+#include "common/scratch_buffer.h"
#include "common/virtual_buffer.h"
#include "video_core/cache_types.h"
#include "video_core/pte_kind.h"
@@ -94,7 +97,7 @@ public:
/**
* Checks if a gpu region is mapped by a single range of cpu addresses.
*/
- [[nodiscard]] bool IsContinousRange(GPUVAddr gpu_addr, std::size_t size) const;
+ [[nodiscard]] bool IsContinuousRange(GPUVAddr gpu_addr, std::size_t size) const;
/**
* Checks if a gpu region is mapped entirely.
@@ -103,11 +106,11 @@ public:
/**
* Returns a vector with all the subranges of cpu addresses mapped beneath.
- * if the region is continous, a single pair will be returned. If it's unmapped, an empty vector
- * will be returned;
+ * if the region is continuous, a single pair will be returned. If it's unmapped, an empty
+ * vector will be returned;
*/
- std::vector<std::pair<GPUVAddr, std::size_t>> GetSubmappedRange(GPUVAddr gpu_addr,
- std::size_t size) const;
+ boost::container::small_vector<std::pair<GPUVAddr, std::size_t>, 32> GetSubmappedRange(
+ GPUVAddr gpu_addr, std::size_t size) const;
GPUVAddr Map(GPUVAddr gpu_addr, VAddr cpu_addr, std::size_t size,
PTEKind kind = PTEKind::INVALID, bool is_big_pages = true);
@@ -123,7 +126,7 @@ public:
bool IsMemoryDirty(GPUVAddr gpu_addr, size_t size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) const;
- size_t MaxContinousRange(GPUVAddr gpu_addr, size_t size) const;
+ size_t MaxContinuousRange(GPUVAddr gpu_addr, size_t size) const;
bool IsWithinGPUAddressRange(GPUVAddr gpu_addr) const {
return gpu_addr < address_space_size;
@@ -141,7 +144,7 @@ private:
inline void MemoryOperation(GPUVAddr gpu_src_addr, std::size_t size, FuncMapped&& func_mapped,
FuncReserved&& func_reserved, FuncUnmapped&& func_unmapped) const;
- template <bool is_safe, bool use_fastmem>
+ template <bool is_safe>
void ReadBlockImpl(GPUVAddr gpu_src_addr, void* dest_buffer, std::size_t size,
VideoCommon::CacheType which) const;
@@ -158,13 +161,14 @@ private:
}
}
- inline bool IsBigPageContinous(size_t big_page_index) const;
- inline void SetBigPageContinous(size_t big_page_index, bool value);
+ inline bool IsBigPageContinuous(size_t big_page_index) const;
+ inline void SetBigPageContinuous(size_t big_page_index, bool value);
template <bool is_gpu_address>
void GetSubmappedRangeImpl(
GPUVAddr gpu_addr, std::size_t size,
- std::vector<std::pair<std::conditional_t<is_gpu_address, GPUVAddr, VAddr>, std::size_t>>&
+ boost::container::small_vector<
+ std::pair<std::conditional_t<is_gpu_address, GPUVAddr, VAddr>, std::size_t>, 32>&
result) const;
Core::System& system;
@@ -213,16 +217,20 @@ private:
Common::RangeMap<GPUVAddr, PTEKind> kind_map;
Common::VirtualBuffer<u32> big_page_table_cpu;
- std::vector<u64> big_page_continous;
- std::vector<std::pair<VAddr, std::size_t>> page_stash{};
- u8* fastmem_arena{};
+ std::vector<u64> big_page_continuous;
+ boost::container::small_vector<std::pair<VAddr, std::size_t>, 32> page_stash{};
+ boost::container::small_vector<std::pair<VAddr, std::size_t>, 32> page_stash2{};
+
+ mutable std::mutex guard;
- constexpr static size_t continous_bits = 64;
+ static constexpr size_t continuous_bits = 64;
const size_t unique_identifier;
std::unique_ptr<VideoCommon::InvalidationAccumulator> accumulator;
static std::atomic<size_t> unique_identifier_generator;
+
+ Common::ScratchBuffer<u8> tmp_buffer;
};
} // namespace Tegra
diff --git a/src/video_core/query_cache.h b/src/video_core/query_cache.h
index 00ce53e3e..1528cc1dd 100644
--- a/src/video_core/query_cache.h
+++ b/src/video_core/query_cache.h
@@ -6,6 +6,7 @@
#include <algorithm>
#include <array>
#include <cstring>
+#include <functional>
#include <iterator>
#include <list>
#include <memory>
@@ -17,13 +18,19 @@
#include "common/assert.h"
#include "common/settings.h"
+#include "core/memory.h"
#include "video_core/control/channel_state_cache.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/memory_manager.h"
#include "video_core/rasterizer_interface.h"
+#include "video_core/texture_cache/slot_vector.h"
namespace VideoCommon {
+using AsyncJobId = SlotId;
+
+static constexpr AsyncJobId NULL_ASYNC_JOB_ID{0};
+
template <class QueryCache, class HostCounter>
class CounterStreamBase {
public:
@@ -93,9 +100,13 @@ private:
template <class QueryCache, class CachedQuery, class CounterStream, class HostCounter>
class QueryCacheBase : public VideoCommon::ChannelSetupCaches<VideoCommon::ChannelInfo> {
public:
- explicit QueryCacheBase(VideoCore::RasterizerInterface& rasterizer_)
- : rasterizer{rasterizer_}, streams{{CounterStream{static_cast<QueryCache&>(*this),
- VideoCore::QueryType::SamplesPassed}}} {}
+ explicit QueryCacheBase(VideoCore::RasterizerInterface& rasterizer_,
+ Core::Memory::Memory& cpu_memory_)
+ : rasterizer{rasterizer_},
+ cpu_memory{cpu_memory_}, streams{{CounterStream{static_cast<QueryCache&>(*this),
+ VideoCore::QueryType::SamplesPassed}}} {
+ (void)slot_async_jobs.insert(); // Null value
+ }
void InvalidateRegion(VAddr addr, std::size_t size) {
std::unique_lock lock{mutex};
@@ -126,10 +137,15 @@ public:
query = Register(type, *cpu_addr, host_ptr, timestamp.has_value());
}
- query->BindCounter(Stream(type).Current(), timestamp);
- if (Settings::values.use_asynchronous_gpu_emulation.GetValue()) {
- AsyncFlushQuery(*cpu_addr);
+ auto result = query->BindCounter(Stream(type).Current(), timestamp);
+ if (result) {
+ auto async_job_id = query->GetAsyncJob();
+ auto& async_job = slot_async_jobs[async_job_id];
+ async_job.collected = true;
+ async_job.value = *result;
+ query->SetAsyncJob(NULL_ASYNC_JOB_ID);
}
+ AsyncFlushQuery(query, timestamp, lock);
}
/// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch.
@@ -173,15 +189,18 @@ public:
}
void CommitAsyncFlushes() {
+ std::unique_lock lock{mutex};
committed_flushes.push_back(uncommitted_flushes);
uncommitted_flushes.reset();
}
bool HasUncommittedFlushes() const {
+ std::unique_lock lock{mutex};
return uncommitted_flushes != nullptr;
}
bool ShouldWaitAsyncFlushes() const {
+ std::unique_lock lock{mutex};
if (committed_flushes.empty()) {
return false;
}
@@ -189,6 +208,7 @@ public:
}
void PopAsyncFlushes() {
+ std::unique_lock lock{mutex};
if (committed_flushes.empty()) {
return;
}
@@ -197,15 +217,25 @@ public:
committed_flushes.pop_front();
return;
}
- for (VAddr query_address : *flush_list) {
- FlushAndRemoveRegion(query_address, 4);
+ for (AsyncJobId async_job_id : *flush_list) {
+ AsyncJob& async_job = slot_async_jobs[async_job_id];
+ if (!async_job.collected) {
+ FlushAndRemoveRegion(async_job.query_location, 2, true);
+ }
}
committed_flushes.pop_front();
}
private:
+ struct AsyncJob {
+ bool collected = false;
+ u64 value = 0;
+ VAddr query_location = 0;
+ std::optional<u64> timestamp{};
+ };
+
/// Flushes a memory range to guest memory and removes it from the cache.
- void FlushAndRemoveRegion(VAddr addr, std::size_t size) {
+ void FlushAndRemoveRegion(VAddr addr, std::size_t size, bool async = false) {
const u64 addr_begin = addr;
const u64 addr_end = addr_begin + size;
const auto in_range = [addr_begin, addr_end](const CachedQuery& query) {
@@ -225,8 +255,16 @@ private:
if (!in_range(query)) {
continue;
}
- rasterizer.UpdatePagesCachedCount(query.GetCpuAddr(), query.SizeInBytes(), -1);
- query.Flush();
+ AsyncJobId async_job_id = query.GetAsyncJob();
+ auto flush_result = query.Flush(async);
+ if (async_job_id == NULL_ASYNC_JOB_ID) {
+ ASSERT_MSG(false, "This should not be reachable at all");
+ continue;
+ }
+ AsyncJob& async_job = slot_async_jobs[async_job_id];
+ async_job.collected = true;
+ async_job.value = flush_result;
+ query.SetAsyncJob(NULL_ASYNC_JOB_ID);
}
std::erase_if(contents, in_range);
}
@@ -234,7 +272,6 @@ private:
/// Registers the passed parameters as cached and returns a pointer to the stored cached query.
CachedQuery* Register(VideoCore::QueryType type, VAddr cpu_addr, u8* host_ptr, bool timestamp) {
- rasterizer.UpdatePagesCachedCount(cpu_addr, CachedQuery::SizeInBytes(timestamp), 1);
const u64 page = static_cast<u64>(cpu_addr) >> YUZU_PAGEBITS;
return &cached_queries[page].emplace_back(static_cast<QueryCache&>(*this), type, cpu_addr,
host_ptr);
@@ -253,26 +290,60 @@ private:
return found != std::end(contents) ? &*found : nullptr;
}
- void AsyncFlushQuery(VAddr addr) {
- if (!uncommitted_flushes) {
- uncommitted_flushes = std::make_shared<std::vector<VAddr>>();
+ void AsyncFlushQuery(CachedQuery* query, std::optional<u64> timestamp,
+ std::unique_lock<std::recursive_mutex>& lock) {
+ const AsyncJobId new_async_job_id = slot_async_jobs.insert();
+ {
+ AsyncJob& async_job = slot_async_jobs[new_async_job_id];
+ query->SetAsyncJob(new_async_job_id);
+ async_job.query_location = query->GetCpuAddr();
+ async_job.collected = false;
+
+ if (!uncommitted_flushes) {
+ uncommitted_flushes = std::make_shared<std::vector<AsyncJobId>>();
+ }
+ uncommitted_flushes->push_back(new_async_job_id);
}
- uncommitted_flushes->push_back(addr);
+ lock.unlock();
+ std::function<void()> operation([this, new_async_job_id, timestamp] {
+ std::unique_lock local_lock{mutex};
+ AsyncJob& async_job = slot_async_jobs[new_async_job_id];
+ u64 value = async_job.value;
+ VAddr address = async_job.query_location;
+ slot_async_jobs.erase(new_async_job_id);
+ local_lock.unlock();
+ if (timestamp) {
+ u64 timestamp_value = *timestamp;
+ cpu_memory.WriteBlockUnsafe(address + sizeof(u64), &timestamp_value, sizeof(u64));
+ cpu_memory.WriteBlockUnsafe(address, &value, sizeof(u64));
+ rasterizer.InvalidateRegion(address, sizeof(u64) * 2,
+ VideoCommon::CacheType::NoQueryCache);
+ } else {
+ u32 small_value = static_cast<u32>(value);
+ cpu_memory.WriteBlockUnsafe(address, &small_value, sizeof(u32));
+ rasterizer.InvalidateRegion(address, sizeof(u32),
+ VideoCommon::CacheType::NoQueryCache);
+ }
+ });
+ rasterizer.SyncOperation(std::move(operation));
}
static constexpr std::uintptr_t YUZU_PAGESIZE = 4096;
static constexpr unsigned YUZU_PAGEBITS = 12;
+ SlotVector<AsyncJob> slot_async_jobs;
+
VideoCore::RasterizerInterface& rasterizer;
+ Core::Memory::Memory& cpu_memory;
- std::recursive_mutex mutex;
+ mutable std::recursive_mutex mutex;
std::unordered_map<u64, std::vector<CachedQuery>> cached_queries;
std::array<CounterStream, VideoCore::NumQueryTypes> streams;
- std::shared_ptr<std::vector<VAddr>> uncommitted_flushes{};
- std::list<std::shared_ptr<std::vector<VAddr>>> committed_flushes;
+ std::shared_ptr<std::vector<AsyncJobId>> uncommitted_flushes{};
+ std::list<std::shared_ptr<std::vector<AsyncJobId>>> committed_flushes;
};
template <class QueryCache, class HostCounter>
@@ -291,12 +362,12 @@ public:
virtual ~HostCounterBase() = default;
/// Returns the current value of the query.
- u64 Query() {
+ u64 Query(bool async = false) {
if (result) {
return *result;
}
- u64 value = BlockingQuery() + base_result;
+ u64 value = BlockingQuery(async) + base_result;
if (dependency) {
value += dependency->Query();
dependency = nullptr;
@@ -317,7 +388,7 @@ public:
protected:
/// Returns the value of query from the backend API blocking as needed.
- virtual u64 BlockingQuery() const = 0;
+ virtual u64 BlockingQuery(bool async = false) const = 0;
private:
std::shared_ptr<HostCounter> dependency; ///< Counter to add to this value.
@@ -340,26 +411,33 @@ public:
CachedQueryBase& operator=(const CachedQueryBase&) = delete;
/// Flushes the query to guest memory.
- virtual void Flush() {
- // When counter is nullptr it means that it's just been reseted. We are supposed to write a
+ virtual u64 Flush(bool async = false) {
+ // When counter is nullptr it means that it's just been reset. We are supposed to write a
// zero in these cases.
- const u64 value = counter ? counter->Query() : 0;
+ const u64 value = counter ? counter->Query(async) : 0;
+ if (async) {
+ return value;
+ }
std::memcpy(host_ptr, &value, sizeof(u64));
if (timestamp) {
std::memcpy(host_ptr + TIMESTAMP_OFFSET, &*timestamp, sizeof(u64));
}
+ return value;
}
/// Binds a counter to this query.
- void BindCounter(std::shared_ptr<HostCounter> counter_, std::optional<u64> timestamp_) {
+ std::optional<u64> BindCounter(std::shared_ptr<HostCounter> counter_,
+ std::optional<u64> timestamp_) {
+ std::optional<u64> result{};
if (counter) {
// If there's an old counter set it means the query is being rewritten by the game.
// To avoid losing the data forever, flush here.
- Flush();
+ result = std::make_optional(Flush());
}
counter = std::move(counter_);
timestamp = timestamp_;
+ return result;
}
VAddr GetCpuAddr() const noexcept {
@@ -374,6 +452,14 @@ public:
return with_timestamp ? LARGE_QUERY_SIZE : SMALL_QUERY_SIZE;
}
+ void SetAsyncJob(AsyncJobId assigned_async_job_) {
+ assigned_async_job = assigned_async_job_;
+ }
+
+ AsyncJobId GetAsyncJob() const {
+ return assigned_async_job;
+ }
+
protected:
/// Returns true when querying the counter may potentially block.
bool WaitPending() const noexcept {
@@ -389,6 +475,7 @@ private:
u8* host_ptr; ///< Writable host pointer.
std::shared_ptr<HostCounter> counter; ///< Host counter to query, owns the dependency tree.
std::optional<u64> timestamp; ///< Timestamp to flush to guest memory.
+ AsyncJobId assigned_async_job;
};
} // namespace VideoCommon
diff --git a/src/video_core/rasterizer_download_area.h b/src/video_core/rasterizer_download_area.h
new file mode 100644
index 000000000..2d7425c79
--- /dev/null
+++ b/src/video_core/rasterizer_download_area.h
@@ -0,0 +1,16 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include "common/common_types.h"
+
+namespace VideoCore {
+
+struct RasterizerDownloadArea {
+ VAddr start_address;
+ VAddr end_address;
+ bool preemtive;
+};
+
+} // namespace VideoCore \ No newline at end of file
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index 33e2610bc..7566a8c4e 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -12,6 +12,7 @@
#include "video_core/cache_types.h"
#include "video_core/engines/fermi_2d.h"
#include "video_core/gpu.h"
+#include "video_core/rasterizer_download_area.h"
namespace Tegra {
class MemoryManager;
@@ -95,6 +96,8 @@ public:
virtual bool MustFlushRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) = 0;
+ virtual RasterizerDownloadArea GetFlushArea(VAddr addr, u64 size) = 0;
+
/// Notify rasterizer that any caches of the specified region should be invalidated
virtual void InvalidateRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) = 0;
diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cpp
index e8761a747..2d3f58201 100644
--- a/src/video_core/renderer_base.cpp
+++ b/src/video_core/renderer_base.cpp
@@ -5,6 +5,7 @@
#include "common/logging/log.h"
#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
#include "video_core/renderer_base.h"
namespace VideoCore {
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h
index 8d20cbece..3e12a8813 100644
--- a/src/video_core/renderer_base.h
+++ b/src/video_core/renderer_base.h
@@ -9,7 +9,7 @@
#include "common/common_funcs.h"
#include "common/common_types.h"
-#include "core/frontend/emu_window.h"
+#include "core/frontend/framebuffer_layout.h"
#include "video_core/gpu.h"
#include "video_core/rasterizer_interface.h"
@@ -89,6 +89,9 @@ public:
void RequestScreenshot(void* data, std::function<void(bool)> callback,
const Layout::FramebufferLayout& layout);
+ /// This is called to notify the rendering backend of a surface change
+ virtual void NotifySurfaceChanged() {}
+
protected:
Core::Frontend::EmuWindow& render_window; ///< Reference to the render window handle.
std::unique_ptr<Core::Frontend::GraphicsContext> context;
diff --git a/src/video_core/renderer_null/null_rasterizer.cpp b/src/video_core/renderer_null/null_rasterizer.cpp
index 2b5c7defa..bf2ce4c49 100644
--- a/src/video_core/renderer_null/null_rasterizer.cpp
+++ b/src/video_core/renderer_null/null_rasterizer.cpp
@@ -1,6 +1,8 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "common/alignment.h"
+#include "core/memory.h"
#include "video_core/host1x/host1x.h"
#include "video_core/memory_manager.h"
#include "video_core/renderer_null/null_rasterizer.h"
@@ -46,6 +48,14 @@ bool RasterizerNull::MustFlushRegion(VAddr addr, u64 size, VideoCommon::CacheTyp
}
void RasterizerNull::InvalidateRegion(VAddr addr, u64 size, VideoCommon::CacheType) {}
void RasterizerNull::OnCPUWrite(VAddr addr, u64 size) {}
+VideoCore::RasterizerDownloadArea RasterizerNull::GetFlushArea(VAddr addr, u64 size) {
+ VideoCore::RasterizerDownloadArea new_area{
+ .start_address = Common::AlignDown(addr, Core::Memory::YUZU_PAGESIZE),
+ .end_address = Common::AlignUp(addr + size, Core::Memory::YUZU_PAGESIZE),
+ .preemtive = true,
+ };
+ return new_area;
+}
void RasterizerNull::InvalidateGPUCache() {}
void RasterizerNull::UnmapMemory(VAddr addr, u64 size) {}
void RasterizerNull::ModifyGPUMemory(size_t as_id, GPUVAddr addr, u64 size) {}
diff --git a/src/video_core/renderer_null/null_rasterizer.h b/src/video_core/renderer_null/null_rasterizer.h
index 51f896e43..a8d35d2c1 100644
--- a/src/video_core/renderer_null/null_rasterizer.h
+++ b/src/video_core/renderer_null/null_rasterizer.h
@@ -22,6 +22,14 @@ public:
explicit AccelerateDMA();
bool BufferCopy(GPUVAddr start_address, GPUVAddr end_address, u64 amount) override;
bool BufferClear(GPUVAddr src_address, u64 amount, u32 value) override;
+ bool ImageToBuffer(const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::ImageOperand& src,
+ const Tegra::DMA::BufferOperand& dst) override {
+ return false;
+ }
+ bool BufferToImage(const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::BufferOperand& src,
+ const Tegra::DMA::ImageOperand& dst) override {
+ return false;
+ }
};
class RasterizerNull final : public VideoCore::RasterizerAccelerated,
@@ -46,6 +54,7 @@ public:
void InvalidateRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) override;
void OnCPUWrite(VAddr addr, u64 size) override;
+ VideoCore::RasterizerDownloadArea GetFlushArea(VAddr addr, u64 size) override;
void InvalidateGPUCache() override;
void UnmapMemory(VAddr addr, u64 size) override;
void ModifyGPUMemory(size_t as_id, GPUVAddr addr, u64 size) override;
diff --git a/src/video_core/renderer_null/renderer_null.cpp b/src/video_core/renderer_null/renderer_null.cpp
index e2a189b63..be92cc2f4 100644
--- a/src/video_core/renderer_null/renderer_null.cpp
+++ b/src/video_core/renderer_null/renderer_null.cpp
@@ -1,6 +1,8 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
#include "video_core/renderer_null/renderer_null.h"
namespace Null {
diff --git a/src/video_core/renderer_opengl/blit_image.cpp b/src/video_core/renderer_opengl/blit_image.cpp
index 9a560a73b..3b03e8d5a 100644
--- a/src/video_core/renderer_opengl/blit_image.cpp
+++ b/src/video_core/renderer_opengl/blit_image.cpp
@@ -22,7 +22,7 @@ BlitImageHelper::~BlitImageHelper() = default;
void BlitImageHelper::BlitColor(GLuint dst_framebuffer, GLuint src_image_view, GLuint src_sampler,
const Region2D& dst_region, const Region2D& src_region,
const Extent3D& src_size) {
- glEnable(GL_CULL_FACE);
+ glDisable(GL_CULL_FACE);
glDisable(GL_COLOR_LOGIC_OP);
glDisable(GL_DEPTH_TEST);
glDisable(GL_STENCIL_TEST);
@@ -31,7 +31,6 @@ void BlitImageHelper::BlitColor(GLuint dst_framebuffer, GLuint src_image_view, G
glDisable(GL_ALPHA_TEST);
glDisablei(GL_BLEND, 0);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
- glCullFace(GL_BACK);
glFrontFace(GL_CW);
glColorMaski(0, GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glDepthRangeIndexed(0, 0.0, 0.0);
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.cpp b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
index 6af4ae793..38d553d3c 100644
--- a/src/video_core/renderer_opengl/gl_buffer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
@@ -106,8 +106,10 @@ GLuint Buffer::View(u32 offset, u32 size, PixelFormat format) {
return views.back().texture.handle;
}
-BufferCacheRuntime::BufferCacheRuntime(const Device& device_)
- : device{device_}, has_fast_buffer_sub_data{device.HasFastBufferSubData()},
+BufferCacheRuntime::BufferCacheRuntime(const Device& device_,
+ StagingBufferPool& staging_buffer_pool_)
+ : device{device_}, staging_buffer_pool{staging_buffer_pool_},
+ has_fast_buffer_sub_data{device.HasFastBufferSubData()},
use_assembly_shaders{device.UseAssemblyShaders()},
has_unified_vertex_buffers{device.HasVertexBufferUnifiedMemory()},
stream_buffer{has_fast_buffer_sub_data ? std::nullopt : std::make_optional<StreamBuffer>()} {
@@ -117,7 +119,7 @@ BufferCacheRuntime::BufferCacheRuntime(const Device& device_)
for (auto& stage_uniforms : fast_uniforms) {
for (OGLBuffer& buffer : stage_uniforms) {
buffer.Create();
- glNamedBufferData(buffer.handle, BufferCache::DEFAULT_SKIP_CACHE_SIZE, nullptr,
+ glNamedBufferData(buffer.handle, VideoCommon::DEFAULT_SKIP_CACHE_SIZE, nullptr,
GL_STREAM_DRAW);
}
}
@@ -140,6 +142,14 @@ BufferCacheRuntime::BufferCacheRuntime(const Device& device_)
}();
}
+StagingBufferMap BufferCacheRuntime::UploadStagingBuffer(size_t size) {
+ return staging_buffer_pool.RequestUploadBuffer(size);
+}
+
+StagingBufferMap BufferCacheRuntime::DownloadStagingBuffer(size_t size) {
+ return staging_buffer_pool.RequestDownloadBuffer(size);
+}
+
u64 BufferCacheRuntime::GetDeviceMemoryUsage() const {
if (device.CanReportMemoryUsage()) {
return device_access_memory - device.GetCurrentDedicatedVideoMemory();
@@ -147,13 +157,47 @@ u64 BufferCacheRuntime::GetDeviceMemoryUsage() const {
return 2_GiB;
}
-void BufferCacheRuntime::CopyBuffer(Buffer& dst_buffer, Buffer& src_buffer,
- std::span<const VideoCommon::BufferCopy> copies) {
+void BufferCacheRuntime::CopyBuffer(GLuint dst_buffer, GLuint src_buffer,
+ std::span<const VideoCommon::BufferCopy> copies, bool barrier) {
+ if (barrier) {
+ PreCopyBarrier();
+ }
for (const VideoCommon::BufferCopy& copy : copies) {
- glCopyNamedBufferSubData(
- src_buffer.Handle(), dst_buffer.Handle(), static_cast<GLintptr>(copy.src_offset),
- static_cast<GLintptr>(copy.dst_offset), static_cast<GLsizeiptr>(copy.size));
+ glCopyNamedBufferSubData(src_buffer, dst_buffer, static_cast<GLintptr>(copy.src_offset),
+ static_cast<GLintptr>(copy.dst_offset),
+ static_cast<GLsizeiptr>(copy.size));
}
+ if (barrier) {
+ PostCopyBarrier();
+ }
+}
+
+void BufferCacheRuntime::CopyBuffer(GLuint dst_buffer, Buffer& src_buffer,
+ std::span<const VideoCommon::BufferCopy> copies, bool barrier) {
+ CopyBuffer(dst_buffer, src_buffer.Handle(), copies, barrier);
+}
+
+void BufferCacheRuntime::CopyBuffer(Buffer& dst_buffer, GLuint src_buffer,
+ std::span<const VideoCommon::BufferCopy> copies, bool barrier) {
+ CopyBuffer(dst_buffer.Handle(), src_buffer, copies, barrier);
+}
+
+void BufferCacheRuntime::CopyBuffer(Buffer& dst_buffer, Buffer& src_buffer,
+ std::span<const VideoCommon::BufferCopy> copies) {
+ CopyBuffer(dst_buffer.Handle(), src_buffer.Handle(), copies);
+}
+
+void BufferCacheRuntime::PreCopyBarrier() {
+ // TODO: finer grained barrier?
+ glMemoryBarrier(GL_ALL_BARRIER_BITS);
+}
+
+void BufferCacheRuntime::PostCopyBarrier() {
+ glMemoryBarrier(GL_BUFFER_UPDATE_BARRIER_BIT | GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT);
+}
+
+void BufferCacheRuntime::Finish() {
+ glFinish();
}
void BufferCacheRuntime::ClearBuffer(Buffer& dest_buffer, u32 offset, size_t size, u32 value) {
@@ -188,6 +232,15 @@ void BufferCacheRuntime::BindVertexBuffer(u32 index, Buffer& buffer, u32 offset,
}
}
+void BufferCacheRuntime::BindVertexBuffers(VideoCommon::HostBindings<Buffer>& bindings) {
+ for (u32 index = 0; index < bindings.buffers.size(); ++index) {
+ BindVertexBuffer(bindings.min_index + index, *bindings.buffers[index],
+ static_cast<u32>(bindings.offsets[index]),
+ static_cast<u32>(bindings.sizes[index]),
+ static_cast<u32>(bindings.strides[index]));
+ }
+}
+
void BufferCacheRuntime::BindUniformBuffer(size_t stage, u32 binding_index, Buffer& buffer,
u32 offset, u32 size) {
if (use_assembly_shaders) {
@@ -276,6 +329,14 @@ void BufferCacheRuntime::BindTransformFeedbackBuffer(u32 index, Buffer& buffer,
static_cast<GLintptr>(offset), static_cast<GLsizeiptr>(size));
}
+void BufferCacheRuntime::BindTransformFeedbackBuffers(VideoCommon::HostBindings<Buffer>& bindings) {
+ for (u32 index = 0; index < bindings.buffers.size(); ++index) {
+ glBindBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, index, bindings.buffers[index]->Handle(),
+ static_cast<GLintptr>(bindings.offsets[index]),
+ static_cast<GLsizeiptr>(bindings.sizes[index]));
+ }
+}
+
void BufferCacheRuntime::BindTextureBuffer(Buffer& buffer, u32 offset, u32 size,
PixelFormat format) {
*texture_handles++ = buffer.View(offset, size, format);
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h
index bb1962073..41b746f3b 100644
--- a/src/video_core/renderer_opengl/gl_buffer_cache.h
+++ b/src/video_core/renderer_opengl/gl_buffer_cache.h
@@ -7,11 +7,12 @@
#include <span>
#include "common/common_types.h"
-#include "video_core/buffer_cache/buffer_cache.h"
+#include "video_core/buffer_cache/buffer_cache_base.h"
+#include "video_core/buffer_cache/memory_tracker_base.h"
#include "video_core/rasterizer_interface.h"
#include "video_core/renderer_opengl/gl_device.h"
#include "video_core/renderer_opengl/gl_resource_manager.h"
-#include "video_core/renderer_opengl/gl_stream_buffer.h"
+#include "video_core/renderer_opengl/gl_staging_buffer_pool.h"
namespace OpenGL {
@@ -59,17 +60,36 @@ class BufferCacheRuntime {
public:
static constexpr u8 INVALID_BINDING = std::numeric_limits<u8>::max();
- explicit BufferCacheRuntime(const Device& device_);
+ explicit BufferCacheRuntime(const Device& device_, StagingBufferPool& staging_buffer_pool_);
+
+ [[nodiscard]] StagingBufferMap UploadStagingBuffer(size_t size);
+
+ [[nodiscard]] StagingBufferMap DownloadStagingBuffer(size_t size);
+
+ void CopyBuffer(GLuint dst_buffer, GLuint src_buffer,
+ std::span<const VideoCommon::BufferCopy> copies, bool barrier = true);
+
+ void CopyBuffer(GLuint dst_buffer, Buffer& src_buffer,
+ std::span<const VideoCommon::BufferCopy> copies, bool barrier = true);
+
+ void CopyBuffer(Buffer& dst_buffer, GLuint src_buffer,
+ std::span<const VideoCommon::BufferCopy> copies, bool barrier = true);
void CopyBuffer(Buffer& dst_buffer, Buffer& src_buffer,
std::span<const VideoCommon::BufferCopy> copies);
+ void PreCopyBarrier();
+ void PostCopyBarrier();
+ void Finish();
+
void ClearBuffer(Buffer& dest_buffer, u32 offset, size_t size, u32 value);
void BindIndexBuffer(Buffer& buffer, u32 offset, u32 size);
void BindVertexBuffer(u32 index, Buffer& buffer, u32 offset, u32 size, u32 stride);
+ void BindVertexBuffers(VideoCommon::HostBindings<Buffer>& bindings);
+
void BindUniformBuffer(size_t stage, u32 binding_index, Buffer& buffer, u32 offset, u32 size);
void BindComputeUniformBuffer(u32 binding_index, Buffer& buffer, u32 offset, u32 size);
@@ -82,6 +102,8 @@ public:
void BindTransformFeedbackBuffer(u32 index, Buffer& buffer, u32 offset, u32 size);
+ void BindTransformFeedbackBuffers(VideoCommon::HostBindings<Buffer>& bindings);
+
void BindTextureBuffer(Buffer& buffer, u32 offset, u32 size,
VideoCore::Surface::PixelFormat format);
@@ -160,10 +182,6 @@ public:
return device.CanReportMemoryUsage();
}
- u32 GetStorageBufferAlignment() const {
- return static_cast<u32>(device.GetShaderStorageBufferAlignment());
- }
-
private:
static constexpr std::array PABO_LUT{
GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV, GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV,
@@ -172,6 +190,7 @@ private:
};
const Device& device;
+ StagingBufferPool& staging_buffer_pool;
bool has_fast_buffer_sub_data = false;
bool use_assembly_shaders = false;
@@ -204,14 +223,20 @@ private:
struct BufferCacheParams {
using Runtime = OpenGL::BufferCacheRuntime;
using Buffer = OpenGL::Buffer;
+ using Async_Buffer = OpenGL::StagingBufferMap;
+ using MemoryTracker = VideoCommon::MemoryTrackerBase<VideoCore::RasterizerInterface>;
static constexpr bool IS_OPENGL = true;
static constexpr bool HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS = true;
static constexpr bool HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT = true;
static constexpr bool NEEDS_BIND_UNIFORM_INDEX = true;
static constexpr bool NEEDS_BIND_STORAGE_INDEX = true;
- static constexpr bool USE_MEMORY_MAPS = false;
+ static constexpr bool USE_MEMORY_MAPS = true;
static constexpr bool SEPARATE_IMAGE_BUFFER_BINDINGS = true;
+ static constexpr bool IMPLEMENTS_ASYNC_DOWNLOADS = false;
+
+ // TODO: Investigate why OpenGL seems to perform worse with persistently mapped buffer uploads
+ static constexpr bool USE_MEMORY_MAPS_FOR_UPLOADS = false;
};
using BufferCache = VideoCommon::BufferCache<BufferCacheParams>;
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache_base.cpp b/src/video_core/renderer_opengl/gl_buffer_cache_base.cpp
new file mode 100644
index 000000000..f15ae8e25
--- /dev/null
+++ b/src/video_core/renderer_opengl/gl_buffer_cache_base.cpp
@@ -0,0 +1,9 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include "video_core/buffer_cache/buffer_cache.h"
+#include "video_core/renderer_opengl/gl_buffer_cache.h"
+
+namespace VideoCommon {
+template class VideoCommon::BufferCache<OpenGL::BufferCacheParams>;
+}
diff --git a/src/video_core/renderer_opengl/gl_compute_pipeline.cpp b/src/video_core/renderer_opengl/gl_compute_pipeline.cpp
index 26d066004..f9ca55c36 100644
--- a/src/video_core/renderer_opengl/gl_compute_pipeline.cpp
+++ b/src/video_core/renderer_opengl/gl_compute_pipeline.cpp
@@ -30,7 +30,7 @@ bool ComputePipelineKey::operator==(const ComputePipelineKey& rhs) const noexcep
ComputePipeline::ComputePipeline(const Device& device, TextureCache& texture_cache_,
BufferCache& buffer_cache_, ProgramManager& program_manager_,
const Shader::Info& info_, std::string code,
- std::vector<u32> code_v)
+ std::vector<u32> code_v, bool force_context_flush)
: texture_cache{texture_cache_}, buffer_cache{buffer_cache_},
program_manager{program_manager_}, info{info_} {
switch (device.GetShaderBackend()) {
@@ -63,6 +63,16 @@ ComputePipeline::ComputePipeline(const Device& device, TextureCache& texture_cac
writes_global_memory = !use_storage_buffers &&
std::ranges::any_of(info.storage_buffers_descriptors,
[](const auto& desc) { return desc.is_written; });
+ uses_local_memory = info.uses_local_memory;
+ if (force_context_flush) {
+ std::scoped_lock lock{built_mutex};
+ built_fence.Create();
+ // Flush this context to ensure compilation commands and fence are in the GPU pipe.
+ glFlush();
+ built_condvar.notify_one();
+ } else {
+ is_built = true;
+ }
}
void ComputePipeline::Configure() {
@@ -78,7 +88,8 @@ void ComputePipeline::Configure() {
texture_cache.SynchronizeComputeDescriptors();
boost::container::static_vector<VideoCommon::ImageViewInOut, MAX_TEXTURES + MAX_IMAGES> views;
- std::array<GLuint, MAX_TEXTURES> samplers;
+ boost::container::static_vector<VideoCommon::SamplerId, MAX_TEXTURES> samplers;
+ std::array<GLuint, MAX_TEXTURES> gl_samplers;
std::array<GLuint, MAX_TEXTURES> textures;
std::array<GLuint, MAX_IMAGES> images;
GLsizei sampler_binding{};
@@ -122,7 +133,6 @@ void ComputePipeline::Configure() {
for (u32 index = 0; index < desc.count; ++index) {
const auto handle{read_handle(desc, index)};
views.push_back({handle.first});
- samplers[sampler_binding++] = 0;
}
}
for (const auto& desc : info.image_buffer_descriptors) {
@@ -133,8 +143,8 @@ void ComputePipeline::Configure() {
const auto handle{read_handle(desc, index)};
views.push_back({handle.first});
- Sampler* const sampler = texture_cache.GetComputeSampler(handle.second);
- samplers[sampler_binding++] = sampler->Handle();
+ VideoCommon::SamplerId sampler = texture_cache.GetComputeSamplerId(handle.second);
+ samplers.push_back(sampler);
}
}
for (const auto& desc : info.image_descriptors) {
@@ -142,6 +152,9 @@ void ComputePipeline::Configure() {
}
texture_cache.FillComputeImageViews(std::span(views.data(), views.size()));
+ if (!is_built) {
+ WaitForBuild();
+ }
if (assembly_program.handle != 0) {
program_manager.BindComputeAssemblyProgram(assembly_program.handle);
} else {
@@ -174,10 +187,17 @@ void ComputePipeline::Configure() {
const VideoCommon::ImageViewInOut* views_it{views.data() + num_texture_buffers +
num_image_buffers};
+ const VideoCommon::SamplerId* samplers_it{samplers.data()};
texture_binding += num_texture_buffers;
image_binding += num_image_buffers;
u32 texture_scaling_mask{};
+
+ for (const auto& desc : info.texture_buffer_descriptors) {
+ for (u32 index = 0; index < desc.count; ++index) {
+ gl_samplers[sampler_binding++] = 0;
+ }
+ }
for (const auto& desc : info.texture_descriptors) {
for (u32 index = 0; index < desc.count; ++index) {
ImageView& image_view{texture_cache.GetImageView((views_it++)->id)};
@@ -186,6 +206,12 @@ void ComputePipeline::Configure() {
texture_scaling_mask |= 1u << texture_binding;
}
++texture_binding;
+
+ const Sampler& sampler{texture_cache.GetSampler(*(samplers_it++))};
+ const bool use_fallback_sampler{sampler.HasAddedAnisotropy() &&
+ !image_view.SupportsAnisotropy()};
+ gl_samplers[sampler_binding++] =
+ use_fallback_sampler ? sampler.HandleWithDefaultAnisotropy() : sampler.Handle();
}
}
u32 image_scaling_mask{};
@@ -216,11 +242,20 @@ void ComputePipeline::Configure() {
if (texture_binding != 0) {
ASSERT(texture_binding == sampler_binding);
glBindTextures(0, texture_binding, textures.data());
- glBindSamplers(0, sampler_binding, samplers.data());
+ glBindSamplers(0, sampler_binding, gl_samplers.data());
}
if (image_binding != 0) {
glBindImageTextures(0, image_binding, images.data());
}
}
+void ComputePipeline::WaitForBuild() {
+ if (built_fence.handle == 0) {
+ std::unique_lock lock{built_mutex};
+ built_condvar.wait(lock, [this] { return built_fence.handle != 0; });
+ }
+ ASSERT(glClientWaitSync(built_fence.handle, 0, GL_TIMEOUT_IGNORED) != GL_WAIT_FAILED);
+ is_built = true;
+}
+
} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_compute_pipeline.h b/src/video_core/renderer_opengl/gl_compute_pipeline.h
index 6534dec32..c26b4fa5e 100644
--- a/src/video_core/renderer_opengl/gl_compute_pipeline.h
+++ b/src/video_core/renderer_opengl/gl_compute_pipeline.h
@@ -50,7 +50,8 @@ class ComputePipeline {
public:
explicit ComputePipeline(const Device& device, TextureCache& texture_cache_,
BufferCache& buffer_cache_, ProgramManager& program_manager_,
- const Shader::Info& info_, std::string code, std::vector<u32> code_v);
+ const Shader::Info& info_, std::string code, std::vector<u32> code_v,
+ bool force_context_flush = false);
void Configure();
@@ -58,6 +59,10 @@ public:
return writes_global_memory;
}
+ [[nodiscard]] bool UsesLocalMemory() const noexcept {
+ return uses_local_memory;
+ }
+
void SetEngine(Tegra::Engines::KeplerCompute* kepler_compute_,
Tegra::MemoryManager* gpu_memory_) {
kepler_compute = kepler_compute_;
@@ -65,6 +70,8 @@ public:
}
private:
+ void WaitForBuild();
+
TextureCache& texture_cache;
BufferCache& buffer_cache;
Tegra::MemoryManager* gpu_memory;
@@ -81,6 +88,12 @@ private:
bool use_storage_buffers{};
bool writes_global_memory{};
+ bool uses_local_memory{};
+
+ std::mutex built_mutex;
+ std::condition_variable built_condvar;
+ OGLSync built_fence{};
+ bool is_built{false};
};
} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp
index 22ed16ebf..33e63c17d 100644
--- a/src/video_core/renderer_opengl/gl_device.cpp
+++ b/src/video_core/renderer_opengl/gl_device.cpp
@@ -108,7 +108,8 @@ bool IsASTCSupported() {
[[nodiscard]] bool IsDebugToolAttached(std::span<const std::string_view> extensions) {
const bool nsight = std::getenv("NVTX_INJECTION64_PATH") || std::getenv("NSIGHT_LAUNCHED");
- return nsight || HasExtension(extensions, "GL_EXT_debug_tool");
+ return nsight || HasExtension(extensions, "GL_EXT_debug_tool") ||
+ Settings::values.renderer_debug.GetValue();
}
} // Anonymous namespace
@@ -193,6 +194,7 @@ Device::Device(Core::Frontend::EmuWindow& emu_window) {
has_bool_ref_bug = true;
}
}
+ has_lmem_perf_bug = is_nvidia;
strict_context_required = emu_window.StrictContextRequired();
// Blocks AMD and Intel OpenGL drivers on Windows from using asynchronous shader compilation.
@@ -200,6 +202,7 @@ Device::Device(Core::Frontend::EmuWindow& emu_window) {
use_asynchronous_shaders = Settings::values.use_asynchronous_shaders.GetValue() &&
!(is_amd || (is_intel && !is_linux)) && !strict_context_required;
use_driver_cache = is_nvidia;
+ supports_conditional_barriers = !is_intel;
LOG_INFO(Render_OpenGL, "Renderer_VariableAOFFI: {}", has_variable_aoffi);
LOG_INFO(Render_OpenGL, "Renderer_ComponentIndexingBug: {}", has_component_indexing_bug);
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h
index 3ff8cad83..a5a6bbbba 100644
--- a/src/video_core/renderer_opengl/gl_device.h
+++ b/src/video_core/renderer_opengl/gl_device.h
@@ -176,6 +176,10 @@ public:
return vendor_name == "ATI Technologies Inc.";
}
+ bool IsIntel() const {
+ return vendor_name == "Intel";
+ }
+
bool CanReportMemoryUsage() const {
return can_report_memory;
}
@@ -184,6 +188,14 @@ public:
return strict_context_required;
}
+ bool SupportsConditionalBarriers() const {
+ return supports_conditional_barriers;
+ }
+
+ bool HasLmemPerfBug() const {
+ return has_lmem_perf_bug;
+ }
+
private:
static bool TestVariableAoffi();
static bool TestPreciseBug();
@@ -229,6 +241,8 @@ private:
bool has_bool_ref_bug{};
bool can_report_memory{};
bool strict_context_required{};
+ bool supports_conditional_barriers{};
+ bool has_lmem_perf_bug{};
std::string vendor_name;
};
diff --git a/src/video_core/renderer_opengl/gl_fence_manager.cpp b/src/video_core/renderer_opengl/gl_fence_manager.cpp
index 91463f854..5326172af 100644
--- a/src/video_core/renderer_opengl/gl_fence_manager.cpp
+++ b/src/video_core/renderer_opengl/gl_fence_manager.cpp
@@ -27,9 +27,7 @@ bool GLInnerFence::IsSignaled() const {
return true;
}
ASSERT(sync_object.handle != 0);
- GLint sync_status;
- glGetSynciv(sync_object.handle, GL_SYNC_STATUS, 1, nullptr, &sync_status);
- return sync_status == GL_SIGNALED;
+ return sync_object.IsSignaled();
}
void GLInnerFence::Wait() {
diff --git a/src/video_core/renderer_opengl/gl_fence_manager.h b/src/video_core/renderer_opengl/gl_fence_manager.h
index f1446e732..e21b19dcc 100644
--- a/src/video_core/renderer_opengl/gl_fence_manager.h
+++ b/src/video_core/renderer_opengl/gl_fence_manager.h
@@ -30,7 +30,17 @@ private:
};
using Fence = std::shared_ptr<GLInnerFence>;
-using GenericFenceManager = VideoCommon::FenceManager<Fence, TextureCache, BufferCache, QueryCache>;
+
+struct FenceManagerParams {
+ using FenceType = Fence;
+ using BufferCacheType = BufferCache;
+ using TextureCacheType = TextureCache;
+ using QueryCacheType = QueryCache;
+
+ static constexpr bool HAS_ASYNC_CHECK = false;
+};
+
+using GenericFenceManager = VideoCommon::FenceManager<FenceManagerParams>;
class FenceManagerOpenGL final : public GenericFenceManager {
public:
diff --git a/src/video_core/renderer_opengl/gl_fsr.cpp b/src/video_core/renderer_opengl/gl_fsr.cpp
new file mode 100644
index 000000000..77262dcf1
--- /dev/null
+++ b/src/video_core/renderer_opengl/gl_fsr.cpp
@@ -0,0 +1,101 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/settings.h"
+#include "video_core/fsr.h"
+#include "video_core/renderer_opengl/gl_fsr.h"
+#include "video_core/renderer_opengl/gl_shader_manager.h"
+#include "video_core/renderer_opengl/gl_shader_util.h"
+
+namespace OpenGL {
+using namespace FSR;
+
+using FsrConstants = std::array<u32, 4 * 4>;
+
+FSR::FSR(std::string_view fsr_vertex_source, std::string_view fsr_easu_source,
+ std::string_view fsr_rcas_source)
+ : fsr_vertex{CreateProgram(fsr_vertex_source, GL_VERTEX_SHADER)},
+ fsr_easu_frag{CreateProgram(fsr_easu_source, GL_FRAGMENT_SHADER)},
+ fsr_rcas_frag{CreateProgram(fsr_rcas_source, GL_FRAGMENT_SHADER)} {
+ glProgramUniform2f(fsr_vertex.handle, 0, 1.0f, 1.0f);
+ glProgramUniform2f(fsr_vertex.handle, 1, 0.0f, 0.0f);
+}
+
+FSR::~FSR() = default;
+
+void FSR::Draw(ProgramManager& program_manager, const Common::Rectangle<u32>& screen,
+ u32 input_image_width, u32 input_image_height,
+ const Common::Rectangle<int>& crop_rect) {
+
+ const auto output_image_width = screen.GetWidth();
+ const auto output_image_height = screen.GetHeight();
+
+ if (fsr_intermediate_tex.handle) {
+ GLint fsr_tex_width, fsr_tex_height;
+ glGetTextureLevelParameteriv(fsr_intermediate_tex.handle, 0, GL_TEXTURE_WIDTH,
+ &fsr_tex_width);
+ glGetTextureLevelParameteriv(fsr_intermediate_tex.handle, 0, GL_TEXTURE_HEIGHT,
+ &fsr_tex_height);
+ if (static_cast<u32>(fsr_tex_width) != output_image_width ||
+ static_cast<u32>(fsr_tex_height) != output_image_height) {
+ fsr_intermediate_tex.Release();
+ }
+ }
+ if (!fsr_intermediate_tex.handle) {
+ fsr_intermediate_tex.Create(GL_TEXTURE_2D);
+ glTextureStorage2D(fsr_intermediate_tex.handle, 1, GL_RGB16F, output_image_width,
+ output_image_height);
+ glNamedFramebufferTexture(fsr_framebuffer.handle, GL_COLOR_ATTACHMENT0,
+ fsr_intermediate_tex.handle, 0);
+ }
+
+ GLint old_draw_fb;
+ glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &old_draw_fb);
+
+ glFrontFace(GL_CW);
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fsr_framebuffer.handle);
+ glViewportIndexedf(0, 0.0f, 0.0f, static_cast<GLfloat>(output_image_width),
+ static_cast<GLfloat>(output_image_height));
+
+ FsrConstants constants;
+ FsrEasuConOffset(
+ constants.data() + 0, constants.data() + 4, constants.data() + 8, constants.data() + 12,
+
+ static_cast<f32>(crop_rect.GetWidth()), static_cast<f32>(crop_rect.GetHeight()),
+ static_cast<f32>(input_image_width), static_cast<f32>(input_image_height),
+ static_cast<f32>(output_image_width), static_cast<f32>(output_image_height),
+ static_cast<f32>(crop_rect.left), static_cast<f32>(crop_rect.top));
+
+ glProgramUniform4uiv(fsr_easu_frag.handle, 0, sizeof(constants), std::data(constants));
+
+ program_manager.BindPresentPrograms(fsr_vertex.handle, fsr_easu_frag.handle);
+ glDrawArrays(GL_TRIANGLES, 0, 3);
+
+ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, old_draw_fb);
+ glBindTextureUnit(0, fsr_intermediate_tex.handle);
+
+ const float sharpening =
+ static_cast<float>(Settings::values.fsr_sharpening_slider.GetValue()) / 100.0f;
+
+ FsrRcasCon(constants.data(), sharpening);
+ glProgramUniform4uiv(fsr_rcas_frag.handle, 0, sizeof(constants), std::data(constants));
+}
+
+void FSR::InitBuffers() {
+ fsr_framebuffer.Create();
+}
+
+void FSR::ReleaseBuffers() {
+ fsr_framebuffer.Release();
+ fsr_intermediate_tex.Release();
+}
+
+const OGLProgram& FSR::GetPresentFragmentProgram() const noexcept {
+ return fsr_rcas_frag;
+}
+
+bool FSR::AreBuffersInitialized() const noexcept {
+ return fsr_framebuffer.handle;
+}
+
+} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_fsr.h b/src/video_core/renderer_opengl/gl_fsr.h
new file mode 100644
index 000000000..1f6ae3115
--- /dev/null
+++ b/src/video_core/renderer_opengl/gl_fsr.h
@@ -0,0 +1,43 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <string_view>
+
+#include "common/common_types.h"
+#include "common/math_util.h"
+#include "video_core/fsr.h"
+#include "video_core/renderer_opengl/gl_resource_manager.h"
+
+namespace OpenGL {
+
+class ProgramManager;
+
+class FSR {
+public:
+ explicit FSR(std::string_view fsr_vertex_source, std::string_view fsr_easu_source,
+ std::string_view fsr_rcas_source);
+ ~FSR();
+
+ void Draw(ProgramManager& program_manager, const Common::Rectangle<u32>& screen,
+ u32 input_image_width, u32 input_image_height,
+ const Common::Rectangle<int>& crop_rect);
+
+ void InitBuffers();
+
+ void ReleaseBuffers();
+
+ [[nodiscard]] const OGLProgram& GetPresentFragmentProgram() const noexcept;
+
+ [[nodiscard]] bool AreBuffersInitialized() const noexcept;
+
+private:
+ OGLFramebuffer fsr_framebuffer;
+ OGLProgram fsr_vertex;
+ OGLProgram fsr_easu_frag;
+ OGLProgram fsr_rcas_frag;
+ OGLTexture fsr_intermediate_tex;
+};
+
+} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp
index c115dabe1..23a48c6fe 100644
--- a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp
+++ b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp
@@ -176,7 +176,7 @@ GraphicsPipeline::GraphicsPipeline(const Device& device, TextureCache& texture_c
std::array<std::string, 5> sources,
std::array<std::vector<u32>, 5> sources_spirv,
const std::array<const Shader::Info*, 5>& infos,
- const GraphicsPipelineKey& key_)
+ const GraphicsPipelineKey& key_, bool force_context_flush)
: texture_cache{texture_cache_}, buffer_cache{buffer_cache_}, program_manager{program_manager_},
state_tracker{state_tracker_}, key{key_} {
if (shader_notify) {
@@ -215,6 +215,7 @@ GraphicsPipeline::GraphicsPipeline(const Device& device, TextureCache& texture_c
writes_global_memory |= std::ranges::any_of(
info.storage_buffers_descriptors, [](const auto& desc) { return desc.is_written; });
+ uses_local_memory |= info.uses_local_memory;
}
ASSERT(num_textures <= MAX_TEXTURES);
ASSERT(num_images <= MAX_IMAGES);
@@ -231,7 +232,8 @@ GraphicsPipeline::GraphicsPipeline(const Device& device, TextureCache& texture_c
const bool in_parallel = thread_worker != nullptr;
const auto backend = device.GetShaderBackend();
auto func{[this, sources = std::move(sources), sources_spirv = std::move(sources_spirv),
- shader_notify, backend, in_parallel](ShaderContext::Context*) mutable {
+ shader_notify, backend, in_parallel,
+ force_context_flush](ShaderContext::Context*) mutable {
for (size_t stage = 0; stage < 5; ++stage) {
switch (backend) {
case Settings::ShaderBackend::GLSL:
@@ -251,7 +253,7 @@ GraphicsPipeline::GraphicsPipeline(const Device& device, TextureCache& texture_c
break;
}
}
- if (in_parallel) {
+ if (force_context_flush || in_parallel) {
std::scoped_lock lock{built_mutex};
built_fence.Create();
// Flush this context to ensure compilation commands and fence are in the GPU pipe.
@@ -274,9 +276,9 @@ GraphicsPipeline::GraphicsPipeline(const Device& device, TextureCache& texture_c
template <typename Spec>
void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
std::array<VideoCommon::ImageViewInOut, MAX_TEXTURES + MAX_IMAGES> views;
- std::array<GLuint, MAX_TEXTURES> samplers;
+ std::array<VideoCommon::SamplerId, MAX_TEXTURES> samplers;
size_t views_index{};
- GLsizei sampler_binding{};
+ size_t samplers_index{};
texture_cache.SynchronizeGraphicsDescriptors();
@@ -336,7 +338,6 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
for (u32 index = 0; index < desc.count; ++index) {
const auto handle{read_handle(desc, index)};
views[views_index++] = {handle.first};
- samplers[sampler_binding++] = 0;
}
}
}
@@ -350,8 +351,8 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
const auto handle{read_handle(desc, index)};
views[views_index++] = {handle.first};
- Sampler* const sampler{texture_cache.GetGraphicsSampler(handle.second)};
- samplers[sampler_binding++] = sampler->Handle();
+ VideoCommon::SamplerId sampler{texture_cache.GetGraphicsSamplerId(handle.second)};
+ samplers[samplers_index++] = sampler;
}
}
if constexpr (Spec::has_images) {
@@ -444,10 +445,13 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
program_manager.BindSourcePrograms(source_programs);
}
const VideoCommon::ImageViewInOut* views_it{views.data()};
+ const VideoCommon::SamplerId* samplers_it{samplers.data()};
GLsizei texture_binding = 0;
GLsizei image_binding = 0;
+ GLsizei sampler_binding{};
std::array<GLuint, MAX_TEXTURES> textures;
std::array<GLuint, MAX_IMAGES> images;
+ std::array<GLuint, MAX_TEXTURES> gl_samplers;
const auto prepare_stage{[&](size_t stage) {
buffer_cache.runtime.SetImagePointers(&textures[texture_binding], &images[image_binding]);
buffer_cache.BindHostStageBuffers(stage);
@@ -464,6 +468,13 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
u32 stage_image_binding{};
const auto& info{stage_infos[stage]};
+ if constexpr (Spec::has_texture_buffers) {
+ for (const auto& desc : info.texture_buffer_descriptors) {
+ for (u32 index = 0; index < desc.count; ++index) {
+ gl_samplers[sampler_binding++] = 0;
+ }
+ }
+ }
for (const auto& desc : info.texture_descriptors) {
for (u32 index = 0; index < desc.count; ++index) {
ImageView& image_view{texture_cache.GetImageView((views_it++)->id)};
@@ -473,6 +484,12 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
}
++texture_binding;
++stage_texture_binding;
+
+ const Sampler& sampler{texture_cache.GetSampler(*(samplers_it++))};
+ const bool use_fallback_sampler{sampler.HasAddedAnisotropy() &&
+ !image_view.SupportsAnisotropy()};
+ gl_samplers[sampler_binding++] =
+ use_fallback_sampler ? sampler.HandleWithDefaultAnisotropy() : sampler.Handle();
}
}
for (const auto& desc : info.image_descriptors) {
@@ -533,7 +550,7 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
if (texture_binding != 0) {
ASSERT(texture_binding == sampler_binding);
glBindTextures(0, texture_binding, textures.data());
- glBindSamplers(0, sampler_binding, samplers.data());
+ glBindSamplers(0, sampler_binding, gl_samplers.data());
}
if (image_binding != 0) {
glBindImageTextures(0, image_binding, images.data());
@@ -620,10 +637,7 @@ bool GraphicsPipeline::IsBuilt() noexcept {
if (built_fence.handle == 0) {
return false;
}
- // Timeout of zero means this is non-blocking
- const auto sync_status = glClientWaitSync(built_fence.handle, 0, 0);
- ASSERT(sync_status != GL_WAIT_FAILED);
- is_built = sync_status != GL_TIMEOUT_EXPIRED;
+ is_built = built_fence.IsSignaled();
return is_built;
}
diff --git a/src/video_core/renderer_opengl/gl_graphics_pipeline.h b/src/video_core/renderer_opengl/gl_graphics_pipeline.h
index 1c06b3655..7b3d7eae8 100644
--- a/src/video_core/renderer_opengl/gl_graphics_pipeline.h
+++ b/src/video_core/renderer_opengl/gl_graphics_pipeline.h
@@ -78,7 +78,7 @@ public:
std::array<std::string, 5> sources,
std::array<std::vector<u32>, 5> sources_spirv,
const std::array<const Shader::Info*, 5>& infos,
- const GraphicsPipelineKey& key_);
+ const GraphicsPipelineKey& key_, bool force_context_flush = false);
void Configure(bool is_indexed) {
configure_func(this, is_indexed);
@@ -98,6 +98,10 @@ public:
return writes_global_memory;
}
+ [[nodiscard]] bool UsesLocalMemory() const noexcept {
+ return uses_local_memory;
+ }
+
[[nodiscard]] bool IsBuilt() noexcept;
template <typename Spec>
@@ -146,6 +150,7 @@ private:
bool use_storage_buffers{};
bool writes_global_memory{};
+ bool uses_local_memory{};
static constexpr std::size_t XFB_ENTRY_STRIDE = 3;
GLsizei num_xfb_attribs{};
diff --git a/src/video_core/renderer_opengl/gl_query_cache.cpp b/src/video_core/renderer_opengl/gl_query_cache.cpp
index 5070db441..99d7347f5 100644
--- a/src/video_core/renderer_opengl/gl_query_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_query_cache.cpp
@@ -26,8 +26,8 @@ constexpr GLenum GetTarget(VideoCore::QueryType type) {
} // Anonymous namespace
-QueryCache::QueryCache(RasterizerOpenGL& rasterizer_)
- : QueryCacheBase(rasterizer_), gl_rasterizer{rasterizer_} {}
+QueryCache::QueryCache(RasterizerOpenGL& rasterizer_, Core::Memory::Memory& cpu_memory_)
+ : QueryCacheBase(rasterizer_, cpu_memory_), gl_rasterizer{rasterizer_} {}
QueryCache::~QueryCache() = default;
@@ -74,7 +74,7 @@ void HostCounter::EndQuery() {
glEndQuery(GetTarget(type));
}
-u64 HostCounter::BlockingQuery() const {
+u64 HostCounter::BlockingQuery([[maybe_unused]] bool async) const {
GLint64 value;
glGetQueryObjecti64v(query.handle, GL_QUERY_RESULT, &value);
return static_cast<u64>(value);
@@ -96,7 +96,7 @@ CachedQuery& CachedQuery::operator=(CachedQuery&& rhs) noexcept {
return *this;
}
-void CachedQuery::Flush() {
+u64 CachedQuery::Flush([[maybe_unused]] bool async) {
// Waiting for a query while another query of the same target is enabled locks Nvidia's driver.
// To avoid this disable and re-enable keeping the dependency stream.
// But we only have to do this if we have pending waits to be done.
@@ -106,11 +106,13 @@ void CachedQuery::Flush() {
stream.Update(false);
}
- VideoCommon::CachedQueryBase<HostCounter>::Flush();
+ auto result = VideoCommon::CachedQueryBase<HostCounter>::Flush();
if (slice_counter) {
stream.Update(true);
}
+
+ return result;
}
} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_query_cache.h b/src/video_core/renderer_opengl/gl_query_cache.h
index 14ce59990..872513f22 100644
--- a/src/video_core/renderer_opengl/gl_query_cache.h
+++ b/src/video_core/renderer_opengl/gl_query_cache.h
@@ -28,7 +28,7 @@ using CounterStream = VideoCommon::CounterStreamBase<QueryCache, HostCounter>;
class QueryCache final
: public VideoCommon::QueryCacheBase<QueryCache, CachedQuery, CounterStream, HostCounter> {
public:
- explicit QueryCache(RasterizerOpenGL& rasterizer_);
+ explicit QueryCache(RasterizerOpenGL& rasterizer_, Core::Memory::Memory& cpu_memory_);
~QueryCache();
OGLQuery AllocateQuery(VideoCore::QueryType type);
@@ -51,7 +51,7 @@ public:
void EndQuery();
private:
- u64 BlockingQuery() const override;
+ u64 BlockingQuery(bool async = false) const override;
QueryCache& cache;
const VideoCore::QueryType type;
@@ -70,7 +70,7 @@ public:
CachedQuery(const CachedQuery&) = delete;
CachedQuery& operator=(const CachedQuery&) = delete;
- void Flush() override;
+ u64 Flush(bool async = false) override;
private:
QueryCache* cache;
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 7bced675c..edf527f2d 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -24,6 +24,7 @@
#include "video_core/renderer_opengl/gl_query_cache.h"
#include "video_core/renderer_opengl/gl_rasterizer.h"
#include "video_core/renderer_opengl/gl_shader_cache.h"
+#include "video_core/renderer_opengl/gl_staging_buffer_pool.h"
#include "video_core/renderer_opengl/gl_texture_cache.h"
#include "video_core/renderer_opengl/maxwell_to_gl.h"
#include "video_core/renderer_opengl/renderer_opengl.h"
@@ -58,12 +59,13 @@ RasterizerOpenGL::RasterizerOpenGL(Core::Frontend::EmuWindow& emu_window_, Tegra
StateTracker& state_tracker_)
: RasterizerAccelerated(cpu_memory_), gpu(gpu_), device(device_), screen_info(screen_info_),
program_manager(program_manager_), state_tracker(state_tracker_),
- texture_cache_runtime(device, program_manager, state_tracker),
- texture_cache(texture_cache_runtime, *this), buffer_cache_runtime(device),
+ texture_cache_runtime(device, program_manager, state_tracker, staging_buffer_pool),
+ texture_cache(texture_cache_runtime, *this),
+ buffer_cache_runtime(device, staging_buffer_pool),
buffer_cache(*this, cpu_memory_, buffer_cache_runtime),
shader_cache(*this, emu_window_, device, texture_cache, buffer_cache, program_manager,
state_tracker, gpu.ShaderNotify()),
- query_cache(*this), accelerate_dma(buffer_cache),
+ query_cache(*this, cpu_memory_), accelerate_dma(buffer_cache, texture_cache),
fence_manager(*this, gpu, texture_cache, buffer_cache, query_cache),
blit_image(program_manager_) {}
@@ -220,6 +222,9 @@ void RasterizerOpenGL::PrepareDraw(bool is_indexed, Func&& draw_func) {
gpu.TickWork();
std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
+ if (pipeline->UsesLocalMemory()) {
+ program_manager.LocalMemoryWarmup();
+ }
pipeline->SetEngine(maxwell3d, gpu_memory);
pipeline->Configure(is_indexed);
@@ -357,6 +362,7 @@ void RasterizerOpenGL::DrawTexture() {
.y = static_cast<s32>(draw_texture_state.src_y1)}};
blit_image.BlitColor(texture_cache.GetFramebuffer()->Handle(), texture.DefaultHandle(),
sampler->Handle(), dst_region, src_region, texture.size);
+ state_tracker.InvalidateState();
}
++num_queued_commands;
@@ -368,6 +374,9 @@ void RasterizerOpenGL::DispatchCompute() {
if (!pipeline) {
return;
}
+ if (pipeline->UsesLocalMemory()) {
+ program_manager.LocalMemoryWarmup();
+ }
pipeline->SetEngine(kepler_compute, gpu_memory);
pipeline->Configure();
const auto& qmd{kepler_compute->launch_description};
@@ -432,6 +441,29 @@ bool RasterizerOpenGL::MustFlushRegion(VAddr addr, u64 size, VideoCommon::CacheT
return false;
}
+VideoCore::RasterizerDownloadArea RasterizerOpenGL::GetFlushArea(VAddr addr, u64 size) {
+ {
+ std::scoped_lock lock{texture_cache.mutex};
+ auto area = texture_cache.GetFlushArea(addr, size);
+ if (area) {
+ return *area;
+ }
+ }
+ {
+ std::scoped_lock lock{buffer_cache.mutex};
+ auto area = buffer_cache.GetFlushArea(addr, size);
+ if (area) {
+ return *area;
+ }
+ }
+ VideoCore::RasterizerDownloadArea new_area{
+ .start_address = Common::AlignDown(addr, Core::Memory::YUZU_PAGESIZE),
+ .end_address = Common::AlignUp(addr + size, Core::Memory::YUZU_PAGESIZE),
+ .preemtive = true,
+ };
+ return new_area;
+}
+
void RasterizerOpenGL::InvalidateRegion(VAddr addr, u64 size, VideoCommon::CacheType which) {
MICROPROFILE_SCOPE(OpenGL_CacheManagement);
if (addr == 0 || size == 0) {
@@ -576,7 +608,7 @@ bool RasterizerOpenGL::AccelerateConditionalRendering() {
// Reimplement Host conditional rendering.
return false;
}
- // Medium / Low Hack: stub any checks on queries writen into the buffer cache.
+ // Medium / Low Hack: stub any checks on queries written into the buffer cache.
const GPUVAddr condition_address{maxwell3d->regs.render_enable.Address()};
Maxwell::ReportSemaphore::Compare cmp;
if (gpu_memory->IsMemoryDirty(condition_address, sizeof(cmp),
@@ -1262,7 +1294,8 @@ void RasterizerOpenGL::ReleaseChannel(s32 channel_id) {
query_cache.EraseChannel(channel_id);
}
-AccelerateDMA::AccelerateDMA(BufferCache& buffer_cache_) : buffer_cache{buffer_cache_} {}
+AccelerateDMA::AccelerateDMA(BufferCache& buffer_cache_, TextureCache& texture_cache_)
+ : buffer_cache{buffer_cache_}, texture_cache{texture_cache_} {}
bool AccelerateDMA::BufferCopy(GPUVAddr src_address, GPUVAddr dest_address, u64 amount) {
std::scoped_lock lock{buffer_cache.mutex};
@@ -1274,4 +1307,44 @@ bool AccelerateDMA::BufferClear(GPUVAddr src_address, u64 amount, u32 value) {
return buffer_cache.DMAClear(src_address, amount, value);
}
+template <bool IS_IMAGE_UPLOAD>
+bool AccelerateDMA::DmaBufferImageCopy(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::BufferOperand& buffer_operand,
+ const Tegra::DMA::ImageOperand& image_operand) {
+ std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
+ const auto image_id = texture_cache.DmaImageId(image_operand, IS_IMAGE_UPLOAD);
+ if (image_id == VideoCommon::NULL_IMAGE_ID) {
+ return false;
+ }
+ const u32 buffer_size = static_cast<u32>(buffer_operand.pitch * buffer_operand.height);
+ static constexpr auto sync_info = VideoCommon::ObtainBufferSynchronize::FullSynchronize;
+ const auto post_op = VideoCommon::ObtainBufferOperation::DoNothing;
+ const auto [buffer, offset] =
+ buffer_cache.ObtainBuffer(buffer_operand.address, buffer_size, sync_info, post_op);
+
+ const auto [image, copy] = texture_cache.DmaBufferImageCopy(
+ copy_info, buffer_operand, image_operand, image_id, IS_IMAGE_UPLOAD);
+ const std::span copy_span{&copy, 1};
+
+ if constexpr (IS_IMAGE_UPLOAD) {
+ image->UploadMemory(buffer->Handle(), offset, copy_span);
+ } else {
+ texture_cache.DownloadImageIntoBuffer(image, buffer->Handle(), offset, copy_span,
+ buffer_operand.address, buffer_size);
+ }
+ return true;
+}
+
+bool AccelerateDMA::ImageToBuffer(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::ImageOperand& image_operand,
+ const Tegra::DMA::BufferOperand& buffer_operand) {
+ return DmaBufferImageCopy<false>(copy_info, buffer_operand, image_operand);
+}
+
+bool AccelerateDMA::BufferToImage(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::BufferOperand& buffer_operand,
+ const Tegra::DMA::ImageOperand& image_operand) {
+ return DmaBufferImageCopy<true>(copy_info, buffer_operand, image_operand);
+}
+
} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 0c45832ae..a73ad15c1 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -50,14 +50,26 @@ static_assert(sizeof(BindlessSSBO) * CHAR_BIT == 128);
class AccelerateDMA : public Tegra::Engines::AccelerateDMAInterface {
public:
- explicit AccelerateDMA(BufferCache& buffer_cache);
+ explicit AccelerateDMA(BufferCache& buffer_cache, TextureCache& texture_cache);
bool BufferCopy(GPUVAddr src_address, GPUVAddr dest_address, u64 amount) override;
bool BufferClear(GPUVAddr src_address, u64 amount, u32 value) override;
+ bool ImageToBuffer(const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::ImageOperand& src,
+ const Tegra::DMA::BufferOperand& dst) override;
+
+ bool BufferToImage(const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::BufferOperand& src,
+ const Tegra::DMA::ImageOperand& dst) override;
+
private:
+ template <bool IS_IMAGE_UPLOAD>
+ bool DmaBufferImageCopy(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::BufferOperand& src,
+ const Tegra::DMA::ImageOperand& dst);
+
BufferCache& buffer_cache;
+ TextureCache& texture_cache;
};
class RasterizerOpenGL : public VideoCore::RasterizerAccelerated,
@@ -83,6 +95,7 @@ public:
VideoCommon::CacheType which = VideoCommon::CacheType::All) override;
bool MustFlushRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) override;
+ VideoCore::RasterizerDownloadArea GetFlushArea(VAddr addr, u64 size) override;
void InvalidateRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) override;
void OnCPUWrite(VAddr addr, u64 size) override;
@@ -150,7 +163,7 @@ private:
/// Syncs the cull mode to match the guest state
void SyncCullMode();
- /// Syncs the primitve restart to match the guest state
+ /// Syncs the primitive restart to match the guest state
void SyncPrimitiveRestart();
/// Syncs the depth test state to match the guest state
@@ -217,6 +230,7 @@ private:
ProgramManager& program_manager;
StateTracker& state_tracker;
+ StagingBufferPool staging_buffer_pool;
TextureCacheRuntime texture_cache_runtime;
TextureCache texture_cache;
BufferCacheRuntime buffer_cache_runtime;
@@ -234,7 +248,7 @@ private:
std::array<GLuint, MAX_TEXTURES> texture_handles{};
std::array<GLuint, MAX_IMAGES> image_handles{};
- /// Number of commands queued to the OpenGL driver. Resetted on flush.
+ /// Number of commands queued to the OpenGL driver. Reset on flush.
size_t num_queued_commands = 0;
bool has_written_global_memory = false;
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.cpp b/src/video_core/renderer_opengl/gl_resource_manager.cpp
index 3a664fdec..eae8fd110 100644
--- a/src/video_core/renderer_opengl/gl_resource_manager.cpp
+++ b/src/video_core/renderer_opengl/gl_resource_manager.cpp
@@ -3,6 +3,7 @@
#include <string_view>
#include <glad/glad.h>
+#include "common/assert.h"
#include "common/microprofile.h"
#include "video_core/renderer_opengl/gl_resource_manager.h"
#include "video_core/renderer_opengl/gl_shader_util.h"
@@ -158,6 +159,15 @@ void OGLSync::Release() {
handle = 0;
}
+bool OGLSync::IsSignaled() const noexcept {
+ // At least on Nvidia, glClientWaitSync with a timeout of 0
+ // is faster than glGetSynciv of GL_SYNC_STATUS.
+ // Timeout of 0 means this check is non-blocking.
+ const auto sync_status = glClientWaitSync(handle, 0, 0);
+ ASSERT(sync_status != GL_WAIT_FAILED);
+ return sync_status != GL_TIMEOUT_EXPIRED;
+}
+
void OGLFramebuffer::Create() {
if (handle != 0)
return;
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.h b/src/video_core/renderer_opengl/gl_resource_manager.h
index bc05ba4bd..77362acd2 100644
--- a/src/video_core/renderer_opengl/gl_resource_manager.h
+++ b/src/video_core/renderer_opengl/gl_resource_manager.h
@@ -263,6 +263,9 @@ public:
/// Deletes the internal OpenGL resource
void Release();
+ /// Checks if the sync has been signaled
+ bool IsSignaled() const noexcept;
+
GLsync handle = 0;
};
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index 7dd854e0f..0329ed820 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -85,7 +85,9 @@ Shader::RuntimeInfo MakeRuntimeInfo(const GraphicsPipelineKey& key,
case Shader::Stage::VertexB:
case Shader::Stage::Geometry:
if (!use_assembly_shaders && key.xfb_enabled != 0) {
- info.xfb_varyings = VideoCommon::MakeTransformFeedbackVaryings(key.xfb_state);
+ auto [varyings, count] = VideoCommon::MakeTransformFeedbackVaryings(key.xfb_state);
+ info.xfb_varyings = varyings;
+ info.xfb_count = count;
}
break;
case Shader::Stage::TessellationEval:
@@ -218,6 +220,7 @@ ShaderCache::ShaderCache(RasterizerOpenGL& rasterizer_, Core::Frontend::EmuWindo
.lower_left_origin_mode = true,
.need_declared_frag_colors = true,
.need_fastmath_off = device.NeedsFastmathOff(),
+ .need_gather_subpixel_offset = device.IsAmd() || device.IsIntel(),
.has_broken_spirv_clamp = true,
.has_broken_unsigned_image_offsets = true,
@@ -231,13 +234,14 @@ ShaderCache::ShaderCache(RasterizerOpenGL& rasterizer_, Core::Frontend::EmuWindo
.gl_max_compute_smem_size = device.GetMaxComputeSharedMemorySize(),
},
host_info{
+ .support_float64 = true,
.support_float16 = false,
.support_int64 = device.HasShaderInt64(),
.needs_demote_reorder = device.IsAmd(),
.support_snorm_render_buffer = false,
.support_viewport_index_layer = device.HasVertexViewportLayer(),
- .min_ssbo_alignment = static_cast<u32>(device.GetShaderStorageBufferAlignment()),
.support_geometry_shader_passthrough = device.HasGeometryShaderPassthrough(),
+ .support_conditional_barrier = device.SupportsConditionalBarriers(),
} {
if (use_asynchronous_shaders) {
workers = CreateWorkers();
@@ -286,7 +290,7 @@ void ShaderCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading,
file.read(reinterpret_cast<char*>(&key), sizeof(key));
queue_work([this, key, env = std::move(env), &state, &callback](Context* ctx) mutable {
ctx->pools.ReleaseContents();
- auto pipeline{CreateComputePipeline(ctx->pools, key, env)};
+ auto pipeline{CreateComputePipeline(ctx->pools, key, env, true)};
std::scoped_lock lock{state.mutex};
if (pipeline) {
compute_cache.emplace(key, std::move(pipeline));
@@ -307,7 +311,7 @@ void ShaderCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading,
env_ptrs.push_back(&env);
}
ctx->pools.ReleaseContents();
- auto pipeline{CreateGraphicsPipeline(ctx->pools, key, MakeSpan(env_ptrs), false)};
+ auto pipeline{CreateGraphicsPipeline(ctx->pools, key, MakeSpan(env_ptrs), false, true)};
std::scoped_lock lock{state.mutex};
if (pipeline) {
graphics_cache.emplace(key, std::move(pipeline));
@@ -439,7 +443,8 @@ std::unique_ptr<GraphicsPipeline> ShaderCache::CreateGraphicsPipeline() {
std::unique_ptr<GraphicsPipeline> ShaderCache::CreateGraphicsPipeline(
ShaderContext::ShaderPools& pools, const GraphicsPipelineKey& key,
- std::span<Shader::Environment* const> envs, bool build_in_parallel) try {
+ std::span<Shader::Environment* const> envs, bool use_shader_workers,
+ bool force_context_flush) try {
LOG_INFO(Render_OpenGL, "0x{:016x}", key.Hash());
size_t env_index{};
u32 total_storage_buffers{};
@@ -531,10 +536,10 @@ std::unique_ptr<GraphicsPipeline> ShaderCache::CreateGraphicsPipeline(
}
previous_program = &program;
}
- auto* const thread_worker{build_in_parallel ? workers.get() : nullptr};
+ auto* const thread_worker{use_shader_workers ? workers.get() : nullptr};
return std::make_unique<GraphicsPipeline>(device, texture_cache, buffer_cache, program_manager,
state_tracker, thread_worker, &shader_notify, sources,
- sources_spirv, infos, key);
+ sources_spirv, infos, key, force_context_flush);
} catch (Shader::Exception& exception) {
LOG_ERROR(Render_OpenGL, "{}", exception.what());
@@ -559,8 +564,8 @@ std::unique_ptr<ComputePipeline> ShaderCache::CreateComputePipeline(
}
std::unique_ptr<ComputePipeline> ShaderCache::CreateComputePipeline(
- ShaderContext::ShaderPools& pools, const ComputePipelineKey& key,
- Shader::Environment& env) try {
+ ShaderContext::ShaderPools& pools, const ComputePipelineKey& key, Shader::Environment& env,
+ bool force_context_flush) try {
LOG_INFO(Render_OpenGL, "0x{:016x}", key.Hash());
Shader::Maxwell::Flow::CFG cfg{env, pools.flow_block, env.StartAddress()};
@@ -589,7 +594,7 @@ std::unique_ptr<ComputePipeline> ShaderCache::CreateComputePipeline(
}
return std::make_unique<ComputePipeline>(device, texture_cache, buffer_cache, program_manager,
- program.info, code, code_spirv);
+ program.info, code, code_spirv, force_context_flush);
} catch (Shader::Exception& exception) {
LOG_ERROR(Render_OpenGL, "{}", exception.what());
return nullptr;
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.h b/src/video_core/renderer_opengl/gl_shader_cache.h
index f82420592..6b9732fca 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.h
+++ b/src/video_core/renderer_opengl/gl_shader_cache.h
@@ -50,14 +50,16 @@ private:
std::unique_ptr<GraphicsPipeline> CreateGraphicsPipeline(
ShaderContext::ShaderPools& pools, const GraphicsPipelineKey& key,
- std::span<Shader::Environment* const> envs, bool build_in_parallel);
+ std::span<Shader::Environment* const> envs, bool use_shader_workers,
+ bool force_context_flush = false);
std::unique_ptr<ComputePipeline> CreateComputePipeline(const ComputePipelineKey& key,
const VideoCommon::ShaderInfo* shader);
std::unique_ptr<ComputePipeline> CreateComputePipeline(ShaderContext::ShaderPools& pools,
const ComputePipelineKey& key,
- Shader::Environment& env);
+ Shader::Environment& env,
+ bool force_context_flush = false);
std::unique_ptr<ShaderWorker> CreateWorkers() const;
diff --git a/src/video_core/renderer_opengl/gl_shader_context.h b/src/video_core/renderer_opengl/gl_shader_context.h
index ca2bd8e8e..d12cd06fa 100644
--- a/src/video_core/renderer_opengl/gl_shader_context.h
+++ b/src/video_core/renderer_opengl/gl_shader_context.h
@@ -4,6 +4,7 @@
#pragma once
#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
#include "shader_recompiler/frontend/ir/basic_block.h"
#include "shader_recompiler/frontend/maxwell/control_flow.h"
@@ -15,9 +16,9 @@ struct ShaderPools {
inst.ReleaseContents();
}
- Shader::ObjectPool<Shader::IR::Inst> inst;
- Shader::ObjectPool<Shader::IR::Block> block;
- Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block;
+ Shader::ObjectPool<Shader::IR::Inst> inst{8192};
+ Shader::ObjectPool<Shader::IR::Block> block{32};
+ Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block{32};
};
struct Context {
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp
index 98841ae65..03d4b9d06 100644
--- a/src/video_core/renderer_opengl/gl_shader_manager.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp
@@ -3,7 +3,9 @@
#include <glad/glad.h>
+#include "video_core/host_shaders/opengl_lmem_warmup_comp.h"
#include "video_core/renderer_opengl/gl_shader_manager.h"
+#include "video_core/renderer_opengl/gl_shader_util.h"
namespace OpenGL {
@@ -17,6 +19,10 @@ ProgramManager::ProgramManager(const Device& device) {
if (device.UseAssemblyShaders()) {
glEnable(GL_COMPUTE_PROGRAM_NV);
}
+ if (device.HasLmemPerfBug()) {
+ lmem_warmup_program =
+ CreateProgram(HostShaders::OPENGL_LMEM_WARMUP_COMP, GL_COMPUTE_SHADER);
+ }
}
void ProgramManager::BindComputeProgram(GLuint program) {
@@ -98,6 +104,13 @@ void ProgramManager::BindAssemblyPrograms(std::span<const OGLAssemblyProgram, NU
void ProgramManager::RestoreGuestCompute() {}
+void ProgramManager::LocalMemoryWarmup() {
+ if (lmem_warmup_program.handle != 0) {
+ BindComputeProgram(lmem_warmup_program.handle);
+ glDispatchCompute(1, 1, 1);
+ }
+}
+
void ProgramManager::BindPipeline() {
if (!is_pipeline_bound) {
is_pipeline_bound = true;
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.h b/src/video_core/renderer_opengl/gl_shader_manager.h
index 07ffab77f..852d8c88e 100644
--- a/src/video_core/renderer_opengl/gl_shader_manager.h
+++ b/src/video_core/renderer_opengl/gl_shader_manager.h
@@ -30,6 +30,8 @@ public:
void RestoreGuestCompute();
+ void LocalMemoryWarmup();
+
private:
void BindPipeline();
@@ -44,6 +46,7 @@ private:
u32 current_stage_mask = 0;
std::array<GLuint, NUM_STAGES> current_programs{};
GLuint current_assembly_compute_program = 0;
+ OGLProgram lmem_warmup_program;
};
} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_staging_buffer_pool.cpp b/src/video_core/renderer_opengl/gl_staging_buffer_pool.cpp
new file mode 100644
index 000000000..bbb06e51f
--- /dev/null
+++ b/src/video_core/renderer_opengl/gl_staging_buffer_pool.cpp
@@ -0,0 +1,150 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <array>
+#include <memory>
+#include <span>
+
+#include <glad/glad.h>
+
+#include "common/alignment.h"
+#include "common/assert.h"
+#include "common/bit_util.h"
+#include "common/microprofile.h"
+#include "video_core/renderer_opengl/gl_staging_buffer_pool.h"
+
+MICROPROFILE_DEFINE(OpenGL_BufferRequest, "OpenGL", "BufferRequest", MP_RGB(128, 128, 192));
+
+namespace OpenGL {
+
+StagingBufferMap::~StagingBufferMap() {
+ if (sync) {
+ sync->Create();
+ }
+}
+
+StagingBuffers::StagingBuffers(GLenum storage_flags_, GLenum map_flags_)
+ : storage_flags{storage_flags_}, map_flags{map_flags_} {}
+
+StagingBuffers::~StagingBuffers() = default;
+
+StagingBufferMap StagingBuffers::RequestMap(size_t requested_size, bool insert_fence) {
+ MICROPROFILE_SCOPE(OpenGL_BufferRequest);
+
+ const size_t index = RequestBuffer(requested_size);
+ OGLSync* const sync = insert_fence ? &syncs[index] : nullptr;
+ sync_indices[index] = insert_fence ? ++current_sync_index : 0;
+ return StagingBufferMap{
+ .mapped_span = std::span(maps[index], requested_size),
+ .sync = sync,
+ .buffer = buffers[index].handle,
+ };
+}
+
+size_t StagingBuffers::RequestBuffer(size_t requested_size) {
+ if (const std::optional<size_t> index = FindBuffer(requested_size); index) {
+ return *index;
+ }
+
+ OGLBuffer& buffer = buffers.emplace_back();
+ buffer.Create();
+ const auto next_pow2_size = Common::NextPow2(requested_size);
+ glNamedBufferStorage(buffer.handle, next_pow2_size, nullptr,
+ storage_flags | GL_MAP_PERSISTENT_BIT);
+ maps.push_back(static_cast<u8*>(glMapNamedBufferRange(buffer.handle, 0, next_pow2_size,
+ map_flags | GL_MAP_PERSISTENT_BIT)));
+ syncs.emplace_back();
+ sync_indices.emplace_back();
+ sizes.push_back(next_pow2_size);
+
+ ASSERT(syncs.size() == buffers.size() && buffers.size() == maps.size() &&
+ maps.size() == sizes.size());
+
+ return buffers.size() - 1;
+}
+
+std::optional<size_t> StagingBuffers::FindBuffer(size_t requested_size) {
+ size_t known_unsignaled_index = current_sync_index + 1;
+ size_t smallest_buffer = std::numeric_limits<size_t>::max();
+ std::optional<size_t> found;
+ const size_t num_buffers = sizes.size();
+ for (size_t index = 0; index < num_buffers; ++index) {
+ const size_t buffer_size = sizes[index];
+ if (buffer_size < requested_size || buffer_size >= smallest_buffer) {
+ continue;
+ }
+ if (syncs[index].handle != 0) {
+ if (sync_indices[index] >= known_unsignaled_index) {
+ // This fence is later than a fence that is known to not be signaled
+ continue;
+ }
+ if (!syncs[index].IsSignaled()) {
+ // Since this fence hasn't been signaled, it's safe to assume all later
+ // fences haven't been signaled either
+ known_unsignaled_index = std::min(known_unsignaled_index, sync_indices[index]);
+ continue;
+ }
+ syncs[index].Release();
+ }
+ smallest_buffer = buffer_size;
+ found = index;
+ }
+ return found;
+}
+
+StreamBuffer::StreamBuffer() {
+ static constexpr GLenum flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT;
+ buffer.Create();
+ glObjectLabel(GL_BUFFER, buffer.handle, -1, "Stream Buffer");
+ glNamedBufferStorage(buffer.handle, STREAM_BUFFER_SIZE, nullptr, flags);
+ mapped_pointer =
+ static_cast<u8*>(glMapNamedBufferRange(buffer.handle, 0, STREAM_BUFFER_SIZE, flags));
+ for (OGLSync& sync : fences) {
+ sync.Create();
+ }
+}
+
+std::pair<std::span<u8>, size_t> StreamBuffer::Request(size_t size) noexcept {
+ ASSERT(size < REGION_SIZE);
+ for (size_t region = Region(used_iterator), region_end = Region(iterator); region < region_end;
+ ++region) {
+ fences[region].Create();
+ }
+ used_iterator = iterator;
+
+ for (size_t region = Region(free_iterator) + 1,
+ region_end = std::min(Region(iterator + size) + 1, NUM_SYNCS);
+ region < region_end; ++region) {
+ glClientWaitSync(fences[region].handle, 0, GL_TIMEOUT_IGNORED);
+ fences[region].Release();
+ }
+ if (iterator + size >= free_iterator) {
+ free_iterator = iterator + size;
+ }
+ if (iterator + size > STREAM_BUFFER_SIZE) {
+ for (size_t region = Region(used_iterator); region < NUM_SYNCS; ++region) {
+ fences[region].Create();
+ }
+ used_iterator = 0;
+ iterator = 0;
+ free_iterator = size;
+
+ for (size_t region = 0, region_end = Region(size); region <= region_end; ++region) {
+ glClientWaitSync(fences[region].handle, 0, GL_TIMEOUT_IGNORED);
+ fences[region].Release();
+ }
+ }
+ const size_t offset = iterator;
+ iterator = Common::AlignUp(iterator + size, MAX_ALIGNMENT);
+ return {std::span(mapped_pointer + offset, size), offset};
+}
+
+StagingBufferMap StagingBufferPool::RequestUploadBuffer(size_t size) {
+ return upload_buffers.RequestMap(size, true);
+}
+
+StagingBufferMap StagingBufferPool::RequestDownloadBuffer(size_t size) {
+ return download_buffers.RequestMap(size, false);
+}
+
+} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_staging_buffer_pool.h b/src/video_core/renderer_opengl/gl_staging_buffer_pool.h
new file mode 100644
index 000000000..60f72d3a0
--- /dev/null
+++ b/src/video_core/renderer_opengl/gl_staging_buffer_pool.h
@@ -0,0 +1,95 @@
+// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <array>
+#include <optional>
+#include <span>
+#include <utility>
+#include <vector>
+
+#include <glad/glad.h>
+
+#include "common/common_types.h"
+#include "common/literals.h"
+#include "video_core/renderer_opengl/gl_resource_manager.h"
+
+namespace OpenGL {
+
+using namespace Common::Literals;
+
+struct StagingBufferMap {
+ ~StagingBufferMap();
+
+ std::span<u8> mapped_span;
+ size_t offset = 0;
+ OGLSync* sync;
+ GLuint buffer;
+};
+
+struct StagingBuffers {
+ explicit StagingBuffers(GLenum storage_flags_, GLenum map_flags_);
+ ~StagingBuffers();
+
+ StagingBufferMap RequestMap(size_t requested_size, bool insert_fence);
+
+ size_t RequestBuffer(size_t requested_size);
+
+ std::optional<size_t> FindBuffer(size_t requested_size);
+
+ std::vector<OGLSync> syncs;
+ std::vector<OGLBuffer> buffers;
+ std::vector<u8*> maps;
+ std::vector<size_t> sizes;
+ std::vector<size_t> sync_indices;
+ GLenum storage_flags;
+ GLenum map_flags;
+ size_t current_sync_index = 0;
+};
+
+class StreamBuffer {
+ static constexpr size_t STREAM_BUFFER_SIZE = 64_MiB;
+ static constexpr size_t NUM_SYNCS = 16;
+ static constexpr size_t REGION_SIZE = STREAM_BUFFER_SIZE / NUM_SYNCS;
+ static constexpr size_t MAX_ALIGNMENT = 256;
+ static_assert(STREAM_BUFFER_SIZE % MAX_ALIGNMENT == 0);
+ static_assert(STREAM_BUFFER_SIZE % NUM_SYNCS == 0);
+ static_assert(REGION_SIZE % MAX_ALIGNMENT == 0);
+
+public:
+ explicit StreamBuffer();
+
+ [[nodiscard]] std::pair<std::span<u8>, size_t> Request(size_t size) noexcept;
+
+ [[nodiscard]] GLuint Handle() const noexcept {
+ return buffer.handle;
+ }
+
+private:
+ [[nodiscard]] static size_t Region(size_t offset) noexcept {
+ return offset / REGION_SIZE;
+ }
+
+ size_t iterator = 0;
+ size_t used_iterator = 0;
+ size_t free_iterator = 0;
+ u8* mapped_pointer = nullptr;
+ OGLBuffer buffer;
+ std::array<OGLSync, NUM_SYNCS> fences;
+};
+
+class StagingBufferPool {
+public:
+ StagingBufferPool() = default;
+ ~StagingBufferPool() = default;
+
+ StagingBufferMap RequestUploadBuffer(size_t size);
+ StagingBufferMap RequestDownloadBuffer(size_t size);
+
+private:
+ StagingBuffers upload_buffers{GL_MAP_WRITE_BIT, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT};
+ StagingBuffers download_buffers{GL_MAP_READ_BIT | GL_CLIENT_STORAGE_BIT, GL_MAP_READ_BIT};
+};
+
+} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_stream_buffer.cpp b/src/video_core/renderer_opengl/gl_stream_buffer.cpp
deleted file mode 100644
index 2005c8993..000000000
--- a/src/video_core/renderer_opengl/gl_stream_buffer.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#include <array>
-#include <memory>
-#include <span>
-
-#include <glad/glad.h>
-
-#include "common/alignment.h"
-#include "common/assert.h"
-#include "video_core/renderer_opengl/gl_stream_buffer.h"
-
-namespace OpenGL {
-
-StreamBuffer::StreamBuffer() {
- static constexpr GLenum flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT;
- buffer.Create();
- glObjectLabel(GL_BUFFER, buffer.handle, -1, "Stream Buffer");
- glNamedBufferStorage(buffer.handle, STREAM_BUFFER_SIZE, nullptr, flags);
- mapped_pointer =
- static_cast<u8*>(glMapNamedBufferRange(buffer.handle, 0, STREAM_BUFFER_SIZE, flags));
- for (OGLSync& sync : fences) {
- sync.Create();
- }
-}
-
-std::pair<std::span<u8>, size_t> StreamBuffer::Request(size_t size) noexcept {
- ASSERT(size < REGION_SIZE);
- for (size_t region = Region(used_iterator), region_end = Region(iterator); region < region_end;
- ++region) {
- fences[region].Create();
- }
- used_iterator = iterator;
-
- for (size_t region = Region(free_iterator) + 1,
- region_end = std::min(Region(iterator + size) + 1, NUM_SYNCS);
- region < region_end; ++region) {
- glClientWaitSync(fences[region].handle, 0, GL_TIMEOUT_IGNORED);
- fences[region].Release();
- }
- if (iterator + size >= free_iterator) {
- free_iterator = iterator + size;
- }
- if (iterator + size > STREAM_BUFFER_SIZE) {
- for (size_t region = Region(used_iterator); region < NUM_SYNCS; ++region) {
- fences[region].Create();
- }
- used_iterator = 0;
- iterator = 0;
- free_iterator = size;
-
- for (size_t region = 0, region_end = Region(size); region <= region_end; ++region) {
- glClientWaitSync(fences[region].handle, 0, GL_TIMEOUT_IGNORED);
- fences[region].Release();
- }
- }
- const size_t offset = iterator;
- iterator = Common::AlignUp(iterator + size, MAX_ALIGNMENT);
- return {std::span(mapped_pointer + offset, size), offset};
-}
-
-} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_stream_buffer.h b/src/video_core/renderer_opengl/gl_stream_buffer.h
deleted file mode 100644
index 8fe927aaf..000000000
--- a/src/video_core/renderer_opengl/gl_stream_buffer.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <array>
-#include <span>
-#include <utility>
-
-#include <glad/glad.h>
-
-#include "common/common_types.h"
-#include "common/literals.h"
-#include "video_core/renderer_opengl/gl_resource_manager.h"
-
-namespace OpenGL {
-
-using namespace Common::Literals;
-
-class StreamBuffer {
- static constexpr size_t STREAM_BUFFER_SIZE = 64_MiB;
- static constexpr size_t NUM_SYNCS = 16;
- static constexpr size_t REGION_SIZE = STREAM_BUFFER_SIZE / NUM_SYNCS;
- static constexpr size_t MAX_ALIGNMENT = 256;
- static_assert(STREAM_BUFFER_SIZE % MAX_ALIGNMENT == 0);
- static_assert(STREAM_BUFFER_SIZE % NUM_SYNCS == 0);
- static_assert(REGION_SIZE % MAX_ALIGNMENT == 0);
-
-public:
- explicit StreamBuffer();
-
- [[nodiscard]] std::pair<std::span<u8>, size_t> Request(size_t size) noexcept;
-
- [[nodiscard]] GLuint Handle() const noexcept {
- return buffer.handle;
- }
-
-private:
- [[nodiscard]] static size_t Region(size_t offset) noexcept {
- return offset / REGION_SIZE;
- }
-
- size_t iterator = 0;
- size_t used_iterator = 0;
- size_t free_iterator = 0;
- u8* mapped_pointer = nullptr;
- OGLBuffer buffer;
- std::array<OGLSync, NUM_SYNCS> fences;
-};
-
-} // namespace OpenGL
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp
index 9f7ce7414..3b446be07 100644
--- a/src/video_core/renderer_opengl/gl_texture_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp
@@ -112,13 +112,17 @@ GLenum ImageTarget(Shader::TextureType type, int num_samples = 1) {
return GL_NONE;
}
-GLenum TextureMode(PixelFormat format, bool is_first) {
+GLenum TextureMode(PixelFormat format, std::array<SwizzleSource, 4> swizzle) {
+ bool any_r =
+ std::ranges::any_of(swizzle, [](SwizzleSource s) { return s == SwizzleSource::R; });
switch (format) {
case PixelFormat::D24_UNORM_S8_UINT:
case PixelFormat::D32_FLOAT_S8_UINT:
- return is_first ? GL_DEPTH_COMPONENT : GL_STENCIL_INDEX;
+ // R = depth, G = stencil
+ return any_r ? GL_DEPTH_COMPONENT : GL_STENCIL_INDEX;
case PixelFormat::S8_UINT_D24_UNORM:
- return is_first ? GL_STENCIL_INDEX : GL_DEPTH_COMPONENT;
+ // R = stencil, G = depth
+ return any_r ? GL_STENCIL_INDEX : GL_DEPTH_COMPONENT;
default:
ASSERT(false);
return GL_DEPTH_COMPONENT;
@@ -208,8 +212,7 @@ void ApplySwizzle(GLuint handle, PixelFormat format, std::array<SwizzleSource, 4
case PixelFormat::D32_FLOAT_S8_UINT:
case PixelFormat::S8_UINT_D24_UNORM:
UNIMPLEMENTED_IF(swizzle[0] != SwizzleSource::R && swizzle[0] != SwizzleSource::G);
- glTextureParameteri(handle, GL_DEPTH_STENCIL_TEXTURE_MODE,
- TextureMode(format, swizzle[0] == SwizzleSource::R));
+ glTextureParameteri(handle, GL_DEPTH_STENCIL_TEXTURE_MODE, TextureMode(format, swizzle));
std::ranges::transform(swizzle, swizzle.begin(), ConvertGreenRed);
break;
case PixelFormat::A5B5G5R1_UNORM: {
@@ -228,8 +231,11 @@ void ApplySwizzle(GLuint handle, PixelFormat format, std::array<SwizzleSource, 4
[[nodiscard]] bool CanBeAccelerated(const TextureCacheRuntime& runtime,
const VideoCommon::ImageInfo& info) {
- if (IsPixelFormatASTC(info.format)) {
- return !runtime.HasNativeASTC() && Settings::values.accelerate_astc.GetValue();
+ if (IsPixelFormatASTC(info.format) && info.size.depth == 1 && !runtime.HasNativeASTC()) {
+ return Settings::values.accelerate_astc.GetValue() &&
+ Settings::values.astc_recompression.GetValue() ==
+ Settings::AstcRecompression::Uncompressed &&
+ !Settings::values.async_astc.GetValue();
}
// Disable other accelerated uploads for now as they don't implement swizzled uploads
return false;
@@ -258,6 +264,14 @@ void ApplySwizzle(GLuint handle, PixelFormat format, std::array<SwizzleSource, 4
return format_info.compatibility_class == store_class;
}
+[[nodiscard]] bool CanBeDecodedAsync(const TextureCacheRuntime& runtime,
+ const VideoCommon::ImageInfo& info) {
+ if (IsPixelFormatASTC(info.format) && !runtime.HasNativeASTC()) {
+ return Settings::values.async_astc.GetValue();
+ }
+ return false;
+}
+
[[nodiscard]] CopyOrigin MakeCopyOrigin(VideoCommon::Offset3D offset,
VideoCommon::SubresourceLayers subresource, GLenum target) {
switch (target) {
@@ -425,18 +439,31 @@ OGLTexture MakeImage(const VideoCommon::ImageInfo& info, GLenum gl_internal_form
return GL_R32UI;
}
-} // Anonymous namespace
+[[nodiscard]] bool IsAstcRecompressionEnabled() {
+ return Settings::values.astc_recompression.GetValue() !=
+ Settings::AstcRecompression::Uncompressed;
+}
-ImageBufferMap::~ImageBufferMap() {
- if (sync) {
- sync->Create();
+[[nodiscard]] GLenum SelectAstcFormat(PixelFormat format, bool is_srgb) {
+ switch (Settings::values.astc_recompression.GetValue()) {
+ case Settings::AstcRecompression::Bc1:
+ return is_srgb ? GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT : GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
+ break;
+ case Settings::AstcRecompression::Bc3:
+ return is_srgb ? GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT : GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
+ break;
+ default:
+ return is_srgb ? GL_SRGB8_ALPHA8 : GL_RGBA8;
}
}
+} // Anonymous namespace
TextureCacheRuntime::TextureCacheRuntime(const Device& device_, ProgramManager& program_manager,
- StateTracker& state_tracker_)
- : device{device_}, state_tracker{state_tracker_}, util_shaders(program_manager),
- format_conversion_pass{util_shaders}, resolution{Settings::values.resolution_info} {
+ StateTracker& state_tracker_,
+ StagingBufferPool& staging_buffer_pool_)
+ : device{device_}, state_tracker{state_tracker_}, staging_buffer_pool{staging_buffer_pool_},
+ util_shaders(program_manager), format_conversion_pass{util_shaders},
+ resolution{Settings::values.resolution_info} {
static constexpr std::array TARGETS{GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY, GL_TEXTURE_3D};
for (size_t i = 0; i < TARGETS.size(); ++i) {
const GLenum target = TARGETS[i];
@@ -526,12 +553,12 @@ void TextureCacheRuntime::Finish() {
glFinish();
}
-ImageBufferMap TextureCacheRuntime::UploadStagingBuffer(size_t size) {
- return upload_buffers.RequestMap(size, true);
+StagingBufferMap TextureCacheRuntime::UploadStagingBuffer(size_t size) {
+ return staging_buffer_pool.RequestUploadBuffer(size);
}
-ImageBufferMap TextureCacheRuntime::DownloadStagingBuffer(size_t size) {
- return download_buffers.RequestMap(size, false);
+StagingBufferMap TextureCacheRuntime::DownloadStagingBuffer(size_t size) {
+ return staging_buffer_pool.RequestDownloadBuffer(size);
}
u64 TextureCacheRuntime::GetDeviceMemoryUsage() const {
@@ -557,6 +584,14 @@ void TextureCacheRuntime::CopyImage(Image& dst_image, Image& src_image,
}
}
+void TextureCacheRuntime::CopyImageMSAA(Image& dst_image, Image& src_image,
+ std::span<const VideoCommon::ImageCopy> copies) {
+ LOG_DEBUG(Render_OpenGL, "Copying from {} samples to {} samples", src_image.info.num_samples,
+ dst_image.info.num_samples);
+ // TODO: Leverage the format conversion pass if possible/accurate.
+ util_shaders.CopyMSAA(dst_image, src_image, copies);
+}
+
void TextureCacheRuntime::ReinterpretImage(Image& dst, Image& src,
std::span<const VideoCommon::ImageCopy> copies) {
LOG_DEBUG(Render_OpenGL, "Converting {} to {}", src.info.format, dst.info.format);
@@ -608,7 +643,7 @@ void TextureCacheRuntime::BlitFramebuffer(Framebuffer* dst, Framebuffer* src,
is_linear ? GL_LINEAR : GL_NEAREST);
}
-void TextureCacheRuntime::AccelerateImageUpload(Image& image, const ImageBufferMap& map,
+void TextureCacheRuntime::AccelerateImageUpload(Image& image, const StagingBufferMap& map,
std::span<const SwizzleParameters> swizzles) {
switch (image.info.type) {
case ImageType::e2D:
@@ -650,78 +685,27 @@ bool TextureCacheRuntime::HasNativeASTC() const noexcept {
return device.HasASTC();
}
-TextureCacheRuntime::StagingBuffers::StagingBuffers(GLenum storage_flags_, GLenum map_flags_)
- : storage_flags{storage_flags_}, map_flags{map_flags_} {}
-
-TextureCacheRuntime::StagingBuffers::~StagingBuffers() = default;
-
-ImageBufferMap TextureCacheRuntime::StagingBuffers::RequestMap(size_t requested_size,
- bool insert_fence) {
- const size_t index = RequestBuffer(requested_size);
- OGLSync* const sync = insert_fence ? &syncs[index] : nullptr;
- return ImageBufferMap{
- .mapped_span = std::span(maps[index], requested_size),
- .sync = sync,
- .buffer = buffers[index].handle,
- };
-}
-
-size_t TextureCacheRuntime::StagingBuffers::RequestBuffer(size_t requested_size) {
- if (const std::optional<size_t> index = FindBuffer(requested_size); index) {
- return *index;
- }
-
- OGLBuffer& buffer = buffers.emplace_back();
- buffer.Create();
- glNamedBufferStorage(buffer.handle, requested_size, nullptr,
- storage_flags | GL_MAP_PERSISTENT_BIT);
- maps.push_back(static_cast<u8*>(glMapNamedBufferRange(buffer.handle, 0, requested_size,
- map_flags | GL_MAP_PERSISTENT_BIT)));
-
- syncs.emplace_back();
- sizes.push_back(requested_size);
-
- ASSERT(syncs.size() == buffers.size() && buffers.size() == maps.size() &&
- maps.size() == sizes.size());
-
- return buffers.size() - 1;
-}
-
-std::optional<size_t> TextureCacheRuntime::StagingBuffers::FindBuffer(size_t requested_size) {
- size_t smallest_buffer = std::numeric_limits<size_t>::max();
- std::optional<size_t> found;
- const size_t num_buffers = sizes.size();
- for (size_t index = 0; index < num_buffers; ++index) {
- const size_t buffer_size = sizes[index];
- if (buffer_size < requested_size || buffer_size >= smallest_buffer) {
- continue;
- }
- if (syncs[index].handle != 0) {
- GLint status;
- glGetSynciv(syncs[index].handle, GL_SYNC_STATUS, 1, nullptr, &status);
- if (status != GL_SIGNALED) {
- continue;
- }
- syncs[index].Release();
- }
- smallest_buffer = buffer_size;
- found = index;
- }
- return found;
-}
-
Image::Image(TextureCacheRuntime& runtime_, const VideoCommon::ImageInfo& info_, GPUVAddr gpu_addr_,
VAddr cpu_addr_)
: VideoCommon::ImageBase(info_, gpu_addr_, cpu_addr_), runtime{&runtime_} {
- if (CanBeAccelerated(*runtime, info)) {
+ if (CanBeDecodedAsync(*runtime, info)) {
+ flags |= ImageFlagBits::AsynchronousDecode;
+ } else if (CanBeAccelerated(*runtime, info)) {
flags |= ImageFlagBits::AcceleratedUpload;
}
if (IsConverted(runtime->device, info.format, info.type)) {
flags |= ImageFlagBits::Converted;
flags |= ImageFlagBits::CostlyLoad;
- gl_internal_format = IsPixelFormatSRGB(info.format) ? GL_SRGB8_ALPHA8 : GL_RGBA8;
+
+ const bool is_srgb = IsPixelFormatSRGB(info.format);
+ gl_internal_format = is_srgb ? GL_SRGB8_ALPHA8 : GL_RGBA8;
gl_format = GL_RGBA;
gl_type = GL_UNSIGNED_INT_8_8_8_8_REV;
+
+ if (IsPixelFormatASTC(info.format) && IsAstcRecompressionEnabled()) {
+ gl_internal_format = SelectAstcFormat(info.format, is_srgb);
+ gl_format = GL_NONE;
+ }
} else {
const auto& tuple = MaxwellToGL::GetFormatTuple(info.format);
gl_internal_format = tuple.internal_format;
@@ -743,14 +727,14 @@ Image::Image(const VideoCommon::NullImageParams& params) : VideoCommon::ImageBas
Image::~Image() = default;
-void Image::UploadMemory(const ImageBufferMap& map,
+void Image::UploadMemory(GLuint buffer_handle, size_t buffer_offset,
std::span<const VideoCommon::BufferImageCopy> copies) {
const bool is_rescaled = True(flags & ImageFlagBits::Rescaled);
if (is_rescaled) {
ScaleDown(true);
}
- glBindBuffer(GL_PIXEL_UNPACK_BUFFER, map.buffer);
- glFlushMappedBufferRange(GL_PIXEL_UNPACK_BUFFER, map.offset, unswizzled_size_bytes);
+ glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer_handle);
+ glFlushMappedBufferRange(GL_PIXEL_UNPACK_BUFFER, buffer_offset, unswizzled_size_bytes);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
@@ -769,45 +753,65 @@ void Image::UploadMemory(const ImageBufferMap& map,
current_image_height = copy.buffer_image_height;
glPixelStorei(GL_UNPACK_IMAGE_HEIGHT, current_image_height);
}
- CopyBufferToImage(copy, map.offset);
+ CopyBufferToImage(copy, buffer_offset);
}
if (is_rescaled) {
ScaleUp();
}
}
-void Image::DownloadMemory(ImageBufferMap& map,
+void Image::UploadMemory(const StagingBufferMap& map,
+ std::span<const VideoCommon::BufferImageCopy> copies) {
+ UploadMemory(map.buffer, map.offset, copies);
+}
+
+void Image::DownloadMemory(GLuint buffer_handle, size_t buffer_offset,
+ std::span<const VideoCommon::BufferImageCopy> copies) {
+ std::array buffer_handles{buffer_handle};
+ std::array buffer_offsets{buffer_offset};
+ DownloadMemory(buffer_handles, buffer_offsets, copies);
+}
+
+void Image::DownloadMemory(std::span<GLuint> buffer_handles, std::span<size_t> buffer_offsets,
std::span<const VideoCommon::BufferImageCopy> copies) {
const bool is_rescaled = True(flags & ImageFlagBits::Rescaled);
if (is_rescaled) {
ScaleDown();
}
glMemoryBarrier(GL_PIXEL_BUFFER_BARRIER_BIT); // TODO: Move this to its own API
- glBindBuffer(GL_PIXEL_PACK_BUFFER, map.buffer);
- glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ for (size_t i = 0; i < buffer_handles.size(); i++) {
+ auto& buffer_handle = buffer_handles[i];
+ glBindBuffer(GL_PIXEL_PACK_BUFFER, buffer_handle);
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
- u32 current_row_length = std::numeric_limits<u32>::max();
- u32 current_image_height = std::numeric_limits<u32>::max();
+ u32 current_row_length = std::numeric_limits<u32>::max();
+ u32 current_image_height = std::numeric_limits<u32>::max();
- for (const VideoCommon::BufferImageCopy& copy : copies) {
- if (copy.image_subresource.base_level >= gl_num_levels) {
- continue;
- }
- if (current_row_length != copy.buffer_row_length) {
- current_row_length = copy.buffer_row_length;
- glPixelStorei(GL_PACK_ROW_LENGTH, current_row_length);
- }
- if (current_image_height != copy.buffer_image_height) {
- current_image_height = copy.buffer_image_height;
- glPixelStorei(GL_PACK_IMAGE_HEIGHT, current_image_height);
+ for (const VideoCommon::BufferImageCopy& copy : copies) {
+ if (copy.image_subresource.base_level >= gl_num_levels) {
+ continue;
+ }
+ if (current_row_length != copy.buffer_row_length) {
+ current_row_length = copy.buffer_row_length;
+ glPixelStorei(GL_PACK_ROW_LENGTH, current_row_length);
+ }
+ if (current_image_height != copy.buffer_image_height) {
+ current_image_height = copy.buffer_image_height;
+ glPixelStorei(GL_PACK_IMAGE_HEIGHT, current_image_height);
+ }
+ CopyImageToBuffer(copy, buffer_offsets[i]);
}
- CopyImageToBuffer(copy, map.offset);
}
if (is_rescaled) {
ScaleUp(true);
}
}
+void Image::DownloadMemory(StagingBufferMap& map,
+ std::span<const VideoCommon::BufferImageCopy> copies) {
+ DownloadMemory(map.buffer, map.offset, copies);
+}
+
GLuint Image::StorageHandle() noexcept {
switch (info.format) {
case PixelFormat::A8B8G8R8_SRGB:
@@ -821,9 +825,12 @@ GLuint Image::StorageHandle() noexcept {
case PixelFormat::ASTC_2D_8X5_SRGB:
case PixelFormat::ASTC_2D_5X4_SRGB:
case PixelFormat::ASTC_2D_5X5_SRGB:
+ case PixelFormat::ASTC_2D_10X5_SRGB:
+ case PixelFormat::ASTC_2D_10X6_SRGB:
case PixelFormat::ASTC_2D_10X8_SRGB:
case PixelFormat::ASTC_2D_6X6_SRGB:
case PixelFormat::ASTC_2D_10X10_SRGB:
+ case PixelFormat::ASTC_2D_12X10_SRGB:
case PixelFormat::ASTC_2D_12X12_SRGB:
case PixelFormat::ASTC_2D_8X6_SRGB:
case PixelFormat::ASTC_2D_6X5_SRGB:
@@ -1083,10 +1090,16 @@ bool Image::ScaleDown(bool ignore) {
ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewInfo& info,
ImageId image_id_, Image& image, const SlotVector<Image>&)
- : VideoCommon::ImageViewBase{info, image.info, image_id_}, views{runtime.null_image_views} {
+ : VideoCommon::ImageViewBase{info, image.info, image_id_, image.gpu_addr},
+ views{runtime.null_image_views} {
const Device& device = runtime.device;
if (True(image.flags & ImageFlagBits::Converted)) {
- internal_format = IsPixelFormatSRGB(info.format) ? GL_SRGB8_ALPHA8 : GL_RGBA8;
+ const bool is_srgb = IsPixelFormatSRGB(info.format);
+ internal_format = is_srgb ? GL_SRGB8_ALPHA8 : GL_RGBA8;
+
+ if (IsPixelFormatASTC(info.format) && IsAstcRecompressionEnabled()) {
+ internal_format = SelectAstcFormat(info.format, is_srgb);
+ }
} else {
internal_format = MaxwellToGL::GetFormatTuple(format).internal_format;
}
@@ -1174,12 +1187,12 @@ ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewI
ImageView::ImageView(TextureCacheRuntime&, const VideoCommon::ImageInfo& info,
const VideoCommon::ImageViewInfo& view_info, GPUVAddr gpu_addr_)
- : VideoCommon::ImageViewBase{info, view_info}, gpu_addr{gpu_addr_},
+ : VideoCommon::ImageViewBase{info, view_info, gpu_addr_},
buffer_size{VideoCommon::CalculateGuestSizeInBytes(info)} {}
ImageView::ImageView(TextureCacheRuntime&, const VideoCommon::ImageInfo& info,
const VideoCommon::ImageViewInfo& view_info)
- : VideoCommon::ImageViewBase{info, view_info} {}
+ : VideoCommon::ImageViewBase{info, view_info, 0} {}
ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::NullImageViewParams& params)
: VideoCommon::ImageViewBase{params}, views{runtime.null_image_views} {}
@@ -1239,7 +1252,7 @@ GLuint ImageView::MakeView(Shader::TextureType view_type, GLenum view_format) {
ApplySwizzle(view.handle, format, casted_swizzle);
}
if (set_object_label) {
- const std::string name = VideoCommon::Name(*this);
+ const std::string name = VideoCommon::Name(*this, gpu_addr);
glObjectLabel(GL_TEXTURE, view.handle, static_cast<GLsizei>(name.size()), name.data());
}
return view.handle;
@@ -1255,36 +1268,48 @@ Sampler::Sampler(TextureCacheRuntime& runtime, const TSCEntry& config) {
UNIMPLEMENTED_IF(config.cubemap_anisotropy != 1);
- sampler.Create();
- const GLuint handle = sampler.handle;
- glSamplerParameteri(handle, GL_TEXTURE_WRAP_S, MaxwellToGL::WrapMode(config.wrap_u));
- glSamplerParameteri(handle, GL_TEXTURE_WRAP_T, MaxwellToGL::WrapMode(config.wrap_v));
- glSamplerParameteri(handle, GL_TEXTURE_WRAP_R, MaxwellToGL::WrapMode(config.wrap_p));
- glSamplerParameteri(handle, GL_TEXTURE_COMPARE_MODE, compare_mode);
- glSamplerParameteri(handle, GL_TEXTURE_COMPARE_FUNC, compare_func);
- glSamplerParameteri(handle, GL_TEXTURE_MAG_FILTER, mag);
- glSamplerParameteri(handle, GL_TEXTURE_MIN_FILTER, min);
- glSamplerParameterf(handle, GL_TEXTURE_LOD_BIAS, config.LodBias());
- glSamplerParameterf(handle, GL_TEXTURE_MIN_LOD, config.MinLod());
- glSamplerParameterf(handle, GL_TEXTURE_MAX_LOD, config.MaxLod());
- glSamplerParameterfv(handle, GL_TEXTURE_BORDER_COLOR, config.BorderColor().data());
-
- if (GLAD_GL_ARB_texture_filter_anisotropic || GLAD_GL_EXT_texture_filter_anisotropic) {
- const f32 max_anisotropy = std::clamp(config.MaxAnisotropy(), 1.0f, 16.0f);
- glSamplerParameterf(handle, GL_TEXTURE_MAX_ANISOTROPY, max_anisotropy);
- } else {
- LOG_WARNING(Render_OpenGL, "GL_ARB_texture_filter_anisotropic is required");
- }
- if (GLAD_GL_ARB_texture_filter_minmax || GLAD_GL_EXT_texture_filter_minmax) {
- glSamplerParameteri(handle, GL_TEXTURE_REDUCTION_MODE_ARB, reduction_filter);
- } else if (reduction_filter != GL_WEIGHTED_AVERAGE_ARB) {
- LOG_WARNING(Render_OpenGL, "GL_ARB_texture_filter_minmax is required");
- }
- if (GLAD_GL_ARB_seamless_cubemap_per_texture || GLAD_GL_AMD_seamless_cubemap_per_texture) {
- glSamplerParameteri(handle, GL_TEXTURE_CUBE_MAP_SEAMLESS, seamless);
- } else if (seamless == GL_FALSE) {
- // We default to false because it's more common
- LOG_WARNING(Render_OpenGL, "GL_ARB_seamless_cubemap_per_texture is required");
+ const f32 max_anisotropy = std::clamp(config.MaxAnisotropy(), 1.0f, 16.0f);
+
+ const auto create_sampler = [&](const f32 anisotropy) {
+ OGLSampler new_sampler;
+ new_sampler.Create();
+ const GLuint handle = new_sampler.handle;
+ glSamplerParameteri(handle, GL_TEXTURE_WRAP_S, MaxwellToGL::WrapMode(config.wrap_u));
+ glSamplerParameteri(handle, GL_TEXTURE_WRAP_T, MaxwellToGL::WrapMode(config.wrap_v));
+ glSamplerParameteri(handle, GL_TEXTURE_WRAP_R, MaxwellToGL::WrapMode(config.wrap_p));
+ glSamplerParameteri(handle, GL_TEXTURE_COMPARE_MODE, compare_mode);
+ glSamplerParameteri(handle, GL_TEXTURE_COMPARE_FUNC, compare_func);
+ glSamplerParameteri(handle, GL_TEXTURE_MAG_FILTER, mag);
+ glSamplerParameteri(handle, GL_TEXTURE_MIN_FILTER, min);
+ glSamplerParameterf(handle, GL_TEXTURE_LOD_BIAS, config.LodBias());
+ glSamplerParameterf(handle, GL_TEXTURE_MIN_LOD, config.MinLod());
+ glSamplerParameterf(handle, GL_TEXTURE_MAX_LOD, config.MaxLod());
+ glSamplerParameterfv(handle, GL_TEXTURE_BORDER_COLOR, config.BorderColor().data());
+
+ if (GLAD_GL_ARB_texture_filter_anisotropic || GLAD_GL_EXT_texture_filter_anisotropic) {
+ glSamplerParameterf(handle, GL_TEXTURE_MAX_ANISOTROPY, anisotropy);
+ } else {
+ LOG_WARNING(Render_OpenGL, "GL_ARB_texture_filter_anisotropic is required");
+ }
+ if (GLAD_GL_ARB_texture_filter_minmax || GLAD_GL_EXT_texture_filter_minmax) {
+ glSamplerParameteri(handle, GL_TEXTURE_REDUCTION_MODE_ARB, reduction_filter);
+ } else if (reduction_filter != GL_WEIGHTED_AVERAGE_ARB) {
+ LOG_WARNING(Render_OpenGL, "GL_ARB_texture_filter_minmax is required");
+ }
+ if (GLAD_GL_ARB_seamless_cubemap_per_texture || GLAD_GL_AMD_seamless_cubemap_per_texture) {
+ glSamplerParameteri(handle, GL_TEXTURE_CUBE_MAP_SEAMLESS, seamless);
+ } else if (seamless == GL_FALSE) {
+ // We default to false because it's more common
+ LOG_WARNING(Render_OpenGL, "GL_ARB_seamless_cubemap_per_texture is required");
+ }
+ return new_sampler;
+ };
+
+ sampler = create_sampler(max_anisotropy);
+
+ const f32 max_anisotropy_default = static_cast<f32>(1U << config.max_anisotropy);
+ if (max_anisotropy > max_anisotropy_default) {
+ sampler_default_anisotropy = create_sampler(max_anisotropy_default);
}
}
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h
index 5d9d370f2..3676eaaa9 100644
--- a/src/video_core/renderer_opengl/gl_texture_cache.h
+++ b/src/video_core/renderer_opengl/gl_texture_cache.h
@@ -11,6 +11,7 @@
#include "shader_recompiler/shader_info.h"
#include "video_core/renderer_opengl/gl_device.h"
#include "video_core/renderer_opengl/gl_resource_manager.h"
+#include "video_core/renderer_opengl/gl_staging_buffer_pool.h"
#include "video_core/renderer_opengl/util_shaders.h"
#include "video_core/texture_cache/image_view_base.h"
#include "video_core/texture_cache/texture_cache_base.h"
@@ -37,15 +38,6 @@ using VideoCommon::Region2D;
using VideoCommon::RenderTargets;
using VideoCommon::SlotVector;
-struct ImageBufferMap {
- ~ImageBufferMap();
-
- std::span<u8> mapped_span;
- size_t offset = 0;
- OGLSync* sync;
- GLuint buffer;
-};
-
struct FormatProperties {
GLenum compatibility_class;
bool compatibility_by_size;
@@ -74,14 +66,15 @@ class TextureCacheRuntime {
public:
explicit TextureCacheRuntime(const Device& device, ProgramManager& program_manager,
- StateTracker& state_tracker);
+ StateTracker& state_tracker,
+ StagingBufferPool& staging_buffer_pool);
~TextureCacheRuntime();
void Finish();
- ImageBufferMap UploadStagingBuffer(size_t size);
+ StagingBufferMap UploadStagingBuffer(size_t size);
- ImageBufferMap DownloadStagingBuffer(size_t size);
+ StagingBufferMap DownloadStagingBuffer(size_t size);
u64 GetDeviceLocalMemory() const {
return device_access_memory;
@@ -93,12 +86,19 @@ public:
return device.CanReportMemoryUsage();
}
- bool ShouldReinterpret([[maybe_unused]] Image& dst, [[maybe_unused]] Image& src) {
+ bool ShouldReinterpret([[maybe_unused]] Image& dst,
+ [[maybe_unused]] Image& src) const noexcept {
+ return true;
+ }
+
+ bool CanUploadMSAA() const noexcept {
return true;
}
void CopyImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
+ void CopyImageMSAA(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
+
void ReinterpretImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
void ConvertImage(Framebuffer* dst, ImageView& dst_view, ImageView& src_view) {
@@ -113,7 +113,7 @@ public:
const Region2D& src_region, Tegra::Engines::Fermi2D::Filter filter,
Tegra::Engines::Fermi2D::Operation operation);
- void AccelerateImageUpload(Image& image, const ImageBufferMap& map,
+ void AccelerateImageUpload(Image& image, const StagingBufferMap& map,
std::span<const VideoCommon::SwizzleParameters> swizzles);
void InsertUploadMemoryBarrier();
@@ -137,36 +137,21 @@ public:
return state_tracker;
}
-private:
- struct StagingBuffers {
- explicit StagingBuffers(GLenum storage_flags_, GLenum map_flags_);
- ~StagingBuffers();
-
- ImageBufferMap RequestMap(size_t requested_size, bool insert_fence);
-
- size_t RequestBuffer(size_t requested_size);
-
- std::optional<size_t> FindBuffer(size_t requested_size);
-
- std::vector<OGLSync> syncs;
- std::vector<OGLBuffer> buffers;
- std::vector<u8*> maps;
- std::vector<size_t> sizes;
- GLenum storage_flags;
- GLenum map_flags;
- };
+ void BarrierFeedbackLoop() const noexcept {
+ // OpenGL does not require a barrier for attachment feedback loops.
+ }
+private:
const Device& device;
StateTracker& state_tracker;
+ StagingBufferPool& staging_buffer_pool;
+
UtilShaders util_shaders;
FormatConversionPass format_conversion_pass;
std::array<std::unordered_map<GLenum, FormatProperties>, 3> format_properties;
bool has_broken_texture_view_formats = false;
- StagingBuffers upload_buffers{GL_MAP_WRITE_BIT, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT};
- StagingBuffers download_buffers{GL_MAP_READ_BIT | GL_CLIENT_STORAGE_BIT, GL_MAP_READ_BIT};
-
OGLTexture null_image_1d_array;
OGLTexture null_image_cube_array;
OGLTexture null_image_3d;
@@ -199,10 +184,20 @@ public:
Image(Image&&) = default;
Image& operator=(Image&&) = default;
- void UploadMemory(const ImageBufferMap& map,
+ void UploadMemory(GLuint buffer_handle, size_t buffer_offset,
std::span<const VideoCommon::BufferImageCopy> copies);
- void DownloadMemory(ImageBufferMap& map, std::span<const VideoCommon::BufferImageCopy> copies);
+ void UploadMemory(const StagingBufferMap& map,
+ std::span<const VideoCommon::BufferImageCopy> copies);
+
+ void DownloadMemory(GLuint buffer_handle, size_t buffer_offset,
+ std::span<const VideoCommon::BufferImageCopy> copies);
+
+ void DownloadMemory(std::span<GLuint> buffer_handle, std::span<size_t> buffer_offset,
+ std::span<const VideoCommon::BufferImageCopy> copies);
+
+ void DownloadMemory(StagingBufferMap& map,
+ std::span<const VideoCommon::BufferImageCopy> copies);
GLuint StorageHandle() noexcept;
@@ -298,7 +293,6 @@ private:
std::unique_ptr<StorageViews> storage_views;
GLenum internal_format = GL_NONE;
GLuint default_handle = 0;
- GPUVAddr gpu_addr = 0;
u32 buffer_size = 0;
GLuint original_texture = 0;
int num_samples = 0;
@@ -315,12 +309,21 @@ class Sampler {
public:
explicit Sampler(TextureCacheRuntime&, const Tegra::Texture::TSCEntry&);
- GLuint Handle() const noexcept {
+ [[nodiscard]] GLuint Handle() const noexcept {
return sampler.handle;
}
+ [[nodiscard]] GLuint HandleWithDefaultAnisotropy() const noexcept {
+ return sampler_default_anisotropy.handle;
+ }
+
+ [[nodiscard]] bool HasAddedAnisotropy() const noexcept {
+ return static_cast<bool>(sampler_default_anisotropy.handle);
+ }
+
private:
OGLSampler sampler;
+ OGLSampler sampler_default_anisotropy;
};
class Framebuffer {
@@ -363,6 +366,7 @@ struct TextureCacheParams {
using Sampler = OpenGL::Sampler;
using Framebuffer = OpenGL::Framebuffer;
using AsyncBuffer = u32;
+ using BufferType = GLuint;
};
using TextureCache = VideoCommon::TextureCache<TextureCacheParams>;
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h
index ef1190e1f..c7dc7e0a1 100644
--- a/src/video_core/renderer_opengl/maxwell_to_gl.h
+++ b/src/video_core/renderer_opengl/maxwell_to_gl.h
@@ -100,10 +100,13 @@ constexpr std::array<FormatTuple, VideoCore::Surface::MaxPixelFormat> FORMAT_TAB
{GL_COMPRESSED_RGBA_ASTC_6x6_KHR}, // ASTC_2D_6X6_UNORM
{GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR}, // ASTC_2D_6X6_SRGB
{GL_COMPRESSED_RGBA_ASTC_10x6_KHR}, // ASTC_2D_10X6_UNORM
+ {GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR}, // ASTC_2D_10X6_SRGB
{GL_COMPRESSED_RGBA_ASTC_10x5_KHR}, // ASTC_2D_10X5_UNORM
{GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR}, // ASTC_2D_10X5_SRGB
{GL_COMPRESSED_RGBA_ASTC_10x10_KHR}, // ASTC_2D_10X10_UNORM
{GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR}, // ASTC_2D_10X10_SRGB
+ {GL_COMPRESSED_RGBA_ASTC_12x10_KHR}, // ASTC_2D_12X10_UNORM
+ {GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR}, // ASTC_2D_12X10_SRGB
{GL_COMPRESSED_RGBA_ASTC_12x12_KHR}, // ASTC_2D_12X12_UNORM
{GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR}, // ASTC_2D_12X12_SRGB
{GL_COMPRESSED_RGBA_ASTC_8x6_KHR}, // ASTC_2D_8X6_UNORM
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index de95f2634..2a74c1d05 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -17,8 +17,14 @@
#include "core/frontend/emu_window.h"
#include "core/memory.h"
#include "core/telemetry_session.h"
+#include "video_core/host_shaders/ffx_a_h.h"
+#include "video_core/host_shaders/ffx_fsr1_h.h"
+#include "video_core/host_shaders/full_screen_triangle_vert.h"
#include "video_core/host_shaders/fxaa_frag.h"
#include "video_core/host_shaders/fxaa_vert.h"
+#include "video_core/host_shaders/opengl_fidelityfx_fsr_easu_frag.h"
+#include "video_core/host_shaders/opengl_fidelityfx_fsr_frag.h"
+#include "video_core/host_shaders/opengl_fidelityfx_fsr_rcas_frag.h"
#include "video_core/host_shaders/opengl_present_frag.h"
#include "video_core/host_shaders/opengl_present_scaleforce_frag.h"
#include "video_core/host_shaders/opengl_present_vert.h"
@@ -31,6 +37,7 @@
#include "video_core/host_shaders/smaa_edge_detection_vert.h"
#include "video_core/host_shaders/smaa_neighborhood_blending_frag.h"
#include "video_core/host_shaders/smaa_neighborhood_blending_vert.h"
+#include "video_core/renderer_opengl/gl_fsr.h"
#include "video_core/renderer_opengl/gl_rasterizer.h"
#include "video_core/renderer_opengl/gl_shader_manager.h"
#include "video_core/renderer_opengl/gl_shader_util.h"
@@ -268,12 +275,17 @@ void RendererOpenGL::InitOpenGLObjects() {
fxaa_vertex = CreateProgram(HostShaders::FXAA_VERT, GL_VERTEX_SHADER);
fxaa_fragment = CreateProgram(HostShaders::FXAA_FRAG, GL_FRAGMENT_SHADER);
- const auto SmaaShader = [](std::string_view specialized_source, GLenum stage) {
- std::string shader_source{specialized_source};
- constexpr std::string_view include_string = "#include \"opengl_smaa.glsl\"";
+ const auto replace_include = [](std::string& shader_source, std::string_view include_name,
+ std::string_view include_content) {
+ const std::string include_string = fmt::format("#include \"{}\"", include_name);
const std::size_t pos = shader_source.find(include_string);
ASSERT(pos != std::string::npos);
- shader_source.replace(pos, include_string.size(), HostShaders::OPENGL_SMAA_GLSL);
+ shader_source.replace(pos, include_string.size(), include_content);
+ };
+
+ const auto SmaaShader = [&](std::string_view specialized_source, GLenum stage) {
+ std::string shader_source{specialized_source};
+ replace_include(shader_source, "opengl_smaa.glsl", HostShaders::OPENGL_SMAA_GLSL);
return CreateProgram(shader_source, stage);
};
@@ -298,14 +310,32 @@ void RendererOpenGL::InitOpenGLObjects() {
CreateProgram(fmt::format("#version 460\n{}", HostShaders::OPENGL_PRESENT_SCALEFORCE_FRAG),
GL_FRAGMENT_SHADER);
+ std::string fsr_source{HostShaders::OPENGL_FIDELITYFX_FSR_FRAG};
+ replace_include(fsr_source, "ffx_a.h", HostShaders::FFX_A_H);
+ replace_include(fsr_source, "ffx_fsr1.h", HostShaders::FFX_FSR1_H);
+
+ std::string fsr_easu_frag_source{HostShaders::OPENGL_FIDELITYFX_FSR_EASU_FRAG};
+ std::string fsr_rcas_frag_source{HostShaders::OPENGL_FIDELITYFX_FSR_RCAS_FRAG};
+ replace_include(fsr_easu_frag_source, "opengl_fidelityfx_fsr.frag", fsr_source);
+ replace_include(fsr_rcas_frag_source, "opengl_fidelityfx_fsr.frag", fsr_source);
+
+ fsr = std::make_unique<FSR>(HostShaders::FULL_SCREEN_TRIANGLE_VERT, fsr_easu_frag_source,
+ fsr_rcas_frag_source);
+
// Generate presentation sampler
present_sampler.Create();
glSamplerParameteri(present_sampler.handle, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glSamplerParameteri(present_sampler.handle, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ glSamplerParameteri(present_sampler.handle, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+ glSamplerParameteri(present_sampler.handle, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
+ glSamplerParameteri(present_sampler.handle, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
present_sampler_nn.Create();
glSamplerParameteri(present_sampler_nn.handle, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glSamplerParameteri(present_sampler_nn.handle, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ glSamplerParameteri(present_sampler_nn.handle, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+ glSamplerParameteri(present_sampler_nn.handle, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
+ glSamplerParameteri(present_sampler_nn.handle, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
// Generate VBO handle for drawing
vertex_buffer.Create();
@@ -525,6 +555,31 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
glBindTextureUnit(0, aa_texture.handle);
}
+ glDisablei(GL_SCISSOR_TEST, 0);
+
+ if (Settings::values.scaling_filter.GetValue() == Settings::ScalingFilter::Fsr) {
+ if (!fsr->AreBuffersInitialized()) {
+ fsr->InitBuffers();
+ }
+
+ auto crop_rect = framebuffer_crop_rect;
+ if (crop_rect.GetWidth() == 0) {
+ crop_rect.right = framebuffer_width;
+ }
+ if (crop_rect.GetHeight() == 0) {
+ crop_rect.bottom = framebuffer_height;
+ }
+ crop_rect = crop_rect.Scale(Settings::values.resolution_info.up_factor);
+ const auto fsr_input_width = Settings::values.resolution_info.ScaleUp(framebuffer_width);
+ const auto fsr_input_height = Settings::values.resolution_info.ScaleUp(framebuffer_height);
+ glBindSampler(0, present_sampler.handle);
+ fsr->Draw(program_manager, layout.screen, fsr_input_width, fsr_input_height, crop_rect);
+ } else {
+ if (fsr->AreBuffersInitialized()) {
+ fsr->ReleaseBuffers();
+ }
+ }
+
const std::array ortho_matrix =
MakeOrthographicMatrix(static_cast<float>(layout.width), static_cast<float>(layout.height));
@@ -540,10 +595,7 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
case Settings::ScalingFilter::ScaleForce:
return present_scaleforce_fragment.handle;
case Settings::ScalingFilter::Fsr:
- LOG_WARNING(
- Render_OpenGL,
- "FidelityFX Super Resolution is not supported in OpenGL, changing to ScaleForce");
- return present_scaleforce_fragment.handle;
+ return fsr->GetPresentFragmentProgram().handle;
default:
return present_bilinear_fragment.handle;
}
@@ -578,15 +630,18 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
f32 scale_u = static_cast<f32>(framebuffer_width) / static_cast<f32>(screen_info.texture.width);
f32 scale_v =
static_cast<f32>(framebuffer_height) / static_cast<f32>(screen_info.texture.height);
- // Scale the output by the crop width/height. This is commonly used with 1280x720 rendering
- // (e.g. handheld mode) on a 1920x1080 framebuffer.
- if (framebuffer_crop_rect.GetWidth() > 0) {
- scale_u = static_cast<f32>(framebuffer_crop_rect.GetWidth()) /
- static_cast<f32>(screen_info.texture.width);
- }
- if (framebuffer_crop_rect.GetHeight() > 0) {
- scale_v = static_cast<f32>(framebuffer_crop_rect.GetHeight()) /
- static_cast<f32>(screen_info.texture.height);
+
+ if (Settings::values.scaling_filter.GetValue() != Settings::ScalingFilter::Fsr) {
+ // Scale the output by the crop width/height. This is commonly used with 1280x720 rendering
+ // (e.g. handheld mode) on a 1920x1080 framebuffer.
+ if (framebuffer_crop_rect.GetWidth() > 0) {
+ scale_u = static_cast<f32>(framebuffer_crop_rect.GetWidth()) /
+ static_cast<f32>(screen_info.texture.width);
+ }
+ if (framebuffer_crop_rect.GetHeight() > 0) {
+ scale_v = static_cast<f32>(framebuffer_crop_rect.GetHeight()) /
+ static_cast<f32>(screen_info.texture.height);
+ }
}
if (Settings::values.anti_aliasing.GetValue() == Settings::AntiAliasing::Fxaa &&
!screen_info.was_accelerated) {
@@ -612,7 +667,6 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
} else {
glDisable(GL_FRAMEBUFFER_SRGB);
}
- glDisablei(GL_SCISSOR_TEST, 0);
glViewportIndexedf(0, 0.0f, 0.0f, static_cast<GLfloat>(layout.width),
static_cast<GLfloat>(layout.height));
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h
index cc97d7b26..f1d5fd954 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.h
+++ b/src/video_core/renderer_opengl/renderer_opengl.h
@@ -10,6 +10,7 @@
#include "video_core/renderer_base.h"
#include "video_core/renderer_opengl/gl_device.h"
+#include "video_core/renderer_opengl/gl_fsr.h"
#include "video_core/renderer_opengl/gl_rasterizer.h"
#include "video_core/renderer_opengl/gl_resource_manager.h"
#include "video_core/renderer_opengl/gl_shader_manager.h"
@@ -141,6 +142,8 @@ private:
OGLTexture smaa_edges_tex;
OGLTexture smaa_blend_tex;
+ std::unique_ptr<FSR> fsr;
+
/// OpenGL framebuffer data
std::vector<u8> gl_framebuffer_data;
diff --git a/src/video_core/renderer_opengl/util_shaders.cpp b/src/video_core/renderer_opengl/util_shaders.cpp
index 404def62e..544982d18 100644
--- a/src/video_core/renderer_opengl/util_shaders.cpp
+++ b/src/video_core/renderer_opengl/util_shaders.cpp
@@ -12,11 +12,14 @@
#include "video_core/host_shaders/astc_decoder_comp.h"
#include "video_core/host_shaders/block_linear_unswizzle_2d_comp.h"
#include "video_core/host_shaders/block_linear_unswizzle_3d_comp.h"
+#include "video_core/host_shaders/convert_msaa_to_non_msaa_comp.h"
+#include "video_core/host_shaders/convert_non_msaa_to_msaa_comp.h"
#include "video_core/host_shaders/opengl_convert_s8d24_comp.h"
#include "video_core/host_shaders/opengl_copy_bc4_comp.h"
#include "video_core/host_shaders/pitch_unswizzle_comp.h"
#include "video_core/renderer_opengl/gl_shader_manager.h"
#include "video_core/renderer_opengl/gl_shader_util.h"
+#include "video_core/renderer_opengl/gl_staging_buffer_pool.h"
#include "video_core/renderer_opengl/gl_texture_cache.h"
#include "video_core/renderer_opengl/util_shaders.h"
#include "video_core/texture_cache/accelerated_swizzle.h"
@@ -51,7 +54,9 @@ UtilShaders::UtilShaders(ProgramManager& program_manager_)
block_linear_unswizzle_3d_program(MakeProgram(BLOCK_LINEAR_UNSWIZZLE_3D_COMP)),
pitch_unswizzle_program(MakeProgram(PITCH_UNSWIZZLE_COMP)),
copy_bc4_program(MakeProgram(OPENGL_COPY_BC4_COMP)),
- convert_s8d24_program(MakeProgram(OPENGL_CONVERT_S8D24_COMP)) {
+ convert_s8d24_program(MakeProgram(OPENGL_CONVERT_S8D24_COMP)),
+ convert_ms_to_nonms_program(MakeProgram(CONVERT_MSAA_TO_NON_MSAA_COMP)),
+ convert_nonms_to_ms_program(MakeProgram(CONVERT_NON_MSAA_TO_MSAA_COMP)) {
const auto swizzle_table = Tegra::Texture::MakeSwizzleTable();
swizzle_table_buffer.Create();
glNamedBufferStorage(swizzle_table_buffer.handle, sizeof(swizzle_table), &swizzle_table, 0);
@@ -59,7 +64,7 @@ UtilShaders::UtilShaders(ProgramManager& program_manager_)
UtilShaders::~UtilShaders() = default;
-void UtilShaders::ASTCDecode(Image& image, const ImageBufferMap& map,
+void UtilShaders::ASTCDecode(Image& image, const StagingBufferMap& map,
std::span<const VideoCommon::SwizzleParameters> swizzles) {
static constexpr GLuint BINDING_INPUT_BUFFER = 0;
static constexpr GLuint BINDING_OUTPUT_IMAGE = 0;
@@ -107,7 +112,7 @@ void UtilShaders::ASTCDecode(Image& image, const ImageBufferMap& map,
program_manager.RestoreGuestCompute();
}
-void UtilShaders::BlockLinearUpload2D(Image& image, const ImageBufferMap& map,
+void UtilShaders::BlockLinearUpload2D(Image& image, const StagingBufferMap& map,
std::span<const SwizzleParameters> swizzles) {
static constexpr Extent3D WORKGROUP_SIZE{32, 32, 1};
static constexpr GLuint BINDING_SWIZZLE_BUFFER = 0;
@@ -144,7 +149,7 @@ void UtilShaders::BlockLinearUpload2D(Image& image, const ImageBufferMap& map,
program_manager.RestoreGuestCompute();
}
-void UtilShaders::BlockLinearUpload3D(Image& image, const ImageBufferMap& map,
+void UtilShaders::BlockLinearUpload3D(Image& image, const StagingBufferMap& map,
std::span<const SwizzleParameters> swizzles) {
static constexpr Extent3D WORKGROUP_SIZE{16, 8, 8};
@@ -185,7 +190,7 @@ void UtilShaders::BlockLinearUpload3D(Image& image, const ImageBufferMap& map,
program_manager.RestoreGuestCompute();
}
-void UtilShaders::PitchUpload(Image& image, const ImageBufferMap& map,
+void UtilShaders::PitchUpload(Image& image, const StagingBufferMap& map,
std::span<const SwizzleParameters> swizzles) {
static constexpr Extent3D WORKGROUP_SIZE{32, 32, 1};
static constexpr GLuint BINDING_INPUT_BUFFER = 0;
@@ -269,6 +274,33 @@ void UtilShaders::ConvertS8D24(Image& dst_image, std::span<const ImageCopy> copi
program_manager.RestoreGuestCompute();
}
+void UtilShaders::CopyMSAA(Image& dst_image, Image& src_image,
+ std::span<const VideoCommon::ImageCopy> copies) {
+ const bool is_ms_to_non_ms = src_image.info.num_samples > 1 && dst_image.info.num_samples == 1;
+ const auto program_handle =
+ is_ms_to_non_ms ? convert_ms_to_nonms_program.handle : convert_nonms_to_ms_program.handle;
+ program_manager.BindComputeProgram(program_handle);
+
+ for (const ImageCopy& copy : copies) {
+ ASSERT(copy.src_subresource.base_layer == 0);
+ ASSERT(copy.src_subresource.num_layers == 1);
+ ASSERT(copy.dst_subresource.base_layer == 0);
+ ASSERT(copy.dst_subresource.num_layers == 1);
+
+ glBindImageTexture(0, src_image.StorageHandle(), copy.src_subresource.base_level, GL_TRUE,
+ 0, GL_READ_ONLY, GL_RGBA8);
+ glBindImageTexture(1, dst_image.StorageHandle(), copy.dst_subresource.base_level, GL_TRUE,
+ 0, GL_WRITE_ONLY, GL_RGBA8);
+
+ const u32 num_dispatches_x = Common::DivCeil(copy.extent.width, 8U);
+ const u32 num_dispatches_y = Common::DivCeil(copy.extent.height, 8U);
+ const u32 num_dispatches_z = copy.extent.depth;
+
+ glDispatchCompute(num_dispatches_x, num_dispatches_y, num_dispatches_z);
+ }
+ program_manager.RestoreGuestCompute();
+}
+
GLenum StoreFormat(u32 bytes_per_block) {
switch (bytes_per_block) {
case 1:
diff --git a/src/video_core/renderer_opengl/util_shaders.h b/src/video_core/renderer_opengl/util_shaders.h
index 44efb6ecf..feecd404c 100644
--- a/src/video_core/renderer_opengl/util_shaders.h
+++ b/src/video_core/renderer_opengl/util_shaders.h
@@ -16,23 +16,23 @@ namespace OpenGL {
class Image;
class ProgramManager;
-struct ImageBufferMap;
+struct StagingBufferMap;
class UtilShaders {
public:
explicit UtilShaders(ProgramManager& program_manager);
~UtilShaders();
- void ASTCDecode(Image& image, const ImageBufferMap& map,
+ void ASTCDecode(Image& image, const StagingBufferMap& map,
std::span<const VideoCommon::SwizzleParameters> swizzles);
- void BlockLinearUpload2D(Image& image, const ImageBufferMap& map,
+ void BlockLinearUpload2D(Image& image, const StagingBufferMap& map,
std::span<const VideoCommon::SwizzleParameters> swizzles);
- void BlockLinearUpload3D(Image& image, const ImageBufferMap& map,
+ void BlockLinearUpload3D(Image& image, const StagingBufferMap& map,
std::span<const VideoCommon::SwizzleParameters> swizzles);
- void PitchUpload(Image& image, const ImageBufferMap& map,
+ void PitchUpload(Image& image, const StagingBufferMap& map,
std::span<const VideoCommon::SwizzleParameters> swizzles);
void CopyBC4(Image& dst_image, Image& src_image,
@@ -40,6 +40,9 @@ public:
void ConvertS8D24(Image& dst_image, std::span<const VideoCommon::ImageCopy> copies);
+ void CopyMSAA(Image& dst_image, Image& src_image,
+ std::span<const VideoCommon::ImageCopy> copies);
+
private:
ProgramManager& program_manager;
@@ -51,6 +54,8 @@ private:
OGLProgram pitch_unswizzle_program;
OGLProgram copy_bc4_program;
OGLProgram convert_s8d24_program;
+ OGLProgram convert_ms_to_nonms_program;
+ OGLProgram convert_nonms_to_ms_program;
};
GLenum StoreFormat(u32 bytes_per_block);
diff --git a/src/video_core/renderer_vulkan/blit_image.cpp b/src/video_core/renderer_vulkan/blit_image.cpp
index dd00d3edf..cf2964a3f 100644
--- a/src/video_core/renderer_vulkan/blit_image.cpp
+++ b/src/video_core/renderer_vulkan/blit_image.cpp
@@ -12,6 +12,8 @@
#include "video_core/host_shaders/convert_s8d24_to_abgr8_frag_spv.h"
#include "video_core/host_shaders/full_screen_triangle_vert_spv.h"
#include "video_core/host_shaders/vulkan_blit_depth_stencil_frag_spv.h"
+#include "video_core/host_shaders/vulkan_color_clear_frag_spv.h"
+#include "video_core/host_shaders/vulkan_color_clear_vert_spv.h"
#include "video_core/renderer_vulkan/blit_image.h"
#include "video_core/renderer_vulkan/maxwell_to_vk.h"
#include "video_core/renderer_vulkan/vk_scheduler.h"
@@ -69,10 +71,11 @@ constexpr VkDescriptorSetLayoutCreateInfo TWO_TEXTURES_DESCRIPTOR_SET_LAYOUT_CRE
.bindingCount = static_cast<u32>(TWO_TEXTURES_DESCRIPTOR_SET_LAYOUT_BINDINGS.size()),
.pBindings = TWO_TEXTURES_DESCRIPTOR_SET_LAYOUT_BINDINGS.data(),
};
-constexpr VkPushConstantRange PUSH_CONSTANT_RANGE{
- .stageFlags = VK_SHADER_STAGE_VERTEX_BIT,
+template <VkShaderStageFlags stageFlags, size_t size>
+inline constexpr VkPushConstantRange PUSH_CONSTANT_RANGE{
+ .stageFlags = stageFlags,
.offset = 0,
- .size = sizeof(PushConstants),
+ .size = static_cast<u32>(size),
};
constexpr VkPipelineVertexInputStateCreateInfo PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO{
.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO,
@@ -125,10 +128,8 @@ constexpr VkPipelineMultisampleStateCreateInfo PIPELINE_MULTISAMPLE_STATE_CREATE
.alphaToCoverageEnable = VK_FALSE,
.alphaToOneEnable = VK_FALSE,
};
-constexpr std::array DYNAMIC_STATES{
- VK_DYNAMIC_STATE_VIEWPORT,
- VK_DYNAMIC_STATE_SCISSOR,
-};
+constexpr std::array DYNAMIC_STATES{VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR,
+ VK_DYNAMIC_STATE_BLEND_CONSTANTS};
constexpr VkPipelineDynamicStateCreateInfo PIPELINE_DYNAMIC_STATE_CREATE_INFO{
.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO,
.pNext = nullptr,
@@ -205,15 +206,15 @@ inline constexpr VkSamplerCreateInfo SAMPLER_CREATE_INFO{
};
constexpr VkPipelineLayoutCreateInfo PipelineLayoutCreateInfo(
- const VkDescriptorSetLayout* set_layout) {
+ const VkDescriptorSetLayout* set_layout, vk::Span<VkPushConstantRange> push_constants) {
return VkPipelineLayoutCreateInfo{
.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
- .setLayoutCount = 1,
+ .setLayoutCount = (set_layout != nullptr ? 1u : 0u),
.pSetLayouts = set_layout,
- .pushConstantRangeCount = 1,
- .pPushConstantRanges = &PUSH_CONSTANT_RANGE,
+ .pushConstantRangeCount = push_constants.size(),
+ .pPushConstantRanges = push_constants.data(),
};
}
@@ -302,8 +303,7 @@ void UpdateTwoTexturesDescriptorSet(const Device& device, VkDescriptorSet descri
device.GetLogical().UpdateDescriptorSets(write_descriptor_sets, nullptr);
}
-void BindBlitState(vk::CommandBuffer cmdbuf, VkPipelineLayout layout, const Region2D& dst_region,
- const Region2D& src_region, const Extent3D& src_size = {1, 1, 1}) {
+void BindBlitState(vk::CommandBuffer cmdbuf, const Region2D& dst_region) {
const VkOffset2D offset{
.x = std::min(dst_region.start.x, dst_region.end.x),
.y = std::min(dst_region.start.y, dst_region.end.y),
@@ -325,6 +325,13 @@ void BindBlitState(vk::CommandBuffer cmdbuf, VkPipelineLayout layout, const Regi
.offset = offset,
.extent = extent,
};
+ cmdbuf.SetViewport(0, viewport);
+ cmdbuf.SetScissor(0, scissor);
+}
+
+void BindBlitState(vk::CommandBuffer cmdbuf, VkPipelineLayout layout, const Region2D& dst_region,
+ const Region2D& src_region, const Extent3D& src_size = {1, 1, 1}) {
+ BindBlitState(cmdbuf, dst_region);
const float scale_x = static_cast<float>(src_region.end.x - src_region.start.x) /
static_cast<float>(src_size.width);
const float scale_y = static_cast<float>(src_region.end.y - src_region.start.y) /
@@ -335,8 +342,6 @@ void BindBlitState(vk::CommandBuffer cmdbuf, VkPipelineLayout layout, const Regi
static_cast<float>(src_region.start.y) /
static_cast<float>(src_size.height)},
};
- cmdbuf.SetViewport(0, viewport);
- cmdbuf.SetScissor(0, scissor);
cmdbuf.PushConstants(layout, VK_SHADER_STAGE_VERTEX_BIT, push_constants);
}
@@ -408,13 +413,20 @@ BlitImageHelper::BlitImageHelper(const Device& device_, Scheduler& scheduler_,
descriptor_pool.Allocator(*one_texture_set_layout, TEXTURE_DESCRIPTOR_BANK_INFO<1>)},
two_textures_descriptor_allocator{
descriptor_pool.Allocator(*two_textures_set_layout, TEXTURE_DESCRIPTOR_BANK_INFO<2>)},
- one_texture_pipeline_layout(device.GetLogical().CreatePipelineLayout(
- PipelineLayoutCreateInfo(one_texture_set_layout.address()))),
- two_textures_pipeline_layout(device.GetLogical().CreatePipelineLayout(
- PipelineLayoutCreateInfo(two_textures_set_layout.address()))),
+ one_texture_pipeline_layout(device.GetLogical().CreatePipelineLayout(PipelineLayoutCreateInfo(
+ one_texture_set_layout.address(),
+ PUSH_CONSTANT_RANGE<VK_SHADER_STAGE_VERTEX_BIT, sizeof(PushConstants)>))),
+ two_textures_pipeline_layout(
+ device.GetLogical().CreatePipelineLayout(PipelineLayoutCreateInfo(
+ two_textures_set_layout.address(),
+ PUSH_CONSTANT_RANGE<VK_SHADER_STAGE_VERTEX_BIT, sizeof(PushConstants)>))),
+ clear_color_pipeline_layout(device.GetLogical().CreatePipelineLayout(PipelineLayoutCreateInfo(
+ nullptr, PUSH_CONSTANT_RANGE<VK_SHADER_STAGE_FRAGMENT_BIT, sizeof(float) * 4>))),
full_screen_vert(BuildShader(device, FULL_SCREEN_TRIANGLE_VERT_SPV)),
blit_color_to_color_frag(BuildShader(device, BLIT_COLOR_FLOAT_FRAG_SPV)),
blit_depth_stencil_frag(BuildShader(device, VULKAN_BLIT_DEPTH_STENCIL_FRAG_SPV)),
+ clear_color_vert(BuildShader(device, VULKAN_COLOR_CLEAR_VERT_SPV)),
+ clear_color_frag(BuildShader(device, VULKAN_COLOR_CLEAR_FRAG_SPV)),
convert_depth_to_float_frag(BuildShader(device, CONVERT_DEPTH_TO_FLOAT_FRAG_SPV)),
convert_float_to_depth_frag(BuildShader(device, CONVERT_FLOAT_TO_DEPTH_FRAG_SPV)),
convert_abgr8_to_d24s8_frag(BuildShader(device, CONVERT_ABGR8_TO_D24S8_FRAG_SPV)),
@@ -553,6 +565,30 @@ void BlitImageHelper::ConvertS8D24ToABGR8(const Framebuffer* dst_framebuffer,
ConvertDepthStencil(*convert_s8d24_to_abgr8_pipeline, dst_framebuffer, src_image_view);
}
+void BlitImageHelper::ClearColor(const Framebuffer* dst_framebuffer, u8 color_mask,
+ const std::array<f32, 4>& clear_color,
+ const Region2D& dst_region) {
+ const BlitImagePipelineKey key{
+ .renderpass = dst_framebuffer->RenderPass(),
+ .operation = Tegra::Engines::Fermi2D::Operation::BlendPremult,
+ };
+ const VkPipeline pipeline = FindOrEmplaceClearColorPipeline(key);
+ const VkPipelineLayout layout = *clear_color_pipeline_layout;
+ scheduler.RequestRenderpass(dst_framebuffer);
+ scheduler.Record(
+ [pipeline, layout, color_mask, clear_color, dst_region](vk::CommandBuffer cmdbuf) {
+ cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline);
+ const std::array blend_color = {
+ (color_mask & 0x1) ? 1.0f : 0.0f, (color_mask & 0x2) ? 1.0f : 0.0f,
+ (color_mask & 0x4) ? 1.0f : 0.0f, (color_mask & 0x8) ? 1.0f : 0.0f};
+ cmdbuf.SetBlendConstants(blend_color.data());
+ BindBlitState(cmdbuf, dst_region);
+ cmdbuf.PushConstants(layout, VK_SHADER_STAGE_FRAGMENT_BIT, clear_color);
+ cmdbuf.Draw(3, 1, 0, 0);
+ });
+ scheduler.InvalidateState();
+}
+
void BlitImageHelper::Convert(VkPipeline pipeline, const Framebuffer* dst_framebuffer,
const ImageView& src_image_view) {
const VkPipelineLayout layout = *one_texture_pipeline_layout;
@@ -728,6 +764,58 @@ VkPipeline BlitImageHelper::FindOrEmplaceDepthStencilPipeline(const BlitImagePip
return *blit_depth_stencil_pipelines.back();
}
+VkPipeline BlitImageHelper::FindOrEmplaceClearColorPipeline(const BlitImagePipelineKey& key) {
+ const auto it = std::ranges::find(clear_color_keys, key);
+ if (it != clear_color_keys.end()) {
+ return *clear_color_pipelines[std::distance(clear_color_keys.begin(), it)];
+ }
+ clear_color_keys.push_back(key);
+ const std::array stages = MakeStages(*clear_color_vert, *clear_color_frag);
+ const VkPipelineColorBlendAttachmentState color_blend_attachment_state{
+ .blendEnable = VK_TRUE,
+ .srcColorBlendFactor = VK_BLEND_FACTOR_CONSTANT_COLOR,
+ .dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR,
+ .colorBlendOp = VK_BLEND_OP_ADD,
+ .srcAlphaBlendFactor = VK_BLEND_FACTOR_CONSTANT_ALPHA,
+ .dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA,
+ .alphaBlendOp = VK_BLEND_OP_ADD,
+ .colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT |
+ VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT,
+ };
+ const VkPipelineColorBlendStateCreateInfo color_blend_state_generic_create_info{
+ .sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = 0,
+ .logicOpEnable = VK_FALSE,
+ .logicOp = VK_LOGIC_OP_CLEAR,
+ .attachmentCount = 1,
+ .pAttachments = &color_blend_attachment_state,
+ .blendConstants = {0.0f, 0.0f, 0.0f, 0.0f},
+ };
+ clear_color_pipelines.push_back(device.GetLogical().CreateGraphicsPipeline({
+ .sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = 0,
+ .stageCount = static_cast<u32>(stages.size()),
+ .pStages = stages.data(),
+ .pVertexInputState = &PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO,
+ .pInputAssemblyState = &PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO,
+ .pTessellationState = nullptr,
+ .pViewportState = &PIPELINE_VIEWPORT_STATE_CREATE_INFO,
+ .pRasterizationState = &PIPELINE_RASTERIZATION_STATE_CREATE_INFO,
+ .pMultisampleState = &PIPELINE_MULTISAMPLE_STATE_CREATE_INFO,
+ .pDepthStencilState = &PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO,
+ .pColorBlendState = &color_blend_state_generic_create_info,
+ .pDynamicState = &PIPELINE_DYNAMIC_STATE_CREATE_INFO,
+ .layout = *clear_color_pipeline_layout,
+ .renderPass = key.renderpass,
+ .subpass = 0,
+ .basePipelineHandle = VK_NULL_HANDLE,
+ .basePipelineIndex = 0,
+ }));
+ return *clear_color_pipelines.back();
+}
+
void BlitImageHelper::ConvertPipeline(vk::Pipeline& pipeline, VkRenderPass renderpass,
bool is_target_depth) {
if (pipeline) {
diff --git a/src/video_core/renderer_vulkan/blit_image.h b/src/video_core/renderer_vulkan/blit_image.h
index be8a9a2f6..2976a7d91 100644
--- a/src/video_core/renderer_vulkan/blit_image.h
+++ b/src/video_core/renderer_vulkan/blit_image.h
@@ -61,6 +61,9 @@ public:
void ConvertS8D24ToABGR8(const Framebuffer* dst_framebuffer, ImageView& src_image_view);
+ void ClearColor(const Framebuffer* dst_framebuffer, u8 color_mask,
+ const std::array<f32, 4>& clear_color, const Region2D& dst_region);
+
private:
void Convert(VkPipeline pipeline, const Framebuffer* dst_framebuffer,
const ImageView& src_image_view);
@@ -72,6 +75,8 @@ private:
[[nodiscard]] VkPipeline FindOrEmplaceDepthStencilPipeline(const BlitImagePipelineKey& key);
+ [[nodiscard]] VkPipeline FindOrEmplaceClearColorPipeline(const BlitImagePipelineKey& key);
+
void ConvertPipeline(vk::Pipeline& pipeline, VkRenderPass renderpass, bool is_target_depth);
void ConvertDepthToColorPipeline(vk::Pipeline& pipeline, VkRenderPass renderpass);
@@ -97,9 +102,12 @@ private:
DescriptorAllocator two_textures_descriptor_allocator;
vk::PipelineLayout one_texture_pipeline_layout;
vk::PipelineLayout two_textures_pipeline_layout;
+ vk::PipelineLayout clear_color_pipeline_layout;
vk::ShaderModule full_screen_vert;
vk::ShaderModule blit_color_to_color_frag;
vk::ShaderModule blit_depth_stencil_frag;
+ vk::ShaderModule clear_color_vert;
+ vk::ShaderModule clear_color_frag;
vk::ShaderModule convert_depth_to_float_frag;
vk::ShaderModule convert_float_to_depth_frag;
vk::ShaderModule convert_abgr8_to_d24s8_frag;
@@ -112,6 +120,8 @@ private:
std::vector<vk::Pipeline> blit_color_pipelines;
std::vector<BlitImagePipelineKey> blit_depth_stencil_keys;
std::vector<vk::Pipeline> blit_depth_stencil_pipelines;
+ std::vector<BlitImagePipelineKey> clear_color_keys;
+ std::vector<vk::Pipeline> clear_color_pipelines;
vk::Pipeline convert_d32_to_r32_pipeline;
vk::Pipeline convert_r32_to_d32_pipeline;
vk::Pipeline convert_d16_to_r16_pipeline;
diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
index f8398b511..e7df32d84 100644
--- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
+++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
@@ -271,7 +271,7 @@ bool FixedPipelineState::operator==(const FixedPipelineState& rhs) const noexcep
u32 FixedPipelineState::PackComparisonOp(Maxwell::ComparisonOp op) noexcept {
// OpenGL enums go from 0x200 to 0x207 and the others from 1 to 8
- // If we substract 0x200 to OpenGL enums and 1 to the others we get a 0-7 range.
+ // If we subtract 0x200 to OpenGL enums and 1 to the others we get a 0-7 range.
// Perfect for a hash.
const u32 value = static_cast<u32>(op);
return value - (value >= 0x200 ? 0x200 : 1);
@@ -322,8 +322,8 @@ Maxwell::StencilOp::Op FixedPipelineState::UnpackStencilOp(u32 packed) noexcept
}
u32 FixedPipelineState::PackCullFace(Maxwell::CullFace cull) noexcept {
- // FrontAndBack is 0x408, by substracting 0x406 in it we get 2.
- // Individual cull faces are in 0x404 and 0x405, substracting 0x404 we get 0 and 1.
+ // FrontAndBack is 0x408, by subtracting 0x406 in it we get 2.
+ // Individual cull faces are in 0x404 and 0x405, subtracting 0x404 we get 0 and 1.
const u32 value = static_cast<u32>(cull);
return value - (value == 0x408 ? 0x406 : 0x404);
}
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
index ca52e2389..9a0b10568 100644
--- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
@@ -6,6 +6,7 @@
#include "common/assert.h"
#include "common/common_types.h"
#include "common/logging/log.h"
+#include "common/settings.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/renderer_vulkan/maxwell_to_vk.h"
#include "video_core/surface.h"
@@ -166,7 +167,7 @@ struct FormatTuple {
{VK_FORMAT_R16G16_UINT, Attachable | Storage}, // R16G16_UINT
{VK_FORMAT_R16G16_SINT, Attachable | Storage}, // R16G16_SINT
{VK_FORMAT_R16G16_SNORM, Attachable | Storage}, // R16G16_SNORM
- {VK_FORMAT_UNDEFINED}, // R32G32B32_FLOAT
+ {VK_FORMAT_R32G32B32_SFLOAT}, // R32G32B32_FLOAT
{VK_FORMAT_A8B8G8R8_SRGB_PACK32, Attachable}, // A8B8G8R8_SRGB
{VK_FORMAT_R8G8_UNORM, Attachable | Storage}, // R8G8_UNORM
{VK_FORMAT_R8G8_SNORM, Attachable | Storage}, // R8G8_SNORM
@@ -197,10 +198,13 @@ struct FormatTuple {
{VK_FORMAT_ASTC_6x6_UNORM_BLOCK}, // ASTC_2D_6X6_UNORM
{VK_FORMAT_ASTC_6x6_SRGB_BLOCK}, // ASTC_2D_6X6_SRGB
{VK_FORMAT_ASTC_10x6_UNORM_BLOCK}, // ASTC_2D_10X6_UNORM
+ {VK_FORMAT_ASTC_10x6_SRGB_BLOCK}, // ASTC_2D_10X6_SRGB
{VK_FORMAT_ASTC_10x5_UNORM_BLOCK}, // ASTC_2D_10X5_UNORM
{VK_FORMAT_ASTC_10x5_SRGB_BLOCK}, // ASTC_2D_10X5_SRGB
{VK_FORMAT_ASTC_10x10_UNORM_BLOCK}, // ASTC_2D_10X10_UNORM
{VK_FORMAT_ASTC_10x10_SRGB_BLOCK}, // ASTC_2D_10X10_SRGB
+ {VK_FORMAT_ASTC_12x10_UNORM_BLOCK}, // ASTC_2D_12X10_UNORM
+ {VK_FORMAT_ASTC_12x10_SRGB_BLOCK}, // ASTC_2D_12X10_SRGB
{VK_FORMAT_ASTC_12x12_UNORM_BLOCK}, // ASTC_2D_12X12_UNORM
{VK_FORMAT_ASTC_12x12_SRGB_BLOCK}, // ASTC_2D_12X12_SRGB
{VK_FORMAT_ASTC_8x6_UNORM_BLOCK}, // ASTC_2D_8X6_UNORM
@@ -234,19 +238,25 @@ FormatInfo SurfaceFormat(const Device& device, FormatType format_type, bool with
PixelFormat pixel_format) {
ASSERT(static_cast<size_t>(pixel_format) < std::size(tex_format_tuples));
FormatTuple tuple = tex_format_tuples[static_cast<size_t>(pixel_format)];
- if (tuple.format == VK_FORMAT_UNDEFINED) {
- UNIMPLEMENTED_MSG("Unimplemented texture format with pixel format={}", pixel_format);
- return FormatInfo{VK_FORMAT_A8B8G8R8_UNORM_PACK32, true, true};
- }
-
- // Use A8B8G8R8_UNORM on hardware that doesn't support ASTC natively
+ // Transcode on hardware that doesn't support ASTC natively
if (!device.IsOptimalAstcSupported() && VideoCore::Surface::IsPixelFormatASTC(pixel_format)) {
const bool is_srgb = with_srgb && VideoCore::Surface::IsPixelFormatSRGB(pixel_format);
- if (is_srgb) {
- tuple.format = VK_FORMAT_A8B8G8R8_SRGB_PACK32;
- } else {
- tuple.format = VK_FORMAT_A8B8G8R8_UNORM_PACK32;
- tuple.usage |= Storage;
+
+ switch (Settings::values.astc_recompression.GetValue()) {
+ case Settings::AstcRecompression::Uncompressed:
+ if (is_srgb) {
+ tuple.format = VK_FORMAT_A8B8G8R8_SRGB_PACK32;
+ } else {
+ tuple.format = VK_FORMAT_A8B8G8R8_UNORM_PACK32;
+ tuple.usage |= Storage;
+ }
+ break;
+ case Settings::AstcRecompression::Bc1:
+ tuple.format = is_srgb ? VK_FORMAT_BC1_RGBA_SRGB_BLOCK : VK_FORMAT_BC1_RGBA_UNORM_BLOCK;
+ break;
+ case Settings::AstcRecompression::Bc3:
+ tuple.format = is_srgb ? VK_FORMAT_BC3_SRGB_BLOCK : VK_FORMAT_BC3_UNORM_BLOCK;
+ break;
}
}
const bool attachable = (tuple.usage & Attachable) != 0;
@@ -337,6 +347,14 @@ VkPrimitiveTopology PrimitiveTopology([[maybe_unused]] const Device& device,
VkFormat VertexFormat(const Device& device, Maxwell::VertexAttribute::Type type,
Maxwell::VertexAttribute::Size size) {
+ if (device.MustEmulateScaledFormats()) {
+ if (type == Maxwell::VertexAttribute::Type::SScaled) {
+ type = Maxwell::VertexAttribute::Type::SInt;
+ } else if (type == Maxwell::VertexAttribute::Type::UScaled) {
+ type = Maxwell::VertexAttribute::Type::UInt;
+ }
+ }
+
const VkFormat format{([&]() {
switch (type) {
case Maxwell::VertexAttribute::Type::UnusedEnumDoNotUseBecauseItWillGoAway:
diff --git a/src/video_core/renderer_vulkan/pipeline_helper.h b/src/video_core/renderer_vulkan/pipeline_helper.h
index 28b893e25..71c783709 100644
--- a/src/video_core/renderer_vulkan/pipeline_helper.h
+++ b/src/video_core/renderer_vulkan/pipeline_helper.h
@@ -176,9 +176,9 @@ public:
};
inline void PushImageDescriptors(TextureCache& texture_cache,
- UpdateDescriptorQueue& update_descriptor_queue,
+ GuestDescriptorQueue& guest_descriptor_queue,
const Shader::Info& info, RescalingPushConstant& rescaling,
- const VkSampler*& samplers,
+ const VideoCommon::SamplerId*& samplers,
const VideoCommon::ImageViewInOut*& views) {
const u32 num_texture_buffers = Shader::NumDescriptors(info.texture_buffer_descriptors);
const u32 num_image_buffers = Shader::NumDescriptors(info.image_buffer_descriptors);
@@ -187,10 +187,15 @@ inline void PushImageDescriptors(TextureCache& texture_cache,
for (const auto& desc : info.texture_descriptors) {
for (u32 index = 0; index < desc.count; ++index) {
const VideoCommon::ImageViewId image_view_id{(views++)->id};
- const VkSampler sampler{*(samplers++)};
+ const VideoCommon::SamplerId sampler_id{*(samplers++)};
ImageView& image_view{texture_cache.GetImageView(image_view_id)};
const VkImageView vk_image_view{image_view.Handle(desc.type)};
- update_descriptor_queue.AddSampledImage(vk_image_view, sampler);
+ const Sampler& sampler{texture_cache.GetSampler(sampler_id)};
+ const bool use_fallback_sampler{sampler.HasAddedAnisotropy() &&
+ !image_view.SupportsAnisotropy()};
+ const VkSampler vk_sampler{use_fallback_sampler ? sampler.HandleWithDefaultAnisotropy()
+ : sampler.Handle()};
+ guest_descriptor_queue.AddSampledImage(vk_image_view, vk_sampler);
rescaling.PushTexture(texture_cache.IsRescaling(image_view));
}
}
@@ -201,7 +206,7 @@ inline void PushImageDescriptors(TextureCache& texture_cache,
texture_cache.MarkModification(image_view.image_id);
}
const VkImageView vk_image_view{image_view.StorageView(desc.type, desc.format)};
- update_descriptor_queue.AddImage(vk_image_view);
+ guest_descriptor_queue.AddImage(vk_image_view);
rescaling.PushImage(texture_cache.IsRescaling(image_view));
}
}
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
index 2a8d9e377..ddf28ca28 100644
--- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp
+++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
@@ -16,7 +16,7 @@
#include "common/settings.h"
#include "common/telemetry.h"
#include "core/core_timing.h"
-#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
#include "core/telemetry_session.h"
#include "video_core/gpu.h"
#include "video_core/renderer_vulkan/renderer_vulkan.h"
@@ -84,17 +84,19 @@ RendererVulkan::RendererVulkan(Core::TelemetrySession& telemetry_session_,
Core::Memory::Memory& cpu_memory_, Tegra::GPU& gpu_,
std::unique_ptr<Core::Frontend::GraphicsContext> context_) try
: RendererBase(emu_window, std::move(context_)), telemetry_session(telemetry_session_),
- cpu_memory(cpu_memory_), gpu(gpu_), library(OpenLibrary()),
- instance(CreateInstance(library, dld, VK_API_VERSION_1_1, render_window.GetWindowInfo().type,
+ cpu_memory(cpu_memory_), gpu(gpu_), library(OpenLibrary(context.get())),
+ instance(CreateInstance(*library, dld, VK_API_VERSION_1_1, render_window.GetWindowInfo().type,
Settings::values.renderer_debug.GetValue())),
debug_callback(Settings::values.renderer_debug ? CreateDebugCallback(instance) : nullptr),
- surface(CreateSurface(instance, render_window)),
- device(CreateDevice(instance, dld, *surface)), memory_allocator(device, false),
- state_tracker(), scheduler(device, state_tracker),
+ surface(CreateSurface(instance, render_window.GetWindowInfo())),
+ device(CreateDevice(instance, dld, *surface)), memory_allocator(device), state_tracker(),
+ scheduler(device, state_tracker),
swapchain(*surface, device, scheduler, render_window.GetFramebufferLayout().width,
render_window.GetFramebufferLayout().height, false),
- blit_screen(cpu_memory, render_window, device, memory_allocator, swapchain, scheduler,
- screen_info),
+ present_manager(instance, render_window, device, memory_allocator, scheduler, swapchain,
+ surface),
+ blit_screen(cpu_memory, render_window, device, memory_allocator, swapchain, present_manager,
+ scheduler, screen_info),
rasterizer(render_window, gpu, cpu_memory, screen_info, device, memory_allocator,
state_tracker, scheduler) {
if (Settings::values.renderer_force_max_clock.GetValue() && device.ShouldBoostClocks()) {
@@ -121,46 +123,19 @@ void RendererVulkan::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
return;
}
// Update screen info if the framebuffer size has changed.
- if (screen_info.width != framebuffer->width || screen_info.height != framebuffer->height) {
- screen_info.width = framebuffer->width;
- screen_info.height = framebuffer->height;
- }
+ screen_info.width = framebuffer->width;
+ screen_info.height = framebuffer->height;
+
const VAddr framebuffer_addr = framebuffer->address + framebuffer->offset;
const bool use_accelerated =
rasterizer.AccelerateDisplay(*framebuffer, framebuffer_addr, framebuffer->stride);
const bool is_srgb = use_accelerated && screen_info.is_srgb;
RenderScreenshot(*framebuffer, use_accelerated);
- bool has_been_recreated = false;
- const auto recreate_swapchain = [&](u32 width, u32 height) {
- if (!has_been_recreated) {
- has_been_recreated = true;
- scheduler.Finish();
- }
- swapchain.Create(width, height, is_srgb);
- };
-
- const Layout::FramebufferLayout layout = render_window.GetFramebufferLayout();
- if (swapchain.NeedsRecreation(is_srgb) || swapchain.GetWidth() != layout.width ||
- swapchain.GetHeight() != layout.height) {
- recreate_swapchain(layout.width, layout.height);
- }
- bool is_outdated;
- do {
- swapchain.AcquireNextImage();
- is_outdated = swapchain.IsOutDated();
- if (is_outdated) {
- recreate_swapchain(layout.width, layout.height);
- }
- } while (is_outdated);
- if (has_been_recreated) {
- blit_screen.Recreate();
- }
- const VkSemaphore render_semaphore = blit_screen.DrawToSwapchain(*framebuffer, use_accelerated);
- const VkSemaphore present_semaphore = swapchain.CurrentPresentSemaphore();
- scheduler.Flush(render_semaphore, present_semaphore);
- scheduler.WaitWorker();
- swapchain.Present(render_semaphore);
+ Frame* frame = present_manager.GetRenderFrame();
+ blit_screen.DrawToSwapchain(frame, *framebuffer, use_accelerated, is_srgb);
+ scheduler.Flush(*frame->render_ready);
+ present_manager.Present(frame);
gpu.RendererFrameEndNotify();
rasterizer.TickFrame();
@@ -198,7 +173,7 @@ void Vulkan::RendererVulkan::RenderScreenshot(const Tegra::FramebufferConfig& fr
return;
}
const Layout::FramebufferLayout layout{renderer_settings.screenshot_framebuffer_layout};
- vk::Image staging_image = device.GetLogical().CreateImage(VkImageCreateInfo{
+ vk::Image staging_image = memory_allocator.CreateImage(VkImageCreateInfo{
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
.pNext = nullptr,
.flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT,
@@ -221,7 +196,6 @@ void Vulkan::RendererVulkan::RenderScreenshot(const Tegra::FramebufferConfig& fr
.pQueueFamilyIndices = nullptr,
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
});
- const auto image_commit = memory_allocator.Commit(staging_image, MemoryUsage::DeviceLocal);
const vk::ImageView dst_view = device.GetLogical().CreateImageView(VkImageViewCreateInfo{
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
@@ -246,8 +220,7 @@ void Vulkan::RendererVulkan::RenderScreenshot(const Tegra::FramebufferConfig& fr
});
const VkExtent2D render_area{.width = layout.width, .height = layout.height};
const vk::Framebuffer screenshot_fb = blit_screen.CreateFramebuffer(*dst_view, render_area);
- // Since we're not rendering to the screen, ignore the render semaphore.
- void(blit_screen.Draw(framebuffer, *screenshot_fb, layout, render_area, use_accelerated));
+ blit_screen.Draw(framebuffer, *screenshot_fb, layout, render_area, use_accelerated);
const auto buffer_size = static_cast<VkDeviceSize>(layout.width * layout.height * 4);
const VkBufferCreateInfo dst_buffer_info{
@@ -260,8 +233,8 @@ void Vulkan::RendererVulkan::RenderScreenshot(const Tegra::FramebufferConfig& fr
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
};
- const vk::Buffer dst_buffer = device.GetLogical().CreateBuffer(dst_buffer_info);
- MemoryCommit dst_buffer_memory = memory_allocator.Commit(dst_buffer, MemoryUsage::Download);
+ const vk::Buffer dst_buffer =
+ memory_allocator.CreateBuffer(dst_buffer_info, MemoryUsage::Download);
scheduler.RequestOutsideRenderPassOperationContext();
scheduler.Record([&](vk::CommandBuffer cmdbuf) {
@@ -270,7 +243,7 @@ void Vulkan::RendererVulkan::RenderScreenshot(const Tegra::FramebufferConfig& fr
.pNext = nullptr,
.srcAccessMask = VK_ACCESS_MEMORY_WRITE_BIT,
.dstAccessMask = VK_ACCESS_TRANSFER_READ_BIT,
- .oldLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
+ .oldLayout = VK_IMAGE_LAYOUT_GENERAL,
.newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
@@ -335,8 +308,9 @@ void Vulkan::RendererVulkan::RenderScreenshot(const Tegra::FramebufferConfig& fr
scheduler.Finish();
// Copy backing image data to the QImage screenshot buffer
- const auto dst_memory_map = dst_buffer_memory.Map();
- std::memcpy(renderer_settings.screenshot_bits, dst_memory_map.data(), dst_memory_map.size());
+ dst_buffer.Invalidate();
+ std::memcpy(renderer_settings.screenshot_bits, dst_buffer.Mapped().data(),
+ dst_buffer.Mapped().size());
renderer_settings.screenshot_complete_callback(false);
renderer_settings.screenshot_requested = false;
}
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.h b/src/video_core/renderer_vulkan/renderer_vulkan.h
index 009e75e0d..b2e8cbd1b 100644
--- a/src/video_core/renderer_vulkan/renderer_vulkan.h
+++ b/src/video_core/renderer_vulkan/renderer_vulkan.h
@@ -9,6 +9,7 @@
#include "common/dynamic_library.h"
#include "video_core/renderer_base.h"
#include "video_core/renderer_vulkan/vk_blit_screen.h"
+#include "video_core/renderer_vulkan/vk_present_manager.h"
#include "video_core/renderer_vulkan/vk_rasterizer.h"
#include "video_core/renderer_vulkan/vk_scheduler.h"
#include "video_core/renderer_vulkan/vk_state_tracker.h"
@@ -53,6 +54,10 @@ public:
return device.GetDriverName();
}
+ void NotifySurfaceChanged() override {
+ present_manager.NotifySurfaceChanged();
+ }
+
private:
void Report() const;
@@ -62,7 +67,7 @@ private:
Core::Memory::Memory& cpu_memory;
Tegra::GPU& gpu;
- Common::DynamicLibrary library;
+ std::shared_ptr<Common::DynamicLibrary> library;
vk::InstanceDispatch dld;
vk::Instance instance;
@@ -76,6 +81,7 @@ private:
StateTracker state_tracker;
Scheduler scheduler;
Swapchain swapchain;
+ PresentManager present_manager;
BlitScreen blit_screen;
RasterizerVulkan rasterizer;
std::optional<TurboMode> turbo_mode;
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
index 2f0cc27e8..ad3b29f0e 100644
--- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp
+++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
@@ -74,7 +74,7 @@ struct ScreenRectVertex {
}
};
-constexpr std::array<f32, 4 * 4> MakeOrthographicMatrix(f32 width, f32 height) {
+std::array<f32, 4 * 4> MakeOrthographicMatrix(f32 width, f32 height) {
// clang-format off
return { 2.f / width, 0.f, 0.f, 0.f,
0.f, 2.f / height, 0.f, 0.f,
@@ -122,10 +122,12 @@ struct BlitScreen::BufferData {
BlitScreen::BlitScreen(Core::Memory::Memory& cpu_memory_, Core::Frontend::EmuWindow& render_window_,
const Device& device_, MemoryAllocator& memory_allocator_,
- Swapchain& swapchain_, Scheduler& scheduler_, const ScreenInfo& screen_info_)
+ Swapchain& swapchain_, PresentManager& present_manager_,
+ Scheduler& scheduler_, const ScreenInfo& screen_info_)
: cpu_memory{cpu_memory_}, render_window{render_window_}, device{device_},
- memory_allocator{memory_allocator_}, swapchain{swapchain_}, scheduler{scheduler_},
- image_count{swapchain.GetImageCount()}, screen_info{screen_info_} {
+ memory_allocator{memory_allocator_}, swapchain{swapchain_}, present_manager{present_manager_},
+ scheduler{scheduler_}, image_count{swapchain.GetImageCount()}, screen_info{screen_info_},
+ current_srgb{swapchain.IsSrgb()}, image_view_format{swapchain.GetImageViewFormat()} {
resource_ticks.resize(image_count);
CreateStaticResources();
@@ -135,25 +137,20 @@ BlitScreen::BlitScreen(Core::Memory::Memory& cpu_memory_, Core::Frontend::EmuWin
BlitScreen::~BlitScreen() = default;
void BlitScreen::Recreate() {
+ present_manager.WaitPresent();
+ scheduler.Finish();
+ device.GetLogical().WaitIdle();
CreateDynamicResources();
}
-VkSemaphore BlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer,
- const VkFramebuffer& host_framebuffer,
- const Layout::FramebufferLayout layout, VkExtent2D render_area,
- bool use_accelerated) {
+void BlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer,
+ const VkFramebuffer& host_framebuffer, const Layout::FramebufferLayout layout,
+ VkExtent2D render_area, bool use_accelerated) {
RefreshResources(framebuffer);
// Finish any pending renderpass
scheduler.RequestOutsideRenderPassOperationContext();
- if (const auto swapchain_images = swapchain.GetImageCount(); swapchain_images != image_count) {
- image_count = swapchain_images;
- Recreate();
- }
-
- const std::size_t image_index = swapchain.GetImageIndex();
-
scheduler.Wait(resource_ticks[image_index]);
resource_ticks[image_index] = scheduler.CurrentTick();
@@ -165,11 +162,11 @@ VkSemaphore BlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer,
SetUniformData(data, layout);
SetVertexData(data, framebuffer, layout);
- const std::span<u8> mapped_span = buffer_commit.Map();
+ const std::span<u8> mapped_span = buffer.Mapped();
std::memcpy(mapped_span.data(), &data, sizeof(data));
if (!use_accelerated) {
- const u64 image_offset = GetRawImageOffset(framebuffer, image_index);
+ const u64 image_offset = GetRawImageOffset(framebuffer);
const VAddr framebuffer_addr = framebuffer.address + framebuffer.offset;
const u8* const host_ptr = cpu_memory.GetPointer(framebuffer_addr);
@@ -204,8 +201,8 @@ VkSemaphore BlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer,
.depth = 1,
},
};
- scheduler.Record([this, copy, image_index](vk::CommandBuffer cmdbuf) {
- const VkImage image = *raw_images[image_index];
+ scheduler.Record([this, copy, index = image_index](vk::CommandBuffer cmdbuf) {
+ const VkImage image = *raw_images[index];
const VkImageMemoryBarrier base_barrier{
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
.pNext = nullptr,
@@ -245,14 +242,15 @@ VkSemaphore BlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer,
const auto anti_alias_pass = Settings::values.anti_aliasing.GetValue();
if (use_accelerated && anti_alias_pass == Settings::AntiAliasing::Fxaa) {
- UpdateAADescriptorSet(image_index, source_image_view, false);
+ UpdateAADescriptorSet(source_image_view, false);
const u32 up_scale = Settings::values.resolution_info.up_scale;
const u32 down_shift = Settings::values.resolution_info.down_shift;
VkExtent2D size{
.width = (up_scale * framebuffer.width) >> down_shift,
.height = (up_scale * framebuffer.height) >> down_shift,
};
- scheduler.Record([this, image_index, size, anti_alias_pass](vk::CommandBuffer cmdbuf) {
+ scheduler.Record([this, index = image_index, size,
+ anti_alias_pass](vk::CommandBuffer cmdbuf) {
const VkImageMemoryBarrier base_barrier{
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
.pNext = nullptr,
@@ -326,7 +324,7 @@ VkSemaphore BlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer,
cmdbuf.BindVertexBuffer(0, *buffer, offsetof(BufferData, vertices));
cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_GRAPHICS, *aa_pipeline_layout, 0,
- aa_descriptor_sets[image_index], {});
+ aa_descriptor_sets[index], {});
cmdbuf.Draw(4, 1, 0, 0);
cmdbuf.EndRenderPass();
@@ -369,81 +367,104 @@ VkSemaphore BlitScreen::Draw(const Tegra::FramebufferConfig& framebuffer,
};
VkImageView fsr_image_view =
fsr->Draw(scheduler, image_index, source_image_view, fsr_input_size, crop_rect);
- UpdateDescriptorSet(image_index, fsr_image_view, true);
+ UpdateDescriptorSet(fsr_image_view, true);
} else {
const bool is_nn =
Settings::values.scaling_filter.GetValue() == Settings::ScalingFilter::NearestNeighbor;
- UpdateDescriptorSet(image_index, source_image_view, is_nn);
+ UpdateDescriptorSet(source_image_view, is_nn);
}
- scheduler.Record(
- [this, host_framebuffer, image_index, size = render_area](vk::CommandBuffer cmdbuf) {
- const f32 bg_red = Settings::values.bg_red.GetValue() / 255.0f;
- const f32 bg_green = Settings::values.bg_green.GetValue() / 255.0f;
- const f32 bg_blue = Settings::values.bg_blue.GetValue() / 255.0f;
- const VkClearValue clear_color{
- .color = {.float32 = {bg_red, bg_green, bg_blue, 1.0f}},
- };
- const VkRenderPassBeginInfo renderpass_bi{
- .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO,
- .pNext = nullptr,
- .renderPass = *renderpass,
- .framebuffer = host_framebuffer,
- .renderArea =
- {
- .offset = {0, 0},
- .extent = size,
- },
- .clearValueCount = 1,
- .pClearValues = &clear_color,
- };
- const VkViewport viewport{
- .x = 0.0f,
- .y = 0.0f,
- .width = static_cast<float>(size.width),
- .height = static_cast<float>(size.height),
- .minDepth = 0.0f,
- .maxDepth = 1.0f,
- };
- const VkRect2D scissor{
- .offset = {0, 0},
- .extent = size,
- };
- cmdbuf.BeginRenderPass(renderpass_bi, VK_SUBPASS_CONTENTS_INLINE);
- auto graphics_pipeline = [this]() {
- switch (Settings::values.scaling_filter.GetValue()) {
- case Settings::ScalingFilter::NearestNeighbor:
- case Settings::ScalingFilter::Bilinear:
- return *bilinear_pipeline;
- case Settings::ScalingFilter::Bicubic:
- return *bicubic_pipeline;
- case Settings::ScalingFilter::Gaussian:
- return *gaussian_pipeline;
- case Settings::ScalingFilter::ScaleForce:
- return *scaleforce_pipeline;
- default:
- return *bilinear_pipeline;
- }
- }();
- cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, graphics_pipeline);
- cmdbuf.SetViewport(0, viewport);
- cmdbuf.SetScissor(0, scissor);
-
- cmdbuf.BindVertexBuffer(0, *buffer, offsetof(BufferData, vertices));
- cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline_layout, 0,
- descriptor_sets[image_index], {});
- cmdbuf.Draw(4, 1, 0, 0);
- cmdbuf.EndRenderPass();
- });
- return *semaphores[image_index];
+ scheduler.Record([this, host_framebuffer, index = image_index,
+ size = render_area](vk::CommandBuffer cmdbuf) {
+ const f32 bg_red = Settings::values.bg_red.GetValue() / 255.0f;
+ const f32 bg_green = Settings::values.bg_green.GetValue() / 255.0f;
+ const f32 bg_blue = Settings::values.bg_blue.GetValue() / 255.0f;
+ const VkClearValue clear_color{
+ .color = {.float32 = {bg_red, bg_green, bg_blue, 1.0f}},
+ };
+ const VkRenderPassBeginInfo renderpass_bi{
+ .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO,
+ .pNext = nullptr,
+ .renderPass = *renderpass,
+ .framebuffer = host_framebuffer,
+ .renderArea =
+ {
+ .offset = {0, 0},
+ .extent = size,
+ },
+ .clearValueCount = 1,
+ .pClearValues = &clear_color,
+ };
+ const VkViewport viewport{
+ .x = 0.0f,
+ .y = 0.0f,
+ .width = static_cast<float>(size.width),
+ .height = static_cast<float>(size.height),
+ .minDepth = 0.0f,
+ .maxDepth = 1.0f,
+ };
+ const VkRect2D scissor{
+ .offset = {0, 0},
+ .extent = size,
+ };
+ cmdbuf.BeginRenderPass(renderpass_bi, VK_SUBPASS_CONTENTS_INLINE);
+ auto graphics_pipeline = [this]() {
+ switch (Settings::values.scaling_filter.GetValue()) {
+ case Settings::ScalingFilter::NearestNeighbor:
+ case Settings::ScalingFilter::Bilinear:
+ return *bilinear_pipeline;
+ case Settings::ScalingFilter::Bicubic:
+ return *bicubic_pipeline;
+ case Settings::ScalingFilter::Gaussian:
+ return *gaussian_pipeline;
+ case Settings::ScalingFilter::ScaleForce:
+ return *scaleforce_pipeline;
+ default:
+ return *bilinear_pipeline;
+ }
+ }();
+ cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, graphics_pipeline);
+ cmdbuf.SetViewport(0, viewport);
+ cmdbuf.SetScissor(0, scissor);
+
+ cmdbuf.BindVertexBuffer(0, *buffer, offsetof(BufferData, vertices));
+ cmdbuf.BindDescriptorSets(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline_layout, 0,
+ descriptor_sets[index], {});
+ cmdbuf.Draw(4, 1, 0, 0);
+ cmdbuf.EndRenderPass();
+ });
}
-VkSemaphore BlitScreen::DrawToSwapchain(const Tegra::FramebufferConfig& framebuffer,
- bool use_accelerated) {
- const std::size_t image_index = swapchain.GetImageIndex();
- const VkExtent2D render_area = swapchain.GetSize();
+void BlitScreen::DrawToSwapchain(Frame* frame, const Tegra::FramebufferConfig& framebuffer,
+ bool use_accelerated, bool is_srgb) {
+ // Recreate dynamic resources if the the image count or colorspace changed
+ if (const std::size_t swapchain_images = swapchain.GetImageCount();
+ swapchain_images != image_count || current_srgb != is_srgb) {
+ current_srgb = is_srgb;
+#ifdef ANDROID
+ // Android is already ordered the same as Switch.
+ image_view_format = current_srgb ? VK_FORMAT_R8G8B8A8_SRGB : VK_FORMAT_R8G8B8A8_UNORM;
+#else
+ image_view_format = current_srgb ? VK_FORMAT_B8G8R8A8_SRGB : VK_FORMAT_B8G8R8A8_UNORM;
+#endif
+ image_count = swapchain_images;
+ Recreate();
+ }
+
+ // Recreate the presentation frame if the dimensions of the window changed
const Layout::FramebufferLayout layout = render_window.GetFramebufferLayout();
- return Draw(framebuffer, *framebuffers[image_index], layout, render_area, use_accelerated);
+ if (layout.width != frame->width || layout.height != frame->height ||
+ is_srgb != frame->is_srgb) {
+ Recreate();
+ present_manager.RecreateFrame(frame, layout.width, layout.height, is_srgb,
+ image_view_format, *renderpass);
+ }
+
+ const VkExtent2D render_area{frame->width, frame->height};
+ Draw(framebuffer, *frame->framebuffer, layout, render_area, use_accelerated);
+ if (++image_index >= image_count) {
+ image_index = 0;
+ }
}
vk::Framebuffer BlitScreen::CreateFramebuffer(const VkImageView& image_view, VkExtent2D extent) {
@@ -471,13 +492,11 @@ void BlitScreen::CreateStaticResources() {
}
void BlitScreen::CreateDynamicResources() {
- CreateSemaphores();
CreateDescriptorPool();
CreateDescriptorSetLayout();
CreateDescriptorSets();
CreatePipelineLayout();
CreateRenderPass();
- CreateFramebuffers();
CreateGraphicsPipeline();
fsr.reset();
smaa.reset();
@@ -525,11 +544,6 @@ void BlitScreen::CreateShaders() {
}
}
-void BlitScreen::CreateSemaphores() {
- semaphores.resize(image_count);
- std::ranges::generate(semaphores, [this] { return device.GetLogical().CreateSemaphore(); });
-}
-
void BlitScreen::CreateDescriptorPool() {
const std::array<VkDescriptorPoolSize, 2> pool_sizes{{
{
@@ -571,10 +585,10 @@ void BlitScreen::CreateDescriptorPool() {
}
void BlitScreen::CreateRenderPass() {
- renderpass = CreateRenderPassImpl(swapchain.GetImageViewFormat());
+ renderpass = CreateRenderPassImpl(image_view_format);
}
-vk::RenderPass BlitScreen::CreateRenderPassImpl(VkFormat format, bool is_present) {
+vk::RenderPass BlitScreen::CreateRenderPassImpl(VkFormat format) {
const VkAttachmentDescription color_attachment{
.flags = 0,
.format = format,
@@ -584,7 +598,7 @@ vk::RenderPass BlitScreen::CreateRenderPassImpl(VkFormat format, bool is_present
.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE,
.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE,
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
- .finalLayout = is_present ? VK_IMAGE_LAYOUT_PRESENT_SRC_KHR : VK_IMAGE_LAYOUT_GENERAL,
+ .finalLayout = VK_IMAGE_LAYOUT_GENERAL,
};
const VkAttachmentReference color_attachment_ref{
@@ -1052,29 +1066,14 @@ void BlitScreen::CreateSampler() {
nn_sampler = device.GetLogical().CreateSampler(ci_nn);
}
-void BlitScreen::CreateFramebuffers() {
- const VkExtent2D size{swapchain.GetSize()};
- framebuffers.resize(image_count);
-
- for (std::size_t i = 0; i < image_count; ++i) {
- const VkImageView image_view{swapchain.GetImageViewIndex(i)};
- framebuffers[i] = CreateFramebuffer(image_view, size, renderpass);
- }
-}
-
void BlitScreen::ReleaseRawImages() {
for (const u64 tick : resource_ticks) {
scheduler.Wait(tick);
}
raw_images.clear();
- raw_buffer_commits.clear();
-
aa_image_view.reset();
aa_image.reset();
- aa_commit = MemoryCommit{};
-
buffer.reset();
- buffer_commit = MemoryCommit{};
}
void BlitScreen::CreateStagingBuffer(const Tegra::FramebufferConfig& framebuffer) {
@@ -1090,25 +1089,23 @@ void BlitScreen::CreateStagingBuffer(const Tegra::FramebufferConfig& framebuffer
.pQueueFamilyIndices = nullptr,
};
- buffer = device.GetLogical().CreateBuffer(ci);
- buffer_commit = memory_allocator.Commit(buffer, MemoryUsage::Upload);
+ buffer = memory_allocator.CreateBuffer(ci, MemoryUsage::Upload);
}
void BlitScreen::CreateRawImages(const Tegra::FramebufferConfig& framebuffer) {
raw_images.resize(image_count);
raw_image_views.resize(image_count);
- raw_buffer_commits.resize(image_count);
const auto create_image = [&](bool used_on_framebuffer = false, u32 up_scale = 1,
u32 down_shift = 0) {
u32 extra_usages = used_on_framebuffer ? VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
: VK_IMAGE_USAGE_TRANSFER_DST_BIT;
- return device.GetLogical().CreateImage(VkImageCreateInfo{
+ return memory_allocator.CreateImage(VkImageCreateInfo{
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
.imageType = VK_IMAGE_TYPE_2D,
- .format = GetFormat(framebuffer),
+ .format = used_on_framebuffer ? VK_FORMAT_R16G16B16A16_SFLOAT : GetFormat(framebuffer),
.extent =
{
.width = (up_scale * framebuffer.width) >> down_shift,
@@ -1126,17 +1123,14 @@ void BlitScreen::CreateRawImages(const Tegra::FramebufferConfig& framebuffer) {
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
});
};
- const auto create_commit = [&](vk::Image& image) {
- return memory_allocator.Commit(image, MemoryUsage::DeviceLocal);
- };
- const auto create_image_view = [&](vk::Image& image) {
+ const auto create_image_view = [&](vk::Image& image, bool used_on_framebuffer = false) {
return device.GetLogical().CreateImageView(VkImageViewCreateInfo{
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
.image = *image,
.viewType = VK_IMAGE_VIEW_TYPE_2D,
- .format = GetFormat(framebuffer),
+ .format = used_on_framebuffer ? VK_FORMAT_R16G16B16A16_SFLOAT : GetFormat(framebuffer),
.components =
{
.r = VK_COMPONENT_SWIZZLE_IDENTITY,
@@ -1157,7 +1151,6 @@ void BlitScreen::CreateRawImages(const Tegra::FramebufferConfig& framebuffer) {
for (size_t i = 0; i < image_count; ++i) {
raw_images[i] = create_image();
- raw_buffer_commits[i] = create_commit(raw_images[i]);
raw_image_views[i] = create_image_view(raw_images[i]);
}
@@ -1165,8 +1158,7 @@ void BlitScreen::CreateRawImages(const Tegra::FramebufferConfig& framebuffer) {
const u32 up_scale = Settings::values.resolution_info.up_scale;
const u32 down_shift = Settings::values.resolution_info.down_shift;
aa_image = create_image(true, up_scale, down_shift);
- aa_commit = create_commit(aa_image);
- aa_image_view = create_image_view(aa_image);
+ aa_image_view = create_image_view(aa_image, true);
VkExtent2D size{
.width = (up_scale * framebuffer.width) >> down_shift,
.height = (up_scale * framebuffer.height) >> down_shift,
@@ -1175,7 +1167,7 @@ void BlitScreen::CreateRawImages(const Tegra::FramebufferConfig& framebuffer) {
aa_framebuffer = CreateFramebuffer(*aa_image_view, size, aa_renderpass);
return;
}
- aa_renderpass = CreateRenderPassImpl(GetFormat(framebuffer), false);
+ aa_renderpass = CreateRenderPassImpl(GetFormat(framebuffer));
aa_framebuffer = CreateFramebuffer(*aa_image_view, size, aa_renderpass);
const std::array<VkPipelineShaderStageCreateInfo, 2> fxaa_shader_stages{{
@@ -1319,8 +1311,7 @@ void BlitScreen::CreateRawImages(const Tegra::FramebufferConfig& framebuffer) {
aa_pipeline = device.GetLogical().CreateGraphicsPipeline(fxaa_pipeline_ci);
}
-void BlitScreen::UpdateAADescriptorSet(std::size_t image_index, VkImageView image_view,
- bool nn) const {
+void BlitScreen::UpdateAADescriptorSet(VkImageView image_view, bool nn) const {
const VkDescriptorImageInfo image_info{
.sampler = nn ? *nn_sampler : *sampler,
.imageView = image_view,
@@ -1356,8 +1347,7 @@ void BlitScreen::UpdateAADescriptorSet(std::size_t image_index, VkImageView imag
device.GetLogical().UpdateDescriptorSets(std::array{sampler_write, sampler_write_2}, {});
}
-void BlitScreen::UpdateDescriptorSet(std::size_t image_index, VkImageView image_view,
- bool nn) const {
+void BlitScreen::UpdateDescriptorSet(VkImageView image_view, bool nn) const {
const VkDescriptorBufferInfo buffer_info{
.buffer = *buffer,
.offset = offsetof(BufferData, uniform),
@@ -1480,8 +1470,7 @@ u64 BlitScreen::CalculateBufferSize(const Tegra::FramebufferConfig& framebuffer)
return sizeof(BufferData) + GetSizeInBytes(framebuffer) * image_count;
}
-u64 BlitScreen::GetRawImageOffset(const Tegra::FramebufferConfig& framebuffer,
- std::size_t image_index) const {
+u64 BlitScreen::GetRawImageOffset(const Tegra::FramebufferConfig& framebuffer) const {
constexpr auto first_image_offset = static_cast<u64>(sizeof(BufferData));
return first_image_offset + GetSizeInBytes(framebuffer) * image_index;
}
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.h b/src/video_core/renderer_vulkan/vk_blit_screen.h
index ebe10b08b..8365b5668 100644
--- a/src/video_core/renderer_vulkan/vk_blit_screen.h
+++ b/src/video_core/renderer_vulkan/vk_blit_screen.h
@@ -5,6 +5,7 @@
#include <memory>
+#include "core/frontend/framebuffer_layout.h"
#include "video_core/vulkan_common/vulkan_memory_allocator.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
@@ -42,6 +43,9 @@ class RasterizerVulkan;
class Scheduler;
class SMAA;
class Swapchain;
+class PresentManager;
+
+struct Frame;
struct ScreenInfo {
VkImage image{};
@@ -55,18 +59,17 @@ class BlitScreen {
public:
explicit BlitScreen(Core::Memory::Memory& cpu_memory, Core::Frontend::EmuWindow& render_window,
const Device& device, MemoryAllocator& memory_manager, Swapchain& swapchain,
- Scheduler& scheduler, const ScreenInfo& screen_info);
+ PresentManager& present_manager, Scheduler& scheduler,
+ const ScreenInfo& screen_info);
~BlitScreen();
void Recreate();
- [[nodiscard]] VkSemaphore Draw(const Tegra::FramebufferConfig& framebuffer,
- const VkFramebuffer& host_framebuffer,
- const Layout::FramebufferLayout layout, VkExtent2D render_area,
- bool use_accelerated);
+ void Draw(const Tegra::FramebufferConfig& framebuffer, const VkFramebuffer& host_framebuffer,
+ const Layout::FramebufferLayout layout, VkExtent2D render_area, bool use_accelerated);
- [[nodiscard]] VkSemaphore DrawToSwapchain(const Tegra::FramebufferConfig& framebuffer,
- bool use_accelerated);
+ void DrawToSwapchain(Frame* frame, const Tegra::FramebufferConfig& framebuffer,
+ bool use_accelerated, bool is_srgb);
[[nodiscard]] vk::Framebuffer CreateFramebuffer(const VkImageView& image_view,
VkExtent2D extent);
@@ -79,10 +82,9 @@ private:
void CreateStaticResources();
void CreateShaders();
- void CreateSemaphores();
void CreateDescriptorPool();
void CreateRenderPass();
- vk::RenderPass CreateRenderPassImpl(VkFormat, bool is_present = true);
+ vk::RenderPass CreateRenderPassImpl(VkFormat format);
void CreateDescriptorSetLayout();
void CreateDescriptorSets();
void CreatePipelineLayout();
@@ -90,15 +92,14 @@ private:
void CreateSampler();
void CreateDynamicResources();
- void CreateFramebuffers();
void RefreshResources(const Tegra::FramebufferConfig& framebuffer);
void ReleaseRawImages();
void CreateStagingBuffer(const Tegra::FramebufferConfig& framebuffer);
void CreateRawImages(const Tegra::FramebufferConfig& framebuffer);
- void UpdateDescriptorSet(std::size_t image_index, VkImageView image_view, bool nn) const;
- void UpdateAADescriptorSet(std::size_t image_index, VkImageView image_view, bool nn) const;
+ void UpdateDescriptorSet(VkImageView image_view, bool nn) const;
+ void UpdateAADescriptorSet(VkImageView image_view, bool nn) const;
void SetUniformData(BufferData& data, const Layout::FramebufferLayout layout) const;
void SetVertexData(BufferData& data, const Tegra::FramebufferConfig& framebuffer,
const Layout::FramebufferLayout layout) const;
@@ -107,16 +108,17 @@ private:
void CreateFSR();
u64 CalculateBufferSize(const Tegra::FramebufferConfig& framebuffer) const;
- u64 GetRawImageOffset(const Tegra::FramebufferConfig& framebuffer,
- std::size_t image_index) const;
+ u64 GetRawImageOffset(const Tegra::FramebufferConfig& framebuffer) const;
Core::Memory::Memory& cpu_memory;
Core::Frontend::EmuWindow& render_window;
const Device& device;
MemoryAllocator& memory_allocator;
Swapchain& swapchain;
+ PresentManager& present_manager;
Scheduler& scheduler;
std::size_t image_count;
+ std::size_t image_index{};
const ScreenInfo& screen_info;
vk::ShaderModule vertex_shader;
@@ -135,20 +137,16 @@ private:
vk::Pipeline gaussian_pipeline;
vk::Pipeline scaleforce_pipeline;
vk::RenderPass renderpass;
- std::vector<vk::Framebuffer> framebuffers;
vk::DescriptorSets descriptor_sets;
vk::Sampler nn_sampler;
vk::Sampler sampler;
vk::Buffer buffer;
- MemoryCommit buffer_commit;
std::vector<u64> resource_ticks;
- std::vector<vk::Semaphore> semaphores;
std::vector<vk::Image> raw_images;
std::vector<vk::ImageView> raw_image_views;
- std::vector<MemoryCommit> raw_buffer_commits;
vk::DescriptorPool aa_descriptor_pool;
vk::DescriptorSetLayout aa_descriptor_set_layout;
@@ -159,11 +157,12 @@ private:
vk::DescriptorSets aa_descriptor_sets;
vk::Image aa_image;
vk::ImageView aa_image_view;
- MemoryCommit aa_commit;
u32 raw_width = 0;
u32 raw_height = 0;
Service::android::PixelFormat pixel_format{};
+ bool current_srgb;
+ VkFormat image_view_format;
std::unique_ptr<FSR> fsr;
std::unique_ptr<SMAA> smaa;
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
index 1cfb4c2ff..660f7c9ff 100644
--- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
@@ -7,7 +7,6 @@
#include <span>
#include <vector>
-#include "video_core/buffer_cache/buffer_cache.h"
#include "video_core/renderer_vulkan/maxwell_to_vk.h"
#include "video_core/renderer_vulkan/vk_buffer_cache.h"
#include "video_core/renderer_vulkan/vk_scheduler.h"
@@ -51,7 +50,7 @@ size_t BytesPerIndex(VkIndexType index_type) {
}
}
-vk::Buffer CreateBuffer(const Device& device, u64 size) {
+vk::Buffer CreateBuffer(const Device& device, const MemoryAllocator& memory_allocator, u64 size) {
VkBufferUsageFlags flags =
VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT |
VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT |
@@ -61,7 +60,7 @@ vk::Buffer CreateBuffer(const Device& device, u64 size) {
if (device.IsExtTransformFeedbackSupported()) {
flags |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT;
}
- return device.GetLogical().CreateBuffer({
+ const VkBufferCreateInfo buffer_ci = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -70,7 +69,8 @@ vk::Buffer CreateBuffer(const Device& device, u64 size) {
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
- });
+ };
+ return memory_allocator.CreateBuffer(buffer_ci, MemoryUsage::DeviceLocal);
}
} // Anonymous namespace
@@ -80,8 +80,8 @@ Buffer::Buffer(BufferCacheRuntime&, VideoCommon::NullBufferParams null_params)
Buffer::Buffer(BufferCacheRuntime& runtime, VideoCore::RasterizerInterface& rasterizer_,
VAddr cpu_addr_, u64 size_bytes_)
: VideoCommon::BufferBase<VideoCore::RasterizerInterface>(rasterizer_, cpu_addr_, size_bytes_),
- device{&runtime.device}, buffer{CreateBuffer(*device, SizeBytes())},
- commit{runtime.memory_allocator.Commit(buffer, MemoryUsage::DeviceLocal)} {
+ device{&runtime.device}, buffer{
+ CreateBuffer(*device, runtime.memory_allocator, SizeBytes())} {
if (runtime.device.HasDebuggingToolAttached()) {
buffer.SetObjectNameEXT(fmt::format("Buffer 0x{:x}", CpuAddr()).c_str());
}
@@ -139,7 +139,7 @@ public:
const u32 num_first_offset_copies = 4;
const size_t bytes_per_index = BytesPerIndex(index_type);
const size_t size_bytes = num_triangle_indices * bytes_per_index * num_first_offset_copies;
- buffer = device.GetLogical().CreateBuffer(VkBufferCreateInfo{
+ const VkBufferCreateInfo buffer_ci = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -148,14 +148,21 @@ public:
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
- });
+ };
+ buffer = memory_allocator.CreateBuffer(buffer_ci, MemoryUsage::DeviceLocal);
if (device.HasDebuggingToolAttached()) {
buffer.SetObjectNameEXT("Quad LUT");
}
- memory_commit = memory_allocator.Commit(buffer, MemoryUsage::DeviceLocal);
- const StagingBufferRef staging = staging_pool.Request(size_bytes, MemoryUsage::Upload);
- u8* staging_data = staging.mapped_span.data();
+ const bool host_visible = buffer.IsHostVisible();
+ const StagingBufferRef staging = [&] {
+ if (host_visible) {
+ return StagingBufferRef{};
+ }
+ return staging_pool.Request(size_bytes, MemoryUsage::Upload);
+ }();
+
+ u8* staging_data = host_visible ? buffer.Mapped().data() : staging.mapped_span.data();
const size_t quad_size = bytes_per_index * 6;
for (u32 first = 0; first < num_first_offset_copies; ++first) {
@@ -165,29 +172,33 @@ public:
}
}
- scheduler.RequestOutsideRenderPassOperationContext();
- scheduler.Record([src_buffer = staging.buffer, src_offset = staging.offset,
- dst_buffer = *buffer, size_bytes](vk::CommandBuffer cmdbuf) {
- const VkBufferCopy copy{
- .srcOffset = src_offset,
- .dstOffset = 0,
- .size = size_bytes,
- };
- const VkBufferMemoryBarrier write_barrier{
- .sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER,
- .pNext = nullptr,
- .srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT,
- .dstAccessMask = VK_ACCESS_INDEX_READ_BIT,
- .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
- .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
- .buffer = dst_buffer,
- .offset = 0,
- .size = size_bytes,
- };
- cmdbuf.CopyBuffer(src_buffer, dst_buffer, copy);
- cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_TRANSFER_BIT,
- VK_PIPELINE_STAGE_VERTEX_INPUT_BIT, 0, write_barrier);
- });
+ if (!host_visible) {
+ scheduler.RequestOutsideRenderPassOperationContext();
+ scheduler.Record([src_buffer = staging.buffer, src_offset = staging.offset,
+ dst_buffer = *buffer, size_bytes](vk::CommandBuffer cmdbuf) {
+ const VkBufferCopy copy{
+ .srcOffset = src_offset,
+ .dstOffset = 0,
+ .size = size_bytes,
+ };
+ const VkBufferMemoryBarrier write_barrier{
+ .sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER,
+ .pNext = nullptr,
+ .srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT,
+ .dstAccessMask = VK_ACCESS_INDEX_READ_BIT,
+ .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .buffer = dst_buffer,
+ .offset = 0,
+ .size = size_bytes,
+ };
+ cmdbuf.CopyBuffer(src_buffer, dst_buffer, copy);
+ cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_TRANSFER_BIT,
+ VK_PIPELINE_STAGE_VERTEX_INPUT_BIT, 0, write_barrier);
+ });
+ } else {
+ buffer.Flush();
+ }
}
void BindBuffer(u32 first) {
@@ -238,7 +249,7 @@ private:
return indices;
}
- void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) {
+ void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) override {
switch (index_type) {
case VK_INDEX_TYPE_UINT8_EXT:
std::memcpy(staging_data, MakeIndices<u8>(quad, first).data(), quad_size);
@@ -278,7 +289,7 @@ private:
return indices;
}
- void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) {
+ void MakeAndUpdateIndices(u8* staging_data, size_t quad_size, u32 quad, u32 first) override {
switch (index_type) {
case VK_INDEX_TYPE_UINT8_EXT:
std::memcpy(staging_data, MakeIndices<u8>(quad, first).data(), quad_size);
@@ -298,12 +309,18 @@ private:
BufferCacheRuntime::BufferCacheRuntime(const Device& device_, MemoryAllocator& memory_allocator_,
Scheduler& scheduler_, StagingBufferPool& staging_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_,
+ GuestDescriptorQueue& guest_descriptor_queue_,
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue,
DescriptorPool& descriptor_pool)
: device{device_}, memory_allocator{memory_allocator_}, scheduler{scheduler_},
- staging_pool{staging_pool_}, update_descriptor_queue{update_descriptor_queue_},
- uint8_pass(device, scheduler, descriptor_pool, staging_pool, update_descriptor_queue),
- quad_index_pass(device, scheduler, descriptor_pool, staging_pool, update_descriptor_queue) {
+ staging_pool{staging_pool_}, guest_descriptor_queue{guest_descriptor_queue_},
+ quad_index_pass(device, scheduler, descriptor_pool, staging_pool,
+ compute_pass_descriptor_queue) {
+ if (device.GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY) {
+ // TODO: FixMe: Uint8Pass compute shader does not build on some Qualcomm drivers.
+ uint8_pass = std::make_unique<Uint8Pass>(device, scheduler, descriptor_pool, staging_pool,
+ compute_pass_descriptor_queue);
+ }
quad_array_index_buffer = std::make_shared<QuadArrayIndexBuffer>(device_, memory_allocator_,
scheduler_, staging_pool_);
quad_strip_index_buffer = std::make_shared<QuadStripIndexBuffer>(device_, memory_allocator_,
@@ -314,8 +331,12 @@ StagingBufferRef BufferCacheRuntime::UploadStagingBuffer(size_t size) {
return staging_pool.Request(size, MemoryUsage::Upload);
}
-StagingBufferRef BufferCacheRuntime::DownloadStagingBuffer(size_t size) {
- return staging_pool.Request(size, MemoryUsage::Download);
+StagingBufferRef BufferCacheRuntime::DownloadStagingBuffer(size_t size, bool deferred) {
+ return staging_pool.Request(size, MemoryUsage::Download, deferred);
+}
+
+void BufferCacheRuntime::FreeDeferredStagingBuffer(StagingBufferRef& ref) {
+ staging_pool.FreeDeferred(ref);
}
u64 BufferCacheRuntime::GetDeviceLocalMemory() const {
@@ -330,10 +351,6 @@ bool BufferCacheRuntime::CanReportMemoryUsage() const {
return device.CanReportMemoryUsage();
}
-u32 BufferCacheRuntime::GetStorageBufferAlignment() const {
- return static_cast<u32>(device.GetStorageBufferAlignment());
-}
-
void BufferCacheRuntime::Finish() {
scheduler.Finish();
}
@@ -356,7 +373,7 @@ void BufferCacheRuntime::CopyBuffer(VkBuffer dst_buffer, VkBuffer src_buffer,
.dstAccessMask = VK_ACCESS_MEMORY_READ_BIT | VK_ACCESS_MEMORY_WRITE_BIT,
};
// Measuring a popular game, this number never exceeds the specified size once data is warmed up
- boost::container::small_vector<VkBufferCopy, 3> vk_copies(copies.size());
+ boost::container::small_vector<VkBufferCopy, 8> vk_copies(copies.size());
std::ranges::transform(copies, vk_copies.begin(), MakeBufferCopy);
scheduler.RequestOutsideRenderPassOperationContext();
scheduler.Record([src_buffer, dst_buffer, vk_copies, barrier](vk::CommandBuffer cmdbuf) {
@@ -440,7 +457,9 @@ void BufferCacheRuntime::BindIndexBuffer(PrimitiveTopology topology, IndexFormat
topology == PrimitiveTopology::QuadStrip);
} else if (vk_index_type == VK_INDEX_TYPE_UINT8_EXT && !device.IsExtIndexTypeUint8Supported()) {
vk_index_type = VK_INDEX_TYPE_UINT16;
- std::tie(vk_buffer, vk_offset) = uint8_pass.Assemble(num_indices, buffer, offset);
+ if (uint8_pass) {
+ std::tie(vk_buffer, vk_offset) = uint8_pass->Assemble(num_indices, buffer, offset);
+ }
}
if (vk_buffer == VK_NULL_HANDLE) {
// Vulkan doesn't support null index buffers. Replace it with our own null buffer.
@@ -494,6 +513,36 @@ void BufferCacheRuntime::BindVertexBuffer(u32 index, VkBuffer buffer, u32 offset
}
}
+void BufferCacheRuntime::BindVertexBuffers(VideoCommon::HostBindings<Buffer>& bindings) {
+ boost::container::small_vector<VkBuffer, 32> buffer_handles;
+ for (u32 index = 0; index < bindings.buffers.size(); ++index) {
+ auto handle = bindings.buffers[index]->Handle();
+ if (handle == VK_NULL_HANDLE) {
+ bindings.offsets[index] = 0;
+ bindings.sizes[index] = VK_WHOLE_SIZE;
+ if (!device.HasNullDescriptor()) {
+ ReserveNullBuffer();
+ handle = *null_buffer;
+ }
+ }
+ buffer_handles.push_back(handle);
+ }
+ if (device.IsExtExtendedDynamicStateSupported()) {
+ scheduler.Record([bindings = std::move(bindings),
+ buffer_handles = std::move(buffer_handles)](vk::CommandBuffer cmdbuf) {
+ cmdbuf.BindVertexBuffers2EXT(
+ bindings.min_index, bindings.max_index - bindings.min_index, buffer_handles.data(),
+ bindings.offsets.data(), bindings.sizes.data(), bindings.strides.data());
+ });
+ } else {
+ scheduler.Record([bindings = std::move(bindings),
+ buffer_handles = std::move(buffer_handles)](vk::CommandBuffer cmdbuf) {
+ cmdbuf.BindVertexBuffers(bindings.min_index, bindings.max_index - bindings.min_index,
+ buffer_handles.data(), bindings.offsets.data());
+ });
+ }
+}
+
void BufferCacheRuntime::BindTransformFeedbackBuffer(u32 index, VkBuffer buffer, u32 offset,
u32 size) {
if (!device.IsExtTransformFeedbackSupported()) {
@@ -515,6 +564,23 @@ void BufferCacheRuntime::BindTransformFeedbackBuffer(u32 index, VkBuffer buffer,
});
}
+void BufferCacheRuntime::BindTransformFeedbackBuffers(VideoCommon::HostBindings<Buffer>& bindings) {
+ if (!device.IsExtTransformFeedbackSupported()) {
+ // Already logged in the rasterizer
+ return;
+ }
+ boost::container::small_vector<VkBuffer, 4> buffer_handles;
+ for (u32 index = 0; index < bindings.buffers.size(); ++index) {
+ buffer_handles.push_back(bindings.buffers[index]->Handle());
+ }
+ scheduler.Record([bindings = std::move(bindings),
+ buffer_handles = std::move(buffer_handles)](vk::CommandBuffer cmdbuf) {
+ cmdbuf.BindTransformFeedbackBuffersEXT(0, static_cast<u32>(buffer_handles.size()),
+ buffer_handles.data(), bindings.offsets.data(),
+ bindings.sizes.data());
+ });
+}
+
void BufferCacheRuntime::ReserveNullBuffer() {
if (null_buffer) {
return;
@@ -533,11 +599,10 @@ void BufferCacheRuntime::ReserveNullBuffer() {
create_info.usage |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT;
}
create_info.usage |= VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
- null_buffer = device.GetLogical().CreateBuffer(create_info);
+ null_buffer = memory_allocator.CreateBuffer(create_info, MemoryUsage::DeviceLocal);
if (device.HasDebuggingToolAttached()) {
null_buffer.SetObjectNameEXT("Null buffer");
}
- null_buffer_commit = memory_allocator.Commit(null_buffer, MemoryUsage::DeviceLocal);
scheduler.RequestOutsideRenderPassOperationContext();
scheduler.Record([buffer = *null_buffer](vk::CommandBuffer cmdbuf) {
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.h b/src/video_core/renderer_vulkan/vk_buffer_cache.h
index 06539c733..95446c732 100644
--- a/src/video_core/renderer_vulkan/vk_buffer_cache.h
+++ b/src/video_core/renderer_vulkan/vk_buffer_cache.h
@@ -3,7 +3,8 @@
#pragma once
-#include "video_core/buffer_cache/buffer_cache.h"
+#include "video_core/buffer_cache/buffer_cache_base.h"
+#include "video_core/buffer_cache/memory_tracker_base.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/renderer_vulkan/vk_compute_pass.h"
#include "video_core/renderer_vulkan/vk_staging_buffer_pool.h"
@@ -17,6 +18,7 @@ namespace Vulkan {
class Device;
class DescriptorPool;
class Scheduler;
+struct HostVertexBinding;
class BufferCacheRuntime;
@@ -46,7 +48,6 @@ private:
const Device* device{};
vk::Buffer buffer;
- MemoryCommit commit;
std::vector<BufferView> views;
};
@@ -62,7 +63,8 @@ class BufferCacheRuntime {
public:
explicit BufferCacheRuntime(const Device& device_, MemoryAllocator& memory_manager_,
Scheduler& scheduler_, StagingBufferPool& staging_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_,
+ GuestDescriptorQueue& guest_descriptor_queue,
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue,
DescriptorPool& descriptor_pool);
void Finish();
@@ -73,11 +75,11 @@ public:
bool CanReportMemoryUsage() const;
- u32 GetStorageBufferAlignment() const;
-
[[nodiscard]] StagingBufferRef UploadStagingBuffer(size_t size);
- [[nodiscard]] StagingBufferRef DownloadStagingBuffer(size_t size);
+ [[nodiscard]] StagingBufferRef DownloadStagingBuffer(size_t size, bool deferred = false);
+
+ void FreeDeferredStagingBuffer(StagingBufferRef& ref);
void PreCopyBarrier();
@@ -95,8 +97,12 @@ public:
void BindVertexBuffer(u32 index, VkBuffer buffer, u32 offset, u32 size, u32 stride);
+ void BindVertexBuffers(VideoCommon::HostBindings<Buffer>& bindings);
+
void BindTransformFeedbackBuffer(u32 index, VkBuffer buffer, u32 offset, u32 size);
+ void BindTransformFeedbackBuffers(VideoCommon::HostBindings<Buffer>& bindings);
+
std::span<u8> BindMappedUniformBuffer([[maybe_unused]] size_t stage,
[[maybe_unused]] u32 binding_index, u32 size) {
const StagingBufferRef ref = staging_pool.Request(size, MemoryUsage::Upload);
@@ -115,12 +121,12 @@ public:
void BindTextureBuffer(Buffer& buffer, u32 offset, u32 size,
VideoCore::Surface::PixelFormat format) {
- update_descriptor_queue.AddTexelBuffer(buffer.View(offset, size, format));
+ guest_descriptor_queue.AddTexelBuffer(buffer.View(offset, size, format));
}
private:
void BindBuffer(VkBuffer buffer, u32 offset, u32 size) {
- update_descriptor_queue.AddBuffer(buffer, offset, size);
+ guest_descriptor_queue.AddBuffer(buffer, offset, size);
}
void ReserveNullBuffer();
@@ -129,21 +135,22 @@ private:
MemoryAllocator& memory_allocator;
Scheduler& scheduler;
StagingBufferPool& staging_pool;
- UpdateDescriptorQueue& update_descriptor_queue;
+ GuestDescriptorQueue& guest_descriptor_queue;
std::shared_ptr<QuadArrayIndexBuffer> quad_array_index_buffer;
std::shared_ptr<QuadStripIndexBuffer> quad_strip_index_buffer;
vk::Buffer null_buffer;
- MemoryCommit null_buffer_commit;
- Uint8Pass uint8_pass;
+ std::unique_ptr<Uint8Pass> uint8_pass;
QuadIndexedPass quad_index_pass;
};
struct BufferCacheParams {
using Runtime = Vulkan::BufferCacheRuntime;
using Buffer = Vulkan::Buffer;
+ using Async_Buffer = Vulkan::StagingBufferRef;
+ using MemoryTracker = VideoCommon::MemoryTrackerBase<VideoCore::RasterizerInterface>;
static constexpr bool IS_OPENGL = false;
static constexpr bool HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS = false;
@@ -152,6 +159,8 @@ struct BufferCacheParams {
static constexpr bool NEEDS_BIND_STORAGE_INDEX = false;
static constexpr bool USE_MEMORY_MAPS = true;
static constexpr bool SEPARATE_IMAGE_BUFFER_BINDINGS = false;
+ static constexpr bool IMPLEMENTS_ASYNC_DOWNLOADS = true;
+ static constexpr bool USE_MEMORY_MAPS_FOR_UPLOADS = true;
};
using BufferCache = VideoCommon::BufferCache<BufferCacheParams>;
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache_base.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache_base.cpp
new file mode 100644
index 000000000..f9e271507
--- /dev/null
+++ b/src/video_core/renderer_vulkan/vk_buffer_cache_base.cpp
@@ -0,0 +1,9 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "video_core/buffer_cache/buffer_cache.h"
+#include "video_core/renderer_vulkan/vk_buffer_cache.h"
+
+namespace VideoCommon {
+template class VideoCommon::BufferCache<Vulkan::BufferCacheParams>;
+}
diff --git a/src/video_core/renderer_vulkan/vk_command_pool.cpp b/src/video_core/renderer_vulkan/vk_command_pool.cpp
index 2f09de1c1..d0dbf7ca5 100644
--- a/src/video_core/renderer_vulkan/vk_command_pool.cpp
+++ b/src/video_core/renderer_vulkan/vk_command_pool.cpp
@@ -22,8 +22,8 @@ CommandPool::CommandPool(MasterSemaphore& master_semaphore_, const Device& devic
CommandPool::~CommandPool() = default;
void CommandPool::Allocate(size_t begin, size_t end) {
- // Command buffers are going to be commited, recorded, executed every single usage cycle.
- // They are also going to be reseted when commited.
+ // Command buffers are going to be committed, recorded, executed every single usage cycle.
+ // They are also going to be reset when committed.
Pool& pool = pools.emplace_back();
pool.handle = device.GetLogical().CreateCommandPool({
.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.cpp b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
index 1a316b6eb..3bc8553e1 100644
--- a/src/video_core/renderer_vulkan/vk_compute_pass.cpp
+++ b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
@@ -200,12 +200,12 @@ ComputePass::~ComputePass() = default;
Uint8Pass::Uint8Pass(const Device& device_, Scheduler& scheduler_, DescriptorPool& descriptor_pool,
StagingBufferPool& staging_buffer_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_)
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue_)
: ComputePass(device_, descriptor_pool, INPUT_OUTPUT_DESCRIPTOR_SET_BINDINGS,
INPUT_OUTPUT_DESCRIPTOR_UPDATE_TEMPLATE, INPUT_OUTPUT_BANK_INFO, {},
VULKAN_UINT8_COMP_SPV),
scheduler{scheduler_}, staging_buffer_pool{staging_buffer_pool_},
- update_descriptor_queue{update_descriptor_queue_} {}
+ compute_pass_descriptor_queue{compute_pass_descriptor_queue_} {}
Uint8Pass::~Uint8Pass() = default;
@@ -214,10 +214,10 @@ std::pair<VkBuffer, VkDeviceSize> Uint8Pass::Assemble(u32 num_vertices, VkBuffer
const u32 staging_size = static_cast<u32>(num_vertices * sizeof(u16));
const auto staging = staging_buffer_pool.Request(staging_size, MemoryUsage::DeviceLocal);
- update_descriptor_queue.Acquire();
- update_descriptor_queue.AddBuffer(src_buffer, src_offset, num_vertices);
- update_descriptor_queue.AddBuffer(staging.buffer, staging.offset, staging_size);
- const void* const descriptor_data{update_descriptor_queue.UpdateData()};
+ compute_pass_descriptor_queue.Acquire();
+ compute_pass_descriptor_queue.AddBuffer(src_buffer, src_offset, num_vertices);
+ compute_pass_descriptor_queue.AddBuffer(staging.buffer, staging.offset, staging_size);
+ const void* const descriptor_data{compute_pass_descriptor_queue.UpdateData()};
scheduler.RequestOutsideRenderPassOperationContext();
scheduler.Record([this, descriptor_data, num_vertices](vk::CommandBuffer cmdbuf) {
@@ -242,12 +242,12 @@ std::pair<VkBuffer, VkDeviceSize> Uint8Pass::Assemble(u32 num_vertices, VkBuffer
QuadIndexedPass::QuadIndexedPass(const Device& device_, Scheduler& scheduler_,
DescriptorPool& descriptor_pool_,
StagingBufferPool& staging_buffer_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_)
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue_)
: ComputePass(device_, descriptor_pool_, INPUT_OUTPUT_DESCRIPTOR_SET_BINDINGS,
INPUT_OUTPUT_DESCRIPTOR_UPDATE_TEMPLATE, INPUT_OUTPUT_BANK_INFO,
COMPUTE_PUSH_CONSTANT_RANGE<sizeof(u32) * 3>, VULKAN_QUAD_INDEXED_COMP_SPV),
scheduler{scheduler_}, staging_buffer_pool{staging_buffer_pool_},
- update_descriptor_queue{update_descriptor_queue_} {}
+ compute_pass_descriptor_queue{compute_pass_descriptor_queue_} {}
QuadIndexedPass::~QuadIndexedPass() = default;
@@ -272,10 +272,10 @@ std::pair<VkBuffer, VkDeviceSize> QuadIndexedPass::Assemble(
const std::size_t staging_size = num_tri_vertices * sizeof(u32);
const auto staging = staging_buffer_pool.Request(staging_size, MemoryUsage::DeviceLocal);
- update_descriptor_queue.Acquire();
- update_descriptor_queue.AddBuffer(src_buffer, src_offset, input_size);
- update_descriptor_queue.AddBuffer(staging.buffer, staging.offset, staging_size);
- const void* const descriptor_data{update_descriptor_queue.UpdateData()};
+ compute_pass_descriptor_queue.Acquire();
+ compute_pass_descriptor_queue.AddBuffer(src_buffer, src_offset, input_size);
+ compute_pass_descriptor_queue.AddBuffer(staging.buffer, staging.offset, staging_size);
+ const void* const descriptor_data{compute_pass_descriptor_queue.UpdateData()};
scheduler.RequestOutsideRenderPassOperationContext();
scheduler.Record([this, descriptor_data, num_tri_vertices, base_vertex, index_shift,
@@ -304,13 +304,14 @@ std::pair<VkBuffer, VkDeviceSize> QuadIndexedPass::Assemble(
ASTCDecoderPass::ASTCDecoderPass(const Device& device_, Scheduler& scheduler_,
DescriptorPool& descriptor_pool_,
StagingBufferPool& staging_buffer_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_,
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue_,
MemoryAllocator& memory_allocator_)
: ComputePass(device_, descriptor_pool_, ASTC_DESCRIPTOR_SET_BINDINGS,
ASTC_PASS_DESCRIPTOR_UPDATE_TEMPLATE_ENTRY, ASTC_BANK_INFO,
COMPUTE_PUSH_CONSTANT_RANGE<sizeof(AstcPushConstants)>, ASTC_DECODER_COMP_SPV),
scheduler{scheduler_}, staging_buffer_pool{staging_buffer_pool_},
- update_descriptor_queue{update_descriptor_queue_}, memory_allocator{memory_allocator_} {}
+ compute_pass_descriptor_queue{compute_pass_descriptor_queue_}, memory_allocator{
+ memory_allocator_} {}
ASTCDecoderPass::~ASTCDecoderPass() = default;
@@ -358,11 +359,11 @@ void ASTCDecoderPass::Assemble(Image& image, const StagingBufferRef& map,
const u32 num_dispatches_y = Common::DivCeil(swizzle.num_tiles.height, 8U);
const u32 num_dispatches_z = image.info.resources.layers;
- update_descriptor_queue.Acquire();
- update_descriptor_queue.AddBuffer(map.buffer, input_offset,
- image.guest_size_bytes - swizzle.buffer_offset);
- update_descriptor_queue.AddImage(image.StorageImageView(swizzle.level));
- const void* const descriptor_data{update_descriptor_queue.UpdateData()};
+ compute_pass_descriptor_queue.Acquire();
+ compute_pass_descriptor_queue.AddBuffer(map.buffer, input_offset,
+ image.guest_size_bytes - swizzle.buffer_offset);
+ compute_pass_descriptor_queue.AddImage(image.StorageImageView(swizzle.level));
+ const void* const descriptor_data{compute_pass_descriptor_queue.UpdateData()};
// To unswizzle the ASTC data
const auto params = MakeBlockLinearSwizzle2DParams(swizzle, image.info);
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.h b/src/video_core/renderer_vulkan/vk_compute_pass.h
index c4c8fa081..dd3927376 100644
--- a/src/video_core/renderer_vulkan/vk_compute_pass.h
+++ b/src/video_core/renderer_vulkan/vk_compute_pass.h
@@ -9,6 +9,7 @@
#include "common/common_types.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/renderer_vulkan/vk_descriptor_pool.h"
+#include "video_core/renderer_vulkan/vk_update_descriptor.h"
#include "video_core/vulkan_common/vulkan_memory_allocator.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
@@ -21,7 +22,6 @@ namespace Vulkan {
class Device;
class StagingBufferPool;
class Scheduler;
-class UpdateDescriptorQueue;
class Image;
struct StagingBufferRef;
@@ -50,7 +50,7 @@ class Uint8Pass final : public ComputePass {
public:
explicit Uint8Pass(const Device& device_, Scheduler& scheduler_,
DescriptorPool& descriptor_pool_, StagingBufferPool& staging_buffer_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_);
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue_);
~Uint8Pass();
/// Assemble uint8 indices into an uint16 index buffer
@@ -61,7 +61,7 @@ public:
private:
Scheduler& scheduler;
StagingBufferPool& staging_buffer_pool;
- UpdateDescriptorQueue& update_descriptor_queue;
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue;
};
class QuadIndexedPass final : public ComputePass {
@@ -69,7 +69,7 @@ public:
explicit QuadIndexedPass(const Device& device_, Scheduler& scheduler_,
DescriptorPool& descriptor_pool_,
StagingBufferPool& staging_buffer_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_);
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue_);
~QuadIndexedPass();
std::pair<VkBuffer, VkDeviceSize> Assemble(
@@ -79,7 +79,7 @@ public:
private:
Scheduler& scheduler;
StagingBufferPool& staging_buffer_pool;
- UpdateDescriptorQueue& update_descriptor_queue;
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue;
};
class ASTCDecoderPass final : public ComputePass {
@@ -87,7 +87,7 @@ public:
explicit ASTCDecoderPass(const Device& device_, Scheduler& scheduler_,
DescriptorPool& descriptor_pool_,
StagingBufferPool& staging_buffer_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_,
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue_,
MemoryAllocator& memory_allocator_);
~ASTCDecoderPass();
@@ -97,7 +97,7 @@ public:
private:
Scheduler& scheduler;
StagingBufferPool& staging_buffer_pool;
- UpdateDescriptorQueue& update_descriptor_queue;
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue;
MemoryAllocator& memory_allocator;
};
diff --git a/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp b/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp
index 2a0f0dbf0..73e585c2b 100644
--- a/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp
@@ -26,13 +26,13 @@ using Tegra::Texture::TexturePair;
ComputePipeline::ComputePipeline(const Device& device_, vk::PipelineCache& pipeline_cache_,
DescriptorPool& descriptor_pool,
- UpdateDescriptorQueue& update_descriptor_queue_,
+ GuestDescriptorQueue& guest_descriptor_queue_,
Common::ThreadWorker* thread_worker,
PipelineStatistics* pipeline_statistics,
VideoCore::ShaderNotify* shader_notify, const Shader::Info& info_,
vk::ShaderModule spv_module_)
- : device{device_}, pipeline_cache(pipeline_cache_),
- update_descriptor_queue{update_descriptor_queue_}, info{info_},
+ : device{device_},
+ pipeline_cache(pipeline_cache_), guest_descriptor_queue{guest_descriptor_queue_}, info{info_},
spv_module(std::move(spv_module_)) {
if (shader_notify) {
shader_notify->MarkShaderBuilding();
@@ -99,7 +99,7 @@ ComputePipeline::ComputePipeline(const Device& device_, vk::PipelineCache& pipel
void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute,
Tegra::MemoryManager& gpu_memory, Scheduler& scheduler,
BufferCache& buffer_cache, TextureCache& texture_cache) {
- update_descriptor_queue.Acquire();
+ guest_descriptor_queue.Acquire();
buffer_cache.SetComputeUniformBufferState(info.constant_buffer_mask, &uniform_buffer_sizes);
buffer_cache.UnbindComputeStorageBuffers();
@@ -115,7 +115,7 @@ void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute,
static constexpr size_t max_elements = 64;
boost::container::static_vector<VideoCommon::ImageViewInOut, max_elements> views;
- boost::container::static_vector<VkSampler, max_elements> samplers;
+ boost::container::static_vector<VideoCommon::SamplerId, max_elements> samplers;
const auto& qmd{kepler_compute.launch_description};
const auto& cbufs{qmd.const_buffer_config};
@@ -160,8 +160,8 @@ void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute,
const auto handle{read_handle(desc, index)};
views.push_back({handle.first});
- Sampler* const sampler = texture_cache.GetComputeSampler(handle.second);
- samplers.push_back(sampler->Handle());
+ VideoCommon::SamplerId sampler = texture_cache.GetComputeSamplerId(handle.second);
+ samplers.push_back(sampler);
}
}
for (const auto& desc : info.image_descriptors) {
@@ -192,9 +192,9 @@ void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute,
buffer_cache.BindHostComputeBuffers();
RescalingPushConstant rescaling;
- const VkSampler* samplers_it{samplers.data()};
+ const VideoCommon::SamplerId* samplers_it{samplers.data()};
const VideoCommon::ImageViewInOut* views_it{views.data()};
- PushImageDescriptors(texture_cache, update_descriptor_queue, info, rescaling, samplers_it,
+ PushImageDescriptors(texture_cache, guest_descriptor_queue, info, rescaling, samplers_it,
views_it);
if (!is_built.load(std::memory_order::relaxed)) {
@@ -204,7 +204,7 @@ void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute,
build_condvar.wait(lock, [this] { return is_built.load(std::memory_order::relaxed); });
});
}
- const void* const descriptor_data{update_descriptor_queue.UpdateData()};
+ const void* const descriptor_data{guest_descriptor_queue.UpdateData()};
const bool is_rescaling = !info.texture_descriptors.empty() || !info.image_descriptors.empty();
scheduler.Record([this, descriptor_data, is_rescaling,
rescaling_data = rescaling.Data()](vk::CommandBuffer cmdbuf) {
diff --git a/src/video_core/renderer_vulkan/vk_compute_pipeline.h b/src/video_core/renderer_vulkan/vk_compute_pipeline.h
index 78d77027f..d1a1e2c46 100644
--- a/src/video_core/renderer_vulkan/vk_compute_pipeline.h
+++ b/src/video_core/renderer_vulkan/vk_compute_pipeline.h
@@ -30,7 +30,7 @@ class ComputePipeline {
public:
explicit ComputePipeline(const Device& device, vk::PipelineCache& pipeline_cache,
DescriptorPool& descriptor_pool,
- UpdateDescriptorQueue& update_descriptor_queue,
+ GuestDescriptorQueue& guest_descriptor_queue,
Common::ThreadWorker* thread_worker,
PipelineStatistics* pipeline_statistics,
VideoCore::ShaderNotify* shader_notify, const Shader::Info& info,
@@ -48,7 +48,7 @@ public:
private:
const Device& device;
vk::PipelineCache& pipeline_cache;
- UpdateDescriptorQueue& update_descriptor_queue;
+ GuestDescriptorQueue& guest_descriptor_queue;
Shader::Info info;
VideoCommon::ComputeUniformBufferSizes uniform_buffer_sizes{};
diff --git a/src/video_core/renderer_vulkan/vk_fence_manager.cpp b/src/video_core/renderer_vulkan/vk_fence_manager.cpp
index 0214b103a..fad9e3832 100644
--- a/src/video_core/renderer_vulkan/vk_fence_manager.cpp
+++ b/src/video_core/renderer_vulkan/vk_fence_manager.cpp
@@ -5,6 +5,7 @@
#include "video_core/renderer_vulkan/vk_buffer_cache.h"
#include "video_core/renderer_vulkan/vk_fence_manager.h"
+#include "video_core/renderer_vulkan/vk_query_cache.h"
#include "video_core/renderer_vulkan/vk_scheduler.h"
#include "video_core/renderer_vulkan/vk_texture_cache.h"
#include "video_core/vulkan_common/vulkan_device.h"
diff --git a/src/video_core/renderer_vulkan/vk_fence_manager.h b/src/video_core/renderer_vulkan/vk_fence_manager.h
index 7fe2afcd9..145359d4e 100644
--- a/src/video_core/renderer_vulkan/vk_fence_manager.h
+++ b/src/video_core/renderer_vulkan/vk_fence_manager.h
@@ -40,7 +40,16 @@ private:
};
using Fence = std::shared_ptr<InnerFence>;
-using GenericFenceManager = VideoCommon::FenceManager<Fence, TextureCache, BufferCache, QueryCache>;
+struct FenceManagerParams {
+ using FenceType = Fence;
+ using BufferCacheType = BufferCache;
+ using TextureCacheType = TextureCache;
+ using QueryCacheType = QueryCache;
+
+ static constexpr bool HAS_ASYNC_CHECK = true;
+};
+
+using GenericFenceManager = VideoCommon::FenceManager<FenceManagerParams>;
class FenceManager final : public GenericFenceManager {
public:
diff --git a/src/video_core/renderer_vulkan/vk_fsr.cpp b/src/video_core/renderer_vulkan/vk_fsr.cpp
index 33daa8c1c..9bcdca2fb 100644
--- a/src/video_core/renderer_vulkan/vk_fsr.cpp
+++ b/src/video_core/renderer_vulkan/vk_fsr.cpp
@@ -1,12 +1,11 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#include <cmath>
-#include "common/bit_cast.h"
#include "common/common_types.h"
#include "common/div_ceil.h"
#include "common/settings.h"
+#include "video_core/fsr.h"
#include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp16_comp_spv.h"
#include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp32_comp_spv.h"
#include "video_core/host_shaders/vulkan_fidelityfx_fsr_rcas_fp16_comp_spv.h"
@@ -17,146 +16,7 @@
#include "video_core/vulkan_common/vulkan_device.h"
namespace Vulkan {
-namespace {
-// Reimplementations of the constant generating functions in ffx_fsr1.h
-// GCC generated a lot of warnings when using the official header.
-u32 AU1_AH1_AF1(f32 f) {
- static constexpr u32 base[512]{
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040,
- 0x0080, 0x0100, 0x0200, 0x0400, 0x0800, 0x0c00, 0x1000, 0x1400, 0x1800, 0x1c00, 0x2000,
- 0x2400, 0x2800, 0x2c00, 0x3000, 0x3400, 0x3800, 0x3c00, 0x4000, 0x4400, 0x4800, 0x4c00,
- 0x5000, 0x5400, 0x5800, 0x5c00, 0x6000, 0x6400, 0x6800, 0x6c00, 0x7000, 0x7400, 0x7800,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff, 0x7bff,
- 0x7bff, 0x7bff, 0x7bff, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000,
- 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8001, 0x8002, 0x8004, 0x8008,
- 0x8010, 0x8020, 0x8040, 0x8080, 0x8100, 0x8200, 0x8400, 0x8800, 0x8c00, 0x9000, 0x9400,
- 0x9800, 0x9c00, 0xa000, 0xa400, 0xa800, 0xac00, 0xb000, 0xb400, 0xb800, 0xbc00, 0xc000,
- 0xc400, 0xc800, 0xcc00, 0xd000, 0xd400, 0xd800, 0xdc00, 0xe000, 0xe400, 0xe800, 0xec00,
- 0xf000, 0xf400, 0xf800, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff, 0xfbff,
- };
- static constexpr s8 shift[512]{
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x17, 0x16,
- 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x0e, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
- 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
- 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x17,
- 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x0e, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
- 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d,
- 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x0d, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
- 0x18, 0x18,
- };
- const u32 u = Common::BitCast<u32>(f);
- const u32 i = u >> 23;
- return base[i] + ((u & 0x7fffff) >> shift[i]);
-}
-
-u32 AU1_AH2_AF2(f32 a[2]) {
- return AU1_AH1_AF1(a[0]) + (AU1_AH1_AF1(a[1]) << 16);
-}
-
-void FsrEasuCon(u32 con0[4], u32 con1[4], u32 con2[4], u32 con3[4], f32 inputViewportInPixelsX,
- f32 inputViewportInPixelsY, f32 inputSizeInPixelsX, f32 inputSizeInPixelsY,
- f32 outputSizeInPixelsX, f32 outputSizeInPixelsY) {
- con0[0] = Common::BitCast<u32>(inputViewportInPixelsX / outputSizeInPixelsX);
- con0[1] = Common::BitCast<u32>(inputViewportInPixelsY / outputSizeInPixelsY);
- con0[2] = Common::BitCast<u32>(0.5f * inputViewportInPixelsX / outputSizeInPixelsX - 0.5f);
- con0[3] = Common::BitCast<u32>(0.5f * inputViewportInPixelsY / outputSizeInPixelsY - 0.5f);
- con1[0] = Common::BitCast<u32>(1.0f / inputSizeInPixelsX);
- con1[1] = Common::BitCast<u32>(1.0f / inputSizeInPixelsY);
- con1[2] = Common::BitCast<u32>(1.0f / inputSizeInPixelsX);
- con1[3] = Common::BitCast<u32>(-1.0f / inputSizeInPixelsY);
- con2[0] = Common::BitCast<u32>(-1.0f / inputSizeInPixelsX);
- con2[1] = Common::BitCast<u32>(2.0f / inputSizeInPixelsY);
- con2[2] = Common::BitCast<u32>(1.0f / inputSizeInPixelsX);
- con2[3] = Common::BitCast<u32>(2.0f / inputSizeInPixelsY);
- con3[0] = Common::BitCast<u32>(0.0f / inputSizeInPixelsX);
- con3[1] = Common::BitCast<u32>(4.0f / inputSizeInPixelsY);
- con3[2] = con3[3] = 0;
-}
-
-void FsrEasuConOffset(u32 con0[4], u32 con1[4], u32 con2[4], u32 con3[4],
- f32 inputViewportInPixelsX, f32 inputViewportInPixelsY,
- f32 inputSizeInPixelsX, f32 inputSizeInPixelsY, f32 outputSizeInPixelsX,
- f32 outputSizeInPixelsY, f32 inputOffsetInPixelsX, f32 inputOffsetInPixelsY) {
- FsrEasuCon(con0, con1, con2, con3, inputViewportInPixelsX, inputViewportInPixelsY,
- inputSizeInPixelsX, inputSizeInPixelsY, outputSizeInPixelsX, outputSizeInPixelsY);
- con0[2] = Common::BitCast<u32>(0.5f * inputViewportInPixelsX / outputSizeInPixelsX - 0.5f +
- inputOffsetInPixelsX);
- con0[3] = Common::BitCast<u32>(0.5f * inputViewportInPixelsY / outputSizeInPixelsY - 0.5f +
- inputOffsetInPixelsY);
-}
-
-void FsrRcasCon(u32* con, f32 sharpness) {
- sharpness = std::exp2f(-sharpness);
- f32 hSharp[2]{sharpness, sharpness};
- con[0] = Common::BitCast<u32>(sharpness);
- con[1] = AU1_AH2_AF2(hSharp);
- con[2] = 0;
- con[3] = 0;
-}
-} // Anonymous namespace
+using namespace FSR;
FSR::FSR(const Device& device_, MemoryAllocator& memory_allocator_, size_t image_count_,
VkExtent2D output_size_)
@@ -345,10 +205,9 @@ void FSR::CreateDescriptorSets() {
void FSR::CreateImages() {
images.resize(image_count * 2);
image_views.resize(image_count * 2);
- buffer_commits.resize(image_count * 2);
for (size_t i = 0; i < image_count * 2; ++i) {
- images[i] = device.GetLogical().CreateImage(VkImageCreateInfo{
+ images[i] = memory_allocator.CreateImage(VkImageCreateInfo{
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -371,7 +230,6 @@ void FSR::CreateImages() {
.pQueueFamilyIndices = nullptr,
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
});
- buffer_commits[i] = memory_allocator.Commit(images[i], MemoryUsage::DeviceLocal);
image_views[i] = device.GetLogical().CreateImageView(VkImageViewCreateInfo{
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
.pNext = nullptr,
diff --git a/src/video_core/renderer_vulkan/vk_fsr.h b/src/video_core/renderer_vulkan/vk_fsr.h
index 5d872861f..8bb9fc23a 100644
--- a/src/video_core/renderer_vulkan/vk_fsr.h
+++ b/src/video_core/renderer_vulkan/vk_fsr.h
@@ -47,7 +47,6 @@ private:
vk::Sampler sampler;
std::vector<vk::Image> images;
std::vector<vk::ImageView> image_views;
- std::vector<MemoryCommit> buffer_commits;
};
} // namespace Vulkan
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
index f91bb5a1d..c1595642e 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -236,13 +236,13 @@ GraphicsPipeline::GraphicsPipeline(
Scheduler& scheduler_, BufferCache& buffer_cache_, TextureCache& texture_cache_,
vk::PipelineCache& pipeline_cache_, VideoCore::ShaderNotify* shader_notify,
const Device& device_, DescriptorPool& descriptor_pool,
- UpdateDescriptorQueue& update_descriptor_queue_, Common::ThreadWorker* worker_thread,
+ GuestDescriptorQueue& guest_descriptor_queue_, Common::ThreadWorker* worker_thread,
PipelineStatistics* pipeline_statistics, RenderPassCache& render_pass_cache,
const GraphicsPipelineCacheKey& key_, std::array<vk::ShaderModule, NUM_STAGES> stages,
const std::array<const Shader::Info*, NUM_STAGES>& infos)
: key{key_}, device{device_}, texture_cache{texture_cache_}, buffer_cache{buffer_cache_},
pipeline_cache(pipeline_cache_), scheduler{scheduler_},
- update_descriptor_queue{update_descriptor_queue_}, spv_modules{std::move(stages)} {
+ guest_descriptor_queue{guest_descriptor_queue_}, spv_modules{std::move(stages)} {
if (shader_notify) {
shader_notify->MarkShaderBuilding();
}
@@ -298,7 +298,7 @@ void GraphicsPipeline::AddTransition(GraphicsPipeline* transition) {
template <typename Spec>
void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
std::array<VideoCommon::ImageViewInOut, MAX_IMAGE_ELEMENTS> views;
- std::array<VkSampler, MAX_IMAGE_ELEMENTS> samplers;
+ std::array<VideoCommon::SamplerId, MAX_IMAGE_ELEMENTS> samplers;
size_t sampler_index{};
size_t view_index{};
@@ -367,8 +367,8 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
const auto handle{read_handle(desc, index)};
views[view_index++] = {handle.first};
- Sampler* const sampler{texture_cache.GetGraphicsSampler(handle.second)};
- samplers[sampler_index++] = sampler->Handle();
+ VideoCommon::SamplerId sampler{texture_cache.GetGraphicsSamplerId(handle.second)};
+ samplers[sampler_index++] = sampler;
}
}
if constexpr (Spec::has_images) {
@@ -449,15 +449,15 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
buffer_cache.UpdateGraphicsBuffers(is_indexed);
buffer_cache.BindHostGeometryBuffers(is_indexed);
- update_descriptor_queue.Acquire();
+ guest_descriptor_queue.Acquire();
RescalingPushConstant rescaling;
RenderAreaPushConstant render_area;
- const VkSampler* samplers_it{samplers.data()};
+ const VideoCommon::SamplerId* samplers_it{samplers.data()};
const VideoCommon::ImageViewInOut* views_it{views.data()};
const auto prepare_stage{[&](size_t stage) LAMBDA_FORCEINLINE {
buffer_cache.BindHostStageBuffers(stage);
- PushImageDescriptors(texture_cache, update_descriptor_queue, stage_infos[stage], rescaling,
+ PushImageDescriptors(texture_cache, guest_descriptor_queue, stage_infos[stage], rescaling,
samplers_it, views_it);
const auto& info{stage_infos[0]};
if (info.uses_render_area) {
@@ -481,12 +481,13 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
if constexpr (Spec::enabled_stages[4]) {
prepare_stage(4);
}
+ texture_cache.UpdateRenderTargets(false);
+ texture_cache.CheckFeedbackLoop(views);
ConfigureDraw(rescaling, render_area);
}
void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling,
const RenderAreaPushConstant& render_area) {
- texture_cache.UpdateRenderTargets(false);
scheduler.RequestRenderpass(texture_cache.GetFramebuffer());
if (!is_built.load(std::memory_order::relaxed)) {
@@ -499,7 +500,7 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling,
const bool is_rescaling{texture_cache.IsRescaling()};
const bool update_rescaling{scheduler.UpdateRescaling(is_rescaling)};
const bool bind_pipeline{scheduler.UpdateGraphicsPipeline(this)};
- const void* const descriptor_data{update_descriptor_queue.UpdateData()};
+ const void* const descriptor_data{guest_descriptor_queue.UpdateData()};
scheduler.Record([this, descriptor_data, bind_pipeline, rescaling_data = rescaling.Data(),
is_rescaling, update_rescaling,
uses_render_area = render_area.uses_render_area,
@@ -548,31 +549,7 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {
static_vector<VkVertexInputBindingDescription, 32> vertex_bindings;
static_vector<VkVertexInputBindingDivisorDescriptionEXT, 32> vertex_binding_divisors;
static_vector<VkVertexInputAttributeDescription, 32> vertex_attributes;
- if (key.state.dynamic_vertex_input) {
- const size_t num_vertex_arrays = std::min(
- key.state.attributes.size(), static_cast<size_t>(device.GetMaxVertexInputBindings()));
- for (size_t index = 0; index < num_vertex_arrays; ++index) {
- const u32 type = key.state.DynamicAttributeType(index);
- if (!stage_infos[0].loads.Generic(index) || type == 0) {
- continue;
- }
- vertex_attributes.push_back({
- .location = static_cast<u32>(index),
- .binding = 0,
- .format = type == 1 ? VK_FORMAT_R32_SFLOAT
- : type == 2 ? VK_FORMAT_R32_SINT
- : VK_FORMAT_R32_UINT,
- .offset = 0,
- });
- }
- if (!vertex_attributes.empty()) {
- vertex_bindings.push_back({
- .binding = 0,
- .stride = 4,
- .inputRate = VK_VERTEX_INPUT_RATE_VERTEX,
- });
- }
- } else {
+ if (!key.state.dynamic_vertex_input) {
const size_t num_vertex_arrays = std::min(
Maxwell::NumVertexArrays, static_cast<size_t>(device.GetMaxVertexInputBindings()));
for (size_t index = 0; index < num_vertex_arrays; ++index) {
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.h b/src/video_core/renderer_vulkan/vk_graphics_pipeline.h
index 67c657d0e..99e56e9ad 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.h
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.h
@@ -64,7 +64,6 @@ class RenderPassCache;
class RescalingPushConstant;
class RenderAreaPushConstant;
class Scheduler;
-class UpdateDescriptorQueue;
class GraphicsPipeline {
static constexpr size_t NUM_STAGES = Tegra::Engines::Maxwell3D::Regs::MaxShaderStage;
@@ -74,7 +73,7 @@ public:
Scheduler& scheduler, BufferCache& buffer_cache, TextureCache& texture_cache,
vk::PipelineCache& pipeline_cache, VideoCore::ShaderNotify* shader_notify,
const Device& device, DescriptorPool& descriptor_pool,
- UpdateDescriptorQueue& update_descriptor_queue, Common::ThreadWorker* worker_thread,
+ GuestDescriptorQueue& guest_descriptor_queue, Common::ThreadWorker* worker_thread,
PipelineStatistics* pipeline_statistics, RenderPassCache& render_pass_cache,
const GraphicsPipelineCacheKey& key, std::array<vk::ShaderModule, NUM_STAGES> stages,
const std::array<const Shader::Info*, NUM_STAGES>& infos);
@@ -133,7 +132,7 @@ private:
BufferCache& buffer_cache;
vk::PipelineCache& pipeline_cache;
Scheduler& scheduler;
- UpdateDescriptorQueue& update_descriptor_queue;
+ GuestDescriptorQueue& guest_descriptor_queue;
void (*configure_func)(GraphicsPipeline*, bool){};
diff --git a/src/video_core/renderer_vulkan/vk_master_semaphore.cpp b/src/video_core/renderer_vulkan/vk_master_semaphore.cpp
index 8aa07ef9d..6b288b994 100644
--- a/src/video_core/renderer_vulkan/vk_master_semaphore.cpp
+++ b/src/video_core/renderer_vulkan/vk_master_semaphore.cpp
@@ -3,6 +3,7 @@
#include <thread>
+#include "common/polyfill_ranges.h"
#include "common/settings.h"
#include "video_core/renderer_vulkan/vk_master_semaphore.h"
#include "video_core/vulkan_common/vulkan_device.h"
@@ -10,7 +11,19 @@
namespace Vulkan {
-MasterSemaphore::MasterSemaphore(const Device& device) {
+constexpr u64 FENCE_RESERVE_SIZE = 8;
+
+MasterSemaphore::MasterSemaphore(const Device& device_) : device(device_) {
+ if (!device.HasTimelineSemaphore()) {
+ static constexpr VkFenceCreateInfo fence_ci{
+ .sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO, .pNext = nullptr, .flags = 0};
+ free_queue.resize(FENCE_RESERVE_SIZE);
+ std::ranges::generate(free_queue,
+ [&] { return device.GetLogical().CreateFence(fence_ci); });
+ wait_thread = std::jthread([this](std::stop_token token) { WaitThread(token); });
+ return;
+ }
+
static constexpr VkSemaphoreTypeCreateInfo semaphore_type_ci{
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO,
.pNext = nullptr,
@@ -42,4 +55,164 @@ MasterSemaphore::MasterSemaphore(const Device& device) {
MasterSemaphore::~MasterSemaphore() = default;
+void MasterSemaphore::Refresh() {
+ if (!semaphore) {
+ // If we don't support timeline semaphores, there's nothing to refresh
+ return;
+ }
+
+ u64 this_tick{};
+ u64 counter{};
+ do {
+ this_tick = gpu_tick.load(std::memory_order_acquire);
+ counter = semaphore.GetCounter();
+ if (counter < this_tick) {
+ return;
+ }
+ } while (!gpu_tick.compare_exchange_weak(this_tick, counter, std::memory_order_release,
+ std::memory_order_relaxed));
+}
+
+void MasterSemaphore::Wait(u64 tick) {
+ if (!semaphore) {
+ // If we don't support timeline semaphores, wait for the value normally
+ std::unique_lock lk{free_mutex};
+ free_cv.wait(lk, [&] { return gpu_tick.load(std::memory_order_relaxed) >= tick; });
+ return;
+ }
+
+ // No need to wait if the GPU is ahead of the tick
+ if (IsFree(tick)) {
+ return;
+ }
+
+ // Update the GPU tick and try again
+ Refresh();
+
+ if (IsFree(tick)) {
+ return;
+ }
+
+ // If none of the above is hit, fallback to a regular wait
+ while (!semaphore.Wait(tick)) {
+ }
+
+ Refresh();
+}
+
+VkResult MasterSemaphore::SubmitQueue(vk::CommandBuffer& cmdbuf, VkSemaphore signal_semaphore,
+ VkSemaphore wait_semaphore, u64 host_tick) {
+ if (semaphore) {
+ return SubmitQueueTimeline(cmdbuf, signal_semaphore, wait_semaphore, host_tick);
+ } else {
+ return SubmitQueueFence(cmdbuf, signal_semaphore, wait_semaphore, host_tick);
+ }
+}
+
+static constexpr std::array<VkPipelineStageFlags, 2> wait_stage_masks{
+ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
+ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
+};
+
+VkResult MasterSemaphore::SubmitQueueTimeline(vk::CommandBuffer& cmdbuf,
+ VkSemaphore signal_semaphore,
+ VkSemaphore wait_semaphore, u64 host_tick) {
+ const VkSemaphore timeline_semaphore = *semaphore;
+
+ const u32 num_signal_semaphores = signal_semaphore ? 2 : 1;
+ const std::array signal_values{host_tick, u64(0)};
+ const std::array signal_semaphores{timeline_semaphore, signal_semaphore};
+
+ const u32 num_wait_semaphores = wait_semaphore ? 1 : 0;
+ const VkTimelineSemaphoreSubmitInfo timeline_si{
+ .sType = VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO,
+ .pNext = nullptr,
+ .waitSemaphoreValueCount = 0,
+ .pWaitSemaphoreValues = nullptr,
+ .signalSemaphoreValueCount = num_signal_semaphores,
+ .pSignalSemaphoreValues = signal_values.data(),
+ };
+ const VkSubmitInfo submit_info{
+ .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
+ .pNext = &timeline_si,
+ .waitSemaphoreCount = num_wait_semaphores,
+ .pWaitSemaphores = &wait_semaphore,
+ .pWaitDstStageMask = wait_stage_masks.data(),
+ .commandBufferCount = 1,
+ .pCommandBuffers = cmdbuf.address(),
+ .signalSemaphoreCount = num_signal_semaphores,
+ .pSignalSemaphores = signal_semaphores.data(),
+ };
+
+ return device.GetGraphicsQueue().Submit(submit_info);
+}
+
+VkResult MasterSemaphore::SubmitQueueFence(vk::CommandBuffer& cmdbuf, VkSemaphore signal_semaphore,
+ VkSemaphore wait_semaphore, u64 host_tick) {
+ const u32 num_signal_semaphores = signal_semaphore ? 1 : 0;
+ const u32 num_wait_semaphores = wait_semaphore ? 1 : 0;
+
+ const VkSubmitInfo submit_info{
+ .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
+ .pNext = nullptr,
+ .waitSemaphoreCount = num_wait_semaphores,
+ .pWaitSemaphores = &wait_semaphore,
+ .pWaitDstStageMask = wait_stage_masks.data(),
+ .commandBufferCount = 1,
+ .pCommandBuffers = cmdbuf.address(),
+ .signalSemaphoreCount = num_signal_semaphores,
+ .pSignalSemaphores = &signal_semaphore,
+ };
+
+ auto fence = GetFreeFence();
+ auto result = device.GetGraphicsQueue().Submit(submit_info, *fence);
+
+ if (result == VK_SUCCESS) {
+ std::scoped_lock lock{wait_mutex};
+ wait_queue.emplace(host_tick, std::move(fence));
+ wait_cv.notify_one();
+ }
+
+ return result;
+}
+
+void MasterSemaphore::WaitThread(std::stop_token token) {
+ while (!token.stop_requested()) {
+ u64 host_tick;
+ vk::Fence fence;
+ {
+ std::unique_lock lock{wait_mutex};
+ Common::CondvarWait(wait_cv, lock, token, [this] { return !wait_queue.empty(); });
+ if (token.stop_requested()) {
+ return;
+ }
+ std::tie(host_tick, fence) = std::move(wait_queue.front());
+ wait_queue.pop();
+ }
+
+ fence.Wait();
+ fence.Reset();
+
+ {
+ std::scoped_lock lock{free_mutex};
+ free_queue.push_front(std::move(fence));
+ gpu_tick.store(host_tick);
+ }
+ free_cv.notify_one();
+ }
+}
+
+vk::Fence MasterSemaphore::GetFreeFence() {
+ std::scoped_lock lock{free_mutex};
+ if (free_queue.empty()) {
+ static constexpr VkFenceCreateInfo fence_ci{
+ .sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO, .pNext = nullptr, .flags = 0};
+ return device.GetLogical().CreateFence(fence_ci);
+ }
+
+ auto fence = std::move(free_queue.back());
+ free_queue.pop_back();
+ return fence;
+}
+
} // namespace Vulkan
diff --git a/src/video_core/renderer_vulkan/vk_master_semaphore.h b/src/video_core/renderer_vulkan/vk_master_semaphore.h
index 689f02ea5..3f599d7bd 100644
--- a/src/video_core/renderer_vulkan/vk_master_semaphore.h
+++ b/src/video_core/renderer_vulkan/vk_master_semaphore.h
@@ -4,7 +4,11 @@
#pragma once
#include <atomic>
+#include <condition_variable>
+#include <deque>
+#include <mutex>
#include <thread>
+#include <queue>
#include "common/common_types.h"
#include "common/polyfill_thread.h"
@@ -15,6 +19,8 @@ namespace Vulkan {
class Device;
class MasterSemaphore {
+ using Waitable = std::pair<u64, vk::Fence>;
+
public:
explicit MasterSemaphore(const Device& device);
~MasterSemaphore();
@@ -29,11 +35,6 @@ public:
return gpu_tick.load(std::memory_order_acquire);
}
- /// Returns the timeline semaphore handle.
- [[nodiscard]] VkSemaphore Handle() const noexcept {
- return *semaphore;
- }
-
/// Returns true when a tick has been hit by the GPU.
[[nodiscard]] bool IsFree(u64 tick) const noexcept {
return KnownGpuTick() >= tick;
@@ -45,41 +46,38 @@ public:
}
/// Refresh the known GPU tick
- void Refresh() {
- u64 this_tick{};
- u64 counter{};
- do {
- this_tick = gpu_tick.load(std::memory_order_acquire);
- counter = semaphore.GetCounter();
- if (counter < this_tick) {
- return;
- }
- } while (!gpu_tick.compare_exchange_weak(this_tick, counter, std::memory_order_release,
- std::memory_order_relaxed));
- }
+ void Refresh();
/// Waits for a tick to be hit on the GPU
- void Wait(u64 tick) {
- // No need to wait if the GPU is ahead of the tick
- if (IsFree(tick)) {
- return;
- }
- // Update the GPU tick and try again
- Refresh();
- if (IsFree(tick)) {
- return;
- }
- // If none of the above is hit, fallback to a regular wait
- while (!semaphore.Wait(tick)) {
- }
- Refresh();
- }
+ void Wait(u64 tick);
+
+ /// Submits the device graphics queue, updating the tick as necessary
+ VkResult SubmitQueue(vk::CommandBuffer& cmdbuf, VkSemaphore signal_semaphore,
+ VkSemaphore wait_semaphore, u64 host_tick);
+
+private:
+ VkResult SubmitQueueTimeline(vk::CommandBuffer& cmdbuf, VkSemaphore signal_semaphore,
+ VkSemaphore wait_semaphore, u64 host_tick);
+ VkResult SubmitQueueFence(vk::CommandBuffer& cmdbuf, VkSemaphore signal_semaphore,
+ VkSemaphore wait_semaphore, u64 host_tick);
+
+ void WaitThread(std::stop_token token);
+
+ vk::Fence GetFreeFence();
private:
+ const Device& device; ///< Device.
vk::Semaphore semaphore; ///< Timeline semaphore.
std::atomic<u64> gpu_tick{0}; ///< Current known GPU tick.
std::atomic<u64> current_tick{1}; ///< Current logical tick.
+ std::mutex wait_mutex;
+ std::mutex free_mutex;
+ std::condition_variable free_cv;
+ std::condition_variable_any wait_cv;
+ std::queue<Waitable> wait_queue; ///< Queue for the fences to be waited on by the wait thread.
+ std::deque<vk::Fence> free_queue; ///< Holds available fences for submission.
std::jthread debug_thread; ///< Debug thread to workaround validation layer bugs.
+ std::jthread wait_thread; ///< Helper thread that waits for submitted fences.
};
} // namespace Vulkan
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index 7e69b11d8..9f316113c 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -114,14 +114,16 @@ Shader::AttributeType CastAttributeType(const FixedPipelineState::VertexAttribut
return Shader::AttributeType::Disabled;
case Maxwell::VertexAttribute::Type::SNorm:
case Maxwell::VertexAttribute::Type::UNorm:
- case Maxwell::VertexAttribute::Type::UScaled:
- case Maxwell::VertexAttribute::Type::SScaled:
case Maxwell::VertexAttribute::Type::Float:
return Shader::AttributeType::Float;
case Maxwell::VertexAttribute::Type::SInt:
return Shader::AttributeType::SignedInt;
case Maxwell::VertexAttribute::Type::UInt:
return Shader::AttributeType::UnsignedInt;
+ case Maxwell::VertexAttribute::Type::UScaled:
+ return Shader::AttributeType::UnsignedScaled;
+ case Maxwell::VertexAttribute::Type::SScaled:
+ return Shader::AttributeType::SignedScaled;
}
return Shader::AttributeType::Float;
}
@@ -165,7 +167,10 @@ Shader::RuntimeInfo MakeRuntimeInfo(std::span<const Shader::IR::Program> program
info.fixed_state_point_size = point_size;
}
if (key.state.xfb_enabled) {
- info.xfb_varyings = VideoCommon::MakeTransformFeedbackVaryings(key.state.xfb_state);
+ auto [varyings, count] =
+ VideoCommon::MakeTransformFeedbackVaryings(key.state.xfb_state);
+ info.xfb_varyings = varyings;
+ info.xfb_count = count;
}
info.convert_depth_mode = gl_ndc;
}
@@ -212,7 +217,10 @@ Shader::RuntimeInfo MakeRuntimeInfo(std::span<const Shader::IR::Program> program
info.fixed_state_point_size = point_size;
}
if (key.state.xfb_enabled != 0) {
- info.xfb_varyings = VideoCommon::MakeTransformFeedbackVaryings(key.state.xfb_state);
+ auto [varyings, count] =
+ VideoCommon::MakeTransformFeedbackVaryings(key.state.xfb_state);
+ info.xfb_varyings = varyings;
+ info.xfb_count = count;
}
info.convert_depth_mode = gl_ndc;
break;
@@ -277,23 +285,26 @@ bool GraphicsPipelineCacheKey::operator==(const GraphicsPipelineCacheKey& rhs) c
PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device_,
Scheduler& scheduler_, DescriptorPool& descriptor_pool_,
- UpdateDescriptorQueue& update_descriptor_queue_,
+ GuestDescriptorQueue& guest_descriptor_queue_,
RenderPassCache& render_pass_cache_, BufferCache& buffer_cache_,
TextureCache& texture_cache_, VideoCore::ShaderNotify& shader_notify_)
: VideoCommon::ShaderCache{rasterizer_}, device{device_}, scheduler{scheduler_},
- descriptor_pool{descriptor_pool_}, update_descriptor_queue{update_descriptor_queue_},
+ descriptor_pool{descriptor_pool_}, guest_descriptor_queue{guest_descriptor_queue_},
render_pass_cache{render_pass_cache_}, buffer_cache{buffer_cache_},
texture_cache{texture_cache_}, shader_notify{shader_notify_},
use_asynchronous_shaders{Settings::values.use_asynchronous_shaders.GetValue()},
use_vulkan_pipeline_cache{Settings::values.use_vulkan_driver_pipeline_cache.GetValue()},
- workers(std::max(std::thread::hardware_concurrency(), 2U) - 1, "VkPipelineBuilder"),
+ workers(device.GetDriverID() == VK_DRIVER_ID_QUALCOMM_PROPRIETARY
+ ? 1
+ : (std::max(std::thread::hardware_concurrency(), 2U) - 1),
+ "VkPipelineBuilder"),
serialization_thread(1, "VkPipelineSerialization") {
const auto& float_control{device.FloatControlProperties()};
const VkDriverId driver_id{device.GetDriverID()};
profile = Shader::Profile{
.supported_spirv = device.SupportedSpirvVersion(),
.unified_descriptor_binding = true,
- .support_descriptor_aliasing = true,
+ .support_descriptor_aliasing = device.IsDescriptorAliasingSupported(),
.support_int8 = device.IsInt8Supported(),
.support_int16 = device.IsShaderInt16Supported(),
.support_int64 = device.IsShaderInt64Supported(),
@@ -324,11 +335,17 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device
.support_derivative_control = true,
.support_geometry_shader_passthrough = device.IsNvGeometryShaderPassthroughSupported(),
.support_native_ndc = device.IsExtDepthClipControlSupported(),
+ .support_scaled_attributes = !device.MustEmulateScaledFormats(),
.warp_size_potentially_larger_than_guest = device.IsWarpSizePotentiallyBiggerThanGuest(),
.lower_left_origin_mode = false,
.need_declared_frag_colors = false,
+ .need_gather_subpixel_offset = driver_id == VK_DRIVER_ID_AMD_PROPRIETARY ||
+ 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,
.has_broken_spirv_clamp = driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS,
.has_broken_spirv_position_input = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY,
@@ -336,16 +353,18 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device
.has_broken_signed_operations = false,
.has_broken_fp16_float_controls = driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY,
.ignore_nan_fp_comparisons = false,
- };
+ .has_broken_spirv_subgroup_mask_vector_extract_dynamic =
+ driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY};
host_info = Shader::HostTranslateInfo{
+ .support_float64 = device.IsFloat64Supported(),
.support_float16 = device.IsFloat16Supported(),
.support_int64 = device.IsShaderInt64Supported(),
.needs_demote_reorder =
driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE,
.support_snorm_render_buffer = true,
.support_viewport_index_layer = device.IsExtShaderViewportIndexLayerSupported(),
- .min_ssbo_alignment = static_cast<u32>(device.GetStorageBufferAlignment()),
.support_geometry_shader_passthrough = device.IsNvGeometryShaderPassthroughSupported(),
+ .support_conditional_barrier = device.SupportsConditionalBarriers(),
};
if (device.GetMaxVertexInputAttributes() < Maxwell::NumVertexAttributes) {
@@ -639,7 +658,7 @@ std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline(
Common::ThreadWorker* const thread_worker{build_in_parallel ? &workers : nullptr};
return std::make_unique<GraphicsPipeline>(
scheduler, buffer_cache, texture_cache, vulkan_pipeline_cache, &shader_notify, device,
- descriptor_pool, update_descriptor_queue, thread_worker, statistics, render_pass_cache, key,
+ descriptor_pool, guest_descriptor_queue, thread_worker, statistics, render_pass_cache, key,
std::move(modules), infos);
} catch (const Shader::Exception& exception) {
@@ -692,6 +711,11 @@ std::unique_ptr<ComputePipeline> PipelineCache::CreateComputePipeline(
std::unique_ptr<ComputePipeline> PipelineCache::CreateComputePipeline(
ShaderPools& pools, const ComputePipelineCacheKey& key, Shader::Environment& env,
PipelineStatistics* statistics, bool build_in_parallel) try {
+ if (device.HasBrokenCompute()) {
+ LOG_ERROR(Render_Vulkan, "Skipping 0x{:016x}", key.Hash());
+ return nullptr;
+ }
+
LOG_INFO(Render_Vulkan, "0x{:016x}", key.Hash());
Shader::Maxwell::Flow::CFG cfg{env, pools.flow_block, env.StartAddress()};
@@ -711,7 +735,7 @@ std::unique_ptr<ComputePipeline> PipelineCache::CreateComputePipeline(
}
Common::ThreadWorker* const thread_worker{build_in_parallel ? &workers : nullptr};
return std::make_unique<ComputePipeline>(device, vulkan_pipeline_cache, descriptor_pool,
- update_descriptor_queue, thread_worker, statistics,
+ guest_descriptor_queue, thread_worker, statistics,
&shader_notify, program.info, std::move(spv_module));
} catch (const Shader::Exception& exception) {
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.h b/src/video_core/renderer_vulkan/vk_pipeline_cache.h
index 5171912d7..e323ea0fd 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h
@@ -82,7 +82,6 @@ class PipelineStatistics;
class RasterizerVulkan;
class RenderPassCache;
class Scheduler;
-class UpdateDescriptorQueue;
using VideoCommon::ShaderInfo;
@@ -93,16 +92,16 @@ struct ShaderPools {
inst.ReleaseContents();
}
- Shader::ObjectPool<Shader::IR::Inst> inst;
- Shader::ObjectPool<Shader::IR::Block> block;
- Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block;
+ Shader::ObjectPool<Shader::IR::Inst> inst{8192};
+ Shader::ObjectPool<Shader::IR::Block> block{32};
+ Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block{32};
};
class PipelineCache : public VideoCommon::ShaderCache {
public:
explicit PipelineCache(RasterizerVulkan& rasterizer, const Device& device, Scheduler& scheduler,
DescriptorPool& descriptor_pool,
- UpdateDescriptorQueue& update_descriptor_queue,
+ GuestDescriptorQueue& guest_descriptor_queue,
RenderPassCache& render_pass_cache, BufferCache& buffer_cache,
TextureCache& texture_cache, VideoCore::ShaderNotify& shader_notify_);
~PipelineCache();
@@ -144,7 +143,7 @@ private:
const Device& device;
Scheduler& scheduler;
DescriptorPool& descriptor_pool;
- UpdateDescriptorQueue& update_descriptor_queue;
+ GuestDescriptorQueue& guest_descriptor_queue;
RenderPassCache& render_pass_cache;
BufferCache& buffer_cache;
TextureCache& texture_cache;
diff --git a/src/video_core/renderer_vulkan/vk_present_manager.cpp b/src/video_core/renderer_vulkan/vk_present_manager.cpp
new file mode 100644
index 000000000..d681bd22a
--- /dev/null
+++ b/src/video_core/renderer_vulkan/vk_present_manager.cpp
@@ -0,0 +1,491 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "common/microprofile.h"
+#include "common/settings.h"
+#include "common/thread.h"
+#include "core/frontend/emu_window.h"
+#include "video_core/renderer_vulkan/vk_present_manager.h"
+#include "video_core/renderer_vulkan/vk_scheduler.h"
+#include "video_core/renderer_vulkan/vk_swapchain.h"
+#include "video_core/vulkan_common/vulkan_device.h"
+#include "video_core/vulkan_common/vulkan_surface.h"
+
+namespace Vulkan {
+
+MICROPROFILE_DEFINE(Vulkan_WaitPresent, "Vulkan", "Wait For Present", MP_RGB(128, 128, 128));
+MICROPROFILE_DEFINE(Vulkan_CopyToSwapchain, "Vulkan", "Copy to swapchain", MP_RGB(192, 255, 192));
+
+namespace {
+
+bool CanBlitToSwapchain(const vk::PhysicalDevice& physical_device, VkFormat format) {
+ const VkFormatProperties props{physical_device.GetFormatProperties(format)};
+ return (props.optimalTilingFeatures & VK_FORMAT_FEATURE_BLIT_DST_BIT);
+}
+
+[[nodiscard]] VkImageSubresourceLayers MakeImageSubresourceLayers() {
+ return VkImageSubresourceLayers{
+ .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+ .mipLevel = 0,
+ .baseArrayLayer = 0,
+ .layerCount = 1,
+ };
+}
+
+[[nodiscard]] VkImageBlit MakeImageBlit(s32 frame_width, s32 frame_height, s32 swapchain_width,
+ s32 swapchain_height) {
+ return VkImageBlit{
+ .srcSubresource = MakeImageSubresourceLayers(),
+ .srcOffsets =
+ {
+ {
+ .x = 0,
+ .y = 0,
+ .z = 0,
+ },
+ {
+ .x = frame_width,
+ .y = frame_height,
+ .z = 1,
+ },
+ },
+ .dstSubresource = MakeImageSubresourceLayers(),
+ .dstOffsets =
+ {
+ {
+ .x = 0,
+ .y = 0,
+ .z = 0,
+ },
+ {
+ .x = swapchain_width,
+ .y = swapchain_height,
+ .z = 1,
+ },
+ },
+ };
+}
+
+[[nodiscard]] VkImageCopy MakeImageCopy(u32 frame_width, u32 frame_height, u32 swapchain_width,
+ u32 swapchain_height) {
+ return VkImageCopy{
+ .srcSubresource = MakeImageSubresourceLayers(),
+ .srcOffset =
+ {
+ .x = 0,
+ .y = 0,
+ .z = 0,
+ },
+ .dstSubresource = MakeImageSubresourceLayers(),
+ .dstOffset =
+ {
+ .x = 0,
+ .y = 0,
+ .z = 0,
+ },
+ .extent =
+ {
+ .width = std::min(frame_width, swapchain_width),
+ .height = std::min(frame_height, swapchain_height),
+ .depth = 1,
+ },
+ };
+}
+
+} // Anonymous namespace
+
+PresentManager::PresentManager(const vk::Instance& instance_,
+ Core::Frontend::EmuWindow& render_window_, const Device& device_,
+ MemoryAllocator& memory_allocator_, Scheduler& scheduler_,
+ Swapchain& swapchain_, vk::SurfaceKHR& surface_)
+ : instance{instance_}, render_window{render_window_}, device{device_},
+ memory_allocator{memory_allocator_}, scheduler{scheduler_}, swapchain{swapchain_},
+ surface{surface_}, blit_supported{CanBlitToSwapchain(device.GetPhysical(),
+ swapchain.GetImageViewFormat())},
+ use_present_thread{Settings::values.async_presentation.GetValue()},
+ image_count{swapchain.GetImageCount()}, last_render_surface{
+ render_window_.GetWindowInfo().render_surface} {
+
+ auto& dld = device.GetLogical();
+ cmdpool = dld.CreateCommandPool({
+ .sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,
+ .pNext = nullptr,
+ .flags =
+ VK_COMMAND_POOL_CREATE_TRANSIENT_BIT | VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT,
+ .queueFamilyIndex = device.GetGraphicsFamily(),
+ });
+ auto cmdbuffers = cmdpool.Allocate(image_count);
+
+ frames.resize(image_count);
+ for (u32 i = 0; i < frames.size(); i++) {
+ Frame& frame = frames[i];
+ frame.cmdbuf = vk::CommandBuffer{cmdbuffers[i], device.GetDispatchLoader()};
+ frame.render_ready = dld.CreateSemaphore({
+ .sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = 0,
+ });
+ frame.present_done = dld.CreateFence({
+ .sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = VK_FENCE_CREATE_SIGNALED_BIT,
+ });
+ free_queue.push(&frame);
+ }
+
+ if (use_present_thread) {
+ present_thread = std::jthread([this](std::stop_token token) { PresentThread(token); });
+ }
+}
+
+PresentManager::~PresentManager() = default;
+
+Frame* PresentManager::GetRenderFrame() {
+ MICROPROFILE_SCOPE(Vulkan_WaitPresent);
+
+ // Wait for free presentation frames
+ std::unique_lock lock{free_mutex};
+ free_cv.wait(lock, [this] { return !free_queue.empty(); });
+
+ // Take the frame from the queue
+ Frame* frame = free_queue.front();
+ free_queue.pop();
+
+ // Wait for the presentation to be finished so all frame resources are free
+ frame->present_done.Wait();
+ frame->present_done.Reset();
+
+ return frame;
+}
+
+void PresentManager::Present(Frame* frame) {
+ if (!use_present_thread) {
+ scheduler.WaitWorker();
+ CopyToSwapchain(frame);
+ free_queue.push(frame);
+ return;
+ }
+
+ scheduler.Record([this, frame](vk::CommandBuffer) {
+ std::unique_lock lock{queue_mutex};
+ present_queue.push(frame);
+ frame_cv.notify_one();
+ });
+}
+
+void PresentManager::RecreateFrame(Frame* frame, u32 width, u32 height, bool is_srgb,
+ VkFormat image_view_format, VkRenderPass rd) {
+ auto& dld = device.GetLogical();
+
+ frame->width = width;
+ frame->height = height;
+ frame->is_srgb = is_srgb;
+
+ frame->image = memory_allocator.CreateImage({
+ .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT,
+ .imageType = VK_IMAGE_TYPE_2D,
+ .format = swapchain.GetImageFormat(),
+ .extent =
+ {
+ .width = width,
+ .height = height,
+ .depth = 1,
+ },
+ .mipLevels = 1,
+ .arrayLayers = 1,
+ .samples = VK_SAMPLE_COUNT_1_BIT,
+ .tiling = VK_IMAGE_TILING_OPTIMAL,
+ .usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
+ .sharingMode = VK_SHARING_MODE_EXCLUSIVE,
+ .queueFamilyIndexCount = 0,
+ .pQueueFamilyIndices = nullptr,
+ .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
+ });
+
+ frame->image_view = dld.CreateImageView({
+ .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = 0,
+ .image = *frame->image,
+ .viewType = VK_IMAGE_VIEW_TYPE_2D,
+ .format = image_view_format,
+ .components =
+ {
+ .r = VK_COMPONENT_SWIZZLE_IDENTITY,
+ .g = VK_COMPONENT_SWIZZLE_IDENTITY,
+ .b = VK_COMPONENT_SWIZZLE_IDENTITY,
+ .a = VK_COMPONENT_SWIZZLE_IDENTITY,
+ },
+ .subresourceRange =
+ {
+ .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+ .baseMipLevel = 0,
+ .levelCount = 1,
+ .baseArrayLayer = 0,
+ .layerCount = 1,
+ },
+ });
+
+ const VkImageView image_view{*frame->image_view};
+ frame->framebuffer = dld.CreateFramebuffer({
+ .sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = 0,
+ .renderPass = rd,
+ .attachmentCount = 1,
+ .pAttachments = &image_view,
+ .width = width,
+ .height = height,
+ .layers = 1,
+ });
+}
+
+void PresentManager::WaitPresent() {
+ if (!use_present_thread) {
+ return;
+ }
+
+ // Wait for the present queue to be empty
+ {
+ std::unique_lock queue_lock{queue_mutex};
+ frame_cv.wait(queue_lock, [this] { return present_queue.empty(); });
+ }
+
+ // The above condition will be satisfied when the last frame is taken from the queue.
+ // To ensure that frame has been presented as well take hold of the swapchain
+ // mutex.
+ std::scoped_lock swapchain_lock{swapchain_mutex};
+}
+
+void PresentManager::PresentThread(std::stop_token token) {
+ Common::SetCurrentThreadName("VulkanPresent");
+ while (!token.stop_requested()) {
+ std::unique_lock lock{queue_mutex};
+
+ // Wait for presentation frames
+ Common::CondvarWait(frame_cv, lock, token, [this] { return !present_queue.empty(); });
+ if (token.stop_requested()) {
+ return;
+ }
+
+ // Take the frame and notify anyone waiting
+ Frame* frame = present_queue.front();
+ present_queue.pop();
+ frame_cv.notify_one();
+
+ // By exchanging the lock ownership we take the swapchain lock
+ // before the queue lock goes out of scope. This way the swapchain
+ // lock in WaitPresent is guaranteed to occur after here.
+ std::exchange(lock, std::unique_lock{swapchain_mutex});
+
+ CopyToSwapchain(frame);
+
+ // Free the frame for reuse
+ std::scoped_lock fl{free_mutex};
+ free_queue.push(frame);
+ free_cv.notify_one();
+ }
+}
+
+void PresentManager::NotifySurfaceChanged() {
+#ifdef ANDROID
+ std::scoped_lock lock{recreate_surface_mutex};
+ recreate_surface_cv.notify_one();
+#endif
+}
+
+void PresentManager::CopyToSwapchain(Frame* frame) {
+ MICROPROFILE_SCOPE(Vulkan_CopyToSwapchain);
+
+ const auto recreate_swapchain = [&] {
+ swapchain.Create(*surface, frame->width, frame->height, frame->is_srgb);
+ image_count = swapchain.GetImageCount();
+ };
+
+#ifdef ANDROID
+ std::unique_lock lock{recreate_surface_mutex};
+
+ const auto needs_recreation = [&] {
+ if (last_render_surface != render_window.GetWindowInfo().render_surface) {
+ return true;
+ }
+ if (swapchain.NeedsRecreation(frame->is_srgb)) {
+ return true;
+ }
+ return false;
+ };
+
+ recreate_surface_cv.wait_for(lock, std::chrono::milliseconds(400),
+ [&]() { return !needs_recreation(); });
+
+ // If the frontend recreated the surface, recreate the renderer surface and swapchain.
+ if (last_render_surface != render_window.GetWindowInfo().render_surface) {
+ last_render_surface = render_window.GetWindowInfo().render_surface;
+ surface = CreateSurface(instance, render_window.GetWindowInfo());
+ recreate_swapchain();
+ }
+#endif
+
+ // If the size or colorspace of the incoming frames has changed, recreate the swapchain
+ // to account for that.
+ const bool srgb_changed = swapchain.NeedsRecreation(frame->is_srgb);
+ const bool size_changed =
+ swapchain.GetWidth() != frame->width || swapchain.GetHeight() != frame->height;
+ if (srgb_changed || size_changed) {
+ recreate_swapchain();
+ }
+
+ while (swapchain.AcquireNextImage()) {
+ recreate_swapchain();
+ }
+
+ const vk::CommandBuffer cmdbuf{frame->cmdbuf};
+ cmdbuf.Begin({
+ .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO,
+ .pNext = nullptr,
+ .flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT,
+ .pInheritanceInfo = nullptr,
+ });
+
+ const VkImage image{swapchain.CurrentImage()};
+ const VkExtent2D extent = swapchain.GetExtent();
+ const std::array pre_barriers{
+ VkImageMemoryBarrier{
+ .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
+ .pNext = nullptr,
+ .srcAccessMask = 0,
+ .dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT,
+ .oldLayout = VK_IMAGE_LAYOUT_UNDEFINED,
+ .newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
+ .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .image = image,
+ .subresourceRange{
+ .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+ .baseMipLevel = 0,
+ .levelCount = 1,
+ .baseArrayLayer = 0,
+ .layerCount = VK_REMAINING_ARRAY_LAYERS,
+ },
+ },
+ VkImageMemoryBarrier{
+ .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
+ .pNext = nullptr,
+ .srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
+ .dstAccessMask = VK_ACCESS_TRANSFER_READ_BIT,
+ .oldLayout = VK_IMAGE_LAYOUT_GENERAL,
+ .newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
+ .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .image = *frame->image,
+ .subresourceRange{
+ .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+ .baseMipLevel = 0,
+ .levelCount = 1,
+ .baseArrayLayer = 0,
+ .layerCount = VK_REMAINING_ARRAY_LAYERS,
+ },
+ },
+ };
+ const std::array post_barriers{
+ VkImageMemoryBarrier{
+ .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
+ .pNext = nullptr,
+ .srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT,
+ .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT,
+ .oldLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
+ .newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
+ .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .image = image,
+ .subresourceRange{
+ .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+ .baseMipLevel = 0,
+ .levelCount = 1,
+ .baseArrayLayer = 0,
+ .layerCount = VK_REMAINING_ARRAY_LAYERS,
+ },
+ },
+ VkImageMemoryBarrier{
+ .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
+ .pNext = nullptr,
+ .srcAccessMask = VK_ACCESS_TRANSFER_READ_BIT,
+ .dstAccessMask = VK_ACCESS_MEMORY_WRITE_BIT,
+ .oldLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
+ .newLayout = VK_IMAGE_LAYOUT_GENERAL,
+ .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
+ .image = *frame->image,
+ .subresourceRange{
+ .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+ .baseMipLevel = 0,
+ .levelCount = 1,
+ .baseArrayLayer = 0,
+ .layerCount = VK_REMAINING_ARRAY_LAYERS,
+ },
+ },
+ };
+
+ cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, {},
+ {}, {}, pre_barriers);
+
+ if (blit_supported) {
+ cmdbuf.BlitImage(*frame->image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, image,
+ VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
+ MakeImageBlit(frame->width, frame->height, extent.width, extent.height),
+ VK_FILTER_LINEAR);
+ } else {
+ cmdbuf.CopyImage(*frame->image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, image,
+ VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
+ MakeImageCopy(frame->width, frame->height, extent.width, extent.height));
+ }
+
+ cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, {},
+ {}, {}, post_barriers);
+
+ cmdbuf.End();
+
+ const VkSemaphore present_semaphore = swapchain.CurrentPresentSemaphore();
+ const VkSemaphore render_semaphore = swapchain.CurrentRenderSemaphore();
+ const std::array wait_semaphores = {present_semaphore, *frame->render_ready};
+
+ static constexpr std::array<VkPipelineStageFlags, 2> wait_stage_masks{
+ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
+ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
+ };
+
+ const VkSubmitInfo submit_info{
+ .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
+ .pNext = nullptr,
+ .waitSemaphoreCount = 2U,
+ .pWaitSemaphores = wait_semaphores.data(),
+ .pWaitDstStageMask = wait_stage_masks.data(),
+ .commandBufferCount = 1,
+ .pCommandBuffers = cmdbuf.address(),
+ .signalSemaphoreCount = 1U,
+ .pSignalSemaphores = &render_semaphore,
+ };
+
+ // Submit the image copy/blit to the swapchain
+ {
+ std::scoped_lock submit_lock{scheduler.submit_mutex};
+ switch (const VkResult result =
+ device.GetGraphicsQueue().Submit(submit_info, *frame->present_done)) {
+ case VK_SUCCESS:
+ break;
+ case VK_ERROR_DEVICE_LOST:
+ device.ReportLoss();
+ [[fallthrough]];
+ default:
+ vk::Check(result);
+ break;
+ }
+ }
+
+ // Present
+ swapchain.Present(render_semaphore);
+}
+
+} // namespace Vulkan \ No newline at end of file
diff --git a/src/video_core/renderer_vulkan/vk_present_manager.h b/src/video_core/renderer_vulkan/vk_present_manager.h
new file mode 100644
index 000000000..83e859416
--- /dev/null
+++ b/src/video_core/renderer_vulkan/vk_present_manager.h
@@ -0,0 +1,91 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <condition_variable>
+#include <mutex>
+#include <queue>
+
+#include "common/common_types.h"
+#include "common/polyfill_thread.h"
+#include "video_core/vulkan_common/vulkan_memory_allocator.h"
+#include "video_core/vulkan_common/vulkan_wrapper.h"
+
+namespace Core::Frontend {
+class EmuWindow;
+} // namespace Core::Frontend
+
+namespace Vulkan {
+
+class Device;
+class Scheduler;
+class Swapchain;
+
+struct Frame {
+ u32 width;
+ u32 height;
+ bool is_srgb;
+ vk::Image image;
+ vk::ImageView image_view;
+ vk::Framebuffer framebuffer;
+ vk::CommandBuffer cmdbuf;
+ vk::Semaphore render_ready;
+ vk::Fence present_done;
+};
+
+class PresentManager {
+public:
+ PresentManager(const vk::Instance& instance, Core::Frontend::EmuWindow& render_window,
+ const Device& device, MemoryAllocator& memory_allocator, Scheduler& scheduler,
+ Swapchain& swapchain, vk::SurfaceKHR& surface);
+ ~PresentManager();
+
+ /// Returns the last used presentation frame
+ Frame* GetRenderFrame();
+
+ /// Pushes a frame for presentation
+ void Present(Frame* frame);
+
+ /// Recreates the present frame to match the provided parameters
+ void RecreateFrame(Frame* frame, u32 width, u32 height, bool is_srgb,
+ VkFormat image_view_format, VkRenderPass rd);
+
+ /// Waits for the present thread to finish presenting all queued frames.
+ void WaitPresent();
+
+ /// This is called to notify the rendering backend of a surface change
+ void NotifySurfaceChanged();
+
+private:
+ void PresentThread(std::stop_token token);
+
+ void CopyToSwapchain(Frame* frame);
+
+private:
+ const vk::Instance& instance;
+ Core::Frontend::EmuWindow& render_window;
+ const Device& device;
+ MemoryAllocator& memory_allocator;
+ Scheduler& scheduler;
+ Swapchain& swapchain;
+ vk::SurfaceKHR& surface;
+ vk::CommandPool cmdpool;
+ std::vector<Frame> frames;
+ std::queue<Frame*> present_queue;
+ std::queue<Frame*> free_queue;
+ std::condition_variable_any frame_cv;
+ std::condition_variable free_cv;
+ std::condition_variable recreate_surface_cv;
+ std::mutex swapchain_mutex;
+ std::mutex recreate_surface_mutex;
+ std::mutex queue_mutex;
+ std::mutex free_mutex;
+ std::jthread present_thread;
+ bool blit_supported;
+ bool use_present_thread;
+ std::size_t image_count{};
+ void* last_render_surface{};
+};
+
+} // 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 929c8ece6..d67490449 100644
--- a/src/video_core/renderer_vulkan/vk_query_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp
@@ -66,9 +66,10 @@ void QueryPool::Reserve(std::pair<VkQueryPool, u32> query) {
}
}
-QueryCache::QueryCache(VideoCore::RasterizerInterface& rasterizer_, const Device& device_,
+QueryCache::QueryCache(VideoCore::RasterizerInterface& rasterizer_,
+ Core::Memory::Memory& cpu_memory_, const Device& device_,
Scheduler& scheduler_)
- : QueryCacheBase{rasterizer_}, device{device_}, scheduler{scheduler_},
+ : QueryCacheBase{rasterizer_, cpu_memory_}, device{device_}, scheduler{scheduler_},
query_pools{
QueryPool{device_, scheduler_, QueryType::SamplesPassed},
} {}
@@ -98,8 +99,10 @@ HostCounter::HostCounter(QueryCache& cache_, std::shared_ptr<HostCounter> depend
query{cache_.AllocateQuery(type_)}, tick{cache_.GetScheduler().CurrentTick()} {
const vk::Device* logical = &cache.GetDevice().GetLogical();
cache.GetScheduler().Record([logical, query = query](vk::CommandBuffer cmdbuf) {
+ const bool use_precise = Settings::IsGPULevelHigh();
logical->ResetQueryPool(query.first, query.second, 1);
- cmdbuf.BeginQuery(query.first, query.second, VK_QUERY_CONTROL_PRECISE_BIT);
+ cmdbuf.BeginQuery(query.first, query.second,
+ use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0);
});
}
@@ -112,8 +115,10 @@ void HostCounter::EndQuery() {
[query = query](vk::CommandBuffer cmdbuf) { cmdbuf.EndQuery(query.first, query.second); });
}
-u64 HostCounter::BlockingQuery() const {
- cache.GetScheduler().Wait(tick);
+u64 HostCounter::BlockingQuery(bool async) const {
+ if (!async) {
+ cache.GetScheduler().Wait(tick);
+ }
u64 data;
const VkResult query_result = cache.GetDevice().GetLogical().GetQueryResults(
query.first, query.second, 1, sizeof(data), &data, sizeof(data),
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.h b/src/video_core/renderer_vulkan/vk_query_cache.h
index 26762ee09..c1b9552eb 100644
--- a/src/video_core/renderer_vulkan/vk_query_cache.h
+++ b/src/video_core/renderer_vulkan/vk_query_cache.h
@@ -52,7 +52,8 @@ private:
class QueryCache final
: public VideoCommon::QueryCacheBase<QueryCache, CachedQuery, CounterStream, HostCounter> {
public:
- explicit QueryCache(VideoCore::RasterizerInterface& rasterizer_, const Device& device_,
+ explicit QueryCache(VideoCore::RasterizerInterface& rasterizer_,
+ Core::Memory::Memory& cpu_memory_, const Device& device_,
Scheduler& scheduler_);
~QueryCache();
@@ -83,7 +84,7 @@ public:
void EndQuery();
private:
- u64 BlockingQuery() const override;
+ u64 BlockingQuery(bool async = false) const override;
QueryCache& cache;
const VideoCore::QueryType type;
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 86ef0daeb..84e3a30cc 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -160,19 +160,19 @@ RasterizerVulkan::RasterizerVulkan(Core::Frontend::EmuWindow& emu_window_, Tegra
: RasterizerAccelerated{cpu_memory_}, gpu{gpu_}, screen_info{screen_info_}, device{device_},
memory_allocator{memory_allocator_}, state_tracker{state_tracker_}, scheduler{scheduler_},
staging_pool(device, memory_allocator, scheduler), descriptor_pool(device, scheduler),
- update_descriptor_queue(device, scheduler),
- blit_image(device, scheduler, state_tracker, descriptor_pool),
- render_pass_cache(device), texture_cache_runtime{device, scheduler,
- memory_allocator, staging_pool,
- blit_image, render_pass_cache,
- descriptor_pool, update_descriptor_queue},
+ guest_descriptor_queue(device, scheduler), compute_pass_descriptor_queue(device, scheduler),
+ blit_image(device, scheduler, state_tracker, descriptor_pool), render_pass_cache(device),
+ texture_cache_runtime{
+ device, scheduler, memory_allocator, staging_pool,
+ blit_image, render_pass_cache, descriptor_pool, compute_pass_descriptor_queue},
texture_cache(texture_cache_runtime, *this),
buffer_cache_runtime(device, memory_allocator, scheduler, staging_pool,
- update_descriptor_queue, descriptor_pool),
+ guest_descriptor_queue, compute_pass_descriptor_queue, descriptor_pool),
buffer_cache(*this, cpu_memory_, buffer_cache_runtime),
- pipeline_cache(*this, device, scheduler, descriptor_pool, update_descriptor_queue,
+ pipeline_cache(*this, device, scheduler, descriptor_pool, guest_descriptor_queue,
render_pass_cache, buffer_cache, texture_cache, gpu.ShaderNotify()),
- query_cache{*this, device, scheduler}, accelerate_dma{buffer_cache},
+ query_cache{*this, cpu_memory_, device, scheduler},
+ accelerate_dma(buffer_cache, texture_cache, scheduler),
fence_manager(*this, gpu, texture_cache, buffer_cache, query_cache, device, scheduler),
wfi_event(device.GetLogical().CreateEvent()) {
scheduler.SetQueryCache(query_cache);
@@ -188,7 +188,14 @@ void RasterizerVulkan::PrepareDraw(bool is_indexed, Func&& draw_func) {
FlushWork();
gpu_memory->FlushCaching();
+#if ANDROID
+ if (Settings::IsGPULevelHigh()) {
+ // This is problematic on Android, disable on GPU Normal.
+ query_cache.UpdateCounters();
+ }
+#else
query_cache.UpdateCounters();
+#endif
GraphicsPipeline* const pipeline{pipeline_cache.CurrentGraphicsPipeline()};
if (!pipeline) {
@@ -272,7 +279,14 @@ void RasterizerVulkan::DrawTexture() {
SCOPE_EXIT({ gpu.TickWork(); });
FlushWork();
+#if ANDROID
+ if (Settings::IsGPULevelHigh()) {
+ // This is problematic on Android, disable on GPU Normal.
+ query_cache.UpdateCounters();
+ }
+#else
query_cache.UpdateCounters();
+#endif
texture_cache.SynchronizeGraphicsDescriptors();
texture_cache.UpdateRenderTargets(false);
@@ -348,25 +362,12 @@ void RasterizerVulkan::Clear(u32 layer_count) {
const u32 color_attachment = regs.clear_surface.RT;
if (use_color && framebuffer->HasAspectColorBit(color_attachment)) {
- VkClearValue clear_value;
- bool is_integer = false;
- bool is_signed = false;
- size_t int_size = 8;
- for (std::size_t i = 0; i < Tegra::Engines::Maxwell3D::Regs::NumRenderTargets; ++i) {
- const auto& this_rt = regs.rt[i];
- if (this_rt.Address() == 0) {
- continue;
- }
- if (this_rt.format == Tegra::RenderTargetFormat::NONE) {
- continue;
- }
- const auto format =
- VideoCore::Surface::PixelFormatFromRenderTargetFormat(this_rt.format);
- is_integer = IsPixelFormatInteger(format);
- is_signed = IsPixelFormatSignedInteger(format);
- int_size = PixelComponentSizeBitsInteger(format);
- break;
- }
+ const auto format =
+ VideoCore::Surface::PixelFormatFromRenderTargetFormat(regs.rt[color_attachment].format);
+ bool is_integer = IsPixelFormatInteger(format);
+ bool is_signed = IsPixelFormatSignedInteger(format);
+ size_t int_size = PixelComponentSizeBitsInteger(format);
+ VkClearValue clear_value{};
if (!is_integer) {
std::memcpy(clear_value.color.float32, regs.clear_color.data(),
regs.clear_color.size() * sizeof(f32));
@@ -394,7 +395,15 @@ void RasterizerVulkan::Clear(u32 layer_count) {
cmdbuf.ClearAttachments(attachment, clear_rect);
});
} else {
- UNIMPLEMENTED_MSG("Unimplemented Clear only the specified channel");
+ u8 color_mask = static_cast<u8>(regs.clear_surface.R | regs.clear_surface.G << 1 |
+ regs.clear_surface.B << 2 | regs.clear_surface.A << 3);
+ Region2D dst_region = {
+ Offset2D{.x = clear_rect.rect.offset.x, .y = clear_rect.rect.offset.y},
+ Offset2D{.x = clear_rect.rect.offset.x +
+ static_cast<s32>(clear_rect.rect.extent.width),
+ .y = clear_rect.rect.offset.y +
+ static_cast<s32>(clear_rect.rect.extent.height)}};
+ blit_image.ClearColor(framebuffer, color_mask, regs.clear_color, dst_region);
}
}
@@ -493,6 +502,22 @@ bool RasterizerVulkan::MustFlushRegion(VAddr addr, u64 size, VideoCommon::CacheT
return false;
}
+VideoCore::RasterizerDownloadArea RasterizerVulkan::GetFlushArea(VAddr addr, u64 size) {
+ {
+ std::scoped_lock lock{texture_cache.mutex};
+ auto area = texture_cache.GetFlushArea(addr, size);
+ if (area) {
+ return *area;
+ }
+ }
+ VideoCore::RasterizerDownloadArea new_area{
+ .start_address = Common::AlignDown(addr, Core::Memory::YUZU_PAGESIZE),
+ .end_address = Common::AlignUp(addr + size, Core::Memory::YUZU_PAGESIZE),
+ .preemtive = true,
+ };
+ return new_area;
+}
+
void RasterizerVulkan::InvalidateRegion(VAddr addr, u64 size, VideoCommon::CacheType which) {
if (addr == 0 || size == 0) {
return;
@@ -589,7 +614,7 @@ void RasterizerVulkan::SignalSyncPoint(u32 value) {
}
void RasterizerVulkan::SignalReference() {
- fence_manager.SignalOrdering();
+ fence_manager.SignalReference();
}
void RasterizerVulkan::ReleaseFences() {
@@ -622,7 +647,7 @@ void RasterizerVulkan::WaitForIdle() {
cmdbuf.SetEvent(event, flags);
cmdbuf.WaitEvents(event, flags, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, {}, {}, {});
});
- SignalReference();
+ fence_manager.SignalOrdering();
}
void RasterizerVulkan::FragmentBarrier() {
@@ -644,7 +669,8 @@ void RasterizerVulkan::FlushCommands() {
void RasterizerVulkan::TickFrame() {
draw_counter = 0;
- update_descriptor_queue.TickFrame();
+ guest_descriptor_queue.TickFrame();
+ compute_pass_descriptor_queue.TickFrame();
fence_manager.TickFrame();
staging_pool.TickFrame();
{
@@ -663,11 +689,12 @@ bool RasterizerVulkan::AccelerateConditionalRendering() {
// TODO(Blinkhawk): Reimplement Host conditional rendering.
return false;
}
- // Medium / Low Hack: stub any checks on queries writen into the buffer cache.
+ // Medium / Low Hack: stub any checks on queries written into the buffer cache.
const GPUVAddr condition_address{maxwell3d->regs.render_enable.Address()};
Maxwell::ReportSemaphore::Compare cmp;
if (gpu_memory->IsMemoryDirty(condition_address, sizeof(cmp),
- VideoCommon::CacheType::BufferCache)) {
+ VideoCommon::CacheType::BufferCache |
+ VideoCommon::CacheType::QueryCache)) {
return true;
}
return false;
@@ -730,7 +757,11 @@ void RasterizerVulkan::LoadDiskResources(u64 title_id, std::stop_token stop_load
}
void RasterizerVulkan::FlushWork() {
+#ifdef ANDROID
+ static constexpr u32 DRAWS_TO_DISPATCH = 1024;
+#else
static constexpr u32 DRAWS_TO_DISPATCH = 4096;
+#endif // ANDROID
// Only check multiples of 8 draws
static_assert(DRAWS_TO_DISPATCH % 8 == 0);
@@ -748,7 +779,9 @@ void RasterizerVulkan::FlushWork() {
draw_counter = 0;
}
-AccelerateDMA::AccelerateDMA(BufferCache& buffer_cache_) : buffer_cache{buffer_cache_} {}
+AccelerateDMA::AccelerateDMA(BufferCache& buffer_cache_, TextureCache& texture_cache_,
+ Scheduler& scheduler_)
+ : buffer_cache{buffer_cache_}, texture_cache{texture_cache_}, scheduler{scheduler_} {}
bool AccelerateDMA::BufferClear(GPUVAddr src_address, u64 amount, u32 value) {
std::scoped_lock lock{buffer_cache.mutex};
@@ -760,6 +793,46 @@ bool AccelerateDMA::BufferCopy(GPUVAddr src_address, GPUVAddr dest_address, u64
return buffer_cache.DMACopy(src_address, dest_address, amount);
}
+template <bool IS_IMAGE_UPLOAD>
+bool AccelerateDMA::DmaBufferImageCopy(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::BufferOperand& buffer_operand,
+ const Tegra::DMA::ImageOperand& image_operand) {
+ std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
+ const auto image_id = texture_cache.DmaImageId(image_operand, IS_IMAGE_UPLOAD);
+ if (image_id == VideoCommon::NULL_IMAGE_ID) {
+ return false;
+ }
+ const u32 buffer_size = static_cast<u32>(buffer_operand.pitch * buffer_operand.height);
+ static constexpr auto sync_info = VideoCommon::ObtainBufferSynchronize::FullSynchronize;
+ const auto post_op = VideoCommon::ObtainBufferOperation::DoNothing;
+ const auto [buffer, offset] =
+ buffer_cache.ObtainBuffer(buffer_operand.address, buffer_size, sync_info, post_op);
+
+ const auto [image, copy] = texture_cache.DmaBufferImageCopy(
+ copy_info, buffer_operand, image_operand, image_id, IS_IMAGE_UPLOAD);
+ const std::span copy_span{&copy, 1};
+
+ if constexpr (IS_IMAGE_UPLOAD) {
+ image->UploadMemory(buffer->Handle(), offset, copy_span);
+ } else {
+ texture_cache.DownloadImageIntoBuffer(image, buffer->Handle(), offset, copy_span,
+ buffer_operand.address, buffer_size);
+ }
+ return true;
+}
+
+bool AccelerateDMA::ImageToBuffer(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::ImageOperand& image_operand,
+ const Tegra::DMA::BufferOperand& buffer_operand) {
+ return DmaBufferImageCopy<false>(copy_info, buffer_operand, image_operand);
+}
+
+bool AccelerateDMA::BufferToImage(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::BufferOperand& buffer_operand,
+ const Tegra::DMA::ImageOperand& image_operand) {
+ return DmaBufferImageCopy<true>(copy_info, buffer_operand, image_operand);
+}
+
void RasterizerVulkan::UpdateDynamicStates() {
auto& regs = maxwell3d->regs;
UpdateViewportsState(regs);
@@ -1056,7 +1129,7 @@ void RasterizerVulkan::UpdateDepthBoundsTestEnable(Tegra::Engines::Maxwell3D::Re
LOG_WARNING(Render_Vulkan, "Depth bounds is enabled but not supported");
enabled = false;
}
- scheduler.Record([enable = regs.depth_bounds_enable](vk::CommandBuffer cmdbuf) {
+ scheduler.Record([enable = enabled](vk::CommandBuffer cmdbuf) {
cmdbuf.SetDepthBoundsTestEnableEXT(enable);
});
}
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.h b/src/video_core/renderer_vulkan/vk_rasterizer.h
index a0508b57c..b39710b3c 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.h
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.h
@@ -45,14 +45,28 @@ class StateTracker;
class AccelerateDMA : public Tegra::Engines::AccelerateDMAInterface {
public:
- explicit AccelerateDMA(BufferCache& buffer_cache);
+ explicit AccelerateDMA(BufferCache& buffer_cache, TextureCache& texture_cache,
+ Scheduler& scheduler);
bool BufferCopy(GPUVAddr start_address, GPUVAddr end_address, u64 amount) override;
bool BufferClear(GPUVAddr src_address, u64 amount, u32 value) override;
+ bool ImageToBuffer(const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::ImageOperand& src,
+ const Tegra::DMA::BufferOperand& dst) override;
+
+ bool BufferToImage(const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::BufferOperand& src,
+ const Tegra::DMA::ImageOperand& dst) override;
+
private:
+ template <bool IS_IMAGE_UPLOAD>
+ bool DmaBufferImageCopy(const Tegra::DMA::ImageCopy& copy_info,
+ const Tegra::DMA::BufferOperand& src,
+ const Tegra::DMA::ImageOperand& dst);
+
BufferCache& buffer_cache;
+ TextureCache& texture_cache;
+ Scheduler& scheduler;
};
class RasterizerVulkan final : public VideoCore::RasterizerAccelerated,
@@ -78,6 +92,7 @@ public:
VideoCommon::CacheType which = VideoCommon::CacheType::All) override;
bool MustFlushRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) override;
+ VideoCore::RasterizerDownloadArea GetFlushArea(VAddr addr, u64 size) override;
void InvalidateRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) override;
void InnerInvalidation(std::span<const std::pair<VAddr, std::size_t>> sequences) override;
@@ -169,7 +184,8 @@ private:
StagingBufferPool staging_pool;
DescriptorPool descriptor_pool;
- UpdateDescriptorQueue update_descriptor_queue;
+ GuestDescriptorQueue guest_descriptor_queue;
+ ComputePassDescriptorQueue compute_pass_descriptor_queue;
BlitImageHelper blit_image;
RenderPassCache render_pass_cache;
diff --git a/src/video_core/renderer_vulkan/vk_resource_pool.cpp b/src/video_core/renderer_vulkan/vk_resource_pool.cpp
index 6c8ac22f4..6572f82ba 100644
--- a/src/video_core/renderer_vulkan/vk_resource_pool.cpp
+++ b/src/video_core/renderer_vulkan/vk_resource_pool.cpp
@@ -37,7 +37,7 @@ size_t ResourcePool::CommitResource() {
found = free_resource;
}
}
- // Free iterator is hinted to the resource after the one that's been commited.
+ // Free iterator is hinted to the resource after the one that's been committed.
hint_iterator = (*found + 1) % ticks.size();
return *found;
}
@@ -46,7 +46,7 @@ size_t ResourcePool::ManageOverflow() {
const size_t old_capacity = ticks.size();
Grow();
- // The last entry is guaranted to be free, since it's the first element of the freshly
+ // The last entry is guaranteed to be free, since it's the first element of the freshly
// allocated resources.
return old_capacity;
}
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.cpp b/src/video_core/renderer_vulkan/vk_scheduler.cpp
index e03685af1..17ef61147 100644
--- a/src/video_core/renderer_vulkan/vk_scheduler.cpp
+++ b/src/video_core/renderer_vulkan/vk_scheduler.cpp
@@ -46,15 +46,17 @@ Scheduler::Scheduler(const Device& device_, StateTracker& state_tracker_)
Scheduler::~Scheduler() = default;
-void Scheduler::Flush(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore) {
- SubmitExecution(signal_semaphore, wait_semaphore);
+u64 Scheduler::Flush(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore) {
+ // When flushing, we only send data to the worker thread; no waiting is necessary.
+ const u64 signal_value = SubmitExecution(signal_semaphore, wait_semaphore);
AllocateNewContext();
+ return signal_value;
}
void Scheduler::Finish(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore) {
+ // When finishing, we need to wait for the submission to have executed on the device.
const u64 presubmit_tick = CurrentTick();
SubmitExecution(signal_semaphore, wait_semaphore);
- WaitWorker();
Wait(presubmit_tick);
AllocateNewContext();
}
@@ -63,8 +65,14 @@ void Scheduler::WaitWorker() {
MICROPROFILE_SCOPE(Vulkan_WaitForWorker);
DispatchWork();
- std::unique_lock lock{work_mutex};
- wait_cv.wait(lock, [this] { return work_queue.empty(); });
+ // Ensure the queue is drained.
+ {
+ std::unique_lock ql{queue_mutex};
+ event_cv.wait(ql, [this] { return work_queue.empty(); });
+ }
+
+ // Now wait for execution to finish.
+ std::scoped_lock el{execution_mutex};
}
void Scheduler::DispatchWork() {
@@ -72,10 +80,10 @@ void Scheduler::DispatchWork() {
return;
}
{
- std::scoped_lock lock{work_mutex};
+ std::scoped_lock ql{queue_mutex};
work_queue.push(std::move(chunk));
}
- work_cv.notify_one();
+ event_cv.notify_all();
AcquireNewChunk();
}
@@ -137,30 +145,55 @@ bool Scheduler::UpdateRescaling(bool is_rescaling) {
void Scheduler::WorkerThread(std::stop_token stop_token) {
Common::SetCurrentThreadName("VulkanWorker");
- do {
+
+ const auto TryPopQueue{[this](auto& work) -> bool {
+ if (work_queue.empty()) {
+ return false;
+ }
+
+ work = std::move(work_queue.front());
+ work_queue.pop();
+ event_cv.notify_all();
+ return true;
+ }};
+
+ while (!stop_token.stop_requested()) {
std::unique_ptr<CommandChunk> work;
- bool has_submit{false};
+
{
- std::unique_lock lock{work_mutex};
- if (work_queue.empty()) {
- wait_cv.notify_all();
- }
- Common::CondvarWait(work_cv, lock, stop_token, [&] { return !work_queue.empty(); });
+ std::unique_lock lk{queue_mutex};
+
+ // Wait for work.
+ Common::CondvarWait(event_cv, lk, stop_token, [&] { return TryPopQueue(work); });
+
+ // If we've been asked to stop, we're done.
if (stop_token.stop_requested()) {
- continue;
+ return;
}
- work = std::move(work_queue.front());
- work_queue.pop();
- has_submit = work->HasSubmit();
+ // Exchange lock ownership so that we take the execution lock before
+ // the queue lock goes out of scope. This allows us to force execution
+ // to complete in the next step.
+ std::exchange(lk, std::unique_lock{execution_mutex});
+
+ // Perform the work, tracking whether the chunk was a submission
+ // before executing.
+ const bool has_submit = work->HasSubmit();
work->ExecuteAll(current_cmdbuf);
+
+ // If the chunk was a submission, reallocate the command buffer.
+ if (has_submit) {
+ AllocateWorkerCommandBuffer();
+ }
}
- if (has_submit) {
- AllocateWorkerCommandBuffer();
+
+ {
+ std::scoped_lock rl{reserve_mutex};
+
+ // Recycle the chunk back to the reserve.
+ chunk_reserve.emplace_back(std::move(work));
}
- std::scoped_lock reserve_lock{reserve_mutex};
- chunk_reserve.push_back(std::move(work));
- } while (!stop_token.stop_requested());
+ }
}
void Scheduler::AllocateWorkerCommandBuffer() {
@@ -173,52 +206,21 @@ void Scheduler::AllocateWorkerCommandBuffer() {
});
}
-void Scheduler::SubmitExecution(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore) {
+u64 Scheduler::SubmitExecution(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore) {
EndPendingOperations();
InvalidateState();
const u64 signal_value = master_semaphore->NextTick();
Record([signal_semaphore, wait_semaphore, signal_value, this](vk::CommandBuffer cmdbuf) {
cmdbuf.End();
- const VkSemaphore timeline_semaphore = master_semaphore->Handle();
-
- const u32 num_signal_semaphores = signal_semaphore ? 2U : 1U;
- const std::array signal_values{signal_value, u64(0)};
- const std::array signal_semaphores{timeline_semaphore, signal_semaphore};
-
- const u32 num_wait_semaphores = wait_semaphore ? 2U : 1U;
- const std::array wait_values{signal_value - 1, u64(1)};
- const std::array wait_semaphores{timeline_semaphore, wait_semaphore};
- static constexpr std::array<VkPipelineStageFlags, 2> wait_stage_masks{
- VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
- VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
- };
-
- const VkTimelineSemaphoreSubmitInfo timeline_si{
- .sType = VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO,
- .pNext = nullptr,
- .waitSemaphoreValueCount = num_wait_semaphores,
- .pWaitSemaphoreValues = wait_values.data(),
- .signalSemaphoreValueCount = num_signal_semaphores,
- .pSignalSemaphoreValues = signal_values.data(),
- };
- const VkSubmitInfo submit_info{
- .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
- .pNext = &timeline_si,
- .waitSemaphoreCount = num_wait_semaphores,
- .pWaitSemaphores = wait_semaphores.data(),
- .pWaitDstStageMask = wait_stage_masks.data(),
- .commandBufferCount = 1,
- .pCommandBuffers = cmdbuf.address(),
- .signalSemaphoreCount = num_signal_semaphores,
- .pSignalSemaphores = signal_semaphores.data(),
- };
if (on_submit) {
on_submit();
}
- switch (const VkResult result = device.GetGraphicsQueue().Submit(submit_info)) {
+ std::scoped_lock lock{submit_mutex};
+ switch (const VkResult result = master_semaphore->SubmitQueue(
+ cmdbuf, signal_semaphore, wait_semaphore, signal_value)) {
case VK_SUCCESS:
break;
case VK_ERROR_DEVICE_LOST:
@@ -231,12 +233,20 @@ void Scheduler::SubmitExecution(VkSemaphore signal_semaphore, VkSemaphore wait_s
});
chunk->MarkSubmit();
DispatchWork();
+ return signal_value;
}
void Scheduler::AllocateNewContext() {
// Enable counters once again. These are disabled when a command buffer is finished.
if (query_cache) {
+#if ANDROID
+ if (Settings::IsGPULevelHigh()) {
+ // This is problematic on Android, disable on GPU Normal.
+ query_cache->UpdateCounters();
+ }
+#else
query_cache->UpdateCounters();
+#endif
}
}
@@ -247,7 +257,14 @@ void Scheduler::InvalidateState() {
}
void Scheduler::EndPendingOperations() {
+#if ANDROID
+ if (Settings::IsGPULevelHigh()) {
+ // This is problematic on Android, disable on GPU Normal.
+ query_cache->DisableStreams();
+ }
+#else
query_cache->DisableStreams();
+#endif
EndRenderPass();
}
@@ -289,13 +306,16 @@ void Scheduler::EndRenderPass() {
}
void Scheduler::AcquireNewChunk() {
- std::scoped_lock lock{reserve_mutex};
+ std::scoped_lock rl{reserve_mutex};
+
if (chunk_reserve.empty()) {
+ // If we don't have anything reserved, we need to make a new chunk.
chunk = std::make_unique<CommandChunk>();
- return;
+ } else {
+ // Otherwise, we can just take from the reserve.
+ chunk = std::move(chunk_reserve.back());
+ chunk_reserve.pop_back();
}
- chunk = std::move(chunk_reserve.back());
- chunk_reserve.pop_back();
}
} // namespace Vulkan
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.h b/src/video_core/renderer_vulkan/vk_scheduler.h
index bd4cb0f7e..475c682eb 100644
--- a/src/video_core/renderer_vulkan/vk_scheduler.h
+++ b/src/video_core/renderer_vulkan/vk_scheduler.h
@@ -34,7 +34,7 @@ public:
~Scheduler();
/// Sends the current execution context to the GPU.
- void Flush(VkSemaphore signal_semaphore = nullptr, VkSemaphore wait_semaphore = nullptr);
+ u64 Flush(VkSemaphore signal_semaphore = nullptr, VkSemaphore wait_semaphore = nullptr);
/// Sends the current execution context to the GPU and waits for it to complete.
void Finish(VkSemaphore signal_semaphore = nullptr, VkSemaphore wait_semaphore = nullptr);
@@ -106,6 +106,8 @@ public:
return *master_semaphore;
}
+ std::mutex submit_mutex;
+
private:
class Command {
public:
@@ -201,7 +203,7 @@ private:
void AllocateWorkerCommandBuffer();
- void SubmitExecution(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore);
+ u64 SubmitExecution(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore);
void AllocateNewContext();
@@ -232,10 +234,10 @@ private:
std::queue<std::unique_ptr<CommandChunk>> work_queue;
std::vector<std::unique_ptr<CommandChunk>> chunk_reserve;
+ std::mutex execution_mutex;
std::mutex reserve_mutex;
- std::mutex work_mutex;
- std::condition_variable_any work_cv;
- std::condition_variable wait_cv;
+ std::mutex queue_mutex;
+ std::condition_variable_any event_cv;
std::jthread worker_thread;
};
diff --git a/src/video_core/renderer_vulkan/vk_smaa.cpp b/src/video_core/renderer_vulkan/vk_smaa.cpp
index 8eb735489..5efd7d66e 100644
--- a/src/video_core/renderer_vulkan/vk_smaa.cpp
+++ b/src/video_core/renderer_vulkan/vk_smaa.cpp
@@ -25,9 +25,7 @@ namespace {
#define ARRAY_TO_SPAN(a) std::span(a, (sizeof(a) / sizeof(a[0])))
-std::pair<vk::Image, MemoryCommit> CreateWrappedImage(const Device& device,
- MemoryAllocator& allocator,
- VkExtent2D dimensions, VkFormat format) {
+vk::Image CreateWrappedImage(MemoryAllocator& allocator, VkExtent2D dimensions, VkFormat format) {
const VkImageCreateInfo image_ci{
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
.pNext = nullptr,
@@ -46,11 +44,7 @@ std::pair<vk::Image, MemoryCommit> CreateWrappedImage(const Device& device,
.pQueueFamilyIndices = nullptr,
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
};
-
- auto image = device.GetLogical().CreateImage(image_ci);
- auto commit = allocator.Commit(image, Vulkan::MemoryUsage::DeviceLocal);
-
- return std::make_pair(std::move(image), std::move(commit));
+ return allocator.CreateImage(image_ci);
}
void TransitionImageLayout(vk::CommandBuffer& cmdbuf, VkImage image, VkImageLayout target_layout,
@@ -82,7 +76,7 @@ void TransitionImageLayout(vk::CommandBuffer& cmdbuf, VkImage image, VkImageLayo
void UploadImage(const Device& device, MemoryAllocator& allocator, Scheduler& scheduler,
vk::Image& image, VkExtent2D dimensions, VkFormat format,
std::span<const u8> initial_contents = {}) {
- auto upload_buffer = device.GetLogical().CreateBuffer(VkBufferCreateInfo{
+ const VkBufferCreateInfo upload_ci = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -91,9 +85,10 @@ void UploadImage(const Device& device, MemoryAllocator& allocator, Scheduler& sc
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
- });
- auto upload_commit = allocator.Commit(upload_buffer, MemoryUsage::Upload);
- std::ranges::copy(initial_contents, upload_commit.Map().begin());
+ };
+ auto upload_buffer = allocator.CreateBuffer(upload_ci, MemoryUsage::Upload);
+ std::ranges::copy(initial_contents, upload_buffer.Mapped().begin());
+ upload_buffer.Flush();
const std::array<VkBufferImageCopy, 1> regions{{{
.bufferOffset = 0,
@@ -117,9 +112,6 @@ void UploadImage(const Device& device, MemoryAllocator& allocator, Scheduler& sc
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
});
scheduler.Finish();
-
- // This should go out of scope before the commit
- auto upload_buffer2 = std::move(upload_buffer);
}
vk::ImageView CreateWrappedImageView(const Device& device, vk::Image& image, VkFormat format) {
@@ -468,7 +460,7 @@ VkWriteDescriptorSet CreateWriteDescriptorSet(std::vector<VkDescriptorImageInfo>
}
void ClearColorImage(vk::CommandBuffer& cmdbuf, VkImage image) {
- constexpr std::array<VkImageSubresourceRange, 1> subresources{{{
+ static constexpr std::array<VkImageSubresourceRange, 1> subresources{{{
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
.baseMipLevel = 0,
.levelCount = 1,
@@ -528,13 +520,11 @@ SMAA::SMAA(const Device& device, MemoryAllocator& allocator, size_t image_count,
}
void SMAA::CreateImages() {
- constexpr VkExtent2D area_extent{AREATEX_WIDTH, AREATEX_HEIGHT};
- constexpr VkExtent2D search_extent{SEARCHTEX_WIDTH, SEARCHTEX_HEIGHT};
+ static constexpr VkExtent2D area_extent{AREATEX_WIDTH, AREATEX_HEIGHT};
+ static constexpr VkExtent2D search_extent{SEARCHTEX_WIDTH, SEARCHTEX_HEIGHT};
- std::tie(m_static_images[Area], m_static_buffer_commits[Area]) =
- CreateWrappedImage(m_device, m_allocator, area_extent, VK_FORMAT_R8G8_UNORM);
- std::tie(m_static_images[Search], m_static_buffer_commits[Search]) =
- CreateWrappedImage(m_device, m_allocator, search_extent, VK_FORMAT_R8_UNORM);
+ m_static_images[Area] = CreateWrappedImage(m_allocator, area_extent, VK_FORMAT_R8G8_UNORM);
+ m_static_images[Search] = CreateWrappedImage(m_allocator, search_extent, VK_FORMAT_R8_UNORM);
m_static_image_views[Area] =
CreateWrappedImageView(m_device, m_static_images[Area], VK_FORMAT_R8G8_UNORM);
@@ -544,12 +534,11 @@ void SMAA::CreateImages() {
for (u32 i = 0; i < m_image_count; i++) {
Images& images = m_dynamic_images.emplace_back();
- std::tie(images.images[Blend], images.buffer_commits[Blend]) =
- CreateWrappedImage(m_device, m_allocator, m_extent, VK_FORMAT_R16G16B16A16_SFLOAT);
- std::tie(images.images[Edges], images.buffer_commits[Edges]) =
- CreateWrappedImage(m_device, m_allocator, m_extent, VK_FORMAT_R16G16_SFLOAT);
- std::tie(images.images[Output], images.buffer_commits[Output]) =
- CreateWrappedImage(m_device, m_allocator, m_extent, VK_FORMAT_R16G16B16A16_SFLOAT);
+ images.images[Blend] =
+ CreateWrappedImage(m_allocator, m_extent, VK_FORMAT_R16G16B16A16_SFLOAT);
+ images.images[Edges] = CreateWrappedImage(m_allocator, m_extent, VK_FORMAT_R16G16_SFLOAT);
+ images.images[Output] =
+ CreateWrappedImage(m_allocator, m_extent, VK_FORMAT_R16G16B16A16_SFLOAT);
images.image_views[Blend] =
CreateWrappedImageView(m_device, images.images[Blend], VK_FORMAT_R16G16B16A16_SFLOAT);
@@ -586,12 +575,12 @@ void SMAA::CreateSampler() {
void SMAA::CreateShaders() {
// These match the order of the SMAAStage enum
- constexpr std::array vert_shader_sources{
+ static constexpr std::array vert_shader_sources{
ARRAY_TO_SPAN(SMAA_EDGE_DETECTION_VERT_SPV),
ARRAY_TO_SPAN(SMAA_BLENDING_WEIGHT_CALCULATION_VERT_SPV),
ARRAY_TO_SPAN(SMAA_NEIGHBORHOOD_BLENDING_VERT_SPV),
};
- constexpr std::array frag_shader_sources{
+ static constexpr std::array frag_shader_sources{
ARRAY_TO_SPAN(SMAA_EDGE_DETECTION_FRAG_SPV),
ARRAY_TO_SPAN(SMAA_BLENDING_WEIGHT_CALCULATION_FRAG_SPV),
ARRAY_TO_SPAN(SMAA_NEIGHBORHOOD_BLENDING_FRAG_SPV),
@@ -675,8 +664,8 @@ void SMAA::UploadImages(Scheduler& scheduler) {
return;
}
- constexpr VkExtent2D area_extent{AREATEX_WIDTH, AREATEX_HEIGHT};
- constexpr VkExtent2D search_extent{SEARCHTEX_WIDTH, SEARCHTEX_HEIGHT};
+ static constexpr VkExtent2D area_extent{AREATEX_WIDTH, AREATEX_HEIGHT};
+ static constexpr VkExtent2D search_extent{SEARCHTEX_WIDTH, SEARCHTEX_HEIGHT};
UploadImage(m_device, m_allocator, scheduler, m_static_images[Area], area_extent,
VK_FORMAT_R8G8_UNORM, ARRAY_TO_SPAN(areaTexBytes));
diff --git a/src/video_core/renderer_vulkan/vk_smaa.h b/src/video_core/renderer_vulkan/vk_smaa.h
index 99a369148..0e214258a 100644
--- a/src/video_core/renderer_vulkan/vk_smaa.h
+++ b/src/video_core/renderer_vulkan/vk_smaa.h
@@ -66,13 +66,11 @@ private:
std::array<vk::Pipeline, MaxSMAAStage> m_pipelines{};
std::array<vk::RenderPass, MaxSMAAStage> m_renderpasses{};
- std::array<MemoryCommit, MaxStaticImage> m_static_buffer_commits;
std::array<vk::Image, MaxStaticImage> m_static_images{};
std::array<vk::ImageView, MaxStaticImage> m_static_image_views{};
struct Images {
vk::DescriptorSets descriptor_sets{};
- std::array<MemoryCommit, MaxDynamicImage> buffer_commits;
std::array<vk::Image, MaxDynamicImage> images{};
std::array<vk::ImageView, MaxDynamicImage> image_views{};
std::array<vk::Framebuffer, MaxSMAAStage> framebuffers{};
diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
index 74ca77216..62b251a9b 100644
--- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
+++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp
@@ -30,55 +30,6 @@ constexpr VkDeviceSize MAX_STREAM_BUFFER_REQUEST_SIZE = 8_MiB;
constexpr VkDeviceSize STREAM_BUFFER_SIZE = 128_MiB;
constexpr VkDeviceSize REGION_SIZE = STREAM_BUFFER_SIZE / StagingBufferPool::NUM_SYNCS;
-constexpr VkMemoryPropertyFlags HOST_FLAGS =
- VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
-constexpr VkMemoryPropertyFlags STREAM_FLAGS = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | HOST_FLAGS;
-
-bool IsStreamHeap(VkMemoryHeap heap) noexcept {
- return STREAM_BUFFER_SIZE < (heap.size * 2) / 3;
-}
-
-std::optional<u32> FindMemoryTypeIndex(const VkPhysicalDeviceMemoryProperties& props, u32 type_mask,
- VkMemoryPropertyFlags flags) noexcept {
- for (u32 type_index = 0; type_index < props.memoryTypeCount; ++type_index) {
- if (((type_mask >> type_index) & 1) == 0) {
- // Memory type is incompatible
- continue;
- }
- const VkMemoryType& memory_type = props.memoryTypes[type_index];
- if ((memory_type.propertyFlags & flags) != flags) {
- // Memory type doesn't have the flags we want
- continue;
- }
- if (!IsStreamHeap(props.memoryHeaps[memory_type.heapIndex])) {
- // Memory heap is not suitable for streaming
- continue;
- }
- // Success!
- return type_index;
- }
- return std::nullopt;
-}
-
-u32 FindMemoryTypeIndex(const VkPhysicalDeviceMemoryProperties& props, u32 type_mask,
- bool try_device_local) {
- std::optional<u32> type;
- if (try_device_local) {
- // Try to find a DEVICE_LOCAL_BIT type, Nvidia and AMD have a dedicated heap for this
- type = FindMemoryTypeIndex(props, type_mask, STREAM_FLAGS);
- if (type) {
- return *type;
- }
- }
- // Otherwise try without the DEVICE_LOCAL_BIT
- type = FindMemoryTypeIndex(props, type_mask, HOST_FLAGS);
- if (type) {
- return *type;
- }
- // This should never happen, and in case it does, signal it as an out of memory situation
- throw vk::Exception(VK_ERROR_OUT_OF_DEVICE_MEMORY);
-}
-
size_t Region(size_t iterator) noexcept {
return iterator / REGION_SIZE;
}
@@ -87,8 +38,7 @@ size_t Region(size_t iterator) noexcept {
StagingBufferPool::StagingBufferPool(const Device& device_, MemoryAllocator& memory_allocator_,
Scheduler& scheduler_)
: device{device_}, memory_allocator{memory_allocator_}, scheduler{scheduler_} {
- const vk::Device& dev = device.GetLogical();
- stream_buffer = dev.CreateBuffer(VkBufferCreateInfo{
+ const VkBufferCreateInfo stream_ci = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -99,46 +49,13 @@ StagingBufferPool::StagingBufferPool(const Device& device_, MemoryAllocator& mem
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
- });
- if (device.HasDebuggingToolAttached()) {
- stream_buffer.SetObjectNameEXT("Stream Buffer");
- }
- VkMemoryDedicatedRequirements dedicated_reqs{
- .sType = VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS,
- .pNext = nullptr,
- .prefersDedicatedAllocation = VK_FALSE,
- .requiresDedicatedAllocation = VK_FALSE,
- };
- const auto requirements = dev.GetBufferMemoryRequirements(*stream_buffer, &dedicated_reqs);
- const bool make_dedicated = dedicated_reqs.prefersDedicatedAllocation == VK_TRUE ||
- dedicated_reqs.requiresDedicatedAllocation == VK_TRUE;
- const VkMemoryDedicatedAllocateInfo dedicated_info{
- .sType = VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO,
- .pNext = nullptr,
- .image = nullptr,
- .buffer = *stream_buffer,
};
- const auto memory_properties = device.GetPhysical().GetMemoryProperties().memoryProperties;
- VkMemoryAllocateInfo stream_memory_info{
- .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,
- .pNext = make_dedicated ? &dedicated_info : nullptr,
- .allocationSize = requirements.size,
- .memoryTypeIndex =
- FindMemoryTypeIndex(memory_properties, requirements.memoryTypeBits, true),
- };
- stream_memory = dev.TryAllocateMemory(stream_memory_info);
- if (!stream_memory) {
- LOG_INFO(Render_Vulkan, "Dynamic memory allocation failed, trying with system memory");
- stream_memory_info.memoryTypeIndex =
- FindMemoryTypeIndex(memory_properties, requirements.memoryTypeBits, false);
- stream_memory = dev.AllocateMemory(stream_memory_info);
- }
-
+ stream_buffer = memory_allocator.CreateBuffer(stream_ci, MemoryUsage::Stream);
if (device.HasDebuggingToolAttached()) {
- stream_memory.SetObjectNameEXT("Stream Buffer Memory");
+ stream_buffer.SetObjectNameEXT("Stream Buffer");
}
- stream_buffer.BindMemory(*stream_memory, 0);
- stream_pointer = stream_memory.Map(0, STREAM_BUFFER_SIZE);
+ stream_pointer = stream_buffer.Mapped();
+ ASSERT_MSG(!stream_pointer.empty(), "Stream buffer must be host visible!");
}
StagingBufferPool::~StagingBufferPool() = default;
@@ -199,7 +116,7 @@ StagingBufferRef StagingBufferPool::GetStreamBuffer(size_t size) {
return StagingBufferRef{
.buffer = *stream_buffer,
.offset = static_cast<VkDeviceSize>(offset),
- .mapped_span = std::span<u8>(stream_pointer + offset, size),
+ .mapped_span = stream_pointer.subspan(offset, size),
.usage{},
.log2_level{},
.index{},
@@ -247,7 +164,7 @@ std::optional<StagingBufferRef> StagingBufferPool::TryGetReservedBuffer(size_t s
StagingBufferRef StagingBufferPool::CreateStagingBuffer(size_t size, MemoryUsage usage,
bool deferred) {
const u32 log2 = Common::Log2Ceil64(size);
- vk::Buffer buffer = device.GetLogical().CreateBuffer({
+ const VkBufferCreateInfo buffer_ci = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -259,17 +176,15 @@ StagingBufferRef StagingBufferPool::CreateStagingBuffer(size_t size, MemoryUsage
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
- });
+ };
+ vk::Buffer buffer = memory_allocator.CreateBuffer(buffer_ci, usage);
if (device.HasDebuggingToolAttached()) {
++buffer_index;
buffer.SetObjectNameEXT(fmt::format("Staging Buffer {}", buffer_index).c_str());
}
- MemoryCommit commit = memory_allocator.Commit(buffer, usage);
- const std::span<u8> mapped_span = IsHostVisible(usage) ? commit.Map() : std::span<u8>{};
-
+ const std::span<u8> mapped_span = buffer.Mapped();
StagingBuffer& entry = GetCache(usage)[log2].entries.emplace_back(StagingBuffer{
.buffer = std::move(buffer),
- .commit = std::move(commit),
.mapped_span = mapped_span,
.usage = usage,
.log2_level = log2,
diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h
index 4fd15f11a..5f69f08b1 100644
--- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h
+++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.h
@@ -46,7 +46,6 @@ private:
struct StagingBuffer {
vk::Buffer buffer;
- MemoryCommit commit;
std::span<u8> mapped_span;
MemoryUsage usage;
u32 log2_level;
@@ -97,8 +96,7 @@ private:
Scheduler& scheduler;
vk::Buffer stream_buffer;
- vk::DeviceMemory stream_memory;
- u8* stream_pointer = nullptr;
+ std::span<u8> stream_pointer;
size_t iterator = 0;
size_t used_iterator = 0;
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp
index b6810eef9..d3cddac69 100644
--- a/src/video_core/renderer_vulkan/vk_swapchain.cpp
+++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp
@@ -14,6 +14,7 @@
#include "video_core/renderer_vulkan/vk_swapchain.h"
#include "video_core/vulkan_common/vulkan_device.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
+#include "vulkan/vulkan_core.h"
namespace Vulkan {
@@ -33,23 +34,47 @@ VkSurfaceFormatKHR ChooseSwapSurfaceFormat(vk::Span<VkSurfaceFormatKHR> formats)
return found != formats.end() ? *found : formats[0];
}
-VkPresentModeKHR ChooseSwapPresentMode(vk::Span<VkPresentModeKHR> modes) {
- // Mailbox (triple buffering) doesn't lock the application like fifo (vsync),
- // prefer it if vsync option is not selected
- const auto found_mailbox = std::find(modes.begin(), modes.end(), VK_PRESENT_MODE_MAILBOX_KHR);
- if (Settings::values.fullscreen_mode.GetValue() == Settings::FullscreenMode::Borderless &&
- found_mailbox != modes.end() && !Settings::values.use_vsync.GetValue()) {
- return VK_PRESENT_MODE_MAILBOX_KHR;
- }
- if (!Settings::values.use_speed_limit.GetValue()) {
- // FIFO present mode locks the framerate to the monitor's refresh rate,
- // Find an alternative to surpass this limitation if FPS is unlocked.
- const auto found_imm = std::find(modes.begin(), modes.end(), VK_PRESENT_MODE_IMMEDIATE_KHR);
- if (found_imm != modes.end()) {
- return VK_PRESENT_MODE_IMMEDIATE_KHR;
+static VkPresentModeKHR ChooseSwapPresentMode(bool has_imm, bool has_mailbox,
+ bool has_fifo_relaxed) {
+ // Mailbox doesn't lock the application like FIFO (vsync)
+ // FIFO present mode locks the framerate to the monitor's refresh rate
+ Settings::VSyncMode setting = [has_imm, has_mailbox]() {
+ // Choose Mailbox or Immediate if unlocked and those modes are supported
+ const auto mode = Settings::values.vsync_mode.GetValue();
+ if (Settings::values.use_speed_limit.GetValue()) {
+ return mode;
+ }
+ switch (mode) {
+ case Settings::VSyncMode::FIFO:
+ case Settings::VSyncMode::FIFORelaxed:
+ if (has_mailbox) {
+ return Settings::VSyncMode::Mailbox;
+ } else if (has_imm) {
+ return Settings::VSyncMode::Immediate;
+ }
+ [[fallthrough]];
+ default:
+ return mode;
}
+ }();
+ if ((setting == Settings::VSyncMode::Mailbox && !has_mailbox) ||
+ (setting == Settings::VSyncMode::Immediate && !has_imm) ||
+ (setting == Settings::VSyncMode::FIFORelaxed && !has_fifo_relaxed)) {
+ setting = Settings::VSyncMode::FIFO;
+ }
+
+ switch (setting) {
+ case Settings::VSyncMode::Immediate:
+ return VK_PRESENT_MODE_IMMEDIATE_KHR;
+ case Settings::VSyncMode::Mailbox:
+ return VK_PRESENT_MODE_MAILBOX_KHR;
+ case Settings::VSyncMode::FIFO:
+ return VK_PRESENT_MODE_FIFO_KHR;
+ case Settings::VSyncMode::FIFORelaxed:
+ return VK_PRESENT_MODE_FIFO_RELAXED_KHR;
+ default:
+ return VK_PRESENT_MODE_FIFO_KHR;
}
- return VK_PRESENT_MODE_FIFO_KHR;
}
VkExtent2D ChooseSwapExtent(const VkSurfaceCapabilitiesKHR& capabilities, u32 width, u32 height) {
@@ -65,21 +90,34 @@ VkExtent2D ChooseSwapExtent(const VkSurfaceCapabilitiesKHR& capabilities, u32 wi
return extent;
}
+VkCompositeAlphaFlagBitsKHR ChooseAlphaFlags(const VkSurfaceCapabilitiesKHR& capabilities) {
+ if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR) {
+ return VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
+ } else if (capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR) {
+ return VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR;
+ } else {
+ LOG_ERROR(Render_Vulkan, "Unknown composite alpha flags value {:#x}",
+ capabilities.supportedCompositeAlpha);
+ return VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
+ }
+}
+
} // Anonymous namespace
Swapchain::Swapchain(VkSurfaceKHR surface_, const Device& device_, Scheduler& scheduler_,
u32 width_, u32 height_, bool srgb)
: surface{surface_}, device{device_}, scheduler{scheduler_} {
- Create(width_, height_, srgb);
+ Create(surface_, width_, height_, srgb);
}
Swapchain::~Swapchain() = default;
-void Swapchain::Create(u32 width_, u32 height_, bool srgb) {
+void Swapchain::Create(VkSurfaceKHR surface_, u32 width_, u32 height_, bool srgb) {
is_outdated = false;
is_suboptimal = false;
width = width_;
height = height_;
+ surface = surface_;
const auto physical_device = device.GetPhysical();
const auto capabilities{physical_device.GetSurfaceCapabilitiesKHR(surface)};
@@ -87,18 +125,16 @@ void Swapchain::Create(u32 width_, u32 height_, bool srgb) {
return;
}
- device.GetLogical().WaitIdle();
Destroy();
CreateSwapchain(capabilities, srgb);
CreateSemaphores();
- CreateImageViews();
resource_ticks.clear();
resource_ticks.resize(image_count);
}
-void Swapchain::AcquireNextImage() {
+bool Swapchain::AcquireNextImage() {
const VkResult result = device.GetLogical().AcquireNextImageKHR(
*swapchain, std::numeric_limits<u64>::max(), *present_semaphores[frame_index],
VK_NULL_HANDLE, &image_index);
@@ -115,8 +151,11 @@ void Swapchain::AcquireNextImage() {
LOG_ERROR(Render_Vulkan, "vkAcquireNextImageKHR returned {}", vk::ToString(result));
break;
}
+
scheduler.Wait(resource_ticks[image_index]);
resource_ticks[image_index] = scheduler.CurrentTick();
+
+ return is_suboptimal || is_outdated;
}
void Swapchain::Present(VkSemaphore render_semaphore) {
@@ -131,6 +170,7 @@ void Swapchain::Present(VkSemaphore render_semaphore) {
.pImageIndices = &image_index,
.pResults = nullptr,
};
+ std::scoped_lock lock{scheduler.submit_mutex};
switch (const VkResult result = present_queue.Present(present_info)) {
case VK_SUCCESS:
break;
@@ -153,13 +193,20 @@ void Swapchain::Present(VkSemaphore render_semaphore) {
void Swapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, bool srgb) {
const auto physical_device{device.GetPhysical()};
const auto formats{physical_device.GetSurfaceFormatsKHR(surface)};
- const auto present_modes{physical_device.GetSurfacePresentModesKHR(surface)};
+ const auto present_modes = physical_device.GetSurfacePresentModesKHR(surface);
+ has_mailbox = std::find(present_modes.begin(), present_modes.end(),
+ VK_PRESENT_MODE_MAILBOX_KHR) != present_modes.end();
+ has_imm = std::find(present_modes.begin(), present_modes.end(),
+ VK_PRESENT_MODE_IMMEDIATE_KHR) != present_modes.end();
+ has_fifo_relaxed = std::find(present_modes.begin(), present_modes.end(),
+ VK_PRESENT_MODE_FIFO_RELAXED_KHR) != present_modes.end();
- const VkSurfaceFormatKHR surface_format{ChooseSwapSurfaceFormat(formats)};
- present_mode = ChooseSwapPresentMode(present_modes);
+ const VkCompositeAlphaFlagBitsKHR alpha_flags{ChooseAlphaFlags(capabilities)};
+ surface_format = ChooseSwapSurfaceFormat(formats);
+ present_mode = ChooseSwapPresentMode(has_imm, has_mailbox, has_fifo_relaxed);
u32 requested_image_count{capabilities.minImageCount + 1};
- // Ensure Tripple buffering if possible.
+ // Ensure Triple buffering if possible.
if (capabilities.maxImageCount > 0) {
if (requested_image_count > capabilities.maxImageCount) {
requested_image_count = capabilities.maxImageCount;
@@ -180,12 +227,17 @@ void Swapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, bo
.imageColorSpace = surface_format.colorSpace,
.imageExtent = {},
.imageArrayLayers = 1,
- .imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
+ .imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT,
.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
+#ifdef ANDROID
+ // On Android, do not allow surface rotation to deviate from the frontend.
+ .preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR,
+#else
.preTransform = capabilities.currentTransform,
- .compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR,
+#endif
+ .compositeAlpha = alpha_flags,
.presentMode = present_mode,
.clipped = VK_FALSE,
.oldSwapchain = nullptr,
@@ -217,67 +269,35 @@ void Swapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, bo
extent = swapchain_ci.imageExtent;
current_srgb = srgb;
- current_fps_unlocked = !Settings::values.use_speed_limit.GetValue();
images = swapchain.GetImages();
image_count = static_cast<u32>(images.size());
+#ifdef ANDROID
+ // Android is already ordered the same as Switch.
+ image_view_format = srgb ? VK_FORMAT_R8G8B8A8_SRGB : VK_FORMAT_R8G8B8A8_UNORM;
+#else
image_view_format = srgb ? VK_FORMAT_B8G8R8A8_SRGB : VK_FORMAT_B8G8R8A8_UNORM;
+#endif
}
void Swapchain::CreateSemaphores() {
present_semaphores.resize(image_count);
std::ranges::generate(present_semaphores,
[this] { return device.GetLogical().CreateSemaphore(); });
-}
-
-void Swapchain::CreateImageViews() {
- VkImageViewCreateInfo ci{
- .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
- .pNext = nullptr,
- .flags = 0,
- .image = {},
- .viewType = VK_IMAGE_VIEW_TYPE_2D,
- .format = image_view_format,
- .components =
- {
- .r = VK_COMPONENT_SWIZZLE_IDENTITY,
- .g = VK_COMPONENT_SWIZZLE_IDENTITY,
- .b = VK_COMPONENT_SWIZZLE_IDENTITY,
- .a = VK_COMPONENT_SWIZZLE_IDENTITY,
- },
- .subresourceRange =
- {
- .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
- .baseMipLevel = 0,
- .levelCount = 1,
- .baseArrayLayer = 0,
- .layerCount = 1,
- },
- };
-
- image_views.resize(image_count);
- for (std::size_t i = 0; i < image_count; i++) {
- ci.image = images[i];
- image_views[i] = device.GetLogical().CreateImageView(ci);
- }
+ render_semaphores.resize(image_count);
+ std::ranges::generate(render_semaphores,
+ [this] { return device.GetLogical().CreateSemaphore(); });
}
void Swapchain::Destroy() {
frame_index = 0;
present_semaphores.clear();
- framebuffers.clear();
- image_views.clear();
swapchain.reset();
}
-bool Swapchain::HasFpsUnlockChanged() const {
- return current_fps_unlocked != !Settings::values.use_speed_limit.GetValue();
-}
-
bool Swapchain::NeedsPresentModeUpdate() const {
- // Mailbox present mode is the ideal for all scenarios. If it is not available,
- // A different present mode is needed to support unlocked FPS above the monitor's refresh rate.
- return present_mode != VK_PRESENT_MODE_MAILBOX_KHR && HasFpsUnlockChanged();
+ const auto requested_mode = ChooseSwapPresentMode(has_imm, has_mailbox, has_fifo_relaxed);
+ return present_mode != requested_mode;
}
} // namespace Vulkan
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.h b/src/video_core/renderer_vulkan/vk_swapchain.h
index caf1ff32b..b8a1465a6 100644
--- a/src/video_core/renderer_vulkan/vk_swapchain.h
+++ b/src/video_core/renderer_vulkan/vk_swapchain.h
@@ -24,10 +24,10 @@ public:
~Swapchain();
/// Creates (or recreates) the swapchain with a given size.
- void Create(u32 width, u32 height, bool srgb);
+ void Create(VkSurfaceKHR surface, u32 width, u32 height, bool srgb);
/// Acquires the next image in the swapchain, waits as needed.
- void AcquireNextImage();
+ bool AcquireNextImage();
/// Presents the rendered image to the swapchain.
void Present(VkSemaphore render_semaphore);
@@ -52,6 +52,11 @@ public:
return is_suboptimal;
}
+ /// Returns true when the swapchain format is in the srgb color space
+ bool IsSrgb() const {
+ return current_srgb;
+ }
+
VkExtent2D GetSize() const {
return extent;
}
@@ -64,22 +69,34 @@ public:
return image_index;
}
+ std::size_t GetFrameIndex() const {
+ return frame_index;
+ }
+
VkImage GetImageIndex(std::size_t index) const {
return images[index];
}
- VkImageView GetImageViewIndex(std::size_t index) const {
- return *image_views[index];
+ VkImage CurrentImage() const {
+ return images[image_index];
}
VkFormat GetImageViewFormat() const {
return image_view_format;
}
+ VkFormat GetImageFormat() const {
+ return surface_format.format;
+ }
+
VkSemaphore CurrentPresentSemaphore() const {
return *present_semaphores[frame_index];
}
+ VkSemaphore CurrentRenderSemaphore() const {
+ return *render_semaphores[frame_index];
+ }
+
u32 GetWidth() const {
return width;
}
@@ -88,6 +105,10 @@ public:
return height;
}
+ VkExtent2D GetExtent() const {
+ return extent;
+ }
+
private:
void CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, bool srgb);
void CreateSemaphores();
@@ -95,11 +116,9 @@ private:
void Destroy();
- bool HasFpsUnlockChanged() const;
-
bool NeedsPresentModeUpdate() const;
- const VkSurfaceKHR surface;
+ VkSurfaceKHR surface;
const Device& device;
Scheduler& scheduler;
@@ -107,10 +126,9 @@ private:
std::size_t image_count{};
std::vector<VkImage> images;
- std::vector<vk::ImageView> image_views;
- std::vector<vk::Framebuffer> framebuffers;
std::vector<u64> resource_ticks;
std::vector<vk::Semaphore> present_semaphores;
+ std::vector<vk::Semaphore> render_semaphores;
u32 width;
u32 height;
@@ -121,9 +139,12 @@ private:
VkFormat image_view_format{};
VkExtent2D extent{};
VkPresentModeKHR present_mode{};
+ VkSurfaceFormatKHR surface_format{};
+ bool has_imm{false};
+ bool has_mailbox{false};
+ bool has_fifo_relaxed{false};
bool current_srgb{};
- bool current_fps_unlocked{};
bool is_outdated{};
bool is_suboptimal{};
};
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
index d39372ec4..ce6acc30c 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
@@ -1,10 +1,11 @@
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-License-Identifier: GPL-3.0-or-later
#include <algorithm>
#include <array>
#include <span>
#include <vector>
+#include <boost/container/small_vector.hpp>
#include "common/bit_cast.h"
#include "common/bit_util.h"
@@ -14,7 +15,6 @@
#include "video_core/renderer_vulkan/blit_image.h"
#include "video_core/renderer_vulkan/maxwell_to_vk.h"
#include "video_core/renderer_vulkan/vk_compute_pass.h"
-#include "video_core/renderer_vulkan/vk_rasterizer.h"
#include "video_core/renderer_vulkan/vk_render_pass_cache.h"
#include "video_core/renderer_vulkan/vk_scheduler.h"
#include "video_core/renderer_vulkan/vk_staging_buffer_pool.h"
@@ -162,11 +162,12 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) {
};
}
-[[nodiscard]] vk::Image MakeImage(const Device& device, const ImageInfo& info) {
+[[nodiscard]] vk::Image MakeImage(const Device& device, const MemoryAllocator& allocator,
+ const ImageInfo& info) {
if (info.type == ImageType::Buffer) {
return vk::Image{};
}
- return device.GetLogical().CreateImage(MakeImageCreateInfo(device, info));
+ return allocator.CreateImage(MakeImageCreateInfo(device, info));
}
[[nodiscard]] VkImageAspectFlags ImageAspectMask(PixelFormat format) {
@@ -189,13 +190,16 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) {
if (info.IsRenderTarget()) {
return ImageAspectMask(info.format);
}
- const bool is_first = info.Swizzle()[0] == SwizzleSource::R;
+ bool any_r =
+ std::ranges::any_of(info.Swizzle(), [](SwizzleSource s) { return s == SwizzleSource::R; });
switch (info.format) {
case PixelFormat::D24_UNORM_S8_UINT:
case PixelFormat::D32_FLOAT_S8_UINT:
- return is_first ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_ASPECT_STENCIL_BIT;
+ // R = depth, G = stencil
+ return any_r ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_ASPECT_STENCIL_BIT;
case PixelFormat::S8_UINT_D24_UNORM:
- return is_first ? VK_IMAGE_ASPECT_STENCIL_BIT : VK_IMAGE_ASPECT_DEPTH_BIT;
+ // R = stencil, G = depth
+ return any_r ? VK_IMAGE_ASPECT_STENCIL_BIT : VK_IMAGE_ASPECT_DEPTH_BIT;
case PixelFormat::D16_UNORM:
case PixelFormat::D32_FLOAT:
return VK_IMAGE_ASPECT_DEPTH_BIT;
@@ -326,9 +330,9 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) {
};
}
-[[maybe_unused]] [[nodiscard]] std::vector<VkBufferCopy> TransformBufferCopies(
- std::span<const VideoCommon::BufferCopy> copies, size_t buffer_offset) {
- std::vector<VkBufferCopy> result(copies.size());
+[[maybe_unused]] [[nodiscard]] boost::container::small_vector<VkBufferCopy, 16>
+TransformBufferCopies(std::span<const VideoCommon::BufferCopy> copies, size_t buffer_offset) {
+ boost::container::small_vector<VkBufferCopy, 16> result(copies.size());
std::ranges::transform(
copies, result.begin(), [buffer_offset](const VideoCommon::BufferCopy& copy) {
return VkBufferCopy{
@@ -340,7 +344,7 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) {
return result;
}
-[[nodiscard]] std::vector<VkBufferImageCopy> TransformBufferImageCopies(
+[[nodiscard]] boost::container::small_vector<VkBufferImageCopy, 16> TransformBufferImageCopies(
std::span<const BufferImageCopy> copies, size_t buffer_offset, VkImageAspectFlags aspect_mask) {
struct Maker {
VkBufferImageCopy operator()(const BufferImageCopy& copy) const {
@@ -373,14 +377,14 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) {
VkImageAspectFlags aspect_mask;
};
if (aspect_mask == (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT)) {
- std::vector<VkBufferImageCopy> result(copies.size() * 2);
+ boost::container::small_vector<VkBufferImageCopy, 16> result(copies.size() * 2);
std::ranges::transform(copies, result.begin(),
Maker{buffer_offset, VK_IMAGE_ASPECT_DEPTH_BIT});
std::ranges::transform(copies, result.begin() + copies.size(),
Maker{buffer_offset, VK_IMAGE_ASPECT_STENCIL_BIT});
return result;
} else {
- std::vector<VkBufferImageCopy> result(copies.size());
+ boost::container::small_vector<VkBufferImageCopy, 16> result(copies.size());
std::ranges::transform(copies, result.begin(), Maker{buffer_offset, aspect_mask});
return result;
}
@@ -794,13 +798,13 @@ TextureCacheRuntime::TextureCacheRuntime(const Device& device_, Scheduler& sched
BlitImageHelper& blit_image_helper_,
RenderPassCache& render_pass_cache_,
DescriptorPool& descriptor_pool,
- UpdateDescriptorQueue& update_descriptor_queue)
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue)
: device{device_}, scheduler{scheduler_}, memory_allocator{memory_allocator_},
staging_buffer_pool{staging_buffer_pool_}, blit_image_helper{blit_image_helper_},
render_pass_cache{render_pass_cache_}, resolution{Settings::values.resolution_info} {
if (Settings::values.accelerate_astc) {
astc_decoder_pass.emplace(device, scheduler, descriptor_pool, staging_buffer_pool,
- update_descriptor_queue, memory_allocator);
+ compute_pass_descriptor_queue, memory_allocator);
}
}
@@ -835,14 +839,14 @@ bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) {
VkBuffer TextureCacheRuntime::GetTemporaryBuffer(size_t needed_size) {
const auto level = (8 * sizeof(size_t)) - std::countl_zero(needed_size - 1ULL);
- if (buffer_commits[level]) {
+ if (buffers[level]) {
return *buffers[level];
}
const auto new_size = Common::NextPow2(needed_size);
static constexpr VkBufferUsageFlags flags =
VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT |
VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT;
- buffers[level] = device.GetLogical().CreateBuffer({
+ const VkBufferCreateInfo temp_ci = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -851,26 +855,35 @@ VkBuffer TextureCacheRuntime::GetTemporaryBuffer(size_t needed_size) {
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
- });
- buffer_commits[level] = std::make_unique<MemoryCommit>(
- memory_allocator.Commit(buffers[level], MemoryUsage::DeviceLocal));
+ };
+ buffers[level] = memory_allocator.CreateBuffer(temp_ci, MemoryUsage::DeviceLocal);
return *buffers[level];
}
+void TextureCacheRuntime::BarrierFeedbackLoop() {
+ scheduler.RequestOutsideRenderPassOperationContext();
+}
+
void TextureCacheRuntime::ReinterpretImage(Image& dst, Image& src,
std::span<const VideoCommon::ImageCopy> copies) {
- std::vector<VkBufferImageCopy> vk_in_copies(copies.size());
- std::vector<VkBufferImageCopy> vk_out_copies(copies.size());
+ boost::container::small_vector<VkBufferImageCopy, 16> vk_in_copies(copies.size());
+ boost::container::small_vector<VkBufferImageCopy, 16> vk_out_copies(copies.size());
const VkImageAspectFlags src_aspect_mask = src.AspectMask();
const VkImageAspectFlags dst_aspect_mask = dst.AspectMask();
- std::ranges::transform(copies, vk_in_copies.begin(), [src_aspect_mask](const auto& copy) {
- return MakeBufferImageCopy(copy, true, src_aspect_mask);
- });
+ const auto bpp_in = BytesPerBlock(src.info.format) / DefaultBlockWidth(src.info.format);
+ const auto bpp_out = BytesPerBlock(dst.info.format) / DefaultBlockWidth(dst.info.format);
+ std::ranges::transform(copies, vk_in_copies.begin(),
+ [src_aspect_mask, bpp_in, bpp_out](const auto& copy) {
+ auto copy2 = copy;
+ copy2.src_offset.x = (bpp_out * copy.src_offset.x) / bpp_in;
+ copy2.extent.width = (bpp_out * copy.extent.width) / bpp_in;
+ return MakeBufferImageCopy(copy2, true, src_aspect_mask);
+ });
std::ranges::transform(copies, vk_out_copies.begin(), [dst_aspect_mask](const auto& copy) {
return MakeBufferImageCopy(copy, false, dst_aspect_mask);
});
- const u32 img_bpp = BytesPerBlock(src.info.format);
+ const u32 img_bpp = BytesPerBlock(dst.info.format);
size_t total_size = 0;
for (const auto& copy : copies) {
total_size += copy.extent.width * copy.extent.height * copy.extent.depth * img_bpp;
@@ -1143,7 +1156,7 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im
void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
std::span<const VideoCommon::ImageCopy> copies) {
- std::vector<VkImageCopy> vk_copies(copies.size());
+ boost::container::small_vector<VkImageCopy, 16> vk_copies(copies.size());
const VkImageAspectFlags aspect_mask = dst.AspectMask();
ASSERT(aspect_mask == src.AspectMask());
@@ -1230,6 +1243,11 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
});
}
+void TextureCacheRuntime::CopyImageMSAA(Image& dst, Image& src,
+ std::span<const VideoCommon::ImageCopy> copies) {
+ UNIMPLEMENTED_MSG("Copying images with different samples is not implemented in Vulkan.");
+}
+
u64 TextureCacheRuntime::GetDeviceLocalMemory() const {
return device.GetDeviceLocalMemory();
}
@@ -1247,15 +1265,18 @@ void TextureCacheRuntime::TickFrame() {}
Image::Image(TextureCacheRuntime& runtime_, const ImageInfo& info_, GPUVAddr gpu_addr_,
VAddr cpu_addr_)
: VideoCommon::ImageBase(info_, gpu_addr_, cpu_addr_), scheduler{&runtime_.scheduler},
- runtime{&runtime_}, original_image(MakeImage(runtime_.device, info)),
- commit(runtime_.memory_allocator.Commit(original_image, MemoryUsage::DeviceLocal)),
+ runtime{&runtime_},
+ original_image(MakeImage(runtime_.device, runtime_.memory_allocator, info)),
aspect_mask(ImageAspectMask(info.format)) {
if (IsPixelFormatASTC(info.format) && !runtime->device.IsOptimalAstcSupported()) {
- if (Settings::values.accelerate_astc.GetValue()) {
+ if (Settings::values.async_astc.GetValue()) {
+ flags |= VideoCommon::ImageFlagBits::AsynchronousDecode;
+ } else if (Settings::values.astc_recompression.GetValue() ==
+ Settings::AstcRecompression::Uncompressed &&
+ Settings::values.accelerate_astc.GetValue() && info.size.depth == 1) {
flags |= VideoCommon::ImageFlagBits::AcceleratedUpload;
- } else {
- flags |= VideoCommon::ImageFlagBits::Converted;
}
+ flags |= VideoCommon::ImageFlagBits::Converted;
flags |= VideoCommon::ImageFlagBits::CostlyLoad;
}
if (runtime->device.HasDebuggingToolAttached()) {
@@ -1267,7 +1288,9 @@ Image::Image(TextureCacheRuntime& runtime_, const ImageInfo& info_, GPUVAddr gpu
.usage = VK_IMAGE_USAGE_STORAGE_BIT,
};
current_image = *original_image;
- if (IsPixelFormatASTC(info.format) && !runtime->device.IsOptimalAstcSupported()) {
+ if (IsPixelFormatASTC(info.format) && !runtime->device.IsOptimalAstcSupported() &&
+ Settings::values.astc_recompression.GetValue() ==
+ Settings::AstcRecompression::Uncompressed) {
const auto& device = runtime->device.GetLogical();
storage_image_views.reserve(info.resources.levels);
for (s32 level = 0; level < info.resources.levels; ++level) {
@@ -1300,15 +1323,16 @@ Image::Image(const VideoCommon::NullImageParams& params) : VideoCommon::ImageBas
Image::~Image() = default;
-void Image::UploadMemory(const StagingBufferRef& map, std::span<const BufferImageCopy> copies) {
+void Image::UploadMemory(VkBuffer buffer, VkDeviceSize offset,
+ std::span<const VideoCommon::BufferImageCopy> copies) {
// TODO: Move this to another API
const bool is_rescaled = True(flags & ImageFlagBits::Rescaled);
if (is_rescaled) {
ScaleDown(true);
}
scheduler->RequestOutsideRenderPassOperationContext();
- std::vector vk_copies = TransformBufferImageCopies(copies, map.offset, aspect_mask);
- const VkBuffer src_buffer = map.buffer;
+ auto vk_copies = TransformBufferImageCopies(copies, offset, aspect_mask);
+ const VkBuffer src_buffer = buffer;
const VkImage vk_image = *original_image;
const VkImageAspectFlags vk_aspect_mask = aspect_mask;
const bool is_initialized = std::exchange(initialized, true);
@@ -1321,15 +1345,38 @@ void Image::UploadMemory(const StagingBufferRef& map, std::span<const BufferImag
}
}
-void Image::DownloadMemory(const StagingBufferRef& map, std::span<const BufferImageCopy> copies) {
+void Image::UploadMemory(const StagingBufferRef& map, std::span<const BufferImageCopy> copies) {
+ UploadMemory(map.buffer, map.offset, copies);
+}
+
+void Image::DownloadMemory(VkBuffer buffer, VkDeviceSize offset,
+ std::span<const VideoCommon::BufferImageCopy> copies) {
+ std::array buffer_handles{
+ buffer,
+ };
+ std::array buffer_offsets{
+ offset,
+ };
+ DownloadMemory(buffer_handles, buffer_offsets, copies);
+}
+
+void Image::DownloadMemory(std::span<VkBuffer> buffers_span, std::span<VkDeviceSize> offsets_span,
+ std::span<const VideoCommon::BufferImageCopy> copies) {
const bool is_rescaled = True(flags & ImageFlagBits::Rescaled);
if (is_rescaled) {
ScaleDown();
}
- std::vector vk_copies = TransformBufferImageCopies(copies, map.offset, aspect_mask);
+ boost::container::small_vector<VkBuffer, 8> buffers_vector{};
+ boost::container::small_vector<boost::container::small_vector<VkBufferImageCopy, 16>, 8>
+ vk_copies;
+ for (size_t index = 0; index < buffers_span.size(); index++) {
+ buffers_vector.emplace_back(buffers_span[index]);
+ vk_copies.emplace_back(
+ TransformBufferImageCopies(copies, offsets_span[index], aspect_mask));
+ }
scheduler->RequestOutsideRenderPassOperationContext();
- scheduler->Record([buffer = map.buffer, image = *original_image, aspect_mask = aspect_mask,
- vk_copies](vk::CommandBuffer cmdbuf) {
+ scheduler->Record([buffers = std::move(buffers_vector), image = *original_image,
+ aspect_mask = aspect_mask, vk_copies](vk::CommandBuffer cmdbuf) {
const VkImageMemoryBarrier read_barrier{
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
.pNext = nullptr,
@@ -1348,6 +1395,20 @@ void Image::DownloadMemory(const StagingBufferRef& map, std::span<const BufferIm
.layerCount = VK_REMAINING_ARRAY_LAYERS,
},
};
+ cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT,
+ 0, read_barrier);
+
+ for (size_t index = 0; index < buffers.size(); index++) {
+ cmdbuf.CopyImageToBuffer(image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, buffers[index],
+ vk_copies[index]);
+ }
+
+ const VkMemoryBarrier memory_write_barrier{
+ .sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER,
+ .pNext = nullptr,
+ .srcAccessMask = VK_ACCESS_MEMORY_WRITE_BIT,
+ .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT | VK_ACCESS_MEMORY_WRITE_BIT,
+ };
const VkImageMemoryBarrier image_write_barrier{
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
.pNext = nullptr,
@@ -1366,15 +1427,6 @@ void Image::DownloadMemory(const StagingBufferRef& map, std::span<const BufferIm
.layerCount = VK_REMAINING_ARRAY_LAYERS,
},
};
- const VkMemoryBarrier memory_write_barrier{
- .sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER,
- .pNext = nullptr,
- .srcAccessMask = VK_ACCESS_MEMORY_WRITE_BIT,
- .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT | VK_ACCESS_MEMORY_WRITE_BIT,
- };
- cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT,
- 0, read_barrier);
- cmdbuf.CopyImageToBuffer(image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, buffer, vk_copies);
cmdbuf.PipelineBarrier(VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
0, memory_write_barrier, nullptr, image_write_barrier);
});
@@ -1383,6 +1435,16 @@ void Image::DownloadMemory(const StagingBufferRef& map, std::span<const BufferIm
}
}
+void Image::DownloadMemory(const StagingBufferRef& map, std::span<const BufferImageCopy> copies) {
+ std::array buffers{
+ map.buffer,
+ };
+ std::array offsets{
+ map.offset,
+ };
+ DownloadMemory(buffers, offsets, copies);
+}
+
bool Image::IsRescaled() const noexcept {
return True(flags & ImageFlagBits::Rescaled);
}
@@ -1405,9 +1467,7 @@ bool Image::ScaleUp(bool ignore) {
auto scaled_info = info;
scaled_info.size.width = scaled_width;
scaled_info.size.height = scaled_height;
- scaled_image = MakeImage(runtime->device, scaled_info);
- auto& allocator = runtime->memory_allocator;
- scaled_commit = MemoryCommit(allocator.Commit(scaled_image, MemoryUsage::DeviceLocal));
+ scaled_image = MakeImage(runtime->device, runtime->memory_allocator, scaled_info);
ignore = false;
}
current_image = *scaled_image;
@@ -1530,8 +1590,9 @@ bool Image::NeedsScaleHelper() const {
ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewInfo& info,
ImageId image_id_, Image& image)
- : VideoCommon::ImageViewBase{info, image.info, image_id_}, device{&runtime.device},
- image_handle{image.Handle()}, samples(ConvertSampleCount(image.info.num_samples)) {
+ : VideoCommon::ImageViewBase{info, image.info, image_id_, image.gpu_addr},
+ device{&runtime.device}, image_handle{image.Handle()},
+ samples(ConvertSampleCount(image.info.num_samples)) {
using Shader::TextureType;
const VkImageAspectFlags aspect_mask = ImageViewAspectMask(info);
@@ -1577,7 +1638,7 @@ ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewI
}
vk::ImageView handle = device->GetLogical().CreateImageView(ci);
if (device->HasDebuggingToolAttached()) {
- handle.SetObjectNameEXT(VideoCommon::Name(*this).c_str());
+ handle.SetObjectNameEXT(VideoCommon::Name(*this, gpu_addr).c_str());
}
image_views[static_cast<size_t>(tex_type)] = std::move(handle);
};
@@ -1618,7 +1679,7 @@ ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewI
ImageView::ImageView(TextureCacheRuntime&, const VideoCommon::ImageInfo& info,
const VideoCommon::ImageViewInfo& view_info, GPUVAddr gpu_addr_)
- : VideoCommon::ImageViewBase{info, view_info}, gpu_addr{gpu_addr_},
+ : VideoCommon::ImageViewBase{info, view_info, gpu_addr_},
buffer_size{VideoCommon::CalculateGuestSizeInBytes(info)} {}
ImageView::ImageView(TextureCacheRuntime&, const VideoCommon::NullImageViewParams& params)
@@ -1739,27 +1800,36 @@ Sampler::Sampler(TextureCacheRuntime& runtime, const Tegra::Texture::TSCEntry& t
// Some games have samplers with garbage. Sanitize them here.
const f32 max_anisotropy = std::clamp(tsc.MaxAnisotropy(), 1.0f, 16.0f);
- sampler = device.GetLogical().CreateSampler(VkSamplerCreateInfo{
- .sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO,
- .pNext = pnext,
- .flags = 0,
- .magFilter = MaxwellToVK::Sampler::Filter(tsc.mag_filter),
- .minFilter = MaxwellToVK::Sampler::Filter(tsc.min_filter),
- .mipmapMode = MaxwellToVK::Sampler::MipmapMode(tsc.mipmap_filter),
- .addressModeU = MaxwellToVK::Sampler::WrapMode(device, tsc.wrap_u, tsc.mag_filter),
- .addressModeV = MaxwellToVK::Sampler::WrapMode(device, tsc.wrap_v, tsc.mag_filter),
- .addressModeW = MaxwellToVK::Sampler::WrapMode(device, tsc.wrap_p, tsc.mag_filter),
- .mipLodBias = tsc.LodBias(),
- .anisotropyEnable = static_cast<VkBool32>(max_anisotropy > 1.0f ? VK_TRUE : VK_FALSE),
- .maxAnisotropy = max_anisotropy,
- .compareEnable = tsc.depth_compare_enabled,
- .compareOp = MaxwellToVK::Sampler::DepthCompareFunction(tsc.depth_compare_func),
- .minLod = tsc.mipmap_filter == TextureMipmapFilter::None ? 0.0f : tsc.MinLod(),
- .maxLod = tsc.mipmap_filter == TextureMipmapFilter::None ? 0.25f : tsc.MaxLod(),
- .borderColor =
- arbitrary_borders ? VK_BORDER_COLOR_INT_CUSTOM_EXT : ConvertBorderColor(color),
- .unnormalizedCoordinates = VK_FALSE,
- });
+ const auto create_sampler = [&](const f32 anisotropy) {
+ return device.GetLogical().CreateSampler(VkSamplerCreateInfo{
+ .sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO,
+ .pNext = pnext,
+ .flags = 0,
+ .magFilter = MaxwellToVK::Sampler::Filter(tsc.mag_filter),
+ .minFilter = MaxwellToVK::Sampler::Filter(tsc.min_filter),
+ .mipmapMode = MaxwellToVK::Sampler::MipmapMode(tsc.mipmap_filter),
+ .addressModeU = MaxwellToVK::Sampler::WrapMode(device, tsc.wrap_u, tsc.mag_filter),
+ .addressModeV = MaxwellToVK::Sampler::WrapMode(device, tsc.wrap_v, tsc.mag_filter),
+ .addressModeW = MaxwellToVK::Sampler::WrapMode(device, tsc.wrap_p, tsc.mag_filter),
+ .mipLodBias = tsc.LodBias(),
+ .anisotropyEnable = static_cast<VkBool32>(anisotropy > 1.0f ? VK_TRUE : VK_FALSE),
+ .maxAnisotropy = anisotropy,
+ .compareEnable = tsc.depth_compare_enabled,
+ .compareOp = MaxwellToVK::Sampler::DepthCompareFunction(tsc.depth_compare_func),
+ .minLod = tsc.mipmap_filter == TextureMipmapFilter::None ? 0.0f : tsc.MinLod(),
+ .maxLod = tsc.mipmap_filter == TextureMipmapFilter::None ? 0.25f : tsc.MaxLod(),
+ .borderColor =
+ arbitrary_borders ? VK_BORDER_COLOR_FLOAT_CUSTOM_EXT : ConvertBorderColor(color),
+ .unnormalizedCoordinates = VK_FALSE,
+ });
+ };
+
+ sampler = create_sampler(max_anisotropy);
+
+ const f32 max_anisotropy_default = static_cast<f32>(1U << tsc.max_anisotropy);
+ if (max_anisotropy > max_anisotropy_default) {
+ sampler_default_anisotropy = create_sampler(max_anisotropy_default);
+ }
}
Framebuffer::Framebuffer(TextureCacheRuntime& runtime, std::span<ImageView*, NUM_RT> color_buffers,
@@ -1786,7 +1856,7 @@ Framebuffer::~Framebuffer() = default;
void Framebuffer::CreateFramebuffer(TextureCacheRuntime& runtime,
std::span<ImageView*, NUM_RT> color_buffers,
ImageView* depth_buffer, bool is_rescaled) {
- std::vector<VkImageView> attachments;
+ boost::container::small_vector<VkImageView, NUM_RT + 1> attachments;
RenderPassKey renderpass_key{};
s32 num_layers = 1;
@@ -1809,6 +1879,7 @@ void Framebuffer::CreateFramebuffer(TextureCacheRuntime& runtime,
num_layers = std::max(num_layers, color_buffer->range.extent.layers);
images[num_images] = color_buffer->ImageHandle();
image_ranges[num_images] = MakeSubresourceRange(color_buffer);
+ rt_map[index] = num_images;
samples = color_buffer->Samples();
++num_images;
}
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.h b/src/video_core/renderer_vulkan/vk_texture_cache.h
index 1f27a3589..220943116 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.h
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.h
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
@@ -34,7 +34,6 @@ class ImageView;
class Framebuffer;
class RenderPassCache;
class StagingBufferPool;
-class UpdateDescriptorQueue;
class Scheduler;
class TextureCacheRuntime {
@@ -45,7 +44,7 @@ public:
BlitImageHelper& blit_image_helper_,
RenderPassCache& render_pass_cache_,
DescriptorPool& descriptor_pool,
- UpdateDescriptorQueue& update_descriptor_queue);
+ ComputePassDescriptorQueue& compute_pass_descriptor_queue);
void Finish();
@@ -70,6 +69,8 @@ public:
void CopyImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
+ void CopyImageMSAA(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
+
bool ShouldReinterpret(Image& dst, Image& src);
void ReinterpretImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies);
@@ -80,6 +81,11 @@ public:
return false;
}
+ bool CanUploadMSAA() const noexcept {
+ // TODO: Implement buffer to MSAA uploads
+ return false;
+ }
+
void AccelerateImageUpload(Image&, const StagingBufferRef&,
std::span<const VideoCommon::SwizzleParameters>);
@@ -97,6 +103,8 @@ public:
[[nodiscard]] VkBuffer GetTemporaryBuffer(size_t needed_size);
+ void BarrierFeedbackLoop();
+
const Device& device;
Scheduler& scheduler;
MemoryAllocator& memory_allocator;
@@ -106,9 +114,8 @@ public:
std::optional<ASTCDecoderPass> astc_decoder_pass;
const Settings::ResolutionScalingInfo& resolution;
- constexpr static size_t indexing_slots = 8 * sizeof(size_t);
+ static constexpr size_t indexing_slots = 8 * sizeof(size_t);
std::array<vk::Buffer, indexing_slots> buffers{};
- std::array<std::unique_ptr<MemoryCommit>, indexing_slots> buffer_commits{};
};
class Image : public VideoCommon::ImageBase {
@@ -125,9 +132,18 @@ public:
Image(Image&&) = default;
Image& operator=(Image&&) = default;
+ void UploadMemory(VkBuffer buffer, VkDeviceSize offset,
+ std::span<const VideoCommon::BufferImageCopy> copies);
+
void UploadMemory(const StagingBufferRef& map,
std::span<const VideoCommon::BufferImageCopy> copies);
+ void DownloadMemory(VkBuffer buffer, VkDeviceSize offset,
+ std::span<const VideoCommon::BufferImageCopy> copies);
+
+ void DownloadMemory(std::span<VkBuffer> buffers, std::span<VkDeviceSize> offsets,
+ std::span<const VideoCommon::BufferImageCopy> copies);
+
void DownloadMemory(const StagingBufferRef& map,
std::span<const VideoCommon::BufferImageCopy> copies);
@@ -163,12 +179,10 @@ private:
TextureCacheRuntime* runtime{};
vk::Image original_image;
- MemoryCommit commit;
std::vector<vk::ImageView> storage_image_views;
VkImageAspectFlags aspect_mask = 0;
bool initialized = false;
vk::Image scaled_image{};
- MemoryCommit scaled_commit{};
VkImage current_image{};
std::unique_ptr<Framebuffer> scale_framebuffer;
@@ -249,7 +263,6 @@ private:
VkImage image_handle = VK_NULL_HANDLE;
VkImageView render_target = VK_NULL_HANDLE;
VkSampleCountFlagBits samples = VK_SAMPLE_COUNT_1_BIT;
- GPUVAddr gpu_addr = 0;
u32 buffer_size = 0;
};
@@ -263,8 +276,17 @@ public:
return *sampler;
}
+ [[nodiscard]] VkSampler HandleWithDefaultAnisotropy() const noexcept {
+ return *sampler_default_anisotropy;
+ }
+
+ [[nodiscard]] bool HasAddedAnisotropy() const noexcept {
+ return static_cast<bool>(sampler_default_anisotropy);
+ }
+
private:
vk::Sampler sampler;
+ vk::Sampler sampler_default_anisotropy;
};
class Framebuffer {
@@ -320,7 +342,7 @@ public:
}
[[nodiscard]] bool HasAspectColorBit(size_t index) const noexcept {
- return (image_ranges.at(index).aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) != 0;
+ return (image_ranges.at(rt_map[index]).aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) != 0;
}
[[nodiscard]] bool HasAspectDepthBit() const noexcept {
@@ -340,6 +362,7 @@ private:
u32 num_images = 0;
std::array<VkImage, 9> images{};
std::array<VkImageSubresourceRange, 9> image_ranges{};
+ std::array<size_t, NUM_RT> rt_map{};
bool has_depth{};
bool has_stencil{};
};
@@ -358,6 +381,7 @@ struct TextureCacheParams {
using Sampler = Vulkan::Sampler;
using Framebuffer = Vulkan::Framebuffer;
using AsyncBuffer = Vulkan::StagingBufferRef;
+ using BufferType = VkBuffer;
};
using TextureCache = VideoCommon::TextureCache<TextureCacheParams>;
diff --git a/src/video_core/renderer_vulkan/vk_turbo_mode.cpp b/src/video_core/renderer_vulkan/vk_turbo_mode.cpp
index c42594149..460d8d59d 100644
--- a/src/video_core/renderer_vulkan/vk_turbo_mode.cpp
+++ b/src/video_core/renderer_vulkan/vk_turbo_mode.cpp
@@ -1,6 +1,10 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
+#include <adrenotools/driver.h>
+#endif
+
#include "common/literals.h"
#include "video_core/host_shaders/vulkan_turbo_mode_comp_spv.h"
#include "video_core/renderer_vulkan/renderer_vulkan.h"
@@ -13,7 +17,10 @@ namespace Vulkan {
using namespace Common::Literals;
TurboMode::TurboMode(const vk::Instance& instance, const vk::InstanceDispatch& dld)
- : m_device{CreateDevice(instance, dld, VK_NULL_HANDLE)}, m_allocator{m_device, false} {
+#ifndef ANDROID
+ : m_device{CreateDevice(instance, dld, VK_NULL_HANDLE)}, m_allocator{m_device}
+#endif
+{
{
std::scoped_lock lk{m_submission_lock};
m_submission_time = std::chrono::steady_clock::now();
@@ -30,10 +37,11 @@ void TurboMode::QueueSubmitted() {
}
void TurboMode::Run(std::stop_token stop_token) {
+#ifndef ANDROID
auto& dld = m_device.GetLogical();
// Allocate buffer. 2MiB should be sufficient.
- auto buffer = dld.CreateBuffer(VkBufferCreateInfo{
+ const VkBufferCreateInfo buffer_ci = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
.pNext = nullptr,
.flags = 0,
@@ -42,13 +50,11 @@ void TurboMode::Run(std::stop_token stop_token) {
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
- });
-
- // Commit some device local memory for the buffer.
- auto commit = m_allocator.Commit(buffer, MemoryUsage::DeviceLocal);
+ };
+ vk::Buffer buffer = m_allocator.CreateBuffer(buffer_ci, MemoryUsage::DeviceLocal);
// Create the descriptor pool to contain our descriptor.
- constexpr VkDescriptorPoolSize pool_size{
+ static constexpr VkDescriptorPoolSize pool_size{
.type = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
.descriptorCount = 1,
};
@@ -63,7 +69,7 @@ void TurboMode::Run(std::stop_token stop_token) {
});
// Create the descriptor set layout from the pool.
- constexpr VkDescriptorSetLayoutBinding layout_binding{
+ static constexpr VkDescriptorSetLayoutBinding layout_binding{
.binding = 0,
.descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
.descriptorCount = 1,
@@ -142,8 +148,14 @@ void TurboMode::Run(std::stop_token stop_token) {
// Create a single command buffer.
auto cmdbufs = command_pool.Allocate(1, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
auto cmdbuf = vk::CommandBuffer{cmdbufs[0], m_device.GetDispatchLoader()};
+#endif
while (!stop_token.stop_requested()) {
+#ifdef ANDROID
+#ifdef ARCHITECTURE_arm64
+ adrenotools_set_turbo(true);
+#endif
+#else
// Reset the fence.
fence.Reset();
@@ -209,7 +221,7 @@ void TurboMode::Run(std::stop_token stop_token) {
// Wait for completion.
fence.Wait();
-
+#endif
// Wait for the next graphics queue submission if necessary.
std::unique_lock lk{m_submission_lock};
Common::CondvarWait(m_submission_cv, lk, stop_token, [this] {
@@ -217,6 +229,9 @@ void TurboMode::Run(std::stop_token stop_token) {
std::chrono::milliseconds{100};
});
}
+#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
+ adrenotools_set_turbo(false);
+#endif
}
} // namespace Vulkan
diff --git a/src/video_core/renderer_vulkan/vk_turbo_mode.h b/src/video_core/renderer_vulkan/vk_turbo_mode.h
index 99b5ac50b..9341c9867 100644
--- a/src/video_core/renderer_vulkan/vk_turbo_mode.h
+++ b/src/video_core/renderer_vulkan/vk_turbo_mode.h
@@ -23,8 +23,10 @@ public:
private:
void Run(std::stop_token stop_token);
+#ifndef ANDROID
Device m_device;
MemoryAllocator m_allocator;
+#endif
std::mutex m_submission_lock;
std::condition_variable_any m_submission_cv;
std::chrono::time_point<std::chrono::steady_clock> m_submission_time{};
diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp
index 4d4a6753b..0630ebda5 100644
--- a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp
+++ b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp
@@ -14,24 +14,29 @@ namespace Vulkan {
UpdateDescriptorQueue::UpdateDescriptorQueue(const Device& device_, Scheduler& scheduler_)
: device{device_}, scheduler{scheduler_} {
+ payload_start = payload.data();
payload_cursor = payload.data();
}
UpdateDescriptorQueue::~UpdateDescriptorQueue() = default;
void UpdateDescriptorQueue::TickFrame() {
- payload_cursor = payload.data();
+ if (++frame_index >= FRAMES_IN_FLIGHT) {
+ frame_index = 0;
+ }
+ payload_start = payload.data() + frame_index * FRAME_PAYLOAD_SIZE;
+ payload_cursor = payload_start;
}
void UpdateDescriptorQueue::Acquire() {
// Minimum number of entries required.
- // This is the maximum number of entries a single draw call migth use.
+ // This is the maximum number of entries a single draw call might use.
static constexpr size_t MIN_ENTRIES = 0x400;
- if (std::distance(payload.data(), payload_cursor) + MIN_ENTRIES >= payload.max_size()) {
+ if (std::distance(payload_start, payload_cursor) + MIN_ENTRIES >= FRAME_PAYLOAD_SIZE) {
LOG_WARNING(Render_Vulkan, "Payload overflow, waiting for worker thread");
scheduler.WaitWorker();
- payload_cursor = payload.data();
+ payload_cursor = payload_start;
}
upload_start = payload_cursor;
}
diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.h b/src/video_core/renderer_vulkan/vk_update_descriptor.h
index 625bcc809..e77b576ec 100644
--- a/src/video_core/renderer_vulkan/vk_update_descriptor.h
+++ b/src/video_core/renderer_vulkan/vk_update_descriptor.h
@@ -29,6 +29,12 @@ struct DescriptorUpdateEntry {
};
class UpdateDescriptorQueue final {
+ // This should be plenty for the vast majority of cases. Most desktop platforms only
+ // provide up to 3 swapchain images.
+ static constexpr size_t FRAMES_IN_FLIGHT = 7;
+ static constexpr size_t FRAME_PAYLOAD_SIZE = 0x20000;
+ static constexpr size_t PAYLOAD_SIZE = FRAME_PAYLOAD_SIZE * FRAMES_IN_FLIGHT;
+
public:
explicit UpdateDescriptorQueue(const Device& device_, Scheduler& scheduler_);
~UpdateDescriptorQueue();
@@ -73,9 +79,15 @@ private:
const Device& device;
Scheduler& scheduler;
+ size_t frame_index{0};
DescriptorUpdateEntry* payload_cursor = nullptr;
+ DescriptorUpdateEntry* payload_start = nullptr;
const DescriptorUpdateEntry* upload_start = nullptr;
- std::array<DescriptorUpdateEntry, 0x10000> payload;
+ std::array<DescriptorUpdateEntry, PAYLOAD_SIZE> payload;
};
+// TODO: should these be separate classes instead?
+using GuestDescriptorQueue = UpdateDescriptorQueue;
+using ComputePassDescriptorQueue = UpdateDescriptorQueue;
+
} // namespace Vulkan
diff --git a/src/video_core/shader_cache.cpp b/src/video_core/shader_cache.cpp
index d9482371b..4db948b6d 100644
--- a/src/video_core/shader_cache.cpp
+++ b/src/video_core/shader_cache.cpp
@@ -151,11 +151,9 @@ void ShaderCache::RemovePendingShaders() {
marked_for_removal.erase(std::unique(marked_for_removal.begin(), marked_for_removal.end()),
marked_for_removal.end());
- std::vector<ShaderInfo*> removed_shaders;
- removed_shaders.reserve(marked_for_removal.size());
+ boost::container::small_vector<ShaderInfo*, 16> removed_shaders;
std::scoped_lock lock{lookup_mutex};
-
for (Entry* const entry : marked_for_removal) {
removed_shaders.push_back(entry->data);
@@ -228,14 +226,14 @@ const ShaderInfo* ShaderCache::MakeShaderInfo(GenericEnvironment& env, VAddr cpu
auto info = std::make_unique<ShaderInfo>();
if (const std::optional<u64> cached_hash{env.Analyze()}) {
info->unique_hash = *cached_hash;
- info->size_bytes = env.CachedSize();
+ info->size_bytes = env.CachedSizeBytes();
} else {
// Slow path, not really hit on commercial games
// Build a control flow graph to get the real shader size
Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block;
Shader::Maxwell::Flow::CFG cfg{env, flow_block, env.StartAddress()};
info->unique_hash = env.CalculateHash();
- info->size_bytes = env.ReadSize();
+ info->size_bytes = env.ReadSizeBytes();
}
const size_t size_bytes{info->size_bytes};
const ShaderInfo* const result{info.get()};
diff --git a/src/video_core/shader_environment.cpp b/src/video_core/shader_environment.cpp
index 574760f80..c7cb56243 100644
--- a/src/video_core/shader_environment.cpp
+++ b/src/video_core/shader_environment.cpp
@@ -170,15 +170,19 @@ std::optional<u64> GenericEnvironment::Analyze() {
void GenericEnvironment::SetCachedSize(size_t size_bytes) {
cached_lowest = start_address;
cached_highest = start_address + static_cast<u32>(size_bytes);
- code.resize(CachedSize());
+ code.resize(CachedSizeWords());
gpu_memory->ReadBlock(program_base + cached_lowest, code.data(), code.size() * sizeof(u64));
}
-size_t GenericEnvironment::CachedSize() const noexcept {
- return cached_highest - cached_lowest + INST_SIZE;
+size_t GenericEnvironment::CachedSizeWords() const noexcept {
+ return CachedSizeBytes() / INST_SIZE;
}
-size_t GenericEnvironment::ReadSize() const noexcept {
+size_t GenericEnvironment::CachedSizeBytes() const noexcept {
+ return static_cast<size_t>(cached_highest) - cached_lowest + INST_SIZE;
+}
+
+size_t GenericEnvironment::ReadSizeBytes() const noexcept {
return read_highest - read_lowest + INST_SIZE;
}
@@ -187,7 +191,7 @@ bool GenericEnvironment::CanBeSerialized() const noexcept {
}
u64 GenericEnvironment::CalculateHash() const {
- const size_t size{ReadSize()};
+ const size_t size{ReadSizeBytes()};
const auto data{std::make_unique<char[]>(size)};
gpu_memory->ReadBlock(program_base + read_lowest, data.get(), size);
return Common::CityHash64(data.get(), size);
@@ -198,7 +202,7 @@ void GenericEnvironment::Dump(u64 hash) {
}
void GenericEnvironment::Serialize(std::ofstream& file) const {
- const u64 code_size{static_cast<u64>(CachedSize())};
+ const u64 code_size{static_cast<u64>(CachedSizeBytes())};
const u64 num_texture_types{static_cast<u64>(texture_types.size())};
const u64 num_texture_pixel_formats{static_cast<u64>(texture_pixel_formats.size())};
const u64 num_cbuf_values{static_cast<u64>(cbuf_values.size())};
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h
index d75987a52..a0f61cbda 100644
--- a/src/video_core/shader_environment.h
+++ b/src/video_core/shader_environment.h
@@ -48,9 +48,11 @@ public:
void SetCachedSize(size_t size_bytes);
- [[nodiscard]] size_t CachedSize() const noexcept;
+ [[nodiscard]] size_t CachedSizeWords() const noexcept;
- [[nodiscard]] size_t ReadSize() const noexcept;
+ [[nodiscard]] size_t CachedSizeBytes() const noexcept;
+
+ [[nodiscard]] size_t ReadSizeBytes() const noexcept;
[[nodiscard]] bool CanBeSerialized() const noexcept;
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index 1a76d4178..cb51529e4 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -250,10 +250,13 @@ bool IsPixelFormatASTC(PixelFormat format) {
case PixelFormat::ASTC_2D_6X6_UNORM:
case PixelFormat::ASTC_2D_6X6_SRGB:
case PixelFormat::ASTC_2D_10X6_UNORM:
+ case PixelFormat::ASTC_2D_10X6_SRGB:
case PixelFormat::ASTC_2D_10X5_UNORM:
case PixelFormat::ASTC_2D_10X5_SRGB:
case PixelFormat::ASTC_2D_10X10_UNORM:
case PixelFormat::ASTC_2D_10X10_SRGB:
+ case PixelFormat::ASTC_2D_12X10_UNORM:
+ case PixelFormat::ASTC_2D_12X10_SRGB:
case PixelFormat::ASTC_2D_12X12_UNORM:
case PixelFormat::ASTC_2D_12X12_SRGB:
case PixelFormat::ASTC_2D_8X6_UNORM:
@@ -279,11 +282,13 @@ bool IsPixelFormatSRGB(PixelFormat format) {
case PixelFormat::ASTC_2D_8X5_SRGB:
case PixelFormat::ASTC_2D_5X4_SRGB:
case PixelFormat::ASTC_2D_5X5_SRGB:
+ case PixelFormat::ASTC_2D_10X6_SRGB:
case PixelFormat::ASTC_2D_10X8_SRGB:
case PixelFormat::ASTC_2D_6X6_SRGB:
case PixelFormat::ASTC_2D_10X5_SRGB:
case PixelFormat::ASTC_2D_10X10_SRGB:
case PixelFormat::ASTC_2D_12X12_SRGB:
+ case PixelFormat::ASTC_2D_12X10_SRGB:
case PixelFormat::ASTC_2D_8X6_SRGB:
case PixelFormat::ASTC_2D_6X5_SRGB:
return true;
diff --git a/src/video_core/surface.h b/src/video_core/surface.h
index 44b79af20..0225d3287 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -95,10 +95,13 @@ enum class PixelFormat {
ASTC_2D_6X6_UNORM,
ASTC_2D_6X6_SRGB,
ASTC_2D_10X6_UNORM,
+ ASTC_2D_10X6_SRGB,
ASTC_2D_10X5_UNORM,
ASTC_2D_10X5_SRGB,
ASTC_2D_10X10_UNORM,
ASTC_2D_10X10_SRGB,
+ ASTC_2D_12X10_UNORM,
+ ASTC_2D_12X10_SRGB,
ASTC_2D_12X12_UNORM,
ASTC_2D_12X12_SRGB,
ASTC_2D_8X6_UNORM,
@@ -232,10 +235,13 @@ constexpr std::array<u8, MaxPixelFormat> BLOCK_WIDTH_TABLE = {{
6, // ASTC_2D_6X6_UNORM
6, // ASTC_2D_6X6_SRGB
10, // ASTC_2D_10X6_UNORM
+ 10, // ASTC_2D_10X6_SRGB
10, // ASTC_2D_10X5_UNORM
10, // ASTC_2D_10X5_SRGB
10, // ASTC_2D_10X10_UNORM
10, // ASTC_2D_10X10_SRGB
+ 12, // ASTC_2D_12X10_UNORM
+ 12, // ASTC_2D_12X10_SRGB
12, // ASTC_2D_12X12_UNORM
12, // ASTC_2D_12X12_SRGB
8, // ASTC_2D_8X6_UNORM
@@ -338,10 +344,13 @@ constexpr std::array<u8, MaxPixelFormat> BLOCK_HEIGHT_TABLE = {{
6, // ASTC_2D_6X6_UNORM
6, // ASTC_2D_6X6_SRGB
6, // ASTC_2D_10X6_UNORM
+ 6, // ASTC_2D_10X6_SRGB
5, // ASTC_2D_10X5_UNORM
5, // ASTC_2D_10X5_SRGB
10, // ASTC_2D_10X10_UNORM
10, // ASTC_2D_10X10_SRGB
+ 10, // ASTC_2D_12X10_UNORM
+ 10, // ASTC_2D_12X10_SRGB
12, // ASTC_2D_12X12_UNORM
12, // ASTC_2D_12X12_SRGB
6, // ASTC_2D_8X6_UNORM
@@ -444,10 +453,13 @@ constexpr std::array<u8, MaxPixelFormat> BITS_PER_BLOCK_TABLE = {{
128, // ASTC_2D_6X6_UNORM
128, // ASTC_2D_6X6_SRGB
128, // ASTC_2D_10X6_UNORM
+ 128, // ASTC_2D_10X6_SRGB
128, // ASTC_2D_10X5_UNORM
128, // ASTC_2D_10X5_SRGB
128, // ASTC_2D_10X10_UNORM
128, // ASTC_2D_10X10_SRGB
+ 128, // ASTC_2D_12X10_UNORM
+ 128, // ASTC_2D_12X10_SRGB
128, // ASTC_2D_12X12_UNORM
128, // ASTC_2D_12X12_SRGB
128, // ASTC_2D_8X6_UNORM
diff --git a/src/video_core/texture_cache/descriptor_table.h b/src/video_core/texture_cache/descriptor_table.h
index ee4240288..1bad83fb4 100644
--- a/src/video_core/texture_cache/descriptor_table.h
+++ b/src/video_core/texture_cache/descriptor_table.h
@@ -19,9 +19,7 @@ public:
explicit DescriptorTable(Tegra::MemoryManager& gpu_memory_) : gpu_memory{gpu_memory_} {}
[[nodiscard]] bool Synchronize(GPUVAddr gpu_addr, u32 limit) {
- [[likely]] if (current_gpu_addr == gpu_addr && current_limit == limit) {
- return false;
- }
+ [[likely]] if (current_gpu_addr == gpu_addr && current_limit == limit) { return false; }
Refresh(gpu_addr, limit);
return true;
}
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp
index 08aa8ca33..11ced6c38 100644
--- a/src/video_core/texture_cache/format_lookup_table.cpp
+++ b/src/video_core/texture_cache/format_lookup_table.cpp
@@ -42,15 +42,15 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
ComponentType blue, ComponentType alpha,
bool is_srgb) noexcept {
switch (Hash(format, red, green, blue, alpha, is_srgb)) {
- case Hash(TextureFormat::A8R8G8B8, UNORM):
+ case Hash(TextureFormat::A8B8G8R8, UNORM):
return PixelFormat::A8B8G8R8_UNORM;
- case Hash(TextureFormat::A8R8G8B8, SNORM):
+ case Hash(TextureFormat::A8B8G8R8, SNORM):
return PixelFormat::A8B8G8R8_SNORM;
- case Hash(TextureFormat::A8R8G8B8, UINT):
+ case Hash(TextureFormat::A8B8G8R8, UINT):
return PixelFormat::A8B8G8R8_UINT;
- case Hash(TextureFormat::A8R8G8B8, SINT):
+ case Hash(TextureFormat::A8B8G8R8, SINT):
return PixelFormat::A8B8G8R8_SINT;
- case Hash(TextureFormat::A8R8G8B8, UNORM, SRGB):
+ case Hash(TextureFormat::A8B8G8R8, UNORM, SRGB):
return PixelFormat::A8B8G8R8_SRGB;
case Hash(TextureFormat::B5G6R5, UNORM):
return PixelFormat::B5G6R5_UNORM;
@@ -74,13 +74,13 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
return PixelFormat::R8_UINT;
case Hash(TextureFormat::R8, SINT):
return PixelFormat::R8_SINT;
- case Hash(TextureFormat::R8G8, UNORM):
+ case Hash(TextureFormat::G8R8, UNORM):
return PixelFormat::R8G8_UNORM;
- case Hash(TextureFormat::R8G8, SNORM):
+ case Hash(TextureFormat::G8R8, SNORM):
return PixelFormat::R8G8_SNORM;
- case Hash(TextureFormat::R8G8, UINT):
+ case Hash(TextureFormat::G8R8, UINT):
return PixelFormat::R8G8_UINT;
- case Hash(TextureFormat::R8G8, SINT):
+ case Hash(TextureFormat::G8R8, SINT):
return PixelFormat::R8G8_SINT;
case Hash(TextureFormat::R16G16B16A16, FLOAT):
return PixelFormat::R16G16B16A16_FLOAT;
@@ -136,49 +136,49 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
return PixelFormat::R32_SINT;
case Hash(TextureFormat::E5B9G9R9, FLOAT):
return PixelFormat::E5B9G9R9_FLOAT;
- case Hash(TextureFormat::D32, FLOAT):
+ case Hash(TextureFormat::Z32, FLOAT):
return PixelFormat::D32_FLOAT;
- case Hash(TextureFormat::D16, UNORM):
+ case Hash(TextureFormat::Z16, UNORM):
return PixelFormat::D16_UNORM;
- case Hash(TextureFormat::S8D24, UINT, UNORM, UNORM, UNORM, LINEAR):
+ case Hash(TextureFormat::Z24S8, UINT, UNORM, UNORM, UNORM, LINEAR):
return PixelFormat::S8_UINT_D24_UNORM;
- case Hash(TextureFormat::S8D24, UINT, UNORM, UINT, UINT, LINEAR):
+ case Hash(TextureFormat::Z24S8, UINT, UNORM, UINT, UINT, LINEAR):
return PixelFormat::S8_UINT_D24_UNORM;
- case Hash(TextureFormat::R8G24, UINT, UNORM, UNORM, UNORM, LINEAR):
+ case Hash(TextureFormat::G24R8, UINT, UNORM, UNORM, UNORM, LINEAR):
return PixelFormat::S8_UINT_D24_UNORM;
- case Hash(TextureFormat::D24S8, UNORM, UINT, UINT, UINT, LINEAR):
+ case Hash(TextureFormat::S8Z24, UNORM, UINT, UINT, UINT, LINEAR):
return PixelFormat::D24_UNORM_S8_UINT;
- case Hash(TextureFormat::D32S8, FLOAT, UINT, UNORM, UNORM, LINEAR):
+ case Hash(TextureFormat::Z32_X24S8, FLOAT, UINT, UNORM, UNORM, LINEAR):
return PixelFormat::D32_FLOAT_S8_UINT;
- case Hash(TextureFormat::R32_B24G8, FLOAT, UINT, UNORM, UNORM, LINEAR):
+ case Hash(TextureFormat::R32B24G8, FLOAT, UINT, UNORM, UNORM, LINEAR):
return PixelFormat::D32_FLOAT_S8_UINT;
- case Hash(TextureFormat::BC1_RGBA, UNORM, LINEAR):
+ case Hash(TextureFormat::DXT1, UNORM, LINEAR):
return PixelFormat::BC1_RGBA_UNORM;
- case Hash(TextureFormat::BC1_RGBA, UNORM, SRGB):
+ case Hash(TextureFormat::DXT1, UNORM, SRGB):
return PixelFormat::BC1_RGBA_SRGB;
- case Hash(TextureFormat::BC2, UNORM, LINEAR):
+ case Hash(TextureFormat::DXT23, UNORM, LINEAR):
return PixelFormat::BC2_UNORM;
- case Hash(TextureFormat::BC2, UNORM, SRGB):
+ case Hash(TextureFormat::DXT23, UNORM, SRGB):
return PixelFormat::BC2_SRGB;
- case Hash(TextureFormat::BC3, UNORM, LINEAR):
+ case Hash(TextureFormat::DXT45, UNORM, LINEAR):
return PixelFormat::BC3_UNORM;
- case Hash(TextureFormat::BC3, UNORM, SRGB):
+ case Hash(TextureFormat::DXT45, UNORM, SRGB):
return PixelFormat::BC3_SRGB;
- case Hash(TextureFormat::BC4, UNORM):
+ case Hash(TextureFormat::DXN1, UNORM):
return PixelFormat::BC4_UNORM;
- case Hash(TextureFormat::BC4, SNORM):
+ case Hash(TextureFormat::DXN1, SNORM):
return PixelFormat::BC4_SNORM;
- case Hash(TextureFormat::BC5, UNORM):
+ case Hash(TextureFormat::DXN2, UNORM):
return PixelFormat::BC5_UNORM;
- case Hash(TextureFormat::BC5, SNORM):
+ case Hash(TextureFormat::DXN2, SNORM):
return PixelFormat::BC5_SNORM;
- case Hash(TextureFormat::BC7, UNORM, LINEAR):
+ case Hash(TextureFormat::BC7U, UNORM, LINEAR):
return PixelFormat::BC7_UNORM;
- case Hash(TextureFormat::BC7, UNORM, SRGB):
+ case Hash(TextureFormat::BC7U, UNORM, SRGB):
return PixelFormat::BC7_SRGB;
- case Hash(TextureFormat::BC6H_SFLOAT, FLOAT):
+ case Hash(TextureFormat::BC6H_S16, FLOAT):
return PixelFormat::BC6H_SFLOAT;
- case Hash(TextureFormat::BC6H_UFLOAT, FLOAT):
+ case Hash(TextureFormat::BC6H_U16, FLOAT):
return PixelFormat::BC6H_UFLOAT;
case Hash(TextureFormat::ASTC_2D_4X4, UNORM, LINEAR):
return PixelFormat::ASTC_2D_4X4_UNORM;
@@ -210,6 +210,8 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
return PixelFormat::ASTC_2D_6X6_SRGB;
case Hash(TextureFormat::ASTC_2D_10X6, UNORM, LINEAR):
return PixelFormat::ASTC_2D_10X6_UNORM;
+ case Hash(TextureFormat::ASTC_2D_10X6, UNORM, SRGB):
+ return PixelFormat::ASTC_2D_10X6_SRGB;
case Hash(TextureFormat::ASTC_2D_10X5, UNORM, LINEAR):
return PixelFormat::ASTC_2D_10X5_UNORM;
case Hash(TextureFormat::ASTC_2D_10X5, UNORM, SRGB):
@@ -218,6 +220,10 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
return PixelFormat::ASTC_2D_10X10_UNORM;
case Hash(TextureFormat::ASTC_2D_10X10, UNORM, SRGB):
return PixelFormat::ASTC_2D_10X10_SRGB;
+ case Hash(TextureFormat::ASTC_2D_12X10, UNORM, LINEAR):
+ return PixelFormat::ASTC_2D_12X10_UNORM;
+ case Hash(TextureFormat::ASTC_2D_12X10, UNORM, SRGB):
+ return PixelFormat::ASTC_2D_12X10_SRGB;
case Hash(TextureFormat::ASTC_2D_12X12, UNORM, LINEAR):
return PixelFormat::ASTC_2D_12X12_UNORM;
case Hash(TextureFormat::ASTC_2D_12X12, UNORM, SRGB):
diff --git a/src/video_core/texture_cache/formatter.cpp b/src/video_core/texture_cache/formatter.cpp
index 418890126..6279d8e9e 100644
--- a/src/video_core/texture_cache/formatter.cpp
+++ b/src/video_core/texture_cache/formatter.cpp
@@ -22,6 +22,9 @@ std::string Name(const ImageBase& image) {
const u32 num_layers = image.info.resources.layers;
const u32 num_levels = image.info.resources.levels;
std::string resource;
+ if (image.info.num_samples > 1) {
+ resource += fmt::format(":{}xMSAA", image.info.num_samples);
+ }
if (num_layers > 1) {
resource += fmt::format(":L{}", num_layers);
}
@@ -43,7 +46,7 @@ std::string Name(const ImageBase& image) {
return "Invalid";
}
-std::string Name(const ImageViewBase& image_view) {
+std::string Name(const ImageViewBase& image_view, GPUVAddr addr) {
const u32 width = image_view.size.width;
const u32 height = image_view.size.height;
const u32 depth = image_view.size.depth;
@@ -53,23 +56,25 @@ std::string Name(const ImageViewBase& image_view) {
const std::string level = num_levels > 1 ? fmt::format(":{}", num_levels) : "";
switch (image_view.type) {
case ImageViewType::e1D:
- return fmt::format("ImageView 1D {}{}", width, level);
+ return fmt::format("ImageView 1D 0x{:X} {}{}", addr, width, level);
case ImageViewType::e2D:
- return fmt::format("ImageView 2D {}x{}{}", width, height, level);
+ return fmt::format("ImageView 2D 0x{:X} {}x{}{}", addr, width, height, level);
case ImageViewType::Cube:
- return fmt::format("ImageView Cube {}x{}{}", width, height, level);
+ return fmt::format("ImageView Cube 0x{:X} {}x{}{}", addr, width, height, level);
case ImageViewType::e3D:
- return fmt::format("ImageView 3D {}x{}x{}{}", width, height, depth, level);
+ return fmt::format("ImageView 3D 0x{:X} {}x{}x{}{}", addr, width, height, depth, level);
case ImageViewType::e1DArray:
- return fmt::format("ImageView 1DArray {}{}|{}", width, level, num_layers);
+ return fmt::format("ImageView 1DArray 0x{:X} {}{}|{}", addr, width, level, num_layers);
case ImageViewType::e2DArray:
- return fmt::format("ImageView 2DArray {}x{}{}|{}", width, height, level, num_layers);
+ return fmt::format("ImageView 2DArray 0x{:X} {}x{}{}|{}", addr, width, height, level,
+ num_layers);
case ImageViewType::CubeArray:
- return fmt::format("ImageView CubeArray {}x{}{}|{}", width, height, level, num_layers);
+ return fmt::format("ImageView CubeArray 0x{:X} {}x{}{}|{}", addr, width, height, level,
+ num_layers);
case ImageViewType::Rect:
- return fmt::format("ImageView Rect {}x{}{}", width, height, level);
+ return fmt::format("ImageView Rect 0x{:X} {}x{}{}", addr, width, height, level);
case ImageViewType::Buffer:
- return fmt::format("BufferView {}", width);
+ return fmt::format("BufferView 0x{:X} {}", addr, width);
}
return "Invalid";
}
diff --git a/src/video_core/texture_cache/formatter.h b/src/video_core/texture_cache/formatter.h
index f1f0a057b..9ee57a076 100644
--- a/src/video_core/texture_cache/formatter.h
+++ b/src/video_core/texture_cache/formatter.h
@@ -179,6 +179,8 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str
return "ASTC_2D_6X6_SRGB";
case PixelFormat::ASTC_2D_10X6_UNORM:
return "ASTC_2D_10X6_UNORM";
+ case PixelFormat::ASTC_2D_10X6_SRGB:
+ return "ASTC_2D_10X6_SRGB";
case PixelFormat::ASTC_2D_10X5_UNORM:
return "ASTC_2D_10X5_UNORM";
case PixelFormat::ASTC_2D_10X5_SRGB:
@@ -187,6 +189,10 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str
return "ASTC_2D_10X10_UNORM";
case PixelFormat::ASTC_2D_10X10_SRGB:
return "ASTC_2D_10X10_SRGB";
+ case PixelFormat::ASTC_2D_12X10_UNORM:
+ return "ASTC_2D_12X10_UNORM";
+ case PixelFormat::ASTC_2D_12X10_SRGB:
+ return "ASTC_2D_12X10_SRGB";
case PixelFormat::ASTC_2D_12X12_UNORM:
return "ASTC_2D_12X12_UNORM";
case PixelFormat::ASTC_2D_12X12_SRGB:
@@ -268,7 +274,7 @@ struct RenderTargets;
[[nodiscard]] std::string Name(const ImageBase& image);
-[[nodiscard]] std::string Name(const ImageViewBase& image_view);
+[[nodiscard]] std::string Name(const ImageViewBase& image_view, GPUVAddr addr);
[[nodiscard]] std::string Name(const RenderTargets& render_targets);
diff --git a/src/video_core/texture_cache/image_base.cpp b/src/video_core/texture_cache/image_base.cpp
index 91512022f..d79594ce5 100644
--- a/src/video_core/texture_cache/image_base.cpp
+++ b/src/video_core/texture_cache/image_base.cpp
@@ -155,7 +155,7 @@ void ImageBase::CheckAliasState() {
flags &= ~ImageFlagBits::Alias;
}
-void AddImageAlias(ImageBase& lhs, ImageBase& rhs, ImageId lhs_id, ImageId rhs_id) {
+bool AddImageAlias(ImageBase& lhs, ImageBase& rhs, ImageId lhs_id, ImageId rhs_id) {
static constexpr auto OPTIONS = RelaxedOptions::Size | RelaxedOptions::Format;
ASSERT(lhs.info.type == rhs.info.type);
std::optional<SubresourceBase> base;
@@ -169,7 +169,7 @@ void AddImageAlias(ImageBase& lhs, ImageBase& rhs, ImageId lhs_id, ImageId rhs_i
}
if (!base) {
LOG_ERROR(HW_GPU, "Image alias should have been flipped");
- return;
+ return false;
}
const PixelFormat lhs_format = lhs.info.format;
const PixelFormat rhs_format = rhs.info.format;
@@ -248,12 +248,13 @@ void AddImageAlias(ImageBase& lhs, ImageBase& rhs, ImageId lhs_id, ImageId rhs_i
}
ASSERT(lhs_alias.copies.empty() == rhs_alias.copies.empty());
if (lhs_alias.copies.empty()) {
- return;
+ return false;
}
lhs.aliased_images.push_back(std::move(lhs_alias));
rhs.aliased_images.push_back(std::move(rhs_alias));
lhs.flags &= ~ImageFlagBits::IsRescalable;
rhs.flags &= ~ImageFlagBits::IsRescalable;
+ return true;
}
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/image_base.h b/src/video_core/texture_cache/image_base.h
index 620565684..55d49d017 100644
--- a/src/video_core/texture_cache/image_base.h
+++ b/src/video_core/texture_cache/image_base.h
@@ -6,6 +6,7 @@
#include <array>
#include <optional>
#include <vector>
+#include <boost/container/small_vector.hpp>
#include "common/common_funcs.h"
#include "common/common_types.h"
@@ -25,7 +26,7 @@ enum class ImageFlagBits : u32 {
Registered = 1 << 6, ///< True when the image is registered
Picked = 1 << 7, ///< Temporary flag to mark the image as picked
Remapped = 1 << 8, ///< Image has been remapped.
- Sparse = 1 << 9, ///< Image has non continous submemory.
+ Sparse = 1 << 9, ///< Image has non continuous submemory.
// Garbage Collection Flags
BadOverlap = 1 << 10, ///< This image overlaps other but doesn't fit, has higher
@@ -38,6 +39,9 @@ enum class ImageFlagBits : u32 {
Rescaled = 1 << 13,
CheckingRescalable = 1 << 14,
IsRescalable = 1 << 15,
+
+ AsynchronousDecode = 1 << 16,
+ IsDecoding = 1 << 17, ///< Is currently being decoded asynchornously.
};
DECLARE_ENUM_FLAG_OPERATORS(ImageFlagBits)
@@ -105,8 +109,8 @@ struct ImageBase {
std::vector<ImageViewInfo> image_view_infos;
std::vector<ImageViewId> image_view_ids;
- std::vector<u32> slice_offsets;
- std::vector<SubresourceBase> slice_subresources;
+ boost::container::small_vector<u32, 16> slice_offsets;
+ boost::container::small_vector<SubresourceBase, 16> slice_subresources;
std::vector<AliasedImage> aliased_images;
std::vector<ImageId> overlapping_images;
@@ -139,6 +143,6 @@ struct ImageAllocBase {
std::vector<ImageId> images;
};
-void AddImageAlias(ImageBase& lhs, ImageBase& rhs, ImageId lhs_id, ImageId rhs_id);
+bool AddImageAlias(ImageBase& lhs, ImageBase& rhs, ImageId lhs_id, ImageId rhs_id);
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp
index 852ec2519..b72788c6d 100644
--- a/src/video_core/texture_cache/image_info.cpp
+++ b/src/video_core/texture_cache/image_info.cpp
@@ -4,6 +4,7 @@
#include <fmt/format.h>
#include "common/assert.h"
+#include "common/settings.h"
#include "video_core/surface.h"
#include "video_core/texture_cache/format_lookup_table.h"
#include "video_core/texture_cache/image_info.h"
@@ -14,13 +15,19 @@
namespace VideoCommon {
+using Tegra::Engines::Fermi2D;
using Tegra::Engines::Maxwell3D;
using Tegra::Texture::TextureType;
using Tegra::Texture::TICEntry;
using VideoCore::Surface::PixelFormat;
using VideoCore::Surface::SurfaceType;
+constexpr u32 RescaleHeightThreshold = 288;
+constexpr u32 DownscaleHeightThreshold = 512;
+
ImageInfo::ImageInfo(const TICEntry& config) noexcept {
+ forced_flushed = config.IsPitchLinear() && !Settings::values.use_reactive_flushing.GetValue();
+ dma_downloaded = forced_flushed;
format = PixelFormatFromTextureInfo(config.format, config.r_type, config.g_type, config.b_type,
config.a_type, config.srgb_conversion);
num_samples = NumSamples(config.msaa_mode);
@@ -100,96 +107,113 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
ASSERT_MSG(false, "Invalid texture_type={}", static_cast<int>(config.texture_type.Value()));
break;
}
+ if (num_samples > 1) {
+ size.width *= NumSamplesX(config.msaa_mode);
+ size.height *= NumSamplesY(config.msaa_mode);
+ }
if (type != ImageType::Linear) {
// FIXME: Call this without passing *this
layer_stride = CalculateLayerStride(*this);
maybe_unaligned_layer_stride = CalculateLayerSize(*this);
rescaleable &= (block.depth == 0) && resources.levels == 1;
- rescaleable &= size.height > 256 || GetFormatType(format) != SurfaceType::ColorTexture;
- downscaleable = size.height > 512;
+ rescaleable &= size.height > RescaleHeightThreshold ||
+ GetFormatType(format) != SurfaceType::ColorTexture;
+ downscaleable = size.height > DownscaleHeightThreshold;
}
}
-ImageInfo::ImageInfo(const Maxwell3D::Regs& regs, size_t index) noexcept {
- const auto& rt = regs.rt[index];
- format = VideoCore::Surface::PixelFormatFromRenderTargetFormat(rt.format);
+ImageInfo::ImageInfo(const Maxwell3D::Regs::RenderTargetConfig& ct,
+ Tegra::Texture::MsaaMode msaa_mode) noexcept {
+ forced_flushed =
+ ct.tile_mode.is_pitch_linear && !Settings::values.use_reactive_flushing.GetValue();
+ dma_downloaded = forced_flushed;
+ format = VideoCore::Surface::PixelFormatFromRenderTargetFormat(ct.format);
rescaleable = false;
- if (rt.tile_mode.is_pitch_linear) {
- ASSERT(rt.tile_mode.dim_control ==
- Maxwell3D::Regs::TileMode::DimensionControl::DepthDefinesArray);
+ if (ct.tile_mode.is_pitch_linear) {
+ ASSERT(ct.tile_mode.dim_control ==
+ Maxwell3D::Regs::TileMode::DimensionControl::DefineArraySize);
type = ImageType::Linear;
- pitch = rt.width;
+ pitch = ct.width;
size = Extent3D{
.width = pitch / BytesPerBlock(format),
- .height = rt.height,
+ .height = ct.height,
.depth = 1,
};
return;
}
- size.width = rt.width;
- size.height = rt.height;
- layer_stride = rt.array_pitch * 4;
+ size.width = ct.width;
+ size.height = ct.height;
+ layer_stride = ct.array_pitch * 4;
maybe_unaligned_layer_stride = layer_stride;
- num_samples = NumSamples(regs.anti_alias_samples_mode);
+ num_samples = NumSamples(msaa_mode);
block = Extent3D{
- .width = rt.tile_mode.block_width,
- .height = rt.tile_mode.block_height,
- .depth = rt.tile_mode.block_depth,
+ .width = ct.tile_mode.block_width,
+ .height = ct.tile_mode.block_height,
+ .depth = ct.tile_mode.block_depth,
};
- if (rt.tile_mode.dim_control ==
- Maxwell3D::Regs::TileMode::DimensionControl::DepthDefinesDepth) {
+ if (ct.tile_mode.dim_control == Maxwell3D::Regs::TileMode::DimensionControl::DefineDepthSize) {
type = ImageType::e3D;
- size.depth = rt.depth;
+ size.depth = ct.depth;
} else {
rescaleable = block.depth == 0;
- rescaleable &= size.height > 256;
- downscaleable = size.height > 512;
+ rescaleable &= size.height > RescaleHeightThreshold;
+ downscaleable = size.height > DownscaleHeightThreshold;
type = ImageType::e2D;
- resources.layers = rt.depth;
+ resources.layers = ct.depth;
}
}
-ImageInfo::ImageInfo(const Tegra::Engines::Maxwell3D::Regs& regs) noexcept {
- format = VideoCore::Surface::PixelFormatFromDepthFormat(regs.zeta.format);
- size.width = regs.zeta_size.width;
- size.height = regs.zeta_size.height;
+ImageInfo::ImageInfo(const Maxwell3D::Regs::Zeta& zt, const Maxwell3D::Regs::ZetaSize& zt_size,
+ Tegra::Texture::MsaaMode msaa_mode) noexcept {
+ forced_flushed =
+ zt.tile_mode.is_pitch_linear && !Settings::values.use_reactive_flushing.GetValue();
+ dma_downloaded = forced_flushed;
+ format = VideoCore::Surface::PixelFormatFromDepthFormat(zt.format);
+ size.width = zt_size.width;
+ size.height = zt_size.height;
rescaleable = false;
resources.levels = 1;
- layer_stride = regs.zeta.array_pitch * 4;
+ layer_stride = zt.array_pitch * 4;
maybe_unaligned_layer_stride = layer_stride;
- num_samples = NumSamples(regs.anti_alias_samples_mode);
+ num_samples = NumSamples(msaa_mode);
block = Extent3D{
- .width = regs.zeta.tile_mode.block_width,
- .height = regs.zeta.tile_mode.block_height,
- .depth = regs.zeta.tile_mode.block_depth,
+ .width = zt.tile_mode.block_width,
+ .height = zt.tile_mode.block_height,
+ .depth = zt.tile_mode.block_depth,
};
- if (regs.zeta.tile_mode.is_pitch_linear) {
- ASSERT(regs.zeta.tile_mode.dim_control ==
- Maxwell3D::Regs::TileMode::DimensionControl::DepthDefinesArray);
+ if (zt.tile_mode.is_pitch_linear) {
+ ASSERT(zt.tile_mode.dim_control ==
+ Maxwell3D::Regs::TileMode::DimensionControl::DefineArraySize);
type = ImageType::Linear;
pitch = size.width * BytesPerBlock(format);
- } else if (regs.zeta.tile_mode.dim_control ==
- Maxwell3D::Regs::TileMode::DimensionControl::DepthDefinesDepth) {
- ASSERT(regs.zeta.tile_mode.is_pitch_linear == 0);
- ASSERT(regs.zeta_size.dim_control ==
- Maxwell3D::Regs::ZetaSize::DimensionControl::ArraySizeOne);
+ } else if (zt.tile_mode.dim_control ==
+ Maxwell3D::Regs::TileMode::DimensionControl::DefineDepthSize) {
+ ASSERT(zt_size.dim_control == Maxwell3D::Regs::ZetaSize::DimensionControl::ArraySizeIsOne);
type = ImageType::e3D;
- size.depth = regs.zeta_size.depth;
+ size.depth = zt_size.depth;
} else {
- ASSERT(regs.zeta_size.dim_control ==
- Maxwell3D::Regs::ZetaSize::DimensionControl::DepthDefinesArray);
rescaleable = block.depth == 0;
downscaleable = size.height > 512;
type = ImageType::e2D;
- resources.layers = regs.zeta_size.depth;
+ switch (zt_size.dim_control) {
+ case Maxwell3D::Regs::ZetaSize::DimensionControl::DefineArraySize:
+ resources.layers = zt_size.depth;
+ break;
+ case Maxwell3D::Regs::ZetaSize::DimensionControl::ArraySizeIsOne:
+ resources.layers = 1;
+ break;
+ }
}
}
-ImageInfo::ImageInfo(const Tegra::Engines::Fermi2D::Surface& config) noexcept {
+ImageInfo::ImageInfo(const Fermi2D::Surface& config) noexcept {
UNIMPLEMENTED_IF_MSG(config.layer != 0, "Surface layer is not zero");
+ forced_flushed = config.linear == Fermi2D::MemoryLayout::Pitch &&
+ !Settings::values.use_reactive_flushing.GetValue();
+ dma_downloaded = forced_flushed;
format = VideoCore::Surface::PixelFormatFromRenderTargetFormat(config.format);
rescaleable = false;
- if (config.linear == Tegra::Engines::Fermi2D::MemoryLayout::Pitch) {
+ if (config.linear == Fermi2D::MemoryLayout::Pitch) {
type = ImageType::Linear;
size = Extent3D{
.width = config.pitch / VideoCore::Surface::BytesPerBlock(format),
@@ -212,10 +236,51 @@ ImageInfo::ImageInfo(const Tegra::Engines::Fermi2D::Surface& config) noexcept {
.height = config.height,
.depth = 1,
};
- rescaleable = block.depth == 0;
- rescaleable &= size.height > 256;
- downscaleable = size.height > 512;
+ rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
+ downscaleable = size.height > DownscaleHeightThreshold;
+ }
+}
+
+static PixelFormat ByteSizeToFormat(u32 bytes_per_pixel) {
+ switch (bytes_per_pixel) {
+ case 1:
+ return PixelFormat::R8_UINT;
+ case 2:
+ return PixelFormat::R8G8_UINT;
+ case 4:
+ return PixelFormat::A8B8G8R8_UINT;
+ case 8:
+ return PixelFormat::R16G16B16A16_UINT;
+ case 16:
+ return PixelFormat::R32G32B32A32_UINT;
+ default:
+ UNIMPLEMENTED();
+ return PixelFormat::Invalid;
}
}
+ImageInfo::ImageInfo(const Tegra::DMA::ImageOperand& config) noexcept {
+ const u32 bytes_per_pixel = config.bytes_per_pixel;
+ format = ByteSizeToFormat(bytes_per_pixel);
+ type = config.params.block_size.depth > 0 ? ImageType::e3D : ImageType::e2D;
+ num_samples = 1;
+ block = Extent3D{
+ .width = config.params.block_size.width,
+ .height = config.params.block_size.height,
+ .depth = config.params.block_size.depth,
+ };
+ size = Extent3D{
+ .width = config.params.width,
+ .height = config.params.height,
+ .depth = config.params.depth,
+ };
+ tile_width_spacing = 0;
+ resources.levels = 1;
+ resources.layers = 1;
+ layer_stride = CalculateLayerStride(*this);
+ maybe_unaligned_layer_stride = CalculateLayerSize(*this);
+ rescaleable = block.depth == 0 && size.height > RescaleHeightThreshold;
+ downscaleable = size.height > DownscaleHeightThreshold;
+}
+
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/image_info.h b/src/video_core/texture_cache/image_info.h
index 93755e15e..8a4cb0cbd 100644
--- a/src/video_core/texture_cache/image_info.h
+++ b/src/video_core/texture_cache/image_info.h
@@ -5,6 +5,7 @@
#include "video_core/engines/fermi_2d.h"
#include "video_core/engines/maxwell_3d.h"
+#include "video_core/engines/maxwell_dma.h"
#include "video_core/surface.h"
#include "video_core/texture_cache/types.h"
@@ -16,9 +17,13 @@ using VideoCore::Surface::PixelFormat;
struct ImageInfo {
ImageInfo() = default;
explicit ImageInfo(const TICEntry& config) noexcept;
- explicit ImageInfo(const Tegra::Engines::Maxwell3D::Regs& regs, size_t index) noexcept;
- explicit ImageInfo(const Tegra::Engines::Maxwell3D::Regs& regs) noexcept;
+ explicit ImageInfo(const Tegra::Engines::Maxwell3D::Regs::RenderTargetConfig& ct,
+ Tegra::Texture::MsaaMode msaa_mode) noexcept;
+ explicit ImageInfo(const Tegra::Engines::Maxwell3D::Regs::Zeta& zt,
+ const Tegra::Engines::Maxwell3D::Regs::ZetaSize& zt_size,
+ Tegra::Texture::MsaaMode msaa_mode) noexcept;
explicit ImageInfo(const Tegra::Engines::Fermi2D::Surface& config) noexcept;
+ explicit ImageInfo(const Tegra::DMA::ImageOperand& config) noexcept;
PixelFormat format = PixelFormat::Invalid;
ImageType type = ImageType::e1D;
@@ -34,6 +39,8 @@ struct ImageInfo {
u32 tile_width_spacing = 0;
bool rescaleable = false;
bool downscaleable = false;
+ bool forced_flushed = false;
+ bool dma_downloaded = false;
};
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/image_view_base.cpp b/src/video_core/texture_cache/image_view_base.cpp
index 04fb84bfa..0c5f4450d 100644
--- a/src/video_core/texture_cache/image_view_base.cpp
+++ b/src/video_core/texture_cache/image_view_base.cpp
@@ -4,7 +4,6 @@
#include <algorithm>
#include "common/assert.h"
-#include "common/settings.h"
#include "video_core/compatible_formats.h"
#include "video_core/surface.h"
#include "video_core/texture_cache/formatter.h"
@@ -16,8 +15,8 @@
namespace VideoCommon {
ImageViewBase::ImageViewBase(const ImageViewInfo& info, const ImageInfo& image_info,
- ImageId image_id_)
- : image_id{image_id_}, format{info.format}, type{info.type}, range{info.range},
+ ImageId image_id_, GPUVAddr addr)
+ : image_id{image_id_}, gpu_addr{addr}, format{info.format}, type{info.type}, range{info.range},
size{
.width = std::max(image_info.size.width >> range.base.level, 1u),
.height = std::max(image_info.size.height >> range.base.level, 1u),
@@ -26,8 +25,7 @@ ImageViewBase::ImageViewBase(const ImageViewInfo& info, const ImageInfo& image_i
ASSERT_MSG(VideoCore::Surface::IsViewCompatible(image_info.format, info.format, false, true),
"Image view format {} is incompatible with image format {}", info.format,
image_info.format);
- const bool is_async = Settings::values.use_asynchronous_gpu_emulation.GetValue();
- if (image_info.type == ImageType::Linear && is_async) {
+ if (image_info.forced_flushed) {
flags |= ImageViewFlagBits::PreemtiveDownload;
}
if (image_info.type == ImageType::e3D && info.type != ImageViewType::e3D) {
@@ -35,8 +33,8 @@ ImageViewBase::ImageViewBase(const ImageViewInfo& info, const ImageInfo& image_i
}
}
-ImageViewBase::ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_info)
- : image_id{NULL_IMAGE_ID}, format{info.format}, type{ImageViewType::Buffer},
+ImageViewBase::ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_info, GPUVAddr addr)
+ : image_id{NULL_IMAGE_ID}, gpu_addr{addr}, format{info.format}, type{ImageViewType::Buffer},
size{
.width = info.size.width,
.height = 1,
@@ -47,4 +45,56 @@ ImageViewBase::ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_in
ImageViewBase::ImageViewBase(const NullImageViewParams&) : image_id{NULL_IMAGE_ID} {}
+bool ImageViewBase::SupportsAnisotropy() const noexcept {
+ const bool has_mips = range.extent.levels > 1;
+ const bool is_2d = type == ImageViewType::e2D || type == ImageViewType::e2DArray;
+ if (!has_mips || !is_2d) {
+ return false;
+ }
+
+ switch (format) {
+ case PixelFormat::R8_UNORM:
+ case PixelFormat::R8_SNORM:
+ case PixelFormat::R8_SINT:
+ case PixelFormat::R8_UINT:
+ case PixelFormat::BC4_UNORM:
+ case PixelFormat::BC4_SNORM:
+ case PixelFormat::BC5_UNORM:
+ case PixelFormat::BC5_SNORM:
+ case PixelFormat::R32G32_FLOAT:
+ case PixelFormat::R32G32_SINT:
+ case PixelFormat::R32_FLOAT:
+ case PixelFormat::R16_FLOAT:
+ case PixelFormat::R16_UNORM:
+ case PixelFormat::R16_SNORM:
+ case PixelFormat::R16_UINT:
+ case PixelFormat::R16_SINT:
+ case PixelFormat::R16G16_UNORM:
+ case PixelFormat::R16G16_FLOAT:
+ case PixelFormat::R16G16_UINT:
+ case PixelFormat::R16G16_SINT:
+ case PixelFormat::R16G16_SNORM:
+ case PixelFormat::R8G8_UNORM:
+ case PixelFormat::R8G8_SNORM:
+ case PixelFormat::R8G8_SINT:
+ case PixelFormat::R8G8_UINT:
+ case PixelFormat::R32G32_UINT:
+ case PixelFormat::R32_UINT:
+ case PixelFormat::R32_SINT:
+ case PixelFormat::G4R4_UNORM:
+ // Depth formats
+ case PixelFormat::D32_FLOAT:
+ case PixelFormat::D16_UNORM:
+ // Stencil formats
+ case PixelFormat::S8_UINT:
+ // DepthStencil formats
+ case PixelFormat::D24_UNORM_S8_UINT:
+ case PixelFormat::S8_UINT_D24_UNORM:
+ case PixelFormat::D32_FLOAT_S8_UINT:
+ return false;
+ default:
+ return true;
+ }
+}
+
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/image_view_base.h b/src/video_core/texture_cache/image_view_base.h
index 69c9776e7..87549ffff 100644
--- a/src/video_core/texture_cache/image_view_base.h
+++ b/src/video_core/texture_cache/image_view_base.h
@@ -24,16 +24,19 @@ enum class ImageViewFlagBits : u16 {
DECLARE_ENUM_FLAG_OPERATORS(ImageViewFlagBits)
struct ImageViewBase {
- explicit ImageViewBase(const ImageViewInfo& info, const ImageInfo& image_info,
- ImageId image_id);
- explicit ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_info);
+ explicit ImageViewBase(const ImageViewInfo& info, const ImageInfo& image_info, ImageId image_id,
+ GPUVAddr addr);
+ explicit ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_info, GPUVAddr addr);
explicit ImageViewBase(const NullImageViewParams&);
[[nodiscard]] bool IsBuffer() const noexcept {
return type == ImageViewType::Buffer;
}
+ [[nodiscard]] bool SupportsAnisotropy() const noexcept;
+
ImageId image_id{};
+ GPUVAddr gpu_addr = 0;
PixelFormat format{};
ImageViewType type{};
SubresourceRange range;
diff --git a/src/video_core/texture_cache/samples_helper.h b/src/video_core/texture_cache/samples_helper.h
index d552bccf0..203ac1b11 100644
--- a/src/video_core/texture_cache/samples_helper.h
+++ b/src/video_core/texture_cache/samples_helper.h
@@ -51,4 +51,48 @@ namespace VideoCommon {
return 1;
}
+[[nodiscard]] inline int NumSamplesX(Tegra::Texture::MsaaMode msaa_mode) {
+ using Tegra::Texture::MsaaMode;
+ switch (msaa_mode) {
+ case MsaaMode::Msaa1x1:
+ return 1;
+ case MsaaMode::Msaa2x1:
+ case MsaaMode::Msaa2x1_D3D:
+ case MsaaMode::Msaa2x2:
+ case MsaaMode::Msaa2x2_VC4:
+ case MsaaMode::Msaa2x2_VC12:
+ return 2;
+ case MsaaMode::Msaa4x2:
+ case MsaaMode::Msaa4x2_D3D:
+ case MsaaMode::Msaa4x2_VC8:
+ case MsaaMode::Msaa4x2_VC24:
+ case MsaaMode::Msaa4x4:
+ return 4;
+ }
+ ASSERT_MSG(false, "Invalid MSAA mode={}", static_cast<int>(msaa_mode));
+ return 1;
+}
+
+[[nodiscard]] inline int NumSamplesY(Tegra::Texture::MsaaMode msaa_mode) {
+ using Tegra::Texture::MsaaMode;
+ switch (msaa_mode) {
+ case MsaaMode::Msaa1x1:
+ case MsaaMode::Msaa2x1:
+ case MsaaMode::Msaa2x1_D3D:
+ return 1;
+ case MsaaMode::Msaa2x2:
+ case MsaaMode::Msaa2x2_VC4:
+ case MsaaMode::Msaa2x2_VC12:
+ case MsaaMode::Msaa4x2:
+ case MsaaMode::Msaa4x2_D3D:
+ case MsaaMode::Msaa4x2_VC8:
+ case MsaaMode::Msaa4x2_VC24:
+ return 2;
+ case MsaaMode::Msaa4x4:
+ return 4;
+ }
+ ASSERT_MSG(false, "Invalid MSAA mode={}", static_cast<int>(msaa_mode));
+ return 1;
+}
+
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/slot_vector.h b/src/video_core/texture_cache/slot_vector.h
index 1e2aad76a..9df6a2903 100644
--- a/src/video_core/texture_cache/slot_vector.h
+++ b/src/video_core/texture_cache/slot_vector.h
@@ -29,7 +29,7 @@ struct SlotId {
};
template <class T>
-requires std::is_nothrow_move_assignable_v<T> && std::is_nothrow_move_constructible_v<T>
+ requires std::is_nothrow_move_assignable_v<T> && std::is_nothrow_move_constructible_v<T>
class SlotVector {
public:
class Iterator {
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 1b01990a4..d3f03a995 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -1,9 +1,10 @@
-// SPDX-FileCopyrightText: 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <unordered_set>
+#include <boost/container/small_vector.hpp>
#include "common/alignment.h"
#include "common/settings.h"
@@ -17,15 +18,10 @@
namespace VideoCommon {
-using Tegra::Texture::SwizzleSource;
-using Tegra::Texture::TextureType;
using Tegra::Texture::TICEntry;
using Tegra::Texture::TSCEntry;
using VideoCore::Surface::GetFormatType;
-using VideoCore::Surface::IsCopyCompatible;
using VideoCore::Surface::PixelFormat;
-using VideoCore::Surface::PixelFormatFromDepthFormat;
-using VideoCore::Surface::PixelFormatFromRenderTargetFormat;
using VideoCore::Surface::SurfaceType;
using namespace Common::Literals;
@@ -53,8 +49,8 @@ TextureCache<P>::TextureCache(Runtime& runtime_, VideoCore::RasterizerInterface&
if constexpr (HAS_DEVICE_MEMORY_INFO) {
const s64 device_memory = static_cast<s64>(runtime.GetDeviceLocalMemory());
- const s64 min_spacing_expected = device_memory - 1_GiB - 512_MiB;
- const s64 min_spacing_critical = device_memory - 1_GiB;
+ const s64 min_spacing_expected = device_memory - 1_GiB;
+ const s64 min_spacing_critical = device_memory - 512_MiB;
const s64 mem_threshold = std::min(device_memory, TARGET_THRESHOLD);
const s64 min_vacancy_expected = (6 * mem_threshold) / 10;
const s64 min_vacancy_critical = (3 * mem_threshold) / 10;
@@ -85,10 +81,17 @@ void TextureCache<P>::RunGarbageCollector() {
}
--num_iterations;
auto& image = slot_images[image_id];
+ if (True(image.flags & ImageFlagBits::IsDecoding)) {
+ // This image is still being decoded, deleting it will invalidate the slot
+ // used by the async decoder thread.
+ return false;
+ }
+ if (!aggressive_mode && True(image.flags & ImageFlagBits::CostlyLoad)) {
+ return false;
+ }
const bool must_download =
image.IsSafeDownload() && False(image.flags & ImageFlagBits::BadOverlap);
- if (!high_priority_mode &&
- (must_download || True(image.flags & ImageFlagBits::CostlyLoad))) {
+ if (!high_priority_mode && must_download) {
return false;
}
if (must_download) {
@@ -133,9 +136,17 @@ void TextureCache<P>::TickFrame() {
sentenced_images.Tick();
sentenced_framebuffers.Tick();
sentenced_image_view.Tick();
+ TickAsyncDecode();
+
runtime.TickFrame();
- critical_gc = 0;
++frame_tick;
+
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ for (auto& buffer : async_buffers_death_ring) {
+ runtime.FreeDeferredStagingBuffer(buffer);
+ }
+ async_buffers_death_ring.clear();
+ }
}
template <class P>
@@ -174,31 +185,91 @@ void TextureCache<P>::FillComputeImageViews(std::span<ImageViewInOut> views) {
}
template <class P>
+void TextureCache<P>::CheckFeedbackLoop(std::span<const ImageViewInOut> views) {
+ if (!Settings::values.barrier_feedback_loops.GetValue()) {
+ return;
+ }
+
+ const bool requires_barrier = [&] {
+ for (const auto& view : views) {
+ if (!view.id) {
+ continue;
+ }
+ auto& image_view = slot_image_views[view.id];
+
+ // Check color targets
+ for (const auto& ct_view_id : render_targets.color_buffer_ids) {
+ if (ct_view_id) {
+ auto& ct_view = slot_image_views[ct_view_id];
+ if (image_view.image_id == ct_view.image_id) {
+ return true;
+ }
+ }
+ }
+
+ // Check zeta target
+ if (render_targets.depth_buffer_id) {
+ auto& zt_view = slot_image_views[render_targets.depth_buffer_id];
+ if (image_view.image_id == zt_view.image_id) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }();
+
+ if (requires_barrier) {
+ runtime.BarrierFeedbackLoop();
+ }
+}
+
+template <class P>
typename P::Sampler* TextureCache<P>::GetGraphicsSampler(u32 index) {
+ return &slot_samplers[GetGraphicsSamplerId(index)];
+}
+
+template <class P>
+typename P::Sampler* TextureCache<P>::GetComputeSampler(u32 index) {
+ return &slot_samplers[GetComputeSamplerId(index)];
+}
+
+template <class P>
+SamplerId TextureCache<P>::GetGraphicsSamplerId(u32 index) {
if (index > channel_state->graphics_sampler_table.Limit()) {
LOG_DEBUG(HW_GPU, "Invalid sampler index={}", index);
- return &slot_samplers[NULL_SAMPLER_ID];
+ return NULL_SAMPLER_ID;
}
const auto [descriptor, is_new] = channel_state->graphics_sampler_table.Read(index);
SamplerId& id = channel_state->graphics_sampler_ids[index];
if (is_new) {
id = FindSampler(descriptor);
}
- return &slot_samplers[id];
+ return id;
}
template <class P>
-typename P::Sampler* TextureCache<P>::GetComputeSampler(u32 index) {
+SamplerId TextureCache<P>::GetComputeSamplerId(u32 index) {
if (index > channel_state->compute_sampler_table.Limit()) {
LOG_DEBUG(HW_GPU, "Invalid sampler index={}", index);
- return &slot_samplers[NULL_SAMPLER_ID];
+ return NULL_SAMPLER_ID;
}
const auto [descriptor, is_new] = channel_state->compute_sampler_table.Read(index);
SamplerId& id = channel_state->compute_sampler_ids[index];
if (is_new) {
id = FindSampler(descriptor);
}
- return &slot_samplers[id];
+ return id;
+}
+
+template <class P>
+const typename P::Sampler& TextureCache<P>::GetSampler(SamplerId id) const noexcept {
+ return slot_samplers[id];
+}
+
+template <class P>
+typename P::Sampler& TextureCache<P>::GetSampler(SamplerId id) noexcept {
+ return slot_samplers[id];
}
template <class P>
@@ -233,7 +304,7 @@ void TextureCache<P>::SynchronizeComputeDescriptors() {
}
template <class P>
-bool TextureCache<P>::RescaleRenderTargets(bool is_clear) {
+bool TextureCache<P>::RescaleRenderTargets() {
auto& flags = maxwell3d->dirty.flags;
u32 scale_rating = 0;
bool rescaled = false;
@@ -271,13 +342,13 @@ bool TextureCache<P>::RescaleRenderTargets(bool is_clear) {
ImageViewId& color_buffer_id = render_targets.color_buffer_ids[index];
if (flags[Dirty::ColorBuffer0 + index] || force) {
flags[Dirty::ColorBuffer0 + index] = false;
- BindRenderTarget(&color_buffer_id, FindColorBuffer(index, is_clear));
+ BindRenderTarget(&color_buffer_id, FindColorBuffer(index));
}
check_rescale(color_buffer_id, tmp_color_images[index]);
}
if (flags[Dirty::ZetaBuffer] || force) {
flags[Dirty::ZetaBuffer] = false;
- BindRenderTarget(&render_targets.depth_buffer_id, FindDepthBuffer(is_clear));
+ BindRenderTarget(&render_targets.depth_buffer_id, FindDepthBuffer());
}
check_rescale(render_targets.depth_buffer_id, tmp_depth_image);
@@ -342,7 +413,7 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) {
return;
}
- const bool rescaled = RescaleRenderTargets(is_clear);
+ const bool rescaled = RescaleRenderTargets();
if (is_rescaling != rescaled) {
flags[Dirty::RescaleViewports] = true;
flags[Dirty::RescaleScissors] = true;
@@ -455,7 +526,7 @@ void TextureCache<P>::WriteMemory(VAddr cpu_addr, size_t size) {
template <class P>
void TextureCache<P>::DownloadMemory(VAddr cpu_addr, size_t size) {
- std::vector<ImageId> images;
+ boost::container::small_vector<ImageId, 16> images;
ForEachImageInRegion(cpu_addr, size, [&images](ImageId image_id, ImageBase& image) {
if (!image.IsSafeDownload()) {
return;
@@ -481,8 +552,34 @@ void TextureCache<P>::DownloadMemory(VAddr cpu_addr, size_t size) {
}
template <class P>
+std::optional<VideoCore::RasterizerDownloadArea> TextureCache<P>::GetFlushArea(VAddr cpu_addr,
+ u64 size) {
+ std::optional<VideoCore::RasterizerDownloadArea> area{};
+ ForEachImageInRegion(cpu_addr, size, [&](ImageId, ImageBase& image) {
+ if (False(image.flags & ImageFlagBits::GpuModified)) {
+ return;
+ }
+ if (!area) {
+ area.emplace();
+ area->start_address = cpu_addr;
+ area->end_address = cpu_addr + size;
+ area->preemtive = true;
+ }
+ area->start_address = std::min(area->start_address, image.cpu_addr);
+ area->end_address = std::max(area->end_address, image.cpu_addr_end);
+ for (auto image_view_id : image.image_view_ids) {
+ auto& image_view = slot_image_views[image_view_id];
+ image_view.flags |= ImageViewFlagBits::PreemtiveDownload;
+ }
+ area->preemtive &= image.info.forced_flushed;
+ image.info.forced_flushed = true;
+ });
+ return area;
+}
+
+template <class P>
void TextureCache<P>::UnmapMemory(VAddr cpu_addr, size_t size) {
- std::vector<ImageId> deleted_images;
+ boost::container::small_vector<ImageId, 16> deleted_images;
ForEachImageInRegion(cpu_addr, size, [&](ImageId id, Image&) { deleted_images.push_back(id); });
for (const ImageId id : deleted_images) {
Image& image = slot_images[id];
@@ -496,7 +593,7 @@ void TextureCache<P>::UnmapMemory(VAddr cpu_addr, size_t size) {
template <class P>
void TextureCache<P>::UnmapGPUMemory(size_t as_id, GPUVAddr gpu_addr, size_t size) {
- std::vector<ImageId> deleted_images;
+ boost::container::small_vector<ImageId, 16> deleted_images;
ForEachImageInRegionGPU(as_id, gpu_addr, size,
[&](ImageId id, Image&) { deleted_images.push_back(id); });
for (const ImageId id : deleted_images) {
@@ -654,25 +751,41 @@ template <class P>
void TextureCache<P>::CommitAsyncFlushes() {
// This is intentionally passing the value by copy
if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
- const std::span<const ImageId> download_ids = uncommitted_downloads;
+ auto& download_ids = uncommitted_downloads;
if (download_ids.empty()) {
committed_downloads.emplace_back(std::move(uncommitted_downloads));
uncommitted_downloads.clear();
- async_buffers.emplace_back(std::optional<AsyncBuffer>{});
+ async_buffers.emplace_back(std::move(uncommitted_async_buffers));
+ uncommitted_async_buffers.clear();
return;
}
size_t total_size_bytes = 0;
- for (const ImageId image_id : download_ids) {
- total_size_bytes += slot_images[image_id].unswizzled_size_bytes;
+ size_t last_async_buffer_id = uncommitted_async_buffers.size();
+ bool any_none_dma = false;
+ for (PendingDownload& download_info : download_ids) {
+ if (download_info.is_swizzle) {
+ total_size_bytes +=
+ Common::AlignUp(slot_images[download_info.object_id].unswizzled_size_bytes, 64);
+ any_none_dma = true;
+ download_info.async_buffer_id = last_async_buffer_id;
+ }
}
- auto download_map = runtime.DownloadStagingBuffer(total_size_bytes, true);
- for (const ImageId image_id : download_ids) {
- Image& image = slot_images[image_id];
- const auto copies = FullDownloadCopies(image.info);
- image.DownloadMemory(download_map, copies);
- download_map.offset += Common::AlignUp(image.unswizzled_size_bytes, 64);
+
+ if (any_none_dma) {
+ auto download_map = runtime.DownloadStagingBuffer(total_size_bytes, true);
+ 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);
+ image.DownloadMemory(download_map, copies);
+ download_map.offset += Common::AlignUp(image.unswizzled_size_bytes, 64);
+ }
+ }
+ uncommitted_async_buffers.emplace_back(download_map);
}
- async_buffers.emplace_back(download_map);
+
+ async_buffers.emplace_back(std::move(uncommitted_async_buffers));
+ uncommitted_async_buffers.clear();
}
committed_downloads.emplace_back(std::move(uncommitted_downloads));
uncommitted_downloads.clear();
@@ -684,39 +797,57 @@ void TextureCache<P>::PopAsyncFlushes() {
return;
}
if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
- const std::span<const ImageId> download_ids = committed_downloads.front();
+ const auto& download_ids = committed_downloads.front();
if (download_ids.empty()) {
committed_downloads.pop_front();
async_buffers.pop_front();
return;
}
- auto download_map = *async_buffers.front();
- std::span<u8> download_span = download_map.mapped_span;
+ auto download_map = std::move(async_buffers.front());
for (size_t i = download_ids.size(); i > 0; i--) {
- const ImageBase& image = slot_images[download_ids[i - 1]];
- const auto copies = FullDownloadCopies(image.info);
- download_map.offset -= Common::AlignUp(image.unswizzled_size_bytes, 64);
- std::span<u8> download_span_alt = download_span.subspan(download_map.offset);
- SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, download_span_alt,
- swizzle_data_buffer);
+ auto& download_info = download_ids[i - 1];
+ 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);
+ download_buffer.offset -= Common::AlignUp(image.unswizzled_size_bytes, 64);
+ std::span<u8> download_span =
+ download_buffer.mapped_span.subspan(download_buffer.offset);
+ SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, download_span,
+ swizzle_data_buffer);
+ } else {
+ const BufferDownload& buffer_info = slot_buffer_downloads[download_info.object_id];
+ std::span<u8> download_span =
+ download_buffer.mapped_span.subspan(download_buffer.offset);
+ gpu_memory->WriteBlockUnsafe(buffer_info.address, download_span.data(),
+ buffer_info.size);
+ slot_buffer_downloads.erase(download_info.object_id);
+ }
+ }
+ for (auto& download_buffer : download_map) {
+ async_buffers_death_ring.emplace_back(download_buffer);
}
- runtime.FreeDeferredStagingBuffer(download_map);
committed_downloads.pop_front();
async_buffers.pop_front();
} else {
- const std::span<const ImageId> download_ids = committed_downloads.front();
+ const auto& download_ids = committed_downloads.front();
if (download_ids.empty()) {
committed_downloads.pop_front();
return;
}
size_t total_size_bytes = 0;
- for (const ImageId image_id : download_ids) {
- total_size_bytes += slot_images[image_id].unswizzled_size_bytes;
+ for (const PendingDownload& download_info : download_ids) {
+ if (download_info.is_swizzle) {
+ total_size_bytes += slot_images[download_info.object_id].unswizzled_size_bytes;
+ }
}
auto download_map = runtime.DownloadStagingBuffer(total_size_bytes);
const size_t original_offset = download_map.offset;
- for (const ImageId image_id : download_ids) {
- Image& image = slot_images[image_id];
+ for (const PendingDownload& download_info : download_ids) {
+ if (!download_info.is_swizzle) {
+ continue;
+ }
+ Image& image = slot_images[download_info.object_id];
const auto copies = FullDownloadCopies(image.info);
image.DownloadMemory(download_map, copies);
download_map.offset += image.unswizzled_size_bytes;
@@ -725,8 +856,11 @@ void TextureCache<P>::PopAsyncFlushes() {
runtime.Finish();
download_map.offset = original_offset;
std::span<u8> download_span = download_map.mapped_span;
- for (const ImageId image_id : download_ids) {
- const ImageBase& image = slot_images[image_id];
+ for (const PendingDownload& download_info : download_ids) {
+ if (!download_info.is_swizzle) {
+ continue;
+ }
+ const ImageBase& image = slot_images[download_info.object_id];
const auto copies = FullDownloadCopies(image.info);
SwizzleImage(*gpu_memory, image.gpu_addr, image.info, copies, download_span,
swizzle_data_buffer);
@@ -738,6 +872,26 @@ void TextureCache<P>::PopAsyncFlushes() {
}
template <class P>
+ImageId TextureCache<P>::DmaImageId(const Tegra::DMA::ImageOperand& operand, bool is_upload) {
+ const ImageInfo dst_info(operand);
+ const ImageId image_id = FindDMAImage(dst_info, operand.address);
+ if (!image_id) {
+ return NULL_IMAGE_ID;
+ }
+ auto& image = slot_images[image_id];
+ if (!is_upload && !image.info.dma_downloaded) {
+ // Force a full sync.
+ image.info.dma_downloaded = true;
+ return NULL_IMAGE_ID;
+ }
+ const auto base = image.TryFindBase(operand.address);
+ if (!base) {
+ return NULL_IMAGE_ID;
+ }
+ return image_id;
+}
+
+template <class P>
bool TextureCache<P>::IsRescaling() const noexcept {
return is_rescaling;
}
@@ -765,6 +919,76 @@ bool TextureCache<P>::IsRegionGpuModified(VAddr addr, size_t size) {
}
template <class P>
+std::pair<typename TextureCache<P>::Image*, BufferImageCopy> TextureCache<P>::DmaBufferImageCopy(
+ const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::BufferOperand& buffer_operand,
+ const Tegra::DMA::ImageOperand& image_operand, ImageId image_id, bool modifies_image) {
+ const auto [level, base] = PrepareDmaImage(image_id, image_operand.address, modifies_image);
+ auto* image = &slot_images[image_id];
+ const u32 buffer_size = static_cast<u32>(buffer_operand.pitch * buffer_operand.height);
+ const u32 bpp = VideoCore::Surface::BytesPerBlock(image->info.format);
+ const auto convert = [old_bpp = image_operand.bytes_per_pixel, bpp](u32 value) {
+ return (old_bpp * value) / bpp;
+ };
+ const u32 base_x = convert(image_operand.params.origin.x.Value());
+ const u32 base_y = image_operand.params.origin.y.Value();
+ const u32 length_x = convert(copy_info.length_x);
+ const u32 length_y = copy_info.length_y;
+
+ const BufferImageCopy copy{
+ .buffer_offset = 0,
+ .buffer_size = buffer_size,
+ .buffer_row_length = convert(buffer_operand.pitch),
+ .buffer_image_height = buffer_operand.height,
+ .image_subresource =
+ {
+ .base_level = static_cast<s32>(level),
+ .base_layer = static_cast<s32>(base),
+ .num_layers = 1,
+ },
+ .image_offset =
+ {
+ .x = static_cast<s32>(base_x),
+ .y = static_cast<s32>(base_y),
+ .z = 0,
+ },
+ .image_extent =
+ {
+ .width = length_x,
+ .height = length_y,
+ .depth = 1,
+ },
+ };
+ return {image, copy};
+}
+
+template <class P>
+void TextureCache<P>::DownloadImageIntoBuffer(typename TextureCache<P>::Image* image,
+ typename TextureCache<P>::BufferType buffer,
+ size_t buffer_offset,
+ std::span<const VideoCommon::BufferImageCopy> copies,
+ GPUVAddr address, size_t size) {
+ if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) {
+ const BufferDownload new_buffer_download{address, size};
+ auto slot = slot_buffer_downloads.insert(new_buffer_download);
+ const PendingDownload new_download{false, uncommitted_async_buffers.size(), slot};
+ uncommitted_downloads.emplace_back(new_download);
+ auto download_map = runtime.DownloadStagingBuffer(size, true);
+ uncommitted_async_buffers.emplace_back(download_map);
+ std::array buffers{
+ buffer,
+ download_map.buffer,
+ };
+ std::array<u64, 2> buffer_offsets{
+ buffer_offset,
+ download_map.offset,
+ };
+ image->DownloadMemory(buffers, buffer_offsets, copies);
+ } else {
+ image->DownloadMemory(buffer, buffer_offset, copies);
+ }
+}
+
+template <class P>
void TextureCache<P>::RefreshContents(Image& image, ImageId image_id) {
if (False(image.flags & ImageFlagBits::CpuModified)) {
// Only upload modified images
@@ -773,10 +997,14 @@ void TextureCache<P>::RefreshContents(Image& image, ImageId image_id) {
image.flags &= ~ImageFlagBits::CpuModified;
TrackImage(image, image_id);
- if (image.info.num_samples > 1) {
+ if (image.info.num_samples > 1 && !runtime.CanUploadMSAA()) {
LOG_WARNING(HW_GPU, "MSAA image uploads are not implemented");
return;
}
+ if (True(image.flags & ImageFlagBits::AsynchronousDecode)) {
+ QueueAsyncDecode(image, image_id);
+ return;
+ }
auto staging = runtime.UploadStagingBuffer(MapSizeBytes(image));
UploadImageContents(image, staging);
runtime.InsertUploadMemoryBarrier();
@@ -873,7 +1101,7 @@ ImageId TextureCache<P>::FindImage(const ImageInfo& info, GPUVAddr gpu_addr,
const bool native_bgr = runtime.HasNativeBgr();
const bool flexible_formats = True(options & RelaxedOptions::Format);
ImageId image_id{};
- boost::container::small_vector<ImageId, 1> image_ids;
+ boost::container::small_vector<ImageId, 8> image_ids;
const auto lambda = [&](ImageId existing_image_id, ImageBase& existing_image) {
if (True(existing_image.flags & ImageFlagBits::Remapped)) {
return false;
@@ -990,6 +1218,65 @@ u64 TextureCache<P>::GetScaledImageSizeBytes(const ImageBase& image) {
}
template <class P>
+void TextureCache<P>::QueueAsyncDecode(Image& image, ImageId image_id) {
+ UNIMPLEMENTED_IF(False(image.flags & ImageFlagBits::Converted));
+ LOG_INFO(HW_GPU, "Queuing async texture decode");
+
+ image.flags |= ImageFlagBits::IsDecoding;
+ auto decode = std::make_unique<AsyncDecodeContext>();
+ auto* decode_ptr = decode.get();
+ decode->image_id = image_id;
+ async_decodes.push_back(std::move(decode));
+
+ Common::ScratchBuffer<u8> local_unswizzle_data_buffer(image.unswizzled_size_bytes);
+ const size_t guest_size_bytes = image.guest_size_bytes;
+ swizzle_data_buffer.resize_destructive(guest_size_bytes);
+ gpu_memory->ReadBlockUnsafe(image.gpu_addr, swizzle_data_buffer.data(), guest_size_bytes);
+ auto copies = UnswizzleImage(*gpu_memory, image.gpu_addr, image.info, swizzle_data_buffer,
+ local_unswizzle_data_buffer);
+ const size_t out_size = MapSizeBytes(image);
+
+ auto func = [out_size, copies, info = image.info,
+ input = std::move(local_unswizzle_data_buffer),
+ async_decode = decode_ptr]() mutable {
+ async_decode->decoded_data.resize_destructive(out_size);
+ std::span copies_span{copies.data(), copies.size()};
+ ConvertImage(input, info, async_decode->decoded_data, copies_span);
+
+ // TODO: Do we need this lock?
+ std::unique_lock lock{async_decode->mutex};
+ async_decode->copies = std::move(copies);
+ async_decode->complete = true;
+ };
+ texture_decode_worker.QueueWork(std::move(func));
+}
+
+template <class P>
+void TextureCache<P>::TickAsyncDecode() {
+ bool has_uploads{};
+ auto i = async_decodes.begin();
+ while (i != async_decodes.end()) {
+ auto* async_decode = i->get();
+ std::unique_lock lock{async_decode->mutex};
+ if (!async_decode->complete) {
+ ++i;
+ continue;
+ }
+ Image& image = slot_images[async_decode->image_id];
+ 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.flags &= ~ImageFlagBits::IsDecoding;
+ has_uploads = true;
+ i = async_decodes.erase(i);
+ }
+ if (has_uploads) {
+ runtime.InsertUploadMemoryBarrier();
+ }
+}
+
+template <class P>
bool TextureCache<P>::ScaleUp(Image& image) {
const bool has_copy = image.HasScaled();
const bool rescaled = image.ScaleUp();
@@ -1044,17 +1331,18 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
const size_t size_bytes = CalculateGuestSizeInBytes(new_info);
const bool broken_views = runtime.HasBrokenTextureViewFormats();
const bool native_bgr = runtime.HasNativeBgr();
- std::vector<ImageId> overlap_ids;
- std::unordered_set<ImageId> overlaps_found;
- std::vector<ImageId> left_aliased_ids;
- std::vector<ImageId> right_aliased_ids;
- std::unordered_set<ImageId> ignore_textures;
- std::vector<ImageId> bad_overlap_ids;
- std::vector<ImageId> all_siblings;
+ join_overlap_ids.clear();
+ join_overlaps_found.clear();
+ join_left_aliased_ids.clear();
+ join_right_aliased_ids.clear();
+ join_ignore_textures.clear();
+ join_bad_overlap_ids.clear();
+ join_copies_to_do.clear();
+ join_alias_indices.clear();
const bool this_is_linear = info.type == ImageType::Linear;
const auto region_check = [&](ImageId overlap_id, ImageBase& overlap) {
if (True(overlap.flags & ImageFlagBits::Remapped)) {
- ignore_textures.insert(overlap_id);
+ join_ignore_textures.insert(overlap_id);
return;
}
const bool overlap_is_linear = overlap.info.type == ImageType::Linear;
@@ -1064,11 +1352,11 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
if (this_is_linear && overlap_is_linear) {
if (info.pitch == overlap.info.pitch && gpu_addr == overlap.gpu_addr) {
// Alias linear images with the same pitch
- left_aliased_ids.push_back(overlap_id);
+ join_left_aliased_ids.push_back(overlap_id);
}
return;
}
- overlaps_found.insert(overlap_id);
+ join_overlaps_found.insert(overlap_id);
static constexpr bool strict_size = true;
const std::optional<OverlapResult> solution = ResolveOverlap(
new_info, gpu_addr, cpu_addr, overlap, strict_size, broken_views, native_bgr);
@@ -1076,34 +1364,33 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
gpu_addr = solution->gpu_addr;
cpu_addr = solution->cpu_addr;
new_info.resources = solution->resources;
- overlap_ids.push_back(overlap_id);
- all_siblings.push_back(overlap_id);
+ join_overlap_ids.push_back(overlap_id);
+ join_copies_to_do.emplace_back(JoinCopy{false, overlap_id});
return;
}
static constexpr auto options = RelaxedOptions::Size | RelaxedOptions::Format;
const ImageBase new_image_base(new_info, gpu_addr, cpu_addr);
if (IsSubresource(new_info, overlap, gpu_addr, options, broken_views, native_bgr)) {
- left_aliased_ids.push_back(overlap_id);
+ join_left_aliased_ids.push_back(overlap_id);
overlap.flags |= ImageFlagBits::Alias;
- all_siblings.push_back(overlap_id);
+ join_copies_to_do.emplace_back(JoinCopy{true, overlap_id});
} else if (IsSubresource(overlap.info, new_image_base, overlap.gpu_addr, options,
broken_views, native_bgr)) {
- right_aliased_ids.push_back(overlap_id);
+ join_right_aliased_ids.push_back(overlap_id);
overlap.flags |= ImageFlagBits::Alias;
- all_siblings.push_back(overlap_id);
+ join_copies_to_do.emplace_back(JoinCopy{true, overlap_id});
} else {
- bad_overlap_ids.push_back(overlap_id);
- overlap.flags |= ImageFlagBits::BadOverlap;
+ join_bad_overlap_ids.push_back(overlap_id);
}
};
ForEachImageInRegion(cpu_addr, size_bytes, region_check);
const auto region_check_gpu = [&](ImageId overlap_id, ImageBase& overlap) {
- if (!overlaps_found.contains(overlap_id)) {
+ if (!join_overlaps_found.contains(overlap_id)) {
if (True(overlap.flags & ImageFlagBits::Remapped)) {
- ignore_textures.insert(overlap_id);
+ join_ignore_textures.insert(overlap_id);
}
if (overlap.gpu_addr == gpu_addr && overlap.guest_size_bytes == size_bytes) {
- ignore_textures.insert(overlap_id);
+ join_ignore_textures.insert(overlap_id);
}
}
};
@@ -1111,11 +1398,11 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
bool can_rescale = info.rescaleable;
bool any_rescaled = false;
- for (const ImageId sibling_id : all_siblings) {
+ for (const auto& copy : join_copies_to_do) {
if (!can_rescale) {
break;
}
- Image& sibling = slot_images[sibling_id];
+ Image& sibling = slot_images[copy.id];
can_rescale &= ImageCanRescale(sibling);
any_rescaled |= True(sibling.flags & ImageFlagBits::Rescaled);
}
@@ -1123,13 +1410,13 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
can_rescale &= any_rescaled;
if (can_rescale) {
- for (const ImageId sibling_id : all_siblings) {
- Image& sibling = slot_images[sibling_id];
+ for (const auto& copy : join_copies_to_do) {
+ Image& sibling = slot_images[copy.id];
ScaleUp(sibling);
}
} else {
- for (const ImageId sibling_id : all_siblings) {
- Image& sibling = slot_images[sibling_id];
+ for (const auto& copy : join_copies_to_do) {
+ Image& sibling = slot_images[copy.id];
ScaleDown(sibling);
}
}
@@ -1137,11 +1424,11 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
const ImageId new_image_id = slot_images.insert(runtime, new_info, gpu_addr, cpu_addr);
Image& new_image = slot_images[new_image_id];
- if (!gpu_memory->IsContinousRange(new_image.gpu_addr, new_image.guest_size_bytes)) {
+ if (!gpu_memory->IsContinuousRange(new_image.gpu_addr, new_image.guest_size_bytes)) {
new_image.flags |= ImageFlagBits::Sparse;
}
- for (const ImageId overlap_id : ignore_textures) {
+ for (const ImageId overlap_id : join_ignore_textures) {
Image& overlap = slot_images[overlap_id];
if (True(overlap.flags & ImageFlagBits::GpuModified)) {
UNIMPLEMENTED();
@@ -1162,44 +1449,81 @@ ImageId TextureCache<P>::JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VA
ScaleDown(new_image);
}
- for (const ImageId overlap_id : overlap_ids) {
- Image& overlap = slot_images[overlap_id];
- if (True(overlap.flags & ImageFlagBits::GpuModified)) {
- new_image.flags |= ImageFlagBits::GpuModified;
- }
- if (overlap.info.num_samples != new_image.info.num_samples) {
- LOG_WARNING(HW_GPU, "Copying between images with different samples is not implemented");
- } else {
- const auto& resolution = Settings::values.resolution_info;
- const SubresourceBase base = new_image.TryFindBase(overlap.gpu_addr).value();
- const u32 up_scale = can_rescale ? resolution.up_scale : 1;
- const u32 down_shift = can_rescale ? resolution.down_shift : 0;
- auto copies = MakeShrinkImageCopies(new_info, overlap.info, base, up_scale, down_shift);
- runtime.CopyImage(new_image, overlap, std::move(copies));
- }
- if (True(overlap.flags & ImageFlagBits::Tracked)) {
- UntrackImage(overlap, overlap_id);
- }
- UnregisterImage(overlap_id);
- DeleteImage(overlap_id);
- }
+ std::ranges::sort(join_copies_to_do, [this](const JoinCopy& lhs, const JoinCopy& rhs) {
+ const ImageBase& lhs_image = slot_images[lhs.id];
+ const ImageBase& rhs_image = slot_images[rhs.id];
+ return lhs_image.modification_tick < rhs_image.modification_tick;
+ });
+
ImageBase& new_image_base = new_image;
- for (const ImageId aliased_id : right_aliased_ids) {
+ for (const ImageId aliased_id : join_right_aliased_ids) {
ImageBase& aliased = slot_images[aliased_id];
- AddImageAlias(new_image_base, aliased, new_image_id, aliased_id);
+ size_t alias_index = new_image_base.aliased_images.size();
+ if (!AddImageAlias(new_image_base, aliased, new_image_id, aliased_id)) {
+ continue;
+ }
+ join_alias_indices.emplace(aliased_id, alias_index);
new_image.flags |= ImageFlagBits::Alias;
}
- for (const ImageId aliased_id : left_aliased_ids) {
+ for (const ImageId aliased_id : join_left_aliased_ids) {
ImageBase& aliased = slot_images[aliased_id];
- AddImageAlias(aliased, new_image_base, aliased_id, new_image_id);
+ size_t alias_index = new_image_base.aliased_images.size();
+ if (!AddImageAlias(aliased, new_image_base, aliased_id, new_image_id)) {
+ continue;
+ }
+ join_alias_indices.emplace(aliased_id, alias_index);
new_image.flags |= ImageFlagBits::Alias;
}
- for (const ImageId aliased_id : bad_overlap_ids) {
+ for (const ImageId aliased_id : join_bad_overlap_ids) {
ImageBase& aliased = slot_images[aliased_id];
aliased.overlapping_images.push_back(new_image_id);
new_image.overlapping_images.push_back(aliased_id);
- new_image.flags |= ImageFlagBits::BadOverlap;
+ if (aliased.info.resources.levels == 1 && aliased.info.block.depth == 0 &&
+ aliased.overlapping_images.size() > 1) {
+ aliased.flags |= ImageFlagBits::BadOverlap;
+ }
+ if (new_image.info.resources.levels == 1 && new_image.info.block.depth == 0 &&
+ new_image.overlapping_images.size() > 1) {
+ new_image.flags |= ImageFlagBits::BadOverlap;
+ }
+ }
+
+ for (const auto& copy_object : join_copies_to_do) {
+ Image& overlap = slot_images[copy_object.id];
+ if (copy_object.is_alias) {
+ if (!overlap.IsSafeDownload()) {
+ continue;
+ }
+ const auto alias_pointer = join_alias_indices.find(copy_object.id);
+ if (alias_pointer == join_alias_indices.end()) {
+ continue;
+ }
+ const AliasedImage& aliased = new_image.aliased_images[alias_pointer->second];
+ CopyImage(new_image_id, aliased.id, aliased.copies);
+ new_image.modification_tick = overlap.modification_tick;
+ continue;
+ }
+ if (True(overlap.flags & ImageFlagBits::GpuModified)) {
+ new_image.flags |= ImageFlagBits::GpuModified;
+ const auto& resolution = Settings::values.resolution_info;
+ const SubresourceBase base = new_image.TryFindBase(overlap.gpu_addr).value();
+ const u32 up_scale = can_rescale ? resolution.up_scale : 1;
+ 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, std::move(copies));
+ } else {
+ runtime.CopyImage(new_image, overlap, std::move(copies));
+ }
+ new_image.modification_tick = overlap.modification_tick;
+ }
+ if (True(overlap.flags & ImageFlagBits::Tracked)) {
+ UntrackImage(overlap, copy_object.id);
+ }
+ UnregisterImage(copy_object.id);
+ DeleteImage(copy_object.id);
}
+
RegisterImage(new_image_id);
return new_image_id;
}
@@ -1289,6 +1613,63 @@ std::optional<typename TextureCache<P>::BlitImages> TextureCache<P>::GetBlitImag
}
template <class P>
+ImageId TextureCache<P>::FindDMAImage(const ImageInfo& info, GPUVAddr gpu_addr) {
+ std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr);
+ if (!cpu_addr) {
+ cpu_addr = gpu_memory->GpuToCpuAddress(gpu_addr, CalculateGuestSizeInBytes(info));
+ if (!cpu_addr) {
+ return ImageId{};
+ }
+ }
+ ImageId image_id{};
+ boost::container::small_vector<ImageId, 8> image_ids;
+ const auto lambda = [&](ImageId existing_image_id, ImageBase& existing_image) {
+ if (True(existing_image.flags & ImageFlagBits::Remapped)) {
+ return false;
+ }
+ if (info.type == ImageType::Linear || existing_image.info.type == ImageType::Linear)
+ [[unlikely]] {
+ const bool strict_size = True(existing_image.flags & ImageFlagBits::Strong);
+ const ImageInfo& existing = existing_image.info;
+ if (existing_image.gpu_addr == gpu_addr && existing.type == info.type &&
+ existing.pitch == info.pitch &&
+ IsPitchLinearSameSize(existing, info, strict_size) &&
+ IsViewCompatible(existing.format, info.format, false, true)) {
+ image_id = existing_image_id;
+ image_ids.push_back(existing_image_id);
+ return true;
+ }
+ } else if (IsSubCopy(info, existing_image, gpu_addr)) {
+ image_id = existing_image_id;
+ image_ids.push_back(existing_image_id);
+ return true;
+ }
+ return false;
+ };
+ ForEachImageInRegion(*cpu_addr, CalculateGuestSizeInBytes(info), lambda);
+ if (image_ids.size() <= 1) [[likely]] {
+ return image_id;
+ }
+ auto image_ids_compare = [this](ImageId a, ImageId b) {
+ auto& image_a = slot_images[a];
+ auto& image_b = slot_images[b];
+ return image_a.modification_tick < image_b.modification_tick;
+ };
+ return *std::ranges::max_element(image_ids, image_ids_compare);
+}
+
+template <class P>
+std::pair<u32, u32> TextureCache<P>::PrepareDmaImage(ImageId dst_id, GPUVAddr base_addr,
+ bool mark_as_modified) {
+ const auto& image = slot_images[dst_id];
+ const auto base = image.TryFindBase(base_addr);
+ PrepareImage(dst_id, mark_as_modified, false);
+ const auto& new_image = slot_images[dst_id];
+ lru_cache.Touch(new_image.lru_index, frame_tick);
+ return std::make_pair(base->level, base->layer);
+}
+
+template <class P>
SamplerId TextureCache<P>::FindSampler(const TSCEntry& config) {
if (std::ranges::all_of(config.raw, [](u64 value) { return value == 0; })) {
return NULL_SAMPLER_ID;
@@ -1301,7 +1682,7 @@ SamplerId TextureCache<P>::FindSampler(const TSCEntry& config) {
}
template <class P>
-ImageViewId TextureCache<P>::FindColorBuffer(size_t index, bool is_clear) {
+ImageViewId TextureCache<P>::FindColorBuffer(size_t index) {
const auto& regs = maxwell3d->regs;
if (index >= regs.rt_control.count) {
return ImageViewId{};
@@ -1314,12 +1695,12 @@ ImageViewId TextureCache<P>::FindColorBuffer(size_t index, bool is_clear) {
if (rt.format == Tegra::RenderTargetFormat::NONE) {
return ImageViewId{};
}
- const ImageInfo info(regs, index);
- return FindRenderTargetView(info, gpu_addr, is_clear);
+ const ImageInfo info(regs.rt[index], regs.anti_alias_samples_mode);
+ return FindRenderTargetView(info, gpu_addr);
}
template <class P>
-ImageViewId TextureCache<P>::FindDepthBuffer(bool is_clear) {
+ImageViewId TextureCache<P>::FindDepthBuffer() {
const auto& regs = maxwell3d->regs;
if (!regs.zeta_enable) {
return ImageViewId{};
@@ -1328,19 +1709,17 @@ ImageViewId TextureCache<P>::FindDepthBuffer(bool is_clear) {
if (gpu_addr == 0) {
return ImageViewId{};
}
- const ImageInfo info(regs);
- return FindRenderTargetView(info, gpu_addr, is_clear);
+ const ImageInfo info(regs.zeta, regs.zeta_size, regs.anti_alias_samples_mode);
+ return FindRenderTargetView(info, gpu_addr);
}
template <class P>
-ImageViewId TextureCache<P>::FindRenderTargetView(const ImageInfo& info, GPUVAddr gpu_addr,
- bool is_clear) {
- const auto options = is_clear ? RelaxedOptions::Samples : RelaxedOptions{};
+ImageViewId TextureCache<P>::FindRenderTargetView(const ImageInfo& info, GPUVAddr gpu_addr) {
ImageId image_id{};
bool delete_state = has_deleted_images;
do {
has_deleted_images = false;
- image_id = FindOrInsertImage(info, gpu_addr, options);
+ image_id = FindOrInsertImage(info, gpu_addr);
delete_state |= has_deleted_images;
} while (has_deleted_images);
has_deleted_images = delete_state;
@@ -1427,37 +1806,38 @@ void TextureCache<P>::ForEachImageInRegionGPU(size_t as_id, GPUVAddr gpu_addr, s
return;
}
auto& gpu_page_table = gpu_page_table_storage[*storage_id];
- ForEachGPUPage(gpu_addr, size, [this, gpu_page_table, &images, gpu_addr, size, func](u64 page) {
- const auto it = gpu_page_table.find(page);
- if (it == gpu_page_table.end()) {
- if constexpr (BOOL_BREAK) {
- return false;
- } else {
- return;
- }
- }
- for (const ImageId image_id : it->second) {
- Image& image = slot_images[image_id];
- if (True(image.flags & ImageFlagBits::Picked)) {
- continue;
- }
- if (!image.OverlapsGPU(gpu_addr, size)) {
- continue;
- }
- image.flags |= ImageFlagBits::Picked;
- images.push_back(image_id);
- if constexpr (BOOL_BREAK) {
- if (func(image_id, image)) {
- return true;
- }
- } else {
- func(image_id, image);
- }
- }
- if constexpr (BOOL_BREAK) {
- return false;
- }
- });
+ ForEachGPUPage(gpu_addr, size,
+ [this, &gpu_page_table, &images, gpu_addr, size, func](u64 page) {
+ const auto it = gpu_page_table.find(page);
+ if (it == gpu_page_table.end()) {
+ if constexpr (BOOL_BREAK) {
+ return false;
+ } else {
+ return;
+ }
+ }
+ for (const ImageId image_id : it->second) {
+ Image& image = slot_images[image_id];
+ if (True(image.flags & ImageFlagBits::Picked)) {
+ continue;
+ }
+ if (!image.OverlapsGPU(gpu_addr, size)) {
+ continue;
+ }
+ image.flags |= ImageFlagBits::Picked;
+ images.push_back(image_id);
+ if constexpr (BOOL_BREAK) {
+ if (func(image_id, image)) {
+ return true;
+ }
+ } else {
+ func(image_id, image);
+ }
+ }
+ if constexpr (BOOL_BREAK) {
+ return false;
+ }
+ });
for (const ImageId image_id : images) {
slot_images[image_id].flags &= ~ImageFlagBits::Picked;
}
@@ -1549,10 +1929,6 @@ void TextureCache<P>::RegisterImage(ImageId image_id) {
tentative_size = EstimatedDecompressedSize(tentative_size, image.info.format);
}
total_used_memory += Common::AlignUp(tentative_size, 1024);
- if (total_used_memory > critical_memory && critical_gc < GC_EMERGENCY_COUNTS) {
- RunGarbageCollector();
- critical_gc++;
- }
image.lru_index = lru_cache.Insert(image_id, frame_tick);
ForEachGPUPage(image.gpu_addr, image.guest_size_bytes, [this, image_id](u64 page) {
@@ -1566,7 +1942,7 @@ void TextureCache<P>::RegisterImage(ImageId image_id) {
image.map_view_id = map_id;
return;
}
- std::vector<ImageViewId> sparse_maps{};
+ boost::container::small_vector<ImageViewId, 16> sparse_maps;
ForEachSparseSegment(
image, [this, image_id, &sparse_maps](GPUVAddr gpu_addr, VAddr cpu_addr, size_t size) {
auto map_id = slot_map_views.insert(gpu_addr, cpu_addr, size, image_id);
@@ -1841,7 +2217,7 @@ void TextureCache<P>::MarkModification(ImageBase& image) noexcept {
template <class P>
void TextureCache<P>::SynchronizeAliases(ImageId image_id) {
- boost::container::small_vector<const AliasedImage*, 1> aliased_images;
+ boost::container::small_vector<const AliasedImage*, 8> aliased_images;
Image& image = slot_images[image_id];
bool any_rescaled = True(image.flags & ImageFlagBits::Rescaled);
bool any_modified = True(image.flags & ImageFlagBits::GpuModified);
@@ -2019,7 +2395,8 @@ void TextureCache<P>::BindRenderTarget(ImageViewId* old_id, ImageViewId new_id)
if (new_id) {
const ImageViewBase& old_view = slot_image_views[new_id];
if (True(old_view.flags & ImageViewFlagBits::PreemtiveDownload)) {
- uncommitted_downloads.push_back(old_view.image_id);
+ const PendingDownload new_download{true, 0, old_view.image_id};
+ uncommitted_downloads.emplace_back(new_download);
}
}
*old_id = new_id;
diff --git a/src/video_core/texture_cache/texture_cache_base.h b/src/video_core/texture_cache/texture_cache_base.h
index 485eaabaa..e9ec91265 100644
--- a/src/video_core/texture_cache/texture_cache_base.h
+++ b/src/video_core/texture_cache/texture_cache_base.h
@@ -1,15 +1,18 @@
-// SPDX-FileCopyrightText: 2021 yuzu Emulator Project
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
+#include <atomic>
#include <deque>
#include <limits>
#include <mutex>
#include <span>
#include <type_traits>
#include <unordered_map>
+#include <unordered_set>
#include <vector>
+#include <boost/container/small_vector.hpp>
#include <queue>
#include "common/common_types.h"
@@ -18,6 +21,7 @@
#include "common/lru_cache.h"
#include "common/polyfill_ranges.h"
#include "common/scratch_buffer.h"
+#include "common/thread_worker.h"
#include "video_core/compatible_formats.h"
#include "video_core/control/channel_state_cache.h"
#include "video_core/delayed_destruction_ring.h"
@@ -38,14 +42,9 @@ struct ChannelState;
namespace VideoCommon {
-using Tegra::Texture::SwizzleSource;
using Tegra::Texture::TICEntry;
using Tegra::Texture::TSCEntry;
-using VideoCore::Surface::GetFormatType;
-using VideoCore::Surface::IsCopyCompatible;
using VideoCore::Surface::PixelFormat;
-using VideoCore::Surface::PixelFormatFromDepthFormat;
-using VideoCore::Surface::PixelFormatFromRenderTargetFormat;
using namespace Common::Literals;
struct ImageViewInOut {
@@ -54,6 +53,14 @@ struct ImageViewInOut {
ImageViewId id{};
};
+struct AsyncDecodeContext {
+ ImageId image_id;
+ Common::ScratchBuffer<u8> decoded_data;
+ boost::container::small_vector<BufferImageCopy, 16> copies;
+ std::mutex mutex;
+ std::atomic_bool complete;
+};
+
using TextureCacheGPUMap = std::unordered_map<u64, std::vector<ImageId>, Common::IdentityHash<u64>>;
class TextureCacheChannelInfo : public ChannelInfo {
@@ -109,6 +116,7 @@ class TextureCache : public VideoCommon::ChannelSetupCaches<TextureCacheChannelI
using Sampler = typename P::Sampler;
using Framebuffer = typename P::Framebuffer;
using AsyncBuffer = typename P::AsyncBuffer;
+ using BufferType = typename P::BufferType;
struct BlitImages {
ImageId dst_id;
@@ -142,12 +150,27 @@ public:
/// Fill image_view_ids with the compute images in indices
void FillComputeImageViews(std::span<ImageViewInOut> views);
+ /// Handle feedback loops during draws.
+ void CheckFeedbackLoop(std::span<const ImageViewInOut> views);
+
/// Get the sampler from the graphics descriptor table in the specified index
Sampler* GetGraphicsSampler(u32 index);
/// Get the sampler from the compute descriptor table in the specified index
Sampler* GetComputeSampler(u32 index);
+ /// Get the sampler id from the graphics descriptor table in the specified index
+ SamplerId GetGraphicsSamplerId(u32 index);
+
+ /// Get the sampler id from the compute descriptor table in the specified index
+ SamplerId GetComputeSamplerId(u32 index);
+
+ /// Return a constant reference to the given sampler id
+ [[nodiscard]] const Sampler& GetSampler(SamplerId id) const noexcept;
+
+ /// Return a reference to the given sampler id
+ [[nodiscard]] Sampler& GetSampler(SamplerId id) noexcept;
+
/// Refresh the state for graphics image view and sampler descriptors
void SynchronizeGraphicsDescriptors();
@@ -155,9 +178,8 @@ public:
void SynchronizeComputeDescriptors();
/// Updates the Render Targets if they can be rescaled
- /// @param is_clear True when the render targets are being used for clears
/// @retval True if the Render Targets have been rescaled.
- bool RescaleRenderTargets(bool is_clear);
+ bool RescaleRenderTargets();
/// Update bound render targets and upload memory if necessary
/// @param is_clear True when the render targets are being used for clears
@@ -173,6 +195,8 @@ public:
/// Download contents of host images to guest memory in a region
void DownloadMemory(VAddr cpu_addr, size_t size);
+ std::optional<VideoCore::RasterizerDownloadArea> GetFlushArea(VAddr cpu_addr, u64 size);
+
/// Remove images in a region
void UnmapMemory(VAddr cpu_addr, size_t size);
@@ -199,6 +223,16 @@ public:
/// Pop asynchronous downloads
void PopAsyncFlushes();
+ [[nodiscard]] ImageId DmaImageId(const Tegra::DMA::ImageOperand& operand, bool is_upload);
+
+ [[nodiscard]] std::pair<Image*, BufferImageCopy> DmaBufferImageCopy(
+ const Tegra::DMA::ImageCopy& copy_info, const Tegra::DMA::BufferOperand& buffer_operand,
+ const Tegra::DMA::ImageOperand& image_operand, ImageId image_id, bool modifies_image);
+
+ void DownloadImageIntoBuffer(Image* image, BufferType buffer, size_t buffer_offset,
+ std::span<const VideoCommon::BufferImageCopy> copies,
+ GPUVAddr address = 0, size_t size = 0);
+
/// Return true when a CPU region is modified from the GPU
[[nodiscard]] bool IsRegionGpuModified(VAddr addr, size_t size);
@@ -290,6 +324,8 @@ private:
/// Remove joined images from the cache
[[nodiscard]] ImageId JoinImages(const ImageInfo& info, GPUVAddr gpu_addr, VAddr cpu_addr);
+ [[nodiscard]] ImageId FindDMAImage(const ImageInfo& info, GPUVAddr gpu_addr);
+
/// Return a blit image pair from the given guest blit parameters
[[nodiscard]] std::optional<BlitImages> GetBlitImages(
const Tegra::Engines::Fermi2D::Surface& dst, const Tegra::Engines::Fermi2D::Surface& src,
@@ -299,14 +335,13 @@ private:
[[nodiscard]] SamplerId FindSampler(const TSCEntry& config);
/// Find or create an image view for the given color buffer index
- [[nodiscard]] ImageViewId FindColorBuffer(size_t index, bool is_clear);
+ [[nodiscard]] ImageViewId FindColorBuffer(size_t index);
/// Find or create an image view for the depth buffer
- [[nodiscard]] ImageViewId FindDepthBuffer(bool is_clear);
+ [[nodiscard]] ImageViewId FindDepthBuffer();
/// Find or create a view for a render target with the given image parameters
- [[nodiscard]] ImageViewId FindRenderTargetView(const ImageInfo& info, GPUVAddr gpu_addr,
- bool is_clear);
+ [[nodiscard]] ImageViewId FindRenderTargetView(const ImageInfo& info, GPUVAddr gpu_addr);
/// Iterates over all the images in a region calling func
template <typename Func>
@@ -371,12 +406,18 @@ private:
/// Returns true if the current clear parameters clear the whole image of a given image view
[[nodiscard]] bool IsFullClear(ImageViewId id);
+ [[nodiscard]] std::pair<u32, u32> PrepareDmaImage(ImageId dst_id, GPUVAddr base_addr,
+ bool mark_as_modified);
+
bool ImageCanRescale(ImageBase& image);
void InvalidateScale(Image& image);
bool ScaleUp(Image& image);
bool ScaleDown(Image& image);
u64 GetScaledImageSizeBytes(const ImageBase& image);
+ void QueueAsyncDecode(Image& image, ImageId image_id);
+ void TickAsyncDecode();
+
Runtime& runtime;
VideoCore::RasterizerInterface& rasterizer;
@@ -388,7 +429,7 @@ private:
std::unordered_map<u64, std::vector<ImageMapId>, Common::IdentityHash<u64>> page_table;
std::unordered_map<u64, std::vector<ImageId>, Common::IdentityHash<u64>> sparse_page_table;
- std::unordered_map<ImageId, std::vector<ImageViewId>> sparse_views;
+ std::unordered_map<ImageId, boost::container::small_vector<ImageViewId, 16>> sparse_views;
VAddr virtual_invalid_space{};
@@ -398,7 +439,17 @@ private:
u64 minimum_memory;
u64 expected_memory;
u64 critical_memory;
- size_t critical_gc;
+
+ struct BufferDownload {
+ GPUVAddr address;
+ size_t size;
+ };
+
+ struct PendingDownload {
+ bool is_swizzle;
+ size_t async_buffer_id;
+ SlotId object_id;
+ };
SlotVector<Image> slot_images;
SlotVector<ImageMapView> slot_map_views;
@@ -406,11 +457,15 @@ private:
SlotVector<ImageAlloc> slot_image_allocs;
SlotVector<Sampler> slot_samplers;
SlotVector<Framebuffer> slot_framebuffers;
+ SlotVector<BufferDownload> slot_buffer_downloads;
// TODO: This data structure is not optimal and it should be reworked
- std::vector<ImageId> uncommitted_downloads;
- std::deque<std::vector<ImageId>> committed_downloads;
- std::deque<std::optional<AsyncBuffer>> async_buffers;
+
+ std::vector<PendingDownload> uncommitted_downloads;
+ std::deque<std::vector<PendingDownload>> committed_downloads;
+ std::vector<AsyncBuffer> uncommitted_async_buffers;
+ std::deque<std::vector<AsyncBuffer>> async_buffers;
+ std::deque<AsyncBuffer> async_buffers_death_ring;
struct LRUItemParams {
using ObjectType = ImageId;
@@ -430,6 +485,23 @@ private:
u64 modification_tick = 0;
u64 frame_tick = 0;
+
+ Common::ThreadWorker texture_decode_worker{1, "TextureDecoder"};
+ std::vector<std::unique_ptr<AsyncDecodeContext>> async_decodes;
+
+ // Join caching
+ boost::container::small_vector<ImageId, 4> join_overlap_ids;
+ std::unordered_set<ImageId> join_overlaps_found;
+ boost::container::small_vector<ImageId, 4> join_left_aliased_ids;
+ boost::container::small_vector<ImageId, 4> join_right_aliased_ids;
+ std::unordered_set<ImageId> join_ignore_textures;
+ boost::container::small_vector<ImageId, 4> join_bad_overlap_ids;
+ struct JoinCopy {
+ bool is_alias;
+ ImageId id;
+ };
+ boost::container::small_vector<JoinCopy, 4> join_copies_to_do;
+ std::unordered_map<ImageId, size_t> join_alias_indices;
};
} // namespace VideoCommon
diff --git a/src/video_core/texture_cache/types.h b/src/video_core/texture_cache/types.h
index 0453456b4..a0e10643f 100644
--- a/src/video_core/texture_cache/types.h
+++ b/src/video_core/texture_cache/types.h
@@ -54,6 +54,7 @@ enum class RelaxedOptions : u32 {
Format = 1 << 1,
Samples = 1 << 2,
ForceBrokenViews = 1 << 3,
+ FormatBpp = 1 << 4,
};
DECLARE_ENUM_FLAG_OPERATORS(RelaxedOptions)
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp
index 03acc68d9..f781cb7a0 100644
--- a/src/video_core/texture_cache/util.cpp
+++ b/src/video_core/texture_cache/util.cpp
@@ -18,6 +18,8 @@
#include "common/bit_util.h"
#include "common/common_types.h"
#include "common/div_ceil.h"
+#include "common/scratch_buffer.h"
+#include "common/settings.h"
#include "video_core/compatible_formats.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/memory_manager.h"
@@ -28,6 +30,7 @@
#include "video_core/texture_cache/samples_helper.h"
#include "video_core/texture_cache/util.h"
#include "video_core/textures/astc.h"
+#include "video_core/textures/bcn.h"
#include "video_core/textures/decoders.h"
namespace VideoCommon {
@@ -120,7 +123,9 @@ template <u32 GOB_EXTENT>
return {
.width = AdjustMipBlockSize<GOB_SIZE_X>(num_tiles.width, block_size.width, level),
.height = AdjustMipBlockSize<GOB_SIZE_Y>(num_tiles.height, block_size.height, level),
- .depth = AdjustMipBlockSize<GOB_SIZE_Z>(num_tiles.depth, block_size.depth, level),
+ .depth = level == 0
+ ? block_size.depth
+ : AdjustMipBlockSize<GOB_SIZE_Z>(num_tiles.depth, block_size.depth, level),
};
}
@@ -162,6 +167,13 @@ template <u32 GOB_EXTENT>
}
[[nodiscard]] constexpr Extent3D TileShift(const LevelInfo& info, u32 level) {
+ if (level == 0) {
+ return Extent3D{
+ .width = info.block.width,
+ .height = info.block.height,
+ .depth = info.block.depth,
+ };
+ }
const Extent3D blocks = NumLevelBlocks(info, level);
return Extent3D{
.width = AdjustTileSize(info.block.width, GOB_SIZE_X, blocks.width),
@@ -317,13 +329,13 @@ template <u32 GOB_EXTENT>
[[nodiscard]] std::optional<SubresourceExtent> ResolveOverlapRightAddress3D(
const ImageInfo& new_info, GPUVAddr gpu_addr, const ImageBase& overlap, bool strict_size) {
- const std::vector<u32> slice_offsets = CalculateSliceOffsets(new_info);
+ const auto slice_offsets = CalculateSliceOffsets(new_info);
const u32 diff = static_cast<u32>(overlap.gpu_addr - gpu_addr);
const auto it = std::ranges::find(slice_offsets, diff);
if (it == slice_offsets.end()) {
return std::nullopt;
}
- const std::vector subresources = CalculateSliceSubresources(new_info);
+ const auto subresources = CalculateSliceSubresources(new_info);
const SubresourceBase base = subresources[std::distance(slice_offsets.begin(), it)];
const ImageInfo& info = overlap.info;
if (!IsBlockLinearSizeCompatible(new_info, info, base.level, 0, strict_size)) {
@@ -573,10 +585,6 @@ u32 CalculateUnswizzledSizeBytes(const ImageInfo& info) noexcept {
if (info.type == ImageType::Buffer) {
return info.size.width * BytesPerBlock(info.format);
}
- if (info.num_samples > 1) {
- // Multisample images can't be uploaded or downloaded to the host
- return 0;
- }
if (info.type == ImageType::Linear) {
return info.pitch * Common::DivCeil(info.size.height, DefaultBlockHeight(info.format));
}
@@ -589,6 +597,21 @@ u32 CalculateConvertedSizeBytes(const ImageInfo& info) noexcept {
return info.size.width * BytesPerBlock(info.format);
}
static constexpr Extent2D TILE_SIZE{1, 1};
+ if (IsPixelFormatASTC(info.format) && Settings::values.astc_recompression.GetValue() !=
+ Settings::AstcRecompression::Uncompressed) {
+ const u32 bpp_div =
+ Settings::values.astc_recompression.GetValue() == Settings::AstcRecompression::Bc1 ? 2
+ : 1;
+ // NumBlocksPerLayer doesn't account for this correctly, so we have to do it manually.
+ u32 output_size = 0;
+ for (s32 i = 0; i < info.resources.levels; i++) {
+ const auto mip_size = AdjustMipSize(info.size, i);
+ const u32 plane_dim =
+ Common::AlignUp(mip_size.width, 4U) * Common::AlignUp(mip_size.height, 4U);
+ output_size += (plane_dim * info.size.depth * info.resources.layers) / bpp_div;
+ }
+ return output_size;
+ }
return NumBlocksPerLayer(info, TILE_SIZE) * info.resources.layers * CONVERTED_BYTES_PER_BLOCK;
}
@@ -632,9 +655,9 @@ LevelArray CalculateMipLevelSizes(const ImageInfo& info) noexcept {
return sizes;
}
-std::vector<u32> CalculateSliceOffsets(const ImageInfo& info) {
+boost::container::small_vector<u32, 16> CalculateSliceOffsets(const ImageInfo& info) {
ASSERT(info.type == ImageType::e3D);
- std::vector<u32> offsets;
+ boost::container::small_vector<u32, 16> offsets;
offsets.reserve(NumSlices(info));
const LevelInfo level_info = MakeLevelInfo(info);
@@ -656,9 +679,10 @@ std::vector<u32> CalculateSliceOffsets(const ImageInfo& info) {
return offsets;
}
-std::vector<SubresourceBase> CalculateSliceSubresources(const ImageInfo& info) {
+boost::container::small_vector<SubresourceBase, 16> CalculateSliceSubresources(
+ const ImageInfo& info) {
ASSERT(info.type == ImageType::e3D);
- std::vector<SubresourceBase> subresources;
+ boost::container::small_vector<SubresourceBase, 16> subresources;
subresources.reserve(NumSlices(info));
for (s32 level = 0; level < info.resources.levels; ++level) {
const s32 depth = AdjustMipSize(info.size.depth, level);
@@ -700,10 +724,11 @@ ImageViewType RenderTargetImageViewType(const ImageInfo& info) noexcept {
}
}
-std::vector<ImageCopy> MakeShrinkImageCopies(const ImageInfo& dst, const ImageInfo& src,
- SubresourceBase base, u32 up_scale, u32 down_shift) {
+boost::container::small_vector<ImageCopy, 16> MakeShrinkImageCopies(const ImageInfo& dst,
+ const ImageInfo& src,
+ SubresourceBase base,
+ u32 up_scale, u32 down_shift) {
ASSERT(dst.resources.levels >= src.resources.levels);
- ASSERT(dst.num_samples == src.num_samples);
const bool is_dst_3d = dst.type == ImageType::e3D;
if (is_dst_3d) {
@@ -711,7 +736,7 @@ std::vector<ImageCopy> MakeShrinkImageCopies(const ImageInfo& dst, const ImageIn
ASSERT(src.resources.levels == 1);
}
const bool both_2d{src.type == ImageType::e2D && dst.type == ImageType::e2D};
- std::vector<ImageCopy> copies;
+ boost::container::small_vector<ImageCopy, 16> copies;
copies.reserve(src.resources.levels);
for (s32 level = 0; level < src.resources.levels; ++level) {
ImageCopy& copy = copies.emplace_back();
@@ -748,6 +773,45 @@ std::vector<ImageCopy> MakeShrinkImageCopies(const ImageInfo& dst, const ImageIn
return copies;
}
+boost::container::small_vector<ImageCopy, 16> MakeReinterpretImageCopies(const ImageInfo& src,
+ u32 up_scale,
+ u32 down_shift) {
+ boost::container::small_vector<ImageCopy, 16> copies;
+ copies.reserve(src.resources.levels);
+ const bool is_3d = src.type == ImageType::e3D;
+ for (s32 level = 0; level < src.resources.levels; ++level) {
+ ImageCopy& copy = copies.emplace_back();
+ copy.src_subresource = SubresourceLayers{
+ .base_level = level,
+ .base_layer = 0,
+ .num_layers = src.resources.layers,
+ };
+ copy.dst_subresource = SubresourceLayers{
+ .base_level = level,
+ .base_layer = 0,
+ .num_layers = src.resources.layers,
+ };
+ copy.src_offset = Offset3D{
+ .x = 0,
+ .y = 0,
+ .z = 0,
+ };
+ copy.dst_offset = Offset3D{
+ .x = 0,
+ .y = 0,
+ .z = 0,
+ };
+ const Extent3D mip_size = AdjustMipSize(src.size, level);
+ copy.extent = AdjustSamplesSize(mip_size, src.num_samples);
+ if (is_3d) {
+ copy.extent.depth = src.size.depth;
+ }
+ copy.extent.width = std::max<u32>((copy.extent.width * up_scale) >> down_shift, 1);
+ copy.extent.height = std::max<u32>((copy.extent.height * up_scale) >> down_shift, 1);
+ }
+ return copies;
+}
+
bool IsValidEntry(const Tegra::MemoryManager& gpu_memory, const TICEntry& config) {
const GPUVAddr address = config.Address();
if (address == 0) {
@@ -764,9 +828,11 @@ bool IsValidEntry(const Tegra::MemoryManager& gpu_memory, const TICEntry& config
return gpu_memory.GpuToCpuAddress(address, guest_size_bytes).has_value();
}
-std::vector<BufferImageCopy> UnswizzleImage(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr,
- const ImageInfo& info, std::span<const u8> input,
- std::span<u8> output) {
+boost::container::small_vector<BufferImageCopy, 16> UnswizzleImage(Tegra::MemoryManager& gpu_memory,
+ GPUVAddr gpu_addr,
+ const ImageInfo& info,
+ std::span<const u8> input,
+ std::span<u8> output) {
const size_t guest_size_bytes = input.size_bytes();
const u32 bpp_log2 = BytesPerBlockLog2(info.format);
const Extent3D size = info.size;
@@ -801,7 +867,7 @@ std::vector<BufferImageCopy> UnswizzleImage(Tegra::MemoryManager& gpu_memory, GP
info.tile_width_spacing);
size_t guest_offset = 0;
u32 host_offset = 0;
- std::vector<BufferImageCopy> copies(num_levels);
+ boost::container::small_vector<BufferImageCopy, 16> copies(num_levels);
for (s32 level = 0; level < num_levels; ++level) {
const Extent3D level_size = AdjustMipSize(size, level);
@@ -852,6 +918,7 @@ BufferCopy UploadBufferCopy(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr,
void ConvertImage(std::span<const u8> input, const ImageInfo& info, std::span<u8> output,
std::span<BufferImageCopy> copies) {
u32 output_offset = 0;
+ Common::ScratchBuffer<u8> decode_scratch;
const Extent2D tile_size = DefaultBlockSize(info.format);
for (BufferImageCopy& copy : copies) {
@@ -862,26 +929,62 @@ void ConvertImage(std::span<const u8> input, const ImageInfo& info, std::span<u8
ASSERT(copy.image_extent == mip_size);
ASSERT(copy.buffer_row_length == Common::AlignUp(mip_size.width, tile_size.width));
ASSERT(copy.buffer_image_height == Common::AlignUp(mip_size.height, tile_size.height));
- if (IsPixelFormatASTC(info.format)) {
- ASSERT(copy.image_extent.depth == 1);
- Tegra::Texture::ASTC::Decompress(input.subspan(copy.buffer_offset),
- copy.image_extent.width, copy.image_extent.height,
- copy.image_subresource.num_layers, tile_size.width,
- tile_size.height, output.subspan(output_offset));
- } else {
- DecompressBC4(input.subspan(copy.buffer_offset), copy.image_extent,
- output.subspan(output_offset));
- }
+
+ const auto input_offset = input.subspan(copy.buffer_offset);
copy.buffer_offset = output_offset;
copy.buffer_row_length = mip_size.width;
copy.buffer_image_height = mip_size.height;
- output_offset += copy.image_extent.width * copy.image_extent.height *
- copy.image_subresource.num_layers * CONVERTED_BYTES_PER_BLOCK;
+ const auto recompression_setting = Settings::values.astc_recompression.GetValue();
+ const bool astc = IsPixelFormatASTC(info.format);
+
+ if (astc && recompression_setting == Settings::AstcRecompression::Uncompressed) {
+ Tegra::Texture::ASTC::Decompress(
+ input_offset, copy.image_extent.width, copy.image_extent.height,
+ copy.image_subresource.num_layers * copy.image_extent.depth, tile_size.width,
+ tile_size.height, output.subspan(output_offset));
+
+ output_offset += copy.image_extent.width * copy.image_extent.height *
+ copy.image_subresource.num_layers * CONVERTED_BYTES_PER_BLOCK;
+ } else if (astc) {
+ // BC1 uses 0.5 bytes per texel
+ // BC3 uses 1 byte per texel
+ const auto compress = recompression_setting == Settings::AstcRecompression::Bc1
+ ? Tegra::Texture::BCN::CompressBC1
+ : Tegra::Texture::BCN::CompressBC3;
+ const auto bpp_div = recompression_setting == Settings::AstcRecompression::Bc1 ? 2 : 1;
+
+ const u32 plane_dim = copy.image_extent.width * copy.image_extent.height;
+ const u32 level_size = plane_dim * copy.image_extent.depth *
+ copy.image_subresource.num_layers * CONVERTED_BYTES_PER_BLOCK;
+ decode_scratch.resize_destructive(level_size);
+
+ Tegra::Texture::ASTC::Decompress(
+ input_offset, copy.image_extent.width, copy.image_extent.height,
+ copy.image_subresource.num_layers * copy.image_extent.depth, tile_size.width,
+ tile_size.height, decode_scratch);
+
+ compress(decode_scratch, copy.image_extent.width, copy.image_extent.height,
+ copy.image_subresource.num_layers * copy.image_extent.depth,
+ output.subspan(output_offset));
+
+ const u32 aligned_plane_dim = Common::AlignUp(copy.image_extent.width, 4) *
+ Common::AlignUp(copy.image_extent.height, 4);
+
+ copy.buffer_size =
+ (aligned_plane_dim * copy.image_extent.depth * copy.image_subresource.num_layers) /
+ bpp_div;
+ output_offset += static_cast<u32>(copy.buffer_size);
+ } else {
+ DecompressBC4(input_offset, copy.image_extent, output.subspan(output_offset));
+
+ output_offset += copy.image_extent.width * copy.image_extent.height *
+ copy.image_subresource.num_layers * CONVERTED_BYTES_PER_BLOCK;
+ }
}
}
-std::vector<BufferImageCopy> FullDownloadCopies(const ImageInfo& info) {
+boost::container::small_vector<BufferImageCopy, 16> FullDownloadCopies(const ImageInfo& info) {
const Extent3D size = info.size;
const u32 bytes_per_block = BytesPerBlock(info.format);
if (info.type == ImageType::Linear) {
@@ -909,7 +1012,7 @@ std::vector<BufferImageCopy> FullDownloadCopies(const ImageInfo& info) {
u32 host_offset = 0;
- std::vector<BufferImageCopy> copies(num_levels);
+ boost::container::small_vector<BufferImageCopy, 16> copies(num_levels);
for (s32 level = 0; level < num_levels; ++level) {
const Extent3D level_size = AdjustMipSize(size, level);
const u32 num_blocks_per_layer = NumBlocks(level_size, tile_size);
@@ -945,10 +1048,10 @@ Extent3D MipBlockSize(const ImageInfo& info, u32 level) {
return AdjustMipBlockSize(num_tiles, level_info.block, level);
}
-std::vector<SwizzleParameters> FullUploadSwizzles(const ImageInfo& info) {
+boost::container::small_vector<SwizzleParameters, 16> FullUploadSwizzles(const ImageInfo& info) {
const Extent2D tile_size = DefaultBlockSize(info.format);
if (info.type == ImageType::Linear) {
- return std::vector{SwizzleParameters{
+ return {SwizzleParameters{
.num_tiles = AdjustTileSize(info.size, tile_size),
.block = {},
.buffer_offset = 0,
@@ -960,7 +1063,7 @@ std::vector<SwizzleParameters> FullUploadSwizzles(const ImageInfo& info) {
const s32 num_levels = info.resources.levels;
u32 guest_offset = 0;
- std::vector<SwizzleParameters> params(num_levels);
+ boost::container::small_vector<SwizzleParameters, 16> params(num_levels);
for (s32 level = 0; level < num_levels; ++level) {
const Extent3D level_size = AdjustMipSize(size, level);
const Extent3D num_tiles = AdjustTileSize(level_size, tile_size);
@@ -1004,6 +1107,20 @@ bool IsBlockLinearSizeCompatible(const ImageInfo& lhs, const ImageInfo& rhs, u32
}
}
+bool IsBlockLinearSizeCompatibleBPPRelaxed(const ImageInfo& lhs, const ImageInfo& rhs,
+ u32 lhs_level, u32 rhs_level) noexcept {
+ ASSERT(lhs.type != ImageType::Linear);
+ ASSERT(rhs.type != ImageType::Linear);
+ const auto lhs_bpp = BytesPerBlock(lhs.format);
+ const auto rhs_bpp = BytesPerBlock(rhs.format);
+ const Extent3D lhs_size = AdjustMipSize(lhs.size, lhs_level);
+ const Extent3D rhs_size = AdjustMipSize(rhs.size, rhs_level);
+ return Common::AlignUpLog2(lhs_size.width * lhs_bpp, GOB_SIZE_X_SHIFT) ==
+ Common::AlignUpLog2(rhs_size.width * rhs_bpp, GOB_SIZE_X_SHIFT) &&
+ Common::AlignUpLog2(lhs_size.height, GOB_SIZE_Y_SHIFT) ==
+ Common::AlignUpLog2(rhs_size.height, GOB_SIZE_Y_SHIFT);
+}
+
bool IsPitchLinearSameSize(const ImageInfo& lhs, const ImageInfo& rhs, bool strict_size) noexcept {
ASSERT(lhs.type == ImageType::Linear);
ASSERT(rhs.type == ImageType::Linear);
@@ -1078,7 +1195,8 @@ std::optional<SubresourceBase> FindSubresource(const ImageInfo& candidate, const
// Format checking is relaxed, but we still have to check for matching bytes per block.
// This avoids creating a view for blits on UE4 titles where formats with different bytes
// per block are aliased.
- if (BytesPerBlock(existing.format) != BytesPerBlock(candidate.format)) {
+ if (BytesPerBlock(existing.format) != BytesPerBlock(candidate.format) &&
+ False(options & RelaxedOptions::FormatBpp)) {
return std::nullopt;
}
} else {
@@ -1093,10 +1211,8 @@ std::optional<SubresourceBase> FindSubresource(const ImageInfo& candidate, const
if (existing.type != candidate.type) {
return std::nullopt;
}
- if (False(options & RelaxedOptions::Samples)) {
- if (existing.num_samples != candidate.num_samples) {
- return std::nullopt;
- }
+ if (False(options & RelaxedOptions::Samples) && existing.num_samples != candidate.num_samples) {
+ return std::nullopt;
}
if (existing.resources.levels < candidate.resources.levels + base->level) {
return std::nullopt;
@@ -1106,14 +1222,16 @@ std::optional<SubresourceBase> FindSubresource(const ImageInfo& candidate, const
if (mip_depth < candidate.size.depth + base->layer) {
return std::nullopt;
}
- } else {
- if (existing.resources.layers < candidate.resources.layers + base->layer) {
- return std::nullopt;
- }
+ } else if (existing.resources.layers < candidate.resources.layers + base->layer) {
+ return std::nullopt;
}
const bool strict_size = False(options & RelaxedOptions::Size);
if (!IsBlockLinearSizeCompatible(existing, candidate, base->level, 0, strict_size)) {
- return std::nullopt;
+ if (False(options & RelaxedOptions::FormatBpp)) {
+ return std::nullopt;
+ } else if (!IsBlockLinearSizeCompatibleBPPRelaxed(existing, candidate, base->level, 0)) {
+ return std::nullopt;
+ }
}
// TODO: compare block sizes
return base;
@@ -1125,6 +1243,31 @@ bool IsSubresource(const ImageInfo& candidate, const ImageBase& image, GPUVAddr
.has_value();
}
+bool IsSubCopy(const ImageInfo& candidate, const ImageBase& image, GPUVAddr candidate_addr) {
+ const std::optional<SubresourceBase> base = image.TryFindBase(candidate_addr);
+ if (!base) {
+ return false;
+ }
+ const ImageInfo& existing = image.info;
+ if (existing.resources.levels < candidate.resources.levels + base->level) {
+ return false;
+ }
+ if (existing.type == ImageType::e3D) {
+ const u32 mip_depth = std::max(1U, existing.size.depth << base->level);
+ if (mip_depth < candidate.size.depth + base->layer) {
+ return false;
+ }
+ } else {
+ if (existing.resources.layers < candidate.resources.layers + base->layer) {
+ return false;
+ }
+ }
+ if (!IsBlockLinearSizeCompatibleBPPRelaxed(existing, candidate, base->level, 0)) {
+ return false;
+ }
+ return true;
+}
+
void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase* dst,
const ImageBase* src) {
const auto original_dst_format = dst_info.format;
@@ -1160,7 +1303,9 @@ u32 MapSizeBytes(const ImageBase& image) {
static_assert(CalculateLevelSize(LevelInfo{{1920, 1080, 1}, {0, 2, 0}, {1, 1}, 2, 0}, 0) ==
0x7f8000);
-static_assert(CalculateLevelSize(LevelInfo{{32, 32, 1}, {0, 0, 4}, {1, 1}, 4, 0}, 0) == 0x4000);
+static_assert(CalculateLevelSize(LevelInfo{{32, 32, 1}, {0, 0, 4}, {1, 1}, 4, 0}, 0) == 0x40000);
+
+static_assert(CalculateLevelSize(LevelInfo{{128, 8, 1}, {0, 4, 0}, {1, 1}, 4, 0}, 0) == 0x40000);
static_assert(CalculateLevelOffset(PixelFormat::R8_SINT, {1920, 1080, 1}, {0, 2, 0}, 0, 7) ==
0x2afc00);
diff --git a/src/video_core/texture_cache/util.h b/src/video_core/texture_cache/util.h
index d103db8ae..ab45a43c4 100644
--- a/src/video_core/texture_cache/util.h
+++ b/src/video_core/texture_cache/util.h
@@ -5,6 +5,7 @@
#include <optional>
#include <span>
+#include <boost/container/small_vector.hpp>
#include "common/common_types.h"
#include "common/scratch_buffer.h"
@@ -40,9 +41,10 @@ struct OverlapResult {
[[nodiscard]] LevelArray CalculateMipLevelSizes(const ImageInfo& info) noexcept;
-[[nodiscard]] std::vector<u32> CalculateSliceOffsets(const ImageInfo& info);
+[[nodiscard]] boost::container::small_vector<u32, 16> CalculateSliceOffsets(const ImageInfo& info);
-[[nodiscard]] std::vector<SubresourceBase> CalculateSliceSubresources(const ImageInfo& info);
+[[nodiscard]] boost::container::small_vector<SubresourceBase, 16> CalculateSliceSubresources(
+ const ImageInfo& info);
[[nodiscard]] u32 CalculateLevelStrideAlignment(const ImageInfo& info, u32 level);
@@ -51,17 +53,18 @@ struct OverlapResult {
[[nodiscard]] ImageViewType RenderTargetImageViewType(const ImageInfo& info) noexcept;
-[[nodiscard]] std::vector<ImageCopy> MakeShrinkImageCopies(const ImageInfo& dst,
- const ImageInfo& src,
- SubresourceBase base, u32 up_scale = 1,
- u32 down_shift = 0);
+[[nodiscard]] boost::container::small_vector<ImageCopy, 16> MakeShrinkImageCopies(
+ const ImageInfo& dst, const ImageInfo& src, SubresourceBase base, u32 up_scale = 1,
+ u32 down_shift = 0);
+
+[[nodiscard]] boost::container::small_vector<ImageCopy, 16> MakeReinterpretImageCopies(
+ const ImageInfo& src, u32 up_scale = 1, u32 down_shift = 0);
[[nodiscard]] bool IsValidEntry(const Tegra::MemoryManager& gpu_memory, const TICEntry& config);
-[[nodiscard]] std::vector<BufferImageCopy> UnswizzleImage(Tegra::MemoryManager& gpu_memory,
- GPUVAddr gpu_addr, const ImageInfo& info,
- std::span<const u8> input,
- std::span<u8> output);
+[[nodiscard]] boost::container::small_vector<BufferImageCopy, 16> UnswizzleImage(
+ Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr, const ImageInfo& info,
+ std::span<const u8> input, std::span<u8> output);
[[nodiscard]] BufferCopy UploadBufferCopy(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr,
const ImageBase& image, std::span<u8> output);
@@ -69,13 +72,15 @@ struct OverlapResult {
void ConvertImage(std::span<const u8> input, const ImageInfo& info, std::span<u8> output,
std::span<BufferImageCopy> copies);
-[[nodiscard]] std::vector<BufferImageCopy> FullDownloadCopies(const ImageInfo& info);
+[[nodiscard]] boost::container::small_vector<BufferImageCopy, 16> FullDownloadCopies(
+ const ImageInfo& info);
[[nodiscard]] Extent3D MipSize(Extent3D size, u32 level);
[[nodiscard]] Extent3D MipBlockSize(const ImageInfo& info, u32 level);
-[[nodiscard]] std::vector<SwizzleParameters> FullUploadSwizzles(const ImageInfo& info);
+[[nodiscard]] boost::container::small_vector<SwizzleParameters, 16> FullUploadSwizzles(
+ const ImageInfo& info);
void SwizzleImage(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr, const ImageInfo& info,
std::span<const BufferImageCopy> copies, std::span<const u8> memory,
@@ -88,6 +93,9 @@ void SwizzleImage(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr, const Ima
[[nodiscard]] bool IsPitchLinearSameSize(const ImageInfo& lhs, const ImageInfo& rhs,
bool strict_size) noexcept;
+[[nodiscard]] bool IsBlockLinearSizeCompatibleBPPRelaxed(const ImageInfo& lhs, const ImageInfo& rhs,
+ u32 lhs_level, u32 rhs_level) noexcept;
+
[[nodiscard]] std::optional<OverlapResult> ResolveOverlap(const ImageInfo& new_info,
GPUVAddr gpu_addr, VAddr cpu_addr,
const ImageBase& overlap,
@@ -106,6 +114,9 @@ void SwizzleImage(Tegra::MemoryManager& gpu_memory, GPUVAddr gpu_addr, const Ima
GPUVAddr candidate_addr, RelaxedOptions options, bool broken_views,
bool native_bgr);
+[[nodiscard]] bool IsSubCopy(const ImageInfo& candidate, const ImageBase& image,
+ GPUVAddr candidate_addr);
+
void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase* dst,
const ImageBase* src);
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp
index e8d7c7863..fef0be31d 100644
--- a/src/video_core/textures/astc.cpp
+++ b/src/video_core/textures/astc.cpp
@@ -16,8 +16,8 @@
#include "common/alignment.h"
#include "common/common_types.h"
#include "common/polyfill_ranges.h"
-#include "common/thread_worker.h"
#include "video_core/textures/astc.h"
+#include "video_core/textures/workers.h"
class InputBitStream {
public:
@@ -1571,7 +1571,7 @@ static void DecompressBlock(std::span<const u8, 16> inBuf, const u32 blockWidth,
assert(strm.GetBitsRead() + weightParams.GetPackedBitSize() == 128);
// Decode both color data and texel weight data
- u32 colorValues[32]; // Four values, two endpoints, four maximum paritions
+ u32 colorValues[32]; // Four values, two endpoints, four maximum partitions
DecodeColorValues(colorValues, colorEndpointData, colorEndpointMode, nPartitions,
colorDataBits);
@@ -1656,8 +1656,7 @@ void Decompress(std::span<const uint8_t> data, uint32_t width, uint32_t height,
const u32 rows = Common::DivideUp(height, block_height);
const u32 cols = Common::DivideUp(width, block_width);
- Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2,
- "ASTCDecompress"};
+ Common::ThreadWorker& workers{GetThreadWorkers()};
for (u32 z = 0; z < depth; ++z) {
const u32 depth_offset = z * height * width * 4;
diff --git a/src/video_core/textures/bcn.cpp b/src/video_core/textures/bcn.cpp
new file mode 100644
index 000000000..671212a49
--- /dev/null
+++ b/src/video_core/textures/bcn.cpp
@@ -0,0 +1,87 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <stb_dxt.h>
+#include <string.h>
+
+#include "common/alignment.h"
+#include "video_core/textures/bcn.h"
+#include "video_core/textures/workers.h"
+
+namespace Tegra::Texture::BCN {
+
+using BCNCompressor = void(u8* block_output, const u8* block_input, bool any_alpha);
+
+template <u32 BytesPerBlock, bool ThresholdAlpha = false>
+void CompressBCN(std::span<const uint8_t> data, uint32_t width, uint32_t height, uint32_t depth,
+ std::span<uint8_t> output, BCNCompressor f) {
+ constexpr u8 alpha_threshold = 128;
+ constexpr u32 bytes_per_px = 4;
+ const u32 plane_dim = width * height;
+
+ Common::ThreadWorker& workers{GetThreadWorkers()};
+
+ for (u32 z = 0; z < depth; z++) {
+ for (u32 y = 0; y < height; y += 4) {
+ auto compress_row = [z, y, width, height, plane_dim, f, data, output]() {
+ for (u32 x = 0; x < width; x += 4) {
+ // Gather 4x4 block of RGBA texels
+ u8 input_colors[4][4][4];
+ bool any_alpha = false;
+
+ for (u32 j = 0; j < 4; j++) {
+ for (u32 i = 0; i < 4; i++) {
+ const size_t coord =
+ (z * plane_dim + (y + j) * width + (x + i)) * bytes_per_px;
+
+ if ((x + i < width) && (y + j < height)) {
+ if constexpr (ThresholdAlpha) {
+ if (data[coord + 3] >= alpha_threshold) {
+ input_colors[j][i][0] = data[coord + 0];
+ input_colors[j][i][1] = data[coord + 1];
+ input_colors[j][i][2] = data[coord + 2];
+ input_colors[j][i][3] = 255;
+ } else {
+ any_alpha = true;
+ memset(input_colors[j][i], 0, bytes_per_px);
+ }
+ } else {
+ memcpy(input_colors[j][i], &data[coord], bytes_per_px);
+ }
+ } else {
+ memset(input_colors[j][i], 0, bytes_per_px);
+ }
+ }
+ }
+
+ const u32 bytes_per_row = BytesPerBlock * Common::DivideUp(width, 4U);
+ const u32 bytes_per_plane = bytes_per_row * Common::DivideUp(height, 4U);
+ f(output.data() + z * bytes_per_plane + (y / 4) * bytes_per_row +
+ (x / 4) * BytesPerBlock,
+ reinterpret_cast<u8*>(input_colors), any_alpha);
+ }
+ };
+ workers.QueueWork(std::move(compress_row));
+ }
+ workers.WaitForRequests();
+ }
+}
+
+void CompressBC1(std::span<const uint8_t> data, uint32_t width, uint32_t height, uint32_t depth,
+ std::span<uint8_t> output) {
+ CompressBCN<8, true>(data, width, height, depth, output,
+ [](u8* block_output, const u8* block_input, bool any_alpha) {
+ stb_compress_bc1_block(block_output, block_input, any_alpha,
+ STB_DXT_NORMAL);
+ });
+}
+
+void CompressBC3(std::span<const uint8_t> data, uint32_t width, uint32_t height, uint32_t depth,
+ std::span<uint8_t> output) {
+ CompressBCN<16, false>(data, width, height, depth, output,
+ [](u8* block_output, const u8* block_input, bool any_alpha) {
+ stb_compress_bc3_block(block_output, block_input, STB_DXT_NORMAL);
+ });
+}
+
+} // namespace Tegra::Texture::BCN
diff --git a/src/video_core/textures/bcn.h b/src/video_core/textures/bcn.h
new file mode 100644
index 000000000..6464af885
--- /dev/null
+++ b/src/video_core/textures/bcn.h
@@ -0,0 +1,17 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <span>
+#include <stdint.h>
+
+namespace Tegra::Texture::BCN {
+
+void CompressBC1(std::span<const uint8_t> data, uint32_t width, uint32_t height, uint32_t depth,
+ std::span<uint8_t> output);
+
+void CompressBC3(std::span<const uint8_t> data, uint32_t width, uint32_t height, uint32_t depth,
+ std::span<uint8_t> output);
+
+} // namespace Tegra::Texture::BCN
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp
index 59120cd09..95bcdd37b 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -29,7 +29,7 @@ constexpr u32 pdep(u32 value) {
template <u32 mask, u32 incr_amount>
void incrpdep(u32& value) {
- constexpr u32 swizzled_incr = pdep<mask>(incr_amount);
+ static constexpr u32 swizzled_incr = pdep<mask>(incr_amount);
value = ((value | ~mask) + swizzled_incr) & mask;
}
diff --git a/src/video_core/textures/texture.cpp b/src/video_core/textures/texture.cpp
index 26649aebf..d8b88d9bc 100644
--- a/src/video_core/textures/texture.cpp
+++ b/src/video_core/textures/texture.cpp
@@ -14,7 +14,7 @@ namespace Tegra::Texture {
namespace {
-constexpr std::array<float, 256> SRGB_CONVERSION_LUT = {
+[[maybe_unused]] constexpr std::array<float, 256> SRGB_CONVERSION_LUT = {
0.000000f, 0.000000f, 0.000000f, 0.000012f, 0.000021f, 0.000033f, 0.000046f, 0.000062f,
0.000081f, 0.000102f, 0.000125f, 0.000151f, 0.000181f, 0.000214f, 0.000251f, 0.000293f,
0.000338f, 0.000388f, 0.000443f, 0.000503f, 0.000568f, 0.000639f, 0.000715f, 0.000798f,
@@ -52,15 +52,22 @@ constexpr std::array<float, 256> SRGB_CONVERSION_LUT = {
} // Anonymous namespace
std::array<float, 4> TSCEntry::BorderColor() const noexcept {
- if (!srgb_conversion) {
- return border_color;
- }
- return {SRGB_CONVERSION_LUT[srgb_border_color_r], SRGB_CONVERSION_LUT[srgb_border_color_g],
- SRGB_CONVERSION_LUT[srgb_border_color_b], border_color[3]};
+ // TODO: Handle SRGB correctly. Using this breaks shadows in some games (Xenoblade).
+ // if (!srgb_conversion) {
+ // return border_color;
+ //}
+ // return {SRGB_CONVERSION_LUT[srgb_border_color_r], SRGB_CONVERSION_LUT[srgb_border_color_g],
+ // SRGB_CONVERSION_LUT[srgb_border_color_b], border_color[3]};
+ return border_color;
}
float TSCEntry::MaxAnisotropy() const noexcept {
- if (max_anisotropy == 0 && mipmap_filter != TextureMipmapFilter::Linear) {
+ const bool is_suitable_mipmap_filter = mipmap_filter != TextureMipmapFilter::None;
+ const bool has_regular_lods = min_lod_clamp == 0 && max_lod_clamp >= 256;
+ const bool is_bilinear_filter = min_filter == TextureFilter::Linear &&
+ reduction_filter == SamplerReduction::WeightedAverage;
+ if (max_anisotropy == 0 && (!is_suitable_mipmap_filter || !has_regular_lods ||
+ !is_bilinear_filter || depth_compare_enabled)) {
return 1.0f;
}
const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h
index 7c4553a53..7e5837b20 100644
--- a/src/video_core/textures/texture.h
+++ b/src/video_core/textures/texture.h
@@ -15,26 +15,26 @@ enum class TextureFormat : u32 {
R32G32B32 = 0x02,
R16G16B16A16 = 0x03,
R32G32 = 0x04,
- R32_B24G8 = 0x05,
+ R32B24G8 = 0x05,
ETC2_RGB = 0x06,
X8B8G8R8 = 0x07,
- A8R8G8B8 = 0x08,
+ A8B8G8R8 = 0x08,
A2B10G10R10 = 0x09,
ETC2_RGB_PTA = 0x0a,
ETC2_RGBA = 0x0b,
R16G16 = 0x0c,
- R24G8 = 0x0d,
- R8G24 = 0x0e,
+ G8R24 = 0x0d,
+ G24R8 = 0x0e,
R32 = 0x0f,
- BC6H_SFLOAT = 0x10,
- BC6H_UFLOAT = 0x11,
+ BC6H_S16 = 0x10,
+ BC6H_U16 = 0x11,
A4B4G4R4 = 0x12,
A5B5G5R1 = 0x13,
A1B5G5R5 = 0x14,
B5G6R5 = 0x15,
B6G5R5 = 0x16,
- BC7 = 0x17,
- R8G8 = 0x18,
+ BC7U = 0x17,
+ G8R8 = 0x18,
EAC = 0x19,
EACX2 = 0x1a,
R16 = 0x1b,
@@ -46,33 +46,33 @@ enum class TextureFormat : u32 {
B10G11R11 = 0x21,
G8B8G8R8 = 0x22,
B8G8R8G8 = 0x23,
- BC1_RGBA = 0x24,
- BC2 = 0x25,
- BC3 = 0x26,
- BC4 = 0x27,
- BC5 = 0x28,
- S8D24 = 0x29,
- X8D24 = 0x2a,
- D24S8 = 0x2b,
- X4V4D24__COV4R4V = 0x2c,
- X4V4D24__COV8R8V = 0x2d,
- V8D24__COV4R12V = 0x2e,
- D32 = 0x2f,
- D32S8 = 0x30,
- X8D24_X20V4S8__COV4R4V = 0x31,
- X8D24_X20V4S8__COV8R8V = 0x32,
- D32_X20V4X8__COV4R4V = 0x33,
- D32_X20V4X8__COV8R8V = 0x34,
- D32_X20V4S8__COV4R4V = 0x35,
- D32_X20V4S8__COV8R8V = 0x36,
- X8D24_X16V8S8__COV4R12V = 0x37,
- D32_X16V8X8__COV4R12V = 0x38,
- D32_X16V8S8__COV4R12V = 0x39,
- D16 = 0x3a,
- V8D24__COV8R24V = 0x3b,
- X8D24_X16V8S8__COV8R24V = 0x3c,
- D32_X16V8X8__COV8R24V = 0x3d,
- D32_X16V8S8__COV8R24V = 0x3e,
+ DXT1 = 0x24,
+ DXT23 = 0x25,
+ DXT45 = 0x26,
+ DXN1 = 0x27,
+ DXN2 = 0x28,
+ Z24S8 = 0x29,
+ X8Z24 = 0x2a,
+ S8Z24 = 0x2b,
+ X4V4Z24__COV4R4V = 0x2c,
+ X4V4Z24__COV8R8V = 0x2d,
+ V8Z24__COV4R12V = 0x2e,
+ Z32 = 0x2f,
+ Z32_X24S8 = 0x30,
+ X8Z24_X20V4S8__COV4R4V = 0x31,
+ X8Z24_X20V4S8__COV8R8V = 0x32,
+ Z32_X20V4X8__COV4R4V = 0x33,
+ Z32_X20V4X8__COV8R8V = 0x34,
+ Z32_X20V4S8__COV4R4V = 0x35,
+ Z32_X20V4S8__COV8R8V = 0x36,
+ X8Z24_X16V8S8__COV4R12V = 0x37,
+ Z32_X16V8X8__COV4R12V = 0x38,
+ Z32_X16V8S8__COV4R12V = 0x39,
+ Z16 = 0x3a,
+ V8Z24__COV8R24V = 0x3b,
+ X8Z24_X16V8S8__COV8R24V = 0x3c,
+ Z32_X16V8X8__COV8R24V = 0x3d,
+ Z32_X16V8S8__COV8R24V = 0x3e,
ASTC_2D_4X4 = 0x40,
ASTC_2D_5X5 = 0x41,
ASTC_2D_6X6 = 0x42,
diff --git a/src/video_core/textures/workers.cpp b/src/video_core/textures/workers.cpp
new file mode 100644
index 000000000..a71c305f4
--- /dev/null
+++ b/src/video_core/textures/workers.cpp
@@ -0,0 +1,15 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "video_core/textures/workers.h"
+
+namespace Tegra::Texture {
+
+Common::ThreadWorker& GetThreadWorkers() {
+ static Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2,
+ "ImageTranscode"};
+
+ return workers;
+}
+
+} // namespace Tegra::Texture
diff --git a/src/video_core/textures/workers.h b/src/video_core/textures/workers.h
new file mode 100644
index 000000000..008dd05b3
--- /dev/null
+++ b/src/video_core/textures/workers.h
@@ -0,0 +1,12 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "common/thread_worker.h"
+
+namespace Tegra::Texture {
+
+Common::ThreadWorker& GetThreadWorkers();
+
+}
diff --git a/src/video_core/transform_feedback.cpp b/src/video_core/transform_feedback.cpp
index 155599316..1f353d2df 100644
--- a/src/video_core/transform_feedback.cpp
+++ b/src/video_core/transform_feedback.cpp
@@ -13,7 +13,7 @@
namespace VideoCommon {
-std::vector<Shader::TransformFeedbackVarying> MakeTransformFeedbackVaryings(
+std::pair<std::array<Shader::TransformFeedbackVarying, 256>, u32> MakeTransformFeedbackVaryings(
const TransformFeedbackState& state) {
static constexpr std::array VECTORS{
28U, // gl_Position
@@ -62,7 +62,8 @@ std::vector<Shader::TransformFeedbackVarying> MakeTransformFeedbackVaryings(
216U, // gl_TexCoord[6]
220U, // gl_TexCoord[7]
};
- std::vector<Shader::TransformFeedbackVarying> xfb(256);
+ std::array<Shader::TransformFeedbackVarying, 256> xfb{};
+ u32 count{0};
for (size_t buffer = 0; buffer < state.layouts.size(); ++buffer) {
const auto& locations = state.varyings[buffer];
const auto& layout = state.layouts[buffer];
@@ -103,11 +104,12 @@ std::vector<Shader::TransformFeedbackVarying> MakeTransformFeedbackVaryings(
}
}
xfb[attribute] = varying;
+ count = std::max(count, attribute);
highest = std::max(highest, (base_offset + varying.components) * 4);
}
UNIMPLEMENTED_IF(highest != layout.stride);
}
- return xfb;
+ return {xfb, count + 1};
}
} // namespace VideoCommon
diff --git a/src/video_core/transform_feedback.h b/src/video_core/transform_feedback.h
index d13eb16c3..401b1352a 100644
--- a/src/video_core/transform_feedback.h
+++ b/src/video_core/transform_feedback.h
@@ -24,7 +24,7 @@ struct TransformFeedbackState {
varyings;
};
-std::vector<Shader::TransformFeedbackVarying> MakeTransformFeedbackVaryings(
+std::pair<std::array<Shader::TransformFeedbackVarying, 256>, u32> MakeTransformFeedbackVaryings(
const TransformFeedbackState& state);
} // namespace VideoCommon
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp
index fedb4a7bb..b42d48416 100644
--- a/src/video_core/video_core.cpp
+++ b/src/video_core/video_core.cpp
@@ -18,7 +18,7 @@ std::unique_ptr<VideoCore::RendererBase> CreateRenderer(
Core::System& system, Core::Frontend::EmuWindow& emu_window, Tegra::GPU& gpu,
std::unique_ptr<Core::Frontend::GraphicsContext> context) {
auto& telemetry_session = system.TelemetrySession();
- auto& cpu_memory = system.Memory();
+ auto& cpu_memory = system.ApplicationMemory();
switch (Settings::values.renderer_backend.GetValue()) {
case Settings::RendererBackend::OpenGL:
diff --git a/src/video_core/vulkan_common/vulkan_debug_callback.cpp b/src/video_core/vulkan_common/vulkan_debug_callback.cpp
index 10a001b8f..9de484c29 100644
--- a/src/video_core/vulkan_common/vulkan_debug_callback.cpp
+++ b/src/video_core/vulkan_common/vulkan_debug_callback.cpp
@@ -13,11 +13,39 @@ VkBool32 Callback(VkDebugUtilsMessageSeverityFlagBitsEXT severity,
[[maybe_unused]] void* user_data) {
// Skip logging known false-positive validation errors
switch (static_cast<u32>(data->messageIdNumber)) {
+#ifdef ANDROID
+ case 0xbf9cf353u: // VUID-vkCmdBindVertexBuffers2-pBuffers-04111
+ // The below are due to incorrect reporting of extendedDynamicState
+ case 0x1093bebbu: // VUID-vkCmdSetCullMode-None-03384
+ case 0x9215850fu: // VUID-vkCmdSetDepthTestEnable-None-03352
+ case 0x86bf18dcu: // VUID-vkCmdSetDepthWriteEnable-None-03354
+ case 0x0792ad08u: // VUID-vkCmdSetStencilOp-None-03351
+ case 0x93e1ba4eu: // VUID-vkCmdSetFrontFace-None-03383
+ case 0xac9c13c5u: // VUID-vkCmdSetStencilTestEnable-None-03350
+ case 0xc9a2001bu: // VUID-vkCmdSetDepthBoundsTestEnable-None-03349
+ case 0x8b7159a7u: // VUID-vkCmdSetDepthCompareOp-None-03353
+ // The below are due to incorrect reporting of extendedDynamicState2
+ case 0xb13c8036u: // VUID-vkCmdSetDepthBiasEnable-None-04872
+ case 0xdff2e5c1u: // VUID-vkCmdSetRasterizerDiscardEnable-None-04871
+ case 0x0cc85f41u: // VUID-vkCmdSetPrimitiveRestartEnable-None-04866
+ case 0x01257b492: // VUID-vkCmdSetLogicOpEXT-None-0486
+ // The below are due to incorrect reporting of vertexInputDynamicState
+ case 0x398e0dabu: // VUID-vkCmdSetVertexInputEXT-None-04790
+ // The below are due to incorrect reporting of extendedDynamicState3
+ case 0x970c11a5u: // VUID-vkCmdSetColorWriteMaskEXT-extendedDynamicState3ColorWriteMask-07364
+ case 0x6b453f78u: // VUID-vkCmdSetColorBlendEnableEXT-extendedDynamicState3ColorBlendEnable-07355
+ case 0xf66469d0u: // VUID-vkCmdSetColorBlendEquationEXT-extendedDynamicState3ColorBlendEquation-07356
+ case 0x1d43405eu: // VUID-vkCmdSetLogicOpEnableEXT-extendedDynamicState3LogicOpEnable-07365
+ case 0x638462e8u: // VUID-vkCmdSetDepthClampEnableEXT-extendedDynamicState3DepthClampEnable-07448
+ // Misc
+ case 0xe0a2da61u: // VUID-vkCmdDrawIndexed-format-07753
+#else
case 0x682a878au: // VUID-vkCmdBindVertexBuffers2EXT-pBuffers-parameter
case 0x99fb7dfdu: // UNASSIGNED-RequiredParameter (vkCmdBindVertexBuffers2EXT pBuffers[0])
case 0xe8616bf2u: // Bound VkDescriptorSet 0x0[] was destroyed. Likely push_descriptor related
case 0x1608dec0u: // Image layout in vkUpdateDescriptorSet doesn't match descriptor use
case 0x55362756u: // Descriptor binding and framebuffer attachment overlap
+#endif
return VK_FALSE;
default:
break;
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 23d922e5d..e4ca65b58 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -18,6 +18,12 @@
#include "video_core/vulkan_common/vulkan_device.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
+#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
+#include <adrenotools/bcenabler.h>
+#endif
+
+#include <vk_mem_alloc.h>
+
namespace Vulkan {
using namespace Common::Literals;
namespace {
@@ -262,6 +268,32 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica
return format_properties;
}
+#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
+void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format_properties) {
+ // These properties are extracted from Adreno driver 512.687.0
+ constexpr VkFormatFeatureFlags tiling_features{
+ VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT | VK_FORMAT_FEATURE_BLIT_SRC_BIT |
+ VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT | VK_FORMAT_FEATURE_TRANSFER_SRC_BIT |
+ VK_FORMAT_FEATURE_TRANSFER_DST_BIT};
+
+ constexpr VkFormatFeatureFlags buffer_features{VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT};
+
+ static constexpr std::array bcn_formats{
+ VK_FORMAT_BC1_RGBA_SRGB_BLOCK, VK_FORMAT_BC1_RGBA_UNORM_BLOCK, VK_FORMAT_BC2_SRGB_BLOCK,
+ VK_FORMAT_BC2_UNORM_BLOCK, VK_FORMAT_BC3_SRGB_BLOCK, VK_FORMAT_BC3_UNORM_BLOCK,
+ VK_FORMAT_BC4_SNORM_BLOCK, VK_FORMAT_BC4_UNORM_BLOCK, VK_FORMAT_BC5_SNORM_BLOCK,
+ VK_FORMAT_BC5_UNORM_BLOCK, VK_FORMAT_BC6H_SFLOAT_BLOCK, VK_FORMAT_BC6H_UFLOAT_BLOCK,
+ VK_FORMAT_BC7_SRGB_BLOCK, VK_FORMAT_BC7_UNORM_BLOCK,
+ };
+
+ for (const auto format : bcn_formats) {
+ format_properties[format].linearTilingFeatures = tiling_features;
+ format_properties[format].optimalTilingFeatures = tiling_features;
+ format_properties[format].bufferFeatures = buffer_features;
+ }
+}
+#endif
+
NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical,
const std::set<std::string, std::less<>>& exts) {
if (exts.contains(VK_KHR_FRAGMENT_SHADING_RATE_EXTENSION_NAME)) {
@@ -286,6 +318,7 @@ NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical,
std::vector<const char*> ExtensionListForVulkan(
const std::set<std::string, std::less<>>& extensions) {
std::vector<const char*> output;
+ output.reserve(extensions.size());
for (const auto& extension : extensions) {
output.push_back(extension.c_str());
}
@@ -302,6 +335,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
const bool is_suitable = GetSuitability(surface != nullptr);
const VkDriverId driver_id = properties.driver.driverID;
+ const auto device_id = properties.properties.deviceID;
const bool is_radv = driver_id == VK_DRIVER_ID_MESA_RADV;
const bool is_amd_driver =
driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE;
@@ -310,9 +344,13 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
const bool is_intel_anv = driver_id == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA;
const bool is_nvidia = driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY;
const bool is_mvk = driver_id == VK_DRIVER_ID_MOLTENVK;
+ const bool is_qualcomm = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY;
+ const bool is_turnip = driver_id == VK_DRIVER_ID_MESA_TURNIP;
+ const bool is_s8gen2 = device_id == 0x43050a01;
+ const bool is_arm = driver_id == VK_DRIVER_ID_ARM_PROPRIETARY;
- if (is_mvk && !is_suitable) {
- LOG_WARNING(Render_Vulkan, "Unsuitable driver is MoltenVK, continuing anyway");
+ if ((is_mvk || is_qualcomm || is_turnip) && !is_suitable) {
+ LOG_WARNING(Render_Vulkan, "Unsuitable driver, continuing anyway");
} else if (!is_suitable) {
throw vk::Exception(VK_ERROR_INCOMPATIBLE_DRIVER);
}
@@ -352,9 +390,68 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
IsFormatSupported(VK_FORMAT_D24_UNORM_S8_UINT,
VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT, FormatType::Optimal);
+ supports_conditional_barriers = !(is_intel_anv || is_intel_windows);
+
CollectPhysicalMemoryInfo();
CollectToolingInfo();
+ if (is_qualcomm || is_turnip) {
+ LOG_WARNING(Render_Vulkan,
+ "Qualcomm and Turnip drivers have broken VK_EXT_custom_border_color");
+ extensions.custom_border_color = false;
+ loaded_extensions.erase(VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME);
+ }
+
+ if (is_qualcomm) {
+ must_emulate_scaled_formats = true;
+
+ LOG_WARNING(Render_Vulkan, "Qualcomm drivers have broken VK_EXT_extended_dynamic_state");
+ extensions.extended_dynamic_state = false;
+ loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
+
+ LOG_WARNING(Render_Vulkan,
+ "Qualcomm drivers have a slow VK_KHR_push_descriptor implementation");
+ extensions.push_descriptor = false;
+ loaded_extensions.erase(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME);
+
+#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
+ // Patch the driver to enable BCn textures.
+ const auto major = (properties.properties.driverVersion >> 24) << 2;
+ const auto minor = (properties.properties.driverVersion >> 12) & 0xFFFU;
+ const auto vendor = properties.properties.vendorID;
+ const auto patch_status = adrenotools_get_bcn_type(major, minor, vendor);
+
+ if (patch_status == ADRENOTOOLS_BCN_PATCH) {
+ LOG_INFO(Render_Vulkan, "Patching Adreno driver to support BCn texture formats");
+ if (adrenotools_patch_bcn(
+ reinterpret_cast<void*>(dld.vkGetPhysicalDeviceFormatProperties))) {
+ OverrideBcnFormats(format_properties);
+ } else {
+ LOG_ERROR(Render_Vulkan, "Patch failed! Driver code may now crash");
+ }
+ } else if (patch_status == ADRENOTOOLS_BCN_BLOB) {
+ LOG_INFO(Render_Vulkan, "Adreno driver supports BCn textures without patches");
+ } else {
+ LOG_WARNING(Render_Vulkan, "Adreno driver can't be patched to enable BCn textures");
+ }
+#endif
+ }
+
+ if (is_arm) {
+ must_emulate_scaled_formats = true;
+
+ LOG_WARNING(Render_Vulkan, "ARM drivers have broken VK_EXT_extended_dynamic_state");
+ extensions.extended_dynamic_state = false;
+ loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
+
+ LOG_WARNING(Render_Vulkan, "ARM drivers have broken VK_EXT_extended_dynamic_state2");
+ features.extended_dynamic_state2.extendedDynamicState2 = false;
+ features.extended_dynamic_state2.extendedDynamicState2LogicOp = false;
+ features.extended_dynamic_state2.extendedDynamicState2PatchControlPoints = false;
+ extensions.extended_dynamic_state2 = false;
+ loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME);
+ }
+
if (is_nvidia) {
const u32 nv_major_version = (properties.properties.driverVersion >> 22) & 0x3ff;
const auto arch = GetNvidiaArchitecture(physical, supported_extensions);
@@ -388,7 +485,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
}
}
- if (extensions.extended_dynamic_state2 && is_radv) {
+ if (extensions.extended_dynamic_state2 && (is_radv || is_qualcomm)) {
const u32 version = (properties.properties.driverVersion << 3) >> 3;
if (version < VK_MAKE_API_VERSION(0, 22, 3, 1)) {
LOG_WARNING(
@@ -401,7 +498,22 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME);
}
}
- if (extensions.vertex_input_dynamic_state && is_radv) {
+ if (extensions.extended_dynamic_state3 && is_radv) {
+ LOG_WARNING(Render_Vulkan, "RADV has broken extendedDynamicState3ColorBlendEquation");
+ features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false;
+ features.extended_dynamic_state3.extendedDynamicState3ColorBlendEquation = false;
+ dynamic_state3_blending = false;
+
+ const u32 version = (properties.properties.driverVersion << 3) >> 3;
+ if (version < VK_MAKE_API_VERSION(0, 23, 1, 0)) {
+ LOG_WARNING(Render_Vulkan,
+ "RADV versions older than 23.1.0 have broken depth clamp dynamic state");
+ features.extended_dynamic_state3.extendedDynamicState3DepthClampEnable = false;
+ dynamic_state3_enables = false;
+ }
+ }
+ if (extensions.vertex_input_dynamic_state && (is_radv || is_qualcomm)) {
+ // Qualcomm S8gen2 drivers do not properly support vertex_input_dynamic_state.
// TODO(ameerj): Blacklist only offending driver versions
// TODO(ameerj): Confirm if RDNA1 is affected
const bool is_rdna2 =
@@ -409,6 +521,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
if (is_rdna2) {
LOG_WARNING(Render_Vulkan,
"RADV has broken VK_EXT_vertex_input_dynamic_state on RDNA2 hardware");
+ features.vertex_input_dynamic_state.vertexInputDynamicState = false;
extensions.vertex_input_dynamic_state = false;
loaded_extensions.erase(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME);
}
@@ -416,7 +529,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
sets_per_pool = 64;
if (is_amd_driver) {
- // AMD drivers need a higher amount of Sets per Pool in certain circunstances like in XC2.
+ // AMD drivers need a higher amount of Sets per Pool in certain circumstances like in XC2.
sets_per_pool = 96;
// Disable VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT on AMD GCN4 and lower as it is broken.
if (!features.shader_float16_int8.shaderFloat16) {
@@ -452,10 +565,25 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
LOG_WARNING(Render_Vulkan, "Intel proprietary drivers do not support MSAA image blits");
cant_blit_msaa = true;
}
- if (is_intel_anv) {
- LOG_WARNING(Render_Vulkan, "ANV driver does not support native BGR format");
+ has_broken_compute =
+ CheckBrokenCompute(properties.driver.driverID, properties.properties.driverVersion) &&
+ !Settings::values.enable_compute_pipelines.GetValue();
+ if (is_intel_anv || (is_qualcomm && !is_s8gen2)) {
+ LOG_WARNING(Render_Vulkan, "Driver does not support native BGR format");
must_emulate_bgr565 = true;
}
+ if (extensions.push_descriptor && is_intel_anv) {
+ const u32 version = (properties.properties.driverVersion << 3) >> 3;
+ if (version >= VK_MAKE_API_VERSION(0, 22, 3, 0) &&
+ version < VK_MAKE_API_VERSION(0, 23, 2, 0)) {
+ // Disable VK_KHR_push_descriptor due to
+ // mesa/mesa/-/commit/ff91c5ca42bc80aa411cb3fd8f550aa6fdd16bdc
+ LOG_WARNING(Render_Vulkan,
+ "ANV drivers 22.3.0 to 23.1.0 have broken VK_KHR_push_descriptor");
+ extensions.push_descriptor = false;
+ loaded_extensions.erase(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME);
+ }
+ }
if (is_mvk) {
LOG_WARNING(Render_Vulkan,
"MVK driver breaks when using more than 16 vertex attributes/bindings");
@@ -470,9 +598,31 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
graphics_queue = logical.GetQueue(graphics_family);
present_queue = logical.GetQueue(present_family);
+
+ VmaVulkanFunctions functions{};
+ functions.vkGetInstanceProcAddr = dld.vkGetInstanceProcAddr;
+ functions.vkGetDeviceProcAddr = dld.vkGetDeviceProcAddr;
+
+ const VmaAllocatorCreateInfo allocator_info = {
+ .flags = VMA_ALLOCATOR_CREATE_EXTERNALLY_SYNCHRONIZED_BIT,
+ .physicalDevice = physical,
+ .device = *logical,
+ .preferredLargeHeapBlockSize = 0,
+ .pAllocationCallbacks = nullptr,
+ .pDeviceMemoryCallbacks = nullptr,
+ .pHeapSizeLimit = nullptr,
+ .pVulkanFunctions = &functions,
+ .instance = instance,
+ .vulkanApiVersion = VK_API_VERSION_1_1,
+ .pTypeExternalMemoryHandleTypes = nullptr,
+ };
+
+ vk::Check(vmaCreateAllocator(&allocator_info, &allocator));
}
-Device::~Device() = default;
+Device::~Device() {
+ vmaDestroyAllocator(allocator);
+}
VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags wanted_usage,
FormatType format_type) const {
@@ -606,11 +756,14 @@ bool Device::ShouldBoostClocks() const {
driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE ||
driver_id == VK_DRIVER_ID_MESA_RADV || driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY ||
driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS ||
- driver_id == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA;
+ driver_id == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA ||
+ driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP;
const bool is_steam_deck = vendor_id == 0x1002 && device_id == 0x163F;
- return validated_driver && !is_steam_deck;
+ const bool is_debugging = this->HasDebuggingToolAttached();
+
+ return validated_driver && !is_steam_deck && !is_debugging;
}
bool Device::GetSuitability(bool requires_swapchain) {
@@ -658,9 +811,6 @@ bool Device::GetSuitability(bool requires_swapchain) {
FOR_EACH_VK_FEATURE_EXT(FEATURE_EXTENSION);
FOR_EACH_VK_EXTENSION(EXTENSION);
-#ifdef _WIN32
- FOR_EACH_VK_EXTENSION_WIN32(EXTENSION);
-#endif
#undef FEATURE_EXTENSION
#undef EXTENSION
@@ -679,11 +829,6 @@ bool Device::GetSuitability(bool requires_swapchain) {
FOR_EACH_VK_RECOMMENDED_EXTENSION(LOG_EXTENSION);
FOR_EACH_VK_MANDATORY_EXTENSION(CHECK_EXTENSION);
-#ifdef _WIN32
- FOR_EACH_VK_MANDATORY_EXTENSION_WIN32(CHECK_EXTENSION);
-#else
- FOR_EACH_VK_MANDATORY_EXTENSION_GENERIC(CHECK_EXTENSION);
-#endif
if (requires_swapchain) {
CHECK_EXTENSION(VK_KHR_SWAPCHAIN_EXTENSION_NAME);
@@ -973,6 +1118,11 @@ u64 Device::GetDeviceMemoryUsage() const {
}
void Device::CollectPhysicalMemoryInfo() {
+ // Account for resolution scaling in memory limits
+ const size_t normal_memory = 6_GiB;
+ const size_t scaler_memory = 1_GiB * Settings::values.resolution_info.ScaleUp(1);
+
+ // Calculate limits using memory budget
VkPhysicalDeviceMemoryBudgetPropertiesEXT budget{};
budget.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT;
const auto mem_info =
@@ -1000,11 +1150,14 @@ void Device::CollectPhysicalMemoryInfo() {
device_access_memory += mem_properties.memoryHeaps[element].size;
}
if (!is_integrated) {
+ const u64 reserve_memory = std::min<u64>(device_access_memory / 8, 1_GiB);
+ device_access_memory -= reserve_memory;
+ device_access_memory = std::min<u64>(device_access_memory, normal_memory + scaler_memory);
return;
}
const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage);
device_access_memory = static_cast<u64>(std::max<s64>(
- std::min<s64>(available_memory - 8_GiB, 4_GiB), static_cast<s64>(local_memory)));
+ std::min<s64>(available_memory - 8_GiB, 4_GiB), std::min<s64>(local_memory, 4_GiB)));
}
void Device::CollectToolingInfo() {
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index 0662a2d9f..b84af3dfb 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -10,8 +10,12 @@
#include <vector>
#include "common/common_types.h"
+#include "common/logging/log.h"
+#include "common/settings.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
+VK_DEFINE_HANDLE(VmaAllocator)
+
// Define all features which may be used by the implementation here.
// Vulkan version in the macro describes the minimum version required for feature availability.
// If the Vulkan version is lower than the required version, the named extension is required.
@@ -67,7 +71,6 @@
EXTENSION(EXT, VERTEX_ATTRIBUTE_DIVISOR, vertex_attribute_divisor) \
EXTENSION(KHR, DRAW_INDIRECT_COUNT, draw_indirect_count) \
EXTENSION(KHR, DRIVER_PROPERTIES, driver_properties) \
- EXTENSION(KHR, EXTERNAL_MEMORY_FD, external_memory_fd) \
EXTENSION(KHR, PUSH_DESCRIPTOR, push_descriptor) \
EXTENSION(KHR, SAMPLER_MIRROR_CLAMP_TO_EDGE, sampler_mirror_clamp_to_edge) \
EXTENSION(KHR, SHADER_FLOAT_CONTROLS, shader_float_controls) \
@@ -79,23 +82,13 @@
EXTENSION(NV, VIEWPORT_ARRAY2, viewport_array2) \
EXTENSION(NV, VIEWPORT_SWIZZLE, viewport_swizzle)
-#define FOR_EACH_VK_EXTENSION_WIN32(EXTENSION) \
- EXTENSION(KHR, EXTERNAL_MEMORY_WIN32, external_memory_win32)
-
// Define extensions which must be supported.
#define FOR_EACH_VK_MANDATORY_EXTENSION(EXTENSION_NAME) \
- EXTENSION_NAME(VK_EXT_ROBUSTNESS_2_EXTENSION_NAME) \
EXTENSION_NAME(VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_EXTENSION_NAME) \
EXTENSION_NAME(VK_KHR_DRIVER_PROPERTIES_EXTENSION_NAME) \
EXTENSION_NAME(VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME) \
EXTENSION_NAME(VK_KHR_SHADER_FLOAT_CONTROLS_EXTENSION_NAME)
-#define FOR_EACH_VK_MANDATORY_EXTENSION_GENERIC(EXTENSION_NAME) \
- EXTENSION_NAME(VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME)
-
-#define FOR_EACH_VK_MANDATORY_EXTENSION_WIN32(EXTENSION_NAME) \
- EXTENSION_NAME(VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME)
-
// Define extensions where the absence of the extension may result in a degraded experience.
#define FOR_EACH_VK_RECOMMENDED_EXTENSION(EXTENSION_NAME) \
EXTENSION_NAME(VK_EXT_CONSERVATIVE_RASTERIZATION_EXTENSION_NAME) \
@@ -104,6 +97,7 @@
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME) \
EXTENSION_NAME(VK_EXT_EXTENDED_DYNAMIC_STATE_3_EXTENSION_NAME) \
EXTENSION_NAME(VK_EXT_LINE_RASTERIZATION_EXTENSION_NAME) \
+ EXTENSION_NAME(VK_EXT_ROBUSTNESS_2_EXTENSION_NAME) \
EXTENSION_NAME(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME) \
EXTENSION_NAME(VK_NV_GEOMETRY_SHADER_PASSTHROUGH_EXTENSION_NAME) \
EXTENSION_NAME(VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME) \
@@ -140,12 +134,8 @@
FEATURE_NAME(features, vertexPipelineStoresAndAtomics) \
FEATURE_NAME(features, wideLines) \
FEATURE_NAME(host_query_reset, hostQueryReset) \
- FEATURE_NAME(robustness2, nullDescriptor) \
- FEATURE_NAME(robustness2, robustBufferAccess2) \
- FEATURE_NAME(robustness2, robustImageAccess2) \
FEATURE_NAME(shader_demote_to_helper_invocation, shaderDemoteToHelperInvocation) \
FEATURE_NAME(shader_draw_parameters, shaderDrawParameters) \
- FEATURE_NAME(timeline_semaphore, timelineSemaphore) \
FEATURE_NAME(variable_pointer, variablePointers) \
FEATURE_NAME(variable_pointer, variablePointersStorageBuffer)
@@ -156,8 +146,12 @@
FEATURE_NAME(index_type_uint8, indexTypeUint8) \
FEATURE_NAME(primitive_topology_list_restart, primitiveTopologyListRestart) \
FEATURE_NAME(provoking_vertex, provokingVertexLast) \
+ FEATURE_NAME(robustness2, nullDescriptor) \
+ FEATURE_NAME(robustness2, robustBufferAccess2) \
+ FEATURE_NAME(robustness2, robustImageAccess2) \
FEATURE_NAME(shader_float16_int8, shaderFloat16) \
FEATURE_NAME(shader_float16_int8, shaderInt8) \
+ FEATURE_NAME(timeline_semaphore, timelineSemaphore) \
FEATURE_NAME(transform_feedback, transformFeedback) \
FEATURE_NAME(uniform_buffer_standard_layout, uniformBufferStandardLayout) \
FEATURE_NAME(vertex_input_dynamic_state, vertexInputDynamicState)
@@ -180,7 +174,7 @@ public:
~Device();
/**
- * Returns a format supported by the device for the passed requeriments.
+ * Returns a format supported by the device for the passed requirements.
* @param wanted_format The ideal format to be returned. It may not be the returned format.
* @param wanted_usage The usage that must be fulfilled even if the format is not supported.
* @param format_type Format type usage.
@@ -207,6 +201,11 @@ public:
return dld;
}
+ /// Returns the VMA allocator.
+ VmaAllocator GetAllocator() const {
+ return allocator;
+ }
+
/// Returns the logical device.
const vk::Device& GetLogical() const {
return logical;
@@ -259,12 +258,12 @@ public:
bool ShouldBoostClocks() const;
- /// Returns uniform buffer alignment requeriment.
+ /// Returns uniform buffer alignment requirement.
VkDeviceSize GetUniformBufferAlignment() const {
return properties.properties.limits.minUniformBufferOffsetAlignment;
}
- /// Returns storage alignment requeriment.
+ /// Returns storage alignment requirement.
VkDeviceSize GetStorageBufferAlignment() const {
return properties.properties.limits.minStorageBufferOffsetAlignment;
}
@@ -294,6 +293,16 @@ public:
return features.features.textureCompressionASTC_LDR;
}
+ /// Returns true if descriptor aliasing is natively supported.
+ bool IsDescriptorAliasingSupported() const {
+ return GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY;
+ }
+
+ /// Returns true if the device suppors float64 natively.
+ bool IsFloat64Supported() const {
+ return features.features.shaderFloat64;
+ }
+
/// Returns true if the device supports float16 natively.
bool IsFloat16Supported() const {
return features.shader_float16_int8.shaderFloat16;
@@ -493,6 +502,14 @@ public:
return extensions.shader_atomic_int64;
}
+ bool HasTimelineSemaphore() const {
+ if (GetDriverID() == VK_DRIVER_ID_QUALCOMM_PROPRIETARY) {
+ // Timeline semaphores do not work properly on all Qualcomm drivers.
+ return false;
+ }
+ return features.timeline_semaphore.timelineSemaphore;
+ }
+
/// Returns the minimum supported version of SPIR-V.
u32 SupportedSpirvVersion() const {
if (instance_version >= VK_API_VERSION_1_3) {
@@ -506,7 +523,12 @@ public:
/// Returns true when a known debugging tool is attached.
bool HasDebuggingToolAttached() const {
- return has_renderdoc || has_nsight_graphics;
+ return has_renderdoc || has_nsight_graphics || Settings::values.renderer_debug.GetValue();
+ }
+
+ /// @returns True if compute pipelines can cause crashing.
+ bool HasBrokenCompute() const {
+ return has_broken_compute;
}
/// Returns true when the device does not properly support cube compatibility.
@@ -546,6 +568,10 @@ public:
return cant_blit_msaa;
}
+ bool MustEmulateScaledFormats() const {
+ return must_emulate_scaled_formats;
+ }
+
bool MustEmulateBGR565() const {
return must_emulate_bgr565;
}
@@ -562,6 +588,26 @@ public:
return properties.properties.limits.maxVertexInputBindings;
}
+ bool SupportsConditionalBarriers() const {
+ return supports_conditional_barriers;
+ }
+
+ [[nodiscard]] static constexpr bool CheckBrokenCompute(VkDriverId driver_id,
+ u32 driver_version) {
+ if (driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) {
+ const u32 major = VK_API_VERSION_MAJOR(driver_version);
+ const u32 minor = VK_API_VERSION_MINOR(driver_version);
+ const u32 patch = VK_API_VERSION_PATCH(driver_version);
+ if (major == 0 && minor == 405 && patch < 286) {
+ LOG_WARNING(
+ Render_Vulkan,
+ "Intel proprietary drivers 0.405.0 until 0.405.286 have broken compute");
+ return true;
+ }
+ }
+ return false;
+ }
+
private:
/// Checks if the physical device is suitable and configures the object state
/// with all necessary info about its properties.
@@ -591,6 +637,7 @@ private:
private:
VkInstance instance; ///< Vulkan instance.
+ VmaAllocator allocator; ///< VMA allocator.
vk::DeviceDispatch dld; ///< Device function pointers.
vk::PhysicalDevice physical; ///< Physical device.
vk::Device logical; ///< Logical device.
@@ -609,7 +656,6 @@ private:
FOR_EACH_VK_FEATURE_1_3(FEATURE);
FOR_EACH_VK_FEATURE_EXT(FEATURE);
FOR_EACH_VK_EXTENSION(EXTENSION);
- FOR_EACH_VK_EXTENSION_WIN32(EXTENSION);
#undef EXTENSION
#undef FEATURE
@@ -656,14 +702,17 @@ private:
bool is_integrated{}; ///< Is GPU an iGPU.
bool is_virtual{}; ///< Is GPU a virtual GPU.
bool is_non_gpu{}; ///< Is SoftwareRasterizer, FPGA, non-GPU device.
- bool has_broken_cube_compatibility{}; ///< Has broken cube compatiblity bit
+ bool has_broken_compute{}; ///< Compute shaders can cause crashes
+ bool has_broken_cube_compatibility{}; ///< Has broken cube compatibility bit
bool has_renderdoc{}; ///< Has RenderDoc attached
bool has_nsight_graphics{}; ///< Has Nsight Graphics attached
bool supports_d24_depth{}; ///< Supports D24 depth buffers.
bool cant_blit_msaa{}; ///< Does not support MSAA<->MSAA blitting.
+ bool must_emulate_scaled_formats{}; ///< Requires scaled vertex format emulation
bool must_emulate_bgr565{}; ///< Emulates BGR565 by swizzling RGB565 format.
bool dynamic_state3_blending{}; ///< Has all blending features of dynamic_state3.
bool dynamic_state3_enables{}; ///< Has all enables features of dynamic_state3.
+ bool supports_conditional_barriers{}; ///< Allows barriers in conditional control flow.
u64 device_access_memory{}; ///< Total size of device local memory in bytes.
u32 sets_per_pool{}; ///< Sets per Description Pool
diff --git a/src/video_core/vulkan_common/vulkan_library.cpp b/src/video_core/vulkan_common/vulkan_library.cpp
index 4eb3913ee..47f6f2a03 100644
--- a/src/video_core/vulkan_common/vulkan_library.cpp
+++ b/src/video_core/vulkan_common/vulkan_library.cpp
@@ -10,29 +10,35 @@
namespace Vulkan {
-Common::DynamicLibrary OpenLibrary() {
+std::shared_ptr<Common::DynamicLibrary> OpenLibrary(
+ [[maybe_unused]] Core::Frontend::GraphicsContext* context) {
LOG_DEBUG(Render_Vulkan, "Looking for a Vulkan library");
- Common::DynamicLibrary library;
+#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
+ // Android manages its Vulkan driver from the frontend.
+ return context->GetDriverLibrary();
+#else
+ auto library = std::make_shared<Common::DynamicLibrary>();
#ifdef __APPLE__
// Check if a path to a specific Vulkan library has been specified.
char* const libvulkan_env = std::getenv("LIBVULKAN_PATH");
- if (!libvulkan_env || !library.Open(libvulkan_env)) {
+ if (!libvulkan_env || !library->Open(libvulkan_env)) {
// Use the libvulkan.dylib from the application bundle.
const auto filename =
Common::FS::GetBundleDirectory() / "Contents/Frameworks/libvulkan.dylib";
- void(library.Open(Common::FS::PathToUTF8String(filename).c_str()));
+ void(library->Open(Common::FS::PathToUTF8String(filename).c_str()));
}
#else
std::string filename = Common::DynamicLibrary::GetVersionedFilename("vulkan", 1);
LOG_DEBUG(Render_Vulkan, "Trying Vulkan library: {}", filename);
- if (!library.Open(filename.c_str())) {
+ if (!library->Open(filename.c_str())) {
// Android devices may not have libvulkan.so.1, only libvulkan.so.
filename = Common::DynamicLibrary::GetVersionedFilename("vulkan");
LOG_DEBUG(Render_Vulkan, "Trying Vulkan library (second attempt): {}", filename);
- void(library.Open(filename.c_str()));
+ void(library->Open(filename.c_str()));
}
#endif
return library;
+#endif
}
} // namespace Vulkan
diff --git a/src/video_core/vulkan_common/vulkan_library.h b/src/video_core/vulkan_common/vulkan_library.h
index 364ca979b..e1734525e 100644
--- a/src/video_core/vulkan_common/vulkan_library.h
+++ b/src/video_core/vulkan_common/vulkan_library.h
@@ -3,10 +3,14 @@
#pragma once
+#include <memory>
+
#include "common/dynamic_library.h"
+#include "core/frontend/graphics_context.h"
namespace Vulkan {
-Common::DynamicLibrary OpenLibrary();
+std::shared_ptr<Common::DynamicLibrary> OpenLibrary(
+ [[maybe_unused]] Core::Frontend::GraphicsContext* context = nullptr);
} // namespace Vulkan
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
index 1732866e0..a2ef0efa4 100644
--- a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
+++ b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
@@ -6,8 +6,6 @@
#include <optional>
#include <vector>
-#include <glad/glad.h>
-
#include "common/alignment.h"
#include "common/assert.h"
#include "common/common_types.h"
@@ -17,6 +15,8 @@
#include "video_core/vulkan_common/vulkan_memory_allocator.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
+#include <vk_mem_alloc.h>
+
namespace Vulkan {
namespace {
struct Range {
@@ -49,22 +49,45 @@ struct Range {
case MemoryUsage::Download:
return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
+ case MemoryUsage::Stream:
+ return VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
+ VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
}
ASSERT_MSG(false, "Invalid memory usage={}", usage);
return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
}
-constexpr VkExportMemoryAllocateInfo EXPORT_ALLOCATE_INFO{
- .sType = VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO,
- .pNext = nullptr,
-#ifdef _WIN32
- .handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT,
-#elif __unix__
- .handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT,
-#else
- .handleTypes = 0,
-#endif
-};
+[[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferedVmaFlags(MemoryUsage usage) {
+ return usage != MemoryUsage::DeviceLocal ? VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
+ : VkMemoryPropertyFlagBits{};
+}
+
+[[nodiscard]] VmaAllocationCreateFlags MemoryUsageVmaFlags(MemoryUsage usage) {
+ switch (usage) {
+ case MemoryUsage::Upload:
+ case MemoryUsage::Stream:
+ return VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT;
+ case MemoryUsage::Download:
+ return VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT;
+ case MemoryUsage::DeviceLocal:
+ return VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT |
+ VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT;
+ }
+ return {};
+}
+
+[[nodiscard]] VmaMemoryUsage MemoryUsageVma(MemoryUsage usage) {
+ switch (usage) {
+ case MemoryUsage::DeviceLocal:
+ case MemoryUsage::Stream:
+ return VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE;
+ case MemoryUsage::Upload:
+ case MemoryUsage::Download:
+ return VMA_MEMORY_USAGE_AUTO_PREFER_HOST;
+ }
+ return VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE;
+}
+
} // Anonymous namespace
class MemoryAllocation {
@@ -74,14 +97,6 @@ public:
: allocator{allocator_}, memory{std::move(memory_)}, allocation_size{allocation_size_},
property_flags{properties}, shifted_memory_type{1U << type} {}
-#if defined(_WIN32) || defined(__unix__)
- ~MemoryAllocation() {
- if (owning_opengl_handle != 0) {
- glDeleteMemoryObjectsEXT(1, &owning_opengl_handle);
- }
- }
-#endif
-
MemoryAllocation& operator=(const MemoryAllocation&) = delete;
MemoryAllocation(const MemoryAllocation&) = delete;
@@ -120,34 +135,9 @@ public:
return memory_mapped_span;
}
-#ifdef _WIN32
- [[nodiscard]] u32 ExportOpenGLHandle() {
- if (!owning_opengl_handle) {
- glCreateMemoryObjectsEXT(1, &owning_opengl_handle);
- glImportMemoryWin32HandleEXT(owning_opengl_handle, allocation_size,
- GL_HANDLE_TYPE_OPAQUE_WIN32_EXT,
- memory.GetMemoryWin32HandleKHR());
- }
- return owning_opengl_handle;
- }
-#elif __unix__
- [[nodiscard]] u32 ExportOpenGLHandle() {
- if (!owning_opengl_handle) {
- glCreateMemoryObjectsEXT(1, &owning_opengl_handle);
- glImportMemoryFdEXT(owning_opengl_handle, allocation_size, GL_HANDLE_TYPE_OPAQUE_FD_EXT,
- memory.GetMemoryFdKHR());
- }
- return owning_opengl_handle;
- }
-#else
- [[nodiscard]] u32 ExportOpenGLHandle() {
- return 0;
- }
-#endif
-
/// Returns whether this allocation is compatible with the arguments.
[[nodiscard]] bool IsCompatible(VkMemoryPropertyFlags flags, u32 type_mask) const {
- return (flags & property_flags) == property_flags && (type_mask & shifted_memory_type) != 0;
+ return (flags & property_flags) == flags && (type_mask & shifted_memory_type) != 0;
}
private:
@@ -182,9 +172,6 @@ private:
const u32 shifted_memory_type; ///< Shifted Vulkan memory type.
std::vector<Range> commits; ///< All commit ranges done from this allocation.
std::span<u8> memory_mapped_span; ///< Memory mapped span. Empty if not queried before.
-#if defined(_WIN32) || defined(__unix__)
- u32 owning_opengl_handle{}; ///< Owning OpenGL memory object handle.
-#endif
};
MemoryCommit::MemoryCommit(MemoryAllocation* allocation_, VkDeviceMemory memory_, u64 begin_,
@@ -216,24 +203,70 @@ std::span<u8> MemoryCommit::Map() {
return span;
}
-u32 MemoryCommit::ExportOpenGLHandle() const {
- return allocation->ExportOpenGLHandle();
-}
-
void MemoryCommit::Release() {
if (allocation) {
allocation->Free(begin);
}
}
-MemoryAllocator::MemoryAllocator(const Device& device_, bool export_allocations_)
- : device{device_}, properties{device_.GetPhysical().GetMemoryProperties().memoryProperties},
- export_allocations{export_allocations_},
+MemoryAllocator::MemoryAllocator(const Device& device_)
+ : device{device_}, allocator{device.GetAllocator()},
+ properties{device_.GetPhysical().GetMemoryProperties().memoryProperties},
buffer_image_granularity{
device_.GetPhysical().GetProperties().limits.bufferImageGranularity} {}
MemoryAllocator::~MemoryAllocator() = default;
+vk::Image MemoryAllocator::CreateImage(const VkImageCreateInfo& ci) const {
+ const VmaAllocationCreateInfo alloc_ci = {
+ .flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT,
+ .usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE,
+ .requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
+ .preferredFlags = 0,
+ .memoryTypeBits = 0,
+ .pool = VK_NULL_HANDLE,
+ .pUserData = nullptr,
+ .priority = 0.f,
+ };
+
+ VkImage handle{};
+ VmaAllocation allocation{};
+
+ vk::Check(vmaCreateImage(allocator, &ci, &alloc_ci, &handle, &allocation, nullptr));
+
+ return vk::Image(handle, *device.GetLogical(), allocator, allocation,
+ device.GetDispatchLoader());
+}
+
+vk::Buffer MemoryAllocator::CreateBuffer(const VkBufferCreateInfo& ci, MemoryUsage usage) const {
+ const VmaAllocationCreateInfo alloc_ci = {
+ .flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT | VMA_ALLOCATION_CREATE_MAPPED_BIT |
+ MemoryUsageVmaFlags(usage),
+ .usage = MemoryUsageVma(usage),
+ .requiredFlags = 0,
+ .preferredFlags = MemoryUsagePreferedVmaFlags(usage),
+ .memoryTypeBits = 0,
+ .pool = VK_NULL_HANDLE,
+ .pUserData = nullptr,
+ .priority = 0.f,
+ };
+
+ VkBuffer handle{};
+ VmaAllocationInfo alloc_info{};
+ VmaAllocation allocation{};
+ VkMemoryPropertyFlags property_flags{};
+
+ vk::Check(vmaCreateBuffer(allocator, &ci, &alloc_ci, &handle, &allocation, &alloc_info));
+ vmaGetAllocationMemoryProperties(allocator, allocation, &property_flags);
+
+ u8* data = reinterpret_cast<u8*>(alloc_info.pMappedData);
+ const std::span<u8> mapped_data = data ? std::span<u8>{data, ci.size} : std::span<u8>{};
+ const bool is_coherent = property_flags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
+
+ return vk::Buffer(handle, *device.GetLogical(), allocator, allocation, mapped_data, is_coherent,
+ device.GetDispatchLoader());
+}
+
MemoryCommit MemoryAllocator::Commit(const VkMemoryRequirements& requirements, MemoryUsage usage) {
// Find the fastest memory flags we can afford with the current requirements
const u32 type_mask = requirements.memoryTypeBits;
@@ -253,25 +286,11 @@ MemoryCommit MemoryAllocator::Commit(const VkMemoryRequirements& requirements, M
return TryCommit(requirements, flags).value();
}
-MemoryCommit MemoryAllocator::Commit(const vk::Buffer& buffer, MemoryUsage usage) {
- auto commit = Commit(device.GetLogical().GetBufferMemoryRequirements(*buffer), usage);
- buffer.BindMemory(commit.Memory(), commit.Offset());
- return commit;
-}
-
-MemoryCommit MemoryAllocator::Commit(const vk::Image& image, MemoryUsage usage) {
- VkMemoryRequirements requirements = device.GetLogical().GetImageMemoryRequirements(*image);
- requirements.size = Common::AlignUp(requirements.size, buffer_image_granularity);
- auto commit = Commit(requirements, usage);
- image.BindMemory(commit.Memory(), commit.Offset());
- return commit;
-}
-
bool MemoryAllocator::TryAllocMemory(VkMemoryPropertyFlags flags, u32 type_mask, u64 size) {
const u32 type = FindType(flags, type_mask).value();
vk::DeviceMemory memory = device.GetLogical().TryAllocateMemory({
.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,
- .pNext = export_allocations ? &EXPORT_ALLOCATE_INFO : nullptr,
+ .pNext = nullptr,
.allocationSize = size,
.memoryTypeIndex = type,
});
@@ -342,16 +361,4 @@ std::optional<u32> MemoryAllocator::FindType(VkMemoryPropertyFlags flags, u32 ty
return std::nullopt;
}
-bool IsHostVisible(MemoryUsage usage) noexcept {
- switch (usage) {
- case MemoryUsage::DeviceLocal:
- return false;
- case MemoryUsage::Upload:
- case MemoryUsage::Download:
- return true;
- }
- ASSERT_MSG(false, "Invalid memory usage={}", usage);
- return false;
-}
-
} // namespace Vulkan
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.h b/src/video_core/vulkan_common/vulkan_memory_allocator.h
index a5bff03fe..f449bc8d0 100644
--- a/src/video_core/vulkan_common/vulkan_memory_allocator.h
+++ b/src/video_core/vulkan_common/vulkan_memory_allocator.h
@@ -9,6 +9,8 @@
#include "common/common_types.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
+VK_DEFINE_HANDLE(VmaAllocator)
+
namespace Vulkan {
class Device;
@@ -17,9 +19,11 @@ class MemoryAllocation;
/// Hints and requirements for the backing memory type of a commit
enum class MemoryUsage {
- DeviceLocal, ///< Hints device local usages, fastest memory type to read and write from the GPU
+ DeviceLocal, ///< Requests device local host visible buffer, falling back to device local
+ ///< memory.
Upload, ///< Requires a host visible memory type optimized for CPU to GPU uploads
Download, ///< Requires a host visible memory type optimized for GPU to CPU readbacks
+ Stream, ///< Requests device local host visible buffer, falling back host memory.
};
/// Ownership handle of a memory commitment.
@@ -41,9 +45,6 @@ public:
/// It will map the backing allocation if it hasn't been mapped before.
std::span<u8> Map();
- /// Returns an non-owning OpenGL handle, creating one if it doesn't exist.
- u32 ExportOpenGLHandle() const;
-
/// Returns the Vulkan memory handler.
VkDeviceMemory Memory() const {
return memory;
@@ -74,16 +75,19 @@ public:
* Construct memory allocator
*
* @param device_ Device to allocate from
- * @param export_allocations_ True when allocations have to be exported
*
* @throw vk::Exception on failure
*/
- explicit MemoryAllocator(const Device& device_, bool export_allocations_);
+ explicit MemoryAllocator(const Device& device_);
~MemoryAllocator();
MemoryAllocator& operator=(const MemoryAllocator&) = delete;
MemoryAllocator(const MemoryAllocator&) = delete;
+ vk::Image CreateImage(const VkImageCreateInfo& ci) const;
+
+ vk::Buffer CreateBuffer(const VkBufferCreateInfo& ci, MemoryUsage usage) const;
+
/**
* Commits a memory with the specified requirements.
*
@@ -97,9 +101,6 @@ public:
/// Commits memory required by the buffer and binds it.
MemoryCommit Commit(const vk::Buffer& buffer, MemoryUsage usage);
- /// Commits memory required by the image and binds it.
- MemoryCommit Commit(const vk::Image& image, MemoryUsage usage);
-
private:
/// Tries to allocate a chunk of memory.
bool TryAllocMemory(VkMemoryPropertyFlags flags, u32 type_mask, u64 size);
@@ -117,15 +118,12 @@ private:
/// Returns index to the fastest memory type compatible with the passed requirements.
std::optional<u32> FindType(VkMemoryPropertyFlags flags, u32 type_mask) const;
- const Device& device; ///< Device handle.
- const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties.
- const bool export_allocations; ///< True when memory allocations have to be exported.
+ const Device& device; ///< Device handle.
+ VmaAllocator allocator; ///< Vma allocator.
+ const VkPhysicalDeviceMemoryProperties properties; ///< Physical device properties.
std::vector<std::unique_ptr<MemoryAllocation>> allocations; ///< Current allocations.
VkDeviceSize buffer_image_granularity; // The granularity for adjacent offsets between buffers
// and optimal images
};
-/// Returns true when a memory usage is guaranteed to be host visible.
-bool IsHostVisible(MemoryUsage usage) noexcept;
-
} // namespace Vulkan
diff --git a/src/video_core/vulkan_common/vulkan_surface.cpp b/src/video_core/vulkan_common/vulkan_surface.cpp
index fa9bafa20..c34599365 100644
--- a/src/video_core/vulkan_common/vulkan_surface.cpp
+++ b/src/video_core/vulkan_common/vulkan_surface.cpp
@@ -23,10 +23,10 @@
namespace Vulkan {
-vk::SurfaceKHR CreateSurface(const vk::Instance& instance,
- const Core::Frontend::EmuWindow& emu_window) {
+vk::SurfaceKHR CreateSurface(
+ const vk::Instance& instance,
+ [[maybe_unused]] const Core::Frontend::EmuWindow::WindowSystemInfo& window_info) {
[[maybe_unused]] const vk::InstanceDispatch& dld = instance.Dispatch();
- [[maybe_unused]] const auto& window_info = emu_window.GetWindowInfo();
VkSurfaceKHR unsafe_surface = nullptr;
#ifdef _WIN32
diff --git a/src/video_core/vulkan_common/vulkan_surface.h b/src/video_core/vulkan_common/vulkan_surface.h
index 5725143e6..5e18c06c4 100644
--- a/src/video_core/vulkan_common/vulkan_surface.h
+++ b/src/video_core/vulkan_common/vulkan_surface.h
@@ -3,15 +3,12 @@
#pragma once
+#include "core/frontend/emu_window.h"
#include "video_core/vulkan_common/vulkan_wrapper.h"
-namespace Core::Frontend {
-class EmuWindow;
-}
-
namespace Vulkan {
-[[nodiscard]] vk::SurfaceKHR CreateSurface(const vk::Instance& instance,
- const Core::Frontend::EmuWindow& emu_window);
+[[nodiscard]] vk::SurfaceKHR CreateSurface(
+ const vk::Instance& instance, const Core::Frontend::EmuWindow::WindowSystemInfo& window_info);
} // namespace Vulkan
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp
index 486d4dfaf..28fcb21a0 100644
--- a/src/video_core/vulkan_common/vulkan_wrapper.cpp
+++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp
@@ -12,6 +12,8 @@
#include "video_core/vulkan_common/vulkan_wrapper.h"
+#include <vk_mem_alloc.h>
+
namespace Vulkan::vk {
namespace {
@@ -375,6 +377,8 @@ const char* ToString(VkResult result) noexcept {
return "VK_RESULT_MAX_ENUM";
case VkResult::VK_ERROR_COMPRESSION_EXHAUSTED_EXT:
return "VK_ERROR_COMPRESSION_EXHAUSTED_EXT";
+ case VkResult::VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT:
+ return "VK_ERROR_INCOMPATIBLE_SHADER_BINARY_EXT";
}
return "Unknown";
}
@@ -545,24 +549,40 @@ DebugUtilsMessenger Instance::CreateDebugUtilsMessenger(
return DebugUtilsMessenger(object, handle, *dld);
}
-void Buffer::BindMemory(VkDeviceMemory memory, VkDeviceSize offset) const {
- Check(dld->vkBindBufferMemory(owner, handle, memory, offset));
+void Image::SetObjectNameEXT(const char* name) const {
+ SetObjectName(dld, owner, handle, VK_OBJECT_TYPE_IMAGE, name);
}
-void Buffer::SetObjectNameEXT(const char* name) const {
- SetObjectName(dld, owner, handle, VK_OBJECT_TYPE_BUFFER, name);
+void Image::Release() const noexcept {
+ if (handle) {
+ vmaDestroyImage(allocator, handle, allocation);
+ }
}
-void BufferView::SetObjectNameEXT(const char* name) const {
- SetObjectName(dld, owner, handle, VK_OBJECT_TYPE_BUFFER_VIEW, name);
+void Buffer::Flush() const {
+ if (!is_coherent) {
+ vmaFlushAllocation(allocator, allocation, 0, VK_WHOLE_SIZE);
+ }
}
-void Image::BindMemory(VkDeviceMemory memory, VkDeviceSize offset) const {
- Check(dld->vkBindImageMemory(owner, handle, memory, offset));
+void Buffer::Invalidate() const {
+ if (!is_coherent) {
+ vmaInvalidateAllocation(allocator, allocation, 0, VK_WHOLE_SIZE);
+ }
}
-void Image::SetObjectNameEXT(const char* name) const {
- SetObjectName(dld, owner, handle, VK_OBJECT_TYPE_IMAGE, name);
+void Buffer::SetObjectNameEXT(const char* name) const {
+ SetObjectName(dld, owner, handle, VK_OBJECT_TYPE_BUFFER, name);
+}
+
+void Buffer::Release() const noexcept {
+ if (handle) {
+ vmaDestroyBuffer(allocator, handle, allocation);
+ }
+}
+
+void BufferView::SetObjectNameEXT(const char* name) const {
+ SetObjectName(dld, owner, handle, VK_OBJECT_TYPE_BUFFER_VIEW, name);
}
void ImageView::SetObjectNameEXT(const char* name) const {
@@ -699,24 +719,12 @@ Queue Device::GetQueue(u32 family_index) const noexcept {
return Queue(queue, *dld);
}
-Buffer Device::CreateBuffer(const VkBufferCreateInfo& ci) const {
- VkBuffer object;
- Check(dld->vkCreateBuffer(handle, &ci, nullptr, &object));
- return Buffer(object, handle, *dld);
-}
-
BufferView Device::CreateBufferView(const VkBufferViewCreateInfo& ci) const {
VkBufferView object;
Check(dld->vkCreateBufferView(handle, &ci, nullptr, &object));
return BufferView(object, handle, *dld);
}
-Image Device::CreateImage(const VkImageCreateInfo& ci) const {
- VkImage object;
- Check(dld->vkCreateImage(handle, &ci, nullptr, &object));
- return Image(object, handle, *dld);
-}
-
ImageView Device::CreateImageView(const VkImageViewCreateInfo& ci) const {
VkImageView object;
Check(dld->vkCreateImageView(handle, &ci, nullptr, &object));
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.h b/src/video_core/vulkan_common/vulkan_wrapper.h
index e86f661cb..44fce47a5 100644
--- a/src/video_core/vulkan_common/vulkan_wrapper.h
+++ b/src/video_core/vulkan_common/vulkan_wrapper.h
@@ -32,6 +32,9 @@
#pragma warning(disable : 26812) // Disable prefer enum class over enum
#endif
+VK_DEFINE_HANDLE(VmaAllocator)
+VK_DEFINE_HANDLE(VmaAllocation)
+
namespace Vulkan::vk {
/**
@@ -68,7 +71,7 @@ public:
constexpr Span(const Range& range) : ptr{std::data(range)}, num{std::size(range)} {}
/// Construct a span from a pointer and a size.
- /// This is inteded for subranges.
+ /// This is intended for subranges.
constexpr Span(const T* ptr_, std::size_t num_) noexcept : ptr{ptr_}, num{num_} {}
/// Returns the data pointer by the span.
@@ -390,11 +393,11 @@ public:
Handle(const Handle&) = delete;
Handle& operator=(const Handle&) = delete;
- /// Construct a handle transfering the ownership from another handle.
+ /// Construct a handle transferring the ownership from another handle.
Handle(Handle&& rhs) noexcept
: handle{std::exchange(rhs.handle, nullptr)}, owner{rhs.owner}, dld{rhs.dld} {}
- /// Assign the current handle transfering the ownership from another handle.
+ /// Assign the current handle transferring the ownership from another handle.
/// Destroys any previously held object.
Handle& operator=(Handle&& rhs) noexcept {
Release();
@@ -463,10 +466,10 @@ public:
Handle(const Handle&) = delete;
Handle& operator=(const Handle&) = delete;
- /// Construct a handle transfering ownership from another handle.
+ /// Construct a handle transferring ownership from another handle.
Handle(Handle&& rhs) noexcept : handle{std::exchange(rhs.handle, nullptr)}, dld{rhs.dld} {}
- /// Assign the current handle transfering the ownership from another handle.
+ /// Assign the current handle transferring the ownership from another handle.
/// Destroys any previously held object.
Handle& operator=(Handle&& rhs) noexcept {
Release();
@@ -533,12 +536,12 @@ public:
PoolAllocations(const PoolAllocations&) = delete;
PoolAllocations& operator=(const PoolAllocations&) = delete;
- /// Construct an allocation transfering ownership from another allocation.
+ /// Construct an allocation transferring ownership from another allocation.
PoolAllocations(PoolAllocations&& rhs) noexcept
: allocations{std::move(rhs.allocations)}, num{rhs.num}, device{rhs.device}, pool{rhs.pool},
dld{rhs.dld} {}
- /// Assign an allocation transfering ownership from another allocation.
+ /// Assign an allocation transferring ownership from another allocation.
PoolAllocations& operator=(PoolAllocations&& rhs) noexcept {
allocations = std::move(rhs.allocations);
num = rhs.num;
@@ -616,6 +619,138 @@ public:
}
};
+class Image {
+public:
+ explicit Image(VkImage handle_, VkDevice owner_, VmaAllocator allocator_,
+ VmaAllocation allocation_, const DeviceDispatch& dld_) noexcept
+ : handle{handle_}, owner{owner_}, allocator{allocator_},
+ allocation{allocation_}, dld{&dld_} {}
+ Image() = default;
+
+ Image(const Image&) = delete;
+ Image& operator=(const Image&) = delete;
+
+ Image(Image&& rhs) noexcept
+ : handle{std::exchange(rhs.handle, nullptr)}, owner{rhs.owner}, allocator{rhs.allocator},
+ allocation{rhs.allocation}, dld{rhs.dld} {}
+
+ Image& operator=(Image&& rhs) noexcept {
+ Release();
+ handle = std::exchange(rhs.handle, nullptr);
+ owner = rhs.owner;
+ allocator = rhs.allocator;
+ allocation = rhs.allocation;
+ dld = rhs.dld;
+ return *this;
+ }
+
+ ~Image() noexcept {
+ Release();
+ }
+
+ VkImage operator*() const noexcept {
+ return handle;
+ }
+
+ void reset() noexcept {
+ Release();
+ handle = nullptr;
+ }
+
+ explicit operator bool() const noexcept {
+ return handle != nullptr;
+ }
+
+ void SetObjectNameEXT(const char* name) const;
+
+private:
+ void Release() const noexcept;
+
+ VkImage handle = nullptr;
+ VkDevice owner = nullptr;
+ VmaAllocator allocator = nullptr;
+ VmaAllocation allocation = nullptr;
+ const DeviceDispatch* dld = nullptr;
+};
+
+class Buffer {
+public:
+ explicit Buffer(VkBuffer handle_, VkDevice owner_, VmaAllocator allocator_,
+ VmaAllocation allocation_, std::span<u8> mapped_, bool is_coherent_,
+ const DeviceDispatch& dld_) noexcept
+ : handle{handle_}, owner{owner_}, allocator{allocator_},
+ allocation{allocation_}, mapped{mapped_}, is_coherent{is_coherent_}, dld{&dld_} {}
+ Buffer() = default;
+
+ Buffer(const Buffer&) = delete;
+ Buffer& operator=(const Buffer&) = delete;
+
+ Buffer(Buffer&& rhs) noexcept
+ : handle{std::exchange(rhs.handle, nullptr)}, owner{rhs.owner}, allocator{rhs.allocator},
+ allocation{rhs.allocation}, mapped{rhs.mapped},
+ is_coherent{rhs.is_coherent}, dld{rhs.dld} {}
+
+ Buffer& operator=(Buffer&& rhs) noexcept {
+ Release();
+ handle = std::exchange(rhs.handle, nullptr);
+ owner = rhs.owner;
+ allocator = rhs.allocator;
+ allocation = rhs.allocation;
+ mapped = rhs.mapped;
+ is_coherent = rhs.is_coherent;
+ dld = rhs.dld;
+ return *this;
+ }
+
+ ~Buffer() noexcept {
+ Release();
+ }
+
+ VkBuffer operator*() const noexcept {
+ return handle;
+ }
+
+ void reset() noexcept {
+ Release();
+ handle = nullptr;
+ }
+
+ explicit operator bool() const noexcept {
+ return handle != nullptr;
+ }
+
+ /// Returns the host mapped memory, an empty span otherwise.
+ std::span<u8> Mapped() noexcept {
+ return mapped;
+ }
+
+ std::span<const u8> Mapped() const noexcept {
+ return mapped;
+ }
+
+ /// Returns true if the buffer is mapped to the host.
+ bool IsHostVisible() const noexcept {
+ return !mapped.empty();
+ }
+
+ void Flush() const;
+
+ void Invalidate() const;
+
+ void SetObjectNameEXT(const char* name) const;
+
+private:
+ void Release() const noexcept;
+
+ VkBuffer handle = nullptr;
+ VkDevice owner = nullptr;
+ VmaAllocator allocator = nullptr;
+ VmaAllocation allocation = nullptr;
+ std::span<u8> mapped = {};
+ bool is_coherent = false;
+ const DeviceDispatch* dld = nullptr;
+};
+
class Queue {
public:
/// Construct an empty queue handle.
@@ -639,17 +774,6 @@ private:
const DeviceDispatch* dld = nullptr;
};
-class Buffer : public Handle<VkBuffer, VkDevice, DeviceDispatch> {
- using Handle<VkBuffer, VkDevice, DeviceDispatch>::Handle;
-
-public:
- /// Attaches a memory allocation.
- void BindMemory(VkDeviceMemory memory, VkDeviceSize offset) const;
-
- /// Set object name.
- void SetObjectNameEXT(const char* name) const;
-};
-
class BufferView : public Handle<VkBufferView, VkDevice, DeviceDispatch> {
using Handle<VkBufferView, VkDevice, DeviceDispatch>::Handle;
@@ -658,17 +782,6 @@ public:
void SetObjectNameEXT(const char* name) const;
};
-class Image : public Handle<VkImage, VkDevice, DeviceDispatch> {
- using Handle<VkImage, VkDevice, DeviceDispatch>::Handle;
-
-public:
- /// Attaches a memory allocation.
- void BindMemory(VkDeviceMemory memory, VkDeviceSize offset) const;
-
- /// Set object name.
- void SetObjectNameEXT(const char* name) const;
-};
-
class ImageView : public Handle<VkImageView, VkDevice, DeviceDispatch> {
using Handle<VkImageView, VkDevice, DeviceDispatch>::Handle;
@@ -840,12 +953,8 @@ public:
Queue GetQueue(u32 family_index) const noexcept;
- Buffer CreateBuffer(const VkBufferCreateInfo& ci) const;
-
BufferView CreateBufferView(const VkBufferViewCreateInfo& ci) const;
- Image CreateImage(const VkImageCreateInfo& ci) const;
-
ImageView CreateImageView(const VkImageViewCreateInfo& ci) const;
Semaphore CreateSemaphore() const;
diff --git a/src/web_service/verify_login.cpp b/src/web_service/verify_login.cpp
index 050080278..d5b7161cb 100644
--- a/src/web_service/verify_login.cpp
+++ b/src/web_service/verify_login.cpp
@@ -21,7 +21,7 @@ bool VerifyLogin(const std::string& host, const std::string& username, const std
return username.empty();
}
- return username == *iter;
+ return *iter == username;
}
} // namespace WebService
diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp
index 12a7e4922..dff380cca 100644
--- a/src/web_service/web_backend.cpp
+++ b/src/web_service/web_backend.cpp
@@ -71,7 +71,7 @@ struct Client::Impl {
const std::string& jwt_ = "", const std::string& username_ = "",
const std::string& token_ = "") {
if (cli == nullptr) {
- cli = std::make_unique<httplib::Client>(host.c_str());
+ cli = std::make_unique<httplib::Client>(host);
}
if (!cli->is_valid()) {
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index dfc675cc8..fe98e3605 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -98,6 +98,9 @@ add_executable(yuzu
configuration/configure_input_profile_dialog.cpp
configuration/configure_input_profile_dialog.h
configuration/configure_input_profile_dialog.ui
+ configuration/configure_mouse_panning.cpp
+ configuration/configure_mouse_panning.h
+ configuration/configure_mouse_panning.ui
configuration/configure_motion_touch.cpp
configuration/configure_motion_touch.h
configuration/configure_motion_touch.ui
@@ -189,6 +192,8 @@ add_executable(yuzu
multiplayer/state.h
multiplayer/validation.h
precompiled_headers.h
+ qt_common.cpp
+ qt_common.h
startup_checks.cpp
startup_checks.h
uisettings.cpp
@@ -208,6 +213,8 @@ add_executable(yuzu
util/url_request_interceptor.h
util/util.cpp
util/util.h
+ vk_device_info.cpp
+ vk_device_info.h
compatdb.cpp
compatdb.h
yuzu.qrc
@@ -314,7 +321,7 @@ endif()
create_target_directory_groups(yuzu)
target_link_libraries(yuzu PRIVATE common core input_common network video_core)
-target_link_libraries(yuzu PRIVATE Boost::boost glad Qt${QT_MAJOR_VERSION}::Widgets)
+target_link_libraries(yuzu PRIVATE Boost::headers glad Qt${QT_MAJOR_VERSION}::Widgets)
target_link_libraries(yuzu PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
target_link_libraries(yuzu PRIVATE Vulkan::Headers)
@@ -353,7 +360,7 @@ if (USE_DISCORD_PRESENCE)
discord_impl.cpp
discord_impl.h
)
- target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc)
+ target_link_libraries(yuzu PRIVATE DiscordRPC::discord-rpc httplib::httplib)
target_compile_definitions(yuzu PRIVATE -DUSE_DISCORD_PRESENCE)
endif()
@@ -376,11 +383,7 @@ if(UNIX AND NOT APPLE)
endif()
if (WIN32 AND QT_VERSION VERSION_GREATER_EQUAL 6)
- if (MSVC AND NOT ${CMAKE_GENERATOR} STREQUAL "Ninja")
- set(YUZU_EXE_DIR "${CMAKE_BINARY_DIR}/bin/$<CONFIG>")
- else()
- set(YUZU_EXE_DIR "${CMAKE_BINARY_DIR}/bin")
- endif()
+ set(YUZU_EXE_DIR "$<TARGET_FILE_DIR:yuzu>")
add_custom_command(TARGET yuzu POST_BUILD COMMAND ${WINDEPLOYQT_EXECUTABLE} "${YUZU_EXE_DIR}/yuzu.exe" --dir "${YUZU_EXE_DIR}" --libdir "${YUZU_EXE_DIR}" --plugindir "${YUZU_EXE_DIR}/plugins" --no-compiler-runtime --no-opengl-sw --no-system-d3d-compiler --no-translations --verbose 0)
endif()
diff --git a/src/yuzu/applets/qt_amiibo_settings.cpp b/src/yuzu/applets/qt_amiibo_settings.cpp
index 93ad4b4f9..4988fcc83 100644
--- a/src/yuzu/applets/qt_amiibo_settings.cpp
+++ b/src/yuzu/applets/qt_amiibo_settings.cpp
@@ -8,7 +8,7 @@
#include "common/assert.h"
#include "common/string_util.h"
-#include "core/hle/service/nfp/nfp_device.h"
+#include "core/hle/service/nfc/common/device.h"
#include "core/hle/service/nfp/nfp_result.h"
#include "input_common/drivers/virtual_amiibo.h"
#include "input_common/main.h"
@@ -22,7 +22,7 @@
QtAmiiboSettingsDialog::QtAmiiboSettingsDialog(QWidget* parent,
Core::Frontend::CabinetParameters parameters_,
InputCommon::InputSubsystem* input_subsystem_,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device_)
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device_)
: QDialog(parent), ui(std::make_unique<Ui::QtAmiiboSettingsDialog>()),
input_subsystem{input_subsystem_}, nfp_device{std::move(nfp_device_)},
parameters(std::move(parameters_)) {
@@ -52,11 +52,11 @@ void QtAmiiboSettingsDialog::LoadInfo() {
return;
}
- if (nfp_device->GetCurrentState() != Service::NFP::DeviceState::TagFound &&
- nfp_device->GetCurrentState() != Service::NFP::DeviceState::TagMounted) {
+ if (nfp_device->GetCurrentState() != Service::NFC::DeviceState::TagFound &&
+ nfp_device->GetCurrentState() != Service::NFC::DeviceState::TagMounted) {
return;
}
- nfp_device->Mount(Service::NFP::MountTarget::All);
+ nfp_device->Mount(Service::NFP::ModelType::Amiibo, Service::NFP::MountTarget::All);
LoadAmiiboInfo();
LoadAmiiboData();
@@ -245,20 +245,29 @@ void QtAmiiboSettingsDialog::SetSettingsDescription() {
QtAmiiboSettings::QtAmiiboSettings(GMainWindow& parent) {
connect(this, &QtAmiiboSettings::MainWindowShowAmiiboSettings, &parent,
&GMainWindow::AmiiboSettingsShowDialog, Qt::QueuedConnection);
+ connect(this, &QtAmiiboSettings::MainWindowRequestExit, &parent,
+ &GMainWindow::AmiiboSettingsRequestExit, Qt::QueuedConnection);
connect(&parent, &GMainWindow::AmiiboSettingsFinished, this,
&QtAmiiboSettings::MainWindowFinished, Qt::QueuedConnection);
}
QtAmiiboSettings::~QtAmiiboSettings() = default;
+void QtAmiiboSettings::Close() const {
+ callback = {};
+ emit MainWindowRequestExit();
+}
+
void QtAmiiboSettings::ShowCabinetApplet(
const Core::Frontend::CabinetCallback& callback_,
const Core::Frontend::CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const {
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device) const {
callback = std::move(callback_);
emit MainWindowShowAmiiboSettings(parameters, nfp_device);
}
void QtAmiiboSettings::MainWindowFinished(bool is_success, const std::string& name) {
- callback(is_success, name);
+ if (callback) {
+ callback(is_success, name);
+ }
}
diff --git a/src/yuzu/applets/qt_amiibo_settings.h b/src/yuzu/applets/qt_amiibo_settings.h
index 930c96739..ee66a0255 100644
--- a/src/yuzu/applets/qt_amiibo_settings.h
+++ b/src/yuzu/applets/qt_amiibo_settings.h
@@ -23,9 +23,9 @@ namespace Ui {
class QtAmiiboSettingsDialog;
}
-namespace Service::NFP {
-class NfpDevice;
-} // namespace Service::NFP
+namespace Service::NFC {
+class NfcDevice;
+} // namespace Service::NFC
class QtAmiiboSettingsDialog final : public QDialog {
Q_OBJECT
@@ -33,7 +33,7 @@ class QtAmiiboSettingsDialog final : public QDialog {
public:
explicit QtAmiiboSettingsDialog(QWidget* parent, Core::Frontend::CabinetParameters parameters_,
InputCommon::InputSubsystem* input_subsystem_,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device_);
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device_);
~QtAmiiboSettingsDialog() override;
int exec() override;
@@ -52,7 +52,7 @@ private:
std::unique_ptr<Ui::QtAmiiboSettingsDialog> ui;
InputCommon::InputSubsystem* input_subsystem;
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device;
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device;
// Parameters sent in from the backend HLE applet.
Core::Frontend::CabinetParameters parameters;
@@ -68,13 +68,15 @@ public:
explicit QtAmiiboSettings(GMainWindow& parent);
~QtAmiiboSettings() override;
+ void Close() const override;
void ShowCabinetApplet(const Core::Frontend::CabinetCallback& callback_,
const Core::Frontend::CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const override;
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device) const override;
signals:
void MainWindowShowAmiiboSettings(const Core::Frontend::CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const;
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device) const;
+ void MainWindowRequestExit() const;
private:
void MainWindowFinished(bool is_success, const std::string& name);
diff --git a/src/yuzu/applets/qt_controller.cpp b/src/yuzu/applets/qt_controller.cpp
index c30b54499..00aafb8f8 100644
--- a/src/yuzu/applets/qt_controller.cpp
+++ b/src/yuzu/applets/qt_controller.cpp
@@ -300,7 +300,7 @@ bool QtControllerSelectorDialog::CheckIfParametersMet() {
if (num_connected_players < min_supported_players ||
num_connected_players > max_supported_players) {
parameters_met = false;
- ui->buttonBox->setEnabled(parameters_met);
+ ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(parameters_met);
return parameters_met;
}
@@ -327,7 +327,7 @@ bool QtControllerSelectorDialog::CheckIfParametersMet() {
}();
parameters_met = all_controllers_compatible;
- ui->buttonBox->setEnabled(parameters_met);
+ ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(parameters_met);
return parameters_met;
}
@@ -678,18 +678,27 @@ void QtControllerSelectorDialog::DisableUnsupportedPlayers() {
QtControllerSelector::QtControllerSelector(GMainWindow& parent) {
connect(this, &QtControllerSelector::MainWindowReconfigureControllers, &parent,
&GMainWindow::ControllerSelectorReconfigureControllers, Qt::QueuedConnection);
+ connect(this, &QtControllerSelector::MainWindowRequestExit, &parent,
+ &GMainWindow::ControllerSelectorRequestExit, Qt::QueuedConnection);
connect(&parent, &GMainWindow::ControllerSelectorReconfigureFinished, this,
&QtControllerSelector::MainWindowReconfigureFinished, Qt::QueuedConnection);
}
QtControllerSelector::~QtControllerSelector() = default;
+void QtControllerSelector::Close() const {
+ callback = {};
+ emit MainWindowRequestExit();
+}
+
void QtControllerSelector::ReconfigureControllers(
ReconfigureCallback callback_, const Core::Frontend::ControllerParameters& parameters) const {
callback = std::move(callback_);
emit MainWindowReconfigureControllers(parameters);
}
-void QtControllerSelector::MainWindowReconfigureFinished() {
- callback();
+void QtControllerSelector::MainWindowReconfigureFinished(bool is_success) {
+ if (callback) {
+ callback(is_success);
+ }
}
diff --git a/src/yuzu/applets/qt_controller.h b/src/yuzu/applets/qt_controller.h
index 16e99f507..2fdc35857 100644
--- a/src/yuzu/applets/qt_controller.h
+++ b/src/yuzu/applets/qt_controller.h
@@ -156,6 +156,7 @@ public:
explicit QtControllerSelector(GMainWindow& parent);
~QtControllerSelector() override;
+ void Close() const override;
void ReconfigureControllers(
ReconfigureCallback callback_,
const Core::Frontend::ControllerParameters& parameters) const override;
@@ -163,9 +164,10 @@ public:
signals:
void MainWindowReconfigureControllers(
const Core::Frontend::ControllerParameters& parameters) const;
+ void MainWindowRequestExit() const;
private:
- void MainWindowReconfigureFinished();
+ void MainWindowReconfigureFinished(bool is_success);
mutable ReconfigureCallback callback;
};
diff --git a/src/yuzu/applets/qt_controller.ui b/src/yuzu/applets/qt_controller.ui
index f5eccba70..729e921ee 100644
--- a/src/yuzu/applets/qt_controller.ui
+++ b/src/yuzu/applets/qt_controller.ui
@@ -2629,7 +2629,7 @@
<bool>true</bool>
</property>
<property name="standardButtons">
- <set>QDialogButtonBox::Ok</set>
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
@@ -2649,5 +2649,11 @@
<receiver>QtControllerSelectorDialog</receiver>
<slot>accept()</slot>
</connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>QtControllerSelectorDialog</receiver>
+ <slot>reject()</slot>
+ </connection>
</connections>
</ui>
diff --git a/src/yuzu/applets/qt_error.cpp b/src/yuzu/applets/qt_error.cpp
index e0190a979..1dc4f0383 100644
--- a/src/yuzu/applets/qt_error.cpp
+++ b/src/yuzu/applets/qt_error.cpp
@@ -8,12 +8,19 @@
QtErrorDisplay::QtErrorDisplay(GMainWindow& parent) {
connect(this, &QtErrorDisplay::MainWindowDisplayError, &parent,
&GMainWindow::ErrorDisplayDisplayError, Qt::QueuedConnection);
+ connect(this, &QtErrorDisplay::MainWindowRequestExit, &parent,
+ &GMainWindow::ErrorDisplayRequestExit, Qt::QueuedConnection);
connect(&parent, &GMainWindow::ErrorDisplayFinished, this,
&QtErrorDisplay::MainWindowFinishedError, Qt::DirectConnection);
}
QtErrorDisplay::~QtErrorDisplay() = default;
+void QtErrorDisplay::Close() const {
+ callback = {};
+ emit MainWindowRequestExit();
+}
+
void QtErrorDisplay::ShowError(Result error, FinishedCallback finished) const {
callback = std::move(finished);
emit MainWindowDisplayError(
@@ -55,5 +62,7 @@ void QtErrorDisplay::ShowCustomErrorText(Result error, std::string dialog_text,
}
void QtErrorDisplay::MainWindowFinishedError() {
- callback();
+ if (callback) {
+ callback();
+ }
}
diff --git a/src/yuzu/applets/qt_error.h b/src/yuzu/applets/qt_error.h
index e4e174721..957f170ad 100644
--- a/src/yuzu/applets/qt_error.h
+++ b/src/yuzu/applets/qt_error.h
@@ -16,6 +16,7 @@ public:
explicit QtErrorDisplay(GMainWindow& parent);
~QtErrorDisplay() override;
+ void Close() const override;
void ShowError(Result error, FinishedCallback finished) const override;
void ShowErrorWithTimestamp(Result error, std::chrono::seconds time,
FinishedCallback finished) const override;
@@ -24,6 +25,7 @@ public:
signals:
void MainWindowDisplayError(QString error_code, QString error_text) const;
+ void MainWindowRequestExit() const;
private:
void MainWindowFinishedError();
diff --git a/src/yuzu/applets/qt_profile_select.cpp b/src/yuzu/applets/qt_profile_select.cpp
index 4145c5299..1f3f23038 100644
--- a/src/yuzu/applets/qt_profile_select.cpp
+++ b/src/yuzu/applets/qt_profile_select.cpp
@@ -46,11 +46,13 @@ QPixmap GetIcon(Common::UUID uuid) {
}
} // Anonymous namespace
-QtProfileSelectionDialog::QtProfileSelectionDialog(Core::HID::HIDCore& hid_core, QWidget* parent)
+QtProfileSelectionDialog::QtProfileSelectionDialog(
+ Core::HID::HIDCore& hid_core, QWidget* parent,
+ const Core::Frontend::ProfileSelectParameters& parameters)
: QDialog(parent), profile_manager(std::make_unique<Service::Account::ProfileManager>()) {
outer_layout = new QVBoxLayout;
- instruction_label = new QLabel(tr("Select a user:"));
+ instruction_label = new QLabel();
scroll_area = new QScrollArea;
@@ -93,6 +95,7 @@ QtProfileSelectionDialog::QtProfileSelectionDialog(Core::HID::HIDCore& hid_core,
scroll_area->setLayout(layout);
connect(tree_view, &QTreeView::clicked, this, &QtProfileSelectionDialog::SelectUser);
+ connect(tree_view, &QTreeView::doubleClicked, this, &QtProfileSelectionDialog::accept);
connect(controller_navigation, &ControllerNavigation::TriggerKeyboardEvent,
[this](Qt::Key key) {
if (!this->isActiveWindow()) {
@@ -120,7 +123,8 @@ QtProfileSelectionDialog::QtProfileSelectionDialog(Core::HID::HIDCore& hid_core,
item_model->appendRow(item);
setLayout(outer_layout);
- setWindowTitle(tr("Profile Selector"));
+ SetWindowTitle(parameters);
+ SetDialogPurpose(parameters);
resize(550, 400);
}
@@ -154,20 +158,101 @@ void QtProfileSelectionDialog::SelectUser(const QModelIndex& index) {
user_index = index.row();
}
+void QtProfileSelectionDialog::SetWindowTitle(
+ const Core::Frontend::ProfileSelectParameters& parameters) {
+ using Service::AM::Applets::UiMode;
+ switch (parameters.mode) {
+ case UiMode::UserCreator:
+ case UiMode::UserCreatorForStarter:
+ setWindowTitle(tr("Profile Creator"));
+ return;
+ case UiMode::EnsureNetworkServiceAccountAvailable:
+ setWindowTitle(tr("Profile Selector"));
+ return;
+ case UiMode::UserIconEditor:
+ setWindowTitle(tr("Profile Icon Editor"));
+ return;
+ case UiMode::UserNicknameEditor:
+ setWindowTitle(tr("Profile Nickname Editor"));
+ return;
+ case UiMode::NintendoAccountAuthorizationRequestContext:
+ case UiMode::IntroduceExternalNetworkServiceAccount:
+ case UiMode::IntroduceExternalNetworkServiceAccountForRegistration:
+ case UiMode::NintendoAccountNnidLinker:
+ case UiMode::LicenseRequirementsForNetworkService:
+ case UiMode::LicenseRequirementsForNetworkServiceWithUserContextImpl:
+ case UiMode::UserCreatorForImmediateNaLoginTest:
+ case UiMode::UserQualificationPromoter:
+ case UiMode::UserSelector:
+ default:
+ setWindowTitle(tr("Profile Selector"));
+ }
+}
+
+void QtProfileSelectionDialog::SetDialogPurpose(
+ const Core::Frontend::ProfileSelectParameters& parameters) {
+ using Service::AM::Applets::UserSelectionPurpose;
+
+ switch (parameters.purpose) {
+ case UserSelectionPurpose::GameCardRegistration:
+ instruction_label->setText(tr("Who will receive the points?"));
+ return;
+ case UserSelectionPurpose::EShopLaunch:
+ instruction_label->setText(tr("Who is using Nintendo eShop?"));
+ return;
+ case UserSelectionPurpose::EShopItemShow:
+ instruction_label->setText(tr("Who is making this purchase?"));
+ return;
+ case UserSelectionPurpose::PicturePost:
+ instruction_label->setText(tr("Who is posting?"));
+ return;
+ case UserSelectionPurpose::NintendoAccountLinkage:
+ instruction_label->setText(tr("Select a user to link to a Nintendo Account."));
+ return;
+ case UserSelectionPurpose::SettingsUpdate:
+ instruction_label->setText(tr("Change settings for which user?"));
+ return;
+ case UserSelectionPurpose::SaveDataDeletion:
+ instruction_label->setText(tr("Format data for which user?"));
+ return;
+ case UserSelectionPurpose::UserMigration:
+ instruction_label->setText(tr("Which user will be transferred to another console?"));
+ return;
+ case UserSelectionPurpose::SaveDataTransfer:
+ instruction_label->setText(tr("Send save data for which user?"));
+ return;
+ case UserSelectionPurpose::General:
+ default:
+ instruction_label->setText(tr("Select a user:"));
+ return;
+ }
+}
+
QtProfileSelector::QtProfileSelector(GMainWindow& parent) {
connect(this, &QtProfileSelector::MainWindowSelectProfile, &parent,
&GMainWindow::ProfileSelectorSelectProfile, Qt::QueuedConnection);
+ connect(this, &QtProfileSelector::MainWindowRequestExit, &parent,
+ &GMainWindow::ProfileSelectorRequestExit, Qt::QueuedConnection);
connect(&parent, &GMainWindow::ProfileSelectorFinishedSelection, this,
&QtProfileSelector::MainWindowFinishedSelection, Qt::DirectConnection);
}
QtProfileSelector::~QtProfileSelector() = default;
-void QtProfileSelector::SelectProfile(SelectProfileCallback callback_) const {
+void QtProfileSelector::Close() const {
+ callback = {};
+ emit MainWindowRequestExit();
+}
+
+void QtProfileSelector::SelectProfile(
+ SelectProfileCallback callback_,
+ const Core::Frontend::ProfileSelectParameters& parameters) const {
callback = std::move(callback_);
- emit MainWindowSelectProfile();
+ emit MainWindowSelectProfile(parameters);
}
void QtProfileSelector::MainWindowFinishedSelection(std::optional<Common::UUID> uuid) {
- callback(uuid);
+ if (callback) {
+ callback(uuid);
+ }
}
diff --git a/src/yuzu/applets/qt_profile_select.h b/src/yuzu/applets/qt_profile_select.h
index 637a3bda2..99056e274 100644
--- a/src/yuzu/applets/qt_profile_select.h
+++ b/src/yuzu/applets/qt_profile_select.h
@@ -28,7 +28,8 @@ class QtProfileSelectionDialog final : public QDialog {
Q_OBJECT
public:
- explicit QtProfileSelectionDialog(Core::HID::HIDCore& hid_core, QWidget* parent);
+ explicit QtProfileSelectionDialog(Core::HID::HIDCore& hid_core, QWidget* parent,
+ const Core::Frontend::ProfileSelectParameters& parameters);
~QtProfileSelectionDialog() override;
int exec() override;
@@ -40,6 +41,9 @@ public:
private:
void SelectUser(const QModelIndex& index);
+ void SetWindowTitle(const Core::Frontend::ProfileSelectParameters& parameters);
+ void SetDialogPurpose(const Core::Frontend::ProfileSelectParameters& parameters);
+
int user_index = 0;
QVBoxLayout* layout;
@@ -65,10 +69,13 @@ public:
explicit QtProfileSelector(GMainWindow& parent);
~QtProfileSelector() override;
- void SelectProfile(SelectProfileCallback callback_) const override;
+ void Close() const override;
+ void SelectProfile(SelectProfileCallback callback_,
+ const Core::Frontend::ProfileSelectParameters& parameters) const override;
signals:
- void MainWindowSelectProfile() const;
+ void MainWindowSelectProfile(const Core::Frontend::ProfileSelectParameters& parameters) const;
+ void MainWindowRequestExit() const;
private:
void MainWindowFinishedSelection(std::optional<Common::UUID> uuid);
diff --git a/src/yuzu/applets/qt_software_keyboard.cpp b/src/yuzu/applets/qt_software_keyboard.cpp
index 734b0ea40..4ae49506d 100644
--- a/src/yuzu/applets/qt_software_keyboard.cpp
+++ b/src/yuzu/applets/qt_software_keyboard.cpp
@@ -575,7 +575,7 @@ void QtSoftwareKeyboardDialog::MoveAndResizeWindow(QPoint pos, QSize size) {
QDialog::resize(size);
// High DPI
- const float dpi_scale = qApp->screenAt(pos)->logicalDotsPerInch() / 96.0f;
+ const float dpi_scale = screen()->logicalDotsPerInch() / 96.0f;
RescaleKeyboardElements(size.width(), size.height(), dpi_scale);
}
diff --git a/src/yuzu/applets/qt_software_keyboard.h b/src/yuzu/applets/qt_software_keyboard.h
index 30ac8ecf6..ac23ce047 100644
--- a/src/yuzu/applets/qt_software_keyboard.h
+++ b/src/yuzu/applets/qt_software_keyboard.h
@@ -233,6 +233,10 @@ public:
explicit QtSoftwareKeyboard(GMainWindow& parent);
~QtSoftwareKeyboard() override;
+ void Close() const override {
+ ExitKeyboard();
+ }
+
void InitializeKeyboard(bool is_inline,
Core::Frontend::KeyboardInitializeParameters initialize_parameters,
SubmitNormalCallback submit_normal_callback_,
diff --git a/src/yuzu/applets/qt_web_browser.cpp b/src/yuzu/applets/qt_web_browser.cpp
index 0a5912326..28acc0ff8 100644
--- a/src/yuzu/applets/qt_web_browser.cpp
+++ b/src/yuzu/applets/qt_web_browser.cpp
@@ -393,6 +393,8 @@ void QtNXWebEngineView::FocusFirstLinkElement() {
QtWebBrowser::QtWebBrowser(GMainWindow& main_window) {
connect(this, &QtWebBrowser::MainWindowOpenWebPage, &main_window,
&GMainWindow::WebBrowserOpenWebPage, Qt::QueuedConnection);
+ connect(this, &QtWebBrowser::MainWindowRequestExit, &main_window,
+ &GMainWindow::WebBrowserRequestExit, Qt::QueuedConnection);
connect(&main_window, &GMainWindow::WebBrowserExtractOfflineRomFS, this,
&QtWebBrowser::MainWindowExtractOfflineRomFS, Qt::QueuedConnection);
connect(&main_window, &GMainWindow::WebBrowserClosed, this,
@@ -401,6 +403,11 @@ QtWebBrowser::QtWebBrowser(GMainWindow& main_window) {
QtWebBrowser::~QtWebBrowser() = default;
+void QtWebBrowser::Close() const {
+ callback = {};
+ emit MainWindowRequestExit();
+}
+
void QtWebBrowser::OpenLocalWebPage(const std::string& local_url,
ExtractROMFSCallback extract_romfs_callback_,
OpenWebPageCallback callback_) const {
@@ -436,5 +443,7 @@ void QtWebBrowser::MainWindowExtractOfflineRomFS() {
void QtWebBrowser::MainWindowWebBrowserClosed(Service::AM::Applets::WebExitReason exit_reason,
std::string last_url) {
- callback(exit_reason, last_url);
+ if (callback) {
+ callback(exit_reason, last_url);
+ }
}
diff --git a/src/yuzu/applets/qt_web_browser.h b/src/yuzu/applets/qt_web_browser.h
index e8fe511ed..1234108ae 100644
--- a/src/yuzu/applets/qt_web_browser.h
+++ b/src/yuzu/applets/qt_web_browser.h
@@ -110,7 +110,7 @@ private:
/**
* Handles button presses to execute functions assigned in yuzu_key_callbacks.
* yuzu_key_callbacks contains specialized functions for the buttons in the window footer
- * that can be overriden by games to achieve desired functionality.
+ * that can be overridden by games to achieve desired functionality.
*
* @tparam HIDButton The list of buttons contained in yuzu_key_callbacks
*/
@@ -196,6 +196,7 @@ public:
explicit QtWebBrowser(GMainWindow& parent);
~QtWebBrowser() override;
+ void Close() const override;
void OpenLocalWebPage(const std::string& local_url,
ExtractROMFSCallback extract_romfs_callback_,
OpenWebPageCallback callback_) const override;
@@ -206,6 +207,7 @@ public:
signals:
void MainWindowOpenWebPage(const std::string& main_url, const std::string& additional_args,
bool is_local) const;
+ void MainWindowRequestExit() const;
private:
void MainWindowExtractOfflineRomFS();
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index d65991734..bdd1497b5 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -1,50 +1,68 @@
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <algorithm>
+#include <array>
+#include <cmath>
+#include <cstring>
+#include <string>
+#include <tuple>
+#include <type_traits>
#include <glad/glad.h>
-#include <QApplication>
+#include <QtCore/qglobal.h>
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA
+#include <QCamera>
#include <QCameraImageCapture>
#include <QCameraInfo>
#endif
+#include <QCursor>
+#include <QEvent>
+#include <QGuiApplication>
#include <QHBoxLayout>
+#include <QKeyEvent>
+#include <QLayout>
+#include <QList>
#include <QMessageBox>
-#include <QPainter>
#include <QScreen>
-#include <QString>
-#include <QStringList>
+#include <QSize>
+#include <QStringLiteral>
+#include <QSurfaceFormat>
+#include <QTimer>
#include <QWindow>
+#include <QtCore/qobjectdefs.h>
#ifdef HAS_OPENGL
#include <QOffscreenSurface>
#include <QOpenGLContext>
#endif
-#if !defined(WIN32)
-#include <qpa/qplatformnativeinterface.h>
-#endif
-
-#include <fmt/format.h>
-
-#include "common/assert.h"
#include "common/microprofile.h"
+#include "common/polyfill_thread.h"
#include "common/scm_rev.h"
#include "common/settings.h"
+#include "common/settings_input.h"
+#include "common/thread.h"
#include "core/core.h"
#include "core/cpu_manager.h"
#include "core/frontend/framebuffer_layout.h"
+#include "core/frontend/graphics_context.h"
#include "input_common/drivers/camera.h"
#include "input_common/drivers/keyboard.h"
#include "input_common/drivers/mouse.h"
#include "input_common/drivers/tas_input.h"
#include "input_common/drivers/touch_screen.h"
#include "input_common/main.h"
+#include "video_core/gpu.h"
+#include "video_core/rasterizer_interface.h"
#include "video_core/renderer_base.h"
#include "yuzu/bootmanager.h"
#include "yuzu/main.h"
+#include "yuzu/qt_common.h"
-static Core::Frontend::WindowSystemType GetWindowSystemType();
+class QObject;
+class QPaintEngine;
+class QSurface;
EmuThread::EmuThread(Core::System& system) : m_system{system} {}
@@ -67,7 +85,7 @@ void EmuThread::run() {
emit LoadProgress(VideoCore::LoadCallbackStage::Prepare, 0, 0);
if (Settings::values.use_disk_shader_cache.GetValue()) {
m_system.Renderer().ReadRasterizer()->LoadDiskResources(
- m_system.GetCurrentProcessProgramID(), stop_token,
+ m_system.GetApplicationProcessProgramID(), stop_token,
[this](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) {
emit LoadProgress(stage, value, total);
});
@@ -87,14 +105,12 @@ void EmuThread::run() {
std::unique_lock lk{m_should_run_mutex};
if (m_should_run) {
m_system.Run();
- m_is_running.store(true);
- m_is_running.notify_all();
+ m_stopped.Reset();
Common::CondvarWait(m_should_run_cv, lk, stop_token, [&] { return !m_should_run; });
} else {
m_system.Pause();
- m_is_running.store(false);
- m_is_running.notify_all();
+ m_stopped.Set();
EmulationPaused(lk);
Common::CondvarWait(m_should_run_cv, lk, stop_token, [&] { return m_should_run; });
@@ -154,7 +170,10 @@ public:
// disable vsync for any shared contexts
auto format = share_context->format();
- format.setSwapInterval(main_surface ? Settings::values.use_vsync.GetValue() : 0);
+ const int swap_interval =
+ Settings::values.vsync_mode.GetValue() == Settings::VSyncMode::Immediate ? 0 : 1;
+
+ format.setSwapInterval(main_surface ? swap_interval : 0);
context = std::make_unique<QOpenGLContext>();
context->setShareContext(share_context);
@@ -221,7 +240,7 @@ public:
explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) {
setAttribute(Qt::WA_NativeWindow);
setAttribute(Qt::WA_PaintOnScreen);
- if (GetWindowSystemType() == Core::Frontend::WindowSystemType::Wayland) {
+ if (QtCommon::GetWindowSystemType() == Core::Frontend::WindowSystemType::Wayland) {
setAttribute(Qt::WA_DontCreateNativeAncestors);
}
}
@@ -259,46 +278,6 @@ struct NullRenderWidget : public RenderWidget {
explicit NullRenderWidget(GRenderWindow* parent) : RenderWidget(parent) {}
};
-static Core::Frontend::WindowSystemType GetWindowSystemType() {
- // Determine WSI type based on Qt platform.
- QString platform_name = QGuiApplication::platformName();
- if (platform_name == QStringLiteral("windows"))
- return Core::Frontend::WindowSystemType::Windows;
- else if (platform_name == QStringLiteral("xcb"))
- return Core::Frontend::WindowSystemType::X11;
- else if (platform_name == QStringLiteral("wayland"))
- return Core::Frontend::WindowSystemType::Wayland;
- else if (platform_name == QStringLiteral("wayland-egl"))
- return Core::Frontend::WindowSystemType::Wayland;
- else if (platform_name == QStringLiteral("cocoa"))
- return Core::Frontend::WindowSystemType::Cocoa;
- else if (platform_name == QStringLiteral("android"))
- return Core::Frontend::WindowSystemType::Android;
-
- LOG_CRITICAL(Frontend, "Unknown Qt platform {}!", platform_name.toStdString());
- return Core::Frontend::WindowSystemType::Windows;
-}
-
-static Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window) {
- Core::Frontend::EmuWindow::WindowSystemInfo wsi;
- wsi.type = GetWindowSystemType();
-
- // Our Win32 Qt external doesn't have the private API.
-#if defined(WIN32) || defined(__APPLE__)
- wsi.render_surface = window ? reinterpret_cast<void*>(window->winId()) : nullptr;
-#else
- QPlatformNativeInterface* pni = QGuiApplication::platformNativeInterface();
- wsi.display_connection = pni->nativeResourceForWindow("display", window);
- if (wsi.type == Core::Frontend::WindowSystemType::Wayland)
- wsi.render_surface = window ? pni->nativeResourceForWindow("surface", window) : nullptr;
- else
- wsi.render_surface = window ? reinterpret_cast<void*>(window->winId()) : nullptr;
-#endif
- wsi.render_surface_scale = window ? static_cast<float>(window->devicePixelRatio()) : 1.0f;
-
- return wsi;
-}
-
GRenderWindow::GRenderWindow(GMainWindow* parent, EmuThread* emu_thread_,
std::shared_ptr<InputCommon::InputSubsystem> input_subsystem_,
Core::System& system_)
@@ -652,7 +631,10 @@ void GRenderWindow::mousePressEvent(QMouseEvent* event) {
const auto [x, y] = ScaleTouch(pos);
const auto [touch_x, touch_y] = MapToTouchScreen(x, y);
const auto button = QtButtonToMouseButton(event->button());
- input_subsystem->GetMouse()->PressButton(x, y, touch_x, touch_y, button);
+
+ input_subsystem->GetMouse()->PressMouseButton(button);
+ input_subsystem->GetMouse()->PressButton(pos.x(), pos.y(), button);
+ input_subsystem->GetMouse()->PressTouchButton(touch_x, touch_y, button);
emit MouseActivity();
}
@@ -669,7 +651,10 @@ void GRenderWindow::mouseMoveEvent(QMouseEvent* event) {
const auto [touch_x, touch_y] = MapToTouchScreen(x, y);
const int center_x = width() / 2;
const int center_y = height() / 2;
- input_subsystem->GetMouse()->MouseMove(x, y, touch_x, touch_y, center_x, center_y);
+
+ 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);
if (Settings::values.mouse_panning && !Settings::values.mouse_enabled) {
QCursor::setPos(mapToGlobal(QPoint{center_x, center_y}));
@@ -898,7 +883,7 @@ bool GRenderWindow::InitRenderTarget() {
}
// Update the Window System information with the new render target
- window_info = GetWindowSystemInfo(child_widget->windowHandle());
+ window_info = QtCommon::GetWindowSystemInfo(child_widget->windowHandle());
child_widget->resize(Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height);
layout()->addWidget(child_widget);
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h
index 092c6206f..87b23df12 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -3,29 +3,46 @@
#pragma once
-#include <atomic>
#include <condition_variable>
+#include <cstddef>
#include <memory>
#include <mutex>
+#include <utility>
+#include <vector>
+#include <QByteArray>
#include <QImage>
+#include <QObject>
+#include <QPoint>
+#include <QString>
#include <QStringList>
#include <QThread>
-#include <QTouchEvent>
#include <QWidget>
+#include <qglobal.h>
+#include <qnamespace.h>
+#include <qobjectdefs.h>
+#include "common/common_types.h"
+#include "common/logging/log.h"
#include "common/polyfill_thread.h"
#include "common/thread.h"
#include "core/frontend/emu_window.h"
-class GRenderWindow;
class GMainWindow;
class QCamera;
class QCameraImageCapture;
+class QCloseEvent;
+class QFocusEvent;
class QKeyEvent;
+class QMouseEvent;
+class QObject;
+class QResizeEvent;
+class QShowEvent;
+class QTimer;
+class QTouchEvent;
+class QWheelEvent;
namespace Core {
-enum class SystemResultStatus : u32;
class System;
} // namespace Core
@@ -40,7 +57,6 @@ enum class TasState;
namespace VideoCore {
enum class LoadCallbackStage;
-class RendererBase;
} // namespace VideoCore
class EmuThread final : public QThread {
@@ -71,7 +87,7 @@ public:
// Wait until paused, if pausing.
if (!should_run) {
- m_is_running.wait(true);
+ m_stopped.Wait();
}
}
@@ -80,7 +96,7 @@ public:
* @return True if the emulation thread is running, otherwise false
*/
bool IsRunning() const {
- return m_is_running.load() || m_should_run;
+ return m_should_run;
}
/**
@@ -101,7 +117,7 @@ private:
std::stop_source m_stop_source;
std::mutex m_should_run_mutex;
std::condition_variable_any m_should_run_cv;
- std::atomic<bool> m_is_running{false};
+ Common::Event m_stopped;
bool m_should_run{true};
signals:
@@ -147,6 +163,8 @@ public:
qreal windowPixelRatio() const;
+ std::pair<u32, u32> ScaleTouch(const QPointF& pos) const;
+
void closeEvent(QCloseEvent* event) override;
void resizeEvent(QResizeEvent* event) override;
@@ -184,8 +202,6 @@ public:
void CaptureScreenshot(const QString& screenshot_path);
- std::pair<u32, u32> ScaleTouch(const QPointF& pos) const;
-
/**
* Instructs the window to re-launch the application using the specified program_index.
* @param program_index Specifies the index within the application of the program to launch.
diff --git a/src/yuzu/compatdb.cpp b/src/yuzu/compatdb.cpp
index 05f49c0d2..a57a96a38 100644
--- a/src/yuzu/compatdb.cpp
+++ b/src/yuzu/compatdb.cpp
@@ -76,7 +76,7 @@ void CompatDB::Submit() {
compatibility_Graphical->addButton(ui->radioButton_Audio_Minor, 1);
compatibility_Audio->addButton(ui->radioButton_Audio_No, 2);
- const int compatiblity = static_cast<int>(CalculateCompatibility());
+ const int compatibility = static_cast<int>(CalculateCompatibility());
switch ((static_cast<CompatDBPage>(currentId()))) {
case CompatDBPage::Intro:
@@ -113,9 +113,9 @@ void CompatDB::Submit() {
break;
case CompatDBPage::Final:
back();
- LOG_INFO(Frontend, "Compatibility Rating: {}", compatiblity);
+ LOG_INFO(Frontend, "Compatibility Rating: {}", compatibility);
telemetry_session.AddField(Common::Telemetry::FieldType::UserFeedback, "Compatibility",
- compatiblity);
+ compatibility);
button(NextButton)->setEnabled(false);
button(NextButton)->setText(tr("Submitting"));
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index 1f1ef658c..29467d380 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -6,6 +6,7 @@
#include <QSettings>
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
+#include "common/settings.h"
#include "core/core.h"
#include "core/hle/service/acc/profile_manager.h"
#include "core/hle/service/hid/controllers/npad.h"
@@ -64,6 +65,48 @@ const std::array<int, 2> Config::default_ringcon_analogs{{
Qt::Key_D,
}};
+const std::map<Settings::AntiAliasing, QString> Config::anti_aliasing_texts_map = {
+ {Settings::AntiAliasing::None, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "None"))},
+ {Settings::AntiAliasing::Fxaa, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "FXAA"))},
+ {Settings::AntiAliasing::Smaa, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "SMAA"))},
+};
+
+const std::map<Settings::ScalingFilter, QString> Config::scaling_filter_texts_map = {
+ {Settings::ScalingFilter::NearestNeighbor,
+ QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Nearest"))},
+ {Settings::ScalingFilter::Bilinear,
+ QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Bilinear"))},
+ {Settings::ScalingFilter::Bicubic, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Bicubic"))},
+ {Settings::ScalingFilter::Gaussian,
+ QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Gaussian"))},
+ {Settings::ScalingFilter::ScaleForce,
+ QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "ScaleForce"))},
+ {Settings::ScalingFilter::Fsr, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "FSR"))},
+};
+
+const std::map<bool, QString> Config::use_docked_mode_texts_map = {
+ {true, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Docked"))},
+ {false, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Handheld"))},
+};
+
+const std::map<Settings::GPUAccuracy, QString> Config::gpu_accuracy_texts_map = {
+ {Settings::GPUAccuracy::Normal, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Normal"))},
+ {Settings::GPUAccuracy::High, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "High"))},
+ {Settings::GPUAccuracy::Extreme, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Extreme"))},
+};
+
+const std::map<Settings::RendererBackend, QString> Config::renderer_backend_texts_map = {
+ {Settings::RendererBackend::Vulkan, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Vulkan"))},
+ {Settings::RendererBackend::OpenGL, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "OpenGL"))},
+ {Settings::RendererBackend::Null, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Null"))},
+};
+
+const std::map<Settings::ShaderBackend, QString> Config::shader_backend_texts_map = {
+ {Settings::ShaderBackend::GLSL, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "GLSL"))},
+ {Settings::ShaderBackend::GLASM, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "GLASM"))},
+ {Settings::ShaderBackend::SPIRV, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "SPIRV"))},
+};
+
// This shouldn't have anything except static initializers (no functions). So
// QKeySequence(...).toString() is NOT ALLOWED HERE.
// This must be in alphabetical order according to action name as it must have the same order as
@@ -308,6 +351,10 @@ void Config::ReadPlayerValue(std::size_t player_index) {
player_motions = default_param;
}
}
+
+ if (player_index == 0) {
+ ReadMousePanningValues();
+ }
}
void Config::ReadDebugValues() {
@@ -428,6 +475,7 @@ void Config::ReadControlValues() {
ReadKeyboardValues();
ReadMouseValues();
ReadTouchscreenValues();
+ ReadMousePanningValues();
ReadMotionTouchValues();
ReadHidbusValues();
ReadIrCameraValues();
@@ -438,8 +486,9 @@ void Config::ReadControlValues() {
Settings::values.enable_raw_input = false;
#endif
ReadBasicSetting(Settings::values.emulate_analog_keyboard);
- Settings::values.mouse_panning = false;
- ReadBasicSetting(Settings::values.mouse_panning_sensitivity);
+ ReadBasicSetting(Settings::values.enable_joycon_driver);
+ ReadBasicSetting(Settings::values.enable_procon_driver);
+ ReadBasicSetting(Settings::values.random_amiibo_id);
ReadBasicSetting(Settings::values.tas_enable);
ReadBasicSetting(Settings::values.tas_loop);
@@ -450,6 +499,16 @@ void Config::ReadControlValues() {
qt_config->endGroup();
}
+void Config::ReadMousePanningValues() {
+ ReadBasicSetting(Settings::values.mouse_panning);
+ ReadBasicSetting(Settings::values.mouse_panning_x_sensitivity);
+ ReadBasicSetting(Settings::values.mouse_panning_y_sensitivity);
+ ReadBasicSetting(Settings::values.mouse_panning_deadzone_x_counterweight);
+ ReadBasicSetting(Settings::values.mouse_panning_deadzone_y_counterweight);
+ ReadBasicSetting(Settings::values.mouse_panning_decay_strength);
+ ReadBasicSetting(Settings::values.mouse_panning_min_decay);
+}
+
void Config::ReadMotionTouchValues() {
int num_touch_from_button_maps =
qt_config->beginReadArray(QStringLiteral("touch_from_button_maps"));
@@ -495,7 +554,7 @@ void Config::ReadCoreValues() {
qt_config->beginGroup(QStringLiteral("Core"));
ReadGlobalSetting(Settings::values.use_multi_core);
- ReadGlobalSetting(Settings::values.use_extended_memory_layout);
+ ReadGlobalSetting(Settings::values.use_unsafe_extended_memory_layout);
qt_config->endGroup();
}
@@ -690,6 +749,7 @@ void Config::ReadRendererValues() {
qt_config->beginGroup(QStringLiteral("Renderer"));
ReadGlobalSetting(Settings::values.renderer_backend);
+ ReadGlobalSetting(Settings::values.async_presentation);
ReadGlobalSetting(Settings::values.renderer_force_max_clock);
ReadGlobalSetting(Settings::values.vulkan_device);
ReadGlobalSetting(Settings::values.fullscreen_mode);
@@ -705,17 +765,25 @@ void Config::ReadRendererValues() {
ReadGlobalSetting(Settings::values.use_asynchronous_gpu_emulation);
ReadGlobalSetting(Settings::values.nvdec_emulation);
ReadGlobalSetting(Settings::values.accelerate_astc);
- ReadGlobalSetting(Settings::values.use_vsync);
+ ReadGlobalSetting(Settings::values.async_astc);
+ ReadGlobalSetting(Settings::values.astc_recompression);
+ ReadGlobalSetting(Settings::values.use_reactive_flushing);
ReadGlobalSetting(Settings::values.shader_backend);
ReadGlobalSetting(Settings::values.use_asynchronous_shaders);
ReadGlobalSetting(Settings::values.use_fast_gpu_time);
- ReadGlobalSetting(Settings::values.use_pessimistic_flushes);
ReadGlobalSetting(Settings::values.use_vulkan_driver_pipeline_cache);
+ ReadGlobalSetting(Settings::values.enable_compute_pipelines);
+ ReadGlobalSetting(Settings::values.use_video_framerate);
+ ReadGlobalSetting(Settings::values.barrier_feedback_loops);
ReadGlobalSetting(Settings::values.bg_red);
ReadGlobalSetting(Settings::values.bg_green);
ReadGlobalSetting(Settings::values.bg_blue);
if (global) {
+ Settings::values.vsync_mode.SetValue(static_cast<Settings::VSyncMode>(
+ ReadSetting(QString::fromStdString(Settings::values.vsync_mode.GetLabel()),
+ static_cast<u32>(Settings::values.vsync_mode.GetDefault()))
+ .value<u32>()));
ReadBasicSetting(Settings::values.renderer_debug);
ReadBasicSetting(Settings::values.renderer_shader_feedback);
ReadBasicSetting(Settings::values.enable_nsight_aftermath);
@@ -1010,6 +1078,10 @@ void Config::SavePlayerValue(std::size_t player_index) {
QString::fromStdString(player.motions[i]),
QString::fromStdString(default_param));
}
+
+ if (player_index == 0) {
+ SaveMousePanningValues();
+ }
}
void Config::SaveDebugValues() {
@@ -1046,6 +1118,16 @@ void Config::SaveTouchscreenValues() {
WriteSetting(QStringLiteral("touchscreen_diameter_y"), touchscreen.diameter_y, 15);
}
+void Config::SaveMousePanningValues() {
+ // Don't overwrite values.mouse_panning
+ WriteBasicSetting(Settings::values.mouse_panning_x_sensitivity);
+ WriteBasicSetting(Settings::values.mouse_panning_y_sensitivity);
+ WriteBasicSetting(Settings::values.mouse_panning_deadzone_x_counterweight);
+ WriteBasicSetting(Settings::values.mouse_panning_deadzone_y_counterweight);
+ WriteBasicSetting(Settings::values.mouse_panning_decay_strength);
+ WriteBasicSetting(Settings::values.mouse_panning_min_decay);
+}
+
void Config::SaveMotionTouchValues() {
WriteBasicSetting(Settings::values.touch_device);
WriteBasicSetting(Settings::values.touch_from_button_map_index);
@@ -1102,6 +1184,7 @@ void Config::SaveValues() {
SaveRendererValues();
SaveAudioValues();
SaveSystemValues();
+ qt_config->sync();
}
void Config::SaveAudioValues() {
@@ -1131,6 +1214,7 @@ void Config::SaveControlValues() {
SaveDebugValues();
SaveMouseValues();
SaveTouchscreenValues();
+ SaveMousePanningValues();
SaveMotionTouchValues();
SaveHidbusValues();
SaveIrCameraValues();
@@ -1140,9 +1224,11 @@ void Config::SaveControlValues() {
WriteGlobalSetting(Settings::values.enable_accurate_vibrations);
WriteGlobalSetting(Settings::values.motion_enabled);
WriteBasicSetting(Settings::values.enable_raw_input);
+ WriteBasicSetting(Settings::values.enable_joycon_driver);
+ WriteBasicSetting(Settings::values.enable_procon_driver);
+ WriteBasicSetting(Settings::values.random_amiibo_id);
WriteBasicSetting(Settings::values.keyboard_enabled);
WriteBasicSetting(Settings::values.emulate_analog_keyboard);
- WriteBasicSetting(Settings::values.mouse_panning_sensitivity);
WriteBasicSetting(Settings::values.controller_navigation);
WriteBasicSetting(Settings::values.tas_enable);
@@ -1156,7 +1242,7 @@ void Config::SaveCoreValues() {
qt_config->beginGroup(QStringLiteral("Core"));
WriteGlobalSetting(Settings::values.use_multi_core);
- WriteGlobalSetting(Settings::values.use_extended_memory_layout);
+ WriteGlobalSetting(Settings::values.use_unsafe_extended_memory_layout);
qt_config->endGroup();
}
@@ -1308,9 +1394,8 @@ void Config::SaveRendererValues() {
static_cast<u32>(Settings::values.renderer_backend.GetValue(global)),
static_cast<u32>(Settings::values.renderer_backend.GetDefault()),
Settings::values.renderer_backend.UsingGlobal());
- WriteSetting(QString::fromStdString(Settings::values.renderer_force_max_clock.GetLabel()),
- static_cast<u32>(Settings::values.renderer_force_max_clock.GetValue(global)),
- static_cast<u32>(Settings::values.renderer_force_max_clock.GetDefault()));
+ WriteGlobalSetting(Settings::values.async_presentation);
+ WriteGlobalSetting(Settings::values.renderer_force_max_clock);
WriteGlobalSetting(Settings::values.vulkan_device);
WriteSetting(QString::fromStdString(Settings::values.fullscreen_mode.GetLabel()),
static_cast<u32>(Settings::values.fullscreen_mode.GetValue(global)),
@@ -1346,20 +1431,30 @@ void Config::SaveRendererValues() {
static_cast<u32>(Settings::values.nvdec_emulation.GetDefault()),
Settings::values.nvdec_emulation.UsingGlobal());
WriteGlobalSetting(Settings::values.accelerate_astc);
- WriteGlobalSetting(Settings::values.use_vsync);
+ WriteGlobalSetting(Settings::values.async_astc);
+ WriteSetting(QString::fromStdString(Settings::values.astc_recompression.GetLabel()),
+ static_cast<u32>(Settings::values.astc_recompression.GetValue(global)),
+ static_cast<u32>(Settings::values.astc_recompression.GetDefault()),
+ Settings::values.astc_recompression.UsingGlobal());
+ WriteGlobalSetting(Settings::values.use_reactive_flushing);
WriteSetting(QString::fromStdString(Settings::values.shader_backend.GetLabel()),
static_cast<u32>(Settings::values.shader_backend.GetValue(global)),
static_cast<u32>(Settings::values.shader_backend.GetDefault()),
Settings::values.shader_backend.UsingGlobal());
WriteGlobalSetting(Settings::values.use_asynchronous_shaders);
WriteGlobalSetting(Settings::values.use_fast_gpu_time);
- WriteGlobalSetting(Settings::values.use_pessimistic_flushes);
WriteGlobalSetting(Settings::values.use_vulkan_driver_pipeline_cache);
+ WriteGlobalSetting(Settings::values.enable_compute_pipelines);
+ WriteGlobalSetting(Settings::values.use_video_framerate);
+ WriteGlobalSetting(Settings::values.barrier_feedback_loops);
WriteGlobalSetting(Settings::values.bg_red);
WriteGlobalSetting(Settings::values.bg_green);
WriteGlobalSetting(Settings::values.bg_blue);
if (global) {
+ WriteSetting(QString::fromStdString(Settings::values.vsync_mode.GetLabel()),
+ static_cast<u32>(Settings::values.vsync_mode.GetValue()),
+ static_cast<u32>(Settings::values.vsync_mode.GetDefault()));
WriteBasicSetting(Settings::values.renderer_debug);
WriteBasicSetting(Settings::values.renderer_shader_feedback);
WriteBasicSetting(Settings::values.enable_nsight_aftermath);
diff --git a/src/yuzu/configuration/config.h b/src/yuzu/configuration/config.h
index 7d26e9ab6..1211389d2 100644
--- a/src/yuzu/configuration/config.h
+++ b/src/yuzu/configuration/config.h
@@ -49,6 +49,13 @@ public:
static const std::array<int, Settings::NativeKeyboard::NumKeyboardMods> default_keyboard_mods;
static const std::array<UISettings::Shortcut, 22> default_hotkeys;
+ static const std::map<Settings::AntiAliasing, QString> anti_aliasing_texts_map;
+ static const std::map<Settings::ScalingFilter, QString> scaling_filter_texts_map;
+ static const std::map<bool, QString> use_docked_mode_texts_map;
+ static const std::map<Settings::GPUAccuracy, QString> gpu_accuracy_texts_map;
+ static const std::map<Settings::RendererBackend, QString> renderer_backend_texts_map;
+ static const std::map<Settings::ShaderBackend, QString> shader_backend_texts_map;
+
static constexpr UISettings::Theme default_theme{
#ifdef _WIN32
UISettings::Theme::DarkColorful
@@ -67,6 +74,7 @@ private:
void ReadKeyboardValues();
void ReadMouseValues();
void ReadTouchscreenValues();
+ void ReadMousePanningValues();
void ReadMotionTouchValues();
void ReadHidbusValues();
void ReadIrCameraValues();
@@ -97,6 +105,7 @@ private:
void SaveDebugValues();
void SaveMouseValues();
void SaveTouchscreenValues();
+ void SaveMousePanningValues();
void SaveMotionTouchValues();
void SaveHidbusValues();
void SaveIrCameraValues();
@@ -208,3 +217,4 @@ Q_DECLARE_METATYPE(Settings::ScalingFilter);
Q_DECLARE_METATYPE(Settings::AntiAliasing);
Q_DECLARE_METATYPE(Settings::RendererBackend);
Q_DECLARE_METATYPE(Settings::ShaderBackend);
+Q_DECLARE_METATYPE(Settings::AstcRecompression);
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp
index 70cc6f84b..fcd6d61a0 100644
--- a/src/yuzu/configuration/configure_audio.cpp
+++ b/src/yuzu/configuration/configure_audio.cpp
@@ -10,6 +10,7 @@
#include "ui_configure_audio.h"
#include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/configure_audio.h"
+#include "yuzu/uisettings.h"
ConfigureAudio::ConfigureAudio(const Core::System& system_, QWidget* parent)
: QWidget(parent), ui(std::make_unique<Ui::ConfigureAudio>()), system{system_} {
@@ -47,6 +48,7 @@ void ConfigureAudio::SetConfiguration() {
const auto volume_value = static_cast<int>(Settings::values.volume.GetValue());
ui->volume_slider->setValue(volume_value);
+ ui->toggle_background_mute->setChecked(UISettings::values.mute_when_in_background.GetValue());
if (!Settings::IsConfiguringGlobal()) {
if (Settings::values.volume.UsingGlobal()) {
@@ -56,8 +58,13 @@ void ConfigureAudio::SetConfiguration() {
ui->volume_combo_box->setCurrentIndex(1);
ui->volume_slider->setEnabled(true);
}
+ ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index);
+ ConfigurationShared::SetHighlight(ui->mode_label,
+ !Settings::values.sound_index.UsingGlobal());
ConfigurationShared::SetHighlight(ui->volume_layout,
!Settings::values.volume.UsingGlobal());
+ } else {
+ ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue());
}
SetVolumeIndicatorText(ui->volume_slider->sliderPosition());
}
@@ -109,6 +116,8 @@ void ConfigureAudio::SetVolumeIndicatorText(int percentage) {
}
void ConfigureAudio::ApplyConfiguration() {
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.sound_index, ui->combo_sound);
+
if (Settings::IsConfiguringGlobal()) {
Settings::values.sink_id =
ui->sink_combo_box->itemText(ui->sink_combo_box->currentIndex()).toStdString();
@@ -116,6 +125,7 @@ void ConfigureAudio::ApplyConfiguration() {
ui->output_combo_box->itemText(ui->output_combo_box->currentIndex()).toStdString());
Settings::values.audio_input_device_id.SetValue(
ui->input_combo_box->itemText(ui->input_combo_box->currentIndex()).toStdString());
+ UISettings::values.mute_when_in_background = ui->toggle_background_mute->isChecked();
// Guard if during game and set to game-specific value
if (Settings::values.volume.UsingGlobal()) {
@@ -173,11 +183,14 @@ void ConfigureAudio::RetranslateUI() {
void ConfigureAudio::SetupPerGameUI() {
if (Settings::IsConfiguringGlobal()) {
+ ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal());
ui->volume_slider->setEnabled(Settings::values.volume.UsingGlobal());
-
return;
}
+ ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->mode_label,
+ Settings::values.sound_index.GetValue(true));
+
connect(ui->volume_combo_box, qOverload<int>(&QComboBox::activated), this, [this](int index) {
ui->volume_slider->setEnabled(index == 1);
ConfigurationShared::SetHighlight(ui->volume_layout, index == 1);
diff --git a/src/yuzu/configuration/configure_audio.ui b/src/yuzu/configuration/configure_audio.ui
index 6034d8581..4128c83ad 100644
--- a/src/yuzu/configuration/configure_audio.ui
+++ b/src/yuzu/configuration/configure_audio.ui
@@ -39,7 +39,7 @@
<item>
<widget class="QLabel" name="output_label">
<property name="text">
- <string>Output Device</string>
+ <string>Output Device:</string>
</property>
</widget>
</item>
@@ -53,7 +53,7 @@
<item>
<widget class="QLabel" name="input_label">
<property name="text">
- <string>Input Device</string>
+ <string>Input Device:</string>
</property>
</widget>
</item>
@@ -62,6 +62,36 @@
</item>
</layout>
</item>
+ <item>
+ <layout class="QHBoxLayout" name="mode_layout">
+ <item>
+ <widget class="QLabel" name="mode_label">
+ <property name="text">
+ <string>Sound Output Mode:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="combo_sound">
+ <item>
+ <property name="text">
+ <string>Mono</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Stereo</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Surround</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ </layout>
+ </item>
<item>
<widget class="QWidget" name="volume_layout" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_2">
@@ -149,6 +179,17 @@
</layout>
</widget>
</item>
+ <item>
+ <layout class="QHBoxLayout" name="mute_layout">
+ <item>
+ <widget class="QCheckBox" name="toggle_background_mute">
+ <property name="text">
+ <string>Mute audio when in background</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
</layout>
</widget>
</item>
diff --git a/src/yuzu/configuration/configure_dialog.cpp b/src/yuzu/configuration/configure_dialog.cpp
index 4301313cf..bdf83ebfe 100644
--- a/src/yuzu/configuration/configure_dialog.cpp
+++ b/src/yuzu/configuration/configure_dialog.cpp
@@ -6,6 +6,7 @@
#include "common/settings.h"
#include "core/core.h"
#include "ui_configure.h"
+#include "vk_device_info.h"
#include "yuzu/configuration/config.h"
#include "yuzu/configuration/configure_audio.h"
#include "yuzu/configuration/configure_cpu.h"
@@ -28,6 +29,7 @@
ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry_,
InputCommon::InputSubsystem* input_subsystem,
+ std::vector<VkDeviceInfo::Record>& vk_device_records,
Core::System& system_, bool enable_web_config)
: QDialog(parent), ui{std::make_unique<Ui::ConfigureDialog>()},
registry(registry_), system{system_}, audio_tab{std::make_unique<ConfigureAudio>(system_,
@@ -36,8 +38,10 @@ ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry_,
debug_tab_tab{std::make_unique<ConfigureDebugTab>(system_, this)},
filesystem_tab{std::make_unique<ConfigureFilesystem>(this)},
general_tab{std::make_unique<ConfigureGeneral>(system_, this)},
- graphics_tab{std::make_unique<ConfigureGraphics>(system_, this)},
graphics_advanced_tab{std::make_unique<ConfigureGraphicsAdvanced>(system_, this)},
+ graphics_tab{std::make_unique<ConfigureGraphics>(
+ system_, vk_device_records, [&]() { graphics_advanced_tab->ExposeComputeOption(); },
+ this)},
hotkeys_tab{std::make_unique<ConfigureHotkeys>(system_.HIDCore(), this)},
input_tab{std::make_unique<ConfigureInput>(system_, this)},
network_tab{std::make_unique<ConfigureNetwork>(system_, this)},
@@ -66,7 +70,6 @@ ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry_,
web_tab->SetWebServiceConfigEnabled(enable_web_config);
hotkeys_tab->Populate(registry);
- setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
input_tab->Initialize(input_subsystem);
diff --git a/src/yuzu/configuration/configure_dialog.h b/src/yuzu/configuration/configure_dialog.h
index 1f724834a..2a08b7fee 100644
--- a/src/yuzu/configuration/configure_dialog.h
+++ b/src/yuzu/configuration/configure_dialog.h
@@ -4,7 +4,9 @@
#pragma once
#include <memory>
+#include <vector>
#include <QDialog>
+#include "yuzu/vk_device_info.h"
namespace Core {
class System;
@@ -40,8 +42,9 @@ class ConfigureDialog : public QDialog {
public:
explicit ConfigureDialog(QWidget* parent, HotkeyRegistry& registry_,
- InputCommon::InputSubsystem* input_subsystem, Core::System& system_,
- bool enable_web_config = true);
+ InputCommon::InputSubsystem* input_subsystem,
+ std::vector<VkDeviceInfo::Record>& vk_device_records,
+ Core::System& system_, bool enable_web_config = true);
~ConfigureDialog() override;
void ApplyConfiguration();
@@ -72,8 +75,8 @@ private:
std::unique_ptr<ConfigureDebugTab> debug_tab_tab;
std::unique_ptr<ConfigureFilesystem> filesystem_tab;
std::unique_ptr<ConfigureGeneral> general_tab;
- std::unique_ptr<ConfigureGraphics> graphics_tab;
std::unique_ptr<ConfigureGraphicsAdvanced> graphics_advanced_tab;
+ std::unique_ptr<ConfigureGraphics> graphics_tab;
std::unique_ptr<ConfigureHotkeys> hotkeys_tab;
std::unique_ptr<ConfigureInput> input_tab;
std::unique_ptr<ConfigureNetwork> network_tab;
diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp
index 7783f362a..d74e663d4 100644
--- a/src/yuzu/configuration/configure_general.cpp
+++ b/src/yuzu/configuration/configure_general.cpp
@@ -35,14 +35,10 @@ void ConfigureGeneral::SetConfiguration() {
ui->use_multi_core->setEnabled(runtime_lock);
ui->use_multi_core->setChecked(Settings::values.use_multi_core.GetValue());
- ui->use_extended_memory_layout->setEnabled(runtime_lock);
- ui->use_extended_memory_layout->setChecked(
- Settings::values.use_extended_memory_layout.GetValue());
ui->toggle_check_exit->setChecked(UISettings::values.confirm_before_closing.GetValue());
ui->toggle_user_on_boot->setChecked(UISettings::values.select_user_on_boot.GetValue());
ui->toggle_background_pause->setChecked(UISettings::values.pause_when_in_background.GetValue());
- ui->toggle_background_mute->setChecked(UISettings::values.mute_when_in_background.GetValue());
ui->toggle_hide_mouse->setChecked(UISettings::values.hide_mouse.GetValue());
ui->toggle_controller_applet_disabled->setEnabled(runtime_lock);
ui->toggle_controller_applet_disabled->setChecked(UISettings::values.controller_applet_disabled.GetValue());
@@ -82,15 +78,11 @@ void ConfigureGeneral::ResetDefaults() {
void ConfigureGeneral::ApplyConfiguration() {
ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_multi_core, ui->use_multi_core,
use_multi_core);
- ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_extended_memory_layout,
- ui->use_extended_memory_layout,
- use_extended_memory_layout);
if (Settings::IsConfiguringGlobal()) {
UISettings::values.confirm_before_closing = ui->toggle_check_exit->isChecked();
UISettings::values.select_user_on_boot = ui->toggle_user_on_boot->isChecked();
UISettings::values.pause_when_in_background = ui->toggle_background_pause->isChecked();
- UISettings::values.mute_when_in_background = ui->toggle_background_mute->isChecked();
UISettings::values.hide_mouse = ui->toggle_hide_mouse->isChecked();
UISettings::values.controller_applet_disabled = ui->toggle_controller_applet_disabled->isChecked();
@@ -147,9 +139,6 @@ void ConfigureGeneral::SetupPerGameUI() {
Settings::values.use_speed_limit, use_speed_limit);
ConfigurationShared::SetColoredTristate(ui->use_multi_core, Settings::values.use_multi_core,
use_multi_core);
- ConfigurationShared::SetColoredTristate(ui->use_extended_memory_layout,
- Settings::values.use_extended_memory_layout,
- use_extended_memory_layout);
connect(ui->toggle_speed_limit, &QCheckBox::clicked, ui->speed_limit, [this]() {
ui->speed_limit->setEnabled(ui->toggle_speed_limit->isChecked() &&
diff --git a/src/yuzu/configuration/configure_general.h b/src/yuzu/configuration/configure_general.h
index a090c1a3f..7ff63f425 100644
--- a/src/yuzu/configuration/configure_general.h
+++ b/src/yuzu/configuration/configure_general.h
@@ -47,7 +47,6 @@ private:
ConfigurationShared::CheckState use_speed_limit;
ConfigurationShared::CheckState use_multi_core;
- ConfigurationShared::CheckState use_extended_memory_layout;
const Core::System& system;
};
diff --git a/src/yuzu/configuration/configure_general.ui b/src/yuzu/configuration/configure_general.ui
index 2fa8324fb..fe757d011 100644
--- a/src/yuzu/configuration/configure_general.ui
+++ b/src/yuzu/configuration/configure_general.ui
@@ -62,13 +62,6 @@
</widget>
</item>
<item>
- <widget class="QCheckBox" name="use_extended_memory_layout">
- <property name="text">
- <string>Extended memory layout (6GB DRAM)</string>
- </property>
- </widget>
- </item>
- <item>
<widget class="QCheckBox" name="toggle_check_exit">
<property name="text">
<string>Confirm exit while emulation is running</string>
@@ -90,13 +83,6 @@
</widget>
</item>
<item>
- <widget class="QCheckBox" name="toggle_background_mute">
- <property name="text">
- <string>Mute audio when in background</string>
- </property>
- </widget>
- </item>
- <item>
<widget class="QCheckBox" name="toggle_hide_mouse">
<property name="text">
<string>Hide mouse on inactivity</string>
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index e9388daad..a4965524a 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -1,25 +1,81 @@
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-// Include this early to include Vulkan headers how we want to
-#include "video_core/vulkan_common/vulkan_wrapper.h"
-
+#include <algorithm>
+#include <functional>
+#include <iosfwd>
+#include <iterator>
+#include <string>
+#include <tuple>
+#include <utility>
+#include <vector>
+#include <QBoxLayout>
+#include <QCheckBox>
#include <QColorDialog>
-#include <QVulkanInstance>
+#include <QComboBox>
+#include <QIcon>
+#include <QLabel>
+#include <QPixmap>
+#include <QPushButton>
+#include <QSlider>
+#include <QStringLiteral>
+#include <QtCore/qobjectdefs.h>
+#include <qcoreevent.h>
+#include <qglobal.h>
+#include <vulkan/vulkan_core.h>
#include "common/common_types.h"
+#include "common/dynamic_library.h"
#include "common/logging/log.h"
#include "common/settings.h"
#include "core/core.h"
#include "ui_configure_graphics.h"
-#include "video_core/vulkan_common/vulkan_instance.h"
-#include "video_core/vulkan_common/vulkan_library.h"
#include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/configure_graphics.h"
+#include "yuzu/qt_common.h"
#include "yuzu/uisettings.h"
+#include "yuzu/vk_device_info.h"
+
+static const std::vector<VkPresentModeKHR> default_present_modes{VK_PRESENT_MODE_IMMEDIATE_KHR,
+ VK_PRESENT_MODE_FIFO_KHR};
+
+// Converts a setting to a present mode (or vice versa)
+static constexpr VkPresentModeKHR VSyncSettingToMode(Settings::VSyncMode mode) {
+ switch (mode) {
+ case Settings::VSyncMode::Immediate:
+ return VK_PRESENT_MODE_IMMEDIATE_KHR;
+ case Settings::VSyncMode::Mailbox:
+ return VK_PRESENT_MODE_MAILBOX_KHR;
+ case Settings::VSyncMode::FIFO:
+ return VK_PRESENT_MODE_FIFO_KHR;
+ case Settings::VSyncMode::FIFORelaxed:
+ return VK_PRESENT_MODE_FIFO_RELAXED_KHR;
+ default:
+ return VK_PRESENT_MODE_FIFO_KHR;
+ }
+}
-ConfigureGraphics::ConfigureGraphics(const Core::System& system_, QWidget* parent)
- : QWidget(parent), ui{std::make_unique<Ui::ConfigureGraphics>()}, system{system_} {
+static constexpr Settings::VSyncMode PresentModeToSetting(VkPresentModeKHR mode) {
+ switch (mode) {
+ case VK_PRESENT_MODE_IMMEDIATE_KHR:
+ return Settings::VSyncMode::Immediate;
+ case VK_PRESENT_MODE_MAILBOX_KHR:
+ return Settings::VSyncMode::Mailbox;
+ case VK_PRESENT_MODE_FIFO_KHR:
+ return Settings::VSyncMode::FIFO;
+ case VK_PRESENT_MODE_FIFO_RELAXED_KHR:
+ return Settings::VSyncMode::FIFORelaxed;
+ default:
+ return Settings::VSyncMode::FIFO;
+ }
+}
+
+ConfigureGraphics::ConfigureGraphics(const Core::System& system_,
+ std::vector<VkDeviceInfo::Record>& records_,
+ const std::function<void()>& expose_compute_option_,
+ QWidget* parent)
+ : QWidget(parent), ui{std::make_unique<Ui::ConfigureGraphics>()}, records{records_},
+ expose_compute_option{expose_compute_option_}, system{system_} {
vulkan_device = Settings::values.vulkan_device.GetValue();
RetrieveVulkanDevices();
@@ -39,13 +95,16 @@ ConfigureGraphics::ConfigureGraphics(const Core::System& system_, QWidget* paren
connect(ui->api, qOverload<int>(&QComboBox::currentIndexChanged), this, [this] {
UpdateAPILayout();
+ PopulateVSyncModeSelection();
if (!Settings::IsConfiguringGlobal()) {
ConfigurationShared::SetHighlight(
ui->api_widget, ui->api->currentIndex() != ConfigurationShared::USE_GLOBAL_INDEX);
}
});
- connect(ui->device, qOverload<int>(&QComboBox::activated), this,
- [this](int device) { UpdateDeviceSelection(device); });
+ connect(ui->device, qOverload<int>(&QComboBox::activated), this, [this](int device) {
+ UpdateDeviceSelection(device);
+ PopulateVSyncModeSelection();
+ });
connect(ui->backend, qOverload<int>(&QComboBox::activated), this,
[this](int backend) { UpdateShaderBackendSelection(backend); });
@@ -70,6 +129,43 @@ ConfigureGraphics::ConfigureGraphics(const Core::System& system_, QWidget* paren
ui->fsr_sharpening_label->setVisible(Settings::IsConfiguringGlobal());
}
+void ConfigureGraphics::PopulateVSyncModeSelection() {
+ const Settings::RendererBackend backend{GetCurrentGraphicsBackend()};
+ if (backend == Settings::RendererBackend::Null) {
+ ui->vsync_mode_combobox->setEnabled(false);
+ return;
+ }
+ ui->vsync_mode_combobox->setEnabled(true);
+
+ const int current_index = //< current selected vsync mode from combobox
+ ui->vsync_mode_combobox->currentIndex();
+ const auto current_mode = //< current selected vsync mode as a VkPresentModeKHR
+ current_index == -1 ? VSyncSettingToMode(Settings::values.vsync_mode.GetValue())
+ : vsync_mode_combobox_enum_map[current_index];
+ int index{};
+ const int device{ui->device->currentIndex()}; //< current selected Vulkan device
+ const auto& present_modes = //< relevant vector of present modes for the selected device or API
+ backend == Settings::RendererBackend::Vulkan ? device_present_modes[device]
+ : default_present_modes;
+
+ ui->vsync_mode_combobox->clear();
+ vsync_mode_combobox_enum_map.clear();
+ vsync_mode_combobox_enum_map.reserve(present_modes.size());
+ for (const auto present_mode : present_modes) {
+ const auto mode_name = TranslateVSyncMode(present_mode, backend);
+ if (mode_name.isEmpty()) {
+ continue;
+ }
+
+ ui->vsync_mode_combobox->insertItem(index, mode_name);
+ vsync_mode_combobox_enum_map.push_back(present_mode);
+ if (present_mode == current_mode) {
+ ui->vsync_mode_combobox->setCurrentIndex(index);
+ }
+ index++;
+ }
+}
+
void ConfigureGraphics::UpdateDeviceSelection(int device) {
if (device == -1) {
return;
@@ -99,6 +195,9 @@ void ConfigureGraphics::SetConfiguration() {
ui->nvdec_emulation_widget->setEnabled(runtime_lock);
ui->resolution_combobox->setEnabled(runtime_lock);
ui->accelerate_astc->setEnabled(runtime_lock);
+ ui->vsync_mode_layout->setEnabled(runtime_lock ||
+ Settings::values.renderer_backend.GetValue() ==
+ Settings::RendererBackend::Vulkan);
ui->use_disk_shader_cache->setChecked(Settings::values.use_disk_shader_cache.GetValue());
ui->use_asynchronous_gpu_emulation->setChecked(
Settings::values.use_asynchronous_gpu_emulation.GetValue());
@@ -170,7 +269,24 @@ void ConfigureGraphics::SetConfiguration() {
Settings::values.bg_green.GetValue(),
Settings::values.bg_blue.GetValue()));
UpdateAPILayout();
+ PopulateVSyncModeSelection(); //< must happen after UpdateAPILayout
SetFSRIndicatorText(ui->fsr_sharpening_slider->sliderPosition());
+
+ // VSync setting needs to be determined after populating the VSync combobox
+ if (Settings::IsConfiguringGlobal()) {
+ const auto vsync_mode_setting = Settings::values.vsync_mode.GetValue();
+ const auto vsync_mode = VSyncSettingToMode(vsync_mode_setting);
+ int index{};
+ for (const auto mode : vsync_mode_combobox_enum_map) {
+ if (mode == vsync_mode) {
+ break;
+ }
+ index++;
+ }
+ if (static_cast<unsigned long>(index) < vsync_mode_combobox_enum_map.size()) {
+ ui->vsync_mode_combobox->setCurrentIndex(index);
+ }
+ }
}
void ConfigureGraphics::SetFSRIndicatorText(int percentage) {
@@ -178,6 +294,27 @@ void ConfigureGraphics::SetFSRIndicatorText(int percentage) {
tr("%1%", "FSR sharpening percentage (e.g. 50%)").arg(100 - (percentage / 2)));
}
+const QString ConfigureGraphics::TranslateVSyncMode(VkPresentModeKHR mode,
+ Settings::RendererBackend backend) const {
+ switch (mode) {
+ case VK_PRESENT_MODE_IMMEDIATE_KHR:
+ return backend == Settings::RendererBackend::OpenGL
+ ? tr("Off")
+ : QStringLiteral("Immediate (%1)").arg(tr("VSync Off"));
+ case VK_PRESENT_MODE_MAILBOX_KHR:
+ return QStringLiteral("Mailbox (%1)").arg(tr("Recommended"));
+ case VK_PRESENT_MODE_FIFO_KHR:
+ return backend == Settings::RendererBackend::OpenGL
+ ? tr("On")
+ : QStringLiteral("FIFO (%1)").arg(tr("VSync On"));
+ case VK_PRESENT_MODE_FIFO_RELAXED_KHR:
+ return QStringLiteral("FIFO Relaxed");
+ default:
+ return {};
+ break;
+ }
+}
+
void ConfigureGraphics::ApplyConfiguration() {
const auto resolution_setup = static_cast<Settings::ResolutionSetup>(
ui->resolution_combobox->currentIndex() -
@@ -232,6 +369,10 @@ void ConfigureGraphics::ApplyConfiguration() {
Settings::values.anti_aliasing.SetValue(anti_aliasing);
}
Settings::values.fsr_sharpening_slider.SetValue(ui->fsr_sharpening_slider->value());
+
+ const auto mode = vsync_mode_combobox_enum_map[ui->vsync_mode_combobox->currentIndex()];
+ const auto vsync_mode = PresentModeToSetting(mode);
+ Settings::values.vsync_mode.SetValue(vsync_mode);
} else {
if (ui->resolution_combobox->currentIndex() == ConfigurationShared::USE_GLOBAL_INDEX) {
Settings::values.resolution_setup.SetGlobal(true);
@@ -345,7 +486,9 @@ void ConfigureGraphics::UpdateAPILayout() {
ui->backend_widget->setVisible(true);
break;
case Settings::RendererBackend::Vulkan:
- ui->device->setCurrentIndex(vulkan_device);
+ if (static_cast<int>(vulkan_device) < ui->device->count()) {
+ ui->device->setCurrentIndex(vulkan_device);
+ }
ui->device_widget->setVisible(true);
ui->backend_widget->setVisible(false);
break;
@@ -356,26 +499,19 @@ void ConfigureGraphics::UpdateAPILayout() {
}
}
-void ConfigureGraphics::RetrieveVulkanDevices() try {
- if (UISettings::values.has_broken_vulkan) {
- return;
- }
-
- using namespace Vulkan;
-
- vk::InstanceDispatch dld;
- const Common::DynamicLibrary library = OpenLibrary();
- const vk::Instance instance = CreateInstance(library, dld, VK_API_VERSION_1_1);
- const std::vector<VkPhysicalDevice> physical_devices = instance.EnumeratePhysicalDevices();
-
+void ConfigureGraphics::RetrieveVulkanDevices() {
vulkan_devices.clear();
- vulkan_devices.reserve(physical_devices.size());
- for (const VkPhysicalDevice device : physical_devices) {
- const std::string name = vk::PhysicalDevice(device, dld).GetProperties().deviceName;
- vulkan_devices.push_back(QString::fromStdString(name));
+ vulkan_devices.reserve(records.size());
+ device_present_modes.clear();
+ device_present_modes.reserve(records.size());
+ for (const auto& record : records) {
+ vulkan_devices.push_back(QString::fromStdString(record.name));
+ device_present_modes.push_back(record.vsync_support);
+
+ if (record.has_broken_compute) {
+ expose_compute_option();
+ }
}
-} catch (const Vulkan::vk::Exception& exception) {
- LOG_ERROR(Frontend, "Failed to enumerate devices with error: {}", exception.what());
}
Settings::RendererBackend ConfigureGraphics::GetCurrentGraphicsBackend() const {
@@ -465,4 +601,6 @@ void ConfigureGraphics::SetupPerGameUI() {
ui->api, static_cast<int>(Settings::values.renderer_backend.GetValue(true)));
ConfigurationShared::InsertGlobalItem(
ui->nvdec_emulation, static_cast<int>(Settings::values.nvdec_emulation.GetValue(true)));
+
+ ui->vsync_mode_layout->setVisible(false);
}
diff --git a/src/yuzu/configuration/configure_graphics.h b/src/yuzu/configuration/configure_graphics.h
index d98d6624e..be9310b74 100644
--- a/src/yuzu/configuration/configure_graphics.h
+++ b/src/yuzu/configuration/configure_graphics.h
@@ -3,11 +3,25 @@
#pragma once
+#include <functional>
#include <memory>
#include <vector>
+#include <QColor>
#include <QString>
#include <QWidget>
-#include "common/settings.h"
+#include <qobjectdefs.h>
+#include <vulkan/vulkan_core.h>
+#include "common/common_types.h"
+#include "vk_device_info.h"
+
+class QEvent;
+class QObject;
+
+namespace Settings {
+enum class NvdecEmulation : u32;
+enum class RendererBackend : u32;
+enum class ShaderBackend : u32;
+} // namespace Settings
namespace Core {
class System;
@@ -25,7 +39,10 @@ class ConfigureGraphics : public QWidget {
Q_OBJECT
public:
- explicit ConfigureGraphics(const Core::System& system_, QWidget* parent = nullptr);
+ explicit ConfigureGraphics(const Core::System& system_,
+ std::vector<VkDeviceInfo::Record>& records,
+ const std::function<void()>& expose_compute_option_,
+ QWidget* parent = nullptr);
~ConfigureGraphics() override;
void ApplyConfiguration();
@@ -35,6 +52,7 @@ private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
+ void PopulateVSyncModeSelection();
void UpdateBackgroundColorButton(QColor color);
void UpdateAPILayout();
void UpdateDeviceSelection(int device);
@@ -43,6 +61,10 @@ private:
void RetrieveVulkanDevices();
void SetFSRIndicatorText(int percentage);
+ /* Turns a Vulkan present mode into a textual string for a UI
+ * (and eventually for a human to read) */
+ const QString TranslateVSyncMode(VkPresentModeKHR mode,
+ Settings::RendererBackend backend) const;
void SetupPerGameUI();
@@ -57,9 +79,15 @@ private:
ConfigurationShared::CheckState use_disk_shader_cache;
ConfigurationShared::CheckState use_asynchronous_gpu_emulation;
+ std::vector<VkDeviceInfo::Record>& records;
std::vector<QString> vulkan_devices;
+ std::vector<std::vector<VkPresentModeKHR>> device_present_modes;
+ std::vector<VkPresentModeKHR>
+ vsync_mode_combobox_enum_map; //< Keeps track of which present mode corresponds to which
+ // selection in the combobox
u32 vulkan_device{};
Settings::ShaderBackend shader_backend{};
+ const std::function<void()>& expose_compute_option;
const Core::System& system;
};
diff --git a/src/yuzu/configuration/configure_graphics.ui b/src/yuzu/configuration/configure_graphics.ui
index bb9910a53..39f70e406 100644
--- a/src/yuzu/configuration/configure_graphics.ui
+++ b/src/yuzu/configuration/configure_graphics.ui
@@ -189,6 +189,44 @@
</widget>
</item>
<item>
+ <widget class="QWidget" name="vsync_mode_layout" native="true">
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="vsync_mode_label">
+ <property name="text">
+ <string>VSync Mode:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="vsync_mode_combobox">
+ <property name="toolTip">
+ <string>FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+Immediate (no synchronization) just presents whatever is available and can exhibit tearing.</string>
+ </property>
+ <property name="currentText">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
<widget class="QWidget" name="nvdec_emulation_widget" native="true">
<layout class="QHBoxLayout" name="nvdec_emulation_layout">
<property name="leftMargin">
@@ -366,7 +404,7 @@
</item>
<item>
<property name="text">
- <string>1.5X (1080p/1620p) [EXPERIMENTAL]</string>
+ <string>1.5X (1080p/1620p) [EXPERIMENTAL]</string>
</property>
</item>
<item>
@@ -460,7 +498,7 @@
</item>
<item>
<property name="text">
- <string>AMD FidelityFX™️ Super Resolution (Vulkan Only)</string>
+ <string>AMD FidelityFX™️ Super Resolution</string>
</property>
</item>
</widget>
diff --git a/src/yuzu/configuration/configure_graphics_advanced.cpp b/src/yuzu/configuration/configure_graphics_advanced.cpp
index cc0155a2c..c0a044767 100644
--- a/src/yuzu/configuration/configure_graphics_advanced.cpp
+++ b/src/yuzu/configuration/configure_graphics_advanced.cpp
@@ -15,61 +15,90 @@ ConfigureGraphicsAdvanced::ConfigureGraphicsAdvanced(const Core::System& system_
SetupPerGameUI();
SetConfiguration();
+
+ ui->enable_compute_pipelines_checkbox->setVisible(false);
}
ConfigureGraphicsAdvanced::~ConfigureGraphicsAdvanced() = default;
void ConfigureGraphicsAdvanced::SetConfiguration() {
const bool runtime_lock = !system.IsPoweredOn();
- ui->use_vsync->setEnabled(runtime_lock);
+ ui->use_reactive_flushing->setEnabled(runtime_lock);
+ ui->async_present->setEnabled(runtime_lock);
ui->renderer_force_max_clock->setEnabled(runtime_lock);
+ ui->async_astc->setEnabled(runtime_lock);
+ ui->astc_recompression_combobox->setEnabled(runtime_lock);
ui->use_asynchronous_shaders->setEnabled(runtime_lock);
ui->anisotropic_filtering_combobox->setEnabled(runtime_lock);
+ ui->enable_compute_pipelines_checkbox->setEnabled(runtime_lock);
+ ui->async_present->setChecked(Settings::values.async_presentation.GetValue());
ui->renderer_force_max_clock->setChecked(Settings::values.renderer_force_max_clock.GetValue());
- ui->use_vsync->setChecked(Settings::values.use_vsync.GetValue());
+ ui->use_reactive_flushing->setChecked(Settings::values.use_reactive_flushing.GetValue());
+ ui->async_astc->setChecked(Settings::values.async_astc.GetValue());
ui->use_asynchronous_shaders->setChecked(Settings::values.use_asynchronous_shaders.GetValue());
ui->use_fast_gpu_time->setChecked(Settings::values.use_fast_gpu_time.GetValue());
- ui->use_pessimistic_flushes->setChecked(Settings::values.use_pessimistic_flushes.GetValue());
ui->use_vulkan_driver_pipeline_cache->setChecked(
Settings::values.use_vulkan_driver_pipeline_cache.GetValue());
+ ui->enable_compute_pipelines_checkbox->setChecked(
+ Settings::values.enable_compute_pipelines.GetValue());
+ ui->use_video_framerate_checkbox->setChecked(Settings::values.use_video_framerate.GetValue());
+ ui->barrier_feedback_loops_checkbox->setChecked(
+ Settings::values.barrier_feedback_loops.GetValue());
if (Settings::IsConfiguringGlobal()) {
ui->gpu_accuracy->setCurrentIndex(
static_cast<int>(Settings::values.gpu_accuracy.GetValue()));
ui->anisotropic_filtering_combobox->setCurrentIndex(
Settings::values.max_anisotropy.GetValue());
+ ui->astc_recompression_combobox->setCurrentIndex(
+ static_cast<int>(Settings::values.astc_recompression.GetValue()));
} else {
ConfigurationShared::SetPerGameSetting(ui->gpu_accuracy, &Settings::values.gpu_accuracy);
ConfigurationShared::SetPerGameSetting(ui->anisotropic_filtering_combobox,
&Settings::values.max_anisotropy);
+ ConfigurationShared::SetPerGameSetting(ui->astc_recompression_combobox,
+ &Settings::values.astc_recompression);
ConfigurationShared::SetHighlight(ui->label_gpu_accuracy,
!Settings::values.gpu_accuracy.UsingGlobal());
- ConfigurationShared::SetHighlight(ui->renderer_force_max_clock,
- !Settings::values.renderer_force_max_clock.UsingGlobal());
ConfigurationShared::SetHighlight(ui->af_label,
!Settings::values.max_anisotropy.UsingGlobal());
+ ConfigurationShared::SetHighlight(ui->label_astc_recompression,
+ !Settings::values.astc_recompression.UsingGlobal());
}
}
void ConfigureGraphicsAdvanced::ApplyConfiguration() {
ConfigurationShared::ApplyPerGameSetting(&Settings::values.gpu_accuracy, ui->gpu_accuracy);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.async_presentation,
+ ui->async_present, async_present);
ConfigurationShared::ApplyPerGameSetting(&Settings::values.renderer_force_max_clock,
ui->renderer_force_max_clock,
renderer_force_max_clock);
ConfigurationShared::ApplyPerGameSetting(&Settings::values.max_anisotropy,
ui->anisotropic_filtering_combobox);
- ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_vsync, ui->use_vsync, use_vsync);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_reactive_flushing,
+ ui->use_reactive_flushing, use_reactive_flushing);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.async_astc, ui->async_astc,
+ async_astc);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.astc_recompression,
+ ui->astc_recompression_combobox);
ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_asynchronous_shaders,
ui->use_asynchronous_shaders,
use_asynchronous_shaders);
ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_fast_gpu_time,
ui->use_fast_gpu_time, use_fast_gpu_time);
- ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_pessimistic_flushes,
- ui->use_pessimistic_flushes, use_pessimistic_flushes);
ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_vulkan_driver_pipeline_cache,
ui->use_vulkan_driver_pipeline_cache,
use_vulkan_driver_pipeline_cache);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.enable_compute_pipelines,
+ ui->enable_compute_pipelines_checkbox,
+ enable_compute_pipelines);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_video_framerate,
+ ui->use_video_framerate_checkbox, use_video_framerate);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.barrier_feedback_loops,
+ ui->barrier_feedback_loops_checkbox,
+ barrier_feedback_loops);
}
void ConfigureGraphicsAdvanced::changeEvent(QEvent* event) {
@@ -88,41 +117,67 @@ void ConfigureGraphicsAdvanced::SetupPerGameUI() {
// Disable if not global (only happens during game)
if (Settings::IsConfiguringGlobal()) {
ui->gpu_accuracy->setEnabled(Settings::values.gpu_accuracy.UsingGlobal());
+ ui->async_present->setEnabled(Settings::values.async_presentation.UsingGlobal());
ui->renderer_force_max_clock->setEnabled(
Settings::values.renderer_force_max_clock.UsingGlobal());
- ui->use_vsync->setEnabled(Settings::values.use_vsync.UsingGlobal());
+ ui->use_reactive_flushing->setEnabled(Settings::values.use_reactive_flushing.UsingGlobal());
+ ui->async_astc->setEnabled(Settings::values.async_astc.UsingGlobal());
+ ui->astc_recompression_combobox->setEnabled(
+ Settings::values.astc_recompression.UsingGlobal());
ui->use_asynchronous_shaders->setEnabled(
Settings::values.use_asynchronous_shaders.UsingGlobal());
ui->use_fast_gpu_time->setEnabled(Settings::values.use_fast_gpu_time.UsingGlobal());
- ui->use_pessimistic_flushes->setEnabled(
- Settings::values.use_pessimistic_flushes.UsingGlobal());
ui->use_vulkan_driver_pipeline_cache->setEnabled(
Settings::values.use_vulkan_driver_pipeline_cache.UsingGlobal());
ui->anisotropic_filtering_combobox->setEnabled(
Settings::values.max_anisotropy.UsingGlobal());
+ ui->enable_compute_pipelines_checkbox->setEnabled(
+ Settings::values.enable_compute_pipelines.UsingGlobal());
+ ui->use_video_framerate_checkbox->setEnabled(
+ Settings::values.use_video_framerate.UsingGlobal());
+ ui->barrier_feedback_loops_checkbox->setEnabled(
+ Settings::values.barrier_feedback_loops.UsingGlobal());
return;
}
+ ConfigurationShared::SetColoredTristate(ui->async_present, Settings::values.async_presentation,
+ async_present);
ConfigurationShared::SetColoredTristate(ui->renderer_force_max_clock,
Settings::values.renderer_force_max_clock,
renderer_force_max_clock);
- ConfigurationShared::SetColoredTristate(ui->use_vsync, Settings::values.use_vsync, use_vsync);
+ ConfigurationShared::SetColoredTristate(
+ ui->use_reactive_flushing, Settings::values.use_reactive_flushing, use_reactive_flushing);
+ ConfigurationShared::SetColoredTristate(ui->async_astc, Settings::values.async_astc,
+ async_astc);
ConfigurationShared::SetColoredTristate(ui->use_asynchronous_shaders,
Settings::values.use_asynchronous_shaders,
use_asynchronous_shaders);
ConfigurationShared::SetColoredTristate(ui->use_fast_gpu_time,
Settings::values.use_fast_gpu_time, use_fast_gpu_time);
- ConfigurationShared::SetColoredTristate(ui->use_pessimistic_flushes,
- Settings::values.use_pessimistic_flushes,
- use_pessimistic_flushes);
ConfigurationShared::SetColoredTristate(ui->use_vulkan_driver_pipeline_cache,
Settings::values.use_vulkan_driver_pipeline_cache,
use_vulkan_driver_pipeline_cache);
+ ConfigurationShared::SetColoredTristate(ui->enable_compute_pipelines_checkbox,
+ Settings::values.enable_compute_pipelines,
+ enable_compute_pipelines);
+ ConfigurationShared::SetColoredTristate(ui->use_video_framerate_checkbox,
+ Settings::values.use_video_framerate,
+ use_video_framerate);
+ ConfigurationShared::SetColoredTristate(ui->barrier_feedback_loops_checkbox,
+ Settings::values.barrier_feedback_loops,
+ barrier_feedback_loops);
ConfigurationShared::SetColoredComboBox(
ui->gpu_accuracy, ui->label_gpu_accuracy,
static_cast<int>(Settings::values.gpu_accuracy.GetValue(true)));
ConfigurationShared::SetColoredComboBox(
ui->anisotropic_filtering_combobox, ui->af_label,
static_cast<int>(Settings::values.max_anisotropy.GetValue(true)));
+ ConfigurationShared::SetColoredComboBox(
+ ui->astc_recompression_combobox, ui->label_astc_recompression,
+ static_cast<int>(Settings::values.astc_recompression.GetValue(true)));
+}
+
+void ConfigureGraphicsAdvanced::ExposeComputeOption() {
+ ui->enable_compute_pipelines_checkbox->setVisible(true);
}
diff --git a/src/yuzu/configuration/configure_graphics_advanced.h b/src/yuzu/configuration/configure_graphics_advanced.h
index df557d585..369a7c83e 100644
--- a/src/yuzu/configuration/configure_graphics_advanced.h
+++ b/src/yuzu/configuration/configure_graphics_advanced.h
@@ -28,6 +28,8 @@ public:
void ApplyConfiguration();
void SetConfiguration();
+ void ExposeComputeOption();
+
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
@@ -36,12 +38,17 @@ private:
std::unique_ptr<Ui::ConfigureGraphicsAdvanced> ui;
+ ConfigurationShared::CheckState async_present;
ConfigurationShared::CheckState renderer_force_max_clock;
ConfigurationShared::CheckState use_vsync;
+ ConfigurationShared::CheckState async_astc;
+ ConfigurationShared::CheckState use_reactive_flushing;
ConfigurationShared::CheckState use_asynchronous_shaders;
ConfigurationShared::CheckState use_fast_gpu_time;
- ConfigurationShared::CheckState use_pessimistic_flushes;
ConfigurationShared::CheckState use_vulkan_driver_pipeline_cache;
+ ConfigurationShared::CheckState enable_compute_pipelines;
+ ConfigurationShared::CheckState use_video_framerate;
+ ConfigurationShared::CheckState barrier_feedback_loops;
const Core::System& system;
};
diff --git a/src/yuzu/configuration/configure_graphics_advanced.ui b/src/yuzu/configuration/configure_graphics_advanced.ui
index 061885e30..d527a6f38 100644
--- a/src/yuzu/configuration/configure_graphics_advanced.ui
+++ b/src/yuzu/configuration/configure_graphics_advanced.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>404</width>
- <height>321</height>
+ <height>376</height>
</rect>
</property>
<property name="windowTitle">
@@ -70,6 +70,57 @@
</widget>
</item>
<item>
+ <widget class="QWidget" name="astc_recompression_layout" native="true">
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="label_astc_recompression">
+ <property name="text">
+ <string>ASTC recompression:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="astc_recompression_combobox">
+ <item>
+ <property name="text">
+ <string>Uncompressed (Best quality)</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>BC1 (Low quality)</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>BC3 (Medium quality)</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="async_present">
+ <property name="text">
+ <string>Enable asynchronous presentation (Vulkan only)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QCheckBox" name="renderer_force_max_clock">
<property name="toolTip">
<string>Runs work in the background while waiting for graphics commands to keep the GPU from lowering its clock speed.</string>
@@ -80,12 +131,22 @@
</widget>
</item>
<item>
- <widget class="QCheckBox" name="use_vsync">
+ <widget class="QCheckBox" name="async_astc">
+ <property name="toolTip">
+ <string>Enables asynchronous ASTC texture decoding, which may reduce load time stutter. This feature is experimental.</string>
+ </property>
+ <property name="text">
+ <string>Decode ASTC textures asynchronously (Hack)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="use_reactive_flushing">
<property name="toolTip">
- <string>VSync prevents the screen from tearing, but some graphics cards have lower performance with VSync enabled. Keep it enabled if you don't notice a performance difference.</string>
+ <string>Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.</string>
</property>
<property name="text">
- <string>Use VSync</string>
+ <string>Enable Reactive Flushing</string>
</property>
</widget>
</item>
@@ -102,7 +163,7 @@
<item>
<widget class="QCheckBox" name="use_fast_gpu_time">
<property name="toolTip">
- <string>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</string>
+ <string>Enables Fast GPU Time. This option will force most games to run at their highest native resolution.</string>
</property>
<property name="text">
<string>Use Fast GPU Time (Hack)</string>
@@ -110,22 +171,43 @@
</widget>
</item>
<item>
- <widget class="QCheckBox" name="use_pessimistic_flushes">
+ <widget class="QCheckBox" name="use_vulkan_driver_pipeline_cache">
<property name="toolTip">
- <string>Enables pessimistic buffer flushes. This option will force unmodified buffers to be flushed, which can cost performance.</string>
+ <string>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.</string>
</property>
<property name="text">
- <string>Use pessimistic buffer flushes (Hack)</string>
+ <string>Use Vulkan pipeline cache</string>
</property>
</widget>
</item>
<item>
- <widget class="QCheckBox" name="use_vulkan_driver_pipeline_cache">
+ <widget class="QCheckBox" name="enable_compute_pipelines_checkbox">
<property name="toolTip">
- <string>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.</string>
+ <string>Enable compute pipelines, 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.</string>
</property>
<property name="text">
- <string>Use Vulkan pipeline cache</string>
+ <string>Enable Compute Pipelines (Intel Vulkan only)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="use_video_framerate_checkbox">
+ <property name="toolTip">
+ <string>Run the game at normal speed during video playback, even when the framerate is unlocked.</string>
+ </property>
+ <property name="text">
+ <string>Sync to framerate of video playback</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="barrier_feedback_loops_checkbox">
+ <property name="toolTip">
+ <string>Improves rendering of transparency effects in specific games.</string>
+ </property>
+ <property name="text">
+ <string>Barrier feedback loops</string>
</property>
</widget>
</item>
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp
index daa77a8f8..0b2a965f8 100644
--- a/src/yuzu/configuration/configure_hotkeys.cpp
+++ b/src/yuzu/configuration/configure_hotkeys.cpp
@@ -48,7 +48,9 @@ ConfigureHotkeys::ConfigureHotkeys(Core::HID::HIDCore& hid_core, QWidget* parent
connect(poll_timer.get(), &QTimer::timeout, [this] {
const auto buttons = controller->GetNpadButtons();
- if (buttons.raw != Core::HID::NpadButton::None) {
+ const auto home_pressed = controller->GetHomeButtons().home != 0;
+ const auto capture_pressed = controller->GetCaptureButtons().capture != 0;
+ if (home_pressed || capture_pressed) {
SetPollingResult(buttons.raw, false);
return;
}
@@ -154,8 +156,10 @@ void ConfigureHotkeys::ConfigureController(QModelIndex index) {
model->setData(index, previous_key);
return;
}
-
- const QString button_string = tr("Home+%1").arg(GetButtonName(button));
+ const auto home_pressed = this->controller->GetHomeButtons().home != 0;
+ const auto capture_pressed = this->controller->GetCaptureButtons().capture != 0;
+ const QString button_string =
+ GetButtonCombinationName(button, home_pressed, capture_pressed);
const auto [key_sequence_used, used_action] = IsUsedControllerKey(button_string);
@@ -174,72 +178,83 @@ void ConfigureHotkeys::ConfigureController(QModelIndex index) {
poll_timer->start(200); // Check for new inputs every 200ms
// We need to disable configuration to be able to read npad buttons
controller->DisableConfiguration();
- controller->DisableSystemButtons();
}
void ConfigureHotkeys::SetPollingResult(Core::HID::NpadButton button, const bool cancel) {
timeout_timer->stop();
poll_timer->stop();
+ (*input_setter)(button, cancel);
// Re-Enable configuration
controller->EnableConfiguration();
- controller->EnableSystemButtons();
-
- (*input_setter)(button, cancel);
input_setter = std::nullopt;
}
-QString ConfigureHotkeys::GetButtonName(Core::HID::NpadButton button) const {
+QString ConfigureHotkeys::GetButtonCombinationName(Core::HID::NpadButton button,
+ const bool home = false,
+ const bool capture = false) const {
Core::HID::NpadButtonState state{button};
+ QString button_combination;
+ if (home) {
+ button_combination.append(QStringLiteral("Home+"));
+ }
+ if (capture) {
+ button_combination.append(QStringLiteral("Screenshot+"));
+ }
if (state.a) {
- return QStringLiteral("A");
+ button_combination.append(QStringLiteral("A+"));
}
if (state.b) {
- return QStringLiteral("B");
+ button_combination.append(QStringLiteral("B+"));
}
if (state.x) {
- return QStringLiteral("X");
+ button_combination.append(QStringLiteral("X+"));
}
if (state.y) {
- return QStringLiteral("Y");
+ button_combination.append(QStringLiteral("Y+"));
}
if (state.l || state.right_sl || state.left_sl) {
- return QStringLiteral("L");
+ button_combination.append(QStringLiteral("L+"));
}
if (state.r || state.right_sr || state.left_sr) {
- return QStringLiteral("R");
+ button_combination.append(QStringLiteral("R+"));
}
if (state.zl) {
- return QStringLiteral("ZL");
+ button_combination.append(QStringLiteral("ZL+"));
}
if (state.zr) {
- return QStringLiteral("ZR");
+ button_combination.append(QStringLiteral("ZR+"));
}
if (state.left) {
- return QStringLiteral("Dpad_Left");
+ button_combination.append(QStringLiteral("Dpad_Left+"));
}
if (state.right) {
- return QStringLiteral("Dpad_Right");
+ button_combination.append(QStringLiteral("Dpad_Right+"));
}
if (state.up) {
- return QStringLiteral("Dpad_Up");
+ button_combination.append(QStringLiteral("Dpad_Up+"));
}
if (state.down) {
- return QStringLiteral("Dpad_Down");
+ button_combination.append(QStringLiteral("Dpad_Down+"));
}
if (state.stick_l) {
- return QStringLiteral("Left_Stick");
+ button_combination.append(QStringLiteral("Left_Stick+"));
}
if (state.stick_r) {
- return QStringLiteral("Right_Stick");
+ button_combination.append(QStringLiteral("Right_Stick+"));
}
if (state.minus) {
- return QStringLiteral("Minus");
+ button_combination.append(QStringLiteral("Minus+"));
}
if (state.plus) {
- return QStringLiteral("Plus");
+ button_combination.append(QStringLiteral("Plus+"));
+ }
+ if (button_combination.isEmpty()) {
+ return tr("Invalid");
+ } else {
+ button_combination.chop(1);
+ return button_combination;
}
- return tr("Invalid");
}
std::pair<bool, QString> ConfigureHotkeys::IsUsedKey(QKeySequence key_sequence) const {
diff --git a/src/yuzu/configuration/configure_hotkeys.h b/src/yuzu/configuration/configure_hotkeys.h
index b45ecb185..5fd1bcbfe 100644
--- a/src/yuzu/configuration/configure_hotkeys.h
+++ b/src/yuzu/configuration/configure_hotkeys.h
@@ -34,7 +34,7 @@ public:
/**
* Populates the hotkey list widget using data from the provided registry.
- * Called everytime the Configure dialog is opened.
+ * Called every time the Configure dialog is opened.
* @param registry The HotkeyRegistry whose data is used to populate the list.
*/
void Populate(const HotkeyRegistry& registry);
@@ -59,7 +59,7 @@ private:
QStandardItemModel* model;
void SetPollingResult(Core::HID::NpadButton button, bool cancel);
- QString GetButtonName(Core::HID::NpadButton button) const;
+ QString GetButtonCombinationName(Core::HID::NpadButton button, bool home, bool capture) const;
Core::HID::EmulatedController* controller;
std::unique_ptr<QTimer> timeout_timer;
std::unique_ptr<QTimer> poll_timer;
diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp
index 1db374d4a..7fce85bca 100644
--- a/src/yuzu/configuration/configure_input.cpp
+++ b/src/yuzu/configuration/configure_input.cpp
@@ -189,6 +189,8 @@ QList<QWidget*> ConfigureInput::GetSubTabs() const {
}
void ConfigureInput::ApplyConfiguration() {
+ const bool was_global = Settings::values.players.UsingGlobal();
+ Settings::values.players.SetGlobal(true);
for (auto* controller : player_controllers) {
controller->ApplyConfiguration();
}
@@ -201,6 +203,7 @@ void ConfigureInput::ApplyConfiguration() {
Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked());
Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked());
+ Settings::values.players.SetGlobal(was_global);
}
void ConfigureInput::changeEvent(QEvent* event) {
diff --git a/src/yuzu/configuration/configure_input_advanced.cpp b/src/yuzu/configuration/configure_input_advanced.cpp
index 235b813d9..3cfd5d439 100644
--- a/src/yuzu/configuration/configure_input_advanced.cpp
+++ b/src/yuzu/configuration/configure_input_advanced.cpp
@@ -129,15 +129,15 @@ void ConfigureInputAdvanced::ApplyConfiguration() {
Settings::values.mouse_enabled = ui->mouse_enabled->isChecked();
Settings::values.keyboard_enabled = ui->keyboard_enabled->isChecked();
Settings::values.emulate_analog_keyboard = ui->emulate_analog_keyboard->isChecked();
- Settings::values.mouse_panning = ui->mouse_panning->isChecked();
- Settings::values.mouse_panning_sensitivity =
- static_cast<float>(ui->mouse_panning_sensitivity->value());
Settings::values.touchscreen.enabled = ui->touchscreen_enabled->isChecked();
Settings::values.enable_raw_input = ui->enable_raw_input->isChecked();
Settings::values.enable_udp_controller = ui->enable_udp_controller->isChecked();
Settings::values.controller_navigation = ui->controller_navigation->isChecked();
Settings::values.enable_ring_controller = ui->enable_ring_controller->isChecked();
Settings::values.enable_ir_sensor = ui->enable_ir_sensor->isChecked();
+ Settings::values.enable_joycon_driver = ui->enable_joycon_driver->isChecked();
+ Settings::values.enable_procon_driver = ui->enable_procon_driver->isChecked();
+ Settings::values.random_amiibo_id = ui->random_amiibo_id->isChecked();
}
void ConfigureInputAdvanced::LoadConfiguration() {
@@ -164,14 +164,15 @@ void ConfigureInputAdvanced::LoadConfiguration() {
ui->mouse_enabled->setChecked(Settings::values.mouse_enabled.GetValue());
ui->keyboard_enabled->setChecked(Settings::values.keyboard_enabled.GetValue());
ui->emulate_analog_keyboard->setChecked(Settings::values.emulate_analog_keyboard.GetValue());
- ui->mouse_panning->setChecked(Settings::values.mouse_panning.GetValue());
- ui->mouse_panning_sensitivity->setValue(Settings::values.mouse_panning_sensitivity.GetValue());
ui->touchscreen_enabled->setChecked(Settings::values.touchscreen.enabled);
ui->enable_raw_input->setChecked(Settings::values.enable_raw_input.GetValue());
ui->enable_udp_controller->setChecked(Settings::values.enable_udp_controller.GetValue());
ui->controller_navigation->setChecked(Settings::values.controller_navigation.GetValue());
ui->enable_ring_controller->setChecked(Settings::values.enable_ring_controller.GetValue());
ui->enable_ir_sensor->setChecked(Settings::values.enable_ir_sensor.GetValue());
+ ui->enable_joycon_driver->setChecked(Settings::values.enable_joycon_driver.GetValue());
+ ui->enable_procon_driver->setChecked(Settings::values.enable_procon_driver.GetValue());
+ ui->random_amiibo_id->setChecked(Settings::values.random_amiibo_id.GetValue());
UpdateUIEnabled();
}
@@ -191,8 +192,6 @@ void ConfigureInputAdvanced::RetranslateUI() {
void ConfigureInputAdvanced::UpdateUIEnabled() {
ui->debug_configure->setEnabled(ui->debug_enabled->isChecked());
ui->touchscreen_advanced->setEnabled(ui->touchscreen_enabled->isChecked());
- ui->mouse_panning->setEnabled(!ui->mouse_enabled->isChecked());
- ui->mouse_panning_sensitivity->setEnabled(!ui->mouse_enabled->isChecked());
ui->ring_controller_configure->setEnabled(ui->enable_ring_controller->isChecked());
#if QT_VERSION > QT_VERSION_CHECK(6, 0, 0) || !defined(YUZU_USE_QT_MULTIMEDIA)
ui->enable_ir_sensor->setEnabled(false);
diff --git a/src/yuzu/configuration/configure_input_advanced.ui b/src/yuzu/configuration/configure_input_advanced.ui
index fac8cf827..2994d0ab4 100644
--- a/src/yuzu/configuration/configure_input_advanced.ui
+++ b/src/yuzu/configuration/configure_input_advanced.ui
@@ -2696,7 +2696,10 @@
</widget>
</item>
<item row="5" column="0">
- <widget class="QCheckBox" name="mouse_panning">
+ <widget class="QCheckBox" name="enable_joycon_driver">
+ <property name="toolTip">
+ <string>Requires restarting yuzu</string>
+ </property>
<property name="minimumSize">
<size>
<width>0</width>
@@ -2704,40 +2707,50 @@
</size>
</property>
<property name="text">
- <string>Enable mouse panning</string>
+ <string>Enable direct JoyCon driver</string>
</property>
</widget>
</item>
- <item row="5" column="2">
- <widget class="QSpinBox" name="mouse_panning_sensitivity">
+ <item row="6" column="0">
+ <widget class="QCheckBox" name="enable_procon_driver">
<property name="toolTip">
- <string>Mouse sensitivity</string>
+ <string>Requires restarting yuzu</string>
</property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>23</height>
+ </size>
</property>
- <property name="suffix">
- <string>%</string>
+ <property name="text">
+ <string>Enable direct Pro Controller driver [EXPERIMENTAL]</string>
</property>
- <property name="minimum">
- <number>1</number>
+ </widget>
+ </item>
+ <item row="7" column="0">
+ <widget class="QCheckBox" name="random_amiibo_id">
+ <property name="toolTip">
+ <string>Allows unlimited uses of the same Amiibo in games that would otherwise limit you to one use.</string>
</property>
- <property name="maximum">
- <number>100</number>
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>23</height>
+ </size>
</property>
- <property name="value">
- <number>100</number>
+ <property name="text">
+ <string>Use random Amiibo ID</string>
</property>
</widget>
</item>
- <item row="6" column="0">
+ <item row="8" column="0">
<widget class="QLabel" name="motion_touch">
<property name="text">
<string>Motion / Touch</string>
</property>
</widget>
</item>
- <item row="6" column="2">
+ <item row="8" column="2">
<widget class="QPushButton" name="buttonMotionTouch">
<property name="text">
<string>Configure</string>
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp
index c40d980c9..576f5b571 100644
--- a/src/yuzu/configuration/configure_input_player.cpp
+++ b/src/yuzu/configuration/configure_input_player.cpp
@@ -8,6 +8,7 @@
#include <QInputDialog>
#include <QMenu>
#include <QMessageBox>
+#include <QMouseEvent>
#include <QTimer>
#include "common/assert.h"
#include "common/param_package.h"
@@ -22,6 +23,7 @@
#include "yuzu/configuration/config.h"
#include "yuzu/configuration/configure_input_player.h"
#include "yuzu/configuration/configure_input_player_widget.h"
+#include "yuzu/configuration/configure_mouse_panning.h"
#include "yuzu/configuration/input_profiles.h"
#include "yuzu/util/limitable_input_dialog.h"
@@ -66,6 +68,18 @@ QString GetButtonName(Common::Input::ButtonNames button_name) {
return QObject::tr("R");
case Common::Input::ButtonNames::TriggerL:
return QObject::tr("L");
+ case Common::Input::ButtonNames::TriggerZR:
+ return QObject::tr("ZR");
+ case Common::Input::ButtonNames::TriggerZL:
+ return QObject::tr("ZL");
+ case Common::Input::ButtonNames::TriggerSR:
+ return QObject::tr("SR");
+ case Common::Input::ButtonNames::TriggerSL:
+ return QObject::tr("SL");
+ case Common::Input::ButtonNames::ButtonStickL:
+ return QObject::tr("Stick L");
+ case Common::Input::ButtonNames::ButtonStickR:
+ return QObject::tr("Stick R");
case Common::Input::ButtonNames::ButtonA:
return QObject::tr("A");
case Common::Input::ButtonNames::ButtonB:
@@ -76,6 +90,14 @@ QString GetButtonName(Common::Input::ButtonNames button_name) {
return QObject::tr("Y");
case Common::Input::ButtonNames::ButtonStart:
return QObject::tr("Start");
+ case Common::Input::ButtonNames::ButtonPlus:
+ return QObject::tr("Plus");
+ case Common::Input::ButtonNames::ButtonMinus:
+ return QObject::tr("Minus");
+ case Common::Input::ButtonNames::ButtonHome:
+ return QObject::tr("Home");
+ case Common::Input::ButtonNames::ButtonCapture:
+ return QObject::tr("Capture");
case Common::Input::ButtonNames::L1:
return QObject::tr("L1");
case Common::Input::ButtonNames::L2:
@@ -162,12 +184,13 @@ QString ConfigureInputPlayer::ButtonToText(const Common::ParamPackage& param) {
const QString toggle = QString::fromStdString(param.Get("toggle", false) ? "~" : "");
const QString inverted = QString::fromStdString(param.Get("inverted", false) ? "!" : "");
const QString invert = QString::fromStdString(param.Get("invert", "+") == "-" ? "-" : "");
+ const QString turbo = QString::fromStdString(param.Get("turbo", false) ? "$" : "");
const auto common_button_name = input_subsystem->GetButtonName(param);
// Retrieve the names from Qt
if (param.Get("engine", "") == "keyboard") {
const QString button_str = GetKeyName(param.Get("code", 0));
- return QObject::tr("%1%2%3").arg(toggle, inverted, button_str);
+ return QObject::tr("%1%2%3%4").arg(turbo, toggle, inverted, button_str);
}
if (common_button_name == Common::Input::ButtonNames::Invalid) {
@@ -181,11 +204,11 @@ QString ConfigureInputPlayer::ButtonToText(const Common::ParamPackage& param) {
if (common_button_name == Common::Input::ButtonNames::Value) {
if (param.Has("hat")) {
const QString hat = GetDirectionName(param.Get("direction", ""));
- return QObject::tr("%1%2Hat %3").arg(toggle, inverted, hat);
+ return QObject::tr("%1%2%3Hat %4").arg(turbo, toggle, inverted, hat);
}
if (param.Has("axis")) {
const QString axis = QString::fromStdString(param.Get("axis", ""));
- return QObject::tr("%1%2Axis %3").arg(toggle, invert, axis);
+ return QObject::tr("%1%2%3Axis %4").arg(toggle, inverted, invert, axis);
}
if (param.Has("axis_x") && param.Has("axis_y") && param.Has("axis_z")) {
const QString axis_x = QString::fromStdString(param.Get("axis_x", ""));
@@ -199,22 +222,22 @@ QString ConfigureInputPlayer::ButtonToText(const Common::ParamPackage& param) {
}
if (param.Has("button")) {
const QString button = QString::fromStdString(param.Get("button", ""));
- return QObject::tr("%1%2Button %3").arg(toggle, inverted, button);
+ return QObject::tr("%1%2%3Button %4").arg(turbo, toggle, inverted, button);
}
}
QString button_name = GetButtonName(common_button_name);
if (param.Has("hat")) {
- return QObject::tr("%1%2Hat %3").arg(toggle, inverted, button_name);
+ return QObject::tr("%1%2%3Hat %4").arg(turbo, toggle, inverted, button_name);
}
if (param.Has("axis")) {
- return QObject::tr("%1%2Axis %3").arg(toggle, inverted, button_name);
+ return QObject::tr("%1%2%3Axis %4").arg(toggle, inverted, invert, button_name);
}
if (param.Has("motion")) {
return QObject::tr("%1%2Axis %3").arg(toggle, inverted, button_name);
}
if (param.Has("button")) {
- return QObject::tr("%1%2Button %3").arg(toggle, inverted, button_name);
+ return QObject::tr("%1%2%3Button %4").arg(turbo, toggle, inverted, button_name);
}
return QObject::tr("[unknown]");
@@ -375,6 +398,12 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i
button_map[button_id]->setText(ButtonToText(param));
emulated_controller->SetButtonParam(button_id, param);
});
+ context_menu.addAction(tr("Turbo button"), [&] {
+ const bool turbo_value = !param.Get("turbo", false);
+ param.Set("turbo", turbo_value);
+ button_map[button_id]->setText(ButtonToText(param));
+ emulated_controller->SetButtonParam(button_id, param);
+ });
}
if (param.Has("axis")) {
context_menu.addAction(tr("Invert axis"), [&] {
@@ -383,6 +412,12 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i
button_map[button_id]->setText(ButtonToText(param));
emulated_controller->SetButtonParam(button_id, param);
});
+ context_menu.addAction(tr("Invert button"), [&] {
+ const bool invert_value = !param.Get("inverted", false);
+ param.Set("inverted", invert_value);
+ button_map[button_id]->setText(ButtonToText(param));
+ emulated_controller->SetButtonParam(button_id, param);
+ });
context_menu.addAction(tr("Set threshold"), [&] {
const int button_threshold =
static_cast<int>(param.Get("threshold", 0.5f) * 100.0f);
@@ -445,6 +480,9 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i
param.Set("threshold", new_threshold / 1000.0f);
emulated_controller->SetMotionParam(motion_id, param);
});
+ context_menu.addAction(tr("Calibrate sensor"), [&] {
+ emulated_controller->StartMotionCalibration();
+ });
}
context_menu.exec(motion_map[motion_id]->mapToGlobal(menu_location));
});
@@ -674,6 +712,21 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i
});
}
+ if (player_index_ == 0) {
+ connect(ui->mousePanningButton, &QPushButton::clicked, [this, input_subsystem_] {
+ const auto right_stick_param =
+ emulated_controller->GetStickParam(Settings::NativeAnalog::RStick);
+ ConfigureMousePanning dialog(this, input_subsystem_,
+ right_stick_param.Get("deadzone", 0.0f),
+ right_stick_param.Get("range", 1.0f));
+ if (dialog.exec() == QDialog::Accepted) {
+ dialog.ApplyConfiguration();
+ }
+ });
+ } else {
+ ui->mousePanningWidget->hide();
+ }
+
// Player Connected checkbox
connect(ui->groupConnectedController, &QGroupBox::toggled,
[this](bool checked) { emit Connected(checked); });
@@ -1463,7 +1516,7 @@ void ConfigureInputPlayer::mousePressEvent(QMouseEvent* event) {
}
const auto button = GRenderWindow::QtButtonToMouseButton(event->button());
- input_subsystem->GetMouse()->PressButton(0, 0, 0, 0, button);
+ input_subsystem->GetMouse()->PressButton(0, 0, button);
}
void ConfigureInputPlayer::wheelEvent(QWheelEvent* event) {
diff --git a/src/yuzu/configuration/configure_input_player.h b/src/yuzu/configuration/configure_input_player.h
index 99a9c875d..d4df43d73 100644
--- a/src/yuzu/configuration/configure_input_player.h
+++ b/src/yuzu/configuration/configure_input_player.h
@@ -224,7 +224,7 @@ private:
/// Bottom row is where console wide settings are held, and its "owned" by the parent
/// ConfigureInput widget. On show, add this widget to the main layout. This will change the
- /// parent of the widget to this widget (but thats fine).
+ /// parent of the widget to this widget (but that's fine).
QWidget* bottom_row;
Core::HID::HIDCore& hid_core;
diff --git a/src/yuzu/configuration/configure_input_player.ui b/src/yuzu/configuration/configure_input_player.ui
index a9567c6ee..43f6c7b50 100644
--- a/src/yuzu/configuration/configure_input_player.ui
+++ b/src/yuzu/configuration/configure_input_player.ui
@@ -3048,6 +3048,102 @@
</item>
</layout>
</item>
+ <item>
+ <widget class="QWidget" name="mousePanningWidget" native="true">
+ <layout class="QHBoxLayout" name="mousePanningHorizontalLayout">
+ <property name="spacing">
+ <number>0</number>
+ </property>
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>3</number>
+ </property>
+ <item>
+ <spacer name="mousePanningHorizontalSpacerLeft">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="mousePanningGroup">
+ <property name="title">
+ <string>Mouse panning</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ <layout class="QVBoxLayout" name="mousePanningVerticalLayout">
+ <property name="spacing">
+ <number>3</number>
+ </property>
+ <property name="leftMargin">
+ <number>3</number>
+ </property>
+ <property name="topMargin">
+ <number>3</number>
+ </property>
+ <property name="rightMargin">
+ <number>3</number>
+ </property>
+ <property name="bottomMargin">
+ <number>3</number>
+ </property>
+ <item>
+ <widget class="QPushButton" name="mousePanningButton">
+ <property name="minimumSize">
+ <size>
+ <width>68</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>68</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">min-width: 68px;</string>
+ </property>
+ <property name="text">
+ <string>Configure</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <spacer name="mousePanningHorizontalSpacerRight">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </widget>
+ </item>
</layout>
</widget>
</item>
diff --git a/src/yuzu/configuration/configure_input_player_widget.cpp b/src/yuzu/configuration/configure_input_player_widget.cpp
index 11390fec0..a188eef92 100644
--- a/src/yuzu/configuration/configure_input_player_widget.cpp
+++ b/src/yuzu/configuration/configure_input_player_widget.cpp
@@ -81,7 +81,6 @@ void PlayerControlPreview::UpdateColors() {
colors.outline = QColor(0, 0, 0);
colors.primary = QColor(225, 225, 225);
colors.button = QColor(109, 111, 114);
- colors.button2 = QColor(109, 111, 114);
colors.button2 = QColor(77, 80, 84);
colors.slider_arrow = QColor(65, 68, 73);
colors.font2 = QColor(0, 0, 0);
@@ -100,12 +99,17 @@ void PlayerControlPreview::UpdateColors() {
colors.led_off = QColor(170, 238, 255);
colors.indicator2 = QColor(59, 165, 93);
colors.charging = QColor(250, 168, 26);
+ colors.button_turbo = QColor(217, 158, 4);
colors.left = colors.primary;
colors.right = colors.primary;
- // Possible alternative to set colors from settings
- // colors.left = QColor(controller->GetColors().left.body);
- // colors.right = QColor(controller->GetColors().right.body);
+
+ const auto color_left = controller->GetColorsValues()[0].body;
+ const auto color_right = controller->GetColorsValues()[1].body;
+ if (color_left != 0 && color_right != 0) {
+ colors.left = QColor(color_left);
+ colors.right = QColor(color_right);
+ }
}
void PlayerControlPreview::ResetInputs() {
@@ -176,6 +180,10 @@ void PlayerControlPreview::ControllerUpdate(Core::HID::ControllerTriggerType typ
battery_values = controller->GetBatteryValues();
needs_redraw = true;
break;
+ case Core::HID::ControllerTriggerType::Motion:
+ motion_values = controller->GetMotions();
+ needs_redraw = true;
+ break;
default:
break;
}
@@ -309,6 +317,15 @@ void PlayerControlPreview::DrawLeftController(QPainter& p, const QPointF center)
DrawRawJoystick(p, center + QPointF(-140, 90), QPointF(0, 0));
}
+ {
+ // Draw motion cubes
+ using namespace Settings::NativeMotion;
+ p.setPen(colors.outline);
+ p.setBrush(colors.transparent);
+ Draw3dCube(p, center + QPointF(-140, 90),
+ motion_values[Settings::NativeMotion::MotionLeft].euler, 20.0f);
+ }
+
using namespace Settings::NativeButton;
// D-pad constants
@@ -431,6 +448,15 @@ void PlayerControlPreview::DrawRightController(QPainter& p, const QPointF center
DrawRawJoystick(p, QPointF(0, 0), center + QPointF(140, 90));
}
+ {
+ // Draw motion cubes
+ using namespace Settings::NativeMotion;
+ p.setPen(colors.outline);
+ p.setBrush(colors.transparent);
+ Draw3dCube(p, center + QPointF(140, 90),
+ motion_values[Settings::NativeMotion::MotionRight].euler, 20.0f);
+ }
+
using namespace Settings::NativeButton;
// Face buttons constants
@@ -551,6 +577,17 @@ void PlayerControlPreview::DrawDualController(QPainter& p, const QPointF center)
DrawRawJoystick(p, center + QPointF(-180, 90), center + QPointF(180, 90));
}
+ {
+ // Draw motion cubes
+ using namespace Settings::NativeMotion;
+ p.setPen(colors.outline);
+ p.setBrush(colors.transparent);
+ Draw3dCube(p, center + QPointF(-180, 90),
+ motion_values[Settings::NativeMotion::MotionLeft].euler, 20.0f);
+ Draw3dCube(p, center + QPointF(180, 90),
+ motion_values[Settings::NativeMotion::MotionRight].euler, 20.0f);
+ }
+
using namespace Settings::NativeButton;
// Face buttons constants
@@ -643,6 +680,15 @@ void PlayerControlPreview::DrawHandheldController(QPainter& p, const QPointF cen
DrawRawJoystick(p, center + QPointF(-50, 0), center + QPointF(50, 0));
}
+ {
+ // Draw motion cubes
+ using namespace Settings::NativeMotion;
+ p.setPen(colors.outline);
+ p.setBrush(colors.transparent);
+ Draw3dCube(p, center + QPointF(0, -115),
+ motion_values[Settings::NativeMotion::MotionLeft].euler, 15.0f);
+ }
+
using namespace Settings::NativeButton;
// Face buttons constants
@@ -746,6 +792,15 @@ void PlayerControlPreview::DrawProController(QPainter& p, const QPointF center)
DrawRawJoystick(p, center + QPointF(-50, 105), center + QPointF(50, 105));
}
+ {
+ // Draw motion cubes
+ using namespace Settings::NativeMotion;
+ p.setPen(colors.button);
+ p.setBrush(colors.transparent);
+ Draw3dCube(p, center + QPointF(0, -100),
+ motion_values[Settings::NativeMotion::MotionLeft].euler, 15.0f);
+ }
+
using namespace Settings::NativeButton;
// Face buttons constants
@@ -2465,7 +2520,6 @@ void PlayerControlPreview::DrawJoystickDot(QPainter& p, const QPointF center,
void PlayerControlPreview::DrawRoundButton(QPainter& p, QPointF center,
const Common::Input::ButtonStatus& pressed, float width,
float height, Direction direction, float radius) {
- p.setBrush(button_color);
if (pressed.value) {
switch (direction) {
case Direction::Left:
@@ -2483,16 +2537,16 @@ void PlayerControlPreview::DrawRoundButton(QPainter& p, QPointF center,
case Direction::None:
break;
}
- p.setBrush(colors.highlight);
}
QRectF rect = {center.x() - width, center.y() - height, width * 2.0f, height * 2.0f};
+ p.setBrush(GetButtonColor(button_color, pressed.value, pressed.turbo));
p.drawRoundedRect(rect, radius, radius);
}
void PlayerControlPreview::DrawMinusButton(QPainter& p, const QPointF center,
const Common::Input::ButtonStatus& pressed,
int button_size) {
p.setPen(colors.outline);
- p.setBrush(pressed.value ? colors.highlight : colors.button);
+ p.setBrush(GetButtonColor(colors.button, pressed.value, pressed.turbo));
DrawRectangle(p, center, button_size, button_size / 3.0f);
}
void PlayerControlPreview::DrawPlusButton(QPainter& p, const QPointF center,
@@ -2500,7 +2554,7 @@ void PlayerControlPreview::DrawPlusButton(QPainter& p, const QPointF center,
int button_size) {
// Draw outer line
p.setPen(colors.outline);
- p.setBrush(pressed.value ? colors.highlight : colors.button);
+ p.setBrush(GetButtonColor(colors.button, pressed.value, pressed.turbo));
DrawRectangle(p, center, button_size, button_size / 3.0f);
DrawRectangle(p, center, button_size / 3.0f, button_size);
@@ -2522,7 +2576,7 @@ void PlayerControlPreview::DrawGCButtonX(QPainter& p, const QPointF center,
}
p.setPen(colors.outline);
- p.setBrush(pressed.value ? colors.highlight : colors.button);
+ p.setBrush(GetButtonColor(colors.button, pressed.value, pressed.turbo));
DrawPolygon(p, button_x);
}
@@ -2535,7 +2589,7 @@ void PlayerControlPreview::DrawGCButtonY(QPainter& p, const QPointF center,
}
p.setPen(colors.outline);
- p.setBrush(pressed.value ? colors.highlight : colors.button);
+ p.setBrush(GetButtonColor(colors.button, pressed.value, pressed.turbo));
DrawPolygon(p, button_x);
}
@@ -2549,17 +2603,15 @@ void PlayerControlPreview::DrawGCButtonZ(QPainter& p, const QPointF center,
}
p.setPen(colors.outline);
- p.setBrush(pressed.value ? colors.highlight : colors.button2);
+ p.setBrush(GetButtonColor(colors.button2, pressed.value, pressed.turbo));
DrawPolygon(p, button_x);
}
void PlayerControlPreview::DrawCircleButton(QPainter& p, const QPointF center,
const Common::Input::ButtonStatus& pressed,
float button_size) {
- p.setBrush(button_color);
- if (pressed.value) {
- p.setBrush(colors.highlight);
- }
+
+ p.setBrush(GetButtonColor(button_color, pressed.value, pressed.turbo));
p.drawEllipse(center, button_size, button_size);
}
@@ -2616,7 +2668,7 @@ void PlayerControlPreview::DrawArrowButton(QPainter& p, const QPointF center,
// Draw arrow button
p.setPen(pressed.value ? colors.highlight : colors.button);
- p.setBrush(pressed.value ? colors.highlight : colors.button);
+ p.setBrush(GetButtonColor(colors.button, pressed.value, pressed.turbo));
DrawPolygon(p, arrow_button);
switch (direction) {
@@ -2668,10 +2720,20 @@ void PlayerControlPreview::DrawTriggerButton(QPainter& p, const QPointF center,
// Draw arrow button
p.setPen(colors.outline);
- p.setBrush(pressed.value ? colors.highlight : colors.button);
+ p.setBrush(GetButtonColor(colors.button, pressed.value, pressed.turbo));
DrawPolygon(p, qtrigger_button);
}
+QColor PlayerControlPreview::GetButtonColor(QColor default_color, bool is_pressed, bool turbo) {
+ if (is_pressed && turbo) {
+ return colors.button_turbo;
+ }
+ if (is_pressed) {
+ return colors.highlight;
+ }
+ return default_color;
+}
+
void PlayerControlPreview::DrawBattery(QPainter& p, QPointF center,
Common::Input::BatteryLevel battery) {
if (battery == Common::Input::BatteryLevel::None) {
@@ -2860,6 +2922,46 @@ void PlayerControlPreview::DrawArrow(QPainter& p, const QPointF center, const Di
DrawPolygon(p, arrow_symbol);
}
+// Draw motion functions
+void PlayerControlPreview::Draw3dCube(QPainter& p, QPointF center, const Common::Vec3f& euler,
+ float size) {
+ std::array<Common::Vec3f, 8> cube{
+ Common::Vec3f{-0.7f, -1, -0.5f},
+ {-0.7f, 1, -0.5f},
+ {0.7f, 1, -0.5f},
+ {0.7f, -1, -0.5f},
+ {-0.7f, -1, 0.5f},
+ {-0.7f, 1, 0.5f},
+ {0.7f, 1, 0.5f},
+ {0.7f, -1, 0.5f},
+ };
+
+ for (Common::Vec3f& point : cube) {
+ point.RotateFromOrigin(euler.x, euler.y, euler.z);
+ point *= size;
+ }
+
+ const std::array<QPointF, 4> front_face{
+ center + QPointF{cube[0].x, cube[0].y},
+ center + QPointF{cube[1].x, cube[1].y},
+ center + QPointF{cube[2].x, cube[2].y},
+ center + QPointF{cube[3].x, cube[3].y},
+ };
+ const std::array<QPointF, 4> back_face{
+ center + QPointF{cube[4].x, cube[4].y},
+ center + QPointF{cube[5].x, cube[5].y},
+ center + QPointF{cube[6].x, cube[6].y},
+ center + QPointF{cube[7].x, cube[7].y},
+ };
+
+ DrawPolygon(p, front_face);
+ DrawPolygon(p, back_face);
+ p.drawLine(center + QPointF{cube[0].x, cube[0].y}, center + QPointF{cube[4].x, cube[4].y});
+ p.drawLine(center + QPointF{cube[1].x, cube[1].y}, center + QPointF{cube[5].x, cube[5].y});
+ p.drawLine(center + QPointF{cube[2].x, cube[2].y}, center + QPointF{cube[6].x, cube[6].y});
+ p.drawLine(center + QPointF{cube[3].x, cube[3].y}, center + QPointF{cube[7].x, cube[7].y});
+}
+
template <size_t N>
void PlayerControlPreview::DrawPolygon(QPainter& p, const std::array<QPointF, N>& polygon) {
p.drawPolygon(polygon.data(), static_cast<int>(polygon.size()));
diff --git a/src/yuzu/configuration/configure_input_player_widget.h b/src/yuzu/configuration/configure_input_player_widget.h
index b258c6d77..a16943c3c 100644
--- a/src/yuzu/configuration/configure_input_player_widget.h
+++ b/src/yuzu/configuration/configure_input_player_widget.h
@@ -9,6 +9,7 @@
#include "common/input.h"
#include "common/settings_input.h"
+#include "common/vector_math.h"
#include "core/hid/emulated_controller.h"
#include "core/hid/hid_types.h"
@@ -43,7 +44,7 @@ public:
// Handles emulated controller events
void ControllerUpdate(Core::HID::ControllerTriggerType type);
- // Updates input on sheduled interval
+ // Updates input on scheduled interval
void UpdateInput();
protected:
@@ -81,6 +82,7 @@ private:
QColor right{};
QColor button{};
QColor button2{};
+ QColor button_turbo{};
QColor font{};
QColor font2{};
QColor highlight{};
@@ -183,6 +185,7 @@ private:
const Common::Input::ButtonStatus& pressed, float size = 1.0f);
void DrawTriggerButton(QPainter& p, QPointF center, Direction direction,
const Common::Input::ButtonStatus& pressed);
+ QColor GetButtonColor(QColor default_color, bool is_pressed, bool turbo);
// Draw battery functions
void DrawBattery(QPainter& p, QPointF center, Common::Input::BatteryLevel battery);
@@ -191,6 +194,9 @@ private:
void DrawSymbol(QPainter& p, QPointF center, Symbol symbol, float icon_size);
void DrawArrow(QPainter& p, QPointF center, Direction direction, float size);
+ // Draw motion functions
+ void Draw3dCube(QPainter& p, QPointF center, const Common::Vec3f& euler, float size);
+
// Draw primitive types
template <size_t N>
void DrawPolygon(QPainter& p, const std::array<QPointF, N>& polygon);
@@ -220,4 +226,5 @@ private:
Core::HID::SticksValues stick_values{};
Core::HID::TriggerValues trigger_values{};
Core::HID::BatteryValues battery_values{};
+ Core::HID::MotionState motion_values{};
};
diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cpp
index d1b870c72..fb1292f07 100644
--- a/src/yuzu/configuration/configure_motion_touch.cpp
+++ b/src/yuzu/configuration/configure_motion_touch.cpp
@@ -89,7 +89,6 @@ ConfigureMotionTouch::ConfigureMotionTouch(QWidget* parent,
"using-a-controller-or-android-phone-for-motion-or-touch-input'><span "
"style=\"text-decoration: underline; color:#039be5;\">Learn More</span></a>"));
- setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
SetConfiguration();
UpdateUiDisplay();
ConnectEvents();
diff --git a/src/yuzu/configuration/configure_mouse_panning.cpp b/src/yuzu/configuration/configure_mouse_panning.cpp
new file mode 100644
index 000000000..f183d2740
--- /dev/null
+++ b/src/yuzu/configuration/configure_mouse_panning.cpp
@@ -0,0 +1,79 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <QCloseEvent>
+
+#include "common/settings.h"
+#include "ui_configure_mouse_panning.h"
+#include "yuzu/configuration/configure_mouse_panning.h"
+
+ConfigureMousePanning::ConfigureMousePanning(QWidget* parent,
+ InputCommon::InputSubsystem* input_subsystem_,
+ float right_stick_deadzone, float right_stick_range)
+ : QDialog(parent), input_subsystem{input_subsystem_},
+ ui(std::make_unique<Ui::ConfigureMousePanning>()) {
+ ui->setupUi(this);
+ SetConfiguration(right_stick_deadzone, right_stick_range);
+ ConnectEvents();
+}
+
+ConfigureMousePanning::~ConfigureMousePanning() = default;
+
+void ConfigureMousePanning::closeEvent(QCloseEvent* event) {
+ event->accept();
+}
+
+void ConfigureMousePanning::SetConfiguration(float right_stick_deadzone, float right_stick_range) {
+ ui->enable->setChecked(Settings::values.mouse_panning.GetValue());
+ ui->x_sensitivity->setValue(Settings::values.mouse_panning_x_sensitivity.GetValue());
+ ui->y_sensitivity->setValue(Settings::values.mouse_panning_y_sensitivity.GetValue());
+ ui->deadzone_x_counterweight->setValue(
+ Settings::values.mouse_panning_deadzone_x_counterweight.GetValue());
+ ui->deadzone_y_counterweight->setValue(
+ Settings::values.mouse_panning_deadzone_y_counterweight.GetValue());
+ ui->decay_strength->setValue(Settings::values.mouse_panning_decay_strength.GetValue());
+ ui->min_decay->setValue(Settings::values.mouse_panning_min_decay.GetValue());
+
+ if (right_stick_deadzone > 0.0f || right_stick_range != 1.0f) {
+ ui->warning_label->setText(QString::fromStdString(
+ "Mouse panning works better with a deadzone of 0% and a range of 100%.\n"
+ "Current values are " +
+ std::to_string(static_cast<int>(right_stick_deadzone * 100.0f)) + "% and " +
+ std::to_string(static_cast<int>(right_stick_range * 100.0f)) + "% respectively."));
+ } else {
+ ui->warning_label->hide();
+ }
+}
+
+void ConfigureMousePanning::SetDefaultConfiguration() {
+ ui->x_sensitivity->setValue(Settings::values.mouse_panning_x_sensitivity.GetDefault());
+ ui->y_sensitivity->setValue(Settings::values.mouse_panning_y_sensitivity.GetDefault());
+ ui->deadzone_x_counterweight->setValue(
+ Settings::values.mouse_panning_deadzone_x_counterweight.GetDefault());
+ ui->deadzone_y_counterweight->setValue(
+ Settings::values.mouse_panning_deadzone_y_counterweight.GetDefault());
+ ui->decay_strength->setValue(Settings::values.mouse_panning_decay_strength.GetDefault());
+ ui->min_decay->setValue(Settings::values.mouse_panning_min_decay.GetDefault());
+}
+
+void ConfigureMousePanning::ConnectEvents() {
+ connect(ui->default_button, &QPushButton::clicked, this,
+ &ConfigureMousePanning::SetDefaultConfiguration);
+ connect(ui->button_box, &QDialogButtonBox::accepted, this,
+ &ConfigureMousePanning::ApplyConfiguration);
+ connect(ui->button_box, &QDialogButtonBox::rejected, this, [this] { reject(); });
+}
+
+void ConfigureMousePanning::ApplyConfiguration() {
+ Settings::values.mouse_panning = ui->enable->isChecked();
+ Settings::values.mouse_panning_x_sensitivity = static_cast<float>(ui->x_sensitivity->value());
+ Settings::values.mouse_panning_y_sensitivity = static_cast<float>(ui->y_sensitivity->value());
+ Settings::values.mouse_panning_deadzone_x_counterweight =
+ static_cast<float>(ui->deadzone_x_counterweight->value());
+ Settings::values.mouse_panning_deadzone_y_counterweight =
+ static_cast<float>(ui->deadzone_y_counterweight->value());
+ Settings::values.mouse_panning_decay_strength = static_cast<float>(ui->decay_strength->value());
+ Settings::values.mouse_panning_min_decay = static_cast<float>(ui->min_decay->value());
+
+ accept();
+}
diff --git a/src/yuzu/configuration/configure_mouse_panning.h b/src/yuzu/configuration/configure_mouse_panning.h
new file mode 100644
index 000000000..08c6e1f62
--- /dev/null
+++ b/src/yuzu/configuration/configure_mouse_panning.h
@@ -0,0 +1,35 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <memory>
+#include <QDialog>
+
+namespace InputCommon {
+class InputSubsystem;
+}
+
+namespace Ui {
+class ConfigureMousePanning;
+}
+
+class ConfigureMousePanning : public QDialog {
+ Q_OBJECT
+public:
+ explicit ConfigureMousePanning(QWidget* parent, InputCommon::InputSubsystem* input_subsystem_,
+ float right_stick_deadzone, float right_stick_range);
+ ~ConfigureMousePanning() override;
+
+public slots:
+ void ApplyConfiguration();
+
+private:
+ void closeEvent(QCloseEvent* event) override;
+ void SetConfiguration(float right_stick_deadzone, float right_stick_range);
+ void SetDefaultConfiguration();
+ void ConnectEvents();
+
+ InputCommon::InputSubsystem* input_subsystem;
+ std::unique_ptr<Ui::ConfigureMousePanning> ui;
+};
diff --git a/src/yuzu/configuration/configure_mouse_panning.ui b/src/yuzu/configuration/configure_mouse_panning.ui
new file mode 100644
index 000000000..75795b727
--- /dev/null
+++ b/src/yuzu/configuration/configure_mouse_panning.ui
@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ConfigureMousePanning</class>
+ <widget class="QDialog" name="configure_mouse_panning">
+ <property name="windowTitle">
+ <string>Configure mouse panning</string>
+ </property>
+ <layout class="QVBoxLayout">
+ <item>
+ <widget class="QCheckBox" name="enable">
+ <property name="text">
+ <string>Enable</string>
+ </property>
+ <property name="toolTip">
+ <string>Can be toggled via a hotkey</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout">
+ <item>
+ <widget class="QGroupBox" name="sensitivity_box">
+ <property name="title">
+ <string>Sensitivity</string>
+ </property>
+ <layout class="QGridLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="x_sensitivity_label">
+ <property name="text">
+ <string>Horizontal</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QSpinBox" name="x_sensitivity">
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ <property name="suffix">
+ <string>%</string>
+ </property>
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="value">
+ <number>50</number>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="y_sensitivity_label">
+ <property name="text">
+ <string>Vertical</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QSpinBox" name="y_sensitivity">
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ <property name="suffix">
+ <string>%</string>
+ </property>
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="value">
+ <number>50</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="deadzone_counterweight_box">
+ <property name="title">
+ <string>Deadzone counterweight</string>
+ </property>
+ <property name="toolTip">
+ <string>Counteracts a game's built-in deadzone</string>
+ </property>
+ <layout class="QGridLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="deadzone_x_counterweight_label">
+ <property name="text">
+ <string>Horizontal</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QSpinBox" name="deadzone_x_counterweight">
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ <property name="suffix">
+ <string>%</string>
+ </property>
+ <property name="minimum">
+ <number>0</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="value">
+ <number>0</number>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="deadzone_y_counterweight_label">
+ <property name="text">
+ <string>Vertical</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QSpinBox" name="deadzone_y_counterweight">
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ <property name="suffix">
+ <string>%</string>
+ </property>
+ <property name="minimum">
+ <number>0</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="value">
+ <number>0</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="decay_box">
+ <property name="title">
+ <string>Stick decay</string>
+ </property>
+ <layout class="QGridLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="decay_strength_label">
+ <property name="text">
+ <string>Strength</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QSpinBox" name="decay_strength">
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ <property name="suffix">
+ <string>%</string>
+ </property>
+ <property name="minimum">
+ <number>0</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="value">
+ <number>22</number>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="min_decay_label">
+ <property name="text">
+ <string>Minimum</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QSpinBox" name="min_decay">
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ <property name="suffix">
+ <string>%</string>
+ </property>
+ <property name="minimum">
+ <number>0</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="value">
+ <number>5</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QLabel" name="warning_label">
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout">
+ <item>
+ <widget class="QPushButton" name="default_button">
+ <property name="text">
+ <string>Default</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="button_box">
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/src/yuzu/configuration/configure_per_game.cpp b/src/yuzu/configuration/configure_per_game.cpp
index 93db47cfd..eb96e6068 100644
--- a/src/yuzu/configuration/configure_per_game.cpp
+++ b/src/yuzu/configuration/configure_per_game.cpp
@@ -6,6 +6,7 @@
#include <memory>
#include <string>
#include <utility>
+#include <vector>
#include <fmt/format.h>
@@ -34,8 +35,10 @@
#include "yuzu/configuration/configure_system.h"
#include "yuzu/uisettings.h"
#include "yuzu/util/util.h"
+#include "yuzu/vk_device_info.h"
ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const std::string& file_name,
+ std::vector<VkDeviceInfo::Record>& vk_device_records,
Core::System& system_)
: QDialog(parent),
ui(std::make_unique<Ui::ConfigurePerGame>()), title_id{title_id_}, system{system_} {
@@ -48,8 +51,9 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const std::st
audio_tab = std::make_unique<ConfigureAudio>(system_, this);
cpu_tab = std::make_unique<ConfigureCpu>(system_, this);
general_tab = std::make_unique<ConfigureGeneral>(system_, this);
- graphics_tab = std::make_unique<ConfigureGraphics>(system_, this);
graphics_advanced_tab = std::make_unique<ConfigureGraphicsAdvanced>(system_, this);
+ graphics_tab = std::make_unique<ConfigureGraphics>(
+ system_, vk_device_records, [&]() { graphics_advanced_tab->ExposeComputeOption(); }, this);
input_tab = std::make_unique<ConfigureInputPerGame>(system_, game_config.get(), this);
system_tab = std::make_unique<ConfigureSystem>(system_, this);
@@ -66,8 +70,6 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const std::st
setFocusPolicy(Qt::ClickFocus);
setWindowTitle(tr("Properties"));
- // remove Help question mark button from the title bar
- setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
addons_tab->SetTitleId(title_id);
diff --git a/src/yuzu/configuration/configure_per_game.h b/src/yuzu/configuration/configure_per_game.h
index 4ecc43541..7ec1ded06 100644
--- a/src/yuzu/configuration/configure_per_game.h
+++ b/src/yuzu/configuration/configure_per_game.h
@@ -5,11 +5,13 @@
#include <memory>
#include <string>
+#include <vector>
#include <QDialog>
#include <QList>
#include "core/file_sys/vfs_types.h"
+#include "vk_device_info.h"
#include "yuzu/configuration/config.h"
namespace Core {
@@ -45,6 +47,7 @@ class ConfigurePerGame : public QDialog {
public:
// Cannot use std::filesystem::path due to https://bugreports.qt.io/browse/QTBUG-73263
explicit ConfigurePerGame(QWidget* parent, u64 title_id_, const std::string& file_name,
+ std::vector<VkDeviceInfo::Record>& vk_device_records,
Core::System& system_);
~ConfigurePerGame() override;
@@ -75,8 +78,8 @@ private:
std::unique_ptr<ConfigureAudio> audio_tab;
std::unique_ptr<ConfigureCpu> cpu_tab;
std::unique_ptr<ConfigureGeneral> general_tab;
- std::unique_ptr<ConfigureGraphics> graphics_tab;
std::unique_ptr<ConfigureGraphicsAdvanced> graphics_advanced_tab;
+ std::unique_ptr<ConfigureGraphics> graphics_tab;
std::unique_ptr<ConfigureInputPerGame> input_tab;
std::unique_ptr<ConfigureSystem> system_tab;
};
diff --git a/src/yuzu/configuration/configure_ringcon.cpp b/src/yuzu/configuration/configure_ringcon.cpp
index 688c2dd38..71afbc423 100644
--- a/src/yuzu/configuration/configure_ringcon.cpp
+++ b/src/yuzu/configuration/configure_ringcon.cpp
@@ -4,9 +4,11 @@
#include <memory>
#include <QKeyEvent>
#include <QMenu>
+#include <QMessageBox>
#include <QTimer>
+#include <fmt/format.h>
-#include "core/hid/emulated_devices.h"
+#include "core/hid/emulated_controller.h"
#include "core/hid/hid_core.h"
#include "input_common/drivers/keyboard.h"
#include "input_common/drivers/mouse.h"
@@ -126,9 +128,16 @@ ConfigureRingController::ConfigureRingController(QWidget* parent,
ui->buttonRingAnalogPush,
};
- emulated_device = hid_core_.GetEmulatedDevices();
- emulated_device->SaveCurrentConfig();
- emulated_device->EnableConfiguration();
+ emulated_controller = hid_core_.GetEmulatedController(Core::HID::NpadIdType::Player1);
+ emulated_controller->SaveCurrentConfig();
+ emulated_controller->EnableConfiguration();
+
+ Core::HID::ControllerUpdateCallback engine_callback{
+ .on_change = [this](Core::HID::ControllerTriggerType type) { ControllerUpdate(type); },
+ .is_npad_service = false,
+ };
+ callback_key = emulated_controller->SetCallback(engine_callback);
+ is_controller_set = true;
LoadConfiguration();
@@ -143,9 +152,9 @@ ConfigureRingController::ConfigureRingController(QWidget* parent,
HandleClick(
analog_map_buttons[sub_button_id],
[=, this](const Common::ParamPackage& params) {
- Common::ParamPackage param = emulated_device->GetRingParam();
+ Common::ParamPackage param = emulated_controller->GetRingParam();
SetAnalogParam(params, param, analog_sub_buttons[sub_button_id]);
- emulated_device->SetRingParam(param);
+ emulated_controller->SetRingParam(param);
},
InputCommon::Polling::InputType::Stick);
});
@@ -155,16 +164,16 @@ ConfigureRingController::ConfigureRingController(QWidget* parent,
connect(analog_button, &QPushButton::customContextMenuRequested,
[=, this](const QPoint& menu_location) {
QMenu context_menu;
- Common::ParamPackage param = emulated_device->GetRingParam();
+ Common::ParamPackage param = emulated_controller->GetRingParam();
context_menu.addAction(tr("Clear"), [&] {
- emulated_device->SetRingParam({});
+ emulated_controller->SetRingParam(param);
analog_map_buttons[sub_button_id]->setText(tr("[not set]"));
});
context_menu.addAction(tr("Invert axis"), [&] {
const bool invert_value = param.Get("invert_x", "+") == "-";
const std::string invert_str = invert_value ? "+" : "-";
param.Set("invert_x", invert_str);
- emulated_device->SetRingParam(param);
+ emulated_controller->SetRingParam(param);
for (int sub_button_id2 = 0; sub_button_id2 < ANALOG_SUB_BUTTONS_NUM;
++sub_button_id2) {
analog_map_buttons[sub_button_id2]->setText(
@@ -177,16 +186,19 @@ ConfigureRingController::ConfigureRingController(QWidget* parent,
}
connect(ui->sliderRingAnalogDeadzone, &QSlider::valueChanged, [=, this] {
- Common::ParamPackage param = emulated_device->GetRingParam();
+ Common::ParamPackage param = emulated_controller->GetRingParam();
const auto slider_value = ui->sliderRingAnalogDeadzone->value();
ui->labelRingAnalogDeadzone->setText(tr("Deadzone: %1%").arg(slider_value));
param.Set("deadzone", slider_value / 100.0f);
- emulated_device->SetRingParam(param);
+ emulated_controller->SetRingParam(param);
});
connect(ui->restore_defaults_button, &QPushButton::clicked, this,
&ConfigureRingController::RestoreDefaults);
+ connect(ui->enable_ring_controller_button, &QPushButton::clicked, this,
+ &ConfigureRingController::EnableRingController);
+
timeout_timer->setSingleShot(true);
connect(timeout_timer.get(), &QTimer::timeout, [this] { SetPollingResult({}, true); });
@@ -202,7 +214,14 @@ ConfigureRingController::ConfigureRingController(QWidget* parent,
}
ConfigureRingController::~ConfigureRingController() {
- emulated_device->DisableConfiguration();
+ emulated_controller->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex,
+ Common::Input::PollingMode::Active);
+ emulated_controller->DisableConfiguration();
+
+ if (is_controller_set) {
+ emulated_controller->DeleteCallback(callback_key);
+ is_controller_set = false;
+ }
};
void ConfigureRingController::changeEvent(QEvent* event) {
@@ -219,7 +238,7 @@ void ConfigureRingController::RetranslateUI() {
void ConfigureRingController::UpdateUI() {
RetranslateUI();
- const Common::ParamPackage param = emulated_device->GetRingParam();
+ const Common::ParamPackage param = emulated_controller->GetRingParam();
for (int sub_button_id = 0; sub_button_id < ANALOG_SUB_BUTTONS_NUM; ++sub_button_id) {
auto* const analog_button = analog_map_buttons[sub_button_id];
@@ -240,9 +259,9 @@ void ConfigureRingController::UpdateUI() {
}
void ConfigureRingController::ApplyConfiguration() {
- emulated_device->DisableConfiguration();
- emulated_device->SaveCurrentConfig();
- emulated_device->EnableConfiguration();
+ emulated_controller->DisableConfiguration();
+ emulated_controller->SaveCurrentConfig();
+ emulated_controller->EnableConfiguration();
}
void ConfigureRingController::LoadConfiguration() {
@@ -252,10 +271,62 @@ void ConfigureRingController::LoadConfiguration() {
void ConfigureRingController::RestoreDefaults() {
const std::string default_ring_string = InputCommon::GenerateAnalogParamFromKeys(
0, 0, Config::default_ringcon_analogs[0], Config::default_ringcon_analogs[1], 0, 0.05f);
- emulated_device->SetRingParam(Common::ParamPackage(default_ring_string));
+ emulated_controller->SetRingParam(Common::ParamPackage(default_ring_string));
UpdateUI();
}
+void ConfigureRingController::EnableRingController() {
+ const auto dialog_title = tr("Error enabling ring input");
+
+ is_ring_enabled = false;
+ ui->ring_controller_sensor_value->setText(tr("Not connected"));
+
+ if (!Settings::values.enable_joycon_driver) {
+ QMessageBox::warning(this, dialog_title, tr("Direct Joycon driver is not enabled"));
+ return;
+ }
+
+ ui->enable_ring_controller_button->setEnabled(false);
+ ui->enable_ring_controller_button->setText(tr("Configuring"));
+ // SetPollingMode is blocking. Allow to update the button status before calling the command
+ repaint();
+
+ const auto result = emulated_controller->SetPollingMode(
+ Core::HID::EmulatedDeviceIndex::RightIndex, Common::Input::PollingMode::Ring);
+ switch (result) {
+ case Common::Input::DriverResult::Success:
+ is_ring_enabled = true;
+ break;
+ case Common::Input::DriverResult::NotSupported:
+ QMessageBox::warning(this, dialog_title,
+ tr("The current mapped device doesn't support the ring controller"));
+ break;
+ case Common::Input::DriverResult::NoDeviceDetected:
+ QMessageBox::warning(this, dialog_title,
+ tr("The current mapped device doesn't have a ring attached"));
+ break;
+ default:
+ QMessageBox::warning(this, dialog_title,
+ tr("Unexpected driver result %1").arg(static_cast<int>(result)));
+ break;
+ }
+ ui->enable_ring_controller_button->setEnabled(true);
+ ui->enable_ring_controller_button->setText(tr("Enable"));
+}
+
+void ConfigureRingController::ControllerUpdate(Core::HID::ControllerTriggerType type) {
+ if (!is_ring_enabled) {
+ return;
+ }
+ if (type != Core::HID::ControllerTriggerType::RingController) {
+ return;
+ }
+
+ const auto value = emulated_controller->GetRingSensorValues();
+ const auto tex_value = QString::fromStdString(fmt::format("{:.3f}", value.raw_value));
+ ui->ring_controller_sensor_value->setText(tex_value);
+}
+
void ConfigureRingController::HandleClick(
QPushButton* button, std::function<void(const Common::ParamPackage&)> new_input_setter,
InputCommon::Polling::InputType type) {
@@ -300,7 +371,7 @@ void ConfigureRingController::mousePressEvent(QMouseEvent* event) {
}
const auto button = GRenderWindow::QtButtonToMouseButton(event->button());
- input_subsystem->GetMouse()->PressButton(0, 0, 0, 0, button);
+ input_subsystem->GetMouse()->PressButton(0, 0, button);
}
void ConfigureRingController::keyPressEvent(QKeyEvent* event) {
diff --git a/src/yuzu/configuration/configure_ringcon.h b/src/yuzu/configuration/configure_ringcon.h
index 38a9cb716..b23c27906 100644
--- a/src/yuzu/configuration/configure_ringcon.h
+++ b/src/yuzu/configuration/configure_ringcon.h
@@ -13,7 +13,7 @@ class InputSubsystem;
namespace Core::HID {
class HIDCore;
-class EmulatedDevices;
+class EmulatedController;
} // namespace Core::HID
namespace Ui {
@@ -42,6 +42,12 @@ private:
/// Restore all buttons to their default values.
void RestoreDefaults();
+ /// Sets current polling mode to ring input
+ void EnableRingController();
+
+ // Handles emulated controller events
+ void ControllerUpdate(Core::HID::ControllerTriggerType type);
+
/// Called when the button was pressed.
void HandleClick(QPushButton* button,
std::function<void(const Common::ParamPackage&)> new_input_setter,
@@ -78,7 +84,11 @@ private:
std::optional<std::function<void(const Common::ParamPackage&)>> input_setter;
InputCommon::InputSubsystem* input_subsystem;
- Core::HID::EmulatedDevices* emulated_device;
+ Core::HID::EmulatedController* emulated_controller;
+
+ bool is_ring_enabled{};
+ bool is_controller_set{};
+ int callback_key;
std::unique_ptr<Ui::ConfigureRingController> ui;
};
diff --git a/src/yuzu/configuration/configure_ringcon.ui b/src/yuzu/configuration/configure_ringcon.ui
index 9ec634dd4..38ecccc3d 100644
--- a/src/yuzu/configuration/configure_ringcon.ui
+++ b/src/yuzu/configuration/configure_ringcon.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>298</width>
- <height>339</height>
+ <width>315</width>
+ <height>400</height>
</rect>
</property>
<property name="windowTitle">
@@ -23,7 +23,7 @@
</size>
</property>
<property name="text">
- <string>If you want to use this controller configure player 1 as right controller and player 2 as dual joycon before starting the game to allow this controller to be detected properly.</string>
+ <string>To use Ring-Con, configure player 1 as right Joy-Con (both physical and emulated), and player 2 as left Joy-Con (left physical and dual emulated) before starting the game.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
@@ -46,187 +46,283 @@
</property>
</spacer>
</item>
- <item>
- <widget class="QGroupBox" name="RingAnalog">
- <property name="title">
- <string>Ring Sensor Parameters</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <property name="spacing">
- <number>0</number>
- </property>
- <property name="sizeConstraint">
- <enum>QLayout::SetDefaultConstraint</enum>
- </property>
- <property name="leftMargin">
- <number>3</number>
- </property>
- <property name="topMargin">
- <number>6</number>
- </property>
- <property name="rightMargin">
- <number>3</number>
- </property>
- <property name="bottomMargin">
- <number>0</number>
- </property>
- <item>
- <layout class="QHBoxLayout" name="buttonRingAnalogPullHorizontaLayout">
+ <item>
+ <widget class="QGroupBox" name="RingAnalog">
+ <property name="title">
+ <string>Virtual Ring Sensor Parameters</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_1">
<property name="spacing">
- <number>3</number>
+ <number>0</number>
</property>
- <item alignment="Qt::AlignHCenter">
- <widget class="QGroupBox" name="buttonRingAnalogPullGroup">
- <property name="title">
- <string>Pull</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
+ <property name="sizeConstraint">
+ <enum>QLayout::SetDefaultConstraint</enum>
+ </property>
+ <property name="leftMargin">
+ <number>3</number>
+ </property>
+ <property name="topMargin">
+ <number>6</number>
+ </property>
+ <property name="rightMargin">
+ <number>3</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
+ <item>
+ <layout class="QHBoxLayout" name="buttonRingAnalogPullHorizontaLayout">
+ <property name="spacing">
+ <number>3</number>
</property>
- <layout class="QVBoxLayout" name="buttonRingAnalogPullVerticalLayout">
- <property name="spacing">
- <number>3</number>
+ <item alignment="Qt::AlignHCenter">
+ <widget class="QGroupBox" name="buttonRingAnalogPullGroup">
+ <property name="title">
+ <string>Pull</string>
</property>
- <property name="leftMargin">
- <number>3</number>
- </property>
- <property name="topMargin">
- <number>3</number>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
</property>
- <property name="rightMargin">
- <number>3</number>
+ <layout class="QVBoxLayout" name="buttonRingAnalogPullVerticalLayout">
+ <property name="spacing">
+ <number>3</number>
+ </property>
+ <property name="leftMargin">
+ <number>3</number>
+ </property>
+ <property name="topMargin">
+ <number>3</number>
+ </property>
+ <property name="rightMargin">
+ <number>3</number>
+ </property>
+ <property name="bottomMargin">
+ <number>3</number>
+ </property>
+ <item>
+ <widget class="QPushButton" name="buttonRingAnalogPull">
+ <property name="minimumSize">
+ <size>
+ <width>70</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>68</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">min-width: 68px;</string>
+ </property>
+ <property name="text">
+ <string>Pull</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item alignment="Qt::AlignHCenter">
+ <widget class="QGroupBox" name="buttonRingAnalogPushGroup">
+ <property name="title">
+ <string>Push</string>
</property>
- <property name="bottomMargin">
- <number>3</number>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
</property>
- <item>
- <widget class="QPushButton" name="buttonRingAnalogPull">
- <property name="minimumSize">
- <size>
- <width>68</width>
- <height>0</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>68</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true">min-width: 68px;</string>
- </property>
- <property name="text">
- <string>Pull</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
+ <layout class="QVBoxLayout" name="buttonRingAnalogPushVerticalLayout">
+ <property name="spacing">
+ <number>3</number>
+ </property>
+ <property name="leftMargin">
+ <number>3</number>
+ </property>
+ <property name="topMargin">
+ <number>3</number>
+ </property>
+ <property name="rightMargin">
+ <number>3</number>
+ </property>
+ <property name="bottomMargin">
+ <number>3</number>
+ </property>
+ <item>
+ <widget class="QPushButton" name="buttonRingAnalogPush">
+ <property name="minimumSize">
+ <size>
+ <width>70</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>68</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">min-width: 68px;</string>
+ </property>
+ <property name="text">
+ <string>Push</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ </layout>
</item>
- <item alignment="Qt::AlignHCenter">
- <widget class="QGroupBox" name="buttonRingAnalogPushGroup">
- <property name="title">
- <string>Push</string>
+ <item>
+ <layout class="QVBoxLayout" name="sliderRingAnalogDeadzoneVerticalLayout">
+ <property name="spacing">
+ <number>3</number>
</property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
+ <property name="sizeConstraint">
+ <enum>QLayout::SetDefaultConstraint</enum>
</property>
- <layout class="QVBoxLayout" name="buttonRingAnalogPushVerticalLayout">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="leftMargin">
- <number>3</number>
- </property>
- <property name="topMargin">
- <number>3</number>
- </property>
- <property name="rightMargin">
- <number>3</number>
- </property>
- <property name="bottomMargin">
- <number>3</number>
- </property>
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>10</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>3</number>
+ </property>
+ <item>
+ <layout class="QHBoxLayout" name="sliderRingAnalogDeadzoneHorizontalLayout">
<item>
- <widget class="QPushButton" name="buttonRingAnalogPush">
- <property name="minimumSize">
- <size>
- <width>68</width>
- <height>0</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>68</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true">min-width: 68px;</string>
- </property>
+ <widget class="QLabel" name="labelRingAnalogDeadzone">
<property name="text">
- <string>Push</string>
+ <string>Deadzone: 0%</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignHCenter</set>
</property>
- </widget>
+ </widget>
</item>
- </layout>
- </widget>
+ </layout>
+ </item>
+ <item>
+ <widget class="QSlider" name="sliderRingAnalogDeadzone">
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
- </layout>
- </item>
- <item>
- <layout class="QVBoxLayout" name="sliderRingAnalogDeadzoneVerticalLayout">
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="RingDriver">
+ <property name="title">
+ <string>Direct Joycon Driver</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
- <number>3</number>
+ <number>0</number>
</property>
<property name="sizeConstraint">
- <enum>QLayout::SetDefaultConstraint</enum>
+ <enum>QLayout::SetDefaultConstraint</enum>
</property>
<property name="leftMargin">
- <number>0</number>
+ <number>3</number>
</property>
<property name="topMargin">
- <number>10</number>
+ <number>6</number>
</property>
<property name="rightMargin">
- <number>0</number>
+ <number>3</number>
</property>
<property name="bottomMargin">
- <number>3</number>
+ <number>10</number>
</property>
<item>
- <layout class="QHBoxLayout" name="sliderRingAnalogDeadzoneHorizontalLayout">
- <item>
- <widget class="QLabel" name="labelRingAnalogDeadzone">
+ <layout class="QGridLayout" name="gridLayout">
+ <property name="leftMargin">
+ <number>10</number>
+ </property>
+ <property name="topMargin">
+ <number>6</number>
+ </property>
+ <property name="rightMargin">
+ <number>10</number>
+ </property>
+ <property name="bottomMargin">
+ <number>10</number>
+ </property>
+ <property name="verticalSpacing">
+ <number>10</number>
+ </property>
+ <item row="0" column="1">
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>76</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="0" column="0">
+ <widget class="QLabel" name="enable_ring_controller_label">
+ <property name="text">
+ <string>Enable Ring Input</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="2">
+ <widget class="QPushButton" name="enable_ring_controller_button">
<property name="text">
- <string>Deadzone: 0%</string>
+ <string>Enable</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="ring_controller_sensor_label">
+ <property name="text">
+ <string>Ring Sensor Value</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="2">
+ <widget class="QLabel" name="ring_controller_sensor_value">
+ <property name="text">
+ <string>Not connected</string>
</property>
<property name="alignment">
- <set>Qt::AlignHCenter</set>
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
- </widget>
+ </widget>
</item>
- </layout>
- </item>
- <item>
- <widget class="QSlider" name="sliderRingAnalogDeadzone">
- <property name="maximum">
- <number>100</number>
- </property>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
+ </layout>
</item>
- </layout>
- </item>
- </layout>
- </widget>
- </item>
+ </layout>
+ </widget>
+ </item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
@@ -273,6 +369,6 @@
<signal>rejected()</signal>
<receiver>ConfigureRingController</receiver>
<slot>reject()</slot>
- </connection>
+ </connection>
</connections>
</ui>
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp
index 9ea4c02da..f1ae312c6 100644
--- a/src/yuzu/configuration/configure_system.cpp
+++ b/src/yuzu/configuration/configure_system.cpp
@@ -40,8 +40,6 @@ static bool IsValidLocale(u32 region_index, u32 language_index) {
ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent)
: QWidget(parent), ui{std::make_unique<Ui::ConfigureSystem>()}, system{system_} {
ui->setupUi(this);
- connect(ui->button_regenerate_console_id, &QPushButton::clicked, this,
- &ConfigureSystem::RefreshConsoleID);
connect(ui->rng_seed_checkbox, &QCheckBox::stateChanged, this, [this](int state) {
ui->rng_seed_edit->setEnabled(state == Qt::Checked);
@@ -76,9 +74,6 @@ ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent)
locale_check);
connect(ui->combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check);
- ui->label_console_id->setVisible(Settings::IsConfiguringGlobal());
- ui->button_regenerate_console_id->setVisible(Settings::IsConfiguringGlobal());
-
SetupPerGameUI();
SetConfiguration();
@@ -116,19 +111,20 @@ void ConfigureSystem::SetConfiguration() {
ui->custom_rtc_edit->setDateTime(QDateTime::fromSecsSinceEpoch(rtc_time));
ui->device_name_edit->setText(
QString::fromUtf8(Settings::values.device_name.GetValue().c_str()));
+ ui->use_unsafe_extended_memory_layout->setEnabled(enabled);
+ ui->use_unsafe_extended_memory_layout->setChecked(
+ Settings::values.use_unsafe_extended_memory_layout.GetValue());
if (Settings::IsConfiguringGlobal()) {
ui->combo_language->setCurrentIndex(Settings::values.language_index.GetValue());
ui->combo_region->setCurrentIndex(Settings::values.region_index.GetValue());
ui->combo_time_zone->setCurrentIndex(Settings::values.time_zone_index.GetValue());
- ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue());
} else {
ConfigurationShared::SetPerGameSetting(ui->combo_language,
&Settings::values.language_index);
ConfigurationShared::SetPerGameSetting(ui->combo_region, &Settings::values.region_index);
ConfigurationShared::SetPerGameSetting(ui->combo_time_zone,
&Settings::values.time_zone_index);
- ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index);
ConfigurationShared::SetHighlight(ui->label_language,
!Settings::values.language_index.UsingGlobal());
@@ -136,8 +132,6 @@ void ConfigureSystem::SetConfiguration() {
!Settings::values.region_index.UsingGlobal());
ConfigurationShared::SetHighlight(ui->label_timezone,
!Settings::values.time_zone_index.UsingGlobal());
- ConfigurationShared::SetHighlight(ui->label_sound,
- !Settings::values.sound_index.UsingGlobal());
}
}
@@ -150,8 +144,7 @@ void ConfigureSystem::ApplyConfiguration() {
if (ui->custom_rtc_checkbox->isChecked()) {
Settings::values.custom_rtc = ui->custom_rtc_edit->dateTime().toSecsSinceEpoch();
if (system.IsPoweredOn()) {
- const s64 posix_time{*Settings::values.custom_rtc +
- Service::Time::TimeManager::GetExternalTimeZoneOffset()};
+ const s64 posix_time{*Settings::values.custom_rtc};
system.GetTimeManager().UpdateLocalSystemClockTime(posix_time);
}
} else {
@@ -169,7 +162,9 @@ void ConfigureSystem::ApplyConfiguration() {
ConfigurationShared::ApplyPerGameSetting(&Settings::values.region_index, ui->combo_region);
ConfigurationShared::ApplyPerGameSetting(&Settings::values.time_zone_index,
ui->combo_time_zone);
- ConfigurationShared::ApplyPerGameSetting(&Settings::values.sound_index, ui->combo_sound);
+ ConfigurationShared::ApplyPerGameSetting(&Settings::values.use_unsafe_extended_memory_layout,
+ ui->use_unsafe_extended_memory_layout,
+ use_unsafe_extended_memory_layout);
if (Settings::IsConfiguringGlobal()) {
// Guard if during game and set to game-specific value
@@ -202,29 +197,11 @@ void ConfigureSystem::ApplyConfiguration() {
}
}
-void ConfigureSystem::RefreshConsoleID() {
- QMessageBox::StandardButton reply;
- QString warning_text = tr("This will replace your current virtual Switch with a new one. "
- "Your current virtual Switch will not be recoverable. "
- "This might have unexpected effects in games. This might fail, "
- "if you use an outdated config savegame. Continue?");
- reply = QMessageBox::critical(this, tr("Warning"), warning_text,
- QMessageBox::No | QMessageBox::Yes);
- if (reply == QMessageBox::No) {
- return;
- }
-
- u64 console_id{};
- ui->label_console_id->setText(
- tr("Console ID: 0x%1").arg(QString::number(console_id, 16).toUpper()));
-}
-
void ConfigureSystem::SetupPerGameUI() {
if (Settings::IsConfiguringGlobal()) {
ui->combo_language->setEnabled(Settings::values.language_index.UsingGlobal());
ui->combo_region->setEnabled(Settings::values.region_index.UsingGlobal());
ui->combo_time_zone->setEnabled(Settings::values.time_zone_index.UsingGlobal());
- ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal());
ui->rng_seed_checkbox->setEnabled(Settings::values.rng_seed.UsingGlobal());
ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.UsingGlobal());
@@ -237,14 +214,16 @@ void ConfigureSystem::SetupPerGameUI() {
Settings::values.region_index.GetValue(true));
ConfigurationShared::SetColoredComboBox(ui->combo_time_zone, ui->label_timezone,
Settings::values.time_zone_index.GetValue(true));
- ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->label_sound,
- Settings::values.sound_index.GetValue(true));
ConfigurationShared::SetColoredTristate(
ui->rng_seed_checkbox, Settings::values.rng_seed.UsingGlobal(),
Settings::values.rng_seed.GetValue().has_value(),
Settings::values.rng_seed.GetValue(true).has_value(), use_rng_seed);
+ ConfigurationShared::SetColoredTristate(ui->use_unsafe_extended_memory_layout,
+ Settings::values.use_unsafe_extended_memory_layout,
+ use_unsafe_extended_memory_layout);
+
ui->custom_rtc_checkbox->setVisible(false);
ui->custom_rtc_edit->setVisible(false);
}
diff --git a/src/yuzu/configuration/configure_system.h b/src/yuzu/configuration/configure_system.h
index a7f086258..ce1a91601 100644
--- a/src/yuzu/configuration/configure_system.h
+++ b/src/yuzu/configuration/configure_system.h
@@ -35,14 +35,13 @@ private:
void ReadSystemSettings();
- void RefreshConsoleID();
-
void SetupPerGameUI();
std::unique_ptr<Ui::ConfigureSystem> ui;
bool enabled = false;
ConfigurationShared::CheckState use_rng_seed;
+ ConfigurationShared::CheckState use_unsafe_extended_memory_layout;
Core::System& system;
};
diff --git a/src/yuzu/configuration/configure_system.ui b/src/yuzu/configuration/configure_system.ui
index 0459cd924..e0caecd5e 100644
--- a/src/yuzu/configuration/configure_system.ui
+++ b/src/yuzu/configuration/configure_system.ui
@@ -411,7 +411,7 @@
</item>
</widget>
</item>
- <item row="5" column="0">
+ <item row="4" column="0">
<widget class="QCheckBox" name="custom_rtc_checkbox">
<property name="text">
<string>Custom RTC</string>
@@ -425,54 +425,21 @@
</property>
</widget>
</item>
- <item row="6" column="0">
+ <item row="5" column="0">
<widget class="QCheckBox" name="rng_seed_checkbox">
<property name="text">
<string>RNG Seed</string>
</property>
</widget>
</item>
- <item row="7" column="0">
+ <item row="6" column="0">
<widget class="QLabel" name="device_name_label">
<property name="text">
<string>Device Name</string>
</property>
</widget>
</item>
- <item row="3" column="1">
- <widget class="QComboBox" name="combo_sound">
- <item>
- <property name="text">
- <string>Mono</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Stereo</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Surround</string>
- </property>
- </item>
- </widget>
- </item>
- <item row="4" column="0">
- <widget class="QLabel" name="label_console_id">
- <property name="text">
- <string>Console ID:</string>
- </property>
- </widget>
- </item>
- <item row="3" column="0">
- <widget class="QLabel" name="label_sound">
- <property name="text">
- <string>Sound output mode</string>
- </property>
- </widget>
- </item>
- <item row="5" column="1">
+ <item row="4" column="1">
<widget class="QDateTimeEdit" name="custom_rtc_edit">
<property name="minimumDate">
<date>
@@ -483,14 +450,14 @@
</property>
</widget>
</item>
- <item row="7" column="1">
+ <item row="6" column="1">
<widget class="QLineEdit" name="device_name_edit">
<property name="maxLength">
<number>128</number>
</property>
</widget>
</item>
- <item row="6" column="1">
+ <item row="5" column="1">
<widget class="QLineEdit" name="rng_seed_edit">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
@@ -511,19 +478,10 @@
</property>
</widget>
</item>
- <item row="4" column="1">
- <widget class="QPushButton" name="button_regenerate_console_id">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="layoutDirection">
- <enum>Qt::RightToLeft</enum>
- </property>
+ <item row="7" column="0">
+ <widget class="QCheckBox" name="use_unsafe_extended_memory_layout">
<property name="text">
- <string>Regenerate</string>
+ <string>Unsafe extended memory layout (8GB DRAM)</string>
</property>
</widget>
</item>
diff --git a/src/yuzu/configuration/configure_tas.cpp b/src/yuzu/configuration/configure_tas.cpp
index 1edc5f1f3..5a545aa70 100644
--- a/src/yuzu/configuration/configure_tas.cpp
+++ b/src/yuzu/configuration/configure_tas.cpp
@@ -17,7 +17,6 @@ ConfigureTasDialog::ConfigureTasDialog(QWidget* parent)
setFocusPolicy(Qt::ClickFocus);
setWindowTitle(tr("TAS Configuration"));
- setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
connect(ui->tas_path_button, &QToolButton::pressed, this,
[this] { SetDirectory(DirectoryTarget::TAS, ui->tas_path_edit); });
diff --git a/src/yuzu/configuration/input_profiles.cpp b/src/yuzu/configuration/input_profiles.cpp
index 9bb69cab1..41ef4250a 100644
--- a/src/yuzu/configuration/input_profiles.cpp
+++ b/src/yuzu/configuration/input_profiles.cpp
@@ -58,13 +58,16 @@ std::vector<std::string> InputProfiles::GetInputProfileNames() {
std::vector<std::string> profile_names;
profile_names.reserve(map_profiles.size());
- for (const auto& [profile_name, config] : map_profiles) {
+ auto it = map_profiles.cbegin();
+ while (it != map_profiles.cend()) {
+ const auto& [profile_name, config] = *it;
if (!ProfileExistsInFilesystem(profile_name)) {
- DeleteProfile(profile_name);
+ it = map_profiles.erase(it);
continue;
}
profile_names.push_back(profile_name);
+ ++it;
}
std::stable_sort(profile_names.begin(), profile_names.end());
diff --git a/src/yuzu/debugger/controller.cpp b/src/yuzu/debugger/controller.cpp
index 19f3775a3..e2f55ebae 100644
--- a/src/yuzu/debugger/controller.cpp
+++ b/src/yuzu/debugger/controller.cpp
@@ -20,9 +20,8 @@ ControllerDialog::ControllerDialog(Core::HID::HIDCore& hid_core_,
setWindowTitle(tr("Controller P1"));
resize(500, 350);
setMinimumSize(500, 350);
- // Remove the "?" button from the titlebar and enable the maximize button
- setWindowFlags((windowFlags() & ~Qt::WindowContextHelpButtonHint) |
- Qt::WindowMaximizeButtonHint);
+ // Enable the maximize button
+ setWindowFlags(windowFlags() | Qt::WindowMaximizeButtonHint);
widget = new PlayerControlPreview(this);
refreshConfiguration();
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp
index d3e2d3c12..493ee0b17 100644
--- a/src/yuzu/debugger/profiler.cpp
+++ b/src/yuzu/debugger/profiler.cpp
@@ -49,9 +49,8 @@ MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Di
setObjectName(QStringLiteral("MicroProfile"));
setWindowTitle(tr("&MicroProfile"));
resize(1000, 600);
- // Remove the "?" button from the titlebar and enable the maximize button
- setWindowFlags((windowFlags() & ~Qt::WindowContextHelpButtonHint) |
- Qt::WindowMaximizeButtonHint);
+ // Enable the maximize button
+ setWindowFlags(windowFlags() | Qt::WindowMaximizeButtonHint);
#if MICROPROFILE_ENABLED
diff --git a/src/yuzu/debugger/wait_tree.cpp b/src/yuzu/debugger/wait_tree.cpp
index 7f7c5fc42..0783a2430 100644
--- a/src/yuzu/debugger/wait_tree.cpp
+++ b/src/yuzu/debugger/wait_tree.cpp
@@ -112,33 +112,6 @@ QString WaitTreeText::GetText() const {
return text;
}
-WaitTreeMutexInfo::WaitTreeMutexInfo(VAddr mutex_address_, const Kernel::KHandleTable& handle_table,
- Core::System& system_)
- : mutex_address{mutex_address_}, system{system_} {
- mutex_value = system.Memory().Read32(mutex_address);
- owner_handle = static_cast<Kernel::Handle>(mutex_value & Kernel::Svc::HandleWaitMask);
- owner = handle_table.GetObject<Kernel::KThread>(owner_handle).GetPointerUnsafe();
-}
-
-WaitTreeMutexInfo::~WaitTreeMutexInfo() = default;
-
-QString WaitTreeMutexInfo::GetText() const {
- return tr("waiting for mutex 0x%1").arg(mutex_address, 16, 16, QLatin1Char{'0'});
-}
-
-std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeMutexInfo::GetChildren() const {
- const bool has_waiters = (mutex_value & Kernel::Svc::HandleWaitMask) != 0;
-
- std::vector<std::unique_ptr<WaitTreeItem>> list;
- list.push_back(std::make_unique<WaitTreeText>(tr("has waiters: %1").arg(has_waiters)));
- list.push_back(std::make_unique<WaitTreeText>(
- tr("owner handle: 0x%1").arg(owner_handle, 8, 16, QLatin1Char{'0'})));
- if (owner != nullptr) {
- list.push_back(std::make_unique<WaitTreeThread>(*owner, system));
- }
- return list;
-}
-
WaitTreeCallstack::WaitTreeCallstack(const Kernel::KThread& thread_, Core::System& system_)
: thread{thread_}, system{system_} {}
WaitTreeCallstack::~WaitTreeCallstack() = default;
@@ -182,10 +155,9 @@ bool WaitTreeExpandableItem::IsExpandable() const {
}
QString WaitTreeSynchronizationObject::GetText() const {
- return tr("[%1] %2 %3")
+ return tr("[%1] %2")
.arg(object.GetId())
- .arg(QString::fromStdString(object.GetTypeObj().GetName()),
- QString::fromStdString(object.GetName()));
+ .arg(QString::fromStdString(object.GetTypeObj().GetName()));
}
std::unique_ptr<WaitTreeSynchronizationObject> WaitTreeSynchronizationObject::make(
@@ -217,26 +189,6 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeSynchronizationObject::GetChi
return list;
}
-WaitTreeObjectList::WaitTreeObjectList(const std::vector<Kernel::KSynchronizationObject*>& list,
- bool w_all, Core::System& system_)
- : object_list(list), wait_all(w_all), system{system_} {}
-
-WaitTreeObjectList::~WaitTreeObjectList() = default;
-
-QString WaitTreeObjectList::GetText() const {
- if (wait_all)
- return tr("waiting for all objects");
- return tr("waiting for one of the following objects");
-}
-
-std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeObjectList::GetChildren() const {
- std::vector<std::unique_ptr<WaitTreeItem>> list(object_list.size());
- std::transform(object_list.begin(), object_list.end(), list.begin(), [this](const auto& t) {
- return WaitTreeSynchronizationObject::make(*t, system);
- });
- return list;
-}
-
WaitTreeThread::WaitTreeThread(const Kernel::KThread& thread, Core::System& system_)
: WaitTreeSynchronizationObject(thread, system_), system{system_} {}
WaitTreeThread::~WaitTreeThread() = default;
@@ -348,32 +300,14 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeThread::GetChildren() const {
list.push_back(std::make_unique<WaitTreeText>(tr("processor = %1").arg(processor)));
list.push_back(std::make_unique<WaitTreeText>(
- tr("ideal core = %1").arg(thread.GetIdealCoreForDebugging())));
- list.push_back(std::make_unique<WaitTreeText>(
tr("affinity mask = %1").arg(thread.GetAffinityMask().GetAffinityMask())));
- list.push_back(std::make_unique<WaitTreeText>(tr("thread id = %1").arg(thread.GetThreadID())));
+ list.push_back(std::make_unique<WaitTreeText>(tr("thread id = %1").arg(thread.GetThreadId())));
list.push_back(std::make_unique<WaitTreeText>(tr("priority = %1(current) / %2(normal)")
.arg(thread.GetPriority())
.arg(thread.GetBasePriority())));
list.push_back(std::make_unique<WaitTreeText>(
tr("last running ticks = %1").arg(thread.GetLastScheduledTick())));
- const VAddr mutex_wait_address = thread.GetMutexWaitAddressForDebugging();
- if (mutex_wait_address != 0) {
- const auto& handle_table = thread.GetOwnerProcess()->GetHandleTable();
- list.push_back(
- std::make_unique<WaitTreeMutexInfo>(mutex_wait_address, handle_table, system));
- } else {
- list.push_back(std::make_unique<WaitTreeText>(tr("not waiting for mutex")));
- }
-
- if (thread.GetState() == Kernel::ThreadState::Waiting &&
- thread.GetWaitReasonForDebugging() ==
- Kernel::ThreadWaitReasonForDebugging::Synchronization) {
- list.push_back(std::make_unique<WaitTreeObjectList>(thread.GetWaitObjectsForDebugging(),
- thread.IsCancellable(), system));
- }
-
list.push_back(std::make_unique<WaitTreeCallstack>(thread, system));
return list;
diff --git a/src/yuzu/debugger/wait_tree.h b/src/yuzu/debugger/wait_tree.h
index 7e528b592..23c329fbe 100644
--- a/src/yuzu/debugger/wait_tree.h
+++ b/src/yuzu/debugger/wait_tree.h
@@ -74,25 +74,6 @@ public:
bool IsExpandable() const override;
};
-class WaitTreeMutexInfo : public WaitTreeExpandableItem {
- Q_OBJECT
-public:
- explicit WaitTreeMutexInfo(VAddr mutex_address_, const Kernel::KHandleTable& handle_table,
- Core::System& system_);
- ~WaitTreeMutexInfo() override;
-
- QString GetText() const override;
- std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override;
-
-private:
- VAddr mutex_address{};
- u32 mutex_value{};
- Kernel::Handle owner_handle{};
- Kernel::KThread* owner{};
-
- Core::System& system;
-};
-
class WaitTreeCallstack : public WaitTreeExpandableItem {
Q_OBJECT
public:
@@ -127,23 +108,6 @@ private:
Core::System& system;
};
-class WaitTreeObjectList : public WaitTreeExpandableItem {
- Q_OBJECT
-public:
- WaitTreeObjectList(const std::vector<Kernel::KSynchronizationObject*>& list, bool wait_all,
- Core::System& system_);
- ~WaitTreeObjectList() override;
-
- QString GetText() const override;
- std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override;
-
-private:
- const std::vector<Kernel::KSynchronizationObject*>& object_list;
- bool wait_all;
-
- Core::System& system;
-};
-
class WaitTreeThread : public WaitTreeSynchronizationObject {
Q_OBJECT
public:
diff --git a/src/yuzu/discord_impl.cpp b/src/yuzu/discord_impl.cpp
index c351e9b83..ac2fc1bcb 100644
--- a/src/yuzu/discord_impl.cpp
+++ b/src/yuzu/discord_impl.cpp
@@ -4,7 +4,10 @@
#include <chrono>
#include <string>
#include <discord_rpc.h>
+#include <fmt/format.h>
+#include <httplib.h>
#include "common/common_types.h"
+#include "common/string_util.h"
#include "core/core.h"
#include "core/loader/loader.h"
#include "yuzu/discord_impl.h"
@@ -14,7 +17,6 @@ namespace DiscordRPC {
DiscordImpl::DiscordImpl(Core::System& system_) : system{system_} {
DiscordEventHandlers handlers{};
-
// The number is the client ID for yuzu, it's used for images and the
// application name
Discord_Initialize("712465656758665259", &handlers, 1, nullptr);
@@ -29,23 +31,76 @@ void DiscordImpl::Pause() {
Discord_ClearPresence();
}
+static std::string GetGameString(const std::string& title) {
+ // Convert to lowercase
+ std::string icon_name = Common::ToLower(title);
+
+ // Replace spaces with dashes
+ std::replace(icon_name.begin(), icon_name.end(), ' ', '-');
+
+ // Remove non-alphanumeric characters but keep dashes
+ std::erase_if(icon_name, [](char c) { return !std::isalnum(c) && c != '-'; });
+
+ // Remove dashes from the start and end of the string
+ icon_name.erase(icon_name.begin(), std::find_if(icon_name.begin(), icon_name.end(),
+ [](int ch) { return ch != '-'; }));
+ icon_name.erase(
+ std::find_if(icon_name.rbegin(), icon_name.rend(), [](int ch) { return ch != '-'; }).base(),
+ icon_name.end());
+
+ // Remove double dashes
+ icon_name.erase(std::unique(icon_name.begin(), icon_name.end(),
+ [](char a, char b) { return a == '-' && b == '-'; }),
+ icon_name.end());
+
+ return icon_name;
+}
+
void DiscordImpl::Update() {
s64 start_time = std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::system_clock::now().time_since_epoch())
.count();
+ const std::string default_text = "yuzu is an emulator for the Nintendo Switch";
+ const std::string default_image = "yuzu_logo";
+ std::string game_cover_url = "https://yuzu-emu.org";
std::string title;
- if (system.IsPoweredOn()) {
- system.GetAppLoader().ReadTitle(title);
- }
+
DiscordRichPresence presence{};
- presence.largeImageKey = "yuzu_logo";
- presence.largeImageText = "yuzu is an emulator for the Nintendo Switch";
+
if (system.IsPoweredOn()) {
+ system.GetAppLoader().ReadTitle(title);
+
+ // Used to format Icon URL for yuzu website game compatibility page
+ std::string icon_name = GetGameString(title);
+
+ // New Check for game cover
+ httplib::Client cli(game_cover_url);
+ cli.set_connection_timeout(std::chrono::seconds(3));
+ cli.set_read_timeout(std::chrono::seconds(3));
+
+ if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name))) {
+ if (res->status == 200) {
+ game_cover_url += fmt::format("/images/game/boxart/{}.png", icon_name);
+ } else {
+ game_cover_url = "yuzu_logo";
+ }
+ } else {
+ game_cover_url = "yuzu_logo";
+ }
+
+ presence.largeImageKey = game_cover_url.c_str();
+ presence.largeImageText = title.c_str();
+
+ presence.smallImageKey = default_image.c_str();
+ presence.smallImageText = default_text.c_str();
presence.state = title.c_str();
presence.details = "Currently in game";
} else {
- presence.details = "Not in game";
+ presence.largeImageKey = default_image.c_str();
+ presence.largeImageText = default_text.c_str();
+ presence.details = "Currently not in game";
}
+
presence.startTimestamp = start_time;
Discord_UpdatePresence(&presence);
}
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index 22aa19c56..465084fea 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -544,6 +544,7 @@ void GameList::AddGamePopup(QMenu& context_menu, u64 program_id, const std::stri
QAction* remove_update = remove_menu->addAction(tr("Remove Installed Update"));
QAction* remove_dlc = remove_menu->addAction(tr("Remove All Installed DLC"));
QAction* remove_custom_config = remove_menu->addAction(tr("Remove Custom Configuration"));
+ QAction* remove_cache_storage = remove_menu->addAction(tr("Remove Cache Storage"));
QAction* remove_gl_shader_cache = remove_menu->addAction(tr("Remove OpenGL Pipeline Cache"));
QAction* remove_vk_shader_cache = remove_menu->addAction(tr("Remove Vulkan Pipeline Cache"));
remove_menu->addSeparator();
@@ -614,6 +615,9 @@ void GameList::AddGamePopup(QMenu& context_menu, u64 program_id, const std::stri
connect(remove_custom_config, &QAction::triggered, [this, program_id, path]() {
emit RemoveFileRequested(program_id, GameListRemoveTarget::CustomConfiguration, path);
});
+ connect(remove_cache_storage, &QAction::triggered, [this, program_id, path] {
+ emit RemoveFileRequested(program_id, GameListRemoveTarget::CacheStorage, path);
+ });
connect(dump_romfs, &QAction::triggered, [this, program_id, path]() {
emit DumpRomFSRequested(program_id, path, DumpRomFSTarget::Normal);
});
@@ -870,6 +874,7 @@ void GameList::ToggleFavorite(u64 program_id) {
tree_view->setRowHidden(0, item_model->invisibleRootItem()->index(), true);
}
}
+ SaveConfig();
}
void GameList::AddFavorite(u64 program_id) {
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h
index f7ff93ed9..6c2f75e53 100644
--- a/src/yuzu/game_list.h
+++ b/src/yuzu/game_list.h
@@ -45,6 +45,7 @@ enum class GameListRemoveTarget {
VkShaderCache,
AllShaderCache,
CustomConfiguration,
+ CacheStorage,
};
enum class DumpRomFSTarget {
@@ -122,6 +123,7 @@ signals:
void AddDirectory();
void ShowList(bool show);
void PopulatingCompleted();
+ void SaveConfig();
private slots:
void OnItemExpanded(const QModelIndex& item);
diff --git a/src/yuzu/install_dialog.cpp b/src/yuzu/install_dialog.cpp
index 84ec4fe13..673bbaa83 100644
--- a/src/yuzu/install_dialog.cpp
+++ b/src/yuzu/install_dialog.cpp
@@ -46,7 +46,6 @@ InstallDialog::InstallDialog(QWidget* parent, const QStringList& files) : QDialo
vbox_layout->addLayout(hbox_layout);
setLayout(vbox_layout);
- setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowTitle(tr("Install Files to NAND"));
}
diff --git a/src/yuzu/loading_screen.cpp b/src/yuzu/loading_screen.cpp
index e263a07a7..b081fff6b 100644
--- a/src/yuzu/loading_screen.cpp
+++ b/src/yuzu/loading_screen.cpp
@@ -153,7 +153,7 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
}
QString estimate;
- // If theres a drastic slowdown in the rate, then display an estimate
+ // If there's a drastic slowdown in the rate, then display an estimate
if (now - previous_time > milliseconds{50} || slow_shader_compile_start) {
if (!slow_shader_compile_start) {
slow_shader_start = steady_clock::now();
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index e57e02652..24e59f646 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -27,6 +27,7 @@
#include "configuration/configure_input.h"
#include "configuration/configure_per_game.h"
#include "configuration/configure_tas.h"
+#include "core/file_sys/romfs_factory.h"
#include "core/file_sys/vfs.h"
#include "core/file_sys/vfs_real.h"
#include "core/frontend/applets/cabinet.h"
@@ -91,6 +92,9 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include "common/microprofile.h"
#include "common/scm_rev.h"
#include "common/scope_exit.h"
+#ifdef _WIN32
+#include "common/windows/timer_resolution.h"
+#endif
#ifdef ARCHITECTURE_x86_64
#include "common/x64/cpu_detect.h"
#endif
@@ -143,6 +147,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include "yuzu/startup_checks.h"
#include "yuzu/uisettings.h"
#include "yuzu/util/clickable_label.h"
+#include "yuzu/vk_device_info.h"
#ifdef YUZU_DBGHELP
#include "yuzu/mini_dump.h"
@@ -219,7 +224,7 @@ static void LogRuntimes() {
#ifdef _MSC_VER
// It is possible that the name of the dll will change.
// vcruntime140.dll is for 2015 and onwards
- constexpr char runtime_dll_name[] = "vcruntime140.dll";
+ static constexpr char runtime_dll_name[] = "vcruntime140.dll";
UINT sz = GetFileVersionInfoSizeA(runtime_dll_name, nullptr);
bool runtime_version_inspection_worked = false;
if (sz > 0) {
@@ -271,7 +276,7 @@ static QString PrettyProductName() {
#ifdef _WIN32
static void OverrideWindowsFont() {
- // Qt5 chooses these fonts on Windows and they have fairly ugly alphanumeric/cyrllic characters
+ // Qt5 chooses these fonts on Windows and they have fairly ugly alphanumeric/cyrillic characters
// Asking to use "MS Shell Dlg 2" gives better other chars while leaving the Chinese Characters.
const QString startup_font = QApplication::font().family();
const QStringList ugly_fonts = {QStringLiteral("SimSun"), QStringLiteral("PMingLiU")};
@@ -304,6 +309,8 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
system->Initialize();
Common::Log::Initialize();
+ Common::Log::Start();
+
LoadTranslation();
setAcceptDrops(true);
@@ -377,6 +384,12 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
LOG_INFO(Frontend, "Host RAM: {:.2f} GiB",
Common::GetMemInfo().TotalPhysicalMemory / f64{1_GiB});
LOG_INFO(Frontend, "Host Swap: {:.2f} GiB", Common::GetMemInfo().TotalSwapMemory / f64{1_GiB});
+#ifdef _WIN32
+ LOG_INFO(Frontend, "Host Timer Resolution: {:.4f} ms",
+ std::chrono::duration_cast<std::chrono::duration<f64, std::milli>>(
+ Common::Windows::SetCurrentTimerResolutionToMaximum())
+ .count());
+#endif
UpdateWindowTitle();
show();
@@ -428,10 +441,20 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
renderer_status_button->setDisabled(true);
renderer_status_button->setChecked(false);
+ } else {
+ VkDeviceInfo::PopulateRecords(vk_device_records, this->window()->windowHandle());
}
#if defined(HAVE_SDL2) && !defined(_WIN32)
SDL_InitSubSystem(SDL_INIT_VIDEO);
+
+ // Set a screensaver inhibition reason string. Currently passed to DBus by SDL and visible to
+ // the user through their desktop environment.
+ //: TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the
+ //: computer from sleeping
+ QByteArray wakelock_reason = tr("Running a game").toLatin1();
+ SDL_SetHint(SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME, wakelock_reason.data());
+
// SDL disables the screen saver by default, and setting the hint
// SDL_HINT_VIDEO_ALLOW_SCREENSAVER doesn't seem to work, so we just enable the screen saver
// for now.
@@ -440,8 +463,6 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
SetupPrepareForSleep();
- Common::Log::Start();
-
QStringList args = QApplication::arguments();
if (args.size() < 2) {
@@ -561,12 +582,16 @@ void GMainWindow::RegisterMetaTypes() {
// Cabinet Applet
qRegisterMetaType<Core::Frontend::CabinetParameters>("Core::Frontend::CabinetParameters");
- qRegisterMetaType<std::shared_ptr<Service::NFP::NfpDevice>>(
- "std::shared_ptr<Service::NFP::NfpDevice>");
+ qRegisterMetaType<std::shared_ptr<Service::NFC::NfcDevice>>(
+ "std::shared_ptr<Service::NFC::NfcDevice>");
// Controller Applet
qRegisterMetaType<Core::Frontend::ControllerParameters>("Core::Frontend::ControllerParameters");
+ // Profile Select Applet
+ qRegisterMetaType<Core::Frontend::ProfileSelectParameters>(
+ "Core::Frontend::ProfileSelectParameters");
+
// Software Keyboard Applet
qRegisterMetaType<Core::Frontend::KeyboardInitializeParameters>(
"Core::Frontend::KeyboardInitializeParameters");
@@ -586,51 +611,82 @@ void GMainWindow::RegisterMetaTypes() {
}
void GMainWindow::AmiiboSettingsShowDialog(const Core::Frontend::CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device) {
- QtAmiiboSettingsDialog dialog(this, parameters, input_subsystem.get(), nfp_device);
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device) {
+ cabinet_applet =
+ new QtAmiiboSettingsDialog(this, parameters, input_subsystem.get(), nfp_device);
+ SCOPE_EXIT({
+ cabinet_applet->deleteLater();
+ cabinet_applet = nullptr;
+ });
- dialog.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint |
- Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
- dialog.setWindowModality(Qt::WindowModal);
- if (dialog.exec() == QDialog::Rejected) {
+ cabinet_applet->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint |
+ Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
+ cabinet_applet->setWindowModality(Qt::WindowModal);
+
+ if (cabinet_applet->exec() == QDialog::Rejected) {
emit AmiiboSettingsFinished(false, {});
return;
}
- emit AmiiboSettingsFinished(true, dialog.GetName());
+ emit AmiiboSettingsFinished(true, cabinet_applet->GetName());
+}
+
+void GMainWindow::AmiiboSettingsRequestExit() {
+ if (cabinet_applet) {
+ cabinet_applet->reject();
+ }
}
void GMainWindow::ControllerSelectorReconfigureControllers(
const Core::Frontend::ControllerParameters& parameters) {
- QtControllerSelectorDialog dialog(this, parameters, input_subsystem.get(), *system);
-
- dialog.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint |
- Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
- dialog.setWindowModality(Qt::WindowModal);
- dialog.exec();
+ controller_applet =
+ new QtControllerSelectorDialog(this, parameters, input_subsystem.get(), *system);
+ SCOPE_EXIT({
+ controller_applet->deleteLater();
+ controller_applet = nullptr;
+ });
- emit ControllerSelectorReconfigureFinished();
+ controller_applet->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint |
+ Qt::WindowStaysOnTopHint | Qt::WindowTitleHint |
+ Qt::WindowSystemMenuHint);
+ controller_applet->setWindowModality(Qt::WindowModal);
+ bool is_success = controller_applet->exec() != QDialog::Rejected;
// Don't forget to apply settings.
+ system->HIDCore().DisableAllControllerConfiguration();
system->ApplySettings();
config->Save();
UpdateStatusButtons();
+
+ emit ControllerSelectorReconfigureFinished(is_success);
}
-void GMainWindow::ProfileSelectorSelectProfile() {
- QtProfileSelectionDialog dialog(system->HIDCore(), this);
- dialog.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint |
- Qt::WindowTitleHint | Qt::WindowSystemMenuHint |
- Qt::WindowCloseButtonHint);
- dialog.setWindowModality(Qt::WindowModal);
- if (dialog.exec() == QDialog::Rejected) {
+void GMainWindow::ControllerSelectorRequestExit() {
+ if (controller_applet) {
+ controller_applet->reject();
+ }
+}
+
+void GMainWindow::ProfileSelectorSelectProfile(
+ const Core::Frontend::ProfileSelectParameters& parameters) {
+ profile_select_applet = new QtProfileSelectionDialog(system->HIDCore(), this, parameters);
+ SCOPE_EXIT({
+ profile_select_applet->deleteLater();
+ profile_select_applet = nullptr;
+ });
+
+ profile_select_applet->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint |
+ Qt::WindowStaysOnTopHint | Qt::WindowTitleHint |
+ Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);
+ profile_select_applet->setWindowModality(Qt::WindowModal);
+ if (profile_select_applet->exec() == QDialog::Rejected) {
emit ProfileSelectorFinishedSelection(std::nullopt);
return;
}
const Service::Account::ProfileManager manager;
- const auto uuid = manager.GetUser(static_cast<std::size_t>(dialog.GetIndex()));
+ const auto uuid = manager.GetUser(static_cast<std::size_t>(profile_select_applet->GetIndex()));
if (!uuid.has_value()) {
emit ProfileSelectorFinishedSelection(std::nullopt);
return;
@@ -639,6 +695,12 @@ void GMainWindow::ProfileSelectorSelectProfile() {
emit ProfileSelectorFinishedSelection(uuid);
}
+void GMainWindow::ProfileSelectorRequestExit() {
+ if (profile_select_applet) {
+ profile_select_applet->reject();
+ }
+}
+
void GMainWindow::SoftwareKeyboardInitialize(
bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters) {
if (software_keyboard) {
@@ -680,8 +742,10 @@ void GMainWindow::SoftwareKeyboardShowNormal() {
const auto y = layout.screen.top;
const auto w = layout.screen.GetWidth();
const auto h = layout.screen.GetHeight();
+ const auto scale_ratio = devicePixelRatioF();
- software_keyboard->ShowNormalKeyboard(render_window->mapToGlobal(QPoint(x, y)), QSize(w, h));
+ software_keyboard->ShowNormalKeyboard(render_window->mapToGlobal(QPoint(x, y) / scale_ratio),
+ QSize(w, h) / scale_ratio);
}
void GMainWindow::SoftwareKeyboardShowTextCheck(
@@ -714,9 +778,11 @@ void GMainWindow::SoftwareKeyboardShowInline(
(1.0f - appear_parameters.key_top_scale_y))));
const auto w = static_cast<int>(layout.screen.GetWidth() * appear_parameters.key_top_scale_x);
const auto h = static_cast<int>(layout.screen.GetHeight() * appear_parameters.key_top_scale_y);
+ const auto scale_ratio = devicePixelRatioF();
software_keyboard->ShowInlineKeyboard(std::move(appear_parameters),
- render_window->mapToGlobal(QPoint(x, y)), QSize(w, h));
+ render_window->mapToGlobal(QPoint(x, y) / scale_ratio),
+ QSize(w, h) / scale_ratio);
}
void GMainWindow::SoftwareKeyboardHideInline() {
@@ -759,7 +825,7 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
return;
}
- QtNXWebEngineView web_browser_view(this, *system, input_subsystem.get());
+ web_applet = new QtNXWebEngineView(this, *system, input_subsystem.get());
ui->action_Pause->setEnabled(false);
ui->action_Restart->setEnabled(false);
@@ -786,9 +852,9 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
loading_progress.setValue(1);
if (is_local) {
- web_browser_view.LoadLocalWebPage(main_url, additional_args);
+ web_applet->LoadLocalWebPage(main_url, additional_args);
} else {
- web_browser_view.LoadExternalWebPage(main_url, additional_args);
+ web_applet->LoadExternalWebPage(main_url, additional_args);
}
if (render_window->IsLoadingComplete()) {
@@ -796,13 +862,16 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
}
const auto& layout = render_window->GetFramebufferLayout();
- web_browser_view.resize(layout.screen.GetWidth(), layout.screen.GetHeight());
- web_browser_view.move(layout.screen.left, layout.screen.top + menuBar()->height());
- web_browser_view.setZoomFactor(static_cast<qreal>(layout.screen.GetWidth()) /
- static_cast<qreal>(Layout::ScreenUndocked::Width));
+ const auto scale_ratio = devicePixelRatioF();
+ web_applet->resize(layout.screen.GetWidth() / scale_ratio,
+ layout.screen.GetHeight() / scale_ratio);
+ web_applet->move(layout.screen.left / scale_ratio,
+ (layout.screen.top / scale_ratio) + menuBar()->height());
+ web_applet->setZoomFactor(static_cast<qreal>(layout.screen.GetWidth() / scale_ratio) /
+ static_cast<qreal>(Layout::ScreenUndocked::Width));
- web_browser_view.setFocus();
- web_browser_view.show();
+ web_applet->setFocus();
+ web_applet->show();
loading_progress.setValue(2);
@@ -815,7 +884,7 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
// TODO (Morph): Remove this
QAction* exit_action = new QAction(tr("Disable Web Applet"), this);
- connect(exit_action, &QAction::triggered, this, [this, &web_browser_view] {
+ connect(exit_action, &QAction::triggered, this, [this] {
const auto result = QMessageBox::warning(
this, tr("Disable Web Applet"),
tr("Disabling the web applet can lead to undefined behavior and should only be used "
@@ -824,21 +893,21 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
QMessageBox::Yes | QMessageBox::No);
if (result == QMessageBox::Yes) {
UISettings::values.disable_web_applet = true;
- web_browser_view.SetFinished(true);
+ web_applet->SetFinished(true);
}
});
ui->menubar->addAction(exit_action);
- while (!web_browser_view.IsFinished()) {
+ while (!web_applet->IsFinished()) {
QCoreApplication::processEvents();
if (!exit_check) {
- web_browser_view.page()->runJavaScript(
+ web_applet->page()->runJavaScript(
QStringLiteral("end_applet;"), [&](const QVariant& variant) {
exit_check = false;
if (variant.toBool()) {
- web_browser_view.SetFinished(true);
- web_browser_view.SetExitReason(
+ web_applet->SetFinished(true);
+ web_applet->SetExitReason(
Service::AM::Applets::WebExitReason::EndButtonPressed);
}
});
@@ -846,22 +915,22 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
exit_check = true;
}
- if (web_browser_view.GetCurrentURL().contains(QStringLiteral("localhost"))) {
- if (!web_browser_view.IsFinished()) {
- web_browser_view.SetFinished(true);
- web_browser_view.SetExitReason(Service::AM::Applets::WebExitReason::CallbackURL);
+ if (web_applet->GetCurrentURL().contains(QStringLiteral("localhost"))) {
+ if (!web_applet->IsFinished()) {
+ web_applet->SetFinished(true);
+ web_applet->SetExitReason(Service::AM::Applets::WebExitReason::CallbackURL);
}
- web_browser_view.SetLastURL(web_browser_view.GetCurrentURL().toStdString());
+ web_applet->SetLastURL(web_applet->GetCurrentURL().toStdString());
}
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
- const auto exit_reason = web_browser_view.GetExitReason();
- const auto last_url = web_browser_view.GetLastURL();
+ const auto exit_reason = web_applet->GetExitReason();
+ const auto last_url = web_applet->GetLastURL();
- web_browser_view.hide();
+ web_applet->hide();
render_window->setFocus();
@@ -887,6 +956,15 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
#endif
}
+void GMainWindow::WebBrowserRequestExit() {
+#ifdef YUZU_USE_QT_WEB_ENGINE
+ if (web_applet) {
+ web_applet->SetExitReason(Service::AM::Applets::WebExitReason::ExitRequested);
+ web_applet->SetFinished(true);
+ }
+#endif
+}
+
void GMainWindow::InitializeWidgets() {
#ifdef YUZU_ENABLE_COMPATIBILITY_REPORTING
ui->action_Report_Compatibility->setVisible(true);
@@ -957,6 +1035,56 @@ void GMainWindow::InitializeWidgets() {
tas_label->setFocusPolicy(Qt::NoFocus);
statusBar()->insertPermanentWidget(0, tas_label);
+ volume_popup = new QWidget(this);
+ volume_popup->setWindowFlags(Qt::FramelessWindowHint | Qt::NoDropShadowWindowHint | Qt::Popup);
+ volume_popup->setLayout(new QVBoxLayout());
+ volume_popup->setMinimumWidth(200);
+
+ volume_slider = new QSlider(Qt::Horizontal);
+ volume_slider->setObjectName(QStringLiteral("volume_slider"));
+ volume_slider->setMaximum(200);
+ volume_slider->setPageStep(5);
+ connect(volume_slider, &QSlider::valueChanged, this, [this](int percentage) {
+ Settings::values.audio_muted = false;
+ const auto volume = static_cast<u8>(percentage);
+ Settings::values.volume.SetValue(volume);
+ UpdateVolumeUI();
+ });
+ volume_popup->layout()->addWidget(volume_slider);
+
+ volume_button = new QPushButton();
+ volume_button->setObjectName(QStringLiteral("TogglableStatusBarButton"));
+ volume_button->setFocusPolicy(Qt::NoFocus);
+ volume_button->setCheckable(true);
+ UpdateVolumeUI();
+ connect(volume_button, &QPushButton::clicked, this, [&] {
+ UpdateVolumeUI();
+ volume_popup->setVisible(!volume_popup->isVisible());
+ QRect rect = volume_button->geometry();
+ QPoint bottomLeft = statusBar()->mapToGlobal(rect.topLeft());
+ bottomLeft.setY(bottomLeft.y() - volume_popup->geometry().height());
+ volume_popup->setGeometry(QRect(bottomLeft, QSize(rect.width(), rect.height())));
+ });
+ volume_button->setContextMenuPolicy(Qt::CustomContextMenu);
+ connect(volume_button, &QPushButton::customContextMenuRequested,
+ [this](const QPoint& menu_location) {
+ QMenu context_menu;
+ context_menu.addAction(
+ Settings::values.audio_muted ? tr("Unmute") : tr("Mute"), [this] {
+ Settings::values.audio_muted = !Settings::values.audio_muted;
+ UpdateVolumeUI();
+ });
+
+ context_menu.addAction(tr("Reset Volume"), [this] {
+ Settings::values.volume.SetValue(100);
+ UpdateVolumeUI();
+ });
+
+ context_menu.exec(volume_button->mapToGlobal(menu_location));
+ volume_button->repaint();
+ });
+ statusBar()->insertPermanentWidget(0, volume_button);
+
// setup AA button
aa_status_button = new QPushButton();
aa_status_button->setObjectName(QStringLiteral("TogglableStatusBarButton"));
@@ -975,6 +1103,19 @@ void GMainWindow::InitializeWidgets() {
UpdateAAText();
aa_status_button->setCheckable(true);
aa_status_button->setChecked(true);
+ aa_status_button->setContextMenuPolicy(Qt::CustomContextMenu);
+ connect(aa_status_button, &QPushButton::customContextMenuRequested,
+ [this](const QPoint& menu_location) {
+ QMenu context_menu;
+ for (auto const& aa_text_pair : Config::anti_aliasing_texts_map) {
+ context_menu.addAction(aa_text_pair.second, [this, aa_text_pair] {
+ Settings::values.anti_aliasing.SetValue(aa_text_pair.first);
+ UpdateAAText();
+ });
+ }
+ context_menu.exec(aa_status_button->mapToGlobal(menu_location));
+ aa_status_button->repaint();
+ });
statusBar()->insertPermanentWidget(0, aa_status_button);
// Setup Filter button
@@ -983,14 +1124,22 @@ void GMainWindow::InitializeWidgets() {
filter_status_button->setFocusPolicy(Qt::NoFocus);
connect(filter_status_button, &QPushButton::clicked, this,
&GMainWindow::OnToggleAdaptingFilter);
- auto filter = Settings::values.scaling_filter.GetValue();
- if (Settings::values.renderer_backend.GetValue() == Settings::RendererBackend::OpenGL &&
- filter == Settings::ScalingFilter::Fsr) {
- Settings::values.scaling_filter.SetValue(Settings::ScalingFilter::NearestNeighbor);
- }
UpdateFilterText();
filter_status_button->setCheckable(true);
filter_status_button->setChecked(true);
+ filter_status_button->setContextMenuPolicy(Qt::CustomContextMenu);
+ connect(filter_status_button, &QPushButton::customContextMenuRequested,
+ [this](const QPoint& menu_location) {
+ QMenu context_menu;
+ for (auto const& filter_text_pair : Config::scaling_filter_texts_map) {
+ context_menu.addAction(filter_text_pair.second, [this, filter_text_pair] {
+ Settings::values.scaling_filter.SetValue(filter_text_pair.first);
+ UpdateFilterText();
+ });
+ }
+ context_menu.exec(filter_status_button->mapToGlobal(menu_location));
+ filter_status_button->repaint();
+ });
statusBar()->insertPermanentWidget(0, filter_status_button);
// Setup Dock button
@@ -1000,14 +1149,47 @@ void GMainWindow::InitializeWidgets() {
connect(dock_status_button, &QPushButton::clicked, this, &GMainWindow::OnToggleDockedMode);
dock_status_button->setCheckable(true);
UpdateDockedButton();
+ dock_status_button->setContextMenuPolicy(Qt::CustomContextMenu);
+ connect(dock_status_button, &QPushButton::customContextMenuRequested,
+ [this](const QPoint& menu_location) {
+ QMenu context_menu;
+
+ for (auto const& docked_mode_pair : Config::use_docked_mode_texts_map) {
+ context_menu.addAction(docked_mode_pair.second, [this, docked_mode_pair] {
+ if (docked_mode_pair.first != Settings::values.use_docked_mode.GetValue()) {
+ OnToggleDockedMode();
+ }
+ });
+ }
+ context_menu.exec(dock_status_button->mapToGlobal(menu_location));
+ dock_status_button->repaint();
+ });
statusBar()->insertPermanentWidget(0, dock_status_button);
+ // Setup GPU Accuracy button
gpu_accuracy_button = new QPushButton();
gpu_accuracy_button->setObjectName(QStringLiteral("GPUStatusBarButton"));
gpu_accuracy_button->setCheckable(true);
gpu_accuracy_button->setFocusPolicy(Qt::NoFocus);
connect(gpu_accuracy_button, &QPushButton::clicked, this, &GMainWindow::OnToggleGpuAccuracy);
UpdateGPUAccuracyButton();
+ gpu_accuracy_button->setContextMenuPolicy(Qt::CustomContextMenu);
+ connect(gpu_accuracy_button, &QPushButton::customContextMenuRequested,
+ [this](const QPoint& menu_location) {
+ QMenu context_menu;
+
+ for (auto const& gpu_accuracy_pair : Config::gpu_accuracy_texts_map) {
+ if (gpu_accuracy_pair.first == Settings::GPUAccuracy::Extreme) {
+ continue;
+ }
+ context_menu.addAction(gpu_accuracy_pair.second, [this, gpu_accuracy_pair] {
+ Settings::values.gpu_accuracy.SetValue(gpu_accuracy_pair.first);
+ UpdateGPUAccuracyButton();
+ });
+ }
+ context_menu.exec(gpu_accuracy_button->mapToGlobal(menu_location));
+ gpu_accuracy_button->repaint();
+ });
statusBar()->insertPermanentWidget(0, gpu_accuracy_button);
// Setup Renderer API button
@@ -1020,6 +1202,24 @@ void GMainWindow::InitializeWidgets() {
renderer_status_button->setCheckable(true);
renderer_status_button->setChecked(Settings::values.renderer_backend.GetValue() ==
Settings::RendererBackend::Vulkan);
+ renderer_status_button->setContextMenuPolicy(Qt::CustomContextMenu);
+ connect(renderer_status_button, &QPushButton::customContextMenuRequested,
+ [this](const QPoint& menu_location) {
+ QMenu context_menu;
+
+ for (auto const& renderer_backend_pair : Config::renderer_backend_texts_map) {
+ if (renderer_backend_pair.first == Settings::RendererBackend::Null) {
+ continue;
+ }
+ context_menu.addAction(
+ renderer_backend_pair.second, [this, renderer_backend_pair] {
+ Settings::values.renderer_backend.SetValue(renderer_backend_pair.first);
+ UpdateAPIText();
+ });
+ }
+ context_menu.exec(renderer_status_button->mapToGlobal(menu_location));
+ renderer_status_button->repaint();
+ });
statusBar()->insertPermanentWidget(0, renderer_status_button);
statusBar()->setVisible(true);
@@ -1070,7 +1270,8 @@ void GMainWindow::InitializeRecentFileMenuActions() {
UpdateRecentFiles();
}
-void GMainWindow::LinkActionShortcut(QAction* action, const QString& action_name) {
+void GMainWindow::LinkActionShortcut(QAction* action, const QString& action_name,
+ const bool tas_allowed) {
static const QString main_window = QStringLiteral("Main Window");
action->setShortcut(hotkey_registry.GetKeySequence(main_window, action_name));
action->setShortcutContext(hotkey_registry.GetShortcutContext(main_window, action_name));
@@ -1082,7 +1283,14 @@ void GMainWindow::LinkActionShortcut(QAction* action, const QString& action_name
const auto* controller_hotkey =
hotkey_registry.GetControllerHotkey(main_window, action_name, controller);
connect(
- controller_hotkey, &ControllerShortcut::Activated, this, [action] { action->trigger(); },
+ controller_hotkey, &ControllerShortcut::Activated, this,
+ [action, tas_allowed, this] {
+ auto [tas_status, current_tas_frame, total_tas_frames] =
+ input_subsystem->GetTas()->GetStatus();
+ if (tas_allowed || tas_status == InputCommon::TasInput::TasState::Stopped) {
+ action->trigger();
+ }
+ },
Qt::QueuedConnection);
}
@@ -1099,9 +1307,9 @@ void GMainWindow::InitializeHotkeys() {
LinkActionShortcut(ui->action_Show_Status_Bar, QStringLiteral("Toggle Status Bar"));
LinkActionShortcut(ui->action_Fullscreen, QStringLiteral("Fullscreen"));
LinkActionShortcut(ui->action_Capture_Screenshot, QStringLiteral("Capture Screenshot"));
- LinkActionShortcut(ui->action_TAS_Start, QStringLiteral("TAS Start/Stop"));
- LinkActionShortcut(ui->action_TAS_Record, QStringLiteral("TAS Record"));
- LinkActionShortcut(ui->action_TAS_Reset, QStringLiteral("TAS Reset"));
+ LinkActionShortcut(ui->action_TAS_Start, QStringLiteral("TAS Start/Stop"), true);
+ LinkActionShortcut(ui->action_TAS_Record, QStringLiteral("TAS Record"), true);
+ LinkActionShortcut(ui->action_TAS_Reset, QStringLiteral("TAS Reset"), true);
static const QString main_window = QStringLiteral("Main Window");
const auto connect_shortcut = [&]<typename Fn>(const QString& action_name, const Fn& function) {
@@ -1124,34 +1332,21 @@ void GMainWindow::InitializeHotkeys() {
&GMainWindow::OnToggleAdaptingFilter);
connect_shortcut(QStringLiteral("Change Docked Mode"), &GMainWindow::OnToggleDockedMode);
connect_shortcut(QStringLiteral("Change GPU Accuracy"), &GMainWindow::OnToggleGpuAccuracy);
- connect_shortcut(QStringLiteral("Audio Mute/Unmute"),
- [] { Settings::values.audio_muted = !Settings::values.audio_muted; });
- connect_shortcut(QStringLiteral("Audio Volume Down"), [] {
- const auto current_volume = static_cast<s32>(Settings::values.volume.GetValue());
- int step = 5;
- if (current_volume <= 30) {
- step = 2;
- }
- if (current_volume <= 6) {
- step = 1;
- }
- Settings::values.volume.SetValue(std::max(current_volume - step, 0));
- });
- connect_shortcut(QStringLiteral("Audio Volume Up"), [] {
- const auto current_volume = static_cast<s32>(Settings::values.volume.GetValue());
- int step = 5;
- if (current_volume < 30) {
- step = 2;
- }
- if (current_volume < 6) {
- step = 1;
- }
- Settings::values.volume.SetValue(current_volume + step);
- });
+ connect_shortcut(QStringLiteral("Audio Mute/Unmute"), &GMainWindow::OnMute);
+ connect_shortcut(QStringLiteral("Audio Volume Down"), &GMainWindow::OnDecreaseVolume);
+ connect_shortcut(QStringLiteral("Audio Volume Up"), &GMainWindow::OnIncreaseVolume);
connect_shortcut(QStringLiteral("Toggle Framerate Limit"), [] {
Settings::values.use_speed_limit.SetValue(!Settings::values.use_speed_limit.GetValue());
});
connect_shortcut(QStringLiteral("Toggle Mouse Panning"), [&] {
+ if (Settings::values.mouse_enabled) {
+ Settings::values.mouse_panning = false;
+ QMessageBox::warning(
+ this, tr("Emulated mouse is enabled"),
+ tr("Real mouse input and mouse panning are incompatible. Please disable the "
+ "emulated mouse in input advanced settings to allow mouse panning."));
+ return;
+ }
Settings::values.mouse_panning = !Settings::values.mouse_panning;
if (Settings::values.mouse_panning) {
render_window->installEventFilter(render_window);
@@ -1258,6 +1453,7 @@ void GMainWindow::ConnectWidgetEvents() {
connect(game_list, &GameList::ShowList, this, &GMainWindow::OnGameListShowList);
connect(game_list, &GameList::PopulatingCompleted,
[this] { multiplayer_state->UpdateGameList(game_list->GetModel()); });
+ connect(game_list, &GameList::SaveConfig, this, &GMainWindow::OnSaveConfig);
connect(game_list, &GameList::OpenPerGameGeneralRequested, this,
&GMainWindow::OnGameListOpenPerGameProperties);
@@ -1435,45 +1631,6 @@ void GMainWindow::OnPrepareForSleep(bool prepare_sleep) {
}
#ifdef __unix__
-static std::optional<QDBusObjectPath> HoldWakeLockLinux(u32 window_id = 0) {
- if (!QDBusConnection::sessionBus().isConnected()) {
- return {};
- }
- // reference: https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Inhibit
- QDBusInterface xdp(QString::fromLatin1("org.freedesktop.portal.Desktop"),
- QString::fromLatin1("/org/freedesktop/portal/desktop"),
- QString::fromLatin1("org.freedesktop.portal.Inhibit"));
- if (!xdp.isValid()) {
- LOG_WARNING(Frontend, "Couldn't connect to XDP D-Bus endpoint");
- return {};
- }
- QVariantMap options = {};
- //: TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the
- //: computer from sleeping
- options.insert(QString::fromLatin1("reason"),
- QCoreApplication::translate("GMainWindow", "yuzu is running a game"));
- // 0x4: Suspend lock; 0x8: Idle lock
- QDBusReply<QDBusObjectPath> reply =
- xdp.call(QString::fromLatin1("Inhibit"),
- QString::fromLatin1("x11:") + QString::number(window_id, 16), 12U, options);
-
- if (reply.isValid()) {
- return reply.value();
- }
- LOG_WARNING(Frontend, "Couldn't read Inhibit reply from XDP: {}",
- reply.error().message().toStdString());
- return {};
-}
-
-static void ReleaseWakeLockLinux(QDBusObjectPath lock) {
- if (!QDBusConnection::sessionBus().isConnected()) {
- return;
- }
- QDBusInterface unlocker(QString::fromLatin1("org.freedesktop.portal.Desktop"), lock.path(),
- QString::fromLatin1("org.freedesktop.portal.Request"));
- unlocker.call(QString::fromLatin1("Close"));
-}
-
std::array<int, 3> GMainWindow::sig_interrupt_fds{0, 0, 0};
void GMainWindow::SetupSigInterrupts() {
@@ -1526,12 +1683,6 @@ void GMainWindow::PreventOSSleep() {
SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED);
#elif defined(HAVE_SDL2)
SDL_DisableScreenSaver();
-#ifdef __unix__
- auto reply = HoldWakeLockLinux(winId());
- if (reply) {
- wake_lock = std::move(reply.value());
- }
-#endif
#endif
}
@@ -1540,11 +1691,6 @@ void GMainWindow::AllowOSSleep() {
SetThreadExecutionState(ES_CONTINUOUS);
#elif defined(HAVE_SDL2)
SDL_EnableScreenSaver();
-#ifdef __unix__
- if (!wake_lock.path().isEmpty()) {
- ReleaseWakeLockLinux(wake_lock);
- }
-#endif
#endif
}
@@ -1645,8 +1791,9 @@ bool GMainWindow::LoadROM(const QString& filename, u64 program_id, std::size_t p
return true;
}
-bool GMainWindow::SelectAndSetCurrentUser() {
- QtProfileSelectionDialog dialog(system->HIDCore(), this);
+bool GMainWindow::SelectAndSetCurrentUser(
+ const Core::Frontend::ProfileSelectParameters& parameters) {
+ QtProfileSelectionDialog dialog(system->HIDCore(), this, parameters);
dialog.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint |
Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);
dialog.setWindowModality(Qt::WindowModal);
@@ -1692,7 +1839,13 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
Settings::LogSettings();
if (UISettings::values.select_user_on_boot) {
- if (SelectAndSetCurrentUser() == false) {
+ const Core::Frontend::ProfileSelectParameters parameters{
+ .mode = Service::AM::Applets::UiMode::UserSelector,
+ .invalid_uid_list = {},
+ .display_options = {},
+ .purpose = Service::AM::Applets::UserSelectionPurpose::General,
+ };
+ if (SelectAndSetCurrentUser(parameters) == false) {
return;
}
}
@@ -1702,6 +1855,7 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
}
system->SetShuttingDown(false);
+ game_list->setDisabled(true);
// Create and start the emulation thread
emu_thread = std::make_unique<EmuThread>(*system);
@@ -1767,7 +1921,7 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
std::filesystem::path{Common::U16StringFromBuffer(filename.utf16(), filename.size())}
.filename());
}
- const bool is_64bit = system->Kernel().CurrentProcess()->Is64BitProcess();
+ const bool is_64bit = system->Kernel().ApplicationProcess()->Is64BitProcess();
const auto instruction_set_suffix = is_64bit ? tr("(64-bit)") : tr("(32-bit)");
title_name = tr("%1 %2", "%1 is the title name. %2 indicates if the title is 64-bit or 32-bit")
.arg(QString::fromStdString(title_name), instruction_set_suffix)
@@ -1897,6 +2051,9 @@ void GMainWindow::OnEmulationStopped() {
// When closing the game, destroy the GLWindow to clear the context after the game is closed
render_window->ReleaseRenderTarget();
+ // Enable game list
+ game_list->setEnabled(true);
+
Settings::RestoreGlobalState(system->IsPoweredOn());
system->HIDCore().ReloadInputDevices();
UpdateStatusButtons();
@@ -1984,7 +2141,13 @@ void GMainWindow::OnGameListOpenFolder(u64 program_id, GameListOpenTarget target
if (has_user_save) {
// User save data
const auto select_profile = [this] {
- QtProfileSelectionDialog dialog(system->HIDCore(), this);
+ const Core::Frontend::ProfileSelectParameters parameters{
+ .mode = Service::AM::Applets::UiMode::UserSelector,
+ .invalid_uid_list = {},
+ .display_options = {},
+ .purpose = Service::AM::Applets::UserSelectionPurpose::General,
+ };
+ QtProfileSelectionDialog dialog(system->HIDCore(), this, parameters);
dialog.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint |
Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);
dialog.setWindowModality(Qt::WindowModal);
@@ -2221,6 +2384,8 @@ void GMainWindow::OnGameListRemoveFile(u64 program_id, GameListRemoveTarget targ
return tr("Delete All Transferable Shader Caches?");
case GameListRemoveTarget::CustomConfiguration:
return tr("Remove Custom Game Configuration?");
+ case GameListRemoveTarget::CacheStorage:
+ return tr("Remove Cache Storage?");
default:
return QString{};
}
@@ -2244,6 +2409,9 @@ void GMainWindow::OnGameListRemoveFile(u64 program_id, GameListRemoveTarget targ
case GameListRemoveTarget::CustomConfiguration:
RemoveCustomConfiguration(program_id, game_path);
break;
+ case GameListRemoveTarget::CacheStorage:
+ RemoveCacheStorage(program_id);
+ break;
}
}
@@ -2333,6 +2501,21 @@ void GMainWindow::RemoveCustomConfiguration(u64 program_id, const std::string& g
}
}
+void GMainWindow::RemoveCacheStorage(u64 program_id) {
+ const auto nand_dir = Common::FS::GetYuzuPath(Common::FS::YuzuPath::NANDDir);
+ auto vfs_nand_dir =
+ vfs->OpenDirectory(Common::FS::PathToUTF8String(nand_dir), FileSys::Mode::Read);
+
+ const auto cache_storage_path = FileSys::SaveDataFactory::GetFullPath(
+ *system, vfs_nand_dir, FileSys::SaveDataSpaceId::NandUser,
+ FileSys::SaveDataType::CacheStorage, 0 /* program_id */, {}, 0);
+
+ const auto path = Common::FS::ConcatPathSafe(nand_dir, cache_storage_path);
+
+ // Not an error if it wasn't cleared.
+ Common::FS::RemoveDirRecursively(path);
+}
+
void GMainWindow::OnGameListDumpRomFS(u64 program_id, const std::string& game_path,
DumpRomFSTarget target) {
const auto failed = [this] {
@@ -2642,6 +2825,8 @@ void GMainWindow::OnGameListAddDirectory() {
} else {
LOG_WARNING(Frontend, "Selected directory is already in the game list");
}
+
+ OnSaveConfig();
}
void GMainWindow::OnGameListShowList(bool show) {
@@ -2759,8 +2944,7 @@ void GMainWindow::OnMenuInstallToNAND() {
ui->action_Install_File_NAND->setEnabled(false);
install_progress = new QProgressDialog(QString{}, tr("Cancel"), 0, total_size, this);
- install_progress->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint &
- ~Qt::WindowMaximizeButtonHint);
+ install_progress->setWindowFlags(windowFlags() & ~Qt::WindowMaximizeButtonHint);
install_progress->setAttribute(Qt::WA_DeleteOnClose, true);
install_progress->setFixedWidth(installDialog.GetMinimumWidth() + 40);
install_progress->show();
@@ -2845,7 +3029,7 @@ InstallResult GMainWindow::InstallNSPXCI(const QString& filename) {
return false;
}
- std::array<u8, 0x1000> buffer{};
+ std::vector<u8> buffer(1_MiB);
for (std::size_t i = 0; i < src->GetSize(); i += buffer.size()) {
if (install_progress->wasCanceled()) {
@@ -3004,8 +3188,10 @@ void GMainWindow::OnRestartGame() {
if (!system->IsPoweredOn()) {
return;
}
- // Make a copy since BootGame edits game_path
- BootGame(QString(current_game_path));
+ // Make a copy since ShutdownGame edits game_path
+ const auto current_game = QString(current_game_path);
+ ShutdownGame();
+ BootGame(current_game);
}
void GMainWindow::OnPauseGame() {
@@ -3056,13 +3242,23 @@ void GMainWindow::OnSaveConfig() {
}
void GMainWindow::ErrorDisplayDisplayError(QString error_code, QString error_text) {
- OverlayDialog dialog(render_window, *system, error_code, error_text, QString{}, tr("OK"),
- Qt::AlignLeft | Qt::AlignVCenter);
- dialog.exec();
+ error_applet = new OverlayDialog(render_window, *system, error_code, error_text, QString{},
+ tr("OK"), Qt::AlignLeft | Qt::AlignVCenter);
+ SCOPE_EXIT({
+ error_applet->deleteLater();
+ error_applet = nullptr;
+ });
+ error_applet->exec();
emit ErrorDisplayFinished();
}
+void GMainWindow::ErrorDisplayRequestExit() {
+ if (error_applet) {
+ error_applet->reject();
+ }
+}
+
void GMainWindow::OnMenuReportCompatibility() {
#if defined(ARCHITECTURE_x86_64) && !defined(__APPLE__)
const auto& caps = Common::GetCPUCaps();
@@ -3257,9 +3453,11 @@ void GMainWindow::ResetWindowSize1080() {
void GMainWindow::OnConfigure() {
const auto old_theme = UISettings::values.theme;
const bool old_discord_presence = UISettings::values.enable_discord_presence.GetValue();
+ const auto old_language_index = Settings::values.language_index.GetValue();
Settings::SetConfiguringGlobal(true);
- ConfigureDialog configure_dialog(this, hotkey_registry, input_subsystem.get(), *system,
+ ConfigureDialog configure_dialog(this, hotkey_registry, input_subsystem.get(),
+ vk_device_records, *system,
!multiplayer_state->IsHostingPublicRoom());
connect(&configure_dialog, &ConfigureDialog::LanguageChanged, this,
&GMainWindow::OnLanguageChanged);
@@ -3325,7 +3523,7 @@ void GMainWindow::OnConfigure() {
emit UpdateThemedIcons();
const auto reload = UISettings::values.is_game_list_reload_pending.exchange(false);
- if (reload) {
+ if (reload || Settings::values.language_index.GetValue() != old_language_index) {
game_list->PopulateAsync(UISettings::values.game_dirs);
}
@@ -3369,6 +3567,7 @@ void GMainWindow::OnConfigureTas() {
return;
} else if (result == QDialog::Accepted) {
dialog.ApplyConfiguration();
+ OnSaveConfig();
}
}
@@ -3463,6 +3662,39 @@ void GMainWindow::OnToggleGpuAccuracy() {
UpdateGPUAccuracyButton();
}
+void GMainWindow::OnMute() {
+ Settings::values.audio_muted = !Settings::values.audio_muted;
+ UpdateVolumeUI();
+}
+
+void GMainWindow::OnDecreaseVolume() {
+ Settings::values.audio_muted = false;
+ const auto current_volume = static_cast<s32>(Settings::values.volume.GetValue());
+ int step = 5;
+ if (current_volume <= 30) {
+ step = 2;
+ }
+ if (current_volume <= 6) {
+ step = 1;
+ }
+ Settings::values.volume.SetValue(std::max(current_volume - step, 0));
+ UpdateVolumeUI();
+}
+
+void GMainWindow::OnIncreaseVolume() {
+ Settings::values.audio_muted = false;
+ const auto current_volume = static_cast<s32>(Settings::values.volume.GetValue());
+ int step = 5;
+ if (current_volume < 30) {
+ step = 2;
+ }
+ if (current_volume < 6) {
+ step = 1;
+ }
+ Settings::values.volume.SetValue(current_volume + step);
+ UpdateVolumeUI();
+}
+
void GMainWindow::OnToggleAdaptingFilter() {
auto filter = Settings::values.scaling_filter.GetValue();
if (filter == Settings::ScalingFilter::LastFilter) {
@@ -3470,10 +3702,6 @@ void GMainWindow::OnToggleAdaptingFilter() {
} else {
filter = static_cast<Settings::ScalingFilter>(static_cast<u32>(filter) + 1);
}
- if (Settings::values.renderer_backend.GetValue() == Settings::RendererBackend::OpenGL &&
- filter == Settings::ScalingFilter::Fsr) {
- filter = Settings::ScalingFilter::NearestNeighbor;
- }
Settings::values.scaling_filter.SetValue(filter);
filter_status_button->setChecked(true);
UpdateFilterText();
@@ -3492,7 +3720,7 @@ void GMainWindow::OnToggleGraphicsAPI() {
}
void GMainWindow::OnConfigurePerGame() {
- const u64 title_id = system->GetCurrentProcessProgramID();
+ const u64 title_id = system->GetApplicationProcessProgramID();
OpenPerGameConfiguration(title_id, current_game_path.toStdString());
}
@@ -3500,7 +3728,7 @@ void GMainWindow::OpenPerGameConfiguration(u64 title_id, const std::string& file
const auto v_file = Core::GetGameFileFromPath(vfs, file_name);
Settings::SetConfiguringGlobal(false);
- ConfigurePerGame dialog(this, title_id, file_name, *system);
+ ConfigurePerGame dialog(this, title_id, file_name, vk_device_records, *system);
dialog.LoadFromFile(v_file);
const auto result = dialog.exec();
@@ -3533,7 +3761,7 @@ bool GMainWindow::CreateShortcut(const std::string& shortcut_path, const std::st
const std::string& command, const std::string& arguments,
const std::string& categories, const std::string& keywords) {
#if defined(__linux__) || defined(__FreeBSD__)
- // This desktop file template was writting referencing
+ // This desktop file template was writing referencing
// https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html
std::string shortcut_contents{};
shortcut_contents.append("[Desktop Entry]\n");
@@ -3571,7 +3799,7 @@ void GMainWindow::OnLoadAmiibo() {
auto* virtual_amiibo = input_subsystem->GetVirtualAmiibo();
// Remove amiibo if one is connected
- if (virtual_amiibo->GetCurrentState() == InputCommon::VirtualAmiibo::State::AmiiboIsOpen) {
+ if (virtual_amiibo->GetCurrentState() == InputCommon::VirtualAmiibo::State::TagNearby) {
virtual_amiibo->CloseAmiibo();
QMessageBox::warning(this, tr("Amiibo"), tr("The current amiibo has been removed"));
return;
@@ -3599,7 +3827,7 @@ void GMainWindow::LoadAmiibo(const QString& filename) {
auto* virtual_amiibo = input_subsystem->GetVirtualAmiibo();
const QString title = tr("Error loading Amiibo data");
// Remove amiibo if one is connected
- if (virtual_amiibo->GetCurrentState() == InputCommon::VirtualAmiibo::State::AmiiboIsOpen) {
+ if (virtual_amiibo->GetCurrentState() == InputCommon::VirtualAmiibo::State::TagNearby) {
virtual_amiibo->CloseAmiibo();
QMessageBox::warning(this, tr("Amiibo"), tr("The current amiibo has been removed"));
return;
@@ -3651,7 +3879,7 @@ void GMainWindow::OnCaptureScreenshot() {
return;
}
- const u64 title_id = system->GetCurrentProcessProgramID();
+ const u64 title_id = system->GetApplicationProcessProgramID();
const auto screenshot_path =
QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir));
const auto date =
@@ -3835,93 +4063,55 @@ void GMainWindow::UpdateStatusBar() {
}
void GMainWindow::UpdateGPUAccuracyButton() {
- switch (Settings::values.gpu_accuracy.GetValue()) {
- case Settings::GPUAccuracy::Normal: {
- gpu_accuracy_button->setText(tr("GPU NORMAL"));
- gpu_accuracy_button->setChecked(false);
- break;
- }
- case Settings::GPUAccuracy::High: {
- gpu_accuracy_button->setText(tr("GPU HIGH"));
- gpu_accuracy_button->setChecked(true);
- break;
- }
- case Settings::GPUAccuracy::Extreme: {
- gpu_accuracy_button->setText(tr("GPU EXTREME"));
- gpu_accuracy_button->setChecked(true);
- break;
- }
- default: {
- gpu_accuracy_button->setText(tr("GPU ERROR"));
- gpu_accuracy_button->setChecked(true);
- break;
- }
- }
+ const auto gpu_accuracy = Settings::values.gpu_accuracy.GetValue();
+ const auto gpu_accuracy_text = Config::gpu_accuracy_texts_map.find(gpu_accuracy)->second;
+ gpu_accuracy_button->setText(gpu_accuracy_text.toUpper());
+ gpu_accuracy_button->setChecked(gpu_accuracy != Settings::GPUAccuracy::Normal);
}
void GMainWindow::UpdateDockedButton() {
const bool is_docked = Settings::values.use_docked_mode.GetValue();
dock_status_button->setChecked(is_docked);
- dock_status_button->setText(is_docked ? tr("DOCKED") : tr("HANDHELD"));
+ dock_status_button->setText(
+ Config::use_docked_mode_texts_map.find(is_docked)->second.toUpper());
}
void GMainWindow::UpdateAPIText() {
const auto api = Settings::values.renderer_backend.GetValue();
- switch (api) {
- case Settings::RendererBackend::OpenGL:
- renderer_status_button->setText(tr("OPENGL"));
- break;
- case Settings::RendererBackend::Vulkan:
- renderer_status_button->setText(tr("VULKAN"));
- break;
- case Settings::RendererBackend::Null:
- renderer_status_button->setText(tr("NULL"));
- break;
- }
+ const auto renderer_status_text = Config::renderer_backend_texts_map.find(api)->second;
+ renderer_status_button->setText(
+ api == Settings::RendererBackend::OpenGL
+ ? tr("%1 %2").arg(
+ renderer_status_text.toUpper(),
+ Config::shader_backend_texts_map.find(Settings::values.shader_backend.GetValue())
+ ->second)
+ : renderer_status_text.toUpper());
}
void GMainWindow::UpdateFilterText() {
const auto filter = Settings::values.scaling_filter.GetValue();
- switch (filter) {
- case Settings::ScalingFilter::NearestNeighbor:
- filter_status_button->setText(tr("NEAREST"));
- break;
- case Settings::ScalingFilter::Bilinear:
- filter_status_button->setText(tr("BILINEAR"));
- break;
- case Settings::ScalingFilter::Bicubic:
- filter_status_button->setText(tr("BICUBIC"));
- break;
- case Settings::ScalingFilter::Gaussian:
- filter_status_button->setText(tr("GAUSSIAN"));
- break;
- case Settings::ScalingFilter::ScaleForce:
- filter_status_button->setText(tr("SCALEFORCE"));
- break;
- case Settings::ScalingFilter::Fsr:
- filter_status_button->setText(tr("FSR"));
- break;
- default:
- filter_status_button->setText(tr("BILINEAR"));
- break;
- }
+ const auto filter_text = Config::scaling_filter_texts_map.find(filter)->second;
+ filter_status_button->setText(filter == Settings::ScalingFilter::Fsr ? tr("FSR")
+ : filter_text.toUpper());
}
void GMainWindow::UpdateAAText() {
const auto aa_mode = Settings::values.anti_aliasing.GetValue();
- switch (aa_mode) {
- case Settings::AntiAliasing::None:
- aa_status_button->setText(tr("NO AA"));
- break;
- case Settings::AntiAliasing::Fxaa:
- aa_status_button->setText(tr("FXAA"));
- break;
- case Settings::AntiAliasing::Smaa:
- aa_status_button->setText(tr("SMAA"));
- break;
- default:
- aa_status_button->setText(tr("NO AA"));
- break;
+ const auto aa_text = Config::anti_aliasing_texts_map.find(aa_mode)->second;
+ aa_status_button->setText(aa_mode == Settings::AntiAliasing::None
+ ? QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "NO AA"))
+ : aa_text.toUpper());
+}
+
+void GMainWindow::UpdateVolumeUI() {
+ const auto volume_value = static_cast<int>(Settings::values.volume.GetValue());
+ volume_slider->setValue(volume_value);
+ if (Settings::values.audio_muted) {
+ volume_button->setChecked(false);
+ volume_button->setText(tr("VOLUME: MUTE"));
+ } else {
+ volume_button->setChecked(true);
+ volume_button->setText(tr("VOLUME: %1%", "Volume percentage (e.g. 50%)").arg(volume_value));
}
}
@@ -3933,6 +4123,7 @@ void GMainWindow::UpdateStatusButtons() {
UpdateDockedButton();
UpdateFilterText();
UpdateAAText();
+ UpdateVolumeUI();
}
void GMainWindow::UpdateUISettings() {
@@ -4022,6 +4213,8 @@ void GMainWindow::OnReinitializeKeys(ReinitializeKeyBehavior behavior) {
}
Core::Crypto::KeyManager& keys = Core::Crypto::KeyManager::Instance();
+ bool all_keys_present{true};
+
if (keys.BaseDeriveNecessary()) {
Core::Crypto::PartitionDataManager pdm{vfs->OpenDirectory("", FileSys::Mode::Read)};
@@ -4046,6 +4239,7 @@ void GMainWindow::OnReinitializeKeys(ReinitializeKeyBehavior behavior) {
errors += tr(" - Missing PRODINFO");
}
if (!errors.isEmpty()) {
+ all_keys_present = false;
QMessageBox::warning(
this, tr("Derivation Components Missing"),
tr("Encryption keys are missing. "
@@ -4073,11 +4267,40 @@ void GMainWindow::OnReinitializeKeys(ReinitializeKeyBehavior behavior) {
system->GetFileSystemController().CreateFactories(*vfs);
+ if (all_keys_present && !this->CheckSystemArchiveDecryption()) {
+ LOG_WARNING(Frontend, "Mii model decryption failed");
+ QMessageBox::warning(
+ this, tr("System Archive Decryption Failed"),
+ tr("Encryption keys failed to decrypt firmware. "
+ "<br>Please follow <a href='https://yuzu-emu.org/help/quickstart/'>the yuzu "
+ "quickstart guide</a> to get all your keys, firmware and "
+ "games."));
+ }
+
if (behavior == ReinitializeKeyBehavior::Warning) {
game_list->PopulateAsync(UISettings::values.game_dirs);
}
}
+bool GMainWindow::CheckSystemArchiveDecryption() {
+ constexpr u64 MiiModelId = 0x0100000000000802;
+
+ auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
+ if (!bis_system) {
+ // Not having system BIS files is not an error.
+ return true;
+ }
+
+ auto mii_nca = bis_system->GetEntry(MiiModelId, FileSys::ContentRecordType::Data);
+ if (!mii_nca) {
+ // Not having the Mii model is not an error.
+ return true;
+ }
+
+ // Return whether we are able to decrypt the RomFS of the Mii model.
+ return mii_nca->GetRomFS().get() != nullptr;
+}
+
std::optional<u64> GMainWindow::SelectRomFSDumpTarget(const FileSys::ContentProvider& installed,
u64 program_id) {
const auto dlc_entries =
@@ -4402,6 +4625,55 @@ void GMainWindow::changeEvent(QEvent* event) {
#undef main
#endif
+static void SetHighDPIAttributes() {
+#ifdef _WIN32
+ // For Windows, we want to avoid scaling artifacts on fractional scaling ratios.
+ // This is done by setting the optimal scaling policy for the primary screen.
+
+ // Create a temporary QApplication.
+ int temp_argc = 0;
+ char** temp_argv = nullptr;
+ QApplication temp{temp_argc, temp_argv};
+
+ // Get the current screen geometry.
+ const QScreen* primary_screen = QGuiApplication::primaryScreen();
+ if (primary_screen == nullptr) {
+ return;
+ }
+
+ const QRect screen_rect = primary_screen->geometry();
+ const int real_width = screen_rect.width();
+ const int real_height = screen_rect.height();
+ const float real_ratio = primary_screen->logicalDotsPerInch() / 96.0f;
+
+ // Recommended minimum width and height for proper window fit.
+ // Any screen with a lower resolution than this will still have a scale of 1.
+ constexpr float minimum_width = 1350.0f;
+ constexpr float minimum_height = 900.0f;
+
+ const float width_ratio = std::max(1.0f, real_width / minimum_width);
+ const float height_ratio = std::max(1.0f, real_height / minimum_height);
+
+ // Get the lower of the 2 ratios and truncate, this is the maximum integer scale.
+ const float max_ratio = std::trunc(std::min(width_ratio, height_ratio));
+
+ if (max_ratio > real_ratio) {
+ QApplication::setHighDpiScaleFactorRoundingPolicy(
+ Qt::HighDpiScaleFactorRoundingPolicy::Round);
+ } else {
+ QApplication::setHighDpiScaleFactorRoundingPolicy(
+ Qt::HighDpiScaleFactorRoundingPolicy::Floor);
+ }
+#else
+ // Other OSes should be better than Windows at fractional scaling.
+ QApplication::setHighDpiScaleFactorRoundingPolicy(
+ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
+#endif
+
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+}
+
int main(int argc, char* argv[]) {
std::unique_ptr<Config> config = std::make_unique<Config>();
bool has_broken_vulkan = false;
@@ -4457,8 +4729,16 @@ int main(int argc, char* argv[]) {
}
#endif
+ SetHighDPIAttributes();
+
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+ // Disables the "?" button on all dialogs. Disabled by default on Qt6.
+ QCoreApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
+#endif
+
// Enables the core to make the qt created contexts current on std::threads
QCoreApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity);
+
QApplication app(argc, argv);
#ifdef _WIN32
diff --git a/src/yuzu/main.h b/src/yuzu/main.h
index 0f61abc7a..2cfb96257 100644
--- a/src/yuzu/main.h
+++ b/src/yuzu/main.h
@@ -37,6 +37,8 @@ class QLabel;
class MultiplayerState;
class QPushButton;
class QProgressDialog;
+class QSlider;
+class QHBoxLayout;
class WaitTreeWidget;
enum class GameListOpenTarget;
enum class GameListRemoveTarget;
@@ -45,7 +47,11 @@ enum class DumpRomFSTarget;
enum class InstalledEntryType;
class GameListPlaceholder;
+class QtAmiiboSettingsDialog;
+class QtControllerSelectorDialog;
+class QtProfileSelectionDialog;
class QtSoftwareKeyboardDialog;
+class QtNXWebEngineView;
enum class StartGameType {
Normal, // Can use custom configuration
@@ -63,6 +69,7 @@ struct ControllerParameters;
struct InlineAppearParameters;
struct InlineTextParameters;
struct KeyboardInitializeParameters;
+struct ProfileSelectParameters;
} // namespace Core::Frontend
namespace DiscordRPC {
@@ -86,9 +93,9 @@ enum class SwkbdReplyType : u32;
enum class WebExitReason : u32;
} // namespace Service::AM::Applets
-namespace Service::NFP {
-class NfpDevice;
-} // namespace Service::NFP
+namespace Service::NFC {
+class NfcDevice;
+} // namespace Service::NFC
namespace Ui {
class MainWindow;
@@ -111,6 +118,10 @@ enum class ReinitializeKeyBehavior {
Warning,
};
+namespace VkDeviceInfo {
+class Record;
+}
+
class GMainWindow : public QMainWindow {
Q_OBJECT
@@ -159,7 +170,7 @@ signals:
void AmiiboSettingsFinished(bool is_success, const std::string& name);
- void ControllerSelectorReconfigureFinished();
+ void ControllerSelectorReconfigureFinished(bool is_success);
void ErrorDisplayFinished();
@@ -181,9 +192,11 @@ public slots:
void OnExit();
void OnSaveConfig();
void AmiiboSettingsShowDialog(const Core::Frontend::CabinetParameters& parameters,
- std::shared_ptr<Service::NFP::NfpDevice> nfp_device);
+ std::shared_ptr<Service::NFC::NfcDevice> nfp_device);
+ void AmiiboSettingsRequestExit();
void ControllerSelectorReconfigureControllers(
const Core::Frontend::ControllerParameters& parameters);
+ void ControllerSelectorRequestExit();
void SoftwareKeyboardInitialize(
bool is_inline, Core::Frontend::KeyboardInitializeParameters initialize_parameters);
void SoftwareKeyboardShowNormal();
@@ -194,15 +207,19 @@ public slots:
void SoftwareKeyboardInlineTextChanged(Core::Frontend::InlineTextParameters text_parameters);
void SoftwareKeyboardExit();
void ErrorDisplayDisplayError(QString error_code, QString error_text);
- void ProfileSelectorSelectProfile();
+ void ErrorDisplayRequestExit();
+ void ProfileSelectorSelectProfile(const Core::Frontend::ProfileSelectParameters& parameters);
+ void ProfileSelectorRequestExit();
void WebBrowserOpenWebPage(const std::string& main_url, const std::string& additional_args,
bool is_local);
+ void WebBrowserRequestExit();
void OnAppFocusStateChanged(Qt::ApplicationState state);
void OnTasStateChanged();
private:
/// Updates an action's shortcut and text to reflect an updated hotkey from the hotkey registry.
- void LinkActionShortcut(QAction* action, const QString& action_name);
+ void LinkActionShortcut(QAction* action, const QString& action_name,
+ const bool tas_allowed = false);
void RegisterMetaTypes();
@@ -231,7 +248,7 @@ private:
void SetDiscordEnabled(bool state);
void LoadAmiibo(const QString& filename);
- bool SelectAndSetCurrentUser();
+ bool SelectAndSetCurrentUser(const Core::Frontend::ProfileSelectParameters& parameters);
/**
* Stores the filename in the recently loaded files list.
@@ -312,6 +329,9 @@ private slots:
void OnMenuRecentFile();
void OnConfigure();
void OnConfigureTas();
+ void OnDecreaseVolume();
+ void OnIncreaseVolume();
+ void OnMute();
void OnTasStartStop();
void OnTasRecord();
void OnTasReset();
@@ -354,6 +374,7 @@ private:
void RemoveVulkanDriverPipelineCache(u64 program_id);
void RemoveAllTransferableShaderCaches(u64 program_id);
void RemoveCustomConfiguration(u64 program_id, const std::string& game_path);
+ void RemoveCacheStorage(u64 program_id);
std::optional<u64> SelectRomFSDumpTarget(const FileSys::ContentProvider&, u64 program_id);
InstallResult InstallNSPXCI(const QString& filename);
InstallResult InstallNCA(const QString& filename);
@@ -364,6 +385,7 @@ private:
void UpdateAPIText();
void UpdateFilterText();
void UpdateAAText();
+ void UpdateVolumeUI();
void UpdateStatusBar();
void UpdateGPUAccuracyButton();
void UpdateStatusButtons();
@@ -376,6 +398,7 @@ private:
void LoadTranslation();
void OpenPerGameConfiguration(u64 title_id, const std::string& file_name);
bool CheckDarkMode();
+ bool CheckSystemArchiveDecryption();
QString GetTasStateDescription() const;
bool CreateShortcut(const std::string& shortcut_path, const std::string& title,
@@ -399,6 +422,8 @@ private:
GameListPlaceholder* game_list_placeholder;
+ std::vector<VkDeviceInfo::Record> vk_device_records;
+
// Status bar elements
QLabel* message_label = nullptr;
QLabel* shader_building_label = nullptr;
@@ -412,6 +437,9 @@ private:
QPushButton* dock_status_button = nullptr;
QPushButton* filter_status_button = nullptr;
QPushButton* aa_status_button = nullptr;
+ QPushButton* volume_button = nullptr;
+ QWidget* volume_popup = nullptr;
+ QSlider* volume_slider = nullptr;
QTimer status_bar_update_timer;
std::unique_ptr<Config> config;
@@ -457,7 +485,12 @@ private:
QString last_filename_booted;
// Applets
+ QtAmiiboSettingsDialog* cabinet_applet = nullptr;
+ QtControllerSelectorDialog* controller_applet = nullptr;
+ QtProfileSelectionDialog* profile_select_applet = nullptr;
+ QDialog* error_applet = nullptr;
QtSoftwareKeyboardDialog* software_keyboard = nullptr;
+ QtNXWebEngineView* web_applet = nullptr;
// True if amiibo file select is visible
bool is_amiibo_file_select_active{};
@@ -471,8 +504,6 @@ private:
#ifdef __unix__
QSocketNotifier* sig_interrupt_notifier;
static std::array<int, 3> sig_interrupt_fds;
-
- QDBusObjectPath wake_lock{};
#endif
protected:
diff --git a/src/yuzu/multiplayer/direct_connect.cpp b/src/yuzu/multiplayer/direct_connect.cpp
index cbd52da85..d71cc23a7 100644
--- a/src/yuzu/multiplayer/direct_connect.cpp
+++ b/src/yuzu/multiplayer/direct_connect.cpp
@@ -81,20 +81,13 @@ void DirectConnectWindow::Connect() {
}
}
}
- switch (static_cast<ConnectionType>(ui->connection_type->currentIndex())) {
- case ConnectionType::TraversalServer:
- break;
- case ConnectionType::IP:
- if (!ui->ip->hasAcceptableInput()) {
- NetworkMessage::ErrorManager::ShowError(
- NetworkMessage::ErrorManager::IP_ADDRESS_NOT_VALID);
- return;
- }
- if (!ui->port->hasAcceptableInput()) {
- NetworkMessage::ErrorManager::ShowError(NetworkMessage::ErrorManager::PORT_NOT_VALID);
- return;
- }
- break;
+ if (!ui->ip->hasAcceptableInput()) {
+ NetworkMessage::ErrorManager::ShowError(NetworkMessage::ErrorManager::IP_ADDRESS_NOT_VALID);
+ return;
+ }
+ if (!ui->port->hasAcceptableInput()) {
+ NetworkMessage::ErrorManager::ShowError(NetworkMessage::ErrorManager::PORT_NOT_VALID);
+ return;
}
// Store settings
diff --git a/src/yuzu/multiplayer/direct_connect.ui b/src/yuzu/multiplayer/direct_connect.ui
index 57d6ec25a..0dd4e6829 100644
--- a/src/yuzu/multiplayer/direct_connect.ui
+++ b/src/yuzu/multiplayer/direct_connect.ui
@@ -27,19 +27,10 @@
<number>0</number>
</property>
<item>
- <widget class="QComboBox" name="connection_type">
- <item>
- <property name="text">
- <string>IP Address</string>
- </property>
- </item>
- </widget>
- </item>
- <item>
<widget class="QWidget" name="ip_container" native="true">
<layout class="QHBoxLayout" name="ip_layout">
<property name="leftMargin">
- <number>5</number>
+ <number>0</number>
</property>
<property name="topMargin">
<number>0</number>
@@ -53,17 +44,17 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
- <string>IP</string>
+ <string>Server Address</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="ip">
<property name="toolTip">
- <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;IPv4 address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Server address of the host&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="maxLength">
- <number>16</number>
+ <number>253</number>
</property>
</widget>
</item>
@@ -85,6 +76,12 @@
<property name="placeholderText">
<string notr="true" extracomment="placeholder string that tells user default port">24872</string>
</property>
+ <property name="maximumSize">
+ <size>
+ <width>65</width>
+ <height>50</height>
+ </size>
+ </property>
</widget>
</item>
</layout>
diff --git a/src/yuzu/multiplayer/lobby.cpp b/src/yuzu/multiplayer/lobby.cpp
index 08c275696..387f6f7c9 100644
--- a/src/yuzu/multiplayer/lobby.cpp
+++ b/src/yuzu/multiplayer/lobby.cpp
@@ -77,6 +77,7 @@ Lobby::Lobby(QWidget* parent, QStandardItemModel* list,
// UI Buttons
connect(ui->refresh_list, &QPushButton::clicked, this, &Lobby::RefreshLobby);
connect(ui->games_owned, &QCheckBox::toggled, proxy, &LobbyFilterProxyModel::SetFilterOwned);
+ connect(ui->hide_empty, &QCheckBox::toggled, proxy, &LobbyFilterProxyModel::SetFilterEmpty);
connect(ui->hide_full, &QCheckBox::toggled, proxy, &LobbyFilterProxyModel::SetFilterFull);
connect(ui->search, &QLineEdit::textChanged, proxy, &LobbyFilterProxyModel::SetFilterSearch);
connect(ui->room_list, &QTreeView::doubleClicked, this, &Lobby::OnJoinRoom);
@@ -277,7 +278,7 @@ void Lobby::OnRefreshLobby() {
}
}
- // Reenable the refresh button and resize the columns
+ // Re-enable the refresh button and resize the columns
ui->refresh_list->setEnabled(true);
ui->refresh_list->setText(tr("Refresh List"));
ui->room_list->header()->stretchLastSection();
@@ -329,6 +330,16 @@ bool LobbyFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex& s
return true;
}
+ // filter by empty rooms
+ if (filter_empty) {
+ QModelIndex member_list = sourceModel()->index(sourceRow, Column::MEMBER, sourceParent);
+ int player_count =
+ sourceModel()->data(member_list, LobbyItemMemberList::MemberListRole).toList().size();
+ if (player_count == 0) {
+ return false;
+ }
+ }
+
// filter by filled rooms
if (filter_full) {
QModelIndex member_list = sourceModel()->index(sourceRow, Column::MEMBER, sourceParent);
@@ -399,6 +410,11 @@ void LobbyFilterProxyModel::SetFilterOwned(bool filter) {
invalidate();
}
+void LobbyFilterProxyModel::SetFilterEmpty(bool filter) {
+ filter_empty = filter;
+ invalidate();
+}
+
void LobbyFilterProxyModel::SetFilterFull(bool filter) {
filter_full = filter;
invalidate();
diff --git a/src/yuzu/multiplayer/lobby.h b/src/yuzu/multiplayer/lobby.h
index 300dad13e..2674ae7c3 100644
--- a/src/yuzu/multiplayer/lobby.h
+++ b/src/yuzu/multiplayer/lobby.h
@@ -130,12 +130,14 @@ public:
public slots:
void SetFilterOwned(bool);
+ void SetFilterEmpty(bool);
void SetFilterFull(bool);
void SetFilterSearch(const QString&);
private:
QStandardItemModel* game_list;
bool filter_owned = false;
+ bool filter_empty = false;
bool filter_full = false;
QString filter_search;
};
diff --git a/src/yuzu/multiplayer/lobby.ui b/src/yuzu/multiplayer/lobby.ui
index 4c9901c9a..0ef0ef762 100644
--- a/src/yuzu/multiplayer/lobby.ui
+++ b/src/yuzu/multiplayer/lobby.ui
@@ -78,6 +78,13 @@
</widget>
</item>
<item>
+ <widget class="QCheckBox" name="hide_empty">
+ <property name="text">
+ <string>Hide Empty Rooms</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QCheckBox" name="hide_full">
<property name="text">
<string>Hide Full Rooms</string>
diff --git a/src/yuzu/multiplayer/state.cpp b/src/yuzu/multiplayer/state.cpp
index 285bb150d..d82ca9aee 100644
--- a/src/yuzu/multiplayer/state.cpp
+++ b/src/yuzu/multiplayer/state.cpp
@@ -112,7 +112,7 @@ void MultiplayerState::SetNotificationStatus(NotificationStatus status) {
void MultiplayerState::UpdateNotificationStatus() {
switch (notification_status) {
- case NotificationStatus::Unitialized:
+ case NotificationStatus::Uninitialized:
status_icon->setPixmap(QIcon::fromTheme(QStringLiteral("disconnected")).pixmap(16));
status_text->setText(tr("Not Connected. Click here to find a room!"));
leave_room->setEnabled(false);
diff --git a/src/yuzu/multiplayer/state.h b/src/yuzu/multiplayer/state.h
index 5d681c5c6..d6149838f 100644
--- a/src/yuzu/multiplayer/state.h
+++ b/src/yuzu/multiplayer/state.h
@@ -23,7 +23,7 @@ class MultiplayerState : public QWidget {
public:
enum class NotificationStatus {
- Unitialized,
+ Uninitialized,
Disconnected,
Connected,
Notification,
@@ -98,7 +98,7 @@ private:
QAction* show_room;
std::shared_ptr<Core::AnnounceMultiplayerSession> announce_multiplayer_session;
Network::RoomMember::State current_state = Network::RoomMember::State::Uninitialized;
- NotificationStatus notification_status = NotificationStatus::Unitialized;
+ NotificationStatus notification_status = NotificationStatus::Uninitialized;
bool has_mod_perms = false;
Network::RoomMember::CallbackHandle<Network::RoomMember::State> state_callback_handle;
Network::RoomMember::CallbackHandle<Network::RoomMember::Error> error_callback_handle;
diff --git a/src/yuzu/multiplayer/validation.h b/src/yuzu/multiplayer/validation.h
index dd25af280..cbbe6757b 100644
--- a/src/yuzu/multiplayer/validation.h
+++ b/src/yuzu/multiplayer/validation.h
@@ -38,11 +38,28 @@ private:
QRegularExpression(QStringLiteral("^[a-zA-Z0-9._ -]{4,20}"));
QRegularExpressionValidator nickname;
- /// ipv4 address only
- // TODO remove this when we support hostnames in direct connect
+ /// ipv4 / ipv6 / hostnames
QRegularExpression ip_regex = QRegularExpression(QStringLiteral(
- "(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|"
- "2[0-4][0-9]|25[0-5])"));
+ // IPv4 regex
+ "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|"
+ // IPv6 regex
+ "^((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|"
+ "(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-"
+ "5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|"
+ "(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)"
+ "(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|"
+ "(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]"
+ "\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|"
+ "(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2["
+ "0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|"
+ "(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2["
+ "0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|"
+ "(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2["
+ "0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|"
+ "(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?"
+ "\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?$|"
+ // Hostname regex
+ "^([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\.)+[a-zA-Z]{2,}$"));
QRegularExpressionValidator ip;
/// port must be between 0 and 65535
diff --git a/src/yuzu/qt_common.cpp b/src/yuzu/qt_common.cpp
new file mode 100644
index 000000000..5d0fd7674
--- /dev/null
+++ b/src/yuzu/qt_common.cpp
@@ -0,0 +1,55 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <QGuiApplication>
+#include <QStringLiteral>
+#include <QWindow>
+#include "common/logging/log.h"
+#include "core/frontend/emu_window.h"
+#include "yuzu/qt_common.h"
+
+#if !defined(WIN32) && !defined(__APPLE__)
+#include <qpa/qplatformnativeinterface.h>
+#endif
+
+namespace QtCommon {
+Core::Frontend::WindowSystemType GetWindowSystemType() {
+ // Determine WSI type based on Qt platform.
+ QString platform_name = QGuiApplication::platformName();
+ if (platform_name == QStringLiteral("windows"))
+ return Core::Frontend::WindowSystemType::Windows;
+ else if (platform_name == QStringLiteral("xcb"))
+ return Core::Frontend::WindowSystemType::X11;
+ else if (platform_name == QStringLiteral("wayland"))
+ return Core::Frontend::WindowSystemType::Wayland;
+ else if (platform_name == QStringLiteral("wayland-egl"))
+ return Core::Frontend::WindowSystemType::Wayland;
+ else if (platform_name == QStringLiteral("cocoa"))
+ return Core::Frontend::WindowSystemType::Cocoa;
+ else if (platform_name == QStringLiteral("android"))
+ return Core::Frontend::WindowSystemType::Android;
+
+ LOG_CRITICAL(Frontend, "Unknown Qt platform {}!", platform_name.toStdString());
+ return Core::Frontend::WindowSystemType::Windows;
+} // namespace Core::Frontend::WindowSystemType
+
+Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window) {
+ Core::Frontend::EmuWindow::WindowSystemInfo wsi;
+ wsi.type = GetWindowSystemType();
+
+ // Our Win32 Qt external doesn't have the private API.
+#if defined(WIN32) || defined(__APPLE__)
+ wsi.render_surface = window ? reinterpret_cast<void*>(window->winId()) : nullptr;
+#else
+ QPlatformNativeInterface* pni = QGuiApplication::platformNativeInterface();
+ wsi.display_connection = pni->nativeResourceForWindow("display", window);
+ if (wsi.type == Core::Frontend::WindowSystemType::Wayland)
+ wsi.render_surface = window ? pni->nativeResourceForWindow("surface", window) : nullptr;
+ else
+ wsi.render_surface = window ? reinterpret_cast<void*>(window->winId()) : nullptr;
+#endif
+ wsi.render_surface_scale = window ? static_cast<float>(window->devicePixelRatio()) : 1.0f;
+
+ return wsi;
+}
+} // namespace QtCommon
diff --git a/src/yuzu/qt_common.h b/src/yuzu/qt_common.h
new file mode 100644
index 000000000..9c63f08f3
--- /dev/null
+++ b/src/yuzu/qt_common.h
@@ -0,0 +1,15 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <QWindow>
+#include "core/frontend/emu_window.h"
+
+namespace QtCommon {
+
+Core::Frontend::WindowSystemType GetWindowSystemType();
+
+Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window);
+
+} // namespace QtCommon
diff --git a/src/yuzu/startup_checks.cpp b/src/yuzu/startup_checks.cpp
index 9f702fe95..6eefc94ed 100644
--- a/src/yuzu/startup_checks.cpp
+++ b/src/yuzu/startup_checks.cpp
@@ -25,9 +25,9 @@ void CheckVulkan() {
// Just start the Vulkan loader, this will crash if something is wrong
try {
Vulkan::vk::InstanceDispatch dld;
- const Common::DynamicLibrary library = Vulkan::OpenLibrary();
+ const auto library = Vulkan::OpenLibrary();
const Vulkan::vk::Instance instance =
- Vulkan::CreateInstance(library, dld, VK_API_VERSION_1_1);
+ Vulkan::CreateInstance(*library, dld, VK_API_VERSION_1_1);
} catch (const Vulkan::vk::Exception& exception) {
fmt::print(stderr, "Failed to initialize Vulkan: {}\n", exception.what());
@@ -86,7 +86,7 @@ bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulka
return false;
}
- // Wait until the processs exits and get exit code from it
+ // Wait until the process exits and get exit code from it
WaitForSingleObject(process_info.hProcess, INFINITE);
DWORD exit_code = STILL_ACTIVE;
const int err = GetExitCodeProcess(process_info.hProcess, &exit_code);
diff --git a/src/yuzu/util/limitable_input_dialog.cpp b/src/yuzu/util/limitable_input_dialog.cpp
index bbb370595..5f6a9c193 100644
--- a/src/yuzu/util/limitable_input_dialog.cpp
+++ b/src/yuzu/util/limitable_input_dialog.cpp
@@ -16,8 +16,6 @@ LimitableInputDialog::LimitableInputDialog(QWidget* parent) : QDialog{parent} {
LimitableInputDialog::~LimitableInputDialog() = default;
void LimitableInputDialog::CreateUI() {
- setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
-
text_label = new QLabel(this);
text_entry = new QLineEdit(this);
text_label_invalid = new QLabel(this);
diff --git a/src/yuzu/util/overlay_dialog.cpp b/src/yuzu/util/overlay_dialog.cpp
index 796f5bf41..ee35a3e15 100644
--- a/src/yuzu/util/overlay_dialog.cpp
+++ b/src/yuzu/util/overlay_dialog.cpp
@@ -163,7 +163,7 @@ void OverlayDialog::MoveAndResizeWindow() {
const auto height = static_cast<float>(parentWidget()->height());
// High DPI
- const float dpi_scale = parentWidget()->windowHandle()->screen()->logicalDotsPerInch() / 96.0f;
+ const float dpi_scale = screen()->logicalDotsPerInch() / 96.0f;
const auto title_text_font_size = BASE_TITLE_FONT_SIZE * (height / BASE_HEIGHT) / dpi_scale;
const auto body_text_font_size =
diff --git a/src/yuzu/util/overlay_dialog.h b/src/yuzu/util/overlay_dialog.h
index 872283d61..62f9da311 100644
--- a/src/yuzu/util/overlay_dialog.h
+++ b/src/yuzu/util/overlay_dialog.h
@@ -71,7 +71,7 @@ private:
const QString& left_button_text, const QString& right_button_text,
Qt::Alignment alignment);
- /// Moves and resizes the dialog to be fully overlayed on top of the parent window.
+ /// Moves and resizes the dialog to be fully overlaid on top of the parent window.
void MoveAndResizeWindow();
/**
diff --git a/src/yuzu/util/sequence_dialog/sequence_dialog.cpp b/src/yuzu/util/sequence_dialog/sequence_dialog.cpp
index 4b10fa517..1670aa596 100644
--- a/src/yuzu/util/sequence_dialog/sequence_dialog.cpp
+++ b/src/yuzu/util/sequence_dialog/sequence_dialog.cpp
@@ -8,7 +8,6 @@
SequenceDialog::SequenceDialog(QWidget* parent) : QDialog(parent) {
setWindowTitle(tr("Enter a hotkey"));
- setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
key_sequence = new QKeySequenceEdit;
diff --git a/src/yuzu/vk_device_info.cpp b/src/yuzu/vk_device_info.cpp
new file mode 100644
index 000000000..7c26a3dc7
--- /dev/null
+++ b/src/yuzu/vk_device_info.cpp
@@ -0,0 +1,61 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include <utility>
+#include <vector>
+#include "common/dynamic_library.h"
+#include "common/logging/log.h"
+#include "video_core/vulkan_common/vulkan_device.h"
+#include "video_core/vulkan_common/vulkan_instance.h"
+#include "video_core/vulkan_common/vulkan_library.h"
+#include "video_core/vulkan_common/vulkan_surface.h"
+#include "video_core/vulkan_common/vulkan_wrapper.h"
+#include "vulkan/vulkan_core.h"
+#include "yuzu/qt_common.h"
+#include "yuzu/vk_device_info.h"
+
+class QWindow;
+
+namespace VkDeviceInfo {
+Record::Record(std::string_view name_, const std::vector<VkPresentModeKHR>& vsync_modes_,
+ bool has_broken_compute_)
+ : name{name_}, vsync_support{vsync_modes_}, has_broken_compute{has_broken_compute_} {}
+
+Record::~Record() = default;
+
+void PopulateRecords(std::vector<Record>& records, QWindow* window) try {
+ using namespace Vulkan;
+
+ auto wsi = QtCommon::GetWindowSystemInfo(window);
+
+ vk::InstanceDispatch dld;
+ const auto library = OpenLibrary();
+ const vk::Instance instance = CreateInstance(*library, dld, VK_API_VERSION_1_1, wsi.type);
+ const std::vector<VkPhysicalDevice> physical_devices = instance.EnumeratePhysicalDevices();
+ vk::SurfaceKHR surface = CreateSurface(instance, wsi);
+
+ records.clear();
+ records.reserve(physical_devices.size());
+ for (const VkPhysicalDevice device : physical_devices) {
+ const auto physical_device = vk::PhysicalDevice(device, dld);
+ const std::string name = physical_device.GetProperties().deviceName;
+ const std::vector<VkPresentModeKHR> present_modes =
+ physical_device.GetSurfacePresentModesKHR(*surface);
+
+ VkPhysicalDeviceDriverProperties driver_properties{};
+ driver_properties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES;
+ driver_properties.pNext = nullptr;
+ VkPhysicalDeviceProperties2 properties{};
+ properties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR;
+ properties.pNext = &driver_properties;
+ dld.vkGetPhysicalDeviceProperties2(physical_device, &properties);
+
+ bool has_broken_compute{Vulkan::Device::CheckBrokenCompute(
+ driver_properties.driverID, properties.properties.driverVersion)};
+
+ records.push_back(VkDeviceInfo::Record(name, present_modes, has_broken_compute));
+ }
+} catch (const Vulkan::vk::Exception& exception) {
+ LOG_ERROR(Frontend, "Failed to enumerate devices with error: {}", exception.what());
+}
+} // namespace VkDeviceInfo
diff --git a/src/yuzu/vk_device_info.h b/src/yuzu/vk_device_info.h
new file mode 100644
index 000000000..bda8262f4
--- /dev/null
+++ b/src/yuzu/vk_device_info.h
@@ -0,0 +1,36 @@
+// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <algorithm>
+#include <iterator>
+#include <memory>
+#include <string>
+#include <string_view>
+#include <vector>
+#include "common/common_types.h"
+#include "vulkan/vulkan_core.h"
+
+class QWindow;
+
+namespace Settings {
+enum class VSyncMode : u32;
+}
+// #include "common/settings.h"
+
+namespace VkDeviceInfo {
+// Short class to record Vulkan driver information for configuration purposes
+class Record {
+public:
+ explicit Record(std::string_view name, const std::vector<VkPresentModeKHR>& vsync_modes,
+ bool has_broken_compute);
+ ~Record();
+
+ const std::string name;
+ const std::vector<VkPresentModeKHR> vsync_support;
+ const bool has_broken_compute;
+};
+
+void PopulateRecords(std::vector<Record>& records, QWindow* window);
+} // namespace VkDeviceInfo
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 527017282..c5bc472ca 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -4,18 +4,8 @@
#include <memory>
#include <optional>
#include <sstream>
-
-// Ignore -Wimplicit-fallthrough due to https://github.com/libsdl-org/SDL/issues/4307
-#ifdef __clang__
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
-#endif
-#include <SDL.h>
-#ifdef __clang__
-#pragma clang diagnostic pop
-#endif
-
#include <INIReader.h>
+#include <SDL.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
@@ -176,6 +166,11 @@ void Config::ReadValues() {
Settings::values.debug_pad_analogs[i] = default_param;
}
+ ReadSetting("ControlsGeneral", Settings::values.enable_raw_input);
+ ReadSetting("ControlsGeneral", Settings::values.enable_joycon_driver);
+ ReadSetting("ControlsGeneral", Settings::values.enable_procon_driver);
+ ReadSetting("ControlsGeneral", Settings::values.random_amiibo_id);
+ ReadSetting("ControlsGeneral", Settings::values.emulate_analog_keyboard);
ReadSetting("ControlsGeneral", Settings::values.vibration_enabled);
ReadSetting("ControlsGeneral", Settings::values.enable_accurate_vibrations);
ReadSetting("ControlsGeneral", Settings::values.motion_enabled);
@@ -270,7 +265,7 @@ void Config::ReadValues() {
// Core
ReadSetting("Core", Settings::values.use_multi_core);
- ReadSetting("Core", Settings::values.use_extended_memory_layout);
+ ReadSetting("Core", Settings::values.use_unsafe_extended_memory_layout);
// Cpu
ReadSetting("Cpu", Settings::values.cpu_accuracy);
@@ -296,6 +291,7 @@ void Config::ReadValues() {
// Renderer
ReadSetting("Renderer", Settings::values.renderer_backend);
+ ReadSetting("Renderer", Settings::values.async_presentation);
ReadSetting("Renderer", Settings::values.renderer_force_max_clock);
ReadSetting("Renderer", Settings::values.renderer_debug);
ReadSetting("Renderer", Settings::values.renderer_shader_feedback);
@@ -315,13 +311,15 @@ void Config::ReadValues() {
ReadSetting("Renderer", Settings::values.use_disk_shader_cache);
ReadSetting("Renderer", Settings::values.gpu_accuracy);
ReadSetting("Renderer", Settings::values.use_asynchronous_gpu_emulation);
- ReadSetting("Renderer", Settings::values.use_vsync);
+ ReadSetting("Renderer", Settings::values.vsync_mode);
ReadSetting("Renderer", Settings::values.shader_backend);
+ ReadSetting("Renderer", Settings::values.use_reactive_flushing);
ReadSetting("Renderer", Settings::values.use_asynchronous_shaders);
ReadSetting("Renderer", Settings::values.nvdec_emulation);
ReadSetting("Renderer", Settings::values.accelerate_astc);
+ ReadSetting("Renderer", Settings::values.async_astc);
+ ReadSetting("Renderer", Settings::values.astc_recompression);
ReadSetting("Renderer", Settings::values.use_fast_gpu_time);
- ReadSetting("Renderer", Settings::values.use_pessimistic_flushes);
ReadSetting("Renderer", Settings::values.use_vulkan_driver_pipeline_cache);
ReadSetting("Renderer", Settings::values.bg_red);
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h
index 6fcf04e1b..119e22183 100644
--- a/src/yuzu_cmd/default_ini.h
+++ b/src/yuzu_cmd/default_ini.h
@@ -5,8 +5,8 @@
namespace DefaultINI {
-const char* sdl2_config_file = R"(
-
+const char* sdl2_config_file =
+ R"(
[ControlsP0]
# The input devices and parameters for each Switch native input
# The config section determines the player number where the config will be applied on. For example "ControlsP0", "ControlsP1", ...
@@ -14,6 +14,7 @@ const char* sdl2_config_file = R"(
# Escape characters $0 (for ':'), $1 (for ',') and $2 (for '$') can be used in values
# Indicates if this player should be connected at boot
+# 0 (default): Disabled, 1: Enabled
connected=
# for button input, the following devices are available:
@@ -94,6 +95,18 @@ motionright=
# 0 (default): Disabled, 1: Enabled
debug_pad_enabled =
+# Enable sdl raw input. Allows to configure up to 8 xinput controllers.
+# 0 (default): Disabled, 1: Enabled
+enable_raw_input =
+
+# Enable yuzu joycon driver instead of SDL drive.
+# 0: Disabled, 1 (default): Enabled
+enable_joycon_driver =
+
+# Emulates an analog input from buttons. Allowing to dial any angle.
+# 0 (default): Disabled, 1: Enabled
+emulate_analog_keyboard =
+
# Whether to enable or disable vibration
# 0: Disabled, 1 (default): Enabled
vibration_enabled=
@@ -127,9 +140,29 @@ udp_input_servers =
# 0 (default): Off, 1: On
mouse_panning =
-# Set mouse sensitivity.
-# Default: 1.0
-mouse_panning_sensitivity =
+# Set mouse panning horizontal sensitivity.
+# Default: 50.0
+mouse_panning_x_sensitivity =
+
+# Set mouse panning vertical sensitivity.
+# Default: 50.0
+mouse_panning_y_sensitivity =
+
+# Set mouse panning deadzone horizontal counterweight.
+# Default: 0.0
+mouse_panning_deadzone_x_counterweight =
+
+# Set mouse panning deadzone vertical counterweight.
+# Default: 0.0
+mouse_panning_deadzone_y_counterweight =
+
+# Set mouse panning stick decay strength.
+# Default: 22.0
+mouse_panning_decay_strength =
+
+# Set mouse panning stick minimum decay.
+# Default: 5.0
+mouse_panning_minimum_decay =
# Emulate an analog control stick from keyboard inputs.
# 0 (default): Disabled, 1: Enabled
@@ -143,14 +176,16 @@ mouse_enabled =
# 0 (default): Disabled, 1: Enabled
keyboard_enabled =
+)"
+ R"(
[Core]
# Whether to use multi-core for CPU emulation
# 0: Disabled, 1 (default): Enabled
use_multi_core =
-# Enable extended guest system memory layout (6GB DRAM)
+# Enable unsafe extended guest system memory layout (8GB DRAM)
# 0 (default): Disabled, 1: Enabled
-use_extended_memory_layout =
+use_unsafe_extended_memory_layout =
[Cpu]
# Adjusts various optimizations.
@@ -242,11 +277,17 @@ cpuopt_unsafe_fastmem_check =
# 0: Disabled, 1 (default): Enabled
cpuopt_unsafe_ignore_global_monitor =
+)"
+ R"(
[Renderer]
# Which backend API to use.
# 0: OpenGL, 1 (default): Vulkan
backend =
+# Whether to enable asynchronous presentation (Vulkan only)
+# 0 (default): Off, 1: On
+async_presentation =
+
# Enable graphics API debugging mode.
# 0 (default): Disabled, 1: Enabled
debug =
@@ -269,11 +310,14 @@ vulkan_device =
# 0: 0.5x (360p/540p) [EXPERIMENTAL]
# 1: 0.75x (540p/810p) [EXPERIMENTAL]
# 2 (default): 1x (720p/1080p)
-# 3: 2x (1440p/2160p)
-# 4: 3x (2160p/3240p)
-# 5: 4x (2880p/4320p)
-# 6: 5x (3600p/5400p)
-# 7: 6x (4320p/6480p)
+# 3: 1.5x (1080p/1620p) [EXPERIMENTAL]
+# 4: 2x (1440p/2160p)
+# 5: 3x (2160p/3240p)
+# 6: 4x (2880p/4320p)
+# 7: 5x (3600p/5400p)
+# 8: 6x (4320p/6480p)
+# 9: 7x (5040p/7560p)
+# 10: 8x (5760/8640p)
resolution_setup =
# Pixel filter to use when up- or down-sampling rendered frames.
@@ -282,11 +326,11 @@ resolution_setup =
# 2: Bicubic
# 3: Gaussian
# 4: ScaleForce
-# 5: AMD FidelityFX™️ Super Resolution [Vulkan Only]
+# 5: AMD FidelityFX™️ Super Resolution
scaling_filter =
# Anti-Aliasing (AA)
-# 0 (default): None, 1: FXAA
+# 0 (default): None, 1: FXAA, 2: SMAA
anti_aliasing =
# Whether to use fullscreen or borderless window mode
@@ -294,15 +338,21 @@ anti_aliasing =
fullscreen_mode =
# Aspect ratio
-# 0: Default (16:9), 1: Force 4:3, 2: Force 21:9, 3: Stretch to Window
+# 0: Default (16:9), 1: Force 4:3, 2: Force 21:9, 3: Force 16:10, 4: Stretch to Window
aspect_ratio =
# Anisotropic filtering
# 0: Default, 1: 2x, 2: 4x, 3: 8x, 4: 16x
max_anisotropy =
-# Whether to enable V-Sync (caps the framerate at 60FPS) or not.
-# 0 (default): Off, 1: On
+# Whether to enable VSync or not.
+# OpenGL: Values other than 0 enable VSync
+# Vulkan: FIFO is selected if the requested mode is not supported by the driver.
+# FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen refresh rate.
+# FIFO Relaxed is similar to FIFO but allows tearing as it recovers from a slow down.
+# Mailbox can have lower latency than FIFO and does not tear but may drop frames.
+# Immediate (no synchronization) just presents whatever is available and can exhibit tearing.
+# 0: Immediate (Off), 1: Mailbox, 2 (Default): FIFO (On), 3: FIFO Relaxed
use_vsync =
# Selects the OpenGL shader backend. NV_gpu_program5 is required for GLASM. If NV_gpu_program5 is
@@ -310,6 +360,10 @@ use_vsync =
# 0: GLSL, 1 (default): GLASM, 2: SPIR-V
shader_backend =
+# Uses reactive flushing instead of predictive flushing. Allowing a more accurate syncing of memory.
+# 0: Off, 1 (default): On
+use_reactive_flushing =
+
# Whether to allow asynchronous shader building.
# 0 (default): Off, 1: On
use_asynchronous_shaders =
@@ -322,6 +376,14 @@ nvdec_emulation =
# 0: Off, 1 (default): On
accelerate_astc =
+# Decode ASTC textures asynchronously.
+# 0 (default): Off, 1: On
+async_astc =
+
+# Recompress ASTC textures to a different format.
+# 0 (default): Uncompressed, 1: BC1 (Low quality), 2: BC3: (Medium quality)
+async_astc =
+
# Turns on the speed limiter, which will limit the emulation speed to the desired speed limit value
# 0: Off, 1: On (default)
use_speed_limit =
@@ -346,10 +408,6 @@ use_asynchronous_gpu_emulation =
# 0: Off, 1 (default): On
use_fast_gpu_time =
-# Force unmodified buffers to be flushed, which can cost performance.
-# 0: Off (default), 1: On
-use_pessimistic_flushes =
-
# Whether to use garbage collection or not for GPU caches.
# 0 (default): Off, 1: On
use_caches_gc =
@@ -360,6 +418,8 @@ bg_red =
bg_blue =
bg_green =
+)"
+ R"(
[Audio]
# Which audio output engine to use.
# auto (default): Auto-select
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index 31f28a507..5153cdb79 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -18,11 +18,11 @@
EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_, Core::System& system_)
: input_subsystem{input_subsystem_}, system{system_} {
- if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
+ input_subsystem->Initialize();
+ if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) < 0) {
LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting...");
exit(1);
}
- input_subsystem->Initialize();
SDL_SetMainReady();
}
@@ -32,10 +32,6 @@ EmuWindow_SDL2::~EmuWindow_SDL2() {
SDL_Quit();
}
-void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) {
- input_subsystem->GetMouse()->MouseMove(x, y, 0, 0, 0, 0);
-}
-
InputCommon::MouseButton EmuWindow_SDL2::SDLButtonToMouseButton(u32 button) const {
switch (button) {
case SDL_BUTTON_LEFT:
@@ -53,44 +49,40 @@ InputCommon::MouseButton EmuWindow_SDL2::SDLButtonToMouseButton(u32 button) cons
}
}
+std::pair<float, float> EmuWindow_SDL2::MouseToTouchPos(s32 touch_x, s32 touch_y) const {
+ int w, h;
+ SDL_GetWindowSize(render_window, &w, &h);
+ const float fx = static_cast<float>(touch_x) / w;
+ const float fy = static_cast<float>(touch_y) / h;
+
+ return {std::clamp<float>(fx, 0.0f, 1.0f), std::clamp<float>(fy, 0.0f, 1.0f)};
+}
+
void EmuWindow_SDL2::OnMouseButton(u32 button, u8 state, s32 x, s32 y) {
const auto mouse_button = SDLButtonToMouseButton(button);
if (state == SDL_PRESSED) {
- input_subsystem->GetMouse()->PressButton(x, y, 0, 0, mouse_button);
+ const auto [touch_x, touch_y] = MouseToTouchPos(x, y);
+ input_subsystem->GetMouse()->PressButton(x, y, mouse_button);
+ input_subsystem->GetMouse()->PressMouseButton(mouse_button);
+ input_subsystem->GetMouse()->PressTouchButton(touch_x, touch_y, mouse_button);
} else {
input_subsystem->GetMouse()->ReleaseButton(mouse_button);
}
}
-std::pair<unsigned, unsigned> EmuWindow_SDL2::TouchToPixelPos(float touch_x, float touch_y) const {
- int w, h;
- SDL_GetWindowSize(render_window, &w, &h);
-
- touch_x *= w;
- touch_y *= h;
-
- return {static_cast<unsigned>(std::max(std::round(touch_x), 0.0f)),
- static_cast<unsigned>(std::max(std::round(touch_y), 0.0f))};
+void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) {
+ const auto [touch_x, touch_y] = MouseToTouchPos(x, y);
+ input_subsystem->GetMouse()->Move(x, y, 0, 0);
+ input_subsystem->GetMouse()->MouseMove(touch_x, touch_y);
+ input_subsystem->GetMouse()->TouchMove(touch_x, touch_y);
}
void EmuWindow_SDL2::OnFingerDown(float x, float y, std::size_t id) {
- int width, height;
- SDL_GetWindowSize(render_window, &width, &height);
- const auto [px, py] = TouchToPixelPos(x, y);
- const float fx = px * 1.0f / width;
- const float fy = py * 1.0f / height;
-
- input_subsystem->GetTouchScreen()->TouchPressed(fx, fy, id);
+ input_subsystem->GetTouchScreen()->TouchPressed(x, y, id);
}
void EmuWindow_SDL2::OnFingerMotion(float x, float y, std::size_t id) {
- int width, height;
- SDL_GetWindowSize(render_window, &width, &height);
- const auto [px, py] = TouchToPixelPos(x, y);
- const float fx = px * 1.0f / width;
- const float fy = py * 1.0f / height;
-
- input_subsystem->GetTouchScreen()->TouchMoved(fx, fy, id);
+ input_subsystem->GetTouchScreen()->TouchMoved(x, y, id);
}
void EmuWindow_SDL2::OnFingerUp() {
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.h b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
index 25c23e2a5..4ad05e0e1 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.h
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
@@ -4,7 +4,9 @@
#pragma once
#include <utility>
+
#include "core/frontend/emu_window.h"
+#include "core/frontend/graphics_context.h"
struct SDL_Window;
@@ -38,17 +40,17 @@ protected:
/// Called by WaitEvent when a key is pressed or released.
void OnKeyEvent(int key, u8 state);
- /// Called by WaitEvent when the mouse moves.
- void OnMouseMotion(s32 x, s32 y);
-
/// Converts a SDL mouse button into MouseInput mouse button
InputCommon::MouseButton SDLButtonToMouseButton(u32 button) const;
+ /// Translates pixel position to float position
+ std::pair<float, float> MouseToTouchPos(s32 touch_x, s32 touch_y) const;
+
/// Called by WaitEvent when a mouse button is pressed or released
void OnMouseButton(u32 button, u8 state, s32 x, s32 y);
- /// Translates pixel position (0..1) to pixel positions
- std::pair<unsigned, unsigned> TouchToPixelPos(float touch_x, float touch_y) const;
+ /// Called by WaitEvent when the mouse moves.
+ void OnMouseMotion(s32 x, s32 y);
/// Called by WaitEvent when a finger starts touching the touchscreen
void OnFingerDown(float x, float y, std::size_t id);
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 91133569d..7b6d49c63 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -42,6 +42,8 @@
#include <windows.h>
#include <shellapi.h>
+
+#include "common/windows/timer_resolution.h"
#endif
#undef _UNICODE
@@ -62,13 +64,15 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
static void PrintHelp(const char* argv0) {
std::cout << "Usage: " << argv0
<< " [options] <filename>\n"
- "-m, --multiplayer=nick:password@address:port"
- " Nickname, password, address and port for multiplayer\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"
- "-v, --version Output version information 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"
- "-c, --config Load the specified configuration file\n";
+ "-u, --user Select a specific user profile from 0 to 7\n"
+ "-v, --version Output version information and exit\n";
}
static void PrintVersion() {
@@ -199,6 +203,7 @@ int main(int argc, char** argv) {
std::string filepath;
std::optional<std::string> config_path;
std::string program_args;
+ std::optional<int> selected_user;
bool use_multiplayer = false;
bool fullscreen = false;
@@ -209,20 +214,37 @@ int main(int argc, char** argv) {
static struct option long_options[] = {
// clang-format off
- {"multiplayer", required_argument, 0, 'm'},
+ {"config", required_argument, 0, 'c'},
{"fullscreen", no_argument, 0, 'f'},
{"help", no_argument, 0, 'h'},
- {"version", no_argument, 0, 'v'},
+ {"game", required_argument, 0, 'g'},
+ {"multiplayer", required_argument, 0, 'm'},
{"program", optional_argument, 0, 'p'},
- {"config", required_argument, 0, 'c'},
+ {"user", required_argument, 0, 'u'},
+ {"version", no_argument, 0, 'v'},
{0, 0, 0, 0},
// clang-format on
};
while (optind < argc) {
- int arg = getopt_long(argc, argv, "g:fhvp::c:", long_options, &option_index);
+ int arg = getopt_long(argc, argv, "g:fhvp::c:u:", long_options, &option_index);
if (arg != -1) {
switch (static_cast<char>(arg)) {
+ case 'c':
+ config_path = optarg;
+ break;
+ case 'f':
+ fullscreen = true;
+ LOG_INFO(Frontend, "Starting in fullscreen mode...");
+ break;
+ case 'h':
+ PrintHelp(argv[0]);
+ return 0;
+ case 'g': {
+ const std::string str_arg(optarg);
+ filepath = str_arg;
+ break;
+ }
case 'm': {
use_multiplayer = true;
const std::string str_arg(optarg);
@@ -255,23 +277,16 @@ int main(int argc, char** argv) {
}
break;
}
- case 'f':
- fullscreen = true;
- LOG_INFO(Frontend, "Starting in fullscreen mode...");
- break;
- case 'h':
- PrintHelp(argv[0]);
- return 0;
- case 'v':
- PrintVersion();
- return 0;
case 'p':
program_args = argv[optind];
++optind;
break;
- case 'c':
- config_path = optarg;
+ case 'u':
+ selected_user = atoi(optarg);
break;
+ case 'v':
+ PrintVersion();
+ return 0;
}
} else {
#ifdef _WIN32
@@ -295,8 +310,14 @@ int main(int argc, char** argv) {
Settings::values.program_args = program_args;
}
+ if (selected_user.has_value()) {
+ Settings::values.current_user = std::clamp(*selected_user, 0, 7);
+ }
+
#ifdef _WIN32
LocalFree(argv_w);
+
+ Common::Windows::SetCurrentTimerResolutionToMaximum();
#endif
MicroProfileOnThreadCreate("EmuThread");
@@ -388,7 +409,7 @@ int main(int argc, char** argv) {
if (Settings::values.use_disk_shader_cache.GetValue()) {
system.Renderer().ReadRasterizer()->LoadDiskResources(
- system.GetCurrentProcessProgramID(), std::stop_token{},
+ system.GetApplicationProcessProgramID(), std::stop_token{},
[](VideoCore::LoadCallbackStage, size_t value, size_t total) {});
}
diff --git a/vcpkg.json b/vcpkg.json
index ef271f778..7d9e631a1 100644
--- a/vcpkg.json
+++ b/vcpkg.json
@@ -1,7 +1,7 @@
{
- "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
+ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "yuzu",
- "builtin-baseline": "9b22b40c6c61bf0da2d46346dd44a11e90972cc9",
+ "builtin-baseline": "cbf56573a987527b39272e88cbdd11389b78c6e4",
"version": "1.0",
"dependencies": [
"boost-algorithm",
@@ -35,16 +35,25 @@
"dbghelp": {
"description": "Compile Windows crash dump (Minidump) support",
"dependencies": [ "dbghelp" ]
+ },
+ "web-service": {
+ "description": "Enable web services (telemetry, etc.)",
+ "dependencies": [
+ {
+ "name": "openssl",
+ "platform": "windows"
+ }
+ ]
}
},
"overrides": [
{
"name": "catch2",
- "version": "3.0.1"
+ "version": "3.3.1"
},
{
"name": "fmt",
- "version": "9.0.0"
+ "version": "10.0.0"
}
]
}